<commit_before>import React from 'react'
import PropTypes from 'prop-types'
import { Box, Text } from 'rebass'
import Highlight, { defaultProps } from 'prism-react-renderer'
import theme from 'lowmess-prism'
import { blockShape } from '../markdownStyles'

const LineNumber = ({ children }) => (
  <Text
    as="span"
    sx={{
      display: 'inline-block',
      width: '1.75em',
      marginRight: 3,
      paddingRight: 2,
      textAlign: 'right',
      color: 'grays.9',
      userSelect: 'none',
    }}
  >
    {children}
  </Text>
)

LineNumber.propTypes = {
  children: PropTypes.node.isRequired,
}

const Code = ({ className: languageClass, children, ...props }) => {
  const languagePrefix = 'language-'
  const language = languageClass
    .split(' ')
    .find(c => c.indexOf(languagePrefix !== -1))<commit_msg>:lipstick: hide code block line numbers on small viewports<commit_after>import React from 'react'
import PropTypes from 'prop-types'
import { Box, Text } from 'rebass'
import Highlight, { defaultProps } from 'prism-react-renderer'
import theme from 'lowmess-prism'
import { blockShape } from '../markdownStyles'

const LineNumber = ({ children }) => (
  <Text
    as="span"
    sx={{
      display: ['none', 'inline-block'],
      width: '1.75em',
      marginRight: 3,
      paddingRight: 2,
      textAlign: 'right',
      color: 'grays.9',
      userSelect: 'none',
    }}
  >
    {children}
  </Text>
)

LineNumber.propTypes = {
  children: PropTypes.node.isRequired,
}

const Code = ({ className: languageClass, children, ...props }) => {
  const languagePrefix = 'language-'
  const language = languageClass
    .split(' ')
    .find(c => c.indexOf(languagePrefix !== -1))
{'fraction_non_alphanumeric': 0.15108759553204, 'fraction_numerical': 0.00823045267489712, 'mean_word_length': 3.2338308457711444, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '4434685', 'n_tokens_mistral': 542, 'n_tokens_neox': 536, 'n_words': 142}