GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 37-44 lines in 2 locations

js/map.js 2 locations

@@ 430-473 (lines=44) @@
427
        }
428
429
        m.r = repairRadius(parseFloat(dataitem[index]), 0);
430
        index = index + 1;
431
432
        if (index < dataitem.length &&
433
                /^([a-zA-Z0-9-_]*)$/.test(dataitem[index])) {
434
            m.name = dataitem[index];
435
        }
436
437
        markers.push(m);
438
    });
439
440
    return markers;
441
}
442
443
444
function parseCenterFromUrl(urlarg) {
445
    'use strict';
446
447
    if (urlarg === null) {
448
        return null;
449
    }
450
451
    var data = urlarg.split(':'),
452
        lat,
453
        lon;
454
455
    if (data.length === 1) {
456
        return Coordinates.fromString(data[0]);
457
    }
458
459
    if (data.length === 2) {
460
        lat = parseFloat(data[0]);
461
        lon = parseFloat(data[1]);
462
        if (Coordinates.valid(lat, lon)) {
463
            return new google.maps.LatLng(lat, lon);
464
        }
465
    }
466
467
    return null;
468
}
469
470
471
function parseLinesFromUrl(urlarg) {
472
    'use strict';
473
474
    if (urlarg === null) {
475
        return [];
476
    }
@@ 551-587 (lines=37) @@
548
            m.name = data[3];
549
        }
550
551
        markers.push(m);
552
    });
553
554
    return markers;
555
}
556
557
558
function parseLinesFromCookies() {
559
    'use strict';
560
561
    var raw_lines = Cookies.get('lines'),
562
        lines = [];
563
564
    if (raw_lines === null || raw_lines === undefined) {
565
        return lines;
566
    }
567
568
    raw_lines.split('*').map(function (pair_string) {
569
        var m = {source: -1, target: -1},
570
            pair = pair_string.split(':');
571
572
        if (pair.length !== 2) {
573
            return;
574
        }
575
576
        m.source = alpha2id(pair[0]);
577
        m.target = alpha2id(pair[1]);
578
579
        lines.push(m);
580
    });
581
582
    return lines;
583
}
584
585
586
function initialize(xcenter, xzoom, xmap, xfeatures, xmarkers, xlines, xgeocache) {
587
    'use strict';
588
589
    var center = null,
590
        //atDefaultCenter = false,