<commit_before>#!/bin/bash

JENKINS_HOST=${JHostName}
JENKINS_EIP=${MasterIP.AllocationId}
JENKINS_VOLUME_ID=${JDataVolume}
INSTANCE_ID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
INSTANCE_REGION=$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone | sed -e 's/[a-z]$//')

set -o xtrace
set -o errexit

setup_aws() {
    aws ec2 associate-address \
        --region $INSTANCE_REGION \
        --instance-id $INSTANCE_ID \
        --allocation-id $JENKINS_EIP \
        --allow-reassociation
}

install_software() {
    wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
    rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

    until yum makecache; do
        sleep 1
        echo try again
    done

    yum -y update --security
    amazon-linux-extras install -y nginx1.12
    yum -y install java-1.8.0-openjdk jenkins-2.176.3 git yum-cron aws-cli xfsprogs
<commit_msg>JEN-935 update pxb.cd jenkins to ver '2.190.1'<commit_after>#!/bin/bash

JENKINS_HOST=${JHostName}
JENKINS_EIP=${MasterIP.AllocationId}
JENKINS_VOLUME_ID=${JDataVolume}
INSTANCE_ID=$(curl -s http://169.254.169.254/latest/meta-data/instance-id)
INSTANCE_REGION=$(curl -s http://169.254.169.254/latest/meta-data/placement/availability-zone | sed -e 's/[a-z]$//')

set -o xtrace
set -o errexit

setup_aws() {
    aws ec2 associate-address \
        --region $INSTANCE_REGION \
        --instance-id $INSTANCE_ID \
        --allocation-id $JENKINS_EIP \
        --allow-reassociation
}

install_software() {
    wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
    rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key

    until yum makecache; do
        sleep 1
        echo try again
    done

    yum -y update --security
    amazon-linux-extras install -y nginx1.12
    yum -y install java-1.8.0-openjdk jenkins-2.190.1 git yum-cron aws-cli xfsprogs

{'fraction_non_alphanumeric': 0.14321990858303707, 'fraction_numerical': 0.04164550533265617, 'mean_word_length': 2.840155945419103, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '2752081', 'n_tokens_mistral': 811, 'n_tokens_neox': 759, 'n_words': 136}