<commit_before>#point_similarity
  = form_for [@option, @comparison] do |f|
    
    %h2
      How similar are these points?
      
    
    
    #p1.point_to_be_compared
      = @p1.nutshell
      = @p1.text
    
    #p2.point_to_be_compared
      = @p2.nutshell
      = @p2.text
    
    .clear
    
    = f.hidden_field :value, :id => 'similarity_val'
    = f.hidden_field :p1_id, :value => @p1.id
    = f.hidden_field :p2_id, :value => @p2.id
    
    .slider_wrapper
      
      
      .slider_footer
        .left
          completely unrelated &#8592;
        
        #similarity_slider
        
        .right
          &#8594; basically the same
        .clear
        
    .submit_buttons
      .left
        = submit_tag "<< Prev"
      .right
        = submit_tag "Next >>"
      .clear
      
    .progress
      #{@total_compared}/#{@num_points} comparisons completed for #{@option.designator}
      
:javascript
  $j(function() {
    $j( "#similarity_slider" ).slider({
      value:@init_val,
      min: -2,
      max: 2,
      step: 1,
      slide: function( event, ui ) {
        $j( "#similarity_val" ).val( ui.value );
      }
    });
    $j( "#similarity_val" ).val( $j( "#similarity_slider" ).slider( "value" ) );
  });<commit_msg>fixing init val on new<commit_after>#point_similarity
  = form_for [@option, @comparison] do |f|
    
    %h2
      How similar are these points?
      
    
    
    #p1.point_to_be_compared
      = @p1.nutshell
      = @p1.text
    
    #p2.point_to_be_compared
      = @p2.nutshell
      = @p2.text
    
    .clear
    
    = f.hidden_field :value, :id => 'similarity_val'
    = f.hidden_field :p1_id, :value => @p1.id
    = f.hidden_field :p2_id, :value => @p2.id
    
    .slider_wrapper
      
      
      .slider_footer
        .left
          completely unrelated &#8592;
        
        #similarity_slider
        
        .right
          &#8594; basically the same
        .clear
        
    .submit_buttons
      .left
        = submit_tag "<< Prev"
      .right
        = submit_tag "Next >>"
      .clear
      
    .progress
      #{@total_compared}/#{@num_points} comparisons completed for #{@option.designator}
      
:javascript
  $j(function() {
    $j( "#similarity_slider" ).slider({
      value:#{@init_val},
      min: -2,
      max: 2,
      step: 1,
      slide: function( event, ui ) {
        $j( "#similarity_val" ).val( ui.value );
      }
    });
    $j( "#similarity_val" ).val( $j( "#similarity_slider" ).slider( "value" ) );
  });
{'fraction_non_alphanumeric': 0.13452380952380952, 'fraction_numerical': 0.01746031746031746, 'mean_word_length': 1.6962566844919786, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '820036', 'n_tokens_mistral': 925, 'n_tokens_neox': 890, 'n_words': 174}