<commit_before>/* global Notification */

module.exports = window.App = App

var fs = require('fs')
var EventEmitter = require('events').EventEmitter

var shell = require('shell')
var remote = require('remote')
var app = remote.require('app')

var BrowserWindow = remote.require('browser-window')
var catNames = require('cat-names')
var createElement = require('virtual-dom/create-element')
var delegate = require('delegate-dom')
var diff = require('virtual-dom/diff')
var eos = require('end-of-stream')
var h = require('virtual-dom/h')
var inherits = require('inherits')
var patch = require('virtual-dom/patch')
var path = require('path')
var githubCurrentUser = require('github-current-user')
var request = require('request')
var levelup = require('levelup')
var leveldown = require('leveldown')
var subleveldown = require('subleveldown')

var richMessage = require('./lib/rich-message.js')
var Swarm = require('./lib/swarm.js')
var util = require('./lib/util.js')

var Channels = require('./lib/elements/channels.js')
var Composer = require('./lib/elements/composer.js')
var Messages = require('./lib/elements/messages.js')
var Status = require('./lib/elements/status.js')
var Users = require('./lib/elements/users.js')
var Peers = require('./lib/elements/peers.js')

var currentWindow = remote.getCurrentWindow()

inherits(App, EventEmitter)

function App (el) {
  var self = this
  if (!(self instanceof App)) return new App(el)

  var db = levelup('./friendsdb', {db: leveldown})

  db.channels = subleveldown(db, 'channels', {valueEncoding: 'json'})

  // Open links in user's default browser
  delegate.on(el, 'a', 'click', function (e) {
    var href = e.target.getAttribute('href')
    if (/^https?:/.test(href)) {<commit_msg>remove unused requires<commit_after>/* global Notification */

module.exports = window.App = App

var EventEmitter = require('events').EventEmitter

var shell = require('shell')
var remote = require('remote')
var app = remote.require('app')

var BrowserWindow = remote.require('browser-window')
var catNames = require('cat-names')
var createElement = require('virtual-dom/create-element')
var delegate = require('delegate-dom')
var diff = require('virtual-dom/diff')
var eos = require('end-of-stream')
var h = require('virtual-dom/h')
var inherits = require('inherits')
var patch = require('virtual-dom/patch')
var path = require('path')
var githubCurrentUser = require('github-current-user')
var levelup = require('levelup')
var leveldown = require('leveldown')
var subleveldown = require('subleveldown')

var richMessage = require('./lib/rich-message.js')
var Swarm = require('./lib/swarm.js')
var util = require('./lib/util.js')

var Channels = require('./lib/elements/channels.js')
var Composer = require('./lib/elements/composer.js')
var Messages = require('./lib/elements/messages.js')
var Status = require('./lib/elements/status.js')
var Users = require('./lib/elements/users.js')
var Peers = require('./lib/elements/peers.js')

var currentWindow = remote.getCurrentWindow()

inherits(App, EventEmitter)

function App (el) {
  var self = this
  if (!(self instanceof App)) return new App(el)

  var db = levelup('./friendsdb', {db: leveldown})

  db.channels = subleveldown(db, 'channels', {valueEncoding: 'json'})

  // Open links in user's default browser
  delegate.on(el, 'a', 'click', function (e) {
    var href = e.target.getAttribute('href')
    if (/^https?:/.test(href)) {
{'fraction_non_alphanumeric': 0.1681751824817518, 'fraction_numerical': 0.0, 'mean_word_length': 5.021089630931459, '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': '2899869', 'n_tokens_mistral': 1041, 'n_tokens_neox': 1032, 'n_words': 270}