<commit_before>const each = require("../each/blog");
const ensure = require("helper/ensure");
const Blog = require("models/blog");

each(
  (user, blog, next) => {
    if (!blog.flags) {
      blog.flags = {
        google_drive_beta: false,
      };
    }

    if (blog.new_dashboard) delete blog.new_dashboard;
    if (blog.new_markdown_renderer) delete blog.new_markdown_renderer;
    if (blog.dateDisplay) delete blog.dateDisplay;
    if (blog.hideDates) delete blog.hideDates;

    ensure(blog, Blog.scheme.TYPE, true);
    Blog.set(blog.id, blog, next);
  },
  (err) => {
    if (err) throw err;<commit_msg>Tweaks script<commit_after>const each = require("../each/blog");
const ensure = require("helper/ensure");
const Blog = require("models/blog");

each(
  (user, blog, next) => {
    if (!blog.flags) {
      blog.flags = {
        google_drive_beta: false,
      };
    }

    if (blog.redirectSubdomain === undefined) {
      blog.redirectSubdomain = false;
    }
    
    if (blog.new_dashboard) delete blog.new_dashboard;
    if (blog.new_markdown_renderer) delete blog.new_markdown_renderer;
    if (blog.dateDisplay) delete blog.dateDisplay;
    if (blog.hideDates) delete blog.hideDates;

    ensure(blog, Blog.scheme.TYPE, true);
    Blog.set(blog.id, blog, next);
  },
  (err) => {
    if (err) throw err;
{'fraction_non_alphanumeric': 0.1473922902494331, 'fraction_numerical': 0.0, 'mean_word_length': 3.189873417721519, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6632496', 'n_tokens_mistral': 444, 'n_tokens_neox': 442, 'n_words': 95}