<commit_before># Authors: <NAME> <<EMAIL>>
#
# License: BSD (3-clause)

import pylinkparse as plp

fname = '../pylinkparse/tests/data/test_raw.asc'

raw = plp.Raw(fname)

raw.plot_calibration(title='9-Point Calibration')


events = plp.find_custom_events(raw, 'user-event', event_id=1)

raw.plot_heatmap(start=10., stop=85.)

tmin, tmax, event_id = -1.5, 2.0, 1

epochs = plp.Epochs(raw, events=events, event_id=event_id, tmin=tmin,
                    tmax=tmax)<commit_msg>ENH: improve epochs constructor<commit_after># Authors: <NAME> <<EMAIL>>
#
# License: BSD (3-clause)

import pylinkparse as plp

fname = '../pylinkparse/tests/data/test_raw.asc'

raw = plp.Raw(fname)

raw.plot_calibration(title='9-Point Calibration')


events = plp.find_custom_events(raw, 'user-event', event_id=1)

raw.plot_heatmap(start=10., stop=85.)

tmin, tmax, event_id = -0.5, 1.5, 1

epochs = plp.Epochs(raw, events=events, event_id=event_id, tmin=tmin,
                    tmax=tmax)
{'fraction_non_alphanumeric': 0.15805785123966942, 'fraction_numerical': 0.024793388429752067, 'mean_word_length': 4.266304347826087, '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}}
{'dir': 'git-commits-cleaned', 'id': '5083993', 'n_tokens_mistral': 409, 'n_tokens_neox': 396, 'n_words': 72}