Spaces:
Sleeping
Sleeping
Update chunk_python_code.py
Browse files- chunk_python_code.py +4 -6
chunk_python_code.py
CHANGED
|
@@ -8,17 +8,15 @@ def chunk_python_code_with_metadata(source_code, source):
|
|
| 8 |
"""
|
| 9 |
documents = []
|
| 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 = "
|
| 16 |
elif source.startswith("kadi_apy/cli/"):
|
| 17 |
-
usage = "
|
| 18 |
elif source.startswith("kadi_apy/cli/commands/"):
|
| 19 |
-
usage = "
|
| 20 |
-
elif source.startswith("doc/"):
|
| 21 |
-
usage = "doc"
|
| 22 |
else:
|
| 23 |
usage = "undefined"
|
| 24 |
|
|
|
|
| 8 |
"""
|
| 9 |
documents = []
|
| 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 = "kadi-apy python library"
|
| 16 |
elif source.startswith("kadi_apy/cli/"):
|
| 17 |
+
usage = "kadi-apy python cli library"
|
| 18 |
elif source.startswith("kadi_apy/cli/commands/"):
|
| 19 |
+
usage = "kadi-apy command line interface"
|
|
|
|
|
|
|
| 20 |
else:
|
| 21 |
usage = "undefined"
|
| 22 |
|