!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/opt/alt/php55/usr/share/pear/Symfony/Component/Form/Guess/   drwxr-xr-x
Free 294.16 GB of 429.69 GB (68.46%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Guess.php (3.05 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/*
 * This file is part of the Symfony package.
 *
 * (c) Fabien Potencier <fabien@symfony.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Symfony\Component\Form\Guess;

use 
Symfony\Component\Form\Exception\InvalidArgumentException;

/**
 * Base class for guesses made by TypeGuesserInterface implementation
 *
 * Each instance contains a confidence value about the correctness of the guess.
 * Thus an instance with confidence HIGH_CONFIDENCE is more likely to be
 * correct than an instance with confidence LOW_CONFIDENCE.
 *
 * @author Bernhard Schussek <bschussek@gmail.com>
 */
abstract class Guess
{
    
/**
     * Marks an instance with a value that is extremely likely to be correct
     * @var integer
     */
    
const VERY_HIGH_CONFIDENCE 3;

    
/**
     * Marks an instance with a value that is very likely to be correct
     * @var integer
     */
    
const HIGH_CONFIDENCE 2;

    
/**
     * Marks an instance with a value that is likely to be correct
     * @var integer
     */
    
const MEDIUM_CONFIDENCE 1;

    
/**
     * Marks an instance with a value that may be correct
     * @var integer
     */
    
const LOW_CONFIDENCE 0;

    
/**
     * The confidence about the correctness of the value
     *
     * One of VERY_HIGH_CONFIDENCE, HIGH_CONFIDENCE, MEDIUM_CONFIDENCE
     * and LOW_CONFIDENCE.
     *
     * @var integer
     */
    
private $confidence;

    
/**
     * Returns the guess most likely to be correct from a list of guesses.
     *
     * If there are multiple guesses with the same, highest confidence, the
     * returned guess is any of them.
     *
     * @param Guess[] $guesses An array of guesses
     *
     * @return Guess|null The guess with the highest confidence
     */
    
public static function getBestGuess(array $guesses)
    {
        
$result null;
        
$maxConfidence = -1;

        foreach (
$guesses as $guess) {
            if (
$maxConfidence $confidence $guess->getConfidence()) {
                
$maxConfidence $confidence;
                
$result $guess;
            }
        }

        return 
$result;
    }

    
/**
     * Constructor.
     *
     * @param integer $confidence The confidence
     *
     * @throws InvalidArgumentException if the given value of confidence is unknown
     */
    
public function __construct($confidence)
    {
        if (
self::VERY_HIGH_CONFIDENCE !== $confidence && self::HIGH_CONFIDENCE !== $confidence &&
            
self::MEDIUM_CONFIDENCE !== $confidence && self::LOW_CONFIDENCE !== $confidence) {
            throw new 
InvalidArgumentException('The confidence should be one of the constants defined in Guess.');
        }

        
$this->confidence $confidence;
    }

    
/**
     * Returns the confidence that the guessed value is correct.
     *
     * @return integer One of the constants VERY_HIGH_CONFIDENCE,
     *                 HIGH_CONFIDENCE, MEDIUM_CONFIDENCE and LOW_CONFIDENCE
     */
    
public function getConfidence()
    {
        return 
$this->confidence;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0913 ]--