<commit_before>= javascript_include_tag 'jquery.validate'
= javascript_include_tag 'umakadata/search'
= stylesheet_link_tag    'umakadata/search'

h1 Endpoint Search

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

hr

= form_tag :controller => :endpoints, :action => :search
  .form-inline.row
    label.col-xs-3 Name or URL
    = text_field_tag :name, "", :class => 'form-control'
  .form-inline.row
    label.col-xs-3 Prefix
    = text_field_tag :prefix, "", :class => 'form-control'
  .form-inline.row
    label.col-xs-3 URI
    .form-group
      label.radio-inline
        input[name="element_type" type="radio" value="subject"]
        | Subject
      label.radio-inline
        input[name="element_type" type="radio" value="object"]
        | Object
  .form-inline.row
    label.col-xs-3
    = text_field_tag :prefix_filter_uri, "", :class =>'form-control form-inline'
  .form-inline.row
    label.col-xs-3 Score (0-100)
    = text_field_tag :score_lower, "", :class => 'form-control form-inline'
    span ~
    = text_field_tag :score_upper, "", :class => 'form-control form-inline'
  .form-inline.row
    label.col-xs-3 Alive Rate (0-100)
    = text_field_tag :alive_rate_lower, "", :class => 'form-control form-inline'
    span ~
    = text_field_tag :alive_rate_upper, "", :class => 'form-control form-inline'
  .form-inline.row
    label.col-xs-3 Rank (A,B,C,D,E)
    = text_field_tag :rank, "", :class => 'form-control'
  .form-inline.row
    label.col-xs-3 Cool URI Rate (0-100)
    = text_field_tag :cool_uri_rate_lower, "", :class => 'form-control form-inline'
    span ~
    = text_field_tag :cool_uri_rate_upper, "", :class => 'form-control form-inline'
  .form-inline.row
    label.col-xs-3 Ontology (0-100)
    = text_field_tag :ontology_lower, "", :class => 'form-control form-inline'
    span ~
    = text_field_tag :ontology_upper, "", :class => 'form-control form-inline'
  .form-inline.row
    label.col-xs-3 Metadata Coverage (0-100)
    = text_field_tag :metadata_lower, "", :class => 'form-control form-inline'
    span ~
    = text_field_tag :metadata_upper, "", :class => 'form-control form-inline'
  .form-inline.row
    label.col-xs-3 Vocabulary (0-100)
    = text_field_tag :vocabulary_lower, "", :class => 'form-control form-inline'
    span ~
    = text_field_tag :vocabulary_upper, "", :class => 'form-control form-inline'<commit_msg>Rearrange the look with form-group<commit_after>= javascript_include_tag 'jquery.validate'
= javascript_include_tag 'umakadata/search'
= stylesheet_link_tag    'umakadata/search'

h1 Endpoint Search

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

hr

= form_tag :controller => :endpoints, :action => :search
  .form-inline.form-group.row
    label.col-xs-3 Name or URL
    = text_field_tag :name, "", :class => 'form-control'
  .form-inline.form-group.row
    label.col-xs-3 Prefix
    = text_field_tag :prefix, "", :class => 'form-control'
  .form-inline.form-group.row
    label.col-xs-3 URI
    .form-group
      label.radio-inline
        input[name="element_type" type="radio" value="subject"]
        | Subject
      label.radio-inline
        input[name="element_type" type="radio" value="object"]
        | Object
  .form-inline.form-group.row
    label.col-xs-3
    = text_field_tag :prefix_filter_uri, "", :class =>'form-control form-inline'
  .form-inline.form-group.row
    label.col-xs-3 Score (0-100)
    = text_field_tag :score_lower, "", :class => 'form-control form-inline'
    span ~
    = text_field_tag :score_upper, "", :class => 'form-control form-inline'
  .form-inline.form-group.row
    label.col-xs-3 Alive Rate (0-100)
    = text_field_tag :alive_rate_lower, "", :class => 'form-control form-inline'
    span ~
    = text_field_tag :alive_rate_upper, "", :class => 'form-control form-inline'
  .form-inline.form-group.row
    label.col-xs-3 Rank (A,B,C,D,E)
    = text_field_tag :rank, "", :class => 'form-control'
  .form-inline.form-group.row
    label.col-xs-3 Cool URI Rate (0-100)
    = text_field_tag :cool_uri_rate_lower, "", :class => 'form-control form-inline'
    span ~
    = text_field_tag :cool_uri_rate_upper, "", :class => 'form-control form-inline'
  .form-inline.form-group.row
    label.col-xs-3 Ontology (0-100)
    = text_field_tag :ontology_lower, "", :class => 'form-control form-inline'
    span ~
    = text_field_tag :ontology_upper, "", :class => 'form-control form-inline'
  .form-inline.form-group.row
    label.col-xs-3 Metadata Coverage (0-100)
    = text_field_tag :metadata_lower, "", :class => 'form-control form-inline'
    span ~
    = text_field_tag :metadata_upper, "", :class => 'form-control form-inline'
  .form-inline.form-group.row
    label.col-xs-3 Vocabulary (0-100)
    = text_field_tag :vocabulary_lower, "", :class => 'form-control form-inline'
    span ~
    = text_field_tag :vocabulary_upper, "", :class => 'form-control form-inline'
{'fraction_non_alphanumeric': 0.150374458021285, 'fraction_numerical': 0.014189988175009854, 'mean_word_length': 3.3825561312607944, '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': '6527798', 'n_tokens_mistral': 1825, 'n_tokens_neox': 1782, 'n_words': 347}