<commit_before>import { KeycloakService } from 'keycloak-angular';

export function initializer(keycloak: KeycloakService): () => Promise<any> {
  return (): Promise<any> => {
    return new Promise(async (resolve, reject) => {
      try {
        await keycloak.init({
          config: {
            url: 'http://localhost:8380/auth/', // .ie: http://localhost:8080/auth/
            realm: 'codingpedia', // .ie: master
            clientId: 'bookmarks' // .ie: account
          },
          initOptions: {
            onLoad: 'login-required',
            checkLoginIframe: false
          },
          bearerExcludedUrls: [
            '/api/public'
          ]
        });<commit_msg>"check-sso" but not force login for homepage<commit_after>import { KeycloakService } from 'keycloak-angular';

export function initializer(keycloak: KeycloakService): () => Promise<any> {
  return (): Promise<any> => {
    return new Promise(async (resolve, reject) => {
      try {
        await keycloak.init({
          config: {
            url: 'http://localhost:8380/auth/', // .ie: http://localhost:8080/auth/
            realm: 'codingpedia', // .ie: master
            clientId: 'bookmarks' // .ie: account
          },
          initOptions: {
            onLoad: 'check-sso',
            checkLoginIframe: false
          },
          bearerExcludedUrls: [
            '/api/public'
          ]
        });
{'fraction_non_alphanumeric': 0.14133522727272727, 'fraction_numerical': 0.011363636363636364, 'mean_word_length': 1.863821138211382, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6158567', 'n_tokens_mistral': 429, 'n_tokens_neox': 409, 'n_words': 84}