Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 247 for pretty (0.3 sec)

  1. internal/logger/console.go

    	ExitFunc(1)
    }
    
    func (f fatalMsg) quiet(msg string, args ...interface{}) {
    	f.pretty(msg, args...)
    }
    
    var (
    	logTag      = "ERROR"
    	logBanner   = color.BgRed(color.FgWhite(color.Bold(logTag))) + " "
    	emptyBanner = color.BgRed(strings.Repeat(" ", len(logTag))) + " "
    	bannerWidth = len(logTag) + 1
    )
    
    func (f fatalMsg) pretty(msg string, args ...interface{}) {
    	// Build the passed error message
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:57:52 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  2. operator/cmd/mesh/profile-dump.go

    	if err != nil {
    		return "", err
    	}
    	return out2, nil
    }
    
    // Convert the generated YAML to pretty JSON.
    func yamlToPrettyJSON(yml string) (string, error) {
    	// YAML objects are not completely compatible with JSON
    	// objects. Let yaml.YAMLToJSON handle the edge cases and
    	// we'll re-encode the result to pretty JSON.
    	uglyJSON, err := yaml.YAMLToJSON([]byte(yml))
    	if err != nil {
    		return "", err
    	}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 01:18:49 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  3. internal/config/errors-utils.go

    package config
    
    import (
    	"errors"
    	"fmt"
    	"net"
    	"syscall"
    
    	"github.com/minio/minio/internal/color"
    )
    
    // Err is a structure which contains all information
    // to print a fatal error message in json or pretty mode
    // Err implements error so we can use it anywhere
    type Err struct {
    	msg    string
    	detail string
    	action string
    	hint   string
    }
    
    // Clone returns a new Err struct with the same information
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  4. ci/official/envs/disk_cache

    # Sourcing this enables local disk cache
    if [[ $(uname -s) == "Darwin" ]]; then
      echo "Please note that using disk cache on macOS is not recommended because the"
      echo "cache can end up being pretty big and make the build process inefficient."
    fi
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 01 03:21:19 GMT 2024
    - 1023 bytes
    - Viewed (0)
  5. .github/workflows/check-bad-merge.yml

            with:
              distribution: 'temurin'
              java-version: '11'
          - name: Install Groovy
            run: sudo apt-get install groovy
          - name: List PR commits
            run: |
              git log --pretty=format:"%H" ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} > pr_commits.txt
          - name: Check PR commits
            id: run_check
            run: |
    Others
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Thu May 02 09:13:16 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  6. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt

        }
    
        /**
         * It appears there is no way to configure Gson to use 4 spaces instead of 2 for indentation.
         *
         * See: https://github.com/google/gson/blob/master/UserGuide.md#TOC-Compact-Vs.-Pretty-Printing-for-JSON-Output-Format
         */
        private
        fun adjustIndentation(initalJsonString: String): String {
            val indentationRegex = """^\s+""".toRegex(RegexOption.MULTILINE)
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Sep 30 18:18:04 GMT 2022
    - 2.1K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

     * MockWebServer. In cases where logic is particularly tricky, we use unit tests. This class makes
     * it easy to get sample values to use in such tests.
     *
     * This class is pretty fast and loose with default values: it attempts to provide values that are
     * well-formed, but doesn't guarantee values are internally consistent. Callers must take care to
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  8. tensorflow/c/eager/immediate_execution_tensor_handle.h

      //
      // For example some tensor handles may represent distributed values, in which
      // case placement information is lost when resolving the handle.
      //
      // If false, a caller might implement pretty-printing by resolving and
      // iterating over the resulting tensor. This may still be viable if resolving
      // the handle loses information, but `SummarizeValue` would be more precise.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Mar 10 21:56:24 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  9. istioctl/pkg/tag/generate.go

    	deserializer := codecFactory.UniversalDeserializer()
    	serializer := json.NewSerializerWithOptions(
    		json.DefaultMetaFactory, nil, nil, json.SerializerOptions{
    			Yaml:   true,
    			Pretty: true,
    			Strict: true,
    		})
    
    	whObject, _, err := deserializer.Decode([]byte(validatingWebhookYAML), nil, &admitv1.ValidatingWebhookConfiguration{})
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Jan 16 17:43:49 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

          return new MaxCodePoint(userFriendly);
        }
    
        public MaxCodePoint(String userFriendly) {
          value = decode(userFriendly);
        }
      }
    
      /**
       * The default values of maxCodePoint below provide pretty good performance models of different
       * kinds of common human text.
       *
       * @see MaxCodePoint#decode
       */
      @Param({"0x80", "0x90", "0x100", "0x800", "0x10000", "0x10ffff"})
      MaxCodePoint maxCodePoint;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 5.3K bytes
    - Viewed (0)
Back to top