<commit_before>import React from "react";
import { connect } from "react-redux";
import Radium from "radium";
import _ from "lodash";
import Awesome from "react-fontawesome";
import {Link} from "react-router";
import MaterialTitlePanel from "./material-title-panel-sidebar";

const styles = {
  sidebar: {
    width: 256,
    height: "100%"
  },
  sidebarLink: {
    display: "block",
    padding: "16px 0px",
    color: "#757575",
    textDecoration: "none"
  },
  divider: {
    margin: "8px 0",
    height: 1,
    backgroundColor: "#757575"
  },
  content: {
    padding: "16px",
    height: "100%",
    backgroundColor: "white"
  }
};

@Radium
class SidebarContentConversation extends React.Component {

  handleClick() {
    if (this.props.onSidebarItemClicked) {
      this.props.onSidebarItemClicked();
    }
  }

  render() {
    return (
      <MaterialTitlePanel
        showHamburger={false}
        title={"Pol.is/"+this.props.conversation_id}
        style={this.props.style ? {...styles.sidebar, ...this.props.style} : styles.sidebar}>
        <div style={styles.content} onClick={this.handleClick.bind(this)}>
          <Link
            style={styles.sidebarLink}
            to={"/"}>
            <Awesome name="chevron-left"/>
            <span style={{marginLeft: 15}}> Back </span>
          </Link>
          <Link
            style={styles.sidebarLink}
            to={"/m/"+this.props.conversation_id}>
            <Awesome name="gears"/>
            <span style={{marginLeft: 10}}> Config </span>
          </Link>
          <Link
            style={styles.sidebarLink}
            to={"/m/"+this.props.conversation_id+"/live"}>
            <Awesome style={{color: "#5AB85A"}} name="circle"/>
            <span style={{marginLeft: 10}}> Live </span><commit_msg>back --> home<commit_after>import React from "react";
import { connect } from "react-redux";
import Radium from "radium";
import _ from "lodash";
import Awesome from "react-fontawesome";
import {Link} from "react-router";
import MaterialTitlePanel from "./material-title-panel-sidebar";

const styles = {
  sidebar: {
    width: 256,
    height: "100%"
  },
  sidebarLink: {
    display: "block",
    padding: "16px 0px",
    color: "#757575",
    textDecoration: "none"
  },
  divider: {
    margin: "8px 0",
    height: 1,
    backgroundColor: "#757575"
  },
  content: {
    padding: "16px",
    height: "100%",
    backgroundColor: "white"
  }
};

@Radium
class SidebarContentConversation extends React.Component {

  handleClick() {
    if (this.props.onSidebarItemClicked) {
      this.props.onSidebarItemClicked();
    }
  }

  render() {
    return (
      <MaterialTitlePanel
        showHamburger={false}
        title={"Pol.is/"+this.props.conversation_id}
        style={this.props.style ? {...styles.sidebar, ...this.props.style} : styles.sidebar}>
        <div style={styles.content} onClick={this.handleClick.bind(this)}>
          <Link
            style={styles.sidebarLink}
            to={"/"}>
            <Awesome name="chevron-left"/>
            <span style={{marginLeft: 15}}> Home </span>
          </Link>
          <Link
            style={styles.sidebarLink}
            to={"/m/"+this.props.conversation_id}>
            <Awesome name="gears"/>
            <span style={{marginLeft: 10}}> Config </span>
          </Link>
          <Link
            style={styles.sidebarLink}
            to={"/m/"+this.props.conversation_id+"/live"}>
            <Awesome style={{color: "#5AB85A"}} name="circle"/>
            <span style={{marginLeft: 10}}> Live </span>
{'fraction_non_alphanumeric': 0.1599439775910364, 'fraction_numerical': 0.021288515406162466, 'mean_word_length': 2.456921587608906, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 36, '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': '1207494', 'n_tokens_mistral': 1188, 'n_tokens_neox': 1123, 'n_words': 228}