<commit_before>from django import template
register = template.Library()

@register.simple_tag
def getIndex(counter, index):
    new_index = (int(index) - 1) * 10 + counter
    return new_index<commit_msg>fix best counter bug<commit_after>from django import template
from django.conf import settings

register = template.Library()

@register.simple_tag
def getIndex(counter, index):
    acom = settings.BEST_LIST_LIMIT / 10
    new_index = (int(index) * acom - acom) * 10 + counter
    return new_index
{'fraction_non_alphanumeric': 0.09362549800796813, 'fraction_numerical': 0.013944223107569721, 'mean_word_length': 4.651685393258427, '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': '3681065', 'n_tokens_mistral': 158, 'n_tokens_neox': 151, 'n_words': 44}