<commit_before>import SpriteKit

class VOptionWhistlesVsZombiesMenuWhistle:SKSpriteNode
{
    private weak var controller:COptionWhistlesVsZombies!
    private weak var modelMenu:MOptionWhistlesVsZombiesMenu!
    private weak var model:MOptionWhistlesVsZombiesMenuItem!
    private let kTitleFontSize:CGFloat = 20
    private let kDescrFontSize:CGFloat = 14
    private let kLabelsPositionX:CGFloat = -50
    private let kTitlePositionY:CGFloat = 0
    private let kDescrPositionY:CGFloat = -20
    
    init(
        controller:COptionWhistlesVsZombies,
        modelMenu:MOptionWhistlesVsZombiesMenu,
        model:MOptionWhistlesVsZombiesMenuItem)
    {
        self.controller = controller
        self.modelMenu = modelMenu
        self.model = model
        
        super.init(texture:model.texture, color:UIColor.clear, size:model.textureSize)
        position = CGPoint(x:model.positionX, y:model.positionY)
        isUserInteractionEnabled = true
        
        addTitle()
        addDescr()
    }
    
    required init?(coder:NSCoder)
    {
        return nil
    }
    
    override func touchesEnded(_ touches:Set<UITouch>, with event:UIEvent?)
    {
        run(modelMenu.whistleActionAnimation)
    }
    
    //MARK: private
    
    private func addTitle()
    {
        guard
            <commit_msg>Shrink animation in touch began instead of end<commit_after>import SpriteKit

class VOptionWhistlesVsZombiesMenuWhistle:SKSpriteNode
{
    private weak var controller:COptionWhistlesVsZombies!
    private weak var modelMenu:MOptionWhistlesVsZombiesMenu!
    private weak var model:MOptionWhistlesVsZombiesMenuItem!
    private let kTitleFontSize:CGFloat = 20
    private let kDescrFontSize:CGFloat = 14
    private let kLabelsPositionX:CGFloat = -50
    private let kTitlePositionY:CGFloat = 0
    private let kDescrPositionY:CGFloat = -20
    
    init(
        controller:COptionWhistlesVsZombies,
        modelMenu:MOptionWhistlesVsZombiesMenu,
        model:MOptionWhistlesVsZombiesMenuItem)
    {
        self.controller = controller
        self.modelMenu = modelMenu
        self.model = model
        
        super.init(texture:model.texture, color:UIColor.clear, size:model.textureSize)
        position = CGPoint(x:model.positionX, y:model.positionY)
        isUserInteractionEnabled = true
        
        addTitle()
        addDescr()
    }
    
    required init?(coder:NSCoder)
    {
        return nil
    }
    
    override func touchesBegan(_ touches:Set<UITouch>, with event:UIEvent?)
    {
        run(modelMenu.whistleActionAnimation)
    }
    
    override func touchesEnded(_ touches:Set<UITouch>, with event:UIEvent?)
    {
        
    }
    
    //MARK: private
    
    private func addTitle()
    {
        guard
            
{'fraction_non_alphanumeric': 0.0662585523946705, 'fraction_numerical': 0.006481814908174289, 'mean_word_length': 2.713903743315508, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6965420', 'n_tokens_mistral': 873, 'n_tokens_neox': 850, 'n_words': 159}