<commit_before>import _ from "lodash";
import React from "react";
import * as globals from "./globals";
import BarChart from "./barChart";

class ExploreTid extends React.Component {

  handleAgree() {
    this.props.onVoteClicked({
      tid: this.props.selectedComment.tid,
      vote: window.polisTypes.reactions.pull,
    });
  }
  handleDisagree() {
    this.props.onVoteClicked({
      tid: this.props.selectedComment.tid,
      vote: window.polisTypes.reactions.push,
    });
  }
  handlePass() {
    this.props.onVoteClicked({
      tid: this.props.selectedComment.tid,
      vote: window.polisTypes.reactions.pass,
    });
  }

  render() {

    let currentVote = null;
    if (this.props.selectedComment) {
      let selectedTid = this.props.selectedComment.tid;
      console.log('selectedTid',selectedTid);
      let voteForSelectedComment = _.find(this.props.votesByMe, (v) => {
        return v.tid === selectedTid;
      });
      console.log('this.props.votesByMe',this.props.votesByMe);


      console.log('voteForSelectedComment',voteForSelectedComment);

      currentVote = voteForSelectedComment && voteForSelectedComment.vote;
      console.log('currentVote',currentVote);
    }


    let agreeButton = (<button style={{
        border: "none",
        borderRadius: 3,
        backgroundColor: "green",
        color: "white",
        fontWeight: "bold",
        cursor: "pointer",
        padding: "10px 20px"
      }}
      onClick={this.handleAgree.bind(this)}>
      Agree
    </button>);

    let disagreeButton = (<button style={{
        border: "none",
        borderRadius: 3,
        backgroundColor: "red",
        color: "white",
        fontWeight: "bold",<commit_msg>remove logging<commit_after>import _ from "lodash";
import React from "react";
import * as globals from "./globals";
import BarChart from "./barChart";

class ExploreTid extends React.Component {

  handleAgree() {
    this.props.onVoteClicked({
      tid: this.props.selectedComment.tid,
      vote: window.polisTypes.reactions.pull,
    });
  }
  handleDisagree() {
    this.props.onVoteClicked({
      tid: this.props.selectedComment.tid,
      vote: window.polisTypes.reactions.push,
    });
  }
  handlePass() {
    this.props.onVoteClicked({
      tid: this.props.selectedComment.tid,
      vote: window.polisTypes.reactions.pass,
    });
  }

  render() {

    let currentVote = null;
    if (this.props.selectedComment) {
      let selectedTid = this.props.selectedComment.tid;
      let voteForSelectedComment = _.find(this.props.votesByMe, (v) => {
        return v.tid === selectedTid;
      });
      currentVote = voteForSelectedComment && voteForSelectedComment.vote;
    }

    let agreeButton = (<button style={{
        border: "none",
        borderRadius: 3,
        backgroundColor: "green",
        color: "white",
        fontWeight: "bold",
        cursor: "pointer",
        padding: "10px 20px"
      }}
      onClick={this.handleAgree.bind(this)}>
      Agree
    </button>);

    let disagreeButton = (<button style={{
        border: "none",
        borderRadius: 3,
        backgroundColor: "red",
        color: "white",
        fontWeight: "bold",
{'fraction_non_alphanumeric': 0.13257932767829092, 'fraction_numerical': 0.003770028275212064, 'mean_word_length': 2.685185185185185, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '98816', 'n_tokens_mistral': 1008, 'n_tokens_neox': 981, 'n_words': 190}