id: 1 unit: constructor() file: cdk/lib/newswires.ts start line: 48 end line: 280 size: 195 LOC McCabe index: 2 number of parameters: 3 id: 2 unit: private def processSearchParams() file: newswires/app/db/FingerpostWireEntry.scala start line: 172 end line: 300 size: 107 LOC McCabe index: 19 number of parameters: 1 id: 3 unit: constructor() file: cdk/lib/constructs/database.ts start line: 114 end line: 204 size: 82 LOC McCabe index: 2 number of parameters: 3 id: 4 unit: export function App() file: newswires/client/src/App.tsx start line: 84 end line: 165 size: 74 LOC McCabe index: 7 number of parameters: 0 id: 5 unit: function CategoryCodeTable() file: newswires/client/src/WireDetail.tsx start line: 71 end line: 149 size: 65 LOC McCabe index: 6 number of parameters: 1 id: 6 unit: item() file: poller-lambdas/src/pollers/reuters/reutersPoller.ts start line: 67 end line: 128 size: 61 LOC McCabe index: 1 number of parameters: 1 id: 7 unit: function itemWithContentToDesiredOutput() file: poller-lambdas/src/pollers/ap/apPoller.ts start line: 148 end line: 216 size: 58 LOC McCabe index: 3 number of parameters: 4 id: 8 unit: def localFlyway: Flyway = buildFlyway() file: db/flyway.sc start line: 95 end line: 159 size: 54 LOC McCabe index: 5 number of parameters: 1 id: 9 unit: private def paramToList[T]() file: newswires/app/controllers/QueryController.scala start line: 29 end line: 80 size: 48 LOC McCabe index: 2 number of parameters: 2 id: 10 unit: function MaybeSecondaryCardContent() file: newswires/client/src/WireItemList.tsx start line: 103 end line: 152 size: 48 LOC McCabe index: 8 number of parameters: 5 id: 11 unit: export function urlToConfig() file: newswires/client/src/urlState.ts start line: 29 end line: 81 size: 47 LOC McCabe index: 10 number of parameters: 1 id: 12 unit: function MetaTable() file: newswires/client/src/WireDetail.tsx start line: 151 end line: 201 size: 46 LOC McCabe index: 3 number of parameters: 1 id: 13 unit: def query() file: newswires/app/db/FingerpostWireEntry.scala start line: 361 end line: 416 size: 43 LOC McCabe index: 3 number of parameters: 6 id: 14 unit: private def log() file: newswires/app/lib/RequestLoggingFilter.scala start line: 50 end line: 96 size: 42 LOC McCabe index: 3 number of parameters: 4 id: 15 unit: function itemResponseToIngestionLambdaInput() file: poller-lambdas/src/pollers/reuters/reutersPoller.ts start line: 144 end line: 184 size: 41 LOC McCabe index: 1 number of parameters: 1 id: 16 unit: def getKeywords() file: newswires/app/db/FingerpostWireEntry.scala start line: 418 end line: 454 size: 36 LOC McCabe index: 3 number of parameters: 3 id: 17 unit: def load() file: newswires/app/AppLoader.scala start line: 14 end line: 54 size: 34 LOC McCabe index: 5 number of parameters: 1 id: 18 unit: private def proxyAsset() file: newswires/app/controllers/ViteController.scala start line: 119 end line: 154 size: 34 LOC McCabe index: 3 number of parameters: 2 id: 19 unit: function itemQuery() file: poller-lambdas/src/pollers/reuters/reutersPoller.ts start line: 65 end line: 98 size: 34 LOC McCabe index: 1 number of parameters: 1 id: 20 unit: private def buildWhereClauseParts() file: newswires/app/db/FingerpostWireEntry.scala start line: 302 end line: 337 size: 33 LOC McCabe index: 5 number of parameters: 3 id: 21 unit: function TitleContentForItem() file: newswires/client/src/WireDetail.tsx start line: 31 end line: 63 size: 33 LOC McCabe index: 5 number of parameters: 5 id: 22 unit: async function fetchWithReauth() file: poller-lambdas/src/pollers/reuters/reutersPoller.ts start line: 205 end line: 237 size: 33 LOC McCabe index: 3 number of parameters: 1 id: 23 unit: def configureRemoteDevDb() file: newswires/app/conf/Database.scala start line: 76 end line: 112 size: 32 LOC McCabe index: 1 number of parameters: 1 id: 24 unit: private def injectClientCodeIntoPageBody() file: newswires/app/controllers/ViteController.scala start line: 51 end line: 85 size: 30 LOC McCabe index: 1 number of parameters: 1 id: 25 unit: def apply() file: newswires/app/db/FingerpostWireEntry.scala start line: 111 end line: 139 size: 28 LOC McCabe index: 3 number of parameters: 1 id: 26 unit: def linkToComposer() file: newswires/app/controllers/QueryController.scala start line: 98 end line: 125 size: 28 LOC McCabe index: 5 number of parameters: 1 id: 27 unit: def infoCmd() file: db/flyway.sc start line: 27 end line: 63 size: 28 LOC McCabe index: 2 number of parameters: 2 id: 28 unit: function createTopicQueue() file: cdk/lib/wires-feeds.ts start line: 37 end line: 72 size: 28 LOC McCabe index: 1 number of parameters: 2 id: 29 unit: export default defineConfig() file: newswires/client/vite.config.ts start line: 7 end line: 32 size: 26 LOC McCabe index: 1 number of parameters: 1 id: 30 unit: export async function auth() file: poller-lambdas/src/pollers/reuters/auth.ts start line: 15 end line: 39 size: 25 LOC McCabe index: 2 number of parameters: 2 id: 31 unit: await fetchWithReauth() file: poller-lambdas/src/pollers/reuters/reutersPoller.ts start line: 288 end line: 312 size: 25 LOC McCabe index: 5 number of parameters: 1 id: 32 unit: def migrateCmd() file: db/flyway.sc start line: 65 end line: 93 size: 24 LOC McCabe index: 3 number of parameters: 2 id: 33 unit: def configureDeployedDb() file: newswires/app/conf/Database.scala start line: 49 end line: 74 size: 23 LOC McCabe index: 1 number of parameters: 1 id: 34 unit: override grantConnect() file: cdk/lib/constructs/database.ts start line: 207 end line: 231 size: 23 LOC McCabe index: 3 number of parameters: 1 id: 35 unit: async function getFeed() file: poller-lambdas/src/pollers/ap/apPoller.ts start line: 123 end line: 146 size: 22 LOC McCabe index: 4 number of parameters: 2 id: 36 unit: override def apply() file: newswires/app/lib/RequestLoggingFilter.scala start line: 25 end line: 48 size: 20 LOC McCabe index: 3 number of parameters: 1 id: 37 unit: function loadFromLocalStorage() file: newswires/client/src/context/localStorage.tsx start line: 3 end line: 22 size: 20 LOC McCabe index: 4 number of parameters: 2 id: 38 unit: export function inferRegionCategoryFromText() file: ingestion-lambda/src/categoryCodes.ts start line: 126 end line: 151 size: 20 LOC McCabe index: 5 number of parameters: 1 id: 39 unit: private def clamp() file: newswires/app/db/FingerpostWireEntry.scala start line: 141 end line: 160 size: 19 LOC McCabe index: 3 number of parameters: 3 id: 40 unit: def item() file: newswires/app/controllers/ViteController.scala start line: 87 end line: 106 size: 19 LOC McCabe index: 2 number of parameters: 1 id: 41 unit: def authAction() file: newswires/app/controllers/AppAuthActions.scala start line: 20 end line: 40 size: 19 LOC McCabe index: 2 number of parameters: 1 id: 42 unit: function getUpdatedHistory() file: newswires/client/src/context/SearchReducer.ts start line: 86 end line: 104 size: 19 LOC McCabe index: 4 number of parameters: 3 id: 43 unit: constructor() file: cdk/lib/wires-feeds.ts start line: 17 end line: 78 size: 19 LOC McCabe index: 1 number of parameters: 3 id: 44 unit: private[db] def buildWhereClause() file: newswires/app/db/FingerpostWireEntry.scala start line: 339 end line: 359 size: 18 LOC McCabe index: 5 number of parameters: 4 id: 45 unit: private def authActionWithPermission() file: newswires/app/controllers/AppAuthActions.scala start line: 42 end line: 62 size: 18 LOC McCabe index: 1 number of parameters: 2 id: 46 unit: function decideLabelForQueryBadge() file: newswires/client/src/SideNav.tsx start line: 25 end line: 44 size: 18 LOC McCabe index: 4 number of parameters: 1 id: 47 unit: export function lookupCatCodesWideSearch() file: newswires/client/src/catcodes-lookup.ts start line: 3 end line: 20 size: 18 LOC McCabe index: 6 number of parameters: 1 id: 48 unit: export function parseNitfContent() file: poller-lambdas/src/pollers/ap/parseNitfContent.ts start line: 27 end line: 47 size: 18 LOC McCabe index: 2 number of parameters: 1 id: 49 unit: def hasAccessPermission() file: newswires/app/controllers/PermissionsCheck.scala start line: 19 end line: 37 size: 17 LOC McCabe index: 2 number of parameters: 1 id: 50 unit: function parseColor() file: newswires/client/src/colour-utils.ts start line: 2 end line: 22 size: 17 LOC McCabe index: 5 number of parameters: 1 id: 51 unit: def sqlArrayToStringList() file: newswires/app/db/CustomMappers.scala start line: 13 end line: 31 size: 16 LOC McCabe index: 1 number of parameters: 1 id: 52 unit: def configureLocalDevDB() file: newswires/app/conf/Database.scala start line: 114 end line: 132 size: 16 LOC McCabe index: 1 number of parameters: 0 id: 53 unit: override def projectSettings = Seq() file: newswires/project/PlayVite.scala start line: 19 end line: 36 size: 16 LOC McCabe index: 2 number of parameters: 1 id: 54 unit: override def afterStarted() file: newswires/project/PlayVite.scala start line: 53 end line: 70 size: 16 LOC McCabe index: 4 number of parameters: 0 id: 55 unit: export function createLogger() file: shared/lambda-logging.ts start line: 25 end line: 40 size: 16 LOC McCabe index: 1 number of parameters: 1 id: 56 unit: value() file: poller-lambdas/localRun.ts start line: 62 end line: 77 size: 16 LOC McCabe index: 1 number of parameters: 0 id: 57 unit: void fakeInvoke() file: poller-lambdas/localRun.ts start line: 68 end line: 83 size: 16 LOC McCabe index: 1 number of parameters: 5 id: 58 unit: def merge() file: newswires/app/db/SearchParams.scala start line: 14 end line: 28 size: 15 LOC McCabe index: 3 number of parameters: 1 id: 59 unit: function unpackCategoryCodes() file: ingestion-lambda/src/categoryCodes.ts start line: 13 end line: 30 size: 15 LOC McCabe index: 2 number of parameters: 2 id: 60 unit: export function processFingerpostAAPCategoryCodes() file: ingestion-lambda/src/categoryCodes.ts start line: 63 end line: 80 size: 15 LOC McCabe index: 1 number of parameters: 1 id: 61 unit: def insertComposerId() file: newswires/app/db/FingerpostWireEntry.scala start line: 456 end line: 469 size: 14 LOC McCabe index: 1 number of parameters: 3 id: 62 unit: function appendQueryData() file: newswires/client/src/context/SearchReducer.ts start line: 71 end line: 84 size: 14 LOC McCabe index: 2 number of parameters: 2 id: 63 unit: export function nitfBlockToHtml() file: poller-lambdas/src/pollers/ap/parseNitfContent.ts start line: 13 end line: 25 size: 13 LOC McCabe index: 3 number of parameters: 1 id: 64 unit: def get() file: newswires/app/conf/SearchPresets.scala start line: 6 end line: 17 size: 12 LOC McCabe index: 11 number of parameters: 1 id: 65 unit: export function loadOrSetInLocalStorage() file: newswires/client/src/context/localStorage.tsx start line: 32 end line: 43 size: 12 LOC McCabe index: 2 number of parameters: 3 id: 66 unit: export async function createDbConnection() file: shared/rds.ts start line: 19 end line: 31 size: 12 LOC McCabe index: 3 number of parameters: 0 id: 67 unit: void fakeInvoke() file: poller-lambdas/localRun.ts start line: 84 end line: 95 size: 12 LOC McCabe index: 1 number of parameters: 5 id: 68 unit: selectedItemId ?() file: newswires/client/src/App.tsx start line: 320 end line: 330 size: 11 LOC McCabe index: 3 number of parameters: 0 id: 69 unit: successfulQueryHistory: getUpdatedHistory() file: newswires/client/src/context/SearchReducer.ts start line: 115 end line: 125 size: 11 LOC McCabe index: 2 number of parameters: 3 id: 70 unit: export function processFingerpostAFPCategoryCodes() file: ingestion-lambda/src/categoryCodes.ts start line: 83 end line: 96 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 71 unit: export function processUnknownFingerpostCategoryCodes() file: ingestion-lambda/src/categoryCodes.ts start line: 111 end line: 124 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 72 unit: lastUpdate: moment() file: newswires/client/src/context/SearchReducer.ts start line: 145 end line: 154 size: 10 LOC McCabe index: 2 number of parameters: 0 id: 73 unit: throw Error() file: poller-lambdas/localRun.ts start line: 107 end line: 118 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 74 unit: QueueUrl: getEnvironmentVariableOrCrash() file: poller-lambdas/src/index.ts start line: 67 end line: 76 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 75 unit: def discover() file: newswires/app/AppLoader.scala start line: 59 end line: 67 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 76 unit: def preview: Action[AnyContent] = addToken() file: newswires/app/controllers/ViteController.scala start line: 108 end line: 117 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 77 unit: export function isDefaultDateRange() file: newswires/client/src/dateHelpers.ts start line: 130 end line: 138 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 78 unit: function scrollElementIntoView() file: newswires/client/src/WireItemList.tsx start line: 154 end line: 162 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 79 unit: function handleFetchError() file: newswires/client/src/context/SearchContext.tsx start line: 147 end line: 156 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 80 unit: value() file: poller-lambdas/localRun.ts start line: 83 end line: 91 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 81 unit: function cleanAndDedupeKeywords() file: ingestion-lambda/src/handler.ts start line: 46 end line: 54 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 82 unit: export function processFingerpostAPCategoryCodes() file: ingestion-lambda/src/categoryCodes.ts start line: 52 end line: 61 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 83 unit: export function processFingerpostPACategoryCodes() file: ingestion-lambda/src/categoryCodes.ts start line: 98 end line: 109 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 84 unit: protected def buildLogMarker[T]() file: newswires/app/lib/RequestLoggingFilter.scala start line: 100 end line: 107 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 85 unit: label: decideLabelForQueryBadge() file: newswires/client/src/SideNav.tsx start line: 74 end line: 82 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 86 unit: export function formatTimestamp() file: newswires/client/src/formatTimestamp.ts start line: 4 end line: 11 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 87 unit: await handler() file: poller-lambdas/localRun.ts start line: 25 end line: 32 size: 8 LOC McCabe index: 1 number of parameters: 5 id: 88 unit: def getRequestId[T]() file: newswires/app/lib/RequestLoggingFilter.scala start line: 15 end line: 21 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 89 unit: def healthcheck() file: newswires/app/controllers/ManagementController.scala start line: 14 end line: 20 size: 7 LOC McCabe index: 2 number of parameters: 0 id: 90 unit: def keywords() file: newswires/app/controllers/QueryController.scala start line: 82 end line: 88 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 91 unit: def item() file: newswires/app/controllers/QueryController.scala start line: 90 end line: 96 size: 7 LOC McCabe index: 3 number of parameters: 2 id: 92 unit: results: transformQueryResults() file: newswires/client/src/context/SearchReducer.ts start line: 113 end line: 134 size: 7 LOC McCabe index: 4 number of parameters: 1 id: 93 unit: results: transformQueryResults() file: newswires/client/src/context/SearchReducer.ts start line: 156 end line: 162 size: 7 LOC McCabe index: 3 number of parameters: 1 id: 94 unit: export function saveToLocalStorage() file: newswires/client/src/context/localStorage.tsx start line: 24 end line: 30 size: 7 LOC McCabe index: 2 number of parameters: 2 id: 95 unit: export function getFromEnv() file: shared/config.ts start line: 23 end line: 29 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 96 unit: for await() file: poller-lambdas/src/pollers/reuters/reutersPoller.ts start line: 273 end line: 279 size: 7 LOC McCabe index: 3 number of parameters: 1 id: 97 unit: throw Error() file: cdk/lib/constructs/pollerLambda.ts start line: 62 end line: 72 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 98 unit: private def select() file: newswires/app/controllers/ViteController.scala start line: 42 end line: 47 size: 6 LOC McCabe index: 1 number of parameters: 3 id: 99 unit: function hexValue() file: newswires/client/src/colour-utils.ts start line: 24 end line: 29 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 100 unit: queryData: mergeQueryData() file: newswires/client/src/context/SearchReducer.ts start line: 137 end line: 142 size: 6 LOC McCabe index: 1 number of parameters: 3 id: 101 unit: export function processReutersDestinationCodes() file: ingestion-lambda/src/categoryCodes.ts start line: 44 end line: 50 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 102 unit: preset: togglePreset() file: newswires/client/src/SideNav.tsx start line: 148 end line: 152 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 103 unit: export function getSupplierInfo() file: newswires/client/src/suppliers.ts start line: 57 end line: 61 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 104 unit: labels: lookupCatCodesWideSearch() file: newswires/client/src/WireDetail.tsx start line: 82 end line: 87 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 105 unit: ingestedAt: convertToLocalDateString() file: newswires/client/src/context/SearchReducer.ts start line: 29 end line: 38 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 106 unit: override def beforeStarted() file: newswires/project/PlayVite.scala start line: 47 end line: 51 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 107 unit: function isFeedListData() file: poller-lambdas/src/pollers/ap/apPoller.ts start line: 111 end line: 115 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 108 unit: function isFeedListError() file: poller-lambdas/src/pollers/ap/apPoller.ts start line: 117 end line: 121 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 109 unit: def update() file: newswires/app/lib/LogMarker.scala start line: 18 end line: 21 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 110 unit: isSelected: isCodeInSearch() file: newswires/client/src/WireDetail.tsx start line: 83 end line: 87 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 111 unit: export function lightShadeOf() file: newswires/client/src/colour-utils.ts start line: 44 end line: 48 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 112 unit: function mergeQueryData() file: newswires/client/src/context/SearchReducer.ts start line: 33 end line: 36 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 113 unit: lastUpdate: moment() file: newswires/client/src/context/SearchReducer.ts start line: 122 end line: 125 size: 4 LOC McCabe index: 2 number of parameters: 0 id: 114 unit: queryData: appendQueryData() file: newswires/client/src/context/SearchReducer.ts start line: 154 end line: 157 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 115 unit: override def afterStopped() file: newswires/project/PlayVite.scala start line: 72 end line: 75 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 116 unit: await queueNextInvocation() file: poller-lambdas/src/index.ts start line: 100 end line: 103 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 117 unit: export class GuDatabase extends GuAppAwareConstruct() file: cdk/lib/constructs/database.ts start line: 96 end line: 232 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 118 unit: def gitHash() file: newswires/app/controllers/ManagementController.scala start line: 22 end line: 24 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 119 unit: function presetName() file: newswires/client/src/SideNav.tsx start line: 53 end line: 55 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 120 unit: value ?() file: newswires/client/src/SearchSummary.tsx start line: 77 end line: 79 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 121 unit: description: convertToLocalDateString() file: newswires/client/src/WireDetail.tsx start line: 166 end line: 168 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 122 unit: function tint() file: newswires/client/src/colour-utils.ts start line: 31 end line: 33 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 123 unit: function shade() file: newswires/client/src/colour-utils.ts start line: 35 end line: 37 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 124 unit: void loadMoreResults() file: newswires/client/src/WireItemList.tsx start line: 43 end line: 45 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 125 unit: function decideMainHeadingContent() file: newswires/client/src/WireItemList.tsx start line: 85 end line: 87 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 126 unit: value() file: poller-lambdas/localRun.ts start line: 95 end line: 97 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 127 unit: await queueNextInvocation() file: poller-lambdas/src/index.ts start line: 105 end line: 107 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 128 unit: credentials: fromNodeProviderChain() file: poller-lambdas/src/config.ts start line: 15 end line: 17 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 129 unit: private get cfnResource() file: cdk/lib/constructs/database.ts start line: 110 end line: 112 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 130 unit: function categoryCodeToString() file: ingestion-lambda/src/categoryCodes.ts start line: 32 end line: 34 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 131 unit: throw Error() file: poller-lambdas/src/config.ts start line: 28 end line: 29 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 132 unit: secretName: getPollerSecretName() file: cdk/lib/constructs/pollerLambda.ts start line: 41 end line: 42 size: 2 LOC McCabe index: 2 number of parameters: 2 id: 133 unit: function replacePrefixesFromLookup() file: ingestion-lambda/src/categoryCodes.ts start line: 36 end line: 37 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 134 unit: await pollerFunction() file: poller-lambdas/src/index.ts start line: 52 end line: 52 size: 1 LOC McCabe index: 1 number of parameters: 3