original_string: public function isAllowed($entry, $defaultState)
      {
          $whited  = false;
          $blacked = false;
  
          if (is_array($this->lists)) {
              foreach ($this->lists as $list) {
                  $allowed = $list->isAllowed($entry);
                  if ($allowed !== null) {
                      if ($allowed) {
                          $whited = true;
                      } else {
                          $blacked = true;
                      }
                  }
              }
          }
  
          return ($defaultState ? (!$blacked || $whited) : ($whited && !$blacked));
      }
code: public function isAllowed($entry, $defaultState)
      {
          $whited  = false;
          $blacked = false;
  
          if (is_array($this->lists)) {
              foreach ($this->lists as $list) {
                  $allowed = $list->isAllowed($entry);
                  if ($allowed !== null) {
                      if ($allowed) {
                          $whited = true;
                      } else {
                          $blacked = true;
                      }
                  }
              }
          }
  
          return ($defaultState ? (!$blacked || $whited) : ($whited && !$blacked));
      }
code_tokens: public function isAllowed ( $ entry , $ defaultState ) { $ whited = false ; $ blacked = false ; if ( is_array ( $ this -> lists ) ) { foreach ( $ this -> lists as $ list ) { $ allowed = $ list -> isAllowed ( $ entry ) ; if ( $ allowed !== null ) { if ( $ allowed ) { $ whited = true ; } else { $ blacked = true ; } } } } return ( $ defaultState ? ( ! $ blacked || $ whited ) : ( $ whited && ! $ blacked ) ) ; }
docstring: Check if a string is allowed
  
  @param string  $entry        String to compare
  @param boolean $defaultState Default value
  
  @return boolean
docstring_tokens: Check if a string is allowed