<commit_before>%h1
  = t('widget.walking_guide.title')
  %span(ng-show="loading")= "#{t('widget.walking_guide.loading')}..."
  %a.back(href=widgets_path)= t('views.widgets.edit.back')
.walking-guide__content
  .walking-guide__sidebar
    %h2(ng-show="widget.relics.length")= t('widget.walking_guide.relics')
    %ul.walking-guide__relics(ui-sortable="sortableOptions" ng-model="widget.relics" ng-if="widget.relics.length")
      %li.walking-guide__relic(ng-repeat="relic in widget.relics")
        %h3.walking-guide-relic__title {{ relic.identification }}
        %p.walking-guide-relic__location
          %span(ng-show="relic.street") {{ relic.street }},
          {{ relic.place }}
        %button.walkig-guide-relic__remove(type="button" ng-click="removeRelic(relic)") &times;
    .walking-guide__search
      %form(name="searchForm" ng-submit="searchRelics()")
        %input.walking-guide-search__query(type="text" name="query" ng-minlength="4" ng-model="query" placeholder="#{t('widget.walking_guide.what_where')}")
        %button.walkig-guide-relic__remove(type="button" ng-click="resetForm()" ng-show="query") &times;
        %span.error(ng-show="searchForm.submitted && searchForm.query.$error.minlength")
          = t('widget.walking_guide.query_is_too_short')
        %input.hidden(type="submit")
        %span.error(ng-show="suggestions && !suggestions.length")
          = t('widget.walking_guide.nothing_found')
        %span.error(ng-show="error")
          = t('widget.walking_guide.error')
        .clearfix
    .walking-guide__suggestions(ng-if="suggestions")
      %ul.walking-guide-suggestions__container
        %li.walking-guide__suggestion(ng-repeat="relic in filteredSuggestions()")
          %a(ng-click="selectRelic(relic)" href="")
            %h3.walking-guide-suggestion__title {{ relic.identification }}
            %p.walking-guide-suggestion__location
              %span(ng-show="relic.street") {{ relic.street }},
              {{ relic.place }}
      %button.button.button--load-more(type="button" ng-click="nextPage()" ng-show="currentPage + 1 < totalPages" ng-disabled="loading")
        {{ loading && '#{t('widget.walking_guide.loading')}' || '#{t('widget.walking_guide.load_more')}' }}
    .walking-guide__description
      %h2= t('widget.walking_guide.description')
      %textarea(ng-model="widget.description")
    %button.button.button--save(type="button" ng-click="save()" ng-disabled="saving || loading || !widget.relics.length")
      {{ saving && '#{t('widget.walking_guide.saving')}' || '#{t('widget.walking_guide.save')}' }}
    %a.button.button--print(ng-href="{{ widget.print_path }}" ng-show="saved" target="_blank")
      = t('widget.walking_guide.print')
  %div(google-map="true" center="map.center" zoom="map.zoom" events="map.events")
    %div(marker="true" ng-repeat="relic in widget.relics" coords="relic" icon="getIcon($first, $last)" click="loadRelicInfo(relic)")
      %div(window="true" show="relic.showInfoWindow || false" closeClick="relic.showInfoWindow = false")
        = render 'relic_info'
  .clearfix

.walking-guide__code-generator(ng-show="saved")
  %h2= t('views.widgets.edit.generated')
  %textarea.code-generator__snippet(readonly)
    = raw %Q(<iframe id="oz_walking_guide" src="{{ widget.widget_url }}" width="{{ widget.width }}" height="{{ widget.height }}"></iframe>)
  .code-generator__input-block
    %label.code-generator__label
      = t('widget.walking_guide.width')
    %input.code-generator__input(type="text" ng-model="widget.width")
  .code-generator__input-block
    %label.code-generator__label
      = t('widget.walking_guide.height')
    %input.code-generator__input(type="text" ng-model="widget.height")
  .clearfix<commit_msg>[fix] Make map draggable<commit_after>%h1
  = t('widget.walking_guide.title')
  %span(ng-show="loading")= "#{t('widget.walking_guide.loading')}..."
  %a.back(href=widgets_path)= t('views.widgets.edit.back')
