<commit_before><?php
require_once __DIR__ . '/../vendor/autoload.php';

use Krizalys\Onedrive\NameConflictBehavior;
?>
<!DOCTYPE html>
<html lang=en dir=ltr>
    <head>
        <meta charset=utf-8>
        <title>Demonstration of the OneDrive SDK for PHP</title>
        <link rel=stylesheet href=//ajax.aspnetcdn.com/ajax/bootstrap/3.2.0/css/bootstrap.min.css>
        <link rel=stylesheet href=//ajax.aspnetcdn.com/ajax/bootstrap/3.2.0/css/bootstrap-theme.min.css>
        <meta name=viewport content="width=device-width, initial-scale=1">
    </head>
    <body>
        <div class=container>
            <h1>Demonstration of the OneDrive SDK for PHP</h1>
            <form action=root.php>
                <fieldset>
                    <legend>Fetching the OneDrive root</legend>
                    <p>Fetches the OneDrive account's root using the <code>Client::fetchRoot</code> method.</p>
                    <p><input type=submit value="Fetch root" class="btn btn-primary"></p>
                </fieldset>
            </form>
            <form action=folder.php>
                <fieldset>
                    <legend>Fetching a OneDrive folder</legend>
                    <p>Fetches a folder from the OneDrive account using the <code>Client::fetchObject</code> method.</p>
                    <div class=form-group>
                        <label for=object-id>ID:</label>
                        <input name=id id="object-id" placeholder=ID class=form-control>
                    </div>
                    <p><input type=submit value="Fetch folder" class="btn btn-primary"></p>
                </fieldset>
            </form>
            <form action=file.php>
                <fieldset>
                    <legend>Fetching a OneDrive file</legend>
                    <p>Fetches a file from the OneDrive account using the <code>Client::fetchObject</code> method.</p>
                    <div class=form-group>
                        <label for=object-id>ID:</label>
                        <input name=id id="object-id" placeholder=ID class=form-control>
                    </div>
                    <p><input type=submit value="Fetch file" class="btn btn-primary"></p>
                </fieldset>
            </form>
            <form action=create-folder.php>
                <fieldset>
                    <legend>Creating a OneDrive folder</legend>
                    <p>Creates a folder in the OneDrive account using the <code>Folder::createFolder</code> method.</p>
                    <div class=form-group>
                        <label for=create-folder-parent-id>Parent ID:</label>
                        <input name=parent_id id="create-folder-parent-id" placeholder="Parent ID" class=form-control>
                    </div>
                    <div class=form-group>
                        <label for=create-folder-name>Name:</label>
                        <input name=name id="create-folder-name" placeholder=Name class=form-control>
                    </div>
                    <div class=form-group>
                        <label for=create-folder-description>Description:</label>
                        <textarea name=description id="create-folder-description" placeholder=Description class=form-control></textarea>
                    </div>
                    <p><input type=submit value="Create folder" class="btn btn-primary"></p>
                </fieldset>
            </form>
            <form action=create-file.php>
                <fieldset>
                    <legend>Creating a OneDrive file</legend>
                    <p>Creates a file in the OneDrive account using the <code>Folder::createFile</code> method.</p>
                    <div class=form-group>
                        <label for=create-file-parent-id>Parent ID:</label>
                        <input name=parent_id id="create-file-parent-id" placeholder="Parent ID" class=form-control>
                    </div>
                    <div class=form-group>
                        <label for=create-file-name>Name:</label>
                        <input name=name id="create-file-name" placeholder=Name class=form-control>
                    </div>
                    <div class=form-group>
                        <label for=create-file-content>Content:</label>
                        <textarea name=content id="create-file-content" placeholder=Content class=form-control></textarea>
                    </div>
                    <div class=form-group>
                        <fieldset>
                            <legend>Name conflict behavior</legend>
                            <div>
                                <label><input name=name_conflict_behavior type=radio value="<?php echo NameConflictBehavior::REPLACE ?>" checked> <code>REPLACE</code></label>
                            </div>
                            <div>
                                <label><input name=name_conflict_behavior type=radio value="<?php echo NameConflictBehavior::RENAME ?>"> <code>RENAME</code></label>
                            </div>
                            <div>
                                <label><input name=name_conflict_behavior type=radio value="<?php echo NameConflictBehavior::FAIL ?>"> <code>FAIL</code></label>
                            </div>
                        </fieldset>
                    </div>
                    <p><input type=submit value="Create file" class="btn btn-primary"></p>
                </fieldset>
            </form>
            <form action=update-object.php>
                <fieldset>
                    <legend>Updating a OneDrive object</legend>
                    <p>Updates an object in the OneDrive account using the <code>Client::updateObject</code> method. Updating objects does no modify their content (for a file) or their child objects (for a folder).</p>
                    <div class=form-group>
                        <label for=update-object-id>ID:</label>
                        <input name=id id="update-object-id" placeholder=ID class=form-control>
                    </div>
                    <div class=form-group>
                        <label for=update-object-name>Name:</label>
                        <input name=name id="update-object-name" placeholder=Name class=form-control>
                    </div>
                    <div class=form-group>
                        <label for=update-object-description>Description:</label>
                        <textarea name=description id="update-object-description" placeholder=Description class=form-control></textarea><commit_msg>Fixed typo<commit_after><?php
require_once __DIR__ . '/../vendor/autoload.php';

