<commit_before>//
// Created by mminami on 2017/10/28.
// Copyright (c) 2017 mminami. All rights reserved.
//

import Foundation
import UIKit

class MovieViewController: UIViewController {
    weak var moviePlayerView: MoviePlayerView!

    var topConstraint: NSLayoutConstraint!
    var leadConstraint: NSLayoutConstraint!
    var trailingConstraint: NSLayoutConstraint!
    var bottomConstraint: NSLayoutConstraint!

    var movieItem: MovieItem?

    private lazy var closeButton: UIBarButtonItem = {
        return UIBarButtonItem(
                title: "Close",
                style: .plain,
                target: self,
                action: #selector(type(of: self).didTapCloseButton(_:))
        )
    }()

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        navigationItem.leftBarButtonItem = closeButton

        createMoviePlayerView()

        layoutMoviePlayerView()
    }

    func createMoviePlayerView() {
        let moviePlayerView = MoviePlayerView()
        moviePlayerView.dataSource = self
        moviePlayerView.delegate = self
        self.view.addSubview(moviePlayerView)<commit_msg>Change background color to black in the movie page<commit_after>//
// Created by mminami on 2017/10/28.
// Copyright (c) 2017 mminami. All rights reserved.
//

import Foundation
import UIKit

class MovieViewController: UIViewController {
    weak var moviePlayerView: MoviePlayerView!

    var topConstraint: NSLayoutConstraint!
    var leadConstraint: NSLayoutConstraint!
    var trailingConstraint: NSLayoutConstraint!
    var bottomConstraint: NSLayoutConstraint!

    var movieItem: MovieItem?

    private lazy var closeButton: UIBarButtonItem = {
        return UIBarButtonItem(
                title: "Close",
                style: .plain,
                target: self,
                action: #selector(type(of: self).didTapCloseButton(_:))
        )
    }()

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        navigationItem.leftBarButtonItem = closeButton

        view.backgroundColor = UIColor.black

        createMoviePlayerView()

        layoutMoviePlayerView()
    }

    func createMoviePlayerView() {
        let moviePlayerView = MoviePlayerView()
        moviePlayerView.dataSource = self
        moviePlayerView.delegate = self
        self.view.addSubview(moviePlayerView)
{'fraction_non_alphanumeric': 0.07425555974368639, 'fraction_numerical': 0.009046362608367886, 'mean_word_length': 2.6708160442600275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2118636', 'n_tokens_mistral': 729, 'n_tokens_neox': 669, 'n_words': 179}