.walking-guide__content
  .walking-guide__sidebar
    %h2(ng-show="widget.relics.length")= t('widget.walking_guide.relics')
    %ul.walking-guide__relics(ui-sortable="sortableOptions" ng-model="widget.relics" ng-if="widget.relics.length")
      %li.walking-guide__relic(ng-repeat="relic in widget.relics")
        %h3.walking-guide-relic__title {{ relic.identification }}
        %p.walking-guide-relic__location
          %span(ng-show="relic.street") {{ relic.street }},
          {{ relic.place }}
        %button.walkig-guide-relic__remove(type="button" ng-click="removeRelic(relic)") &times;
    .walking-guide__search
      %form(name="searchForm" ng-submit="searchRelics()")
        %input.walking-guide-search__query(type="text" name="query" ng-minlength="4" ng-model="query" placeholder="#{t('widget.walking_guide.what_where')}")
        %button.walkig-guide-relic__remove(type="button" ng-click="resetForm()" ng-show="query") &times;
        %span.error(ng-show="searchForm.submitted && searchForm.query.$error.minlength")
          = t('widget.walking_guide.query_is_too_short')
        %input.hidden(type="submit")
        %span.error(ng-show="suggestions && !suggestions.length")
          = t('widget.walking_guide.nothing_found')
        %span.error(ng-show="error")
          = t('widget.walking_guide.error')
        .clearfix
    .walking-guide__suggestions(ng-if="suggestions")
      %ul.walking-guide-suggestions__container
        %li.walking-guide__suggestion(ng-repeat="relic in filteredSuggestions()")
          %a(ng-click="selectRelic(relic)" href="")
            %h3.walking-guide-suggestion__title {{ relic.identification }}
            %p.walking-guide-suggestion__location
              %span(ng-show="relic.street") {{ relic.street }},
              {{ relic.place }}
      %button.button.button--load-more(type="button" ng-click="nextPage()" ng-show="currentPage + 1 < totalPages" ng-disabled="loading")
        {{ loading && '#{t('widget.walking_guide.loading')}' || '#{t('widget.walking_guide.load_more')}' }}
    .walking-guide__description
      %h2= t('widget.walking_guide.description')
      %textarea(ng-model="widget.description")
    %button.button.button--save(type="button" ng-click="save()" ng-disabled="saving || loading || !widget.relics.length")
      {{ saving && '#{t('widget.walking_guide.saving')}' || '#{t('widget.walking_guide.save')}' }}
    %a.button.button--print(ng-href="{{ widget.print_path }}" ng-show="saved" target="_blank")
      = t('widget.walking_guide.print')
  %div(google-map="true" center="map.center" zoom="map.zoom" events="map.events" draggable="true")
    %div(marker="true" ng-repeat="relic in widget.relics" coords="relic" icon="getIcon($first, $last)" click="loadRelicInfo(relic)")
      %div(window="true" show="relic.showInfoWindow || false" closeClick="relic.showInfoWindow = false")
        = render 'relic_info'
  .clearfix

.walking-guide__code-generator(ng-show="saved")
  %h2= t('views.widgets.edit.generated')
  %textarea.code-generator__snippet(readonly)
    = raw %Q(<iframe id="oz_walking_guide" src="{{ widget.widget_url }}" width="{{ widget.width }}" height="{{ widget.height }}"></iframe>)
  .code-generator__input-block
    %label.code-generator__label
      = t('widget.walking_guide.width')
    %input.code-generator__input(type="text" ng-model="widget.width")
  .code-generator__input-block
    %label.code-generator__label
      = t('widget.walking_guide.height')
    %input.code-generator__input(type="text" ng-model="widget.height")
  .clearfix
{'fraction_non_alphanumeric': 0.1837035054856837, 'fraction_numerical': 0.0021407546160021407, 'mean_word_length': 4.216329378925331, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '1689945', 'n_tokens_mistral': 2630, 'n_tokens_neox': 2504, 'n_words': 265}