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

import os
import os.path as op
from nose.tools import assert_true, assert_raises
from copy import deepcopy
import numpy as np
from numpy.testing import assert_array_almost_equal
from scipy import stats
from itertools import product
import tempfile
tempdir = tempfile.mkdtemp()

from mne import fiff, Epochs, read_events, cov
from mne.preprocessing import ICA, ica_find_ecg_events, ica_find_eog_events,\
                              read_ica
from mne.preprocessing.ica import score_funcs

have_sklearn = True
try:
    import sklearn
except ImportError:
    have_sklearn = False

sklearn_test = np.testing.dec.skipif(not have_sklearn,
                                     'scikit-learn not installed')

raw_fname = op.join(tempdir, 'test_raw.fif')
event_name = op.join(tempdir, 'test-eve.fif')
evoked_nf_name = op.join(tempdir, 'test-nf-ave.fif')
test_cov_name = op.join(tempdir, 'test-cov.fif')

event_id, tmin, tmax = 1, -0.2, 0.5
start, stop = 0, 8  # if stop is too small pca may fail in some cases, but<commit_msg>FIX tempfile/dir<commit_after># Author: <NAME> <<EMAIL>>
#
# License: BSD (3-clause)

import os
import os.path as op
from nose.tools import assert_true, assert_raises
from copy import deepcopy
import numpy as np
from numpy.testing import assert_array_almost_equal
from scipy import stats
from itertools import product
import tempfile
tempdir = tempfile.mkdtemp()

from mne import fiff, Epochs, read_events, cov
from mne.preprocessing import ICA, ica_find_ecg_events, ica_find_eog_events,\
                              read_ica
from mne.preprocessing.ica import score_funcs

have_sklearn = True
try:
    import sklearn
except ImportError:
    have_sklearn = False

sklearn_test = np.testing.dec.skipif(not have_sklearn,
                                     'scikit-learn not installed')

raw_fname = op.join(op.dirname(__file__), '..', '..', 'fiff', 'tests', 'data',
                    'test_raw.fif')
event_name = op.join(op.dirname(__file__), '..', '..', 'fiff', 'tests',
                     'data', 'test-eve.fif')
evoked_nf_name = op.join(op.dirname(__file__), '..', '..', 'fiff', 'tests',
                         'data', 'test-nf-ave.fif')

test_cov_name = op.join(op.dirname(__file__), '..', '..', 'fiff', 'tests',
                        'data', 'test-cov.fif')

event_id, tmin, tmax = 1, -0.2, 0.5
start, stop = 0, 8  # if stop is too small pca may fail in some cases, but
{'fraction_non_alphanumeric': 0.11529126213592233, 'fraction_numerical': 0.006472491909385114, 'mean_word_length': 3.1493288590604025, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6628047', 'n_tokens_mistral': 852, 'n_tokens_neox': 837, 'n_words': 230}