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

set -e
umask 027

cd /opt/service-center

if [ ! -z "${ETCD_ADDRESS}" ]; then
    sed -i "s|^registry_plugin.*=.*$|registry_plugin = etcd|g" conf/app.conf
    sed -i "s|^# manager_cluster.*=.*$|manager_cluster = ${ETCD_ADDRESS}|g" conf/app.conf
fi

./service-center<commit_msg>Optimize the local build SC script.<commit_after>#!/usr/bin/env sh

set -e
umask 027

cd /opt/service-center

if [ ! -z "${BACKEND_ADDRESS}" ]; then
    sed -i "s|^registry_plugin.*=.*$|registry_plugin = etcd|g" conf/app.conf
    sed -i "s|^# manager_cluster.*=.*$|manager_cluster = ${BACKEND_ADDRESS}|g" conf/app.conf
fi

./service-center
{'fraction_non_alphanumeric': 0.18923076923076923, 'fraction_numerical': 0.009230769230769232, 'mean_word_length': 3.969465648854962, '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': '652526', 'n_tokens_mistral': 258, 'n_tokens_neox': 250, 'n_words': 54}