bioguider 0.2.31__py3-none-any.whl → 0.2.32__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of bioguider might be problematic. Click here for more details.

@@ -27,6 +27,7 @@ from bioguider.utils.utils import clean_action_input
27
27
  from ..utils.gitignore_checker import GitignoreChecker
28
28
  from ..database.summarized_file_db import SummarizedFilesDb
29
29
  from bioguider.agents.common_conversation import CommonConversation
30
+ from bioguider.rag.config import configs
30
31
 
31
32
  logger = logging.getLogger(__name__)
32
33
 
@@ -153,7 +154,9 @@ def read_directory(
153
154
  return None
154
155
  gitignore_checker = GitignoreChecker(
155
156
  directory=dir_path,
156
- gitignore_path=gitignore_path
157
+ gitignore_path=gitignore_path,
158
+ exclude_dir_patterns=configs["file_filters"]["excluded_dirs"],
159
+ exclude_file_patterns=configs["file_filters"]["excluded_files"],
157
160
  )
158
161
  files = gitignore_checker.check_files_and_folders(level=level)
159
162
  return files
@@ -28,6 +28,7 @@ from bioguider.utils.constants import (
28
28
  EvaluationREADMEResult,
29
29
  )
30
30
  from bioguider.utils.utils import increase_token_usage
31
+ from bioguider.rag.config import configs
31
32
 
32
33
  logger = logging.getLogger(__name__)
33
34
 
@@ -638,7 +639,9 @@ class EvaluationREADMETask(EvaluationTask):
638
639
  repo_path = self.repo_path
639
640
  gitignore_path = Path(repo_path, ".gitignore")
640
641
  gitignore_checker = GitignoreChecker(
641
- directory=repo_path, gitignore_path=gitignore_path
642
+ directory=repo_path, gitignore_path=gitignore_path,
643
+ exclude_dir_patterns=configs["file_filters"]["excluded_dirs"],
644
+ exclude_file_patterns=configs["file_filters"]["excluded_files"],
642
645
  )
643
646
  found_readme_files = gitignore_checker.check_files_and_folders(
644
647
  check_file_cb=lambda root_dir, relative_path: Path(relative_path).name.lower() in possible_readme_files,
@@ -3,10 +3,8 @@ from pathlib import Path
3
3
 
4
4
  from bioguider.agents.evaluation_tutorial_task import EvaluationTutorialTask
5
5
  from bioguider.agents.evaluation_userguide_task import EvaluationUserGuideTask
6
- from bioguider.agents.prompt_utils import CollectionGoalItemEnum
7
6
  from bioguider.database.code_structure_db import CodeStructureDb
8
7
  from bioguider.utils.constants import ProjectMetadata
9
- from bioguider.utils.gitignore_checker import GitignoreChecker
10
8
 
11
9
  from ..agents.identification_task import IdentificationTask
12
10
  from ..rag.rag import RAG
@@ -6,6 +6,7 @@ from bioguider.utils.r_file_handler import RFileHandler
6
6
  from .gitignore_checker import GitignoreChecker
7
7
  from .python_file_handler import PythonFileHandler
8
8
  from ..database.code_structure_db import CodeStructureDb
9
+ from ..rag.config import configs
9
10
 
10
11
  logger = logging.getLogger(__name__)
11
12
 
@@ -17,7 +18,12 @@ class CodeStructureBuilder:
17
18
  code_structure_db: CodeStructureDb,
18
19
  ):
19
20
  self.repo_path = str(repo_path)
20
- self.gitignore_checker = GitignoreChecker(repo_path, str(gitignore_path))
21
+ self.gitignore_checker = GitignoreChecker(
22
+ directory=repo_path,
23
+ gitignore_path=str(gitignore_path),
24
+ exclude_dir_patterns=configs["file_filters"]["excluded_dirs"],
25
+ exclude_file_patterns=configs["file_filters"]["excluded_files"],
26
+ )
21
27
  self.file_handler = PythonFileHandler(repo_path)
22
28
  self.code_structure_db = code_structure_db
23
29
 
@@ -348,10 +348,12 @@ class RFileHandler:
348
348
  s = line.lstrip()
349
349
  if s.startswith("#'"):
350
350
  buf.append(s[2:].lstrip())
351
- line_idx -= 1
352
- continue
353
- # stop at first non-roxygen line (don’t cross blank + NULL padding blocks)
354
- break
351
+ elif s.strip() == "":
352
+ pass
353
+ else:
354
+ # stop at first non-roxygen line (don’t cross blank + NULL padding blocks)
355
+ break
356
+ line_idx -= 1
355
357
  if not buf:
356
358
  return None
357
359
  buf.reverse()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bioguider
3
- Version: 0.2.31
3
+ Version: 0.2.32
4
4
  Summary: An AI-Powered package to help biomedical developers to generate clear documentation
5
5
  License: MIT
6
6
  Author: Cankun Wang
@@ -2,7 +2,7 @@ bioguider/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  bioguider/agents/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
3
  bioguider/agents/agent_task.py,sha256=TL0Zx8zOmiAVslmNbfMPQ38qTQ73QospY6Dwrwf8POg,2890
4
4
  bioguider/agents/agent_tools.py,sha256=r21wHV6a-Ic2T0dk4YzA-_d7PodHPM3GzRxJqv-llSw,7286
5
- bioguider/agents/agent_utils.py,sha256=Mj6yr_2y4veWokXrXlAsaP38Ez9sdnZruM8ZnnpjxQ4,14825
5
+ bioguider/agents/agent_utils.py,sha256=dA2xbS7ojeNyGBigyCGGCZOZGGUSUpPVfCYgWLqi0ZA,15011
6
6
  bioguider/agents/collection_execute_step.py,sha256=jE_oSQZI5WDaz0bJjUWoAfqWfVbGUqN--cvITSWCGiI,5614
7
7
  bioguider/agents/collection_observe_step.py,sha256=1xOw6N3uIoyh4h4_vcULAc5x5KZ9G-zZo42AhRidyn8,5373
8
8
  bioguider/agents/collection_plan_step.py,sha256=Nn0f8AOkEDCDtnhaqE7yCQoi7PVpsHmiUcsIqC0T0dQ,5956
@@ -23,7 +23,7 @@ bioguider/agents/dockergeneration_plan_step.py,sha256=SB8tQM9PkIKsD2o1DFD7bedcxz
23
23
  bioguider/agents/dockergeneration_task.py,sha256=mYmorLKnJ-Jku3Qq_Y_kcSTsbYIo3RiVdD0puxqXY5Q,6221
24
24
  bioguider/agents/dockergeneration_task_utils.py,sha256=v7emqrJlVW-A5ZdLmPSdiaMSKCR8uzy9UYzx_1cgzyo,9041
25
25
  bioguider/agents/evaluation_installation_task.py,sha256=0RNH5NV7YKwn_we_d3IjnFf_ee9IPCEQ_olebq2y8Ng,12130
26
- bioguider/agents/evaluation_readme_task.py,sha256=pi3oAGJgZhJgJG1xLgiobrk3Uy2a_JIarD5QSPBkmHA,30647
26
+ bioguider/agents/evaluation_readme_task.py,sha256=GUrGZUK9Jvb82M0AooLRi7CeOpZ19t-YQfs-UxYKK2Q,30841
27
27
  bioguider/agents/evaluation_submission_requirements_task.py,sha256=J_6C-M2AfYue2C-gWBHl7KqGrTBuFBn9zmMV5vSRk-U,7834
28
28
  bioguider/agents/evaluation_task.py,sha256=uu0BjalctF9hQjGtT53whbeJHv2RVvs8_2woVUmOLRE,8132
29
29
  bioguider/agents/evaluation_tutorial_task.py,sha256=cxzXf5cXdZtYd8yCpffTlDGuZFx5NZ_iz9kkNXLLtns,10138
@@ -55,7 +55,7 @@ bioguider/generation/report_loader.py,sha256=bxajeTDxod36iFsbSZhXSQjotxqP7LuAg5M
55
55
  bioguider/generation/style_analyzer.py,sha256=Vn9FAK1qJBNLolLC1tz362k4UBaPl107BlvkQc8pV2I,983
56
56
  bioguider/generation/suggestion_extractor.py,sha256=kkPOYE6FXRtYlogV0GQdBraZZJm08I6Oux5YKGUF1UU,29442
57
57
  bioguider/generation/test_metrics.py,sha256=ACXmSZc2L_UkkmC5h2s4tG44MXW1d-hClFwPCD5_BFI,7505
58
- bioguider/managers/evaluation_manager.py,sha256=EoZ8V4rmx16zk1J3N9cNjeo0aCa7i32fLEQ3b2UolEQ,5917
58
+ bioguider/managers/evaluation_manager.py,sha256=7WlshfnqFkk34dDlf50qAINK5sFTaoCFE0f0vGYyRdc,5789
59
59
  bioguider/managers/generation_manager.py,sha256=GqjCci2eWHnIcJ-SOn5-hEMi8p3Jk4Q5E4KSObKELPs,31945
60
60
  bioguider/managers/generation_test_manager.py,sha256=3mOBzQVpsLo_LpSspJcofn3CNtvgagS1DMr9Zuwkzq4,5307
61
61
  bioguider/rag/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -64,7 +64,7 @@ bioguider/rag/data_pipeline.py,sha256=hyBmjOpP1ka_y_4X0lUwlNKEBjmPNOmETEfQf-s86Z
64
64
  bioguider/rag/embedder.py,sha256=jofR8hOj3Aj2IyBQ9y6FeAc84tgq5agbIfCGyFxYpJ8,650
65
65
  bioguider/rag/rag.py,sha256=JFPwrJlKDSyd3U3Gce_NSxI5343eNUbqPG9Fs5Pfoq0,4696
66
66
  bioguider/settings.py,sha256=BD_iz9aYarxmWUl0XaKl4-D4oTXMhFzljsXLNn2phis,3143
67
- bioguider/utils/code_structure_builder.py,sha256=PVeooVKxkiBEkX_VEu8h1ACGs-ynrgk_ce2FKJfeeZc,1947
67
+ bioguider/utils/code_structure_builder.py,sha256=t7Ao3r50v7c0JrS74J70mCOtaEFnKvam-bsA7OSvFQo,2192
68
68
  bioguider/utils/constants.py,sha256=NGmqEgxNDL1fe-htJbtHGcU94EVUK28YAupxGYOJO_c,9012
69
69
  bioguider/utils/default.gitignore,sha256=XjPdyO2KV8z8iyuqluaNR_70tBQftMpyKL8HboVNyeI,1605
70
70
  bioguider/utils/file_utils.py,sha256=DOWRluneNpGQ4uVwwX9Tp2VzmZ56wIqXKMyjcMH9Bpc,6229
@@ -72,9 +72,9 @@ bioguider/utils/gitignore_checker.py,sha256=pOYUwsS9D5014LxcZb0cj3s2CAYaD2uF_pYJ
72
72
  bioguider/utils/notebook_utils.py,sha256=SfU1iLuwgbDzNN-TUh_qbnfUSgn-PI6NrK6QfmdpMqQ,4009
73
73
  bioguider/utils/pyphen_utils.py,sha256=cdZc3qphkvMDeL5NiZ8Xou13M_uVNP7ifJ-FwxO-0BE,2680
74
74
  bioguider/utils/python_file_handler.py,sha256=BERiE2RHxpu3gAzv26jr8ZQetkrtnMZOv9SjpQ7WIdg,2650
75
- bioguider/utils/r_file_handler.py,sha256=8HpFaYKP8N1nItwr9tOx49m99pcLSt8EUtTNTJ7xNoE,19564
75
+ bioguider/utils/r_file_handler.py,sha256=y57Y04wjgtFWve0lPg1EOrNNOccPfnNF0z2WnlFMX74,19616
76
76
  bioguider/utils/utils.py,sha256=h8OhCjzLpHkb3ndnjRBUOBHD7csbHdEVNXf75SRN8Zc,4413
77
- bioguider-0.2.31.dist-info/LICENSE,sha256=qzkvZcKwwA5DuSuhXMOm2LcO6BdEr4V7jwFZVL2-jL4,1065
78
- bioguider-0.2.31.dist-info/METADATA,sha256=k5RSl8D1JHB5mFSCWqcJjTLF1WDDhtBw2BbFfmg-Trw,1962
79
- bioguider-0.2.31.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
80
- bioguider-0.2.31.dist-info/RECORD,,
77
+ bioguider-0.2.32.dist-info/LICENSE,sha256=qzkvZcKwwA5DuSuhXMOm2LcO6BdEr4V7jwFZVL2-jL4,1065
78
+ bioguider-0.2.32.dist-info/METADATA,sha256=OTumO8NRGxVO5JZWKXb7ztoM_S7zh8bAuij2TUrABuA,1962
79
+ bioguider-0.2.32.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
80
+ bioguider-0.2.32.dist-info/RECORD,,