<commit_before># -*- coding: utf-8 -*-
# This code assumes vboxapi.py from VirtualBox distribution
# being in PYTHONPATH, or installed system-wide

# Import Python Libs
from __future__ import absolute_import
import os
import unittest
import logging
import socket

# Import Salt Testing Libs
from salttesting import skipIf
from salttesting.helpers import ensure_in_syspath

from integration.cloud.helpers.virtualbox import VirtualboxTestCase, VirtualboxCloudTestCase, CONFIG_NAME, \
    PROVIDER_NAME, \
    PROFILE_NAME, BASE_BOX_NAME, INSTANCE_NAME, BOOTABLE_BASE_BOX_NAME, DEPLOY_PROFILE_NAME

ensure_in_syspath('../../../')

# Import Salt Libs
import salt.ext.six as six
from salt.ext.six.moves import range
import integration
from salt.config import cloud_providers_config, vm_profiles_config
from utils.virtualbox import vb_xpcom_to_attribute_dict, vb_clone_vm, vb_destroy_machine, vb_create_machine, \
    vb_get_box, vb_machine_exists, XPCOM_ATTRIBUTES, vb_start_vm, vb_stop_vm, \
    vb_get_network_addresses, vb_wait_for_network_address, machine_get_machinestate_str

# Setup logging
log = logging.getLogger()
log = logging.getLogger(__name__)
# log_handler = logging.StreamHandler()
# log_handler.setLevel(logging.INFO)
# log.addHandler(log_handler)
# log.setLevel(logging.INFO)
info = log.info

# As described in the documentation of list_nodes (this may change with time)
MINIMAL_MACHINE_ATTRIBUTES = [
    "id",
    "image",
    "size",
    "state",
    "private_ips",
    "public_ips",
]

<commit_msg>fix import for virtualbox test<commit_after># -*- coding: utf-8 -*-
# This code assumes vboxapi.py from VirtualBox distribution
# being in PYTHONPATH, or installed system-wide

# Import Python Libs
from __future__ import absolute_import
import os
import unittest
import logging
import socket

# Import Salt Testing Libs
from salttesting import skipIf
from salttesting.helpers import ensure_in_syspath

from integration.cloud.helpers.virtualbox import VirtualboxTestCase, VirtualboxCloudTestCase, CONFIG_NAME, \
    PROVIDER_NAME, \
    PROFILE_NAME, BASE_BOX_NAME, INSTANCE_NAME, BOOTABLE_BASE_BOX_NAME, DEPLOY_PROFILE_NAME

ensure_in_syspath('../../../')

# Import Salt Libs
import salt.ext.six as six
from salt.ext.six.moves import range
import integration
from salt.config import cloud_providers_config, vm_profiles_config
from salt.utils.virtualbox import vb_xpcom_to_attribute_dict, vb_clone_vm, vb_destroy_machine, vb_create_machine, \
    vb_get_box, vb_machine_exists, XPCOM_ATTRIBUTES, vb_start_vm, vb_stop_vm, \
    vb_get_network_addresses, vb_wait_for_network_address, machine_get_machinestate_str

# Setup logging
log = logging.getLogger()
log = logging.getLogger(__name__)
# log_handler = logging.StreamHandler()
# log_handler.setLevel(logging.INFO)
# log.addHandler(log_handler)
# log.setLevel(logging.INFO)
info = log.info

# As described in the documentation of list_nodes (this may change with time)
MINIMAL_MACHINE_ATTRIBUTES = [
    "id",
    "image",
    "size",
    "state",
    "private_ips",
    "public_ips",
]


{'fraction_non_alphanumeric': 0.08027522935779817, 'fraction_numerical': 0.000655307994757536, 'mean_word_length': 5.468220338983051, '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': '667964', 'n_tokens_mistral': 1012, 'n_tokens_neox': 1005, 'n_words': 246}