<commit_before><?php
/**
 * @version		$Id$
 * @category	Koowa
 * @package     Koowa_View
 * @copyright	Copyright (C) 2007 - 2010 <NAME>. All rights reserved.
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link     	http://www.nooku.org
 */

/**
 * Vcard Class
 * 
 * Complies to version 2.1 of the vCard specification
 *
 * @author      <NAME> <<EMAIL>>
 * @category    Koowa
 * @package     Koowa_View
 * @see         http://www.imc.org/pdi/
 * @see         http://en.wikipedia.org/wiki/VCard
 * @uses        KFilter
 * @uses        KFactory
 */
class KViewVcard extends KViewFile
{
    /**
     * The Vcard properties
     *
     * @var array
     */
    protected $_properties;
    
    /**
     * Initializes the options for the object
     *
     * Called from {@link __construct()} as a first step of object instantiation.
     *
     * @param   object  An optional KConfig object with configuration options
     * @return  void
     */
    protected function _initialize(KConfig $config)
    {
        $config->append(array(
            'mimetype'    => 'text/x-vcard',
        ));
        
        parent::_initialize($config);
    }
        
    /**
     * Return the views output
     *
     *  @return string  The output of the view
     */
    public function display()
    {
        //Set the filename
        $filename = KFactory::tmp('lib.koowa.filter.filename')->sanitize($this->_properties['FN']);<commit_msg>re #135 : Changed identifier to URL format (type:[//application/]package.path.name) and replaced KFactory::tmp() with KFactory::get()<commit_after><?php
/**
 * @version		$Id$
 * @category	Koowa
 * @package     Koowa_View
 * @copyright	Copyright (C) 2007 - 2010 <NAME>. All rights reserved.
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link     	http://www.nooku.org
 */

/**
 * Vcard Class
 * 
 * Complies to version 2.1 of the vCard specification
 *
 * @author      <NAME> <<EMAIL>>
 * @category    Koowa
 * @package     Koowa_View
 * @see         http://www.imc.org/pdi/
 * @see         http://en.wikipedia.org/wiki/VCard
 * @uses        KFilter
 * @uses        KFactory
 */
class KViewVcard extends KViewFile
{
    /**
     * The Vcard properties
     *
     * @var array
     */
    protected $_properties;
    
    /**
     * Initializes the options for the object
     *
     * Called from {@link __construct()} as a first step of object instantiation.
     *
     * @param   object  An optional KConfig object with configuration options
     * @return  void
     */
    protected function _initialize(KConfig $config)
    {
        $config->append(array(
            'mimetype'    => 'text/x-vcard',
        ));
        
        parent::_initialize($config);
    }
        
    /**
     * Return the views output
     *
     *  @return string  The output of the view
     */
    public function display()
    {
        //Set the filename
        $filename = KFactory::get('koowa:filter.filename')->sanitize($this->_properties['FN']);
{'fraction_non_alphanumeric': 0.1300731869594145, 'fraction_numerical': 0.0083166999334664, 'mean_word_length': 2.1031991744066048, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '5812900', 'n_tokens_mistral': 945, 'n_tokens_neox': 917, 'n_words': 237}