<commit_before>from grabbit import Layout
from bids import grabbids
import os
import re

__all__ = ['BIDSLayout']


class BIDSLayout(Layout):

    def __init__(self, path, config=None):
        if config is None:
            root = os.path.dirname(grabbids.__file__)
            config = os.path.join(root, 'config', 'bids.json')
        super(BIDSLayout, self).__init__(path, config)<commit_msg>fixed rel path<commit_after>from grabbit import Layout
import os
import re

__all__ = ['BIDSLayout']


class BIDSLayout(Layout):

    def __init__(self, path, config=None):
        if config is None:
            root = os.path.dirname(os.path.realpath(__file__))
            config = os.path.join(root, 'config', 'bids.json')
        super(BIDSLayout, self).__init__(path, config)
{'fraction_non_alphanumeric': 0.11469072164948453, 'fraction_numerical': 0.0, 'mean_word_length': 3.316666666666667, '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': '94499', 'n_tokens_mistral': 247, 'n_tokens_neox': 246, 'n_words': 63}