<commit_before>machine:
  pre:
    - pip install cpplint
    - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
    - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
    - sudo add-apt-repository -y "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main"
    - sudo apt-get update
    - sudo apt-get -y --no-install-recommends install clang-5.0 clang-tidy-5.0 clang-format-5.0 valgrind
    - sudo ln -s /usr/bin/clang++-5.0 /usr/bin/clang++
    - sudo ln -s /usr/bin/clang-tidy-5.0 /usr/bin/clang-tidy
    - sudo ln -s /usr/bin/clang-format-5.0 /usr/bin/clang-format
    - wget https://cmake.org/files/v3.5/cmake-3.5.0-Linux-x86_64.sh
    - sudo sh cmake-3.5.0-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir

compile:
  override:
    - mkdir build && cd build && cmake -G 'Unix Makefiles' .. -DCMAKE_BUILD_TYPE=Release 'Unix Makefiles' .. && make

test:
  override:
    - ./lint.sh
    - cd build && make check-format
    - cd build && make check-lint
    - cd build && make check
    - cd build && make benchmark
<commit_msg>circleci: run bench w/ and w/o simd<commit_after>machine:
  pre:
    - pip install cpplint
    - wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
    - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
    - sudo add-apt-repository -y "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-5.0 main"
    - sudo apt-get update
    - sudo apt-get -y --no-install-recommends install clang-5.0 clang-tidy-5.0 clang-format-5.0 valgrind
    - sudo ln -s /usr/bin/clang++-5.0 /usr/bin/clang++
    - sudo ln -s /usr/bin/clang-tidy-5.0 /usr/bin/clang-tidy
    - sudo ln -s /usr/bin/clang-format-5.0 /usr/bin/clang-format
    - wget https://cmake.org/files/v3.5/cmake-3.5.0-Linux-x86_64.sh
    - sudo sh cmake-3.5.0-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir

compile:
  override:
    - mkdir build && cd build && cmake -G 'Unix Makefiles' .. -DCMAKE_BUILD_TYPE=Release  -DNTTEC_USE_SIMD=ON 'Unix Makefiles' .. && make

test:
  override:
    - ./lint.sh
    - cd build && make check-format
    - cd build && make check-lint
    - cd build && make check
    # w/o SIMD
    - cd build && cmake .. -DNTTEC_USE_SIMD=OFF && make benchmark
    # w/ SIMD
    - cd build && cmake .. -DNTTEC_USE_SIMD=ON && make benchmark

{'fraction_non_alphanumeric': 0.1583044982698962, 'fraction_numerical': 0.025951557093425604, 'mean_word_length': 2.3090128755364807, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '5575494', 'n_tokens_mistral': 976, 'n_tokens_neox': 919, 'n_words': 195}