<commit_before>import React, { Component } from 'react'

class TodoInput extends Component {
    constructor(props, context) {
        super(props, context)

        this.onSubmit = this.onSubmit.bind(this)
        this.state = {
            inputText: ''
        }
    }

    shouldComponentUpdate() {
        return false
    }

    onSubmit(event) {
        event.preventDefault()

        // Method 1
        // if (this.state.inputText) {
        //     this.props.addTodo(this.state.inputText)

        //     this.setState({ inputText: '' })
        // } else {<commit_msg>Update comment info<commit_after>import React, { Component } from 'react'

class TodoInput extends Component {
    constructor(props, context) {
        super(props, context)

        this.onSubmit = this.onSubmit.bind(this)
        this.state = {
            inputText: ''
        }
    }

    shouldComponentUpdate() {
        // component has no props or state change so it is safe to just return `false`
        return false
    }

    onSubmit(event) {
        event.preventDefault()

        // Method 1
        // if (this.state.inputText) {
        //     this.props.addTodo(this.state.inputText)

        //     this.setState({ inputText: '' })
        // } else {
{'fraction_non_alphanumeric': 0.11652035115722266, 'fraction_numerical': 0.0015961691939345571, 'mean_word_length': 1.8179775280898876, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2813844', 'n_tokens_mistral': 361, 'n_tokens_neox': 352, 'n_words': 77}