<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#   simple library for stroring python dictionaries in sqlite database
#
__author__ = '<NAME> <https://github.com/ownport/scrapy-dblite>'
__version__ = '0.2.6'

import os
import re
import inspect
import sqlite3

from .query import SQLBuilder
from urlparse import urlparse

from .settings import SUPPORTED_BACKENDS
from .settings import ITEMS_PER_REQUEST

class DuplicateItem(Exception):
    pass


class SQLError(Exception):
    pass


def open(item, uri, autocommit=False):
    ''' open sqlite database by uri and Item class<commit_msg>[+] v0.2.7<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#   simple library for stroring python dictionaries in sqlite database
#
__author__ = '<NAME> <https://github.com/ownport/scrapy-dblite>'
__version__ = '0.2.7'

import os
import re
import inspect
import sqlite3

from .query import SQLBuilder
from urlparse import urlparse

from .settings import SUPPORTED_BACKENDS
from .settings import ITEMS_PER_REQUEST

class DuplicateItem(Exception):
    pass


class SQLError(Exception):
    pass


def open(item, uri, autocommit=False):
    ''' open sqlite database by uri and Item class
{'fraction_non_alphanumeric': 0.09941520467836257, 'fraction_numerical': 0.01086048454469507, 'mean_word_length': 4.396396396396397, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '5678361', 'n_tokens_mistral': 399, 'n_tokens_neox': 377, 'n_words': 120}