<commit_before>describe('NDP.Vector2', function() {

  beforeEach(function() {
    jasmine.addMatchers(CustomMatchers);
    this.a = NDP.Vector2.create();
    this.b = NDP.Vector2.create(10);
    this.c = NDP.Vector2.create(-5, 10);
    this.target = NDP.Vector2.create();
  });

  it('should be an Object', function() {
    expect(NDP.Vector2).toEqual(jasmine.any(Object));
  });

  describe('create(opt_x, opt_y)', function() {
    it('should create a NDP.Array', function() {
      expect(this.a).toEqual(jasmine.any(NDP.Array));
      expect(this.b).toEqual(jasmine.any(NDP.Array));
    });
    it('should create a NDP.Array of length: 2', function() {
      expect(this.a.length).toEqual(2);
      expect(this.b.length).toEqual(2);
      expect(this.c.length).toEqual(2);
    });
    it('should create a NDP.Array with initial values of [opt_x](0) [opt_y](0)', function() {
      expect(this.a).toEqualArray([0, 0]);
      expect(this.b).toEqualArray([10, 0]);
      expect(this.c).toEqualArray([-5, 10]);
    });
  });

  describe('identity(target)', function() {
    it('should set [target][n] to 0', function() {
      NDP.Vector2.identity(this.a);
      NDP.Vector2.identity(this.b);
      NDP.Vector2.identity(this.c);
      expect(this.a).toEqualArray([0, 0]);
      expect(this.b).toEqualArray([0, 0]);
      expect(this.c).toEqualArray([0, 0]);
    });
  });

  describe('set(target, x)', function() {
    it('should set [target][n] to [x]', function() {
      NDP.Vector2.set(this.a, 1, 3);
      NDP.Vector2.set(this.b, 2, 4);
      NDP.Vector2.set(this.c, 3, 1);
      expect(this.a).toEqualArray([1, 3]);<commit_msg>:gb: Refined Vector2Spec assertion description<commit_after>describe('NDP.Vector2', function() {

  beforeEach(function() {
    jasmine.addMatchers(CustomMatchers);
    this.a = NDP.Vector2.create();
    this.b = NDP.Vector2.create(10);
    this.c = NDP.Vector2.create(-5, 10);
    this.target = NDP.Vector2.create();
  });

  it('should be an Object', function() {
    expect(NDP.Vector2).toEqual(jasmine.any(Object));
  });

  describe('create(opt_x, opt_y)', function() {
    it('should create a NDP.Array', function() {
      expect(this.a).toEqual(jasmine.any(NDP.Array));
      expect(this.b).toEqual(jasmine.any(NDP.Array));
    });
    it('should create a NDP.Array of length: 2', function() {
      expect(this.a.length).toEqual(2);
      expect(this.b.length).toEqual(2);
      expect(this.c.length).toEqual(2);
    });
    it('should create a NDP.Array with initial values of [opt_x](0) [opt_y](0)', function() {
      expect(this.a).toEqualArray([0, 0]);
      expect(this.b).toEqualArray([10, 0]);
      expect(this.c).toEqualArray([-5, 10]);
    });
  });

  describe('identity(target)', function() {
    it('should set [target][n] to 0', function() {
      NDP.Vector2.identity(this.a);
      NDP.Vector2.identity(this.b);
      NDP.Vector2.identity(this.c);
      expect(this.a).toEqualArray([0, 0]);
      expect(this.b).toEqualArray([0, 0]);
      expect(this.c).toEqualArray([0, 0]);
    });
  });

  describe('set(target, x, y)', function() {
    it('should set [target][n] to [x]', function() {
      NDP.Vector2.set(this.a, 1, 3);
      NDP.Vector2.set(this.b, 2, 4);
      NDP.Vector2.set(this.c, 3, 1);
      expect(this.a).toEqualArray([1, 3]);
{'fraction_non_alphanumeric': 0.2038158691701999, 'fraction_numerical': 0.028164748637189582, 'mean_word_length': 3.3346456692913384, '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': '1326632', 'n_tokens_mistral': 1240, 'n_tokens_neox': 1204, 'n_words': 192}