<commit_before># -*- coding: utf8 -*-
# Copyright 2013 by <NAME> <<EMAIL>>
# Released under MIT License
#
# The special hush (hash) function used to generate storage paths

import hashlib

from django.conf import settings

from models import PhotoStorage

def aurora_hush(photo):
    token = settings.AURORA_HUSH_SALT + photo.uuid
    return hashlib.sha512(token).hexdigest()[:settings.AURORA_HUSH_LENGTH]
<commit_msg>removed reference to PhotoStorage class<commit_after># -*- coding: utf8 -*-
# Copyright 2013 by <NAME> <<EMAIL>>
# Released under MIT License
#
# The special hush (hash) function used to generate storage paths

import hashlib

from django.conf import settings

def aurora_hush(photo):
    token = settings.AURORA_HUSH_SALT + photo.uuid
    return hashlib.sha512(token).hexdigest()[:settings.AURORA_HUSH_LENGTH]

{'fraction_non_alphanumeric': 0.09891435464414958, 'fraction_numerical': 0.019300361881785282, 'mean_word_length': 5.0144927536231885, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '865841', 'n_tokens_mistral': 275, 'n_tokens_neox': 259, 'n_words': 78}