<commit_before>namespace Flappy.Global {
    export class Constants {
        public static gameSpeed: number = 0.1;
        public static jumpSpeed: number = 500;
        public static gapSize: number = 185; // 155 normally
        public static gravity: number = 2000;
        public static pipeSpacing: number = 200;
        public static terminalVelocity: number = 700;

        public static get serverUrl(): string {
            if (window.location.href === 'http://127.0.0.1:8080/') {
                return 'http://localhost:9001';
            } else {
                return 'https://flappy-bird-server.herokuapp.com';
            }
        }

        public static gameHeight: number = 665;

        public static get gameWidth(): number {
            let ratio = this.gameHeight / window.innerHeight;
            return window.innerWidth * ratio;
        }

        public static worldOffset: number = -1000;
    }
}<commit_msg>Added check for localhost as well<commit_after>namespace Flappy.Global {
    export class Constants {
        public static gameSpeed: number = 0.1;
        public static jumpSpeed: number = 500;
        public static gapSize: number = 185; // 155 normally
        public static gravity: number = 2000;
        public static pipeSpacing: number = 200;
        public static terminalVelocity: number = 700;

        public static get serverUrl(): string {
            if (window.location.href === 'http://127.0.0.1:8080/' || window.location.href === 'http://localhost:8080/') {
                return 'http://localhost:9001';
            } else {
                return 'https://flappy-bird-server.herokuapp.com';
            }
        }

        public static gameHeight: number = 665;

        public static get gameWidth(): number {
            let ratio = this.gameHeight / window.innerHeight;
            return window.innerWidth * ratio;
        }

        public static worldOffset: number = -1000;
    }
}
{'fraction_non_alphanumeric': 0.10148641722193746, 'fraction_numerical': 0.0451050743208611, 'mean_word_length': 1.9710806697108068, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3481972', 'n_tokens_mistral': 572, 'n_tokens_neox': 490, 'n_words': 151}