<commit_before>describe("View", function() {
  beforeEach(function() {
    view = new PinPoint.View();
    controller = {
      notes:['placeholder for controller notes']
    };
  })

  it("should be defined", function() {
    expect(view).toBeDefined();
  })

  describe("View#redraw", function() {
    it("should call populateDOMNoteList with one argument", function(){
      spyOn(view, "populateDOMNoteList");
      view.redraw();
      expect(view.populateDOMNoteList).toHaveBeenCalled();
    })

    it("should have a controller as an argument", function(){
      spyOn(view, "populateDOMNoteList");
      view.redraw(controller);
      expect(view.populateDOMNoteList).toHaveBeenCalledWith(controller);
    })
  })

})<commit_msg>add changed name of controller to dummyController<commit_after>describe("View", function() {
  beforeEach(function() {
    view = new PinPoint.View();
    dummyController = {
      notes:['placeholder for controller notes']
    };
  })

  it("should be defined", function() {
    expect(view).toBeDefined();
  })

  describe("View#redraw", function() {
    it("should call populateDOMNoteList with one argument", function(){
      spyOn(view, "populateDOMNoteList");
      view.redraw();
      expect(view.populateDOMNoteList).toHaveBeenCalled();
    })

    it("should have a controller as an argument", function(){
      spyOn(view, "populateDOMNoteList");
      view.redraw(dummyController);
      expect(view.populateDOMNoteList).toHaveBeenCalledWith(dummyController);
    })


  })

})
{'fraction_non_alphanumeric': 0.14276358873608383, 'fraction_numerical': 0.0, 'mean_word_length': 3.8817891373801916, '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': '3601425', 'n_tokens_mistral': 449, 'n_tokens_neox': 444, 'n_words': 88}