Code Duplication    Length = 21-23 lines in 2 locations

mycluster/slurm.py 1 location

@@ 456-478 (lines=23) @@
453
452
451
450
449
448
447
446
445
444
443
442
441
440
439
438
437
436
435
434
433
432
431
430
429
428
427
426
425
424
423
422
421
420
419
418
417
416
415
414
413
412
411
410
409
408
407
406
405
404
403
402
401
400
399
398
397
396
395

mycluster/lsf.py 1 location

@@ 319-339 (lines=21) @@
316
            stats_dict['mem'] = float(new_line.split(' ')[1]) * ntasks
317
            stats_dict['cpu'] = float(new_line.split(' ')[0]) * ntasks
318
        except:
319
            pass
320
321
    return stats_dict
322