<commit_before>machine:
  node:
    version: 7
  environment:
    YARN_VERSION: 0.19.1
    PATH: "${PATH}:${HOME}/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin"

dependencies:
  pre:
    - |
      if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
        echo "Download and install Yarn."
        curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
      else
        echo "The correct version of Yarn is already installed."
      fi
  override:
    - yarn global add syncano-cli@beta
  cache_directories:
    - ~/.yarn
    - ~/.config/yarn
    - ~/.cache/yarn

test:
  override:
    - exit 0

deployment:
  staging:
    branch: devel
    commands:
      - yarn:
          pwd: syncano
      - syncano-cli socket submit ${SOCKET_NAME} -b patch
<commit_msg>Force to have always fresh version<commit_after>machine:
  node:
    version: 7
  environment:
    YARN_VERSION: 0.19.1
    PATH: "${PATH}:${HOME}/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin"

dependencies:
  pre:
    - |
      if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
        echo "Download and install Yarn."
        curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
      else
        echo "The correct version of Yarn is already installed."
      fi
  override:
    - yarn global add syncano-cli@beta --force
  cache_directories:
    - ~/.yarn
    - ~/.config/yarn
    - ~/.cache/yarn

test:
  override:
    - exit 0

deployment:
  staging:
    branch: devel
    commands:
      - yarn:
          pwd: syncano
      - syncano-cli socket submit ${SOCKET_NAME} -b patch

{'fraction_non_alphanumeric': 0.1436265709156194, 'fraction_numerical': 0.00718132854578097, 'mean_word_length': 2.1252336448598133, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3244410', 'n_tokens_mistral': 602, 'n_tokens_neox': 575, 'n_words': 144}