4a66d8672dce4d4859f03dea572833eaa003ede6,perfkitbenchmarker/windows_virtual_machine.py,WindowsMixin,RemoteCommand,#WindowsMixin#Any#Any#Any#Any#Any#,50

Before Change


        "exit Invoke-Command -Session $session -ScriptBlock "
        "{ $LastExitCode }" % command)

    cmd = "".join([set_error_pref, create_cred,
                    create_session, invoke_command])

    stdout, stderr, retcode = vm_util.IssueCommand(
        ["powershell", "-Command", cmd], timeout=timeout,
        suppress_warning=suppress_warning, force_info_log=should_log)

After Change


    s = winrm.Session("https://%s:%s" % (self.ip_address, self.winrm_port),
                      auth=(self.user_name, self.password),
                      server_cert_validation="ignore")
    encoded_command = base64.b64encode(command.encode("utf_16_le"))
    r = s.run_cmd("powershell -encodedcommand %s" % encoded_command)
    retcode, stdout, stderr = r.status_code, r.std_out, r.std_err
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 4a66d8672dce4d4859f03dea572833eaa003ede6
Time: 2017-10-30
Author: ehankland@google.com
File Name: perfkitbenchmarker/windows_virtual_machine.py
Class Name: WindowsMixin
Method Name: RemoteCommand


Project Name: sobhe/hazm
Commit Name: 44d3cc8e594304051b8fd20b9723a0c978068fe7
Time: 2013-12-26
Author: alireza.nournia@gmail.com
File Name: hazm/DependencyParser.py
Class Name: DependencyParser
Method Name: tagged_batch_parse


Project Name: pantsbuild/pants
Commit Name: b0a246995fc8b4eafa91bc123cf0c78e284573f5
Time: 2018-08-16
Author: ericarellano@me.com
File Name: src/python/pants/java/nailgun_executor.py
Class Name: NailgunExecutor
Method Name: _fingerprint


Project Name: WheatonCS/Lexos
Commit Name: 34eff2c3b9c92d9a6066f95e2f746f64fc054043
Time: 2013-06-12
Author: bryanjensen@horus.(none)
File Name: cutter.py
Class Name:
Method Name: cutter