<commit_before>package testBench.ids.kdd99


import java.util.List;

import weka.core.Instances;
import testBench.ids.kdd99.dal.*;
import testBench.ids.kdd99.datasetHelpers.*;
import testBench.ids.kdd99.modelHelpers.*;
import testBench.ids.kdd99.helpers.*;


Instances data = null;

ClassifiersAndArguments.classifierList.each() {
	classifierAndOption-> 

	System.gc();

	String datasetName = "combined_createFullKdd99TrainingDatasetForBinary";

	String classifierName = classifierAndOption.Classifier
	String options = classifierAndOption.Options


	data = MyUtilsForWekaInstanceHelper.getInstanceFromFile(Finals.ARFF_SAVE_FOLDER + datasetName + ".arff");

	Date trainingStartTime = DateHelper.getNow();
	ModelFilesHelper.saveModels(data,datasetName,classifierName,options);


	RuntimeInformation inf = RuntimeInformationHelper.getRuntimeInformation();


	Date trainingFinishTime = DateHelper.getNow();

	MlTrainResultsDal.Ekle(
	    datasetName
	    ,classifierName
	    ,options
	    ,trainingStartTime
	    ,trainingFinishTime
	    ,inf)

}; 
<commit_msg>refactor<commit_after>package testBench.ids.kdd99


import java.util.List;

import weka.core.Instances;
import testBench.ids.kdd99.dal.*;
import testBench.ids.kdd99.datasetHelpers.*;
import testBench.ids.kdd99.modelHelpers.*;
import testBench.ids.kdd99.helpers.*;


Instances data = null;

ClassifiersAndArguments.classifierList.each() {
	classifierAndOption-> 

	System.gc();

	String datasetName = "combined_createFullKdd99TrainingDatasetForBinary";

	String classifierName = classifierAndOption.Classifier
	String options = classifierAndOption.Options


	data = MyUtilsForWekaInstanceHelper.getInstanceFromFile(Finals.ARFF_SAVE_FOLDER + datasetName + ".arff");

	Date trainingStartTime = DateHelper.getNow();
	ModelFilesHelper.saveModel(data,datasetName,classifierName,options);


	RuntimeInformation inf = RuntimeInformationHelper.getRuntimeInformation();


	Date trainingFinishTime = DateHelper.getNow();

	MlTrainResultsDal.Ekle(
	    datasetName
	    ,classifierName
	    ,options
	    ,trainingStartTime
	    ,trainingFinishTime
	    ,inf)

}; 

{'fraction_non_alphanumeric': 0.09375, 'fraction_numerical': 0.011363636363636364, 'mean_word_length': 5.623824451410658, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4945508', 'n_tokens_mistral': 704, 'n_tokens_neox': 644, 'n_words': 100}