<commit_before>//
//  SectionHeaderView.swift
//  Valio
//
//  Created by <NAME> on 6/6/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import UIKit

class SectionHeaderView: UIVisualEffectView {

	@lazy var titleLabel: UILabel = {
		let label = UILabel()
		label.setTranslatesAutoresizingMaskIntoConstraints(false)
		label.font = UIFont(name: "Avenir", size: 18)
		label.textColor = UIColor(red: 0.514, green: 0.525, blue: 0.541, alpha: 1)
		return label
	}()
	
	@lazy var lineView: UIView = {
		let view = UIView()
		view.setTranslatesAutoresizingMaskIntoConstraints(false)
		view.backgroundColor = UIColor(red: 0.906, green: 0.914, blue: 0.918, alpha: 1)
		return view
	}()
	
	convenience init() {
		self.init(effect: UIBlurEffect(style: .ExtraLight))
	}
	
    init(effect: UIVisualEffect) {
        super.init(effect: UIBlurEffect(style: .Light))
		
		contentView.addSubview(titleLabel)
		contentView.addSubview(lineView)
		
		let views = [
			"titleLabel": titleLabel,
			"lineView": lineView
		]
		
		let metrics = [
			"verticalMargin": 8<commit_msg>Fix initializer<commit_after>//
//  SectionHeaderView.swift
//  Valio
//
//  Created by <NAME> on 6/6/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import UIKit

class SectionHeaderView: UIVisualEffectView {

	@lazy var titleLabel: UILabel = {
		let label = UILabel()
		label.setTranslatesAutoresizingMaskIntoConstraints(false)
		label.font = UIFont(name: "Avenir", size: 18)
		label.textColor = UIColor(red: 0.514, green: 0.525, blue: 0.541, alpha: 1)
		return label
	}()
	
	@lazy var lineView: UIView = {
		let view = UIView()
		view.setTranslatesAutoresizingMaskIntoConstraints(false)
		view.backgroundColor = UIColor(red: 0.906, green: 0.914, blue: 0.918, alpha: 1)
		return view
	}()
	
	convenience init() {
		self.init(effect: UIBlurEffect(style: .Light))
	}
	
    init(effect: UIVisualEffect) {
        super.init(effect: effect)
		
		contentView.addSubview(titleLabel)
		contentView.addSubview(lineView)
		
		let views = [
			"titleLabel": titleLabel,
			"lineView": lineView
		]
		
		let metrics = [
			"verticalMargin": 8
{'fraction_non_alphanumeric': 0.12961210974456008, 'fraction_numerical': 0.03500473036896878, 'mean_word_length': 3.6792035398230087, 'pattern_counts': {'":': 6, '<': 7, '<?xml version=': 0, '>': 7, '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': '6933123', 'n_tokens_mistral': 876, 'n_tokens_neox': 762, 'n_words': 169}