<commit_before>#!/bin/bash
set -e
echo "Running travis travis-setup-user.sh"

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

# Use travis commit
COMMIT_HASH=${TRAVIS_COMMIT_RANGE##*...}
ANSIBLE_VERSION_J2_HTTPS="https://raw.githubusercontent.com/AutomationWithAnsible/ansible-setup/$COMMIT_HASH/ansible-version.j2"
ANSIBLE_VERSION_YML_HTTPS="https://raw.githubusercontent.com/AutomationWithAnsible/ansible-setup/$COMMIT_HASH/ansible-version.yml"

## Install Ansible 1.9.4
ANSIBLE_VERSIONS[0]="1.9.4"
INSTALL_TYPE[0]="pip"
ANSIBLE_V1_PATH="${ANSIBLE_VERSIONS[0]}"    # v1

## Install Ansible stable-2.0 
ANSIBLE_VERSIONS[1]="stable-2.0"
PYTHON_REQUIREMENTS[1]="$DIR/python_requirements.txt"
INSTALL_TYPE[1]="git"
ANSIBLE_V2_PATH="${ANSIBLE_VERSIONS[1]}"  # v2

## Install Ansible stable-2.0 
ANSIBLE_VERSIONS[2]="devel"
PYTHON_REQUIREMENTS[2]="$DIR/python_requirements.txt"
INSTALL_TYPE[2]="git"
ANSIBLE_DEV_PATH="${ANSIBLE_VERSIONS[2]}"  # devel

# Add user for test
sudo useradd -m -c "travis-setup" travis-setup  -s /bin/bash 
export SETUP_USER=travis-setup

# Whats the default version
ANSIBLE_DEFAULT_VERSION="ANSIBLE_VERSIONS[0]"
<commit_msg>Remove python req. file<commit_after>#!/bin/bash
set -e
echo "Running travis travis-setup-user.sh"

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

# Use travis commit
COMMIT_HASH=${TRAVIS_COMMIT_RANGE##*...}
ANSIBLE_VERSION_J2_HTTPS="https://raw.githubusercontent.com/AutomationWithAnsible/ansible-setup/$COMMIT_HASH/ansible-version.j2"
ANSIBLE_VERSION_YML_HTTPS="https://raw.githubusercontent.com/AutomationWithAnsible/ansible-setup/$COMMIT_HASH/ansible-version.yml"

## Install Ansible 1.9.4
ANSIBLE_VERSIONS[0]="1.9.4"
INSTALL_TYPE[0]="pip"
ANSIBLE_V1_PATH="${ANSIBLE_VERSIONS[0]}"    # v1

## Install Ansible stable-2.0 
ANSIBLE_VERSIONS[1]="stable-2.0"
INSTALL_TYPE[1]="git"
ANSIBLE_V2_PATH="${ANSIBLE_VERSIONS[1]}"  # v2

## Install Ansible stable-2.0 
ANSIBLE_VERSIONS[2]="devel"
INSTALL_TYPE[2]="git"
ANSIBLE_DEV_PATH="${ANSIBLE_VERSIONS[2]}"  # devel

# Add user for test
sudo useradd -m -c "travis-setup" travis-setup  -s /bin/bash 
export SETUP_USER=travis-setup

# Whats the default version
ANSIBLE_DEFAULT_VERSION="ANSIBLE_VERSIONS[0]"

{'fraction_non_alphanumeric': 0.15687160940325498, 'fraction_numerical': 0.027124773960216998, 'mean_word_length': 6.819787985865724, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '6410362', 'n_tokens_mistral': 971, 'n_tokens_neox': 884, 'n_words': 121}