<commit_before>(function( $ ){
    $.fn.fillLabel = function(label){
        return this.each(function() {
            var $this = $(this);
            var value = $(label).text();
            value = value.replace(':','');
            value = $.trim(value);
            $this.val(value);
            $this.addClass('empty-field');
        });
    };

    $.fn.labelInside = function() {
    return $(this).each(function() {
      var $this = $(this);

      var label = $this.prev('.inline-label');
      if ($this.val() == '') {
          $this.fillLabel(label);
      }
      $(label).css('display', 'none');

      $this.focusin(function(e){
          e.preventDefault();
          if ($(e.currentTarget).hasClass('empty-field')) {
              $(e.currentTarget).removeClass('empty-field');
              $(e.currentTarget).val('');
          }
      });

      $this.focusout(function(e){
          e.preventDefault();
          if (!$(e.currentTarget).hasClass('empty-field') && $(e.currentTarget).val() == '') {
              var label = $(e.currentTarget).prev('.inline-label');
              $(e.currentTarget).fillLabel(label);
          }
      });
    });
  };

  $.fn.proposalOverview = function(title, url){
      return $(this).each(function(){
          var $this = $(this);
          $this.change(function(){
              var id = jQuery(this).val();
              if (id) {
                  url = url.replace('0',id) + '?ajax=true';
                  var offset = jQuery(this).offset();
                  $.get(url, function(data){
                      $(data).dialog({
                          width: 450,
                          position: [offset.left+100, offset.top-550],
                          title: title});
                  });
              }
          });
      });
  };

  $.fn.rowHelp = function(){
      return $(this).each(function(){
          var $this = $(this);
          $this.tooltip({
              bodyHandler: function() {
                  return $this.nextAll('.help_text').html();
                },
                delay: 0,
                showURL: false
          });
      });
  };
})( jQuery );<commit_msg>Fix proposal overview.<commit_after>(function( $ ){
    $.fn.fillLabel = function(label){
        return this.each(function() {
            var $this = $(this);
            var value = $(label).text();
            value = value.replace(':','');
            value = $.trim(value);
            $this.val(value);
            $this.addClass('empty-field');
        });
    };

    $.fn.labelInside = function() {
    return $(this).each(function() {
      var $this = $(this);

      var label = $this.prev('.inline-label');
      if ($this.val() == '') {
          $this.fillLabel(label);
      }
      $(label).css('display', 'none');

      $this.focusin(function(e){
          e.preventDefault();
          if ($(e.currentTarget).hasClass('empty-field')) {
              $(e.currentTarget).removeClass('empty-field');
              $(e.currentTarget).val('');
          }
      });

      $this.focusout(function(e){
          e.preventDefault();
          if (!$(e.currentTarget).hasClass('empty-field') && $(e.currentTarget).val() == '') {
              var label = $(e.currentTarget).prev('.inline-label');
              $(e.currentTarget).fillLabel(label);
          }
      });
    });
  };

  $.fn.proposalOverview = function(title, url){
      return $(this).each(function(){
          var $this = $(this);
          $this.change(function(){
              var id = jQuery(this).val();
              if (id) {
                  var get_url = url.replace('0',id) + '?ajax=true';
                  var offset = jQuery(this).offset();
                  $.get(get_url, function(data){
                      $(data).dialog({
                          width: 450,
                          position: [offset.left+100, offset.top-550],
                          title: title});
                  });
              }
          });
      });
  };

  $.fn.rowHelp = function(){
      return $(this).each(function(){
          var $this = $(this);
          $this.tooltip({
              bodyHandler: function() {
                  return $this.nextAll('.help_text').html();
                },
                delay: 0,
                showURL: false
          });
      });
  };
})( jQuery );
{'fraction_non_alphanumeric': 0.18392652123995407, 'fraction_numerical': 0.005051664753157291, 'mean_word_length': 1.4485666104553119, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6912074', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1169, 'n_words': 191}