<commit_before>Template.settings.events = {
  'click input[type=submit]': function(e){
    e.preventDefault();
    if(!Meteor.user()) throw 'You must be logged in.';

    var title= $('#title').val();
    var theme = $('#theme').val();
    var footer_code=$("#footer_code");
    var analytics_code = $('#analytics_code').val();
    var tlkio_channel = $('#tlkio_channel').val();
    var prevSetting=Settings.find().fetch()[0];

    if(prevSetting){
      Settings.update(prevSetting._id,{
          $set: {
            title: title,<commit_msg>bugfix<commit_after>Template.settings.events = {
  'click input[type=submit]': function(e){
    e.preventDefault();
    if(!Meteor.user()) throw 'You must be logged in.';

    var title= $('#title').val();
    var theme = $('#theme').val();
    var footer_code=$("#footer_code").val();
    var analytics_code = $('#analytics_code').val();
    var tlkio_channel = $('#tlkio_channel').val();
    var prevSetting=Settings.find().fetch()[0];

    if(prevSetting){
      Settings.update(prevSetting._id,{
          $set: {
            title: title,
{'fraction_non_alphanumeric': 0.19595216191352346, 'fraction_numerical': 0.0018399264029438822, 'mean_word_length': 3.533333333333333, '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': '6246622', 'n_tokens_mistral': 342, 'n_tokens_neox': 331, 'n_words': 65}