<commit_before>#!/usr/bin/env bash

TRAVIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

travis_runner() {
    args=$@

    flavour='travis'
    if [ "${MATRIX_TYPE}" = "javascript" ]; then
        flavour='travis-js'
    fi

    $TRAVIS_DIR/../dockerhq.sh $flavour run --rm $args
}

get_container_id() {
    label_name=$1
    value=$2
    sudo docker ps -fq label=$label_name=$value -f status=running
}

get_container_ip() {
    CID=$(get_container_id $@)
    sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' ${CID} | tr -d '\n' | tr -d '\r'
}

create_topics() {<commit_msg>filter by name directly to avoid conflics when simulating<commit_after>#!/usr/bin/env bash

TRAVIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

travis_runner() {
    args=$@

    flavour='travis'
    if [ "${MATRIX_TYPE}" = "javascript" ]; then
        flavour='travis-js'
    fi

    $TRAVIS_DIR/../dockerhq.sh $flavour run --rm $args
}

get_container_id() {
    label_name=$1
    value=$2
    sudo docker ps -qf label=$label_name=$value -f name=travis_kafka_1 -f status=running
}

get_container_ip() {
    CID=$(get_container_id $@)
    sudo docker inspect --format '{{ .NetworkSettings.IPAddress }}' ${CID} | tr -d '\n' | tr -d '\r'
}

create_topics() {
{'fraction_non_alphanumeric': 0.18124507486209615, 'fraction_numerical': 0.005516154452324665, 'mean_word_length': 3.3493150684931505, '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': '3659568', 'n_tokens_mistral': 506, 'n_tokens_neox': 482, 'n_words': 102}