id: 1 unit: async function preparePayload() file: firestore-send-email/functions/lib/index.js start line: 90 end line: 200 size: 111 LOC McCabe index: 28 number of parameters: 1 id: 2 unit: async function preparePayload() file: firestore-send-email/functions/src/index.ts start line: 98 end line: 237 size: 111 LOC McCabe index: 28 number of parameters: 1 id: 3 unit: public async rescheduleWorkers() file: firestore-counter/functions/src/controller.ts start line: 222 end line: 333 size: 103 LOC McCabe index: 10 number of parameters: 0 id: 4 unit: public run() file: firestore-counter/functions/src/worker.ts start line: 75 end line: 167 size: 85 LOC McCabe index: 12 number of parameters: 0 id: 5 unit: protected maybeAggregate() file: firestore-counter/functions/src/worker.ts start line: 169 end line: 273 size: 82 LOC McCabe index: 14 number of parameters: 0 id: 6 unit: run() file: firestore-counter/functions/lib/worker.js start line: 56 end line: 133 size: 76 LOC McCabe index: 12 number of parameters: 0 id: 7 unit: async rescheduleWorkers() file: firestore-counter/functions/lib/controller.js start line: 173 end line: 254 size: 76 LOC McCabe index: 10 number of parameters: 0 id: 8 unit: async initializeSchemaViewResources() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 105 end line: 193 size: 73 LOC McCabe index: 5 number of parameters: 4 id: 9 unit: async function processCollectionGroup() file: firestore-bigquery-export/scripts/import/src/run.ts start line: 20 end line: 105 size: 72 LOC McCabe index: 7 number of parameters: 1 id: 10 unit: public async aggregateOnce() file: firestore-counter/functions/src/controller.ts start line: 137 end line: 217 size: 70 LOC McCabe index: 10 number of parameters: 2 id: 11 unit: maybeAggregate() file: firestore-counter/functions/lib/worker.js start line: 134 end line: 212 size: 69 LOC McCabe index: 14 number of parameters: 0 id: 12 unit: public async aggregateContinuously() file: firestore-counter/functions/src/controller.ts start line: 68 end line: 131 size: 61 LOC McCabe index: 7 number of parameters: 3 id: 13 unit: async aggregateOnce() file: firestore-counter/functions/lib/controller.js start line: 104 end line: 169 size: 59 LOC McCabe index: 10 number of parameters: 2 id: 14 unit: public static planAggregations() file: firestore-counter/functions/src/planner.ts start line: 47 end line: 100 size: 52 LOC McCabe index: 5 number of parameters: 2 id: 15 unit: async function processDocuments() file: firestore-bigquery-export/scripts/import/src/worker.ts start line: 11 end line: 70 size: 51 LOC McCabe index: 2 number of parameters: 2 id: 16 unit: export function buildLatestSnapshotViewQuery() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/snapshot.ts start line: 38 end line: 87 size: 50 LOC McCabe index: 10 number of parameters: 4 id: 17 unit: private updateTemplates() file: firestore-send-email/functions/src/templates.ts start line: 59 end line: 113 size: 50 LOC McCabe index: 11 number of parameters: 1 id: 18 unit: export async function parseConfig() file: firestore-bigquery-export/scripts/import/src/config.ts start line: 150 end line: 199 size: 49 LOC McCabe index: 11 number of parameters: 0 id: 19 unit: async function parseConfig() file: firestore-bigquery-export/scripts/import/src/index.ts start line: 352 end line: 402 size: 48 LOC McCabe index: 10 number of parameters: 0 id: 20 unit: async function deliver() file: firestore-send-email/functions/src/index.ts start line: 239 end line: 292 size: 48 LOC McCabe index: 13 number of parameters: 2 id: 21 unit: async aggregateContinuously() file: firestore-counter/functions/lib/controller.js start line: 53 end line: 99 size: 47 LOC McCabe index: 7 number of parameters: 3 id: 22 unit: updateTemplates() file: firestore-send-email/functions/lib/templates.js start line: 47 end line: 91 size: 45 LOC McCabe index: 11 number of parameters: 1 id: 23 unit: async function processCollection() file: firestore-bigquery-export/scripts/import/src/run.ts start line: 110 end line: 161 size: 43 LOC McCabe index: 4 number of parameters: 1 id: 24 unit: async function deliver() file: firestore-send-email/functions/lib/index.js start line: 201 end line: 243 size: 42 LOC McCabe index: 13 number of parameters: 2 id: 25 unit: async function processWrite() file: firestore-send-email/functions/src/index.ts start line: 294 end line: 343 size: 42 LOC McCabe index: 11 number of parameters: 1 id: 26 unit: static planAggregations() file: firestore-counter/functions/lib/planner.js start line: 26 end line: 67 size: 42 LOC McCabe index: 5 number of parameters: 2 id: 27 unit: private async initializeLatestView() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts start line: 280 end line: 324 size: 40 LOC McCabe index: 4 number of parameters: 0 id: 28 unit: async function processWrite() file: firestore-send-email/functions/lib/index.js start line: 244 end line: 287 size: 40 LOC McCabe index: 11 number of parameters: 1 id: 29 unit: public ListenerRegistration onSnapshot() file: firestore-counter/clients/android/src/main/java/com/firebase/firestore/counter/FirestoreShardedCounter.java start line: 108 end line: 147 size: 36 LOC McCabe index: 6 number of parameters: 1 id: 30 unit: async function parseConfig() file: firestore-bigquery-export/scripts/gen-schema-view/src/index.ts start line: 140 end line: 173 size: 34 LOC McCabe index: 6 number of parameters: 0 id: 31 unit: async render() file: firestore-send-email/functions/src/templates.ts start line: 122 end line: 161 size: 34 LOC McCabe index: 9 number of parameters: 2 id: 32 unit: private async initializeRawChangeLogTable() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts start line: 236 end line: 274 size: 33 LOC McCabe index: 4 number of parameters: 0 id: 33 unit: protected static cleanupPartials() file: firestore-counter/functions/src/worker.ts start line: 303 end line: 335 size: 33 LOC McCabe index: 7 number of parameters: 2 id: 34 unit: private async isRetryableInsertionError() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts start line: 135 end line: 165 size: 31 LOC McCabe index: 7 number of parameters: 1 id: 35 unit: export function processFirestoreSchema() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 329 end line: 358 size: 30 LOC McCabe index: 2 number of parameters: 4 id: 36 unit: static cleanupPartials() file: firestore-counter/functions/lib/worker.js start line: 238 end line: 267 size: 30 LOC McCabe index: 7 number of parameters: 2 id: 37 unit: export function readSchemas() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema-loader-utils.ts start line: 24 end line: 49 size: 26 LOC McCabe index: 6 number of parameters: 1 id: 38 unit: public async onDocumentWrite() file: firestore-shorten-urls-bitly/functions/src/abstract-shortener.ts start line: 43 end line: 71 size: 25 LOC McCabe index: 5 number of parameters: 1 id: 39 unit: async function transportLayer() file: firestore-send-email/functions/lib/index.js start line: 44 end line: 67 size: 24 LOC McCabe index: 3 number of parameters: 0 id: 40 unit: public double get() file: firestore-counter/clients/android/src/main/java/com/firebase/firestore/counter/FirestoreShardedCounter.java start line: 61 end line: 87 size: 24 LOC McCabe index: 4 number of parameters: 0 id: 41 unit: async onDocumentWrite() file: firestore-shorten-urls-bitly/functions/lib/abstract-shortener.js start line: 37 end line: 59 size: 23 LOC McCabe index: 5 number of parameters: 1 id: 42 unit: async render() file: firestore-send-email/functions/lib/templates.js start line: 92 end line: 115 size: 23 LOC McCabe index: 9 number of parameters: 2 id: 43 unit: async function transportLayer() file: firestore-send-email/functions/src/index.ts start line: 49 end line: 71 size: 23 LOC McCabe index: 3 number of parameters: 0 id: 44 unit: function convertType() file: storage-resize-images/functions/lib/resize-image.js start line: 31 end line: 53 size: 23 LOC McCabe index: 7 number of parameters: 2 id: 45 unit: export function convertType() file: storage-resize-images/functions/src/resize-image.ts start line: 37 end line: 63 size: 23 LOC McCabe index: 7 number of parameters: 2 id: 46 unit: async function run() file: firestore-bigquery-export/scripts/gen-schema-view/src/index.ts start line: 109 end line: 138 size: 22 LOC McCabe index: 3 number of parameters: 0 id: 47 unit: public aggregate() file: firestore-counter/functions/src/aggregator.ts start line: 144 end line: 165 size: 22 LOC McCabe index: 5 number of parameters: 3 id: 48 unit: serializeData() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts start line: 104 end line: 127 size: 21 LOC McCabe index: 6 number of parameters: 1 id: 49 unit: aggregate() file: firestore-counter/functions/lib/aggregator.js start line: 140 end line: 159 size: 20 LOC McCabe index: 5 number of parameters: 3 id: 50 unit: protected static categorizeShards() file: firestore-counter/functions/src/worker.ts start line: 276 end line: 298 size: 20 LOC McCabe index: 7 number of parameters: 2 id: 51 unit: function data() file: firestore-bigquery-export/functions/big-query-table-test/install-script.js start line: 18 end line: 36 size: 19 LOC McCabe index: 1 number of parameters: 0 id: 52 unit: function resize() file: storage-resize-images/functions/lib/resize-image.js start line: 11 end line: 29 size: 19 LOC McCabe index: 3 number of parameters: 2 id: 53 unit: export function latestConsistentSnapshotSchemaView() file: firestore-bigquery-export/scripts/gen-schema-view/src/snapshot.ts start line: 27 end line: 44 size: 18 LOC McCabe index: 1 number of parameters: 3 id: 54 unit: async record() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts start line: 71 end line: 89 size: 18 LOC McCabe index: 1 number of parameters: 1 id: 55 unit: async handleUpdateDocument() file: firestore-shorten-urls-bitly/functions/lib/abstract-shortener.js start line: 85 end line: 102 size: 18 LOC McCabe index: 4 number of parameters: 2 id: 56 unit: private async handleUpdateDocument() file: firestore-shorten-urls-bitly/functions/src/abstract-shortener.ts start line: 105 end line: 123 size: 18 LOC McCabe index: 4 number of parameters: 2 id: 57 unit: static mergeRecursive() file: firestore-counter/functions/lib/aggregator.js start line: 79 end line: 97 size: 18 LOC McCabe index: 10 number of parameters: 3 id: 58 unit: static categorizeShards() file: firestore-counter/functions/lib/worker.js start line: 214 end line: 234 size: 18 LOC McCabe index: 7 number of parameters: 2 id: 59 unit: public onSnapshot() file: firestore-counter/clients/web/src/index.ts start line: 76 end line: 93 size: 18 LOC McCabe index: 3 number of parameters: 1 id: 60 unit: export function resize() file: storage-resize-images/functions/src/resize-image.ts start line: 18 end line: 35 size: 17 LOC McCabe index: 3 number of parameters: 2 id: 61 unit: function getArray() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 78 end line: 96 size: 16 LOC McCabe index: 4 number of parameters: 1 id: 62 unit: query: buildLatestSnapshotViewQuery() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/snapshot.ts start line: 27 end line: 43 size: 16 LOC McCabe index: 1 number of parameters: 4 id: 63 unit: protected async shortenUrl() file: firestore-shorten-urls-bitly/functions/src/index.ts start line: 45 end line: 64 size: 16 LOC McCabe index: 2 number of parameters: 1 id: 64 unit: static isNoop() file: firestore-counter/functions/lib/aggregator.js start line: 111 end line: 126 size: 16 LOC McCabe index: 6 number of parameters: 1 id: 65 unit: onSnapshot() file: firestore-counter/clients/node/index.js start line: 68 end line: 83 size: 16 LOC McCabe index: 3 number of parameters: 1 id: 66 unit: public Task incrementBy() file: firestore-counter/clients/android/src/main/java/com/firebase/firestore/counter/FirestoreShardedCounter.java start line: 89 end line: 106 size: 16 LOC McCabe index: 3 number of parameters: 1 id: 67 unit: async shortenUrl() file: firestore-shorten-urls-bitly/functions/lib/index.js start line: 36 end line: 50 size: 15 LOC McCabe index: 2 number of parameters: 1 id: 68 unit: static aggrPrefixLen() file: firestore-counter/functions/lib/planner.js start line: 81 end line: 95 size: 15 LOC McCabe index: 6 number of parameters: 2 id: 69 unit: constructor() file: firestore-counter/clients/node/index.js start line: 30 end line: 45 size: 15 LOC McCabe index: 1 number of parameters: 2 id: 70 unit: function readSchemasFromDirectory() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema-loader-utils.ts start line: 73 end line: 86 size: 14 LOC McCabe index: 2 number of parameters: 1 id: 71 unit: function decorateSchemaWithChangelogFields() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 211 end line: 224 size: 14 LOC McCabe index: 4 number of parameters: 1 id: 72 unit: export function userSchemaView() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 229 end line: 242 size: 14 LOC McCabe index: 1 number of parameters: 3 id: 73 unit: protected abstract async shortenUrl() file: firestore-shorten-urls-bitly/functions/src/abstract-shortener.ts start line: 125 end line: 141 size: 14 LOC McCabe index: 1 number of parameters: 1 id: 74 unit: async function queryFirestore() file: firestore-bigquery-export/functions/big-query-table-test/install-script.js start line: 49 end line: 67 size: 13 LOC McCabe index: 1 number of parameters: 0 id: 75 unit: async function processCreate() file: firestore-send-email/functions/lib/index.js start line: 76 end line: 89 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 76 unit: constructor() file: firestore-send-email/functions/lib/templates.js start line: 26 end line: 38 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 77 unit: async function processCreate() file: firestore-send-email/functions/src/index.ts start line: 83 end line: 96 size: 13 LOC McCabe index: 1 number of parameters: 1 id: 78 unit: function isEmptyPartial() file: firestore-counter/functions/lib/worker.js start line: 270 end line: 283 size: 13 LOC McCabe index: 5 number of parameters: 1 id: 79 unit: protected static constructAggregate() file: firestore-counter/functions/src/planner.ts start line: 102 end line: 118 size: 13 LOC McCabe index: 3 number of parameters: 2 id: 80 unit: function getShardId() file: firestore-counter/clients/web/src/index.ts start line: 139 end line: 154 size: 13 LOC McCabe index: 2 number of parameters: 1 id: 81 unit: public FirestoreShardedCounter() file: firestore-counter/clients/android/src/main/java/com/firebase/firestore/counter/FirestoreShardedCounter.java start line: 46 end line: 59 size: 13 LOC McCabe index: 1 number of parameters: 2 id: 82 unit: private async transformRows() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts start line: 91 end line: 102 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 83 unit: private async initializeDataset() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts start line: 220 end line: 231 size: 12 LOC McCabe index: 2 number of parameters: 0 id: 84 unit: async function initialize() file: firestore-send-email/functions/src/index.ts start line: 36 end line: 47 size: 12 LOC McCabe index: 3 number of parameters: 0 id: 85 unit: static constructAggregate() file: firestore-counter/functions/lib/planner.js start line: 68 end line: 80 size: 12 LOC McCabe index: 3 number of parameters: 2 id: 86 unit: constructor() file: firestore-counter/functions/lib/worker.js start line: 43 end line: 55 size: 12 LOC McCabe index: 1 number of parameters: 3 id: 87 unit: private static isNoop() file: firestore-counter/functions/src/aggregator.ts start line: 121 end line: 132 size: 12 LOC McCabe index: 6 number of parameters: 1 id: 88 unit: public subtractPartial() file: firestore-counter/functions/src/aggregator.ts start line: 171 end line: 182 size: 12 LOC McCabe index: 2 number of parameters: 1 id: 89 unit: function tablePartitioning() file: firestore-bigquery-export/functions/src/config.ts start line: 17 end line: 28 size: 11 LOC McCabe index: 5 number of parameters: 1 id: 90 unit: constructor() file: firestore-shorten-urls-bitly/functions/lib/index.js start line: 25 end line: 35 size: 11 LOC McCabe index: 1 number of parameters: 3 id: 91 unit: private getChangeType() file: firestore-shorten-urls-bitly/functions/src/abstract-shortener.ts start line: 77 end line: 87 size: 11 LOC McCabe index: 3 number of parameters: 1 id: 92 unit: private async handleCreateDocument() file: firestore-shorten-urls-bitly/functions/src/abstract-shortener.ts start line: 89 end line: 99 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 93 unit: protected async updateShortUrl() file: firestore-shorten-urls-bitly/functions/src/abstract-shortener.ts start line: 129 end line: 141 size: 11 LOC McCabe index: 1 number of parameters: 2 id: 94 unit: async function initialize() file: firestore-send-email/functions/lib/index.js start line: 33 end line: 43 size: 11 LOC McCabe index: 3 number of parameters: 0 id: 95 unit: protected static aggrPrefixLen() file: firestore-counter/functions/src/planner.ts start line: 120 end line: 132 size: 11 LOC McCabe index: 6 number of parameters: 2 id: 96 unit: _id_: uuidv4() file: firestore-counter/functions/src/aggregator.ts start line: 72 end line: 89 size: 11 LOC McCabe index: 3 number of parameters: 0 id: 97 unit: incrementBy() file: firestore-counter/clients/node/index.js start line: 92 end line: 102 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 98 unit: public incrementBy() file: firestore-counter/clients/web/src/index.ts start line: 102 end line: 113 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 99 unit: function firestoreArrayDefinition() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 71 end line: 100 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 100 unit: async handleCreateDocument() file: firestore-shorten-urls-bitly/functions/lib/abstract-shortener.js start line: 72 end line: 81 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 101 unit: function deleteOriginalFile() file: storage-resize-images/functions/lib/config.js start line: 25 end line: 34 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 102 unit: function deleteOriginalFile() file: storage-resize-images/functions/src/config.ts start line: 23 end line: 32 size: 10 LOC McCabe index: 3 number of parameters: 1 id: 103 unit: toPartialUpdate() file: firestore-counter/functions/lib/aggregator.js start line: 56 end line: 65 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 104 unit: toPartialShard() file: firestore-counter/functions/lib/aggregator.js start line: 66 end line: 75 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 105 unit: static addCommonFieldsRecursive() file: firestore-counter/functions/lib/aggregator.js start line: 98 end line: 107 size: 10 LOC McCabe index: 6 number of parameters: 2 id: 106 unit: subtractPartial() file: firestore-counter/functions/lib/aggregator.js start line: 164 end line: 173 size: 10 LOC McCabe index: 2 number of parameters: 1 id: 107 unit: function isEmptyPartial() file: firestore-counter/functions/src/worker.ts start line: 338 end line: 349 size: 10 LOC McCabe index: 5 number of parameters: 1 id: 108 unit: public toPartialShard() file: firestore-counter/functions/src/aggregator.ts start line: 68 end line: 77 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 109 unit: output: await translateString() file: firestore-translate-text/functions/src/index.ts start line: 155 end line: 166 size: 9 LOC McCabe index: 1 number of parameters: 2 id: 110 unit: export function updateFirestoreSchemaFields() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 196 end line: 204 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 111 unit: function tablePartitioning() file: firestore-bigquery-export/functions/lib/config.js start line: 18 end line: 26 size: 9 LOC McCabe index: 5 number of parameters: 1 id: 112 unit: function getChangeType() file: firestore-bigquery-export/functions/lib/util.js start line: 20 end line: 28 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 113 unit: export function getChangeType() file: firestore-bigquery-export/functions/src/util.ts start line: 22 end line: 30 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 114 unit: private async initialize() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts start line: 207 end line: 215 size: 9 LOC McCabe index: 2 number of parameters: 0 id: 115 unit: getChangeType() file: firestore-shorten-urls-bitly/functions/lib/abstract-shortener.js start line: 63 end line: 71 size: 9 LOC McCabe index: 3 number of parameters: 1 id: 116 unit: _id_: uuidv4() file: firestore-counter/functions/lib/aggregator.js start line: 61 end line: 69 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 117 unit: _id_: uuidv4() file: firestore-counter/functions/lib/aggregator.js start line: 70 end line: 81 size: 9 LOC McCabe index: 3 number of parameters: 0 id: 118 unit: public toPartialUpdate() file: firestore-counter/functions/src/aggregator.ts start line: 58 end line: 66 size: 9 LOC McCabe index: 2 number of parameters: 1 id: 119 unit: _id_: uuidv4() file: firestore-counter/functions/src/aggregator.ts start line: 62 end line: 71 size: 9 LOC McCabe index: 1 number of parameters: 0 id: 120 unit: export function firestoreTimestamp() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 48 end line: 55 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 121 unit: function firestoreTimestampDefinition() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 142 end line: 149 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 122 unit: function firestoreGeopointDefinition() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 159 end line: 166 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 123 unit: function expandGlobs() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema-loader-utils.ts start line: 64 end line: 71 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 124 unit: export function filePathToSchemaName() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema-loader-utils.ts start line: 92 end line: 99 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 125 unit: function processFirestoreSchemaHelper() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 373 end line: 380 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 126 unit: name: qualifyFieldName() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 534 end line: 542 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 127 unit: constructor() file: firestore-shorten-urls-bitly/functions/lib/abstract-shortener.js start line: 28 end line: 36 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 128 unit: async updateShortUrl() file: firestore-shorten-urls-bitly/functions/lib/abstract-shortener.js start line: 103 end line: 111 size: 8 LOC McCabe index: 1 number of parameters: 2 id: 129 unit: function validateFieldArray() file: firestore-send-email/functions/lib/index.js start line: 68 end line: 75 size: 8 LOC McCabe index: 3 number of parameters: 2 id: 130 unit: waitUntilReady() file: firestore-send-email/functions/lib/templates.js start line: 39 end line: 46 size: 8 LOC McCabe index: 2 number of parameters: 0 id: 131 unit: function validateFieldArray() file: firestore-send-email/functions/src/index.ts start line: 73 end line: 81 size: 8 LOC McCabe index: 3 number of parameters: 2 id: 132 unit: private waitUntilReady() file: firestore-send-email/functions/src/templates.ts start line: 49 end line: 57 size: 8 LOC McCabe index: 2 number of parameters: 0 id: 133 unit: export function delivered() file: firestore-send-email/functions/src/logs.ts start line: 47 end line: 54 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 134 unit: constructor() file: firestore-counter/functions/lib/controller.js start line: 41 end line: 48 size: 8 LOC McCabe index: 2 number of parameters: 2 id: 135 unit: async get() file: firestore-counter/clients/node/index.js start line: 53 end line: 60 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 136 unit: async function schedule() file: firestore-counter/clients/node/index.js start line: 119 end line: 126 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 137 unit: public async get() file: firestore-counter/clients/web/src/index.ts start line: 61 end line: 68 size: 8 LOC McCabe index: 2 number of parameters: 1 id: 138 unit: async function schedule() file: firestore-counter/clients/web/src/index.ts start line: 130 end line: 137 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 139 unit: output: await translateString() file: firestore-translate-text/functions/lib/index.js start line: 117 end line: 123 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 140 unit: function firestoreArrayFunction() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 63 end line: 69 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 141 unit: function firestoreBooleanFunction() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 102 end line: 108 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 142 unit: function firestoreBooleanDefinition() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 110 end line: 116 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 143 unit: function firestoreNumberFunction() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 118 end line: 124 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 144 unit: function firestoreNumberDefinition() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 126 end line: 132 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 145 unit: function firestoreTimestampFunction() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 134 end line: 140 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 146 unit: function firestoreGeopointFunction() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 151 end line: 157 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 147 unit: export function buildLatestSchemaSnapshotViewQueryFromLatestView() file: firestore-bigquery-export/scripts/gen-schema-view/src/snapshot.ts start line: 46 end line: 52 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 148 unit: name: qualifyFieldName() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 574 end line: 580 size: 7 LOC McCabe index: 1 number of parameters: 2 id: 149 unit: constructor() file: firestore-send-email/functions/src/templates.ts start line: 41 end line: 47 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 150 unit: export function missingUids() file: firestore-send-email/functions/src/logs.ts start line: 76 end line: 82 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 151 unit: throw Error() file: firestore-counter/functions/src/controller.ts start line: 178 end line: 184 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 152 unit: export function containsManyUpdates() file: firestore-counter/functions/src/common.ts start line: 52 end line: 58 size: 7 LOC McCabe index: 3 number of parameters: 1 id: 153 unit: function resolveFilePath() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema-loader-utils.ts start line: 57 end line: 62 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 154 unit: function getDocumentId() file: firestore-bigquery-export/functions/lib/util.js start line: 30 end line: 35 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 155 unit: export function getDocumentId() file: firestore-bigquery-export/functions/src/util.ts start line: 32 end line: 37 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 156 unit: constructor() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts start line: 63 end line: 69 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 157 unit: export function start() file: firestore-send-email/functions/src/logs.ts start line: 28 end line: 33 size: 6 LOC McCabe index: 1 number of parameters: 0 id: 158 unit: export function deliveryError() file: firestore-send-email/functions/src/logs.ts start line: 65 end line: 70 size: 6 LOC McCabe index: 1 number of parameters: 2 id: 159 unit: function containsManyUpdates() file: firestore-counter/functions/lib/common.js start line: 31 end line: 36 size: 6 LOC McCabe index: 3 number of parameters: 1 id: 160 unit: (function (ControllerStatus)() file: firestore-counter/functions/lib/controller.js start line: 26 end line: 31 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 161 unit: export function isUpdatedFrequently() file: firestore-counter/functions/src/common.ts start line: 39 end line: 45 size: 6 LOC McCabe index: 2 number of parameters: 1 id: 162 unit: public toCounterUpdate() file: firestore-counter/functions/src/aggregator.ts start line: 46 end line: 51 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 163 unit: (function (ChangeType)() file: firestore-translate-text/functions/lib/index.js start line: 26 end line: 30 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 164 unit: export function firestoreArray() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 30 end line: 34 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 165 unit: export function firestoreBoolean() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 36 end line: 40 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 166 unit: export function firestoreNumber() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 42 end line: 46 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 167 unit: export function firestoreGeopoint() file: firestore-bigquery-export/scripts/gen-schema-view/src/udf.ts start line: 57 end line: 61 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 168 unit: function warnDuplicateSchemaName() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema-loader-utils.ts start line: 51 end line: 55 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 169 unit: export function subSelectQuery() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 647 end line: 651 size: 5 LOC McCabe index: 3 number of parameters: 2 id: 170 unit: function qualifyFieldName() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 653 end line: 658 size: 5 LOC McCabe index: 1 number of parameters: 2 id: 171 unit: bigqueryDataset() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts start line: 326 end line: 330 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 172 unit: (function (ChangeType)() file: firestore-shorten-urls-bitly/functions/lib/abstract-shortener.js start line: 22 end line: 26 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 173 unit: (function (deleteImage)() file: storage-resize-images/functions/lib/config.js start line: 20 end line: 24 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 174 unit: function isUpdatedFrequently() file: firestore-counter/functions/lib/common.js start line: 19 end line: 24 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 175 unit: static decodeShard() file: firestore-counter/functions/lib/planner.js start line: 96 end line: 100 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 176 unit: static encodeShard() file: firestore-counter/functions/lib/planner.js start line: 101 end line: 105 size: 5 LOC McCabe index: 2 number of parameters: 1 id: 177 unit: throw Error() file: firestore-counter/functions/lib/controller.js start line: 133 end line: 137 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 178 unit: toCounterUpdate() file: firestore-counter/functions/lib/aggregator.js start line: 47 end line: 50 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 179 unit: protected static decodeShard() file: firestore-counter/functions/src/planner.ts start line: 134 end line: 137 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 180 unit: protected static encodeShard() file: firestore-counter/functions/src/planner.ts start line: 139 end line: 142 size: 4 LOC McCabe index: 2 number of parameters: 1 id: 181 unit: function getShardId() file: firestore-counter/clients/node/index.js start line: 128 end line: 131 size: 4 LOC McCabe index: 1 number of parameters: 0 id: 182 unit: function collect() file: firestore-bigquery-export/scripts/gen-schema-view/src/index.ts start line: 40 end line: 42 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 183 unit: function readSchemaFromFile() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema-loader-utils.ts start line: 88 end line: 90 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 184 unit: constructor() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 93 end line: 95 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 185 unit: schema: decorateSchemaWithChangelogFields() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 163 end line: 165 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 186 unit: schema: decorateSchemaWithChangelogFields() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 189 end line: 191 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 187 unit: export function latest() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 660 end line: 662 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 188 unit: export function schema() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 663 end line: 665 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 189 unit: export function raw() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 666 end line: 668 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 190 unit: export function changeLog() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 669 end line: 671 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 191 unit: private async insertData() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts start line: 170 end line: 172 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 192 unit: private rawChangeLogTableName() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts start line: 332 end line: 334 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 193 unit: private rawLatestView() file: firestore-bigquery-export/firestore-bigquery-change-tracker/src/bigquery/index.ts start line: 336 end line: 338 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 194 unit: extractUrl() file: firestore-shorten-urls-bitly/functions/lib/abstract-shortener.js start line: 60 end line: 62 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 195 unit: handleDeleteDocument() file: firestore-shorten-urls-bitly/functions/lib/abstract-shortener.js start line: 82 end line: 84 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 196 unit: protected extractUrl() file: firestore-shorten-urls-bitly/functions/src/abstract-shortener.ts start line: 73 end line: 75 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 197 unit: private handleDeleteDocument() file: firestore-shorten-urls-bitly/functions/src/abstract-shortener.ts start line: 101 end line: 103 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 198 unit: function init() file: firestore-send-email/functions/lib/logs.js start line: 24 end line: 26 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 199 unit: function start() file: firestore-send-email/functions/lib/logs.js start line: 28 end line: 30 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 200 unit: function error() file: firestore-send-email/functions/lib/logs.js start line: 32 end line: 34 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 201 unit: function complete() file: firestore-send-email/functions/lib/logs.js start line: 36 end line: 38 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 202 unit: function attemptingDelivery() file: firestore-send-email/functions/lib/logs.js start line: 40 end line: 42 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 203 unit: function delivered() file: firestore-send-email/functions/lib/logs.js start line: 44 end line: 46 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 204 unit: function deliveryError() file: firestore-send-email/functions/lib/logs.js start line: 48 end line: 50 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 205 unit: function missingDeliveryField() file: firestore-send-email/functions/lib/logs.js start line: 52 end line: 54 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 206 unit: function missingUids() file: firestore-send-email/functions/lib/logs.js start line: 56 end line: 58 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 207 unit: function noPartialAttachmentSupport() file: firestore-send-email/functions/lib/logs.js start line: 60 end line: 62 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 208 unit: function registeredPartial() file: firestore-send-email/functions/lib/logs.js start line: 64 end line: 66 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 209 unit: function partialRegistered() file: firestore-send-email/functions/lib/logs.js start line: 68 end line: 70 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 210 unit: function templateLoaded() file: firestore-send-email/functions/lib/logs.js start line: 72 end line: 74 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 211 unit: function checkingMissingTemplate() file: firestore-send-email/functions/lib/logs.js start line: 76 end line: 78 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 212 unit: function foundMissingTemplate() file: firestore-send-email/functions/lib/logs.js start line: 80 end line: 82 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 213 unit: export function init() file: firestore-send-email/functions/src/logs.ts start line: 24 end line: 26 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 214 unit: export function error() file: firestore-send-email/functions/src/logs.ts start line: 35 end line: 37 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 215 unit: export function complete() file: firestore-send-email/functions/src/logs.ts start line: 39 end line: 41 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 216 unit: export function attemptingDelivery() file: firestore-send-email/functions/src/logs.ts start line: 43 end line: 45 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 217 unit: export function missingDeliveryField() file: firestore-send-email/functions/src/logs.ts start line: 72 end line: 74 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 218 unit: export function noPartialAttachmentSupport() file: firestore-send-email/functions/src/logs.ts start line: 84 end line: 86 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 219 unit: export function registeredPartial() file: firestore-send-email/functions/src/logs.ts start line: 88 end line: 90 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 220 unit: export function partialRegistered() file: firestore-send-email/functions/src/logs.ts start line: 92 end line: 94 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 221 unit: export function templateLoaded() file: firestore-send-email/functions/src/logs.ts start line: 96 end line: 98 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 222 unit: export function checkingMissingTemplate() file: firestore-send-email/functions/src/logs.ts start line: 100 end line: 102 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 223 unit: export function foundMissingTemplate() file: firestore-send-email/functions/src/logs.ts start line: 104 end line: 106 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 224 unit: function paramToArray() file: storage-resize-images/functions/lib/config.js start line: 35 end line: 37 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 225 unit: function paramToArray() file: storage-resize-images/functions/src/config.ts start line: 34 end line: 36 size: 3 LOC McCabe index: 2 number of parameters: 1 id: 226 unit: static isPartialShard() file: firestore-counter/functions/lib/planner.js start line: 106 end line: 108 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 227 unit: constructor() file: firestore-counter/functions/lib/aggregator.js start line: 22 end line: 24 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 228 unit: mergeFrom() file: firestore-counter/functions/lib/aggregator.js start line: 31 end line: 33 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 229 unit: subtractFrom() file: firestore-counter/functions/lib/aggregator.js start line: 40 end line: 42 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 230 unit: isNoop() file: firestore-counter/functions/lib/aggregator.js start line: 76 end line: 78 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 231 unit: constructor() file: firestore-counter/functions/lib/aggregator.js start line: 130 end line: 132 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 232 unit: protected static isPartialShard() file: firestore-counter/functions/src/planner.ts start line: 144 end line: 146 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 233 unit: public mergeFrom() file: firestore-counter/functions/src/aggregator.ts start line: 29 end line: 31 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 234 unit: public subtractFrom() file: firestore-counter/functions/src/aggregator.ts start line: 38 end line: 40 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 235 unit: public isNoop() file: firestore-counter/functions/src/aggregator.ts start line: 79 end line: 81 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 236 unit: shard() file: firestore-counter/clients/node/index.js start line: 114 end line: 116 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 237 unit: public shard() file: firestore-counter/clients/web/src/index.ts start line: 125 end line: 127 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 238 unit: public DocumentReference shard() file: firestore-counter/clients/android/src/main/java/com/firebase/firestore/counter/FirestoreShardedCounter.java start line: 149 end line: 151 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 239 unit: private static mergeRecursive() file: firestore-counter/functions/src/aggregator.ts start line: 83 end line: 84 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 240 unit: private static addCommonFieldsRecursive() file: firestore-counter/functions/src/aggregator.ts start line: 105 end line: 106 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 241 unit: name: qualifyFieldName() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 548 end line: 548 size: 1 LOC McCabe index: 1 number of parameters: 2 id: 242 unit: name: qualifyFieldName() file: firestore-bigquery-export/scripts/gen-schema-view/src/schema.ts start line: 562 end line: 562 size: 1 LOC McCabe index: 1 number of parameters: 2