<commit_before>/*
 * index.js: Import a CFP into Github issues for review.
 *
 * (C) 2013, EmpireJS.
 *
 */

var fs = require('fs'),
    path = require('path'),
    async = require('async'),
    xlsxRows = require('xlsx-rows'),
    GitHubApi = require('github');

//
// ### function cfp-github-importer (options, callback)
// #### @options {Object} Options for the import
//   - @auth {Object} Github Auth
//   - @repo {string} Fully qualified repo name (e.g. empirejs/2014-cfp)
//   - @file {string} Path to a *.tsv file matching
//
var importer = module.exports = function (options, callback) {
  var auth = options.auth.split(':'),
      parser;

  if (options.parser) {
    try { parser = require(require.resolve(options.parser)); }
    catch (ex) { return callback(ex) }
  }

  //
  // Setup basic Github client and template file
  //
  options.template = options.template || path.join(__dirname, 'templates', 'issue.md');
  options.github   = new GitHubApi({
    // required
    version: "3.0.0",<commit_msg>[fix] Use the correct `resolve` method.<commit_after>/*
 * index.js: Import a CFP into Github issues for review.
 *
 * (C) 2013, EmpireJS.
 *
 */

var fs = require('fs'),
    path = require('path'),
    async = require('async'),
    xlsxRows = require('xlsx-rows'),
    GitHubApi = require('github');

//
// ### function cfp-github-importer (options, callback)
// #### @options {Object} Options for the import
//   - @auth {Object} Github Auth
//   - @repo {string} Fully qualified repo name (e.g. empirejs/2014-cfp)
//   - @file {string} Path to a *.tsv file matching
//
var importer = module.exports = function (options, callback) {
  var auth = options.auth.split(':'),
      parser;

  if (options.parser) {
    try { parser = require(path.resolve(options.parser)); }
    catch (ex) { return callback(ex) }
  }

  //
  // Setup basic Github client and template file
  //
  options.template = options.template || path.join(__dirname, 'templates', 'issue.md');
  options.github   = new GitHubApi({
    // required
    version: "3.0.0",
{'fraction_non_alphanumeric': 0.1682106289614822, 'fraction_numerical': 0.010726474890297415, 'mean_word_length': 3.015655577299413, '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': '3965167', 'n_tokens_mistral': 678, 'n_tokens_neox': 658, 'n_words': 186}