<jupyter_start><jupyter_text>Koch Snowflake - Recursion with Turtle<jupyter_code>import turtle
def koch(t, order, size):
    if order == 0:
        t.forward(size)
    else:
        for angle in [60, -120, 60, 0]:
            koch(t, order - 1, size // 3)
            t.left(angle)
t = turtle.Turtle()
wn = turtle.Screen()
wn.bgcolor('black')
wn.setup(900, 500)
t.color('orange')
t.pensize(3)
t.penup()
t.setpos(-445, 0)
t.pendown()
t.speed(0)

size = 900
order = 5
koch(t, order, size)

wn.exitonclick()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1647940074906367, 'fraction_numerical': 0.05056179775280899, 'mean_word_length': 3.2125984251968505, 'pattern_counts': {'":': 0, '<': 5, '<?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}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '8755', 'license': 'MIT', 'n_tokens_mistral': 252, 'n_tokens_neox': 221, 'n_words': 50, 'path': 'notebooks/Koch_snowflake.ipynb', 'repo_name': 'smallpondtom/pNLsys', 'size': '534'}