<commit_before>function start()
{
	if(animating)
		return;

	animating = true;
	var ctx = canvas.getContext('2d');
	var path = knownPath[pathSelect.value];

	var x = path[0].x;		//x coordinate
	var y = path[0].y;		//y coordinate
	var dir = atan2(path[1].y-path[0].y, path[1].x-path[0].x);	//orientation in radians

	var motionModel = new OdometryModel(getTurnNoise(), getStrideNoise(), getTurnNoise(), getTurnNoise());
	var filter = new ParticleFilter(getParticleCount(), motionModel, undefined, new RobotState(x, y, dir));

	robot = new Robot(filter, path);
	robot.draw(ctx);
	animating = true;
	lastFrame = Date.now();
	requestAnimationFrame(frame);
}<commit_msg>remove redundant code<commit_after>function start()
{
	if(animating)
		return;

	animating = true;
	var ctx = canvas.getContext('2d');
	var path = knownPath[pathSelect.value];

	var x = path[0].x;		//x coordinate
	var y = path[0].y;		//y coordinate
	var dir = atan2(path[1].y-path[0].y, path[1].x-path[0].x);	//orientation in radians

	var motionModel = new OdometryModel(getTurnNoise(), getStrideNoise(), getTurnNoise(), getTurnNoise());
	var filter = new ParticleFilter(getParticleCount(), motionModel, undefined, new RobotState(x, y, dir));

	robot = new Robot(filter, path);
	robot.draw(ctx);
	lastFrame = Date.now();
	requestAnimationFrame(frame);
}
{'fraction_non_alphanumeric': 0.15921152388172857, 'fraction_numerical': 0.012130401819560273, 'mean_word_length': 5.1395348837209305, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3175422', 'n_tokens_mistral': 488, 'n_tokens_neox': 472, 'n_words': 112}