<commit_before>import React from 'react';
import Spring from '../Spring';

let Demo = React.createClass({
  getInitialState() {
    return {open: false};
  },

  handleMouseDown() {
    this.setState({open: !this.state.open});
  },

  render() {
    return (
      <div>
        <button onMouseDown={this.handleMouseDown}>Toggle</button>
        <Spring className="demo0" endValue={this.state.open ? 400 : 0}>
          {x =>
            // children is a callback which should accept the current value of
            // `endValue`
            <div className="demo0-block" style={{
              WebkitTransform: `translate3d(${x}px, 0, 0)`,
              transform: `translate3d(${x}px, 0, 0)`,
            }} />
          }
        </Spring>
      </div>
    );
  }
});

export default Demo;
<commit_msg>Turn demo0 into new format<commit_after>import React from 'react';
import Spring from '../Spring';

let Demo = React.createClass({
  getInitialState() {
    return {open: false};
  },

  handleMouseDown() {
    this.setState({open: !this.state.open});
  },

  render() {
    return (
      <div>
        <button onMouseDown={this.handleMouseDown}>Toggle</button>
        <Spring className="demo0" endValue={{val: this.state.open ? 400 : 0}}>
          {({val}) =>
            // children is a callback which should accept the current value of
            // `endValue`
            <div className="demo0-block" style={{
              WebkitTransform: `translate3d(${val}px, 0, 0)`,
              transform: `translate3d(${val}px, 0, 0)`,
            }} />
          }
        </Spring>
      </div>
    );
  }
});

export default Demo;

{'fraction_non_alphanumeric': 0.15548780487804878, 'fraction_numerical': 0.01524390243902439, 'mean_word_length': 2.1436781609195403, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '4688514', 'n_tokens_mistral': 513, 'n_tokens_neox': 497, 'n_words': 119}