327a8d989f986623b258d5926142333d80697e4c,src/python/pants/init/plugin_resolver.py,PluginResolver,_options,#PluginResolver#,132

Before Change


    // Subsystem facility is wired up.  As a result PluginResolver is not itself a Subsystem with
    // PythonRepos as a dependency.  Instead it does the minimum possible work to hand-roll
    // bootstrapping of the Subsystem it needs.
    subsystems = Subsystem.closure([PythonRepos])
    known_scope_infos = [subsystem.get_scope_info() for subsystem in subsystems]
    options = self._options_bootstrapper.get_full_options(known_scope_infos)

    // Ignore command line flags since we"d blow up on any we don"t understand (most of them).
    // If someone wants to bootstrap plugins in a one-off custom way they"ll need to use env vars

After Change


    // Subsystem facility is wired up.  As a result PluginResolver is not itself a Subsystem with
    // PythonRepos as a dependency.  Instead it does the minimum possible work to hand-roll
    // bootstrapping of the Subsystems it needs.
    known_scope_infos = PythonRepos.known_scope_infos()
    options = self._options_bootstrapper.get_full_options(known_scope_infos)

    // Ignore command line flags since we"d blow up on any we don"t understand (most of them).
    // If someone wants to bootstrap plugins in a one-off custom way they"ll need to use env vars
    // or a --pants-config-files pointing to a custom pants.ini snippet.
    defaulted_only_options = options.drop_flag_values()

    GlobalOptionsRegistrar.register_options_on_scope(defaulted_only_options)
    distinct_optionable_classes = sorted({si.optionable_cls for si in known_scope_infos},
                                         key=lambda o: o.options_scope)
    for optionable_cls in distinct_optionable_classes:
      optionable_cls.register_options_on_scope(defaulted_only_options)
    return defaulted_only_options
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: pantsbuild/pants
Commit Name: 327a8d989f986623b258d5926142333d80697e4c
Time: 2018-03-09
Author: benjyw@gmail.com
File Name: src/python/pants/init/plugin_resolver.py
Class Name: PluginResolver
Method Name: _options


Project Name: pantsbuild/pants
Commit Name: 327a8d989f986623b258d5926142333d80697e4c
Time: 2018-03-09
Author: benjyw@gmail.com
File Name: src/python/pants/init/options_initializer.py
Class Name: OptionsInitializer
Method Name: _install_options


Project Name: polyaxon/polyaxon
Commit Name: 3b7d663888731885d0bda196dc416705be8c4bed
Time: 2018-05-15
Author: mouradmourafiq@gmail.com
File Name: polyaxon/libs/blacklist.py
Class Name:
Method Name: