Skip to content

Commit b5688a9

Browse files
Made some minor modifications
1 parent 5b9f9e8 commit b5688a9

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

src/classify.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ def main():
7676
current_dir = os.path.dirname(os.path.abspath( \
7777
inspect.getfile(inspect.currentframe())))
7878

79-
data_set_file = "./pre_processing_experiments/output_with_cleaning_without_stemming_without_lemmatizing_with_stop_words_removal_with_punctuation_removal_with_numbers_removal.json" # The path of the file which
79+
data_set_file = "./mozilla_firefox/pre_processing_experiments/output_without_cleaning_without_stemming_without_lemmatizing_without_stop_words_removal_without_punctuation_removal_without_numbers_removal.json" # The path of the file which
80+
# "./eclipse_jdt/pre_processing_experiments/output_without_cleaning_without_stemming_without_lemmatizing_without_stop_words_removal_without_punctuation_removal_without_numbers_removal.json"
81+
# "./mozilla_firefox/pre_processing_experiments/output_without_cleaning_without_stemming_without_lemmatizing_without_stop_words_removal_without_punctuation_removal_without_numbers_removal.json"
82+
8083
# contains the pre-processed output
8184
# Below, the path of the file which contains a dictionary related
8285
# to the mappings of the developers
@@ -92,8 +95,10 @@ def main():
9295

9396
# First we load the data of the three aforementioned files
9497
json_data = load_data_set(data_set_file)
95-
developers_dict_data = load_developers_mappings(developers_dict_file)
96-
developers_list_data = load_distinct_developers_list(developers_list_file)
98+
developers_dict_data = None
99+
# developers_dict_data = load_developers_mappings(developers_dict_file)
100+
developers_list_data = None
101+
# developers_list_data = load_distinct_developers_list(developers_list_file)
97102

98103
# sm = SMOTE(random_state=42)
99104

src/eclipse_jdt/pre_processing_experiments/eclipse_data_pre_processer.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ def main():
9797
data_file = os.path.join(current_dir, data_file)
9898

9999
# The flags which are used to initialize the pre-processor
100-
clean_brs = True
101-
use_stemmer = True
100+
clean_brs = False
101+
use_stemmer = False
102102
use_lemmatizer = False
103-
stop_words_removal = True
104-
punctuation_removal = True
105-
numbers_removal = True
103+
stop_words_removal = False
104+
punctuation_removal = False
105+
numbers_removal = False
106106

107107
# Below, we are giving a relevant name to the output file
108108
clean_brs_string = "" if clean_brs else "out"

src/mozilla_firefox/pre_processing_experiments/mozilla_data_pre_processer.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ def main():
9393
data_file = os.path.join(current_dir, data_file)
9494

9595
# The flags which are used to initialize the pre-processor
96-
clean_brs = True
97-
use_stemmer = True
96+
clean_brs = False
97+
use_stemmer = False
9898
use_lemmatizer = False
99-
stop_words_removal = True
100-
punctuation_removal = True
101-
numbers_removal = True
99+
stop_words_removal = False
100+
punctuation_removal = False
101+
numbers_removal = False
102102

103103
# Below, we are giving a relevant name to the output file
104104
clean_brs_string = "" if clean_brs else "out"

0 commit comments

Comments
 (0)