d14943d999fa15a13f0ec9d29821bf1212294ffc,tests/python/pants_test/init/test_extension_loader.py,LoaderTest,get_mock_plugin,#LoaderTest#Any#Any#Any#Any#Any#,199

Before Change


    plugin_pkg = b"demoplugin{0}".format(uuid.uuid4().hex)
    pkg = types.ModuleType(plugin_pkg)
    sys.modules[plugin_pkg] = pkg
    module_name = b"{0}.{1}".format(plugin_pkg, "demo")
    plugin = types.ModuleType(module_name)
    setattr(pkg, "demo", plugin)
    sys.modules[module_name] = plugin

After Change


    

    plugin_pkg = "demoplugin{0}".format(uuid.uuid4().hex)
    if PY2:
      plugin_pkg = plugin_pkg.encode("utf-8")
    pkg = types.ModuleType(plugin_pkg)
    sys.modules[plugin_pkg] = pkg
    module_name = "{0}.{1}".format(plugin_pkg, "demo")
    if PY2:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 10

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: d14943d999fa15a13f0ec9d29821bf1212294ffc
Time: 2018-08-07
Author: ericarellano@me.com
File Name: tests/python/pants_test/init/test_extension_loader.py
Class Name: LoaderTest
Method Name: get_mock_plugin


Project Name: pantsbuild/pants
Commit Name: f189af8ba65d61038c5c916e952887b8b123fb06
Time: 2018-08-01
Author: ericarellano@me.com
File Name: src/python/pants/task/goal_options_mixin.py
Class Name: GoalOptionsRegistrar
Method Name: registrar_for_scope


Project Name: pantsbuild/pants
Commit Name: 54e6848c71d7cb71abcf71cb285cf28c69fa52a7
Time: 2018-07-28
Author: ericarellano@me.com
File Name: tests/python/pants_test/task_test_base.py
Class Name: TaskTestBase
Method Name: synthesize_task_subtype


Project Name: pantsbuild/pants
Commit Name: d14943d999fa15a13f0ec9d29821bf1212294ffc
Time: 2018-08-07
Author: ericarellano@me.com
File Name: tests/python/pants_test/init/test_extension_loader.py
Class Name: LoaderTest
Method Name: create_register


Project Name: pantsbuild/pants
Commit Name: f189af8ba65d61038c5c916e952887b8b123fb06
Time: 2018-08-01
Author: ericarellano@me.com
File Name: src/python/pants/goal/goal.py
Class Name:
Method Name: _create_stable_task_type


Project Name: pantsbuild/pants
Commit Name: 6c90f8ef7e6a637511ff123b6052577de30b3409
Time: 2018-07-24
Author: ericarellano@me.com
File Name: src/python/pants/util/objects.py
Class Name: Collection
Method Name: of


Project Name: pantsbuild/pants
Commit Name: 54e6848c71d7cb71abcf71cb285cf28c69fa52a7
Time: 2018-07-28
Author: ericarellano@me.com
File Name: tests/python/pants_test/base_test.py
Class Name: BaseTest
Method Name: context


Project Name: pantsbuild/pants
Commit Name: 54e6848c71d7cb71abcf71cb285cf28c69fa52a7
Time: 2018-07-28
Author: ericarellano@me.com
File Name: tests/python/pants_test/test_base.py
Class Name: TestBase
Method Name: context


Project Name: pantsbuild/pants
Commit Name: 8394caa7381fcb96d8601835c682d5d84133b811
Time: 2018-07-28
Author: ericarellano@me.com
File Name: tests/python/pants_test/tasks/task_test_base.py
Class Name: TaskTestBase
Method Name: synthesize_task_subtype


Project Name: pantsbuild/pants
Commit Name: d14943d999fa15a13f0ec9d29821bf1212294ffc
Time: 2018-08-07
Author: ericarellano@me.com
File Name: tests/python/pants_test/task/test_task.py
Class Name: TaskTest
Method Name: _synthesize_subtype