<commit_before>language: php

php:
    - 7.0
    - 7.1

# install:
#     - git clone https://github.com/edenhill/librdkafka.git && cd librdkafka && ./configure && make && sudo make install && cd ../
#     - git clone https://github.com/arnaud-lb/php-rdkafka.git && cd php-rdkafka/ && phpize && ./configure && make && sudo make install && cd ../
#     - echo "extension = rdkafka.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
    
before_install:
  - sudo apt-get update
#   - wget http://www.us.apache.org/dist/kafka/0.8.2.1/kafka_2.10-0.8.2.1.tgz -O kafka.tgz
#   - mkdir -p kafka && tar xzf kafka.tgz -C kafka --strip-components 1
#   - nohup bash -c "cd kafka && bin/zookeeper-server-start.sh config/zookeeper.properties &"
#   - nohup bash -c "cd kafka && bin/kafka-server-start.sh config/server.properties &"
#   - sleep 5
#   - kafka/bin/kafka-topics.sh --create --partitions 1 --replication-factor 1 --topic test_topic --zookeeper localhost:2181
#   - kafka/bin/kafka-topics.sh --create --partitions 4 --replication-factor 1 --topic test.4 --zookeeper localhost:2181
#   - kafka/bin/kafka-topics.sh --create --partitions 64 --replication-factor 1 --topic test.64 --zookeeper localhost:2181

script:
  - phpunit -c phpunit.xml --coverage-text ./test/Two<commit_msg>updading travis 2<commit_after>language: php

php:
    - 7.0
    - 7.1

# install:
#     - git clone https://github.com/edenhill/librdkafka.git && cd librdkafka && ./configure && make && sudo make install && cd ../
#     - git clone https://github.com/arnaud-lb/php-rdkafka.git && cd php-rdkafka/ && phpize && ./configure && make && sudo make install && cd ../
#     - echo "extension = rdkafka.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
    
before_install:
  - sudo apt-get update
#   - wget http://www.us.apache.org/dist/kafka/0.8.2.1/kafka_2.10-0.8.2.1.tgz -O kafka.tgz
#   - mkdir -p kafka && tar xzf kafka.tgz -C kafka --strip-components 1
#   - nohup bash -c "cd kafka && bin/zookeeper-server-start.sh config/zookeeper.properties &"
#   - nohup bash -c "cd kafka && bin/kafka-server-start.sh config/server.properties &"
#   - sleep 5
#   - kafka/bin/kafka-topics.sh --create --partitions 1 --replication-factor 1 --topic test_topic --zookeeper localhost:2181
#   - kafka/bin/kafka-topics.sh --create --partitions 4 --replication-factor 1 --topic test.4 --zookeeper localhost:2181
#   - kafka/bin/kafka-topics.sh --create --partitions 64 --replication-factor 1 --topic test.64 --zookeeper localhost:2181

script:
  - phpunit -c phpunit.xml --coverage-text ./test
{'fraction_non_alphanumeric': 0.16835147744945567, 'fraction_numerical': 0.030715396578538102, 'mean_word_length': 2.707492795389049, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 4, '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': '591860', 'n_tokens_mistral': 1015, 'n_tokens_neox': 939, 'n_words': 209}