<commit_before>// candle.canvas.js
 
(function(){

/* ---------------------- */
/*   canvas描画可能条件   */
/* ---------------------- */
if(!document.createElement('canvas').getContext){ return;}

/* -------------------------- */
/*   canvasブラウザ依存対策   */
/* -------------------------- */
if(window.CanvasRenderingContext2D){
	var p = CanvasRenderingContext2D.prototype;
	console.log(3);
	if(!p.setLineDash){
		if     ('mozDash' in p)       { p.setLineDash = function(sizes){ this.mozDash=sizes;};}
		else if('webkitLineDash' in p){ p.setLineDash = function(sizes){ this.webkitLineDash=sizes;};}
	}
}

/* -------------------- */
/*   Canvas用ラッパー   */
/* -------------------- */
Candle.addTypes('canvas');

Candle.addWrapper('canvas:wrapperbase',{

	initialize : function(idname){
		Candle.wrapper.wrapperbase.prototype.initialize.call(this, idname);

		// variables for internal
		this.context  = null;	// 本来のCanvasRenderingContext2Dオブジェクト

		this.use = new Candle.TypeList('canvas');

		this.x0 = 0;
		this.y0 = 0;

		this.initElement();
	},

	/* extend functions (initialize) */
	initElement : function(){
		var parent = this.canvas = _doc.getElementById(this.idname);<commit_msg>candle.canvas: 不要なデバッグ出力ルーチンを削除<commit_after>// candle.canvas.js
 
(function(){

/* ---------------------- */
/*   canvas描画可能条件   */
/* ---------------------- */
if(!document.createElement('canvas').getContext){ return;}

/* -------------------------- */
/*   canvasブラウザ依存対策   */
/* -------------------------- */
if(window.CanvasRenderingContext2D){
	var p = CanvasRenderingContext2D.prototype;
	if(!p.setLineDash){
		if     ('mozDash' in p)       { p.setLineDash = function(sizes){ this.mozDash=sizes;};}
		else if('webkitLineDash' in p){ p.setLineDash = function(sizes){ this.webkitLineDash=sizes;};}
	}
}

/* -------------------- */
/*   Canvas用ラッパー   */
/* -------------------- */
Candle.addTypes('canvas');

Candle.addWrapper('canvas:wrapperbase',{

	initialize : function(idname){
		Candle.wrapper.wrapperbase.prototype.initialize.call(this, idname);

		// variables for internal
		this.context  = null;	// 本来のCanvasRenderingContext2Dオブジェクト

		this.use = new Candle.TypeList('canvas');

		this.x0 = 0;
		this.y0 = 0;

		this.initElement();
	},

	/* extend functions (initialize) */
	initElement : function(){
		var parent = this.canvas = _doc.getElementById(this.idname);
{'fraction_non_alphanumeric': 0.26774330641733957, 'fraction_numerical': 0.006374840628984276, 'mean_word_length': 2.34375, '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': '1638611', 'n_tokens_mistral': 829, 'n_tokens_neox': 793, 'n_words': 113}