Skip to content

Commit 3d5c51a

Browse files
committed
Major restructuring in the main branch
1 parent c355a31 commit 3d5c51a

File tree

177 files changed

+1236
-1260
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+1236
-1260
lines changed

codart/codart_cli.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@
2525
# from gen.java9.Java9_v2Parser import Java9_v2Parser # Old slow grammar parser
2626
# from java9speedy.parser import sa_java9_v2 # Old slow grammar enhanced by CPP backend
2727

28-
from gen.javaLabeled.JavaLexer import JavaLexer # Java8 grammar efficient lexer
29-
from gen.javaLabeled.JavaParserLabeled import JavaParserLabeled # Java8 grammar efficient parser labeled
28+
from codart.gen.javaLabeled.JavaLexer import JavaLexer # Java8 grammar efficient lexer
29+
from codart.gen.javaLabeled.JavaParserLabeled import JavaParserLabeled # Java8 grammar efficient parser labeled
3030

3131
# Import refactorings listeners
32-
from refactorings.encapsulate_field import EncapsulateFiledRefactoringListener # CodART first refactoring :)
33-
from refactorings.extract_class import ExtractClassRefactoringListener
32+
from codart.refactorings.encapsulate_field import EncapsulateFiledRefactoringListener # CodART first refactoring :)
3433

3534

3635
def main(args):

sbse/config.py renamed to codart/config.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
'jvlt-1.3.2', # 10
5353
'tabula-java', # 11
5454
'JHotDraw-7.0.6', # 12
55+
'jhotdraw-6.0b1', # 13
5556
],
5657

5758
# Understand DB Path
@@ -82,6 +83,8 @@
8283
'tabula-java.und',
8384
# 'JHotDraw-7.0.6.udb', # 12
8485
'JHotDraw-7.0.6.und', # 12
86+
# 'jhotdraw-6.0b1.udb', # 13
87+
'jhotdraw-6.0b1.und', # 13
8588
],
8689

8790
# CSV files path containing code smells identified by JDeodorant
@@ -99,6 +102,7 @@
99102
'jVLT-1.3.2/Long-Method2_jvlt-1.3.2.csv',
100103
'tabula-java/fake.csv',
101104
'JHotDraw-7.0.6/Long-Method2_JHotDraw-7.0.6.csv',
105+
'jhotdraw-6.0b1/Long-Method2_jhotdraw-6.0b1.csv',
102106
],
103107

104108
'FEATURE_ENVY': [
@@ -115,6 +119,7 @@
115119
'jVLT-1.3.2/Feature-Envy_jvlt-1.3.2.csv',
116120
'tabula-java/Feature-Envy-Tabula-v1.0.6.csv',
117121
'JHotDraw-7.0.6/Featuer-Envy2_JHotDraw-7.0.6.csv',
122+
'jhotdraw-6.0b1/Featuer-Envy2_jhotdraw-6.0b1.csv',
118123
],
119124

120125
'GOD_CLASS': [
@@ -130,7 +135,8 @@
130135
'JSON20201115/God-Class_JASON-20201115.csv',
131136
'jVLT-1.3.2/God-Class_jvlt-1.3.2.csv',
132137
'tabula-java/God-Class-Tabula-v1.0.6.csv',
133-
'JHotDraw-7.0.6/God-Class_JHotDraw-7.0.6.csv'
138+
'JHotDraw-7.0.6/God-Class_JHotDraw-7.0.6.csv',
139+
'jhotdraw-6.0b1/God-Class_jhotdraw-6.0b1.csv',
134140
],
135141
}
136142

@@ -353,6 +359,22 @@
353359
'TEST': 1., # Obtained by testability_prediction2
354360
'TEST3': 1. # Obtained by testability_prediction3
355361
},
362+
"jhotdraw-6.0b1": { # 13
363+
'ANA': 1.,
364+
'CAMC': 1.,
365+
'CIS': 1.,
366+
'DAM': 1.,
367+
'DCC': 1.,
368+
'DSC': 1.,
369+
'MFA': 1.,
370+
'MOA': 1.,
371+
'NOH': 1.,
372+
'NOM': 1.,
373+
'NOP': 1.,
374+
'MODULE': 1.,
375+
'TEST': 1., # Obtained by testability_prediction2
376+
'TEST3': 1. # Obtained by testability_prediction3
377+
},
356378
}
357379

358380
CURRENT_METRICS = INITIAL_METRICS.get(PROJECT_NAME)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)