id: 1 unit: function parseAppleReceiptInfo() file: typescript/src/pubsub/apple-common.ts start line: 130 end line: 279 size: 149 LOC McCabe index: 35 number of parameters: 1 id: 2 unit: def update() file: adjust_report_etl/connector.py start line: 0 end line: 0 size: 135 LOC McCabe index: 15 number of parameters: 2 id: 3 unit: function parseNotification() file: typescript/src/pubsub/apple-common.ts start line: 414 end line: 518 size: 94 LOC McCabe index: 30 number of parameters: 1 id: 4 unit: export async function toDynamoEvent_apple_async() file: typescript/src/pubsub/apple.ts start line: 13 end line: 90 size: 66 LOC McCabe index: 7 number of parameters: 2 id: 5 unit: export async function handler() file: typescript/src/soft-opt-ins/dlq-processor.ts start line: 27 end line: 111 size: 65 LOC McCabe index: 12 number of parameters: 1 id: 6 unit: def schema() file: adjust_report_etl/connector.py start line: 0 end line: 0 size: 64 LOC McCabe index: 1 number of parameters: 1 id: 7 unit: export function toSensiblePayloadFormat() file: typescript/src/services/appleValidateReceipts.ts start line: 163 end line: 287 size: 58 LOC McCabe index: 5 number of parameters: 2 id: 8 unit: export async function processAcquisition() file: typescript/src/soft-opt-ins/processSubscription.ts start line: 127 end line: 200 size: 53 LOC McCabe index: 10 number of parameters: 2 id: 9 unit: export async function handler() file: typescript/src/subscription-status/googleSubStatus.ts start line: 45 end line: 105 size: 52 LOC McCabe index: 11 number of parameters: 1 id: 10 unit: function parsePendingRenewalInfo() file: typescript/src/pubsub/apple-common.ts start line: 324 end line: 374 size: 51 LOC McCabe index: 18 number of parameters: 1 id: 11 unit: export async function parseStoreAndSend_async() file: typescript/src/pubsub/pubsub.ts start line: 31 end line: 83 size: 50 LOC McCabe index: 6 number of parameters: 2 id: 12 unit: export async function parseAndStoreLink() file: typescript/src/link/link.ts start line: 85 end line: 133 size: 49 LOC McCabe index: 10 number of parameters: 2 id: 13 unit: export function buildHandler() file: typescript/src/feast/pubsub/google.ts start line: 25 end line: 78 size: 49 LOC McCabe index: 7 number of parameters: 2 id: 14 unit: export async function getGoogleSubResponse() file: typescript/src/update-subs/google.ts start line: 69 end line: 118 size: 47 LOC McCabe index: 6 number of parameters: 1 id: 15 unit: export async function handler() file: typescript/src/link/deleteLink.ts start line: 74 end line: 134 size: 46 LOC McCabe index: 10 number of parameters: 1 id: 16 unit: export async function handler() file: typescript/src/soft-opt-ins/acquisitions.ts start line: 8 end line: 69 size: 46 LOC McCabe index: 8 number of parameters: 1 id: 17 unit: async function enqueueUnstoredPurchaseToken() file: typescript/src/link/link.ts start line: 17 end line: 74 size: 45 LOC McCabe index: 6 number of parameters: 1 id: 18 unit: def commonSettings() file: build.sbt start line: 54 end line: 97 size: 44 LOC McCabe index: 1 number of parameters: 1 id: 19 unit: export function buildHandler() file: typescript/src/feast/pubsub/apple.ts start line: 22 end line: 72 size: 44 LOC McCabe index: 6 number of parameters: 2 id: 20 unit: export async function toAppleSubscription_async() file: typescript/src/update-subs/apple.ts start line: 13 end line: 63 size: 43 LOC McCabe index: 6 number of parameters: 1 id: 21 unit: async function getSubscriptions() file: typescript/src/user/user.ts start line: 50 end line: 100 size: 42 LOC McCabe index: 6 number of parameters: 1 id: 22 unit: async function payloadToResponse() file: typescript/src/promotional-offers/appleFetchOfferDetails.ts start line: 20 end line: 86 size: 42 LOC McCabe index: 1 number of parameters: 1 id: 23 unit: export async function handler() file: typescript/src/export/exportHistoricalData.ts start line: 87 end line: 159 size: 41 LOC McCabe index: 6 number of parameters: 1 id: 24 unit: export async function toDynamoEvent_google_async() file: typescript/src/pubsub/google-common.ts start line: 150 end line: 193 size: 40 LOC McCabe index: 3 number of parameters: 2 id: 25 unit: export async function handler() file: typescript/src/user/user.ts start line: 111 end line: 153 size: 39 LOC McCabe index: 10 number of parameters: 1 id: 26 unit: function checkResponseStatus() file: typescript/src/services/appleValidateReceipts.ts start line: 123 end line: 161 size: 39 LOC McCabe index: 11 number of parameters: 1 id: 27 unit: function getReceiptInfo() file: typescript/src/services/appleValidateReceipts.ts start line: 182 end line: 225 size: 39 LOC McCabe index: 6 number of parameters: 0 id: 28 unit: export async function handler() file: typescript/src/export/exportSubscriptions-v2.ts start line: 14 end line: 63 size: 38 LOC McCabe index: 10 number of parameters: 0 id: 29 unit: export async function getUserId() file: typescript/src/utils/guIdentityApi.ts start line: 75 end line: 117 size: 37 LOC McCabe index: 5 number of parameters: 1 id: 30 unit: export async function parseAndStoreSubscriptionUpdate() file: typescript/src/update-subs/updatesub.ts start line: 31 end line: 66 size: 36 LOC McCabe index: 5 number of parameters: 2 id: 31 unit: function parseUnifiedReceipt() file: typescript/src/pubsub/apple-common.ts start line: 376 end line: 412 size: 35 LOC McCabe index: 7 number of parameters: 1 id: 32 unit: async function getUserEmailAddress() file: typescript/src/soft-opt-ins/processSubscription.ts start line: 29 end line: 68 size: 35 LOC McCabe index: 9 number of parameters: 2 id: 33 unit: export async function handler() file: typescript/src/export/exportSubscriptions.ts start line: 10 end line: 48 size: 33 LOC McCabe index: 5 number of parameters: 0 id: 34 unit: async function getSubscriptionStatusFromDynamo() file: typescript/src/subscription-status/googleSubStatus.ts start line: 135 end line: 167 size: 32 LOC McCabe index: 5 number of parameters: 2 id: 35 unit: export async function getIdentityIdFromBraze() file: typescript/src/services/braze.ts start line: 13 end line: 47 size: 32 LOC McCabe index: 4 number of parameters: 1 id: 36 unit: function recursivelyFetchConfig() file: typescript/src/utils/ssmConfig.ts start line: 7 end line: 36 size: 30 LOC McCabe index: 4 number of parameters: 2 id: 37 unit: async function getSqsClientForSoftOptIns() file: typescript/src/utils/aws.ts start line: 46 end line: 83 size: 30 LOC McCabe index: 6 number of parameters: 0 id: 38 unit: async function updateParallelTestTable() file: typescript/src/subscription-status/googleSubStatus.ts start line: 169 end line: 200 size: 30 LOC McCabe index: 2 number of parameters: 2 id: 39 unit: async function getSqsClientForComms() file: typescript/src/utils/aws.ts start line: 85 end line: 120 size: 29 LOC McCabe index: 5 number of parameters: 0 id: 40 unit: export function parsePayload() file: typescript/src/pubsub/google-common.ts start line: 75 end line: 104 size: 28 LOC McCabe index: 4 number of parameters: 1 id: 41 unit: export async function handler() file: typescript/src/subscription-status/appleSubStatus.ts start line: 75 end line: 103 size: 28 LOC McCabe index: 3 number of parameters: 1 id: 42 unit: export async function handler() file: typescript/src/export/exportEvents.ts start line: 23 end line: 56 size: 27 LOC McCabe index: 5 number of parameters: 1 id: 43 unit: async function recursivelyFetchSqsMessages() file: typescript/src/export/exportHistoricalData.ts start line: 12 end line: 38 size: 27 LOC McCabe index: 4 number of parameters: 3 id: 44 unit: async function getSubscriptionStatusFromGoogle() file: typescript/src/subscription-status/googleSubStatus.ts start line: 107 end line: 133 size: 27 LOC McCabe index: 4 number of parameters: 4 id: 45 unit: function callValidateReceipt() file: typescript/src/services/appleValidateReceipts.ts start line: 95 end line: 121 size: 27 LOC McCabe index: 4 number of parameters: 3 id: 46 unit: export function buildHandler() file: typescript/src/feast/update-subs/apple.ts start line: 139 end line: 165 size: 26 LOC McCabe index: 1 number of parameters: 5 id: 47 unit: function debugCleanPayload() file: typescript/src/pubsub/apple-common.ts start line: 101 end line: 124 size: 24 LOC McCabe index: 7 number of parameters: 3 id: 48 unit: export function parsePayload() file: typescript/src/pubsub/apple-common.ts start line: 520 end line: 544 size: 23 LOC McCabe index: 3 number of parameters: 1 id: 49 unit: export async function fetchMetadata() file: typescript/src/pubsub/google-common.ts start line: 120 end line: 148 size: 23 LOC McCabe index: 3 number of parameters: 1 id: 50 unit: export async function fetchGoogleSubscriptionV2() file: typescript/src/services/google-play-v2.ts start line: 36 end line: 147 size: 23 LOC McCabe index: 3 number of parameters: 2 id: 51 unit: function toResponse() file: typescript/src/subscription-status/appleSubStatus.ts start line: 33 end line: 56 size: 22 LOC McCabe index: 2 number of parameters: 1 id: 52 unit: async function sendSoftOptIns() file: typescript/src/soft-opt-ins/processSubscription.ts start line: 70 end line: 96 size: 22 LOC McCabe index: 2 number of parameters: 4 id: 53 unit: constructor() file: typescript/src/models/subscriptionEvent.ts start line: 89 end line: 109 size: 21 LOC McCabe index: 1 number of parameters: 0 id: 54 unit: export async function putMetric() file: typescript/src/utils/aws.ts start line: 134 end line: 156 size: 21 LOC McCabe index: 1 number of parameters: 2 id: 55 unit: export async function handler() file: typescript/src/promotional-offers/appleFetchOfferDetails.ts start line: 88 end line: 108 size: 21 LOC McCabe index: 2 number of parameters: 1 id: 56 unit: function parseExpirationIntent() file: typescript/src/pubsub/apple-common.ts start line: 303 end line: 322 size: 20 LOC McCabe index: 8 number of parameters: 1 id: 57 unit: def sendABatch() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/cloudwatch/Cloudwatch.scala start line: 52 end line: 71 size: 18 LOC McCabe index: 2 number of parameters: 1 id: 58 unit: async function disableSoftOptIns() file: typescript/src/link/deleteLink.ts start line: 50 end line: 72 size: 18 LOC McCabe index: 2 number of parameters: 3 id: 59 unit: promotional_offer_id: extractPromotionalOfferId() file: typescript/src/pubsub/apple-common.ts start line: 510 end line: 528 size: 18 LOC McCabe index: 2 number of parameters: 1 id: 60 unit: function getAccessToken() file: typescript/src/services/google-play.ts start line: 25 end line: 42 size: 18 LOC McCabe index: 2 number of parameters: 1 id: 61 unit: function getAccessToken() file: typescript/src/services/google-play-v2.ts start line: 199 end line: 216 size: 18 LOC McCabe index: 2 number of parameters: 1 id: 62 unit: async function deleteAllSqsMessages() file: typescript/src/export/exportHistoricalData.ts start line: 50 end line: 68 size: 17 LOC McCabe index: 2 number of parameters: 2 id: 63 unit: promotional_offer_name: extractPromotionalOfferName() file: typescript/src/pubsub/apple-common.ts start line: 511 end line: 528 size: 17 LOC McCabe index: 2 number of parameters: 1 id: 64 unit: final def sendMetricsSoFar() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/cloudwatch/Cloudwatch.scala start line: 74 end line: 89 size: 16 LOC McCabe index: 3 number of parameters: 3 id: 65 unit: function getOktaStageParameters() file: typescript/src/utils/guIdentityApi.ts start line: 58 end line: 73 size: 16 LOC McCabe index: 2 number of parameters: 1 id: 66 unit: async function deleteUserSubscription() file: typescript/src/link/deleteLink.ts start line: 31 end line: 48 size: 16 LOC McCabe index: 4 number of parameters: 1 id: 67 unit: async function getNumberOfMessagesNotVisible() file: typescript/src/export/exportHistoricalData.ts start line: 70 end line: 85 size: 16 LOC McCabe index: 3 number of parameters: 1 id: 68 unit: product_id: extractProductId() file: typescript/src/pubsub/apple-common.ts start line: 512 end line: 528 size: 16 LOC McCabe index: 2 number of parameters: 1 id: 69 unit: def execute() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/lambda/LambdaApiGateway.scala start line: 78 end line: 93 size: 15 LOC McCabe index: 4 number of parameters: 2 id: 70 unit: private def objectReadAndClose() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/lambda/LambdaApiGateway.scala start line: 95 end line: 110 size: 15 LOC McCabe index: 1 number of parameters: 1 id: 71 unit: export function getConfigValue() file: typescript/src/utils/ssmConfig.ts start line: 51 end line: 65 size: 15 LOC McCabe index: 4 number of parameters: 2 id: 72 unit: softOptInProductName: mapPlatformToSoftOptInProductName() file: typescript/src/user/user.ts start line: 93 end line: 120 size: 15 LOC McCabe index: 3 number of parameters: 1 id: 73 unit: purchase_date_ms: purchaseDateMs() file: typescript/src/pubsub/apple-common.ts start line: 513 end line: 528 size: 15 LOC McCabe index: 2 number of parameters: 1 id: 74 unit: function logClientServerStatusDiff() file: typescript/src/subscription-status/appleSubStatus.ts start line: 58 end line: 73 size: 15 LOC McCabe index: 4 number of parameters: 2 id: 75 unit: async function retryInSandboxIfNecessary() file: typescript/src/services/appleValidateReceipts.ts start line: 289 end line: 303 size: 15 LOC McCabe index: 3 number of parameters: 3 id: 76 unit: export function validateReceipt() file: typescript/src/services/appleValidateReceipts.ts start line: 305 end line: 319 size: 15 LOC McCabe index: 1 number of parameters: 3 id: 77 unit: def accessToken() file: scala/google-oauth/src/main/scala/com.gu.mobilepurchases.googleoauth/lambda/GoogleOAuth.scala start line: 19 end line: 35 size: 14 LOC McCabe index: 4 number of parameters: 0 id: 78 unit: export async function sendToSqsSoftOptIns() file: typescript/src/utils/aws.ts start line: 178 end line: 191 size: 14 LOC McCabe index: 1 number of parameters: 3 id: 79 unit: export async function sendToSqsComms() file: typescript/src/utils/aws.ts start line: 193 end line: 206 size: 14 LOC McCabe index: 1 number of parameters: 3 id: 80 unit: expires_date_ms: expiresDateMs() file: typescript/src/pubsub/apple-common.ts start line: 514 end line: 528 size: 14 LOC McCabe index: 2 number of parameters: 1 id: 81 unit: function expiryDate() file: typescript/src/services/appleValidateReceipts.ts start line: 167 end line: 180 size: 14 LOC McCabe index: 3 number of parameters: 1 id: 82 unit: constructor() file: typescript/src/models/subscription.ts start line: 104 end line: 116 size: 13 LOC McCabe index: 1 number of parameters: 0 id: 83 unit: export function sendToSqs() file: typescript/src/utils/aws.ts start line: 158 end line: 170 size: 13 LOC McCabe index: 1 number of parameters: 3 id: 84 unit: readNext() file: typescript/src/export/dynamoStream.ts start line: 25 end line: 37 size: 13 LOC McCabe index: 3 number of parameters: 0 id: 85 unit: export function toSqsSubReference() file: typescript/src/pubsub/apple.ts start line: 92 end line: 112 size: 13 LOC McCabe index: 3 number of parameters: 1 id: 86 unit: startTime: parseNullableDate() file: typescript/src/services/google-play-v2.ts start line: 124 end line: 137 size: 13 LOC McCabe index: 5 number of parameters: 1 id: 87 unit: export function optionalMsToDate() file: typescript/src/utils/dates.ts start line: 3 end line: 14 size: 12 LOC McCabe index: 3 number of parameters: 1 id: 88 unit: export function parseAppleLinkPayload() file: typescript/src/link/apple-utils.ts start line: 30 end line: 41 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 89 unit: function platformToPackage() file: typescript/src/link/google.ts start line: 37 end line: 48 size: 12 LOC McCabe index: 4 number of parameters: 1 id: 90 unit: function toSqsPayload() file: typescript/src/link/apple.ts start line: 21 end line: 48 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 91 unit: function parseBinaryStatus() file: typescript/src/pubsub/apple-common.ts start line: 290 end line: 301 size: 12 LOC McCabe index: 4 number of parameters: 1 id: 92 unit: export async function handler() file: typescript/src/pubsub/apple.ts start line: 114 end line: 125 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 93 unit: export async function fetchGoogleSubscription() file: typescript/src/services/google-play.ts start line: 61 end line: 72 size: 12 LOC McCabe index: 1 number of parameters: 3 id: 94 unit: function handleOneMessage() file: typescript/src/export/exportHistoricalData.ts start line: 126 end line: 136 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 95 unit: export async function handler() file: typescript/src/pubsub/google.ts start line: 11 end line: 21 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 96 unit: export async function queueHistoricalSubscription() file: typescript/src/feast/update-subs/common.ts start line: 11 end line: 27 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 97 unit: userCancellationTime: parseNullableDate() file: typescript/src/services/google-play-v2.ts start line: 126 end line: 137 size: 11 LOC McCabe index: 5 number of parameters: 1 id: 98 unit: export async function queueHistoricalSubscription() file: typescript/src/update-subs/updatesub.ts start line: 13 end line: 29 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 99 unit: function fetchConfig() file: typescript/src/utils/ssmConfig.ts start line: 40 end line: 49 size: 10 LOC McCabe index: 2 number of parameters: 0 id: 100 unit: function toSqsPayload() file: typescript/src/link/google.ts start line: 50 end line: 59 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 101 unit: export async function handler() file: typescript/src/link/google.ts start line: 61 end line: 70 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 102 unit: export async function handler() file: typescript/src/link/apple.ts start line: 50 end line: 59 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 103 unit: async function catchingServerErrors() file: typescript/src/pubsub/pubsub.ts start line: 14 end line: 23 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 104 unit: def fetchConfiguration() file: scala/google-oauth/src/main/scala/com.gu.mobilepurchases.googleoauth/lambda/GoogleOAuth.scala start line: 45 end line: 53 size: 9 LOC McCabe index: 4 number of parameters: 0 id: 105 unit: def apply() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/lambda/LambdaApiGateway.scala start line: 15 end line: 26 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 106 unit: function deduplicate() file: typescript/src/link/apple-utils.ts start line: 20 end line: 28 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 107 unit: function toUserSubscription() file: typescript/src/link/google.ts start line: 27 end line: 35 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 108 unit: function toUserSubscription() file: typescript/src/link/apple.ts start line: 11 end line: 19 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 109 unit: function group() file: typescript/src/export/exportHistoricalData.ts start line: 40 end line: 48 size: 9 LOC McCabe index: 2 number of parameters: 2 id: 110 unit: await recursivelyFetchSqsMessages() file: typescript/src/export/exportHistoricalData.ts start line: 138 end line: 148 size: 9 LOC McCabe index: 1 number of parameters: 3 id: 111 unit: export function toSqsSubReference() file: typescript/src/pubsub/google-common.ts start line: 195 end line: 203 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 112 unit: function googlePackageName() file: typescript/src/subscription-status/googleSubStatus.ts start line: 35 end line: 43 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 113 unit: productId: mapAndroidProductId() file: typescript/src/services/google-play-v2.ts start line: 129 end line: 137 size: 9 LOC McCabe index: 5 number of parameters: 3 id: 114 unit: override def apply() file: project/MergeFilesStrategy.scala start line: 13 end line: 21 size: 9 LOC McCabe index: 1 number of parameters: 3 id: 115 unit: override def handleRequest() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/lambda/AwsLambda.scala start line: 15 end line: 22 size: 8 LOC McCabe index: 2 number of parameters: 3 id: 116 unit: def commonAssemblySettings() file: build.sbt start line: 44 end line: 51 size: 8 LOC McCabe index: 5 number of parameters: 1 id: 117 unit: async function getUserLinks() file: typescript/src/link/deleteLink.ts start line: 15 end line: 29 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 118 unit: productName: mapPlatformToSoftOptInProductName() file: typescript/src/link/deleteLink.ts start line: 67 end line: 75 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 119 unit: function cleanupEvent() file: typescript/src/export/exportEvents.ts start line: 10 end line: 17 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 120 unit: function prefix_creator() file: typescript/src/export/exportSubscriptions-v2.ts start line: 5 end line: 12 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 121 unit: function parseBillingRetryPeriod() file: typescript/src/pubsub/apple-common.ts start line: 281 end line: 288 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 122 unit: function isSubscriptionNotification() file: typescript/src/pubsub/google-common.ts start line: 66 end line: 73 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 123 unit: async function deleteMessage() file: typescript/src/soft-opt-ins/dlq-processor.ts start line: 18 end line: 25 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 124 unit: function passwordForApp() file: typescript/src/services/appleValidateReceipts.ts start line: 86 end line: 93 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 125 unit: function buildGoogleUrl() file: typescript/src/services/google-play.ts start line: 44 end line: 51 size: 8 LOC McCabe index: 1 number of parameters: 3 id: 126 unit: throw Error() file: typescript/src/services/google-play-v2.ts start line: 52 end line: 63 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 127 unit: throw Error() file: typescript/src/services/google-play-v2.ts start line: 114 end line: 123 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 128 unit: function sqsRecordToAppleSubscription() file: typescript/src/update-subs/apple.ts start line: 65 end line: 75 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 129 unit: def uploadTokenToS3() file: scala/google-oauth/src/main/scala/com.gu.mobilepurchases.googleoauth/lambda/GoogleOAuth.scala start line: 67 end line: 73 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 130 unit: def apply() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/lambda/LambdaApiGateway.scala start line: 43 end line: 49 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 131 unit: def apply() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/lambda/LambdaApiGateway.scala start line: 55 end line: 61 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 132 unit: def queueMetric() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/cloudwatch/Cloudwatch.scala start line: 43 end line: 50 size: 7 LOC McCabe index: 1 number of parameters: 4 id: 133 unit: async function getUserSubscriptionIds() file: typescript/src/user/user.ts start line: 30 end line: 48 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 134 unit: async function apiKeysConfig() file: typescript/src/user/user.ts start line: 102 end line: 109 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 135 unit: S3Prefix: prefix_creator() file: typescript/src/export/exportSubscriptions-v2.ts start line: 49 end line: 56 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 136 unit: function endTimestampForQuery() file: typescript/src/revalidate-receipts/appleRevalidateReceipts.ts start line: 18 end line: 24 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 137 unit: function startTimestampForQuery() file: typescript/src/revalidate-receipts/appleRevalidateReceipts.ts start line: 26 end line: 32 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 138 unit: function subscriptionStatus() file: typescript/src/subscription-status/googleSubStatus.ts start line: 202 end line: 208 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 139 unit: await sendSoftOptIns() file: typescript/src/soft-opt-ins/processSubscription.ts start line: 152 end line: 158 size: 7 LOC McCabe index: 2 number of parameters: 4 id: 140 unit: throw Error() file: typescript/src/services/google-play-v2.ts start line: 104 end line: 113 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 141 unit: freeTrial: isFreeTrial() file: typescript/src/services/google-play-v2.ts start line: 131 end line: 137 size: 7 LOC McCabe index: 5 number of parameters: 2 id: 142 unit: async function initialiseAndroidPublisherClient() file: typescript/src/services/google-play-v2.ts start line: 177 end line: 185 size: 7 LOC McCabe index: 1 number of parameters: 0 id: 143 unit: export function getAuthToken() file: typescript/src/utils/guIdentityApi.ts start line: 51 end line: 56 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 144 unit: async function persistUserSubscriptionLinks() file: typescript/src/link/link.ts start line: 76 end line: 84 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 145 unit: export function isPostAcquisition() file: typescript/src/soft-opt-ins/processSubscription.ts start line: 16 end line: 22 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 146 unit: function getParams() file: typescript/src/services/google-play.ts start line: 18 end line: 23 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 147 unit: function getParams() file: typescript/src/services/google-play-v2.ts start line: 192 end line: 197 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 148 unit: export async function handler() file: typescript/src/update-subs/google.ts start line: 120 end line: 126 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 149 unit: export async function handler() file: typescript/src/update-subs/apple.ts start line: 77 end line: 82 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 150 unit: def apply() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/lambda/LambdaApiGateway.scala start line: 27 end line: 31 size: 5 LOC McCabe index: 3 number of parameters: 1 id: 151 unit: def queueMetric() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/cloudwatch/Cloudwatch.scala start line: 18 end line: 25 size: 5 LOC McCabe index: 1 number of parameters: 4 id: 152 unit: constructor() file: typescript/src/models/processingError.ts start line: 5 end line: 9 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 153 unit: export async function getIdentityUrl() file: typescript/src/utils/guIdentityApi.ts start line: 45 end line: 49 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 154 unit: export function parseGoogleLinkPayload() file: typescript/src/link/google.ts start line: 21 end line: 25 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 155 unit: function storeInDynamoImpl() file: typescript/src/pubsub/pubsub.ts start line: 25 end line: 29 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 156 unit: function getSubscriptionId() file: typescript/src/subscription-status/googleSubStatus.ts start line: 29 end line: 33 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 157 unit: await sendToSqs() file: typescript/src/feast/update-subs/common.ts start line: 21 end line: 25 size: 5 LOC McCabe index: 1 number of parameters: 3 id: 158 unit: export function googlePackageNameToPlatform() file: typescript/src/services/appToPlatform.ts start line: 22 end line: 26 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 159 unit: export function putSubscription() file: typescript/src/update-subs/updatesub.ts start line: 7 end line: 11 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 160 unit: await sendToSqs() file: typescript/src/update-subs/updatesub.ts start line: 23 end line: 27 size: 5 LOC McCabe index: 1 number of parameters: 3 id: 161 unit: def sendMetricsSoFar() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/cloudwatch/Cloudwatch.scala start line: 26 end line: 31 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 162 unit: def succeed = cloudWatch.queueMetric() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/cloudwatch/Cloudwatch.scala start line: 32 end line: 37 size: 4 LOC McCabe index: 1 number of parameters: 3 id: 163 unit: def sendMetricsSoFar() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/cloudwatch/Cloudwatch.scala start line: 91 end line: 94 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 164 unit: constructor() file: typescript/src/models/GracefulProcessingError.ts start line: 4 end line: 7 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 165 unit: async function handleSoftOptInsError() file: typescript/src/link/deleteLink.ts start line: 10 end line: 13 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 166 unit: async function handleError() file: typescript/src/soft-opt-ins/processSubscription.ts start line: 24 end line: 27 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 167 unit: export function messageIsOneDayOld() file: typescript/src/soft-opt-ins/dlq-processor.ts start line: 12 end line: 16 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 168 unit: override def apply() file: project/FromJarStrategy.scala start line: 7 end line: 10 size: 4 LOC McCabe index: 3 number of parameters: 3 id: 169 unit: def handler() file: scala/google-oauth/src/main/scala/com.gu.mobilepurchases.googleoauth/lambda/GoogleOAuth.scala start line: 55 end line: 57 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 170 unit: def execute() file: scala/common/src/main/scala/com/gu/mobilepurchases/shared/lambda/LambdaApiGateway.scala start line: 73 end line: 76 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 171 unit: constructor() file: typescript/src/models/userSubscription.ts start line: 39 end line: 41 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 172 unit: constructor() file: typescript/src/models/endTimestampFilter.ts start line: 45 end line: 47 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 173 unit: function() file: typescript/src/utils/aws.ts start line: 20 end line: 22 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 174 unit: function() file: typescript/src/utils/aws.ts start line: 23 end line: 25 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 175 unit: export async function getIdentityApiKey() file: typescript/src/utils/guIdentityApi.ts start line: 37 end line: 39 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 176 unit: export async function getMembershipAccountId() file: typescript/src/utils/guIdentityApi.ts start line: 41 end line: 43 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 177 unit: for await() file: typescript/src/link/link.ts start line: 40 end line: 42 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 178 unit: for await() file: typescript/src/link/link.ts start line: 80 end line: 82 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 179 unit: await sendToSqsSoftOptIns() file: typescript/src/link/deleteLink.ts start line: 60 end line: 62 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 180 unit: for await() file: typescript/src/link/deleteLink.ts start line: 97 end line: 99 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 181 unit: for await() file: typescript/src/user/user.ts start line: 44 end line: 46 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 182 unit: for await() file: typescript/src/user/user.ts start line: 58 end line: 60 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 183 unit: function debugLogPayload() file: typescript/src/pubsub/apple-common.ts start line: 126 end line: 128 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 184 unit: constructor() file: typescript/src/pubsub/ignorable.ts start line: 4 end line: 6 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 185 unit: function getPurchaseToken() file: typescript/src/subscription-status/googleSubStatus.ts start line: 25 end line: 27 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 186 unit: await sendToSqsSoftOptIns() file: typescript/src/soft-opt-ins/processSubscription.ts start line: 85 end line: 87 size: 3 LOC McCabe index: 2 number of parameters: 0 id: 187 unit: function apiKeyForBraze() file: typescript/src/services/braze.ts start line: 4 end line: 6 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 188 unit: function isFreeTrial() file: typescript/src/services/google-play-v2.ts start line: 169 end line: 171 size: 3 LOC McCabe index: 2 number of parameters: 2 id: 189 unit: function parseNullableDate() file: typescript/src/services/google-play-v2.ts start line: 173 end line: 175 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 190 unit: export function appleBundleToPlatform() file: typescript/src/services/appToPlatform.ts start line: 10 end line: 12 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 191 unit: constructor() file: cdk/lib/mobile-purchases-feast.ts start line: 6 end line: 8 size: 3 LOC McCabe index: 1 number of parameters: 3 id: 192 unit: throw Error() file: typescript/src/pubsub/apple-common.ts start line: 537 end line: 538 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 193 unit: await sendToSqsComms() file: typescript/src/soft-opt-ins/processSubscription.ts start line: 182 end line: 183 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 194 unit: def accessTokenAsJsonString() file: scala/google-oauth/src/main/scala/com.gu.mobilepurchases.googleoauth/lambda/GoogleOAuth.scala start line: 65 end line: 65 size: 1 LOC McCabe index: 1 number of parameters: 1