59a23455672eb45a6529f57c9d21daeaae3051e3,src/python/pants/reporting/reporting_server.py,PantsHandler,_serve_file,#PantsHandler#Any#Any#,303
Before Change
args.update({"root_parent": os.path.dirname(self._root),
"breadcrumbs": breadcrumbs,
"link_path": link_path})
self._send_content(self._renderer.render_name("base.html", args), "text/html")
def _send_content(self, content, content_type, code=200):
Send content to client.
self.send_response(code)
After Change
args.update({"root_parent": os.path.dirname(self._root),
"breadcrumbs": breadcrumbs,
"link_path": link_path})
content = self._renderer.render_name("base.html", args).encode("utf-8")
self._send_content(content, "text/html")
def _send_content(self, content, content_type, code=200):
Send content to client.
assert isinstance(content, bytes)
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 6
Instances
Project Name: pantsbuild/pants
Commit Name: 59a23455672eb45a6529f57c9d21daeaae3051e3
Time: 2019-03-29
Author: ericarellano@me.com
File Name: src/python/pants/reporting/reporting_server.py
Class Name: PantsHandler
Method Name: _serve_file
Project Name: pantsbuild/pants
Commit Name: 59a23455672eb45a6529f57c9d21daeaae3051e3
Time: 2019-03-29
Author: ericarellano@me.com
File Name: src/python/pants/reporting/reporting_server.py
Class Name: PantsHandler
Method Name: _handle_run
Project Name: pantsbuild/pants
Commit Name: 59a23455672eb45a6529f57c9d21daeaae3051e3
Time: 2019-03-29
Author: ericarellano@me.com
File Name: src/python/pants/reporting/reporting_server.py
Class Name: PantsHandler
Method Name: _handle_content
Project Name: pantsbuild/pants
Commit Name: 59a23455672eb45a6529f57c9d21daeaae3051e3
Time: 2019-03-29
Author: ericarellano@me.com
File Name: src/python/pants/reporting/reporting_server.py
Class Name: PantsHandler
Method Name: _serve_dir
Project Name: pantsbuild/pants
Commit Name: 59a23455672eb45a6529f57c9d21daeaae3051e3
Time: 2019-03-29
Author: ericarellano@me.com
File Name: src/python/pants/reporting/reporting_server.py
Class Name: PantsHandler
Method Name: _handle_runs
Project Name: pantsbuild/pants
Commit Name: 59a23455672eb45a6529f57c9d21daeaae3051e3
Time: 2019-03-29
Author: ericarellano@me.com
File Name: src/python/pants/reporting/reporting_server.py
Class Name: PantsHandler
Method Name: _handle_stats