original_string: protected function get_unique_db_instance_id() {
          global $CFG;
  
          $strkey = $CFG->dbname . ':' . $CFG->prefix;
          $intkey = crc32($strkey);
          // Normalize between 64 bit unsigned int and 32 bit signed ints. Php could return either from crc32.
          if (PHP_INT_SIZE == 8) {
              if ($intkey > 0x7FFFFFFF) {
                  $intkey -= 0x100000000;
              }
          }
  
          return $intkey;
      }
code: protected function get_unique_db_instance_id() {
          global $CFG;
  
          $strkey = $CFG->dbname . ':' . $CFG->prefix;
          $intkey = crc32($strkey);
          // Normalize between 64 bit unsigned int and 32 bit signed ints. Php could return either from crc32.
          if (PHP_INT_SIZE == 8) {
              if ($intkey > 0x7FFFFFFF) {
                  $intkey -= 0x100000000;
              }
          }
  
          return $intkey;
      }
code_tokens: protected function get_unique_db_instance_id ( ) { global $ CFG ; $ strkey = $ CFG -> dbname . ':' . $ CFG -> prefix ; $ intkey = crc32 ( $ strkey ) ; // Normalize between 64 bit unsigned int and 32 bit signed ints. Php could return either from crc32. if ( PHP_INT_SIZE == 8 ) { if ( $ intkey > 0x7FFFFFFF ) { $ intkey -= 0x100000000 ; } } return $ intkey ; }
docstring: Calculate a unique instance id based on the database name and prefix.
  @return int.
docstring_tokens: Calculate a unique instance id based on the database name and prefix .