<commit_before>import React from 'react'
import n from '../funs/networking'
import d from '../funs/dynamic'
import cn from 'classnames'
import { CirclePicker } from 'react-color'

const CommunityBlock = d(import('../els/communityBlock'))
const SVG = d(import('../els/svg'))

export default class Comunity extends React.Component {
  constructor(props) {
    super()
    this.state = {
      canShow: false,
      inviteLink: undefined,
      hasError: false,
      showInfo: false,
      blocks: [],
      showBlockCreator: true,
      blockCratorBackgroundImage: false,
      blockCreatorErrors: [],
      blockCreatorFirstFetch: false,
      blockCreatorData: {
        "text": "Example text",
        "background": {
          "text": "Text",
          "color": "#c73535",
          "image": ""
        },
        "link": {
          "url": "https://www.example.com",
          "text": ""
        },
        "info": "",
        "requirements": []
      },
    }
    this.blockCreatorNewChecking = false
    this.blockCreatorNeedReCheck = false
  }
  componentDidUpdate(oldProps, oldState) {
    if (oldState.blockCreatorData == this.state.blockCreatorData) {
      return<commit_msg>Fixed init var state<commit_after>import React from 'react'
import n from '../funs/networking'
import d from '../funs/dynamic'
import cn from 'classnames'
import { CirclePicker } from 'react-color'

const CommunityBlock = d(import('../els/communityBlock'))
const SVG = d(import('../els/svg'))

export default class Comunity extends React.Component {
  constructor(props) {
    super()
    this.state = {
      canShow: false,
      inviteLink: undefined,
      hasError: false,
      showInfo: false,
      blocks: [],
      showBlockCreator: false,
      blockCratorBackgroundImage: false,
      blockCreatorErrors: [],
      blockCreatorFirstFetch: false,
      blockCreatorData: {
        "text": "Example text",
        "background": {
          "text": "Text",
          "color": "#c73535",
          "image": ""
        },
        "link": {
          "url": "https://www.example.com",
          "text": ""
        },
        "info": "",
        "requirements": []
      },
    }
    this.blockCreatorNewChecking = false
    this.blockCreatorNeedReCheck = false
  }
  componentDidUpdate(oldProps, oldState) {
    if (oldState.blockCreatorData == this.state.blockCreatorData) {
      return
{'fraction_non_alphanumeric': 0.1369747899159664, 'fraction_numerical': 0.004201680672268907, 'mean_word_length': 2.4708454810495626, 'pattern_counts': {'":': 20, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '7371152', 'n_tokens_mistral': 710, 'n_tokens_neox': 703, 'n_words': 156}