<commit_before>dependencies:
  pre:
    - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
    - sudo service docker start
  override:
    - docker build -t "scalableminds/webknossos-cuber:$CIRCLE_BUILD_NUM" .

test:
  override:
    - mkdir testoutput
    - >
      docker run \
        -v "${PWD}/testdata:/testdata" \
        -v "${PWD}/testoutput:/testoutput" \
        --rm \
        scalableminds/webknossos-cuber:$CIRCLE_BUILD_NUM \
        -n test \
        /testdata /testoutput
    - '[ -d testoutput/color ]'
    - '[ $(find testoutput/color/1 -name "*.raw" | wc -l) -eq 36 ]'
    - '[ $(find testoutput/color/2 -name "*.raw" | wc -l) -eq 8 ]'
    - '[ $(find testoutput/color/4 -name "*.raw" | wc -l) -eq 1 ]'
    - rm -rf testoutput<commit_msg>fixed circle.yml<commit_after>dependencies:
  pre:
    - curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
    - sudo service docker start
  override:
    - docker build -t "scalableminds/webknossos-cuber:$CIRCLE_BUILD_NUM" .

test:
  override:
    - mkdir testoutput
    - >
      docker run \
        -v "${PWD}/testdata:/testdata" \
        -v "${PWD}/testoutput:/testoutput" \
        --rm \
        scalableminds/webknossos-cuber:$CIRCLE_BUILD_NUM \
        -n test \
        /testdata /testoutput
    - '[ -d testoutput/color ]'
    - '[ $(find testoutput/color/1 -name "*.raw" | wc -l) -eq 36 ]'
    - '[ $(find testoutput/color/2 -name "*.raw" | wc -l) -eq 8 ]'
    - '[ $(find testoutput/color/4 -name "*.raw" | wc -l) -eq 1 ]'
{'fraction_non_alphanumeric': 0.1703331238214959, 'fraction_numerical': 0.01508485229415462, 'mean_word_length': 2.067437379576108, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '162630', 'n_tokens_mistral': 625, 'n_tokens_neox': 591, 'n_words': 121}