<commit_before>#!/bin/bash

#Forked from https://github.com/jatoben/CommandLine

set -ev
SWIFT_SNAPSHOT="swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a"

echo "Installing ${SWIFT_SNAPSHOT}..."
curl -s -L -O "https://swift.org/builds/development/ubuntu1404/${SWIFT_SNAPSHOT}/${SWIFT_SNAPSHOT}-ubuntu14.04.tar.gz"
tar -zxvf "${SWIFT_SNAPSHOT}-ubuntu14.04.tar.gz"
sudo mv "${SWIFT_SNAPSHOT}-ubuntu14.04" /swift

echo "Installing XCTest..."
curl -s -L -O "https://github.com/apple/swift-corelibs-xctest/archive/${SWIFT_SNAPSHOT}.tar.gz"
tar -zxvf "${SWIFT_SNAPSHOT}.tar.gz"
cd "swift-corelibs-xctest-${SWIFT_SNAPSHOT}"
./build_script.py --swiftc="/swift/usr/bin/swiftc" --build-dir="/tmp/XCTest_build" --swift-build-dir="/swift/usr" --arch="x86_64" --foundation-build-dir "/swift/usr/lib/swift/linux" --library-install-path="/swift/usr/lib/swift/linux" --module-install-path="/swift/usr/lib/swift/linux/x86_64"
cd ..<commit_msg>Revert "Fix CI buildscript"<commit_after>#!/bin/bash

#Forked from https://github.com/jatoben/CommandLine

set -ev
SWIFT_SNAPSHOT="swift-DEVELOPMENT-SNAPSHOT-2016-03-24-a"

echo "Installing ${SWIFT_SNAPSHOT}..."
curl -s -L -O "https://swift.org/builds/development/ubuntu1404/${SWIFT_SNAPSHOT}/${SWIFT_SNAPSHOT}-ubuntu14.04.tar.gz"
tar -zxvf "${SWIFT_SNAPSHOT}-ubuntu14.04.tar.gz"
sudo mv "${SWIFT_SNAPSHOT}-ubuntu14.04" /swift

echo "Installing XCTest..."
curl -s -L -O "https://github.com/apple/swift-corelibs-xctest/archive/${SWIFT_SNAPSHOT}.tar.gz"
tar -zxvf "${SWIFT_SNAPSHOT}.tar.gz"
cd "swift-corelibs-xctest-${SWIFT_SNAPSHOT}"
./build_script.py --swiftc="/swift/usr/bin/swiftc" --build-dir="/tmp/XCTest_build" --swift-build-dir="/swift/usr" --arch="x86_64" --library-install-path="/swift/usr/lib/swift/linux" --module-install-path="/swift/usr/lib/swift/linux/x86_64"
cd ..
{'fraction_non_alphanumeric': 0.2032293986636971, 'fraction_numerical': 0.035634743875278395, 'mean_word_length': 4.598130841121495, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '1166829', 'n_tokens_mistral': 848, 'n_tokens_neox': 772, 'n_words': 91}