<commit_before>from django.db import models
from django.contrib.auth import models as authmodels
from django.conf import settings

# Models for file attachments uploaded to the site
# basically just a simple container for files
# but allowing for replacement of previously uploaded files

class Attachment(models.Model):
    
    file = models.FileField(upload_to='/media')
    description = models.TextField(blank=True)
    date = models.DateField(auto_now=True)
    uploader = models.ForeignKey(authmodels.User)
    
    <commit_msg>use the right setting for upload_to so that uploading via admin page works<commit_after>from django.db import models
from django.contrib.auth import models as authmodels
from django.conf import settings
import os.path

# Models for file attachments uploaded to the site
# basically just a simple container for files
# but allowing for replacement of previously uploaded files

class Attachment(models.Model):
    
    file = models.FileField(upload_to='upload/attachments')
    description = models.TextField(blank=True)
    date = models.DateField(auto_now=True)
    uploader = models.ForeignKey(authmodels.User)
    
    
{'fraction_non_alphanumeric': 0.06476683937823834, 'fraction_numerical': 0.0, 'mean_word_length': 4.519047619047619, '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': '3266987', 'n_tokens_mistral': 305, 'n_tokens_neox': 295, 'n_words': 108}