<commit_before>package objects;

import jboxGlue.PhysicalSpring;
import jgame.JGColor;

public class Muscle extends PhysicalSpring {
	private static final JGColor DEFAULT_COLOR = JGColor.black;
	public static final float DEFAULT_RESTLENGTH = 20;
	public static final float DEFAULT_SPRINGYNESS = 1;
	public static final float DEFAULT_AMPLITUDE = 1;
	public static final float DEFAULT_FREQUENCY = 20;
	public static final int DEFAULT_CID = 2;

	public float myRestLength;
	public float mySpringyness;
	public float myAmplitude;
	public float myFrequency;
	
	/**
	 * 
	 * @param id - JGame id for finding objects 
	 * @param collisionId - JGame CID to check collisions
	 * @param body1 - first Body for the muscle
	 * @param body2 - second Body for the muscle
	 */
	public Muscle( String id, int collisionId, Mass body1, Mass body2) {
		this(id, 4, body1, body2, DEFAULT_RESTLENGTH, DEFAULT_SPRINGYNESS, DEFAULT_AMPLITUDE, DEFAULT_FREQUENCY);
	}
	
	/**
	 * 
	 * @param id - JGame id for finding objects 
	 * @param collisionId - JGame CID to check collisions
	 * @param body1 - first Body for the muscle
	 * @param body2 - second Body for the muscle
	 * @param restLength - rest length used in Hookes law calculation
	 * @param springyness - K constant in Hookes law
	 * @param amplitude - amplitude of the muscle
	 * @param frequency - frequence of the muscle
	 */
	public Muscle( String id, int collisionId, Mass body1, Mass body2, 
					float restLength, float springyness, float amplitude, float frequency) {
		super(id, 3, DEFAULT_COLOR, body1, body2);
		myRestLength = restLength;<commit_msg>fixed accidental public vars to private<commit_after>package objects;

import jboxGlue.PhysicalSpring;
import jgame.JGColor;

public class Muscle extends PhysicalSpring {
	private static final JGColor DEFAULT_COLOR = JGColor.black;
	public static final float DEFAULT_RESTLENGTH = 20;
	public static final float DEFAULT_SPRINGYNESS = 1;
	public static final float DEFAULT_AMPLITUDE = 1;
	public static final float DEFAULT_FREQUENCY = 20;
	public static final int DEFAULT_CID = 2;

	private float myRestLength;
	private float mySpringyness;
	private float myAmplitude;
	private float myFrequency;
	
	/**
	 * 
	 * @param id - JGame id for finding objects 
	 * @param collisionId - JGame CID to check collisions
	 * @param body1 - first Body for the muscle
	 * @param body2 - second Body for the muscle
	 */
	public Muscle( String id, int collisionId, Mass body1, Mass body2) {
		this(id, 4, body1, body2, DEFAULT_RESTLENGTH, DEFAULT_SPRINGYNESS, DEFAULT_AMPLITUDE, DEFAULT_FREQUENCY);
	}
	
	/**
	 * 
	 * @param id - JGame id for finding objects 
	 * @param collisionId - JGame CID to check collisions
	 * @param body1 - first Body for the muscle
	 * @param body2 - second Body for the muscle
	 * @param restLength - rest length used in Hookes law calculation
	 * @param springyness - K constant in Hookes law
	 * @param amplitude - amplitude of the muscle
	 * @param frequency - frequence of the muscle
	 */
	public Muscle( String id, int collisionId, Mass body1, Mass body2, 
					float restLength, float springyness, float amplitude, float frequency) {
		super(id, 3, DEFAULT_COLOR, body1, body2);
		myRestLength = restLength;
{'fraction_non_alphanumeric': 0.06832298136645963, 'fraction_numerical': 0.013043478260869565, 'mean_word_length': 4.064465408805032, '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': '5181722', 'n_tokens_mistral': 1031, 'n_tokens_neox': 934, 'n_words': 376}