<commit_before><?php

namespace OvhDatabaseBackup;

use Ovh\Api;
use GuzzleHttp\Client;

/**
 * @package Backup
 * @author  <NAME> {@link https://www.leopoldjacquot.com}
 */
class Backup
{

    const OVH_API_HOSTING_URL               = '/hosting/{host_type}';
    const OVH_API_HOSTING_DATABASE_URL      = '/hosting/{host_type}/{host}/database';
    const OVH_API_HOSTING_DATABASE_DUMP_URL = '/hosting/{host_type}/{host}/database/{database}/dump';
    const OVH_HOSTING_TYPES                 = ['web', 'privateDatabase'];

    /**
     * @var Api
     */
    private $ovhClient;

    /**
     * Backup constructor.
     */
    public function __construct()
    {
        $this->ovhClient = new Api(
            APPLICATION_KEY,
            APPLICATION_SECRET,
            API_ENDPOINT,
            CONSUMER_KEY,<commit_msg>[DELETE] Private hosting type (OVH already create daily dump)<commit_after><?php

namespace OvhDatabaseBackup;

use Ovh\Api;
use GuzzleHttp\Client;

/**
 * @package Backup
 * @author  <NAME> {@link https://www.leopoldjacquot.com}
 */
class Backup
{

    const OVH_API_HOSTING_URL               = '/hosting/{host_type}';
    const OVH_API_HOSTING_DATABASE_URL      = '/hosting/{host_type}/{host}/database';
    const OVH_API_HOSTING_DATABASE_DUMP_URL = '/hosting/{host_type}/{host}/database/{database}/dump';
    const OVH_HOSTING_TYPES                 = ['web'];

    /**
     * @var Api
     */
    private $ovhClient;

    /**
     * Backup constructor.
     */
    public function __construct()
    {
        $this->ovhClient = new Api(
            APPLICATION_KEY,
            APPLICATION_SECRET,
            API_ENDPOINT,
            CONSUMER_KEY,
{'fraction_non_alphanumeric': 0.1235820895522388, 'fraction_numerical': 0.0, 'mean_word_length': 2.3927125506072873, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '2588064', 'n_tokens_mistral': 577, 'n_tokens_neox': 553, 'n_words': 94}