<commit_before>from django.views.generic import View
from django.conf.urls import patterns, url, include
from rest_framework.routers import DefaultRouter
import os, sys
import inspect
import importlib

urlpatterns = []

def import_module_from_filename(dirname, fn):<commit_msg>make import_methods fail if djang-rest-framework is too old<commit_after>from django.views.generic import View
from django.conf.urls import patterns, url, include
from rest_framework.routers import DefaultRouter
import os, sys
import inspect
import importlib

try:
    from rest_framework.serializers import DictField
except:
    raise Exception("Failed check for django-rest-framework >= 3.3.3")

urlpatterns = []

def import_module_from_filename(dirname, fn):
{'fraction_non_alphanumeric': 0.06910569105691057, 'fraction_numerical': 0.0040650406504065045, 'mean_word_length': 6.174757281553398, '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': '5687374', 'n_tokens_mistral': 205, 'n_tokens_neox': 205, 'n_words': 68}