<commit_before>import React from 'react'
import Pattern from './Pattern'

const Patterns = props => {
  const { fixtures, components } = props

  return (
    <div>
      {Object.keys(fixtures).map((fixture, i) => {
        return (
          <div key={i}>
            {fixtures[fixture].map((modifiers, i) => {
              const Component = components[fixture]
              const { header, props } = modifiers

              return (
                <Pattern
                  key={i}
                  header={header}>
                  <Component {...props} />
                </Pattern>
              )
            })}
          </div>
        )
      })}
    </div>
  )
}

export default Patterns<commit_msg>pass down notes and props as propsList to Pattern<commit_after>import React from 'react'
import Pattern from './Pattern'

const Patterns = props => {
  const { fixtures, components } = props

  return (
    <div>
      {Object.keys(fixtures).map((fixture, i) => {
        return (
          <div key={i}>
            {fixtures[fixture].map((modifiers, i) => {
              const Component = components[fixture]
              const { header, props, notes } = modifiers

              return (
                <Pattern
                  key={i}
                  header={header}
                  notes={notes}
                  propsList={props}
                  Component={Component}>
                </Pattern>
              )
            })}
          </div>
        )
      })}
    </div>
  )
}

export default Patterns
{'fraction_non_alphanumeric': 0.12077922077922078, 'fraction_numerical': 0.0, 'mean_word_length': 1.3277945619335347, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 22, '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': '7189621', 'n_tokens_mistral': 416, 'n_tokens_neox': 393, 'n_words': 95}