9616a2292ea46272e95edecaeb2bd63473b28ff3,homeassistant/components/frontend/__init__.py,,_handle_get_root,#Any#Any#Any#,40
Before Change
auth = (handler.server.api_password if handler.server.no_password_set
else data.get("api_password", ""))
write(("<!doctype html>"
"<html>"
"<head><title>Home Assistant</title>"
"<meta name="mobile-web-app-capable" content="yes">"
"<link rel="shortcut icon" href="/static/favicon.ico" />"
"<link rel="icon" type="image/png" "
" href="/static/favicon-192x192.png" sizes="192x192">"
"<meta name="viewport" content="width=device-width, "
" user-scalable=no, initial-scale=1.0, "
" minimum-scale=1.0, maximum-scale=1.0" />"
"<meta name="theme-color" content="/a9f4">"
"</head>"
"<body fullbleed>"
"<h3 id="init" align="center">Initializing Home Assistant</h3>"
"<script"
" src="/static/webcomponents.min.js"></script>"
"<link rel="import" href="/static/{}" />"
"<home-assistant auth="{}"></home-assistant>"
"</body></html>").format(app_url, auth))
def _handle_get_static(handler, path_match, data):
Returns a static file for the frontend.
After Change
template_html = template_file.read()
template_html = template_html.replace("{{ app_url }}", app_url)
template_html = template_html.replace("{{ auth }}", auth)
handler.wfile.write(template_html.encode("UTF-8"))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: home-assistant/home-assistant
Commit Name: 9616a2292ea46272e95edecaeb2bd63473b28ff3
Time: 2015-03-03
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/frontend/__init__.py
Class Name:
Method Name: _handle_get_root
Project Name: pyinstaller/pyinstaller
Commit Name: 5ae5a2d4af15e570a74bc4541ac153ad12cddec5
Time: 2021-01-05
Author: dan@yeaw.me
File Name: PyInstaller/hooks/hook-gi.repository.GdkPixbuf.py
Class Name:
Method Name:
Project Name: sentinel-hub/eo-learn
Commit Name: 6b1035d56eca9b7af4abe1a81565667b0bf2fb47
Time: 2020-09-23
Author: william.ouellette@gmail.com
File Name: io/eolearn/io/local_io.py
Class Name: ExportToTiff
Method Name: execute