<commit_before>import {CheckBox} from 'app/components/inputs';
import {SpinnerOverlay} from 'app/components/spinners';
import {conceptsApi} from 'app/services/swagger-fetch-clients';
import colors from 'app/styles/colors';
import {reactStyles, withCurrentWorkspace} from 'app/utils';
import {WorkspaceData} from 'app/utils/workspace-data';
import {SurveyAnswerResponse, SurveyQuestionsResponse} from 'generated/fetch';
import {Column} from 'primereact/column';
import {DataTable} from 'primereact/datatable';
import * as React from 'react';

interface SurveyDetails {
  question: SurveyQuestionsResponse;
  answer: Array<SurveyAnswerResponse>;
}

const style = reactStyles({
  questionHeader: {
    height: 24,
    color: colors.purple[0],
    fontFamily: 'Montserrat',
    fontSize: '20px',
    fontWeight: 600,
    lineHeight: '24px',
    paddingTop: '1rem',
    textAlign: 'left',
    borderBottomColor: colors.white,
    backgroundColor: colors.white
  },
  questionLabel: {
    height: 18,
    width: 76,
    color: colors.blue[8],
    fontFamily: 'Montserrat',
    fontSize: '14px',
    fontWeight: 600,
    lineHeight: '18px'
  },
  columnLabel: {
    color: colors.blue[8],
    fontFamily: 'Montserrat',
    fontSize: '16px',
    lineHeight: '19px',
    paddingTop: '0.3rem',
    paddingBottom: '0.3rem'
  }
});

interface Props {
  surveyName: string;
  workspace: WorkspaceData;
  surveySelected: Function;
}

interface State {
  answerLoading: Array<boolean>;
  expandedRows: Array<any>;
  loading: boolean;
  seeMyAnswers: Array<boolean>;
  selectedQuestions: Array<SurveyQuestionsResponse>;
  surveyList: Array<SurveyDetails>;
}

export const SurveyDetails = withCurrentWorkspace()(
  class extends React.Component<Props, State> {
    constructor(props) {<commit_msg>[No Ticket][Risk=no] Fix master colors (#2291)<commit_after>import {CheckBox} from 'app/components/inputs';
import {SpinnerOverlay} from 'app/components/spinners';
import {conceptsApi} from 'app/services/swagger-fetch-clients';
import colors from 'app/styles/colors';
import {reactStyles, withCurrentWorkspace} from 'app/utils';
import {WorkspaceData} from 'app/utils/workspace-data';
import {SurveyAnswerResponse, SurveyQuestionsResponse} from 'generated/fetch';
import {Column} from 'primereact/column';
import {DataTable} from 'primereact/datatable';
import * as React from 'react';

interface SurveyDetails {
  question: SurveyQuestionsResponse;
  answer: Array<SurveyAnswerResponse>;
}

const style = reactStyles({
  questionHeader: {
    height: 24,
    color: colors.primary,
    fontFamily: 'Montserrat',
    fontSize: '20px',
    fontWeight: 600,
    lineHeight: '24px',
    paddingTop: '1rem',
    textAlign: 'left',
    borderBottomColor: colors.white,
    backgroundColor: colors.white
  },
  questionLabel: {
    height: 18,
    width: 76,
    color: colors.primary,
    fontFamily: 'Montserrat',
    fontSize: '14px',
    fontWeight: 600,
    lineHeight: '18px'
  },
  columnLabel: {
    color: colors.primary,
    fontFamily: 'Montserrat',
    fontSize: '16px',
    lineHeight: '19px',
    paddingTop: '0.3rem',
    paddingBottom: '0.3rem'
  }
});

interface Props {
  surveyName: string;
  workspace: WorkspaceData;
  surveySelected: Function;
}

interface State {
  answerLoading: Array<boolean>;
  expandedRows: Array<any>;
  loading: boolean;
  seeMyAnswers: Array<boolean>;
  selectedQuestions: Array<SurveyQuestionsResponse>;
  surveyList: Array<SurveyDetails>;
}

export const SurveyDetails = withCurrentWorkspace()(
  class extends React.Component<Props, State> {
    constructor(props) {
{'fraction_non_alphanumeric': 0.12308549150654413, 'fraction_numerical': 0.018100807574491784, 'mean_word_length': 4.719745222929936, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '7132295', 'n_tokens_mistral': 1169, 'n_tokens_neox': 1134, 'n_words': 269}