<commit_before>import subprocess
from time import sleep
from devops.helpers.helpers import ssh
import glanceclient
import keystoneclient.v2_0
#from quantumclient.quantum import client as q_client
from quantumclient.v2_0 import client as q_client
import os
from fuel_test.ci.ci_vm import CiVM
from fuel_test.helpers import load, retry, install_packages, switch_off_ip_tables
from fuel_test.root import root
from fuel_test.settings import ADMIN_USERNAME, ADMIN_PASSWORD, ADMIN_TENANT_ESSEX, ADMIN_TENANT_FOLSOM, OS_FAMILY, CIRROS_IMAGE


class Prepare(object):
    def __init__(self):
        self.controllers = self.ci().nodes().controllers
        if len(self.controllers) == 1:
            self.public_ip = self.controllers[0].get_ip_address_by_network_name('public')
            self.internal_ip = self.controllers[0].get_ip_address_by_network_name('internal')
        else:
        self.public_ip = self.ci().public_virtual_ip()
        print "public", self.public_ip
        self.internal_ip = self.ci().public_virtual_ip()

    def remote(self):
        return ssh(self.public_ip,
                   login='root',
                   password='<PASSWORD>').sudo.ssh

    def ci(self):
        if not hasattr(self, '_ci'):<commit_msg>Fix spacing<commit_after>import subprocess
from time import sleep
from devops.helpers.helpers import ssh
import glanceclient
import keystoneclient.v2_0
#from quantumclient.quantum import client as q_client
from quantumclient.v2_0 import client as q_client
import os
from fuel_test.ci.ci_vm import CiVM
from fuel_test.helpers import load, retry, install_packages, switch_off_ip_tables
from fuel_test.root import root
from fuel_test.settings import ADMIN_USERNAME, ADMIN_PASSWORD, ADMIN_TENANT_ESSEX, ADMIN_TENANT_FOLSOM, OS_FAMILY, CIRROS_IMAGE


class Prepare(object):
    def __init__(self):
        self.controllers = self.ci().nodes().controllers
        if len(self.controllers) == 1:
            self.public_ip = self.controllers[0].get_ip_address_by_network_name('public')
            self.internal_ip = self.controllers[0].get_ip_address_by_network_name('internal')
        else:
            self.public_ip = self.ci().public_virtual_ip()
            print "public", self.public_ip
            self.internal_ip = self.ci().public_virtual_ip()

    def remote(self):
        return ssh(self.public_ip,
                   login='root',
                   password='<PASSWORD>').sudo.ssh

    def ci(self):
        if not hasattr(self, '_ci'):
{'fraction_non_alphanumeric': 0.0893719806763285, 'fraction_numerical': 0.005636070853462158, 'mean_word_length': 3.6018518518518516, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4471101', 'n_tokens_mistral': 797, 'n_tokens_neox': 763, 'n_words': 170}