<commit_before>package com.admiralFedora.n_body;

import javax.microedition.khronos.opengles.GL10;

import com.arshajii.nbody.backend.Body;
import com.arshajii.nbody.backend.StaticBody;
import com.arshajii.nbody.backend.Universe;
import com.arshajii.nbody.backend.Vec;

public class BodyRendering {

	//private static final double DEFAULT_MASS = 100;

	private final Body data;
	private final Circle image;

	public BodyRendering(Universe universe, double x, double y, float SCALE, float R, float G, float B)
	{ 
		data = new Body(new Vec(x, y), new Vec(0, 0), SCALE*100); 
		universe.addBody(data);
		image = new Circle((float) data.getPos().getX(), (float) data.getPos().getY(), SCALE, R, G, B); 
	}
	
	public BodyRendering(Universe universe, double x, double y, float xVel, float yVel, float SCALE, float R, float G, float B)
	{ 
		data = new Body(new Vec(x, y), new Vec(xVel, yVel), SCALE*100); 
		universe.addBody(data);
		image = new Circle((float) data.getPos().getX(), (float) data.getPos().getY(), SCALE, R, G, B); 
	}
	
	public BodyRendering(Universe universe, double x, double y, float SCALE, float R, float G, float B, boolean isStatic)
	{ 
		data = new StaticBody(new Vec(x, y), SCALE*100); 
		universe.addBody(data);
		image = new Circle((float) data.getPos().getX(), (float) data.getPos().getY(), SCALE, R, G, B); 
	}
	

	/*public BodyRendering(Universe universe, double xPos, double yPos,
			double xVel, double yVel) {

		data = new Body(new Vec(xPos, yPos), new Vec(xVel, yVel), DEFAULT_MASS);
		universe.addBody(data);

		image = new Circle((float) data.getPos().getX(), (float) data.getPos()
				.getY());*
	}*/

	public void draw(GL10 gl) {
		image.setXY((float) data.getPos().getX(), (float) data.getPos().getY());
		image.draw(gl);
	}

}<commit_msg>Static Bodies are now twice as massive<commit_after>package com.admiralFedora.n_body;

import javax.microedition.khronos.opengles.GL10;

import com.arshajii.nbody.backend.Body;
import com.arshajii.nbody.backend.StaticBody;
import com.arshajii.nbody.backend.Universe;
import com.arshajii.nbody.backend.Vec;

public class BodyRendering {

	//private static final double DEFAULT_MASS = 100;

	private final Body data;
	private final Circle image;

	public BodyRendering(Universe universe, double x, double y, float SCALE, float R, float G, float B)
	{ 
		data = new Body(new Vec(x, y), new Vec(0, 0), SCALE*100); 
		universe.addBody(data);
		image = new Circle((float) data.getPos().getX(), (float) data.getPos().getY(), SCALE, R, G, B); 
	}
	
	public BodyRendering(Universe universe, double x, double y, float xVel, float yVel, float SCALE, float R, float G, float B)
	{ 
		data = new Body(new Vec(x, y), new Vec(xVel, yVel), SCALE*100); 
		universe.addBody(data);
		image = new Circle((float) data.getPos().getX(), (float) data.getPos().getY(), SCALE, R, G, B); 
	}
	
	public BodyRendering(Universe universe, double x, double y, float SCALE, float R, float G, float B, boolean isStatic)
	{ 
		data = new StaticBody(new Vec(x, y), SCALE*200); 
		universe.addBody(data);
		image = new Circle((float) data.getPos().getX(), (float) data.getPos().getY(), SCALE, R, G, B); 
	}
	

	/*public BodyRendering(Universe universe, double xPos, double yPos,
			double xVel, double yVel) {

		data = new Body(new Vec(xPos, yPos), new Vec(xVel, yVel), DEFAULT_MASS);
		universe.addBody(data);

		image = new Circle((float) data.getPos().getX(), (float) data.getPos()
				.getY());*
	}*/

	public void draw(GL10 gl) {
		image.setXY((float) data.getPos().getX(), (float) data.getPos().getY());
		image.draw(gl);
	}

}
{'fraction_non_alphanumeric': 0.15298402913981507, 'fraction_numerical': 0.010086859064163631, 'mean_word_length': 4.467075038284839, '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': '4324995', 'n_tokens_mistral': 1388, 'n_tokens_neox': 1276, 'n_words': 354}