12 files = glob.glob(
'**/*onfig.py', recursive=
True)
13 files = files + glob.glob(
'**/*onfigNew.py', recursive=
True)
15 for line
in open(file,
'r', encoding=
"utf-8"):
16 match = re.search(
r"CompFactory\.(\w+\.?\w+) ?\(", line)
19 if fun
in functionDict:
20 functionDict[fun].
add(file)
22 functionDict[fun] = {file}
25 for item
in functionDict.items():
27 duplicates[item[0]]=
list(item[1])
29 with open(
"referenceDuplicates.txt",
"w")
as f:
30 f.write(json.dumps(duplicates))