<commit_before>#!/bin/bash
#
# Copyright 2013 <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

. dev/travis-ci/functions.sh

PYTHON_PACKAGES="distribute==0.6.42 coverage"
SYSTEM_PACKAGES="libyaml-dev"

if [ "$DB" == "postgres" ]; then
    SYSTEM_PACKAGES="$SYSTEM_PACKAGES libpq-dev"
    PYTHON_PACKAGES="$PYTHON_PACKAGES psycopg2"
    cp -fv dev/travis-ci/etc/database_$DB.yml pyfarm/config/etc/database.yml
elif [ "$DB" == "mysql" ]; then
    PYTHON_PACKAGES="$PYTHON_PACKAGES pymysql"
    cp -fv dev/travis-ci/etc/database_$DB.yml pyfarm/config/etc/database.yml
else
    cp -fv dev/travis-ci/etc/database_sqlite.yml pyfarm/config/etc/database.yml
fi

title Installing Packages
retrycmd sudo apt-get -y install $SYSTEM_PACKAGES
retrycmd pip install $PYTHON_PACKAGES --use-mirrors
retrycmd pip install -e . --use-mirrors<commit_msg>fixing install.sh script with new paths<commit_after>#!/bin/bash
#
# Copyright 2013 <NAME>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

. dev/travis-ci/functions.sh

PYTHON_PACKAGES="distribute==0.6.42 coverage"
SYSTEM_PACKAGES="libyaml-dev"
CONFIG_DIR="pyfarm-files/config"

# NOTE: some files here may need to be copied from a source (as database.yml is)
cp -fv $CONFIG_DIR/filesystem.yml.template $CONFIG_DIR/filesystem.yml

if [ "$DB" == "postgres" ]; then
    SYSTEM_PACKAGES="$SYSTEM_PACKAGES libpq-dev"
    PYTHON_PACKAGES="$PYTHON_PACKAGES psycopg2"
    cp -fv dev/travis-ci/etc/database_$DB.yml $CONFIG_DIR/database.yml
elif [ "$DB" == "mysql" ]; then
    PYTHON_PACKAGES="$PYTHON_PACKAGES pymysql"
    cp -fv dev/travis-ci/etc/database_$DB.yml $CONFIG_DIR/database.yml
else
    cp -fv dev/travis-ci/etc/database_sqlite.yml $CONFIG_DIR/database.yml
fi

title Installing Packages
retrycmd sudo apt-get -y install $SYSTEM_PACKAGES
retrycmd pip install $PYTHON_PACKAGES --use-mirrors
retrycmd pip install -e . --use-mirrors
{'fraction_non_alphanumeric': 0.10324380885943495, 'fraction_numerical': 0.009068712940355772, 'mean_word_length': 4.431818181818182, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3360793', 'n_tokens_mistral': 982, 'n_tokens_neox': 927, 'n_words': 290}