<commit_before>import React, {Component} from 'react';
import {Button} from 'react-bootstrap';
import AlertContainer from 'react-alert';


class Postform extends React.Component {
  constructor(props) {
    super(props);
    this.textInput = null;
    this.alertOptions = {
      offset: 14,
      position: 'top right',
      theme: 'light',
      time: 5000,
      transition: 'scale'
    };
  }


  showAlert(){
    msg.show('Post must be less than 200 characters.', {
      time: 2000,
      type: 'error',
      icon: <img src="../images/patgar.jpg" style={{width: 60, height: 60, borderRadius: 6 }} />
    });
  }

  handleClick() {
    console.log(this.textInput.value);
    let input = this.textInput.value;
    if (input.length <= 200) {
      this.props.updateMessageOnClick(input);
      this.textInput.value = null;
    } else {
      this.showAlert();
    }
  }

  render() {<commit_msg>Adds bigger font size to error message<commit_after>import React, {Component} from 'react';
import {Button} from 'react-bootstrap';
import AlertContainer from 'react-alert';


class Postform extends React.Component {
  constructor(props) {
    super(props);
    this.textInput = null;
    this.alertOptions = {
      offset: 14,
      position: 'top right',
      theme: 'light',
      time: 5000,
      transition: 'scale'
    };
  }


  showAlert(){
    msg.show(<h3>Post must be less than 200 characters.</h3>, {
      time: 3000,
      type: 'error',
      icon: <img src="../images/patgar.jpg" style={{width: 60, height: 60, borderRadius: 6}} />
    });
  }

  handleClick() {
    console.log(this.textInput.value);
    let input = this.textInput.value;
    if (input.length <= 200) {
      this.props.updateMessageOnClick(input);
      this.textInput.value = null;
    } else {
      this.showAlert();
    }
  }

  render() {
{'fraction_non_alphanumeric': 0.1458219552157291, 'fraction_numerical': 0.02403058438012015, 'mean_word_length': 2.716024340770791, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '607473', 'n_tokens_mistral': 625, 'n_tokens_neox': 571, 'n_words': 142}