<commit_before>//
//  ViewController.swift
//  MetalLogo view controller
//
//  Created by <NAME> on 05/03/2016.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import MetalKit

class ViewController: NSViewController, MTKViewDelegate {

    private var metalView: MTKView { get { return self.view as! MTKView } }
    
    private let renderer = MetalRenderer()

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.metalView.device = renderer.device
        self.metalView.delegate = self
    }

    override var representedObject: AnyObject? {
        didSet {
        // Update the view, if already loaded.
        }
    }

    func drawInMTKView(view: MTKView) {
        guard viewDrawable = view.currentDrawable else { return }
        
        self.renderer.drawInView(viewDrawable)
    }
}

<commit_msg>[OS X] Build fix<commit_after>//
//  ViewController.swift
//  MetalLogo view controller
//
//  Created by <NAME> on 05/03/2016.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import MetalKit

class ViewController: NSViewController, MTKViewDelegate {

    private var metalView: MTKView { get { return self.view as! MTKView } }
    
    private let renderer = MetalRenderer()

    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.metalView.device = renderer.device
        self.metalView.delegate = self
    }

    override var representedObject: AnyObject? {
        didSet {
        // Update the view, if already loaded.
        }
    }

    func drawInMTKView(view: MTKView) {
        guard let viewDrawable = view.currentDrawable else { return }
        
        self.renderer.drawInView(viewDrawable)
    }
    
    func mtkView(view: MTKView, drawableSizeWillChange size: CGSize) {}
}


{'fraction_non_alphanumeric': 0.09403153153153153, 'fraction_numerical': 0.013513513513513514, 'mean_word_length': 2.3591682419659734, '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': '3005325', 'n_tokens_mistral': 552, 'n_tokens_neox': 520, 'n_words': 138}