original_string: public static function get_user_id_for_uniqueid_static($assignid, $uniqueid) {
          global $DB;
  
          // Search for a record.
          if ($record = $DB->get_record('assign_user_mapping',
                                        array('assignment'=>$assignid, 'id'=>$uniqueid),
                                        'userid',
                                        IGNORE_MISSING)) {
              return $record->userid;
          }
  
          return false;
      }
code: public static function get_user_id_for_uniqueid_static($assignid, $uniqueid) {
          global $DB;
  
          // Search for a record.
          if ($record = $DB->get_record('assign_user_mapping',
                                        array('assignment'=>$assignid, 'id'=>$uniqueid),
                                        'userid',
                                        IGNORE_MISSING)) {
              return $record->userid;
          }
  
          return false;
      }
code_tokens: public static function get_user_id_for_uniqueid_static ( $ assignid , $ uniqueid ) { global $ DB ; // Search for a record. if ( $ record = $ DB -> get_record ( 'assign_user_mapping' , array ( 'assignment' => $ assignid , 'id' => $ uniqueid ) , 'userid' , IGNORE_MISSING ) ) { return $ record -> userid ; } return false ; }
docstring: Lookup this unique id and return the user id for this assignment.
  
  @param int $assignid The id of the assignment this user mapping is in
  @param int $uniqueid The uniqueid to lookup
  @return int The user id or false if they don't exist
docstring_tokens: Lookup this unique id and return the user id for this assignment .