<commit_before>quail.components.label = function(testName, options) {
  quail.html.find(options.options.selector).each(function() {
    if ((!$(this).parent('label').length ||
        !quail.containsReadableText($(this).parent('label'))) &&
        (!quail.html.find('label[for=' + $(this).attr('id') + ']').length ||
        !quail.containsReadableText(quail.html.find('label[for=' + $(this).attr('id') + ']')))) {
      quail.testFails(testName, $(this));
    }
  });
};<commit_msg>The label component now works.<commit_after>quail.components.label = function(quail, test, Case, options) {
  var $scope = test.get('$scope');
  $scope.find(options.options.selector).each(function() {
    if ((!$(this).parent('label').length ||
        !quail.containsReadableText($(this).parent('label'))) &&
        (!$scope.find('label[for=' + $(this).attr('id') + ']').length ||
        !quail.containsReadableText($scope.find('label[for=' + $(this).attr('id') + ']')))) {
      test.add(Case({
        element: this,
        expected: $(this).closest('.quail-test').data('expected'),
        status: 'failed'
      }));
    }
    else {
      test.add(Case({
        element: this,
        expected: $(this).closest('.quail-test').data('expected'),
        status: 'passed'
      }));
    }
  });
};
{'fraction_non_alphanumeric': 0.234472049689441, 'fraction_numerical': 0.0, 'mean_word_length': 3.414383561643836, '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': '4523428', 'n_tokens_mistral': 421, 'n_tokens_neox': 422, 'n_words': 50}