<commit_before>/**
 * $$\\ToureNPlaner\\$$
 */
package algorithms;

import com.carrotsearch.hppc.IntArrayList;

public class Points {
	private IntArrayList points;

	public Points() {
		points = new IntArrayList();
	}

	public void addPoint(int lat, int lon) {
		points.add(lat);
		points.add(lon);
	}

	public void addEmptyPoints(int num) {
		points.resize(points.size() + num);
	}

	public int getPointLat(int index) {
		return points.get(index * 2);
	}

	public int getPointLon(int index) {
		return points.get(index * 2 + 1);
	}

	public void setPointLat(int index, int lat) {
		points.set(index * 2, lat);
	}

	public void setPointLon(int index, int lon) {
		points.set(index * 2 + 1, lon);
	}

	public int size() {
		return points.size() / 2;
	}

}<commit_msg>Did not allocate enough space for points<commit_after>/**
 * $$\\ToureNPlaner\\$$
 */
package algorithms;

import com.carrotsearch.hppc.IntArrayList;

public class Points {
	private IntArrayList points;

	public Points() {
		points = new IntArrayList();
	}

	public void addPoint(int lat, int lon) {
		points.add(lat);
		points.add(lon);
	}

	public void addEmptyPoints(int num) {
		points.resize(this.size() + num*2);
	}

	public int getPointLat(int index) {
		return points.get(index * 2);
	}

	public int getPointLon(int index) {
		return points.get(index * 2 + 1);
	}

	public void setPointLat(int index, int lat) {
		points.set(index * 2, lat);
	}

	public void setPointLon(int index, int lon) {
		points.set(index * 2 + 1, lon);
	}

	public int size() {
		return points.size() / 2;
	}

}
{'fraction_non_alphanumeric': 0.1404746632456703, 'fraction_numerical': 0.009621552277100705, 'mean_word_length': 3.601769911504425, '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': '4908302', 'n_tokens_mistral': 605, 'n_tokens_neox': 555, 'n_words': 148}