<commit_before>from django.conf import settings


CONFIG = {
    'convert_urls': False,
    'height': '350',
    'theme': 'advanced',
    'plugins': 'advimage,advlink,fullscreen,media,safari,table,paste',
    'theme_advanced_toolbar_location': 'top',
    'theme_advanced_buttons1': 'fullscreen,|,bold,italic,underline,'
                               'strikethrough,|,justifyleft,justifycenter,'
                               'justifyright,justifyfull,|,'
                               'forecolor,backcolor,|,'
                               'formatselect,fontselect,fontsizeselect',
    'theme_advanced_buttons2': 'cut,copy,paste,pastetext,pasteword,|,'
                               'bullist,numlist,|,outdent,indent,'
                               'blockquote,|,sub,sup,|,undo,redo,|,'
                               'link,unlink,anchor,image,cleanup,help,code',
    'theme_advanced_buttons3': 'tablecontrols,|,hr,removeformat,visualaid,'
                               '|,charmap,media',
    'theme_advanced_toolbar_align': 'center',
    'theme_advanced_statusbar_location': 'bottom',
    'theme_advanced_resizing': 'true',
}

CONFIG.update(getattr(settings, 'TINYMCE_CONFIG', {}))

DEFAULT_CONFIG = getattr(settings, 'TINYMCE_DEFAULT_CONFIG', CONFIG)

JS_URL = getattr(settings, 'TINYMCE_JS_URL',
                 '%stinymce/js/tiny_mce.js' % settings.STATIC_URL)<commit_msg>Remove unused CONFIG variable from app settings<commit_after>from django.conf import settings


DEFAULT_CONFIG = getattr(settings, 'TINYMCE_DEFAULT_CONFIG', {
    'convert_urls': False,
    'height': '350',
    'theme': 'advanced',
    'plugins': 'advimage,advlink,fullscreen,media,safari,table,paste',
    'theme_advanced_toolbar_location': 'top',
    'theme_advanced_buttons1': 'fullscreen,|,bold,italic,underline,'
                               'strikethrough,|,justifyleft,justifycenter,'
                               'justifyright,justifyfull,|,'
                               'forecolor,backcolor,|,'
                               'formatselect,fontselect,fontsizeselect',
    'theme_advanced_buttons2': 'cut,copy,paste,pastetext,pasteword,|,'
                               'bullist,numlist,|,outdent,indent,'
                               'blockquote,|,sub,sup,|,undo,redo,|,'
                               'link,unlink,anchor,image,cleanup,help,code',
    'theme_advanced_buttons3': 'tablecontrols,|,hr,removeformat,visualaid,'
                               '|,charmap,media',
    'theme_advanced_toolbar_align': 'center',
    'theme_advanced_statusbar_location': 'bottom',
    'theme_advanced_resizing': 'true',
})

DEFAULT_CONFIG.update(getattr(settings, 'TINYMCE_CONFIG', {}))

JS_URL = getattr(settings, 'TINYMCE_JS_URL',
                 '%stinymce/js/tiny_mce.js' % settings.STATIC_URL)
{'fraction_non_alphanumeric': 0.13283208020050125, 'fraction_numerical': 0.004296455424274973, 'mean_word_length': 2.7402945113788486, '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': '767281', 'n_tokens_mistral': 889, 'n_tokens_neox': 859, 'n_words': 95}