<commit_before>function make_slides(f) {
  var   slides = {};

  slides.i0 = slide({
     name : "i0",
     start: function() {
      exp.startT = Date.now();
     }
  });

  slides.instructions = slide({
    name : "instructions",
    button : function() {
      exp.go(); //use exp.go() if and only if there is no "present" data.
    }
  });

  slides.cause_effect_prior = slide({
    name : "cause_effect_prior",
    present : exp.all_stims,
    start : function() {
      $(".err").hide();
    },
    present_handle : function(stim) {
    	this.trial_start = Date.now();
      this.init_sliders();
      exp.sliderPost = {};
      $("#number_guess").html("?");
      this.stim = stim;
      console.log(stim.cause);
      if (stim.end_cause.length > 0) {
        var cause = stim.name + " " + stim.beginning_cause + " <span class='highlight_numbers'>" + stim.N.toString() + "</span> " + stim.object + " " + stim.end_cause + ".";
      } else {
        var cause = stim.name + " " + stim.beginning_cause + " <span class='highlight_numbers'>" + stim.N.toString() + "</span> " + stim.object + ".";
      }
      var effect_question = "How likely do you think it is that each of the amounts below is how many " + stim.object + " " + stim.effect + "?";
      var utterance = '"' + stim.quantifier + " of the " + stim.object +
                      //can comment out following line to make it less wordy
                      (" that " + stim.name + " " + stim.beginning_cause + (stim.end_cause ? " " + stim.end_cause : "")).replace(/ a /g, " the ").replace(/ an /g, " the ") + 
                      " " + stim.effect + '."';
      $(".other_name").html(stim.other_name);
      var N = stim.N;
      $("#none").html("0"  + " " + stim.object);
      $(".N").html(N.toString() + " " + stim.object);
      $("#lower_half").html("1 to " + Math.floor(N/2).toString() + " " + stim.object);
      $("#upper_half").html(Math.ceil((N+1)/2).toString() + " to " + N.toString() + " " + stim.object);
      $("#cause").html(cause);
      $("#effect_question").html(effect_question);
      $("#utterance").html(utterance);
      this.stim.actual_cause = cause;
      this.stim.actual_effect_question = effect_question;
      this.stim.actual_utterance = utterance;<commit_msg>change wording of response choices<commit_after>function make_slides(f) {
  var   slides = {};

  slides.i0 = slide({
     name : "i0",
     start: function() {
      exp.startT = Date.now();
     }
  });

  slides.instructions = slide({
    name : "instructions",
    button : function() {
      exp.go(); //use exp.go() if and only if there is no "present" data.
    }
  });

  slides.cause_effect_prior = slide({
    name : "cause_effect_prior",
    present : exp.all_stims,
    start : function() {
      $(".err").hide();
    },
    present_handle : function(stim) {
    	this.trial_start = Date.now();
      this.init_sliders();
      exp.sliderPost = {};
      $("#number_guess").html("?");
      this.stim = stim;
      console.log(stim.cause);
      if (stim.end_cause.length > 0) {
        var cause = stim.name + " " + stim.beginning_cause + " <span class='highlight_numbers'>" + stim.N.toString() + "</span> " + stim.object + " " + stim.end_cause + ".";
      } else {
        var cause = stim.name + " " + stim.beginning_cause + " <span class='highlight_numbers'>" + stim.N.toString() + "</span> " + stim.object + ".";
      }
      var effect_question = "How likely do you think it is that each of the amounts below is how many " + stim.object + " " + stim.effect + "?";
      var utterance = '"' + stim.quantifier + " of the " + stim.object +
                      //can comment out following line to make it less wordy
                      (" that " + stim.name + " " + stim.beginning_cause + (stim.end_cause ? " " + stim.end_cause : "")).replace(/ a /g, " the ").replace(/ an /g, " the ") + 
                      " " + stim.effect + '."';
      $(".other_name").html(stim.other_name);
      var N = stim.N;
      $("#none").html("0"  + " " + stim.object + " " + stim.effect);
      $(".N").html(N.toString() + " " + stim.object + " " + stim.effect);
      $("#lower_half").html("1 to " + Math.floor(N/2).toString() + " " + stim.object + " " + stim.effect);
      $("#upper_half").html(Math.ceil((N+1)/2).toString() + " to " + (N - 1).toString() + " " + stim.object + " " + stim.effect);
      $("#cause").html(cause);
      $("#effect_question").html(effect_question);
      $("#utterance").html(utterance);
      this.stim.actual_cause = cause;
      this.stim.actual_effect_question = effect_question;
      this.stim.actual_utterance = utterance;
{'fraction_non_alphanumeric': 0.19248217757615035, 'fraction_numerical': 0.00367249945992655, 'mean_word_length': 2.4144542772861355, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '7317122', 'n_tokens_mistral': 1560, 'n_tokens_neox': 1504, 'n_words': 302}