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