<commit_before>import React from 'react';
import {render} from 'react-dom';
import {browserHistory} from 'react-router';
import Nav from './Nav/Nav.jsx'
import NavSide from './Nav/NavSide.jsx'
import TeacherViewContainer from './TeacherViewContainer.jsx'
import HomeView from './HomeView.jsx'
import Login from './Login.jsx';
import css from '../css/nav.css';

class App extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      // State variables to go here
    };

    // this.handleSomeEvent = this.handleSomeEvent.bind(this);
  }

// --------------------------------------------------------------------
// Component Lifecycle Functions
// --------------------------------------------------------------------

  componentDidMount() {
    
  }
// --------------------------------------------------------------------


// --------------------------------------------------------------------
// Event Handlers
// --------------------------------------------------------------------

  handleSomeEvent(someParameter) {
    
  }
// --------------------------------------------------------------------

// <div className="construction">
//   <p>Under Construction!</p>
// </div>

  render() {
    return (
      <div>
        {"StudentsView"}
      </div>
    );
  }

}

export default App;

//{this.props.children}<commit_msg>(feat) Update StudentsView to render StudentsList (see description for more)<commit_after>import React from 'react';
import {render} from 'react-dom';
import {browserHistory} from 'react-router';
import {getAllStudents} from './helpers/viewHelpers.js';
import StudentsList from './StudentsList.jsx'; 
import css from '../css/nav.css';

class StudentsView extends React.Component {
  constructor(props) {
    super(props);

    this.state = {
      // State variables to go here
      students: [{id: 1, name: '<NAME>', class: 'BIO-101'},
                 {id: 1, name: '<NAME>', class: 'BIO-101'},
                 {id: 1, name: '<NAME>', class: 'BIO-101'},
                 {id: 1, name: '<NAME>', class: 'BIO-101'}],
      currenteStudent: null
    };

    this.handleStudentsListEntryClick = this.handleStudentsListEntryClick.bind(this);
  }

// --------------------------------------------------------------------
// Component Lifecycle Functions
// --------------------------------------------------------------------

  componentWillMount() {
    // getAllStudents().then((res) => { 
    //   this.setState({
    //     students: res.data
    //   });
    // });
  }
// --------------------------------------------------------------------


// --------------------------------------------------------------------
// Event Handlers
// --------------------------------------------------------------------

  handleStudentsListEntryClick(event) {
      console.log('You clicked a StudentListEntry!');
      console.log('sdfasdf', event.target);
      this.setState({
        currentStudent: event.target.id
      }, () => this.props.router.push('/dashboard'));
      console.log('this.state.students inside StudentView is: ', this.state.students);
      console.log('this.state.currentStudent inside StudentView is: ', this.state.currentStudent);
    // })
  }
// --------------------------------------------------------------------

  render() {
    return (
      <div>
        <h2>Students</h2>
        <StudentsList students={this.state.students}
                      currentStudentId={this.state.currentStudent}
                      handleStudentListEntryClick={this.handleStudentsListEntryClick} 
        />
      </div>
    );
  }
}

export default StudentsView;
{'fraction_non_alphanumeric': 0.34406826314340766, 'fraction_numerical': 0.00495458298926507, 'mean_word_length': 1.2698313554028733, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 20, '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': '6251849', 'n_tokens_mistral': 898, 'n_tokens_neox': 858, 'n_words': 187}