<commit_before>import React, { Component } from 'react';
import {
  Grid,
  Header,
} from 'semantic-ui-react';
import {
  Redirect,
  Prompt,
  Link
} from 'react-router-dom';

// Logic
import { getSNAPBenefits } from '../programs/federal/snap';
import { getHousingBenefit } from '../programs/state/massachusetts/housing';

// Data
import { clientList } from '../config/dummyClients';

// Our Components
import AlertSidebar from '../AlertSidebar'
import { BenefitsTable } from '../forms/BenefitsTable';
import { CurrentIncomeStep } from '../forms/currentIncome';
import { CurrentExpensesStep } from '../forms/currentExpenses';
import { FutureIncomeStep } from '../forms/futureIncome';
import { HouseholdStep } from '../forms/Household';
import { CurrentBenefitsStep } from '../forms/current-benefits';
import StepBar from '../components/StepBar'

class VisitPage extends Component {
  constructor(props) {
    super(props);

    const clientInfo = clientList.find( client => {
      return client.clientId === parseInt(this.props.match.params.clientId, 10);
    });

    this.state = {
        clientInfo: clientInfo,
        visitId: this.props.match.params.visitId,
        currentStep: 1,
        isBlocking: true,
        redirect: false,
        client : {
          hasSnap: false,
          hasHousing: false,
          snapAlert: 'good',
          housingAlert: 'good',
          currentHousehold: [
            { age: 30, role: 'head', disabled: false, required: true }
          ],
          futureHousehold: [
            { age: 30, role: 'head', disabled: false, required: true }
          ],
          currentHouseholdSize: 1,
          currentHomeless: false,
          currentHomeowner: false,
          currentEarnedIncomeMonthly: 0,
          currentTAFDCMonthly: 0,
          currentSSIMonthly: 0,
          currentSSDIMonthly: 0,
          currentChildSupportInMonthly: 0,
          currentUnemploymentMonthly: 0,
          currentWorkersCompMonthly: 0,
          currentPensionMonthly: 0,
          currentSocialSecurityMonthly: 0,
          currentAlimonyMonthly: 0,
          currentOtherIncomeMonthly: 0,
          currentUnearnedIncomeMonthly: 0,
          futureEarnedIncomeMonthly: 0,
          futureUnearnedIncomeMonthly: 0,
          currentShelter: 'homeless',<commit_msg>Cleans up old client props<commit_after>import React, { Component } from 'react';
import {
  Grid,
  Header,
} from 'semantic-ui-react';
import {
  Redirect,
  Prompt,
  Link
} from 'react-router-dom';

// Logic
import { getSNAPBenefits } from '../programs/federal/snap';
import { getHousingBenefit } from '../programs/state/massachusetts/housing';

// Data
import { clientList } from '../config/dummyClients';

// Our Components
import AlertSidebar from '../AlertSidebar'
import { BenefitsTable } from '../forms/BenefitsTable';
import { CurrentIncomeStep } from '../forms/currentIncome';
import { CurrentExpensesStep } from '../forms/currentExpenses';
import { FutureIncomeStep } from '../forms/futureIncome';
import { HouseholdStep } from '../forms/Household';
import { CurrentBenefitsStep } from '../forms/current-benefits';
import StepBar from '../components/StepBar'

class VisitPage extends Component {
  constructor(props) {
    super(props);

    const clientInfo = clientList.find( client => {
      return client.clientId === parseInt(this.props.match.params.clientId, 10);
    });

    this.state = {
        clientInfo: clientInfo,
        visitId: this.props.match.params.visitId,
        currentStep: 1,
        isBlocking: true,
        redirect: false,
        client : {
          hasSnap: false,
          hasHousing: false,
          snapAlert: 'good',
          housingAlert: 'good',
          currentHousehold: [
            { age: 30, role: 'head', disabled: false, required: true }
          ],
          futureHousehold: [
            { age: 30, role: 'head', disabled: false, required: true }
          ],
          currentHomeless: false,
          currentHomeowner: false,
          currentEarnedIncomeMonthly: 0,
          currentTAFDCMonthly: 0,
          currentSSIMonthly: 0,
          currentSSDIMonthly: 0,
          currentChildSupportInMonthly: 0,
          currentUnemploymentMonthly: 0,
          currentWorkersCompMonthly: 0,
          currentPensionMonthly: 0,
          currentSocialSecurityMonthly: 0,
          currentAlimonyMonthly: 0,
          currentOtherIncomeMonthly: 0,
          currentUnearnedIncomeMonthly: 0,
          futureEarnedIncomeMonthly: 0,
          futureUnearnedIncomeMonthly: 0,
          currentShelter: 'homeless',
{'fraction_non_alphanumeric': 0.11125654450261781, 'fraction_numerical': 0.009380453752181502, 'mean_word_length': 2.6187845303867405, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3683598', 'n_tokens_mistral': 1379, 'n_tokens_neox': 1320, 'n_words': 305}