<commit_before>/** @jsx React.DOM */

var Markdown = require('../components/markdown');
var navUtil = require('./nav/nav-util');
var SnippetView = require('./snippet-link-view');
var APIView = require('./api-view');
var SectionView = require('./section-view');
var SummaryView = require('./project-summary-view');
var util = require('../utils/util');

module.exports = React.createClass({
  mixins: ['modelAware'],

  render: function() {

    var project = this.getModel();
    var children = [];
    var viewState = this.props.viewState;

    var installationView;
    if (project.get('installation')) {
      installationView = (
        <div className="main-section">
          <h3 className="ui header" id="installation">Installation</h3>
          <div className="ui divider"/>
          <Markdown body={project.get('installation')}/>
        </div>
      );
    }

    _.each(project.api, function(api, name) {
      children.push(new APIView({model: api}));
    }, this);

    return (
      <div>
        <SummaryView model={project}/>
        {installationView}
        {children}
        <ProjectSectionList model={project}/>
      </div>
    );
  }
});

var ProjectSectionList = React.createClass({
  mixins: ['modelAware'],
  render: function() {
    var project = this.getModel();
    var children = project.sections && project.sections.map(function(section) {
      return new SectionView({model: section, topLevel: true, level: 3, key: section.id});
    });
    return <div className="main-section">{children}</div>
  }
});<commit_msg>move installation to end<commit_after>/** @jsx React.DOM */

var Markdown = require('../components/markdown');
var navUtil = require('./nav/nav-util');
var SnippetView = require('./snippet-link-view');
var APIView = require('./api-view');
var SectionView = require('./section-view');
var SummaryView = require('./project-summary-view');
var util = require('../utils/util');

module.exports = React.createClass({
  mixins: ['modelAware'],

  render: function() {

    var project = this.getModel();
    var children = [];
    var viewState = this.props.viewState;

    var installationView;
    if (project.get('installation')) {
      installationView = (
        <div className="main-section">
          <h3 className="ui header" id="installation">Installation</h3>
          <div className="ui divider"/>
          <Markdown body={project.get('installation')}/>
        </div>
      );
    }

    _.each(project.api, function(api, name) {
      children.push(new APIView({model: api}));
    }, this);

    return (
      <div>
        <SummaryView model={project}/>
        {children}
        <ProjectSectionList model={project}/>
        {installationView}
      </div>
    );
  }
});

var ProjectSectionList = React.createClass({
  mixins: ['modelAware'],
  render: function() {
    var project = this.getModel();
    var children = project.sections && project.sections.map(function(section) {
      return new SectionView({model: section, topLevel: true, level: 3, key: section.id});
    });
    return <div className="main-section">{children}</div>
  }
});
{'fraction_non_alphanumeric': 0.17089624156761965, 'fraction_numerical': 0.0019274012206874397, 'mean_word_length': 3.119047619047619, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '4413955', 'n_tokens_mistral': 922, 'n_tokens_neox': 909, 'n_words': 199}