<commit_before>import PropTypes from 'prop-types'
import * as React from 'react'
import components from '@artsy/reaction-force/dist/Components/Publishing'
import InfiniteScrollArticle from './InfiniteScrollArticle'
import { data as sd } from 'sharify'
import EditButton from 'desktop/apps/article2/components/EditButton'
import SuperArticleView from 'desktop/components/article/client/super_article.coffee'
import ArticleModel from 'desktop/models/article.coffee'
const { Article } = components

const NAVHEIGHT = '53px'

export default class App extends React.Component {
  static propTypes = {
    article: PropTypes.object,
    isSuper: PropTypes.bool,
    subscribed: PropTypes.bool,
    templates: PropTypes.object
  }

  componentDidMount () {
    if (this.props.isSuper) {
      new SuperArticleView({
        el: document.querySelector('body'),
        article: new ArticleModel(this.props.article)
      })
    }
  }

  renderArticle = () => {
    const article = this.props.article
    if (article.layout === 'standard' && !this.props.isSuper) {
      const emailSignupUrl = this.props.subscribed ? '' : `${sd.APP_URL}/signup/editorial`

      return (
        <InfiniteScrollArticle article={article} emailSignupUrl={emailSignupUrl} />
      )
    } else {
      const navHeight = this.props.isSuper ? '0px' : NAVHEIGHT

      return (
        <Article
          article={article}
          headerHeight={`calc(100vh - ${navHeight})`}
          marginTop={!article.hero_section ? '100' : '0'}
        />
      )
    }
  }

  render () {
    const {
      article,
      templates: {
        SuperArticleFooter,
        SuperArticleHeader
      }
    } = this.props
    return (
      <div>
        <div
          dangerouslySetInnerHTML={{
            __html: SuperArticleHeader
          }}
        />

        <EditButton channelId={article.channel_id} slug={article.slug} />
        {this.renderArticle()}

        <div
          dangerouslySetInnerHTML={{
            __html: SuperArticleFooter
          }}
        />

      </div>
    )
  }
}
<commit_msg>Use standard for check instead<commit_after>import PropTypes from 'prop-types'
import * as React from 'react'
import components from '@artsy/reaction-force/dist/Components/Publishing'
import InfiniteScrollArticle from './InfiniteScrollArticle'
import { data as sd } from 'sharify'
import EditButton from 'desktop/apps/article2/components/EditButton'
import SuperArticleView from 'desktop/components/article/client/super_article.coffee'
import ArticleModel from 'desktop/models/article.coffee'
const { Article } = components

const NAVHEIGHT = '53px'

export default class App extends React.Component {
  static propTypes = {
    article: PropTypes.object,
    isSuper: PropTypes.bool,
    subscribed: PropTypes.bool,
    templates: PropTypes.object
  }

  componentDidMount () {
    if (this.props.isSuper) {
      new SuperArticleView({
        el: document.querySelector('body'),
        article: new ArticleModel(this.props.article)
      })
    }
  }

  renderArticle = () => {
    const article = this.props.article
    if (article.layout === 'standard' && !this.props.isSuper) {
      const emailSignupUrl = this.props.subscribed ? '' : `${sd.APP_URL}/signup/editorial`

      return (
        <InfiniteScrollArticle article={article} emailSignupUrl={emailSignupUrl} />
      )
    } else {
      const navHeight = this.props.isSuper ? '0px' : NAVHEIGHT

      return (
        <Article
          article={article}
          headerHeight={`calc(100vh - ${navHeight})`}
          marginTop={article.layout === 'standard' ? '100' : '0'}
        />
      )
    }
  }

  render () {
    const {
      article,
      templates: {
        SuperArticleFooter,
        SuperArticleHeader
      }
    } = this.props
    return (
      <div>
        <div
          dangerouslySetInnerHTML={{
            __html: SuperArticleHeader
          }}
        />

        <EditButton channelId={article.channel_id} slug={article.slug} />
        {this.renderArticle()}

        <div
          dangerouslySetInnerHTML={{
            __html: SuperArticleFooter
          }}
        />

      </div>
    )
  }
}

{'fraction_non_alphanumeric': 0.11417606140561286, 'fraction_numerical': 0.005277044854881266, 'mean_word_length': 2.5012594458438286, 'pattern_counts': {'":': 0, '<': 17, '<?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': '4540407', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1201, 'n_words': 243}