<commit_before>$(function(){

  // Note: this is an example showing each action
  // in order, from listing collections to creating
  // and deleting record instances.

  SignalBox.setup({
    app      : 'sdk_test',
    username : 'signalboxdemo'
  });

  function list(){
    SignalBox.list('users', {
      success : function(response, xhr){
        console.log(response.records.length + " user records found.")

        if(response.records[0])
          read(response.records[0]._id);
      }
    });
  };

  function read(id){
    SignalBox.read('users', id, {
      success : function(user, xhr){
        console.log("Found: " + user._id);

        create();
      }
    });
  };

  function create(){
    SignalBox.create('users', {
      params : {
        name  : 'Bob',
        email : '<EMAIL>'
      },
      success : function(user, xhr){
        console.log('Created: ' + user._id, user);

        update(user._id);
      }
    });
  };

  function update(id){
    SignalBox.update('users', id, {
      params : {
        name : 'Updated'
      },
      success : function(user, xhr){
        console.log("Updated: ", user._id, user);

        destroy(user._id);
      }
    });
  };

  function destroy(id){
    SignalBox.destroy('users', id, {
      success : function(xhr){
        console.log("Destroyed: ", id);
      }
    });
  };

  list();

});
<commit_msg>Added note on example app.<commit_after>$(function(){

  // Note:
  //
  // This is an example showing each action
  // in order, from listing collections to creating
  // and deleting record instances.
  //
  // You'll need to run it on a webserver, however you
  // might find it easier to play with the example here:
  //
  //   http://jsfiddle.net/HwRJ2/3/

  SignalBox.setup({
    app      : 'sdk_test',
    username : 'signalboxdemo'
  });

  function list(){
    SignalBox.list('users', {
      success : function(response, xhr){
        console.log(response.records.length + " user records found.")

        if(response.records[0])
          read(response.records[0]._id);
      }
    });
  };

  function read(id){
    SignalBox.read('users', id, {
      success : function(user, xhr){
        console.log("Found: " + user._id);

        create();
      }
    });
  };

  function create(){
    SignalBox.create('users', {
      params : {
        name  : 'Bob',
        email : '<EMAIL>'
      },
      success : function(user, xhr){
        console.log('Created: ' + user._id, user);

        update(user._id);
      }
    });
  };

  function update(id){
    SignalBox.update('users', id, {
      params : {
        name : 'Updated'
      },
      success : function(user, xhr){
        console.log("Updated: ", user._id, user);

        destroy(user._id);
      }
    });
  };

  function destroy(id){
    SignalBox.destroy('users', id, {
      success : function(xhr){
        console.log("Destroyed: ", id);
      }
    });
  };

  list();

});

{'fraction_non_alphanumeric': 0.16298060564817965, 'fraction_numerical': 0.002041510717931269, 'mean_word_length': 2.0184804928131417, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5128466', 'n_tokens_mistral': 948, 'n_tokens_neox': 904, 'n_words': 195}