<jupyter_start><jupyter_text>Inputs<jupyter_code># Inputs are many circles
diameters = [11.1 * m, 22.2 * m, 33.3 * m, 44.4 * m, 55.5 * m]
# Setup global values registry.
values={"d": diameters[0]}

Formula.set_global_values(values)
diameters_latex = Math(", ".join(sympy.latex(dia) for dia in diameters))<jupyter_output><empty_output><jupyter_text>We consider {{ len(diameters) }} circles with diameters {{diameters_latex}}.  Area<jupyter_code>%run "Circle Area.ipynb"<jupyter_output><empty_output><jupyter_text>The area of a circle with diameter {{ d.get_inline() }} is:{{ area_formula.get_display(oneline=False) }}  Circumference<jupyter_code>%run "Circle Circumference.ipynb"<jupyter_output><empty_output><jupyter_text>The circumference of a circle with diameter {{ d.get_inline() }} is:{{ circ_formula.get_display(oneline=True) }}  Summary<jupyter_code># Summarize just the first circle

# the area and circumference formulas use the value of `d` from the `values` dict.
values["d"] = diameters[0]

# Print out just one circle to demonstrate Markdown tables<jupyter_output><empty_output><jupyter_text>First circle:| d                    | Area                           | Circumference                    || ---:                 |    ----:                       |          ---:                    || {{d.get_inlinev()}}  | {{area_formula.get_inlinev()}} | {{circ_formula.get_inlinev()}}   |<jupyter_code># Summarize all circles to demonstrate a way to loop

table_data = [["d", "Area", "Circumference"]]
for dia in diameters:
    # formulas use the value of `d` from the `values` dict.
    values["d"] = dia
    
    # populate table
    table_data.append([
        d.get_inlinev_latex(),
        area_formula.get_inlinev_latex(),
        circ_formula.get_inlinev_latex(),
    ])

t = tabulate( # library for pretty-printing tables in many useful formats
    table_data, # list of lists table
    headers="firstrow", # first element in the list is the table header
    tablefmt="pipe", # markdown format that supports alignment
    colalign=("right", "right", "right") # cell aligments
)
table = Markdown(t)

### THIS CURRENTLY ONLY WORKS IN THE NOTEBOOK, DOES NOT YET WORK IN THE PDF!!<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12612612612612611, 'fraction_numerical': 0.0076576576576576575, 'mean_word_length': 3.6659663865546217, 'pattern_counts': {'":': 1, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '566764', 'license': 'BSD-2-Clause', 'n_tokens_mistral': 750, 'n_tokens_neox': 712, 'n_words': 186, 'path': 'notebooks/Circle multifile/Circle Main.ipynb', 'repo_name': 'alugowski/jupyter-forchaps', 'size': '2220'}