<commit_before><?php


class Example_Plugin  extends Pimcore_API_Plugin_Abstract implements Pimcore_API_Plugin_Interface {
    
	public static function install (){
        // implement your own logic here
        return true;
	}<commit_msg>extension manager, plugin skeleton generator: added event-based examples<commit_after><?php


class Example_Plugin  extends Pimcore_API_Plugin_Abstract implements Pimcore_API_Plugin_Interface {

    public function init() {
        // register your events here

        // using anonymous function
        Pimcore::getEventManager()->attach("document.postAdd", function ($document) {
            // do something
        });

        // using methods
        Pimcore::getEventManager()->attach("document.postUpdate", array($this, "handleDocument"));

        // for more information regarding events, please visit:
        // http://www.pimcore.org/wiki/display/PIMCORE/Event+API+%28EventManager%29+since+2.1.1
        // http://framework.zend.com/manual/1.12/de/zend.event-manager.event-manager.html
        // http://www.pimcore.org/wiki/pages/viewpage.action?pageId=12124202

    }

    public function handleDocument ($document) {
        // do something
    }

	public static function install (){
        // implement your own logic here
        return true;
	}
{'fraction_non_alphanumeric': 0.10574712643678161, 'fraction_numerical': 0.013793103448275862, 'mean_word_length': 2.9575757575757575, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4769994', 'n_tokens_mistral': 367, 'n_tokens_neox': 350, 'n_words': 79}