5ce56ff7e7f0c085bdff9745471c50aa4d0e1faa,precise/stream.py,,main,#,78

Before Change


    stdout = sys.stdout
    sys.stdout = sys.stderr

    if sys.stdin.isatty() or len(sys.argv) > 3 or len(sys.argv) == 1 or (len(sys.argv) == 3 and not sys.argv[2].isdigit()):
        print("Usage:", sys.argv[0], "MODEL_NAME [CHUNK_SIZE] < audio.wav")
        print("    stdin should be a stream of raw int16 audio,")
        print("    written in groups of CHUNK_SIZE samples.")

After Change


    parser.add_argument("-v", "--version", action="version", version=__version__)
    parser.add_argument("model_name")
    parser.add_argument("chunk_size", type=int, nargs="?", default=-1)
    parser.usage = parser.format_usage().strip().replace("usage: ", "") + " < audio.wav"
    args = parser.parse_args()

    if sys.stdin.isatty():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: MycroftAI/mycroft-precise
Commit Name: 5ce56ff7e7f0c085bdff9745471c50aa4d0e1faa
Time: 2017-11-03
Author: matthew3311999@gmail.com
File Name: precise/stream.py
Class Name:
Method Name: main


Project Name: oddt/oddt
Commit Name: d9093c699c23b1d72bda53bbc97c8e4ed2ff3055
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: PreparePDBMol


Project Name: fxsjy/jieba
Commit Name: 99d0fb1a8a00c80c97271b2cc58d52c4fcff0032
Time: 2015-11-09
Author: abcdoyle888@gmail.com
File Name: jieba/__init__.py
Class Name: Tokenizer
Method Name: load_userdict