<commit_before>const exec = require('child_process').exec
const assert = require('assert')

module.exports = {
  Init: gitInit,
  Push: gitPush
}

// initialize a git repo
function gitInit () {
  var initGit = [
    'git init --quiet',
    'git add --all',
    'git commit -m "initial commit"'
  ]
  exec(initGit.join(' && '), function (err) {
    assert.ifError(err)
  })
}

function gitPush (conf) {
  var pushGit = [
    'git remote add origin <EMAIL>:' + conf.name + '/' + conf.packageName + '.git',
    'git push -u origin master'
  ]
  exec(pushGit.join(' && '), function (err) {
    assert.ifError(err)
  })
}<commit_msg>using `hub create`<commit_after>const exec = require('child_process').exec
const assert = require('assert')

module.exports = {
  Init: gitInit,
  Push: gitPush
}

// initialize a git repo
function gitInit (conf) {
  var initGit = [
    'git init --quiet',
    'git add --all',
    'git commit -m "initial commit"'
  ]
  exec(initGit.join(' && '), function (err) {
      assert.ifError(err)
      if (!err) {
        if ((conf.meta.type === 'public') && (conf.meta.push)) {
          gitPush(conf)
        }
      }
  })
}

function gitPush (conf) {
  var pushGit = [
    'hub create -d ' + '"' + conf.meta.description + '"',
    'git push origin master'
  ]
    exec(pushGit.join(' && ') ,function (err) {
      assert.ifError(err)
      if (!err) console.log('git inited and pushed to github')
    })
}
{'fraction_non_alphanumeric': 0.1717877094972067, 'fraction_numerical': 0.0, 'mean_word_length': 2.741514360313316, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6902700', 'n_tokens_mistral': 506, 'n_tokens_neox': 489, 'n_words': 125}