<commit_before><?php

/*
 * This file is part of the Yosymfony\Spress.
 *
 * (c) YoSymfony <http://github.com/yosymfony>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
 
namespace Yosymfony\Spress\Plugin;

/**
 * Wrapper for Composer data of a plugin
 * 
 * @author <NAME> <<EMAIL>>
 */
class PluginComposerData
{
    private $data;
    
    /**
     * Constructor
     * 
     * @param array $data
     */
    public function __construct(array $data)
    {
        $this->data = $data;
    }
    
    /**
     * Get the Spress plugin name
     * 
     * @return string
     */
    public function getSpressName()
    {
        $result = '';
        
        if(isset($this->data['extra']['spress_name']))
        {
            $result = $this->data['extra']['spress_name'];
        }
        
        return $result;
    }
    
    /**
     * Get the Spress plugin entry point
     * 
     * @return string
     */
    public function getSpressClass()
    {<commit_msg>Fix documentation<commit_after><?php

/*
 * This file is part of the Yosymfony\Spress.
 *
 * (c) YoSymfony <http://github.com/yosymfony>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
 
namespace Yosymfony\Spress\Plugin;

/**
 * Wrapper for Composer data of a plugin
 * 
 * @author <NAME> <<EMAIL>>
 */
class PluginComposerData
{
    private $data;
    
    /**
     * Constructor
     * 
     * @param array $data
     */
    public function __construct(array $data)
    {
        $this->data = $data;
    }
    
    /**
     * Get the Spress plugin name
     * 
     * @return string
     */
    public function getSpressName()
    {
        $result = '';
        
        if(isset($this->data['extra']['spress_name']))
        {
            $result = $this->data['extra']['spress_name'];
        }
        
        return $result;
    }
    
    /**
     * Get the Spress plugin entry-point
     * 
     * @return string
     */
    public function getSpressClass()
    {
{'fraction_non_alphanumeric': 0.12606232294617564, 'fraction_numerical': 0.0, 'mean_word_length': 1.9027397260273973, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3865179', 'n_tokens_mistral': 661, 'n_tokens_neox': 648, 'n_words': 166}