Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for function (0.25 sec)

  1. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/Platform.native.js

    Platform.getDeclaringClassOrNullForJ2cl = function(e) {
      return null;
    JavaScript
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 26 21:15:08 GMT 2023
    - 73 bytes
    - Viewed (0)
  2. .cm/plugins/filters/nullToEmpty/index.js

     * @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 = [];
        }
        console.log("nullToEmpty: " + output);
        return output;
    }
    
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 16:43:16 GMT 2024
    - 526 bytes
    - Viewed (0)
  3. .cm/plugins/filters/isEnabledUser/index.js

     * @description Returns true if the username that is passed to this function is a member of the Gradle BT Team who has opted into gitStream automations.
     * @param {string} Input - The GitHub username to check.
     * @returns {boolean} Returns true if the user is specified in any of the lists of Gradle BT team members above, otherwise false.
     * @example {{ pr.author | isEnabledUser }}
     */
    function isEnabledUser(username) {
    JavaScript
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Mon Feb 05 22:00:34 GMT 2024
    - 923 bytes
    - Viewed (0)
  4. docs_src/generate_clients/tutorial004.js

    import * as fs from 'fs'
    
    async function modifyOpenAPIFile(filePath) {
      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) {
    JavaScript
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 14 11:40:05 GMT 2024
    - 1K bytes
    - Viewed (0)
  5. .cm/plugins/filters/categorize/index.js

     * @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) {
        const result = new Map();
        [...fileOwners.keys()].forEach(platform => {
            result.set(platform, {
                name: platform,
                files: []
            });
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  6. .cm/plugins/filters/byCodeowner/index.js

    }
    
    function codeownersMapping(data) {
        return data
            .toString()
            .split('\n')
            .filter(x => x && !x.startsWith('#'))
            .map(x => x.split("#")[0])
            .map(x => {
                const line = x.trim();
                const [path, ...owners] = line.split(/\s+/);
                return {path, owners};
            });
    }
    
    function resolveCodeowners(mapping, file) {
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 19:12:32 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  7. .cm/plugins/filters/byPlatform/index.js

     * @param {string[]} files - the gitStream's files context variable
     * @returns {Map} - Map from platform to list of files in this PR in it
     * @example {{ owners | byPlatform }}
     */
    function byPlatform(files) {
        const result = new Map();
        files.forEach(file => {
            const platform = getPlatform(file);
            if (!result.has(platform)) {
                result.set(platform, []);
            }
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Apr 22 16:47:29 GMT 2024
    - 1K bytes
    - Viewed (0)
  8. misc/wasm/wasm_exec.js

    					// may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported
    					// function. A goroutine can switch to a new stack if the current stack is too small (see morestack function).
    					// This changes the SP, thus we have to update the SP used by the imported function.
    
    					// func wasmExit(code int32)
    					"runtime.wasmExit": (sp) => {
    						sp >>>= 0;
    JavaScript
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon May 22 17:47:47 GMT 2023
    - 16.3K bytes
    - Viewed (1)
  9. .cm/plugins/filters/readField/index.js

     * @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') }}
     */
    
    function readField(objects, objectName, fieldName) {
        let group = Object.values(objects).find(s => s.name === objectName);
        if (group) {
            const result = group[fieldName];
            if (result === undefined) {
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 1K bytes
    - Viewed (0)
  10. .cm/plugins/filters/summaryTable/index.js

        console.log("summaryTable: " + result);
        return result;
    }
    
    function platformsAffected(statistics) {
        // Significance is defined as a platform having more than 10% of the total lines changed
        let totalLinesChanged = statistics.reduce((acc, summary) => acc + summary.additions + summary.deletions, 0);
        let platformHasSignificantChanges = function(summary) {
            let linesChanged = summary.additions + summary.deletions;
    JavaScript
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 3.2K bytes
    - Viewed (0)
Back to top