<commit_before>{div, a, table, thead, tbody, tr, th, td, button} = React.DOM

window.StandardsTableClass = React.createClass

  PAGE_SIZE:    10

  displayName:  "StandardsTableClass"

  paginateUp:     ->
    start = @props.start

    if start + @PAGE_SIZE < (@props.count)
      window.searchASN(start + @PAGE_SIZE)

  paginateDown:    ->
    start = @props.start

    if start - @PAGE_SIZE > -1
      window.searchASN(start - @PAGE_SIZE)


  render: ->

    (table {className: 'asn_results_table'},

      (tbody {},

        end = (@props.start + @PAGE_SIZE)
        if end > @props.count
          end = @props.count

        (tr {},
          (td {colSpan: 5}, 
            "Total results " + @props.count + ". "
        
            if @props.start - @PAGE_SIZE > -1
              (a {className: "asn_results_pagination_arrows", onClick: @paginateDown}, "<<")
            else
              "<<"

            " "
            "Showing " + (@props.start + 1) + " - " + end
            " "

            if @props.start + @PAGE_SIZE < (@props.count) 
              (a {className: "asn_results_pagination_arrows", onClick: @paginateUp}, ">>")
            else
               ">>"
          )
        )


        (tr {},
          (th {className: 'asn_results_th'}, "Type")
          (th {className: 'asn_results_th'}, "Description")
          (th {className: 'asn_results_th'}, "Label")
          (th {className: 'asn_results_th'}, "Notation")
          (th {className: 'asn_results_th'}, "Action")
        )
<commit_msg>Do not show pagination for the applied standards table.<commit_after>{div, a, table, thead, tbody, tr, th, td, button} = React.DOM

window.StandardsTableClass = React.createClass

  PAGE_SIZE:    10

  displayName:  "StandardsTableClass"

  paginateUp:     ->
    start = @props.start

    if start + @PAGE_SIZE < (@props.count)
      window.searchASN(start + @PAGE_SIZE)

  paginateDown:    ->
    start = @props.start

    if start - @PAGE_SIZE > -1
      window.searchASN(start - @PAGE_SIZE)


  render: ->

    (table {className: 'asn_results_table'},

      (tbody {},

        if @props.count

          end = (@props.start + @PAGE_SIZE)
          if end > @props.count
            end = @props.count

          (tr {},
            (td {colSpan: 5}, 
              "Total results " + @props.count + ". "
          
              if @props.start - @PAGE_SIZE > -1
                (a {className: "asn_results_pagination_arrows", onClick: @paginateDown}, "<<")
              else
                "<<"

              " "
              "Showing " + (@props.start + 1) + " - " + end
              " "

              if @props.start + @PAGE_SIZE < (@props.count) 
                (a {className: "asn_results_pagination_arrows", onClick: @paginateUp}, ">>")
              else
                 ">>"
            )
          )


        (tr {},
          (th {className: 'asn_results_th'}, "Type")
          (th {className: 'asn_results_th'}, "Description")
          (th {className: 'asn_results_th'}, "Label")
          (th {className: 'asn_results_th'}, "Notation")
          (th {className: 'asn_results_th'}, "Action")
        )

{'fraction_non_alphanumeric': 0.14494132572153504, 'fraction_numerical': 0.003805899143672693, 'mean_word_length': 1.756993006993007, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 23, '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': '5107936', 'n_tokens_mistral': 1027, 'n_tokens_neox': 974, 'n_words': 208}