<commit_before>var popup_item_id = 0;
var popup_item_type = '';
var is_owner = false;
var permissions = {
  can_position_update: false,
  can_edit_notes: false
};
var last_data;
var access_results;
var panel_offset;
var panel_width;
var min_tick_width = 10;
var item_offset_top;
var right_offset;

$.noConflict();

jQuery.extend({
  classType: function() {
    return jQuery('body').attr('id').replace(/^b/, '');
  },
  rootPath: function(){
    return '/';
  },
  mustache: function(template, data, partial, stream) {
    if(Mustache && template && data) {
      return Mustache.to_html(template, data, partial, stream);
    }
  },
  observeDefaultPrintListener: function() {
    if(jQuery.classType() != 'collages') {
      jQuery('#fixed_print').click(function(e) {
        var url = jQuery(this).attr('href');
        jQuery(this).attr('href', url + '#fontface=' + jQuery('#fontface a.active').data('value') + '-fontsize=' + jQuery('#fontsize a.active').data('value')); 
      });
    }
  },
  adjustTooltipPosition: function() {
    if(jQuery('#cancel-annotation').size()) {
      var el = jQuery('#' + jQuery('#cancel-annotation').data('id'));
      el.find('a.annotation_tip').tipsy("hide");
      el.find('a.annotation_tip').tipsy("show");<commit_msg>JS fxn<commit_after>var popup_item_id = 0;
var popup_item_type = '';
var is_owner = false;
var permissions = {
  can_position_update: false,
  can_edit_notes: false
};
var last_data;
var access_results;
var panel_offset;
var panel_width;
var min_tick_width = 10;
var item_offset_top;
var right_offset;

var scife_fn_clicked = function() {
};

$.noConflict();

jQuery.extend({
  classType: function() {
    return jQuery('body').attr('id').replace(/^b/, '');
  },
  rootPath: function(){
    return '/';
  },
  mustache: function(template, data, partial, stream) {
    if(Mustache && template && data) {
      return Mustache.to_html(template, data, partial, stream);
    }
  },
  observeDefaultPrintListener: function() {
    if(jQuery.classType() != 'collages') {
      jQuery('#fixed_print').click(function(e) {
        var url = jQuery(this).attr('href');
        jQuery(this).attr('href', url + '#fontface=' + jQuery('#fontface a.active').data('value') + '-fontsize=' + jQuery('#fontsize a.active').data('value')); 
      });
    }
  },
  adjustTooltipPosition: function() {
    if(jQuery('#cancel-annotation').size()) {
      var el = jQuery('#' + jQuery('#cancel-annotation').data('id'));
      el.find('a.annotation_tip').tipsy("hide");
      el.find('a.annotation_tip').tipsy("show");
{'fraction_non_alphanumeric': 0.1858094864758918, 'fraction_numerical': 0.002352018816150529, 'mean_word_length': 4.176470588235294, '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': '6240632', 'n_tokens_mistral': 838, 'n_tokens_neox': 827, 'n_words': 155}