<jupyter_start><jupyter_text>Centripetal Kochanek--Bartels Splines<jupyter_code>from asdfspline import CentripetalKochanekBartelsSpline2
from utilities import plot_2d
positions = [
    [0, 0],
    [5, -1],
    [3, 2],
    [0, 1],
]
s = CentripetalKochanekBartelsSpline2(positions)
plot_2d(s)
s = CentripetalKochanekBartelsSpline2(positions, closed=True)
plot_2d(s)
tcb = [
    [-0.8, 0, 0],
    [0, 0, 0.7],
]
s = CentripetalKochanekBartelsSpline2(positions, tcb)
plot_2d(s)
from asdfspline import CentripetalKochanekBartelsSpline3<jupyter_output><empty_output><jupyter_text>Use `%matplotlib` to open plots in a separate window:<jupyter_code>#%matplotlib
from utilities import plot_3d
positions = [
    [0, 0, 0],
    [5, -1, 0.5],
    [3, 2, 1],
    [0, 1, -0.5],
]
s = CentripetalKochanekBartelsSpline3(positions)
plot_3d(s)
tcb = [
    [-0.8, 0, 0],
    [0, 0, 0.7],
]
s = CentripetalKochanekBartelsSpline3(positions, tcb)
plot_3d(s)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13871635610766045, 'fraction_numerical': 0.053830227743271224, 'mean_word_length': 5.120253164556962, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '424253', 'license': 'MIT', 'n_tokens_mistral': 482, 'n_tokens_neox': 429, 'n_words': 80, 'path': 'python/examples/centripetalkochanekbartels.ipynb', 'repo_name': 'mgeier/asdfspline-rust', 'size': '966'}