def render_oembed(self, oembed_resource, original_url, template_dir=None,
                      context=None):
        provided_context = context or Context()
        context = RequestContext(context.get("request") or mock_request())
        context.update(provided_context)
        
        # templates are named for the resources they display, i.e. video.html
        template_name = '%s.html' % oembed_resource.type
        
        # set up template finder to fall back to the link template
        templates = [os.path.join('oembed', template_name), 'oembed/link.html']
        
        # if there's a custom template dir, look there first
        if template_dir:
            templates.insert(0, os.path.join('oembed', template_dir, template_name))
        
        template = select_template(templates)
        
        context.push()
        context['response'] = oembed_resource
        context['original_url'] = original_url
        rendered = template.render(context)
        context.pop()
        
        return rendered.strip() # rendering template may add whitespace
A file with a high-resolution timestamp which falls on a day of the
dataset/ETHPy150Open worldcompany/djangoembed/oembed/parsers/base.py/BaseParser.render_oembed--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/conch/test/test_cftp.py/ListingTests.test_oldSingleDigitDayOfMonth