<commit_before>require 'rubygems'
require 'sinatra'
require 'time'

get '/stations/:location' do |location|
  <<HERE
<plist version="1.0">
<array>
  <dict>
    <key>name</key>
  	<string>KNRK</string>
    <key>link</key>
  	<string>http://yes.com/KNRK</string>
  </dict>
  <dict>
    <key>name</key>
  	<string>KOPB</string>
    <key>link</key>
  	<string>http://yes.com/KOPB</string>
  </dict>
</array>
</plist>
HERE
end

get '/:station/:time' do |station, time|
  sleep 1
  local_clock = Time.parse(time).strftime('%H%M')
  puts local_clock
  halt 404 unless station.downcase == 'knrk' && local_clock == '1200'
  <<HERE
<plist version="1.0">
<dict>
	<key>title</key>
	<string>Been Caught Stealing</string>
	<key>artist</key>
	<string>Jane's Addiction</string>
</dict>
</plist>
HERE
end<commit_msg>Faux data knows the no-song representation<commit_after>require 'rubygems'
require 'sinatra'
require 'time'

get '/stations/:location' do |location|
  <<HERE
<plist version="1.0">
<array>
  <dict>
    <key>name</key>
  	<string>KNRK</string>
    <key>link</key>
  	<string>http://yes.com/KNRK</string>
  </dict>
  <dict>
    <key>name</key>
  	<string>KOPB</string>
    <key>link</key>
  	<string>http://yes.com/KOPB</string>
  </dict>
</array>
</plist>
HERE
end

get '/:station/:time' do |station, time|
  sleep 1
  local_clock = Time.parse(time).strftime('%H%M')
  puts local_clock
  if station.downcase == 'knrk' && local_clock == '1200'
    <<HERE
<plist version="1.0">
<dict>
	<key>title</key>
	<string>Been Caught Stealing</string>
	<key>artist</key>
	<string>Jane's Addiction</string>
</dict>
</plist>
HERE
  else
    <<HERE
<plist version="1.0">
<dict/>
</plist>
HERE
  end
end
{'fraction_non_alphanumeric': 0.1989311163895487, 'fraction_numerical': 0.013657957244655582, 'mean_word_length': 4.0148809523809526, 'pattern_counts': {'":': 0, '<': 88, '<?xml version=': 0, '>': 78, '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': '1835160', 'n_tokens_mistral': 712, 'n_tokens_neox': 695, 'n_words': 136}