Skip to content

Commit 8128559

Browse files
committed
update lockfile & ruff
1 parent aad21d0 commit 8128559

File tree

2 files changed

+8
-156
lines changed

2 files changed

+8
-156
lines changed

codeflash/code_utils/code_utils.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@
1010

1111
from codeflash.cli_cmds.console import logger
1212

13+
1314
def encoded_tokens_len(s: str) -> int:
14-
'''Function for returning the approximate length of the encoded tokens
15-
It's an approximation of BPE encoding (https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf)'''
16-
return len(s)//2
15+
"""Return the approximate length of the encoded tokens.
16+
17+
It's an approximation of BPE encoding (https://cdn.openai.com/better-language-models/language_models_are_unsupervised_multitask_learners.pdf).
18+
"""
19+
return len(s) // 2
20+
1721

1822
def get_qualified_name(module_name: str, full_qualified_name: str) -> str:
1923
if not full_qualified_name:

0 commit comments

Comments
 (0)