<commit_before>import math

def listDivisors(n):
    divisors = []
    lim = int(math.sqrt(n))

    for i in range(1, lim + 1):
        if n % i == 0:
            divisors.append(i)

            if (i * i) != n:
                divisors.append(n // i)

    return divisors

def main():
    d = listDivisors(851)
    print(len(d))
    print(d)
main()<commit_msg>Improve function for getting the divisors.<commit_after>import math

def listDivisors(n):
    divisors = set() #Creating a set # Avoid repeated elements
    lim = int(math.sqrt(n))

    for i in range(1, lim + 1):
        if n % i == 0:
            divisors.add(i)
            divisors.add(n // i)

    return divisors

def main():
    d = listDivisors(100)
    print(len(d))
    print(d)

main()
{'fraction_non_alphanumeric': 0.1334214002642008, 'fraction_numerical': 0.015852047556142668, 'mean_word_length': 2.056451612903226, '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': '4307214', 'n_tokens_mistral': 281, 'n_tokens_neox': 270, 'n_words': 73}