<commit_before>package lib;
import haxe.Template;

typedef LayerTypeDef =
{
	var name:String;
	var directoryPath:String;
	var x:Float;
	var y:Float;
	var opacity:Float;
}

class Converter{

	private static inline var TEMPLATE_JSON =
'		{
			"name":"::name::",
			"directory_path":"::directory_path::",
			"x":::x::,
			"y":::y::,
			"opacity":::opacity::
		}';

	private static inline var TEMPLATE_ARRAY_STRING = '		["::name::", "::directory_path::", ::x::, ::y::, ::opacity::]';

	public static function toJson(layerTypeDef:LayerTypeDef):String{
		return toCommon(layerTypeDef, TEMPLATE_JSON);
	}
	public static function toArrayString(layerTypeDef:LayerTypeDef):String{
		return toCommon(layerTypeDef, TEMPLATE_ARRAY_STRING);<commit_msg>rounded Layer.opacity<commit_after>package lib;
import haxe.Template;

typedef LayerTypeDef =
{
	var name:String;
	var directoryPath:String;
	var x:Float;
	var y:Float;
	var opacity:Int;
}

class Converter{

	private static inline var TEMPLATE_JSON =
'		{
			"name":"::name::",
			"directory_path":"::directory_path::",
			"x":::x::,
			"y":::y::,
			"opacity":::opacity::
		}';

	private static inline var TEMPLATE_ARRAY_STRING = '		["::name::", "::directory_path::", ::x::, ::y::, ::opacity::]';

	public static function toJson(layerTypeDef:LayerTypeDef):String{
		return toCommon(layerTypeDef, TEMPLATE_JSON);
	}
	public static function toArrayString(layerTypeDef:LayerTypeDef):String{
		return toCommon(layerTypeDef, TEMPLATE_ARRAY_STRING);
{'fraction_non_alphanumeric': 0.16531713900134953, 'fraction_numerical': 0.0, 'mean_word_length': 6.305418719211823, 'pattern_counts': {'":': 18, '<': 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': '1324084', 'n_tokens_mistral': 572, 'n_tokens_neox': 507, 'n_words': 104}