<commit_before>from django.http import HttpResponse
import json, pytz,decimal

arg = pytz.timezone("America/Argentina/Buenos_Aires")

buy_multiplier = 0.93

def median(lst):
    lst = sorted(lst)
    import math
    if len(lst) < 1:
            return None
    if len(lst) %2 == 1:
            return lst[((len(lst)+1)/2)-1]
    if len(lst) %2 == 0:
            return float(sum(lst[(len(lst)/2)-1:(len(lst)/2)+1]))/2.0

class DecimalEncoder(json.JSONEncoder):
    def default(self, o):
        if isinstance(o, decimal.Decimal):<commit_msg>Reduced spread to match market level<commit_after>from django.http import HttpResponse
import json, pytz,decimal

arg = pytz.timezone("America/Argentina/Buenos_Aires")

buy_multiplier = 0.965

def median(lst):
    lst = sorted(lst)
    import math
    if len(lst) < 1:
            return None
    if len(lst) %2 == 1:
            return lst[((len(lst)+1)/2)-1]
    if len(lst) %2 == 0:
            return float(sum(lst[(len(lst)/2)-1:(len(lst)/2)+1]))/2.0

class DecimalEncoder(json.JSONEncoder):
    def default(self, o):
        if isinstance(o, decimal.Decimal):
{'fraction_non_alphanumeric': 0.15009041591320071, 'fraction_numerical': 0.03164556962025317, 'mean_word_length': 3.0698529411764706, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2464623', 'n_tokens_mistral': 412, 'n_tokens_neox': 395, 'n_words': 88}