c3fd7d1a6172a1133cb33f55a92985f6d34779db,classifier4gyoithon/GyoiClassifier.py,,check_arg_value,#,237

Before Change


    if url is not None:
        target = urlparse(url)
        if "http" not in target.scheme:
            print("[*] Invalid scheme : {0}.".format(target.scheme))
            return False
        if target.netloc == "":
            print("[*] Invalid fqdn : {0}.".format(target.netloc))

After Change



    // Check virtual host.
    if isinstance(vhost, str) is False and isinstance(vhost, int) is False:
        Utilty().print_message(FAIL, "Invalid vhost: {}".format(vhost))
        return False

    // Check url.
    if url is not None:
        target = util.parse_url(url)
        if "http" not in target.scheme:
            Utilty().print_message(FAIL, "Invalid scheme : {}.".format(target.scheme))
            return False
        if target.netloc == "":
            Utilty().print_message(FAIL, "Invalid fqdn : {}.".format(target.netloc))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: gyoisamurai/GyoiThon
Commit Name: c3fd7d1a6172a1133cb33f55a92985f6d34779db
Time: 2018-08-20
Author: gyoiler3@gmail.com
File Name: classifier4gyoithon/GyoiClassifier.py
Class Name:
Method Name: check_arg_value


Project Name: gyoisamurai/GyoiThon
Commit Name: c3fd7d1a6172a1133cb33f55a92985f6d34779db
Time: 2018-08-20
Author: gyoiler3@gmail.com
File Name: classifier4gyoithon/GyoiClassifier.py
Class Name:
Method Name: check_arg_value


Project Name: gyoisamurai/GyoiThon
Commit Name: 4673937fdcb248168fdc25d49b74c5c8f35eed63
Time: 2019-03-13
Author: gyoiler3@gmail.com
File Name: modules/Gyoi_Creator.py
Class Name: Creator
Method Name: is_dir_existance


Project Name: gyoisamurai/GyoiThon
Commit Name: c3fd7d1a6172a1133cb33f55a92985f6d34779db
Time: 2018-08-20
Author: gyoiler3@gmail.com
File Name: classifier4gyoithon/GyoiClassifier.py
Class Name:
Method Name:


Project Name: gyoisamurai/GyoiThon
Commit Name: cb54672c91f92d68179b2bdcfeb617f6bef9f390
Time: 2018-08-20
Author: gyoiler3@gmail.com
File Name: gyoithon.py
Class Name:
Method Name: check_arg_value