Skip to content

Commit 92e71e8

Browse files
committed
change base_model.py
1 parent 2bd71cf commit 92e71e8

File tree

5 files changed

+20
-2
lines changed

5 files changed

+20
-2
lines changed

result/RQ2/Statistics/BH_p_values.csv

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"name","NGram","NGram_C","TMI_LR","TMI_SVM","TMI_MNB","TMI_DT","TMI_RF","LineDP"
2+
"recall",1.87285481028359e-10,1.27604338360691e-20,1.52109717222353e-21,1.52109717222353e-21,6.71249288592909e-19,1.52109717222353e-21,1.52109717222353e-21,1.52109717222353e-21
3+
"far",7.52075265205066e-19,0.173189816414316,1.52109717222353e-21,1.52109717222353e-21,0.072776174986797,1.52109717222353e-21,1.52109717222353e-21,1.52109717222353e-21
4+
"ce",4.26231503646633e-17,3.57056029472146e-21,1.52109717222353e-21,1.52109717222353e-21,3.13778314020984e-20,1.52109717222353e-21,1.52109717222353e-21,1.52109717222353e-21
5+
"d2h",1.32489182208666e-14,7.39565177618716e-21,1.52109717222353e-21,1.52109717222353e-21,1.26754653716395e-18,1.52109717222353e-21,1.52109717222353e-21,1.52109717222353e-21
6+
"mcc",3.90897063965622e-21,1.58261872400328e-21,3.69811472700596e-20,7.65753469869576e-20,2.10508179435394e-21,1.52109717222353e-21,1.52109717222353e-21,4.71809777155559e-21
7+
"ifa",4.52909682166558e-12,8.15393451118239e-16,0.0332470506095718,0.0431238908245842,1.70644430262023e-09,0.562390604160558,0.342839501073457,0.00749301631788471
8+
"recall_20",2.00715856222663e-14,2.3651713872809e-20,1.52109717222353e-21,1.52109717222353e-21,5.68649655323065e-18,1.52109717222353e-21,8.51438551521157e-21,6.33148906228929e-15
9+
"ratio",2.48083414336022e-05,1.14361471415013e-16,1.52109717222353e-21,1.52109717222353e-21,6.5927736821101e-14,1.52109717222353e-21,1.52109717222353e-21,5.37993471989837e-21

result/RQ3/Statistics/BH_p_values.csv

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
"name","PMD","CheckStyle"
2+
"recall",2.8551544020024e-21,1.366022223333e-20
3+
"far",1.366022223333e-20,0.480520818731706
4+
"ce",2.8551544020024e-21,4.49661591532612e-21
5+
"d2h",2.8551544020024e-21,1.16452012929794e-20
6+
"mcc",2.8551544020024e-21,2.8551544020024e-21
7+
"ifa",6.25138266101127e-06,1.59710138199397e-16
8+
"recall_20",2.8551544020024e-21,1.39915352573231e-20
9+
"ratio",3.16580118369903e-20,2.27420362224682e-13
76 Bytes
Binary file not shown.

src/models/base_model.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ def analyze_line_level_result(self):
242242
ifa, r_20 = self.rank_strategy_3() # Strategy 1
243243

244244
################################ Bug hit ratio ################################################
245-
# buggy_lines_dict = read_dict_from_file(f'{self.commit_buggy_path}/{self.test_release}_commit_buggy_lines.csv')
246-
buggy_lines_dict = {} # = read_dict_from_file(f'{self.commit_buggy_path}/{self.test_release}_commit_buggy_lines.csv')
245+
buggy_lines_dict = read_dict_from_file(f'{self.commit_buggy_path}/{self.test_release}_commit_buggy_lines.csv')
246+
# buggy_lines_dict = {} # = read_dict_from_file(f'{self.commit_buggy_path}/{self.test_release}_commit_buggy_lines.csv')
247247
total_bugs = len(buggy_lines_dict.keys())
248248
hit_bugs = set()
249249
for line in self.predicted_buggy_lines:
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)