<commit_before>describe('Testing the first D3.js function drawKaryo', function() {
  var c;

  beforeEach(function() {
    c = drawKaryo();
    c.render();
  });

  afterEach(function() {
    d3.selectAll('svg').remove();
  });

  describe('the svg' ,function() {
    it('should be created', function() {
        expect(getSvg()).not.toBeNull();
    });

//    it('should have the correct height', function() {
//      expect(getSvg().attr('width')).toBe('500');
//    });
//
//    it('should have the correct width', function() {
//      expect(getSvg().attr('width')).toBe('500');
//    });
  });

  function getSvg() {
    return d3.select('svg');
  }

});<commit_msg>Neuer test für korrekte height und width, jetzt noch erfolglos, aber...<commit_after>describe('Testing the first D3.js function drawKaryo', function() {
  var c;

  beforeEach(function() {
    c = drawKaryo();
    c.render();
  });

  afterEach(function() {
    d3.selectAll('svg').remove();
  });

  describe('the svg' ,function() {
    it('should be created', function() {
        expect(getSvg()).not.toBeNull();
    });

    it('should have the correct height', function() {
      expect(getSvg().attr('height')).not.toBe('3000');
    });

    it('should have the correct width', function() {
      expect(getSvg().attr('width')).not.toBe('1200');
    });
  });

  function getSvg() {
    return d3.select('svg');
  }

});
{'fraction_non_alphanumeric': 0.20830350751610593, 'fraction_numerical': 0.014316392269148175, 'mean_word_length': 3.1607142857142856, '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': '927242', 'n_tokens_mistral': 476, 'n_tokens_neox': 457, 'n_words': 92}