original_string: public static function backup_includes_mnet_remote_users($backupid) {
          global $CFG, $DB;
  
          $sql = "SELECT COUNT(*)
                    FROM {backup_ids_temp} b
                    JOIN {user} u ON u.id = b.itemid
                   WHERE b.backupid = ?
                     AND b.itemname = 'userfinal'
                     AND u.mnethostid != ?";
          $count = $DB->count_records_sql($sql, array($backupid, $CFG->mnet_localhost_id));
          return (int)(bool)$count;
      }
code: public static function backup_includes_mnet_remote_users($backupid) {
          global $CFG, $DB;
  
          $sql = "SELECT COUNT(*)
                    FROM {backup_ids_temp} b
                    JOIN {user} u ON u.id = b.itemid
                   WHERE b.backupid = ?
                     AND b.itemname = 'userfinal'
                     AND u.mnethostid != ?";
          $count = $DB->count_records_sql($sql, array($backupid, $CFG->mnet_localhost_id));
          return (int)(bool)$count;
      }
code_tokens: public static function backup_includes_mnet_remote_users ( $ backupid ) { global $ CFG , $ DB ; $ sql = "SELECT COUNT(*)
                    FROM {backup_ids_temp} b
                    JOIN {user} u ON u.id = b.itemid
                   WHERE b.backupid = ?
                     AND b.itemname = 'userfinal'
                     AND u.mnethostid != ?" ; $ count = $ DB -> count_records_sql ( $ sql , array ( $ backupid , $ CFG -> mnet_localhost_id ) ) ; return ( int ) ( bool ) $ count ; }
docstring: Given the backupid, detect if the backup includes "mnet" remote users or no
docstring_tokens: Given the backupid detect if the backup includes mnet remote users or no