@contract
def init_state(config):
    vir_connection = libvirt.openReadOnly(None)
    if vir_connection is None:
        message = 'Failed to open a connection to the hypervisor'
        log.critical(message)
        raise OSError(message)

    physical_cpu_mhz_total = int(
        common.physical_cpu_mhz_total(vir_connection) *
        float(config['host_cpu_usable_by_vms']))
    return {'previous_time': 0.,
            'vir_connection': vir_connection,
            'db': init_db(config['sql_connection']),
            'physical_cpu_mhz_total': physical_cpu_mhz_total,
            'hostname': vir_connection.getHostname(),
            'hashed_username': sha1(config['os_admin_user']).hexdigest(),
            'hashed_password': sha1(config['os_admin_password']).hexdigest()}
Checks state of the document, and based on the preprocess options,
dataset/ETHPy150Open beloglazov/openstack-neat/neat/locals/manager.py/init_state--crossover with--dataset/ETHPy150Open machinalis/iepy/iepy/preprocess/stanford_preprocess.py/StanfordPreprocess.__call__