<commit_before>#! /bin/bash
# Merge pushes to dev to master branch
export PAGER=cat
GIT_USER="$2"
GIT_PASS="$3"

CURRENT_BRANCH=$(git log -n 1 --pretty=%d HEAD | cut -d"," -f3 | cut -d" " -f2 | cut -d")" -f1)
FROM_BRANCH="dev"
TO_BRANCH="master"
echo "current branch is '$CURRENT_BRANCH'"
if [ "$CURRENT_BRANCH" = "$FROM_BRANCH" ] ; then
    git checkout $FROM_BRANCH && \
    echo "Checking out $TO_BRANCH..." && \
    git pull origin $TO_BRANCH && \
    git checkout $TO_BRANCH && \
    echo "Merging changes..." && \
    git merge $FROM_BRANCH && \
    echo "Pushing changes..." && \
    spawn git push && \
    expect ":" && \
    send "$GIT_USER" && \
    expect ":" && \
    send "$GIT_PASS" && \
    echo "Merge complete!" || \
    echo "Error Occurred. Merge failed"
else
    echo "Not on $FROM_BRANCH. Skipping merge"
fi
<commit_msg>Fixing the travis merge issue<commit_after>#! /bin/bash
# Merge pushes to dev to master branch
export PAGER=cat
GIT_USER="$2"
GIT_PASS="$3"

CURRENT_BRANCH=$(git log -n 1 --pretty=%d HEAD | cut -d"," -f3 | cut -d" " -f2 | cut -d")" -f1)
FROM_BRANCH="dev"
TO_BRANCH="master"
echo "current branch is '$CURRENT_BRANCH'"
if [ "$CURRENT_BRANCH" = "$FROM_BRANCH" ] ; then
    git checkout $FROM_BRANCH && \
    echo "Checking out $TO_BRANCH..." && \
    git fetch && \
    git status && \
    git checkout $TO_BRANCH && \
    echo "Merging changes..." && \
    git merge $FROM_BRANCH && \
    echo "Pushing changes..." && \
    spawn git push && \
    expect ":" && \
    send "$GIT_USER" && \
    expect ":" && \
    send "$GIT_PASS" && \
    echo "Merge complete!" || \
    echo "Error Occurred. Merge failed"
else
    echo "Not on $FROM_BRANCH. Skipping merge"
fi

{'fraction_non_alphanumeric': 0.17146212566059893, 'fraction_numerical': 0.007046388725778039, 'mean_word_length': 2.769911504424779, 'pattern_counts': {'":': 4, '<': 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': '1575231', 'n_tokens_mistral': 652, 'n_tokens_neox': 639, 'n_words': 178}