<commit_before># -*- coding: utf-8 -*-
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from iconfonts import fonts
from iconfonts.django import utils


for app in settings.INSTALLED_APPS:
    provider_module = app + '.fonts'
    try:
        utils.import_string(provider_module)
    except ImproperlyConfigured:
        pass

INSTALLED_ICONFONTS = [cls for cls in fonts.IconsFont.registry]
ICONFONT = getattr(settings, 'ICONFONT', INSTALLED_ICONFONTS[0].name)<commit_msg>fix error on reading the default font<commit_after># -*- coding: utf-8 -*-
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from iconfonts import fonts
from iconfonts.django import utils


for app in settings.INSTALLED_APPS:
    provider_module = app + '.fonts'
    try:
        utils.import_string(provider_module)
    except ImproperlyConfigured:
        pass

INSTALLED_ICONFONTS = [cls for cls in fonts.IconsFont.registry]
ICONFONT = getattr(settings, 'ICONFONT', None)
if ICONFONT is None and len(INSTALLED_ICONFONTS) > 0:
    ICONFONT = INSTALLED_ICONFONTS[0].name
{'fraction_non_alphanumeric': 0.08110516934046345, 'fraction_numerical': 0.004456327985739751, 'mean_word_length': 4.451456310679611, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5293886', 'n_tokens_mistral': 372, 'n_tokens_neox': 352, 'n_words': 96}