<commit_before>define(function(require) {

  var $ = require('jquery');
  var Backbone = require('backbone');
  var AppView = require('views/app');
  var docs = require('collections/docs');
  var cache = require('utils/cache');
  var settings = require('models/settings');
  var router = require('utils/router');
  var remoteStorageDocuments = require('remotestorage-documents');


  function litewrite() {

    var origHash = document.location.hash;

    remoteStorage.onWidget('ready', fetch);

    remoteStorage.onWidget('disconnect', function() {
      docs.reset().addNew();
    });

    remoteStorage.claimAccess('documents', 'rw').then(function() {<commit_msg>change deprecated remoteStorage.onWidget to remoteStorage.on<commit_after>define(function(require) {

  var $ = require('jquery');
  var Backbone = require('backbone');
  var AppView = require('views/app');
  var docs = require('collections/docs');
  var cache = require('utils/cache');
  var settings = require('models/settings');
  var router = require('utils/router');
  var remoteStorageDocuments = require('remotestorage-documents');


  function litewrite() {

    var origHash = document.location.hash;

    remoteStorage.on('ready', fetch);

    remoteStorage.on('disconnect', function() {
      docs.reset().addNew();
    });

    remoteStorage.claimAccess('documents', 'rw').then(function() {
{'fraction_non_alphanumeric': 0.15777940102264426, 'fraction_numerical': 0.0, 'mean_word_length': 4.780590717299578, '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': '7080910', 'n_tokens_mistral': 403, 'n_tokens_neox': 377, 'n_words': 76}