<commit_before>var Barista    = require(process.cwd() + '/lib/barista.js'),
    Backbone   = require('backbone'),
    ExampleApp = require(process.cwd() + '/spec/ex1/exampleApp1.js'),
    context    = describe;

describe('Barista.Model', function() {
  var model;

  beforeEach(function() {
    Barista.config(ExampleApp);
  });

  describe('isA', function() {
    it('returns true with arg \'Backbone.Model\'', function() {
      var newModel = new Barista.Model();
      expect(newModel.isA('Backbone.Model')).toBe(true);
    });

    it('returns true with arg\'Barista.Model\'', function() {
      var newModel = new Barista.Model();
      expect(newModel.isA('Barista.Model')).toBe(true);
    });

    it('returns false with another argument', function() {
      var newModel = new Barista.Model();
      expect(newModel.isA('Barista.Collection')).toBe(false);
    });
  });

  describe('sync', function() {
    beforeEach(function() {
      model = new Barista.TaskModel();
      spyOn(Backbone, 'sync');
    });

    it('does not call Backbone.sync', function() {
      model.sync();
      expect(Backbone.sync).not.toHaveBeenCalled();
    });
  });

  describe('get', function() {
    
  });
});<commit_msg>Add specs for the sync method of the model prototype<commit_after>var Barista    = require(process.cwd() + '/lib/barista.js'),
    Backbone   = require('backbone'),
    ExampleApp = require(process.cwd() + '/spec/ex1/exampleApp1.js'),
    context    = describe;

describe('Barista.Model', function() {
  var model;

  beforeEach(function() {
    Barista.config(ExampleApp);
  });

  describe('isA', function() {
    it('returns true with arg \'Backbone.Model\'', function() {
      var newModel = new Barista.Model();
      expect(newModel.isA('Backbone.Model')).toBe(true);
    });

    it('returns true with arg\'Barista.Model\'', function() {
      var newModel = new Barista.Model();
      expect(newModel.isA('Barista.Model')).toBe(true);
    });

    it('returns false with another argument', function() {
      var newModel = new Barista.Model();
      expect(newModel.isA('Barista.Collection')).toBe(false);
    });
  });

  describe('sync', function() {
    beforeEach(function() {
      model = new Barista.TaskModel();
      spyOn(Backbone, 'sync');
    });

    it('does not call Backbone.sync', function() {
      model.sync();
      expect(Backbone.sync).not.toHaveBeenCalled();
    });
  });

  describe('get', function() {
    beforeEach(function() {
      model = new Barista.TaskModel({title: 'Foobar'});
    });

    it('retrieves the object\'s attribute', function() {
      expect(model.get('title')).toBe('Foobar');
    });
  });
});
{'fraction_non_alphanumeric': 0.18284001498688648, 'fraction_numerical': 0.0014986886474334957, 'mean_word_length': 3.251592356687898, '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': '482300', 'n_tokens_mistral': 845, 'n_tokens_neox': 831, 'n_words': 156}