<commit_before><?php

/**
 * SabreDAV DAV client
 *
 * This client wraps around Curl to provide a convenient API to a WebDAV 
 * server.
 * 
 * @package Sabre
 * @subpackage DAVClient
 * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved.
 * @author <NAME> (http://www.rooftopsolutions.nl/) 
 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
 */
class Sabre_DAV_Client {

    public $propertyMap = array();

    protected $baseUri;
    protected $userName;
    protected $password;
    protected $proxy;

    /**
     * Constructor
     *
     * Settings are provided through the 'settings' argument. The following 
     * settings are supported:
     *
     *   * baseUri
     *   * userName (optional)
     *   * password (optional)
     *   * proxy (optional)
     * 
     * @param array $settings 
     */
    public function __construct(array $settings) {

        if (!isset($settings['baseUri'])) {
            throw new InvalidArgumentException('A baseUri must be provided');
        }
        
        $validSettings = array(
            'baseUri',
            'userName',
            'password',
            'proxy'
        );

        foreach($validSettings as $validSetting) {
            if (isset($settings[$validSetting])) {
                $this->$validSetting = $settings[$validSetting];
            }
        }

        $this->propertyMap['{DAV:}resourceType'] = 'Sabre_DAV_Property_ResourceType';

    }

    /**
     * Does a PROPFIND request
     *
     * The list of requested properties must be specified as an array, in clark <commit_msg>Casing typo<commit_after><?php

/**
 * SabreDAV DAV client
 *
 * This client wraps around Curl to provide a convenient API to a WebDAV 
 * server.
 * 
 * @package Sabre
 * @subpackage DAVClient
 * @copyright Copyright (C) 2007-2011 Rooftop Solutions. All rights reserved.
 * @author <NAME> (http://www.rooftopsolutions.nl/) 
 * @license http://code.google.com/p/sabredav/wiki/License Modified BSD License
 */
class Sabre_DAV_Client {

    public $propertyMap = array();

    protected $baseUri;
    protected $userName;
    protected $password;
    protected $proxy;

    /**
     * Constructor
     *
     * Settings are provided through the 'settings' argument. The following 
     * settings are supported:
     *
     *   * baseUri
     *   * userName (optional)
     *   * password (optional)
     *   * proxy (optional)
     * 
     * @param array $settings 
     */
    public function __construct(array $settings) {

        if (!isset($settings['baseUri'])) {
            throw new InvalidArgumentException('A baseUri must be provided');
        }
        
        $validSettings = array(
            'baseUri',
            'userName',
            'password',
            'proxy'
        );

        foreach($validSettings as $validSetting) {
            if (isset($settings[$validSetting])) {
                $this->$validSetting = $settings[$validSetting];
            }
        }

        $this->propertyMap['{DAV:}resourcetype'] = 'Sabre_DAV_Property_ResourceType';

    }

    /**
     * Does a PROPFIND request
     *
     * The list of requested properties must be specified as an array, in clark 
{'fraction_non_alphanumeric': 0.11214374225526642, 'fraction_numerical': 0.004956629491945477, 'mean_word_length': 2.209741550695825, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4478074', 'n_tokens_mistral': 946, 'n_tokens_neox': 894, 'n_words': 241}