<commit_before># Add sprockets directives below:
#= require core_ext
#= require visualization/color
#= require visualization/choropleth
#= require visualization/bubbles

(($) ->
  "use strict"

  $.widget "ui.visualization",
    options:
      box:
        height: 400
        width: null
      backgrounds: {}
      overlays: {}
      controls: {}
      series: {}
      controlDefaults:
        fullscreen:
          position: 'topleft'
        geocoder:
          collapsed: true,
          position: 'topright',
          text: 'Locate',
          bounds: null,
          email: null
        layerSelector:
          collapsed: true,
          position: 'topright',
          autoZIndex: true
        scale:
          position: 'bottomleft'
          maxWidth: 200
          metric: true
          imperial: false
          updateWhenIdle: false
        zoom:
          position: 'topleft'
          zoomInText: ''
          zoomInTitle: 'Zoom In'
          zoomOutText: ''
          zoomOutTitle: 'Zoom Out'
      layers: {}
      layerDefaults:
        bubbles:
          stroke: true
          color: "#333333"
          weight: 1
          opacity: 1
          fill: true
          fillColor: "orange"
          fillOpacity: 1
        categories:
          stroke: true
          color: "#333333"
          weight: 1
          opacity: 1
          fill: true
          fillOpacity: 1
        choropleth:
          stroke: true
          color: "#333333"
          weight: 1
          opacity: 1
          fill: true
          fillColor: "blue"
          fillOpacity: 1
          round: 5
          startColor: '#FFFFFF'
          stopColor: '#910000'
          levelNumber: 7
        simple:
          stroke: true
          color: "#333333"
          weight: 1
          opacity: 1
          fill: true
          fillColor: "green"
          fillOpacity: 1
        paths:
          stroke: true
          color: "#333333"
          weight: 2
          opacity: 0.2
          fill: true
          fillOpacity: 1
        path:
          stroke: true
          color: "#333333"
          weight: 2
          opacity: 0.2
          fill: true
          fillOpacity: 1

      map:
        maxZoom: 25
        minZoom:2
        zoomControl: false
        attributionControl: false
      view:
        center:[]
        zoom : 13

    _create: ->
      console.log "1"
      $.extend(true, @options, @element.data("visualization"))

      console.log "2"
      @mapElement = $("<div>", class: "map").insertAfter(@element)

      console.log "3"
      @map = L.map(@mapElement[0], @options.map)

      console.log "4"
      this._resize()

      console.log "5"
      this._refreshView()

      console.log "8"
      this._refreshControls()

      console.log "9"

    _destroy: ->
      @mapElement.remove()
<commit_msg>Removes unexplicit JS console logs in vizu<commit_after># Add sprockets directives below:
#= require core_ext
#= require visualization/color
#= require visualization/choropleth
#= require visualization/bubbles

(($) ->
  "use strict"

  $.widget "ui.visualization",
    options:
      box:
        height: 400
        width: null
      backgrounds: {}
      overlays: {}
      controls: {}
      series: {}
      controlDefaults:
        fullscreen:
          position: 'topleft'
        geocoder:
          collapsed: true,
          position: 'topright',
          text: 'Locate',
          bounds: null,
          email: null
        layerSelector:
          collapsed: true,
          position: 'topright',
          autoZIndex: true
        scale:
          position: 'bottomleft'
          maxWidth: 200
          metric: true
          imperial: false
          updateWhenIdle: false
        zoom:
          position: 'topleft'
          zoomInText: ''
          zoomInTitle: 'Zoom In'
          zoomOutText: ''
          zoomOutTitle: 'Zoom Out'
      layers: {}
      layerDefaults:
        bubbles:
          stroke: true
          color: "#333333"
          weight: 1
          opacity: 1
          fill: true
          fillColor: "orange"
          fillOpacity: 1
        categories:
          stroke: true
          color: "#333333"
          weight: 1
          opacity: 1
          fill: true
          fillOpacity: 1
        choropleth:
          stroke: true
          color: "#333333"
          weight: 1
          opacity: 1
          fill: true
          fillColor: "blue"
          fillOpacity: 1
          round: 5
          startColor: '#FFFFFF'
          stopColor: '#910000'
          levelNumber: 7
        simple:
          stroke: true
          color: "#333333"
          weight: 1
          opacity: 1
          fill: true
          fillColor: "green"
          fillOpacity: 1
        paths:
          stroke: true
          color: "#333333"
          weight: 2
          opacity: 0.2
          fill: true
          fillOpacity: 1
        path:
          stroke: true
          color: "#333333"
          weight: 2
          opacity: 0.2
          fill: true
          fillOpacity: 1

      map:
        maxZoom: 25
        minZoom:2
        zoomControl: false
        attributionControl: false
      view:
        center:[]
        zoom : 13

    _create: ->
      $.extend(true, @options, @element.data("visualization"))
      @mapElement = $("<div>", class: "map").insertAfter(@element)
      @map = L.map(@mapElement[0], @options.map)
      this._resize()
      this._refreshView()
      this._refreshControls()

    _destroy: ->
      @mapElement.remove()

{'fraction_non_alphanumeric': 0.09522945764556502, 'fraction_numerical': 0.028840921458371124, 'mean_word_length': 1.3705932932072227, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '3425477', 'n_tokens_mistral': 1662, 'n_tokens_neox': 1520, 'n_words': 406}