<commit_before>import traceback

try:
    import pygments
except ImportError:
    pass

from django import newforms as forms
from django.conf import settings
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from django.template.loader import render_to_string
from djblets.util.misc import cache_memoize, get_object_or_none
<commit_msg>Fix check for pygments to not NameError if it's not installed<commit_after>import traceback

try:
    import pygments
except ImportError:
    pygments = None

from django import newforms as forms
from django.conf import settings
from django.http import HttpResponse, HttpResponseRedirect
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from django.template.loader import render_to_string
from djblets.util.misc import cache_memoize, get_object_or_none

{'fraction_non_alphanumeric': 0.03508771929824561, 'fraction_numerical': 0.006191950464396285, 'mean_word_length': 6.404580152671755, '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': '2534004', 'n_tokens_mistral': 274, 'n_tokens_neox': 260, 'n_words': 93}