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


        for dex in mapping.get(binary):
          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)
        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"))
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: tensorflow/agents
Commit Name: c9c1a06bdd8e9e0461255a3fcab52f48efdd5670
Time: 2020-07-24
Author: tobyboyd@google.com
File Name: tools/test_colabs.py
Class Name:
Method Name: run


Project Name: quiltdata/quilt
Commit Name: 511dd8aa75f9148415c8f9efc91257c62e503e2e
Time: 2019-10-09
Author: armandmcqueen@users.noreply.github.com
File Name: api/python/tests/integration/test_packages.py
Class Name: PackageTest
Method Name: test_set_package_entry_as_object


Project Name: quiltdata/quilt
Commit Name: 8fce8bd05cbc12171352e23d8e94aac2484ced21
Time: 2019-11-01
Author: dima@quiltdata.io
File Name: api/python/quilt3/packages.py
Class Name: Package
Method Name: _materialize