id: 1 unit: export default() file: client/src/reducers/chatReducer.js start line: 38 end line: 106 size: 69 LOC McCabe index: 12 number of parameters: 2 id: 2 unit: export default() file: client/src/reducers/authReducer.js start line: 39 end line: 98 size: 60 LOC McCabe index: 13 number of parameters: 2 id: 3 unit: render() file: client/src/components/Rooms/CreateRoom.js start line: 70 end line: 126 size: 57 LOC McCabe index: 1 number of parameters: 0 id: 4 unit: render() file: client/src/components/Auth/Login.js start line: 67 end line: 119 size: 51 LOC McCabe index: 3 number of parameters: 0 id: 5 unit: export default() file: client/src/reducers/iotReducer.js start line: 33 end line: 74 size: 42 LOC McCabe index: 8 number of parameters: 2 id: 6 unit: render() file: client/src/components/Chat/Chat.js start line: 54 end line: 78 size: 23 LOC McCabe index: 1 number of parameters: 0 id: 7 unit: componentWillReceiveProps() file: client/src/components/App.js start line: 56 end line: 80 size: 22 LOC McCabe index: 6 number of parameters: 1 id: 8 unit: function checkValidServiceWorker() file: client/src/registerServiceWorker.js start line: 88 end line: 113 size: 22 LOC McCabe index: 3 number of parameters: 1 id: 9 unit: function buildCanonicalQueryString() file: client/src/lib/sigV4Client.js start line: 68 end line: 90 size: 21 LOC McCabe index: 5 number of parameters: 1 id: 10 unit: function registerValidSW() file: client/src/registerServiceWorker.js start line: 59 end line: 86 size: 21 LOC McCabe index: 3 number of parameters: 1 id: 11 unit: renderPageBody() file: client/src/components/App.js start line: 95 end line: 116 size: 20 LOC McCabe index: 2 number of parameters: 0 id: 12 unit: function buildAuthorizationHeader() file: client/src/lib/sigV4Client.js start line: 157 end line: 174 size: 18 LOC McCabe index: 1 number of parameters: 4 id: 13 unit: render() file: client/src/components/Rooms/Rooms.js start line: 31 end line: 47 size: 17 LOC McCabe index: 1 number of parameters: 0 id: 14 unit: initClient() file: client/src/lib/iot-client.js start line: 52 end line: 85 size: 16 LOC McCabe index: 12 number of parameters: 1 id: 15 unit: export default() file: client/src/reducers/unreadsReducer.js start line: 22 end line: 37 size: 16 LOC McCabe index: 4 number of parameters: 2 id: 16 unit: export default() file: client/src/reducers/messagesReducer.js start line: 20 end line: 35 size: 16 LOC McCabe index: 2 number of parameters: 2 id: 17 unit: render() file: client/src/components/Routers/RootRouter.js start line: 45 end line: 61 size: 16 LOC McCabe index: 1 number of parameters: 0 id: 18 unit: export default function register() file: client/src/registerServiceWorker.js start line: 34 end line: 57 size: 16 LOC McCabe index: 5 number of parameters: 0 id: 19 unit: function buildCanonicalRequest() file: client/src/lib/sigV4Client.js start line: 44 end line: 58 size: 15 LOC McCabe index: 1 number of parameters: 5 id: 20 unit: function buildCanonicalHeaders() file: client/src/lib/sigV4Client.js start line: 92 end line: 107 size: 15 LOC McCabe index: 4 number of parameters: 1 id: 21 unit: function buildStringToSign() file: client/src/lib/sigV4Client.js start line: 121 end line: 135 size: 15 LOC McCabe index: 1 number of parameters: 3 id: 22 unit: attachDebugHandlers() file: client/src/lib/iot-client.js start line: 97 end line: 113 size: 14 LOC McCabe index: 1 number of parameters: 0 id: 23 unit: export default() file: client/src/reducers/roomsReducer.js start line: 25 end line: 38 size: 14 LOC McCabe index: 3 number of parameters: 2 id: 24 unit: constructor() file: client/src/lib/iot-client.js start line: 30 end line: 42 size: 12 LOC McCabe index: 4 number of parameters: 2 id: 25 unit: export default() file: client/src/reducers/roomReducer.js start line: 23 end line: 34 size: 12 LOC McCabe index: 2 number of parameters: 2 id: 26 unit: export default() file: client/src/reducers/usersReducer.js start line: 20 end line: 30 size: 11 LOC McCabe index: 2 number of parameters: 2 id: 27 unit: constructor() file: client/src/components/Rooms/CreateRoom.js start line: 30 end line: 40 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 28 unit: function buildCanonicalSignedHeaders() file: client/src/lib/sigV4Client.js start line: 109 end line: 119 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 29 unit: function calculateSigningKey() file: client/src/lib/sigV4Client.js start line: 143 end line: 151 size: 9 LOC McCabe index: 1 number of parameters: 4 id: 30 unit: sanitizeRoomName() file: client/src/components/Rooms/CreateRoom.js start line: 55 end line: 68 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 31 unit: validateUserSession() file: client/src/components/Auth/Login.js start line: 59 end line: 65 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 32 unit: export default connect() file: client/src/components/Auth/Login.js start line: 142 end line: 148 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 33 unit: validateUserSession() file: client/src/components/Routers/RootRouter.js start line: 37 end line: 43 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 34 unit: onFormSubmit() file: client/src/components/Chat/Reply.js start line: 39 end line: 45 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 35 unit: componentDidMount() file: client/src/components/Chat/Chat.js start line: 35 end line: 41 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 36 unit: constructor() file: client/src/components/App.js start line: 38 end line: 44 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 37 unit: validateUserSession() file: client/src/components/App.js start line: 82 end line: 88 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 38 unit: export function unregister() file: client/src/registerServiceWorker.js start line: 115 end line: 121 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 39 unit: identityId: decodeURIComponent() file: api/src/user/get.js start line: 27 end line: 33 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 40 unit: attachConnectHandler() file: client/src/lib/iot-client.js start line: 147 end line: 152 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 41 unit: attachCloseHandler() file: client/src/lib/iot-client.js start line: 162 end line: 167 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 42 unit: onChange() file: client/src/components/Rooms/CreateRoom.js start line: 48 end line: 53 size: 6 LOC McCabe index: 2 number of parameters: 3 id: 43 unit: await invokeAPIGateway() file: client/src/lib/api-gateway.js start line: 66 end line: 70 size: 5 LOC McCabe index: 1 number of parameters: 4 id: 44 unit: await invokeAPIGateway() file: client/src/lib/api-gateway.js start line: 78 end line: 82 size: 5 LOC McCabe index: 1 number of parameters: 4 id: 45 unit: await invokeAPIGateway() file: client/src/lib/api-gateway.js start line: 90 end line: 94 size: 5 LOC McCabe index: 1 number of parameters: 4 id: 46 unit: await invokeAPIGateway() file: client/src/lib/api-gateway.js start line: 102 end line: 106 size: 5 LOC McCabe index: 1 number of parameters: 4 id: 47 unit: function buildCredentialScope() file: client/src/lib/sigV4Client.js start line: 137 end line: 141 size: 5 LOC McCabe index: 1 number of parameters: 3 id: 48 unit: onFormSubmit() file: client/src/components/Rooms/CreateRoom.js start line: 42 end line: 46 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 49 unit: constructor() file: client/src/components/Auth/Login.js start line: 37 end line: 41 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 50 unit: constructor() file: client/src/components/Auth/Register.js start line: 32 end line: 36 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 51 unit: handleSubmit() file: client/src/components/Auth/Register.js start line: 38 end line: 42 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 52 unit: constructor() file: client/src/components/Chat/Reply.js start line: 28 end line: 32 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 53 unit: scrollToBottomOfMessages() file: client/src/components/Chat/Chat.js start line: 48 end line: 52 size: 5 LOC McCabe index: 2 number of parameters: 0 id: 54 unit: componentDidMount() file: client/src/components/App.js start line: 50 end line: 54 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 55 unit: unsubscribe() file: client/src/lib/iot-client.js start line: 193 end line: 196 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 56 unit: handleSubmit() file: client/src/components/Auth/Login.js start line: 47 end line: 50 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 57 unit: onMessageChange() file: client/src/components/Chat/Reply.js start line: 34 end line: 37 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 58 unit: constructor() file: client/src/components/Chat/Chat.js start line: 30 end line: 33 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 59 unit: componentDidUpdate() file: client/src/components/Chat/Chat.js start line: 43 end line: 46 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 60 unit: signOut() file: client/src/components/App.js start line: 90 end line: 93 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 61 unit: function hash() file: client/src/lib/sigV4Client.js start line: 32 end line: 34 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 62 unit: function hexEncode() file: client/src/lib/sigV4Client.js start line: 36 end line: 38 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 63 unit: function hmac() file: client/src/lib/sigV4Client.js start line: 40 end line: 42 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 64 unit: function hashCanonicalRequest() file: client/src/lib/sigV4Client.js start line: 60 end line: 62 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 65 unit: function buildCanonicalUri() file: client/src/lib/sigV4Client.js start line: 64 end line: 66 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 66 unit: function calculateSignature() file: client/src/lib/sigV4Client.js start line: 153 end line: 155 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 67 unit: disconnect() file: client/src/lib/iot-client.js start line: 90 end line: 92 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 68 unit: updateWebSocketCredentials() file: client/src/lib/iot-client.js start line: 122 end line: 124 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 69 unit: attachMessageHandler() file: client/src/lib/iot-client.js start line: 135 end line: 137 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 70 unit: publish() file: client/src/lib/iot-client.js start line: 175 end line: 177 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 71 unit: subscribe() file: client/src/lib/iot-client.js start line: 184 end line: 186 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 72 unit: componentDidMount() file: client/src/components/Rooms/Rooms.js start line: 27 end line: 29 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 73 unit: componentWillMount() file: client/src/components/Auth/Login.js start line: 43 end line: 45 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 74 unit: handleChange() file: client/src/components/Auth/Login.js start line: 52 end line: 54 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 75 unit: handleChange() file: client/src/components/Auth/Register.js start line: 44 end line: 46 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 76 unit: componentWillMount() file: client/src/components/Routers/RootRouter.js start line: 30 end line: 32 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 77 unit: componentWillMount() file: client/src/components/App.js start line: 46 end line: 48 size: 3 LOC McCabe index: 1 number of parameters: 0