<commit_before>var async = require('async');
var exec = require('child_process').exec;
var NodeRunner = require('../src/RunWrappers/Node');
var RunListHelper = require('../src/RunListHelper');
var CmdHelper = require('../src/CmdHelper');
var green = '\u001b[42m \u001b[0m';
var red = '\u001b[41m \u001b[0m';

module.exports = {
  name: 'pull-git',
  description: 'Pulls any changes from git repos',
  usage: '[-r <repoPattern>]',
};

function checkCurrentBranch(bosco, repoPath, next) {
  if (!bosco.exists([repoPath, '.git'].join('/'))) {
    bosco.warn('Doesn\'t seem to be a git repo: ' + repoPath.blue);
    return next();
  }

  exec('git rev-parse --abbrev-ref HEAD', {
    cwd: repoPath,
  }, function(err, stdout, stderr) {
    if (err) {
      bosco.error(repoPath.blue + ' >> ' + stderr);
    } else {
      if (stdout) {
        var branch = stdout.replace(/(\r\n|\n|\r)/gm, '');
        if (branch !== 'master') {
          bosco.warn(repoPath.yellow + ': ' + 'Is ot on master, it is on ' + branch.cyan);
        }
      }
    }
    next();
  });
}<commit_msg>Fix typo in output for pulling from git<commit_after>var async = require('async');
var exec = require('child_process').exec;
var NodeRunner = require('../src/RunWrappers/Node');
var RunListHelper = require('../src/RunListHelper');
var CmdHelper = require('../src/CmdHelper');
var green = '\u001b[42m \u001b[0m';
var red = '\u001b[41m \u001b[0m';

module.exports = {
  name: 'pull-git',
  description: 'Pulls any changes from git repos',
  usage: '[-r <repoPattern>]',
};

function checkCurrentBranch(bosco, repoPath, next) {
  if (!bosco.exists([repoPath, '.git'].join('/'))) {
    bosco.warn('Doesn\'t seem to be a git repo: ' + repoPath.blue);
    return next();
  }

  exec('git rev-parse --abbrev-ref HEAD', {
    cwd: repoPath,
  }, function(err, stdout, stderr) {
    if (err) {
      bosco.error(repoPath.blue + ' >> ' + stderr);
    } else {
      if (stdout) {
        var branch = stdout.replace(/(\r\n|\n|\r)/gm, '');
        if (branch !== 'master') {
          bosco.warn(repoPath.yellow + ': ' + 'Is not on master, it is on ' + branch.cyan);
        }
      }
    }
    next();
  });
}
{'fraction_non_alphanumeric': 0.1962229387379088, 'fraction_numerical': 0.016582220175034548, 'mean_word_length': 2.978021978021978, 'pattern_counts': {'":': 0, '<': 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': '768130', 'n_tokens_mistral': 811, 'n_tokens_neox': 771, 'n_words': 177}