1be89c3a9a87fec68ee4860f200899f434b9240d,speech/api/speech_streaming.py,,listen_print_loop,#Any#,87

Before Change


        // Exit recognition if any of the transcribed phrases could be
        // one of our keywords.
        if any(alt.confidence > .5 and
               (alt.transcript.strip() in ("exit", "quit"))
               for result in resp.results
               for alt in result.alternatives):
            print("Exiting..")

After Change



        // Exit recognition if any of the transcribed phrases could be
        // one of our keywords.
        if any(re.search(r"\b(exit|quit)\b", alt.transcript)
               for result in resp.results
               for alt in result.alternatives):
            print("Exiting..")
            return
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 1be89c3a9a87fec68ee4860f200899f434b9240d
Time: 2016-05-10
Author: jerjou@google.com
File Name: speech/api/speech_streaming.py
Class Name:
Method Name: listen_print_loop


Project Name: Qiskit/qiskit-aqua
Commit Name: b51789878359e051338c91b8f1f0a916a1e6e65b
Time: 2019-09-22
Author: rmax@ethz.ch
File Name: qiskit/aqua/algorithms/adaptive/vqe_adapt/vqe_adapt.py
Class Name: VQEAdapt
Method Name: _run


Project Name: scipy/scipy
Commit Name: 4ab211d6dd50c043cacd24db93a6bc64cfdb9ed5
Time: 2017-07-21
Author: pav@iki.fi
File Name: tools/validate_runtests_log.py
Class Name:
Method Name: