<commit_before>require('dotenv').config();
var CronJob = require('cron').CronJob;
// var Trello = require("node-trello");
var tops = require('./trello-ops');
var async = require('async');

async.series([
  function(cb) {
    tops.init(false, // not dryRun mode
      function() {
        console.log("did tops.initBoards()");
        cb();
      });
  },
  function(cb) {
    var job = new CronJob({
      cronTime: '0 * * * * *',
      onTick: function() {
        /*
         * Runs every minute.
         */
         console.log("every minute");
         async.series([
           function(cb) {
             tops.maintenance(cb);
           },
           function(cb) {
             tops.commit(cb);
           },
         ])
      },
      start: false,
      timeZone: 'America/Los_Angeles'
    });
    job.start();

    var morningjob = new CronJob({
      cronTime: '30 0 4 * * *',
      onTick: function() {
        /*
         * Runs every day 4:00:30am.
         */
         console.log("every day 4am");
         async.series([
           function(cb) {
             tops.preparetoday(cb);
           },
           function(cb) {
             tops.commit(cb);
           },
         ])
      },
      start: false,
      timeZone: 'America/Los_Angeles'
    });
    morningjob.start();
  },
]);
<commit_msg>run cleanup at 22:11 just to start it off.<commit_after>require('dotenv').config();
var CronJob = require('cron').CronJob;
// var Trello = require("node-trello");
var tops = require('./trello-ops');
var async = require('async');

async.series([
  function(cb) {
    tops.init(false, // not dryRun mode
      function() {
        console.log("did tops.initBoards()");
        cb();
      });
  },
  function(cb) {
    var job = new CronJob({
      cronTime: '0 * * * * *',
      onTick: function() {
        /*
         * Runs every minute.
         */
         console.log("every minute");
         async.series([
           function(cb) {
             tops.maintenance(cb);
           },
           function(cb) {
             tops.commit(cb);
           },
         ])
      },
      start: false,
      timeZone: 'America/Los_Angeles'
    });
    job.start();

    var morningjob = new CronJob({
      cronTime: '0 11 22 * * *',
      onTick: function() {
        /*
         * Runs every day 4:00:30am.
         */
         console.log("every day 9:30:00pm");
         async.series([
           function(cb) {
             tops.preparetoday(cb);
           },
           function(cb) {
             tops.commit(cb);
           },
         ])
      },
      start: false,
      timeZone: 'America/Los_Angeles'
    });
    morningjob.start();
  },
]);

{'fraction_non_alphanumeric': 0.16092814371257486, 'fraction_numerical': 0.011601796407185628, 'mean_word_length': 1.53125, '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': '41857', 'n_tokens_mistral': 855, 'n_tokens_neox': 828, 'n_words': 156}