<commit_before>import config from '../constants/config';

function getLulumiExtUrl(relativeUrl: string): string {
  return `${config.lulumiPagesCustomProtocol}${relativeUrl}`;
}

const urlResource = {
  aboutUrls(url: string): string {
    switch (url) {
      case 'about:about':
        return getLulumiExtUrl('about/#/');
      case 'about:lulumi':
        return getLulumiExtUrl('about/#/lulumi');
      case 'about:preferences':
        return getLulumiExtUrl('about/#/preferences');
      case 'about:downloads':
        return getLulumiExtUrl('about/#/downloads');
      case 'about:history':
        return getLulumiExtUrl('about/#/history');
      case 'about:extensions':
        return getLulumiExtUrl('about/#/extensions');
      case 'about:newtab':
        return getLulumiExtUrl('about/#/newtab');
      case 'about:blank':
        return url;
      default:
        return getLulumiExtUrl('about/#/');
    }
  },
};

export default urlResource;<commit_msg>add support of about:gpu<commit_after>import config from '../constants/config';

function getLulumiExtUrl(relativeUrl: string): string {
  return `${config.lulumiPagesCustomProtocol}${relativeUrl}`;
}

const urlResource = {
  aboutUrls(url: string): string {
    switch (url) {
      case 'about:about':
        return getLulumiExtUrl('about/#/');
      case 'about:blank':
        return url;
      case 'about:downloads':
        return getLulumiExtUrl('about/#/downloads');
      case 'about:extensions':
        return getLulumiExtUrl('about/#/extensions');
      case 'about:history':
        return getLulumiExtUrl('about/#/history');
      case 'about:lulumi':
        return getLulumiExtUrl('about/#/lulumi');
      case 'about:newtab':
        return getLulumiExtUrl('about/#/newtab');
      case 'about:preferences':
        return getLulumiExtUrl('about/#/preferences');
      case 'about:gpu':
        return 'chrome://gpu';
      default:
        return getLulumiExtUrl('about/#/');
    }
  },
};

export default urlResource;
{'fraction_non_alphanumeric': 0.14477611940298507, 'fraction_numerical': 0.0, 'mean_word_length': 3.207112970711297, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6628411', 'n_tokens_mistral': 612, 'n_tokens_neox': 616, 'n_words': 116}