<commit_before>import json
import sqlite3
from copy import copy
import re
import datetime

# Mappings between Python types and SQLite types
SQLITE_PYTHON_TYPE_MAP={
  u"text": unicode,
  u"integer": int,
  u"real": float,
}

PYTHON_SQLITE_TYPE_MAP={
  unicode: u"text",
  str: u"text",
  int: u"integer",
  float: u"real",
}

# Only for compatibility with scraperwiki;
# we should use the SQLite names
SWVARIABLES_PYTHON_TYPE_MAP={
  u"float": float
}

class MineCollapse(Exception):
  pass

class Highwall:
  "A relaxing interface to SQLite"<commit_msg>date and time type mappings<commit_after>import json
import sqlite3
from copy import copy
import re
import datetime

# Mappings between Python types and SQLite types
SQLITE_PYTHON_TYPE_MAP={
  u"text": unicode,
  u"integer": int,
  u"real": float,
  u"date": datetime.date,
  u"datetime": datetime.datetime,
}

PYTHON_SQLITE_TYPE_MAP={
  unicode: u"text",
  str: u"text",
  int: u"integer",
  float: u"real",
  datetime.date: u"date",
  datetime.datetime: u"datetime",
}

# Only for compatibility with scraperwiki;
# we should use the SQLite names
SWVARIABLES_PYTHON_TYPE_MAP={
  u"float": float
}

class MineCollapse(Exception):
  pass

class Highwall:
  "A relaxing interface to SQLite"
{'fraction_non_alphanumeric': 0.10144927536231885, 'fraction_numerical': 0.001610305958132045, 'mean_word_length': 5.123152709359606, 'pattern_counts': {'":': 10, '<': 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': '285326', 'n_tokens_mistral': 440, 'n_tokens_neox': 432, 'n_words': 129}