<commit_before>"use strict";

import React              from 'react';
import AssessmentActions  from "../../actions/assessment";
import $                  from "jquery";

export default class CheckUnderstanding extends React.Component{

  start(eid, assessmentId, context){
    AssessmentActions.start(eid, assessmentId, this.props.externalContextId);
    AssessmentActions.loadAssessment(window.DEFAULT_SETTINGS, $('#srcData').text());
    context.router.transitionTo("assessment");
  }

  manageAttempts(){
    this.context.router.transitionTo("attempts", {contextId: this.props.externalContextId, assessmentId: this.props.assessmentId});
  }

  previewAttempt(){
    this.context.router.transitionTo("teacher-preview", {contextId: this.props.externalContextId, assessmentId: this.props.assessmentId});
  }

  getStyles(props, theme){
    return {
      assessmentContainer:{
        marginTop: props.assessmentKind.toUpperCase() == "FORMATIVE" ? "0px":"100px",
        boxShadow: props.assessmentKind.toUpperCase() == "FORMATIVE" ?  "" : theme.assessmentContainerBoxShadow,
        borderRadius: theme.assessmentContainerBorderRadius
      },
      header: {
        backgroundColor: theme.headerBackgroundColor
      },
      startButton: {
        margin: "5px 5px 5px -5px",
        width: theme.definitelyWidth,
        backgroundColor: theme.definitelyBackgroundColor,
        border: "transparent"
      },
      checkUnderstandingButton: {
        backgroundColor: theme.maybeBackgroundColor
      },
      fullQuestion:{
        backgroundColor: theme.fullQuestionBackgroundColor,
        padding: "20px"
      },
      buttonGroup: {
        textAlign: props.assessmentKind.toUpperCase() != "SUMMATIVE" ? "left" : "center",
        padding: "2px 0",
        background: "#E9E9E9",
        borderBottom: "2px solid #e7e7e7"
      },
      buttonWrapper: {
        textAlign: props.assessmentKind.toUpperCase() != "SUMMATIVE" ? "left" : "center"
      },
      teacherButton: {
        border:"transparent",
        backgroundColor:"#3299bb",<commit_msg>Change spacing and color for teacher buttons on check understanding page<commit_after>"use strict";

import React              from 'react';
import AssessmentActions  from "../../actions/assessment";
import $                  from "jquery";

export default class CheckUnderstanding extends React.Component{

  start(eid, assessmentId, context){
    AssessmentActions.start(eid, assessmentId, this.props.externalContextId);
    AssessmentActions.loadAssessment(window.DEFAULT_SETTINGS, $('#srcData').text());
    context.router.transitionTo("assessment");
  }

  manageAttempts(){
    this.context.router.transitionTo("attempts", {contextId: this.props.externalContextId, assessmentId: this.props.assessmentId});
  }

  previewAttempt(){
    this.context.router.transitionTo("teacher-preview", {contextId: this.props.externalContextId, assessmentId: this.props.assessmentId});
  }

  getStyles(props, theme){
    return {
      assessmentContainer:{
        marginTop: props.assessmentKind.toUpperCase() == "FORMATIVE" ? "0px":"100px",
        boxShadow: props.assessmentKind.toUpperCase() == "FORMATIVE" ?  "" : theme.assessmentContainerBoxShadow,
        borderRadius: theme.assessmentContainerBorderRadius
      },
      header: {
        backgroundColor: theme.headerBackgroundColor
      },
      startButton: {
        margin: "5px 5px 5px -5px",
        width: theme.definitelyWidth,
        backgroundColor: theme.definitelyBackgroundColor,
        border: "transparent"
      },
      checkUnderstandingButton: {
        backgroundColor: theme.maybeBackgroundColor
      },
      fullQuestion:{
        backgroundColor: theme.fullQuestionBackgroundColor,
        padding: "20px"
      },
      buttonGroup: {
        textAlign: props.assessmentKind.toUpperCase() != "SUMMATIVE" ? "left" : "center",
        padding: "3px 0",
        background: "#e9e9e9",
        borderBottom: "2px solid #e3e3e3"
      },
      buttonWrapper: {
        textAlign: props.assessmentKind.toUpperCase() != "SUMMATIVE" ? "left" : "center"
      },
      teacherButton: {
        border:"transparent",
        backgroundColor:"#3299bb",
{'fraction_non_alphanumeric': 0.119894912825412, 'fraction_numerical': 0.0109863864342011, 'mean_word_length': 3.251776649746193, 'pattern_counts': {'":': 2, '<': 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': '370076', 'n_tokens_mistral': 1188, 'n_tokens_neox': 1158, 'n_words': 211}