<commit_before>import datetime

from IPython.html.services.contents.manager import ContentsManager
from IPython.html.utils import url_path_join

class NBXContentsManager(ContentsManager):

    def is_dir(self, path):
        raise NotImplementedError('must be implemented in a subclass')

    def get_model(self, name, path='', content=True):
        path = path.strip('/')

        fullpath = url_path_join(name, path)
        if self.is_dir(fullpath):<commit_msg>made fullpath method<commit_after>import datetime

from IPython.html.services.contents.manager import ContentsManager
from IPython.html.utils import url_path_join

class NBXContentsManager(ContentsManager):

    def is_dir(self, path):
        raise NotImplementedError('must be implemented in a subclass')

    def fullpath(self, name, path):
        fullpath = url_path_join(name, path)
        return fullpath

    def get_model(self, name, path='', content=True):
        path = path.strip('/')

        fullpath = self.fullpath(name, path)
        if self.is_dir(fullpath):
{'fraction_non_alphanumeric': 0.09587727708533078, 'fraction_numerical': 0.0, 'mean_word_length': 3.9014084507042255, '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': '5257495', 'n_tokens_mistral': 314, 'n_tokens_neox': 300, 'n_words': 78}