<commit_before>// Copyright (c) 2014, 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.

import "dart:isolate";
import "package:expect/expect.dart";

enum Foo {
  BAR, BAZ
}

verify(val) {
  Expect.identical(Foo.BAR, val);
}

main() {
  verify(Foo.BAR);
  var rp;
  rp = new RawReceivePort((val) {
    verify(val);
    rp.close();
  });
  rp.sendPort.send(Foo.BAR);
}<commit_msg>- Add needed enum flags for dart2js.<commit_after>// Copyright (c) 2014, 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.

// SharedOptions=--enable-enum

import "dart:isolate";
import "package:expect/expect.dart";

enum Foo {
  BAR, BAZ
}

verify(val) {
  Expect.identical(Foo.BAR, val);
}

main() {
  verify(Foo.BAR);
  var rp;
  rp = new RawReceivePort((val) {
    verify(val);
    rp.close();
  });
  rp.sendPort.send(Foo.BAR);
}
{'fraction_non_alphanumeric': 0.13466787989080983, 'fraction_numerical': 0.00818926296633303, 'mean_word_length': 3.4534412955465585, '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': '1991679', 'n_tokens_mistral': 411, 'n_tokens_neox': 372, 'n_words': 123}