461bb39fbdd9f49ff21a6be038ffbd2e7ae622b0,src/python/pants/backend/android/tasks/aapt_builder.py,AaptBuilder,execute,#AaptBuilder#,69

Before Change


          if isinstance(target, AndroidResources):
            gen_out.append(os.path.join(get_buildroot(), target.resource_dir))

        target.walk(gather_resources)
        args = self.render_args(target, gen_out, input_dirs)
        with self.context.new_workunit(name="apk-bundle", labels=[WorkUnit.MULTITOOL]) as workunit:
          returncode = subprocess.call(args, stdout=workunit.output("stdout"),
                                       stderr=workunit.output("stderr"))

After Change


          dex_files.append(dex)

        resource_deps = self.context.build_graph.transitive_subgraph_of_addresses([binary.address])
        resource_dirs = [t.resource_dir for t in resource_deps if isinstance(t, AndroidResources)]

        // Priority for resources is left to right, so reverse the collection order (DFS preorder).
        args = self._render_args(binary, reversed(resource_dirs), dex_files)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 461bb39fbdd9f49ff21a6be038ffbd2e7ae622b0
Time: 2015-07-30
Author: mateorod9@gmail.com
File Name: src/python/pants/backend/android/tasks/aapt_builder.py
Class Name: AaptBuilder
Method Name: execute


Project Name: geometalab/OSMDeepOD
Commit Name: d4e9f0fb6d41a927d55a9a9db88c49fc17d8d70f
Time: 2016-08-12
Author: samuel.kurath@gmail.com
File Name: src/detection/box_walker.py
Class Name: BoxWalker
Method Name: walk


Project Name: matplotlib/matplotlib
Commit Name: 66348a9259bc034d0f6b21cfb554f8b2f0af94b0
Time: 2018-03-23
Author: anntzer.lee@gmail.com
File Name: tools/triage_tests.py
Class Name:
Method Name: find_failing_tests


Project Name: pantsbuild/pants
Commit Name: 7699c5dcdb3cfbb8050581aed2f2eb7a5cc99579
Time: 2014-08-08
Author: garrett.malmquist@gmail.com
File Name: src/python/pants/backend/codegen/tasks/protobuf_gen.py
Class Name: ProtobufGen
Method Name: _calculate_sources