<commit_before>;(function(global) {
	'use strict';

	function definition() {
		// example: configuration
			demand
				.configure({
					pattern: {
						//'/adapter':       '/src/adapter',
						//'/adapter':       '//rawgit.com/dlueth/qoopido.demand/release/1.0.8/src/adapter',
						'/adapter':       '//rawgit.com/dlueth/qoopido.demand/master/dist/adapter',
						'/qoopido/4.0.0': '//rawgit.com/dlueth/qoopido.js/release/4.0.0/dist/latest/min',
						'/qoopido/3.7.4': '//cdn.jsdelivr.net/qoopido.js/3.7.4',
						'/jquery':        '//cdn.jsdelivr.net/jquery/1.11.3/jquery.min'
					},
					probes: {
						'/jquery': function() { return global.jQuery; }
					}
				});

		// example: demand usage
			// loading a single module without further dependencies
				demand('simple')
					.then(
						function(appSimple) {
							console.log('demand module /app/simple loaded');
						},
						function() {
							console.log('error loading modules', arguments);
						}
					);

			// loading a single, more complex module with further dependencies
				/*
				demand('/qoopido/4.0.0/component/iterator')
					.then(
						function(qoopidoComponentIterator) {
							console.log('demand module /qoopido/4.0.0/component/iterator loaded');
						},
						function() {
							console.log('error loading modules', arguments);
						}
					);
				*/

			// loading multiple modules with further dependencies and a probe (~=shim)
				/*
				demand('/qoopido/4.0.0/component/iterator', '/jquery')
					.then(
						function(qoopidoComponentIterator, jQuery) {
							console.log('demand module /qoopido/4.0.0/component/iterator & external /jquery loaded');
						},
						function() {
							console.log('error loading modules', arguments);
						}
					);
				*/

			// loading CSS with demand
				demand('css!default')
					.then(
						function(cssDefault) {
							console.log('demand module /app/default (text/css) loaded');

							cssDefault.media = 'screen';
						},
						function() {
							console.log('error loading modules', arguments);
						}
					);

			// providing a simple inline module without dependencies
				function definition1() {
					console.log('demand module /app/example1 provided');

					return function appExample1() {

					};
				}

				provide('example1', definition1);

			// providing an inline module with dependencies
				function definition2(appExample1, jQuery) {
					console.log('demand module /app/example2 provided');

					return function appExample2() {

					};
				}

				provide('example2', definition2)
					.when('/app/example1', '/jquery');

		// example: load & use require.js adapter
			demand('/adapter/require')
				.then(
					function(adapter) {
						// adapter.require is also register as "require" in global scope
						adapter.require([ '/qoopido/3.7.4/base' ], function(base) {
							console.log('require.js module /qoopido/3.7.4/base loaded');

							adapter.require([ '/qoopido/3.7.4/component/iterator' ], function(componentIterator) {
								console.log('require.js module /qoopido/3.7.4/component/iterator loaded');
							});
						});

						// adapter.define is also registered as "define" in global scope
						adapter.define('/app/example3', function() {
							console.log('require.js module /app/example3 defined');
						});

						// define with dependencies
						adapter.define('/app/example4', [ '/jquery' ], function(jQuery) {
							console.log('require.js module /app/example4 defined');
						});
					}
				);

		return true;
	}

	provide(definition)
		.when('simple');
}(this));<commit_msg>[UPDATE] cleanup<commit_after>;(function(global) {
	'use strict';

	function definition() {
		// example: configuration
			demand
				.configure({
					pattern: {
						//'/adapter':       '/src/adapter',
						//'/adapter':       '//rawgit.com/dlueth/qoopido.demand/release/1.0.9/src/adapter',
						'/adapter':       '//rawgit.com/dlueth/qoopido.demand/master/dist/adapter',
						'/qoopido/4.0.0': '//rawgit.com/dlueth/qoopido.js/release/4.0.0/dist/latest/min',
						'/qoopido/3.7.4': '//cdn.jsdelivr.net/qoopido.js/3.7.4',
						'/jquery':        '//cdn.jsdelivr.net/jquery/1.11.3/jquery.min'
					},
					probes: {
						'/jquery': function() { return global.jQuery; }
					}
				});

		// example: demand usage
			// loading a single module without further dependencies
				demand('simple')
					.then(
						function(appSimple) {
							console.log('demand module /app/simple loaded');
						},
						function() {
							console.log('error loading modules', arguments);
						}
					);

			// loading a single, more complex module with further dependencies
				/*
				demand('/qoopido/4.0.0/component/iterator')
					.then(
						function(qoopidoComponentIterator) {
							console.log('demand module /qoopido/4.0.0/component/iterator loaded');
						},
						function() {
							console.log('error loading modules', arguments);
						}
					);
				*/

			// loading multiple modules with further dependencies and a probe (~=shim)
				/*
				demand('/qoopido/4.0.0/component/iterator', '/jquery')
					.then(
						function(qoopidoComponentIterator, jQuery) {
							console.log('demand module /qoopido/4.0.0/component/iterator & external /jquery loaded');
						},
						function() {
							console.log('error loading modules', arguments);
						}
					);
				*/

			// loading CSS with demand
				demand('css!default')
					.then(
						function(cssDefault) {
							console.log('demand module /app/default (text/css) loaded');

							cssDefault.media = 'screen';
						},
						function() {
							console.log('error loading modules', arguments);
						}
					);

			// providing a simple inline module without dependencies
				function definition1() {
					console.log('demand module /app/example1 provided');

					return function appExample1() {

					};
				}

				provide('example1', definition1);

			// providing an inline module with dependencies
				function definition2(appExample1, jQuery) {
					console.log('demand module /app/example2 provided');

					return function appExample2() {

					};
				}

				provide('example2', definition2)
					.when('/app/example1', '/jquery');

		// example: load & use require.js adapter
			demand('/adapter/require')
				.then(
					function(adapter) {
						// adapter.require is also register as "require" in global scope
						adapter.require([ '/qoopido/3.7.4/base' ], function(base) {
							console.log('require.js module /qoopido/3.7.4/base loaded');

							adapter.require([ '/qoopido/3.7.4/component/iterator' ], function(componentIterator) {
								console.log('require.js module /qoopido/3.7.4/component/iterator loaded');
							});
						});

						// adapter.define is also registered as "define" in global scope
						adapter.define('/app/example3', function() {
							console.log('require.js module /app/example3 defined');
						});

						// define with dependencies
						adapter.define('/app/example4', [ '/jquery' ], function(jQuery) {
							console.log('require.js module /app/example4 defined');
						});
					}
				);

		return true;
	}

	provide(definition)
		.when('simple');
}(this));
{'fraction_non_alphanumeric': 0.155179644904236, 'fraction_numerical': 0.016496574863693554, 'mean_word_length': 2.4066666666666667, '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': '2591248', 'n_tokens_mistral': 3030, 'n_tokens_neox': 2120, 'n_words': 428}