<commit_before>#!/bin/bash

DEVPI_URL='http://forge.cohorte.tech:7080/'
devpi_index='cohorte'
devpi_user=$1
devpi_password=$2
devpi_formats='sdist,bdist_wheel'

# Set up the virtual environment
VENV_NAME=venv
rm -fr $VENV_NAME
virtualenv $VENV_NAME -p python3 || return 1
PATH=$WORKSPACE/$VENV_NAME/bin:$PATH
. $VENV_NAME/bin/activate

# Install test and deployment tools
pip install --force --upgrade pip==1.5.6 setuptools || return 2
pip install --upgrade wheel || return 2
pip install --upgrade nose || return 2
pip install --upgrade devpi-client || return 2

# Install project
pip install .

# Run tests
# nosetests tests || return 3

# Deploy
devpi use $DEVPI_URL
devpi login $devpi_user --password=$devpi_password<commit_msg> change repo devpi<commit_after>#!/bin/bash

DEVPI_URL='http://nrm.cohorte.tech/repository/devpi'
devpi_index='cohorte'
devpi_user=$1
devpi_password=$2
devpi_formats='sdist,bdist_wheel'

# Set up the virtual environment
VENV_NAME=venv
rm -fr $VENV_NAME
virtualenv $VENV_NAME -p python3 || return 1
PATH=$WORKSPACE/$VENV_NAME/bin:$PATH
. $VENV_NAME/bin/activate

# Install test and deployment tools
pip install --force --upgrade pip==1.5.6 setuptools || return 2
pip install --upgrade wheel || return 2
pip install --upgrade nose || return 2
pip install --upgrade devpi-client || return 2

# Install project
pip install .

# Run tests
# nosetests tests || return 3

# Deploy
devpi use $DEVPI_URL
devpi login $devpi_user --password=$devpi_password
{'fraction_non_alphanumeric': 0.11382113821138211, 'fraction_numerical': 0.018970189701897018, 'mean_word_length': 4.979757085020243, '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': '3056180', 'n_tokens_mistral': 542, 'n_tokens_neox': 500, 'n_words': 146}