3c2b4f5128c218f8d73dbb0e1e3b5b08959b09d1,homeassistant/components/notify/smtp.py,MailNotificationService,send_message,#MailNotificationService#Any#,102
Before Change
def send_message(self, message="", **kwargs):
Send a message to a user.
mail = self.connect()
subject = kwargs.get(ATTR_TITLE)
msg = MIMEText(message)
msg["Subject"] = subject
After Change
data = kwargs.get(ATTR_DATA)
if data:
msg = _build_multipart_msg(message, images=data.get(ATTR_IMAGES))
else:
msg = _build_text_msg(message)
msg["Subject"] = subject
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: home-assistant/home-assistant
Commit Name: 3c2b4f5128c218f8d73dbb0e1e3b5b08959b09d1
Time: 2016-08-08
Author: partofthething@users.noreply.github.com
File Name: homeassistant/components/notify/smtp.py
Class Name: MailNotificationService
Method Name: send_message
Project Name: ray-project/ray
Commit Name: 6412dfaf383e84e5662cf4bfd3be3927de42e8e1
Time: 2020-12-01
Author: me@barakmich.com
File Name: python/ray/tests/test_experimental_client.py
Class Name:
Method Name: test_remote_functions
Project Name: ray-project/ray
Commit Name: 7a6f8054d1fdf5a29907cad480e581cd5c864ea3
Time: 2021-02-09
Author: ameer@anyscale.com
File Name: python/ray/monitor.py
Class Name: Monitor
Method Name: __init__
Project Name: ray-project/ray
Commit Name: d87a82e8915f5bb3adc24b6f0f99ddece10be3ea
Time: 2021-02-10
Author: ameer@anyscale.com
File Name: python/ray/monitor.py
Class Name: Monitor
Method Name: __init__