<commit_before>import os

from mfr import settings


config = settings.child('UNOCONV_EXTENSION_CONFIG')

UNOCONV_BIN = config.get('UNOCONV_BIN', '/usr/bin/unoconv')

ADDRESS = config.get('SERVER', os.environ.get('UNOCONV_PORT_2002_TCP_ADDR', '127.0.0.1'))
PORT = config.get('PORT', os.environ.get('UNOCONV_PORT_2002_TCP_PORT', '2002'))

DEFAULT_RENDER = {'renderer': '.pdf', 'format': 'pdf'}

RENDER_MAP = config.get('RENDER_MAP', {
    # 'csv': {'renderer': '.xlsx', 'format': 'xlsx'},
    # 'ppt': {'renderer': '.pdf', 'format': 'pdf'},
    # 'pptx': {'renderer': '.pdf', 'format': 'pdf'},
})<commit_msg>update defautl unoconv_bin path to support pip install<commit_after>import os

from mfr import settings


config = settings.child('UNOCONV_EXTENSION_CONFIG')

UNOCONV_BIN = config.get('UNOCONV_BIN', '/usr/local/bin/unoconv')

ADDRESS = config.get('SERVER', os.environ.get('UNOCONV_PORT_2002_TCP_ADDR', '127.0.0.1'))
PORT = config.get('PORT', os.environ.get('UNOCONV_PORT_2002_TCP_PORT', '2002'))

DEFAULT_RENDER = {'renderer': '.pdf', 'format': 'pdf'}

RENDER_MAP = config.get('RENDER_MAP', {
    # 'csv': {'renderer': '.xlsx', 'format': 'xlsx'},
    # 'ppt': {'renderer': '.pdf', 'format': 'pdf'},
    # 'pptx': {'renderer': '.pdf', 'format': 'pdf'},
})
{'fraction_non_alphanumeric': 0.21808088818398097, 'fraction_numerical': 0.028548770816812053, 'mean_word_length': 5.748663101604278, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4719790', 'n_tokens_mistral': 512, 'n_tokens_neox': 497, 'n_words': 89}