<commit_before>//  Copyright © 2016 <NAME>. All rights reserved.

import UIKit

final class PlaceholderWeatherViewController: UIViewController {

  @IBOutlet private weak var locationLabel: UILabel!
  @IBOutlet private weak var weatherInformationLabel: UILabel!

}

final class PlaceholderWeatherView: UIView {
  override static var layerClass: AnyClass { return CAGradientLayer.self }
}

struct PlaceholderWeatherViewModel {

}<commit_msg>Define gradient stop colours for various temperature tiers<commit_after>//  Copyright © 2016 <NAME>. All rights reserved.

import UIKit

final class PlaceholderWeatherViewController: UIViewController {

  @IBOutlet private weak var locationLabel: UILabel!
  @IBOutlet private weak var weatherInformationLabel: UILabel!

}

final class PlaceholderWeatherView: UIView {

  enum Theme {
    case blistering
    case hot
    case neutral
    case cold

    var gradientColors: (light: UIColor, dark: UIColor) {
      switch self {
      case .blistering:
        return (.init(rgb: (254, 229, 207)), .init(rgb: (253, 191, 132)))
      case .hot:
        return (.init(rgb: (254, 212, 171)), .init(rgb: (255, 240, 233)))
      case .neutral:
        return (.init(rgb: (226, 232, 254)), .init(rgb: (255, 249, 255)))
      case .cold:
        return (.init(rgb: (253, 194, 164)), .init(rgb: (226, 232, 254)))
      }
    }
  }

  override static var layerClass: AnyClass { return CAGradientLayer.self }

}

struct PlaceholderWeatherViewModel {

}

fileprivate extension UIColor {

  convenience init(rgb: (Int, Int, Int), alpha: CGFloat = 1.0) {
    let red: CGFloat = CGFloat(rgb.0) / 255.0
    let green: CGFloat = CGFloat(rgb.1) / 255.0
    let blue: CGFloat = CGFloat(rgb.2) / 255.0

    self.init(red: red, green: green, blue: blue, alpha: alpha)
  }

}
{'fraction_non_alphanumeric': 0.11049107142857142, 'fraction_numerical': 0.05412946428571429, 'mean_word_length': 3.5050251256281406, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4829122', 'n_tokens_mistral': 667, 'n_tokens_neox': 567, 'n_words': 181}