<commit_before>'use strict';
var assert = require('assert');
var validate = require('./index');

it('should validate Custom Element names', function () {
	assert.throws(function () {
		validate('');
	});

	assert.throws(function () {
		validate('foo');
	});

	assert.throws(function () {
		validate('annotation-xml');
	});

	assert.throws(function () {
		validate('0-foo');
	});

	assert.throws(function () {
		validate('-foo');
	});

	assert.throws(function () {
		validate('foo-$');
	});

	assert.doesNotThrow(function () {
		validate('foo-bar');
	});

	assert.doesNotThrow(function () {
		validate('FOO-BAR');
	});

	assert.doesNotThrow(function () {
		validate('não-tém');
	});

	assert.throws(function () {
		validate('polymer-');
	});

	assert.throws(function () {
		validate('x-');
	});

	assert.throws(function () {
		validate('ng-');
	});

	assert.throws(function () {
		validate('foo-/');
	});
});<commit_msg>add another test<commit_after>'use strict';
var assert = require('assert');
var validate = require('./index');

it('should validate Custom Element names', function () {
	assert.throws(function () {
		validate('');
	});

	assert.throws(function () {
		validate('foo');
	});

	assert.throws(function () {
		validate('annotation-xml');
	});

	assert.throws(function () {
		validate('0-foo');
	});

	assert.throws(function () {
		validate('-foo');
	});

	assert.throws(function () {
		validate('foo-$');
	});

	assert.doesNotThrow(function () {
		validate('foo-bar');
	});

	assert.doesNotThrow(function () {
		validate('FOO-BAR');
	});

	assert.doesNotThrow(function () {
		validate('não-tém');
	});

	assert.throws(function () {
		validate('polymer-');
	});

	assert.throws(function () {
		validate('x-');
	});

	assert.throws(function () {
		validate('ng-');
	});

	assert.throws(function () {
		validate('foo-/');
	});

	assert.throws(function () {
		validate('foo/');
	});
});
{'fraction_non_alphanumeric': 0.2310126582278481, 'fraction_numerical': 0.0010548523206751054, 'mean_word_length': 4.197260273972603, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5635332', 'n_tokens_mistral': 680, 'n_tokens_neox': 623, 'n_words': 84}