<commit_before>import { React, PropTypes, styled, observer } from 'vendor';
import { StickyTable, Row } from 'react-sticky-table';
import { OverlayTrigger, Popover } from 'react-bootstrap';
import LoadingScreen from 'shared/components/loading-animation';
import { colors } from 'theme';
import S from '../../helpers/string';
import ExtensionIcon from '../../components/icons/extension';
import InfoIcon from '../../components/icons/info';
import SortIcon from '../../components/icons/sort';
import SearchInput from '../../components/search-input';
import TutorLink from '../../components/link';
import GrantExtension from './grant-extension';
import DropQuestions from './drop-questions';
import PublishScores from './publish-scores';
import { EIcon } from '../../components/icons/extension';

import {
  StyledStickyTable, Cell,
  CellContents as BasicCellContents,
  Heading, HeadingTop, HeadingMiddle, HeadingBottom,
  ColumnHeading as BasicColumnHeading,
  SplitCell, ColumnFooter, Total,
  LateWork, DefinitionsWrapper,
  ControlsWrapper, ControlGroup,
  OrderIcon, NameWrapper,
} from './table-elements';

// https://projects.invisionapp.com/d/main#/console/18937568/401942280/preview

const CellContents = styled(BasicCellContents)`
  .data-heading {
    height: 110px;
  }
`;

const ExtIcon = styled(EIcon)`
  display: inline-block;
`;

const ColumnHeading = styled(BasicColumnHeading)`
  background: ${props => props.variant === 'q' ? colors.templates.reading.background : colors.neutral.lighter};
  .middle-data-heading {
    padding-top: 15px;
  }
  .bottom-data-heading {
    height: 40px;
  }
`;


const popover = (gradingTemplate) => (
  <Popover className="scores-popover">
    <StickyTable id="reading-scores-weight">
      <Row>
        <Cell>Weight for correctness</Cell>
        <Cell>{gradingTemplate.humanCorrectnessWeight} of question's point value</Cell>
      </Row>
      <Row>
        <Cell>Weight for completion</Cell>
        <Cell>{gradingTemplate.humanCompletionWeight} of question's point value</Cell>
      </Row>
      <Row>
        <Cell>Total</Cell> <commit_msg>change border top of reading assignment to yellow<commit_after>import { React, PropTypes, styled, observer } from 'vendor';
import { StickyTable, Row } from 'react-sticky-table';
import { OverlayTrigger, Popover } from 'react-bootstrap';
import LoadingScreen from 'shared/components/loading-animation';
import { colors } from 'theme';
import S from '../../helpers/string';
import ExtensionIcon from '../../components/icons/extension';
import InfoIcon from '../../components/icons/info';
import SortIcon from '../../components/icons/sort';
import SearchInput from '../../components/search-input';
import TutorLink from '../../components/link';
import GrantExtension from './grant-extension';
import DropQuestions from './drop-questions';
import PublishScores from './publish-scores';
import { EIcon } from '../../components/icons/extension';

import {
  StyledStickyTable, Cell,
  CellContents as BasicCellContents,
  Heading, HeadingTop, HeadingMiddle, HeadingBottom,
  ColumnHeading as BasicColumnHeading,
  SplitCell, ColumnFooter, Total,
  LateWork, DefinitionsWrapper,
  ControlsWrapper, ControlGroup,
  OrderIcon, NameWrapper,
} from './table-elements';

// https://projects.invisionapp.com/d/main#/console/18937568/401942280/preview

const CellContents = styled(BasicCellContents)`
  .data-heading {
    height: 110px;
  }
`;

const ExtIcon = styled(EIcon)`
  display: inline-block;
`;

const ColumnHeading = styled(BasicColumnHeading)`
  border-top-color: ${props => props.variant === 'q' ? colors.templates.reading.border : colors.neutral.std};
  background: ${props => props.variant === 'q' ? colors.templates.reading.background : colors.neutral.lighter};
  .middle-data-heading {
    padding-top: 15px;
  }
  .bottom-data-heading {
    height: 40px;
  }
`;


const popover = (gradingTemplate) => (
  <Popover className="scores-popover">
    <StickyTable id="reading-scores-weight">
      <Row>
        <Cell>Weight for correctness</Cell>
        <Cell>{gradingTemplate.humanCorrectnessWeight} of question's point value</Cell>
      </Row>
      <Row>
        <Cell>Weight for completion</Cell>
        <Cell>{gradingTemplate.humanCompletionWeight} of question's point value</Cell>
      </Row>
      <Row>
        <Cell>Total</Cell> 
{'fraction_non_alphanumeric': 0.14193548387096774, 'fraction_numerical': 0.011059907834101382, 'mean_word_length': 4.047674418604651, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 42, 'https://': 2, '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': '251467', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1259, 'n_words': 303}