<commit_before>package UI.displayCanvases;

import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;

/**
 * Handles drawing the grid overlay.
 * Created by CyberPuck on 2016-02-17.
 */
public class GridCanvas {
    private Canvas gridCanvas;

    public GridCanvas(Canvas gridCanvas) {
        this.gridCanvas = gridCanvas;
    }

    /**
     * Setup the grid canvas, one time thing.
     */
    public void init() {
        // TODO: Lines are being drawn incorrectly!
        GraphicsContext gc = gridCanvas.getGraphicsContext2D();

        // draw them lines
        // default width and height is:
        double width = 360;
        double height = 720;
        double numberOfPixelsPerInch = 2.0;
        // draw horizontal lines
        for (int i = 0; i < 30; i++) {
            double xPosition = i * (6 * numberOfPixelsPerInch);
            // Add fudge factor to make 1 pixel wide lines
            xPosition += 0.5;
            gc.setLineWidth(0.0);
            gc.strokeLine(xPosition, 0, xPosition, height);
        }
        // draw vertical lines
        for (int i = 0; i < 60; i++) {
            double yPosition = i * (6 * numberOfPixelsPerInch);<commit_msg>Removing TODO.<commit_after>package UI.displayCanvases;

import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;

/**
 * Handles drawing the grid overlay.
 * Created by CyberPuck on 2016-02-17.
 */
public class GridCanvas {
    private Canvas gridCanvas;

    public GridCanvas(Canvas gridCanvas) {
        this.gridCanvas = gridCanvas;
    }

    /**
     * Setup the grid canvas, one time thing.
     */
    public void init() {
        GraphicsContext gc = gridCanvas.getGraphicsContext2D();

        // draw them lines
        // default width and height is:
        double width = 360;
        double height = 720;
        double numberOfPixelsPerInch = 2.0;
        // draw horizontal lines
        for (int i = 0; i < 30; i++) {
            double xPosition = i * (6 * numberOfPixelsPerInch);
            // Add fudge factor to make 1 pixel wide lines
            xPosition += 0.5;
            gc.setLineWidth(0.0);
            gc.strokeLine(xPosition, 0, xPosition, height);
        }
        // draw vertical lines
        for (int i = 0; i < 60; i++) {
            double yPosition = i * (6 * numberOfPixelsPerInch);
{'fraction_non_alphanumeric': 0.09919114516815666, 'fraction_numerical': 0.02639421030225628, 'mean_word_length': 2.0440414507772022, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2487097', 'n_tokens_mistral': 730, 'n_tokens_neox': 667, 'n_words': 212}