  
      Please feel free to browse, create, edit and delete the resources in these examples."""
  
      def get(self, request):
          return [{'name': 'Simple Resource example', 'url': reverse('example-resource', request)},
                  {'name': 'Simple ModelResource example', 'url': reverse('model-resource-root', request)},
                  {'name': 'Simple Mixin-only example', 'url': reverse('mixin-view', request)},
                  {'name': 'Object store API', 'url': reverse('object-store-root', request)},
                  {'name': 'Code highlighting API', 'url': reverse('pygments-root', request)},
                  {'name': 'Blog posts API', 'url': reverse('blog-posts-root', request)},
                  {'name': 'Permissions example', 'url': reverse('permissions-example', request)}
                  ]
 
</s> remove                                   'url': reverse('mixin-view', request)})
 </s> add                                   'url': url}) </s> remove     Uses djangorestframework's RendererMixin to provide support for multiple output formats."""
 </s> add     Uses djangorestframework's RendererMixin to provide support for multiple
    output formats.""" </s> remove     filepaths = [os.path.join(dir, file) for file in os.listdir(dir) if not file.startswith('.')]
    return [item[0] for item in sorted( [(path, os.path.getctime(path)) for path in filepaths],
                                        key=operator.itemgetter(1), reverse=False) ]
 </s> add     filepaths = [os.path.join(dir, file)
                 for file in os.listdir(dir)
                 if not file.startswith('.')]
    ctimes = [(path, os.path.getctime(path)) for path in filepaths]
    ctimes = sorted(ctimes, key=operator.itemgetter(1), reverse=False)
    return [filepath for filepath, ctime in  ctimes]
 </s> remove         return {"Some other resources": [reverse('another-example', request, kwargs={'num':num}) for num in range(3)]}
 </s> add         return {"Some other resources": [reverse('another-example', kwargs={'num':num}, request=request) for num in range(3)]}
        return [{'name': 'Simple Resource example', 'url': reverse('example-resource', request=request)},
                {'name': 'Simple ModelResource example', 'url': reverse('model-resource-root', request=request)},
                {'name': 'Simple Mixin-only example', 'url': reverse('mixin-view', request=request)},
                {'name': 'Object store API', 'url': reverse('object-store-root', request=request)},
                {'name': 'Code highlighting API', 'url': reverse('pygments-root', request=request)},
                {'name': 'Blog posts API', 'url': reverse('blog-posts-root', request=request)},
                {'name': 'Permissions example', 'url': reverse('permissions-example', request=request)}
  
      Please feel free to browse, create, edit and delete the resources in these examples."""
  
      def get(self, request):
        return [{'name': 'Simple Resource example', 'url': reverse('example-resource', request=request)},
                {'name': 'Simple ModelResource example', 'url': reverse('model-resource-root', request=request)},
                {'name': 'Simple Mixin-only example', 'url': reverse('mixin-view', request=request)},
                {'name': 'Object store API', 'url': reverse('object-store-root', request=request)},
                {'name': 'Code highlighting API', 'url': reverse('pygments-root', request=request)},
                {'name': 'Blog posts API', 'url': reverse('blog-posts-root', request=request)},
                {'name': 'Permissions example', 'url': reverse('permissions-example', request=request)}
        return [{'name': 'Simple Resource example', 'url': reverse('example-resource', request=request)},
                {'name': 'Simple ModelResource example', 'url': reverse('model-resource-root', request=request)},
                {'name': 'Simple Mixin-only example', 'url': reverse('mixin-view', request=request)},
                {'name': 'Object store API', 'url': reverse('object-store-root', request=request)},
                {'name': 'Code highlighting API', 'url': reverse('pygments-root', request=request)},
                {'name': 'Blog posts API', 'url': reverse('blog-posts-root', request=request)},
                {'name': 'Permissions example', 'url': reverse('permissions-example', request=request)}
        return [{'name': 'Simple Resource example', 'url': reverse('example-resource', request=request)},
                {'name': 'Simple ModelResource example', 'url': reverse('model-resource-root', request=request)},
                {'name': 'Simple Mixin-only example', 'url': reverse('mixin-view', request=request)},
                {'name': 'Object store API', 'url': reverse('object-store-root', request=request)},
                {'name': 'Code highlighting API', 'url': reverse('pygments-root', request=request)},
                {'name': 'Blog posts API', 'url': reverse('blog-posts-root', request=request)},
                {'name': 'Permissions example', 'url': reverse('permissions-example', request=request)}
        return [{'name': 'Simple Resource example', 'url': reverse('example-resource', request=request)},
                {'name': 'Simple ModelResource example', 'url': reverse('model-resource-root', request=request)},
                {'name': 'Simple Mixin-only example', 'url': reverse('mixin-view', request=request)},
                {'name': 'Object store API', 'url': reverse('object-store-root', request=request)},
                {'name': 'Code highlighting API', 'url': reverse('pygments-root', request=request)},
                {'name': 'Blog posts API', 'url': reverse('blog-posts-root', request=request)},
                {'name': 'Permissions example', 'url': reverse('permissions-example', request=request)}
        return [{'name': 'Simple Resource example', 'url': reverse('example-resource', request=request)},
                {'name': 'Simple ModelResource example', 'url': reverse('model-resource-root', request=request)},
                {'name': 'Simple Mixin-only example', 'url': reverse('mixin-view', request=request)},
                {'name': 'Object store API', 'url': reverse('object-store-root', request=request)},
                {'name': 'Code highlighting API', 'url': reverse('pygments-root', request=request)},
                {'name': 'Blog posts API', 'url': reverse('blog-posts-root', request=request)},
                {'name': 'Permissions example', 'url': reverse('permissions-example', request=request)}
        return [{'name': 'Simple Resource example', 'url': reverse('example-resource', request=request)},
                {'name': 'Simple ModelResource example', 'url': reverse('model-resource-root', request=request)},
                {'name': 'Simple Mixin-only example', 'url': reverse('mixin-view', request=request)},
                {'name': 'Object store API', 'url': reverse('object-store-root', request=request)},
                {'name': 'Code highlighting API', 'url': reverse('pygments-root', request=request)},
                {'name': 'Blog posts API', 'url': reverse('blog-posts-root', request=request)},
                {'name': 'Permissions example', 'url': reverse('permissions-example', request=request)}
        return [{'name': 'Simple Resource example', 'url': reverse('example-resource', request=request)},
                {'name': 'Simple ModelResource example', 'url': reverse('model-resource-root', request=request)},
                {'name': 'Simple Mixin-only example', 'url': reverse('mixin-view', request=request)},
                {'name': 'Object store API', 'url': reverse('object-store-root', request=request)},
                {'name': 'Code highlighting API', 'url': reverse('pygments-root', request=request)},
                {'name': 'Blog posts API', 'url': reverse('blog-posts-root', request=request)},
                {'name': 'Permissions example', 'url': reverse('permissions-example', request=request)}
                  ]
keep keep keep keep replace replace replace replace replace replace replace keep
 reverse takes request as a kwarg for compatibility with django's reverse 
examples/sandbox/views.py