<commit_before><?php
/**
 * Created by PhpStorm.
 * User: <NAME>
 * Date: 28/05/2015
 * Time: 17:12
 */


echo "<h3>Import / Export options</h3><br>";

// EXPORT

echo "<form action='".elgg_get_site_url()."action/import_export/export' method='post'>";

echo elgg_view('input/securitytoken');

echo "<div style='margin-left:20px;text-indent:-10px'>";

echo "<p><strong>Export all object data to ZIP file:</strong><br>";
echo "<input name='filename' value='clipit_export.zip' type='text' size='50'> ";
echo "<input name='export_options' type='submit' value='Export all'>";
echo "</p>";
echo "</div>";
echo "</form>";

// IMPORT

echo "<form action='".elgg_get_site_url()."action/import_export/import' method='post'>";

echo elgg_view('input/securitytoken');

echo "<div style='margin-left:20px;text-indent:-10px'>";

echo "<p><strong>Import object data from file:</strong><br>";
echo "<input name='import_path' value='/tmp/clipit_export/backup.xlsx' type='text' size='50'> ";
echo "<input name='import_options' type='submit' value='Import from file'>";
echo "</p>";
echo "</div>";
echo "</form>";
<commit_msg>added import/export functionality (only export working for now)<commit_after><?php
/**
 * Created by PhpStorm.
 * User: <NAME>
 * Date: 28/05/2015
 * Time: 17:12
 */


echo "<h3>Import / Export options</h3><br>";

// EXPORT

echo "<form action='".elgg_get_site_url()."action/import_export/export' method='post'>";

echo elgg_view('input/securitytoken');

echo "<div style='margin-left:20px;text-indent:-10px'>";

echo "<p><strong>Export all object data to ZIP file:</strong><br>";
echo "<input name='filename' value='clipit_export.zip' type='text' size='50'> ";
echo "<input name='export_options' type='submit' value='Export all'>";
echo "</p>";
echo "</div>";
echo "</form>";

// @todo IMPORT

//echo "<form action='".elgg_get_site_url()."action/import_export/import' method='post'>";
//
//echo elgg_view('input/securitytoken');
//
//echo "<div style='margin-left:20px;text-indent:-10px'>";
//
//echo "<p><strong>Import object data from file:</strong><br>";
//echo "<input name='import_path' value='/tmp/clipit_export/backup.xlsx' type='text' size='50'> ";
//echo "<input name='import_options' type='submit' value='Import from file'>";
//echo "</p>";
//echo "</div>";
//echo "</form>";

{'fraction_non_alphanumeric': 0.22580645161290322, 'fraction_numerical': 0.022667829119442023, 'mean_word_length': 5.75, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 55, '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': '2404107', 'n_tokens_mistral': 811, 'n_tokens_neox': 779, 'n_words': 178}