def documents(self, name=None):
        try:
            ftlist = PrettyList(self._fulltext_idx.values())
        except AttributeError:
            self._buildcorpusindex()
            ftlist = PrettyList(self._fulltext_idx.values())

        if name is None:
            return ftlist
        else:
            return PrettyList(x for x in ftlist if re.search(name, x['filename']) is not None)
Connect the client.
dataset/ETHPy150Open nltk/nltk/nltk/corpus/reader/framenet.py/FramenetCorpusReader.documents--crossover with--dataset/ETHPy150Open miguelgrinberg/Flask-SocketIO/flask_socketio/test_client.py/SocketIOTestClient.connect