<commit_before>#!/bin/bash

. $BASEDIR/include/common.sh

if [ $DISTNAME == "suse-leap" ]; then
    REPOSITORY=http://download.opensuse.org/distribution/leap/$RELVER/repo/oss/
    UPDATES=http://download.opensuse.org/update/leap/$RELVER/oss/
else
    REPOSITORY=http://download.opensuse.org/distribution/$RELVER/repo/oss/
    UPDATES=http://download.opensuse.org/update/$RELVER/
fi

EXTRAPKGS='vim'
REMOVEPKGS='apache2-utils apache2-prefork apache2 postfix'

ZYPPER="zypper -v --root=$INSTALL --non-interactive --no-gpg-checks "

function bootstrap {

        $ZYPPER addrepo --refresh $REPOSITORY openSUSE-oss
        $ZYPPER addrepo --refresh $UPDATES openSUSE-updates
        $ZYPPER install openSUSE-release 
        $ZYPPER install -t pattern base sw_management
        $ZYPPER install $EXTRAPKGS
        $ZYPPER rm $REMOVEPKGS
	
}

function configure-opensuse {
	configure-append <<EOF
systemctl disable NetworkManager.service
systemctl disable NetworkManager-wait-online.service
systemctl disable NetworkManager-dispatcher.service
systemctl enable  network.service
usermod -L root
systemctl enable sshd
EOF
}<commit_msg>openSUSE: allow login on tty console<commit_after>#!/bin/bash

. $BASEDIR/include/common.sh

if [ $DISTNAME == "suse-leap" ]; then
    REPOSITORY=http://download.opensuse.org/distribution/leap/$RELVER/repo/oss/
    UPDATES=http://download.opensuse.org/update/leap/$RELVER/oss/
else
    REPOSITORY=http://download.opensuse.org/distribution/$RELVER/repo/oss/
    UPDATES=http://download.opensuse.org/update/$RELVER/
fi

EXTRAPKGS='vim'
REMOVEPKGS='apache2-utils apache2-prefork apache2 postfix'

ZYPPER="zypper -v --root=$INSTALL --non-interactive --no-gpg-checks "

function bootstrap {

        $ZYPPER addrepo --refresh $REPOSITORY openSUSE-oss
        $ZYPPER addrepo --refresh $UPDATES openSUSE-updates
        $ZYPPER install openSUSE-release 
        $ZYPPER install -t pattern base sw_management
        $ZYPPER install $EXTRAPKGS
        $ZYPPER rm $REMOVEPKGS
	
}

function configure-opensuse {
	configure-append <<EOF
systemctl disable NetworkManager.service
systemctl disable NetworkManager-wait-online.service
systemctl disable NetworkManager-dispatcher.service
systemctl enable  network.service
usermod -L root
systemctl enable sshd
echo console >> /etc/securetty
EOF
}
{'fraction_non_alphanumeric': 0.11048526863084922, 'fraction_numerical': 0.0025996533795493936, 'mean_word_length': 3.9337606837606836, 'pattern_counts': {'":': 0, '<': 7, '<?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': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2534270', 'n_tokens_mistral': 797, 'n_tokens_neox': 779, 'n_words': 152}