<commit_before>"""
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
"""

import gui
from gui import *

class App( BaseApp ):
	def __init__( self, *args ):
		super( App, self ).__init__( *args )

	def main( self ):
		mainContainer = gui.widget( 600, 530, True, 10 )
		
		subContainerLeft = gui.widget( 300, 370, False, 10 )
		self.img = gui.imageWidget( 100, 100, "logo.png" )
	
		self.table = gui.tableWidget( 300, 200 )
		row = gui.rowTable()
		item = gui.titleTable()
		item.append( str(id(item)), "ID" )
		row.append( str(id(item)), item )
		item = gui.titleTable()
		item.append( str(id(item)), "First Name" )
		row.append( str(id(item)), item )
		item = gui.titleTable()
		item.append( str(id(item)), "Last Name" )
		row.append( str(id(item)), item )
		self.table.append( str(id(row)), row )
		self.addTableRow( self.table, "101", "Danny", "Young" )
		self.addTableRow( self.table, "102", "Christine", "Holand" )
		self.addTableRow( self.table, "103", "Lars", "Gordon" )
		self.addTableRow( self.table, "104", "Roberto", "Robitaille" )
		self.addTableRow( self.table, "105", "Maria", "Papadopoulos" )
		
		#the arguments are	width - height - layoutOrientationOrizontal
		subContainerRight = gui.widget( 240, 390, False,10 )
		
		self.lbl = gui.labelWidget( 200, 30, "This is a LABEL!" )
		self.lbl.setUpdateTimer( self, 500 )
		
		self.bt = gui.buttonWidget( 200, 30, "Press me!" )
		#setting the listener for the onclick event of the button
		self.bt.setOnClickListener( self, "onButtonPressed" )
		
		self.txt = gui.textareaWidget( 200, 30 )
		self.txt.text( "This is a TEXTAREA" )
		self.txt.setOnChangeListener( self, "onTextAreaChange" )
		
		self.spin = gui.spinboxWidget( 200, 30 )
		self.spin.setOnChangeListener( self, "onSpinChange" )
		
		self.btInputDiag = gui.buttonWidget( 200, 30, "Open InputDialog" )
		self.btInputDiag.setOnClickListener( self, "openInputDialog" )
		
		self.listWidget = gui.listWidget( 300,120 )
		li0 = gui.listItem( 180,20, "<NAME>")
		li0.setOnClickListener( self, "listItem0_selected" )
		li1 = gui.listItem( 180,20, "<NAME>")
		li1.setOnClickListener( self, "listItem1_selected" )
		li2 = gui.listItem( 180,20, "<NAME>")
		li2.setOnClickListener( self, "listItem2_selected" )
		li3 = gui.listItem( 180,20, "<NAME>")
		li3.setOnClickListener( self, "listItem3_selected" )
		self.listWidget.append( "0", li0 )
		self.listWidget.append( "1", li1 )
		self.listWidget.append( "2", li2 )<commit_msg>Resized list elements in widgets_overview_app.<commit_after>"""
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
"""

import gui
from gui import *

class App( BaseApp ):
	def __init__( self, *args ):
		super( App, self ).__init__( *args )

	def main( self ):
		mainContainer = gui.widget( 600, 530, True, 10 )
		
		subContainerLeft = gui.widget( 300, 370, False, 10 )
		self.img = gui.imageWidget( 100, 100, "logo.png" )
	
		self.table = gui.tableWidget( 300, 200 )
		row = gui.rowTable()
		item = gui.titleTable()
		item.append( str(id(item)), "ID" )
		row.append( str(id(item)), item )
		item = gui.titleTable()
		item.append( str(id(item)), "First Name" )
		row.append( str(id(item)), item )
		item = gui.titleTable()
		item.append( str(id(item)), "Last Name" )
		row.append( str(id(item)), item )
		self.table.append( str(id(row)), row )
		self.addTableRow( self.table, "101", "Danny", "Young" )
		self.addTableRow( self.table, "102", "Christine", "Holand" )
		self.addTableRow( self.table, "103", "Lars", "Gordon" )
		self.addTableRow( self.table, "104", "Roberto", "Robitaille" )
		self.addTableRow( self.table, "105", "Maria", "Papadopoulos" )
		
		#the arguments are	width - height - layoutOrientationOrizontal
		subContainerRight = gui.widget( 240, 390, False,10 )
		
		self.lbl = gui.labelWidget( 200, 30, "This is a LABEL!" )
		self.lbl.setUpdateTimer( self, 500 )
		
		self.bt = gui.buttonWidget( 200, 30, "Press me!" )
		#setting the listener for the onclick event of the button
		self.bt.setOnClickListener( self, "onButtonPressed" )
		
		self.txt = gui.textareaWidget( 200, 30 )
		self.txt.text( "This is a TEXTAREA" )
		self.txt.setOnChangeListener( self, "onTextAreaChange" )
		
		self.spin = gui.spinboxWidget( 200, 30 )
		self.spin.setOnChangeListener( self, "onSpinChange" )
		
		self.btInputDiag = gui.buttonWidget( 200, 30, "Open InputDialog" )
		self.btInputDiag.setOnClickListener( self, "openInputDialog" )
		
		self.listWidget = gui.listWidget( 300,120 )
		li0 = gui.listItem( 279,20, "<NAME>")
		li0.setOnClickListener( self, "listItem0_selected" )
		li1 = gui.listItem( 279,20, "<NAME>")
		li1.setOnClickListener( self, "listItem1_selected" )
		li2 = gui.listItem( 279,20, "<NAME>")
		li2.setOnClickListener( self, "listItem2_selected" )
		li3 = gui.listItem( 279,20, "<NAME>")
		li3.setOnClickListener( self, "listItem3_selected" )
		self.listWidget.append( "0", li0 )
		self.listWidget.append( "1", li1 )
		self.listWidget.append( "2", li2 )
{'fraction_non_alphanumeric': 0.13817013360392355, 'fraction_numerical': 0.04295619820733976, 'mean_word_length': 4.0033840947546535, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3793393', 'n_tokens_mistral': 2376, 'n_tokens_neox': 2018, 'n_words': 574}