<commit_before><?php
/**
 *CRIMP - Content Redirection Internet Management Program
 *Copyright (C) 2005-2006 The CRIMP Team
 *Authors:          The CRIMP Team
 *Project Leads:    Martin "Deadpan110" Guppy <<EMAIL>>,
 *                  Daniel "Fremen" Llewellyn <<EMAIL>>
 *                  HomePage:      http://crimp.sf.net/
 *
 *Revision info: $Id: plugin.komodo-template.php,v 2.2 2006-11-30 19:35:27 diddledan Exp $
 *
 *This library is free software; you can redistribute it and/or
 *modify it under the terms of the GNU Lesser General Public
 *License as published by the Free Software Foundation; either
 *version 2.1 of the License, or (at your option) any later version.
 *
 *This library is distributed in the hope that it will be useful,
 *but WITHOUT ANY WARRANTY; without even the implied warranty of
 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *Lesser General Public License for more details.
 *
 *You should have received a copy of the GNU Lesser General Public
 *License along with this library; if not, write to the Free Software
 *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 */

class [[%(ask0:plugin name)]] extends plugin implements iPlugin {
    public function execute() {
        global $dbg, $crimp, $http;
    }
}

?><commit_msg>modified to include a constructor that maps the crimp object and the debug object to internal variables.. put in another [[%(ask:)]] to query the developer what the default configuration key is called.. and finally, included the deferral code commented out for quick reference.<commit_after><?php
/**
 *[[%(ask0:plugin name)]]: a plugin for CRIMP
 *(the Content Redirection Internet Management Program)
 *Copyright (C) 2005-2006 The CRIMP Team
 *Authors:          The CRIMP Team
 *Project Leads:    Martin "Deadpan110" Guppy <<EMAIL>>,
 *                  <NAME>" Llewellyn <<EMAIL>>
 *                  HomePage:      http://crimp.sf.net/
 *
 *Revision info: $Id: plugin.komodo-template.php,v 2.3 2006-12-01 23:44:04 diddledan Exp $
 *
 *This library is free software; you can redistribute it and/or
 *modify it under the terms of the GNU Lesser General Public
 *License as published by the Free Software Foundation; either
 *version 2.1 of the License, or (at your option) any later version.
 *
 *This library is distributed in the hope that it will be useful,
 *but WITHOUT ANY WARRANTY; without even the implied warranty of
 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *Lesser General Public License for more details.
 *
 *You should have received a copy of the GNU Lesser General Public
 *License along with this library; if not, write to the Free Software
 *Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
 */

class [[%(ask0:Plugin Name)]] implements iPlugin {
    public function execute() {
        $crimp = &$this->crimp;
        $dbg = &$crimp->debug;
        
        $pluginName = '[[%(ask0:Plugin Name)]]';
        
        /**
         *the value referenced by default configuration key, that you entered
         *in the komodo dialog, is stored in the variable $config
         */
        if ( !($config = $crimp->Config('[[%(ask1:Default Configuration Key)]]', $this->scope, $pluginName)) ) {
            $dbg->addDebug('Please define a <position /> tag in the config.xml file', WARN);
            return;
        }
        
        /**
         *Uncomment this if construct if this plugin should defer itself
         */
        #if ( !$this->deferred ) {
        #    $crimp->setDeferral($pluginName, $this->scope);
        #    return;
        #}
    }
}

?>
{'fraction_non_alphanumeric': 0.09887701999452204, 'fraction_numerical': 0.023281292796494112, 'mean_word_length': 2.9825517993456923, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '2853856', 'n_tokens_mistral': 1066, 'n_tokens_neox': 981, 'n_words': 437}