<commit_before>#hubs.hubs{"ng-controller" => "EnterprisesCtrl", "ng-cloak" => true}
  .row
    .small-12.columns
      %h1{"scroll-after-load" => (spree_current_user ? true : nil)}
        = t :hubs_intro

  = render "shared/components/enterprise_search"
  = render "filters"

  .row
    .small-12.columns
      .name-matches{"ng-show" => "nameMatchesFiltered.length > 0"}
        %h2
          = t :hubs_matches
        = render "hubs_table", enterprises: "nameMatches"

      .distance-matches{"ng-if" => "nameMatchesFiltered.length == 0 || distanceMatchesShown"}
        %h2{"ng-show" => "nameMatchesFiltered.length > 0 || query.length > 0"}
          = t :hubs_matches
          %span{"ng-show" => "nameMatchesFiltered.length > 0"} {{ nameMatchesFiltered[0].name }}...
          %span{"ng-hide" => "nameMatchesFiltered.length > 0"} {{ query }}...

        = render "hubs_table", enterprises: "distanceMatches"

      .show-distance-matches{"ng-show" => "nameMatchesFiltered.length > 0 && !distanceMatchesShown"}
        %a{href: "", "ng-click" => "showDistanceMatches()"}
          = t :hubs_distance_filter, location: "{{ nameMatchesFiltered[0].name }}"
  .more-controls
    %a.button{href: "", ng: {click: "showClosedShops()", show: "!show_closed"}}
      = t '.show_closed_shops'
    %a.button{href: "", ng: {click: "hideClosedShops()", show: "show_closed"}}
      = t '.hide_closed_shops'
    %a.button{href: main_app.map_path}= t '.show_on_map'<commit_msg>Fix flicker effect showing 3 buttons when clicking "Show Closed Shops" button<commit_after>#hubs.hubs{"ng-controller" => "EnterprisesCtrl", "ng-cloak" => true}
  .row
    .small-12.columns
      %h1{"scroll-after-load" => (spree_current_user ? true : nil)}
        = t :hubs_intro

  = render "shared/components/enterprise_search"
  = render "filters"

  .row
    .small-12.columns
      .name-matches{"ng-show" => "nameMatchesFiltered.length > 0"}
        %h2
          = t :hubs_matches
        = render "hubs_table", enterprises: "nameMatches"

      .distance-matches{"ng-if" => "nameMatchesFiltered.length == 0 || distanceMatchesShown"}
        %h2{"ng-show" => "nameMatchesFiltered.length > 0 || query.length > 0"}
          = t :hubs_matches
          %span{"ng-show" => "nameMatchesFiltered.length > 0"} {{ nameMatchesFiltered[0].name }}...
          %span{"ng-hide" => "nameMatchesFiltered.length > 0"} {{ query }}...

        = render "hubs_table", enterprises: "distanceMatches"

      .show-distance-matches{"ng-show" => "nameMatchesFiltered.length > 0 && !distanceMatchesShown"}
        %a{href: "", "ng-click" => "showDistanceMatches()"}
          = t :hubs_distance_filter, location: "{{ nameMatchesFiltered[0].name }}"
  .more-controls
    %div{ng: {if: "!show_closed", cloak: true}}
      %a.button{href: "", ng: {click: "showClosedShops()"}}
        = t '.show_closed_shops'
    %div{ng: {if: "show_closed", cloak: true}}
      %a.button{href: "", ng: {click: "hideClosedShops()"}}
        = t '.hide_closed_shops'
    %a.button{href: main_app.map_path}= t '.show_on_map'
{'fraction_non_alphanumeric': 0.17747216764898494, 'fraction_numerical': 0.010805500982318271, 'mean_word_length': 3.2196132596685083, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, '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': '1983469', 'n_tokens_mistral': 1088, 'n_tokens_neox': 1046, 'n_words': 182}