<commit_before>'''
# Author:        <NAME>, <NAME>
# Created:       2014.12.18
# Last Modified: 2014.12.18

this is the main controler class it is responsible for displaying the 3 views and
controls the 5 input buttons.

'''


from kivy.app import App
from kivy.properties import ListProperty, ObjectProperty
from functionlist import FunctionList
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import Label
from usercodedisplay import UserCodeDisplay




class ProgrammerView(Screen):

	programmer_view = ObjectProperty(None)

	def __init__(self, **kwargs):
		super(ProgrammerView, self).__init__(**kwargs)
		grid = GridLayout()
		grid.cols= 2
		precode = open('function_file', 'r+')
		commands = [line for line in precode]
		usercode = open('user_file', 'r+')
		robotProgram = list(usercode)

		v2 = UserCodeDisplay(robotProgram)
		
		v1 = FunctionList(commands)
		
		grid.add_widget(v1)

		grid.add_widget(v2)

		grid.add_widget(Label(text= 'CODE BLOCKS', size_hint=(1,.05)))
		grid.add_widget(Label(text= 'USER PROGRAM', size_hint=(1,.05)))

		self.add_widget(grid)

		def on_touch_down(self, touch):
<commit_msg>userCodeDisplay now passed a string<commit_after>'''
# Author:        <NAME>, <NAME>
# Created:       2014.12.18
# Last Modified: 2014.12.18

this is the main controler class it is responsible for displaying the 3 views and
controls the 5 input buttons.

'''


from kivy.app import App
from kivy.properties import ListProperty, ObjectProperty
from functionlist import FunctionList
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.floatlayout import FloatLayout
from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import Label
from usercodedisplay import UserCodeDisplay




class ProgrammerView(Screen):

	programmer_view = ObjectProperty(None)

	def __init__(self, **kwargs):
		super(ProgrammerView, self).__init__(**kwargs)
		grid = GridLayout()
		grid.cols= 2
		precode = open('function_file', 'r+')
		commands = [line for line in precode]
		usercode = open('user_file', 'r+')
		
		v2 = UserCodeDisplay(usercode.read())
		
		v1 = FunctionList(commands)
		
		grid.add_widget(v1)

		grid.add_widget(v2)

		grid.add_widget(Label(text= 'CODE BLOCKS', size_hint=(1,.05)))
		grid.add_widget(Label(text= 'USER PROGRAM', size_hint=(1,.05)))

		self.add_widget(grid)

		def on_touch_down(self, touch):

{'fraction_non_alphanumeric': 0.10609037328094302, 'fraction_numerical': 0.022789783889980354, 'mean_word_length': 4.852873563218391, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3780170', 'n_tokens_mistral': 928, 'n_tokens_neox': 826, 'n_words': 226}