<commit_before>//
//  ViewController.swift
//  testApplicationCalendar
//
//  Created by <NAME> on 2016-03-01.
//  Copyright © 2016 OS-Tech. All rights reserved.
//

import JTAppleCalendar

class ViewController: UIViewController {

    
    @IBOutlet weak var calendarView: JTAppleCalendarView!
    @IBOutlet weak var monthLabel: UILabel!
    let formatter = NSDateFormatter()
    let testCalendar: NSCalendar! = NSCalendar(calendarIdentifier: NSCalendarIdentifierGregorian)
    
    @IBAction func changeToThreeRows(sender: UIButton) {
        let date = formatter.dateFromString("2016 04 11")
        calendarView.changeNumberOfRowsPerMonthTo(3, withFocusDate: date)
    }
    
    @IBAction func changeToSixRows(sender: UIButton) {
        let date = formatter.dateFromString("2016 04 11")
        calendarView.changeNumberOfRowsPerMonthTo(6, withFocusDate: date)
    }
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        formatter.dateFormat = "yyyy MM dd"
        testCalendar.timeZone = NSTimeZone(abbreviation: "GMT")!

        calendarView.dataSource = self
        calendarView.delegate = self
        
        calendarView.registerCellViewXib(fileName: "CellView") // Registering your cell is manditory
        calendarView.registerHeaderViewXibs(fileNames: ["PinkSectionHeaderView", "WhiteSectionHeaderView"]) // headers are Optional. You can register multiple if you want.
        
        // The following default code can be removed since they are already the default.
        // They are only included here so that you can know what properties can be configured
        calendarView.direction = .Horizontal                       // default is horizontal<commit_msg>Updated sample code to disable headers<commit_after>//
//  ViewController.swift
//  testApplicationCalendar
//
//  Created by <NAME> on 2016-03-01.
//  Copyright © 2016 OS-Tech. All rights reserved.
//

import JTAppleCalendar

class ViewController: UIViewController {

    
    @IBOutlet weak var calendarView: JTAppleCalendarView!
    @IBOutlet weak var monthLabel: UILabel!
    let formatter = NSDateFormatter()
    let testCalendar: NSCalendar! = NSCalendar(calendarIdentifier: NSCalendarIdentifierGregorian)
    
    @IBAction func changeToThreeRows(sender: UIButton) {
        let date = formatter.dateFromString("2016 04 11")
        calendarView.changeNumberOfRowsPerMonthTo(3, withFocusDate: date)
    }
    
    @IBAction func changeToSixRows(sender: UIButton) {
        let date = formatter.dateFromString("2016 04 11")
        calendarView.changeNumberOfRowsPerMonthTo(6, withFocusDate: date)
    }
    
    
    override func viewDidLoad() {
        super.viewDidLoad()
        formatter.dateFormat = "yyyy MM dd"
        testCalendar.timeZone = NSTimeZone(abbreviation: "GMT")!

        calendarView.dataSource = self
        calendarView.delegate = self
        
        calendarView.registerCellViewXib(fileName: "CellView") // Registering your cell is manditory
        
        // Enable the following code line to show headers. There are other lines of code to uncomment as well
         calendarView.registerHeaderViewXibs(fileNames: ["PinkSectionHeaderView", "WhiteSectionHeaderView"]) // headers are Optional. You can register multiple if you want.
        
        // The following default code can be removed since they are already the default.
        // They are only included here so that you can know what properties can be configured
        calendarView.direction = .Horizontal                       // default is horizontal
{'fraction_non_alphanumeric': 0.07554057848918844, 'fraction_numerical': 0.016849199663016005, 'mean_word_length': 2.993273542600897, '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': '5990947', 'n_tokens_mistral': 1015, 'n_tokens_neox': 932, 'n_words': 282}