<commit_before>#!/bin/bash
set -e

usage() {
  echo -e "
  usage: $0 options

  Configures and starts Kafka inside a docker container.

  OPTIONS:
    -h Show this message
    -z list of zookeeper nodes
    -i kafka broker id
    -H hostname to advertise
    -p port to advertise
    "
}

HOST=
PORT=
ZKS=
BROKER_ID=
KAFKA_VERSION=2.9.2-0.8.1

while getopts "hz:i:H:p:" OPTION
do
  case $OPTION in
    b)
      usage
      exit 1
      ;;
    z)
      ZKS=$OPTARG
      ;;
    i)
      BROKER_ID=$OPTARG
      ;;
    H)
      HOST=$OPTARG
      ;;
    p)
      PORT=$OPTARG
      ;;
    ?)
      usage
      exit 1
      ;;
  esac
done

if [[ -z $ZKS ]] 
then<commit_msg>Fix typos<commit_after>#!/bin/bash
set -e

usage() {
  echo -e "
  usage: $0 options

  Configures and starts Kafka inside a docker container.

  OPTIONS:
    -h Show this message
    -z list of zookeeper nodes
    -i kafka broker id
    -H hostname to advertise
    -p port to advertise
    "
}

HOST=
PORT=
ZKS=
BROKER_ID=
KAFKA_VERSION=2.9.2-0.8.1

while getopts "hz:i:H:p:" OPTION
do
  case $OPTION in
    h)
      usage
      exit 1
      ;;
    z)
      ZKS=$OPTARG
      ;;
    i)
      BROKER_ID=$OPTARG
      ;;
    H)
      HOST=$OPTARG
      ;;
    p)
      PORT=$OPTARG
      ;;
    ?)
      usage
      exit 1
      ;;
  esac
done

if [[ -z $ZKS ]] 
then
{'fraction_non_alphanumeric': 0.11061285500747384, 'fraction_numerical': 0.013452914798206279, 'mean_word_length': 1.6462450592885376, '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': '1494097', 'n_tokens_mistral': 571, 'n_tokens_neox': 530, 'n_words': 146}