<commit_before>import React from 'react'
import { pure } from 'recompose'

import image__goodJob from '../assets/goodJob.jpg'

function onChange(actionFn) {
    return (event) => actionFn(event.target.value)
}

export const Example = ({ text, actions }) =>
    <div style={{ border: `10px solid #${(Math.random() * 1000).toString().slice(0, 3)}` }}>
        <p>Text: {text}</p>
        <img src={image__goodJob} height="100" />
        <p>
            Set:
            <input
                value={text}
                onChange={ onChange(actions.setText) }
            />
        </p>
        <p>
            Append:
            <input
                value=""
                onChange={ onChange(actions.appendText) }
            />
        </p>
        <p>
            Fake Change:
            <button
                onClick={ () => actions.appendText("")}
            >WONT UPDATE</button>
        </p>
    </div>

export default pure(Example)
<commit_msg>Tweak<commit_after>import React from 'react'
import { pure } from 'recompose'

import image__goodJob from '../assets/goodJob.jpg'

function onChange(actionFn) {
    return (event) => actionFn(event.target.value)
}

export const Example = ({ text, actions, validation }) =>
    <div style={{ border: `10px solid #${(Math.random() * 1000).toString().slice(0, 3)}` }}>
        <p>Text: {text}</p>
        <img src={image__goodJob} height="100" />
        <p>
            Set:
            <input
                value={text}
                onChange={ onChange(actions.setText) }
            />
        </p>
        <p>
            Append:
            <input
                value=""
                onChange={ onChange(actions.appendText) }
            />
        </p>
        <p>
            Fake Change:
            <button
                onClick={ () => actions.appendText("")}
            >WONT UPDATE</button>
        </p>
    </div>

export default pure(Example)

{'fraction_non_alphanumeric': 0.14974093264248706, 'fraction_numerical': 0.011398963730569948, 'mean_word_length': 1.6024258760107817, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 39, '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': '6962645', 'n_tokens_mistral': 578, 'n_tokens_neox': 559, 'n_words': 125}