<commit_before>
from pycqed.measurement import measurement_control
import os
import pycqed as pq
from qcodes.instrument.base import Instrument
import qcodes as qc

import pycqed.measurement.openql_experiments.generate_qi_cfg as gcfg_qi


from QIProductionWorkers.CCLightWorker import CCLightWorker

try:
    MC_demo = measurement_control.MeasurementControl(
        'QInfinity_MC', live_plot_enabled=True, verbose=True)

    datadir = os.path.abspath(os.path.join(
        os.path.dirname(pq.__file__), os.pardir, 'demonstrator_execute_data'))
    MC_demo.datadir(datadir)
    st = qc.station.Station()
    MC_demo.station = st
    st.add_component(MC_demo)

except KeyError:
    MC_demo = qc.Instrument.find_instrument('QInfinity_MC')



config_fn ='D:\\GitHubRepos\\PycQED_py3\\pycqed\\measurement\\openql_experiments\\output\\cfg_CCL_QI.json'
gcfg_qi.generate_config(filename=config_fn,
                mw_pulse_duration=20,
                ro_duration=5000,
                flux_pulse_duration=40,
                init_duration=300000)


# worker = CCLightWorker(name='Starmon', nr_qubits=2,
#                        is_simulator=False, openql_config_path=config_fn)

worker = CCLightWorker(name='Octoqubit', nr_qubits=2,
                       is_simulator=False, openql_config_path=config_fn)<commit_msg>and a worker import fix<commit_after>
from pycqed.measurement import measurement_control
import os
import pycqed as pq
from qcodes.instrument.base import Instrument
import qcodes as qc

import pycqed.measurement.openql_experiments.generate_qi_cfg as gcfg_qi


from QICCLightWorker import CCLightWorker

try:
    MC_demo = measurement_control.MeasurementControl(
        'QInfinity_MC', live_plot_enabled=True, verbose=True)

    datadir = os.path.abspath(os.path.join(
        os.path.dirname(pq.__file__), os.pardir, 'demonstrator_execute_data'))
    MC_demo.datadir(datadir)
    st = qc.station.Station()
    MC_demo.station = st
    st.add_component(MC_demo)

except KeyError:
    MC_demo = qc.Instrument.find_instrument('QInfinity_MC')



config_fn ='D:\\GitHubRepos\\PycQED_py3\\pycqed\\measurement\\openql_experiments\\output\\cfg_CCL_QI.json'
gcfg_qi.generate_config(filename=config_fn,
                mw_pulse_duration=20,
                ro_duration=5000,
                flux_pulse_duration=40,
                init_duration=300000)


# worker = CCLightWorker(name='Starmon', nr_qubits=2,
#                        is_simulator=False, openql_config_path=config_fn)

worker = worker.CCLightWorker(name='Octoqubit')
{'fraction_non_alphanumeric': 0.09080142123963679, 'fraction_numerical': 0.013028030003947888, 'mean_word_length': 3.736448598130841, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4939519', 'n_tokens_mistral': 923, 'n_tokens_neox': 852, 'n_words': 130}