<commit_before>import math


def get_prime_factor(n):
    prime = []
    for i in range(2, int(math.sqrt(n))):
        if n % i == 0:
            prime.append(i)
            while n % i == 0:
                n /= i
    return prime


print get_prime_factor(600851475143)[-1]
<commit_msg>get prime factor function bug resolved<commit_after>import math


def get_prime_factor(n):
    prime = []
    for i in range(2, int(math.sqrt(n))):
        if n % i == 0:
            prime.append(i)
            while n % i == 0:
                n /= i
    if len(prime) == 0:  # prime
        prime.append(n)
    return prime


print get_prime_factor(600851475143)[-1]

{'fraction_non_alphanumeric': 0.12347560975609756, 'fraction_numerical': 0.05030487804878049, 'mean_word_length': 1.894273127753304, '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': '4236866', 'n_tokens_mistral': 250, 'n_tokens_neox': 224, 'n_words': 60}