<commit_before>#!/usr/bin/env node

var fs = require('fs')
var file_path = __dirname;
var current_path = process.cwd();
/**
 * Module dependencies.
 */

var program = require('commander');

program
  .version(require('./package.json').version)
  .option('-i, --init', 'init default .travis.yml')
  .option('-b, --badge', 'get badge for README.md')
  .option('-n, --npm', 'get npm badge .travis.yml')
  .option('-g, --gitter', 'get gitter badge for README.md')
  .option('-c, --codecov', 'get codecov badge for README.md')
  .parse(process.argv);
 

if (program.init) {
  fs.createReadStream(file_path + '/travis.yml').pipe(fs.createWriteStream(current_path + '/.travis.yml'))
  return console.log('init complete!')
}

if (program.badge) {
  var cfg = require('get-git-info')(current_path);
  // console.log(cfg)
  //{ user: 'i5ting', project: 'get-git-info' }
   return console.log('[![Build](https://travis-ci.org/' + cfg.user + '/' + cfg.project + '.svg?branch=master)](https://travis-ci.org/' + cfg.user + '/' + cfg.project + ')')
}

if (program.codecov) {
  var cfg = require('get-git-info')(current_path);
  // console.log(cfg)
  //{ user: 'i5ting', project: 'get-git-info' }
   return console.log('[![codecov.io](https://codecov.io/github/' + cfg.user + '/' + cfg.project + '/coverage.svg?branch=master)](https://codecov.io/github/' + cfg.user + '/' + cfg.project + '?branch=master)')
}

if (program.npm) {
  var cfg = require('get-git-info')(current_path);
  // console.log(cfg)
  //{ user: 'i5ting', project: 'get-git-info' }
   return console.log('[![NPM version](https://img.shields.io/npm/v/' + cfg.project + '.svg?style=flat-square)](https://www.npmjs.com/package/' + cfg.project + ')')
}

if (program.gitter) {
  var cfg = require('get-git-info')(current_path);
  // console.log(cfg)
  //{ user: 'i5ting', project: 'get-git-info' }
   return console.log('[![gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/' + cfg.user + '/' + cfg.project + '?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)')
}


console.log('Usages: travis -i or travis -b')<commit_msg>lazycommmit, please ignore<commit_after>#!/usr/bin/env node

var fs = require('fs')
var file_path = __dirname;
var current_path = process.cwd();
/**
 * Module dependencies.
 */

var program = require('commander');

program
  .version(require('./package.json').version)
  .option('-i, --init', 'init default .travis.yml')
  .option('-b, --badge', 'get badge for README.md')
  .option('-n, --npm', 'get npm badge .travis.yml')
  .option('-g, --gitter', 'get gitter badge for README.md')
  .option('-t, --travis', 'get travis badge for README.md')
  .option('-c, --codecov', 'get codecov badge for README.md')
  .parse(process.argv);
 

if (program.init) {
  fs.createReadStream(file_path + '/travis.yml').pipe(fs.createWriteStream(current_path + '/.travis.yml'))
  return console.log('init complete!')
}

if (program.badge) {
  var cfg = require('get-git-info')(current_path);
  // console.log(cfg)
  //{ user: 'i5ting', project: 'get-git-info' }
  console.log('[![gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/' + cfg.user + '/' + cfg.project + '?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)')
  console.log('[![NPM version](https://img.shields.io/npm/v/' + cfg.project + '.svg?style=flat-square)](https://www.npmjs.com/package/' + cfg.project + ')')
  console.log('[![Build](https://travis-ci.org/' + cfg.user + '/' + cfg.project + '.svg?branch=master)](https://travis-ci.org/' + cfg.user + '/' + cfg.project + ')')
  console.log('[![codecov.io](https://codecov.io/github/' + cfg.user + '/' + cfg.project + '/coverage.svg?branch=master)](https://codecov.io/github/' + cfg.user + '/' + cfg.project + '?branch=master)')
}

if (program.codecov) {
  var cfg = require('get-git-info')(current_path);
  // console.log(cfg)
  //{ user: 'i5ting', project: 'get-git-info' }
   return console.log('[![codecov.io](https://codecov.io/github/' + cfg.user + '/' + cfg.project + '/coverage.svg?branch=master)](https://codecov.io/github/' + cfg.user + '/' + cfg.project + '?branch=master)')
}

if (program.npm) {
  var cfg = require('get-git-info')(current_path);
  // console.log(cfg)
  //{ user: 'i5ting', project: 'get-git-info' }
   return console.log('[![NPM version](https://img.shields.io/npm/v/' + cfg.project + '.svg?style=flat-square)](https://www.npmjs.com/package/' + cfg.project + ')')
}

if (program.gitter) {
  var cfg = require('get-git-info')(current_path);
  // console.log(cfg)
  //{ user: 'i5ting', project: 'get-git-info' }
   return console.log('[![gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/' + cfg.user + '/' + cfg.project + '?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)')
}

if (program.travis) {
  var cfg = require('get-git-info')(current_path);
  // console.log(cfg)
  //{ user: 'i5ting', project: 'get-git-info' }
   return console.log('[![Build](https://travis-ci.org/' + cfg.user + '/' + cfg.project + '.svg?branch=master)](https://travis-ci.org/' + cfg.user + '/' + cfg.project + ')')
}

console.log('Usages: travis -i or travis -b')
{'fraction_non_alphanumeric': 0.23366834170854273, 'fraction_numerical': 0.0028991109393119445, 'mean_word_length': 3.990356798457088, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 24, 'lorem ipsum': 0, 'www.': 3, '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': '5666961', 'n_tokens_mistral': 2005, 'n_tokens_neox': 1961, 'n_words': 300}