<commit_before>//
//  TvViewController.swift
//  Remocon
//
//  Created by <NAME> on 2015/05/23.
//  Copyright (c) 2015年 <NAME>. All rights reserved.
//

import UIKit

class TvViewController: UIViewController {

    // MARK: - Properties -
    lazy fileprivate var tvView: TvView = self.createTvView()
    lazy fileprivate var signal: IremoconSignal = self.createIremoconSignal()

    private var isHiddenHomeIndicator: Bool = true

    // MARK: - Life cycle events -
    override func viewDidLoad() {
        super.viewDidLoad()
        self.initGradientBackground()
        self.view.addSubview(tvView)
        self.initNavigationItem()

        if #available(iOS 11, *) { setNeedsUpdateOfHomeIndicatorAutoHidden()  }
    }

    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        self.layoutTvView()

        self.tvView.delegate = self
    }

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)

        self.checkConnectionReachability()
    }

    // MARK: - Create subviews -
    fileprivate func createTvView() -> TvView {
        return TvView(frame: .zero)<commit_msg>Show HomeIndicator<commit_after>//
//  TvViewController.swift
//  Remocon
//
//  Created by <NAME> on 2015/05/23.
//  Copyright (c) 2015年 <NAME>. All rights reserved.
//

import UIKit

class TvViewController: UIViewController {

    // MARK: - Properties -
    lazy fileprivate var tvView: TvView = self.createTvView()
    lazy fileprivate var signal: IremoconSignal = self.createIremoconSignal()

    private var isHiddenHomeIndicator: Bool = true

    // MARK: - Life cycle events -
    override func viewDidLoad() {
        super.viewDidLoad()
        self.initGradientBackground()
        self.view.addSubview(tvView)
        self.initNavigationItem()
    }

    override func viewDidLayoutSubviews() {
        super.viewDidLayoutSubviews()
        self.layoutTvView()

        self.tvView.delegate = self
    }

    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)

        self.checkConnectionReachability()
    }

    // MARK: - Create subviews -
    fileprivate func createTvView() -> TvView {
        return TvView(frame: .zero)
{'fraction_non_alphanumeric': 0.10116906474820143, 'fraction_numerical': 0.011690647482014389, 'mean_word_length': 2.6655683690280068, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '3602542', 'n_tokens_mistral': 708, 'n_tokens_neox': 654, 'n_words': 152}