<commit_before>var h = require('hyperscript')
var u = require('./util')
var pull = require('pull-stream')
var combine = require('depject')
var fs = require('fs')
var path = require('path')
var SbotApi = require('./sbot-api')

document.head.appendChild(h('style', fs.readFileSync('./style.css', 'utf8')))

var modules = fs.readdirSync(path.join(__dirname, 'modules'))
  .map(function (e) { return require('./modules/'+e) })

var renderers = []
var app = []


var u = require('./util')

require('ssb-client')(function (err, sbot) {
  if(err) throw err

  modules.unshift(SbotApi(sbot))
  modules.unshift({app: app})
  combine(modules)

  document.body.appendChild(u.decorate(app, sbot))
})





<commit_msg>tidy, now that reconnect happens<commit_after>var h = require('hyperscript')
var u = require('./util')
var pull = require('pull-stream')
var combine = require('depject')
var fs = require('fs')
var path = require('path')
var SbotApi = require('./sbot-api')

document.head.appendChild(h('style', fs.readFileSync('./style.css', 'utf8')))

var modules = fs.readdirSync(path.join(__dirname, 'modules'))
  .map(function (e) { return require('./modules/'+e) })

var renderers = []
var app = []
var App = require('./plugs').first(app)

var u = require('./util')

modules.unshift(SbotApi())
modules.unshift({app: app})
combine(modules)

document.body.appendChild(App())







{'fraction_non_alphanumeric': 0.19606413994169097, 'fraction_numerical': 0.0014577259475218659, 'mean_word_length': 5.021929824561403, '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': '4053008', 'n_tokens_mistral': 473, 'n_tokens_neox': 460, 'n_words': 102}