<commit_before>package pylos.view;

import pylos.Pylos;
import pylos.model.Model;
import pylos.model.PositionBall;

import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Sphere;

public class PositionBallGraphics {
	public final static float DIAMETER = BallGraphics.DIAMETER;
	PositionBall model;
	public float x, y, z;
	Geometry geometry;

	public PositionBallGraphics(PositionBall model) {
		this.model = model;
	}

	public void setPosition(float x, float y, float z) {
		this.x = x;
		this.y = y;
		this.z = z;
	}

	public void move() {
		geometry.move(x, y, z);
	}

	public void create() {
		Sphere s = new Sphere(50, 50, DIAMETER / 2);
		geometry = new Geometry(model.toString(), s);
		Material mat = new Material(Pylos.view.getAssetManager(), "Common/MatDefs/Misc/SolidColor.j3md");
		mat.setColor("Color", ColorRGBA.Gray);
		geometry.setMaterial(mat);
	}

	public void place() {
		float offset = (Model.ballsBySideAtLevel(model.level) - 1) * DIAMETER / 2;
		geometry.center().move(
				model.x * DIAMETER - offset,
				BoardGraphics.BOARD_HEIGHT + model.level * DIAMETER,
				model.y * DIAMETER - offset
				);
	}
}<commit_msg>wipe useless coordinates in PositionBallGraphics<commit_after>package pylos.view;

import pylos.Pylos;
import pylos.model.Model;
import pylos.model.PositionBall;

import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Sphere;

public class PositionBallGraphics {
	public final static float DIAMETER = BallGraphics.DIAMETER;
	PositionBall model;
	Geometry geometry;

	public PositionBallGraphics(PositionBall model) {
		this.model = model;
	}

	public void create() {
		Sphere s = new Sphere(50, 50, DIAMETER / 2);
		geometry = new Geometry(model.toString(), s);
		Material mat = new Material(Pylos.view.getAssetManager(), "Common/MatDefs/Misc/SolidColor.j3md");
		mat.setColor("Color", ColorRGBA.Gray);
		geometry.setMaterial(mat);
	}

	public void place() {
		float offset = (Model.ballsBySideAtLevel(model.level) - 1) * DIAMETER / 2;
		geometry.center().move(
				model.x * DIAMETER - offset,
				BoardGraphics.BOARD_HEIGHT + model.level * DIAMETER,
				model.y * DIAMETER - offset
				);
	}
}
{'fraction_non_alphanumeric': 0.12137203166226913, 'fraction_numerical': 0.010554089709762533, 'mean_word_length': 4.217889908256881, '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': '119117', 'n_tokens_mistral': 887, 'n_tokens_neox': 798, 'n_words': 179}