<commit_before>import feedparser
import re
import urllib

from piscrollscene import *

"""
RadioScene
 radio options, playback controls
"""
class RadioScene(PiScrollScene):
	def __init__(self, frame):

		PiScrollScene.__init__(self, frame, 'Radio')

		self.sidebar_index = 2
		self.active_sidebar_btn = 2

		page_nav = self.make_page_nav()

		self.stations = [
			{'title':'WFMU','url':'http://stream0.wfmu.org/freeform-128k'},
			{'title':'GtDR','url':'http://stream0.wfmu.org:80/drummer'},
			{'title':'Ichiban','url':'http://stream0.wfmu.org/ichiban'},
			{'title':'Ubu','url':'http://stream0.wfmu.org/ubu'},
			{'title':'Sheena','url':'http://stream0.wfmu.org/sheena'},
			{'title':'FMU32','url':'http://stream0.wfmu.org/freeform-32k.mp3'},
			{'title':'wkcr','url':'http://wkcr.streamguys1.com:80/live'},
			{'title':'wnyc','url':'http://fm939.wnyc.org/wnycfm'},
			{'title':'bbc','url':'http://am820.wnyc.org/wnycam'},
			{'title':'wqxr','url':'http://stream.wqxr.org/wqxr'},
			{'title':'q2','url':'http://q2stream.wqxr.org/q2'}
		]

		self.url_opener = urllib.FancyURLopener({})

		self.streams_view = self.make_scroll_view()
		self.archives_view = self.make_scroll_view()

		self.station_btns = [page_nav]
		self.archive_btns = [page_nav]
		
		self.child_view_btns = [<commit_msg>added rock n soul stream. removed ubu, ichiban streams<commit_after>import feedparser
import re
import urllib

from piscrollscene import *

"""
RadioScene
 radio options, playback controls
"""
class RadioScene(PiScrollScene):
	def __init__(self, frame):

		PiScrollScene.__init__(self, frame, 'Radio')

		self.sidebar_index = 2
		self.active_sidebar_btn = 2

		page_nav = self.make_page_nav()

		self.stations = [
			{'title':'WFMU','url':'http://stream0.wfmu.org/freeform-128k'},
			{'title':'GtDR','url':'http://stream0.wfmu.org:80/drummer'},
			{'title':'Rock \'n Soul','url':'http://stream0.wfmu.org/rocknsoul'},
			#{'title':'Ubu','url':'http://stream0.wfmu.org/ubu'},
			{'title':'Sheena','url':'http://stream0.wfmu.org/sheena'},
			{'title':'FMU32','url':'http://stream0.wfmu.org/freeform-32k.mp3'},
			{'title':'wkcr','url':'http://wkcr.streamguys1.com:80/live'},
			{'title':'wnyc','url':'http://fm939.wnyc.org/wnycfm'},
			{'title':'bbc','url':'http://am820.wnyc.org/wnycam'},
			{'title':'wqxr','url':'http://stream.wqxr.org/wqxr'},
			{'title':'q2','url':'http://q2stream.wqxr.org/q2'}
		]

		self.url_opener = urllib.FancyURLopener({})

		self.streams_view = self.make_scroll_view()
		self.archives_view = self.make_scroll_view()

		self.station_btns = [page_nav]
		self.archive_btns = [page_nav]
		
		self.child_view_btns = [
{'fraction_non_alphanumeric': 0.22184170471841705, 'fraction_numerical': 0.0228310502283105, 'mean_word_length': 5.099767981438515, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '456818', 'n_tokens_mistral': 1183, 'n_tokens_neox': 1011, 'n_words': 112}