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):
        
        :return: A list of option objects for this plugin.

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())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

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: pyinstaller/pyinstaller
Commit Name: 5fc8babbe4e586f19e4d41f8634fa55650928e99
Time: 2020-05-14
Author: legorooj@protonmail.com
File Name: PyInstaller/depend/dylib.py
Class Name:
Method Name:


Project Name: pyinstaller/pyinstaller
Commit Name: 0246cf79f7783a50875d4308a6371d4496340291
Time: 2018-05-24
Author: bjones@ece.msstate.edu
File Name: PyInstaller/utils/hooks/__init__.py
Class Name:
Method Name:


Project Name: oddt/oddt
Commit Name: 86698c801848975de9a21fb17093e045b6271ea3
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: PreparePDBMol