def load_contents(self):
with open(METADATA_FILE) as f:<EOL><INDENT>lines = f.readlines()<EOL><DEDENT>lines = [x.strip() for x in lines]<EOL>exclude_strings = ['<STR_LIT>', '<STR_LIT>']<EOL>list_of_databases_and_columns = [x for x in [<EOL>list(value) for key, value in itertools.groupby(<EOL>lines,<EOL>lambda x: x in exclude_strings<EOL>)<EOL>] if not x[<NUM_LIT:0>] in exclude_strings]<EOL>for iterator in list_of_databases_and_columns:<EOL><INDENT>self.create_table_raw(<EOL>tablename=iterator[<NUM_LIT:0>],<EOL>columns=iterator[<NUM_LIT:1>:][:],<EOL>)<EOL><DEDENT>for i in self.tables:<EOL><INDENT>i.load_contents()<EOL><DEDENT>
Loads contents of the tables into database.