<commit_before>//
// Created by <NAME> on 25.08.18.
// Copyright (c) 2018 <NAME>. All rights reserved.
//

import Cocoa

public struct Position: CustomStringConvertible, Equatable {

  public static let zero = Position(row: 0, column: 0)
  public static let null = Position(row: -1, column: -1)

  public static func ==(left: Position, right: Position) -> Bool {
    if left.row != right.row { return false }
    if left.column != right.column { return false }

    return true
  }

  public var row: Int
  public var column: Int

  public var description: String {
    return "Position<\(self.row):\(self.column)>"
  }
}

struct Size: CustomStringConvertible, Equatable {

  static let zero = Size(width: 0, height: 0)

  static func ==(left: Size, right: Size) -> Bool {
    return left.width == right.width && left.height == right.height
  }

  var width: Int
  var height: Int

  var description: String {
    return "Size<\(self.width):\(self.height)>"
  }
}

struct Region: CustomStringConvertible {
<commit_msg>GH-666 Make init() of Position public<commit_after>//
// Created by <NAME> on 25.08.18.
// Copyright (c) 2018 <NAME>. All rights reserved.
//

import Cocoa

public struct Position: CustomStringConvertible, Equatable {

  public static let zero = Position(row: 0, column: 0)
  public static let null = Position(row: -1, column: -1)

  public static func ==(left: Position, right: Position) -> Bool {
    if left.row != right.row { return false }
    if left.column != right.column { return false }

    return true
  }

  public var row: Int
  public var column: Int

  public init(row: Int, column: Int) {
    self.row = row
    self.column = column
  }

  public var description: String {
    return "Position<\(self.row):\(self.column)>"
  }
}

struct Size: CustomStringConvertible, Equatable {

  static let zero = Size(width: 0, height: 0)

  static func ==(left: Size, right: Size) -> Bool {
    return left.width == right.width && left.height == right.height
  }

  var width: Int
  var height: Int

  var description: String {
    return "Size<\(self.width):\(self.height)>"
  }
}

struct Region: CustomStringConvertible {

{'fraction_non_alphanumeric': 0.12942271880819367, 'fraction_numerical': 0.016294227188081937, 'mean_word_length': 3.2220039292730847, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '5276761', 'n_tokens_mistral': 716, 'n_tokens_neox': 659, 'n_words': 228}