<commit_before>import React from 'react'
import L from 'leaflet'
L.Icon.Default.imagePath = 'node_modules/leaflet/dist/images/';
import MapBoxToken from '../../Tokens'
import 'leaflet-routing-machine'
import 'lrm-mapbox'
import 'drmonty-leaflet-awesome-markers'
import RouteMarkerPopup from './RouteMarkerPopup'
import Classnames from 'classnames'

class ReportMap extends React.Component {
    initializeMap () {
        let attribution = '<a href="https://www.mapbox.com/about/maps/"' +
            'target="_blank">&copy; Mapbox &copy; OpenStreetMap</a>'
        let subdomains = ['a', 'b', 'c', 'd']

        this.baseLayer = L.tileLayer(
            'https://{s}.tiles.mapbox.com/v4/{mapId}/{z}/{x}/{y}.png?' +
            'access_token={token}', {
                attribution: attribution,
                subdomains: subdomains,
                mapId: 'sharkins.lbp79oa3',
                token: MapBoxToken
            }
        )
        let node = React.findDOMNode(this)
        this.map = L.map(node, {
            center: [45.493, -75.865],
            zoom: 14
        })
        this.baseLayer.addTo(this.map)
        this.reportRoute = L.geoJson().addTo(this.map)
        this.reportRouteLayerGroup = L.layerGroup().addTo(this.map)
        this.routeLayerGroup = L.layerGroup().addTo(this.map)

        this.routeLineStyle = { color: 'red', opacity: 0.5, weight: 5 }
        this.startIcon = L.AwesomeMarkers.icon({
            icon: 'play',
            markerColor: 'green'
        })
        this.lastIcon = L.AwesomeMarkers.icon({
            icon: 'flag',
            markerColor: 'orange'
        })
        this.intermediateIcon = L.AwesomeMarkers.icon({
            icon: 'flag',
            markerColor: 'blue'<commit_msg>Added retina support.<commit_after>import React from 'react'
import L from 'leaflet'
L.Icon.Default.imagePath = 'node_modules/leaflet/dist/images/';
import MapBoxToken from '../../Tokens'
import 'leaflet-routing-machine'
import 'lrm-mapbox'
import 'drmonty-leaflet-awesome-markers'
import RouteMarkerPopup from './RouteMarkerPopup'
import Classnames from 'classnames'

class ReportMap extends React.Component {
    initializeMap () {
        let attribution = '<a href="https://www.mapbox.com/about/maps/"' +
            'target="_blank">&copy; Mapbox &copy; OpenStreetMap</a>'
        let subdomains = ['a', 'b', 'c', 'd']
        let retina = L.Browser.retina ? '@2x' : ''
        this.baseLayer = L.tileLayer(
            'https://{s}.tiles.mapbox.com/v4/{mapId}/{z}/{x}/{y}' +
                retina + '.png?' + 'access_token={token}', {
                attribution: attribution,
                subdomains: subdomains,
                mapId: 'andreasviglakis.76e0cee7',
                token: MapBoxToken,
            }
        )
        let node = React.findDOMNode(this)
        this.map = L.map(node, {
            center: [45.493, -75.865],
            zoom: 14
        })
        this.baseLayer.addTo(this.map)
        this.reportRoute = L.geoJson().addTo(this.map)
        this.reportRouteLayerGroup = L.layerGroup().addTo(this.map)
        this.routeLayerGroup = L.layerGroup().addTo(this.map)

        this.routeLineStyle = { color: 'red', opacity: 0.5, weight: 5 }
        this.startIcon = L.AwesomeMarkers.icon({
            icon: 'play',
            markerColor: 'green'
        })
        this.lastIcon = L.AwesomeMarkers.icon({
            icon: 'flag',
            markerColor: 'orange'
        })
        this.intermediateIcon = L.AwesomeMarkers.icon({
            icon: 'flag',
            markerColor: 'blue'
{'fraction_non_alphanumeric': 0.14373601789709173, 'fraction_numerical': 0.011185682326621925, 'mean_word_length': 2.1459982409850484, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '1525126', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1114, 'n_words': 209}