<commit_before>//
//  Created by <NAME> on 11/04/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit

@IBDesignable public class AnimatableCollectionViewCell: UICollectionViewCell, CornerDesignable, FillDesignable, BorderDesignable, TableViewCellDesignable, GradientDesignable, Animatable {
    
    // MARK: - CornerDesignable
    @IBInspectable public var cornerRadius: CGFloat = CGFloat.NaN {
        didSet {
            configCornerRadius()
        }
    }
    
    // MARK: - FillDesignable
    @IBInspectable public var fillColor: UIColor? {
        didSet {
            configFillColor()
        }
    }
    
    @IBInspectable public var predefinedColor: String? {
        didSet {
            configFillColor()
        }
    }
    
    @IBInspectable public var opacity: CGFloat = CGFloat.NaN {
        didSet {
            configOpacity()
        }
    }
    
    // MARK: - BorderDesignable
    @IBInspectable public var borderColor: UIColor? {
        didSet {
            configBorder()
        }
    }
    
    @IBInspectable public var borderWidth: CGFloat = CGFloat.NaN {
        didSet {
            configBorder()
        }
    }
    
    @IBInspectable public var borderSide: String? {
        didSet {
            configBorder()
        }
    }
    
    // MARK: - TableViewCellDesignable
    @IBInspectable public var removeSeparatorMargins: Bool = false
    
    // MARK: - GradientDesignable
    @IBInspectable public var startColor: UIColor?
    @IBInspectable public var endColor: UIColor?
    @IBInspectable public var predefinedGradient: String?
    @IBInspectable public var startPoint: String?
    
    // MARK: - Animatable
    @IBInspectable public var animationType: String?
    @IBInspectable public var autoRun: Bool = true
    @IBInspectable public var duration: Double = Double.NaN
    @IBInspectable public var delay: Double = Double.NaN
    @IBInspectable public var damping: CGFloat = CGFloat.NaN
    @IBInspectable public var velocity: CGFloat = CGFloat.NaN
    @IBInspectable public var force: CGFloat = CGFloat.NaN
    @IBInspectable public var repeatCount: Float = Float.NaN
    @IBInspectable public var x: CGFloat = CGFloat.NaN
    @IBInspectable public var y: CGFloat = CGFloat.NaN
    
    // MARK: - Lifecycle
    public override func prepareForInterfaceBuilder() {
        super.prepareForInterfaceBuilder()
        configInspectableProperties()
    }
    
    public override func awakeFromNib() {
        super.awakeFromNib()
        configInspectableProperties()
    }
    
    public override func layoutSubviews() {
        super.layoutSubviews()
        configAfterLayoutSubviews()
        autoRunAnimation()
    }
    
    // MARK: - Private
    private func configInspectableProperties() {
        configAnimatableProperties()
        configOpacity()        
    }
    
    private func configAfterLayoutSubviews() {
        configBorder()
        configGradient()
    }
}<commit_msg>Used two spaces instead of tabs<commit_after>//
//  Created by <NAME> on 11/04/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit

@IBDesignable public class AnimatableCollectionViewCell: UICollectionViewCell, CornerDesignable, FillDesignable, BorderDesignable, TableViewCellDesignable, GradientDesignable, Animatable {
  
  // MARK: - CornerDesignable
  @IBInspectable public var cornerRadius: CGFloat = CGFloat.NaN {
    didSet {
      configCornerRadius()
    }
  }
  
  // MARK: - FillDesignable
  @IBInspectable public var fillColor: UIColor? {
    didSet {
      configFillColor()
    }
  }
  
  @IBInspectable public var predefinedColor: String? {
    didSet {
      configFillColor()
    }
  }
  
  @IBInspectable public var opacity: CGFloat = CGFloat.NaN {
    didSet {
      configOpacity()
    }
  }
  
  // MARK: - BorderDesignable
  @IBInspectable public var borderColor: UIColor? {
    didSet {
      configBorder()
    }
  }
  
  @IBInspectable public var borderWidth: CGFloat = CGFloat.NaN {
    didSet {
      configBorder()
    }
  }
  
  @IBInspectable public var borderSide: String? {
    didSet {
      configBorder()
    }
  }
  
  // MARK: - TableViewCellDesignable
  @IBInspectable public var removeSeparatorMargins: Bool = false
  
  // MARK: - GradientDesignable
  @IBInspectable public var startColor: UIColor?
  @IBInspectable public var endColor: UIColor?
  @IBInspectable public var predefinedGradient: String?
  @IBInspectable public var startPoint: String?
  
  // MARK: - Animatable
  @IBInspectable public var animationType: String?
  @IBInspectable public var autoRun: Bool = true
  @IBInspectable public var duration: Double = Double.NaN
  @IBInspectable public var delay: Double = Double.NaN
  @IBInspectable public var damping: CGFloat = CGFloat.NaN
  @IBInspectable public var velocity: CGFloat = CGFloat.NaN
  @IBInspectable public var force: CGFloat = CGFloat.NaN
  @IBInspectable public var repeatCount: Float = Float.NaN
  @IBInspectable public var x: CGFloat = CGFloat.NaN
  @IBInspectable public var y: CGFloat = CGFloat.NaN
  
  // MARK: - Lifecycle
  public override func prepareForInterfaceBuilder() {
    super.prepareForInterfaceBuilder()
    configInspectableProperties()
  }
  
  public override func awakeFromNib() {
    super.awakeFromNib()
    configInspectableProperties()
  }
  
  public override func layoutSubviews() {
    super.layoutSubviews()
    configAfterLayoutSubviews()
    autoRunAnimation()
  }
  
  // MARK: - Private
  private func configInspectableProperties() {
    configAnimatableProperties()
    configOpacity()
  }
  
  private func configAfterLayoutSubviews() {
    configBorder()
    configGradient()
  }
}
{'fraction_non_alphanumeric': 0.0801270737733851, 'fraction_numerical': 0.0035298270384751147, 'mean_word_length': 2.752980132450331, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4547046', 'n_tokens_mistral': 1742, 'n_tokens_neox': 1701, 'n_words': 421}