  import os
  import uuid
  import operator
  
  # We need somewhere to store the code that we highlight
  HIGHLIGHTED_CODE_DIR = os.path.join(settings.MEDIA_ROOT, 'pygments')
  MAX_FILES = 10
  
  def list_dir_sorted_by_ctime(dir):
      """Return a list of files sorted by creation time"""
 
</s> remove     """Return a list of files sorted by creation time"""
 </s> add     """
    Return a list of files sorted by creation time
    """ </s> remove     return [item[0] for item in sorted([(path, os.path.getctime(path)) for path in filepaths],
                                                     key=operator.itemgetter(1), reverse=False)]
 </s> add     return [item[0] for item in sorted( [(path, os.path.getctime(path)) for path in filepaths],
                                        key=operator.itemgetter(1), reverse=False) ]
 </s> remove     """Remove the oldest files in a directory 'dir', leaving at most 'max_files' remaining.
    We use this to limit the number of resources in the sandbox."""
 </s> add     """
    Remove the oldest files in a directory 'dir', leaving at most 'max_files' remaining.
    We use this to limit the number of resources in the sandbox.
    """ </s> remove     def get(self, request, auth):
        """Return a list of all the stored object URLs. (Ordered by creation time, newest first)"""
 </s> add     def get(self, request):
        """
        Return a list of all the stored object URLs. (Ordered by creation time, newest first)
        """ </s> remove from djangorestframework.resource import Resource
 </s> add from djangorestframework.views import BaseView
# We need somewhere to store the code snippets that we highlight
  import os
  import uuid
  import operator
  
# We need somewhere to store the code snippets that we highlight
  HIGHLIGHTED_CODE_DIR = os.path.join(settings.MEDIA_ROOT, 'pygments')
  MAX_FILES = 10
  
  def list_dir_sorted_by_ctime(dir):
      """Return a list of files sorted by creation time"""
keep keep keep keep replace keep keep keep keep keep
 Fixing some of the last blocking issues 
examples/pygments_api/views.py