<commit_before>import React, { Component } from 'react';
import {
  Button,
  Container,
  Divider,
  Grid,
  Header,
  Image,
  List,
  Menu,
  Segment,
  Visibility,
  Icon,
  Table,
  Form
} from 'semantic-ui-react';
import { Link, Redirect } from 'react-router-dom';
import FixedMenu from './fixedMenu';
import logo from './logo.png';
import { clientList } from './clientList';

class ClientIntakePage extends Component {

  state = {
    redirect: false,
    name: '',
    lastVisit: '',
    clientId: '',
    image: 'http://react.semantic-ui.com/assets/images/avatar/large/jenny.jpg',
    dob: '',
    zipCode: '',
    visits: [],  
  };

  hideFixedMenu = () => this.setState({ visible: false })
  showFixedMenu = () => this.setState({ visible: true })

  handleInputChange = (e, { name, value }) => this.setState({ [name]: value })

  handleFormSubmit = e => {
    alert('Placeholder. Will save the client and take you to the client detail page')
    this.setState({redirect:true});
    // Take the current state and create a new client in the database
  }

  render() {
    const { visible } = this.state<commit_msg>Removes new client intake alert. Issue #9, item 4.<commit_after>import React, { Component } from 'react';
import {
  Button,
  Container,
  Divider,
  Grid,
  Header,
  Image,
  List,
  Menu,
  Segment,
  Visibility,
  Icon,
  Table,
  Form
} from 'semantic-ui-react';
import { Link, Redirect } from 'react-router-dom';
import FixedMenu from './fixedMenu';
import logo from './logo.png';
import { clientList } from './clientList';

class ClientIntakePage extends Component {

  state = {
    redirect: false,
    name: '',
    lastVisit: '',
    clientId: '',
    image: 'http://react.semantic-ui.com/assets/images/avatar/large/jenny.jpg',
    dob: '',
    zipCode: '',
    visits: [],  
  };

  hideFixedMenu = () => this.setState({ visible: false })
  showFixedMenu = () => this.setState({ visible: true })

  handleInputChange = (e, { name, value }) => this.setState({ [name]: value })

  handleFormSubmit = e => {
    // alert('Placeholder. Will save the client and take you to the client detail page')
    this.setState({redirect:true});
    // Take the current state and create a new client in the database
  }

  render() {
    const { visible } = this.state
{'fraction_non_alphanumeric': 0.14759825327510917, 'fraction_numerical': 0.0008733624454148472, 'mean_word_length': 3.1806569343065694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '82844', 'n_tokens_mistral': 726, 'n_tokens_neox': 715, 'n_words': 207}