327a8d989f986623b258d5926142333d80697e4c,src/python/pants/init/options_initializer.py,OptionsInitializer,_install_options,#OptionsInitializer#Any#Any#,98

Before Change


      known_scope_infos.append(subsystem.get_scope_info())

    // Add scopes for all tasks in all goals.
    for goal in Goal.all():
      known_scope_infos.extend(filter(None, goal.known_scope_infos()))

    // Now that we have the known scopes we can get the full options.

After Change


    top_level_optionables = ({GlobalOptionsRegistrar} |
                             GoalRunner.subsystems() |
                             build_configuration.subsystems() |
                             set(Goal.get_optionables()))

    known_scope_infos = sorted({
      si for optionable in top_level_optionables for si in optionable.known_scope_infos()
    })

    // Now that we have the known scopes we can get the full options.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


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: gboeing/osmnx
Commit Name: 7a82efb9ed57cd4b7ff0c8f5b56b6aa5470e650f
Time: 2020-07-01
Author: boeing@usc.edu
File Name: osmnx/truncate.py
Class Name:
Method Name: truncate_graph_polygon


Project Name: commonsense/conceptnet5
Commit Name: f1fc699be9ce8b249cf5bd670d2200f990a5294d
Time: 2016-09-09
Author: rob@luminoso.com
File Name: conceptnet5/vectors/evaluation/analogy.py
Class Name:
Method Name: eval_analogies


Project Name: stanford-mast/nn_dataflow
Commit Name: ef4353bd24b9d781c2dfa9cd2146d9b87e63b6f1
Time: 2017-05-01
Author: mgao12@stanford.edu
File Name: nn_dataflow/Scheduling.py
Class Name: Scheduling
Method Name: schedule_search