<commit_before>#!/bin/bash

set -eux

if [ ! -f cirros-0.3.4-x86_64-disk.img ]; then
    curl -L -O http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
fi

if [ ! -f overcloud-key.rsa ]; then
    ssh-keygen -f overcloud-key.rsa
    chmod 0600 overcloud-key.rsa
fi

if [ ! -f openstack keypair show overcloud-key ]; then
    openstack keypair create \
        --private-key overcloud-key.rsa \
        overcloud-key
fi

if ! openstack flavor show tiny; then
    openstack flavor create \
        --ram 256 \
        --disk 1 \
        --vcpus 1 \
        tiny
fi

if ! openstack image show cirros; then
    openstack image create \
        --container-format bare \
        --disk-format qcow2 \
        --file cirros-0.3.4-x86_64-disk.img \
        cirros
fi


openstack security group rule create --ingress --protocol icmp default || :
openstack security group rule create --egress --protocol icmp default || :
openstack security group rule create --ingress --protocol tcp --dst-port 1:1024 default || :
openstack security group rule create --egress --protocol tcp --dst-port 1:1024 default || :<commit_msg>updates<commit_after>#!/bin/bash

set -eux

if [ ! -f cirros-0.3.4-x86_64-disk.img ]; then
    curl -L -O http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img
fi

if [ ! -f overcloud-key.rsa ]; then
    ssh-keygen -f overcloud-key.rsa
    chmod 0600 overcloud-key.rsa
fi

if [ ! -f openstack keypair show overcloud-key ]; then
    openstack keypair create \
        --private-key overcloud-key.rsa \
        overcloud-key
fi

if ! openstack flavor show tiny; then
    openstack flavor create \
        --ram 256 \
        --disk 1 \
        --vcpus 1 \
        tiny
fi

if ! openstack image show cirros; then
    openstack image create \
        --container-format bare \
        --disk-format qcow2 \
        --file cirros-0.3.4-x86_64-disk.img \
        cirros
fi

sec_group_id=$(openstack security group list --project admin -c ID -f value)

openstack security group rule create --ingress --protocol icmp $sec_group_id || :
openstack security group rule create --egress --protocol icmp $sec_group_id || :
openstack security group rule create --ingress --protocol tcp --dst-port 1:1024 $sec_group_id || :
openstack security group rule create --egress --protocol tcp --dst-port 1:1024 $sec_group_id || :
{'fraction_non_alphanumeric': 0.117797695262484, 'fraction_numerical': 0.03755868544600939, 'mean_word_length': 2.306064880112835, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7123900', 'n_tokens_mistral': 842, 'n_tokens_neox': 788, 'n_words': 232}