<commit_before>var SOSI = window.SOSI || {};

(function (ns, undefined) {
    "use strict";

    ns.Point = ns.Base.extend({

        knutepunkt: false,

        initialize: function (line, origo, unit) {
            if (_.isArray(line)) {
                line = line[1];
            }

            var coords = line.split(/\s+/); 

            var numDecimals = 0;
            if (unit < 1) {
                numDecimals = Math.floor(Math.log(unit)/Math.LN10); 
            }

            this.y = ns.util.round((parseInt(coords[0], 10) * unit) + origo.y, numDecimals);
            this.x = ns.util.round((parseInt(coords[1], 10) * unit) + origo.x, numDecimals);

            if (coords[2] && !isNaN(coords[2])) {<commit_msg>undo sci.not. fix, have to fix better<commit_after>var SOSI = window.SOSI || {};

(function (ns, undefined) {
    "use strict";

    ns.Point = ns.Base.extend({

        knutepunkt: false,

        initialize: function (line, origo, unit) {
            if (_.isArray(line)) {
                line = line[1];
            }

            var coords = line.split(/\s+/); 

            var numDecimals = 0;
            if (unit < 1) {
                numDecimals = String(unit).split(".")[1].length; /* broken for scientific notation */
                //numDecimals = Math.floor(Math.log(unit)/Math.LN10); 
            }

            this.y = ns.util.round((parseInt(coords[0], 10) * unit) + origo.y, numDecimals);
            this.x = ns.util.round((parseInt(coords[1], 10) * unit) + origo.x, numDecimals);

            if (coords[2] && !isNaN(coords[2])) {
{'fraction_non_alphanumeric': 0.1620253164556962, 'fraction_numerical': 0.01708860759493671, 'mean_word_length': 1.7785588752196837, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2681861', 'n_tokens_mistral': 555, 'n_tokens_neox': 515, 'n_words': 106}