<commit_before>define(function(require) {
    var ol = require('ol');
    return function(options) {
        var category_map = {};
        var category_id = 0;
        var occupied_xy = {};
        var src = new ol.source.ServerVector({
            format: new ol.format.GeoJSON(),
            loader: function(extent, resolution, projection) {
                if (typeof src.options.clear_on_move !== 'undefined' && src.options.clear_on_move) src.clear();
                if (typeof options.hsproxy == 'undefined') options.hsproxy = false;
                if (src.options.url == '') return;
                var p = src.options.url;
                if (options.hsproxy)
                    p = "/cgi-bin/hsproxy.cgi?toEncoding=utf-8&url=" + encodeURIComponent(p);
                src.loaded = true;

                function getPrecision(scinum) {
                    var arr = new Array();
                    // Get the exponent after 'e', make it absolute.  
                    arr = scinum.split('e');
                    var exponent = Math.abs(arr[1]);

                    // Add to it the number of digits between the '.' and the 'e'
                    // to give our required precision.
                    var precision = new Number(exponent);
                    arr = arr[0].split('.');
                    precision += arr[1].length;

                    return precision;
                }

                $.ajax({
                        url: p
                    })
                    .done(function(response) {
                        var objects = {};
                        var min = Number.MAX_VALUE;
                        var max = Number.MIN_VALUE;

                        for (var i = 0; i < response.results.bindings.length; i++) {
                            var b = response.results.bindings[i];
                            if (typeof objects[b.o.value] === 'undefined') {
                                objects[b.o.value] = {};
                            }
                            if (b.s.datatype && b.s.datatype == 'http://www.w3.org/2001/XMLSchema#double') {
                                objects[b.o.value][b.p.value] = parseFloat(b.s.value).toFixed(2);
                            } else {
                                objects[b.o.value][b.p.value] = b.s.value;
                            }
                            /*
                            objects[b.o.value].geom = b.geom.value;
                            objects[b.o.value].value = b.value.value;
                            objects[b.o.value].nut = b.nut.value;
                            */
                            if (b.p.value == 'http://www.w3.org/1999/02/22-rdf-syntax-ns#value') {
                                if (min > parseFloat(b.s.value)) min = parseFloat(objects[b.o.value][b.p.value]);
                                if (max < parseFloat(b.s.value)) max = parseFloat(objects[b.o.value][b.p.value]);
                            }
                        }
                        var features = [];
                        var i = 0.0;
                        var green = function(numOfSteps, step, opacity) {
                            
var a = [
'228, 251, 203',
'198, 229, 171',
'168, 208, 140',
'139, 187, 109',
'109, 165, 77',
'79, 144, 46',
'50, 123, 15']

                            return 'rgba('+a[step]+', 0.7)';
                        }
                        var step = (max - min) / 7.0;
                        for (var c = 0; c <= 7; c++) {
                            var l_bound = parseFloat((min + c * step));
                            var u_bound = parseFloat(min + (c + 1.0) * step);

                            category_map[c] = {
                                name: l_bound.toFixed(2) + " - " + u_bound.toFixed(2),
                                color: green(7, c, 1)
                            };<commit_msg>some blach polygons<commit_after>define(function(require) {
    var ol = require('ol');
    return function(options) {
        var category_map = {};
        var category_id = 0;
        var occupied_xy = {};
        var src = new ol.source.ServerVector({
            format: new ol.format.GeoJSON(),
            loader: function(extent, resolution, projection) {
                if (typeof src.options.clear_on_move !== 'undefined' && src.options.clear_on_move) src.clear();
                if (typeof options.hsproxy == 'undefined') options.hsproxy = false;
                if (src.options.url == '') return;
                var p = src.options.url;
                if (options.hsproxy)
                    p = "/cgi-bin/hsproxy.cgi?toEncoding=utf-8&url=" + encodeURIComponent(p);
                src.loaded = true;

                function getPrecision(scinum) {
                    var arr = new Array();
                    // Get the exponent after 'e', make it absolute.  
                    arr = scinum.split('e');
                    var exponent = Math.abs(arr[1]);

                    // Add to it the number of digits between the '.' and the 'e'
                    // to give our required precision.
                    var precision = new Number(exponent);
                    arr = arr[0].split('.');
                    precision += arr[1].length;

                    return precision;
                }

                $.ajax({
                        url: p
                    })
                    .done(function(response) {
                        var objects = {};
                        var min = Number.MAX_VALUE;
                        var max = Number.MIN_VALUE;

                        for (var i = 0; i < response.results.bindings.length; i++) {
                            var b = response.results.bindings[i];
                            if (typeof objects[b.o.value] === 'undefined') {
                                objects[b.o.value] = {};
                            }
                            if (b.s.datatype && b.s.datatype == 'http://www.w3.org/2001/XMLSchema#double') {
                                objects[b.o.value][b.p.value] = parseFloat(b.s.value).toFixed(2);
                            } else {
                                objects[b.o.value][b.p.value] = b.s.value;
                            }
                            /*
                            objects[b.o.value].geom = b.geom.value;
                            objects[b.o.value].value = b.value.value;
                            objects[b.o.value].nut = b.nut.value;
                            */
                            if (b.p.value == 'http://www.w3.org/1999/02/22-rdf-syntax-ns#value') {
                                if (min > parseFloat(b.s.value)) min = parseFloat(objects[b.o.value][b.p.value]);
                                if (max < parseFloat(b.s.value)) max = parseFloat(objects[b.o.value][b.p.value]);
                            }
                        }
                        var features = [];
                        var i = 0.0;
                        var green = function(numOfSteps, step, opacity) {
                            
var a = [
'228, 251, 203',
'198, 229, 171',
'168, 208, 140',
'139, 187, 109',
'109, 165, 77',
'79, 144, 46',
'50, 123, 15', '44, 110, 13']

                            return 'rgba('+a[step]+', 0.7)';
                        }
                        var step = (max - min) / 7.0;
                        for (var c = 0; c <= 7; c++) {
                            var l_bound = parseFloat((min + c * step));
                            var u_bound = parseFloat(min + (c + 1.0) * step);

                            category_map[c] = {
                                name: l_bound.toFixed(2) + " - " + u_bound.toFixed(2),
                                color: green(7, c, 1)
                            };
{'fraction_non_alphanumeric': 0.12736152165531422, 'fraction_numerical': 0.024804009767382083, 'mean_word_length': 0.985204081632653, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '121201', 'n_tokens_mistral': 2267, 'n_tokens_neox': 2023, 'n_words': 439}