<commit_before>#!/bin/sh

# Required arguments:
#   $1: Relative path to the git repository root.
#   $2: Commit message.
#
# Example: sh add-commit-push.sh repository/ 'This is a commit message!'

# Check if at least 2 arguments were passed.
if [ $# -lt 2 ]
then
    echo 'Missing arguments.'
    exit 2
fi

# Navigate to the repository root folder.
cd $1

# Add all changes.
git add .
git add . -u

# Commit the changes.
git commit -m $2

# Push the changes.
git push
<commit_msg>added quotes around commit message<commit_after>#!/bin/sh

# Required arguments:
#   $1: Relative path to the git repository root.
#   $2: Commit message.
#
# Example: sh add-commit-push.sh repository/ 'This is a commit message!'

# Check if at least 2 arguments were passed.
if [ $# -lt 2 ]
then
    echo 'Missing arguments.'
    exit 2
fi

# Navigate to the repository root folder.
cd $1

# Add all changes.
git add .
git add . -u

# Commit the changes.
git commit -m "$2"

# Push the changes.
git push

{'fraction_non_alphanumeric': 0.10536980749746708, 'fraction_numerical': 0.014184397163120567, 'mean_word_length': 3.0, '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': '7449420', 'n_tokens_mistral': 334, 'n_tokens_neox': 321, 'n_words': 142}