<commit_before>//
//  Division.swift
//  GB2260
//
//  Created by <NAME> on 4/18/16.
//

public struct Division {
  typealias LazyEvaluation = () -> Division?

  /// The name of this `Division`
  public let name: String
  /// The code of this `Division`
  public let code: String
  /// The GB2206 revision of this `Division`
  public let revision: String
  /// The possible province this `Division` belongs to
  public var province: Division? {
    return getProvince()
  }
  /// The possible prefecture this `Division` belongs to
  public var prefecture: Division? {
    return getPrefecture()
  }

  let getProvince: LazyEvaluation
  let getPrefecture: LazyEvaluation
}

extension Division: Equatable { }

public func ==(lhs: Division, rhs: Division) -> Bool {
  return lhs.code == rhs.code && lhs.revision == rhs.revision
}

extension Division: Comparable { }

public func <(lhs: Division, rhs: Division) -> Bool {
  return lhs.code < rhs.code
}

public func <=(lhs: Division, rhs: Division) -> Bool {
  return lhs.code <= rhs.code
}

public func >=(lhs: Division, rhs: Division) -> Bool {
  return lhs.code >= rhs.code
}

public func >(lhs: Division, rhs: Division) -> Bool {
  return lhs.code >= rhs.code
}

extension Division: CustomStringConvertible {
  public var description: String {
    return [
      province?.name ?? "",
      prefecture?.name ?? "",
      name
    ].filter { !$0.isEmpty }.joinWithSeparator(" ")
  }
}

extension Division: CustomDebugStringConvertible {
  public var debugDescription: String {
    return [
      "<GB/T 2260-\(revision)>",
      code,
      description
      ].joinWithSeparator(" ")
  }
}
<commit_msg>fix: Division comparable function '>'<commit_after>//
//  Division.swift
//  GB2260
//
//  Created by <NAME> on 4/18/16.
//

public struct Division {
  typealias LazyEvaluation = () -> Division?

  /// The name of this `Division`
  public let name: String
  /// The code of this `Division`
  public let code: String
  /// The GB2206 revision of this `Division`
  public let revision: String
  /// The possible province this `Division` belongs to
  public var province: Division? {
    return getProvince()
  }
  /// The possible prefecture this `Division` belongs to
  public var prefecture: Division? {
    return getPrefecture()
  }

  let getProvince: LazyEvaluation
  let getPrefecture: LazyEvaluation
}

extension Division: Equatable { }

public func ==(lhs: Division, rhs: Division) -> Bool {
  return lhs.code == rhs.code && lhs.revision == rhs.revision
}

extension Division: Comparable { }

public func <(lhs: Division, rhs: Division) -> Bool {
  return lhs.code < rhs.code
}

public func <=(lhs: Division, rhs: Division) -> Bool {
  return lhs.code <= rhs.code
}

public func >=(lhs: Division, rhs: Division) -> Bool {
  return lhs.code >= rhs.code
}

public func >(lhs: Division, rhs: Division) -> Bool {
  return lhs.code > rhs.code
}

extension Division: CustomStringConvertible {
  public var description: String {
    return [
      province?.name ?? "",
      prefecture?.name ?? "",
      name
    ].filter { !$0.isEmpty }.joinWithSeparator(" ")
  }
}

extension Division: CustomDebugStringConvertible {
  public var debugDescription: String {
    return [
      "<GB/T 2260-\(revision)>",
      code,
      description
      ].joinWithSeparator(" ")
  }
}

{'fraction_non_alphanumeric': 0.12842105263157894, 'fraction_numerical': 0.010827067669172932, 'mean_word_length': 3.091020910209102, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 28, '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': '637152', 'n_tokens_mistral': 1075, 'n_tokens_neox': 1032, 'n_words': 322}