<commit_before>#!/bin/bash

# override properties like:
# export environment_music_scrobbling1_baseurl="http://localhost:${RESTDRIVER_PORT:="8081"}"
TIMEOUT=30

wait_for_port () {
    port=$1
    timeout=$2

    for i in `seq 1 $timeout`
    do
        if nc -w 1 localhost $port
        then
            return 0
        fi
        sleep 1<commit_msg>Changed back to use netstat for polling Jetty.<commit_after>#!/bin/bash

# override properties like:
# export environment_music_scrobbling1_baseurl="http://localhost:${RESTDRIVER_PORT:="8081"}"
TIMEOUT=30

wait_for_port () {
    port=$1
    timeout=$2

    for i in `seq 1 $TIMEOUT`
    do
        if [ `netstat -nl 2>/dev/null | grep \:${SERVICE_PORT:="3000"} | wc -l` -gt 0 ]
        then
            return 0
        fi
        sleep 1
{'fraction_non_alphanumeric': 0.1189873417721519, 'fraction_numerical': 0.039240506329113925, 'mean_word_length': 2.563063063063063, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2965827', 'n_tokens_mistral': 292, 'n_tokens_neox': 263, 'n_words': 68}