def _validate_table_row_counts(self):
for db_table_name in DB_TABLE_NAME_TO_SOURCE_FILE.keys():<EOL><INDENT>table_name_source_file = DB_TABLE_NAME_TO_SOURCE_FILE[db_table_name]<EOL>row_warning_str = DB_TABLE_NAME_TO_ROWS_MISSING_WARNING[db_table_name]<EOL>database_row_count = self.gtfs.get_row_count(db_table_name)<EOL>source_row_count = <NUM_LIT:0><EOL>for gtfs_source in self.gtfs_sources:<EOL><INDENT>frequencies_in_source = source_csv_to_pandas(gtfs_source, '<STR_LIT>')<EOL>try:<EOL><INDENT>if table_name_source_file == '<STR_LIT>' and not frequencies_in_source.empty:<EOL><INDENT>source_row_count += self._frequency_generated_trips_rows(gtfs_source)<EOL><DEDENT>elif table_name_source_file == '<STR_LIT>' and not frequencies_in_source.empty:<EOL><INDENT>source_row_count += self._compute_number_of_frequency_generated_stop_times(gtfs_source)<EOL><DEDENT>else:<EOL><INDENT>df = source_csv_to_pandas(gtfs_source, table_name_source_file)<EOL>source_row_count += len(df.index)<EOL><DEDENT><DEDENT>except IOError as e:<EOL><INDENT>if hasattr(e, "<STR_LIT:filename>") and db_table_name in e.filename:<EOL><INDENT>pass<EOL><DEDENT>else:<EOL><INDENT>raise e<EOL><DEDENT><DEDENT><DEDENT>if source_row_count == database_row_count and self.verbose:<EOL><INDENT>print("<STR_LIT>" + table_name_source_file + "<STR_LIT>"<EOL>+ str(database_row_count) + "<STR_LIT:)>")<EOL><DEDENT>else:<EOL><INDENT>difference = database_row_count - source_row_count<EOL>('<STR_LIT>' + str(table_name_source_file) + '<STR_LIT>' + str(source_row_count) +<EOL>'<STR_LIT>' + str(database_row_count) + "<STR_LIT:)>")<EOL>if table_name_source_file == "<STR_LIT>" and difference > <NUM_LIT:0>:<EOL><INDENT>query = "<STR_LIT>"+ str(int(difference)) +"<STR_LIT>"<EOL>number_of_entries_added_by_calendar_dates_loader = self.gtfs.execute_custom_query(query).fetchone()[<EOL><NUM_LIT:0>]<EOL>if number_of_entries_added_by_calendar_dates_loader == difference and self.verbose:<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>if self.verbose:<EOL><INDENT>print("<STR_LIT>")<EOL><DEDENT>self.warnings_container.add_warning(row_warning_str, self.location, difference)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.warnings_container.add_warning(row_warning_str, self.location, difference)<EOL><DEDENT><DEDENT><DEDENT>
Imports source .txt files, checks row counts and then compares the rowcounts with the gtfsobject
:return: