<commit_before><?php
/**
 * OWASP Enterprise Security API (ESAPI)
 *
 * This file is part of the Open Web Application Security Project (OWASP)
 * Enterprise Security API (ESAPI) project. For details, please see
 * <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a>.
 *
 * Copyright (c) 2007 - 2009 The OWASP Foundation
 *
 * The ESAPI is published by OWASP under the BSD license. You should read and
 * accept the LICENSE before you use, modify, and/or redistribute this software.
 *
 * @author <NAME> <a href="http://www.aspectsecurity.com">Aspect Security</a>
 * @created 2009
 * @since 1.6
 */


/**
 * DefaultEncoder requires the interface it implements and any Codecs it uses.
 */
require_once dirname(__FILE__).'/../Encoder.php';
require_once dirname(__FILE__).'/../codecs/Base64Codec.php';
require_once dirname(__FILE__).'/../codecs/CSSCodec.php';
require_once dirname(__FILE__).'/../codecs/HTMLEntityCodec.php';
require_once dirname(__FILE__).'/../codecs/JavaScriptCodec.php';
//require_once dirname(__FILE__).'/../codecs/LDAPCodec.php';
require_once dirname(__FILE__).'/../codecs/PercentCodec.php';
require_once dirname(__FILE__).'/../codecs/VBScriptCodec.php';


/**
 * Reference implementation of the Encoder interface.
 *
 * This implementation takes a whitelist approach to encoding, meaning that
 * everything not specifically identified in a list of "immune" characters is
 * encoded.
 *
 * Users of encoding methods should ensure that data is first canonicalised
 * before invoking them to prevent double encoding
 *
 * @see Encoder
 *
 * @author <NAME> <a href="http://www.jds.net.au">JDS Australia</a>
 * @author jah (at jahboite.co.uk)
 * @since  1.6
 * @since  2009<commit_msg>Added a comment about possibly modifying encoding methods to perform canonicalization on inputs before encoding them.<commit_after><?php
/**
 * OWASP Enterprise Security API (ESAPI)
 *
 * This file is part of the Open Web Application Security Project (OWASP)
 * Enterprise Security API (ESAPI) project. For details, please see
 * <a href="http://www.owasp.org/index.php/ESAPI">http://www.owasp.org/index.php/ESAPI</a>.
 *
 * Copyright (c) 2007 - 2009 The OWASP Foundation
 *
 * The ESAPI is published by OWASP under the BSD license. You should read and
 * accept the LICENSE before you use, modify, and/or redistribute this software.
 *
 * @author <NAME> <a href="http://www.aspectsecurity.com">Aspect Security</a>
 * @created 2009
 * @since 1.6
 */


/**
 * DefaultEncoder requires the interface it implements and any Codecs it uses.
 */
require_once dirname(__FILE__).'/../Encoder.php';
require_once dirname(__FILE__).'/../codecs/Base64Codec.php';
require_once dirname(__FILE__).'/../codecs/CSSCodec.php';
require_once dirname(__FILE__).'/../codecs/HTMLEntityCodec.php';
require_once dirname(__FILE__).'/../codecs/JavaScriptCodec.php';
//require_once dirname(__FILE__).'/../codecs/LDAPCodec.php';
require_once dirname(__FILE__).'/../codecs/PercentCodec.php';
require_once dirname(__FILE__).'/../codecs/VBScriptCodec.php';


/**
 * Reference implementation of the Encoder interface.
 *
 * This implementation takes a whitelist approach to encoding, meaning that
 * everything not specifically identified in a list of "immune" characters is
 * encoded.
 *
 * Users of encoding methods should ensure that data is first canonicalized
 * before invoking them to prevent double encoding.  In future versions of the
 * reference implementation, encoding methods will perhaps perform
 * canonicalization prior to encoding and callers will not have to concern
 * themselves with ensuring canonicalization is done.
 *
 * @see Encoder
 *
 * @author <NAME> <a href="http://www.jds.net.au">JDS Australia</a>
 * @author jah (at jahboite.co.uk)
 * @since  1.6
 * @since  2009
{'fraction_non_alphanumeric': 0.1267123287671233, 'fraction_numerical': 0.011591148577449948, 'mean_word_length': 4.280945757997219, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, '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': '5810001', 'n_tokens_mistral': 1178, 'n_tokens_neox': 1118, 'n_words': 359}