<commit_before>import UIKit

class MOptionReformaCrossingLaneRight:MOptionReformaCrossingLane
{
    private let kScaleHorizontal:CGFloat = 1
    private let kDirection:CGFloat = 1
    
    override var scaleHorizontal:CGFloat
    {
        get
        {
            return kScaleHorizontal
        }
    }
    
    override var direction:CGFloat
    {
        get
        {
            return kDirection
        }
    }
    
    override func foeTrip(foe:MOptionReformaCrossingFoeItem) -> MOptionReformaCrossingFoeItemTrip?
    {
        foes.append(foe)
        
        let foeWidth_2:CGFloat = foe.texture.width_2
        let initialX:CGFloat = -foeWidth_2
        let endingX:CGFloat = foeWidth_2 + sceneWidth
        let foeSpeed:CGFloat = foe.randomSpeed() + addedSpeed
        
        let trip:MOptionReformaCrossingFoeItemTripRight = MOptionReformaCrossingFoeItemTripRight(
            speed:foeSpeed,
            initialX:initialX,
            endingX:endingX,
            positionY:positionY)
        
        return trip
    }
    
    override func hasFoeWaiting() -> Bool
    {
        for foe:MOptionReformaCrossingFoeItem in foes
        {/*
            let minWidth:CGFloat = foe.size.width / 2.0
            
            if foe.position.x <= minWidth
            {
                return true
            }*/
        }
        
        return false
    }
}
<commit_msg>Refactor has foe waiting<commit_after>import UIKit

class MOptionReformaCrossingLaneRight:MOptionReformaCrossingLane
{
    private let kScaleHorizontal:CGFloat = 1
    private let kDirection:CGFloat = 1
    
    override var scaleHorizontal:CGFloat
    {
        get
        {
            return kScaleHorizontal
        }
    }
    
    override var direction:CGFloat
    {
        get
        {
            return kDirection
        }
    }
    
    override func foeTrip(foe:MOptionReformaCrossingFoeItem) -> MOptionReformaCrossingFoeItemTrip?
    {
        foes.append(foe)
        
        let foeWidth_2:CGFloat = foe.texture.width_2
        let initialX:CGFloat = -foeWidth_2
        let endingX:CGFloat = foeWidth_2 + sceneWidth
        let foeSpeed:CGFloat = foe.randomSpeed() + addedSpeed
        
        let trip:MOptionReformaCrossingFoeItemTripRight = MOptionReformaCrossingFoeItemTripRight(
            speed:foeSpeed,
            initialX:initialX,
            endingX:endingX,
            positionY:positionY)
        
        return trip
    }
    
    override func hasFoeWaiting() -> Bool
    {
        for foe:MOptionReformaCrossingFoeItem in foes
        {
            let minWidth:CGFloat = foe.texture.width_2
            
            if foe.trip.positionX <= minWidth
            {
                return true
            }
        }
        
        return false
    }
}

{'fraction_non_alphanumeric': 0.05747126436781609, 'fraction_numerical': 0.005387931034482759, 'mean_word_length': 1.703883495145631, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5568010', 'n_tokens_mistral': 855, 'n_tokens_neox': 843, 'n_words': 144}