Skip to content
Snippets Groups Projects
Commit cbd751bb authored by Rawel's avatar Rawel
Browse files

fixing commit is stored in unclassified and has no differentiation

parent e14d4a0f
Branches
No related tags found
No related merge requests found
......@@ -50,15 +50,7 @@ def store_vcc(mapping: dict):
def store_fixing_commit(mapping: dict):
config_code = mapping["fixing_config_code"]
repo_path = get_config_nodes_repo_dict()[config_code].find("./path").text
directory = "Classifier/Training/unclassified"
if mapping["determined_by_heuristic"] == 0:
directory = f"{directory}/{config_code.lower()}/ground_truth"
else:
if mapping["confidence_value"] == 1:
directory = f"{directory}/{config_code.lower()}/confident"
else:
directory = f"{directory}/{config_code.lower()}/not_confident"
directory = f"Training/unclassified/{config_code.lower()}"
try:
if os.path.exists(f"{directory}/{mapping['fixing_sha']}.json"):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment