<commit_before>React  = require 'react'
BS     = require 'react-bootstrap'
moment = require 'moment'
EventsPanel = require './events-panel'
EmptyPanel  = require './empty-panel'
{TimeStore} = require '../../flux/time'
{StudentDashboardStore} = require '../../flux/student-dashboard'

module.exports = React.createClass
  displayName: 'UpcomingPanel'
  propTypes:
    courseId: React.PropTypes.any.isRequired

  render: ->
    events  = StudentDashboardStore.upcomingEvents(@props.courseId)
    if events.length
      <EventsPanel
        className="-upcoming"
        onTaskClick={@onTaskClick}<commit_msg>Upcoming events panel should start at next week<commit_after>React  = require 'react'
BS     = require 'react-bootstrap'
moment = require 'moment'
EventsPanel = require './events-panel'
EmptyPanel  = require './empty-panel'
{TimeStore} = require '../../flux/time'
{StudentDashboardStore} = require '../../flux/student-dashboard'

module.exports = React.createClass
  displayName: 'UpcomingPanel'
  propTypes:
    courseId: React.PropTypes.any.isRequired

  render: ->
    startAt = moment(TimeStore.getNow()).startOf('isoweek').add(1,'week')
    events  = StudentDashboardStore.upcomingEvents(@props.courseId, startAt)
    if events.length
      <EventsPanel
        className="-upcoming"
        onTaskClick={@onTaskClick}
{'fraction_non_alphanumeric': 0.13393528969149737, 'fraction_numerical': 0.0007524454477050414, 'mean_word_length': 3.907749077490775, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6642101', 'n_tokens_mistral': 390, 'n_tokens_neox': 394, 'n_words': 81}