c7e6e4cfd90d2d05bb9c9dffd519b32e9a1f15f6,src/python/pants/reporting/html_reporter.py,HtmlReporter,HtmlReporter_4,#,299

Before Change


    colored = self._handle_ansi_color_codes(cgi.escape(s.decode("utf-8")))
    return linkify(self._buildroot, colored, self._linkify_memo).replace("\n", "</br>")

  _ANSI_COLOR_CODE_RE = re.compile(r"\033\[((?:\d|;)*)m")

  def _handle_ansi_color_codes(self, s):
    Replace ansi escape sequences with spans of appropriately named css classes.
    parts = HtmlReporter._ANSI_COLOR_CODE_RE.split(s)

After Change


      // We must flush in the same thread as the write.
      f.flush()

  _log_level_css_map = {
    Report.FATAL: "fatal",
    Report.ERROR: "error",
    Report.WARN: "warn",
    Report.INFO: "info",
    Report.DEBUG: "debug"
  }

  _log_fmt_string = dedent(
    <div id="__{content_id}"><span class="{css_class}">{message}</span></div>
    <script>
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: pantsbuild/pants
Commit Name: c7e6e4cfd90d2d05bb9c9dffd519b32e9a1f15f6
Time: 2015-10-23
Author: benjyw@gmail.com
File Name: src/python/pants/reporting/html_reporter.py
Class Name: HtmlReporter
Method Name: HtmlReporter_4


Project Name: pantsbuild/pants
Commit Name: a0be9826e246f36203cba757073b62c74979980c
Time: 2013-11-25
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/reporting/html_reporter.py
Class Name: HtmlReporter
Method Name: HtmlReporter_3


Project Name: home-assistant/home-assistant
Commit Name: 169f054c6c038a8b6e51d8ede81db56f7b6b6b62
Time: 2016-09-17
Author: kellerza@gmail.com
File Name: homeassistant/components/device_tracker/thomson.py
Class Name:
Method Name: