<commit_before><%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@ taglib tagdir="/WEB-INF/tags/main" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://dentrassi.de/pm/storage" prefix="pm" %>

<h:main title="Storage operations">

<div class="container-fluid">
    <div class="row">
    
        <div class="col-sm-6">
            <div class="panel panel-danger">
                <div class="panel-heading"><h3 class="panel-title"><span class="glyphicon glyphicon-trash"></span> Wipe storage</h3></div>
                <div class="panel-body">
	                This options allows you to wipe out the whole storage. All channels and artifacts
	                will be deleted.
                </div>
                <div class="panel-body text-right">
                    <button class="btn btn-danger" data-toggle="modal" data-target="#wipe-modal"><span class="glyphicon glyphicon-trash"></span> Really Wipe</button>
                </div>
            </div>
        </div>
        
        <div class="col-sm-6">
            <div class="panel panel-default">
                <div class="panel-heading"><h3 class="panel-title"><span class="glyphicon glyphicon-import"></span> Import all channels</h3></div>
                <div class="panel-body">
                    Import all channels from a full export.
                </div>
                <div class="panel-body text-right">
                    <a href="<c:url value="/channel/importAll"/>" role="button" class="btn btn-primary"><span class="glyphicon glyphicon-import"></span> Import</a>
                </div>
            </div>
        </div>
        
    </div>
</div>

<div class="modal" id="wipe-modal" tabindex="-1" role="dialog"
	aria-labelledby="wipe-modal-label" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close">
					<span aria-hidden="true">&times;</span>
				</button><commit_msg>provide a bit more information in the operations<commit_after><%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@ taglib tagdir="/WEB-INF/tags/main" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://dentrassi.de/pm/storage" prefix="pm" %>

<h:main title="Storage operations">

<div class="container-fluid">
    <div class="row">
    
        <div class="col-sm-6">
            <div class="panel panel-default">
                <div class="panel-heading"><h3 class="panel-title"><span class="glyphicon glyphicon-import"></span> Import channels</h3></div>
                <div class="panel-body">
                    <p>
                    Import all channels from a full export or from a channel export.
                    </p>
                    <p>
                    Depending on the import operation you have to provide the correct export file type. A full import requires a full export file and
                    a single channel import requires a single channel export file. At the moment it is not possible to do partial imports. 
                    </p>
                </div>
                <div class="panel-body text-right">
                    <a href="<c:url value="/channel/import"/>" role="button" class="btn btn-default"><span class="glyphicon glyphicon-import"></span> Import Channel</a>
                    <a href="<c:url value="/channel/importAll"/>" role="button" class="btn btn-default"><span class="glyphicon glyphicon-import"></span> Import Full</a>
                </div>
            </div>

            <div class="panel panel-default">
                <div class="panel-heading"><h3 class="panel-title"><span class="glyphicon glyphicon-import"></span> Export all channels</h3></div>
                <div class="panel-body">
                    <p>
                    Export all channels at once.
                    </p>
                    <p>
                    In order to export a single channel only, go to that channel and use the <q>Export</q> action.
                    </p>
                </div>
                <div class="panel-body text-right">
                    <a href="<c:url value="/channel/export"/>" role="button" class="btn btn-default"><span class="glyphicon glyphicon-export"></span> Export</a>
                </div>
            </div>
        </div>
        
        <div class="col-sm-6">
            <div class="panel panel-danger">
                <div class="panel-heading"><h3 class="panel-title"><span class="glyphicon glyphicon-trash"></span> Wipe storage</h3></div>
                <div class="panel-body">
                    This options allows you to wipe out the whole storage. All channels and artifacts
                    will be deleted.
                </div>
                <div class="panel-body text-right">
                    <button class="btn btn-danger" data-toggle="modal" data-target="#wipe-modal"><span class="glyphicon glyphicon-trash"></span> Really Wipe</button>
                </div>
            </div>
        </div>
        
    </div>
</div>

<div class="modal" id="wipe-modal" tabindex="-1" role="dialog"
	aria-labelledby="wipe-modal-label" aria-hidden="true">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close">
					<span aria-hidden="true">&times;</span>
				</button>
{'fraction_non_alphanumeric': 0.16046145778710016, 'fraction_numerical': 0.0034958923265163435, 'mean_word_length': 2.1578366445916113, 'pattern_counts': {'":': 0, '<': 145, '<?xml version=': 0, '>': 145, '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': '7657554', 'n_tokens_mistral': 1731, 'n_tokens_neox': 1591, 'n_words': 389}