<commit_before>package asunit.framework {
    
    import asunit.asserts.*;
    
    import flash.display.Sprite;
    import flash.utils.setTimeout;

    public class AsyncMethodTest {

        [Inject]
        public var async:IAsync;

        [Inject]
        public var sprite:Sprite;

        [Before]
        protected function setUp():void {
            var handler:Function = async.add(asyncSetupHandler);
            setTimeout(handler, 0);
        }

        public function asyncSetupHandler():void{
        }

        [Test]
        public function testInstantiated():void {
            assertTrue("Sprite instantiated", sprite is Sprite);
        }

        [Test]
        public function testAsyncMethod():void {
            var handler:Function = async.add(asyncHandler);
            setTimeout(handler, 0);
        }
        
        private function asyncHandler():void {
            assertTrue(sprite is Sprite);
        }
        
        [Test]
        public function testAsyncVisualEntity():void {
            var handler:Function = async.add(spriteHandler);
            setTimeout(handler, 0);
        }
        
        private function spriteHandler():void {
            assertTrue(sprite is Sprite);
        }

        [Ignore(description="This test wasn't getting called...")]
        [Test]
        public function testAsyncFailure():void {
            var handler:Function = async.add(asyncFailure, 2);
            setTimeout(handler, 10);
        } 

        private function asyncFailure():void {
            assertTrue(true);
        }
        
        [Test]
        public function testAsyncVisualEntity2():void {
            var handler:Function = async.add(spriteHandler);
            setTimeout(handler, 0);<commit_msg>Removed test method that wasn't getting executed before, and didn't seem like it should have ever been meaningful<commit_after>package asunit.framework {
    
    import asunit.asserts.*;
    
    import flash.display.Sprite;
    import flash.utils.setTimeout;

    public class AsyncMethodTest {

        [Inject]
        public var async:IAsync;

        [Inject]
        public var sprite:Sprite;

        [Before]
        protected function setUp():void {
            var handler:Function = async.add(asyncSetupHandler);
            setTimeout(handler, 0);
        }

        public function asyncSetupHandler():void{
        }

        [Test]
        public function testInstantiated():void {
            assertTrue("Sprite instantiated", sprite is Sprite);
        }

        [Test]
        public function testAsyncMethod():void {
            var handler:Function = async.add(asyncHandler);
            setTimeout(handler, 0);
        }
        
        private function asyncHandler():void {
            assertTrue(sprite is Sprite);
        }
        
        [Test]
        public function testAsyncVisualEntity():void {
            var handler:Function = async.add(spriteHandler);
            setTimeout(handler, 0);
        }
        
        private function spriteHandler():void {
            assertTrue(sprite is Sprite);
        }

        [Test]
        public function testAsyncVisualEntity2():void {
            var handler:Function = async.add(spriteHandler);
            setTimeout(handler, 0);
{'fraction_non_alphanumeric': 0.08868501529051988, 'fraction_numerical': 0.003975535168195718, 'mean_word_length': 1.8972542072630647, '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': '2007622', 'n_tokens_mistral': 815, 'n_tokens_neox': 800, 'n_words': 193}