4f53bca9b044b20bc4aa8b7719bbbb2984623b3a,classifier4gyoithon/GyoiClassifier.py,,,#,269

Before Change


        target = urlparse(url)
        target_url = target.geturl()
        try:
            with urlopen(target_url) as furl:
                response = str(furl.info()).rstrip()
                response += furl.read().decode("utf-8")
        except Exception as err:
            print("[*] Connection error: {0}".format(err))
            sys.exit(1)

After Change


        try:
            // Get HTTP headers and body.
            res = con.request("GET", target_url)
            headers = dict(res.headers)
            for header in headers.keys():
                response += header + ": " + headers[header].replace(""", "") + "\n"
            response += "\n" + res.data.decode("utf-8") + "\n"
        except Exception as err:
            print("[*] Connection error: {0}".format(err))
            sys.exit(1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: gyoisamurai/GyoiThon
Commit Name: 4f53bca9b044b20bc4aa8b7719bbbb2984623b3a
Time: 2018-06-04
Author: gyoiler3@gmail.com
File Name: classifier4gyoithon/GyoiClassifier.py
Class Name:
Method Name:


Project Name: gyoisamurai/GyoiThon
Commit Name: 5765f471197edbf64a57dd2628dcd3051c7ea46c
Time: 2018-06-04
Author: gyoiler3@gmail.com
File Name: gyoithon.py
Class Name:
Method Name:


Project Name: graphbrain/graphbrain
Commit Name: 66756de12d3f76d48774434bb210cab39a9590c0
Time: 2020-01-15
Author: telmo@telmomenezes.net
File Name: graphbrain/agents/txt_parser.py
Class Name: TxtParser
Method Name: input_file


Project Name: GoogleCloudPlatform/ml-on-gcp
Commit Name: b0207dc0cac04995271f030608d0f6ff8e8039d3
Time: 2019-08-08
Author: yuhanliu@google.com
File Name: example_zoo/tools/cmle_package.py
Class Name: CMLEPackage
Method Name: generate