<commit_before>
class mandelbrot(object):

    def __init__(self, iterations=50, cache=False):
        self.iterations = iterations
        self.cache = cache

    def calc_point(self, coordinate):
        z, iterinit = self.cache_retr(coordinate)
        # I sense that my future is full of grey hair and edge cases
        for iteration in xrange(iterinit, self.iterations):
            z = z**2 + coordinate
            if z.real > 2: break<commit_msg>Math fix (wasn't checking absolute value of z, resulting in an overflow error)<commit_after>
class mandelbrot(object):

    def __init__(self, iterations=50, cache=False):
        self.iterations = iterations
        self.cache = cache

    def calc_point(self, coordinate):
        z, iterinit = self.cache_retr(coordinate)
        # I sense that my future is full of grey hair and edge cases
        for iteration in xrange(iterinit, self.iterations):
            z = z**2 + coordinate
            if abs(z.real) > 2: break
{'fraction_non_alphanumeric': 0.08571428571428572, 'fraction_numerical': 0.00816326530612245, 'mean_word_length': 2.6741573033707864, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '565043', 'n_tokens_mistral': 288, 'n_tokens_neox': 271, 'n_words': 95}