<commit_before>/**
 * Simple discussion box
 * @author <NAME> <<EMAIL>>
 * @license AGPL-3.0
 */

import React from 'react'
import ReactDisqusThread from 'react-disqus-comments'

export default class Comments extends React.Component {
    constructor () {
        super()
        this.style = {
            margin: 'auto',
            maxWidth: 760
        }
    }

    shouldComponentUpdate (nextProps, nextState) {
        return false
    }

    render () {
        return (
            <div style={this.style}>
                <ReactDisqusThread
                    shortname="githut2"
                    identifier="githut2"
                    title="GitHut2 Thread"
                />
            </div>
        )
    }
}<commit_msg>Comments class -> functional component<commit_after>/**
 * Simple discussion box
 * @author <NAME> <<EMAIL>>
 * @license AGPL-3.0
 */

import React from "react"
import ReactDisqusThread from "react-disqus-comments"

export default function Comments() {
    return (
        <div style={{ margin: "auto", maxWidth: 760 }}>
            <ReactDisqusThread
                shortname="githut2"
                identifier="githut2"
                title="GitHut2 Thread"
            />
        </div>
    )
}
{'fraction_non_alphanumeric': 0.11182622687047465, 'fraction_numerical': 0.012872083668543845, 'mean_word_length': 1.7400881057268722, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 16, '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': '1980880', 'n_tokens_mistral': 365, 'n_tokens_neox': 349, 'n_words': 82}