<commit_before><fieldset class="personalblock">
	<legend><?php p($l->t('Mozilla Sync')); ?></legend>
    <?php
    if (!\OCA\mozilla_sync\User::checkUserIsAllowed()) {
        $authorizedGroup = \OCA\mozilla_sync\User::getAuthorizedGroup();
        ?>
        <p><b><span style="color: red"><?php p($l->t('Error! You are not allowed to use Mozilla Sync! You need to be a member of the %s group.', $authorizedGroup));?></span></b></p><br />
    <?php
    }
    ?>
    <p><label>Client Configuration</label>
    <table class="nostyle">
      <tr>
        <td><?php p($l->t('Email'));?>&nbsp;&nbsp;&nbsp;</td>
        <td><code><?php p($_['email']);?></code>&nbsp;&nbsp;&nbsp;<?php
            if (!\OCA\mozilla_sync\User::userHasUniqueEmail()) {
                ?><b><span style="color: red"><?php p($l->t('Error! Duplicate email addresses detected! Email addresses need to be unique for Mozilla Sync to work.'));?></span></b><?php
            }?></td>
      </tr>
      <tr>
        <td><?php p($l->t('Password'));?>&nbsp;&nbsp;&nbsp;</td>
        <td><?php p($l->t('Use your ownCloud account password'));?></td>
      </tr>
      <tr>
        <td><?php p($l->t('Server address'));?>&nbsp;&nbsp;&nbsp;</td>
        <td><code><?php p($_['syncaddress']);?></code></td>
      </tr>
    </table>
    <i><?php
        // Verify whether a Sync account was already created
        $noSync = false;
        if (!\OCA\mozilla_sync\User::hasSyncAccount()) {
            $noSync = true;
        } else {
            $lastMod = \OCA\mozilla_sync\Storage::getLastModifiedTime();
        }
        // Display if no account was created or no data was uploaded yet
        if ($noSync || $lastMod === false) {
            p($l->t("To set up Mozilla Sync create a new Sync account in Firefox."));
        } else {
            p($l->t("Mozilla Sync is set up, additional devices can be added via Mozilla's device pairing service or manually."));
        }
        ?></i>
    </p><?php
    // Show Sync Status only if Sync account was created
    if (!$noSync && $lastMod !== false) {
        ?>
    
    <br>

    <p><label>Sync Status</label>
    <table class="nostyle">
      <tr>
        <td><?php p($l->t('Last sync'));?>&nbsp;&nbsp;&nbsp;</td>
        <td><?php p($lastMod); ?></td>
      </tr>
      <tr>
        <td><?php p($l->t('Size of stored data'));?>&nbsp;&nbsp;&nbsp;</td>
        <td><?php
            $size = \OCA\mozilla_sync\Storage::getSyncSize();
            if ($size === false) {
                p($l->t('No data stored yet.'));
            } else {
                $quota = \OCA\mozilla_sync\User::getQuota();
				$percentage = 100.0*((float) $size)/((float) $quota);
                if ($quota === 0) {
                    $quotaString = "(unlimited quota)";
                } else {
                    $quotaString = "(" . number_format($percentage,1) . "% used of quota " .
                    $quota . " kB)";
                }
                p($size . " kB " . $quotaString);
            }
            ?></td>
      </tr>
      <tr>
        <td><?php p($l->t('Number of synced devices'));?>&nbsp;&nbsp;&nbsp;</td>
        <td><code><?php p(\OCA\mozilla_sync\Storage::getNumClients()); ?></code></td>
      </tr>
    </table>
	<button type="button" id="deletestorage">
		<?php p($l->t('Delete storage')); ?>
	</button>
	<em><?php p($l->t('Attention! This will delete all your data on the server')); ?>
	</em>
    </p>
    <?php } ?>
