<commit_before>import assets from '../../../public/assets/manifest.json';

const createAppScript = () => `<script type="text/javascript" charset="utf-8" src="/assets/${assets['app.js']}"></script>`;

const createTrackingScript = () => GOOGLE_ANALYTICS_ID ? createAnalyticsSnippet(process.env.GOOGLE_ANALYTICS_ID) : '';

const createAnalyticsSnippet = id =>
  `<style>.async-hide { opacity: 0 !important} </style>
<script>(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};<commit_msg>fixed google analytics<commit_after>import assets from '../../../public/assets/manifest.json';

const createAppScript = () => `<script type="text/javascript" charset="utf-8" src="/assets/${assets['app.js']}"></script>`;

const createTrackingScript = () => process.env.GOOGLE_ANALYTICS_ID ? createAnalyticsSnippet(process.env.GOOGLE_ANALYTICS_ID) : '';

const createAnalyticsSnippet = id =>
  `<style>.async-hide { opacity: 0 !important} </style>
<script>(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;
h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};
{'fraction_non_alphanumeric': 0.22317596566523606, 'fraction_numerical': 0.005150214592274678, 'mean_word_length': 6.825503355704698, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, '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': '110727', 'n_tokens_mistral': 429, 'n_tokens_neox': 412, 'n_words': 55}