<commit_before>class ToneTestLayout < MotionKit::Layout

	view :one_sound_button
	view :two_sound_button
	view :play_button

	def layout
		background_color UIColor.whiteColor
		@label = add UILabel, :question_label
		@one_sound_button = add UIButton.buttonWithType(UIButtonTypeSystem), :one_sound_button
		@two_sound_button = add UIButton.buttonWithType(UIButtonTypeSystem), :two_sound_button
		@play_button = add UIButton.buttonWithType(UIButtonTypeSystem), :play_button
		@label.textAlignment = NSTextAlignmentCenter
	end

	def one_sound_button_style

    title '1'
		font UIFont.systemFontOfSize(24)
		height '25'
		width '100'
    center ['25%', '75% + 50']
  end

	def two_sound_button_style
		title '2'
		font UIFont.systemFontOfSize(24)
		height '25'
		width '100'
		center ['75%', '75% + 50']
	end

	def play_button_style
		title 'Play'
		height '48'
		width '100% - 10'
		font UIFont.systemFontOfSize(48)
		center ['50%', '40%']
	end

	def question_label_style
		text 'How many tones can you hear?'
		text_color UIColor.blackColor
		font UIFont.systemFontOfSize(18)
		height '24'
		width '100%'
		center ['50%', '60%']
	end

end<commit_msg>Tweak positions<commit_after>class ToneTestLayout < MotionKit::Layout

	view :one_sound_button
	view :two_sound_button
	view :play_button

	def layout
		background_color UIColor.whiteColor
		@label = add UILabel, :question_label
		@one_sound_button = add UIButton.buttonWithType(UIButtonTypeSystem), :one_sound_button
		@two_sound_button = add UIButton.buttonWithType(UIButtonTypeSystem), :two_sound_button
		@play_button = add UIButton.buttonWithType(UIButtonTypeSystem), :play_button
		@label.textAlignment = NSTextAlignmentCenter
	end

	def one_sound_button_style

    title '1'
		font UIFont.systemFontOfSize(24)
		height '25'
		width '100'
    center ['25%', '100%']
  end

	def two_sound_button_style
		title '2'
		font UIFont.systemFontOfSize(24)
		height '25'
		width '100'
		center ['75%', '100%']
	end

	def play_button_style
		title 'Play'
		height '48'
		width '100% - 10'
		font UIFont.systemFontOfSize(48)
		center ['50%', '40%']
	end

	def question_label_style
		text 'How many tones can you hear?'
		text_color UIColor.blackColor
		font UIFont.systemFontOfSize(18)
		height '24'
		width '100%'
		center ['50%', '50%']
	end

end
{'fraction_non_alphanumeric': 0.1012216404886562, 'fraction_numerical': 0.04450261780104712, 'mean_word_length': 4.819796954314721, 'pattern_counts': {'":': 0, '<': 5, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6516067', 'n_tokens_mistral': 951, 'n_tokens_neox': 828, 'n_words': 196}