<commit_before>package restsim;

import java.util.Scanner;

public class Restaurant {

	Tables tables;
	Cooks cooks;
	Diners diners;

	public void simulate() {

		Scanner sc = new Scanner(System.in);
		int nDiners = sc.nextInt();
		int nTables = sc.nextInt();
		int nCooks = sc.nextInt();

		tables = new Tables(nTables);
		cooks = new Cooks(nCooks);
		diners = new Diners(nDiners);

		Diner.restaurant = this;
		Cook.restaurant = this;

		for (int i = 0; i < nDiners; i++) {
			int atime = sc.nextInt();
			int burgers = sc.nextInt();
			int fries = sc.nextInt();
			int coke = sc.nextInt();
			Order order = new Order(burgers, fries, coke);
			diners.add(i, atime, order);
		}

		sc.close();

		Clock.init();
		cooks.start();
		diners.start();
	}

}<commit_msg>clock should be inited before diners<commit_after>package restsim;

import java.util.Scanner;

public class Restaurant {

	Tables tables;
	Cooks cooks;
	Diners diners;

	public void simulate() {

		Scanner sc = new Scanner(System.in);
		int nDiners = sc.nextInt();
		int nTables = sc.nextInt();
		int nCooks = sc.nextInt();

		tables = new Tables(nTables);
		cooks = new Cooks(nCooks);
		diners = new Diners(nDiners);

		Diner.restaurant = this;
		Cook.restaurant = this;

		for (int i = 0; i < nDiners; i++) {
			int atime = sc.nextInt();
			int burgers = sc.nextInt();
			int fries = sc.nextInt();
			int coke = sc.nextInt();
			Order order = new Order(burgers, fries, coke);
			diners.add(i, atime, order);
		}

		sc.close();

		cooks.start();
		Clock.init();
		diners.start();
	}

}
{'fraction_non_alphanumeric': 0.14460942543576502, 'fraction_numerical': 0.0012911555842479018, 'mean_word_length': 3.329608938547486, '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': '6059693', 'n_tokens_mistral': 686, 'n_tokens_neox': 574, 'n_words': 153}