<commit_before>// @flow weak

const defaultConstants = {
  fontFamily: '"Roboto","Helvetica","Arial",sans-serif',
  fontSize: 14,
  fontWeightLight: 300,
  fontWeightNormal: 400,
  fontWeightMedium: 500,
};

export default function createTypography(palette, constants = defaultConstants) {
  return {
    ...constants,
    display4: {
      fontSize: 112,
      fontWeight: constants.fontWeightLight,
      fontFamily: constants.fontFamily,
      margin: '0.1em 0 0.2em',
    },
    display3: {
      fontSize: 56,
      fontWeight: constants.fontWeightNormal,
      fontFamily: constants.fontFamily,
      margin: '0.1em 0 0.2em',
    },
    display2: {
      fontSize: 45,
      fontWeight: constants.fontWeightNormal,
      fontFamily: constants.fontFamily,
      margin: '0.1em 0 0.2em',
    },
    display1: {
      fontSize: 34,
      fontWeight: constants.fontWeightNormal,
      fontFamily: constants.fontFamily,
      margin: '0.1em 0 0.2em',
    },
    headline: {
      fontSize: 24,
      fontWeight: constants.fontWeightNormal,
      fontFamily: constants.fontFamily,
      margin: '0.1em 0 0.2em',
    },
    title: {
      fontSize: 20,
      fontWeight: constants.fontWeightMedium,
      fontFamily: constants.fontFamily,
    },
    subheading: {
      fontSize: 16,
      fontWeight: constants.fontWeightNormal,
      fontFamily: constants.fontFamily,
    },
    body2: {
      fontSize: 14,
      fontWeight: constants.fontWeightMedium,
      fontFamily: constants.fontFamily,
    },
    body1: {
      fontSize: 14,
      fontWeight: constants.fontWeightNormal,
      fontFamily: constants.fontFamily,
    },
    caption: {
      fontSize: 12,
      fontWeight: constants.fontWeightNormal,
      fontFamily: constants.fontFamily,
      color: palette.text.secondary,
    },
    materialIcon: {
      fontFamily: 'Material Icons',
      fontWeight: 'normal',
      fontStyle: 'normal',
      fontSize: 24,
      display: 'inline-block',
      lineHeight: 1,<commit_msg>[style] use fontWeightRegular instead of fontWeightNormal as in the spec<commit_after>// @flow weak

const defaultConstants = {
  fontFamily: '"Roboto","Helvetica","Arial",sans-serif',
  fontSize: 14,
  fontWeightLight: 300,
  fontWeightRegular: 400,
  fontWeightMedium: 500,
};

export default function createTypography(palette, constants = defaultConstants) {
  return {
    ...constants,
    display4: {
      fontSize: 112,
      fontWeight: constants.fontWeightLight,
      fontFamily: constants.fontFamily,
      margin: '0.1em 0 0.2em',
    },
    display3: {
      fontSize: 56,
      fontWeight: constants.fontWeightRegular,
      fontFamily: constants.fontFamily,
      margin: '0.1em 0 0.2em',
    },
    display2: {
      fontSize: 45,
      fontWeight: constants.fontWeightRegular,
      fontFamily: constants.fontFamily,
      margin: '0.1em 0 0.2em',
    },
    display1: {
      fontSize: 34,
      fontWeight: constants.fontWeightRegular,
      fontFamily: constants.fontFamily,
      margin: '0.1em 0 0.2em',
    },
    headline: {
      fontSize: 24,
      fontWeight: constants.fontWeightRegular,
      fontFamily: constants.fontFamily,
      margin: '0.1em 0 0.2em',
    },
    title: {
      fontSize: 20,
      fontWeight: constants.fontWeightMedium,
      fontFamily: constants.fontFamily,
    },
    subheading: {
      fontSize: 16,
      fontWeight: constants.fontWeightRegular,
      fontFamily: constants.fontFamily,
    },
    body2: {
      fontSize: 14,
      fontWeight: constants.fontWeightMedium,
      fontFamily: constants.fontFamily,
    },
    body1: {
      fontSize: 14,
      fontWeight: constants.fontWeightRegular,
      fontFamily: constants.fontFamily,
    },
    caption: {
      fontSize: 12,
      fontWeight: constants.fontWeightRegular,
      fontFamily: constants.fontFamily,
      color: palette.text.secondary,
    },
    materialIcon: {
      fontFamily: 'Material Icons',
      fontWeight: 'normal',
      fontStyle: 'normal',
      fontSize: 24,
      display: 'inline-block',
      lineHeight: 1,
{'fraction_non_alphanumeric': 0.10888393961890622, 'fraction_numerical': 0.032665181885671864, 'mean_word_length': 2.6546112115732368, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5291556', 'n_tokens_mistral': 1343, 'n_tokens_neox': 1232, 'n_words': 266}