<commit_before>import UIKit

class ViewController: UITableViewController, UITableViewDelegate, UITableViewDataSource {
  let SYNCCellIdentifier = "CellID"
  let SYNCReloadTableNotification = "SYNCReloadTableNotification"

  let dataStack: DATAStack!
  var networking: Networking!
  var items = [Data]()

  // MARK: Initializers

  required init(dataStack: DATAStack) {
    super.init(nibName: nil, bundle: nil);

    self.dataStack = dataStack
  }

  required init(coder aDecoder: NSCoder) {
    super.init(nibName: nil, bundle: nil);
  }

  // MARK: View Lifecycle

  override func viewDidLoad() {
    super.viewDidLoad()

    self.title = "AppNet"
    self.tableView.registerClass(UITableViewCell.classForCoder(), forCellReuseIdentifier: SYNCCellIdentifier)
    self.tableView.allowsSelection = false

    self.items = Array()
    fetchCurrentObjects()
  }

  override func viewDidAppear(animated: Bool) {
    super.viewDidAppear(true)

    fetchNewData()
  }

  // MARK: TableView methods

  override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
    return items.count
  }

  override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    var cell = self.tableView.dequeueReusableCellWithIdentifier(SYNCCellIdentifier) as UITableViewCell
    let data = self.items[indexPath.row]

    cell = UITableViewCell(style: UITableViewCellStyle.Subtitle, reuseIdentifier: SYNCCellIdentifier)

    cell.textLabel?.text = data.text
    cell.textLabel?.numberOfLines = 0
    cell.detailTextLabel?.text = data.user.username

    return cell
  }

  // MARK: Networking methods

  func fetchNewData() {
    self.networking = Networking(dataStack: self.dataStack)
    self.networking.fetchNewContent { () -> Void in
      self.fetchCurrentObjects()
    }
  }

  // MARK: Model methods

  func fetchCurrentObjects() {
    let request = NSFetchRequest(entityName: "Data")
    request.sortDescriptors = [NSSortDescriptor(key: "createdAt", ascending: true)]
    self.items = self.dataStack.mainContext.executeFetchRequest(request, error: nil) as Array

    tableView.reloadData()
  }
}
<commit_msg>Remove allowsSelection, is false by default<commit_after>import UIKit

class ViewController: UITableViewController, UITableViewDelegate, UITableViewDataSource {
  let SYNCCellIdentifier = "CellID"
  let SYNCReloadTableNotification = "SYNCReloadTableNotification"

  let dataStack: DATAStack!
  var networking: Networking!
  var items = [Data]()

  // MARK: Initializers

  required init(dataStack: DATAStack) {
    super.init(nibName: nil, bundle: nil);

    self.dataStack = dataStack
  }

  required init(coder aDecoder: NSCoder) {
    super.init(nibName: nil, bundle: nil);
  }

  // MARK: View Lifecycle

  override func viewDidLoad() {
    super.viewDidLoad()

    self.title = "AppNet"
    self.tableView.registerClass(UITableViewCell.classForCoder(), forCellReuseIdentifier: SYNCCellIdentifier)

    self.items = Array()
    fetchCurrentObjects()
  }

  override func viewDidAppear(animated: Bool) {
    super.viewDidAppear(true)

    fetchNewData()
  }

  // MARK: TableView methods

  override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
    return items.count
  }

  override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    var cell = self.tableView.dequeueReusableCellWithIdentifier(SYNCCellIdentifier) as UITableViewCell
    let data = self.items[indexPath.row]

    cell = UITableViewCell(style: UITableViewCellStyle.Subtitle, reuseIdentifier: SYNCCellIdentifier)

    cell.textLabel?.text = data.text
    cell.textLabel?.numberOfLines = 0
    cell.detailTextLabel?.text = data.user.username

    return cell
  }

  // MARK: Networking methods

  func fetchNewData() {
    self.networking = Networking(dataStack: self.dataStack)
    self.networking.fetchNewContent { () -> Void in
      self.fetchCurrentObjects()
    }
  }

  // MARK: Model methods

  func fetchCurrentObjects() {
    let request = NSFetchRequest(entityName: "Data")
    request.sortDescriptors = [NSSortDescriptor(key: "createdAt", ascending: true)]
    self.items = self.dataStack.mainContext.executeFetchRequest(request, error: nil) as Array

    tableView.reloadData()
  }
}

{'fraction_non_alphanumeric': 0.09545768964722158, 'fraction_numerical': 0.0004611482591653217, 'mean_word_length': 4.170441001191895, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5391954', 'n_tokens_mistral': 1392, 'n_tokens_neox': 1282, 'n_words': 281}