<commit_before>import React from 'react';

import { Link } from 'react-router-dom'
import { Button, Divider, Header, Popup, Segment } from 'semantic-ui-react'
import MarkdownViewer from '../../../utils/MarkdownViewer';
import PostControls from './controls'
import PostForm from './form'
import PostFormHeader from './form/header'
import PlatformLink from '../../../utils/link/platform'
import TimeAgo from 'react-timeago'

export default class PostContent extends React.Component {

  handleResponding = (e) => {
    this.setState({
      responding: (this.state && this.state.responding) ? !this.state.responding : true,
    })
  }

  handleNewPost = (id) => {
    this.handleResponding()
    this.props.scrollToPost(id)
  }

  render() {
    let post = this.props.content,
        postContent = false,
        quote = this.props.quote,
        title = false,
        formHeader = (
          <PostFormHeader
            title='Leave a Reply'
            subtitle=''
            />
        ),
        responding = (this.state && this.state.responding) ? this.state.responding : false,
        postForm = false,
        postButton = (
          <Popup
            trigger={
              <Button floated='right'>
                <i className={"left quote icon"}></i>
                Leave a Reply
              </Button>
            }
            position='bottom center'
            inverted
            content='You must be logged in to post.'
            basic
          />
        )<commit_msg>Don't scroll to new post once created<commit_after>import React from 'react';

import { Link } from 'react-router-dom'
import { Button, Divider, Header, Popup, Segment } from 'semantic-ui-react'
import MarkdownViewer from '../../../utils/MarkdownViewer';
import PostControls from './controls'
import PostForm from './form'
import PostFormHeader from './form/header'
import PlatformLink from '../../../utils/link/platform'
import TimeAgo from 'react-timeago'

export default class PostContent extends React.Component {

  handleResponding = (e) => {
    this.setState({
      responding: (this.state && this.state.responding) ? !this.state.responding : true,
    })
  }

  handleNewPost = (id) => {
    this.handleResponding();
  }

  render() {
    let post = this.props.content,
        postContent = false,
        quote = this.props.quote,
        title = false,
        formHeader = (
          <PostFormHeader
            title='Leave a Reply'
            subtitle=''
            />
        ),
        responding = (this.state && this.state.responding) ? this.state.responding : false,
        postForm = false,
        postButton = (
          <Popup
            trigger={
              <Button floated='right'>
                <i className={"left quote icon"}></i>
                Leave a Reply
              </Button>
            }
            position='bottom center'
            inverted
            content='You must be logged in to post.'
            basic
          />
        )
{'fraction_non_alphanumeric': 0.12177985948477751, 'fraction_numerical': 0.0, 'mean_word_length': 1.9429133858267718, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, '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': '528623', 'n_tokens_mistral': 821, 'n_tokens_neox': 798, 'n_words': 215}