<commit_before>/* @flow */

export default function({ types: t }: { types: Object }) {
  const classBodyVisitor = {
    ClassMethod(path: Object) {
      if (path.node.key.name === 'render') {
        path.node.body.body.unshift(
          t.expressionStatement(
            t.assignmentExpression('=',
              t.memberExpression(
                t.identifier('React'),
                t.identifier('createElement')
              ),
              t.identifier('this.fancyElement.bind(this)')
            )
          )
        )
      }
    }
  }

  return {
    visitor: {
      ClassExpression(path: Object, state: Object) {
        const node = path.node
        if (!node.decorators || !node.decorators.length) {
          return
        }
        console.log('test')
        // -- Validate if class is what we're looking for
        // Default to @style
        const decoratorName = state.opts.decoratorName || 'style'
        const isMotionStyle = node.decorators.some(item => {
          if (!item.expression) {
            return false
          }
          if (item.expression.type === 'Identifier' && item.expression.name === decoratorName) {
            return true
          }
          if (
            t.isCallExpression(item.expression) && t.isMemberExpression(item.expression.callee) &&<commit_msg>:fire: remove log<commit_after>/* @flow */

export default function({ types: t }: { types: Object }) {
  const classBodyVisitor = {
    ClassMethod(path: Object) {
      if (path.node.key.name === 'render') {
        path.node.body.body.unshift(
          t.expressionStatement(
            t.assignmentExpression('=',
              t.memberExpression(
                t.identifier('React'),
                t.identifier('createElement')
              ),
              t.identifier('this.fancyElement.bind(this)')
            )
          )
        )
      }
    }
  }

  return {
    visitor: {
      ClassExpression(path: Object, state: Object) {
        const node = path.node
        if (!node.decorators || !node.decorators.length) {
          return
        }

        // -- Validate if class is what we're looking for
        // Default to @style
        const decoratorName = state.opts.decoratorName || 'style'
        const isMotionStyle = node.decorators.some(item => {
          if (!item.expression) {
            return false
          }
          if (item.expression.type === 'Identifier' && item.expression.name === decoratorName) {
            return true
          }
          if (
            t.isCallExpression(item.expression) && t.isMemberExpression(item.expression.callee) &&
{'fraction_non_alphanumeric': 0.12495223538402751, 'fraction_numerical': 0.0, 'mean_word_length': 1.7214137214137215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6516692', 'n_tokens_mistral': 709, 'n_tokens_neox': 703, 'n_words': 139}