original_string: public function get_stores($mode, $requirements = 0) {
          $stores = array();
          foreach ($this->configstores as $name => $store) {
              // If the mode is supported and all of the requirements are provided features.
              if (($store['modes'] & $mode) && ($store['features'] & $requirements) === $requirements) {
                  $stores[$name] = $store;
              }
          }
          return $stores;
      }
code: public function get_stores($mode, $requirements = 0) {
          $stores = array();
          foreach ($this->configstores as $name => $store) {
              // If the mode is supported and all of the requirements are provided features.
              if (($store['modes'] & $mode) && ($store['features'] & $requirements) === $requirements) {
                  $stores[$name] = $store;
              }
          }
          return $stores;
      }
code_tokens: public function get_stores ( $ mode , $ requirements = 0 ) { $ stores = array ( ) ; foreach ( $ this -> configstores as $ name => $ store ) { // If the mode is supported and all of the requirements are provided features. if ( ( $ store [ 'modes' ] & $ mode ) && ( $ store [ 'features' ] & $ requirements ) === $ requirements ) { $ stores [ $ name ] = $ store ; } } return $ stores ; }
docstring: Returns all of the stores that are suitable for the given mode and requirements.
  
  @param int $mode One of cache_store::MODE_*
  @param int $requirements The requirements of the cache as a binary flag
  @return array An array of suitable stores.
docstring_tokens: Returns all of the stores that are suitable for the given mode and requirements .