<commit_before>package com.redmintie.steelplate.node;

import java.util.ArrayList;

import com.redmintie.steelplate.math.Point;
import com.redmintie.steelplate.render.Canvas;

public class Node {
	public Point position = new Point();
	public double angle;
	public int width;
	public int height;
	private ArrayList<Node> children = new ArrayList<Node>();
	public boolean testOverlap(Node other) {
		return position.getX() - width / 2 < other.position.getX() + other.width / 2
				|| position.getX() + width / 2 > other.position.getX() - other.width / 2
				|| position.getY() - height / 2 < other.position.getY() + other.height / 2
				|| position.getY() + height / 2 > other.position.getY() - other.height / 2;
	}
	public void update(double delta) {
		for (Node child : children) {
			child.update(delta);
		}
	}
	public void draw(Canvas canvas) {
		canvas.pushMatrix();
		canvas.translate(position.getX(), position.getY());
		canvas.rotate(angle);
		canvas.translate(-width / 2, -height / 2);
		for (Node child : children) {
			child.draw(canvas);
		}
		canvas.popMatrix();
	}
	public void end() {
		for (Node child : children) {
			child.end();
		}
	}
	public void addChild(Node node) {
		children.add(node);
	}
	public int getLength() {
		return children.size();
	}
	public Node getChild(int i) {
		return children.get(i);
	}
	public void removeChild(Node node) {
		children.remove(node);
	}
	public void clearChildren() {
		children.clear();
	}
}<commit_msg>Just a small fix (proper commit)<commit_after>package com.redmintie.steelplate.node;

import java.util.ArrayList;

import com.redmintie.steelplate.math.Point;
import com.redmintie.steelplate.render.Canvas;

public class Node {
	public Point position = new Point();
	public double angle;
	public int width;
	public int height;
	private ArrayList<Node> children = new ArrayList<Node>();
	public boolean testOverlap(Node other) {
		return position.getX() - width / 2 < other.position.getX() + other.width / 2
				|| position.getX() + width / 2 > other.position.getX() - other.width / 2
				|| position.getY() - height / 2 < other.position.getY() + other.height / 2
				|| position.getY() + height / 2 > other.position.getY() - other.height / 2;
	}
	public void update(double delta) {
		for (Node child : children) {
			child.update(delta);
		}
	}
	public void draw(Canvas canvas) {
		canvas.translate(position.getX(), position.getY());
		canvas.rotate(angle);
		canvas.translate(-width / 2, -height / 2);
		for (Node child : children) {
			canvas.pushMatrix();
			child.draw(canvas);
			canvas.popMatrix();
		}
	}
	public void end() {
		for (Node child : children) {
			child.end();
		}
	}
	public void addChild(Node node) {
		children.add(node);
	}
	public int getLength() {
		return children.size();
	}
	public Node getChild(int i) {
		return children.get(i);
	}
	public void removeChild(Node node) {
		children.remove(node);
	}
	public void clearChildren() {
		children.clear();
	}
}
{'fraction_non_alphanumeric': 0.1439728353140917, 'fraction_numerical': 0.006791171477079796, 'mean_word_length': 3.6175548589341693, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6334912', 'n_tokens_mistral': 1075, 'n_tokens_neox': 979, 'n_words': 243}