<commit_before><?php
// +----------------------------------------------------------------------+
// | popoon                                                               |
// +----------------------------------------------------------------------+
// | Copyright (c) 2001,2002,2003,2004 Bitflux GmbH                       |
// +----------------------------------------------------------------------+
// | Licensed under the Apache License, Version 2.0 (the "License");      |
// | you may not use this file except in compliance with the License.     |
// | You may obtain a copy of the License at                              |
// | http://www.apache.org/licenses/LICENSE-2.0                           |
// | Unless required by applicable law or agreed to in writing, software  |
// | distributed under the License is distributed on an "AS IS" BASIS,    |
// | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or      |
// | implied. See the License for the specific language governing         |
// | permissions and limitations under the License.                       |
// +----------------------------------------------------------------------+
// | Author: <NAME> <<EMAIL>>                        |
// +----------------------------------------------------------------------+
//
// $Id: selector.php,v 1.10 2004/03/12 15:26:27 chregu Exp $

/**
* This is the Base-Class for all selectors
*
* Selectors are used in <map:select> in sitemap.xml
*
*  Selectors match here much the same as Matchers, this is different to cocoon
*   they don't return the hits, but nevermind :)
*
* @author   <NAME> <<EMAIL>>
* @version  $Id: selector.php,v 1.10 2004/03/12 15:26:27 chregu Exp $
* @package  popoon
* @module	selectors
*/
class popoon_components_selector {
    
	var $debug = False;
	var $hit = False;

	function __construct(&$sitemap) {
		$this->sitemap = &$sitemap;
	}

	function init($attribs)
    {
	    $this->attribs = $attribs;
        $debug = $this->getAttrib("debug");
        if (!is_null($debug) && $debug!="no"  )
        {
        	$this->debug = True;
            $GLOBALS["_POPOON_globalContainer"]->debugOutput[] = "---";
            $GLOBALS["_POPOON_globalContainer"]->debugOutput[] = "selector:".get_class($this);

            foreach ($this->attribs as $key => $value)
            {
            	$GLOBALS["_POPOON_globalContainer"]->debugOutput[] = "$key => $value";
            }
			$GLOBALS["_POPOON_globalContainer"]->debugOutput[] = "---";
		}
    }
    
	function match() {
	}

    
	function _match($value,$compare)
    {

	   	$matchtype = $this->getAttrib("matchtype");
        $this->printDebug("match input: $compare");        <commit_msg>E_STRICT stuff<commit_after><?php
// +----------------------------------------------------------------------+
// | popoon                                                               |
// +----------------------------------------------------------------------+
// | Copyright (c) 2001,2002,2003,2004 Bitflux GmbH                       |
// +----------------------------------------------------------------------+
// | Licensed under the Apache License, Version 2.0 (the "License");      |
// | you may not use this file except in compliance with the License.     |
// | You may obtain a copy of the License at                              |
// | http://www.apache.org/licenses/LICENSE-2.0                           |
// | Unless required by applicable law or agreed to in writing, software  |
// | distributed under the License is distributed on an "AS IS" BASIS,    |
// | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or      |
// | implied. See the License for the specific language governing         |
// | permissions and limitations under the License.                       |
// +----------------------------------------------------------------------+
// | Author: <NAME> <<EMAIL>>                        |
// +----------------------------------------------------------------------+
//
// $Id$

/**
* This is the Base-Class for all selectors
*
* Selectors are used in <map:select> in sitemap.xml
*
*  Selectors match here much the same as Matchers, this is different to cocoon
*   they don't return the hits, but nevermind :)
*
* @author   <NAME> <<EMAIL>>
* @version  $Id$
* @package  popoon
* @module	selectors
*/
class popoon_components_selector {
    
	public $debug = False;
	public $hit = False;

	function __construct(&$sitemap) {
		$this->sitemap = &$sitemap;
	}

	function init($attribs)
    {
	    $this->attribs = $attribs;
        $debug = $this->getAttrib("debug");
        if (!is_null($debug) && $debug!="no"  )
        {
        	$this->debug = True;
            $GLOBALS["_POPOON_globalContainer"]->debugOutput[] = "---";
            $GLOBALS["_POPOON_globalContainer"]->debugOutput[] = "selector:".get_class($this);

            foreach ($this->attribs as $key => $value)
            {
            	$GLOBALS["_POPOON_globalContainer"]->debugOutput[] = "$key => $value";
            }
			$GLOBALS["_POPOON_globalContainer"]->debugOutput[] = "---";
		}
    }
    
	function match($value) {
	}

    
	function _match($value,$compare)
    {

	   	$matchtype = $this->getAttrib("matchtype");
        $this->printDebug("match input: $compare");        
{'fraction_non_alphanumeric': 0.25849952516619185, 'fraction_numerical': 0.014055080721747389, 'mean_word_length': 1.3979963570127505, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5735247', 'n_tokens_mistral': 1457, 'n_tokens_neox': 1372, 'n_words': 365}