original_string: public function setup($page, $context) {
          // This only requires execution once per request.
          static $jsinitialised = false;
          if ($jsinitialised) {
              return;
          }
          $jsinitialised = true;
  
          // Set up the media manager so that media plugins requiring JS are initialised.
          $mediamanager = core_media_manager::instance($page);
      }
code: public function setup($page, $context) {
          // This only requires execution once per request.
          static $jsinitialised = false;
          if ($jsinitialised) {
              return;
          }
          $jsinitialised = true;
  
          // Set up the media manager so that media plugins requiring JS are initialised.
          $mediamanager = core_media_manager::instance($page);
      }
code_tokens: public function setup ( $ page , $ context ) { // This only requires execution once per request. static $ jsinitialised = false ; if ( $ jsinitialised ) { return ; } $ jsinitialised = true ; // Set up the media manager so that media plugins requiring JS are initialised. $ mediamanager = core_media_manager :: instance ( $ page ) ; }
docstring: Setup page with filter requirements and other prepare stuff.
  
  @param moodle_page $page The page we are going to add requirements to.
  @param context $context The context which contents are going to be filtered.
docstring_tokens: Setup page with filter requirements and other prepare stuff .