<commit_before>(function(){
var ViewWithPopover = extendWithPopover( Backbone.Factlink.PlainView );

window.FactView = ViewWithPopover.extend({
  tagName: "div",

  className: "fact-block",

  events: {
    "click .hide-from-channel": "removeFactFromChannel",
    "click li.delete": "destroyFact",

    "click .tab-control .supporting"     : "tabClick",
    "click .tab-control .weakening"      : "tabClick",
    "click .tab-control .add-to-channel" : "tabClick",

    "click a.more": "showCompleteDisplaystring",
    "click a.less": "hideCompleteDisplaystring"
  },

  template: "facts/_fact",

  partials: {
    fact_bubble: "facts/_fact_bubble",
    fact_wheel: "facts/_fact_wheel",
    interacting_users: "facts/_interacting_users"
  },

  interactingUserViews: [],

  popover: [
    {
      selector: ".top-right-arrow",
      popoverSelector: "ul.top-right"
    }
  ],

  showLines:3,

  initialize: function(opts) {
    this._currentTab = undefined;
    this.interactingUserViews = [];

    this.model.bind('destroy', this.close, this);
    this.model.bind('change', this.render, this);

    this.initFactRelationsViews();

    this.wheel = new Wheel(this.model.getFactWheel());
  },

  onRender: function() {

    this.$('.authority').tooltip();

    this.truncateText();

    if ( this.factWheelView ) {
      this.wheel.set(this.model.getFactWheel());
      this.$('.wheel').replaceWith(this.factWheelView.reRender().el);
    } else {
      this.factWheelView = new InteractiveWheelView({
        model: this.wheel,
        fact: this.model,
        el: this.$('.wheel')
      }).render();
    }
  },

  truncateText: function() {
      this.$('.body .text').trunk8({
      fill: ' <a class="more">(more)</a>',
      lines:this.showLines
    });
    self = this
    this.$('.body .text').resize(function(){
      self.$('.body .text').trunk8('update');
    });
  },

  remove: function() {
    this.$el.fadeOut('fast', function() {<commit_msg>better defaults: default to properly displayed (non-truncated) text<commit_after>(function(){
var ViewWithPopover = extendWithPopover( Backbone.Factlink.PlainView );

window.FactView = ViewWithPopover.extend({
  tagName: "div",

  className: "fact-block",

  events: {
    "click .hide-from-channel": "removeFactFromChannel",
    "click li.delete": "destroyFact",

    "click .tab-control .supporting"     : "tabClick",
    "click .tab-control .weakening"      : "tabClick",
    "click .tab-control .add-to-channel" : "tabClick",

    "click a.more": "showCompleteDisplaystring",
    "click a.less": "hideCompleteDisplaystring"
  },

  template: "facts/_fact",

  partials: {
    fact_bubble: "facts/_fact_bubble",
    fact_wheel: "facts/_fact_wheel",
    interacting_users: "facts/_interacting_users"
  },

  interactingUserViews: [],

  popover: [
    {
      selector: ".top-right-arrow",
      popoverSelector: "ul.top-right"
    }
  ],

  showLines:3,

  initialize: function(opts) {
    this._currentTab = undefined;
    this.interactingUserViews = [];

    this.model.bind('destroy', this.close, this);
    this.model.bind('change', this.render, this);

    this.initFactRelationsViews();

    this.wheel = new Wheel(this.model.getFactWheel());
  },

  onRender: function() {

    this.$('.authority').tooltip();

    this.truncateText();

    if ( this.factWheelView ) {
      this.wheel.set(this.model.getFactWheel());
      this.$('.wheel').replaceWith(this.factWheelView.reRender().el);
    } else {
      this.factWheelView = new InteractiveWheelView({
        model: this.wheel,
        fact: this.model,
        el: this.$('.wheel')
      }).render();
    }
  },

  truncateText: function() {
    self = this;
    this.$el.resize(function(){
      self.$('.body .text').trunk8({
        fill: ' <a class="more">(more)</a>',
        lines:this.showLines
      });
    });
  },

  remove: function() {
    this.$el.fadeOut('fast', function() {
{'fraction_non_alphanumeric': 0.17067553735926305, 'fraction_numerical': 0.00127942681678608, 'mean_word_length': 3.054979253112033, 'pattern_counts': {'":': 8, '<': 7, '<?xml version=': 0, '>': 7, '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': '111798', 'n_tokens_mistral': 1323, 'n_tokens_neox': 1254, 'n_words': 212}