<commit_before>import os
import logging

import fuse

from tvunfucker import localdbapi, logger, thefuse, chainwrapper

log = logging.getLogger('tvunfucker')
log.setLevel(logging.DEBUG)

_currentdir = os.path.dirname(__file__)


_dbfile =  os.path.join(_currentdir, 'testdata/testfs/.tvunfucker.sqlite')


db = localdbapi.Database(_dbfile)
print db.get_rows("SELECT * FROM series;")
print db.get_row("SELECT * FROM series WHERE id = 73255;")

source = chainwrapper.EpisodeSource(os.path.dirname(_dbfile))


fs = thefuse.FileSystem(source)

mtpt = os.path.join(_currentdir, 'mount')
fuse = fuse.FUSE(fs, mtpt, foreground=True)<commit_msg>loglevel<commit_after>import os
import logging

import fuse

from tvunfucker import localdbapi, logger, thefuse, chainwrapper

log = logging.getLogger('tvunfucker')
log.setLevel(logging.WARNING)

_currentdir = os.path.dirname(__file__)


_dbfile =  os.path.join(_currentdir, 'testdata/testfs/.tvunfucker.sqlite')


db = localdbapi.Database(_dbfile)
print db.get_rows("SELECT * FROM series;")
print db.get_row("SELECT * FROM series WHERE id = 73255;")

source = chainwrapper.EpisodeSource(os.path.dirname(_dbfile))


fs = thefuse.FileSystem(source)

mtpt = os.path.join(_currentdir, 'mount')
fuse = fuse.FUSE(fs, mtpt, foreground=True)
{'fraction_non_alphanumeric': 0.12431156569630213, 'fraction_numerical': 0.007867820613690008, 'mean_word_length': 6.106145251396648, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6235762', 'n_tokens_mistral': 462, 'n_tokens_neox': 440, 'n_words': 89}