<commit_before>//: Playground - noun: a place where people can play

import UIKit

// Gregorian era enumeration
enum GregorianEra: Int{
    case BC = 0
    case AD
}

// Create a date in BC era
var date = NSCalendar.currentCalendar().dateWithEra(GregorianEra.BC.rawValue, year: 2015, month: 08, day: 25, hour: 20, minute: 22, second: 1, nanosecond: 22)

if date != nil{
    println("The date is \(date)")
}else{
    println("Error")
}


// Create a date in AD era
date = NSCalendar.currentCalendar().dateWithEra(GregorianEra.AD.rawValue, year: 2015, month: 08, day: 25, hour: 20, minute: 22, second: 1, nanosecond: 22)

if date != nil{
    println("The date is \(date)")
}else{
    println("Error")
}




<commit_msg>Adding minutes to a date<commit_after>//: Playground - noun: a place where people can play

import UIKit

// Gregorian era enumeration
enum GregorianEra: Int{
    case BC = 0
    case AD
}

// Create a date in BC era
var date = NSCalendar.currentCalendar().dateWithEra(GregorianEra.BC.rawValue, year: 2015, month: 08, day: 25, hour: 20, minute: 22, second: 1, nanosecond: 22)

if date != nil{
    println("The date is \(date)")
}else{
    println("Error")
}


// Create a date in AD era
date = NSCalendar.currentCalendar().dateWithEra(GregorianEra.AD.rawValue, year: 2015, month: 08, day: 25, hour: 20, minute: 22, second: 1, nanosecond: 22)

if date != nil{
    println("The date is \(date)")
}else{
    println("Error")
}

// Adding 10 minutes to the current date
let now = NSDate()

let tenMinutesAfter = NSCalendar.currentCalendar().dateByAddingUnit(NSCalendarUnit.CalendarUnitMinute, value: 10, toDate: now, options: NSCalendarOptions.MatchNextTime)
println("Now: \(now) and ten minutes after: \(tenMinutesAfter)")





{'fraction_non_alphanumeric': 0.13095921883974726, 'fraction_numerical': 0.03790924755887421, 'mean_word_length': 4.034682080924855, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7047698', 'n_tokens_mistral': 690, 'n_tokens_neox': 584, 'n_words': 200}