<commit_before>#!/bin/sh

NAME=kafka-mirror
PID_FILE=/var/run/$NAME.pid

DAEMON="/opt/kafka/bin/kafka-run-class.sh"
DAEMON_OPTS="kafka.tools.MirrorMaker <%- @consumer_configs.sort.each do |consumer| -%> --consumer.config <%= consumer -%><%- end -%> --num.streams <%= @num_streams -%> --producer.config <%= @producer_config -%> --num.producers <%= @num_producers -%><%- if !@whitelist.eql?('') -%> --whitelist='<%= @whitelist -%>'<%- end %><%- if !@blacklist.eql?('') -%> --blacklist='<%= @blacklist -%>'<%- end -%>"
<commit_msg>Remove parameter num.streams, because it is not supported by Kafka 0.9.0.x<commit_after>#!/bin/sh

NAME=kafka-mirror
PID_FILE=/var/run/$NAME.pid

DAEMON="/opt/kafka/bin/kafka-run-class.sh"
DAEMON_OPTS="kafka.tools.MirrorMaker <%- @consumer_configs.sort.each do |consumer| -%> --consumer.config <%= consumer -%><%- end -%> --num.streams <%= @num_streams -%> --producer.config <%= @producer_config -%><%- if (scope.function_versioncmp([scope.lookupvar('kafka::version'), '0.9.0.0']) < 0) -%>--num.producers <%= @num_producers -%><%- end -%><%- if !@whitelist.eql?('') -%> --whitelist='<%= @whitelist -%>'<%- end %><%- if !@blacklist.eql?('') -%> --blacklist='<%= @blacklist -%>'<%- end -%>"

{'fraction_non_alphanumeric': 0.27608874281018897, 'fraction_numerical': 0.00657354149548069, 'mean_word_length': 4.318777292576419, 'pattern_counts': {'":': 0, '<': 30, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '6312699', 'n_tokens_mistral': 546, 'n_tokens_neox': 491, 'n_words': 69}