<commit_before>section(data-ng-controller='DealsController', ng-init='find()')
  .col-sm-12
    div(ng-repeat='marker in myMarkers', ui-map-marker='myMarkers[$index]', ui-event='{\'map-click\': \'openMarkerInfo(marker)\'}')
    div(ui-map-info-window='myInfoWindow')
      h1 {{currentMarkerName}}
      | Lat:
      input(ng-model='currentMarkerLat')
      | , Lng:
      input(ng-model='currentMarkerLng')
      a(ng-click='setMarkerPosition(currentMarker, currentMarkerLat, currentMarkerLng)') Set Position
    .map-canvas(ui-map='myMap', ui-event='{\'map-click\': \'addMarker($event, $params)\', \'map-zoom_changed\': \'setZoomMessage(myMap.getZoom())\' }', ui-options='mapOptions')
  .searchbar
    h3 Buscar por:
    input.form-control(type="search",ng-model="dealname",placeholder="Nombre de oferta...")
    //- input.form-control(type="search",ng-model="search.shop",placeholder="Nombre de tienda...")
    select(ng-options="category for category in uniqueCategories",ng-change="filter()",ng-model="selectedCategory",style="color: black;")
      option(value="",selected) --Todas las categorías--
    select(ng-options="price.text for price in priceRange",ng-change="filter()",ng-model="selectedPrice",style="color: black;")
      option(value="",selected) --Cualquier precio--
  ul.deals
    li(ng-repeat='deal in filteredDeals | filter:dealname')
      .deal-data
        a(data-ng-href="deals/{{deal._id}}")
          figure.effeckt-caption(data-effeckt-type='revolving-door-left')
            img(ng-src='{{deal.deal.image}}')
            figcaption
              .effeckt-figcaption-wrap
                p {{deal.deal.description}}
        .info.col-sm-12
          h3 {{deal.deal.name | trunc:true:24}}
        .secondary-info.col-sm-12
          .shop-info.col-sm-4
            h4
              span.glyphicon.glyphicon-map-marker
              | {{deal.deal.shop.name}}
        .data.col-sm-12
          .count.col-sm-4
            h4
              span.glyphicon.glyphicon-barcode<commit_msg>Added typeahead for deal search<commit_after>section(data-ng-controller='DealsController', ng-init='find()')
  .col-sm-12
    div(ng-repeat='marker in myMarkers', ui-map-marker='myMarkers[$index]', ui-event='{\'map-click\': \'openMarkerInfo(marker)\'}')
    div(ui-map-info-window='myInfoWindow')
      h1 {{currentMarkerName}}
      | Lat:
      input(ng-model='currentMarkerLat')
      | , Lng:
      input(ng-model='currentMarkerLng')
      a(ng-click='setMarkerPosition(currentMarker, currentMarkerLat, currentMarkerLng)') Set Position
    .map-canvas(ui-map='myMap', ui-event='{\'map-click\': \'addMarker($event, $params)\', \'map-zoom_changed\': \'setZoomMessage(myMap.getZoom())\' }', ui-options='mapOptions')
  .searchbar
    h3 Buscar por:
    input.form-control(type="search",ng-model="dealname",placeholder="Nombre de oferta...",typeahead="deal.deal.name for deal in deals | filter:$viewValue | limitTo:8")
    //- input.form-control(type="search",ng-model="search.shop",placeholder="Nombre de tienda...")
    select(ng-options="category for category in uniqueCategories",ng-change="filter()",ng-model="selectedCategory",style="color: black;")
      option(value="",selected) --Todas las categorías--
    select(ng-options="price.text for price in priceRange",ng-change="filter()",ng-model="selectedPrice",style="color: black;")
      option(value="",selected) --Cualquier precio--
  ul.deals
    li(ng-repeat='deal in filteredDeals | filter:dealname')
      .deal-data
        a(data-ng-href="deals/{{deal._id}}")
          figure.effeckt-caption(data-effeckt-type='revolving-door-left')
            img(ng-src='{{deal.deal.image}}')
            figcaption
              .effeckt-figcaption-wrap
                p {{deal.deal.description}}
        .info.col-sm-12
          h3 {{deal.deal.name | trunc:true:24}}
        .secondary-info.col-sm-12
          .shop-info.col-sm-4
            h4
              span.glyphicon.glyphicon-map-marker
              | {{deal.deal.shop.name}}
        .data.col-sm-12
          .count.col-sm-4
            h4
              span.glyphicon.glyphicon-barcode
{'fraction_non_alphanumeric': 0.1772428884026258, 'fraction_numerical': 0.008509603695599319, 'mean_word_length': 3.029382957884427, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7353232', 'n_tokens_mistral': 1394, 'n_tokens_neox': 1330, 'n_words': 175}