<commit_before>package view;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.util.ArrayList;
import java.util.List;

import javax.swing.JEditorPane;
import javax.swing.JFrame;

import jgame.JGColor;
import jgame.platform.JGEngine;
import model.Model;
import model.TurtleState;

public class TurtleGraphicsWindow extends JGEngine{    
    /**
     * 
     */
    private static final Dimension SIZE = new Dimension(900, 600);
    TurtleState myCurrentState = TurtleState.getInstant();
    List<TurtleState> myStateHistory = new ArrayList<TurtleState>();
    private boolean test = true;

    public TurtleGraphicsWindow(){
        super();
        //        TurtleState.getStateInstant(x, y, angle);
        //        turtleGraphicsWindow = new JFrame();

        int height = 600;
        double aspect = 3.0 / 2.0;
        initEngineComponent((int) (height * aspect), height);      

    }

    @Override
    public void initCanvas () {
        // TODO Auto-generated method stub
        setCanvasSettings(1, // width of the canvas in tiles
                          1, // height of the canvas in tiles
                          displayWidth(), // width of one tile
                          displayHeight(), // height of one tile
                          null,// foreground colour -> use default colour white<commit_msg>discussionLog updated<commit_after>package view;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.swing.JEditorPane;
import javax.swing.JFrame;

import jgame.JGColor;
import jgame.platform.JGEngine;
import model.Model;
import model.TurtleState;


public class TurtleGraphicsWindow extends JGEngine{    
    /**
     * 
     */
    private static final Dimension SIZE = new Dimension(900, 600);
    TurtleState myCurrentState = TurtleState.getInstant();
    List<TurtleState> myStateHistory = new ArrayList<TurtleState>();
    private boolean test = true;
//    Map<Integer, List<TurtleState>> myHistoryMap =  

    public TurtleGraphicsWindow(){
        super();
        //        TurtleState.getStateInstant(x, y, angle);
        //        turtleGraphicsWindow = new JFrame();

        int height = 600;
        double aspect = 3.0 / 2.0;
        initEngineComponent((int) (height * aspect), height);      

    }

    @Override
    public void initCanvas () {
        // TODO Auto-generated method stub
        setCanvasSettings(1, // width of the canvas in tiles
                          1, // height of the canvas in tiles
                          displayWidth(), // width of one tile
                          displayHeight(), // height of one tile
                          null,// foreground colour -> use default colour white
{'fraction_non_alphanumeric': 0.09436619718309859, 'fraction_numerical': 0.01056338028169014, 'mean_word_length': 2.292004634994206, 'pattern_counts': {'":': 0, '<': 9, '<?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': '2745070', 'n_tokens_mistral': 810, 'n_tokens_neox': 757, 'n_words': 221}