<commit_before>#!/bin/bash

### Simple minded install script for
### FreeGeek Chicago by <NAME>
### Updates by <NAME>, <NAME>, <NAME>, <NAME>

### Available on FreeGeek Chicago's github Account at http://git.io/Ool_Aw

### Import DISTRIB_CODENAME and DISTRIB_RELEASE
. /etc/lsb-release

### Get the integer part of $DISTRIB_RELEASE. Bash/test can't handle floating-point numbers.
DISTRIB_MAJOR_RELEASE=$(echo "scale=0; $DISTRIB_RELEASE/1" | bc)

echo "################################"
echo "#  FreeGeek Chicago Installer  #"
echo "################################"

# Default sources.list already has:
# <releasename> main restricted universe multiverse
# <releasename>-security main restricted universe multiverse
# <releasename>-updates main restricted

### Disable Source Repos
#
# Check to see if Source repos are set ON and turn OFF
if grep -q "deb-src#" /etc/apt/sources.list; then
    echo "* Commenting out source repositories -- we don't mirror them locally."
    sed -i 's/deb-src /#deb-src#/' /etc/apt/sources.list
else
    echo "# Already disabled source repositories"
fi

# Figure out if this part of the script has been run already
# TODO: Look at the default sources.list
#grep "${DISTRIB_CODENAME}-updates universe" /etc/apt/sources.list
#if (($? == 1)); then
#    echo "* Adding ${DISTRIB_CODENAME} updates line for universe and multiverse"
#    cp /etc/apt/sources.list /etc/apt/sources.list.backup
#    echo "deb http://us.archive.ubuntu.com/ubuntu/ ${DISTRIB_CODENAME}-updates universe multiverse" >> /etc/apt/sources.list
#else
#    echo "# Already added universe and multiverse ${DISTRIB_CODENAME}-updates line to sources,"
#fi

# Figure out if this part of the script has been run already
if grep -q "${DISTRIB_CODENAME}-updates universe" /etc/apt/sources.list; then<commit_msg>Correct if statement that comments out source repositories<commit_after>#!/bin/bash

### Simple minded install script for
### FreeGeek Chicago by <NAME>
### Updates by <NAME>, <NAME>, <NAME>, <NAME>

### Available on FreeGeek Chicago's github Account at http://git.io/Ool_Aw

### Import DISTRIB_CODENAME and DISTRIB_RELEASE
. /etc/lsb-release

### Get the integer part of $DISTRIB_RELEASE. Bash/test can't handle floating-point numbers.
DISTRIB_MAJOR_RELEASE=$(echo "scale=0; $DISTRIB_RELEASE/1" | bc)

echo "################################"
echo "#  FreeGeek Chicago Installer  #"
echo "################################"

# Default sources.list already has:
# <releasename> main restricted universe multiverse
# <releasename>-security main restricted universe multiverse
# <releasename>-updates main restricted

### Disable Source Repos
#
# Check to see if Source repos are set ON and turn OFF
if grep -q "deb-src#" /etc/apt/sources.list; then
    echo "# Already disabled source repositories"
else
    echo "* Commenting out source repositories -- we don't mirror them locally."
    sed -i 's/deb-src /#deb-src# /' /etc/apt/sources.list
fi

# Figure out if this part of the script has been run already
# TODO: Look at the default sources.list
#grep "${DISTRIB_CODENAME}-updates universe" /etc/apt/sources.list
#if (($? == 1)); then
#    echo "* Adding ${DISTRIB_CODENAME} updates line for universe and multiverse"
#    cp /etc/apt/sources.list /etc/apt/sources.list.backup
#    echo "deb http://us.archive.ubuntu.com/ubuntu/ ${DISTRIB_CODENAME}-updates universe multiverse" >> /etc/apt/sources.list
#else
#    echo "# Already added universe and multiverse ${DISTRIB_CODENAME}-updates line to sources,"
#fi

# Figure out if this part of the script has been run already
if grep -q "${DISTRIB_CODENAME}-updates universe" /etc/apt/sources.list; then
{'fraction_non_alphanumeric': 0.15178082191780823, 'fraction_numerical': 0.0016438356164383563, 'mean_word_length': 4.557077625570776, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 23, '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': '41619', 'n_tokens_mistral': 1194, 'n_tokens_neox': 1088, 'n_words': 376}