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

sudo apt-get install -y git qemu-utils sudo curl kpartx python-setuptools python-dev

image_name=os-sqe-localadmin-ubuntu.qcow2
export ELEMENTS_PATH=$(pwd)/elements

workspace=$(mktemp -d)
cd ${workspace}

git clone https://git.openstack.org/openstack/diskimage-builder

virtualenv venv
source venv/bin/activate
pip install -e ./diskimage-builder

disk-image-create fedora vm selinux-permissive dnsmasq iperf users ip-addresses manage-cloud-init -a amd64 -o ${image_name}

deactivate

cat >${image_name}.txt<<EOF
$(md5sum ${image_name}) admin cisco123
EOF<commit_msg>cloud image: modified script 2<commit_after>#!/usr/bin/env bash

sudo apt-get install -y git qemu-utils sudo curl kpartx python-setuptools python-dev

image_name=os-sqe-localadmin-ubuntu.qcow2
export ELEMENTS_PATH=$(pwd)/elements

workspace=$(mktemp -d)
cd ${workspace}

git clone https://git.openstack.org/openstack/diskimage-builder

virtualenv venv
source venv/bin/activate
easy_install pip
pip install -e ./diskimage-builder

disk-image-create fedora vm selinux-permissive dnsmasq iperf users ip-addresses manage-cloud-init -a amd64 -o ${image_name}

deactivate

cat >${image_name}.txt<<EOF
$(md5sum ${image_name}) admin cisco123
EOF
{'fraction_non_alphanumeric': 0.11209677419354838, 'fraction_numerical': 0.012096774193548387, 'mean_word_length': 5.299492385786802, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1682192', 'n_tokens_mistral': 459, 'n_tokens_neox': 428, 'n_words': 109}