<commit_before>#!/bin/sh -ex

export BASE_DIR=`dirname $0`

build() {
  cd ${BASE_DIR}/$1

  echo 'building $1' && echo -en 'travis_fold:start:$1\\r'

  TARGET="//..."
  BAZEL_OPTS="--output_base=$HOME/.cache/bazel"
  echo 'fetching dependencies...' && echo -en 'travis_fold:start:fetch\\r'
  bazel $BAZEL_OPTS fetch --curses=no $TARGET
  echo -en 'travis_fold:end:fetch\\r'
  echo 'building...' && echo -en 'travis_fold:start:build\\r'
  bazel $BAZEL_OPTS build --curses=no $TARGET
  echo -en 'travis_fold:end:build\\r'
  echo 'running tests...' && echo -en 'travis_fold:start:test\\r'
  bazel $BAZEL_OPTS test --curses=no $TARGET
  echo -en 'travis_fold:end:test\\r'

  echo 'complete $1' && echo -en 'travis_fold:end:$1\\r'
}

build .
build projects/scala_serialization<commit_msg>quoting<commit_after>#!/bin/sh -ex

export BASE_DIR=`dirname $0`

build() {
  cd ${BASE_DIR}/$1

  echo 'building '$1 && echo -en 'travis_fold:start:'$1'\\r'

  TARGET="//..."
  BAZEL_OPTS="--output_base=$HOME/.cache/bazel"
  echo 'fetching dependencies...' && echo -en 'travis_fold:start:fetch\\r'
  bazel $BAZEL_OPTS fetch --curses=no $TARGET
  echo -en 'travis_fold:end:fetch\\r'
  echo 'building...' && echo -en 'travis_fold:start:build\\r'
  bazel $BAZEL_OPTS build --curses=no $TARGET
  echo -en 'travis_fold:end:build\\r'
  echo 'running tests...' && echo -en 'travis_fold:start:test\\r'
  bazel $BAZEL_OPTS test --curses=no $TARGET
  echo -en 'travis_fold:end:test\\r'

  echo 'complete '$1 && echo -en 'travis_fold:end:'$1'\\r'
}

build .
build projects/scala_serialization
{'fraction_non_alphanumeric': 0.18773946360153257, 'fraction_numerical': 0.007662835249042145, 'mean_word_length': 3.8215384615384616, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5403782', 'n_tokens_mistral': 644, 'n_tokens_neox': 634, 'n_words': 131}