<commit_before>'use strict';

var React = require('react');
var exportInternalState = require('./exportInternalState');

const getConfig = function () {
	const config = require('../decorators').myDecoratorsConfig;
	return config;
};

module.exports = function (WrappedComponent) {
	let STHOC = class STHOC extends WrappedComponent {
		constructor(...args) {
			var _temp;

			return _temp = super(...args), this.name = WrappedComponent.displayName || WrappedComponent.name, this.stateTracker = getConfig().showStateTracker, _temp;
		}

		componentDidMount() {
			if (!this.stateTracker) {
				delete this.__proto__.componentWillUnmount;
				delete this.__proto__.componentDidUpdate;
			}
			if (super.componentDidMount) super.componentDidMount();<commit_msg>need to keep getConfig in HOCs, reverting back changes 2<commit_after>'use strict';

var React = require('react');
var exportInternalState = require('./exportInternalState');

const getConfig = function () {
	const config = require('../decorators').myDecoratorsConfig;
	return config;
};

module.exports = function (WrappedComponent) {
	let STHOC = class STHOC extends WrappedComponent {
		constructor(...args) {
			var _temp;

			return _temp = super(...args), this.name = WrappedComponent.displayName || WrappedComponent.name, this.showStateTracker = getConfig().showStateTracker, _temp;
		}

		componentDidMount() {
			if (!this.showStateTracker) {
				delete this.__proto__.componentWillUnmount;
				delete this.__proto__.componentDidUpdate;
			}
			if (super.componentDidMount) super.componentDidMount();
{'fraction_non_alphanumeric': 0.12188895979578813, 'fraction_numerical': 0.0006381620931716656, 'mean_word_length': 4.894736842105263, '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': '103103', 'n_tokens_mistral': 486, 'n_tokens_neox': 442, 'n_words': 102}