Code Complexity Report

Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/publishers.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 9 29 205 6
unregister 1 3 23 1
verify_type 2 4 38 2
publish 1 4 31 2
register_client 1 2 16 2
unregister_client 2 3 22 2
has_clients 1 2 15 1
__init__ 1 4 24 1
register 8 29 164 7
unregister 3 11 85 3
_unregister_impl 2 5 44 2
unregister_all 2 3 27 2
publish 1 3 51 7
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/subscribers.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 12 35 269 7
unregister 1 4 27 1
verify_type 2 3 37 2
subscribe 2 7 58 3
unsubscribe 1 3 20 2
has_subscribers 1 3 20 1
callback 4 10 65 3
_new_sub_callback 1 7 58 2
__init__ 1 3 18 1
subscribe 4 10 95 7
unsubscribe 3 8 65 3
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/subscription_modifiers.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 2 11 66 3
set_throttle_rate 1 3 22 2
set_queue_length 1 3 18 2
time_remaining 1 2 24 1
handle_message 1 3 20 2
transition 4 7 39 1
finish 1 2 10 2
handle_message 2 3 24 2
transition 4 7 39 1
finish 1 2 10 2
__init__ 1 8 55 2
handle_message 3 8 47 2
transition 5 15 98 1
finish 2 6 35 2
run 11 20 155 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/outgoing_message.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 4 22 2
message 1 2 9 1
get_json_values 2 4 26 1
get_cbor_values 2 4 26 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/__init__.py
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/exceptions.py
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/ros_loader.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 2 17 2
__init__ 1 6 33 4
__init__ 1 6 35 5
get_message_class 1 2 11 1
get_service_class 1 2 11 1
get_message_instance 1 3 16 1
get_service_request_instance 1 3 17 1
get_service_response_instance 1 3 17 1
_get_msg_class 1 3 21 1
_get_srv_class 1 3 21 1
_get_class 3 13 95 4
_load_class 3 9 60 3
_splittype 5 7 67 1
_add_to_cache 1 4 27 4
_get_from_cache 2 7 36 3
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/message_conversion.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
configure 7 17 98 1
get_encoder 1 3 9 0
__init__ 1 5 23 2
__init__ 1 5 30 3
__init__ 2 13 55 5
extract_values 2 5 30 1
populate_instance 1 3 25 2
msg_instance_type_repr 3 6 63 1
msg_class_type_repr 1 3 28 1
_from_inst 14 23 180 2
_from_list_inst 6 10 86 2
_from_object_inst 2 6 47 2
_to_inst 8 13 124 5
_to_binary_inst 3 5 32 1
_to_time_inst 9 17 114 3
_to_primitive_inst 9 11 103 4
_to_list_inst 6 12 121 5
_to_object_inst 5 15 129 5
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/cbor_conversion.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
extract_cbor_values 13 31 240 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/services.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 2 17 2
__init__ 1 8 52 6
run 2 5 37 1
args_to_service_request_instance 3 7 58 3
call_service 4 19 141 3
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/topics.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 5 21 2
__init__ 1 9 32 4
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/internal/pngcompression.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
encode 2 13 107 1
decode 1 5 32 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/capabilities/subscribe.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 9 64 5
unregister 1 5 40 1
subscribe 1 26 98 8
unsubscribe 4 7 49 2
is_empty 1 2 15 1
_publish 1 2 22 2
on_msg 1 3 21 2
update_params.f 2 2 22 1
update_params 8 25 176 1
__init__ 1 5 41 2
subscribe 7 39 259 2
unsubscribe 8 30 187 2
publish 9 39 256 5
finish 2 6 44 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/capabilities/advertise_service.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 11 60 4
next_id 1 4 17 1
handle_request 2 15 93 3
handle_response 2 7 41 3
graceful_shutdown 3 11 72 1
__init__ 1 3 25 2
advertise_service 7 38 203 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/capabilities/unadvertise_service.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 3 25 2
unadvertise_service 7 41 184 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/capabilities/service_response.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 3 25 2
service_response 2 15 95 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/capabilities/advertise.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 5 32 4
unregister 1 2 17 1
register_advertisement 1 10 56 5
unregister_advertisement 3 5 35 2
is_empty 1 2 14 1
__init__ 3 7 64 2
advertise 7 30 203 2
unadvertise 8 29 175 2
finish 2 6 44 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/capabilities/fragmentation.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 2 15 2
fragment 4 25 155 4
_fragment_generator 2 7 74 4
_create_fragment 1 8 37 5
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/capabilities/call_service.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 3 25 2
call_service 6 32 216 2
_success 2 10 55 6
_failure 2 11 80 4
trim_servicename 2 4 23 1
extract_id 3 5 33 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/capabilities/defragmentation.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
spam 1 2 11 1
__init__ 2 5 38 1
__getattr__ 1 2 17 2
__setattr__ 1 2 21 3
__init__ 2 8 71 2
defragment 15 93 782 2
finish 1 3 18 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/capabilities/publish.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 3 6 54 2
publish 6 41 209 2
finish 2 5 34 1
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/util/cbor.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
dumps_int 7 17 122 1
_dumps_bignum_to_bytearray 2 6 35 1
dumps_float 1 2 16 1
_encode_type_num 10 18 155 2
_is_unicode 1 2 12 1
dumps_string 4 8 65 3
dumps_array 2 4 46 2
dumps_dict 4 13 119 2
dumps_bool 2 4 26 1
dumps_tag 1 2 29 2
_is_stringish 1 2 16 1
_is_intish 1 2 12 1
dumps 9 18 136 2
dump 1 3 28 3
__init__ 1 3 23 3
__repr__ 1 2 8 1
__eq__ 3 4 38 2
loads 2 5 30 1
load 1 2 14 1
_tag_aux 6 26 172 2
_read_byte 2 5 30 1
_loads_var_array 2 9 71 5
_loads_var_map 2 11 90 5
_loads_array 2 7 48 6
_loads_map 2 9 59 6
_loads 2 6 47 4
_loads_tb 23 64 488 5
loads_bytes 4 17 112 3
_bytes_to_biguint 2 6 26 1
tagify 6 12 69 2
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/util/__init__.py
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/protocol.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
is_number 2 6 18 1
has_binary 5 6 60 1
__init__ 2 9 71 3
incoming 25 67 388 2
outgoing 1 2 9 2
send 8 19 149 3
finish 2 3 18 1
serialize 6 12 78 3
deserialize 3 9 46 3
register_operation 1 2 18 3
unregister_operation 2 3 22 2
add_capability 1 2 19 2
log 8 14 110 4
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/rosbridge_protocol.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 2 5 41 4
Source file: /home/runner/work/autoware-iv-metrics-dashboard/autoware-iv-metrics-dashboard/ros_ws/src/vendor/rosbridge_suite/rosbridge_library/src/rosbridge_library/capability.py
Function name Cyclomatic complexity (20) LOC (200) Token count Parameter count (6)
__init__ 1 2 13 2
handle_message 1 2 9 2
finish 1 2 7 1
basic_type_check 9 17 86 3