          For the purposes of the sandbox example, also ensure we delete the oldest snippets if we have > MAX_FILES."""
          unique_id = str(uuid.uuid1())
          pathname = os.path.join(HIGHLIGHTED_CODE_DIR, unique_id)
  
          lexer = get_lexer_by_name(content['lexer'])
          linenos = 'table' if content['linenos'] else False
          options = {'title': content['title']} if content['title'] else {}
          formatter = HtmlFormatter(style=content['style'], linenos=linenos, full=True, **options)
          
          with open(pathname, 'w') as outfile:
              highlight(content['code'], lexer, formatter, outfile)
          
          remove_oldest_files(HIGHLIGHTED_CODE_DIR, MAX_FILES)
 
</s> remove             highlight(content['code'], lexer, formatter, outfile)
 </s> add             highlight(self.CONTENT['code'], lexer, formatter, outfile) </s> remove     post = put = delete = http_method_not_allowed </s> add  </s> remove             return Resource(status.HTTP_404_NOT_FOUND)
 </s> add             return Response(status.HTTP_404_NOT_FOUND) </s> remove     put = delete = http_method_not_allowed
 </s> add     put = delete = None </s> remove     def get(self, request, auth, unique_id):
 </s> add     def get(self, request, unique_id):
        lexer = get_lexer_by_name(self.CONTENT['lexer'])
        linenos = 'table' if self.CONTENT['linenos'] else False
        options = {'title': self.CONTENT['title']} if self.CONTENT['title'] else {}
        formatter = HtmlFormatter(style=self.CONTENT['style'], linenos=linenos, full=True, **options)
          For the purposes of the sandbox example, also ensure we delete the oldest snippets if we have > MAX_FILES."""
          unique_id = str(uuid.uuid1())
          pathname = os.path.join(HIGHLIGHTED_CODE_DIR, unique_id)
  
        lexer = get_lexer_by_name(self.CONTENT['lexer'])
        linenos = 'table' if self.CONTENT['linenos'] else False
        options = {'title': self.CONTENT['title']} if self.CONTENT['title'] else {}
        formatter = HtmlFormatter(style=self.CONTENT['style'], linenos=linenos, full=True, **options)
        lexer = get_lexer_by_name(self.CONTENT['lexer'])
        linenos = 'table' if self.CONTENT['linenos'] else False
        options = {'title': self.CONTENT['title']} if self.CONTENT['title'] else {}
        formatter = HtmlFormatter(style=self.CONTENT['style'], linenos=linenos, full=True, **options)
        lexer = get_lexer_by_name(self.CONTENT['lexer'])
        linenos = 'table' if self.CONTENT['linenos'] else False
        options = {'title': self.CONTENT['title']} if self.CONTENT['title'] else {}
        formatter = HtmlFormatter(style=self.CONTENT['style'], linenos=linenos, full=True, **options)
        lexer = get_lexer_by_name(self.CONTENT['lexer'])
        linenos = 'table' if self.CONTENT['linenos'] else False
        options = {'title': self.CONTENT['title']} if self.CONTENT['title'] else {}
        formatter = HtmlFormatter(style=self.CONTENT['style'], linenos=linenos, full=True, **options)
          
          with open(pathname, 'w') as outfile:
              highlight(content['code'], lexer, formatter, outfile)
          
          remove_oldest_files(HIGHLIGHTED_CODE_DIR, MAX_FILES)
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Fix up tests and examples after refactoring 
examples/pygments_api/views.py