<commit_before>import React, { Component } from "react";
import "./MembersView.css";
import Client from "../Client";
import MembersList from "./MembersList";
import ConfirmMessage from "./ConfirmMessage";

class MembersView extends Component {
  state = {
    members: [],
    updated: [],
    popup: {
      pop: false,
      msg: "",
      onYesClick: this.onYesClick,
    },
  }
  componentWillMount() {
    const members = Client.getMembers();
    this.setState({ members });
  }

  onFormSubmit(event) {
    event.preventDefault();
    const updated = this.state.updated.toString();
    const popup = {
      pop: true,
      msg: `Are you sure you want to change access for ${updated}`,
    }

    this.setState({ popup });
  }

  onInputChange(event) {<commit_msg>Changed toString method to join method for confirm message on MembersView<commit_after>import React, { Component } from "react";
import "./MembersView.css";
import Client from "../Client";
import MembersList from "./MembersList";
import ConfirmMessage from "./ConfirmMessage";

class MembersView extends Component {
  state = {
    members: [],
    updated: [],
    popup: {
      pop: false,
      msg: "",
      onYesClick: this.onYesClick,
    },
  }
  componentWillMount() {
    const members = Client.getMembers();
    this.setState({ members });
  }

  onFormSubmit(event) {
    event.preventDefault();
    const updated = this.state.updated.join(", ");
    const popup = {
      pop: true,
      msg: `Are you sure you want to change access for ${updated}`,
    }

    this.setState({ popup });
  }

  onInputChange(event) {
{'fraction_non_alphanumeric': 0.13545568039950062, 'fraction_numerical': 0.0, 'mean_word_length': 3.027638190954774, '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': '2215289', 'n_tokens_mistral': 461, 'n_tokens_neox': 456, 'n_words': 132}