<commit_before><?php
/**
 * ClipIt - JuxtaLearn Web Space
 * PHP version:     >= 5.2
 * @author          <NAME> <<EMAIL>>, URJC JuxtaLearn Team
 * @link            http://www.juxtalearn.eu
 * @license         GNU Affero General Public License v3
 * @package         ClipIt
 * @subpackage      clipit_admin
 */

/**
 * Register the init method
 */
elgg_register_event_handler('init', 'system', 'clipit_admin_init');

/**
 * Initialization method which views and actions for ClipIt Administration pages.
 */
function clipit_admin_init() {
    $plugin_name = "z40_clipit_admin";
    // Register actions
    elgg_register_action("update_clipit",
        elgg_get_plugins_path().$plugin_name."/actions/update_clipit/update.php");
    elgg_register_action("clipit_options/apply",
        elgg_get_plugins_path().$plugin_name."/actions/clipit_options/apply.php");
    elgg_register_action("import_export/import",
        elgg_get_plugins_path().$plugin_name."/actions/import_export/import.php");
    elgg_register_action("import_export/export",
        elgg_get_plugins_path().$plugin_name."/actions/import_export/export.php");
    // Set tag branch and version (if unset - first run only)
    if(empty(get_config("clipit_tag_branch"))){
        $versions = json_decode(elgg_get_plugins_path().$plugin_name."/updates/versions.json");
        set_config("clipit_tag_branch", $versions->clipit_tag_branch);
        set_config("clipit_version", $versions->clipit_version);
    }

    // Register Admin Menus
    elgg_register_admin_menu_item('configure', 'clipit_options', 'clipit', 1);
    elgg_register_admin_menu_item('configure', 'youtube_auth', 'clipit', 2);
    elgg_register_admin_menu_item('configure', 'import_export', 'clipit', 3);
    elgg_register_admin_menu_item('configure', 'update_clipit', 'clipit', 4);
<commit_msg>(*) fixed start.php<commit_after><?php
/**
 * ClipIt - JuxtaLearn Web Space
 * PHP version:     >= 5.2
 * @author          <NAME> <<EMAIL>>, URJC JuxtaLearn Team
 * @link            http://www.juxtalearn.eu
 * @license         GNU Affero General Public License v3
 * @package         ClipIt
 * @subpackage      clipit_admin
 */

/**
 * Register the init method
 */
elgg_register_event_handler('init', 'system', 'clipit_admin_init');

/**
 * Initialization method which views and actions for ClipIt Administration pages.
 */
function clipit_admin_init() {
    $plugin_name = "z40_clipit_admin";
    // Register actions
    elgg_register_action("update_clipit",
        elgg_get_plugins_path().$plugin_name."/actions/update_clipit/update.php");
    elgg_register_action("clipit_options/apply",
        elgg_get_plugins_path().$plugin_name."/actions/clipit_options/apply.php");
    elgg_register_action("import_export/import",
        elgg_get_plugins_path().$plugin_name."/actions/import_export/import.php");
    elgg_register_action("import_export/export",
        elgg_get_plugins_path().$plugin_name."/actions/import_export/export.php");

    // Set tag branch and version (if unset - first run only)
    $clipit_tag_branch = get_config("clipit_tag_branch");
    if(empty($clipit_tag_branch)){
        $versions = json_decode(elgg_get_plugins_path().$plugin_name."/updates/versions.json");
        set_config("clipit_tag_branch", $versions->clipit_tag_branch);
        set_config("clipit_version", $versions->clipit_version);
    }

    // Register Admin Menus
    elgg_register_admin_menu_item('configure', 'clipit_options', 'clipit', 1);
    elgg_register_admin_menu_item('configure', 'youtube_auth', 'clipit', 2);
    elgg_register_admin_menu_item('configure', 'import_export', 'clipit', 3);
    elgg_register_admin_menu_item('configure', 'update_clipit', 'clipit', 4);

{'fraction_non_alphanumeric': 0.1331168831168831, 'fraction_numerical': 0.00487012987012987, 'mean_word_length': 4.266381766381766, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 0, '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': '6413805', 'n_tokens_mistral': 1212, 'n_tokens_neox': 1186, 'n_words': 192}