<commit_before>//
//  CollapseStaticHeaderView.swift
//  PageTabBarController
//
//  Created by <NAME> on 20/10/2017.
//  Copyright © 2017 com.mingloan. All rights reserved.
//

import Foundation
import UIKit

class CollapseStaticHeaderView: UICollectionReusableView {
    
    private(set) var contentView: UIView?
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        backgroundColor = UIColor.white.withAlphaComponent(0.5)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
//    override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
//        return nil
//    }
//
//    override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
//        <#code#>
//    }
    
    func configureWithContentView(_ view: UIView?) {
        contentView?.removeFromSuperview()
        
        contentView = view
        guard let contentView = contentView else { return }
        
        addSubview(contentView)
        contentView.translatesAutoresizingMaskIntoConstraints = false
        NSLayoutConstraint.activate([contentView.topAnchor.constraint(equalTo: topAnchor),
                                     contentView.bottomAnchor.constraint(equalTo: bottomAnchor),<commit_msg>remove debug codes<commit_after>//
//  CollapseStaticHeaderView.swift
//  PageTabBarController
//
//  Created by <NAME> on 20/10/2017.
//  Copyright © 2017 com.mingloan. All rights reserved.
//

import Foundation
import UIKit

class CollapseStaticHeaderView: UICollectionReusableView {
    
    private(set) var contentView: UIView?
    
    override init(frame: CGRect) {
        super.init(frame: frame)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
//    override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
//        return nil
//    }
//
//    override func point(inside point: CGPoint, with event: UIEvent?) -> Bool {
//        <#code#>
//    }
    
    func configureWithContentView(_ view: UIView?) {
        contentView?.removeFromSuperview()
        
        contentView = view
        guard let contentView = contentView else { return }
        
        addSubview(contentView)
        contentView.translatesAutoresizingMaskIntoConstraints = false
        NSLayoutConstraint.activate([contentView.topAnchor.constraint(equalTo: topAnchor),
                                     contentView.bottomAnchor.constraint(equalTo: bottomAnchor),
{'fraction_non_alphanumeric': 0.10082063305978899, 'fraction_numerical': 0.01016021883548261, 'mean_word_length': 2.5213204951856945, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6647914', 'n_tokens_mistral': 745, 'n_tokens_neox': 711, 'n_words': 165}