<commit_before>#!/bin/sh

set -e
set -x

# bottle does not support python 2.4, so for that
# we have to run the app using system python (2.7) in a separate process.
# bottle supports python 2.5, but apparently the dead snakes ppa
# does not include ssl in their python, which makes ssl tests fail.
# so, use system python for the test app when testing against 2.5 as well.
if test -n "$USEPY"; then
  ~/virtualenv/python2.7/bin/python2.7 -m tests.appmanager &
  export PYCURL_STANDALONE_APP=yes
fi

export PYCURL_VSFTPD_PATH=/usr/sbin/vsftpd

if test -n "$USEPY"; then
  . ~/virtualenv/python$USEPY/bin/activate
else
  export USEPY=$TRAVIS_PYTHON_VERSION
fi

if test -n "$USECURL"; then
  export PYCURL_CURL_CONFIG="$HOME"/i/curl-"$USECURL"/bin/curl-config
  export LD_LIBRARY_PATH="$HOME"/i/curl-"$USECURL"/lib
fi

setup_args=
if test -n "$USESSL"; then
  if test "$USESSL" = libressl; then
    export PYCURL_SSL_LIBRARY=openssl
    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/libressl-$USELIBRESSL/lib"
    setup_args="$setup_args --openssl-dir=/opt/libressl-$USELIBRESSL"
  elif test "$USESSL" != none; then
    export PYCURL_SSL_LIBRARY="$USESSL"
    if test -n "$USEOPENSSL"; then
      export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/openssl-$USEOPENSSL/lib"
    fi
    setup_args="$setup_args --openssl-dir=/opt/openssl-$USEOPENSSL"
  fi
else
  # default for ubuntu 12 which is what travis currently uses is openssl
  export PYCURL_SSL_LIBRARY=openssl
fi

if test -n "$AVOIDSTDIO"; then<commit_msg>--openssl-dir should only be used with openssl<commit_after>#!/bin/sh

set -e
set -x

# bottle does not support python 2.4, so for that
# we have to run the app using system python (2.7) in a separate process.
# bottle supports python 2.5, but apparently the dead snakes ppa
# does not include ssl in their python, which makes ssl tests fail.
# so, use system python for the test app when testing against 2.5 as well.
if test -n "$USEPY"; then
  ~/virtualenv/python2.7/bin/python2.7 -m tests.appmanager &
  export PYCURL_STANDALONE_APP=yes
fi

export PYCURL_VSFTPD_PATH=/usr/sbin/vsftpd

if test -n "$USEPY"; then
  . ~/virtualenv/python$USEPY/bin/activate
else
  export USEPY=$TRAVIS_PYTHON_VERSION
fi

if test -n "$USECURL"; then
  export PYCURL_CURL_CONFIG="$HOME"/i/curl-"$USECURL"/bin/curl-config
  export LD_LIBRARY_PATH="$HOME"/i/curl-"$USECURL"/lib
fi

setup_args=
if test -n "$USESSL"; then
  if test "$USESSL" = libressl; then
    export PYCURL_SSL_LIBRARY=openssl
    export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/libressl-$USELIBRESSL/lib"
    setup_args="$setup_args --openssl-dir=/opt/libressl-$USELIBRESSL"
  elif test "$USESSL" != none; then
    export PYCURL_SSL_LIBRARY="$USESSL"
    if test -n "$USEOPENSSL"; then
      export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/opt/openssl-$USEOPENSSL/lib"
      setup_args="$setup_args --openssl-dir=/opt/openssl-$USEOPENSSL"
    fi
  fi
else
  # default for ubuntu 12 which is what travis currently uses is openssl
  export PYCURL_SSL_LIBRARY=openssl
fi

if test -n "$AVOIDSTDIO"; then
{'fraction_non_alphanumeric': 0.11133004926108374, 'fraction_numerical': 0.009195402298850575, 'mean_word_length': 4.180272108843537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1262724', 'n_tokens_mistral': 1176, 'n_tokens_neox': 1096, 'n_words': 311}