<commit_before>/* global ROC_PATH */

import React from 'react';
import Helmet from 'react-helmet';

import { rocConfig } from './universal-config';

// eslint-disable-next-line
export default class Header extends React.Component {
    render() {
        const path = ROC_PATH !== '/' ? ROC_PATH + '/' : ROC_PATH; // eslint-disable-line
        const base = rocConfig.runtime.head.base.href && path ? {
            ...rocConfig.runtime.head.base,
            href: rocConfig.runtime.head.base.href.replace(/ROC_PATH/, path),
        } : {};

        return (
            <Helmet
                {
                    ...{
                        defaultTitle: rocConfig.runtime.applicationName,
                        ...rocConfig.runtime.head,
                        base,
                    }
                }
            />
        );
    }
}<commit_msg>Changed the default behavior for base tag, not including by default<commit_after>/* global ROC_PATH */

import React from 'react';
import Helmet from 'react-helmet';

import { rocConfig } from './universal-config';

// eslint-disable-next-line
export default class Header extends React.Component {
    render() {
        const path = ROC_PATH === '/' ? '' : ROC_PATH + '/'; // eslint-disable-line
        const base = rocConfig.runtime.head.base.href ? {
            ...rocConfig.runtime.head.base,
            href: rocConfig.runtime.head.base.href.replace(/^ROC_PATH$/, path),
        } : {};

        return (
            <Helmet
                {
                    ...{
                        defaultTitle: rocConfig.runtime.applicationName,
                        ...rocConfig.runtime.head,
                        base,
                    }
                }
            />
        );
    }
}
{'fraction_non_alphanumeric': 0.12528344671201813, 'fraction_numerical': 0.0, 'mean_word_length': 1.407912687585266, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2765623', 'n_tokens_mistral': 486, 'n_tokens_neox': 459, 'n_words': 94}