<commit_before>// TODO
// * When you've added images, add an unload listener so people don't fuck up
// * Open image overlay on click

var React = require('react/addons'),
  BikePreview = require('./BikePreview'),
  PureRenderMixin = React.addons.PureRenderMixin,
  {connectToStores} = require('fluxible/addons'),
  BikeshedBuilder = require('./BikeshedBuilder'),
  ActionMixin = require('../../../utils/mixins/ActionMixin'),
  BikeshedBuilderStore = require('../stores/BikeshedBuilderStore'),
  BikeshedBuilderActions = require('../actions/BikeshedBuilderActions')

var Home = React.createClass({
  mixins: [ActionMixin, PureRenderMixin],

  render () {
    var {bikes, preview, form} = this.props
    return (
      <div className='home'>
        <BikeshedBuilder
          onFormChange={this._onFormChange}
          onBikeClear={this._onBikeClear}
          onBikeClick={this._onBikeClick}
          addFiles={this._addFiles}
          onSubmit={this._onSubmit}
          bikes={bikes}
          form={form}/>
        <BikePreview
          closePreview={this._closePreview}
          preview={preview}
          bikes={bikes}/>
      </div>
    )
  },

  _addFiles (files) {
    this.executeAction(BikeshedBuilderActions.addFiles, files)
  },

  _onSubmit () {
    this.executeAction(BikeshedBuilderActions.saveBikeshed)
  },

  _onBikeClick (name) {
    this.executeAction(BikeshedBuilderActions.openPreview, name)
  },

  _closePreview () {
    this.executeAction(BikeshedBuilderActions.closePreview)
  },

  _onFormChange (formField) {
    this.executeAction(BikeshedBuilderActions.formChange, formField)
  },
<commit_msg>Add circular preloaded for testing<commit_after>// TODO
// * When you've added images, add an unload listener so people don't fuck up
// * Open image overlay on click

var React = require('react/addons'),
  BikePreview = require('./BikePreview'),
  PureRenderMixin = React.addons.PureRenderMixin,
  {connectToStores} = require('fluxible/addons'),
  BikeshedBuilder = require('./BikeshedBuilder'),
  ActionMixin = require('../../../utils/mixins/ActionMixin'),
  BikeshedBuilderStore = require('../stores/BikeshedBuilderStore'),
  BikeshedBuilderActions = require('../actions/BikeshedBuilderActions'),
  CircularPreloader = require('../../../components/general/CircularPreloader')

var Home = React.createClass({
  mixins: [ActionMixin, PureRenderMixin],

  render () {
    var {bikes, preview, form} = this.props
    return (
      <div className='home'>
        <BikeshedBuilder
          onFormChange={this._onFormChange}
          onBikeClear={this._onBikeClear}
          onBikeClick={this._onBikeClick}
          addFiles={this._addFiles}
          onSubmit={this._onSubmit}
          bikes={bikes}
          form={form}/>
        <CircularPreloader secondary={true}/>
        <BikePreview
          closePreview={this._closePreview}
          preview={preview}
          bikes={bikes}/>
      </div>
    )
  },

  _addFiles (files) {
    this.executeAction(BikeshedBuilderActions.addFiles, files)
  },

  _onSubmit () {
    this.executeAction(BikeshedBuilderActions.saveBikeshed)
  },

  _onBikeClick (name) {
    this.executeAction(BikeshedBuilderActions.openPreview, name)
  },

  _closePreview () {
    this.executeAction(BikeshedBuilderActions.closePreview)
  },

  _onFormChange (formField) {
    this.executeAction(BikeshedBuilderActions.formChange, formField)
  },

{'fraction_non_alphanumeric': 0.12767830936307603, 'fraction_numerical': 0.0, 'mean_word_length': 3.3692307692307693, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': 2, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4314073', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1042, 'n_words': 170}