<commit_before>#!/bin/sh -e

# Generic post-installation script for Debian binary packages that generates
# *.pyc files for Debian packages containing Python modules. This isn't
# necessary for packages built using py_support or dh_python2, however those
# are not always an option...

SCRIPT_NAME="$0"
PACKAGE_NAME="`basename "$SCRIPT_NAME" .postinst`"
if [ -z "$PACKAGE_NAME" ]; then
  echo "Warning: Failed to determine name of package! (py2deb postinst script)" >&2
else
  dpkg -L $PACKAGE_NAME | grep '\.py$' | xargs --delimiter '\n' --no-run-if-empty python -m py_compile
fi<commit_msg>Don't make postinst script error out on syntax errors reported by py_compile<commit_after>#!/bin/sh -e

# Generic post-installation script for Debian binary packages that generates
# *.pyc files for Debian packages containing Python modules. This isn't
# necessary for packages built using py_support or dh_python2, however those
# are not always an option...

SCRIPT_NAME="$0"
PACKAGE_NAME="`basename "$SCRIPT_NAME" .postinst`"
if [ -z "$PACKAGE_NAME" ]; then
  echo "Warning: Failed to determine name of package! (py2deb postinst script)" >&2
else
  dpkg -L $PACKAGE_NAME | grep '\.py$' | xargs --delimiter '\n' --no-run-if-empty python -m py_compile || true
fi
{'fraction_non_alphanumeric': 0.11235059760956176, 'fraction_numerical': 0.006374501992031873, 'mean_word_length': 4.557522123893805, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1332733', 'n_tokens_mistral': 407, 'n_tokens_neox': 383, 'n_words': 151}