<commit_before>--[[
	A simple SVG Parser which fills in a lua based object model
	for the image specified.
--]]

local ffi = require("ffi")
local bit = require("bit")
local lshift, rshift, band, bor = bit.lshift, bit.rshift, bit.band, bit.bor

local XmlParser = require("remotesvg.SVGXmlParser")
local transform2D = require("remotesvg.transform2D")
local Bezier = require("remotesvg.Bezier")
local colors = require("remotesvg.colors")
local ctypes = require("remotesvg.ctypes")
local isspace = ctypes.isspace;
local isdigit = ctypes.isdigit;

local maths = require("remotesvg.maths")
local clamp = maths.clamp;
local sqr = maths.sqr;
local vecrat = maths.vecrat;
local vecang = maths.vecang;
local vmag = maths.vmag;


--local SVGPath = require("ljgraph2D.SVGPath")
--local SVGShape = require("ljgraph2D.SVGShape")
--local SVGImage = require("ljgraph2D.SVGImage")

local sqrt = math.sqrt;
local fabs = math.abs;<commit_msg>messing around with experiemental code<commit_after>--[[
	A simple SVG Parser which fills in a lua based object model
	for the image specified.
--]]

local ffi = require("ffi")
local bit = require("bit")
local lshift, rshift, band, bor = bit.lshift, bit.rshift, bit.band, bit.bor

local XmlParser = require("remotesvg.SVGXmlParser")
local isspace = ctypes.isspace;
local isdigit = ctypes.isdigit;

local maths = require("remotesvg.maths")
local clamp = maths.clamp;
local sqr = maths.sqr;
local vecrat = maths.vecrat;
local vecang = maths.vecang;
local vmag = maths.vmag;


--local SVGPath = require("ljgraph2D.SVGPath")
--local SVGShape = require("ljgraph2D.SVGShape")
--local SVGImage = require("ljgraph2D.SVGImage")

local sqrt = math.sqrt;
local fabs = math.abs;
{'fraction_non_alphanumeric': 0.12788632326820604, 'fraction_numerical': 0.004736530491415038, 'mean_word_length': 5.01423487544484, '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': '3792705', 'n_tokens_mistral': 622, 'n_tokens_neox': 598, 'n_words': 163}