janus-llm 4.3.5__tar.gz → 4.4.5__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.
Files changed (214) hide show
  1. {janus_llm-4.3.5 → janus_llm-4.4.5}/PKG-INFO +12 -12
  2. {janus_llm-4.3.5 → janus_llm-4.4.5}/README.md +11 -11
  3. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/__init__.py +1 -1
  4. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/cli/aggregate.py +2 -2
  5. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/cli/cli.py +6 -0
  6. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/cli/constants.py +6 -0
  7. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/cli/diagram.py +36 -7
  8. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/cli/document.py +10 -1
  9. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/cli/llm.py +7 -3
  10. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/cli/partition.py +10 -1
  11. janus_llm-4.4.5/janus/cli/pipeline.py +123 -0
  12. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/cli/self_eval.py +1 -3
  13. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/cli/translate.py +10 -1
  14. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/converter/_tests/test_translate.py +5 -5
  15. janus_llm-4.4.5/janus/converter/chain.py +180 -0
  16. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/converter/converter.py +333 -78
  17. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/converter/diagram.py +8 -6
  18. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/converter/document.py +7 -3
  19. janus_llm-4.4.5/janus/converter/evaluate.py +240 -0
  20. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/converter/partition.py +2 -10
  21. janus_llm-4.4.5/janus/converter/requirements.py +20 -0
  22. janus_llm-4.4.5/janus/converter/translate.py +52 -0
  23. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/block.py +31 -2
  24. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/metric.py +47 -124
  25. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/parsers/reqs_parser.py +3 -3
  26. {janus_llm-4.3.5 → janus_llm-4.4.5}/pyproject.toml +1 -1
  27. janus_llm-4.3.5/janus/converter/evaluate.py +0 -248
  28. janus_llm-4.3.5/janus/converter/requirements.py +0 -56
  29. janus_llm-4.3.5/janus/converter/translate.py +0 -108
  30. janus_llm-4.3.5/janus/metrics/_tests/test_llm.py +0 -90
  31. janus_llm-4.3.5/janus/metrics/llm_metrics.py +0 -202
  32. {janus_llm-4.3.5 → janus_llm-4.4.5}/LICENSE +0 -0
  33. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/__main__.py +0 -0
  34. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/_tests/__init__.py +0 -0
  35. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/_tests/conftest.py +0 -0
  36. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/_tests/evaluator_tests/EvalReadMe.md +0 -0
  37. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/_tests/evaluator_tests/incose_tests/incose_large_test.json +0 -0
  38. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/_tests/evaluator_tests/incose_tests/incose_small_test.json +0 -0
  39. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/_tests/evaluator_tests/inline_comment_tests/mumps_inline_comment_test.m +0 -0
  40. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/_tests/test_cli.py +0 -0
  41. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/cli/database.py +0 -0
  42. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/cli/embedding.py +0 -0
  43. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/converter/__init__.py +0 -0
  44. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/converter/_tests/__init__.py +0 -0
  45. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/converter/aggregator.py +0 -0
  46. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/embedding/__init__.py +0 -0
  47. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/embedding/_tests/__init__.py +0 -0
  48. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/embedding/_tests/test_collections.py +0 -0
  49. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/embedding/_tests/test_database.py +0 -0
  50. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/embedding/_tests/test_vectorize.py +0 -0
  51. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/embedding/collections.py +0 -0
  52. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/embedding/database.py +0 -0
  53. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/embedding/embedding_models_info.py +0 -0
  54. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/embedding/vectorize.py +0 -0
  55. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/__init__.py +0 -0
  56. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/_tests/__init__.py +0 -0
  57. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/_tests/test_combine.py +0 -0
  58. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/_tests/test_splitter.py +0 -0
  59. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/alc/__init__.py +0 -0
  60. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/alc/_tests/__init__.py +0 -0
  61. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/alc/_tests/alc.asm +0 -0
  62. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/alc/_tests/test_alc.py +0 -0
  63. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/alc/alc.py +0 -0
  64. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/binary/__init__.py +0 -0
  65. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/binary/_tests/__init__.py +0 -0
  66. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/binary/_tests/hello.bin +0 -0
  67. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/binary/_tests/test_binary.py +0 -0
  68. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/binary/binary.py +0 -0
  69. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/binary/reveng/decompile_script.py +0 -0
  70. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/combine.py +0 -0
  71. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/file.py +0 -0
  72. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/mumps/__init__.py +0 -0
  73. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/mumps/_tests/__init__.py +0 -0
  74. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/mumps/_tests/mumps.m +0 -0
  75. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/mumps/_tests/test_mumps.py +0 -0
  76. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/mumps/mumps.py +0 -0
  77. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/mumps/patterns.py +0 -0
  78. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/naive/__init__.py +0 -0
  79. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/naive/basic_splitter.py +0 -0
  80. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/naive/chunk_splitter.py +0 -0
  81. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/naive/registry.py +0 -0
  82. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/naive/simple_ast.py +0 -0
  83. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/naive/tag_splitter.py +0 -0
  84. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/node.py +0 -0
  85. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/splitter.py +0 -0
  86. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/treesitter/__init__.py +0 -0
  87. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/treesitter/_tests/__init__.py +0 -0
  88. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/treesitter/_tests/languages/fortran.f90 +0 -0
  89. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/treesitter/_tests/languages/ibmhlasm.asm +0 -0
  90. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/treesitter/_tests/languages/matlab.m +0 -0
  91. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/treesitter/_tests/test_treesitter.py +0 -0
  92. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/language/treesitter/treesitter.py +0 -0
  93. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/llm/__init__.py +0 -0
  94. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/llm/model_callbacks.py +0 -0
  95. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/llm/models_info.py +0 -0
  96. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/__init__.py +0 -0
  97. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/_tests/__init__.py +0 -0
  98. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/_tests/asm_test_file.asm +0 -0
  99. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/_tests/mumps_test_file.m +0 -0
  100. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/_tests/reference.py +0 -0
  101. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/_tests/target.py +0 -0
  102. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/_tests/test_bleu.py +0 -0
  103. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/_tests/test_chrf.py +0 -0
  104. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/_tests/test_file_pairing.py +0 -0
  105. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/_tests/test_reading.py +0 -0
  106. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/_tests/test_rouge_score.py +0 -0
  107. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/_tests/test_similarity_score.py +0 -0
  108. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/_tests/test_treesitter_metrics.py +0 -0
  109. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/bleu.py +0 -0
  110. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/chrf.py +0 -0
  111. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/cli.py +0 -0
  112. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/complexity_metrics.py +0 -0
  113. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/file_pairing.py +0 -0
  114. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/prompts/clarity.txt +0 -0
  115. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/prompts/completeness.txt +0 -0
  116. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/prompts/faithfulness.txt +0 -0
  117. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/prompts/hallucination.txt +0 -0
  118. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/prompts/quality.txt +0 -0
  119. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/prompts/readability.txt +0 -0
  120. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/prompts/usefulness.txt +0 -0
  121. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/reading.py +0 -0
  122. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/rouge_score.py +0 -0
  123. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/similarity.py +0 -0
  124. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/metrics/splitting.py +0 -0
  125. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/parsers/__init__.py +0 -0
  126. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/parsers/_tests/__init__.py +0 -0
  127. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/parsers/_tests/test_code_parser.py +0 -0
  128. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/parsers/code_parser.py +0 -0
  129. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/parsers/doc_parser.py +0 -0
  130. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/parsers/eval_parser.py +0 -0
  131. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/parsers/eval_parsers/incose_parser.py +0 -0
  132. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/parsers/eval_parsers/inline_comment_parser.py +0 -0
  133. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/parsers/parser.py +0 -0
  134. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/parsers/partition_parser.py +0 -0
  135. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/parsers/uml.py +0 -0
  136. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/__init__.py +0 -0
  137. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/prompt.py +0 -0
  138. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/README.md +0 -0
  139. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/basic_aggregation/human.txt +0 -0
  140. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/basic_aggregation/system.txt +0 -0
  141. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/basic_refinement/human.txt +0 -0
  142. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/basic_refinement/system.txt +0 -0
  143. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/diagram/human.txt +0 -0
  144. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/diagram/system.txt +0 -0
  145. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/diagram_with_documentation/human.txt +0 -0
  146. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/diagram_with_documentation/system.txt +0 -0
  147. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/document/human.txt +0 -0
  148. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/document/system.txt +0 -0
  149. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/document_cloze/human.txt +0 -0
  150. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/document_cloze/system.txt +0 -0
  151. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/document_cloze/variables.json +0 -0
  152. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/document_cloze/variables_asm.json +0 -0
  153. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/document_inline/human.txt +0 -0
  154. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/eval_prompts/incose/human.txt +0 -0
  155. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/eval_prompts/incose/system.txt +0 -0
  156. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/eval_prompts/incose/variables.json +0 -0
  157. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/eval_prompts/inline_comments/human.txt +0 -0
  158. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/eval_prompts/inline_comments/system.txt +0 -0
  159. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/eval_prompts/inline_comments/variables.json +0 -0
  160. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/micromanaged_mumps_v1.0/human.txt +0 -0
  161. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/micromanaged_mumps_v1.0/system.txt +0 -0
  162. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/micromanaged_mumps_v2.0/human.txt +0 -0
  163. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/micromanaged_mumps_v2.0/system.txt +0 -0
  164. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/micromanaged_mumps_v2.1/human.txt +0 -0
  165. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/micromanaged_mumps_v2.1/system.txt +0 -0
  166. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/multidocument/human.txt +0 -0
  167. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/multidocument/system.txt +0 -0
  168. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/partition/human.txt +0 -0
  169. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/partition/system.txt +0 -0
  170. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/partition/variables.json +0 -0
  171. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/pseudocode/human.txt +0 -0
  172. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/pseudocode/system.txt +0 -0
  173. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/fix_exceptions/human.txt +0 -0
  174. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/fix_exceptions/system.txt +0 -0
  175. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/format/code_format/human.txt +0 -0
  176. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/format/code_format/system.txt +0 -0
  177. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/format/requirements_format/human.txt +0 -0
  178. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/format/requirements_format/system.txt +0 -0
  179. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/hallucination/human.txt +0 -0
  180. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/hallucination/system.txt +0 -0
  181. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/reflection/human.txt +0 -0
  182. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/reflection/incose/human.txt +0 -0
  183. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/reflection/incose/system.txt +0 -0
  184. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/reflection/incose_deduplicate/human.txt +0 -0
  185. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/reflection/incose_deduplicate/system.txt +0 -0
  186. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/reflection/system.txt +0 -0
  187. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/revision/human.txt +0 -0
  188. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/revision/incose/human.txt +0 -0
  189. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/revision/incose/system.txt +0 -0
  190. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/revision/incose_deduplicate/human.txt +0 -0
  191. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/revision/incose_deduplicate/system.txt +0 -0
  192. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/revision/system.txt +0 -0
  193. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/uml/alc_fix_variables/human.txt +0 -0
  194. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/uml/alc_fix_variables/system.txt +0 -0
  195. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/uml/fix_connections/human.txt +0 -0
  196. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/refinement/uml/fix_connections/system.txt +0 -0
  197. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/requirements/human.txt +0 -0
  198. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/requirements/system.txt +0 -0
  199. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/retrieval/language_docs/human.txt +0 -0
  200. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/retrieval/language_docs/system.txt +0 -0
  201. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/simple/human.txt +0 -0
  202. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/prompts/templates/simple/system.txt +0 -0
  203. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/refiners/format.py +0 -0
  204. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/refiners/refiner.py +0 -0
  205. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/refiners/uml.py +0 -0
  206. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/retrievers/retriever.py +0 -0
  207. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/utils/__init__.py +0 -0
  208. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/utils/_tests/__init__.py +0 -0
  209. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/utils/_tests/test_logger.py +0 -0
  210. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/utils/_tests/test_progress.py +0 -0
  211. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/utils/enums.py +0 -0
  212. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/utils/logger.py +0 -0
  213. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/utils/pdf_docs_reader.py +0 -0
  214. {janus_llm-4.3.5 → janus_llm-4.4.5}/janus/utils/progress.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: janus-llm
