<commit_before>_ = require 'underscore'
Backbone = require 'backbone'
User = require '../../../../models/user.coffee'
{ openErrorModal } = require '../../../../components/error/client.coffee'
sd = require('sharify').data

module.exports = class EditHeader extends Backbone.View

  initialize: (options) ->
    { @article } = options
    @finished = false
    @user = new User sd.USER
    @article.on 'change', @saving
    @article.on 'change', @toggleCheckmarks<commit_msg>dont trigger save on change from header (uses content instead)<commit_after>_ = require 'underscore'
Backbone = require 'backbone'
User = require '../../../../models/user.coffee'
{ openErrorModal } = require '../../../../components/error/client.coffee'
sd = require('sharify').data

module.exports = class EditHeader extends Backbone.View

  initialize: (options) ->
    { @article } = options
    @finished = false
    @user = new User sd.USER
    unless sd.EDIT_2
      @article.on 'change', @saving
    @article.on 'change', @toggleCheckmarks
{'fraction_non_alphanumeric': 0.16208251473477406, 'fraction_numerical': 0.0009823182711198428, 'mean_word_length': 3.3361702127659574, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2227788', 'n_tokens_mistral': 303, 'n_tokens_neox': 295, 'n_words': 80}