<commit_before>var dav = require("./dav");
var async = require("async");

exports.remote = function(settings)
{
  this.backend=null;

  this.settings = settings;
  console.warn("initialized WebDAV with:\n" + JSON.stringify(settings, null, 2)); 
  this.settings.cache = 100;
  this.settings.writeInterval = 50;
  this.settings.json = true;
}

exports.remote.prototype.init = function(callback)
{
  this.backend=dav.remoteDAV(this.settings);
  callback();
}

exports.remote.prototype.get = function(key, callback)
{
  this.backend.get(key, callback);
}

exports.remote.prototype.set = function(key, value, callback)
{
  console.log("DAV SET " + key)
  this.backend.set(key, value, callback);<commit_msg>make simple backend report it's simple<commit_after>var dav = require("./dav");
var async = require("async");

exports.remote = function(settings)
{
  this.backend=null;

  this.settings = settings;
  console.warn("initialized simple with:\n" + JSON.stringify(settings, null, 2)); 
  this.settings.cache = 100;
  this.settings.writeInterval = 50;
  this.settings.json = true;
}

exports.remote.prototype.init = function(callback)
{
  this.backend=dav.remoteDAV(this.settings);
  callback();
}

exports.remote.prototype.get = function(key, callback)
{
  this.backend.get(key, callback);
}

exports.remote.prototype.set = function(key, value, callback)
{
  console.log("DAV SET " + key)
  this.backend.set(key, value, callback);
{'fraction_non_alphanumeric': 0.15487035739313246, 'fraction_numerical': 0.008409250175192713, 'mean_word_length': 4.804878048780488, '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': '4365998', 'n_tokens_mistral': 480, 'n_tokens_neox': 460, 'n_words': 88}