<commit_before>import datetime
import ckan.plugins as plugins
import ckan.plugins.toolkit as toolkit


def format_display_date(time_stamp, format_date="%Y-%m-%d"):
    date_object = datetime.datetime.strptime(time_stamp, "%Y-%m-%d %H:%M:%S.%f")
    return date_object.strftime(format_date)


class MxthemePlugin(plugins.SingletonPlugin):
    # IConfigurer
    plugins.implements(plugins.IConfigurer)
    plugins.implements(plugins.ITemplateHelpers)

    def update_config(self, config_):
        toolkit.add_template_directory(config_, 'templates')
        toolkit.add_public_directory(config_, 'public')
        toolkit.add_resource('fanstatic', 'mxtheme')

    def get_helpers(self):
        return {'format_display_date': format_display_date}<commit_msg>Resolviendo detalles visuales<commit_after>import datetime
import ckan.plugins as plugins
import ckan.plugins.toolkit as toolkit


def format_display_date(time_stamp, format_date="%Y/%m/%d"):
    date_object = datetime.datetime.strptime(time_stamp, "%Y-%m-%d %H:%M:%S.%f")
    return date_object.strftime(format_date)


class MxthemePlugin(plugins.SingletonPlugin):
    # IConfigurer
    plugins.implements(plugins.IConfigurer)
    plugins.implements(plugins.ITemplateHelpers)

    def update_config(self, config_):
        toolkit.add_template_directory(config_, 'templates')
        toolkit.add_public_directory(config_, 'public')
        toolkit.add_resource('fanstatic', 'mxtheme')

    def get_helpers(self):
        return {'format_display_date': format_display_date}
{'fraction_non_alphanumeric': 0.11241830065359477, 'fraction_numerical': 0.0, 'mean_word_length': 5.099601593625498, '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': '740208', 'n_tokens_mistral': 495, 'n_tokens_neox': 489, 'n_words': 77}