<commit_before>package naftoreiclag.easypermsmaker;

import java.awt.BasicStroke;
import java.awt.Graphics2D;
import java.awt.geom.CubicCurve2D;
import java.awt.geom.Point2D;

public class SpecialPaint
{
	public static void drawNodeConnection(Graphics2D graphics2D, int ax, int ay, int bx, int by)
	{
		double distance = Math.sqrt(Math.pow(ax - bx, 2) + Math.pow(ay - by, 2));
		
		Point2D.Double a = new Point2D.Double(ax, ay); // Start
		Point2D.Double b = new Point2D.Double(bx, by); // End
		
		Point2D.Double av = new Point2D.Double(distance * 0.5d, 0); // Start vector
		Point2D.Double bv = new Point2D.Double(distance * -0.5d, 0); // End vector

		CubicCurve2D.Double curve = new CubicCurve2D.Double(
				a.x, a.y, 
				a.x + av.x, a.y + av.y, 
				b.x + bv.x, b.y + bv.y, 
				b.x, b.y);

		BasicStroke thick = new BasicStroke(5.0f, BasicStroke.CAP_BUTT,BasicStroke.JOIN_MITER, 10.0f);

		graphics2D.setStroke(thick);
		graphics2D.draw(curve);
	}
}
<commit_msg>anti-aliased the lines<commit_after>package naftoreiclag.easypermsmaker;

import java.awt.BasicStroke;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.geom.CubicCurve2D;
import java.awt.geom.Point2D;

public class SpecialPaint
{
	public static void drawNodeConnection(Graphics2D graphics2D, int ax, int ay, int bx, int by)
	{
		double distance = Math.sqrt(Math.pow(ax - bx, 2) + Math.pow(ay - by, 2));
		
		Point2D.Double a = new Point2D.Double(ax, ay); // Start
		Point2D.Double b = new Point2D.Double(bx, by); // End
		
		Point2D.Double av = new Point2D.Double(distance * 0.5d, 0); // Start vector
		Point2D.Double bv = new Point2D.Double(distance * -0.5d, 0); // End vector

		CubicCurve2D.Double curve = new CubicCurve2D.Double(
				a.x, a.y, 
				a.x + av.x, a.y + av.y, 
				b.x + bv.x, b.y + bv.y, 
				b.x, b.y);

		BasicStroke thick = new BasicStroke(5.0f, BasicStroke.CAP_BUTT,BasicStroke.JOIN_MITER, 10.0f);

		graphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
		
		graphics2D.setStroke(thick);
		graphics2D.draw(curve);
	}
}

{'fraction_non_alphanumeric': 0.13407015857760693, 'fraction_numerical': 0.029312830370014416, 'mean_word_length': 3.6266666666666665, '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': '1882426', 'n_tokens_mistral': 929, 'n_tokens_neox': 848, 'n_words': 178}