<commit_before>'use strict';


module.exports.up = async function (N) {
  let global_store = N.settings.getStore('global');

  if (!global_store) throw 'Settings store `global` is not registered.';

  // disable attachments in comments (enabled by default)
  await global_store.set({ blog_comments_markup_attachment: { value: false } });

  // enable cut in blog entries (disabled by default)
  await global_store.set({ blog_entries_markup_cut: { value: true } });
};<commit_msg>Disable headings for everything except blogs<commit_after>'use strict';


module.exports.up = async function (N) {
  let global_store = N.settings.getStore('global');

  if (!global_store) throw 'Settings store `global` is not registered.';

  // disable attachments in comments (enabled by default)
  await global_store.set({ blog_comments_markup_attachment: { value: false } });

  // enable cut and heading in blog entries (disabled by default)
  await global_store.set({ blog_entries_markup_cut: { value: true } });
  await global_store.set({ blog_entries_markup_heading: { value: true } });
};
{'fraction_non_alphanumeric': 0.11884865366759517, 'fraction_numerical': 0.0, 'mean_word_length': 4.890710382513661, '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': '3308786', 'n_tokens_mistral': 315, 'n_tokens_neox': 309, 'n_words': 98}