<commit_before>//
//  TableViewController.swift
//  AwesomeMedia_Example
//
//  Created by <NAME> on 4/4/18.
//  Copyright © 2018 CocoaPods. All rights reserved.
//

import UIKit
import AwesomeMedia

enum MediaType: String {
    case video = "ninja"
}

class TableViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        AwesomeMedia.registerVideoCell(to: tableView, withIdentifier: MediaType.video.rawValue)
    }

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        
        tableView.reloadData()
    }
    
    // MARK: - Table view data source

    override func numberOfSections(in tableView: UITableView) -> Int {
        return 1
    }

    override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 1
    }

    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCell(withIdentifier: MediaType.video.rawValue, for: indexPath)

        return cell
    }
    
    override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
        if let cell = cell as? AwesomeMediaVideoTableViewCell {
            let mediaParams: AwesomeMediaParams = [
                .url: AwesomeMediaManager.testVideoURL,
                .coverUrl: "https://thumbs.dreamstime.com/z/awesome-word-cloud-explosion-background-51481417.jpg"]
            cell.configure(withMediaParams: mediaParams, toggleFullscreen: {
                let viewController = AwesomeMediaVideoViewController.newInstance
                viewController.mediaParams = mediaParams
                
                self.present(viewController, animated: true, completion: {
                    
                })
            })
        }
    }

    override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
        return AwesomeMediaVideoTableViewCell.defaultSize.height
    }

}<commit_msg>Added title and author for test<commit_after>//
//  TableViewController.swift
//  AwesomeMedia_Example
//
//  Created by <NAME> on 4/4/18.
//  Copyright © 2018 CocoaPods. All rights reserved.
//

import UIKit
import AwesomeMedia

enum MediaType: String {
    case video = "ninja"
}

class TableViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        AwesomeMedia.registerVideoCell(to: tableView, withIdentifier: MediaType.video.rawValue)
    }

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        
        tableView.reloadData()
    }
    
    // MARK: - Table view data source

    override func numberOfSections(in tableView: UITableView) -> Int {
        return 1
    }

    override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 1
    }

    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCell(withIdentifier: MediaType.video.rawValue, for: indexPath)

        return cell
    }
    
    override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
        if let cell = cell as? AwesomeMediaVideoTableViewCell {
            let mediaParams: AwesomeMediaParams = [
                .url: AwesomeMediaManager.testVideoURL,
                .coverUrl: "https://thumbs.dreamstime.com/z/awesome-word-cloud-explosion-background-51481417.jpg",
                .author: "<NAME>",
                .title: "WildFit"]
            cell.configure(withMediaParams: mediaParams, toggleFullscreen: {
                let viewController = AwesomeMediaVideoViewController.newInstance
                viewController.mediaParams = mediaParams
                
                self.present(viewController, animated: true, completion: {
                    
                })
            })
        }
    }

    override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
        return AwesomeMediaVideoTableViewCell.defaultSize.height
    }

}
{'fraction_non_alphanumeric': 0.08173750583839327, 'fraction_numerical': 0.008407286314806165, 'mean_word_length': 2.5164203612479477, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 14, 'https://': 2, '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': '4731026', 'n_tokens_mistral': 1245, 'n_tokens_neox': 1119, 'n_words': 271}