302dea64fe3e24d701fe02a4be4e093833537d37,src/python/pants/backend/docgen/tasks/markdown_to_html.py,MarkdownToHtml,process_md,#MarkdownToHtml#Any#Any#Any#Any#Any#,148

Before Change


        )
        if fragmented:
          style_css = (HtmlFormatter(style=self.code_style)).get_style_defs(".codehilite")
          template = resource_string(__name__,
                                     os.path.join(self._templates_dir, "fragment.mustache"))
          generator = Generator(template, style_css=style_css, md_html=md_html)
          generator.write(output)
        else:
          style_link = os.path.relpath(css, os.path.dirname(output_path))

After Change


        )
        if fragmented:
          style_css = HtmlFormatter(style=self.code_style).get_style_defs(".codehilite")
          template = resource_string(
            __name__, os.path.join(self._templates_dir, "fragment.mustache")
          ).decode("utf-8")
          generator = Generator(template, style_css=style_css, md_html=md_html)
          generator.write(output)
        else:
          style_link = os.path.relpath(css, os.path.dirname(output_path))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 302dea64fe3e24d701fe02a4be4e093833537d37
Time: 2019-04-14
Author: ericarellano@me.com
File Name: src/python/pants/backend/docgen/tasks/markdown_to_html.py
Class Name: MarkdownToHtml
Method Name: process_md


Project Name: pantsbuild/pants
Commit Name: 0258a0729f639a65b98801ae807c475888281983
Time: 2018-08-29
Author: ericarellano@me.com
File Name: src/python/pants/core_tasks/bash_completion.py
Class Name: BashCompletion
Method Name: console_output


Project Name: pantsbuild/pants
Commit Name: 302dea64fe3e24d701fe02a4be4e093833537d37
Time: 2019-04-14
Author: ericarellano@me.com
File Name: src/python/pants/backend/docgen/tasks/markdown_to_html.py
Class Name: MarkdownToHtml
Method Name: process_rst