e736b0fd23f51046f454989ed5b34bbeac830861,config/pushbearConf.py,,sendPushBear,#Any#,8

Before Change


    conf = _get_yaml()
    if conf["pushbear_conf"]["is_pushbear"] and conf["pushbear_conf"]["send_key"].strip() != "":
        try:
            requests.get("{}?sendkey={}&text=来自12306抢票助手的通知&desp={}".format(PUSH_BEAR_API_PATH, conf["pushbear_conf"]["send_key"].strip(), msg))
            print(u"已下发 pushbear 微信通知, 请查收")
        except Exception as e:
            print(u"pushbear 配置有误 {}".format(e))

After Change


            sendPushBearUrls = urls.get("Pushbear")
            data = {
                "sendkey": conf["pushbear_conf"]["send_key"].strip(),
                "text": "易行购票成功通知-{}".format(time.strftime("%F %T")),
                "desp": msg
            }
            httpClint = HTTPClient(0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: testerSunshine/12306
Commit Name: e736b0fd23f51046f454989ed5b34bbeac830861
Time: 2019-01-15
Author: 931128603@qq.com
File Name: config/pushbearConf.py
Class Name:
Method Name: sendPushBear


Project Name: stratosphereips/StratosphereLinuxIPS
Commit Name: 4e09975eedc811c52302de17bd121b81e0b1b36e
Time: 2019-01-20
Author: eldraco@gmail.com
File Name: inputProcess.py
Class Name: InputProcess
Method Name: run


Project Name: deepfakes/faceswap
Commit Name: a8e8f9157b38314bb12910fe13fa7f34739d9c2b
Time: 2019-04-12
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/lib_alignments/jobs.py
Class Name: Merge
Method Name: set_destination_filename