<commit_before>// swiftlint:disable type_name
import Prelude

extension MessageThread {
  public enum lens {
    public static let id = Lens<MessageThread, Int>(
      view: { $0.id },
      set: { MessageThread(backing: $1.backing, closed: $1.closed, id: 0, lastMessage: $1.lastMessage,
        participant: $1.participant, project: $1.project, unreadMessagesCount: $1.unreadMessagesCount) }
    )
  }
}<commit_msg>Added a few lenses. (#134)<commit_after>// swiftlint:disable type_name
import Prelude

extension MessageThread {
  public enum lens {
    public static let id = Lens<MessageThread, Int>(
      view: { $0.id },
      set: { MessageThread(backing: $1.backing, closed: $1.closed, id: 0, lastMessage: $1.lastMessage,
        participant: $1.participant, project: $1.project, unreadMessagesCount: $1.unreadMessagesCount) }
    )

    public static let participant = Lens<MessageThread, User>(
      view: { $0.participant },
      set: { MessageThread(backing: $1.backing, closed: $1.closed, id: $0.id, lastMessage: $1.lastMessage,
        participant: $0, project: $1.project, unreadMessagesCount: $1.unreadMessagesCount) }
    )

    public static let project = Lens<MessageThread, Project>(
      view: { $0.project },
      set: { MessageThread(backing: $1.backing, closed: $1.closed, id: $0.id, lastMessage: $1.lastMessage,
        participant: $1.participant, project: $0, unreadMessagesCount: $1.unreadMessagesCount) }
    )
  }
}
{'fraction_non_alphanumeric': 0.13397790055248618, 'fraction_numerical': 0.024171270718232045, 'mean_word_length': 3.7664473684210527, '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': '1205938', 'n_tokens_mistral': 482, 'n_tokens_neox': 471, 'n_words': 116}