<commit_before>library freecell.view.app;

import "package:polymer/polymer.dart";

import "dart:async";
import "dart:html";
import "dart:math";

import "../deck/deck.dart";
import "../tableau/tableau.dart";
import "../viewmodel/viewmodel.dart";
import "../solver/solution.dart";
import "../polyfills/webanimations.dart";
import "fc-card.dart";
import "card-coordinator.dart";
import "solution-player.dart";

@CustomTag("fc-app")
class FcApp extends PolymerElement {
  @observable Tableau tableau;
  @observable String boardForSolver;
  @observable String boardId;
  @observable int remainingCards;

  bool fastFlag = false;
  bool cheatFlag = false;

  FcApp.created() : super.created() {
    boardId = (new Random().nextInt(pow(2, 32)) + 1).toString();
    String hash = window.location.hash;
    if (hash != null) {
      Map<String, String> flags = Uri.splitQueryString(hash.substring(1));
      cheatFlag = flags.containsKey("cheat");
      fastFlag = flags.containsKey("fast") || cheatFlag;
      if (flags.containsKey("board"))<commit_msg>Fix the hash error.<commit_after>library freecell.view.app;

import "package:polymer/polymer.dart";

import "dart:async";
import "dart:html";
import "dart:math";

import "../deck/deck.dart";
import "../tableau/tableau.dart";
import "../viewmodel/viewmodel.dart";
import "../solver/solution.dart";
import "../polyfills/webanimations.dart";
import "fc-card.dart";
import "card-coordinator.dart";
import "solution-player.dart";

@CustomTag("fc-app")
class FcApp extends PolymerElement {
  @observable Tableau tableau;
  @observable String boardForSolver;
  @observable String boardId;
  @observable int remainingCards;

  bool fastFlag = false;
  bool cheatFlag = false;

  FcApp.created() : super.created() {
    boardId = (new Random().nextInt(pow(2, 32)) + 1).toString();
    String hash = window.location.hash;
    if (hash != null && !hash.isEmpty) {
      Map<String, String> flags = Uri.splitQueryString(hash.substring(1));
      cheatFlag = flags.containsKey("cheat");
      fastFlag = flags.containsKey("fast") || cheatFlag;
      if (flags.containsKey("board"))
{'fraction_non_alphanumeric': 0.1585423568386181, 'fraction_numerical': 0.00473260766682442, 'mean_word_length': 4.476683937823834, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '879580', 'n_tokens_mistral': 717, 'n_tokens_neox': 680, 'n_words': 149}