<commit_before>#!/usr/bin/python
# -*- coding: utf-8 -*-

# thumbor imaging service
# https://github.com/globocom/thumbor/wiki

# Licensed under the MIT license: 
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 globo.com <EMAIL>

from os.path import join

from thumbor.config import conf

def load(path):
    return open(join(conf.FILE_LOADER_ROOT_PATH, path)).read()
<commit_msg>bug fix file_loader, load 2 arguments<commit_after>#!/usr/bin/python
# -*- coding: utf-8 -*-

# thumbor imaging service
# https://github.com/globocom/thumbor/wiki

# Licensed under the MIT license: 
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 globo.com <EMAIL>

from os.path import join

from thumbor.config import conf

def load(path,callback):
    callback(open(join(conf.FILE_LOADER_ROOT_PATH, path)).read())
{'fraction_non_alphanumeric': 0.14064362336114422, 'fraction_numerical': 0.013110846245530394, 'mean_word_length': 4.454545454545454, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '101049', 'n_tokens_mistral': 292, 'n_tokens_neox': 284, 'n_words': 66}