<commit_before><?php
namespace Craft;

class DisqusPlugin extends BasePlugin
{
    function getName()
    {
        return Craft::t('Disqus');
    }

    public function getDescription()
    {
        return 'A simple plugin for integrating Disqus into Craft CMS websites, including Single Sign On (SSO) and custom login/logout URLs.';
    }
    
    public function getDocumentationUrl()
    {
        return 'https://github.com/khalwat/disqus/blob/master/README.md';
    }
    
    public function getReleaseFeedUrl()
    {
        return 'https://github.com/khalwat/disqus/blob/master/releases.json';
    }
    
	public function getVersion()
	{
	    return '1.0.1';
	}

    public function getSchemaVersion()
    {
        return '1.0.0';
    }

    function getDeveloper()
    {
        return 'Megalomaniac';
    }

    function getDeveloperUrl()
    {
        return 'http://www.megalomaniac.com';
    }

    public function hasCpSection()
    {
        return false;
    }

    public function addTwigExtension()
    {
        Craft::import('plugins.disqus.twigextensions.DisqusTwigExtension');

        return new DisqusTwigExtension();
    }

	protected function defineSettings()
	{
		return array(
			'disqusShortname' => array(AttributeType::String, 'label' => 'Disqus Site Short Name', 'default' => ''),
			'useSSO' => array(AttributeType::Bool, 'label' => 'Use Single Sign On', 'default' => false),
			'disqusPublicKey' => array(AttributeType::String, 'label' => 'Disqus Public Key', 'default' => ''),
			'disqusSecretKey' => array(AttributeType::String, 'label' => 'Disqus Secret Key', 'default' => ''),
			'customLogin' => array(AttributeType::Bool, 'label' => 'Use Custom Login/Logout URLs', 'default' => false),
			'loginName' => array(AttributeType::String, 'label' => 'name', 'default' => ''),
			'loginButton' => array(AttributeType::String, 'label' => 'button', 'default' => ''),
			'loginIcon' => array(AttributeType::String, 'label' => 'icon', 'default' => ''),
			'loginUrl' => array(AttributeType::String, 'label' => 'url', 'default' => ''),
			'loginLogoutUrl' => array(AttributeType::String, 'label' => 'logout', 'default' => ''),
			'loginWidth' => array(AttributeType::String, 'label' => 'width', 'default' => '800'),
			'loginHeight' => array(AttributeType::String, 'label' => 'height', 'default' => '400'),
		);
	}

    public function getSettingsHtml()
	{
       return craft()->templates->render('disqus/settings', array(
           'settings' => $this->getSettings()
       ));
	}

}<commit_msg>Tabs -> spaces<commit_after><?php
namespace Craft;

class DisqusPlugin extends BasePlugin
{
    function getName()
    {
        return Craft::t('Disqus');
    }

    public function getDescription()
    {
        return 'A simple plugin for integrating Disqus into Craft CMS websites, including Single Sign On (SSO) and custom login/logout URLs.';
    }
    
    public function getDocumentationUrl()
    {
        return 'https://github.com/khalwat/disqus/blob/master/README.md';
    }
    
    public function getReleaseFeedUrl()
    {
        return 'https://github.com/khalwat/disqus/blob/master/releases.json';
    }
    
    public function getVersion()
    {
        return '1.0.1';
    }

    public function getSchemaVersion()
    {
        return '1.0.0';
    }

    function getDeveloper()
    {
        return 'Megalomaniac';
    }

    function getDeveloperUrl()
    {
        return 'http://www.megalomaniac.com';
    }

    public function hasCpSection()
    {
        return false;
    }

    public function addTwigExtension()
    {
        Craft::import('plugins.disqus.twigextensions.DisqusTwigExtension');

        return new DisqusTwigExtension();
    }

    protected function defineSettings()
    {
        return array(
            'disqusShortname' => array(AttributeType::String, 'label' => 'Disqus Site Short Name', 'default' => ''),
            'useSSO' => array(AttributeType::Bool, 'label' => 'Use Single Sign On', 'default' => false),
            'disqusPublicKey' => array(AttributeType::String, 'label' => 'Disqus Public Key', 'default' => ''),
            'disqusSecretKey' => array(AttributeType::String, 'label' => 'Disqus Secret Key', 'default' => ''),
            'customLogin' => array(AttributeType::Bool, 'label' => 'Use Custom Login/Logout URLs', 'default' => false),
            'loginName' => array(AttributeType::String, 'label' => 'name', 'default' => ''),
            'loginButton' => array(AttributeType::String, 'label' => 'button', 'default' => ''),
            'loginIcon' => array(AttributeType::String, 'label' => 'icon', 'default' => ''),
            'loginUrl' => array(AttributeType::String, 'label' => 'url', 'default' => ''),
            'loginLogoutUrl' => array(AttributeType::String, 'label' => 'logout', 'default' => ''),
            'loginWidth' => array(AttributeType::String, 'label' => 'width', 'default' => '800'),
            'loginHeight' => array(AttributeType::String, 'label' => 'height', 'default' => '400'),
        );
    }

    public function getSettingsHtml()
    {
       return craft()->templates->render('disqus/settings', array(
           'settings' => $this->getSettings()
       ));
    }

}
{'fraction_non_alphanumeric': 0.16634652324241261, 'fraction_numerical': 0.004610065309258548, 'mean_word_length': 3.045843045843046, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 84, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '4285110', 'n_tokens_mistral': 1645, 'n_tokens_neox': 1566, 'n_words': 329}