bioguider 0.2.22__py3-none-any.whl → 0.2.23__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.

@@ -102,12 +102,13 @@ class EvaluationTutorialTask(EvaluationTask):
102
102
  def _evaluate_individual_tutorial(self, file: str) -> tuple[IndividualTutorialEvaluationResult | None, dict]:
103
103
  content = read_file(Path(self.repo_path, file))
104
104
  if content is None:
105
- logger.error(f"Error in reading file {file}")
105
+ logger.error(f"Error in reading file {file} - {Path(self.repo_path, file).resolve()}")
106
106
  return None, {**DEFAULT_TOKEN_USAGE}
107
107
 
108
108
  if file.endswith(".ipynb"):
109
109
  readability_content = extract_markdown_from_notebook(Path(self.repo_path, file))
110
110
  content = json.dumps(strip_notebook_to_code_and_markdown(Path(self.repo_path, file)))
111
+ content = content.replace("{", "<<").replace("}", ">>")
111
112
  else:
112
113
  readability_content = content
113
114
  readability = PyphenReadability()
@@ -83,22 +83,6 @@ class EvaluationManager:
83
83
  results, readme_files = task.evaluate()
84
84
  return results, readme_files
85
85
 
86
- def evaluate_tutorial(self):
87
- pass
88
- # task = CollectionTask(
89
- # llm=self.llm,
90
- # step_callback=self.step_callback,
91
- # )
92
- # task.compile(
93
- # repo_path=self.rag.repo_dir,
94
- # gitignore_path=Path(self.rag.repo_dir, ".gitignore"),
95
- # db=self.summary_file_db,
96
- # goal_item=CollectionGoalItemEnum.Tutorial.name,
97
- # )
98
- # s = task.collect()
99
- # if s is None or 'final_answer' not in s:
100
- # return None
101
-
102
86
  def evaluate_installation(self):
103
87
  evaluation_task = EvaluationInstallationTask(
104
88
  llm=self.llm,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bioguider
3
- Version: 0.2.22
3
+ Version: 0.2.23
4
4
  Summary: An AI-Powered package to help biomedical developers to generate clear documentation
5
5
  License: MIT
6
6
  Author: Cankun Wang
@@ -26,7 +26,7 @@ bioguider/agents/evaluation_installation_task.py,sha256=0RNH5NV7YKwn_we_d3IjnFf_
26
26
  bioguider/agents/evaluation_readme_task.py,sha256=pi3oAGJgZhJgJG1xLgiobrk3Uy2a_JIarD5QSPBkmHA,30647
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
- bioguider/agents/evaluation_tutorial_task.py,sha256=n4eElsGEW38JV7pKtOyoATe1K-pSJZfMr8DdMIAhkyY,8332
29
+ bioguider/agents/evaluation_tutorial_task.py,sha256=wRhHqvuOhGEICOhAlZrtshHJ8LkmnAYfjazFe090aeU,8441
30
30
  bioguider/agents/evaluation_tutorial_task_prompts.py,sha256=WTqIKBI3JErYaiQfLcPNj_hb3D-hSZrae50uJ7526zw,5996
31
31
  bioguider/agents/evaluation_userguide_prompts.py,sha256=eyJUx5nUr8v9k0B5GpKDaX2dBxSLVZGA0fwOWS4Uiow,7154
32
32
  bioguider/agents/evaluation_userguide_task.py,sha256=ONdempCOyn_N-LGV35diKciBbnjDSItXchcLV738XTw,6456
@@ -55,7 +55,7 @@ bioguider/generation/report_loader.py,sha256=KtJ6JHGPDL-PQoucU8hkVzMSz-B0bHbF2WS
55
55
  bioguider/generation/style_analyzer.py,sha256=Vn9FAK1qJBNLolLC1tz362k4UBaPl107BlvkQc8pV2I,983
56
56
  bioguider/generation/suggestion_extractor.py,sha256=tfkyWtdbAo-maLCF_wqwBXyh93yjulvDY17FuvTnTjk,7611
57
57
  bioguider/generation/test_metrics.py,sha256=fG6H1jVikHEx1YvN5Ds4QbVinudJ5OEYkzrV760oLLQ,3766
58
- bioguider/managers/evaluation_manager.py,sha256=2RRlVWu3kxBYrK0DRsX1k82LLFKJaNZ1i4HuCYxwJPw,6447
58
+ bioguider/managers/evaluation_manager.py,sha256=EoZ8V4rmx16zk1J3N9cNjeo0aCa7i32fLEQ3b2UolEQ,5917
59
59
  bioguider/managers/generation_manager.py,sha256=EbAJSvUz-SIriVlozuJ6wa5_1aIbbFfpgg3c9Vcz34g,7615
60
60
  bioguider/managers/generation_test_manager.py,sha256=0ty8IibdfN90Oj6M6lkYbxASnQxHYb9I3w9eG7hvEsQ,3270
61
61
  bioguider/rag/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -74,7 +74,7 @@ bioguider/utils/pyphen_utils.py,sha256=cdZc3qphkvMDeL5NiZ8Xou13M_uVNP7ifJ-FwxO-0
74
74
  bioguider/utils/python_file_handler.py,sha256=BERiE2RHxpu3gAzv26jr8ZQetkrtnMZOv9SjpQ7WIdg,2650
75
75
  bioguider/utils/r_file_handler.py,sha256=8HpFaYKP8N1nItwr9tOx49m99pcLSt8EUtTNTJ7xNoE,19564
76
76
  bioguider/utils/utils.py,sha256=1N7Wv_i9spTBQ_FbZnlxsjC8mszbBzaegrmvuKGUISg,3531
77
- bioguider-0.2.22.dist-info/LICENSE,sha256=qzkvZcKwwA5DuSuhXMOm2LcO6BdEr4V7jwFZVL2-jL4,1065
78
- bioguider-0.2.22.dist-info/METADATA,sha256=khsXgvUKBtkO4HOo1dCqVsw8vgk7zwOh9KdZFP4DtSc,1868
79
- bioguider-0.2.22.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
80
- bioguider-0.2.22.dist-info/RECORD,,
77
+ bioguider-0.2.23.dist-info/LICENSE,sha256=qzkvZcKwwA5DuSuhXMOm2LcO6BdEr4V7jwFZVL2-jL4,1065
78
+ bioguider-0.2.23.dist-info/METADATA,sha256=PL0Y-nFP-6pf2aafsz4zSiJ4UCQZKtCq6pYsp3r_kVg,1868
79
+ bioguider-0.2.23.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
80
+ bioguider-0.2.23.dist-info/RECORD,,