File tree Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Expand file tree Collapse file tree 3 files changed +7
-12
lines changed Original file line number Diff line number Diff line change 6
6
from jinja2 import Template
7
7
8
8
from mutahunter .core .logger import logger
9
- from mutahunter .core .repomap import RepoMap
10
9
from mutahunter .core .prompts .factory import PromptFactory
10
+ from mutahunter .core .repomap import RepoMap
11
11
12
12
13
13
class MutationStrategy :
@@ -138,10 +138,9 @@ def generate_mutant(self, repo_map_result):
138
138
"system" : system_template ,
139
139
"user" : user_template ,
140
140
}
141
- print ("system_template:" , system_template )
142
- print ("user_template:" , user_template )
141
+ # print("system_template:", system_template)
142
+ # print("user_template:", user_template)
143
143
144
- exit ()
145
144
model_response , _ , _ = self .router .generate_response (
146
145
prompt = prompt , streaming = True
147
146
)
Original file line number Diff line number Diff line change 2
2
Module for generating prompts based on the programming language.
3
3
"""
4
4
5
- from mutahunter .core .prompts .examples import (
6
- GO_EXAMPLE_OUTPUT ,
7
- JAVA_EXAMPLE_OUTPUT ,
8
- JAVASCRIPT_EXAMPLE_OUTPUT ,
9
- PYTHON_EXAMPLE_OUTPUT ,
10
- )
5
+ from mutahunter .core .prompts .examples import (GO_EXAMPLE_OUTPUT ,
6
+ JAVA_EXAMPLE_OUTPUT ,
7
+ JAVASCRIPT_EXAMPLE_OUTPUT ,
8
+ PYTHON_EXAMPLE_OUTPUT )
11
9
from mutahunter .core .prompts .system import SYSTEM_PROMPT
12
10
from mutahunter .core .prompts .user import USER_PROMPT
13
11
Original file line number Diff line number Diff line change 4
4
5
5
import pytest
6
6
7
- from unittest .mock import mock_open , patch
8
- import json
9
7
from mutahunter .core .entities .config import MutahunterConfig
10
8
from mutahunter .core .entities .mutant import Mutant
11
9
from mutahunter .core .report import MutantReport
You can’t perform that action at this time.
0 commit comments