<commit_before>var layerGroup = new L.FeatureGroup();

$(document).ready(function () {
    var map = L.map('map').setView([48.76375572, 31.62963867], 6);

    L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
        attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
    }).addTo(map);

    var points = $("#map").data();

    for (var point in points.items) {
        if (points.items.hasOwnProperty(point)) {
            L.marker([points.items[point].latitude, points.items[point].longitude]).addTo(map);
        }
    }

    function formatDate(dateObject) {
        var d = new Date(dateObject);
        var day = d.getDate();
        var month = d.getMonth() + 1;
        var year = d.getFullYear();

        if (day < 10) {
            day = "0" + day;
        }
        if (month < 10) {
            month = "0" + month;
        }
        var dateTime = day + "." + month + "." + year;

        return dateTime;
    }

    /* Clear page from all items and markers on map */
    function clearPage() {
        layerGroup.clearLayers();
        $('#items').empty();
    }
    var categories;
    var categoriesId = [];
    var checkedCategory = false;
    $.ajax({
        url: Routing.generate('get_categories', true),
        type: 'get',
        dataType: 'JSON',
        success: function (data) {
            categories = new Object(data);
            $.ajax({
                url: Routing.generate('show_lost_points'),
                type: 'get',
                dataType: 'JSON',
                success: function (data) {
                    console.log(Routing.generate('show_lost_points'));
                    var layer = null;
                    var center = null;
                    $('.btn-group').on('change', function() {
                        categoriesId = [];
                        clearPage();
                        checkedCategory = false;
                        $('.btn-group input:checked').each(function(id, label) {
                            categoriesId.push($(label).data('categoryId'));<commit_msg>Fix fails<commit_after>var layerGroup = new L.FeatureGroup();

$(document).ready(function () {
    var map = L.map('map').setView([48.76375572, 31.62963867], 6);

    L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
        attribution: '&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
    }).addTo(map);

    var points = $("#map").data();

    for (var point in points.items) {
        if (points.items.hasOwnProperty(point)) {
            L.marker([points.items[point].latitude, points.items[point].longitude]).addTo(map);
        }
    }

    function formatDate(dateObject) {
        var d = new Date(dateObject);
        var day = d.getDate();
        var month = d.getMonth() + 1;
        var year = d.getFullYear();

        if (day < 10) {
            day = "0" + day;
        }
        if (month < 10) {
            month = "0" + month;
        }
        var dateTime = day + "." + month + "." + year;

        return dateTime;
    }

    /* Clear page from all items and markers on map */
    function clearPage() {
        layerGroup.clearLayers();
        $('#items').empty();
    }
    var categories;
    var categoriesId = [];
    var checkedCategory = false;
    $.ajax({
        url: Routing.generate('get_categories'),
        type: 'get',
        dataType: 'JSON',
        success: function (data) {
            categories = new Object(data);
            $.ajax({
                url: Routing.generate('show_lost_points'),
                type: 'get',
                dataType: 'JSON',
                success: function (data) {
                    var layer = null;
                    var center = null;
                    $('.btn-group').on('change', function() {
                        categoriesId = [];
                        clearPage();
                        checkedCategory = false;
                        $('.btn-group input:checked').each(function(id, label) {
                            categoriesId.push($(label).data('categoryId'));
{'fraction_non_alphanumeric': 0.15482295482295483, 'fraction_numerical': 0.013675213675213675, 'mean_word_length': 1.6701434159061277, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '3176359', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1140, 'n_words': 248}