<commit_before>
version=3.22.24.17

# Other versions of v8 to test against:
# version=3.7.12.22 # Ubuntu Lucid
# version=3.17.4.1  # A pre-3.19 version
# version=3.19.18.4 # A post-3.19 version
# version=3.24.30.1 # A future version, with incompatible API changes
# See http://omahaproxy.appspot.com/ for the current stable/beta/dev versions of v8

src_url=https://commondatastorage.googleapis.com/chromium-browser-official/v8-$version.tar.bz2

pkg_install () {
    pkg_copy_src_to_build
    if ! python --version 2>&1  | grep --quiet 'Python 2'; then
        pybin=$build_dir/pybin
        mkdir -p "$pybin"
        rm -f "$pybin/python"
        ln -s "$(which python2)" "$pybin/python"
        export PATH=$pybin:$PATH
    fi
    mkdir -p "$install_dir/lib"
    pkg_make native CXXFLAGS="${CXXFLAGS:-} -Wno-error"
    find "$build_dir" -iname "*.o" | grep -v '\/preparser_lib\/' | xargs ar cqs "$install_dir/lib/libv8.a"
}<commit_msg>Use HTTP instead of HTTPS for fetching v8<commit_after>
version=3.22.24.17

# Other versions of v8 to test against:
# version=3.7.12.22 # Ubuntu Lucid
# version=3.17.4.1  # A pre-3.19 version
# version=3.19.18.4 # A post-3.19 version
# version=3.24.30.1 # A future version, with incompatible API changes
# See http://omahaproxy.appspot.com/ for the current stable/beta/dev versions of v8

src_url=http://commondatastorage.googleapis.com/chromium-browser-official/v8-$version.tar.bz2

pkg_install () {
    pkg_copy_src_to_build
    if ! python --version 2>&1  | grep --quiet 'Python 2'; then
        pybin=$build_dir/pybin
        mkdir -p "$pybin"
        rm -f "$pybin/python"
        ln -s "$(which python2)" "$pybin/python"
        export PATH=$pybin:$PATH
    fi
    mkdir -p "$install_dir/lib"
    pkg_make native CXXFLAGS="${CXXFLAGS:-} -Wno-error"
    find "$build_dir" -iname "*.o" | grep -v '\/preparser_lib\/' | xargs ar cqs "$install_dir/lib/libv8.a"
}
{'fraction_non_alphanumeric': 0.1474460242232754, 'fraction_numerical': 0.047919957872564506, 'mean_word_length': 3.07725321888412, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 10, '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': '4186083', 'n_tokens_mistral': 767, 'n_tokens_neox': 695, 'n_words': 171}