<commit_before>define "app/widgets", ['app/draw', 'leaflet', 'servicetree', 'underscore', 'jquery', 'backbone'], (draw, leaflet, service_tree, _, $, Backbone) ->


    TitleControl: L.Control.extend
        options:
            position: 'bottomright'
        onAdd: (map) ->
            # create the control container with a particular class name
            container = L.DomUtil.create 'div', 'title-control'
            $logo = $('<img class="logo" src="images/service-map-logo.png" alt="Service Map logo">')
            $(container).append $logo
            return container

    LandingTitleControl: L.Control.extend
        options:
            position: 'topleft'
        onAdd: (map) ->
            # create the control container with a particular class name
            container = L.DomUtil.create 'div', 'landing-title-control'
            $logo = $('
                <img class="landing-logo" src="images/service-map-logo.png" alt="Service Map logo">
                <span class="slogan">Your city, your services</span>
            ')
            $(container).append $logo
            return container

    SearchControl: L.Control.extend
        options:
            position: 'topright'
        onAdd: (map) ->
            $container = $("<div id='search' />")
            $el = $("<input type='text' name='query' class='form-control'>")
            $el.css
                width: '250px'
            $container.append $el
            return $container.get(0)

    ServiceSidebarControl: L.Control.extend
        initialize: (@element, options) ->
            L.Util.setOptions this, options
        options:
            position: 'topleft'
        onAdd: (map) ->
            @element

    CanvasIcon: L.Icon.extend
        initialize: (@dimension, @color) ->
            @options.iconSize = new L.Point @dimension, @dimension
            @options.iconAnchor = new L.Point @options.iconSize.x/2, @options.iconSize.y
            @plant = new draw.Plant(@dimension, @color)
        options:
            className: 'leaflet-canvas-icon'
        createIcon: ->
            el = document.createElement 'canvas'
            this._setIconStyles el, 'icon'
            s = @options.iconSize
            el.width = s.x + 20
            el.height = s.y + 20
            @plant.draw(el.getContext('2d'))
            return el
        createShadow: ->
            return null
<commit_msg>Remove unused leaflet map search control.<commit_after>define "app/widgets", ['app/draw', 'leaflet', 'servicetree', 'underscore', 'jquery', 'backbone'], (draw, leaflet, service_tree, _, $, Backbone) ->

    TitleControl: L.Control.extend
        options:
            position: 'bottomright'
        onAdd: (map) ->
            # create the control container with a particular class name
            container = L.DomUtil.create 'div', 'title-control'
            $logo = $('<img class="logo" src="images/service-map-logo.png" alt="Service Map logo">')
            $(container).append $logo
            return container

    LandingTitleControl: L.Control.extend
        options:
            position: 'topleft'
        onAdd: (map) ->
            # create the control container with a particular class name
            container = L.DomUtil.create 'div', 'landing-title-control'
            $logo = $('
                <img class="landing-logo" src="images/service-map-logo.png" alt="Service Map logo">
                <span class="slogan">Your city, your services</span>
            ')
            $(container).append $logo
            return container

    ServiceSidebarControl: L.Control.extend
        initialize: (@element, options) ->
            L.Util.setOptions this, options
        options:
            position: 'topleft'
        onAdd: (map) ->
            @element

    CanvasIcon: L.Icon.extend
        initialize: (@dimension, @color) ->
            @options.iconSize = new L.Point @dimension, @dimension
            @options.iconAnchor = new L.Point @options.iconSize.x/2, @options.iconSize.y
            @plant = new draw.Plant(@dimension, @color)
        options:
            className: 'leaflet-canvas-icon'
        createIcon: ->
            el = document.createElement 'canvas'
            this._setIconStyles el, 'icon'
            s = @options.iconSize
            el.width = s.x + 20
            el.height = s.y + 20
            @plant.draw(el.getContext('2d'))
            return el
        createShadow: ->
            return null

{'fraction_non_alphanumeric': 0.12424174342844305, 'fraction_numerical': 0.003594697820714446, 'mean_word_length': 1.8741123305358296, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 30, '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': '6300126', 'n_tokens_mistral': 1230, 'n_tokens_neox': 1192, 'n_words': 299}