<commit_before>import React from 'react';
import Helmet from 'react-helmet';
import styles from './styles';

function calculateViewportFromWindow() {
  if (window.innerWidth >= 544) return 'sm';
  if (window.innerWidth >= 768) return 'md';
  if (window.innerWidth >= 992) return 'lg';
  if (window.innerWidth >= 1200) return 'xl';
  return'xs';
}

function renderAugmentedChildren(props) {
  return React.Children.map(props.children, (child) => {
    if (!child) return null;<commit_msg>Disable viewport calculation in case of server side render<commit_after>import React from 'react';
import Helmet from 'react-helmet';
import styles from './styles';

function calculateViewportFromWindow() {
  if (typeof window !== 'undefined') {
    if (window.innerWidth >= 544) return 'sm';
    if (window.innerWidth >= 768) return 'md';
    if (window.innerWidth >= 992) return 'lg';
    if (window.innerWidth >= 1200) return 'xl';
    return'xs';
  } else {
    return null;
  }
}

function renderAugmentedChildren(props) {
  return React.Children.map(props.children, (child) => {
    if (!child) return null;
{'fraction_non_alphanumeric': 0.14, 'fraction_numerical': 0.023636363636363636, 'mean_word_length': 4.477611940298507, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1994371', 'n_tokens_mistral': 358, 'n_tokens_neox': 330, 'n_words': 102}