bupa1018 commited on
Commit
d0a3932
·
1 Parent(s): 80da786

Update chunk_python_code.py

Browse files
Files changed (1) hide show
  1. 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 = "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:
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