<commit_before>#!/bin/sh
# Tree structure of the cwd:

taskid=$(uuidgen)

git clone --recursive --branch={{git_revision}} {{git_repository}} src
version={{version}}
{% if version_script %}
cd src
version=$({{version_script}})
cd -
{% endif %}

# myppa-install-prerequisite.sh
cat <<EOT > myppa-install-prerequisite.sh
#!/usr/bin/env bash
{% for package in build_depends %}
apt-get install -y {{package}}
{%- endfor %}
EOT

# myppa-install-project.sh
cat <<EOT > myppa-install-project.sh
#!/usr/bin/env bash
cd /myppa/src
{{before_configure}}
mkdir /myppa/build
cd /myppa/build
{% if builder == "cmake" %}
cmake {% for k, v in cmake_args.items() %}-D{{k}}={{v}} {% endfor %}../src
{% elif builder == "autotools" %}
../src/configure {% for k, v in (configure_args or {}).items() %}--{{k}}={{v}} {% endfor %}
{% endif %}
cd /myppa/src
{{after_configure}}
cd /myppa/src
{{before_compile}}
cd /myppa/build
make
cd /myppa/src
{{after_compile}}
cd /myppa/src
{{before_install}}
cd /myppa/build
make install
cd /myppa/src
{{after_install}}
EOT

# myppa-pack-deb.sh
cat <<EOT >myppa-pack-deb.sh
#!/usr/bin/env bash
<myppa-new-files xargs tar czvf data.tar.gz
<myppa-new-files xargs md5sum > md5sums
fakeroot tar czvf control.tar.gz control changelog copyright md5sums
fakeroot ar cr {{name}}_${version}_{{architecture}}.deb debian-binary control.tar.gz data.tar.gz
EOT

cat <<EOT >control
Package: {{name}}
Priority: {{deb_priority}}
Section: {{deb_section}}
Maintainer: {{maintainer}}
Architecture: {{architecture}}
Version: ${version}<commit_msg>Fix file duplicates in data.tar.gz<commit_after>#!/bin/sh
# Tree structure of the cwd:

taskid=$(uuidgen)

git clone --recursive --branch={{git_revision}} {{git_repository}} src
version={{version}}
{% if version_script %}
cd src
version=$({{version_script}})
cd -
{% endif %}

# myppa-install-prerequisite.sh
cat <<EOT > myppa-install-prerequisite.sh
#!/usr/bin/env bash
{% for package in build_depends %}
apt-get install -y {{package}}
{%- endfor %}
EOT

# myppa-install-project.sh
cat <<EOT > myppa-install-project.sh
#!/usr/bin/env bash
cd /myppa/src
{{before_configure}}
mkdir /myppa/build
cd /myppa/build
{% if builder == "cmake" %}
cmake {% for k, v in cmake_args.items() %}-D{{k}}={{v}} {% endfor %}../src
{% elif builder == "autotools" %}
../src/configure {% for k, v in (configure_args or {}).items() %}--{{k}}={{v}} {% endfor %}
{% endif %}
cd /myppa/src
{{after_configure}}
cd /myppa/src
{{before_compile}}
cd /myppa/build
make
cd /myppa/src
{{after_compile}}
cd /myppa/src
{{before_install}}
cd /myppa/build
make install
cd /myppa/src
{{after_install}}
EOT

# myppa-pack-deb.sh
cat <<EOT >myppa-pack-deb.sh
#!/usr/bin/env bash
<myppa-new-files xargs tar czf data.tar.gz
<myppa-new-files xargs md5sum > md5sums
fakeroot tar czvf control.tar.gz control changelog copyright md5sums
fakeroot ar cr {{name}}_${version}_{{architecture}}.deb debian-binary control.tar.gz data.tar.gz
EOT

cat <<EOT >control
Package: {{name}}
Priority: {{deb_priority}}
Section: {{deb_section}}
Maintainer: {{maintainer}}
Architecture: {{architecture}}
Version: ${version}
{'fraction_non_alphanumeric': 0.18657198192382182, 'fraction_numerical': 0.001936733376371853, 'mean_word_length': 4.836158192090395, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 13, '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': '6519356', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1133, 'n_words': 293}