<commit_before>var React = require('react');

var AppCanvas = React.createClass({
  
  contextTypes: {
    theme: React.PropTypes.object
  },

  propTypes: {
    predefinedLayout: React.PropTypes.number
  },

  render: function() {

    var styles = {
      height: '100%',
      backgroundColor: this.context.theme.palette.canvasColor
    };

    var stylesAppBar = {
      position: 'fixed', 
      height: this.context.theme.component.appBar.height
    };

    var newChildren = React.Children.map(this.props.children, function(currentChild) {
      switch (currentChild.type.displayName) {
        case 'AppBar' : 
          return React.cloneElement(currentChild, {style: stylesAppBar});
        default:
          return currentChild;
      }<commit_msg>[Fix] #497<commit_after>var React = require('react');

var AppCanvas = React.createClass({
  
  contextTypes: {
    theme: React.PropTypes.object
  },

  propTypes: {
    predefinedLayout: React.PropTypes.number
  },

  render: function() {

    var styles = {
      height: '100%',
      backgroundColor: this.context.theme.palette.canvasColor,
      WebkitFontSmoothing: 'antialiased'
    };

    var stylesAppBar = {
      position: 'fixed', 
      height: this.context.theme.component.appBar.height
    };

    var newChildren = React.Children.map(this.props.children, function(currentChild) {
      switch (currentChild.type.displayName) {
        case 'AppBar' : 
          return React.cloneElement(currentChild, {style: stylesAppBar});
        default:
          return currentChild;
      }
{'fraction_non_alphanumeric': 0.11738293778062861, 'fraction_numerical': 0.005772931366260423, 'mean_word_length': 2.8048780487804876, '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': '306802', 'n_tokens_mistral': 477, 'n_tokens_neox': 454, 'n_words': 85}