<commit_before>#!/bin/bash
V_TEMP_FILE=$2
V_LOCAL_FILE=$5

if [ -n "$G_SINGLE_MELD_WINDOW" ] ; then
    # Cria diretrio temporrio para copias de arquivo
    V_TEMP_DIR=/tmp/git-meld/
    mkdir -p $V_TEMP_DIR

    V_COPIED_FILE=$(echo $V_TEMP_FILE | sed 's#/tmp/#'$V_TEMP_DIR'#')
    cp -u $V_TEMP_FILE $V_COPIED_FILE

    #echo "Comparando $V_LOCAL_FILE com o SVN"
    echo '--diff '"$V_COPIED_FILE"' '"$V_LOCAL_FILE"
else
    #if [[ "${OSTYPE//[0-9.]/}" == 'darwin' ]]; then
    #    diff $1 $2 | less
    #else
    meld $V_TEMP_FILE $V_LOCAL_FILE # > /dev/null 2>&1
    #fi
fi

# http://mycodesnippets.com/2011/06/04/git-with-meld-diff-viewer-on-ubunt/
# http://nathanhoad.net/how-to-meld-for-git-diffs-in-ubuntu-hardy
# then run this ONCE to configure this file in your local git:
# git config --global diff.external $HOME/bin/git-external-diff.sh
<commit_msg>Call Github client on MacOS, for the git diff command<commit_after>#!/bin/bash
V_TEMP_FILE=$2
V_LOCAL_FILE=$5

if [ -n "$G_SINGLE_MELD_WINDOW" ] ; then
    # Cria diretrio temporrio para copias de arquivo
    V_TEMP_DIR=/tmp/git-meld/
    mkdir -p $V_TEMP_DIR

    V_COPIED_FILE=$(echo $V_TEMP_FILE | sed 's#/tmp/#'$V_TEMP_DIR'#')
    cp -u $V_TEMP_FILE $V_COPIED_FILE

    #echo "Comparando $V_LOCAL_FILE com o SVN"
    echo '--diff '"$V_COPIED_FILE"' '"$V_LOCAL_FILE"
else
    if [[ "${OSTYPE//[0-9.]/}" == 'darwin' ]]; then
        github .
    else
        meld $V_TEMP_FILE $V_LOCAL_FILE # > /dev/null 2>&1
    fi
fi

# http://mycodesnippets.com/2011/06/04/git-with-meld-diff-viewer-on-ubunt/
# http://nathanhoad.net/how-to-meld-for-git-diffs-in-ubuntu-hardy
# then run this ONCE to configure this file in your local git:
# git config --global diff.external $HOME/bin/git-external-diff.sh

{'fraction_non_alphanumeric': 0.1553784860557769, 'fraction_numerical': 0.01707455890722823, 'mean_word_length': 3.3300492610837438, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4768436', 'n_tokens_mistral': 760, 'n_tokens_neox': 736, 'n_words': 150}