3
- Version: 4.3.5
3
+ Version: 4.4.5
4
4
  Summary: A transcoding library using LLMs.
5
5
  License: Apache 2.0
6
6
  Author: Michael Doyle
@@ -53,7 +53,7 @@ Description-Content-Type: text/markdown
53
53
 
54
54
 
55
55
  <p align="center">
56
- <img src="assets/icons/logo_horizontal.png">
56
+ <img src="https://raw.githubusercontent.com/janus-llm/janus-llm/public/assets/icons/logo_horizontal.png">
57
57
  </p>
58
58
  <p align="center">
59
59
  <a href="https://github.com/janus-llm/janus-llm/actions/workflows/pages.yml" target="_blank">
@@ -78,16 +78,12 @@ Description-Content-Type: text/markdown
78
78
  Janus (`janus-llm`) uses LLMs to aid in the modernization of legacy IT systems. The repository can currently do the following:
79
79
 
80
80
  1. Chunk code of over 100 programming languages to fit within different model context windows and add to a [Chroma](https://trychroma.com) vector database.
81
- 2. Translate from one programming language to another on a file-by-file basis using an LLM with varying results (with the `translate.py` script).
82
- 3. Translate from a binary file to a programming language using Ghidra decompilation.
83
- 4. Do 1-3 with a CLI tool (`janus`).
81
+ 2. Translate from one programming language to another on a file-by-file basis using an LLM.
82
+ 3. Translate from a binary file to a programming language using [Ghidra](https://github.com/NationalSecurityAgency/ghidra) decompilation.
83
+ 4. Generate requirements, UML diagrams, code comments, and summaries from source code.
84
+ 5. Evaluate the products that you generate.
85
+ 6. Do 1-5 with a CLI tool (`janus`).
84
86
 
85
- ## Roadmap
86
-
87
- ### Priorities
88
-
89
- 1. Scripts interacting with Chroma Vector DB for RAG translation and understanding.
90
- 2. Evaluation of outputs in CLI using LLM self-evaluation or static analysis.
91
87
 
92
88
  ## Installation
93
89
 
@@ -111,10 +107,14 @@ export PATH=$PATH:$HOME/.local/bin
111
107
  poetry install
112
108
  ```
113
109
 
110
+ ### Documentation
111
+
112
+ See [the documentation](https://janus-llm.github.io/janus-llm) for more information on how to use the package.
113
+
114
114
  ### Contributing
115
115
 
116
116
  See our [contributing pages](https://janus-llm.github.io/janus-llm/contributing.html)
117
117
 
118
118
  ### Copyright
119
- Copyright ©2024 The MITRE Corporation. ALL RIGHTS RESERVED. Approved for Public Release; Distribution Unlimited. Public Release Case Number 23-4084.
119
+ Copyright ©2025 The MITRE Corporation. ALL RIGHTS RESERVED. Approved for Public Release; Distribution Unlimited. Public Release Case Number 23-4084.
120
120
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  <p align="center">
3
- <img src="assets/icons/logo_horizontal.png">
3
+ <img src="https://raw.githubusercontent.com/janus-llm/janus-llm/public/assets/icons/logo_horizontal.png">
4
4
  </p>
5
5
  <p align="center">
6
6
  <a href="https://github.com/janus-llm/janus-llm/actions/workflows/pages.yml" target="_blank">
@@ -25,16 +25,12 @@
25
25
  Janus (`janus-llm`) uses LLMs to aid in the modernization of legacy IT systems. The repository can currently do the following:
26
26
 
27
27
  1. Chunk code of over 100 programming languages to fit within different model context windows and add to a [Chroma](https://trychroma.com) vector database.
28
- 2. Translate from one programming language to another on a file-by-file basis using an LLM with varying results (with the `translate.py` script).
29
- 3. Translate from a binary file to a programming language using Ghidra decompilation.
30
- 4. Do 1-3 with a CLI tool (`janus`).
28
+ 2. Translate from one programming language to another on a file-by-file basis using an LLM.
29
+ 3. Translate from a binary file to a programming language using [Ghidra](https://github.com/NationalSecurityAgency/ghidra) decompilation.
30
+ 4. Generate requirements, UML diagrams, code comments, and summaries from source code.
31
+ 5. Evaluate the products that you generate.
32
+ 6. Do 1-5 with a CLI tool (`janus`).
31
33
 
32
- ## Roadmap
33
-
34
- ### Priorities
35
-
36
- 1. Scripts interacting with Chroma Vector DB for RAG translation and understanding.
37
- 2. Evaluation of outputs in CLI using LLM self-evaluation or static analysis.
38
34
 
39
35
  ## Installation
40
36
 
@@ -58,9 +54,13 @@ export PATH=$PATH:$HOME/.local/bin
58
54
  poetry install
59
55
  ```
60
56
 
57
+ ### Documentation
58
+
59
+ See [the documentation](https://janus-llm.github.io/janus-llm) for more information on how to use the package.
60
+
61
61
  ### Contributing
62
62
 
63
63
  See our [contributing pages](https://janus-llm.github.io/janus-llm/contributing.html)
64
64
 
65
65
  ### Copyright
66
- Copyright ©2024 The MITRE Corporation. ALL RIGHTS RESERVED. Approved for Public Release; Distribution Unlimited. Public Release Case Number 23-4084.
66
+ Copyright ©2025 The MITRE Corporation. ALL RIGHTS RESERVED. Approved for Public Release; Distribution Unlimited. Public Release Case Number 23-4084.
@@ -5,7 +5,7 @@ from langchain_core._api.deprecation import LangChainDeprecationWarning
5
5
  from janus.converter.translate import Translator
6
6
  from janus.metrics import * # noqa: F403
7
7
 
8
- __version__ = "4.3.5"
8
+ __version__ = "4.4.5"
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)
@@ -33,7 +33,7 @@ def aggregate(
33
33
  output_dir: Annotated[
34
34
  Path,
35
35
  typer.Option(
36
- "--output-dir", "-o", help="The directory to store the translated code in."
36
+ "--output", "-o", help="The directory to store the translated code in."
37
37
  ),
38
38
  ],
39
39
  llm_name: Annotated[
@@ -130,6 +130,6 @@ def aggregate(
130
130
  db_path=db_loc,
131
131
  db_config=collections_config,
132
132
  splitter_type=splitter_type,
133
- prompt_template="basic_aggregation",
133
+ prompt_templates="basic_aggregation",
134
134
  )
135
135
  aggregator.translate(input_dir, output_dir, failure_dir, overwrite, collection)
@@ -10,6 +10,7 @@ from janus.cli.document import document
10
10
  from janus.cli.embedding import embedding
11
11
  from janus.cli.llm import llm
12
12
  from janus.cli.partition import partition
13
+ from janus.cli.pipeline import pipeline
13
14
  from janus.cli.self_eval import llm_self_eval
14
15
  from janus.cli.translate import translate
15
16
  from janus.metrics.cli import evaluate
@@ -101,6 +102,11 @@ translate = app.command(
101
102
  no_args_is_help=True,
102
103
  )(translate)
103
104
 
105
+ pipeline = app.command(
106
+ help="Run a janus pipeline",
107
+ no_args_is_help=True,
108
+ )(pipeline)
109
+
104
110
  app.add_typer(db, name="db")
105
111
  app.add_typer(llm, name="llm")
106
112
  app.add_typer(evaluate, name="evaluate")
@@ -33,6 +33,12 @@ REFINER_TYPES = get_subclasses(janus.refiners.refiner.JanusRefiner).union(
33
33
  )
34
34
  REFINERS = {r.__name__: r for r in REFINER_TYPES}
35
35
 
36
+ CONVERTER_TYPES = get_subclasses(janus.converter.converter.Converter).union(
37
+ {janus.converter.converter.Converter}
38
+ )
39
+
40
+ CONVERTERS = {c.__name__: c for c in CONVERTER_TYPES}
41
+
36
42
 
37
43
  def get_collections_config():
38
44
  if collections_config_file.exists():
@@ -32,7 +32,7 @@ def diagram(
32
32
  output_dir: Annotated[
33
33
  Path,
34
34
  typer.Option(
35
- "--output-dir", "-o", help="The directory to store the translated code in."
35
+ "--output", "-o", help="The directory to store the translated code in."
36
36
  ),
37
37
  ],
38
38
  llm_name: Annotated[
@@ -112,7 +112,7 @@ def diagram(
112
112
  refinement chain",
113
113
  click_type=click.Choice(list(REFINERS.keys())),
114
114
  ),
115
- ] = ["JanusRefiner"],
115
+ ] = ["CodeFormatRefiner"],
116
116
  retriever_type: Annotated[
117
117
  str,
118
118
  typer.Option(
@@ -122,6 +122,24 @@ def diagram(
122
122
  click_type=click.Choice(["active_usings", "language_docs"]),
123
123
  ),
124
124
  ] = None,
125
+ extract_variables: Annotated[
126
+ bool,
127
+ typer.Option(
128
+ "-ev",
129
+ "--extract-variables",
130
+ help="Present when diagram generator should \
131
+ extract variables before producing diagram",
132
+ ),
133
+ ] = False,
134
+ use_janus_inputs: Annotated[
135
+ bool,
136
+ typer.Option(
137
+ "-j",
138
+ "--use-janus-inputs",
139
+ help="Present when diagram generator should be\
140
+ be using janus files as inputs",
141
+ ),
142
+ ] = False,
125
143
  ):
126
144
  from janus.cli.constants import db_loc, get_collections_config
127
145
  from janus.converter.diagram import DiagramGenerator
@@ -141,6 +159,8 @@ def diagram(
141
159
  retriever_type=retriever_type,
142
160
  diagram_type=diagram_type,
143
161
  add_documentation=add_documentation,
162
+ extract_variables=extract_variables,
163
+ use_janus_inputs=use_janus_inputs,
144
164
  )
145
165
  diagram_generator.translate(input_dir, output_dir, failure_dir, overwrite, collection)
146
166
 
@@ -170,9 +190,18 @@ def render(
170
190
  if not output_file.parent.exists():
171
191
  output_file.parent.mkdir()
172
192
 
173
- text = data["output"].replace("\\n", "\n").strip()
174
- output_file.write_text(text)
193
+ def _render(obj, ind=0):
194
+ for o in obj["outputs"]:
195
+ if isinstance(o, dict):
196
+ ind += _render(o, ind)
197
+ else:
198
+ outfile_new = output_file.with_stem(f"{output_file.stem}_{ind}")
199
+ text = o.replace("\\n", "\n").strip()
200
+ outfile_new.write_text(text)
201
+ jar_path = homedir / ".janus/lib/plantuml.jar"
202
+ subprocess.run(["java", "-jar", jar_path, outfile_new]) # nosec
203
+ outfile_new.unlink()
204
+ ind += 1
205
+ return ind
175
206
 
176
- jar_path = homedir / ".janus/lib/plantuml.jar"
177
- subprocess.run(["java", "-jar", jar_path, output_file]) # nosec
178
- output_file.unlink()
207
+ _render(data)
@@ -32,7 +32,7 @@ def document(
32
32
  output_dir: Annotated[
33
33
  Path,
34
34
  typer.Option(
35
- "--output-dir", "-o", help="The directory to store the translated code in."
35
+ "--output", "-o", help="The directory to store the translated code in."
36
36
  ),
37
37
  ],
38
38
  llm_name: Annotated[
@@ -142,6 +142,14 @@ def document(
142
142
  "If unspecificed, model's default max will be used.",
143
143
  ),
144
144
  ] = None,
145
+ use_janus_inputs: Annotated[
146
+ bool,
147
+ typer.Option(
148
+ "-j",
149
+ "--use-janus-inputs",
150
+ help="Present if converter should use janus files as inputs",
151
+ ),
152
+ ] = False,
145
153
  ):
146
154
  from janus.cli.constants import db_loc, get_collections_config
147
155
  from janus.converter.document import ClozeDocumenter, Documenter, MultiDocumenter
@@ -161,6 +169,7 @@ def document(
161
169
  splitter_type=splitter_type,
162
170
  refiner_types=refiner_types,
163
171
  retriever_type=retriever_type,
172
+ use_janus_inputs=use_janus_inputs,
164
173
  )
165
174
  if doc_mode == "cloze":
166
175
  documenter = ClozeDocumenter(comments_per_request=comments_per_request, **kwargs)
@@ -1,5 +1,6 @@
1
1
  import click
2
2
  import typer
3
+ from rich import print
3
4
  from typing_extensions import Annotated
4
5
 
5
6
  from janus.llm.models_info import MODEL_TYPE_CONSTRUCTORS
@@ -45,7 +46,10 @@ def llm_add(
45
46
  if model_type == "HuggingFace":
46
47
  url = typer.prompt("Enter the model's URL")
47
48
  max_tokens = typer.prompt(
48
- "Enter the model's maximum tokens", default=4096, type=int
49
+ "Enter the model's token limit", default=65536, type=int
50
+ )
51
+ max_tokens = typer.prompt(
52
+ "Enter the model's max output tokens", default=8192, type=int
49
53
  )
50
54
  in_cost = typer.prompt("Enter the cost per input token", default=0, type=float)
51
55
  out_cost = typer.prompt("Enter the cost per output token", default=0, type=float)
@@ -61,6 +65,7 @@ def llm_add(
61
65
  )
62
66
  cfg = {
63
67
  "model_type": model_type,
68
+ "model_id": "gpt-4o", # This is a placeholder to use the Azure PromptEngine
64
69
  "model_args": params,
65
70
  "token_limit": max_tokens,
66
71
  "model_cost": {"input": in_cost, "output": out_cost},
@@ -172,8 +177,7 @@ def llm_ls(
172
177
  ):
173
178
  import json
174
179
 
175
- from janus.cli.constants import MODEL_CONFIG_DIR
176
- from janus.llm.models_info import MODEL_TYPES
180
+ from janus.llm.models_info import MODEL_CONFIG_DIR, MODEL_TYPES
177
181
 
178
182
  print("\n[green]User-configured models[/green]:")
179
183
  for model_cfg in MODEL_CONFIG_DIR.glob("*.json"):
@@ -31,7 +31,7 @@ def partition(
31
31
  output_dir: Annotated[
32
32
  Path,
33
33
  typer.Option(
34
- "--output-dir", "-o", help="The directory to store the partitioned code in."
34
+ "--output", "-o", help="The directory to store the partitioned code in."
35
35
  ),
36
36
  ],
37
37
  llm_name: Annotated[
@@ -106,6 +106,14 @@ def partition(
106
106
  help="The limit on the number of tokens per partition.",
107
107
  ),
108
108
  ] = 8192,
109
+ use_janus_inputs: Annotated[
110
+ bool,
111
+ typer.Option(
112
+ "-j",
113
+ "--use-janus-inputs",
114
+ help="Present if converter should use janus inputs",
115
+ ),
116
+ ] = False,
109
117
  ):
110
118
  from janus.converter.partition import Partitioner
111
119
 
@@ -120,6 +128,7 @@ def partition(
120
128
  splitter_type=splitter_type,
121
129
  refiner_types=refiner_types,
122
130
  partition_token_limit=partition_token_limit,
131
+ use_janus_inputs=use_janus_inputs,
123
132
  )
124
133
  partitioner = Partitioner(**kwargs)
125
134
  partitioner.translate(input_dir, output_dir, failure_dir, overwrite)
@@ -0,0 +1,123 @@
1
+ import json
2
+ from pathlib import Path
3
+ from typing import Optional
4
+
5
+ import click
6
+ import typer
7
+ from typing_extensions import Annotated
8
+
9
+ from janus.cli.constants import CONVERTERS
10
+ from janus.converter.chain import ConverterChain
11
+ from janus.utils.enums import LANGUAGES
12
+
13
+
14
+ def instiantiate(x):
15
+ if isinstance(x, dict):
16
+ if "type" in x:
17
+ if "args" not in x:
18
+ x["args"] = []
19
+ x["args"] = [instiantiate(a) for a in x["args"]]
20
+ if "kwargs" not in x:
21
+ x["kwargs"] = {}
22
+ x["kwargs"] = {k: instiantiate(x["kwargs"][k]) for k in x["kwargs"]}
23
+ if x["type"] not in CONVERTERS:
24
+ raise ValueError(f"Error: {x['type']} is not a Converter")
25
+ return CONVERTERS[x["type"]](*x["args"], **x["kwargs"])
26
+ else:
27
+ return {k: instiantiate(x[k]) for k in x}
28
+ elif isinstance(x, list):
29
+ return [instiantiate(a) for a in x]
30
+ else:
31
+ return x
32
+
33
+
34
+ def instiantiate_pipeline(
35
+ pipeline: list[dict],
36
+ language: str = "text",
37
+ model: str = "gpt-4o",
38
+ use_janus_inputs: None | bool = None,
39
+ ):
40
+ if "kwargs" not in pipeline[0]:
41
+ pipeline[0]["kwargs"] = {}
42
+ pipeline[0]["kwargs"].update(source_language=language, model=model)
43
+ if use_janus_inputs is not None:
44
+ pipeline[0]["kwargs"].update(janus_inputs=use_janus_inputs)
45
+ print(pipeline[0])
46
+ converters = [instiantiate(pipeline[0])]
47
+ for p in pipeline[1:]:
48
+ p["kwargs"].update(source_language=converters[-1].target_language, model=model)
49
+ converters.append(instiantiate(p))
50
+ return ConverterChain(*converters)
51
+
52
+
53
+ def pipeline(
54
+ pipeline_file: Annotated[
55
+ Path, typer.Option("-p", "--pipeline", help="Name of pipeline file to use")
56
+ ],
57
+ input_dir: Annotated[
58
+ Path,
59
+ typer.Option(
60
+ "--input",
61
+ "-i",
62
+ help="The directory containing the source code to be translated. "
63
+ "The files should all be in one flat directory.",
64
+ ),
65
+ ],
66
+ language: Annotated[
67
+ str,
68
+ typer.Option(
69
+ "--language",
70
+ "-l",
71
+ help="The language of the source code.",
72
+ click_type=click.Choice(sorted(LANGUAGES)),
73
+ ),
74
+ ],
75
+ output_dir: Annotated[
76
+ Path,
77
+ typer.Option(
78
+ "--output", "-o", help="The directory to store the translated code in."
79
+ ),
80
+ ],
81
+ llm_name: Annotated[
82
+ str,
83
+ typer.Option(
84
+ "--llm",
85
+ "-L",
86
+ help="The custom name of the model set with 'janus llm add'.",
87
+ ),
88
+ ],
89
+ failure_dir: Annotated[
90
+ Optional[Path],
91
+ typer.Option(
92
+ "--failure-directory",
93
+ "-f",
94
+ help="The directory to store failure files during documentation",
95
+ ),
96
+ ] = None,
97
+ overwrite: Annotated[
98
+ bool,
99
+ typer.Option(
100
+ "--overwrite/--preserve",
101
+ help="Whether to overwrite existing files in the output directory",
102
+ ),
103
+ ] = False,
104
+ use_janus_inputs: Annotated[
105
+ Optional[bool],
106
+ typer.Option(
107
+ "-j",
108
+ "--use-janus-inputs",
109
+ help="Present if converter chain should use janus input files",
110
+ ),
111
+ ] = None,
112
+ ):
113
+ with open(pipeline_file, "r") as f:
114
+ json_obj = json.load(f)
115
+ pipeline = instiantiate_pipeline(
116
+ json_obj, language=language, model=llm_name, use_janus_inputs=use_janus_inputs
117
+ )
118
+ pipeline.translate(
119
+ input_directory=input_dir,
120
+ output_directory=output_dir,
121
+ failure_directory=failure_dir,
122
+ overwrite=overwrite,
123
+ )
@@ -31,9 +31,7 @@ def llm_self_eval(
31
31
  ],
32
32
  output_dir: Annotated[
33
33
  Path,
34
- typer.Option(
35
- "--output-dir", "-o", help="The directory to store the evaluations in."
36
- ),
34
+ typer.Option("--output", "-o", help="The directory to store the evaluations in."),
37
35
  ],
38
36
  failure_dir: Annotated[
39
37
  Optional[Path],
@@ -148,6 +148,14 @@ def translate(
148
148
  "If unspecificed, model's default max will be used.",
149
149
  ),
150
150
  ] = None,
151
+ use_janus_inputs: Annotated[
152
+ bool,
153
+ typer.Option(
154
+ "-j",
155
+ "--use-janus-inputs",
156
+ help="Prsent if translator should use janus files as inputs",
157
+ ),
158
+ ] = False,
151
159
  ):
152
160
  from janus.cli.constants import db_loc, get_collections_config
153
161
  from janus.converter.translate import Translator
@@ -173,11 +181,12 @@ def translate(
173
181
  target_version=target_version,
174
182
  max_prompts=max_prompts,
175
183
  max_tokens=max_tokens,
176
- prompt_template=prompt_template,
184
+ prompt_templates=prompt_template,
177
185
  db_path=db_loc,
178
186
  db_config=collections_config,
179
187
  splitter_type=splitter_type,
180
188
  refiner_types=refiner_types,
181
189
  retriever_type=retriever_type,
190
+ use_janus_inputs=use_janus_inputs,
182
191
  )
183
192
  translator.translate(input_dir, output_dir, failure_dir, overwrite, collection)
@@ -59,14 +59,14 @@ class TestTranslator(unittest.TestCase):
59
59
  self.req_translator = RequirementsDocumenter(
60
60
  model="gpt-4o-mini",
61
61
  source_language="fortran",
62
- prompt_template="requirements",
62
+ prompt_templates="requirements",
63
63
  )
64
64
 
65
65
  @pytest.mark.translate
66
66
  def test_translate(self):
67
67
  """Test translate method."""
68
68
  # Delete a file if it's already there
69
- python_file = self.test_file.parent / "python" / f"{self.test_file.stem}.py"
69
+ python_file = self.test_file.parent / "python" / f"{self.test_file.stem}.json"
70
70
  python_file.unlink(missing_ok=True)
71
71
  python_file.parent.rmdir() if python_file.parent.is_dir() else None
72
72
  self.translator.translate(self.test_file.parent, self.test_file.parent / "python")
@@ -82,7 +82,7 @@ class TestTranslator(unittest.TestCase):
82
82
  self.assertRaises(
83
83
  ValueError, self.translator.set_source_language, "scribbledy-doop"
84
84
  )
85
- self.translator.set_prompt("pish posh")
85
+ self.translator.set_prompts(["pish posh"])
86
86
  self.assertRaises(ValueError, self.translator._load_parameters)
87
87
 
88
88
 
@@ -149,10 +149,10 @@ def test_language_combinations(
149
149
  translator.set_model("gpt-4o")
150
150
  translator.set_source_language(source_language)
151
151
  translator.set_target_language(expected_target_language, expected_target_version)
152
- translator.set_prompt(prompt_template)
152
+ translator.set_prompts(prompt_template)
153
153
  translator._load_parameters()
154
154
  assert translator._target_language == expected_target_language # nosec
155
155
  assert translator._target_version == expected_target_version # nosec
156
156
  assert translator._splitter.language == source_language # nosec
157
157
  assert translator._splitter.model.model_name == "gpt-4o" # nosec
158
- assert translator._prompt_template_name == prompt_template # nosec
158
+ assert translator._prompt_template_names == [prompt_template] # nosec