<commit_before>/**
 * Appcelerator Titanium Mobile
 * Copyright (c) 2011 by Appcelerator, Inc. All Rights Reserved.
 * Licensed under the terms of the Apache Public License
 * Please see the LICENSE included with this distribution for details.
 *
 * Warning: This file is GENERATED, and should not be modified
 */
var bootstrap = require("bootstrap"),
	invoker = require("invoker"),
	Titanium = kroll.binding("Titanium").Titanium;

function moduleBootstrap(moduleBinding) {
	function lazyGet(object, binding, name, namespace) {
		return bootstrap.lazyGet(object, binding,
			name, namespace, moduleBinding.getBinding);
	}

	var module = moduleBinding.getBinding("%(moduleClass)s");
	var invocationAPIs = module.invocationAPIs = [];
	module.apiName = "%(moduleName)s";

	function addInvocationAPI(module, moduleNamespace, namespace, api) {
		invocationAPIs.push({ namespace: namespace, api: api });
	}

	//Titanium.externalModules.push(module);

	%(invocationJS)s
	%(bootstrapJS)s
	return module;
}
exports.bootstrap = moduleBootstrap;<commit_msg>pull the module binding using the module name TIMOB-6312<commit_after>/**
 * Appcelerator Titanium Mobile
 * Copyright (c) 2011 by Appcelerator, Inc. All Rights Reserved.
 * Licensed under the terms of the Apache Public License
 * Please see the LICENSE included with this distribution for details.
 *
 * Warning: This file is GENERATED, and should not be modified
 */
var bootstrap = require("bootstrap"),
	invoker = require("invoker"),
	Titanium = kroll.binding("Titanium").Titanium;

function moduleBootstrap(moduleBinding) {
	function lazyGet(object, binding, name, namespace) {
		return bootstrap.lazyGet(object, binding,
			name, namespace, moduleBinding.getBinding);
	}

	var module = moduleBinding.getBinding("%(moduleClass)s")["%(moduleName)s"];
	var invocationAPIs = module.invocationAPIs = [];
	module.apiName = "%(moduleName)s";

	function addInvocationAPI(module, moduleNamespace, namespace, api) {
		invocationAPIs.push({ namespace: namespace, api: api });
	}

	%(invocationJS)s
	%(bootstrapJS)s
}
exports.bootstrap = moduleBootstrap;
{'fraction_non_alphanumeric': 0.11365807067812798, 'fraction_numerical': 0.0057306590257879654, 'mean_word_length': 5.588050314465409, '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': '244678', 'n_tokens_mistral': 644, 'n_tokens_neox': 598, 'n_words': 178}