<commit_before>// @flow

import * as React from 'react'
import {Platform} from 'react-native'
import glamorous from 'glamorous-native'
import {SelectableText} from './selectable'
import {iOSUIKit, material} from 'react-native-typography'

export const Header = glamorous(SelectableText)({
  marginTop: 8,
  marginBottom: 4,
})

const h1 = {
  ...Platform.select({
    ios: iOSUIKit.largeTitleEmphasizedObject,
    android: material.headlineObject,
  }),
}

const h2 = {
  ...Platform.select({
    ios: iOSUIKit.title3EmphasizedObject,
    android: material.titleObject,
  }),
}

const h3 = {
  ...Platform.select({
    ios: iOSUIKit.title3Object,
    android: material.subheadingObject,
  }),
}

const h4 = {
  ...Platform.select({
    ios: iOSUIKit.subheadObject,
    android: material.buttonObject,
  }),
}

export const Heading = (props: any) => {
  switch (props.level) {
    case 1:
      return <Heading style={h1}>{props.children}</Heading>
    case 2:
      return <Heading style={h2}>{props.children}</H2>
    case 3:
      return <Heading style={h3}>{props.children}</H3>
    case 4:
    case 5:
    case 6:<commit_msg>fix mistaken jsx closing tags<commit_after>// @flow

import * as React from 'react'
import {Platform} from 'react-native'
import glamorous from 'glamorous-native'
import {SelectableText} from './selectable'
import {iOSUIKit, material} from 'react-native-typography'

export const Header = glamorous(SelectableText)({
  marginTop: 8,
  marginBottom: 4,
})

const h1 = {
  ...Platform.select({
    ios: iOSUIKit.largeTitleEmphasizedObject,
    android: material.headlineObject,
  }),
}

const h2 = {
  ...Platform.select({
    ios: iOSUIKit.title3EmphasizedObject,
    android: material.titleObject,
  }),
}

const h3 = {
  ...Platform.select({
    ios: iOSUIKit.title3Object,
    android: material.subheadingObject,
  }),
}

const h4 = {
  ...Platform.select({
    ios: iOSUIKit.subheadObject,
    android: material.buttonObject,
  }),
}

export const Heading = (props: any) => {
  switch (props.level) {
    case 1:
      return <Heading style={h1}>{props.children}</Heading>
    case 2:
      return <Heading style={h2}>{props.children}</Heading>
    case 3:
      return <Heading style={h3}>{props.children}</Heading>
    case 4:
    case 5:
    case 6:
{'fraction_non_alphanumeric': 0.14273204903677758, 'fraction_numerical': 0.01576182136602452, 'mean_word_length': 3.4891944990176817, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '6949900', 'n_tokens_mistral': 800, 'n_tokens_neox': 773, 'n_words': 179}