0e3e90923a8f4a1f070f6136a3a660684f4da2a1,lore/util.py,,,#,104

Before Change


    logger.addHandler(syslog)

if env.exists():
    logfile = os.path.join(env.LOG_DIR, env.NAME + ".log")
    add_log_file_handler(logfile)


class PrintInterceptor(object):

After Change



if env.NAME != env.DEVELOPMENT and env.NAME != env.TEST:
    address = None
    for f in ("/dev/log", "/var/run/syslog",):
        if os.path.exists(f):
            address = f
            break

    if address:
        add_syslog_handler(address)

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: instacart/lore
Commit Name: 0e3e90923a8f4a1f070f6136a3a660684f4da2a1
Time: 2018-07-10
Author: montanalow@users.noreply.github.com
File Name: lore/util.py
Class Name:
Method Name:


Project Name: jsalt18-sentence-repl/jiant
Commit Name: 852d7bd6143faa1acdd4ef47a2fe84372f3b48c9
Time: 2018-07-26
Author: yu.katherin@gmail.com
File Name: src/beamsearch.py
Class Name:
Method Name: write_translation_preds


Project Name: jsalt18-sentence-repl/jiant
Commit Name: c2d5bde2b2d100b5d11e2c7f2e58186bca296f0d
Time: 2018-07-26
Author: wang.alex.c@gmail.com
File Name: src/beamsearch.py
Class Name:
Method Name: write_translation_preds