<commit_before>(function (window, Cryptoloji, JSON, undefined) {

  /*
   * This is a quick and dirty library to perform persistence using URL as a 
   * storage.
   *
   * 
   */

  var STORAGE = {}

  //////////////////////////////////////////////////////////////////////////////

  function init () {
    // read URL
    var uri = _readURL()
    // get query params
    var queryValues = uri.queryGet()
    // is there is something
    if (!_.isEmpty(queryValues)) {
      // dehashify
      STORAGE = _dehashify(queryValues.data)
      // clean url
      uri.querySet({})
      _saveURL(uri.toString())
      console.debug('storage is:', STORAGE)
    }
  }

  function persist () {
    _saveURL(getPersistedURL())
  }
  
  function get (key) {
    return _.result(STORAGE, key)
  }<commit_msg>fixes the query params check for determining whether to decrypt<commit_after>(function (window, Cryptoloji, JSON, undefined) {

  /*
   * This is a quick and dirty library to perform persistence using URL as a 
   * storage.
   *
   * 
   */

  var STORAGE = {}

  //////////////////////////////////////////////////////////////////////////////

  function init () {
    // read URL
    var uri = _readURL()
    // get query params
    var queryValues = uri.queryGet()
    // is there is something
    if (!_.isEmpty(queryValues) && queryValues.data) {
      // dehashify
      STORAGE = _dehashify(queryValues.data)
      // clean url
      uri.querySet({})
      _saveURL(uri.toString())
      console.debug('storage is:', STORAGE)
    }
  }

  function persist () {
    _saveURL(getPersistedURL())
  }
  
  function get (key) {
    return _.result(STORAGE, key)
  }
{'fraction_non_alphanumeric': 0.2013221153846154, 'fraction_numerical': 0.0, 'mean_word_length': 1.7161500815660684, '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': '5589725', 'n_tokens_mistral': 500, 'n_tokens_neox': 478, 'n_words': 130}