<commit_before>#!/bin/bash
set -ex

# install
curl -L -O https://bitbucket.org/pypy/pypy/get/default.tar.bz2
tar xjvf default.tar.bz2
mv pypy-pypy* pypy
rm default.tar.bz2
curl -L -O https://bitbucket.org/pypy/rsdl/get/default.tar.bz2
tar xjvf default.tar.bz2
mv pypy-rsdl* rsdl
rm default.tar.bz2
git clone --depth=1 https://github.com/HPI-SWA-Lab/RSqueak.git
mv RSqueak/* .
mv RSqueak RSqueakGit
curl -L -O http://www.libsdl.org/release/SDL-1.2.15.dmg
hdiutil mount SDL-1.2.15.dmg
ls /Volumes/*SDL*/
sudo cp -R /Volumes/*SDL*/SDL.framework /Library/Frameworks/

# env
export PY32="arch -32 /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python"
export PYTHONPATH="$PYTHONPATH:pypy/:rsdl/:."

# script
$PY32 pypy/rpython/bin/rpython --batch -Ojit targetrsqueak.py
exitcode=$?

# after_success
if [ $exitcode -eq 0 ]; then
    cd RSqueakGit
    export RSQUEAKCOMMIT="$(git log --pretty=%h HEAD^..HEAD)"
    cd ..
    cp rsqueak rsqueak-x86-darwin-jit-$RSQUEAKCOMMIT
    curl -T rsqueak-x86* http://www.lively-kernel.org/babelsberg/RSqueak/
fi
<commit_msg>upload darwin build also as "latest"<commit_after>#!/bin/bash
set -ex

# install
curl -L -O https://bitbucket.org/pypy/pypy/get/default.tar.bz2
tar xjvf default.tar.bz2
mv pypy-pypy* pypy
rm default.tar.bz2
curl -L -O https://bitbucket.org/pypy/rsdl/get/default.tar.bz2
tar xjvf default.tar.bz2
mv pypy-rsdl* rsdl
rm default.tar.bz2
git clone --depth=1 https://github.com/HPI-SWA-Lab/RSqueak.git
mv RSqueak/* .
mv RSqueak RSqueakGit
curl -L -O http://www.libsdl.org/release/SDL-1.2.15.dmg
hdiutil mount SDL-1.2.15.dmg
ls /Volumes/*SDL*/
sudo cp -R /Volumes/*SDL*/SDL.framework /Library/Frameworks/

# env
export PY32="arch -32 /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python"
export PYTHONPATH="$PYTHONPATH:pypy/:rsdl/:."

# script
$PY32 pypy/rpython/bin/rpython --batch -Ojit targetrsqueak.py
exitcode=$?

# after_success
if [ $exitcode -eq 0 ]; then
    cd RSqueakGit
    export RSQUEAKCOMMIT="$(git show -s --pretty=format:%H)"
    cd ..
    cp rsqueak rsqueak-x86-darwin-jit-$RSQUEAKCOMMIT
    curl -T rsqueak-x86* http://www.lively-kernel.org/babelsberg/RSqueak/
    cp rsqueak rsqueak-darwin-latest
    curl -T rsqueak-darwin-latest http://www.lively-kernel.org/babelsberg/RSqueak/
fi

{'fraction_non_alphanumeric': 0.1530701754385965, 'fraction_numerical': 0.02456140350877193, 'mean_word_length': 3.5347912524850895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 5, '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': '767504', 'n_tokens_mistral': 1037, 'n_tokens_neox': 960, 'n_words': 186}