<commit_before>'''
Support for SQLite3
'''

try:
    import sqlite3
    has_sqlite3 = True
except ImportError:
    has_sqlite3 = False

def __virtual__():
    if not has_sqlite3:
        return False
    return 'sqlite3'

def _connect(db=None):
    if db == None:
        return False

    con = sqlite3.connect(db)
    cur = con.cursor()
    return cur

def version():
    '''
    Return version of pysqlite

    CLI Example::

        salt '*' sqlite3.version
    '''
    return sqlite3.version<commit_msg>Fix None comparison<commit_after>'''
Support for SQLite3
'''

try:
    import sqlite3
    has_sqlite3 = True
except ImportError:
    has_sqlite3 = False

def __virtual__():
    if not has_sqlite3:
        return False
    return 'sqlite3'

def _connect(db=None):
    if db is None:
        return False

    con = sqlite3.connect(db)
    cur = con.cursor()
    return cur

def version():
    '''
    Return version of pysqlite

    CLI Example::

        salt '*' sqlite3.version
    '''
    return sqlite3.version
{'fraction_non_alphanumeric': 0.0958904109589041, 'fraction_numerical': 0.01761252446183953, 'mean_word_length': 2.4677966101694917, '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': '777212', 'n_tokens_mistral': 347, 'n_tokens_neox': 330, 'n_words': 96}