<commit_before><?php
/**
 * File containing the basic webdav backend class
 *
 * @package Webdav
 * @version //autogentag//
 * @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
 * @license http://ez.no/licenses/new_bsd New BSD License
 */
/**
 * Base interface for all webdav backends serving the actual data.
 *
 * The backend is meant to be exxtended by an implementation for your data
 * storage. It enforces the base features required for each backend and should
 * be extended by further indeterfaces for other access methods, like:
 *
 *  - {@link ezcWebdavBackendPut}
 *  - {@link ezcWebdavBackendChange}
 *  - {@link ezcWebdavBackendMakeCollection}
 *  - {@link ezcWebdavBackendLock}
 *
 * @version //autogentag//
 * @package Webdav
 */
abstract class ezcWebdavBackend
{
    /**
     * Backend has native support for gzip compression.
     */
    const COMPRESSION_GZIP      = 1;

    /**
     * Backend has native support for bzip2 compression.
     */
    const COMPRESSION_BZIP2     = 2;

    /**
     * Backend performs locking itself - no handling by server is required.
     */
    const CUSTOM_LOCK           = 4;

    /**
     * Backend has native support for partial requests.
     */
    const PARTIAL               = 8;

    /**
     * Backend has native support for multipart requests.
     */
    const MULTIPART             = 16;

    /**
     * Return bitmap of additional features supported by the backend referenced
     * by constants from the basic ezcWebdavBackend class.
     * 
     * @return int
     */
    public function getFeatures()
    {
        return 0;
    }

    /**
     * Required method to serve GET requests.
     *
     * The method receives a {@link ezcWebdavGetRequest} object containing all
     * relevant information obout the clients request and should either return
     * an error by returning an {@link ezcWebdavErrorResponse} object, or any
     * other {@link ezcWebdavResponse} objects.
     * 
     * @param ezcWebdavGetRequest $request The received request.
     * @return ezcWebdavResponse A response to the received request.
     */
    abstract public function get( ezcWebdavGetRequest $request );

    /**
     * Required method to serve HEAD requests.
     *
     * The method receives a {@link ezcWebdavHeadRequest} object containing all
     * relevant information obout the clients request and should either return
     * an error by returning an {@link ezcWebdavErrorResponse} object, or any other
     * {@link ezcWebdavResponse} objects.
     * 
     * @param ezcWebdavGetRequest $request The received request.
     * @return ezcWebdavResponse A response to the received request.
     */
    abstract public function head( ezcWebdavHeadRequest $request );

    /**
     * Required method to serve PROPFIND requests.
     * 
     * The method receives a {@link ezcWebdavPropFindRequest} object containing all
     * relevant information obout the clients request and should either return
     * an error by returning an {@link ezcWebdavErrorResponse} object, or any
     * other {@link ezcWebdavResponse} objects.
     *
     * The {@link ezcWebdavPropFindRequest} object contains a definition to
     * find one or more properties of a given file or collection.
     *
     * @param ezcWebdavPropFindRequest $request The received request.
     * @return ezcWebdavResponse A response to the received request.
     */
    abstract public function propFind( ezcWebdavPropFindRequest $request );

    /**
     * Required method to serve PROPFETCH requests.
     * 
     * The method receives a {@link ezcWebdavPropFetchRequest} object containing all
     * relevant information obout the clients request and should either return
     * an error by returning an {@link ezcWebdavErrorResponse} object, or any
     * other {@link ezcWebdavResponse} objects.
     *
     * @param ezcWebdavPropFetchRequest $request The received request.
     * @return ezcWebdavResponse A response to the received request.
     */
    abstract public function propFetch( ezcWebdavPropFetchRequest $request );

    /**
     * Required method to serve PROPSET requests.
     * 
     * The method receives a {@link ezcWebdavPropSetRequest} object containing all
     * relevant information obout the clients request and should either return
     * an error by returning an {@link ezcWebdavErrorResponse} object, or any
     * other {@link ezcWebdavResponse} objects.
     *
     * @param ezcWebdavPropSetRequest $request The received request.
     * @return ezcWebdavResponse A response to the received request.
     */
    abstract public function propSet( ezcWebdavPropSetRequest $request );
}<commit_msg>- Fixed method stubs for property access<commit_after><?php
/**
 * File containing the basic webdav backend class
 *
 * @package Webdav
 * @version //autogentag//
 * @copyright Copyright (C) 2005-2007 eZ systems as. All rights reserved.
 * @license http://ez.no/licenses/new_bsd New BSD License
 */
