<commit_before>import math
from PIL import Image, ImageDraw
from fractal_tree import Tree, BinaryTree, Node, Branch

im = Image.new('RGBA', (400, 400)) 
draw = ImageDraw.Draw(im)

bin_tree = BinaryTree(200, 400, 150, 0.5, math.radians(90), 0)

def draw_branch(b):
    draw.line((b.start_node.x, b.start_node.y, b.end_node.x, b.end_node.y))

def draw_tree(t):
    for age in t.branches:
        for branch in age:
            draw_branch(branch)

for i in range(15):
    bin_tree.grow()

draw_tree(bin_tree)
im.show()<commit_msg>change number of grow() callings<commit_after>import math
from PIL import Image, ImageDraw
from fractal_tree import Tree, BinaryTree, Node, Branch

im = Image.new('RGBA', (400, 400)) 
draw = ImageDraw.Draw(im)

bin_tree = BinaryTree(200, 400, 150, 0.5, math.radians(90), 0)

def draw_branch(b):
    draw.line((b.start_node.x, b.start_node.y, b.end_node.x, b.end_node.y))

def draw_tree(t):
    for age in t.branches:
        for branch in age:
            draw_branch(branch)

for i in range(10):
    bin_tree.grow()

draw_tree(bin_tree)
im.show()
{'fraction_non_alphanumeric': 0.13395348837209303, 'fraction_numerical': 0.04093023255813953, 'mean_word_length': 3.8687782805429864, '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': '4698264', 'n_tokens_mistral': 449, 'n_tokens_neox': 410, 'n_words': 105}