<commit_before>- content_for(:head) do
  = stylesheet_link_tag    'jquery.handsontable.full', media: 'all'
  = javascript_include_tag 'jquery.handsontable.full'
%h1 Level Completions
%h2
  From
  %input#dateFrom{style: 'position: relative; z-index: 102;'}
  To
  %input#dateTo{style: 'position: relative; z-index: 102;'}
  Filter
  %input#filter
%a#dateUpdate{style: 'display: none'} Update
%h2
  #samplingMessage{style: 'color: red; display: none'} CAUTION: Data is sampled, numbers are not scaled.
%h2 #{link_to 'Download CSV', {:format => :csv }}
#completionTable
:css
  .htNumeric { font-family: monospace; }
:javascript
  var basePage = '#{ level_completions_path }';
  var baseFilter = '#{ params[:filter]}';
  $(function() {
    var filter = $('#filter');
    var from = $('#dateFrom');
    var to = $('#dateTo');
    filter.val(baseFilter);
    from.datepicker({ dateFormat: 'yy-mm-dd' });
    to.datepicker({ dateFormat: 'yy-mm-dd' });
    from.datepicker('setDate', '#{ @start_date }');
    to.datepicker('setDate', '#{ @end_date }');
    filter.change(function() {
      updateDate();
    });
    from.change(function() {
      updateDate();
    });
    to.change(function() {
      updateDate();<commit_msg>Modifies the warning message associated with sampled data.<commit_after>- content_for(:head) do
  = stylesheet_link_tag    'jquery.handsontable.full', media: 'all'
  = javascript_include_tag 'jquery.handsontable.full'
%h1 Level Completions
%h2
  From
  %input#dateFrom{style: 'position: relative; z-index: 102;'}
  To
  %input#dateTo{style: 'position: relative; z-index: 102;'}
  Filter
  %input#filter
%a#dateUpdate{style: 'display: none'} Update
%h2
  #samplingMessage{style: 'color: red; display: none'} CAUTION: Data is sampled.
%h2 #{link_to 'Download CSV', {:format => :csv }}
#completionTable
:css
  .htNumeric { font-family: monospace; }
:javascript
  var basePage = '#{ level_completions_path }';
  var baseFilter = '#{ params[:filter]}';
  $(function() {
    var filter = $('#filter');
    var from = $('#dateFrom');
    var to = $('#dateTo');
    filter.val(baseFilter);
    from.datepicker({ dateFormat: 'yy-mm-dd' });
    to.datepicker({ dateFormat: 'yy-mm-dd' });
    from.datepicker('setDate', '#{ @start_date }');
    to.datepicker('setDate', '#{ @end_date }');
    filter.change(function() {
      updateDate();
    });
    from.change(function() {
      updateDate();
    });
    to.change(function() {
      updateDate();
{'fraction_non_alphanumeric': 0.17893452623017486, 'fraction_numerical': 0.008133387555917039, 'mean_word_length': 4.1572327044025155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5559674', 'n_tokens_mistral': 860, 'n_tokens_neox': 811, 'n_words': 182}