<commit_before>#!/usr/bin/python
#Created on 2/3/2014
#Maintained @ 'https://github.com/walshie4/Geeklets'

#Prints the time until an event

from __future__ import print_function
import time

__author__='walshie4'

YEAR = 2014
MONTH = 5
DAY = 19
HOUR = 0
MIN = 0
SEC = 0

daysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
daysInMonthLY = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

def getTimeUntil(event): #must be in secs
    current = time.time()
    return event - current

def computeUnixTime(day, month, year, hour, mins, sec):
    if year < 1970:
        print('Unix time started in 1970 D: Please choose a date before then')
        return -1
    time = (day-1) * 86400 #start with the completed days this month
    for y in range(1970, year): #for each year from 1970
        for m in range(12): #for each month
            if (y+1970) % 4 == 0: #if a leap year
                time += daysInMonthLY[m] * 86400
            else:                                   #add days according the number of days in month
                time += daysInMonth[m] * 86400
    for m in range(month - 1): #account for complete months so far this year<commit_msg>Added some commenting for the config section<commit_after>#!/usr/bin/python
#Created on 2/3/2014
#Maintained @ 'https://github.com/walshie4/Geeklets'

#Prints the time until an event

from __future__ import print_function
import time

__author__='walshie4'

#CONFIG
YEAR = 2014
MONTH = 5
DAY = 19    #set this event time to change the event you are counting down to
HOUR = 0
MIN = 0
SEC = 0
#END CONFIG

daysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
daysInMonthLY = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

def getTimeUntil(event): #must be in secs
    current = time.time()
    return event - current

def computeUnixTime(day, month, year, hour, mins, sec):
    if year < 1970:
        print('Unix time started in 1970 D: Please choose a date before then')
        return -1
    time = (day-1) * 86400 #start with the completed days this month
    for y in range(1970, year): #for each year from 1970
        for m in range(12): #for each month
            if (y+1970) % 4 == 0: #if a leap year
                time += daysInMonthLY[m] * 86400
            else:                                   #add days according the number of days in month
                time += daysInMonth[m] * 86400
    for m in range(month - 1): #account for complete months so far this year
{'fraction_non_alphanumeric': 0.10170178282009724, 'fraction_numerical': 0.08752025931928688, 'mean_word_length': 2.537249283667622, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1295228', 'n_tokens_mistral': 990, 'n_tokens_neox': 800, 'n_words': 333}