<commit_before>#!/bin/sh

# Variables
license=custom
project="notes-0.9.0"
authorEmail="<EMAIL>"

# Remove old build
if [ -d "$project" ]; then
    printf '%s\n' "Removing old build ($project)"
    rm -rf "$project"
fi

# Generate folders
mkdir deb_build
cd deb_build
mkdir $project
cd $project

# Build binary
mkdir build
cd build
qmake -qt5 ../../../../../src/Notes.pro
make -j4
mv notes ../
cd ..
rm -r build

#

# Copy icon & desktop file
cp ../../common/LICENSE license.txt
cp ../../common/notes.png notes.png
cp ../../common/notes.desktop notes.desktop

# Copy debian config to build directory
cp -avr ../../debian debian

# Generate source build & debian package"
dh_make -s -c $license --copyrightfile license.txt -e $authorEmail --createorig
dpkg-buildpackage
<commit_msg>Modify script to initialize submodules<commit_after>#!/bin/sh

# Variables
license=custom
project="notes-0.9.0"
authorEmail="<EMAIL>"

# Remove old build
if [ -d "$project" ]; then
    printf '%s\n' "Removing old build ($project)"
    rm -rf "$project"
fi

# Ensure that submodules are initialized
git submodule update --init

# Generate folders
mkdir deb_build
cd deb_build
mkdir $project
cd $project

# Build binary
mkdir build
cd build
qmake -qt5 ../../../../../src/Notes.pro
make -j4
mv notes ../
cd ..
rm -r build

#

# Copy icon & desktop file
cp ../../common/LICENSE license.txt
cp ../../common/notes.png notes.png
cp ../../common/notes.desktop notes.desktop

# Copy debian config to build directory
cp -avr ../../debian debian

# Generate source build & debian package"
dh_make -s -c $license --copyrightfile license.txt -e $authorEmail --createorig
dpkg-buildpackage

{'fraction_non_alphanumeric': 0.14785757392878696, 'fraction_numerical': 0.006035003017501509, 'mean_word_length': 3.1243781094527363, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1433966', 'n_tokens_mistral': 555, 'n_tokens_neox': 517, 'n_words': 187}