<commit_before>if (Meteor.isServer) {
  Meteor.startup(function () {
    // code to run on server at startup

    // refresh the commit database every 30 seconds
    Meteor.setInterval(function() {
      Meteor.call("refreshCommitsAllRepos");
    }, 60*1000);

    // show check for new announcements to show every 30 seconds
    Meteor.setInterval(function() {
      Meteor.call("showAnnouncements");
    }, 10*1000);

    // assign free mentors to hackers in the queue every 60 seconds
    Meteor.setInterval(function() {
      Meteor.call("assignMentors");
    }, 60*1000);


    Meteor.call("checkMentorResponses");

    Meteor.setInterval(function() {
      Meteor.call("checkMentorResponses");
    }, 60*1000);

    // create the admin account with a default password
    if (Meteor.users.find( {username: ***REMOVED***} ).fetch().length == 0) {
      console.log(">> admin account created");
      Accounts.createUser({
        "username": config.admin_username,
        "password": <PASSWORD>,
        "profile": {
          "name": "Administrator"
        }
      });

      // give the admin admin rights
      var adminUser = Meteor.users.find( {username: 'admin'} ).fetch()[0];
      Roles.addUsersToRoles(adminUser, ["super",***REMOVED***,"flagger","mentor","announcer","manager"]);
    }


    // Prevent non-authorized users from creating new users:
    Accounts.validateNewUser(function (user) {
      var loggedInUser = Meteor.user();

      if (Roles.userIsInRole(loggedInUser, 'admin')) {
        return true;
      }

      throw new Meteor.Error(403, "Not authorized to create new users");
    });

    // publish the databases to all clients
    Meteor.publish("CommitMessages", function() { return CommitMessages.find(); });
    Meteor.publish("RepositoryList", function() { return RepositoryList.find(); });
    Meteor.publish("Announcements", function() {  return Announcements.find(); });<commit_msg>removed more references to sensative data<commit_after>if (Meteor.isServer) {
  Meteor.startup(function () {
    // code to run on server at startup

    // refresh the commit database every 30 seconds
    Meteor.setInterval(function() {
      Meteor.call("refreshCommitsAllRepos");
    }, 60*1000);

    // show check for new announcements to show every 30 seconds
    Meteor.setInterval(function() {
      Meteor.call("showAnnouncements");
    }, 10*1000);

    // assign free mentors to hackers in the queue every 60 seconds
    Meteor.setInterval(function() {
      Meteor.call("assignMentors");
    }, 60*1000);


    Meteor.call("checkMentorResponses");

    Meteor.setInterval(function() {
      Meteor.call("checkMentorResponses");
    }, 60*1000);

    // create the admin account with a default password
    if (Meteor.users.find( {username: config.admin_username} ).fetch().length == 0) {
      console.log(">> admin account created");
      Accounts.createUser({
        "username": config.admin_username,
        "password": <PASSWORD>,
        "profile": {
          "name": "Administrator"
        }
      });

      // give the admin admin rights
      var adminUser = Meteor.users.find( {username: config.admin_username} ).fetch()[0];
      Roles.addUsersToRoles(adminUser, ["super",***REMOVED***,"flagger","mentor","announcer","manager"]);
    }


    // Prevent non-authorized users from creating new users:
    Accounts.validateNewUser(function (user) {
      var loggedInUser = Meteor.user();

      if (Roles.userIsInRole(loggedInUser, 'admin')) {
        return true;
      }

      throw new Meteor.Error(403, "Not authorized to create new users");
    });

    // publish the databases to all clients
    Meteor.publish("CommitMessages", function() { return CommitMessages.find(); });
    Meteor.publish("RepositoryList", function() { return RepositoryList.find(); });
    Meteor.publish("Announcements", function() {  return Announcements.find(); });
{'fraction_non_alphanumeric': 0.14095335725269093, 'fraction_numerical': 0.017939518195797026, 'mean_word_length': 3.196774193548387, 'pattern_counts': {'":': 8, '<': 5, '<?xml version=': 0, '>': 9, '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': '758552', 'n_tokens_mistral': 1238, 'n_tokens_neox': 1112, 'n_words': 273}