<commit_before>//
//  PlayViewController.swift
//  NowPlaying
//
//  Created by <NAME> on 2021/12/31.
//

import RxSwift
import ScrollFlowLabel
import UIKit

final class PlayViewController: UIViewController {

    // MARK: - Dependency
    typealias Dependency = PlayViewModelType

    // MARK: - Properties
    private let viewModel: PlayViewModelType
    private let disposeBag = DisposeBag()

    @IBOutlet private var coverImageView: UIImageView!
    @IBOutlet private var songNameLabel: ScrollFlowLabel!
    @IBOutlet private var artistNameLabel: ScrollFlowLabel!
    @IBOutlet private var backButton: UIButton!
    @IBOutlet private var playButton: UIButton!
    @IBOutlet private var forwardButton: UIButton!
    @IBOutlet private var gearButton: UIButton!
    @IBOutlet private var mastodonButton: UIButton! {
        didSet {
            mastodonButton.imageView?.contentMode = .scaleAspectFit
            mastodonButton.contentHorizontalAlignment = .fill
            mastodonButton.contentVerticalAlignment = .fill
        }
    }
    @IBOutlet private var twitterButton: UIButton! {
        didSet {
            twitterButton.imageView?.contentMode = .scaleAspectFit
            twitterButton.contentHorizontalAlignment = .fill
            twitterButton.contentVerticalAlignment = .fill
        }
    }

    // MARK: - Initialize
    init(dependency: Dependency) {
        self.viewModel = dependency
        super.init(nibName: "PlayViewController", bundle: .main)
    }

    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    // MARK: - Life Cycle
    override func viewDidLoad() {
        super.viewDidLoad()
        bind(to: viewModel)
    }
}

// MARK: - Private method
private extension PlayViewController {

    func bind(to viewModel: PlayViewModelType) {
        // カバー写真<commit_msg>This is swiftlint test commit<commit_after>//
//  PlayViewController.swift
//  NowPlaying
//
//  Created by <NAME> on 2021/12/31.
//

import RxSwift
import ScrollFlowLabel
import UIKit

final class PlayViewController: UIViewController {

    // MARK: - Dependency
    typealias Dependency = PlayViewModelType

    // MARK: - Properties
    private let viewModel: PlayViewModelType
    private let disposeBag = DisposeBag()

    @IBOutlet private var coverImageView: UIImageView!
    @IBOutlet private var songNameLabel: ScrollFlowLabel!
    @IBOutlet private var artistNameLabel: ScrollFlowLabel!
    @IBOutlet private var backButton: UIButton!
    @IBOutlet private var playButton: UIButton!
    @IBOutlet private var forwardButton: UIButton!
    @IBOutlet private var gearButton: UIButton!
    @IBOutlet private var mastodonButton: UIButton! {
        didSet {
            mastodonButton.imageView?.contentMode = .scaleAspectFit
            mastodonButton.contentHorizontalAlignment = .fill
            mastodonButton.contentVerticalAlignment = .fill
        }
    }
    @IBOutlet private var twitterButton: UIButton! {
        didSet {
            twitterButton.imageView?.contentMode = .scaleAspectFit
            twitterButton.contentHorizontalAlignment = .fill
            twitterButton.contentVerticalAlignment = .fill
        }
    }


    // MARK: - Initialize
    init(dependency: Dependency) {
        self.viewModel = dependency
        super.init(nibName: "PlayViewController", bundle: .main)
    }

    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    // MARK: - Life Cycle
    override func viewDidLoad() {
        super.viewDidLoad()
        bind(to: viewModel)
    }
}

// MARK: - Private method
private extension PlayViewController {

    func bind(to viewModel: PlayViewModelType) {
        // カバー写真
{'fraction_non_alphanumeric': 0.08152319656744436, 'fraction_numerical': 0.004290694556181282, 'mean_word_length': 2.7983706720977595, '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': '7058914', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1013, 'n_words': 263}