<commit_before>//
//  DepartingPerksViewController.swift
//  Charles
//
//  Created by <NAME> on 6/4/17.
//  Copyright © 2017 Zero Mu, LLC. All rights reserved.
//

import Foundation
import UIKit
import CoreData

class DepartingPerksViewController: PerkStoreCollectionViewController {
    
    @IBOutlet weak var explainationLabel: UILabel!
    
    var departingPerks = [Perk]()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        //setup CoreData
//        _ = setupFetchedResultsController(frcKey: keyUnlockedPerk, entityName: "UnlockedPerk", sortDescriptors: [],  predicate: nil)
//        _ = setupFetchedResultsController(frcKey: keyCurrentScore, entityName: "CurrentScore", sortDescriptors: [],  predicate: nil)
        
        self.collectionView = storeCollectionView
        self.collectionView.dataSource = self
        self.collectionView.delegate = self
        
        perkCollectionViewData = departingPerks
    }
    
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
        self.playerScoreLabel.text = String(describing: score.formattedWithSeparator)
    }
    
    
//    override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
//        
//        let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "perkCell", for: indexPath as IndexPath) as! CustomPerkStoreCollectionViewCell
//        let perk = self.perkCollectionViewData[indexPath.row]
//        
//        cell.characterNameLabel.text = perk.name
//        
//        cell.priceLabel.text = ""
//        
//        
//        cell.loadAppearance(fromPerk: perk)
//        return cell
//    }
    
    @IBAction override func dismissButtonPressed(_ sender: Any) {
        self.dismiss(animated: true, completion: nil)
    }
    
    ///controls which IAPs are displayed.  Should be none
    override func getAppStoreProductsRequest() -> [String] {
        return [String]()
    }
    
}<commit_msg>app store purchases now available in expiring perks store<commit_after>//
//  DepartingPerksViewController.swift
//  Charles
//
//  Created by <NAME> on 6/4/17.
//  Copyright © 2017 Zero Mu, LLC. All rights reserved.
//

import Foundation
import UIKit
import CoreData

class DepartingPerksViewController: PerkStoreCollectionViewController {
    
    @IBOutlet weak var explainationLabel: UILabel!
    
    var departingPerks = [Perk]()
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        //setup CoreData
//        _ = setupFetchedResultsController(frcKey: keyUnlockedPerk, entityName: "UnlockedPerk", sortDescriptors: [],  predicate: nil)
//        _ = setupFetchedResultsController(frcKey: keyCurrentScore, entityName: "CurrentScore", sortDescriptors: [],  predicate: nil)
        
        self.collectionView = storeCollectionView
        self.collectionView.dataSource = self
        self.collectionView.delegate = self
        
        perkCollectionViewData = departingPerks
    }
    
    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        
        self.playerScoreLabel.text = String(describing: score.formattedWithSeparator)
    }
    
    
//    override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
//        
//        let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "perkCell", for: indexPath as IndexPath) as! CustomPerkStoreCollectionViewCell
//        let perk = self.perkCollectionViewData[indexPath.row]
//        
//        cell.characterNameLabel.text = perk.name
//        
//        cell.priceLabel.text = ""
//        
//        
//        cell.loadAppearance(fromPerk: perk)
//        return cell
//    }
    
    @IBAction override func dismissButtonPressed(_ sender: Any) {
        self.dismiss(animated: true, completion: nil)
    }
    
}
{'fraction_non_alphanumeric': 0.09351432880844646, 'fraction_numerical': 0.004022121669180492, 'mean_word_length': 2.6205641492265697, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '7379848', 'n_tokens_mistral': 1150, 'n_tokens_neox': 1131, 'n_words': 242}