<commit_before>// Copyright (c) 2015, the Dart Team. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in
// the LICENSE file.

/// File used to test reflectable code generation.
/// Creates a `MetaReflector` which may be used to reflect on the set of
/// reflectors themselves.
///
/// Independence: This is the only library in this program where both the
/// reflector classes and the domain classes are seen together. The program
/// as a whole illustrates a number of ways in which it is possible to make
/// reflection, usage of reflection, and application specific classes (here
/// known as 'domain classes') independent of each other, statically and
/// dynamically.
library test_reflectable.test.meta_reflectors_test;

@GlobalQuantifyCapability(r"^reflectable.reflectable.Reflectable$",
    const AllReflectorsMetaReflector()) // Remove when #34148 is resolved.
@GlobalQuantifyCapability(r"\.(M1|M2|M3|A|B|C|D)$", const Reflector())
@GlobalQuantifyCapability(r"\.(M1|M2|M3|B|C|D)$", const Reflector2())
@GlobalQuantifyCapability(r"\.(C|D)$", const ReflectorUpwardsClosed())
@GlobalQuantifyCapability(r"\.(C|D)$", const ReflectorUpwardsClosedToA())
@GlobalQuantifyCapability(r"\.(C|D)$", const ReflectorUpwardsClosedUntilA())
import "package:reflectable/reflectable.dart";
import "meta_reflectors_domain_definer.dart";
import "meta_reflectors_definer.dart";
import "meta_reflectors_meta.dart";
import 'meta_reflectors_test.reflectable.dart';
import "meta_reflectors_user.dart";

Map<String, Iterable<Reflectable>> scopeMap = <String, Iterable<Reflectable>>{
  "polymer": <Reflectable>[const Reflector(), const ReflectorUpwardsClosed()],
  "observe": <Reflectable>[const Reflector2(), const ReflectorUpwardsClosed()]
};

@ScopeMetaReflector()
Iterable<Reflectable> reflectablesOfScope(String scope) => scopeMap[scope];
<commit_msg>Removed work-around: Not needed with new analyzer<commit_after>// Copyright (c) 2015, the Dart Team. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in
// the LICENSE file.

/// File used to test reflectable code generation.
/// Creates a `MetaReflector` which may be used to reflect on the set of
/// reflectors themselves.
///
/// Independence: This is the only library in this program where both the
/// reflector classes and the domain classes are seen together. The program
/// as a whole illustrates a number of ways in which it is possible to make
/// reflection, usage of reflection, and application specific classes (here
/// known as 'domain classes') independent of each other, statically and
/// dynamically.
library test_reflectable.test.meta_reflectors_test;

@GlobalQuantifyCapability(r"\.(M1|M2|M3|A|B|C|D)$", const Reflector())
@GlobalQuantifyCapability(r"\.(M1|M2|M3|B|C|D)$", const Reflector2())
@GlobalQuantifyCapability(r"\.(C|D)$", const ReflectorUpwardsClosed())
@GlobalQuantifyCapability(r"\.(C|D)$", const ReflectorUpwardsClosedToA())
@GlobalQuantifyCapability(r"\.(C|D)$", const ReflectorUpwardsClosedUntilA())
import "package:reflectable/reflectable.dart";
import "meta_reflectors_domain_definer.dart";
import "meta_reflectors_definer.dart";
import "meta_reflectors_meta.dart";
import 'meta_reflectors_test.reflectable.dart';
import "meta_reflectors_user.dart";

Map<String, Iterable<Reflectable>> scopeMap = <String, Iterable<Reflectable>>{
  "polymer": <Reflectable>[const Reflector(), const ReflectorUpwardsClosed()],
  "observe": <Reflectable>[const Reflector2(), const ReflectorUpwardsClosed()]
};

@ScopeMetaReflector()
Iterable<Reflectable> reflectablesOfScope(String scope) => scopeMap[scope];

{'fraction_non_alphanumeric': 0.12476164532824843, 'fraction_numerical': 0.00789975483519477, 'mean_word_length': 6.116279069767442, 'pattern_counts': {'":': 4, '<': 17, '<?xml version=': 0, '>': 19, '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': '2206216', 'n_tokens_mistral': 1119, 'n_tokens_neox': 1107, 'n_words': 330}