<commit_before>/*
 * @constructor
 * @this {Room}
 * @param {Id} id
 * @param {Board} board
 * @param {me} me
 * @param {Grid} grid *optional
 */
var Room = function(id, board, me, grid) {
    var self = this;
    this.id = id;
    this.shareUrl = window.location.origin+"/"+id;
    this.players = ko.observableArray(this.dummyPlayers());
    this.turn = ko.observable(-1);
    this.connect = globalConnect;
    this.socket = this.connect().socket;
    this.isPublic = ko.observable(true);
    this.me = ko.observable(me);
    this.game = ko.observable(new Game(this.players(), board));
    if(grid){
        this.game().setGrid(grid);
    }

    this.started = ko.observable(false);
    this.ended = ko.observable(false);
            
    //TODO: move these to lobby class
    this.iAmAdmin = ko.computed(function() {<commit_msg>fixed share url in FF<commit_after>/*
 * @constructor
 * @this {Room}
 * @param {Id} id
 * @param {Board} board
 * @param {me} me
 * @param {Grid} grid *optional
 */
var Room = function(id, board, me, grid) {
    var self = this;
    this.id = id;
    this.shareUrl = "http://"+window.location.host+"/"+id;
    this.players = ko.observableArray(this.dummyPlayers());
    this.turn = ko.observable(-1);
    this.connect = globalConnect;
    this.socket = this.connect().socket;
    this.isPublic = ko.observable(true);
    this.me = ko.observable(me);
    this.game = ko.observable(new Game(this.players(), board));
    if(grid){
        this.game().setGrid(grid);
    }

    this.started = ko.observable(false);
    this.ended = ko.observable(false);
            
    //TODO: move these to lobby class
    this.iAmAdmin = ko.computed(function() {
{'fraction_non_alphanumeric': 0.16467780429594273, 'fraction_numerical': 0.0011933174224343676, 'mean_word_length': 2.927400468384075, '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': '1630733', 'n_tokens_mistral': 572, 'n_tokens_neox': 564, 'n_words': 124}