def encodeAllRecords(self, records=None, toBeAdded=True):
if records is None:<EOL><INDENT>records = self.getAllRecords()<EOL><DEDENT>if self.verbosity><NUM_LIT:0>: print('<STR_LIT>', len(records), '<STR_LIT>')<EOL>encodings = [self.encodeRecord(record, toBeAdded) for record in records]<EOL>return encodings<EOL>
Encodes a list of records.
        Parameters:
        --------------------------------------------------------------------
        records:      One or more records. (i,j)th element of this 2D array
                      specifies the value at field j of record i.
                      If unspecified, records previously generated and stored are
                      used.
        toBeAdded:    Whether the encodings corresponding to the record are added to
                      the corresponding fields