<commit_before>//
//  ACBInfoPanelViewController.swift
//  ACBInfoPanel
//
//  Created by <NAME> on 8/9/15.
//  Copyright (c) 2015 AppCookbook. All rights reserved.
//

import UIKit

public class ACBInfoPanelViewController: UIViewController {
    // MARK: Types
    private enum AvatarTag: Int {
        case Alec = 1
        case Patrick = 2
    }
    
    // MARK: Properties
    public var ingredient: String = "$INGREDIENT"
    @IBOutlet internal var contentLabel: UILabel!
    
    // MARK: Initializers
    public convenience init() {
        self.init(nibName: "ACBInfoPanelViewController", bundle: nil)
    }
    
    // MARK: Lifecycle
    public override func viewDidLoad() {
        self.contentLabel.text = self.contentLabel.text?.stringByReplacingOccurrencesOfString("$INGREDIENT",
            withString: self.ingredient,
            options: NSStringCompareOptions.BackwardsSearch,
            range: nil)
    }
    
    // MARK: Responders
    @IBAction internal func headerWasPressed(sender: UIButton!) {
        UIApplication.sharedApplication().openURL(NSURL.cookbookInfoURL)
    }
    <commit_msg>bundleForClass?<commit_after>//
//  ACBInfoPanelViewController.swift
//  ACBInfoPanel
//
//  Created by <NAME> on 8/9/15.
//  Copyright (c) 2015 AppCookbook. All rights reserved.
//

import UIKit

public class ACBInfoPanelViewController: UIViewController {
    // MARK: Types
    private enum AvatarTag: Int {
        case Alec = 1
        case Patrick = 2
    }
    
    // MARK: Properties
    public var ingredient: String = "$INGREDIENT"
    @IBOutlet internal var contentLabel: UILabel!
    
    // MARK: Initializers
    public convenience init() {
        self.init(nibName: "ACBInfoPanelViewController", bundle: NSBundle(forClass: self.dynamicType))
    }
    
    // MARK: Lifecycle
    public override func viewDidLoad() {
        self.contentLabel.text = self.contentLabel.text?.stringByReplacingOccurrencesOfString("$INGREDIENT",
            withString: self.ingredient,
            options: NSStringCompareOptions.BackwardsSearch,
            range: nil)
    }
    
    // MARK: Responders
    @IBAction internal func headerWasPressed(sender: UIButton!) {
        UIApplication.sharedApplication().openURL(NSURL.cookbookInfoURL)
    }
    
{'fraction_non_alphanumeric': 0.09651828999559277, 'fraction_numerical': 0.00881445570736007, 'mean_word_length': 2.679092382495948, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6740018', 'n_tokens_mistral': 707, 'n_tokens_neox': 652, 'n_words': 153}