<commit_before>#!/bin/bash
set -x
set -e
set -u 

./user_common.sh
git config --global user.email "<EMAIL>"

<commit_msg>Add gitconfig alias push-change<commit_after>#!/bin/bash
set -x
set -e
set -u 

./user_common.sh
git config --global user.email "<EMAIL>"

if ! grep push-change ~/.gitconfig; then
cat >> ~/.gitconfig << EOS
[alias]
    push-change = "!bash -c ' \\
        local_ref=\$(git symbolic-ref HEAD); \\
        local_name=\${local_ref##refs/heads/}; \\
        remote=\$(git config branch.\"\$local_name\".remote || echo origin); \\
        remote_ref=\$(git config branch.\"\$local_name\".merge); \\
        remote_name=\${remote_ref##refs/heads/}; \\
        remote_review_ref=\"refs/for/\$remote_name\"; \\
        r=\"\"; \\
        if [[ \$0 != \"\" && \$0 != \"bash\" ]]; then r=\"--reviewer=\$0\"; fi; \\
        if [[ \$1 != \"\" ]]; then r=\"\$r --reviewer=\$1\"; fi; \\
        if [[ \$2 != \"\" ]]; then r=\"\$r --reviewer=\$2\"; fi; \\
        if [[ \$3 != \"\" ]]; then r=\"\$r --reviewer=\$3\"; fi; \\
        if [[ \$4 != \"\" ]]; then r=\"\$r --reviewer=\$4\"; fi; \\
        git push --receive-pack=\"gerrit receive-pack \$r\" \$remote HEAD:\$remote_review_ref'" 
EOS
fi

{'fraction_non_alphanumeric': 0.26788685524126454, 'fraction_numerical': 0.009151414309484194, 'mean_word_length': 2.068877551020408, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1382112', 'n_tokens_mistral': 463, 'n_tokens_neox': 428, 'n_words': 96}