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():
        parser.error("Please pipe audio via stdin using < audio.wav")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: gyoisamurai/GyoiThon
Commit Name: 2fcde9fa889d6b9c52f9c9721943082a27236e87
Time: 2018-11-13
Author: gyoiler3@gmail.com
File Name: modules/Gyoi_ErrorChecker.py
Class Name: ErrorChecker
Method Name: get_error_message


Project Name: gyoisamurai/GyoiThon
Commit Name: b6f335e75cbc1a07d32c914d4629a25cf31cb964
Time: 2018-11-13
Author: gyoiler3@gmail.com
File Name: modules/Gyoi_CommentChecker.py
Class Name: CommentChecker
Method Name: get_bad_comment