- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for Subject (0.17 sec)
-
.cm/plugins/filters/nullToEmpty/index.js
/** * @module nullToEmpty * @description Returns the specified value if non-null, otherwise an empty array. * @param {Object} input - The object to investigate * @returns Object - The specified value if non-null, otherwise an empty array * @example {{ readField('jvm', 'files') | nullToEmpty }} */ function nullToEmpty(input) { let output; if (input) { output = input; } else { output = []; }
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Mon Apr 22 16:43:16 GMT 2024 - 526 bytes - Viewed (0) -
.cm/plugins/filters/byCodeowner/ignore/index.js
// A simple implementation of make-array function makeArray (subject) { return Array.isArray(subject) ? subject : [subject] } const EMPTY = '' const SPACE = ' ' const ESCAPE = '\\' const REGEX_TEST_BLANK_LINE = /^\s+$/ const REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/ const REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/ const REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/ const REGEX_SPLITALL_CRLF = /\r?\n/g
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 17.5K bytes - Viewed (0) -
.cm/plugins/filters/readField/index.js
/** * @module readField * @description Returns one field for a particular named object in a list of objects. * @param {[Object]} objects - The objects to search * @param {String} objectName - The name of the particular object to find * @param {String} fieldName - The name of the field for the group to return * @returns String - The specified value * @example {{ files | byPlatform | categorize(branch.diff.files_metadata) | readField('jvm', 'name') }} */
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 1K bytes - Viewed (0) -
.cm/plugins/filters/byCodeowner/index.js
/** * @module byCodeowner * @description Groups the PR's files' by owner based on the CODEOWNERs file. * @param {string[]} files - the gitStream's files context variable * @param {Object} pr - the gitStream's pr context variable * @param {string} token - access token with repo:read scope, used to read the CODEOWNERS file * @param {string} pathToCodeOwners - path from repo root to CODEOWNERS file * @returns {Map} - Map from owner name to list of files they own
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Mon Apr 22 19:12:32 GMT 2024 - 2.8K bytes - Viewed (0) -
docs_src/generate_clients/tutorial004.js
try { const data = await fs.promises.readFile(filePath) const openapiContent = JSON.parse(data) const paths = openapiContent.paths for (const pathKey of Object.keys(paths)) { const pathData = paths[pathKey] for (const method of Object.keys(pathData)) { const operation = pathData[method] if (operation.tags && operation.tags.length > 0) { const tag = operation.tags[0]
JavaScript - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Mar 14 11:40:05 GMT 2024 - 1K bytes - Viewed (0) -
.cm/plugins/filters/categorize/index.js
* @param {[FileMetadata]} fileMetadatas - gitStream's list of metadata about file changes in the PR including path * @returns {[Object]} Returns a list of objects for each platform containing info about the changes to files in that platform * @example {{ owners | categorize(branch.diff.files_metadata) }} */ function categorize(fileOwners, fileMetadatas) {
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 1.2K bytes - Viewed (0) -
.cm/plugins/filters/summaryTable/index.js
let preppedStatistics = statistics.filter(s => s.files.length > 0) .sort(s => -(s.additions + s.deletions)); let totalAdditions = Object.values(preppedStatistics).reduce((acc, summary) => acc + summary.additions, 0); let totalDeletions = Object.values(preppedStatistics).reduce((acc, summary) => acc + summary.deletions, 0); let newRatio = totalAdditions / (totalAdditions + totalDeletions) * 100;
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 3.2K bytes - Viewed (0) -
.cm/plugins/filters/computeStatistics/index.js
* @param {[FileMetadata]} fileMetadatas - gitStream's list of metadata about file changes in the PR including path * @returns {[Object]} Returns list of computed summary statistic objects for each platform in the input groupedFiles * @example {{ fileOwners | categorize(branch.diff.files_metadata) | changeStatistics(branch.diff.files_metadata) }} */
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 1.8K bytes - Viewed (0) -
.cm/plugins/filters/isEnabledAutomation/index.js
JavaScript - Registered: Wed May 08 11:36:15 GMT 2024 - Last Modified: Fri Apr 12 13:42:16 GMT 2024 - 3.1K bytes - Viewed (0)