<commit_before># -*- coding: utf-8 -*-
"""Stimulus resampling functions
"""

import numpy as np
from scipy.fftpack import ifft, fft, ifftshift, fftfreq
from scipy.signal import get_window
import warnings
from distutils.version import LooseVersion
from mne.filter import resample as _resample

from .._parallel import parallel_func, _check_n_jobs


def _smart_pad(x, n_pad):
    """Pad vector x
    """
    # need to pad with zeros if len(x) <= npad
    z_pad = np.zeros(max(n_pad - len(x) + 1, 0), dtype=x.dtype)
    return np.r_[z_pad, 2 * x[0] - x[n_pad:0:-1], x,
                 2 * x[-1] - x[-2:-n_pad - 2:-1], z_pad]


try:
    import mne<commit_msg>remove unused repos<commit_after># -*- coding: utf-8 -*-
"""Stimulus resampling functions
"""

import numpy as np
from distutils.version import LooseVersion
from mne.filter import resample as _resample


def _smart_pad(x, n_pad):
    """Pad vector x
    """
    # need to pad with zeros if len(x) <= npad
    z_pad = np.zeros(max(n_pad - len(x) + 1, 0), dtype=x.dtype)
    return np.r_[z_pad, 2 * x[0] - x[n_pad:0:-1], x,
                 2 * x[-1] - x[-2:-n_pad - 2:-1], z_pad]


try:
    import mne
{'fraction_non_alphanumeric': 0.14359861591695502, 'fraction_numerical': 0.020761245674740483, 'mean_word_length': 2.989655172413793, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2729752', 'n_tokens_mistral': 457, 'n_tokens_neox': 440, 'n_words': 127}