<commit_before>#!/bin/bash

. node_modules/kafka-test-tools/clean_kafka.sh

check 2181 "Zookeeper"
check 9092 "Kafka"

# Don't need to clean anything in Jenkins or Travis
if [ "x$JENKINS_URL" = "x"  ] || [ ${CI} = true ]; then
  dropTopics "test_dc"
  sleep 5
fi

createTopic "test_dc.simple_test_rule"
createTopic "test_dc.change-prop.retry.simple_test_rule"
createTopic "test_dc.kafka_producing_rule"
createTopic "test_dc.change-prop.retry.kafka_producing_rule"
createTopic "test_dc.mediawiki.revision-create"
createTopic "test_dc.change-prop.retry.mediawiki.revision-create"
createTopic "test_dc.change-prop.backlinks.continue"<commit_msg>Better check for travis environment<commit_after>#!/bin/bash

. node_modules/kafka-test-tools/clean_kafka.sh

check 2181 "Zookeeper"
check 9092 "Kafka"

# Don't need to clean anything in Jenkins or Travis
if [ "x$JENKINS_URL" = "x"  ] || [ "$CI" = "true" ]; then
  dropTopics "test_dc"
  sleep 5
fi

createTopic "test_dc.simple_test_rule"
createTopic "test_dc.change-prop.retry.simple_test_rule"
createTopic "test_dc.kafka_producing_rule"
createTopic "test_dc.change-prop.retry.kafka_producing_rule"
createTopic "test_dc.mediawiki.revision-create"
createTopic "test_dc.change-prop.retry.mediawiki.revision-create"
createTopic "test_dc.change-prop.backlinks.continue"
{'fraction_non_alphanumeric': 0.1162079510703364, 'fraction_numerical': 0.013761467889908258, 'mean_word_length': 6.075675675675676, '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': '2942116', 'n_tokens_mistral': 507, 'n_tokens_neox': 483, 'n_words': 87}