<commit_before>version: 2
executorType: docker
containerInfo:
  - image: scizzorz/rain
stages:
  build:
    workDir: ~/
    steps:
      - type: checkout
        path: ~/rain

      - type: shell
        name: "Install Python dependencies"
        pwd: ~/rain
        command: |
          pip3 install -r requirements.txt

      - type: shell
        name: "Run tests"
        pwd: ~/rain
        environment:
          - RAINLIB: ./core
          - RAINBASE: ./base
          - PYTHONPATH: .
        command: |
          tests/fix.sh
          mkdir -p /tmp/results
          py.test -rap -v --tb=long --cov=rain --junit-xml=/tmp/results/py.test.xml

      - type: test-results-store
        path: /tmp/results

#- cd tests/lib && make init suite && LD_LIBRARY_PATH=./criterion/build ./suite --xml=$CIRCLE_TEST_REPORTS/tests_c.xml
<commit_msg>circle: Update circle.yml<commit_after>version: 2
executorType: docker
containerInfo:
  - image: scizzorz/rain
stages:
  build:
    workDir: ~/
    steps:
      - type: checkout
        path: ~/rain

      - type: shell
        name: "Install Python dependencies"
        pwd: ~/rain
        command: |
          pip3 install -r requirements.txt

      - type: shell
        name: "Run tests"
        pwd: ~/rain
        environment:
          - RAINLIB: ~/rain/rain/core
          - RAINBASE: ~/rain/rain/base
          - PYTHONPATH: ~/rain
        command: |
          tests/fix.sh
          mkdir -p /tmp/results
          py.test -rap -v --tb=long --cov=rain --junit-xml=/tmp/results/py.test.xml

      - type: test-results-store
        path: /tmp/results

#- cd tests/lib && make init suite && LD_LIBRARY_PATH=./criterion/build ./suite --xml=$CIRCLE_TEST_REPORTS/tests_c.xml

{'fraction_non_alphanumeric': 0.12347826086956522, 'fraction_numerical': 0.002318840579710145, 'mean_word_length': 1.7053291536050157, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '4568474', 'n_tokens_mistral': 598, 'n_tokens_neox': 561, 'n_words': 131}