Boray commited on
Commit
7013de7
·
1 Parent(s): 82a371a

sample_report refined

Browse files
Files changed (1) hide show
  1. src/sample_report.json +353 -0
src/sample_report.json CHANGED
@@ -304,5 +304,358 @@
304
  }
305
  ]
306
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
307
  ]
308
  }
 
304
  }
305
  ]
306
  }
307
+ ],
308
+ "project/services/payment_service.py": [
309
+ {
310
+ "type": "function",
311
+ "rank": "D",
312
+ "lineno": 8,
313
+ "complexity": 13,
314
+ "endline": 95,
315
+ "name": "process_payment",
316
+ "col_offset": 0
317
+ },
318
+ {
319
+ "type": "function",
320
+ "rank": "E",
321
+ "lineno": 100,
322
+ "complexity": 16,
323
+ "endline": 180,
324
+ "name": "refund_transaction",
325
+ "col_offset": 0
326
+ },
327
+ {
328
+ "type": "class",
329
+ "rank": "D",
330
+ "lineno": 185,
331
+ "complexity": 12,
332
+ "endline": 280,
333
+ "name": "PaymentGateway",
334
+ "col_offset": 0,
335
+ "methods": [
336
+ {
337
+ "type": "method",
338
+ "rank": "D",
339
+ "lineno": 190,
340
+ "classname": "PaymentGateway",
341
+ "complexity": 10,
342
+ "endline": 230,
343
+ "name": "validate_card",
344
+ "col_offset": 4,
345
+ "closures": []
346
+ },
347
+ {
348
+ "type": "method",
349
+ "rank": "E",
350
+ "lineno": 235,
351
+ "classname": "PaymentGateway",
352
+ "complexity": 14,
353
+ "endline": 275,
354
+ "name": "authorize_payment",
355
+ "col_offset": 4,
356
+ "closures": []
357
+ }
358
+ ]
359
+ }
360
+ ],
361
+ "project/analytics/report_generator.py": [
362
+ {
363
+ "type": "function",
364
+ "rank": "E",
365
+ "lineno": 12,
366
+ "complexity": 17,
367
+ "endline": 140,
368
+ "name": "generate_monthly_report",
369
+ "col_offset": 0
370
+ },
371
+ {
372
+ "type": "function",
373
+ "rank": "D",
374
+ "lineno": 145,
375
+ "complexity": 11,
376
+ "endline": 200,
377
+ "name": "aggregate_metrics",
378
+ "col_offset": 0
379
+ },
380
+ {
381
+ "type": "function",
382
+ "rank": "F",
383
+ "lineno": 205,
384
+ "complexity": 24,
385
+ "endline": 350,
386
+ "name": "export_to_excel",
387
+ "col_offset": 0
388
+ }
389
+ ],
390
+ "project/workers/task_scheduler.py": [
391
+ {
392
+ "type": "class",
393
+ "rank": "E",
394
+ "lineno": 5,
395
+ "complexity": 15,
396
+ "endline": 200,
397
+ "name": "TaskScheduler",
398
+ "col_offset": 0,
399
+ "methods": [
400
+ {
401
+ "type": "method",
402
+ "rank": "D",
403
+ "lineno": 10,
404
+ "classname": "TaskScheduler",
405
+ "complexity": 12,
406
+ "endline": 60,
407
+ "name": "schedule_task",
408
+ "col_offset": 4,
409
+ "closures": []
410
+ },
411
+ {
412
+ "type": "method",
413
+ "rank": "E",
414
+ "lineno": 65,
415
+ "classname": "TaskScheduler",
416
+ "complexity": 15,
417
+ "endline": 125,
418
+ "name": "execute_batch",
419
+ "col_offset": 4,
420
+ "closures": []
421
+ },
422
+ {
423
+ "type": "method",
424
+ "rank": "C",
425
+ "lineno": 130,
426
+ "classname": "TaskScheduler",
427
+ "complexity": 8,
428
+ "endline": 160,
429
+ "name": "retry_failed",
430
+ "col_offset": 4,
431
+ "closures": []
432
+ },
433
+ {
434
+ "type": "method",
435
+ "rank": "D",
436
+ "lineno": 165,
437
+ "classname": "TaskScheduler",
438
+ "complexity": 10,
439
+ "endline": 195,
440
+ "name": "handle_timeout",
441
+ "col_offset": 4,
442
+ "closures": []
443
+ }
444
+ ]
445
+ }
446
+ ],
447
+ "project/middleware/auth_middleware.py": [
448
+ {
449
+ "type": "function",
450
+ "rank": "D",
451
+ "lineno": 15,
452
+ "complexity": 13,
453
+ "endline": 85,
454
+ "name": "check_permissions",
455
+ "col_offset": 0
456
+ },
457
+ {
458
+ "type": "function",
459
+ "rank": "E",
460
+ "lineno": 90,
461
+ "complexity": 16,
462
+ "endline": 165,
463
+ "name": "validate_jwt_token",
464
+ "col_offset": 0
465
+ },
466
+ {
467
+ "type": "function",
468
+ "rank": "B",
469
+ "lineno": 170,
470
+ "complexity": 5,
471
+ "endline": 190,
472
+ "name": "hash_password",
473
+ "col_offset": 0
474
+ }
475
+ ],
476
+ "project/parsers/xml_parser.py": [
477
+ {
478
+ "type": "function",
479
+ "rank": "F",
480
+ "lineno": 20,
481
+ "complexity": 28,
482
+ "endline": 220,
483
+ "name": "parse_nested_xml",
484
+ "col_offset": 0,
485
+ "closures": [
486
+ {
487
+ "type": "function",
488
+ "rank": "E",
489
+ "lineno": 45,
490
+ "complexity": 14,
491
+ "endline": 95,
492
+ "name": "extract_attributes",
493
+ "col_offset": 4,
494
+ "closures": []
495
+ },
496
+ {
497
+ "type": "function",
498
+ "rank": "D",
499
+ "lineno": 100,
500
+ "complexity": 11,
501
+ "endline": 145,
502
+ "name": "validate_schema",
503
+ "col_offset": 4,
504
+ "closures": []
505
+ }
506
+ ]
507
+ },
508
+ {
509
+ "type": "function",
510
+ "rank": "D",
511
+ "lineno": 225,
512
+ "complexity": 10,
513
+ "endline": 280,
514
+ "name": "convert_to_dict",
515
+ "col_offset": 0
516
+ }
517
+ ],
518
+ "project/database/migrations.py": [
519
+ {
520
+ "type": "class",
521
+ "rank": "E",
522
+ "lineno": 8,
523
+ "complexity": 18,
524
+ "endline": 250,
525
+ "name": "MigrationRunner",
526
+ "col_offset": 0,
527
+ "methods": [
528
+ {
529
+ "type": "method",
530
+ "rank": "E",
531
+ "lineno": 15,
532
+ "classname": "MigrationRunner",
533
+ "complexity": 18,
534
+ "endline": 90,
535
+ "name": "apply_migrations",
536
+ "col_offset": 4,
537
+ "closures": []
538
+ },
539
+ {
540
+ "type": "method",
541
+ "rank": "D",
542
+ "lineno": 95,
543
+ "classname": "MigrationRunner",
544
+ "complexity": 12,
545
+ "endline": 145,
546
+ "name": "rollback_migration",
547
+ "col_offset": 4,
548
+ "closures": []
549
+ },
550
+ {
551
+ "type": "method",
552
+ "rank": "D",
553
+ "lineno": 150,
554
+ "classname": "MigrationRunner",
555
+ "complexity": 11,
556
+ "endline": 200,
557
+ "name": "check_compatibility",
558
+ "col_offset": 4,
559
+ "closures": []
560
+ },
561
+ {
562
+ "type": "method",
563
+ "rank": "B",
564
+ "lineno": 205,
565
+ "classname": "MigrationRunner",
566
+ "complexity": 6,
567
+ "endline": 240,
568
+ "name": "log_migration",
569
+ "col_offset": 4,
570
+ "closures": []
571
+ }
572
+ ]
573
+ }
574
+ ],
575
+ "project/validators/form_validator.py": [
576
+ {
577
+ "type": "function",
578
+ "rank": "C",
579
+ "lineno": 10,
580
+ "complexity": 9,
581
+ "endline": 55,
582
+ "name": "validate_email",
583
+ "col_offset": 0
584
+ },
585
+ {
586
+ "type": "function",
587
+ "rank": "D",
588
+ "lineno": 60,
589
+ "complexity": 13,
590
+ "endline": 120,
591
+ "name": "validate_form_data",
592
+ "col_offset": 0
593
+ },
594
+ {
595
+ "type": "function",
596
+ "rank": "E",
597
+ "lineno": 125,
598
+ "complexity": 17,
599
+ "endline": 210,
600
+ "name": "sanitize_input",
601
+ "col_offset": 0
602
+ }
603
+ ],
604
+ "project/cache/redis_manager.py": [
605
+ {
606
+ "type": "class",
607
+ "rank": "D",
608
+ "lineno": 12,
609
+ "complexity": 14,
610
+ "endline": 180,
611
+ "name": "RedisCache",
612
+ "col_offset": 0,
613
+ "methods": [
614
+ {
615
+ "type": "method",
616
+ "rank": "B",
617
+ "lineno": 18,
618
+ "classname": "RedisCache",
619
+ "complexity": 5,
620
+ "endline": 35,
621
+ "name": "connect",
622
+ "col_offset": 4,
623
+ "closures": []
624
+ },
625
+ {
626
+ "type": "method",
627
+ "rank": "D",
628
+ "lineno": 40,
629
+ "classname": "RedisCache",
630
+ "complexity": 12,
631
+ "endline": 90,
632
+ "name": "get_or_set",
633
+ "col_offset": 4,
634
+ "closures": []
635
+ },
636
+ {
637
+ "type": "method",
638
+ "rank": "D",
639
+ "lineno": 95,
640
+ "classname": "RedisCache",
641
+ "complexity": 14,
642
+ "endline": 150,
643
+ "name": "invalidate_pattern",
644
+ "col_offset": 4,
645
+ "closures": []
646
+ },
647
+ {
648
+ "type": "method",
649
+ "rank": "C",
650
+ "lineno": 155,
651
+ "classname": "RedisCache",
652
+ "complexity": 7,
653
+ "endline": 175,
654
+ "name": "cleanup",
655
+ "col_offset": 4,
656
+ "closures": []
657
+ }
658
+ ]
659
+ }
660
  ]
661
  }