<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_config.sort.each do |c| -%> --consumer.config /opt/kafka/config/<%= c['name'] -%>.properties<%- end -%> --num.streams <%= @num_streams -%> --producer.config <%= @producer_config -%> --num.producers <%= num_producers -%> --whitelist=\"<%= @whitelist -%>\" --blacklist=\"<%= @blacklist -%>\""

start() {
  if [ -f $PID_FILE ]
  then
    PID=`cat $PID_FILE`
    if [ -z "`ps -ef | awk '{print $2}' | grep "^$PID$"`" ]; then<commit_msg>fixing issue in mirror maker only allowing either whitelist or blacklist but not both<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_config.sort.each do |c| -%> --consumer.config /opt/kafka/config/<%= c['name'] -%>.properties<%- end -%> --num.streams <%= @num_streams -%> --producer.config <%= @producer_config -%> --num.producers <%= num_producers -%><%- if defined?(@whitelist) -%> --whitelist=\"<%= @whitelist -%>\"<%- end %><%- if defined?(@blacklist) -%> --blacklist=\"<%= @blacklist -%><%- end -%>\""

start() {
  if [ -f $PID_FILE ]
  then
    PID=`cat $PID_FILE`
    if [ -z "`ps -ef | awk '{print $2}' | grep "^$PID$"`" ]; then
{'fraction_non_alphanumeric': 0.25055432372505543, 'fraction_numerical': 0.0014781966001478197, 'mean_word_length': 3.7177700348432055, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '4791807', 'n_tokens_mistral': 593, 'n_tokens_neox': 533, 'n_words': 98}