<commit_before>import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Form, Grid, Icon, Header } from 'semantic-ui-react';
import { changeListingField, uploadListingImage,  } from '../../../actions';
import { ListingTitle } from './AddListingComponents/ListingTitle';
import ListingImage from './AddListingComponents/ListingImage';
import { ListingJobTypes } from './AddListingComponents/ListingJobTypes';
import { ListingBody } from './AddListingComponents/ListingBody';
import ListingDisplayImages from './AddListingComponents/ListingDisplayImages';

class AddListing extends Component {
  constructor(props) {
    super(props);
    this.onChange = this.onChange.bind(this);
    this.onClick = this.onClick.bind(this);
    this.onSubmit = this.onSubmit.bind(this);
  }

  onChange(e) {
    this.props.dispatch(changeListingField(e.target.name, e.target.value));
  }

  onClick() {
    this.props.dispatch(uploadListingImage(this.props.listingForm.image));
    this.props.dispatch(changeListingField('image', ''));
  }<commit_msg>remove extra comma in AddListing<commit_after>import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Form, Grid, Icon, Header } from 'semantic-ui-react';
import { changeListingField, uploadListingImage } from '../../../actions';
import { ListingTitle } from './AddListingComponents/ListingTitle';
import ListingImage from './AddListingComponents/ListingImage';
import { ListingJobTypes } from './AddListingComponents/ListingJobTypes';
import { ListingBody } from './AddListingComponents/ListingBody';
import ListingDisplayImages from './AddListingComponents/ListingDisplayImages';

class AddListing extends Component {
  constructor(props) {
    super(props);
    this.onChange = this.onChange.bind(this);
    this.onClick = this.onClick.bind(this);
    this.onSubmit = this.onSubmit.bind(this);
  }

  onChange(e) {
    this.props.dispatch(changeListingField(e.target.name, e.target.value));
  }

  onClick() {
    this.props.dispatch(uploadListingImage(this.props.listingForm.image));
    this.props.dispatch(changeListingField('image', ''));
  }
{'fraction_non_alphanumeric': 0.13727315030246626, 'fraction_numerical': 0.0, 'mean_word_length': 5.03932584269663, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '672799', 'n_tokens_mistral': 642, 'n_tokens_neox': 639, 'n_words': 122}