<commit_before>#!/bin/bash

moveToTrash() {
    _FROM=$@

    for f in "$_FROM"; do
        _TO=~/.Trash/$(basename "$f")

        if [ -a "$_TO" ]; then
            _TO="$_TO $(date +"%T")"
        fi

        mv "$f" "$_TO"
    done
}

printFileFromZip() {
    _FILE=$1
    _ZIP=$2

    unzip -q -c $_ZIP $_FILE
}

printManifestFromZip() {
    _ZIP=$1

    printFileFromZip "META-INF/MANIFEST.MF" $_ZIP
}

gdw() {
    _GDW_DIR=$(pwd)

    while [ "$_GDW_DIR" != "/" ]; do
        _GDW_PATH="$_GDW_DIR/gradlew"
        if [ -f $_GDW_PATH ]; then
            $_GDW_PATH --stacktrace "$@"
            break;
        fi

        _GDW_DIR=$(dirname $_GDW_DIR)
        echo $_GDW_DIR
    done
}

initEclipseWorkspace() {
    _DIR=$1

    if [ -z "$_DIR" ]; then
        _DIR=$(pwd)
    fi

    mkdir -p $_DIR
    cp -r $DOTFILES/eclipse-workspace/. $_DIR/
}

iEW() {
    initEclipseWorkspace $@
}<commit_msg>added initAnsibleRoles<commit_after>#!/bin/bash

moveToTrash() {
    _FROM=$@

    for f in "$_FROM"; do
        _TO=~/.Trash/$(basename "$f")

        if [ -a "$_TO" ]; then
            _TO="$_TO $(date +"%T")"
        fi

        mv "$f" "$_TO"
    done
}

printFileFromZip() {
    _FILE=$1
    _ZIP=$2

    unzip -q -c $_ZIP $_FILE
}

printManifestFromZip() {
    _ZIP=$1

    printFileFromZip "META-INF/MANIFEST.MF" $_ZIP
}

gdw() {
    _GDW_DIR=$(pwd)

    while [ "$_GDW_DIR" != "/" ]; do
        _GDW_PATH="$_GDW_DIR/gradlew"
        if [ -f $_GDW_PATH ]; then
            $_GDW_PATH --stacktrace "$@"
            break;
        fi

        _GDW_DIR=$(dirname $_GDW_DIR)
        echo $_GDW_DIR
    done
}

initEclipseWorkspace() {
    _DIR=$1

    if [ -z "$_DIR" ]; then
        _DIR=$(pwd)
    fi

    mkdir -p $_DIR
    cp -r $DOTFILES/eclipse-workspace/. $_DIR/
}

iEW() {
    initEclipseWorkspace $@
}

initAnsibleRoles() {
    for role in "$@"; do
        mkdir -p "$role"/{defaults,tasks,templates}
    done
}

iAR() {
    initAnsibleRoles "$@"
}
{'fraction_non_alphanumeric': 0.1690427698574338, 'fraction_numerical': 0.004073319755600814, 'mean_word_length': 1.9025110782865584, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5285838', 'n_tokens_mistral': 828, 'n_tokens_neox': 787, 'n_words': 154}