<commit_before>from sets import Set

from pyVmomi import vim

from vmwarelib import inventory
from vmwarelib.actions import BaseAction

class GetVMConsoleUrls(BaseAction):

    def run(self, vms):
        meta_url_template = 'https://{host}:{port}/vsphere-client/vmrc/vmrc.jsp?vm=urn:vmomi:VirtualMachine:{{vm}}:{si_uuid}'

        si_content = self.si.RetrieveContent()
        si_uuid = si_content.about.instanceUuid

        host = self.config['host']
        port=self.config['port']

        vm_url_template = meta_url_template.format(host=host, port=port, si_uuid=si_uuid)

        vm_moids = vms
        vms_console_urls = [ {moid : {'url' : vm_url_template.format(vm=moid)}} for moid in vm_moids]

        return vms_console_urls

<commit_msg>please flake<commit_after>from vmwarelib.actions import BaseAction

class GetVMConsoleUrls(BaseAction):

    def run(self, vms):
        meta_url_template = 'https://{host}:{port}/vsphere-client/vmrc/vmrc.jsp?' \
                            'vm=urn:vmomi:VirtualMachine:{{vm}}:{si_uuid}'

        si_content = self.si.RetrieveContent()
        si_uuid = si_content.about.instanceUuid

        host = self.config['host']
        port=self.config['port']

        vm_url_template = meta_url_template.format(host=host, port=port, si_uuid=si_uuid)

        vm_moids = vms
        vms_console_urls = [
            {moid : {'url' : vm_url_template.format(vm=moid)}} for moid in vm_moids
        ]

        return vms_console_urls


{'fraction_non_alphanumeric': 0.11585365853658537, 'fraction_numerical': 0.0, 'mean_word_length': 3.148876404494382, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3389859', 'n_tokens_mistral': 504, 'n_tokens_neox': 493, 'n_words': 82}