<commit_before>#!/usr/bin/env python
# Copyright (c) 2012-2013 Turbulenz Limited

from logging import basicConfig, CRITICAL, INFO, WARNING

import argparse
from urllib3 import connection_from_url
from urllib3.exceptions import HTTPError, SSLError
from simplejson import loads as json_loads, dump as json_dump
from gzip import GzipFile
from zlib import decompress as zlib_decompress
from time import strptime, strftime, gmtime, localtime
from calendar import timegm
from re import compile as re_compile
from sys import stdin, argv
from os import mkdir
from os.path import exists as path_exists, join as path_join, normpath
from getpass import getpass, GetPassWarning
from base64 import urlsafe_b64decode

__version__ = '2.0.1'
__dependencies__ = []


HUB_COOKIE_NAME = 'hub'
HUB_URL = 'https://hub.turbulenz.com/'

DATATYPE_DEFAULT = 'events'
DATATYPE_URL = { 'events': '/dynamic/project/%s/event-log',
                 'users': '/dynamic/project/%s/user-info' }

DAY = 86400
TODAY_START = (timegm(gmtime()) / DAY) * DAY

# pylint: disable=C0301
USERNAME_PATTERN = re_compile('^[a-z0-9]+[a-z0-9-]*$') # usernames
PROJECT_SLUG_PATTERN = re_compile('^[a-zA-Z0-9\-]*$') # game
# pylint: enable=C0301

class DateRange:<commit_msg>Update minor version since the changes are quite large. Comment the DateRange class and fix pylint warning<commit_after>#!/usr/bin/env python
# Copyright (c) 2012-2013 Turbulenz Limited

from logging import basicConfig, CRITICAL, INFO, WARNING

import argparse
from urllib3 import connection_from_url
from urllib3.exceptions import HTTPError, SSLError
from simplejson import loads as json_loads, dump as json_dump
from gzip import GzipFile
from zlib import decompress as zlib_decompress
from time import strptime, strftime, gmtime
from calendar import timegm
from re import compile as re_compile
from sys import stdin, argv
from os import mkdir
from os.path import exists as path_exists, join as path_join, normpath
from getpass import getpass, GetPassWarning
from base64 import urlsafe_b64decode

__version__ = '2.1.0'
__dependencies__ = []


HUB_COOKIE_NAME = 'hub'
HUB_URL = 'https://hub.turbulenz.com/'

DATATYPE_DEFAULT = 'events'
DATATYPE_URL = { 'events': '/dynamic/project/%s/event-log',
                 'users': '/dynamic/project/%s/user-info' }

DAY = 86400
TODAY_START = (timegm(gmtime()) / DAY) * DAY

# pylint: disable=C0301
USERNAME_PATTERN = re_compile('^[a-z0-9]+[a-z0-9-]*$') # usernames
PROJECT_SLUG_PATTERN = re_compile('^[a-zA-Z0-9\-]*$') # game
# pylint: enable=C0301

class DateRange:
    """Maintain a time range between two dates. If only a start time is given it will generate a 24 hour period
       starting at that time. Defaults to the start of the current day if no times are given"""
{'fraction_non_alphanumeric': 0.09562043795620438, 'fraction_numerical': 0.027007299270072994, 'mean_word_length': 4.8568376068376065, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2122844', 'n_tokens_mistral': 975, 'n_tokens_neox': 913, 'n_words': 294}