<commit_before><?php
/**
 * KumbiaPHP web & app Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://wiki.kumbiaphp.com/Licencia
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to <EMAIL> so we can send you a copy immediately.
 *
 * @category   KumbiaPHP
 * @package    Helpers
 * @copyright  Copyright (c) 2005-2014 KumbiaPHP Team (http://www.kumbiaphp.com)
 * @license    http://wiki.kumbiaphp.com/Licencia     New BSD License
 */

/**
 * Helper base para creacion de Tags
 *
 * @category   KumbiaPHP
 * @package    Helpers
 */
class Tag
{

    /**
     * Hojas de estilo
     *
     * @var array
     * */
    protected static $_css = array();

    /**
     * Convierte los argumentos de un metodo de parametros por nombre a un string con los atributos
     *
     * @param array|string $params argumentos a convertir
     * @return string
     */
    public static function getAttrs($params)
    {
        if(!is_array($params))return (string)$params;
        $data = '';
        foreach ($params as $k => $v) {
            $data .= " $k=\"$v\"";
        }
        return $data;
    }

    /**
     * Crea un tag
     *
     * @param string $tag nombre de tag
     * @param string $content contenido interno
     * @param string $attrs atributos para el tag
     * @return string
     * */
    public static function create($tag, $content = NULL, $attrs = NULL)
    {
        if (is_array($attrs)) {<commit_msg>Change doc<commit_after><?php
/**
 * KumbiaPHP web & app Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://wiki.kumbiaphp.com/Licencia
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to <EMAIL> so we can send you a copy immediately.
 *
 * @category   KumbiaPHP
 * @package    Helpers
 * @copyright  Copyright (c) 2005-2014 KumbiaPHP Team (http://www.kumbiaphp.com)
 * @license    http://wiki.kumbiaphp.com/Licencia     New BSD License
 */

/**
 * Helper base para creacion de Tags
 *
 * @category   KumbiaPHP
 * @package    Helpers
 */
class Tag
{

    /**
     * Hojas de estilo
     *
     * @var array
     * */
    protected static $_css = array();

    /**
     * Convierte los argumentos de un metodo de parametros por nombre a un string con los atributos
     *
     * @param mixed $params argumentos a convertir
     * @return string
     */
    public static function getAttrs($params)
    {
        if(!is_array($params))return (string)$params;
        $data = '';
        foreach ($params as $k => $v) {
            $data .= " $k=\"$v\"";
        }
        return $data;
    }

    /**
     * Crea un tag
     *
     * @param string $tag nombre de tag
     * @param string $content contenido interno
     * @param string $attrs atributos para el tag
     * @return string
     * */
    public static function create($tag, $content = NULL, $attrs = NULL)
    {
        if (is_array($attrs)) {
{'fraction_non_alphanumeric': 0.11013880506940253, 'fraction_numerical': 0.004828002414001207, 'mean_word_length': 2.341733870967742, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7565371', 'n_tokens_mistral': 1040, 'n_tokens_neox': 1011, 'n_words': 361}