<commit_before>Backbone.Factlink ||= {}

Backbone.Factlink.Trunk8MoreLessMixin =
  trunk8Init: (numberOfLines, contentSelector, lessSelector) ->
    @_trunk8Lines = numberOfLines
    @_trunk8ContentSelector = contentSelector
    @_trunk8LessSelector = lessSelector

    @on 'render', @trunk8Render, @

    @$el.delegate 'a.trunk8-more', 'click', => @trunk8Show()
    @$el.delegate @_trunk8LessSelector, 'click', => @trunk8Hide()

  trunk8Render: ->
    sometimeWhen(<commit_msg>pass in the event, so we can call stopPropagation<commit_after>Backbone.Factlink ||= {}

Backbone.Factlink.Trunk8MoreLessMixin =
  trunk8Init: (numberOfLines, contentSelector, lessSelector) ->
    @_trunk8Lines = numberOfLines
    @_trunk8ContentSelector = contentSelector
    @_trunk8LessSelector = lessSelector

    @on 'render', @trunk8Render, @

    @$el.delegate 'a.trunk8-more', 'click', (e) => @trunk8Show(e)
    @$el.delegate @_trunk8LessSelector, 'click', (e) => @trunk8Hide(e)

  trunk8Render: ->
    sometimeWhen(
{'fraction_non_alphanumeric': 0.1347305389221557, 'fraction_numerical': 0.021956087824351298, 'mean_word_length': 4.8654970760233915, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5828129', 'n_tokens_mistral': 354, 'n_tokens_neox': 355, 'n_words': 59}