Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/c/r/crate.pypi-HEAD/crate/pypi/processor.py   crate.pypi(Download)
    def remove_files(self, *files):
        self.verify_and_sync_pages()
 
        packages = Package.objects.filter(name=self.name)
        releases = Release.objects.filter(package__in=packages)

src/c/r/crate.web-HEAD/crate/web/lists/views.py   crate.web(Download)
    def get_package(self, package):
        return next(iter(Package.objects.filter(name=package)[:1]), None)
 
    def get_list(self, list, user):
        return next(iter(List.objects.filter(name=list, user=user)[:1]), None)