<commit_before>module( "bridge" );

asyncTest( "bridge", 5, function() {
	var loaded = false;
	strictEqual( use.bridge( "data/script.js", function( use ) {
		loaded = true;
		use( "data/simple.module.js#getCount", function( getCount ) {
			use.expose( {
				getCount: getCount,
				method: $.noConflict().twice
			} );
		} );
	} ), use, "bridge is chainable" );
	setTimeout( function() {
		ok( !loaded, "bridge is not executed immediately" );
		use( "data/script.js", function( module ) {
			ok( loaded, "define executed" );
			strictEqual( module.method( 5 ), 10, "method received as module.method" );
			strictEqual( module.getCount(), testCount++, "getCount attached correctly" );
			start();
		} );
	}, 50 );
} );

<commit_msg>Removes unnecessary returns<commit_after>module( "bridge" );

asyncTest( "bridge", 5, function() {
	var loaded = false;
	strictEqual( use.bridge( "data/script.js", function( use ) {
		loaded = true;
		use( "data/simple.module.js#getCount", function( getCount ) {
			use.expose( {
				getCount: getCount,
				method: $.noConflict().twice
			} );
		} );
	} ), use, "bridge is chainable" );
	setTimeout( function() {
		ok( !loaded, "bridge is not executed immediately" );
		use( "data/script.js", function( module ) {
			ok( loaded, "define executed" );
			strictEqual( module.method( 5 ), 10, "method received as module.method" );
			strictEqual( module.getCount(), testCount++, "getCount attached correctly" );
			start();
		} );
	}, 50 );
} );
{'fraction_non_alphanumeric': 0.17503392130257803, 'fraction_numerical': 0.008141112618724558, 'mean_word_length': 3.867986798679868, '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': '5245041', 'n_tokens_mistral': 546, 'n_tokens_neox': 481, 'n_words': 126}