<commit_before>// @flow
import { Component, createElement, PropTypes } from 'react'

import InlineStyle from './InlineStyle'
import type { RuleSet, Target } from '../types'
import { CHANNEL } from './ThemeProvider'

/* eslint-disable react/prefer-stateless-function */
class AbstractStyledNativeComponent extends Component {
  static isPrototypeOf: Function
  state: any
}

const createStyledNativeComponent = (target: Target, rules: RuleSet) => {
  /* Handle styled(OtherStyledNativeComponent) differently */
  const isStyledNativeComponent = AbstractStyledNativeComponent.isPrototypeOf(target)
  if (isStyledNativeComponent) {
    return createStyledNativeComponent(target.target, target.rules.concat(rules))
  }

  const inlineStyle = new InlineStyle(rules)

  class StyledNativeComponent extends AbstractStyledNativeComponent {<commit_msg>Update inheritance in StyleNativeComponent.js<commit_after>// @flow
import { Component, createElement, PropTypes } from 'react'

import InlineStyle from './InlineStyle'
import type { RuleSet, Target } from '../types'
import { CHANNEL } from './ThemeProvider'

/* eslint-disable react/prefer-stateless-function */
class AbstractStyledNativeComponent extends Component {
  static isPrototypeOf: Function
  state: any
}

const createStyledNativeComponent = (target: Target, rules: RuleSet, parent?: Target) => {
  /* Handle styled(OtherStyledNativeComponent) differently */
  const isStyledNativeComponent = AbstractStyledNativeComponent.isPrototypeOf(target)
  if (isStyledNativeComponent) {
    return createStyledNativeComponent(target.target, target.rules.concat(rules), target)
  }

  const inlineStyle = new InlineStyle(rules)
  const ParentComponent = parent || AbstractStyledNativeComponent

  class StyledNativeComponent extends ParentComponent {
{'fraction_non_alphanumeric': 0.09025069637883008, 'fraction_numerical': 0.0, 'mean_word_length': 5.854961832061068, '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': '5546133', 'n_tokens_mistral': 489, 'n_tokens_neox': 471, 'n_words': 126}