fd7b464bde98bab8d8ad1a0c4f2e43afdb6ff7e7,pliers/converters/api/ibm.py,IBMSpeechAPIConverter,__init__,#IBMSpeechAPIConverter#Any#Any#Any#,39

Before Change


        verify_dependencies(["sr"])
        if username is None or password is None:
            try:
                username = os.environ["IBM_USERNAME"]
                password = os.environ["IBM_PASSWORD"]
            except KeyError:
                raise ValueError("A valid API key must be passed when a "
                                 "SpeechRecognitionConverter is initialized.")
        self.recognizer = sr.Recognizer()
        self.username = username
        self.password = password
        self.resolution = resolution
        super(IBMSpeechAPIConverter, self).__init__()

After Change


            except KeyError:
                raise ValueError("A valid API key must be passed when a "
                                 "SpeechRecognitionConverter is initialized.")
        self.recognizer = sr.Recognizer()
        self.username = username
        self.password = password
        self.resolution = resolution
        super(IBMSpeechAPIConverter, self).__init__(rate_limit=rate_limit)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: tyarkoni/pliers
Commit Name: fd7b464bde98bab8d8ad1a0c4f2e43afdb6ff7e7
Time: 2018-03-06
Author: quinten.mcnamara@gmail.com
File Name: pliers/converters/api/ibm.py
Class Name: IBMSpeechAPIConverter
Method Name: __init__


Project Name: calico/basenji
Commit Name: 71106ac70146d89b3e3e0774a5c27a98212e1405
Time: 2019-07-11
Author: geoff.fudenberg@gmail.com
File Name: basenji/seqnn.py
Class Name: SeqNN
Method Name: build_model


Project Name: calico/basenji
Commit Name: 09b8381f7dd52c67fdd629825ff319271167d8c5
Time: 2019-07-11
Author: drk@calicolabs.com
File Name: basenji/seqnn.py
Class Name: SeqNN
Method Name: build_model