Commit 371bf2d5 authored by scmalte's avatar scmalte
Browse files started working on clustering script

parent 6a4e6679
import re
# import argparse
import logging
import csv
from dataclasses import dataclass
class MossMatch:
legi1: str
percentage1: int
legi2: str
percentage2: int
avg_percentage: int,
lines: int
def main(results_csv_file=DEFAULT_RESULTS_CSV_FILE):
candidate_percentage_pattern = r"([\d-]+) \((\d+)%\)"
with open(results_csv_file, newline="") as csv_fh:
csv_reader = csv.DictReader(csv_fh, delimiter=",", quotechar='"')
for row in csv_reader:
match1 =, row["File 1"])
match2 =, row["File 2"])
moss_match = MossMatch(,,,,
row["Avg. %"],
row["Lines Matched"])
if __name__ == "__main__":
......@@ -24,7 +24,8 @@ setup(
entry_points = {
"console_scripts": [
'mu-moss = mossutils.moss:main',
'mu-revise = mossutils.revise:main'
'mu-revise = mossutils.revise:main',
'mu-cluster = mossutils.cluster:main'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment