<commit_before>from django.db import models
from django.contrib.auth.models import User
from django.conf import settings
import uuid
import os.path
import davvy
import davvy.exceptions
from lxml import etree

# Create your models here.


class Resource(models.Model):

    def generate_uuid():
        return str(uuid.uuid4())

    user = models.ForeignKey(User)
    parent = models.ForeignKey('Resource', null=True, blank=True)
    name = models.CharField(max_length=255)
    collection = models.BooleanField(default=False)
    uuid = models.CharField(max_length=36, default=generate_uuid)
    content_type = models.CharField(max_length=255, blank=True, null=True)
    created_at = models.DateTimeField(auto_now_add=True)<commit_msg>unused imports removed<commit_after>from django.db import models
from django.contrib.auth.models import User
import uuid
import davvy
import davvy.exceptions
from lxml import etree

# Create your models here.


class Resource(models.Model):

    def generate_uuid():
        return str(uuid.uuid4())

    user = models.ForeignKey(User)
    parent = models.ForeignKey('Resource', null=True, blank=True)
    name = models.CharField(max_length=255)
    collection = models.BooleanField(default=False)
    uuid = models.CharField(max_length=36, default=generate_uuid)
    content_type = models.CharField(max_length=255, blank=True, null=True)
    created_at = models.DateTimeField(auto_now_add=True)
{'fraction_non_alphanumeric': 0.09517144856543037, 'fraction_numerical': 0.012596221133659902, 'mean_word_length': 4.98326359832636, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2829680', 'n_tokens_mistral': 437, 'n_tokens_neox': 422, 'n_words': 101}