<commit_before>// Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program testing NPE within string interpolation.

class A {
  A(String this.name) {}
  String name;
}

main() {
  A a = new A("Kermit");
  var s = "Hello Mr. ${a.name}";
  Expect.stringEquals("Hello Mr. Kermit", s);
  a = null;
  try {
    s = "Hello Mr. ${a.name}";
  } on NullPointerException catch (e) {
    return;
  }
  Expect.fail("NullPointerException not thrown");
}<commit_msg>Fixing file accidentally reverted when renaming it.<commit_after>// Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program testing NPE within string interpolation.

class A {
  A(String this.name) {}
  String name;
}

main() {
  A a = new A("Kermit");
  var s = "Hello Mr. ${a.name}";
  Expect.stringEquals("Hello Mr. Kermit", s);
  a = null;
  try {
    s = "Hello Mr. ${a.name}";
  } on NoSuchMethodError catch (e) {
    return;
  }
  Expect.fail("NoSuchMethodError not thrown");
}
{'fraction_non_alphanumeric': 0.12306501547987617, 'fraction_numerical': 0.006191950464396285, 'mean_word_length': 3.2532894736842106, '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': '2006014', 'n_tokens_mistral': 424, 'n_tokens_neox': 408, 'n_words': 166}