<commit_before>/* global next */
import React, { Component } from 'react'
import { hot } from 'react-hot-loader'

import shallowEquals from './shallow-equals'

class App extends Component {
  state = {
    hasError: null
  }

  componentDidCatch (error, info) {
    error.stack = `${error.stack}\n\n${info.componentStack}`
    next.renderError(error)
    this.setState({ hasError: true })
  }

  render () {
    if (this.state.hasError) return null

    const { Component, props, hash, router = {} } = this.props
    const url = {<commit_msg>Protect from error in stack augment<commit_after>/* global next */
import React, { Component } from 'react'
import { hot } from 'react-hot-loader'

import shallowEquals from './shallow-equals'

class App extends Component {
  state = {
    hasError: null
  }

  componentDidCatch (error, info) {
    try {
      error.stack = `${error.stack}\n\n${info.componentStack}`
    } catch (err) {
      /* NOP */
    }
    next.renderError(error)
    this.setState({ hasError: true })
  }

  render () {
    if (this.state.hasError) return null

    const { Component, props, hash, router = {} } = this.props
    const url = {
{'fraction_non_alphanumeric': 0.13793103448275862, 'fraction_numerical': 0.0, 'mean_word_length': 3.003448275862069, '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': '1109591', 'n_tokens_mistral': 366, 'n_tokens_neox': 365, 'n_words': 99}