<commit_before>#!/bin/sh

# Precise start of the target minute
sleep 2 # Avoid running on xx:59, if cron starts immediately.
wait_time=$((60-`date +%M`))
sleep $wait_time

# Change the current program
# There is a slight code duplication here with the playback-pre-show.sh file. We may fix it later
echo "${2}" > "${1}.program.iter"

#{ echo "var.set start_pre_show = false"; sleep 1; } | telnet localhost 1234 

# The the lineup file should be introduced as paramter
clips=`node list-show-items ${1} ${2}` 
echo $clips
for line in $clips; do
  # pass it to telnet
  { echo "show_q.push $line"; sleep 1; } | telnet localhost 1234
done 

<commit_msg>new Q's all tested. All done!<commit_after>#!/bin/sh

# Precise start of the target minute
sleep 2 # Avoid running on xx:59, if cron starts immediately.
wait_time=$((60-`date +%M`))
sleep $wait_time

# Change the current program
# There is a slight code duplication here with the playback-pre-show.sh file. We may fix it later
echo "${2}" > "${1}.program.iter"

{ echo "var.set start_pre_show = false"; sleep 1; } | telnet localhost 1234 

# The the lineup file should be introduced as paramter
clips=`node list-show-items ${1} ${2}` 
echo $clips
for line in $clips; do
  # pass it to telnet
  { echo "show_q.push $line"; sleep 1; } | telnet localhost 1234
done 


{'fraction_non_alphanumeric': 0.12033511043412033, 'fraction_numerical': 0.028941355674028942, 'mean_word_length': 4.073359073359073, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6519467', 'n_tokens_mistral': 474, 'n_tokens_neox': 430, 'n_words': 177}