<commit_before>// Startup Functions
Meteor.startup(function(){
  // Grab the config
  var config = JSON.parse(Assets.getText('config.json'));

  // Create the admin
  createAdmin(config.admin.username, config.admin.password);


  // Add Service Integrations
  addServiceIntegration('github', config.github.clientId, config.github.clientId);
  //addServiceIntegration('facebook', config.facebook.clientId, config.facebook.secret);
  //addServiceIntegration('google', config.google.clientId, config.google.secret);

});

function createAdmin(username, password){
  var user = Meteor.users.findOne({
    username: username
  });

  if (!user){
    Accounts.createUser({
      username: username,
      password: password,
      profile: {
        name: 'Admin'
      }<commit_msg>accidentally didn't add secret<commit_after>// Startup Functions
Meteor.startup(function(){
  // Grab the config
  var config = JSON.parse(Assets.getText('config.json'));

  // Create the admin
  createAdmin(config.admin.username, config.admin.password);


  // Add Service Integrations
  addServiceIntegration('github', config.github.clientId, config.github.secret);
  //addServiceIntegration('facebook', config.facebook.clientId, config.facebook.secret);
  //addServiceIntegration('google', config.google.clientId, config.google.secret);

});

function createAdmin(username, password){
  var user = Meteor.users.findOne({
    username: username
  });

  if (!user){
    Accounts.createUser({
      username: username,
      password: password,
      profile: {
        name: 'Admin'
      }
{'fraction_non_alphanumeric': 0.13448056086679414, 'fraction_numerical': 0.0, 'mean_word_length': 3.9683544303797467, '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': '3171398', 'n_tokens_mistral': 459, 'n_tokens_neox': 441, 'n_words': 93}