<commit_before>#!/usr/bin/env bash

# Copyright 2017 F5 Networks Inc.
#
# 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.
#

set -ex

# Create a virtualenv
rm -rf ${TEMPEST_VENV_DIR}
virtualenv ${TEMPEST_VENV_DIR}
source ${TEMPEST_VENV_ACTIVATE}

# Install tox
pip install tox


# We need to clone the OpenStack devtest repo for our TLC files
rm -rf ${DEVTEST_DIR}
git clone -b ${TEST_OPENSTACK_DISTRO} ${DEVTEST_REPO} ${DEVTEST_DIR}

pip install git+ssh://git@gitlab.pdbld.f5net.com/tools/pytest-autolog.git
# This should be listed in requirement.test.txt also, but will not succeed
# from that location without sudo
sudo pip install git+https://github.com/F5Networks/f5-openstack-agent.git@${BRANCH}
# Install neutron at stable/mitaka because stable/liberty tests will not work
# because they use an upper contraints file in the installation script that
# neutron-lbaas uses for tox tests.
# The file that causes this to happen is: neutron-lbaas/tools/tox_install.sh
#
# The use of the liberty version of this file restricts the crpytography
# library to a low version which is not compatible with newer versions of
# OpenSSL (1.0.2g+) because of an API change in OpenSSL.
#
# See this issue for more details:
# https://github.com/pyca/cryptography/issues/2750
#<commit_msg>AUTOMERGE commit of liberty into mitaka<commit_after>#!/usr/bin/env bash

# Copyright 2017 F5 Networks Inc.
#
# 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.
#

set -ex

# Create a virtualenv
rm -rf ${TEMPEST_VENV_DIR}
virtualenv ${TEMPEST_VENV_DIR}
source ${TEMPEST_VENV_ACTIVATE}

# Install tox
pip install tox


# We need to clone the OpenStack devtest repo for our TLC files
rm -rf ${DEVTEST_DIR}
git clone -b ${BRANCH} ${DEVTEST_REPO} ${DEVTEST_DIR}

pip install git+ssh://git@gitlab.pdbld.f5net.com/tools/pytest-autolog.git
# This should be listed in requirement.test.txt also, but will not succeed
# from that location without sudo
sudo pip install git+https://github.com/F5Networks/f5-openstack-agent.git@${BRANCH}
# Install neutron at stable/mitaka because stable/liberty tests will not work
# because they use an upper contraints file in the installation script that
# neutron-lbaas uses for tox tests.
# The file that causes this to happen is: neutron-lbaas/tools/tox_install.sh
#
# The use of the liberty version of this file restricts the crpytography
# library to a low version which is not compatible with newer versions of
# OpenSSL (1.0.2g+) because of an API change in OpenSSL.
#
# See this issue for more details:
# https://github.com/pyca/cryptography/issues/2750
#
{'fraction_non_alphanumeric': 0.0800225415610031, 'fraction_numerical': 0.010707241476472246, 'mean_word_length': 4.495356037151703, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '4610575', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1048, 'n_words': 451}