<commit_before>// @flow
import type { OptionsType } from 'Types'
import gray from 'gray-percentage'
import isNumber from 'lodash/isNumber'
import isString from 'lodash/isString'

const CodePlugin = (): Function =>
({ adjustFontSizeTo, rhythm }, options: OptionsType) => {
  let blockMarginBottom
  if (isNumber(options.blockMarginBottom)) {
    blockMarginBottom = rhythm(options.blockMarginBottom)
  } else if (isString(options.blockMarginBottom)) {
    blockMarginBottom = options.blockMarginBottom
  } else {
    blockMarginBottom = rhythm(1)
  }
  return {
    'tt,code': {
      backgroundColor: 'rgba(0,0,0,0.04)',
      borderRadius: '3px',
      fontFamily: 'Consolas, "Liberation Mono", Menlo, Courier, monospace',
      padding: 0,
      paddingTop: '0.2em',
      paddingBottom: '0.2em',
    },
    pre: {
      background: gray(97),
      borderRadius: '3px',
      // Most JS syntax highlighters put code inside pre meaning we need to
      // reset the font-size for pre so 'pre code' isn't double-shrunk.
      fontSize: '1em',
      overflow: 'auto',
      padding: blockMarginBottom,
    },
    'pre code': {
      background: gray(97),
    },
    // Add space before and after code/tt elements.
    'code:before,code:after,tt:before,tt:after': {
      letterSpacing: '-0.2em',
      content: '"\u00A0"',<commit_msg>Add Inconsolata to front of code font stack<commit_after>// @flow
import type { OptionsType } from 'Types'
import gray from 'gray-percentage'
import isNumber from 'lodash/isNumber'
import isString from 'lodash/isString'

const CodePlugin = (): Function =>
({ adjustFontSizeTo, rhythm }, options: OptionsType) => {
  let blockMarginBottom
  if (isNumber(options.blockMarginBottom)) {
    blockMarginBottom = rhythm(options.blockMarginBottom)
  } else if (isString(options.blockMarginBottom)) {
    blockMarginBottom = options.blockMarginBottom
  } else {
    blockMarginBottom = rhythm(1)
  }
  return {
    'tt,code': {
      backgroundColor: 'rgba(0,0,0,0.04)',
      borderRadius: '3px',
      fontFamily: '"Inconsolata",Consolas,"Liberation Mono",Menlo,Courier,monospace',
      padding: 0,
      paddingTop: '0.2em',
      paddingBottom: '0.2em',
    },
    pre: {
      background: gray(97),
      borderRadius: '3px',
      // Most JS syntax highlighters put code inside pre meaning we need to
      // reset the font-size for pre so 'pre code' isn't double-shrunk.
      fontSize: '1em',
      overflow: 'auto',
      padding: blockMarginBottom,
    },
    'pre code': {
      background: gray(97),
    },
    // Add space before and after code/tt elements.
    'code:before,code:after,tt:before,tt:after': {
      letterSpacing: '-0.2em',
      content: '"\u00A0"',
{'fraction_non_alphanumeric': 0.12971175166297116, 'fraction_numerical': 0.017738359201773836, 'mean_word_length': 3.269716088328076, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2357447', 'n_tokens_mistral': 874, 'n_tokens_neox': 868, 'n_words': 218}