<commit_before>#!/bin/sh -x

# Copyright 2015-2017 <NAME> <https://github.com/vszakats>
# See LICENSE.md

# Requirements (not a comprehensive list at this point):
#   Windows:
#     MSYS2: p7zip mingw-w64-{i686,x86_64}-{jq,osslsigncode} gpg python
#   Linux
#     p7zip-full jq osslsigncode dos2unix binutils-mingw-w64 gcc-mingw-w64 wine
#   Mac:
#     Homebrew: mingw-w64 p7zip jq osslsigncode dos2unix gpg
#     Wine from https://dl.winehq.org/wine-builds/macosx/download.html

cd "$(dirname "$0")" || exit

export _BRANCH="${APPVEYOR_REPO_BRANCH}${TRAVIS_BRANCH}${CI_BUILD_REF_NAME}${GIT_BRANCH}"
[ -n "${_BRANCH}" ] || _BRANCH="$(git symbolic-ref --short --quiet HEAD)"
[ -n "${_BRANCH}" ] || _BRANCH='master'
export _URL=''
which git > /dev/null && _URL="$(git ls-remote --get-url | sed 's|.git$||')"
[ -n "${_URL}" ] || _URL="https://github.com/${APPVEYOR_REPO_NAME}${TRAVIS_REPO_SLUG}"

# Detect host OS<commit_msg>update wine install method on mac [ci skip]<commit_after>#!/bin/sh -x

# Copyright 2015-2017 <NAME> <https://github.com/vszakats>
# See LICENSE.md

# Requirements (not a comprehensive list at this point):
#   Windows:
#     MSYS2: p7zip mingw-w64-{i686,x86_64}-{jq,osslsigncode} gpg python
#   Linux
#     p7zip-full jq osslsigncode dos2unix binutils-mingw-w64 gcc-mingw-w64 wine
#   Mac:
#     brew install mingw-w64 p7zip jq osslsigncode dos2unix gpg
#     brew cask install wine-staging

cd "$(dirname "$0")" || exit

export _BRANCH="${APPVEYOR_REPO_BRANCH}${TRAVIS_BRANCH}${CI_BUILD_REF_NAME}${GIT_BRANCH}"
[ -n "${_BRANCH}" ] || _BRANCH="$(git symbolic-ref --short --quiet HEAD)"
[ -n "${_BRANCH}" ] || _BRANCH='master'
export _URL=''
which git > /dev/null && _URL="$(git ls-remote --get-url | sed 's|.git$||')"
[ -n "${_URL}" ] || _URL="https://github.com/${APPVEYOR_REPO_NAME}${TRAVIS_REPO_SLUG}"

# Detect host OS
{'fraction_non_alphanumeric': 0.18122626153011395, 'fraction_numerical': 0.032555615843733045, 'mean_word_length': 4.423529411764706, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '159714', 'n_tokens_mistral': 815, 'n_tokens_neox': 756, 'n_words': 154}