<commit_before>library board_model;

import 'dart:convert';

class Country {
  final String id;
  final String continent;
  final String svgPath;
  List<Country> _neighbours;

  Country._(this.id, this.continent, this.svgPath);

  List<Country> get neighbours => _neighbours;
}

List<Country> decodeJson(String json) => _fromJson(JSON.decode(json));

List<Country> _fromJson(List json) {
  final countriesById = <String, Country>{};
  final neighbours = <String, List<String>>{};

  // collect from json
  for (final e in json) {
    final id = e['id'];
    countriesById[id] = new Country._(id, e['continent'], e['svgPath']);
    neighbours[id] = e['neighbours'];<commit_msg>fix #3 use @reflectable for js minification<commit_after>library board_model;

import 'package:observe/observe.dart';
import 'dart:convert';

@reflectable
class Country {
  final String id;
  final String continent;
  final String svgPath;
  List<Country> _neighbours;

  Country._(this.id, this.continent, this.svgPath);

  List<Country> get neighbours => _neighbours;
}

List<Country> decodeJson(String json) => _fromJson(JSON.decode(json));

List<Country> _fromJson(List json) {
  final countriesById = <String, Country>{};
  final neighbours = <String, List<String>>{};

  // collect from json
  for (final e in json) {
    final id = e['id'];
    countriesById[id] = new Country._(id, e['continent'], e['svgPath']);
    neighbours[id] = e['neighbours'];
{'fraction_non_alphanumeric': 0.14435146443514643, 'fraction_numerical': 0.000697350069735007, 'mean_word_length': 4.929752066115703, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '6494622', 'n_tokens_mistral': 483, 'n_tokens_neox': 468, 'n_words': 122}