Skip to content

Commit

Permalink
removed old experiments + several files that are not used anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineBarbez committed Jun 15, 2019
1 parent db4f572 commit 7f709be
Show file tree
Hide file tree
Showing 84 changed files with 9 additions and 6,606 deletions.
Binary file modified .DS_Store
Binary file not shown.
6 changes: 3 additions & 3 deletions data_construction/oracle_feature_envy/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

import utils.entityUtils as entityUtils

import detection_tools.feature_envy.hist as hist
import detection_tools.feature_envy.incode as incode
import detection_tools.feature_envy.jdeodorant as jdeodorant
import neural_networks.hist.detect_feature_envy as hist
import neural_networks.incode.detect as incode
import neural_networks.jdeodorant.detect_feature_envy as jdeodorant
24 changes: 6 additions & 18 deletions data_construction/oracle_feature_envy/createCandidateSet.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
import random
import subprocess

'''This script has been used to generate the files in ./candidate_set.
These files have then been used to create some google forms that have been filled
by several peoples to create our oracle'''


### PARAMETERS ###
Expand Down Expand Up @@ -60,9 +63,9 @@
def getSmells(system):
#Get smells
smells = []
smells += jdeodorant.getSmells(system['name'])
smells += hist.getSmells(system['name'], system['hist_params'])
smells += incode.getSmells(system['name'], *system['incode_params'])
smells += jdeodorant.detect(system['name'])
smells += hist.detect_with_params(system['name'], system['hist_params'])
smells += incode.detect_with_params(system['name'], *system['incode_params'])

#Shuffle and remove duplicates
random.shuffle(smells)
Expand Down Expand Up @@ -104,7 +107,6 @@ def getMethodToNameMap(systemName):


if __name__ == "__main__":
'''
# Must create a directory TEMP/ containing all the systems repositories
# at the considered snapshots before using this script

Expand Down Expand Up @@ -135,9 +137,7 @@ def getMethodToNameMap(systemName):
embeddingClassFileName = classToPathMap[embeddingClass].split('/')[-1]

for method in MAP[embeddingClass]:
for enviedClass in MAP[embeddingClass][method]:
if countSmell%52 == 0:
countCSV = countCSV + 1

Expand Down Expand Up @@ -166,16 +166,4 @@ def getMethodToNameMap(systemName):
f.write(',')
f.write('"' + startURL + enviedClassFileName + '"')
f.write('\n')
'''

nb = 0
for system in systems:
smells = []
smells += jdeodorant.getSmells(system['name'])
smells += hist.getSmells(system['name'], system['hist_params'])
smells += incode.getSmells(system['name'], *system['incode_params'])

nb += len(set(smells))

print(system['name'] + ': ' + str(nb))

Binary file removed detection_tools/.DS_Store
Binary file not shown.
Empty file removed detection_tools/__init__.py
Empty file.
Binary file removed detection_tools/feature_envy/.DS_Store
Binary file not shown.
1 change: 0 additions & 1 deletion detection_tools/feature_envy/__init__.py

This file was deleted.

8 changes: 0 additions & 8 deletions detection_tools/feature_envy/context.py

This file was deleted.

103 changes: 0 additions & 103 deletions detection_tools/feature_envy/hist.py

This file was deleted.

103 changes: 0 additions & 103 deletions detection_tools/feature_envy/incode.py

This file was deleted.

40 changes: 0 additions & 40 deletions detection_tools/feature_envy/jdeodorant.py

This file was deleted.

Binary file removed detection_tools/god_class/.DS_Store
Binary file not shown.
Empty file.
7 changes: 0 additions & 7 deletions detection_tools/god_class/context.py

This file was deleted.

49 changes: 0 additions & 49 deletions detection_tools/god_class/decor.py

This file was deleted.

Loading

0 comments on commit 7f709be

Please sign in to comment.