<commit_before>// $Id$

function Turtle (canvas) {
 
    if (canvas && canvas.getContext) {
        this.wait = 100;
    
        this.c = canvas.getContext('2d');
        
        this.max_x = canvas.width;
        this.max_y = canvas.height;
        
        this.c.lineCap = "round";
        
        this.setup();
    }
}

Turtle.prototype.start = function(){};
Turtle.prototype.stop = function(){};
Turtle.prototype.finish = function(){};

Turtle.prototype.setxy = function(x,y) {
    this.x = x;
    this.y = y;
}

Turtle.prototype.setx = function(x) {
    this.x = x;
}

Turtle.prototype.sety = function(x,y) {
    this.x = x;
}

Turtle.prototype.setheading = function(h) {
    this.angle = (270+h) % 360
}

Turtle.prototype.penwidth = function(w) {
    this.c.lineWidth=w;
}

Turtle.prototype.color = function (args) {
        this.c.strokeStyle = "rgb("+args[0]+","+args[1]+","+args[2]+")";
}

Turtle.prototype.arc = function (radius, angle) {
    if (this.pen) {
        this.c.beginPath();
        this.c.arc(this.x,this.y, radius, this.radians(), ((this.angle+angle)%360)/180*Math.PI,false);
        this.c.stroke();
       
  }
}
Turtle.prototype.arc_point = function (radius, angle) {
    if (this.pen) {
        this.c.beginPath();
        this.c.arc(this.x,this.y, radius, ((this.angle+angle)%360)/180*Math.PI, ((this.angle+angle+1)%360)/180*Math.PI,false);
        this.c.stroke();
       
  }
}


<commit_msg>forcing ints to be used in colours<commit_after>// $Id$

function Turtle (canvas) {
 
    if (canvas && canvas.getContext) {
        this.wait = 100;
    
        this.c = canvas.getContext('2d');
        
        this.max_x = canvas.width;
        this.max_y = canvas.height;
        
        this.c.lineCap = "round";
        
        this.setup();
    }
}

Turtle.prototype.start = function(){};
Turtle.prototype.stop = function(){};
Turtle.prototype.finish = function(){};

Turtle.prototype.setxy = function(x,y) {
    this.x = x;
    this.y = y;
}

Turtle.prototype.setx = function(x) {
    this.x = x;
}

Turtle.prototype.sety = function(x,y) {
    this.x = x;
}

Turtle.prototype.setheading = function(h) {
    this.angle = (270+h) % 360
}

Turtle.prototype.penwidth = function(w) {
    this.c.lineWidth=w;
}

Turtle.prototype.color = function (args) {
        this.c.strokeStyle = "rgb("+parseInt(args[0])+","+parseInt(args[1])+","+parseInt(args[2])+")";
}

Turtle.prototype.arc = function (radius, angle) {
    if (this.pen) {
        this.c.beginPath();
        this.c.arc(this.x,this.y, radius, this.radians(), ((this.angle+angle)%360)/180*Math.PI,false);
        this.c.stroke();
       
  }
}
Turtle.prototype.arc_point = function (radius, angle) {
    if (this.pen) {
        this.c.beginPath();
        this.c.arc(this.x,this.y, radius, ((this.angle+angle)%360)/180*Math.PI, ((this.angle+angle+1)%360)/180*Math.PI,false);
        this.c.stroke();
       
  }
}



{'fraction_non_alphanumeric': 0.187263339070568, 'fraction_numerical': 0.022030981067125647, 'mean_word_length': 2.5569155446756424, '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': '7010955', 'n_tokens_mistral': 1148, 'n_tokens_neox': 1082, 'n_words': 158}