<commit_before>package com.futurice.android.reservator.view;

import java.util.Calendar;

import com.futurice.android.reservator.model.DateTime;


import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;

public class CalendarDayLayout extends ViewGroup {
	int minuteStart = 8 * 60, minuteEnd = 18 * 60;
	public CalendarDayLayout(Context context) {
		this(context, null);
	}
	public CalendarDayLayout(Context context, AttributeSet attrs){
		super(context, attrs);
	}
	@Override
	protected void onLayout(boolean changed, int l, int t, int r, int b) {
		if (changed) {
			int count = getChildCount();
			for (int i = 0; i < count; i++) {
				CalendarMarker marker = (CalendarMarker) getChildAt(i);
				marker.layout(0,
						(int) ((b - t) * getProportionalYPosition(marker
								.getTimeSpan().getStart())), r - l,
						(int) ((b - t) * getProportionalYPosition(marker
								.getTimeSpan().getEnd())));
			}
		}

	}
	@Override
	protected void onMeasure(int widthMeasureSpec, int heightmeasureSpec) {

		int width = MeasureSpec.getSize(widthMeasureSpec);<commit_msg>support for longer days...<commit_after>package com.futurice.android.reservator.view;

import java.util.Calendar;

import com.futurice.android.reservator.model.DateTime;


import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;

public class CalendarDayLayout extends ViewGroup {
	int minuteStart = 8 * 60, minuteEnd = 20 * 60;
	public CalendarDayLayout(Context context) {
		this(context, null);
	}
	public CalendarDayLayout(Context context, AttributeSet attrs){
		super(context, attrs);
	}
	@Override
	protected void onLayout(boolean changed, int l, int t, int r, int b) {
		if (changed) {
			int count = getChildCount();
			for (int i = 0; i < count; i++) {
				CalendarMarker marker = (CalendarMarker) getChildAt(i);
				marker.layout(0,
						(int) ((b - t) * getProportionalYPosition(marker
								.getTimeSpan().getStart())), r - l,
						(int) ((b - t) * getProportionalYPosition(marker
								.getTimeSpan().getEnd())));
			}
		}

	}
	@Override
	protected void onMeasure(int widthMeasureSpec, int heightmeasureSpec) {

		int width = MeasureSpec.getSize(widthMeasureSpec);
{'fraction_non_alphanumeric': 0.12057373375168086, 'fraction_numerical': 0.008068130883012102, 'mean_word_length': 4.227166276346604, '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': '5939685', 'n_tokens_mistral': 813, 'n_tokens_neox': 704, 'n_words': 178}