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

import os.path as op
import numpy as np
from numpy.testing import assert_almost_equal, assert_equal

from mne import (make_bem_model, read_bem_surfaces, write_bem_surfaces)
from mne.preprocessing.maxfilter import fit_sphere_to_headshape
from mne.io.constants import FIFF
from mne.transforms import rotation
from mne.datasets import testing
from mne.utils import run_tests_if_main, _TempDir

subjects_dir = op.join(testing.data_path(), 'subjects')
fname_bem_3 = op.join(subjects_dir, 'sample', 'bem',
                      'sample-1280-1280-1280-bem.fif')
fname_bem_1 = op.join(subjects_dir, 'sample', 'bem',
                      'sample-1280-bem.fif')
fname_bem_sol_3 = op.join(subjects_dir, 'sample', 'bem',
                          'sample-1280-1280-1280-bem-sol.fif')
fname_bem_sol_1 = op.join(subjects_dir, 'sample', 'bem',
                          'sample-1280-bem-sol.fif')


@testing.requires_testing_data
def test_io_bem_surfaces():
    """Test reading and writing of bem surfaces
    """<commit_msg>FIX: Fix test<commit_after># Authors: <NAME> <<EMAIL>>
#
# License: BSD 3 clause

import os.path as op
import numpy as np
from numpy.testing import assert_almost_equal, assert_equal

from mne import (make_bem_model, read_bem_surfaces, write_bem_surfaces)
from mne.preprocessing.maxfilter import fit_sphere_to_headshape
from mne.io.constants import FIFF
from mne.transforms import rotation
from mne.datasets import testing
from mne.utils import run_tests_if_main, _TempDir

subjects_dir = op.join(testing.data_path(download=False), 'subjects')
fname_bem_3 = op.join(subjects_dir, 'sample', 'bem',
                      'sample-1280-1280-1280-bem.fif')
fname_bem_1 = op.join(subjects_dir, 'sample', 'bem',
                      'sample-1280-bem.fif')
fname_bem_sol_3 = op.join(subjects_dir, 'sample', 'bem',
                          'sample-1280-1280-1280-bem-sol.fif')
fname_bem_sol_1 = op.join(subjects_dir, 'sample', 'bem',
                          'sample-1280-bem-sol.fif')


@testing.requires_testing_data
def test_io_bem_surfaces():
    """Test reading and writing of bem surfaces
    """
{'fraction_non_alphanumeric': 0.11121323529411764, 'fraction_numerical': 0.03400735294117647, 'mean_word_length': 3.681720430107527, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '76470', 'n_tokens_mistral': 816, 'n_tokens_neox': 771, 'n_words': 164}