<commit_before>(function(global) {
  var RS = RemoteStorage;
  // next steps : 
  //  features:
  // handle fetchDelta has_more
  // handle files larger than 150MB
  // 
  //  testing:
  // add to remotestorage browser
  // add to sharedy
  // maybe write tests for remote
  //
 

  /**
   * Dropbox backend for RemoteStorage.js
   * this file exposes a get/put/delete interface which is compatible with the wireclient
   * it requires to get configured with a dropbox token similar to the wireclient.configure
   *
   * when the remotestorage.backend was set to 'dropbox' it will initialize and resets 
   * remoteStorage.remote with remoteStorage.dropbox
   * 
   * for compability with the public directory the getItemURL function of the BaseClient gets 
   * highjackt and returns the dropbox share-url
   *
   * to connect with dropbox a connect function is provided
   *
   * known issues : 
   *   files larger than 150mb are not suported for upload
   *   directories with more than 10.000 files will cause problems to list
   *   content-type is guessed by dropbox.com therefore they aren't fully supported
   *   dropbox preserves cases but not case sensitive
   *
   **/
  var haveLocalStorage;
  var AUTH_URL = 'https://www.dropbox.com/1/oauth2/authorize';
  var SETTINGS_KEY = 'remotestorage:dropbox';

  /*************************
   * LowerCaseCache
   * this Cache will lowercase it's keys 
   * and can propagate the values to "upper directories"
   * 
   * intialized with default Value(undefined will be accepted)
   *
   * set and delete will be set to justSet and justDelete on initialization 
   *
   * get : get a value or default Value
   * set : set a value
   * justSet : just set a value and don't propagate at all
   * propagateSet : Set a value and propagate
   * delete : delete 
   * justDelete : just delete a value and don't propagate at al
   * propagateDelete : deleta a value and propagate
   * _activatePropagation : replace set and delete with their propagate versions
   *************************/
  function LowerCaseCache(defaultValue){
    this.defaultValue = defaultValue; //defaults to undefimned if initialized without arguments
    this._storage = { };
    this.set = this.justSet;
    this.delete = this.justDelete;
  }<commit_msg>updating issues in comments of dropbox<commit_after>(function(global) {
  var RS = RemoteStorage;
  // next steps : 
  //  features:
  // handle fetchDelta has_more
  // handle files larger than 150MB
  // 
  //  testing:
  // add to remotestorage browser
  // add to sharedy
  // maybe write tests for remote
  //
 

  /**
   * Dropbox backend for RemoteStorage.js
   * this file exposes a get/put/delete interface which is compatible with the wireclient
   * it requires to get configured with a dropbox token similar to the wireclient.configure
   *
   * when the remotestorage.backend was set to 'dropbox' it will initialize and resets 
   * remoteStorage.remote with remoteStorage.dropbox
   * 
   * for compability with the public directory the getItemURL function of the BaseClient gets 
   * highjackt and returns the dropbox share-url
   *
   * to connect with dropbox a connect function is provided
   *
   * known issues : 
   *   files larger than 150mb are not suported for upload
   *   directories with more than 10.000 files will cause problems to list
   *   content-type is guessed by dropbox.com therefore they aren't fully supported
   *   dropbox preserves cases but not case sensitive
   *   share_urls and therfeor getItemURL is asynchronius , which means 
   *     getItemURL returns usefull values after the syncCycle
   **/
  var haveLocalStorage;
  var AUTH_URL = 'https://www.dropbox.com/1/oauth2/authorize';
  var SETTINGS_KEY = 'remotestorage:dropbox';

  /*************************
   * LowerCaseCache
   * this Cache will lowercase it's keys 
   * and can propagate the values to "upper directories"
   * 
   * intialized with default Value(undefined will be accepted)
   *
   * set and delete will be set to justSet and justDelete on initialization 
   *
   * get : get a value or default Value
   * set : set a value
   * justSet : just set a value and don't propagate at all
   * propagateSet : Set a value and propagate
   * delete : delete 
   * justDelete : just delete a value and don't propagate at al
   * propagateDelete : deleta a value and propagate
   * _activatePropagation : replace set and delete with their propagate versions
   *************************/
  function LowerCaseCache(defaultValue){
    this.defaultValue = defaultValue; //defaults to undefimned if initialized without arguments
    this._storage = { };
    this.set = this.justSet;
    this.delete = this.justDelete;
  }
{'fraction_non_alphanumeric': 0.08276740237691002, 'fraction_numerical': 0.0055178268251273345, 'mean_word_length': 3.13784021071115, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5150720', 'n_tokens_mistral': 1337, 'n_tokens_neox': 1254, 'n_words': 522}