<commit_before>#!/usr/bin/env bash
# This script automatically builds copies over the systemd unit files, spec files and builds the rpm.

RPM_BUILD_DIR="$HOME/rpmbuild"

export UPSTREAM="https://github.com/mozilla/Snappy-Symbolication-Server"
commit_date=`curl -s https://api.github.com/repos/mozilla/Snappy-Symbolication-Server/commits?per_page=1 | grep -m 1 date | cut -d '"' -f 4`
export EPOCH=`date --date="${commit_date}" +%s`

cp ./SPECS/mozilla-snappy.spec $HOME/rpmbuild/SPECS/
cp ./SOURCES/mozilla-snappy.* $HOME/rpmbuild/SOURCES/
cp ../sample.ini $HOME/rpmbuild/SOURCES/mozilla-snappy.ini

rpmbuild -ba $HOME/rpmbuild/SPECS/mozilla-snappy.spec
<commit_msg>target noarch when building rpm<commit_after>#!/usr/bin/env bash
# This script automatically builds copies over the systemd unit files, spec files and builds the rpm.

RPM_BUILD_DIR="$HOME/rpmbuild"

export UPSTREAM="https://github.com/mozilla/Snappy-Symbolication-Server"
commit_date=`curl -s https://api.github.com/repos/mozilla/Snappy-Symbolication-Server/commits?per_page=1 | grep -m 1 date | cut -d '"' -f 4`
export EPOCH=`date --date="${commit_date}" +%s`

cp ./SPECS/mozilla-snappy.spec $HOME/rpmbuild/SPECS/
cp ./SOURCES/mozilla-snappy.* $HOME/rpmbuild/SOURCES/
cp ../sample.ini $HOME/rpmbuild/SOURCES/mozilla-snappy.ini

rpmbuild --target=noarch -ba $HOME/rpmbuild/SPECS/mozilla-snappy.spec

{'fraction_non_alphanumeric': 0.1500732064421669, 'fraction_numerical': 0.004392386530014641, 'mean_word_length': 4.743697478991597, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '3168126', 'n_tokens_mistral': 526, 'n_tokens_neox': 486, 'n_words': 101}