<commit_before>#!/bin/bash

travis_build_dir="/home/travis/build/jdgillespie91/twads"
setup_file="${travis_build_dir}/setup.py"

# Determine release version (increment revision number only).
version=$(grep version "${setup_file}" | cut -d\' -f2)
echo "Current version: ${version}"
release_version=${version/%${version##*.}/$((${version##*.}+1))}
echo "Release version: ${release_version}"

echo "DEBUG: ${setup_file}"
echo "DEBUG: $(ls "${setup_file}")"

# Add the version, commit to master and push.
sed -i "s/${version}/${release_version}/" "${setup_file}"

# Git stuff
cd ${travis_build_dir}

echo "DEBUG: Setting user"
git config user.email "<EMAIL>"
git config user.name "<NAME>"
echo "DEBUG: $(git config --get user.email)"
echo "DEBUG: $(git config --get user.name)"

echo "DEBUG: First status"
git status
echo "DEBUG: Add"
git add setup.py
echo "DEBUG: Second status"
git status
echo "DEBUG: Commit"
git commit -m "[ci skip] Bump version"
echo "DEBUG: URL"
echo "DEBUG: $(git remote show origin)"
echo "DEBUG: Changing URL"
git remote set-url origin "https://15dee39ff8dc11de98cc7170ef085245c7123154@github.com/jdgillespie91/twads.git"
echo "DEBUGi: Push"
git push origin master

# Create the release.<commit_msg>Arbitrary change<commit_after>#!/bin/bash

travis_build_dir="/home/travis/build/jdgillespie91/twads"
setup_file="${travis_build_dir}/setup.py"

# Determine release version (increment revision number only).
version=$(grep version "${setup_file}" | cut -d\' -f2)
echo "Current version: ${version}"
release_version=${version/%${version##*.}/$((${version##*.}+1))}
echo "Release version: ${release_version}"

echo "DEBUG: ${setup_file}"
echo "DEBUG: $(ls "${setup_file}")"

# Add the version, commit to master and push.
sed -i "s/${version}/${release_version}/" "${setup_file}"

# Git stuff
cd ${travis_build_dir}

echo "DEBUG: Setting user"
git config user.email "<EMAIL>"
git config user.name "<NAME>"
echo "DEBUG: $(git config --get user.email)"
echo "DEBUG: $(git config --get user.name)"

echo "DEBUG: First status"
git status
echo "DEBUG: Add"
git add setup.py
echo "DEBUG: Second status"
git status
echo "DEBUG: Commit"
git commit -m "[ci skip] Bump version"
echo "DEBUG: URL"
echo "DEBUG: $(git remote show origin)"
echo "DEBUG: Changing URL"
git remote set-url origin "https://15dee39ff8dc11de98cc7170ef085245c7123154@github.com/jdgillespie91/twads.git"
echo "DEBUG: Push"
git push origin master

# Create the release.
{'fraction_non_alphanumeric': 0.16202945990180032, 'fraction_numerical': 0.02618657937806874, 'mean_word_length': 5.754143646408839, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1713812', 'n_tokens_mistral': 854, 'n_tokens_neox': 821, 'n_words': 256}