<commit_before>#!/usr/bin/env bash

VERSION="3.0.1"

# Determine OS
UNAME=`uname`;
if [[ $UNAME == "Darwin" ]];
then
    OS="macos";
else
    if [[ $UNAME == "Linux" ]];
    then
        UBUNTU_RELEASE=`lsb_release -a 2>/dev/null`;
        if [[ $UBUNTU_RELEASE == *"15.10"* ]];
        then
            OS="ubuntu1510";
        else
            OS="ubuntu1404";
        fi
    fi
fi

if [[ $OS != "macos" ]];
then
    sudo apt-get install -y clang libicu-dev uuid-dev

    if [[ $OS == "ubuntu1510" ]];
    then
        SWIFTFILE="swift-$VERSION-RELEASE-ubuntu15.10";
    else
        SWIFTFILE="swift-$VERSION-RELEASE-ubuntu14.04";
    fi
    wget https://swift.org/builds/swift-$VERSION-release/$OS/swift-$VERSION-RELEASE/$SWIFTFILE.tar.gz
    tar -zxf $SWIFTFILE.tar.gz
    export PATH=$PWD/$SWIFTFILE/usr/bin:"${PATH}"
fi<commit_msg>update install-swift.sh for latest version<commit_after>#!/usr/bin/env bash

VERSION="4.0.3"

# Determine OS
UNAME=`uname`;
if [[ $UNAME == "Darwin" ]];
then
    OS="macos";
else
    if [[ $UNAME == "Linux" ]];
    then
        UBUNTU_RELEASE=`lsb_release -a 2>/dev/null`;
        if [[ $UBUNTU_RELEASE == *"16.10"* ]];
        then
            OS="ubuntu1610";
        else
            if [[ $UBUNTU_RELEASE == *"16.04"* ]];
            then
                OS="ubuntu1604";
            else
                OS="ubuntu1404";
            fi
        fi
    fi
fi

if [[ $OS != "macos" ]];
then
    sudo apt-get install -y clang libicu-dev uuid-dev

    if [[ $OS == "ubuntu1610" ]];
    then
        SWIFTFILE="swift-$VERSION-RELEASE-ubuntu15.10";
    else
        if [[ $OS == "ubuntu1604" ]];
        then
            SWIFTFILE="swift-$VERSION-RELEASE-ubuntu16.04";
        else
            SWIFTFILE="swift-$VERSION-RELEASE-ubuntu14.04";
        fi
    fi
    wget https://swift.org/builds/swift-$VERSION-release/$OS/swift-$VERSION-RELEASE/$SWIFTFILE.tar.gz
    tar -zxf $SWIFTFILE.tar.gz
    export PATH=$PWD/$SWIFTFILE/usr/bin:"${PATH}"
fi
{'fraction_non_alphanumeric': 0.1686017163048965, 'fraction_numerical': 0.03634528016153458, 'mean_word_length': 2.1163522012578615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '321976', 'n_tokens_mistral': 811, 'n_tokens_neox': 704, 'n_words': 129}