<commit_before>americano = require 'americano'
fs = require 'fs'
init = require './init'
thumb = require('./server/helpers/thumb').create
File = require './server/models/file'
RealtimeAdapter = require('cozy-realtime-adapter')
sio = require 'socket.io'
axon = require 'axon'

process.on 'uncaughtException', (err) ->
    console.log err
    console.log err.stack
    setTimeout ->
        process.exit 1
    , 1000

module.exports = start = (options, cb) ->
    options.name = 'cozy-photos'
    options.port ?= 9119<commit_msg>do not make app crash on uncaught type error<commit_after>americano = require 'americano'
fs = require 'fs'
init = require './init'
thumb = require('./server/helpers/thumb').create
File = require './server/models/file'
RealtimeAdapter = require('cozy-realtime-adapter')
sio = require 'socket.io'
axon = require 'axon'

process.on 'uncaughtException', (err) ->
    console.log err
    console.log err.stack

    if typeof(err) isnt TypeError
        setTimeout ->
            process.exit 1
        , 1000

module.exports = start = (options, cb) ->
    options.name = 'cozy-photos'
    options.port ?= 9119
{'fraction_non_alphanumeric': 0.13604240282685512, 'fraction_numerical': 0.015901060070671377, 'mean_word_length': 3.3244274809160306, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3459175', 'n_tokens_mistral': 368, 'n_tokens_neox': 348, 'n_words': 93}