use Krizalys\Onedrive\NameConflictBehavior;
?>
<!DOCTYPE html>
<html lang=en dir=ltr>
    <head>
        <meta charset=utf-8>
        <title>Demonstration of the OneDrive SDK for PHP</title>
        <link rel=stylesheet href=//ajax.aspnetcdn.com/ajax/bootstrap/3.2.0/css/bootstrap.min.css>
        <link rel=stylesheet href=//ajax.aspnetcdn.com/ajax/bootstrap/3.2.0/css/bootstrap-theme.min.css>
        <meta name=viewport content="width=device-width, initial-scale=1">
    </head>
    <body>
        <div class=container>
            <h1>Demonstration of the OneDrive SDK for PHP</h1>
            <form action=root.php>
                <fieldset>
                    <legend>Fetching the OneDrive root</legend>
                    <p>Fetches the OneDrive account's root using the <code>Client::fetchRoot</code> method.</p>
                    <p><input type=submit value="Fetch root" class="btn btn-primary"></p>
                </fieldset>
            </form>
            <form action=folder.php>
                <fieldset>
                    <legend>Fetching a OneDrive folder</legend>
                    <p>Fetches a folder from the OneDrive account using the <code>Client::fetchObject</code> method.</p>
                    <div class=form-group>
                        <label for=object-id>ID:</label>
                        <input name=id id="object-id" placeholder=ID class=form-control>
                    </div>
                    <p><input type=submit value="Fetch folder" class="btn btn-primary"></p>
                </fieldset>
            </form>
            <form action=file.php>
                <fieldset>
                    <legend>Fetching a OneDrive file</legend>
                    <p>Fetches a file from the OneDrive account using the <code>Client::fetchObject</code> method.</p>
                    <div class=form-group>
                        <label for=object-id>ID:</label>
                        <input name=id id="object-id" placeholder=ID class=form-control>
                    </div>
                    <p><input type=submit value="Fetch file" class="btn btn-primary"></p>
                </fieldset>
            </form>
            <form action=create-folder.php>
                <fieldset>
                    <legend>Creating a OneDrive folder</legend>
                    <p>Creates a folder in the OneDrive account using the <code>Folder::createFolder</code> method.</p>
                    <div class=form-group>
                        <label for=create-folder-parent-id>Parent ID:</label>
                        <input name=parent_id id="create-folder-parent-id" placeholder="Parent ID" class=form-control>
                    </div>
                    <div class=form-group>
                        <label for=create-folder-name>Name:</label>
                        <input name=name id="create-folder-name" placeholder=Name class=form-control>
                    </div>
                    <div class=form-group>
                        <label for=create-folder-description>Description:</label>
                        <textarea name=description id="create-folder-description" placeholder=Description class=form-control></textarea>
                    </div>
                    <p><input type=submit value="Create folder" class="btn btn-primary"></p>
                </fieldset>
            </form>
            <form action=create-file.php>
                <fieldset>
                    <legend>Creating a OneDrive file</legend>
                    <p>Creates a file in the OneDrive account using the <code>Folder::createFile</code> method.</p>
                    <div class=form-group>
                        <label for=create-file-parent-id>Parent ID:</label>
                        <input name=parent_id id="create-file-parent-id" placeholder="Parent ID" class=form-control>
                    </div>
                    <div class=form-group>
                        <label for=create-file-name>Name:</label>
                        <input name=name id="create-file-name" placeholder=Name class=form-control>
                    </div>
                    <div class=form-group>
                        <label for=create-file-content>Content:</label>
                        <textarea name=content id="create-file-content" placeholder=Content class=form-control></textarea>
                    </div>
                    <div class=form-group>
                        <fieldset>
                            <legend>Name conflict behavior</legend>
                            <div>
                                <label><input name=name_conflict_behavior type=radio value="<?php echo NameConflictBehavior::REPLACE ?>" checked> <code>REPLACE</code></label>
                            </div>
                            <div>
                                <label><input name=name_conflict_behavior type=radio value="<?php echo NameConflictBehavior::RENAME ?>"> <code>RENAME</code></label>
                            </div>
                            <div>
                                <label><input name=name_conflict_behavior type=radio value="<?php echo NameConflictBehavior::FAIL ?>"> <code>FAIL</code></label>
                            </div>
                        </fieldset>
                    </div>
                    <p><input type=submit value="Create file" class="btn btn-primary"></p>
                </fieldset>
            </form>
            <form action=update-object.php>
                <fieldset>
                    <legend>Updating a OneDrive object</legend>
                    <p>Updates an object in the OneDrive account using the <code>Client::updateObject</code> method. Updating objects does not modify their content (for a file) or their child objects (for a folder).</p>
                    <div class=form-group>
                        <label for=update-object-id>ID:</label>
                        <input name=id id="update-object-id" placeholder=ID class=form-control>
                    </div>
                    <div class=form-group>
                        <label for=update-object-name>Name:</label>
                        <input name=name id="update-object-name" placeholder=Name class=form-control>
                    </div>
                    <div class=form-group>
                        <label for=update-object-description>Description:</label>
                        <textarea name=description id="update-object-description" placeholder=Description class=form-control></textarea>
{'fraction_non_alphanumeric': 0.1157639204976483, 'fraction_numerical': 0.0015172204521316948, 'mean_word_length': 1.5283851169927118, 'pattern_counts': {'":': 0, '<': 353, '<?xml version=': 0, '>': 353, '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': '5346528', 'n_tokens_mistral': 3466, 'n_tokens_neox': 3215, 'n_words': 708}