<commit_before><?php

# Copyright (c) 2010 - 2012  <NAME>
# Copyright (c) 2012 - 2014  MantisBT Team - <EMAIL>
# Licensed under the MIT license

class SnippetsPlugin extends MantisPlugin {
	public static $_version = "0.5";

	public function register() {
		$this->name = plugin_lang_get("name");
		$this->description = plugin_lang_get("description");
		$this->page = "config_page";

		$this->version = self::$_version;

		$this->requires = array(
			"MantisCore" => "1.2.0",
		);
		# MantisBT 1.3 comes bundled with jQuery so we only need this for 1.2.x
		if( version_compare( MANTIS_VERSION, '1.3', '<' ) ) {
			$this->requires["jQuery"] = "1.3";
		}

		$this->author = "<NAME> and MantisBT Team";
		$this->contact = "<EMAIL>";
		$this->url = "https://github.com/mantisbt-plugins/snippets";
	}

	public function config() {
		return array(
			"edit_global_threshold" => ADMINISTRATOR,
			"use_global_threshold" => REPORTER,
			"edit_own_threshold" => REPORTER,
		);
	}

	public function errors() {
		return array(
			"name_empty" => plugin_lang_get("error_name_empty"),
			"value_empty" => plugin_lang_get("error_value_empty"),
		);
	}

	public function hooks() {
		return array(
			"EVENT_MENU_ACCOUNT" => "menu_account",
			"EVENT_MENU_MANAGE" => "menu_manage",

			"EVENT_LAYOUT_RESOURCES" => "resources",
		);
	}<commit_msg>Set maximum requirement to MantisCore < 1.3<commit_after><?php

# Copyright (c) 2010 - 2012  <NAME>
# Copyright (c) 2012 - 2014  MantisBT Team - <EMAIL>
# Licensed under the MIT license

class SnippetsPlugin extends MantisPlugin {
	public static $_version = "0.5";

	public function register() {
		$this->name = plugin_lang_get("name");
		$this->description = plugin_lang_get("description");
		$this->page = "config_page";

		$this->version = self::$_version;

		$this->requires = array(
			"MantisCore" => "1.2.0, < 1.3",
			"jQuery" => "1.3",
		);

		$this->author = "<NAME> and MantisBT Team";
		$this->contact = "<EMAIL>";
		$this->url = "https://github.com/mantisbt-plugins/snippets";
	}

	public function config() {
		return array(
			"edit_global_threshold" => ADMINISTRATOR,
			"use_global_threshold" => REPORTER,
			"edit_own_threshold" => REPORTER,
		);
	}

	public function errors() {
		return array(
			"name_empty" => plugin_lang_get("error_name_empty"),
			"value_empty" => plugin_lang_get("error_value_empty"),
		);
	}

	public function hooks() {
		return array(
			"EVENT_MENU_ACCOUNT" => "menu_account",
			"EVENT_MENU_MANAGE" => "menu_manage",

			"EVENT_LAYOUT_RESOURCES" => "resources",
		);
	}
{'fraction_non_alphanumeric': 0.1633215269578906, 'fraction_numerical': 0.02203856749311295, 'mean_word_length': 4.198364008179959, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 47, 'https://': 2, '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': '4637585', 'n_tokens_mistral': 1052, 'n_tokens_neox': 895, 'n_words': 189}