<commit_before>from datetime import datetime, timedelta

from storagebin import const, getHttpResponse
from storagebin.models import Binary

def cron(request): #called by cron.yaml through django
    no_old_data_resp = getHttpResponse(content='no old data found',
                                       content_type=const.CONTENT_TYPE_TEXT)
    
    db_Binary_objs = _older_than_90_days()
    if db_Binary_objs is None:
        return no_old_data_resp
    
    delete_count = _delete_old_Binary_objs(db_Binary_objs)
    if delete_count is None:
        return no_old_data_resp
    
    return getHttpResponse(content=delete_count + " records deleted",
                           content_type=const.CONTENT_TYPE_TEXT)
<commit_msg>cast int to str for message concatenation<commit_after>from datetime import datetime, timedelta

from storagebin import const, getHttpResponse
from storagebin.models import Binary

def cron(request): #called by cron.yaml through django
    no_old_data_resp = getHttpResponse(content='no old data found',
                                       content_type=const.CONTENT_TYPE_TEXT)
    
    db_Binary_objs = _older_than_90_days()
    if db_Binary_objs is None:
        return no_old_data_resp
    
    delete_count = _delete_old_Binary_objs(db_Binary_objs)
    if delete_count is None:
        return no_old_data_resp
    
    return getHttpResponse(content=str(delete_count) + " records deleted",
                           content_type=const.CONTENT_TYPE_TEXT)

{'fraction_non_alphanumeric': 0.05097250167672703, 'fraction_numerical': 0.0026827632461435278, 'mean_word_length': 3.0653950953678475, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3717768', 'n_tokens_mistral': 440, 'n_tokens_neox': 426, 'n_words': 102}