<commit_before>import React from 'react'
import CompletedQuizContainer from '../containers/CompletedQuizContainer'

const Assignment = ({user, currentAssignment, updateGrade}) => {
  return (
    <div className="dashboard">
      <div className="container panel-container">
        { (user.teacher_id || user.student_id)
          && (user.teacher_id && user.teacher_id === currentAssignment.teacher_id)
          ||(user.student_id && user.student_id === currentAssignment.student_id )
          ? (
          <section className="panel single-assignment">
            <div className="panel-header">{ currentAssignment.title }</div>
            <div className="panel-subheader">
              <strong>Name:</strong> {currentAssignment.student.user.name} <br/>
              <strong>Current Grade:</strong> {currentAssignment.grade ? currentAssignment.grade : 0}/100
              {user.teacher_id ? (
                <div>
                  <form onSubmit={(evt) => {
                    evt.preventDefault()
                    updateGrade(evt.target.grade.value, currentAssignment.id)
                  }}><commit_msg>fix name on completed assignments<commit_after>import React from 'react'
import CompletedQuizContainer from '../containers/CompletedQuizContainer'

const Assignment = ({user, currentAssignment, updateGrade}) => {
  return (
    <div className="dashboard">
      <div className="container panel-container">
        { (user.teacher_id || user.student_id)
          && (user.teacher_id && user.teacher_id === currentAssignment.teacher_id)
          ||(user.student_id && user.student_id === currentAssignment.student_id )
          ? (
          <section className="panel single-assignment">
            <div className="panel-header">{ currentAssignment.title }</div>
            <div className="panel-subheader">
              <strong>Name:</strong> {currentAssignment.student.user.firstName + ' ' + currentAssignment.student.user.lastName} <br/>
              <strong>Current Grade:</strong> {currentAssignment.grade ? currentAssignment.grade : 0}/100
              {user.teacher_id ? (
                <div>
                  <form onSubmit={(evt) => {
                    evt.preventDefault()
                    updateGrade(evt.target.grade.value, currentAssignment.id)
                  }}>
{'fraction_non_alphanumeric': 0.12753999135322092, 'fraction_numerical': 0.0034587116299178555, 'mean_word_length': 2.511380880121396, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 33, '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': '510049', 'n_tokens_mistral': 608, 'n_tokens_neox': 614, 'n_words': 107}