<commit_before>#!/usr/bin/env bash

# set these to your local environment
PROJECTREPOSITORY="/home/marvin/projectrepository"

RunAlg () {
    CONFIDENCE="-C "${1}
    if ${2}; then
        OPTS="-"${2}
    fi
    echo run weka -c "weka.classifiers.trees.J48 -t ${PROJECTREPOSITORY}/results/all.arff -x 2 ${OPTS} ${CONFIDENCE} ${OPTS}"
    weka -m2G -c "weka.classifiers.trees.J48 -t ${PROJECTREPOSITORY}/results/all.arff -x 2 ${OPTS} ${CONFIDENCE}" > "${PROJECTREPOSITORY}/WekaResults/J48-C{1}${2}.txt"
}

RunAllJ48() {
    for confidence in 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
    do
        RunAlg $confidence
        RunAlg $confidence S
    done
}

#RunAlg 0.1
RunAllJ48<commit_msg>Modify J48 for Firat.<commit_after>#!/usr/bin/env bash

# set these to your local environment
PROJECTREPOSITORY="/home/marvin/projectrepository"

RunAlg () {
    CONFIDENCE="-C "${1}
    if [ ${2}=S ]; then
        OPTS="-"${2}
    fi
    echo run weka -c "weka.classifiers.trees.J48 -t ${PROJECTREPOSITORY}/results/all.arff -x 2 ${OPTS} ${CONFIDENCE} ${OPTS}"
    weka -m2G -c "weka.classifiers.trees.J48 -t ${PROJECTREPOSITORY}/results/all.arff -x 2 ${OPTS} ${CONFIDENCE}" > "${PROJECTREPOSITORY}/WekaResults/J48-C${1}${2}.txt"
}

RunAllJ48() {
    #for confidence in 0.1 0.15 0.2 
    #do
    #    RunAlg $confidence S
    #done

    for confidence in 0.35 0.4 0.45 0.5
    do
        RunAlg $confidence
        RunAlg $confidence S
    done

}

RunAllJ48
{'fraction_non_alphanumeric': 0.16022099447513813, 'fraction_numerical': 0.054558011049723756, 'mean_word_length': 2.9056603773584904, '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': '304909', 'n_tokens_mistral': 641, 'n_tokens_neox': 583, 'n_words': 132}