<commit_before>#!/bin/sh

source ./lib

function configure_package()
{
    show_message "Configuring nginx..."

    show_message "\tPathes in config file..."
    sed -i "s/listen       80/listen       81/g" /etc/nginx/nginx.conf >> /tmp/install.log 2>&1
    show_result $?

    show_message "\tRestarting nginx..."
    systemctl restart nginx.service >> /tmp/install.log 2>&1
    show_result $?

    show_message "\tEnabling nginx..."
    systemctl enable nginx.service >> /tmp/install.log 2>&1
    show_result $?
}

function install_package()
{
    if [ $OS == "fedora" ]
    then
        show_message "Installing nginx..."
        yum install --assumeyes nginx >> /tmp/install.log 2>&1
        show_result $?
    elif [ $OS == "rhel" ]
    then
        show_message "Installing nginx..."
        yum install --assumeyes --enablerepo=epel nginx >> /tmp/install.log 2>&1
        show_result $?
    fi
}<commit_msg>sic p36<commit_after>#!/bin/sh

source ./lib

function configure_package()
{
    show_message "Configuring nginx..."

    show_message "\tPathes in config file..."
    sed -i "s/listen       80/listen       81/g" /etc/nginx/nginx.conf >> /tmp/install.log 2>&1
    show_result $?

    show_message "\tEnabling nginx in firewall..."
    firewall-cmd --permanent --zone=public --add-port=81/tcp >> /tmp/install.log 2>&1
    show_result $?

    show_message "\tRestarting firewalld..."
    systemctl restart firewalld.service >> /tmp/install.log 2>&1
    show_result $?

    show_message "\tRestarting nginx..."
    systemctl restart nginx.service >> /tmp/install.log 2>&1
    show_result $?

    show_message "\tEnabling nginx..."
    systemctl enable nginx.service >> /tmp/install.log 2>&1
    show_result $?
}

function install_package()
{
    if [ $OS == "fedora" ]
    then
        show_message "Installing nginx..."
        yum install --assumeyes nginx >> /tmp/install.log 2>&1
        show_result $?
    elif [ $OS == "rhel" ]
    then
        show_message "Installing nginx..."
        yum install --assumeyes --enablerepo=epel nginx >> /tmp/install.log 2>&1
        show_result $?
    fi
}
{'fraction_non_alphanumeric': 0.14129919393077287, 'fraction_numerical': 0.017069701280227598, 'mean_word_length': 2.3868378812199036, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 39, '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': '6912102', 'n_tokens_mistral': 760, 'n_tokens_neox': 701, 'n_words': 166}