<commit_before>// When used as a Meteor package, package-version-parser detects
// Package and believes SemVer410 and _ are available globally.
global.SemVer410 = require('semver');
global._ = require('underscore');

/*
   This code is taken from commands-packages.js file with everything
   except the package building/publishing code removed.
 */

var main = require('./meteor/tools/main.js');
var _ = require('underscore');
var files = require('./meteor/tools/files.js');
var deploy = require('./meteor/tools/deploy.js');
var buildmessage = require('./meteor/tools/buildmessage.js');
var warehouse = require('./meteor/tools/warehouse.js');
var auth = require('./meteor/tools/auth.js');
var config = require('./meteor/tools/config.js');
var release = require('./meteor/tools/release.js');
var Future = require('fibers/future');
var runLog = require('./meteor/tools/run-log.js');
var utils = require('./meteor/tools/utils.js');
var httpHelpers = require('./meteor/tools/http-helpers.js');
var archinfo = require('./meteor/tools/archinfo.js');
var tropohouse = require('./meteor/tools/tropohouse.js');
var compiler = require('./meteor/tools/compiler.js');
var catalog = require('./meteor/tools/catalog.js');
var stats = require('./meteor/tools/stats.js');
var isopack = require('./meteor/tools/isopack.js');
var cordova = require('./meteor/tools/commands-cordova.js');
var Console = require('./meteor/tools/console.js').Console;
var projectContextModule = require('./meteor/tools/project-context.js');

function buildPackage(options, publishPackage) {
  var projectContext;
  // We're not in an app? OK, make a temporary app directory, and make sure
  // that the current package directory is found by its local catalog.<commit_msg>Allow specifying release version.<commit_after>// When used as a Meteor package, package-version-parser detects
// Package and believes SemVer410 and _ are available globally.
global.SemVer410 = require('semver');
global._ = require('underscore');

/*
   This code is taken from commands-packages.js file with everything
   except the package building/publishing code removed.
 */

var main = require('./meteor/tools/main.js');
var _ = require('underscore');
var files = require('./meteor/tools/files.js');
var deploy = require('./meteor/tools/deploy.js');
var buildmessage = require('./meteor/tools/buildmessage.js');
var warehouse = require('./meteor/tools/warehouse.js');
var auth = require('./meteor/tools/auth.js');
var config = require('./meteor/tools/config.js');
var release = require('./meteor/tools/release.js');
var Future = require('fibers/future');
var runLog = require('./meteor/tools/run-log.js');
var utils = require('./meteor/tools/utils.js');
var httpHelpers = require('./meteor/tools/http-helpers.js');
var archinfo = require('./meteor/tools/archinfo.js');
var tropohouse = require('./meteor/tools/tropohouse.js');
var compiler = require('./meteor/tools/compiler.js');
var catalog = require('./meteor/tools/catalog.js');
var stats = require('./meteor/tools/stats.js');
var isopack = require('./meteor/tools/isopack.js');
var cordova = require('./meteor/tools/commands-cordova.js');
var Console = require('./meteor/tools/console.js').Console;
var projectContextModule = require('./meteor/tools/project-context.js');

function buildPackage(options, publishPackage) {
  if (options.release) {
    options.releaseForConstraints = release.load(options.release);
  }

  var projectContext;
  // We're not in an app? OK, make a temporary app directory, and make sure
  // that the current package directory is found by its local catalog.
{'fraction_non_alphanumeric': 0.1628036861211952, 'fraction_numerical': 0.003351019268360793, 'mean_word_length': 4.658767772511848, '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': '1633248', 'n_tokens_mistral': 1087, 'n_tokens_neox': 1026, 'n_words': 268}