<jupyter_start><jupyter_text>Part 1: Initialize<jupyter_code>time_interval = '0_1us' # '0_1us', '1_2us', '2_3us', '3_4us', '4_5us'
bp_agent = GrooveAgent(rootfolder, time_interval)<jupyter_output><empty_output><jupyter_text>Part 2: Histogram for parameters<jupyter_code>figsize = (24, 6)
bins = 50
sele_para = 'major_gw_pp' #'major_gw_pp', 'major_gw_refined', 'minor_gw_pp', 'minor_gw_refined'
xlines = range(5,28,2)
xlim = (5,26)
ylim = None

fig, axes = bp_agent.histogram_groups(figsize, sele_para, bins, xlines, xlim, ylim)
plt.tight_layout()
plt.savefig(f'{sele_para}.png')
plt.savefig(f'{sele_para}.svg')
plt.show()
# figsize = (12, 4)
# bins = 50
# sele_para = 'major_gw_refined' #'major_gw_pp', 'major_gw_refined', 'minor_gw_pp', 'minor_gw_refined'
# xlines = range(12,28,2)
# xlim = (12,28)
# ylim = None

# fig, axes = bp_agent.histogram_three_groups(figsize, sele_para, bins, xlines, xlim, ylim)
# plt.tight_layout()
# #plt.savefig(f'{sele_para}.svg')
# plt.show()
figsize = (24, 6)
bins = 50
sele_para = 'minor_gw_pp' #'major_gw_pp', 'major_gw_refined', 'minor_gw_pp', 'minor_gw_refined'
xlines = range(0,28,2)
xlim = (5, 26)
ylim = None

fig, axes = bp_agent.histogram_groups(figsize, sele_para, bins, xlines, xlim, ylim)
plt.tight_layout()
plt.savefig(f'{sele_para}.png')
plt.savefig(f'{sele_para}.svg')
plt.show()
# figsize = (12, 4)
# bins = 50
# sele_para = 'minor_gw_refined' #'major_gw_pp', 'major_gw_refined', 'minor_gw_pp', 'minor_gw_refined'
# xlines = range(5,20,2)
# xlim = (5,20)
# ylim = None

# fig, axes = bp_agent.histogram_three_groups(figsize, sele_para, bins, xlines, xlim, ylim)
# plt.tight_layout()
# #plt.savefig(f'{sele_para}.svg')
# plt.show()
figsize = (12, 4)
bins = 100
sele_para = 'slide' #'shift', 'tilt', 'slide', 'roll', 'rise', 'twist'
xlines = range(-3,3)
xlim = (-3,2)
ylim = None

fig, axes = bp_agent.histogram_three_groups(figsize, sele_para, bins, xlines, xlim, ylim)
plt.tight_layout()
#plt.savefig(f'{sele_para}.svg')
plt.show()
figsize = (12, 4)
bins = 100
sele_para = 'roll' #'shift', 'tilt', 'slide', 'roll', 'rise', 'twist'
xlines = range(-20,35,10)
xlim = (-25,30)
ylim = None

fig, axes = bp_agent.histogram_three_groups(figsize, sele_para, bins, xlines, xlim, ylim)
plt.tight_layout()
plt.savefig(f'{sele_para}.svg')
plt.show()
figsize = (12, 4)
bins = 100
sele_para = 'rise' #'shift', 'tilt', 'slide', 'roll', 'rise', 'twist'
xlines = np.arange(2,5,0.5)
xlim = (2,5)
ylim = None

fig, axes = bp_agent.histogram_three_groups(figsize, sele_para, bins, xlines, xlim, ylim)
plt.tight_layout()
#plt.savefig(f'{sele_para}.svg')
plt.show()
figsize = (12, 4)
bins = 100
sele_para = 'twist' #'shift', 'tilt', 'slide', 'roll', 'rise', 'twist'
xlines = range(10,60,10)
xlim = (10,60)
ylim = None

fig, axes = bp_agent.histogram_three_groups(figsize, sele_para, bins, xlines, xlim, ylim)
plt.tight_layout()
#plt.savefig(f'{sele_para}.svg')
plt.show()<jupyter_output><empty_output><jupyter_text>Part 3: Twist bimodal further analysis<jupyter_code>figsize = (12, 8)
bins = 100
sele_para = 'twist' #'shift', 'tilt', 'slide', 'roll', 'rise', 'twist'
xlines = []
xlim = None
ylim = None

fig, ax = bp_agent.histogram_bimodal(figsize, sele_para, bins, xlines, xlim, ylim)
plt.tight_layout()
#plt.savefig(f'twist_bimodal.png', dpi=150)
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.18354430379746836, 'fraction_numerical': 0.038577456298975285, 'mean_word_length': 6.629885057471264, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '93659', 'license': 'MIT', 'n_tokens_mistral': 1633, 'n_tokens_neox': 1496, 'n_words': 284, 'path': 'notebooks/groove_analysis.ipynb', 'repo_name': 'alayah2626517/strucpara', 'size': '3318'}