bioguider 0.2.25__tar.gz → 0.2.26__tar.gz
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.
- {bioguider-0.2.25 → bioguider-0.2.26}/PKG-INFO +1 -1
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/utils/utils.py +9 -5
- {bioguider-0.2.25 → bioguider-0.2.26}/pyproject.toml +1 -1
- {bioguider-0.2.25 → bioguider-0.2.26}/LICENSE +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/README.md +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/__init__.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/__init__.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/agent_task.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/agent_tools.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/agent_utils.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/collection_execute_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/collection_observe_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/collection_plan_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/collection_task.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/collection_task_utils.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/common_agent.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/common_agent_2step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/common_conversation.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/common_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/consistency_collection_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/consistency_evaluation_task.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/consistency_evaluation_task_utils.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/consistency_observe_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/consistency_query_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/dockergeneration_execute_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/dockergeneration_observe_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/dockergeneration_plan_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/dockergeneration_task.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/dockergeneration_task_utils.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/evaluation_installation_task.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/evaluation_readme_task.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/evaluation_submission_requirements_task.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/evaluation_task.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/evaluation_tutorial_task.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/evaluation_tutorial_task_prompts.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/evaluation_userguide_prompts.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/evaluation_userguide_task.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/identification_execute_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/identification_observe_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/identification_plan_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/identification_task.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/identification_task_utils.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/peo_common_step.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/prompt_utils.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/python_ast_repl_tool.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/rag_collection_task.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/conversation.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/database/code_structure_db.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/database/summarized_file_db.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/generation/__init__.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/generation/change_planner.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/generation/document_renderer.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/generation/llm_cleaner.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/generation/llm_content_generator.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/generation/llm_injector.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/generation/models.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/generation/output_manager.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/generation/repo_reader.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/generation/report_loader.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/generation/style_analyzer.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/generation/suggestion_extractor.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/generation/test_metrics.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/managers/evaluation_manager.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/managers/generation_manager.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/managers/generation_test_manager.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/rag/__init__.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/rag/config.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/rag/data_pipeline.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/rag/embedder.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/rag/rag.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/settings.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/utils/code_structure_builder.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/utils/constants.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/utils/default.gitignore +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/utils/file_utils.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/utils/gitignore_checker.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/utils/notebook_utils.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/utils/pyphen_utils.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/utils/python_file_handler.py +0 -0
- {bioguider-0.2.25 → bioguider-0.2.26}/bioguider/utils/r_file_handler.py +0 -0
|
@@ -53,10 +53,14 @@ def run_command(command: list, cwd: str = None, timeout: int = None):
|
|
|
53
53
|
return e.stdout or "", e.stderr or f"Command timed out after {timeout} seconds", -1
|
|
54
54
|
|
|
55
55
|
def escape_braces(text: str) -> str:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
def fix_braces(m):
|
|
57
|
+
s = m.group(0)
|
|
58
|
+
# If odd number of braces, double the last one
|
|
59
|
+
if len(s) % 2 == 1:
|
|
60
|
+
return s + s[-1]
|
|
61
|
+
return s
|
|
62
|
+
# Handle both { and } sequences
|
|
63
|
+
text = re.sub(r'{+|}+', fix_braces, text)
|
|
60
64
|
return text
|
|
61
65
|
|
|
62
66
|
def increase_token_usage(
|
|
@@ -105,7 +109,7 @@ def convert_to_serializable(obj):
|
|
|
105
109
|
else:
|
|
106
110
|
return obj
|
|
107
111
|
|
|
108
|
-
def convert_html_to_text(html_path: str | Path, exclude_tags: list[str]
|
|
112
|
+
def convert_html_to_text(html_path: str | Path, exclude_tags: list[str] = ["script", "style", "img", "svg", "meta", "link"]) -> str:
|
|
109
113
|
"""
|
|
110
114
|
This function is used to convert html string to text, that is,
|
|
111
115
|
extract text from html content, including tables.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bioguider-0.2.25 → bioguider-0.2.26}/bioguider/agents/evaluation_submission_requirements_task.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|