<commit_before>/* Copyright 2010-2011 <NAME>. All rights reserved.
 This package can be distributed under terms of 2-clause BSD licence,
 or X11 MIT license, whichever suits you better. */

function $$$(id)
{
    return document.getElementById(id);
}

var uLayers = {
    queue:new Array(),
    Drag:{
        map:null
    },
    OSM:{
        url:"http://tile.openstreetmap.org/",
        markerUrl:"http://joindin2.chronos.com/img/icons/pin.png",

        getTileUrl:function (xyz)
        {
            return uLayers.OSM.url + xyz.z + "/" + xyz.x + "/" + xyz.y + ".png";
        },

        getTile:function (lonlat, zoom)
        {
            var result = {};
            result.x = (Math.floor((lonlat.lon + 180) / 360 * Math.pow(2, zoom)));
            result.y = (Math.floor((1 - Math.log(Math.tan(lonlat.lat * Math.PI / 180) + 1 / Math.cos(lonlat.lat * Math.PI / 180)) / Math.PI) / 2 * Math.pow(2, zoom)));
            result.z = zoom;
            return result;
        },

        getPixelCoords:function (lonlat, zoom)
        {
            var result = {};
            result.x = ((lonlat.lon + 180) / 360 * Math.pow(2, zoom));
            result.y = ((1 - Math.log(Math.tan(lonlat.lat * Math.PI / 180) + 1 / Math.cos(lonlat.lat * Math.PI / 180)) / Math.PI) / 2 * Math.pow(2, zoom));
            return result;
        }
    },

    Map:function (id, provider)
    {
        this.getTile = provider.getTile;<commit_msg>Stop referring to a non-existant map pin<commit_after>/* Copyright 2010-2011 <NAME>. All rights reserved.
 This package can be distributed under terms of 2-clause BSD licence,
 or X11 MIT license, whichever suits you better. */

function $$$(id)
{
    return document.getElementById(id);
}

var uLayers = {
    queue:new Array(),
    Drag:{
        map:null
    },
    OSM:{
        url:"http://tile.openstreetmap.org/",

        getTileUrl:function (xyz)
        {
            return uLayers.OSM.url + xyz.z + "/" + xyz.x + "/" + xyz.y + ".png";
        },

        getTile:function (lonlat, zoom)
        {
            var result = {};
            result.x = (Math.floor((lonlat.lon + 180) / 360 * Math.pow(2, zoom)));
            result.y = (Math.floor((1 - Math.log(Math.tan(lonlat.lat * Math.PI / 180) + 1 / Math.cos(lonlat.lat * Math.PI / 180)) / Math.PI) / 2 * Math.pow(2, zoom)));
            result.z = zoom;
            return result;
        },

        getPixelCoords:function (lonlat, zoom)
        {
            var result = {};
            result.x = ((lonlat.lon + 180) / 360 * Math.pow(2, zoom));
            result.y = ((1 - Math.log(Math.tan(lonlat.lat * Math.PI / 180) + 1 / Math.cos(lonlat.lat * Math.PI / 180)) / Math.PI) / 2 * Math.pow(2, zoom));
            return result;
        }
    },

    Map:function (id, provider)
    {
        this.getTile = provider.getTile;
{'fraction_non_alphanumeric': 0.16065109695682944, 'fraction_numerical': 0.032200990799716916, 'mean_word_length': 1.8469284994964754, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '576372', 'n_tokens_mistral': 1029, 'n_tokens_neox': 927, 'n_words': 216}