738966599b7e1eba13da06aa947797c01a54d26a,w3af/plugins/grep/cross_domain_js.py,cross_domain_js,_load_secure_js_file,#cross_domain_js#,131

Before Change


        
        if secure_js_file and not secure_js_file == "None":
            // Always zero the configured domains before we start
            self._secure_js_domains = []
            self._secure_js_file = secure_js_file

            secure_js_fh = file(secure_js_file)
            for domain in secure_js_fh:
                self._secure_js_domains.append(domain.strip())

            // Remove any duplicates
            self._secure_js_domains = list(set(self._secure_js_domains))

    def get_options(self):
        

After Change


        if secure_js_file == "None":
            return

        secure_js_domains = set()
        secure_js_domains_fh = file(secure_js_file)

        for domain in secure_js_domains_fh:
            secure_js_domains.add(domain.strip())

        self._secure_domain_multi_in = MultiIn(secure_js_domains)

    def get_options(self):
        
        :return: A list of option objects for this plugin.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: andresriancho/w3af
Commit Name: 738966599b7e1eba13da06aa947797c01a54d26a
Time: 2018-07-19
Author: andres.riancho@gmail.com
File Name: w3af/plugins/grep/cross_domain_js.py
Class Name: cross_domain_js
Method Name: _load_secure_js_file


Project Name: nilearn/nilearn
Commit Name: 76e40262c6a7d134b6b03b71b84984bd85454a04
Time: 2018-07-05
Author: jerome@dockes.org
File Name: nilearn/datasets/tests/test_struct.py
Class Name:
Method Name: test_fetch_surf_fsaverage


Project Name: pgmpy/pgmpy
Commit Name: d9213be6d79011721e43444b03d27fe6aaa65071
Time: 2014-01-29
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: active_trail_nodes


Project Name: gboeing/osmnx
Commit Name: d7b2db3c5262c82c44958afc2500efe0838f0884
Time: 2020-12-02
Author: boeing@usc.edu
File Name: osmnx/utils_graph.py
Class Name:
Method Name: _update_edge_keys


Project Name: pgmpy/pgmpy
Commit Name: 764b22136f964c50bcf7d30c4f1efe6bdaabd50b
Time: 2014-01-08
Author: ankurankan@gmail.com
File Name: src/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: _get_ancestors_observation