<commit_before>/**
 * Created with JetBrains WebStorm.
 * User: k-nkgwj
 * Date: 13/01/19
 * Time: 11:16
 * To change this template use File | Settings | File Templates.
 */

$(function () {
  $("#btn-program").click(
    function () {
      broadcastCommand("program",{program:program});
      log("not implemented:"+$("#program-status").val());
    }
  );

  $("#btn-map").click(
    function(){
      var size = Number($("#map-size").val());
      mapReduceAgent.map(size);
    }
  );

  $("#btn-reduce").click(
    function () {
      var size = Number($("#reduce-size").val());
      mapReduceAgent.reduce(size);
    }
  );

  $("#btn-rise").click(
    function () {
      var size = Number($("#rise-size").val());
      var subset = intermediatesStore.withdraw(size);
      var sender = new Sender(parentId);
      sender.command("intermediates", {intermediates:subset});
    }
  );
});


<commit_msg>Distribute program through Peer to Peer Tree hierarchy<commit_after>/**
 * Created with JetBrains WebStorm.
 * User: k-nkgwj
 * Date: 13/01/19
 * Time: 11:16
 * To change this template use File | Settings | File Templates.
 */

$(function () {
  $("#btn-program").click(
    function () {
      broadcastCommand("program",{program:program,"relay":downward});
      log("not implemented:"+$("#program-status").val());
    }
  );

  $("#btn-map").click(
    function(){
      var size = Number($("#map-size").val());
      mapReduceAgent.map(size);
    }
  );

  $("#btn-reduce").click(
    function () {
      var size = Number($("#reduce-size").val());
      mapReduceAgent.reduce(size);
    }
  );

  $("#btn-rise").click(
    function () {
      var size = Number($("#rise-size").val());
      var subset = intermediatesStore.withdraw(size);
      var sender = new Sender(parentId);
      sender.command("intermediates", {intermediates:subset});
    }
  );
});



{'fraction_non_alphanumeric': 0.19344933469805528, 'fraction_numerical': 0.01023541453428864, 'mean_word_length': 2.5675182481751824, 'pattern_counts': {'":': 1, '<': 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': '4285698', 'n_tokens_mistral': 633, 'n_tokens_neox': 596, 'n_words': 111}