<commit_before>- content_for :header
  = stylesheet_link_tag 'umakadata/search'
  = javascript_include_tag 'umakadata/search'

.row
  .col-md-12.page-element
    h3.page-title-header Endpoint Search

    div.page-title-body
      | You can search endpoints using REST API.&nbsp;
      | Please see&nbsp;
      a href="/api/specifications" this document
      | &nbsp;for more details.

    div.panel-group#accordion
      div.panel.panel-default
        div.panel-heading
          h4.panel-title.accordion-toggle
            a[data-toggle="collapse" data-parent="#accordion" href="#collapse"] Search Conditions
        div.panel-collapse.collapse.in#collapse
          div#panel-body
            = form_tag({:action => :search, :controller => :endpoints}, {:id => 'search', :class => 'page-title-body'})
              .form-group.row
                label.col-xs-3 Endpoint name or URL
                .form-inline.col-xs-9
                  = text_field_tag :name, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Resource Type
                .form-inline.col-xs-6
                  label.radio-inline
                    input[name="element_type" type="radio" value="subject" checked="CHECKED"]
                    | Subject
                  label.radio-inline
                    input[name="element_type" type="radio" value="object"]
                    | Object
              .form-group.row
                label.col-xs-3 Resource Contained URI
                .form-inline.col-xs-9
                  = text_field_tag :prefix_filter_uri, "", :class =>'form-control'
              .form-group.row
                label.col-xs-3 For the day of
                .form-inline.col-xs-9
                  = text_field_tag :date, "#{@date.strftime('%d-%m-%Y')}", :class => 'form-control form-datepicker'
                  javascript:
                    $('.form-datepicker').datepicker({
                      autoclose: true,
                      startDate: "#{@start_date}",
                      endDate: new Date(),
                      format: 'dd-mm-yyyy',
                      todayHighlight: true
                    });
              .form-group.row
                label.col-xs-3 Rank (A, B, C, D, E)
                .form-inline.col-xs-9
                  = text_field_tag :rank, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Score (0-100)
                .form-inline.col-xs-9
                  = text_field_tag :score_lower, "", :class => 'form-control'
                  span ~
                  = text_field_tag :score_upper, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Alive Rate (0-100)
                .form-inline.col-xs-9
                  = text_field_tag :alive_rate_lower, "", :class => 'form-control'
                  span ~
                  = text_field_tag :alive_rate_upper, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Cool URI Rate (0-100)
                .form-inline.col-xs-9
                  = text_field_tag :cool_uri_rate_lower, "", :class => 'form-control'
                  span ~
                  = text_field_tag :cool_uri_rate_upper, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Ontology (0-100)
                .form-inline.col-xs-9
                  = text_field_tag :ontology_lower, "", :class => 'form-control'
                  span ~
                  = text_field_tag :ontology_upper, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Metadata Coverage (0-100)
                .form-inline.col-xs-9
                  = text_field_tag :metadata_lower, "", :class => 'form-control'
                  span ~
                  = text_field_tag :metadata_upper, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Attributes
                .col-xs-9
                  .form-group.row
                    .form-inline.col-xs-3
                      label.checkbox-inline
                        input[name="service_description" type="checkbox"] Service Description
                    .form-inline.col-xs-3
                      label.checkbox-inline
                        input[name="void" type="checkbox"] VoID
                    .form-inline.col-xs-3
                      label.checkbox-inline
                        input[name="content_negtiation" type="checkbox"] Content Negotiation
                  .form-group.row
                    .form-inline.col-xs-3
                      label.checkbox-inline
                        input[name="html" type="checkbox"] HTML Data Format
                    .form-inline.col-xs-3
                      label.checkbox-inline
                        input[name="turtle" type="checkbox"] Turtle Data Format
                    .form-inline.col-xs-3
                      label.checkbox-inline<commit_msg>Change dash and tilde to en dash<commit_after>- content_for :header
  = stylesheet_link_tag 'umakadata/search'
  = javascript_include_tag 'umakadata/search'

