original_docstring: 
          Initializes the database with the appropriate tables
          :return:
          
docstring: Initializes the database with the appropriate tables
docstring_tokens: Initializes the database with the appropriate tables
code: def __initdatabase(self):
          """
          Initializes the database with the appropriate tables
          :return:
          """
          db = self.connect()
          cur = db.cursor()
  
          cur.execute(
              'CREATE TABLE IF NOT EXISTS gfs_ncep(id INTEGER PRIMARY KEY '
              'AUTO_INCREMENT, forecastcycle DATETIME NOT NULL, forecasttime DATETIME NOT NULL, '
              'filepath VARCHAR(256) NOT NULL, url VARCHAR(256) NOT NULL, accessed DATETIME NOT NULL);'
          )
          cur.execute(
              'CREATE TABLE IF NOT EXISTS gfs_fcst(id INTEGER PRIMARY KEY '
              'AUTO_INCREMENT, forecastcycle DATETIME '
              'NOT NULL, forecasttime DATETIME NOT NULL, filepath VARCHAR(256) NOT NULL, url VARCHAR(256) NOT NULL, '
              'accessed DATETIME NOT NULL);')
          cur.execute(
              'CREATE TABLE IF NOT EXISTS nam_fcst(id INTEGER PRIMARY KEY '
              'AUTO_INCREMENT, forecastcycle DATETIME '
              'NOT NULL, forecasttime DATETIME NOT NULL, filepath VARCHAR(256) NOT NULL, url VARCHAR(256) NOT NULL, '
              'accessed DATETIME NOT NULL);')
          cur.execute(
              'CREATE TABLE IF NOT EXISTS hwrf(id INTEGER PRIMARY KEY '
              'AUTO_INCREMENT, stormname VARCHAR(256) NOT NULL, forecastcycle DATETIME '
              'NOT NULL, forecasttime DATETIME NOT NULL, filepath VARCHAR(256) NOT NULL, '
              'url VARCHAR(256) NOT NULL, accessed DATETIME NOT NULL);')
          cur.execute(
              'CREATE TABLE IF NOT EXISTS nam_ncep(id INTEGER PRIMARY KEY '
              'AUTO_INCREMENT, forecastcycle DATETIME NOT NULL, forecasttime DATETIME NOT NULL, '
              'filepath VARCHAR(256) NOT NULL, url VARCHAR(256) NOT NULL, accessed DATETIME NOT NULL);'
          )
          cur.execute(
              'CREATE TABLE IF NOT EXISTS nhc_btk(id INTEGER PRIMARY KEY '
              'AUTO_INCREMENT, storm_year INTEGER NOT NULL, basin VARCHAR(256) NOT NULL, storm INTEGER NOT NULL, '
              'advisory_start DATETIME NOT NULL, advisory_end DATETIME NOT NULL, '
              'advisory_duration_hr INT NOT NULL, filepath VARCHAR(256) NOT NULL, md5 VARCHAR(32) NOT NULL, '
              'accessed DATETIME NOT NULL);'
          )
          cur.execute(
              'CREATE TABLE IF NOT EXISTS nhc_fcst(id INTEGER PRIMARY KEY '
              'AUTO_INCREMENT, storm_year INTEGER NOT NULL, basin VARCHAR(256) NOT NULL, storm INTEGER NOT NULL, '
              'advisory VARCHAR(256) NOT NULL, advisory_start DATETIME NOT NULL, advisory_end DATETIME NOT NULL, '
              'advisory_duration_hr INT NOT NULL, filepath VARCHAR(256) NOT NULL, md5 VARCHAR(32) NOT NULL, '
              'accessed DATETIME NOT NULL);'
          )
          db.close()
code_tokens: def __initdatabase ( self ) : db = self . connect ( ) cur = db . cursor ( ) cur . execute ( 'CREATE TABLE IF NOT EXISTS gfs_ncep(id INTEGER PRIMARY KEY ' 'AUTO_INCREMENT, forecastcycle DATETIME NOT NULL, forecasttime DATETIME NOT NULL, ' 'filepath VARCHAR(256) NOT NULL, url VARCHAR(256) NOT NULL, accessed DATETIME NOT NULL);' ) cur . execute ( 'CREATE TABLE IF NOT EXISTS gfs_fcst(id INTEGER PRIMARY KEY ' 'AUTO_INCREMENT, forecastcycle DATETIME ' 'NOT NULL, forecasttime DATETIME NOT NULL, filepath VARCHAR(256) NOT NULL, url VARCHAR(256) NOT NULL, ' 'accessed DATETIME NOT NULL);' ) cur . execute ( 'CREATE TABLE IF NOT EXISTS nam_fcst(id INTEGER PRIMARY KEY ' 'AUTO_INCREMENT, forecastcycle DATETIME ' 'NOT NULL, forecasttime DATETIME NOT NULL, filepath VARCHAR(256) NOT NULL, url VARCHAR(256) NOT NULL, ' 'accessed DATETIME NOT NULL);' ) cur . execute ( 'CREATE TABLE IF NOT EXISTS hwrf(id INTEGER PRIMARY KEY ' 'AUTO_INCREMENT, stormname VARCHAR(256) NOT NULL, forecastcycle DATETIME ' 'NOT NULL, forecasttime DATETIME NOT NULL, filepath VARCHAR(256) NOT NULL, ' 'url VARCHAR(256) NOT NULL, accessed DATETIME NOT NULL);' ) cur . execute ( 'CREATE TABLE IF NOT EXISTS nam_ncep(id INTEGER PRIMARY KEY ' 'AUTO_INCREMENT, forecastcycle DATETIME NOT NULL, forecasttime DATETIME NOT NULL, ' 'filepath VARCHAR(256) NOT NULL, url VARCHAR(256) NOT NULL, accessed DATETIME NOT NULL);' ) cur . execute ( 'CREATE TABLE IF NOT EXISTS nhc_btk(id INTEGER PRIMARY KEY ' 'AUTO_INCREMENT, storm_year INTEGER NOT NULL, basin VARCHAR(256) NOT NULL, storm INTEGER NOT NULL, ' 'advisory_start DATETIME NOT NULL, advisory_end DATETIME NOT NULL, ' 'advisory_duration_hr INT NOT NULL, filepath VARCHAR(256) NOT NULL, md5 VARCHAR(32) NOT NULL, ' 'accessed DATETIME NOT NULL);' ) cur . execute ( 'CREATE TABLE IF NOT EXISTS nhc_fcst(id INTEGER PRIMARY KEY ' 'AUTO_INCREMENT, storm_year INTEGER NOT NULL, basin VARCHAR(256) NOT NULL, storm INTEGER NOT NULL, ' 'advisory VARCHAR(256) NOT NULL, advisory_start DATETIME NOT NULL, advisory_end DATETIME NOT NULL, ' 'advisory_duration_hr INT NOT NULL, filepath VARCHAR(256) NOT NULL, md5 VARCHAR(32) NOT NULL, ' 'accessed DATETIME NOT NULL);' ) db . close ( )
short_docstring: Initializes the database with the appropriate tables
short_docstring_tokens: Initializes the database with the appropriate tables
comment: """
          Initializes the database with the appropriate tables
          :return:
          """