/**
 * Base interface for all webdav backends serving the actual data.
 *
 * The backend is meant to be exxtended by an implementation for your data
 * storage. It enforces the base features required for each backend and should
 * be extended by further indeterfaces for other access methods, like:
 *
 *  - {@link ezcWebdavBackendPut}
 *  - {@link ezcWebdavBackendChange}
 *  - {@link ezcWebdavBackendMakeCollection}
 *  - {@link ezcWebdavBackendLock}
 *
 * @version //autogentag//
 * @package Webdav
 */
abstract class ezcWebdavBackend
{
    /**
     * Backend has native support for gzip compression.
     */
    const COMPRESSION_GZIP      = 1;

    /**
     * Backend has native support for bzip2 compression.
     */
    const COMPRESSION_BZIP2     = 2;

    /**
     * Backend performs locking itself - no handling by server is required.
     */
    const CUSTOM_LOCK           = 4;

    /**
     * Backend has native support for partial requests.
     */
    const PARTIAL               = 8;

    /**
     * Backend has native support for multipart requests.
     */
    const MULTIPART             = 16;

    /**
     * Return bitmap of additional features supported by the backend referenced
     * by constants from the basic ezcWebdavBackend class.
     * 
     * @return int
     */
    public function getFeatures()
    {
        return 0;
    }

    /**
     * Required method to serve GET requests.
     *
     * The method receives a {@link ezcWebdavGetRequest} object containing all
     * relevant information obout the clients request and should either return
     * an error by returning an {@link ezcWebdavErrorResponse} object, or any
     * other {@link ezcWebdavResponse} objects.
     * 
     * @param ezcWebdavGetRequest $request The received request.
     * @return ezcWebdavResponse A response to the received request.
     */
    abstract public function get( ezcWebdavGetRequest $request );

    /**
     * Required method to serve HEAD requests.
     *
     * The method receives a {@link ezcWebdavHeadRequest} object containing all
     * relevant information obout the clients request and should either return
     * an error by returning an {@link ezcWebdavErrorResponse} object, or any other
     * {@link ezcWebdavResponse} objects.
     * 
     * @param ezcWebdavGetRequest $request The received request.
     * @return ezcWebdavResponse A response to the received request.
     */
    abstract public function head( ezcWebdavHeadRequest $request );

    /**
     * Required method to serve PROPFIND requests.
     * 
     * The method receives a {@link ezcWebdavPropFindRequest} object containing all
     * relevant information obout the clients request and should either return
     * an error by returning an {@link ezcWebdavErrorResponse} object, or any
     * other {@link ezcWebdavResponse} objects.
     *
     * The {@link ezcWebdavPropFindRequest} object contains a definition to
     * find one or more properties of a given file or collection.
     *
     * @param ezcWebdavPropFindRequest $request The received request.
     * @return ezcWebdavResponse A response to the received request.
     */
    abstract public function propFind( ezcWebdavPropFindRequest $request );

    /**
     * Required method to serve PROPPATCH requests.
     * 
     * The method receives a {@link ezcWebdavPropPatchRequest} object containing all
     * relevant information obout the clients request and should either return
     * an error by returning an {@link ezcWebdavErrorResponse} object, or any
     * other {@link ezcWebdavResponse} objects.
     *
     * @param ezcWebdavPropPatchRequest $request The received request.
     * @return ezcWebdavResponse A response to the received request.
     */
    abstract public function propPatch( ezcWebdavPropPatchRequest $request );
}
{'fraction_non_alphanumeric': 0.07010356208034596, 'fraction_numerical': 0.003869352452486628, 'mean_word_length': 2.856077226853883, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1523031', 'n_tokens_mistral': 2496, 'n_tokens_neox': 2290, 'n_words': 903}