<commit_before>/* The dice representation of a number. */
DiceRepresentation.prototype = Object.create(Phaser.Sprite.prototype);
DiceRepresentation.prototype.constructor = DiceRepresentation;
function DiceRepresentation (number, x, y, size, color) {
	size = size || 100;
	var radius = parseInt(size/8);
	var center = parseInt(size/2-radius);
	var top = radius+1;
	var bottom = size-radius-1;
	var left = top;
	var right = bottom;
	var middle = center+radius;

	// For more information about context:
	// https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D
	var bmd = new Phaser.BitmapData(game, '', size, size);
	var ctx = bmd.ctx;
	ctx.fillStyle = color || '#000000';
	if (number === 1) {
		ctx.beginPath();
		ctx.arc(middle, middle, radius, 0, this.round);
		ctx.closePath();
	} else if (number === 2) {
		ctx.beginPath();
		ctx.arc(left, top, radius, 0, this.round);
		ctx.moveTo(right, bottom);
		ctx.arc(right, bottom, radius, 0, this.round);
		ctx.closePath();
	} else if (number === 3) {
		ctx.beginPath();
		ctx.arc(left, top, radius, 0, this.round);
		ctx.moveTo(middle, middle);
		ctx.arc(middle, middle, radius, 0, this.round);
		ctx.moveTo(right, bottom);
		ctx.arc(right, bottom, radius, 0, this.round);
		ctx.closePath();
	} else if (number === 4) {
		ctx.beginPath();
		ctx.arc(left, top, radius, 0, this.round);
		ctx.moveTo(right, top);
		ctx.arc(right, top, radius, 0, this.round);
		ctx.moveTo(left, bottom);
		ctx.arc(left, bottom, radius, 0, this.round);<commit_msg>Removed unnecessary code<commit_after>/* The dice representation of a number. */
DiceRepresentation.prototype = Object.create(Phaser.Sprite.prototype);
DiceRepresentation.prototype.constructor = DiceRepresentation;
function DiceRepresentation (number, x, y, size, color) {
	size = size || 100;
	var radius = parseInt(size/8);
	var center = parseInt(size/2);
	var top = radius+1;
	var bottom = size-radius-1;
	var left = top;
	var right = bottom;
	var middle = center;

	// For more information about context:
	// https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D
	var bmd = new Phaser.BitmapData(game, '', size, size);
	var ctx = bmd.ctx;
	ctx.fillStyle = color || '#000000';
	if (number === 1) {
		ctx.beginPath();
		ctx.arc(middle, middle, radius, 0, this.round);
		ctx.closePath();
	} else if (number === 2) {
		ctx.beginPath();
		ctx.arc(left, top, radius, 0, this.round);
		ctx.moveTo(right, bottom);
		ctx.arc(right, bottom, radius, 0, this.round);
		ctx.closePath();
	} else if (number === 3) {
		ctx.beginPath();
		ctx.arc(left, top, radius, 0, this.round);
		ctx.moveTo(middle, middle);
		ctx.arc(middle, middle, radius, 0, this.round);
		ctx.moveTo(right, bottom);
		ctx.arc(right, bottom, radius, 0, this.round);
		ctx.closePath();
	} else if (number === 4) {
		ctx.beginPath();
		ctx.arc(left, top, radius, 0, this.round);
		ctx.moveTo(right, top);
		ctx.arc(right, top, radius, 0, this.round);
		ctx.moveTo(left, bottom);
		ctx.arc(left, bottom, radius, 0, this.round);
{'fraction_non_alphanumeric': 0.16782752902155887, 'fraction_numerical': 0.01791044776119403, 'mean_word_length': 4.217993079584775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5708124', 'n_tokens_mistral': 1148, 'n_tokens_neox': 1065, 'n_words': 275}