id: 1 unit: function editOnBeforeInput() file: src/component/handlers/edit/editOnBeforeInput.js start line: 82 end line: 287 size: 109 LOC McCabe index: 21 number of parameters: 2 id: 2 unit: function editOnInput() file: src/component/handlers/edit/editOnInput.js start line: 62 end line: 226 size: 102 LOC McCabe index: 24 number of parameters: 2 id: 3 unit: function setDraftEditorSelection() file: src/component/selection/setDraftEditorSelection.js start line: 113 end line: 233 size: 95 LOC McCabe index: 14 number of parameters: 5 id: 4 unit: entity: getEntityKeyForSelection() file: src/component/handlers/edit/editOnPaste.js start line: 66 end line: 186 size: 93 LOC McCabe index: 22 number of parameters: 1 id: 5 unit: function editOnKeyDown() file: src/component/handlers/edit/editOnKeyDown.js start line: 86 end line: 204 size: 84 LOC McCabe index: 28 number of parameters: 2 id: 6 unit: function RichEditorExample() file: website/src/components/DraftEditorExample/index.js start line: 17 end line: 105 size: 82 LOC McCabe index: 7 number of parameters: 1 id: 7 unit: function getCharacterRemovalRange() file: src/model/modifier/getCharacterRemovalRange.js start line: 33 end line: 112 size: 80 LOC McCabe index: 9 number of parameters: 5 id: 8 unit: function getUpdatedSelectionState() file: src/component/selection/getUpdatedSelectionState.js start line: 21 end line: 111 size: 78 LOC McCabe index: 19 number of parameters: 5 id: 9 unit: text: nullthrows() file: src/component/base/DraftEditor.react.js start line: 298 end line: 371 size: 64 LOC McCabe index: 9 number of parameters: 1 id: 10 unit: static push() file: src/model/immutable/EditorState.js start line: 438 end line: 511 size: 63 LOC McCabe index: 9 number of parameters: 4 id: 11 unit: function expandRangeToStartOfLine() file: src/component/selection/expandRangeToStartOfLine.js start line: 110 end line: 208 size: 59 LOC McCabe index: 13 number of parameters: 1 id: 12 unit: function getPointForNonTextNode() file: src/component/selection/getDraftEditorSelectionWithNodes.js start line: 152 end line: 226 size: 55 LOC McCabe index: 9 number of parameters: 3 id: 13 unit: function getDefaultKeyBinding() file: src/component/utils/getDefaultKeyBinding.js start line: 61 end line: 114 size: 53 LOC McCabe index: 43 number of parameters: 1 id: 14 unit: function addFocusToSelection() file: src/component/selection/setDraftEditorSelection.js start line: 238 end line: 327 size: 53 LOC McCabe index: 14 number of parameters: 4 id: 15 unit: function getEntityRemovalRange() file: src/model/modifier/getCharacterRemovalRange.js start line: 114 end line: 179 size: 52 LOC McCabe index: 6 number of parameters: 7 id: 16 unit: function editOnPaste() file: src/component/handlers/edit/editOnPaste.js start line: 35 end line: 222 size: 51 LOC McCabe index: 8 number of parameters: 2 id: 17 unit: constructor() file: src/component/base/DraftEditor.react.js start line: 193 end line: 248 size: 51 LOC McCabe index: 4 number of parameters: 1 id: 18 unit: static set() file: src/model/immutable/EditorState.js start line: 200 end line: 255 size: 50 LOC McCabe index: 8 number of parameters: 2 id: 19 unit: function keyCommandTransposeCharacters() file: src/component/handlers/edit/commands/keyCommandTransposeCharacters.js start line: 24 end line: 87 size: 49 LOC McCabe index: 5 number of parameters: 1 id: 20 unit: function removeTextWithStrategy() file: src/component/handlers/edit/commands/removeTextWithStrategy.js start line: 29 end line: 79 size: 46 LOC McCabe index: 13 number of parameters: 2 id: 21 unit: function modifyInlineStyle() file: src/model/transaction/ContentStateInlineStyle.js start line: 39 end line: 88 size: 45 LOC McCabe index: 6 number of parameters: 4 id: 22 unit: children: List() file: src/model/transaction/moveBlockInContentState.js start line: 125 end line: 171 size: 38 LOC McCabe index: 2 number of parameters: 1 id: 23 unit: static fromJS() file: src/model/immutable/EditorState.js start line: 161 end line: 198 size: 38 LOC McCabe index: 8 number of parameters: 1 id: 24 unit: function editOnSelect() file: src/component/handlers/edit/editOnSelect.js start line: 22 end line: 61 size: 37 LOC McCabe index: 6 number of parameters: 1 id: 25 unit: function onKeyCommand() file: src/component/handlers/edit/editOnKeyDown.js start line: 42 end line: 75 size: 34 LOC McCabe index: 13 number of parameters: 3 id: 26 unit: function insertTextIntoContentState() file: src/model/transaction/insertTextIntoContentState.js start line: 24 end line: 71 size: 34 LOC McCabe index: 4 number of parameters: 4 id: 27 unit: function moveSelectionBackward() file: src/component/handlers/edit/commands/moveSelectionBackward.js start line: 27 end line: 62 size: 32 LOC McCabe index: 3 number of parameters: 2 id: 28 unit: function keyCommandBackspaceToStartOfLine() file: src/component/handlers/edit/commands/keyCommandBackspaceToStartOfLine.js start line: 23 end line: 61 size: 32 LOC McCabe index: 4 number of parameters: 2 id: 29 unit: function getRangeBoundingClientRect() file: src/component/selection/getRangeBoundingClientRect.js start line: 28 end line: 68 size: 31 LOC McCabe index: 7 number of parameters: 1 id: 30 unit: function removeEntitiesAtEdges() file: src/model/transaction/removeEntitiesAtEdges.js start line: 24 end line: 62 size: 31 LOC McCabe index: 5 number of parameters: 2 id: 31 unit: function adjustBlockDepthForContentState() file: src/model/transaction/adjustBlockDepthForContentState.js start line: 17 end line: 47 size: 29 LOC McCabe index: 2 number of parameters: 4 id: 32 unit: key: generateRandomKey() file: src/model/modifier/exploration/NestedRichTextEditorUtil.js start line: 500 end line: 533 size: 29 LOC McCabe index: 3 number of parameters: 0 id: 33 unit: function getSelectionForEvent() file: src/component/handlers/drag/DraftEditorDragHandler.js start line: 32 end line: 68 size: 28 LOC McCabe index: 3 number of parameters: 2 id: 34 unit: function getDraftEditorSelection() file: src/component/selection/getDraftEditorSelection.js start line: 24 end line: 55 size: 27 LOC McCabe index: 4 number of parameters: 2 id: 35 unit: function getRangeClientRectsChrome() file: src/component/selection/getRangeClientRects.js start line: 25 end line: 55 size: 27 LOC McCabe index: 4 number of parameters: 1 id: 36 unit: function getDraftEditorSelectionWithNodes() file: src/component/selection/getDraftEditorSelectionWithNodes.js start line: 33 end line: 118 size: 27 LOC McCabe index: 4 number of parameters: 6 id: 37 unit: function addPointToSelection() file: src/component/selection/setDraftEditorSelection.js start line: 329 end line: 361 size: 26 LOC McCabe index: 5 number of parameters: 4 id: 38 unit: function keyCommandPlainBackspace() file: src/component/handlers/edit/commands/keyCommandPlainBackspace.js start line: 25 end line: 52 size: 26 LOC McCabe index: 4 number of parameters: 1 id: 39 unit: function keyCommandPlainDelete() file: src/component/handlers/edit/commands/keyCommandPlainDelete.js start line: 25 end line: 53 size: 26 LOC McCabe index: 4 number of parameters: 1 id: 40 unit: function getRemovalRange() file: src/model/transaction/removeEntitiesAtEdges.js start line: 69 end line: 104 size: 26 LOC McCabe index: 2 number of parameters: 3 id: 41 unit: function applyEntityToContentState() file: src/model/transaction/applyEntityToContentState.js start line: 20 end line: 47 size: 26 LOC McCabe index: 3 number of parameters: 3 id: 42 unit: static undo() file: src/model/immutable/EditorState.js start line: 517 end line: 545 size: 26 LOC McCabe index: 3 number of parameters: 1 id: 43 unit: static redo() file: src/model/immutable/EditorState.js start line: 551 end line: 579 size: 26 LOC McCabe index: 3 number of parameters: 1 id: 44 unit: function getEntityKeyForSelection() file: src/model/entity/getEntityKeyForSelection.js start line: 24 end line: 53 size: 26 LOC McCabe index: 5 number of parameters: 2 id: 45 unit: _addImgNode() file: src/model/encoding/convertFromHTMLToContentBlocks.js start line: 611 end line: 641 size: 26 LOC McCabe index: 6 number of parameters: 2 id: 46 unit: function isSelectionAtLeafStart() file: src/component/selection/isSelectionAtLeafStart.js start line: 16 end line: 46 size: 25 LOC McCabe index: 4 number of parameters: 1 id: 47 unit: function editOnBlur() file: src/component/handlers/edit/editOnBlur.js start line: 22 end line: 56 size: 25 LOC McCabe index: 8 number of parameters: 2 id: 48 unit: function removeForBlock() file: src/model/transaction/removeEntitiesAtEdges.js start line: 106 end line: 132 size: 25 LOC McCabe index: 9 number of parameters: 3 id: 49 unit: function anonymizeTextWithin() file: src/component/selection/setDraftEditorSelection.js start line: 50 end line: 76 size: 24 LOC McCabe index: 7 number of parameters: 2 id: 50 unit: function areRectsOnOneLine() file: src/component/selection/expandRangeToStartOfLine.js start line: 55 end line: 87 size: 24 LOC McCabe index: 6 number of parameters: 2 id: 51 unit: function getEncodedInlinesForType() file: src/model/encoding/encodeInlineStyleRanges.js start line: 31 end line: 59 size: 24 LOC McCabe index: 1 number of parameters: 3 id: 52 unit: function moveSelectionForward() file: src/component/handlers/edit/commands/moveSelectionForward.js start line: 27 end line: 54 size: 23 LOC McCabe index: 2 number of parameters: 2 id: 53 unit: nextSibling: getNextValidSibling() file: src/model/transaction/removeRangeFromContentState.js start line: 213 end line: 240 size: 23 LOC McCabe index: 5 number of parameters: 3 id: 54 unit: constructor() file: src/component/handlers/composition/DOMObserver.js start line: 50 end line: 71 size: 22 LOC McCabe index: 3 number of parameters: 1 id: 55 unit: function keyCommandBackspaceWord() file: src/component/handlers/edit/commands/keyCommandBackspaceWord.js start line: 24 end line: 48 size: 22 LOC McCabe index: 4 number of parameters: 1 id: 56 unit: function editOnCut() file: src/component/handlers/edit/editOnCut.js start line: 33 end line: 64 size: 22 LOC McCabe index: 3 number of parameters: 2 id: 57 unit: function replaceText() file: src/component/handlers/edit/editOnBeforeInput.js start line: 51 end line: 71 size: 21 LOC McCabe index: 1 number of parameters: 5 id: 58 unit: function keyCommandUndo() file: src/component/handlers/edit/commands/keyCommandUndo.js start line: 16 end line: 49 size: 21 LOC McCabe index: 3 number of parameters: 3 id: 59 unit: function insertIntoList() file: src/model/transaction/insertIntoList.js start line: 19 end line: 39 size: 21 LOC McCabe index: 3 number of parameters: 3 id: 60 unit: function findRangesImmutable() file: src/model/immutable/findRangesImmutable.js start line: 23 end line: 46 size: 21 LOC McCabe index: 5 number of parameters: 3 id: 61 unit: characterList: List() file: src/model/immutable/ContentBlockNode.js start line: 43 end line: 66 size: 21 LOC McCabe index: 1 number of parameters: 0 id: 62 unit: function BlockStyleControls() file: website/src/components/DraftEditorExample/index.js start line: 157 end line: 177 size: 20 LOC McCabe index: 1 number of parameters: 2 id: 63 unit: function VideoContainer() file: website/src/pages/index.js start line: 28 end line: 47 size: 20 LOC McCabe index: 1 number of parameters: 0 id: 64 unit: function modifyBlockForContentState() file: src/model/transaction/modifyBlockForContentState.js start line: 22 end line: 42 size: 20 LOC McCabe index: 1 number of parameters: 3 id: 65 unit: data: Map() file: src/model/immutable/ContentBlockNode.js start line: 44 end line: 66 size: 20 LOC McCabe index: 1 number of parameters: 0 id: 66 unit: _trimCurrentText() file: src/model/encoding/convertFromHTMLToContentBlocks.js start line: 552 end line: 575 size: 20 LOC McCabe index: 4 number of parameters: 0 id: 67 unit: function insertFragment() file: src/component/handlers/edit/editOnPaste.js start line: 224 end line: 244 size: 19 LOC McCabe index: 2 number of parameters: 3 id: 68 unit: function keyCommandDeleteWord() file: src/component/handlers/edit/commands/keyCommandDeleteWord.js start line: 24 end line: 46 size: 19 LOC McCabe index: 3 number of parameters: 1 id: 69 unit: function regenerateTreeForNewDecorator() file: src/model/immutable/EditorState.js start line: 661 end line: 679 size: 19 LOC McCabe index: 1 number of parameters: 5 id: 70 unit: function encodeEntityRanges() file: src/model/encoding/encodeEntityRanges.js start line: 25 end line: 44 size: 19 LOC McCabe index: 1 number of parameters: 2 id: 71 unit: const joinClasses:() file: src/component/contents/DraftEditorContents-core.react.js start line: 24 end line: 42 size: 18 LOC McCabe index: 1 number of parameters: 2 id: 72 unit: function getSelectionOffsetKeyForNode() file: src/component/selection/getSelectionOffsetKeyForNode.js start line: 20 end line: 37 size: 18 LOC McCabe index: 5 number of parameters: 1 id: 73 unit: function getAnonymizedDOM() file: src/component/selection/setDraftEditorSelection.js start line: 29 end line: 48 size: 18 LOC McCabe index: 3 number of parameters: 2 id: 74 unit: function getLineHeightPx() file: src/component/selection/expandRangeToStartOfLine.js start line: 20 end line: 41 size: 18 LOC McCabe index: 1 number of parameters: 1 id: 75 unit: function keyCommandMoveSelectionToEndOfBlock() file: src/component/handlers/edit/commands/keyCommandMoveSelectionToEndOfBlock.js start line: 19 end line: 36 size: 18 LOC McCabe index: 1 number of parameters: 1 id: 76 unit: static createContentBlockFromJS() file: src/model/immutable/ContentState.js start line: 291 end line: 309 size: 18 LOC McCabe index: 3 number of parameters: 1 id: 77 unit: function regenerateTreeForNewBlocks() file: src/model/immutable/EditorState.js start line: 634 end line: 651 size: 18 LOC McCabe index: 1 number of parameters: 4 id: 78 unit: selectionState: getUpdatedSelectionState() file: src/component/selection/getDraftEditorSelectionWithNodes.js start line: 109 end line: 130 size: 17 LOC McCabe index: 5 number of parameters: 5 id: 79 unit: function callDeprecatedHandler() file: src/component/handlers/edit/editOnKeyDown.js start line: 92 end line: 108 size: 17 LOC McCabe index: 2 number of parameters: 1 id: 80 unit: function applyEntityToContentBlock() file: src/model/transaction/applyEntityToContentBlock.js start line: 18 end line: 34 size: 17 LOC McCabe index: 2 number of parameters: 4 id: 81 unit: data: Map() file: src/model/transaction/splitBlockInContentState.js start line: 126 end line: 144 size: 17 LOC McCabe index: 2 number of parameters: 0 id: 82 unit: static create() file: src/model/immutable/CharacterMetadata.js start line: 89 end line: 111 size: 17 LOC McCabe index: 3 number of parameters: 1 id: 83 unit: function decodeInlineStyleRanges() file: src/model/encoding/decodeInlineStyleRanges.js start line: 27 end line: 43 size: 17 LOC McCabe index: 3 number of parameters: 2 id: 84 unit: children: List() file: src/model/encoding/convertFromHTMLToContentBlocks.js start line: 397 end line: 419 size: 17 LOC McCabe index: 2 number of parameters: 0 id: 85 unit: function StyleButton() file: website/src/components/DraftEditorExample/index.js start line: 126 end line: 142 size: 16 LOC McCabe index: 2 number of parameters: 4 id: 86 unit: function InlineStyleControls() file: website/src/components/DraftEditorExample/index.js start line: 186 end line: 201 size: 16 LOC McCabe index: 1 number of parameters: 2 id: 87 unit: function readFile() file: src/component/utils/getTextContentFromFiles.js start line: 50 end line: 82 size: 16 LOC McCabe index: 6 number of parameters: 2 id: 88 unit: function getAnonymizedEditorDOM() file: src/component/selection/setDraftEditorSelection.js start line: 78 end line: 96 size: 16 LOC McCabe index: 4 number of parameters: 2 id: 89 unit: function keyCommandMoveSelectionToStartOfBlock() file: src/component/handlers/edit/commands/keyCommandMoveSelectionToStartOfBlock.js start line: 21 end line: 36 size: 16 LOC McCabe index: 1 number of parameters: 1 id: 90 unit: static createFromText() file: src/model/immutable/ContentState.js start line: 262 end line: 277 size: 16 LOC McCabe index: 1 number of parameters: 2 id: 91 unit: static createWithContent() file: src/model/immutable/EditorState.js start line: 134 end line: 149 size: 16 LOC McCabe index: 3 number of parameters: 2 id: 92 unit: static moveSelectionToEnd() file: src/model/immutable/EditorState.js start line: 402 end line: 418 size: 16 LOC McCabe index: 1 number of parameters: 1 id: 93 unit: function lookUpwardForInlineStyle() file: src/model/immutable/EditorState.js start line: 746 end line: 762 size: 16 LOC McCabe index: 2 number of parameters: 2 id: 94 unit: function generateLeaves() file: src/model/immutable/BlockTree.js start line: 127 end line: 143 size: 16 LOC McCabe index: 1 number of parameters: 2 id: 95 unit: function decodeEntityRanges() file: src/model/encoding/decodeEntityRanges.js start line: 23 end line: 40 size: 16 LOC McCabe index: 3 number of parameters: 2 id: 96 unit: function isInstanceOfNode() file: src/component/utils/isInstanceOfNode.js start line: 12 end line: 27 size: 15 LOC McCabe index: 6 number of parameters: 1 id: 97 unit: selectionState: getUpdatedSelectionState() file: src/component/selection/getDraftEditorSelectionWithNodes.js start line: 49 end line: 83 size: 15 LOC McCabe index: 2 number of parameters: 2 id: 98 unit: children: List() file: src/model/immutable/ContentBlockNode.js start line: 49 end line: 66 size: 15 LOC McCabe index: 1 number of parameters: 0 id: 99 unit: function getInlineStyleForCollapsedSelection() file: src/model/immutable/EditorState.js start line: 699 end line: 721 size: 15 LOC McCabe index: 3 number of parameters: 2 id: 100 unit: function getInlineStyleForNonCollapsedSelection() file: src/model/immutable/EditorState.js start line: 723 end line: 744 size: 15 LOC McCabe index: 3 number of parameters: 2 id: 101 unit: key: generateRandomKey() file: src/model/modifier/exploration/DraftTreeOperations.js start line: 165 end line: 182 size: 15 LOC McCabe index: 2 number of parameters: 0 id: 102 unit: _toFlatContentBlocks() file: src/model/encoding/convertFromHTMLToContentBlocks.js start line: 731 end line: 745 size: 15 LOC McCabe index: 1 number of parameters: 1 id: 103 unit: function getSafeBodyFromHTML() file: src/model/paste/getSafeBodyFromHTML.js start line: 24 end line: 40 size: 15 LOC McCabe index: 4 number of parameters: 1 id: 104 unit: function findAncestorOffsetKey() file: src/component/selection/findAncestorOffsetKey.js start line: 19 end line: 32 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 105 unit: function editOnFocus() file: src/component/handlers/edit/editOnFocus.js start line: 19 end line: 44 size: 14 LOC McCabe index: 4 number of parameters: 2 id: 106 unit: function getRangesForDraftEntity() file: src/model/modifier/getRangesForDraftEntity.js start line: 27 end line: 42 size: 14 LOC McCabe index: 1 number of parameters: 2 id: 107 unit: function isHastePath() file: scripts/jest/hasteImpl.js start line: 55 end line: 69 size: 13 LOC McCabe index: 5 number of parameters: 1 id: 108 unit: anonymizedDom: getAnonymizedEditorDOM() file: src/component/selection/setDraftEditorSelection.js start line: 276 end line: 288 size: 13 LOC McCabe index: 4 number of parameters: 2 id: 109 unit: function getVisibleSelectionRect() file: src/component/selection/getVisibleSelectionRect.js start line: 25 end line: 43 size: 13 LOC McCabe index: 6 number of parameters: 1 id: 110 unit: function insertTextAtSelection() file: src/component/handlers/drag/DraftEditorDragHandler.js start line: 174 end line: 186 size: 13 LOC McCabe index: 1 number of parameters: 3 id: 111 unit: function encodeInlineStyleRanges() file: src/model/encoding/encodeInlineStyleRanges.js start line: 65 end line: 79 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 112 unit: process() file: scripts/jest/preprocessor.js start line: 15 end line: 26 size: 12 LOC McCabe index: 1 number of parameters: 2 id: 113 unit: function isHTMLElement() file: src/component/utils/isHTMLElement.js start line: 12 end line: 23 size: 12 LOC McCabe index: 5 number of parameters: 1 id: 114 unit: function getNodeLength() file: src/component/selection/expandRangeToStartOfLine.js start line: 92 end line: 104 size: 12 LOC McCabe index: 5 number of parameters: 1 id: 115 unit: function endDrag() file: src/component/handlers/drag/DraftEditorDragHandler.js start line: 141 end line: 157 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 116 unit: let nextNonDescendantBlock: ?() file: src/model/transaction/exploration/getNextDelimiterBlockKey.js start line: 43 end line: 54 size: 12 LOC McCabe index: 5 number of parameters: 1 id: 117 unit: blockMap: updateBlockMapLinks() file: src/model/transaction/moveBlockInContentState.js start line: 232 end line: 243 size: 12 LOC McCabe index: 1 number of parameters: 5 id: 118 unit: blockMap: OrderedMap() file: src/model/immutable/ContentState.js start line: 282 end line: 296 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 119 unit: function updateSelection() file: src/model/immutable/EditorState.js start line: 602 end line: 613 size: 12 LOC McCabe index: 1 number of parameters: 3 id: 120 unit: function mustBecomeBoundary() file: src/model/immutable/EditorState.js start line: 686 end line: 697 size: 12 LOC McCabe index: 4 number of parameters: 2 id: 121 unit: function canOccupySlice() file: src/model/decorators/CompositeDraftDecorator.js start line: 113 end line: 124 size: 12 LOC McCabe index: 3 number of parameters: 3 id: 122 unit: _addTextNode() file: src/model/encoding/convertFromHTMLToContentBlocks.js start line: 580 end line: 599 size: 12 LOC McCabe index: 4 number of parameters: 2 id: 123 unit: inlineStyleRanges: encodeInlineStyleRanges() file: src/model/encoding/convertFromDraftStateToRaw.js start line: 38 end line: 50 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 124 unit: function() file: gulpfile.js start line: 159 end line: 169 size: 11 LOC McCabe index: 2 number of parameters: 2 id: 125 unit: function getFirstLeaf() file: src/component/selection/getDraftEditorSelectionWithNodes.js start line: 123 end line: 134 size: 11 LOC McCabe index: 5 number of parameters: 1 id: 126 unit: function getLastLeaf() file: src/component/selection/getDraftEditorSelectionWithNodes.js start line: 139 end line: 150 size: 11 LOC McCabe index: 5 number of parameters: 1 id: 127 unit: function moveText() file: src/component/handlers/drag/DraftEditorDragHandler.js start line: 159 end line: 169 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 128 unit: nextSibling: getNextValidSibling() file: src/model/transaction/removeRangeFromContentState.js start line: 224 end line: 236 size: 11 LOC McCabe index: 5 number of parameters: 3 id: 129 unit: entityRanges: encodeEntityRanges() file: src/model/encoding/convertFromDraftStateToRaw.js start line: 39 end line: 50 size: 11 LOC McCabe index: 2 number of parameters: 2 id: 130 unit: function getContentEditableContainer() file: src/component/utils/getContentEditableContainer.js start line: 19 end line: 28 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 131 unit: key: generateRandomKey() file: src/component/utils/exploration/DraftTreeAdapter.js start line: 136 end line: 146 size: 10 LOC McCabe index: 2 number of parameters: 0 id: 132 unit: function getFragmentFromSelection() file: src/component/handlers/edit/getFragmentFromSelection.js start line: 19 end line: 30 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 133 unit: function editOnCompositionStart() file: src/component/handlers/edit/editOnCompositionStart.js start line: 22 end line: 32 size: 10 LOC McCabe index: 1 number of parameters: 2 id: 134 unit: prevSibling: getPrevValidSibling() file: src/model/transaction/removeRangeFromContentState.js start line: 225 end line: 236 size: 10 LOC McCabe index: 5 number of parameters: 3 id: 135 unit: static fromJS() file: src/model/immutable/ContentState.js start line: 279 end line: 289 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 136 unit: redoStack: Stack() file: src/model/immutable/EditorState.js start line: 503 end line: 518 size: 10 LOC McCabe index: 2 number of parameters: 0 id: 137 unit: static createEmpty() file: src/model/immutable/SelectionState.js start line: 139 end line: 148 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 138 unit: static applyEntity() file: src/model/immutable/CharacterMetadata.js start line: 72 end line: 81 size: 10 LOC McCabe index: 2 number of parameters: 2 id: 139 unit: function occupySlice() file: src/model/decorators/CompositeDraftDecorator.js start line: 130 end line: 139 size: 10 LOC McCabe index: 2 number of parameters: 4 id: 140 unit: function getTextAfterNearestEntity() file: src/model/entity/getTextAfterNearestEntity.js start line: 20 end line: 32 size: 10 LOC McCabe index: 3 number of parameters: 2 id: 141 unit: function createCharacterList() file: src/model/encoding/createCharacterList.js start line: 22 end line: 31 size: 10 LOC McCabe index: 1 number of parameters: 2 id: 142 unit: data: Map() file: src/model/encoding/convertFromRawToDraftState.js start line: 54 end line: 65 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 143 unit: _appendText() file: src/model/encoding/convertFromHTMLToContentBlocks.js start line: 538 end line: 547 size: 10 LOC McCabe index: 1 number of parameters: 2 id: 144 unit: function getTextContentFromFiles() file: src/component/utils/getTextContentFromFiles.js start line: 30 end line: 45 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 145 unit: function editOnCopy() file: src/component/handlers/edit/editOnCopy.js start line: 23 end line: 34 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 146 unit: function areTextBlocksAndClipboardEqual() file: src/component/handlers/edit/editOnPaste.js start line: 246 end line: 254 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 147 unit: let blockNode: ?() file: src/model/transaction/removeRangeFromContentState.js start line: 59 end line: 67 size: 9 LOC McCabe index: 6 number of parameters: 1 id: 148 unit: characterList: insertIntoList() file: src/model/transaction/insertFragmentIntoContentState.js start line: 69 end line: 78 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 149 unit: static createWithText() file: src/model/immutable/EditorState.js start line: 124 end line: 132 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 150 unit: undoStack: Stack() file: src/model/immutable/EditorState.js start line: 144 end line: 153 size: 9 LOC McCabe index: 2 number of parameters: 0 id: 151 unit: static create() file: src/model/immutable/EditorState.js start line: 151 end line: 159 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 152 unit: static forceSelection() file: src/model/immutable/EditorState.js start line: 389 end line: 397 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 153 unit: function generateNewTreeMap() file: src/model/immutable/EditorState.js start line: 619 end line: 627 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 154 unit: static fromJS() file: src/model/immutable/CharacterMetadata.js start line: 113 end line: 121 size: 9 LOC McCabe index: 3 number of parameters: 3 id: 155 unit: characterList: decodeCharacterList() file: src/model/encoding/convertFromRawToDraftState.js start line: 55 end line: 65 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 156 unit: function getBlockStyle() file: website/src/components/DraftEditorExample/index.js start line: 117 end line: 124 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 157 unit: function isSoftNewlineEvent() file: src/component/utils/isSoftNewlineEvent.js start line: 16 end line: 23 size: 8 LOC McCabe index: 4 number of parameters: 1 id: 158 unit: reader.onload = function() file: src/component/utils/getTextContentFromFiles.js start line: 70 end line: 77 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 159 unit: key: nullthrows() file: src/component/selection/getDraftEditorSelectionWithNodes.js start line: 90 end line: 102 size: 8 LOC McCabe index: 3 number of parameters: 1 id: 160 unit: function removeFragment() file: src/component/handlers/edit/editOnCut.js start line: 66 end line: 73 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 161 unit: characterList: insertIntoList() file: src/model/transaction/insertTextIntoContentState.js start line: 55 end line: 64 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 162 unit: redoStack: Stack() file: src/model/immutable/EditorState.js start line: 145 end line: 153 size: 8 LOC McCabe index: 2 number of parameters: 0 id: 163 unit: treeMap: generateNewTreeMap() file: src/model/immutable/EditorState.js start line: 155 end line: 163 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 164 unit: function generateRandomKey() file: src/model/keys/generateRandomKey.js start line: 17 end line: 24 size: 8 LOC McCabe index: 4 number of parameters: 0 id: 165 unit: function() file: gulpfile.js start line: 148 end line: 154 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 166 unit: function uuid() file: src/util/uuid.js start line: 15 end line: 21 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 167 unit: readFile() file: src/component/utils/getTextContentFromFiles.js start line: 37 end line: 43 size: 7 LOC McCabe index: 3 number of parameters: 2 id: 168 unit: function onInputType() file: src/component/handlers/edit/editOnInput.js start line: 31 end line: 37 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 169 unit: function keyCommandInsertNewline() file: src/component/handlers/edit/commands/keyCommandInsertNewline.js start line: 17 end line: 23 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 170 unit: nextSibling: getNextValidSibling() file: src/model/transaction/removeRangeFromContentState.js start line: 164 end line: 172 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 171 unit: nextSibling: getNextValidSibling() file: src/model/transaction/removeRangeFromContentState.js start line: 174 end line: 182 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 172 unit: redoStack: Stack() file: src/model/immutable/EditorState.js start line: 108 end line: 116 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 173 unit: static moveFocusToEnd() file: src/model/immutable/EditorState.js start line: 425 end line: 431 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 174 unit: static applyStyle() file: src/model/immutable/CharacterMetadata.js start line: 56 end line: 62 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 175 unit: static removeStyle() file: src/model/immutable/CharacterMetadata.js start line: 64 end line: 70 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 176 unit: function filterKey() file: src/model/entity/getEntityKeyForSelection.js start line: 59 end line: 65 size: 7 LOC McCabe index: 3 number of parameters: 2 id: 177 unit: function ClientOnly() file: website/src/pages/index.js start line: 21 end line: 26 size: 6 LOC McCabe index: 3 number of parameters: 2 id: 178 unit: module.exports = function() file: src/stubs/gkx.js start line: 13 end line: 18 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 179 unit: function getOwnObjectValues() file: src/util/getOwnObjectValues.js start line: 19 end line: 24 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 180 unit: function isHTMLImageElement() file: src/component/utils/isHTMLImageElement.js start line: 14 end line: 19 size: 6 LOC McCabe index: 4 number of parameters: 1 id: 181 unit: function getZCommand() file: src/component/utils/getDefaultKeyBinding.js start line: 36 end line: 41 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 182 unit: function getDeleteCommand() file: src/component/utils/getDefaultKeyBinding.js start line: 43 end line: 49 size: 6 LOC McCabe index: 4 number of parameters: 1 id: 183 unit: function getBackspaceCommand() file: src/component/utils/getDefaultKeyBinding.js start line: 51 end line: 56 size: 6 LOC McCabe index: 4 number of parameters: 1 id: 184 unit: function isHTMLBRElement() file: src/component/utils/isHTMLBRElement.js start line: 14 end line: 19 size: 6 LOC McCabe index: 4 number of parameters: 1 id: 185 unit: function getWindowForNode() file: src/component/utils/getWindowForNode.js start line: 12 end line: 17 size: 6 LOC McCabe index: 4 number of parameters: 1 id: 186 unit: function getCorrectDocumentFromNode() file: src/component/utils/getCorrectDocumentFromNode.js start line: 12 end line: 17 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 187 unit: function isHTMLAnchorElement() file: src/component/utils/isHTMLAnchorElement.js start line: 14 end line: 19 size: 6 LOC McCabe index: 4 number of parameters: 1 id: 188 unit: function isElement() file: src/component/utils/isElement.js start line: 12 end line: 17 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 189 unit: key: nullthrows() file: src/component/selection/getDraftEditorSelectionWithNodes.js start line: 84 end line: 89 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 190 unit: function startDOMObserver() file: src/component/handlers/composition/DraftEditorCompositionHandler.js start line: 53 end line: 58 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 191 unit: function mustPreventDefaultForCharacter() file: src/component/handlers/edit/editOnBeforeInput.js start line: 40 end line: 45 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 192 unit: nextSibling: getNextValidSibling() file: src/model/transaction/removeRangeFromContentState.js start line: 156 end line: 163 size: 6 LOC McCabe index: 1 number of parameters: 3 id: 193 unit: prevSibling: getPrevValidSibling() file: src/model/transaction/removeRangeFromContentState.js start line: 165 end line: 172 size: 6 LOC McCabe index: 1 number of parameters: 3 id: 194 unit: prevSibling: getPrevValidSibling() file: src/model/transaction/removeRangeFromContentState.js start line: 175 end line: 182 size: 6 LOC McCabe index: 1 number of parameters: 3 id: 195 unit: static mergeEntityMaps() file: src/model/immutable/ContentState.js start line: 216 end line: 221 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 196 unit: characterList: List() file: src/model/immutable/ContentBlock.js start line: 31 end line: 38 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 197 unit: function haveEqualStyle() file: src/model/immutable/ContentBlock.js start line: 137 end line: 142 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 198 unit: function haveEqualEntity() file: src/model/immutable/ContentBlock.js start line: 144 end line: 149 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 199 unit: static setInlineStyleOverride() file: src/model/immutable/EditorState.js start line: 313 end line: 318 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 200 unit: static acceptSelection() file: src/model/immutable/EditorState.js start line: 370 end line: 375 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 201 unit: function getRemovableWord() file: src/model/modifier/DraftRemovableWord.js start line: 58 end line: 63 size: 6 LOC McCabe index: 3 number of parameters: 2 id: 202 unit: key: generateRandomKey() file: src/model/modifier/AtomicBlockUtils.js start line: 65 end line: 71 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 203 unit: function getDecorationsChecker() file: src/model/decorators/CompositeDraftDecorator.js start line: 83 end line: 91 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 204 unit: _addBreakNode() file: src/model/encoding/convertFromHTMLToContentBlocks.js start line: 601 end line: 606 size: 6 LOC McCabe index: 2 number of parameters: 2 id: 205 unit: function getNodeLength() file: src/component/selection/setDraftEditorSelection.js start line: 98 end line: 102 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 206 unit: onCharData: ?() file: src/component/handlers/composition/DOMObserver.js start line: 44 end line: 48 size: 5 LOC McCabe index: 2 number of parameters: 3 id: 207 unit: _update() file: src/component/base/DraftEditor.react.js start line: 77 end line: 126 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 208 unit: prevSibling: getPrevValidSibling() file: src/model/transaction/removeRangeFromContentState.js start line: 157 end line: 163 size: 5 LOC McCabe index: 1 number of parameters: 3 id: 209 unit: nextSibling: getNextValidSibling() file: src/model/transaction/removeRangeFromContentState.js start line: 190 end line: 196 size: 5 LOC McCabe index: 1 number of parameters: 3 id: 210 unit: prevSibling: getPrevValidSibling() file: src/model/transaction/removeRangeFromContentState.js start line: 197 end line: 203 size: 5 LOC McCabe index: 1 number of parameters: 3 id: 211 unit: children: List() file: src/model/encoding/convertFromRawToDraftState.js start line: 172 end line: 182 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 212 unit: constructor() file: src/component/contents/DraftEditorTextNode.react.js start line: 73 end line: 78 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 213 unit: function getTextContentLength() file: src/component/selection/getDraftEditorSelectionWithNodes.js start line: 234 end line: 237 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 214 unit: function editOnDragOver() file: src/component/handlers/edit/editOnDragOver.js start line: 19 end line: 22 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 215 unit: function editOnDragStart() file: src/component/handlers/edit/editOnDragStart.js start line: 19 end line: 22 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 216 unit: static createFromBlockArray() file: src/model/immutable/ContentState.js start line: 241 end line: 245 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 217 unit: data: Map() file: src/model/immutable/ContentBlock.js start line: 33 end line: 38 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 218 unit: undoStack: Stack() file: src/model/immutable/EditorState.js start line: 111 end line: 116 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 219 unit: key: generateRandomKey() file: src/model/modifier/AtomicBlockUtils.js start line: 72 end line: 76 size: 4 LOC McCabe index: 2 number of parameters: 0 id: 220 unit: function isNewline() file: src/component/contents/DraftEditorTextNode.react.js start line: 27 end line: 29 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 221 unit: useNewlineChar ?() file: src/component/contents/DraftEditorTextNode.react.js start line: 43 end line: 45 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 222 unit: useNewlineChar ?() file: src/component/contents/DraftEditorTextNode.react.js start line: 52 end line: 54 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 223 unit: function splitTextIntoTextBlocks() file: src/component/utils/splitTextIntoTextBlocks.js start line: 16 end line: 18 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 224 unit: function shouldRemoveWord() file: src/component/utils/getDefaultKeyBinding.js start line: 29 end line: 31 size: 3 LOC McCabe index: 3 number of parameters: 1 id: 225 unit: function notEmptyKey() file: src/component/utils/draftKeyUtils.js start line: 16 end line: 18 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 226 unit: function isEventHandled() file: src/component/utils/isEventHandled.js start line: 20 end line: 22 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 227 unit: reader.onerror = function() file: src/component/utils/getTextContentFromFiles.js start line: 78 end line: 80 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 228 unit: : function() file: src/component/selection/getRangeClientRects.js start line: 63 end line: 65 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 229 unit: blockRendererFn() file: src/component/base/DraftEditor.react.js start line: 140 end line: 142 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 230 unit: blockStyleFn() file: src/component/base/DraftEditor.react.js start line: 143 end line: 145 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 231 unit: constructor() file: src/model/immutable/ContentBlock.js start line: 53 end line: 55 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 232 unit: constructor() file: src/model/immutable/ContentBlockNode.js start line: 84 end line: 87 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 233 unit: static createEmpty() file: src/model/immutable/EditorState.js start line: 120 end line: 122 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 234 unit: constructor() file: src/model/immutable/EditorState.js start line: 585 end line: 587 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 235 unit: const returnTrue = function() file: src/model/immutable/BlockTree.js start line: 25 end line: 27 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 236 unit: function areEqual() file: src/model/immutable/BlockTree.js start line: 145 end line: 147 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 237 unit: characterList: List() file: src/model/modifier/AtomicBlockUtils.js start line: 68 end line: 71 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 238 unit: constructor() file: src/model/decorators/CompositeDraftDecorator.js start line: 46 end line: 51 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 239 unit: function sanitizeDraftText() file: src/model/encoding/sanitizeDraftText.js start line: 16 end line: 18 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 240 unit: function mockUUID() file: src/model/keys/mockUUID.js start line: 16 end line: 18 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 241 unit: characterList: List() file: src/model/paste/DraftPasteProcessor.js start line: 66 end line: 70 size: 3 LOC McCabe index: 3 number of parameters: 2 id: 242 unit: anonymizedDom: getAnonymizedEditorDOM() file: src/component/selection/setDraftEditorSelection.js start line: 259 end line: 260 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 243 unit: anonymizedDom: getAnonymizedEditorDOM() file: src/component/selection/setDraftEditorSelection.js start line: 340 end line: 341 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 244 unit: const selectionHandler:() file: src/component/handlers/edit/DraftEditorEditHandler.js start line: 34 end line: 35 size: 2 LOC McCabe index: 3 number of parameters: 1 id: 245 unit: initODS: function() file: src/stubs/DraftEffects.js start line: 12 end line: 12 size: 1 LOC McCabe index: 1 number of parameters: 0 id: 246 unit: handleExtensionCausedError: function() file: src/stubs/DraftEffects.js start line: 13 end line: 13 size: 1 LOC McCabe index: 1 number of parameters: 0 id: 247 unit: editorRef?: ?() file: src/component/base/DraftEditorProps.js start line: 64 end line: 64 size: 1 LOC McCabe index: 2 number of parameters: 1 id: 248 unit: prevSibling: getPrevValidSibling() file: src/model/transaction/removeRangeFromContentState.js start line: 214 end line: 240 size: 1 LOC McCabe index: 1 number of parameters: 3