<commit_before>#!/bin/bash
# Update build configurations of pango packages that are described by
# GTK+ jhbuild build configuration

GTK_VERSION=3.9.4
rm -rf $GTK_VERSION
mkdir $GTK_VERSION
cd $GTK_VERSION
# This downloads all the relevant xml build configuration files
# for the given version of GTK
wget -nd  ftp://ftp.acc.umu.se/pub/GNOME/teams/releng/$GTK_VERSION/*
cd ..
./gtk_xml_recursive_process.py \
$GTK_VERSION/gnome-apps-$GTK_VERSION.modules \
>|gtk_packages_$GTK_VERSION.xml
rm -rf $GTK_VERSION
patch --no-backup-if-mismatch gtk_packages_$GTK_VERSION.xml patch_gtk_packages.xml

./gtk_transform.py pango 1 <gtk_packages_$GTK_VERSION.xml 1>| pango_packages.data
cmake -DFILENAME:FILEPATH=pango_packages.data -P configure_bp.cmake
<commit_msg>Save original version of gtk_packages<VERSION>.xml file to make it more convenient to update the patch that is applied.<commit_after>#!/bin/bash
# Update build configurations of pango packages that are described by
# GTK+ jhbuild build configuration

GTK_VERSION=3.9.4
rm -rf $GTK_VERSION
mkdir $GTK_VERSION
cd $GTK_VERSION
# This downloads all the relevant xml build configuration files
# for the given version of GTK
wget -nd  ftp://ftp.acc.umu.se/pub/GNOME/teams/releng/$GTK_VERSION/*
cd ..
./gtk_xml_recursive_process.py \
$GTK_VERSION/gnome-apps-$GTK_VERSION.modules \
>|gtk_packages_$GTK_VERSION.xml_original
rm -rf $GTK_VERSION
cp gtk_packages_$GTK_VERSION.xml_original gtk_packages_$GTK_VERSION.xml 
patch --no-backup-if-mismatch gtk_packages_$GTK_VERSION.xml patch_gtk_packages.xml

./gtk_transform.py pango 1 <gtk_packages_$GTK_VERSION.xml 1>| pango_packages.data
cmake -DFILENAME:FILEPATH=pango_packages.data -P configure_bp.cmake

{'fraction_non_alphanumeric': 0.09433962264150944, 'fraction_numerical': 0.00589622641509434, 'mean_word_length': 5.477099236641221, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 15}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5517254', 'n_tokens_mistral': 630, 'n_tokens_neox': 593, 'n_words': 144}