<commit_before>import actions = require('./internal/actions');
import cmp = require('./internal/component')
export module iwc {

  /* Register a new component */
  export function component(data:cmp.ComponentDef):void {
    var named = actions.validate_name(data.name);
    var component = <cmp.Component> data;
    component.name = named.name;
    component.namespace = named.namespace;
    component.instances = {};
    component.loaded = false;
    actions.register_component(component);
  }

  /* Load all components all over again */
  export function load():void {
    actions.load_components();
  }
}

// Export module for AMD
declare var define:any;
declare var module:any;
try {
  define('iwc', function () {
    return iwc;
  });
}
catch (e) {
  console.log(iwc);
  module.exports = iwc;
}<commit_msg>Rolling back that commonjs stuff because it didn't work<commit_after>import actions = require('./internal/actions');
import cmp = require('./internal/component')
export module iwc {

  /* Register a new component */
  export function component(data:cmp.ComponentDef):void {
    var named = actions.validate_name(data.name);
    var component = <cmp.Component> data;
    component.name = named.name;
    component.namespace = named.namespace;
    component.instances = {};
    component.loaded = false;
    actions.register_component(component);
  }

  /* Load all components all over again */
  export function load():void {
    actions.load_components();
  }
}

// Export module for AMD in browserify
declare var define:any;
try {
  define('iwc', function () {
    return iwc;
  });
}
catch (e) {
}
{'fraction_non_alphanumeric': 0.12795031055900621, 'fraction_numerical': 0.0, 'mean_word_length': 3.683139534883721, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '863329', 'n_tokens_mistral': 470, 'n_tokens_neox': 458, 'n_words': 126}