<commit_before>Olympics = {
	init: function(name) {
		this.halfX = Game.width()/2;
		this.halfY = Game.height()/2;
		return Crafty.e('Olympics');
		
	},
	getPlayerSettings: function(flags) {
		var s = {speed: 40*Game.dimensions.tile, h:6, w:2, pId:flags.player-1};
		
		if (flags.player === 1) {
			s.color = 'teal';
			s.x = Game.dimensions.width-6;
			s.y = 20;
			if (flags.orientation === 'vertical') {
				s.controls = {UP_ARROW:-90, DOWN_ARROW:90};
			} else if (flags.orientation === 'horizontal') {
				s.controls = {RIGHT_ARROW:0, LEFT_ARROW:180};
			}
		} else if (flags.player === 2) {
			s.color = 'olive';
			s.x = 2;
			s.y = 20;
			if (flags.orientation === 'vertical') {
				s.controls = {W:-90, S:90};
			} else if (flags.orientation === 'horizontal') {
				s.controls = {A:180, D:0};
			}
		}
	  
		if (flags.orientation === 'horizontal') {
			s.w = Game.dimensions.tile*1.2;
			s.h = 1.5;
			s.y = Game.dimensions.height-Game.dimensions.tile*2.5;
		}
		return s;
	},
	getPlayer: function(settings) {
		var settings = settings ||  {};
		var player = Crafty.e('Player')
			.color(settings.color || 'teal');
		player.playerId = settings.pId;
		var paddle = Crafty.e('Paddle')
			.place(settings.x, settings.y)<commit_msg>Tennis: positioned players<commit_after>Olympics = {
	init: function(name) {
		this.halfX = Game.width()/2;
		this.halfY = Game.height()/2;
		return Crafty.e('Olympics');
		
	},
	getPlayerSettings: function(flags) {
		var s = {speed: 40*Game.dimensions.tile, h:6, w:2, pId:flags.player-1};
		
		if (flags.player === 1) {
			s.color = 'teal';
			s.x = Game.dimensions.width-Game.dimensions.tile*0.8;
			s.y = 20;
			if (flags.orientation === 'vertical') {
				s.controls = {UP_ARROW:-90, DOWN_ARROW:90};
			} else if (flags.orientation === 'horizontal') {
				s.controls = {RIGHT_ARROW:0, LEFT_ARROW:180};
			}
		} else if (flags.player === 2) {
			s.color = 'olive';
			s.x = Game.dimensions.tile/2;
			s.y = 20;
			if (flags.orientation === 'vertical') {
				s.controls = {W:-90, S:90};
			} else if (flags.orientation === 'horizontal') {
				s.controls = {A:180, D:0};
			}
		}
	  
		if (flags.orientation === 'horizontal') {
			s.w = Game.dimensions.tile*1.2;
			s.h = 1.5;
			s.y = Game.dimensions.height-Game.dimensions.tile*2.5;
		}
		return s;
	},
	getPlayer: function(settings) {
		var settings = settings ||  {};
		var player = Crafty.e('Player')
			.color(settings.color || 'teal');
		player.playerId = settings.pId;
		var paddle = Crafty.e('Paddle')
			.place(settings.x, settings.y)
{'fraction_non_alphanumeric': 0.19359936783879889, 'fraction_numerical': 0.029632556301856974, 'mean_word_length': 3.0642054574638844, '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': '6858209', 'n_tokens_mistral': 1174, 'n_tokens_neox': 985, 'n_words': 183}