c7e6e4cfd90d2d05bb9c9dffd519b32e9a1f15f6,src/python/pants/reporting/html_reporter.py,HtmlReporter,_render_message,#HtmlReporter#,231

Before Change


      (text, detail, detail_id, detail_initially_visible) = \
        map(lambda x, y: x or y, element, defaults)
      element_args = {"text": self._htmlify_text(text)}
      if detail is not None:
        detail_id = detail_id or uuid.uuid4()
        detail_ids.append(detail_id)
        element_args.update({
          "detail": self._htmlify_text(detail),
          "detail_initially_visible": detail_initially_visible,
          "detail-id": detail_id
        })
      elements.append(element_args)
    args = {"elements": elements,
            "all-detail-ids": detail_ids}
    return self._renderer.render_name("message", args)

After Change


          detail_id=detail_id, detail=detail, detail_class=detail_class,
          detail_visibility_class=detail_visibility_class
        ))
    html_fragments.extend(detail_divs)
    html_fragments.append("</div>")

    return "".join(html_fragments)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: _render_message


Project Name: pantsbuild/pants
Commit Name: fd3a865b4b7130ee64aaee259f40d3c425021484
Time: 2019-05-14
Author: 1305167+cosmicexplorer@users.noreply.github.com
File Name: src/python/pants/option/compiler_option_sets_mixin.py
Class Name: CompilerOptionSetsMixin
Method Name: get_merged_args_for_compiler_option_sets


Project Name: zsdonghao/text-to-image
Commit Name: 74796ff02e9425ca336f595978fe6e7c422c0378
Time: 2017-04-11
Author: dhsig552@163.com
File Name: tensorlayer/layers.py
Class Name: DropoutLayer
Method Name: __init__