<commit_before>#!/bin/sh

version=`grep Version tomcat-native.spec | sed -e 's/Version: \(.*\)/\1/'`

# remove old files
rm -rf rpmbuild

# extract source package
tar xzvf tomcat-native-$version-src.tar.gz

# clean up mess in source package
cd tomcat-native-$version-src
cp CHANGELOG.txt jni/native/CHANGES
cp LICENSE jni/native/LICENSE
cp NOTICE jni/native/NOTICE
rm -f jni/native/tcnative.spec
cd ..

# create a new valid package
mv tomcat-native-$version-src/jni/native tomcat-native-$version

# inject a working spec file
cp tomcat-native.spec tomcat-native-$version
tar czvf tomcat-native-$version.tar.gz tomcat-native-$version

# build
rpmbuild -D '%_topdir %(echo $PWD)/rpmbuild' -tb tomcat-native-$version.tar.gz
<commit_msg>change path for build<commit_after>#!/bin/sh

version=`grep Version tomcat-native.spec | sed -e 's/Version: \(.*\)/\1/'`

# remove old files
rm -rf  SOURCES BUILD BUILDROOT RPMS SRPMS

# extract source package
tar xzvf tomcat-native-$version-src.tar.gz

# clean up mess in source package
cd tomcat-native-$version-src
cp CHANGELOG.txt jni/native/CHANGES
cp LICENSE jni/native/LICENSE
cp NOTICE jni/native/NOTICE
rm -f jni/native/tcnative.spec
cd ..

# create a new valid package
mv tomcat-native-$version-src/jni/native tomcat-native-$version

# inject a working spec file
cp tomcat-native.spec tomcat-native-$version
tar czvf tomcat-native-$version.tar.gz tomcat-native-$version

# build
rpmbuild -D '%_topdir %(echo $PWD)' -tb tomcat-native-$version.tar.gz

{'fraction_non_alphanumeric': 0.12533512064343164, 'fraction_numerical': 0.0013404825737265416, 'mean_word_length': 4.113013698630137, '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': '505878', 'n_tokens_mistral': 534, 'n_tokens_neox': 527, 'n_words': 145}