.row
  .col-md-12.page-element
    h3.page-title-header Endpoint Search

    div.page-title-body
      | You can search endpoints using REST API.&nbsp;
      | Please see&nbsp;
      a href="/api/specifications" this document
      | &nbsp;for more details.

    div.panel-group#accordion
      div.panel.panel-default
        div.panel-heading
          h4.panel-title.accordion-toggle
            a[data-toggle="collapse" data-parent="#accordion" href="#collapse"] Search Conditions
        div.panel-collapse.collapse.in#collapse
          div#panel-body
            = form_tag({:action => :search, :controller => :endpoints}, {:id => 'search', :class => 'page-title-body'})
              .form-group.row
                label.col-xs-3 Endpoint name or URL
                .form-inline.col-xs-9
                  = text_field_tag :name, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Resource Type
                .form-inline.col-xs-6
                  label.radio-inline
                    input[name="element_type" type="radio" value="subject" checked="CHECKED"]
                    | Subject
                  label.radio-inline
                    input[name="element_type" type="radio" value="object"]
                    | Object
              .form-group.row
                label.col-xs-3 Resource Contained URI
                .form-inline.col-xs-9
                  = text_field_tag :prefix_filter_uri, "", :class =>'form-control'
              .form-group.row
                label.col-xs-3 For the day of
                .form-inline.col-xs-9
                  = text_field_tag :date, "#{@date.strftime('%d-%m-%Y')}", :class => 'form-control form-datepicker'
                  javascript:
                    $('.form-datepicker').datepicker({
                      autoclose: true,
                      startDate: "#{@start_date}",
                      endDate: new Date(),
                      format: 'dd-mm-yyyy',
                      todayHighlight: true
                    });
              .form-group.row
                label.col-xs-3 Rank (A, B, C, D, E)
                .form-inline.col-xs-9
                  = text_field_tag :rank, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Score (0–100)
                .form-inline.col-xs-9
                  = text_field_tag :score_lower, "", :class => 'form-control'
                  span –
                  = text_field_tag :score_upper, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Alive Rate (0–100)
                .form-inline.col-xs-9
                  = text_field_tag :alive_rate_lower, "", :class => 'form-control'
                  span –
                  = text_field_tag :alive_rate_upper, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Cool URI Rate (0–100)
                .form-inline.col-xs-9
                  = text_field_tag :cool_uri_rate_lower, "", :class => 'form-control'
                  span –
                  = text_field_tag :cool_uri_rate_upper, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Ontology (0–100)
                .form-inline.col-xs-9
                  = text_field_tag :ontology_lower, "", :class => 'form-control'
                  span –
                  = text_field_tag :ontology_upper, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Metadata Coverage (0–100)
                .form-inline.col-xs-9
                  = text_field_tag :metadata_lower, "", :class => 'form-control'
                  span –
                  = text_field_tag :metadata_upper, "", :class => 'form-control'
              .form-group.row
                label.col-xs-3 Attributes
                .col-xs-9
                  .form-group.row
                    .form-inline.col-xs-3
                      label.checkbox-inline
                        input[name="service_description" type="checkbox"] Service Description
                    .form-inline.col-xs-3
                      label.checkbox-inline
                        input[name="void" type="checkbox"] VoID
                    .form-inline.col-xs-3
                      label.checkbox-inline
                        input[name="content_negtiation" type="checkbox"] Content Negotiation
                  .form-group.row
                    .form-inline.col-xs-3
                      label.checkbox-inline
                        input[name="html" type="checkbox"] HTML Data Format
                    .form-inline.col-xs-3
                      label.checkbox-inline
                        input[name="turtle" type="checkbox"] Turtle Data Format
                    .form-inline.col-xs-3
                      label.checkbox-inline
{'fraction_non_alphanumeric': 0.117130599620872, 'fraction_numerical': 0.010376134889753566, 'mean_word_length': 1.294871794871795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 39, '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': '963756', 'n_tokens_mistral': 2872, 'n_tokens_neox': 2651, 'n_words': 484}