<commit_before>
var createDocument = function(params){
	params.documentPreferences = {
		pageWidth : params.width+"mm",
		pageHeight: params.height+"mm",
	   	facingPages:false};

	var doc = app.documents.add(params);

	var page = doc.pages.item(0);
	page.marginPreferences.properties = {
		top    : params.marginTop+"mm",
		left   : params.marginLeft+"mm",
		bottom : params.marginBottom+"mm",
		right  : params.marginRight+"mm"};

	return doc;
};

var createPoint = function( pointX,pointY ){
	return {x:pointX, y:pointY};
};

var drawLines = function( page, pointList ){
	if( pointList.length<2 ){
	   	return ;
   	}

	for( var i=0; i<pointList.length; i++ ){
		if( (i+1)<pointList.length ){
			var startPoint = pointList[i];
			var endPoint   = pointList[i+1];

			var top    = startPoint.y + 'mm';
			var left   = startPoint.x + 'mm';
			var bottom = endPoint.y   + 'mm';
			var right  = endPoint.x   + 'mm';

			var lineParams = { geometricBounds : [top,left,bottom,right] };
			var graphicLine = page.graphicLines.add( lineParams );
			graphicLine.strokeWeight = '0.1mm';

			var path = graphicLine.paths[0];
			path.pathPoints[0].anchor = [left,top];
			path.pathPoints[1].anchor = [right,bottom];
		}
	};
};

//
// startPoint を頂点とした lengthOfSize の辺の長さの正三角形を描きます.
//
var drawTriangle = function( page, counter, startPoint, lengthOfSide ){
	var bottomLeftPoint  = createPoint( startPoint.x - lengthOfSide/2, startPoint.y+lengthOfSide );
	var bottomRightPoint = createPoint( startPoint.x + lengthOfSide/2, startPoint.y+lengthOfSide );<commit_msg>fixed description.<commit_after>
var createDocument = function(params){
	params.documentPreferences = {
		pageWidth : params.width+"mm",
		pageHeight: params.height+"mm",
	   	facingPages:false};

	var doc = app.documents.add(params);

	var page = doc.pages.item(0);
	page.marginPreferences.properties = {
		top    : params.marginTop+"mm",
		left   : params.marginLeft+"mm",
		bottom : params.marginBottom+"mm",
		right  : params.marginRight+"mm"};

	return doc;
};

var createPoint = function( pointX,pointY ){
	return {x:pointX, y:pointY};
};

var drawLines = function( page, pointList ){
	if( pointList.length<2 ){
	   	return ;
   	}

	for( var i=0; i<pointList.length; i++ ){
		if( (i+1)<pointList.length ){
			var startPoint = pointList[i];
			var endPoint   = pointList[i+1];

			var top    = startPoint.y + 'mm';
			var left   = startPoint.x + 'mm';
			var bottom = endPoint.y   + 'mm';
			var right  = endPoint.x   + 'mm';

			var lineParams = { geometricBounds : [top,left,bottom,right] };
			var graphicLine = page.graphicLines.add( lineParams );
			graphicLine.strokeWeight = '0.1mm';

			var path = graphicLine.paths[0];
			path.pathPoints[0].anchor = [left,top];
			path.pathPoints[1].anchor = [right,bottom];
		}
	};
};

//
// startPoint を頂点とした 底辺が lengthOfSize の長さの三角形を描きます.
//
var drawTriangle = function( page, counter, startPoint, lengthOfSide ){
	var bottomLeftPoint  = createPoint( startPoint.x - lengthOfSide/2, startPoint.y+lengthOfSide );
	var bottomRightPoint = createPoint( startPoint.x + lengthOfSide/2, startPoint.y+lengthOfSide );
{'fraction_non_alphanumeric': 0.1474935732647815, 'fraction_numerical': 0.007712082262210797, 'mean_word_length': 3.8946540880503147, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1319858', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1095, 'n_words': 224}