<commit_before>Package.describe({
  "summary": "Performance Monitoring for Meteor",
  "version": "2.12.2",
  "git": "https://github.com/meteorhacks/kadira.git",
  "name": "meteorhacks:kadira"
});

var npmModules = {
  "debug": "0.7.4"
};

if(!Package.onUse) {
  // this is not Meteor 0.9
  // we need to add usage @0.4.9 which contains platform specific builds
  // for 0.9+ we are using meteorhacks:kadira-binary-deps
  // which has platform specific builds
  npmModules["usage"] = "0.4.9";
  npmModules["v8-profiler"] = "5.2.0";
}

Npm.depends(npmModules);

Package.on_use(function(api) {
  configurePackage(api);
  api.export(['Kadira']);
});

Package.on_test(function(api) {
  configurePackage(api);
  api.use([
    'tinytest',
    'test-helpers'
  ], ['client', 'server']);

  // common before
  api.add_files([
    'tests/models/base_error.js'
  ], ['client', 'server']);

  // common server
  api.add_files([
    'tests/ntp.js',
    'tests/_helpers/globals.js',
    'tests/_helpers/helpers.js',
    'tests/_helpers/init.js',
    'tests/ping.js',
    'tests/hijack/info.js',
    'tests/hijack/user.js',
    'tests/hijack/email.js',
    'tests/hijack/base.js',
    'tests/hijack/async.js',
    'tests/hijack/http.js',
    'tests/hijack/db.js',
    'tests/hijack/subscriptions.js',
    'tests/hijack/error.js',
    'tests/models/methods.js',
    'tests/models/pubsub.js',
    'tests/models/system.js',
    'tests/models/errors.js',
    'tests/tracer_store.js',
    'tests/tracer.js',
    'tests/check_for_oplog.js',
    'tests/error_tracking.js',
    'tests/wait_time_builder.js',
    'tests/profile/set_labels.js',
  ], 'server');

  // common client
  api.add_files([
    'tests/client/utils.js',
    'tests/client/error_tracking.js',
    'tests/client/models/error.js',
    'tests/client/error_reporters/window_error.js',
    'tests/client/error_reporters/zone.js',
    'tests/client/error_reporters/meteor_debug.js',
  ], 'client');

  // common after
  api.add_files([
    'tests/common/default_error_filters.js',
    'tests/common/send.js'
  ], ['client', 'server']);
});

function configurePackage(api) {
  if(api.versionsFrom) {
    api.versionsFrom('METEOR@0.9.1');
    // binary dependencies
    api.use('meteorhacks:kadira-binary-deps@1.2.0');
    api.use('meteorhacks:meteorx@1.2.0');
    api.use('meteorhacks:zones@1.2.1', {weak: true});
  } else {
    // for Meteor releases <= 0.8.3
    // now, zones is a weak dependancy!
    // kadira on the client side knows how to handle it
    // api.use('zones');
    api.use('meteorx');<commit_msg>updated kadira binary deps version<commit_after>Package.describe({
  "summary": "Performance Monitoring for Meteor",
  "version": "2.12.2",
  "git": "https://github.com/meteorhacks/kadira.git",
  "name": "meteorhacks:kadira"
});

var npmModules = {
  "debug": "0.7.4"
};

if(!Package.onUse) {
  // this is not Meteor 0.9
  // we need to add usage @0.4.9 which contains platform specific builds
  // for 0.9+ we are using meteorhacks:kadira-binary-deps
  // which has platform specific builds
  npmModules["usage"] = "0.4.9";
  npmModules["v8-profiler"] = "5.2.0";
}

Npm.depends(npmModules);

Package.on_use(function(api) {
  configurePackage(api);
  api.export(['Kadira']);
});

Package.on_test(function(api) {
  configurePackage(api);
  api.use([
    'tinytest',
    'test-helpers'
  ], ['client', 'server']);

  // common before
  api.add_files([
    'tests/models/base_error.js'
  ], ['client', 'server']);

  // common server
  api.add_files([
    'tests/ntp.js',
    'tests/_helpers/globals.js',
    'tests/_helpers/helpers.js',
    'tests/_helpers/init.js',
    'tests/ping.js',
    'tests/hijack/info.js',
    'tests/hijack/user.js',
    'tests/hijack/email.js',
    'tests/hijack/base.js',
    'tests/hijack/async.js',
    'tests/hijack/http.js',
    'tests/hijack/db.js',
    'tests/hijack/subscriptions.js',
    'tests/hijack/error.js',
    'tests/models/methods.js',
    'tests/models/pubsub.js',
    'tests/models/system.js',
    'tests/models/errors.js',
    'tests/tracer_store.js',
    'tests/tracer.js',
    'tests/check_for_oplog.js',
    'tests/error_tracking.js',
    'tests/wait_time_builder.js',
    'tests/profile/set_labels.js',
  ], 'server');

  // common client
  api.add_files([
    'tests/client/utils.js',
    'tests/client/error_tracking.js',
    'tests/client/models/error.js',
    'tests/client/error_reporters/window_error.js',
    'tests/client/error_reporters/zone.js',
    'tests/client/error_reporters/meteor_debug.js',
  ], 'client');

  // common after
  api.add_files([
    'tests/common/default_error_filters.js',
    'tests/common/send.js'
  ], ['client', 'server']);
});

function configurePackage(api) {
  if(api.versionsFrom) {
    api.versionsFrom('METEOR@0.9.1');
    // binary dependencies
    api.use('meteorhacks:kadira-binary-deps@1.3.1');
    api.use('meteorhacks:meteorx@1.2.0');
    api.use('meteorhacks:zones@1.2.1', {weak: true});
  } else {
    // for Meteor releases <= 0.8.3
    // now, zones is a weak dependancy!
    // kadira on the client side knows how to handle it
    // api.use('zones');
    api.use('meteorx');
{'fraction_non_alphanumeric': 0.18687950165466224, 'fraction_numerical': 0.01401596262409967, 'mean_word_length': 3.249793217535153, 'pattern_counts': {'":': 10, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1003615', 'n_tokens_mistral': 2024, 'n_tokens_neox': 1976, 'n_words': 291}