<commit_before>from django.db import models
from time import gmtime, strftime
import shortuuid

def generate_storage_name(instance, filename):
    instance.filename = filename
    extension = filename.split('.')[-1]
#    return "%s/%s.%s" % (strftime('%Y-%m-%d', gmtime()),
#                         str(uuid4()), extension)
    return "%s/%s.%s" % (strftime('%Y-%m-%d', gmtime()),
                         shortuuid.uuid(), extension)
<commit_msg>Update to use shortuuid<commit_after>from django.db import models
from time import gmtime, strftime
import shortuuid

def generate_storage_name(instance, filename):
    instance.filename = filename
    extension = filename.split('.')[-1]
    return "%s/%s.%s" % (strftime('%Y-%m-%d', gmtime()),
                         shortuuid.uuid(), extension)

{'fraction_non_alphanumeric': 0.15809284818067754, 'fraction_numerical': 0.0037641154328732747, 'mean_word_length': 3.11340206185567, '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': '4575195', 'n_tokens_mistral': 245, 'n_tokens_neox': 235, 'n_words': 57}