<commit_before>//
//  DrawingViewController.swift
//  Padiddle
//
//  Created by <NAME> on 9/12/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import UIKit

class DrawingViewController: UIViewController {

    private let label = UILabel()

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = .whiteColor()

        let width = CGRectGetWidth(UIScreen.mainScreen().bounds)
        let height = CGRectGetHeight(UIScreen.mainScreen().bounds)

        let longSide = max(width, height)

        view.widthAnchor.constraintEqualToConstant(longSide).active = true
        view.heightAnchor.constraintEqualToConstant(longSide).active = true

        label.text = "Drawing view will go here eventually"
        label.translatesAutoresizingMaskIntoConstraints = false
        view.addSubview(label)

        label.centerXAnchor.constraintEqualToAnchor(view.centerXAnchor).active = true
        label.centerYAnchor.constraintEqualToAnchor(view.centerYAnchor).active = true
    }
}
<commit_msg>Hide drawing view controller debug label unless a flag is set.<commit_after>//
//  DrawingViewController.swift
//  Padiddle
//
//  Created by <NAME> on 9/12/15.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import UIKit

let showDebugLabel = false

class DrawingViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = .whiteColor()

        let width = CGRectGetWidth(UIScreen.mainScreen().bounds)
        let height = CGRectGetHeight(UIScreen.mainScreen().bounds)

        let longSide = max(width, height)

        view.widthAnchor.constraintEqualToConstant(longSide).active = true
        view.heightAnchor.constraintEqualToConstant(longSide).active = true

        if showDebugLabel {
            let label = UILabel()
            label.text = "Drawing view debug label"
            label.translatesAutoresizingMaskIntoConstraints = false
            view.addSubview(label)

            label.centerXAnchor.constraintEqualToAnchor(view.centerXAnchor).active = true
            label.centerYAnchor.constraintEqualToAnchor(view.centerYAnchor).active = true
        }
    }
}

{'fraction_non_alphanumeric': 0.09198542805100182, 'fraction_numerical': 0.00819672131147541, 'mean_word_length': 2.9872958257713247, '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': '6031372', 'n_tokens_mistral': 621, 'n_tokens_neox': 585, 'n_words': 128}