<commit_before>#!/usr/bin/env bash
set -o xtrace

# ``grenade.sh`` is an OpenStack upgrade test harness to exercise the
# upgrade process from Essex to Folsom.  It uses DevStack to perform
# the initial # Openstack install

# Grenade assumes it is running on the system that will be hosting the upgrade processes

ESSEX_DEST=/opt/stack.essex
ESSEX_DEVSTACK_REPO=http://github.com/openstack-dev/devstack.git
ESSEX_DEVSTACK_BRANCH=stable/essex

FOLSOM_DEST=/opt/stack.folsom
FOLSOM_DEVSTACK_REPO=$ESSEX_DEVSTACK_REPO
FOLSOM_DEVSTACK_BRANCH=master


# Keep track of the grenade directory
GRENADE_DIR=$(cd $(dirname "$0") && pwd)

# Import common functions
source $GRENADE_DIR/functions


# System Preparation
# ==================

mkdir -p $ESSEX_DEST
git_clone $ESSEX_DEVSTACK_REPO $ESSEX_DEST $ESSEX_DEVSTACK_BRANCH

mkdir -p $FOLSOM_DEST
git_clone $FOLSOM_DEVSTACK_REPO $FOLSOM_DEST $FOLSOM_DEVSTACK_BRANCH

# Set up localrc
#cp -p $GRENADE_DIR/devstack.start.localrc $DEVSTACK_START_DIR/localrc

# clean up apache config
# essex devstack uses 000-default
# folsom devstack uses horizon -> ../sites-available/horizon
#if [[ -e /etc/apache2/sites-enabled/horizon ]]; then
    # Clean up folsom-style
#    sudo "a2dissite horizon; service apache2 reload"
#fi<commit_msg>rewrite git_clone calls<commit_after>#!/usr/bin/env bash
set -o xtrace

# ``grenade.sh`` is an OpenStack upgrade test harness to exercise the
# upgrade process from Essex to Folsom.  It uses DevStack to perform
# the initial # Openstack install

# Grenade assumes it is running on the system that will be hosting the upgrade processes

ESSEX_DEST=/opt/stack.essex
ESSEX_DEVSTACK_REPO=http://github.com/openstack-dev/devstack.git
ESSEX_DEVSTACK_BRANCH=stable/essex

FOLSOM_DEST=/opt/stack.folsom
FOLSOM_DEVSTACK_REPO=$ESSEX_DEVSTACK_REPO
FOLSOM_DEVSTACK_BRANCH=master


# Keep track of the grenade directory
GRENADE_DIR=$(cd $(dirname "$0") && pwd)

# Import common functions
source $GRENADE_DIR/functions


# System Preparation
# ==================

mkdir -p $ESSEX_DEST
git clone $ESSEX_DEVSTACK_REPO $ESSEX_DEST/devstack
cd $ESSEX_DEST/devstack
git fetch $ESSEX_DEVSTACK_REPO $ESSEX_DEVSTACK_BRANCH && git checkout FETCH_HEAD

mkdir -p $FOLSOM_DEST
git clone $FOLSOM_DEVSTACK_REPO $FOLSOM_DEST/devstack
cd $FOLSOM_DEST/devstack
git fetch $FOLSOM_DEVSTACK_REPO $FOLSOM_DEVSTACK_BRANCH && git checkout FETCH_HEAD

# Set up localrc
#cp -p $GRENADE_DIR/devstack.start.localrc $DEVSTACK_START_DIR/localrc

# clean up apache config
# essex devstack uses 000-default
# folsom devstack uses horizon -> ../sites-available/horizon
#if [[ -e /etc/apache2/sites-enabled/horizon ]]; then
    # Clean up folsom-style
#    sudo "a2dissite horizon; service apache2 reload"
#fi
{'fraction_non_alphanumeric': 0.09743589743589744, 'fraction_numerical': 0.005128205128205128, 'mean_word_length': 5.456264775413712, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6216332', 'n_tokens_mistral': 1066, 'n_tokens_neox': 1019, 'n_words': 251}