<commit_before>#!/usr/bin/env bash

csource="${BASH_SOURCE[0]}"
while [ -h "$csource" ] ; do csource="$(readlink "$csource")"; done
root="$( cd -P "$( dirname "$csource" )/../" && pwd )"

. "${root}/.ci/common.sh"

export PATH="${PATH}:${root}/.ci"

pushd "${root}" > "${output}"

if [ "${repo_name}" = "${vagrant-installers}" ]; then
    remote_repository="hashicorp/vagrant-builders"
else
    remote_repository="hashicorp/vagrant-installers"
fi

wrap git remote add mirror "https://${HASHIBOT_USER}:${HASHIBOT_TOKEN}@github.com/${remote_repository}" \
     "Failed to add mirror repository (${remote_repository}) for sync"
wrap git update \
     "Failed to update mirror repository (${remote_repository}) for sync"
wrap git push mirror master \
     "Failed to sync mirror repository (${remote_repository})"<commit_msg>Update should be applied to remote<commit_after>#!/usr/bin/env bash

csource="${BASH_SOURCE[0]}"
while [ -h "$csource" ] ; do csource="$(readlink "$csource")"; done
root="$( cd -P "$( dirname "$csource" )/../" && pwd )"

. "${root}/.ci/common.sh"

export PATH="${PATH}:${root}/.ci"

pushd "${root}" > "${output}"

if [ "${repo_name}" = "${vagrant-installers}" ]; then
    remote_repository="hashicorp/vagrant-builders"
else
    remote_repository="hashicorp/vagrant-installers"
fi

wrap git remote add mirror "https://${HASHIBOT_USER}:${HASHIBOT_TOKEN}@github.com/${remote_repository}" \
     "Failed to add mirror repository (${remote_repository}) for sync"
wrap git remote update \
     "Failed to update mirror repository (${remote_repository}) for sync"
wrap git push mirror master \
     "Failed to sync mirror repository (${remote_repository})"
{'fraction_non_alphanumeric': 0.1844311377245509, 'fraction_numerical': 0.0011976047904191617, 'mean_word_length': 4.94661921708185, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '6903049', 'n_tokens_mistral': 551, 'n_tokens_neox': 540, 'n_words': 137}