<commit_before>require('./main.scss');

var Elm = require('./Main.elm');

if (process.env.APP_ENV === 'dev') {
  var CLIENT_ID = process.env.KEYCLOAK_CLIENT_ID;
} else {
  var CLIENT_ID = "{{.Env.KEYCLOAK_CLIENT_ID}}";
}
/*global Keycloak*/
var keycloak = Keycloak({
    url: '/auth',
    realm: 'havendev',
    clientId: CLIENT_ID
});
var storedProfile = localStorage.getItem('profile');
var storedToken = localStorage.getItem('token');
var authData = storedProfile && storedToken ? { profile: JSON.parse(storedProfile), token: storedToken } : null;

window.addEventListener('WebComponentsReady', function() {
  // At this point we are guaranteed that all required polyfills have loaded,
  // all HTML imports have loaded, and all defined custom elements have upgraded
<commit_msg>note idea for fixing client auth via ngrok<commit_after>require('./main.scss');

var Elm = require('./Main.elm');

if (process.env.APP_ENV === 'dev') {
  var CLIENT_ID = process.env.KEYCLOAK_CLIENT_ID;
} else {
  var CLIENT_ID = "{{.Env.KEYCLOAK_CLIENT_ID}}";
}
/*global Keycloak*/
var keycloak = Keycloak({
    url: '/auth', // TODO: try full url for ngrok, client matching uses url
    realm: 'havendev',
    clientId: CLIENT_ID
});
var storedProfile = localStorage.getItem('profile');
var storedToken = localStorage.getItem('token');
var authData = storedProfile && storedToken ? { profile: JSON.parse(storedProfile), token: storedToken } : null;

window.addEventListener('WebComponentsReady', function() {
  // At this point we are guaranteed that all required polyfills have loaded,
  // all HTML imports have loaded, and all defined custom elements have upgraded

{'fraction_non_alphanumeric': 0.13446396123561477, 'fraction_numerical': 0.0, 'mean_word_length': 4.7560975609756095, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1255124', 'n_tokens_mistral': 511, 'n_tokens_neox': 510, 'n_words': 149}