</fieldset><commit_msg>Delete storage button in own table<commit_after><fieldset class="personalblock">
	<legend><?php p($l->t('Mozilla Sync')); ?></legend>
    <?php
    if (!\OCA\mozilla_sync\User::checkUserIsAllowed()) {
        $authorizedGroup = \OCA\mozilla_sync\User::getAuthorizedGroup();
        ?>
        <p><b><span style="color: red"><?php p($l->t('Error! You are not allowed to use Mozilla Sync! You need to be a member of the %s group.', $authorizedGroup));?></span></b></p><br />
    <?php
    }
    ?>
    <p><label>Client Configuration</label>
    <table class="nostyle">
      <tr>
        <td><?php p($l->t('Email'));?>&nbsp;&nbsp;&nbsp;</td>
        <td><code><?php p($_['email']);?></code>&nbsp;&nbsp;&nbsp;<?php
            if (!\OCA\mozilla_sync\User::userHasUniqueEmail()) {
                ?><b><span style="color: red"><?php p($l->t('Error! Duplicate email addresses detected! Email addresses need to be unique for Mozilla Sync to work.'));?></span></b><?php
            }?></td>
      </tr>
      <tr>
        <td><?php p($l->t('Password'));?>&nbsp;&nbsp;&nbsp;</td>
        <td><?php p($l->t('Use your ownCloud account password'));?></td>
      </tr>
      <tr>
        <td><?php p($l->t('Server address'));?>&nbsp;&nbsp;&nbsp;</td>
        <td><code><?php p($_['syncaddress']);?></code></td>
      </tr>
    </table>
    <i><?php
        // Verify whether a Sync account was already created
        $noSync = false;
        if (!\OCA\mozilla_sync\User::hasSyncAccount()) {
            $noSync = true;
        } else {
            $lastMod = \OCA\mozilla_sync\Storage::getLastModifiedTime();
        }
        // Display if no account was created or no data was uploaded yet
        if ($noSync || $lastMod === false) {
            p($l->t("To set up Mozilla Sync create a new Sync account in Firefox."));
        } else {
            p($l->t("Mozilla Sync is set up, additional devices can be added via Mozilla's device pairing service or manually."));
        }
        ?></i>
    </p><?php
    // Show Sync Status only if Sync account was created
    if (!$noSync && $lastMod !== false) {
        ?>

    <br>

    <p><label>Sync Status</label>
    <table class="nostyle">
      <tr>
        <td><?php p($l->t('Last sync'));?>&nbsp;&nbsp;&nbsp;</td>
        <td><?php p($lastMod); ?></td>
      </tr>
      <tr>
        <td><?php p($l->t('Size of stored data'));?>&nbsp;&nbsp;&nbsp;</td>
        <td><?php
            $size = \OCA\mozilla_sync\Storage::getSyncSize();
            if ($size === false) {
                p($l->t('No data stored yet.'));
            } else {
                $quota = \OCA\mozilla_sync\User::getQuota();
				$percentage = 100.0*((float) $size)/((float) $quota);
                if ($quota === 0) {
                    $quotaString = "(unlimited quota)";
                } else {
                    $quotaString = "(" . number_format($percentage,1) . "% used of quota " .
                    $quota . " kB)";
                }
                p($size . " kB " . $quotaString);
            }
            ?></td>
      </tr>
      <tr>
        <td><?php p($l->t('Number of synced devices'));?>&nbsp;&nbsp;&nbsp;</td>
        <td><code><?php p(\OCA\mozilla_sync\Storage::getNumClients()); ?></code></td>
      </tr>
    </table>
    </p>

    <br>

    <p><label>Delete Sync data</label>
    <table class="nostyle">
      <tr>
	    <td><button type="button" id="deletestorage">
		    <?php p($l->t('Delete storage')); ?>
	        </button>
        </td>
      </tr>
    </table>
	<em><?php p($l->t('Attention! This will delete all your Sync data on the server.')); ?></em>
    </p>

    <?php } // End: Show only when account created ?>

</fieldset>
{'fraction_non_alphanumeric': 0.21087959725912458, 'fraction_numerical': 0.0016780869808418403, 'mean_word_length': 2.188586714222024, 'pattern_counts': {'":': 0, '<': 214, '<?xml version=': 0, '>': 244, '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': '1423022', 'n_tokens_mistral': 2348, 'n_tokens_neox': 2311, 'n_words': 526}