janus-llm 3.0.0__tar.gz → 3.0.1__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. {janus_llm-3.0.0 → janus_llm-3.0.1}/PKG-INFO +1 -1
  2. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/__init__.py +1 -1
  3. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/converter/requirements.py +7 -6
  4. {janus_llm-3.0.0 → janus_llm-3.0.1}/pyproject.toml +1 -1
  5. {janus_llm-3.0.0 → janus_llm-3.0.1}/LICENSE +0 -0
  6. {janus_llm-3.0.0 → janus_llm-3.0.1}/README.md +0 -0
  7. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/__main__.py +0 -0
  8. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/_tests/__init__.py +0 -0
  9. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/_tests/conftest.py +0 -0
  10. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/_tests/test_cli.py +0 -0
  11. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/cli.py +0 -0
  12. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/converter/__init__.py +0 -0
  13. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/converter/_tests/__init__.py +0 -0
  14. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/converter/_tests/test_translate.py +0 -0
  15. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/converter/converter.py +0 -0
  16. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/converter/diagram.py +0 -0
  17. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/converter/document.py +0 -0
  18. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/converter/evaluate.py +0 -0
  19. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/converter/translate.py +0 -0
  20. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/embedding/__init__.py +0 -0
  21. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/embedding/_tests/__init__.py +0 -0
  22. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/embedding/_tests/test_collections.py +0 -0
  23. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/embedding/_tests/test_database.py +0 -0
  24. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/embedding/_tests/test_vectorize.py +0 -0
  25. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/embedding/collections.py +0 -0
  26. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/embedding/database.py +0 -0
  27. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/embedding/embedding_models_info.py +0 -0
  28. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/embedding/vectorize.py +0 -0
  29. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/__init__.py +0 -0
  30. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/_tests/__init__.py +0 -0
  31. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/_tests/test_combine.py +0 -0
  32. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/_tests/test_splitter.py +0 -0
  33. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/alc/__init__.py +0 -0
  34. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/alc/_tests/__init__.py +0 -0
  35. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/alc/_tests/test_alc.py +0 -0
  36. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/alc/alc.py +0 -0
  37. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/binary/__init__.py +0 -0
  38. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/binary/_tests/__init__.py +0 -0
  39. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/binary/_tests/test_binary.py +0 -0
  40. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/binary/binary.py +0 -0
  41. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/binary/reveng/decompile_script.py +0 -0
  42. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/block.py +0 -0
  43. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/combine.py +0 -0
  44. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/file.py +0 -0
  45. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/mumps/__init__.py +0 -0
  46. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/mumps/_tests/__init__.py +0 -0
  47. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/mumps/_tests/test_mumps.py +0 -0
  48. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/mumps/mumps.py +0 -0
  49. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/mumps/patterns.py +0 -0
  50. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/naive/__init__.py +0 -0
  51. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/naive/basic_splitter.py +0 -0
  52. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/naive/chunk_splitter.py +0 -0
  53. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/naive/registry.py +0 -0
  54. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/naive/simple_ast.py +0 -0
  55. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/naive/tag_splitter.py +0 -0
  56. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/node.py +0 -0
  57. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/splitter.py +0 -0
  58. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/treesitter/__init__.py +0 -0
  59. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/treesitter/_tests/__init__.py +0 -0
  60. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/treesitter/_tests/test_treesitter.py +0 -0
  61. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/language/treesitter/treesitter.py +0 -0
  62. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/llm/__init__.py +0 -0
  63. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/llm/model_callbacks.py +0 -0
  64. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/llm/models_info.py +0 -0
  65. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/__init__.py +0 -0
  66. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/_tests/__init__.py +0 -0
  67. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/_tests/reference.py +0 -0
  68. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/_tests/target.py +0 -0
  69. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/_tests/test_bleu.py +0 -0
  70. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/_tests/test_chrf.py +0 -0
  71. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/_tests/test_file_pairing.py +0 -0
  72. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/_tests/test_llm.py +0 -0
  73. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/_tests/test_reading.py +0 -0
  74. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/_tests/test_rouge_score.py +0 -0
  75. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/_tests/test_similarity_score.py +0 -0
  76. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/_tests/test_treesitter_metrics.py +0 -0
  77. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/bleu.py +0 -0
  78. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/chrf.py +0 -0
  79. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/cli.py +0 -0
  80. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/complexity_metrics.py +0 -0
  81. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/file_pairing.py +0 -0
  82. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/llm_metrics.py +0 -0
  83. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/metric.py +0 -0
  84. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/reading.py +0 -0
  85. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/rouge_score.py +0 -0
  86. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/similarity.py +0 -0
  87. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/metrics/splitting.py +0 -0
  88. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/parsers/__init__.py +0 -0
  89. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/parsers/_tests/__init__.py +0 -0
  90. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/parsers/_tests/test_code_parser.py +0 -0
  91. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/parsers/code_parser.py +0 -0
  92. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/parsers/doc_parser.py +0 -0
  93. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/parsers/eval_parser.py +0 -0
  94. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/parsers/reqs_parser.py +0 -0
  95. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/prompts/__init__.py +0 -0
  96. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/prompts/prompt.py +0 -0
  97. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/utils/__init__.py +0 -0
  98. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/utils/_tests/__init__.py +0 -0
  99. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/utils/_tests/test_logger.py +0 -0
  100. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/utils/_tests/test_progress.py +0 -0
  101. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/utils/enums.py +0 -0
  102. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/utils/logger.py +0 -0
  103. {janus_llm-3.0.0 → janus_llm-3.0.1}/janus/utils/progress.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: janus-llm
3
- Version: 3.0.0
3
+ Version: 3.0.1
4
4
  Summary: A transcoding library using LLMs.
5
5
  Home-page: https://github.com/janus-llm/janus-llm
6
6
  License: Apache 2.0
@@ -5,7 +5,7 @@ from langchain_core._api.deprecation import LangChainDeprecationWarning
5
5
  from .converter.translate import Translator
6
6
  from .metrics import * # noqa: F403
7
7
 
8
- __version__ = "3.0.0"
8
+ __version__ = "3.0.1"
9
9
 
10
10
  # Ignoring a deprecation warning from langchain_core that I can't seem to hunt down
11
11
  warnings.filterwarnings("ignore", category=LangChainDeprecationWarning)
@@ -31,13 +31,14 @@ class RequirementsDocumenter(Documenter):
31
31
  output_list = list()
32
32
  # For each chunk of code, get generation metadata, the text of the code,
33
33
  # and the LLM generated requirements
34
- for child in block.children:
35
- code = child.original.text
36
- requirements = self._parser.parse_combined_output(child.complete_text)
34
+ blocks = [block for block in block.children] if len(block.children) else [block]
35
+ for block in blocks:
36
+ code = block.original.text
37
+ requirements = self._parser.parse_combined_output(block.complete_text)
37
38
  metadata = dict(
38
- retries=child.total_retries,
39
- cost=child.total_cost,
40
- processing_time=child.processing_time,
39
+ retries=block.total_retries,
40
+ cost=block.total_cost,
41
+ processing_time=block.processing_time,
41
42
  )
42
43
  # Put them all in a top level 'output' key
43
44
  output_list.append(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "janus-llm"
3
- version = "3.0.0"
3
+ version = "3.0.1"
4
4
  description = "A transcoding library using LLMs."
5
5
  authors = ["Michael Doyle <mdoyle@mitre.org>", "Chris Glasz <cglasz@mitre.org>",
6
6
  "Chris Tohline <ctohline@mitre.org>", "William Macke <wmacke@mitre.org>",
File without changes
File without changes
File without changes
File without changes