<commit_before>const h = require('react-hyperscript')
const {pure} = require('react-derivable')

const {loadUser} = require('./state')
const state = require('./state')
const log = require('./log')

module.exports = pure(() => {
  return (
    h('div', [
      h('nav.nav', [
        h('.nav-left', [
          h('a.nav-item', {href: '#!/'}, [
            h('img', {src: '/icon.png'})
          ]),
          h('a.nav-item', {href: '#!/'}, 'coisas')
        ]),
        h('.nav-center', [
          state.loggedUser.get()
            ? h('.nav-item', [
              state.loggedUser.get(),
              h('span', {style: {marginRight: '5px'}}, ', '),
              h('a', {
                onClick: () =>
                  window.coisas.authorizationRemove()
                    .then(loadUser)
              }, 'logout')<commit_msg>use full raw.github url for icon so it is not intercepted by sw.<commit_after>const h = require('react-hyperscript')
const {pure} = require('react-derivable')

const {loadUser} = require('./state')
const state = require('./state')
const log = require('./log')

module.exports = pure(() => {
  return (
    h('div', [
      h('nav.nav', [
        h('.nav-left', [
          h('a.nav-item', {href: '#!/'}, [
            h('img', {src: 'https://raw.githubusercontent.com/fiatjaf/coisas/master/icon.png'})
          ]),
          h('a.nav-item', {href: '#!/'}, 'coisas')
        ]),
        h('.nav-center', [
          state.loggedUser.get()
            ? h('.nav-item', [
              state.loggedUser.get(),
              h('span', {style: {marginRight: '5px'}}, ', '),
              h('a', {
                onClick: () =>
                  window.coisas.authorizationRemove()
                    .then(loadUser)
              }, 'logout')
{'fraction_non_alphanumeric': 0.21195039458850057, 'fraction_numerical': 0.0011273957158962795, 'mean_word_length': 1.764797507788162, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 1, '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': '837985', 'n_tokens_mistral': 574, 'n_tokens_neox': 553, 'n_words': 95}