<commit_before>#!/bin/bash

# SuSE distribution
if [ -f /etc/SuSE-release ]; then
    dist=`cat /etc/SuSE-release | tr "\n" ' ' | sed s/\(.*//`
    ver=`cat /etc/SuSE-release | tr "\n" ' ' | sed s/.*=\ //`
    if [ `echo $dist | cut -d ' ' -f 1` == 'openSUSE' ]; then
        echo "OpenSuSE v$ver found."
        if [ `type -P zypper` != '' ]; then
            echo "Installing git with sudo zypper..."
            sudo zypper --non-interactive install git
            exit
        fi
    else
        echo "Unsupported SuSE distribution."
        echo "Please install git manually."
        exit 1
    fi
# Ubuntu distribution
elif [ -f /etc/lsb-release ]; then
    dist=`cat /etc/lsb-release | grep _ID | tr -d "\n" | sed s/.*=//`
    ver=`cat /etc/lsb-release | grep _REL | tr -d "\n" | sed s/.*=//`
    echo "$dist $ver"
    if [ "$dist" == 'Ubuntu' ]; then
        echo "Ubuntu v$ver found."
        echo "Installing git with sudo apt-get..."
        sudo apt-get --assume-yes install git-core
        exit
    fi
#Unknown distribution    
else
    echo "Unsupported Linux distribution."
    echo "Please install git manually."<commit_msg>Ported GitBox to Fedora.<commit_after>#!/bin/bash

# SuSE distribution
if [ -f /etc/SuSE-release ]; then
    dist=`cat /etc/SuSE-release | tr "\n" ' ' | sed s/\(.*//`
    ver=`cat /etc/SuSE-release | tr "\n" ' ' | sed s/.*=\ //`
    if [ `echo $dist | cut -d ' ' -f 1` == 'openSUSE' ]; then
        echo "OpenSuSE v$ver found."
        if [ `type -P zypper` != '' ]; then
            echo "Installing git with sudo zypper..."
            sudo zypper --non-interactive install git
            exit
        fi
    else
        echo "Unsupported SuSE distribution."
        echo "Please install git manually."
        exit 1
    fi
# Ubuntu distribution
elif [ -f /etc/lsb-release ]; then
    dist=`cat /etc/lsb-release | grep _ID | tr -d "\n" | sed s/.*=//`
    ver=`cat /etc/lsb-release | grep _REL | tr -d "\n" | sed s/.*=//`
    if [ "$dist" == 'Ubuntu' ]; then
        echo "Ubuntu v$ver found."
        echo "Installing git with sudo apt-get..."
        sudo apt-get --assume-yes install git-core
        exit
    fi
# Fedora distribution
elif [ -f /etc/fedora-release ]; then
    dist=`cat /etc/fedora-release | tr "\n" ' ' | sed s/\ release.*//`
    ver=`cat /etc/fedora-release | tr "\n" ' ' | sed s/.*release\ // | sed s/\ .*//`
    if [ `echo $dist | cut -d ' ' -f 1` == 'Fedora' ]; then
        echo "Fedora v$ver found."
        echo "Checking for sudo access to yum..."
        sudo -l yum
        if [ $? -eq 0 ]; then
            echo "Installing git with sudo yum..."
            sudo yum --assumeyes install git-core
            exit
        else
            echo "Installing git with root privileges..."
            su root -c "yum --assumeyes install git-core"
            exit
        fi
    else
        echo "Unsupported Fedora distribution."
        echo "Please install git manually."
        exit 1
    fi
# Unknown distribution    
else
    echo "Unsupported Linux distribution."
    echo "Please install git manually."
{'fraction_non_alphanumeric': 0.15095562034337545, 'fraction_numerical': 0.0022675736961451248, 'mean_word_length': 1.7695067264573991, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4075245', 'n_tokens_mistral': 1047, 'n_tokens_neox': 990, 'n_words': 334}