327a8d989f986623b258d5926142333d80697e4c,tests/python/pants_test/base_test.py,BaseTest,context,#BaseTest#Any#Any#Any#Any#Any#Any#,277

Before Change


        optionables.add(type(subclass_name, (task_type.goal_options_registrar_cls, ),
                             {b"options_scope": task_type.options_scope}))

      optionables.update(Subsystem.closure(
        set([dep.subsystem_cls for dep in task_type.subsystem_dependencies_iter()]) |
            self._build_configuration.subsystems()))

    // Now default the option values and override with any caller-specified values.
    // TODO(benjy): Get rid of the options arg, and require tests to call set_options.
    options = options.copy() if options else {}

After Change


    // Now expand to all deps.
    all_optionables = set()
    for optionable in optionables:
      all_optionables.update(si.optionable_cls for si in optionable.known_scope_infos())

    // Now default the option values and override with any caller-specified values.
    // TODO(benjy): Get rid of the options arg, and require tests to call set_options.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 327a8d989f986623b258d5926142333d80697e4c
Time: 2018-03-09
Author: benjyw@gmail.com
File Name: tests/python/pants_test/base_test.py
Class Name: BaseTest
Method Name: context


Project Name: pantsbuild/pants
Commit Name: 7e48e0aad8d93f47e78a76dcb65c929e36020801
Time: 2014-10-08
Author: tejal29@gmail.com
File Name: src/python/pants/goal/context.py
Class Name: Context
Method Name: targets


Project Name: pantsbuild/pants
Commit Name: 293b31e7adc0993926864e66134bae2b53a9934c
Time: 2014-11-10
Author: zundel@squareup.com
File Name: src/python/pants/backend/codegen/tasks/protobuf_gen.py
Class Name: ProtobufGen
Method Name: _calculate_sources