<commit_before>import Prelude
import UIKit

public protocol UIViewControllerProtocol: NSObjectProtocol, UITraitEnvironmentProtocol, LensObject {
  var navigationController: UINavigationController? { get }
  var navigationItem: UINavigationItem { get }
  var title: String? { get set }
  var view: UIView! { get set }
}

extension UIViewController: UIViewControllerProtocol {}

public extension LensHolder where Object: UIViewControllerProtocol {
  public var navigationController: Lens<Object, UINavigationController?> {
    return Lens(
      view: { $0.navigationController },
      set: { $1 }
    )
  }

  public var navigationItem: Lens<Object, UINavigationItem> {
    return Lens(
      view: { $0.navigationItem },
      set: { $1 }
    )
  }

  public var title: Lens<Object, String?> {
    return Lens(
      view: { $0.title },
      set: { $1.title = $0; return $1 }
    )
  }
<commit_msg>Remove redundant NSObjectProtocol conformance (#81)<commit_after>import Prelude
import UIKit

public protocol UIViewControllerProtocol: UITraitEnvironmentProtocol, LensObject {
  var navigationController: UINavigationController? { get }
  var navigationItem: UINavigationItem { get }
  var title: String? { get set }
  var view: UIView! { get set }
}

extension UIViewController: UIViewControllerProtocol {}

public extension LensHolder where Object: UIViewControllerProtocol {
  public var navigationController: Lens<Object, UINavigationController?> {
    return Lens(
      view: { $0.navigationController },
      set: { $1 }
    )
  }

  public var navigationItem: Lens<Object, UINavigationItem> {
    return Lens(
      view: { $0.navigationItem },
      set: { $1 }
    )
  }

  public var title: Lens<Object, String?> {
    return Lens(
      view: { $0.title },
      set: { $1.title = $0; return $1 }
    )
  }

{'fraction_non_alphanumeric': 0.0989010989010989, 'fraction_numerical': 0.00989010989010989, 'mean_word_length': 3.5984848484848486, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4548303', 'n_tokens_mistral': 562, 'n_tokens_neox': 542, 'n_words': 149}