Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for function (0.21 sec)

  1. .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 Apr 24 11:36:11 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 1.2K 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 Apr 24 11:36:11 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. src/main/webapp/js/index.js

    $(function() {
      $("#contentQuery").focus();
    
      var $searchButton = $("#searchButton"),
          contextPath = $("#contextPath").val();
    
      $("#searchForm").on("submit", function(e) {
        $searchButton.attr("disabled", true);
        setTimeout(function() {
          $searchButton.attr("disabled", false);
        }, 3000);
        return true;
      });
    
      $(document).on("click touchend", function(e) {
    JavaScript
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Mar 30 05:45:24 GMT 2023
    - 2K bytes
    - Viewed (0)
  5. .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 Apr 24 11:36:11 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  6. .cm/plugins/filters/computeStatistics/index.js

     * @example {{ fileOwners | categorize(branch.diff.files_metadata) | changeStatistics(branch.diff.files_metadata) }}
     */
    function computeStatistics(groupedFiles, fileMetadatas) {
        let totalAdditions = 0;
        let totalDeletions = 0
        let totalChangedFiles = 0;
    
        let summaries = [...groupedFiles.values()];
    JavaScript
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  7. .cm/plugins/filters/isEnabledAutomation/index.js

     * @returns {boolean} Returns true if the outlined conditions are met, otherwise false.
     * @example {{ 'platform_labels' | isEnabledAutomation(pr) }}
     */
    function isEnabledAutomation(automationName, pr) {
        let result;
        const automationActivations = enabled.get(automationName) || [];
    
        // Check if always enabled, or enabled by comment
    JavaScript
    - Registered: Wed Apr 24 11:36:11 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  8. .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 Apr 24 11:36:11 GMT 2024
    - Last Modified: Mon Apr 22 19:12:32 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. .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 Apr 24 11:36:11 GMT 2024
    - Last Modified: Mon Apr 22 16:47:29 GMT 2024
    - 1K bytes
    - Viewed (0)
  10. .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 Apr 24 11:36:11 GMT 2024
    - Last Modified: Fri Apr 12 13:42:16 GMT 2024
    - 1K bytes
    - Viewed (0)
Back to top