<commit_before>#!/bin/bash

VERSION_twisted=${VERSION_twisted:-14.0}
URL_twisted=http://twistedmatrix.com/Releases/Twisted/$VERSION_twisted/Twisted-$VERSION_twisted.0.tar.bz2

DEPS_twisted=(zope)
MD5_twisted=9625c094e0a18da77faa4627b98c9815
BUILD_twisted=$BUILD_PATH/twisted/$(get_directory $URL_twisted)
RECIPE_twisted=$RECIPES_PATH/twisted

function prebuild_twisted() {
	echo "tty.pyo" >> "${BUILD_PATH}/whitelist.txt"
	echo "termios.so" >> "${BUILD_PATH}/whitelist.txt"
}

function shouldbuild_twisted() {
	if [ -d "$SITEPACKAGES_PATH/twisted" ]; then
		DO_BUILD=0
	fi
}

function build_twisted() {

	cd $BUILD_twisted

	push_arm
	export LDFLAGS="$LDFLAGS -L$LIBS_PATH"
	export LDSHARED="$LIBLINK"

	export PYTHONPATH=$SITEPACKAGES_PATH:$BUILDLIB_PATH

	# fake try to be able to cythonize generated files
	$HOSTPYTHON setup.py build_ext
	try find . -iname '*.pyx' -exec $CYTHON {} \;
	try $HOSTPYTHON setup.py build_ext -v
	try find build/lib.* -name "*.o" -exec $STRIP {} \;

        try $BUILD_hostpython/hostpython setup.py install -O2 --root=$BUILD_PATH/python-install --install-lib=lib/python2.7/site-packages

	try rm -rf $BUILD_PATH/python-install/lib/python*/site-packages/twisted/test
	try rm -rf $BUILD_PATH/python-install/lib/python*/site-packages/twisted/*/test

	unset LDSHARED

	pop_arm
}

function postbuild_twisted() {
	true
}

<commit_msg>Bumped Twisted to version 15.2.1<commit_after>#!/bin/bash

VERSION_twisted=${VERSION_twisted:-15.2}
URL_twisted=http://twistedmatrix.com/Releases/Twisted/$VERSION_twisted/Twisted-$VERSION_twisted.1.tar.bz2

DEPS_twisted=(zope)
MD5_twisted=4be066a899c714e18af1ecfcb01cfef7
BUILD_twisted=$BUILD_PATH/twisted/$(get_directory $URL_twisted)
RECIPE_twisted=$RECIPES_PATH/twisted

function prebuild_twisted() {
	echo "tty.pyo" >> "${BUILD_PATH}/whitelist.txt"
	echo "termios.so" >> "${BUILD_PATH}/whitelist.txt"
}

function shouldbuild_twisted() {
	if [ -d "$SITEPACKAGES_PATH/twisted" ]; then
		DO_BUILD=0
	fi
}

function build_twisted() {

	cd $BUILD_twisted

	push_arm
	export LDFLAGS="$LDFLAGS -L$LIBS_PATH"
	export LDSHARED="$LIBLINK"

	export PYTHONPATH=$SITEPACKAGES_PATH:$BUILDLIB_PATH

	# fake try to be able to cythonize generated files
	$HOSTPYTHON setup.py build_ext
	try find . -iname '*.pyx' -exec $CYTHON {} \;
	try $HOSTPYTHON setup.py build_ext -v
	try find build/lib.* -name "*.o" -exec $STRIP {} \;

        try $BUILD_hostpython/hostpython setup.py install -O2 --root=$BUILD_PATH/python-install --install-lib=lib/python2.7/site-packages

	try rm -rf $BUILD_PATH/python-install/lib/python*/site-packages/twisted/test
	try rm -rf $BUILD_PATH/python-install/lib/python*/site-packages/twisted/*/test

	unset LDSHARED

	pop_arm
}

function postbuild_twisted() {
	true
}


{'fraction_non_alphanumeric': 0.13362541073384446, 'fraction_numerical': 0.022635998539612998, 'mean_word_length': 5.048565121412803, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '2941529', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1058, 'n_words': 178}