<commit_before>import numpy as np
from copy import deepcopy
from qcodes.utils import validators
from qcodes.instrument.parameter import ManualParameter
from pycqed.measurement import sweep_functions as swf
from pycqed.instrument_drivers.acquisition_devices.base import \
    ZI_AcquisitionDevice
from zhinst.qcodes import SHFQA as SHFQA_core
from zhinst.qcodes import SHFQC as SHFQC_core
from zhinst.qcodes import AveragingMode
from pycqed.utilities.timer import Timer
import logging
log = logging.getLogger(__name__)


class SHFQASpectroscopyHardSweep(swf.UploadingSweepFunction,
                                 swf.Hard_Sweep):
    """Defines a hard sweep function specific to the SHFQA hard spectroscopy.

    The frequency range over which this sweep function should sweep is not<commit_msg>shf.py: bugfix: renames SHFQASpectroscopyHardSweep to SHFSpectroscopyHardSweep<commit_after>import numpy as np
from copy import deepcopy
from qcodes.utils import validators
from qcodes.instrument.parameter import ManualParameter
from pycqed.measurement import sweep_functions as swf
from pycqed.instrument_drivers.acquisition_devices.base import \
    ZI_AcquisitionDevice
from zhinst.qcodes import SHFQA as SHFQA_core
from zhinst.qcodes import SHFQC as SHFQC_core
from zhinst.qcodes import AveragingMode
from pycqed.utilities.timer import Timer
import logging
log = logging.getLogger(__name__)


class SHFSpectroscopyHardSweep(swf.UploadingSweepFunction, swf.Hard_Sweep):
    """Defines a hard sweep function specific to the SHFQA hard spectroscopy.

    The frequency range over which this sweep function should sweep is not
{'fraction_non_alphanumeric': 0.03884093711467324, 'fraction_numerical': 0.0, 'mean_word_length': 5.290697674418604, 'pattern_counts': {'":': 0, '<': 3, '<?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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1558054', 'n_tokens_mistral': 510, 'n_tokens_neox': 481, 'n_words': 156}