<commit_before>package io.measures.passage.voronoi;

import io.measures.passage.geometry.Point2D;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * StippleLine
 * @author <NAME>
 */
public class StippleLine {
    private final Point2D a;
    private final Point2D b;
    private final float density;

    public StippleLine(Point2D a, Point2D b, float density) {
        this.a = a;
        this.b = b;
        this.density = density;
    }

    public Point2D getA() {
        return a;
    }

    public Point2D getB() {
        return b;
    }

    public float getDensity() {
        return density;
    }

    public void writeTo(DataOutputStream dos) throws IOException {
        dos.writeFloat(a.x());
        dos.writeFloat(a.y());<commit_msg>stippling line<commit_after>package io.measures.passage.voronoi;

import io.measures.passage.geometry.Point2D;
import io.measures.passage.geometry.Projectable2D;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * StippleLine
 * @author <NAME>
 */
public class StippleLine {
    private final Point2D a;
    private final Point2D b;
    private final float density;

    public StippleLine(Point2D a, Point2D b, float density) {
        this.a = a;
        this.b = b;
        this.density = density;
    }

    public Point2D getA() {
        return a;
    }

    public Point2D getB() {
        return b;
    }

    public float getDensity() {
        return density;
    }

    public Projectable2D getMidpoint() {
        return a.mid(b);
    }

    public void writeTo(DataOutputStream dos) throws IOException {
        dos.writeFloat(a.x());
        dos.writeFloat(a.y());
{'fraction_non_alphanumeric': 0.1024390243902439, 'fraction_numerical': 0.008672086720867209, 'mean_word_length': 2.6993987975951903, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3017088', 'n_tokens_mistral': 597, 'n_tokens_neox': 573, 'n_words': 143}