f84d7243d70c2f8a2a7b7a4390141789fb181ceb,tests/version_test.py,VersionTestCase,setUp,#VersionTestCase#,15

Before Change


        self.hashes = ["123", "456", "789"]

        // Upload three package hashes.
        for h in self.hashes:
            pkgurl = "/api/package/{usr}/{pkg}/{hash}".format(
                usr=self.user,
                pkg=self.pkg,
                hash=h
            )

            resp = self.app.put(
                pkgurl,
                data=json.dumps(dict(
                    description=""
                )),
                content_type="application/json",
                headers={
                    "Authorization": self.user
                }
            )

            assert resp.status_code == requests.codes.ok

    def _add_version(self, version, pkghash):
        return self.app.put(
            "/api/version/{usr}/{pkg}/{version}".format(
                usr=self.user,

After Change


            {"bar": []},
            {"baz": []},
        ]
        self.hashes = [hash_contents(contents) for contents in self.contents_list]

        // Upload three package instances.
        for contents in self.contents_list:
            self.put_package(self.user, self.pkg, contents)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: quiltdata/quilt
Commit Name: f84d7243d70c2f8a2a7b7a4390141789fb181ceb
Time: 2017-02-22
Author: dima@gmail.com
File Name: tests/version_test.py
Class Name: VersionTestCase
Method Name: setUp


Project Name: quiltdata/quilt
Commit Name: f84d7243d70c2f8a2a7b7a4390141789fb181ceb
Time: 2017-02-22
Author: dima@gmail.com
File Name: tests/tag_test.py
Class Name: TagTestCase
Method Name: setUp


Project Name: chakki-works/doccano
Commit Name: 49d41416e440926f0a9a8243b4d77f6f5468efe9
Time: 2019-03-12
Author: light.tree.1.13@gmail.com
File Name: app/server/utils.py
Class Name: JsonHandler
Method Name: parse