Spaces:
Runtime error
Runtime error
Update chunk_python_code.py
Browse files- chunk_python_code.py +4 -4
chunk_python_code.py
CHANGED
|
@@ -12,11 +12,11 @@ def chunk_python_code_with_metadata(source_code, source):
|
|
| 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/commands/"):
|
| 17 |
-
usage = "command line interface"
|
| 18 |
elif source.startswith("kadi_apy/cli/"):
|
| 19 |
-
usage = "
|
|
|
|
|
|
|
| 20 |
elif source.startswith("doc/"):
|
| 21 |
usage = "doc"
|
| 22 |
else:
|
|
|
|
| 12 |
iterate_ast(source_code, documents, source)
|
| 13 |
# Determine usage based on the source path
|
| 14 |
if source.startswith("kadi_apy/lib/"):
|
| 15 |
+
usage = "kadiAPY library"
|
|
|
|
|
|
|
| 16 |
elif source.startswith("kadi_apy/cli/"):
|
| 17 |
+
usage = "kadiAPY cli library"
|
| 18 |
+
elif source.startswith("kadi_apy/cli/commands/"):
|
| 19 |
+
usage = "kadiAPY command line"
|
| 20 |
elif source.startswith("doc/"):
|
| 21 |
usage = "doc"
|
| 22 |
else:
|