Spaces:
Sleeping
Sleeping
Update chunk_python_code.py
Browse files- chunk_python_code.py +4 -3
chunk_python_code.py
CHANGED
@@ -10,12 +10,13 @@ def chunk_python_code_with_metadata(source_code, source):
|
|
10 |
print(f"Processing file: {source}")
|
11 |
|
12 |
iterate_ast(source_code, documents, source)
|
13 |
-
|
14 |
# Determine usage based on the source path
|
15 |
if source.startswith("kadi_apy/lib/"):
|
16 |
-
usage = "library"
|
|
|
|
|
17 |
elif source.startswith("kadi_apy/cli/"):
|
18 |
-
usage = "
|
19 |
elif source.startswith("doc/"):
|
20 |
usage = "doc"
|
21 |
else:
|
|
|
10 |
print(f"Processing file: {source}")
|
11 |
|
12 |
iterate_ast(source_code, documents, source)
|
|
|
13 |
# Determine usage based on the source path
|
14 |
if source.startswith("kadi_apy/lib/"):
|
15 |
+
usage = "python library"
|
16 |
+
elif source.startswith("kadi_apy/cli/commands/")
|
17 |
+
usage = "command line interface"
|
18 |
elif source.startswith("kadi_apy/cli/"):
|
19 |
+
usage = "python cli library"
|
20 |
elif source.startswith("doc/"):
|
21 |
usage = "doc"
|
22 |
else:
|