Home
last modified time | relevance | path

Searched +full:pretty +full:- +full:format (Results 1 – 25 of 1045) sorted by relevance

12345678910>>...42

/external/rust/crates/protobuf/2.27.1/src/text_format/
Dmod.rs1 //! Protobuf "text format" implementation.
3 //! Text format message look like this:
18 //! This format is not specified, but it is implemented by all official
20 //! and encode messages using text format.
32 // Used by text format parser and by pure-rust codegen parsed
34 // https://github.com/rust-lang/rust/issues/44663
46 pub fn unescape_string(string: &str) -> Vec<u8> { in unescape_string()
47 fn parse_if_digit(chars: &mut std::str::Chars) -> u8 { in unescape_string()
54 '0'..='9' => (f as u8 - b'0'), in unescape_string()
61 fn parse_hex_digit(chars: &mut std::str::Chars) -> u8 { in unescape_string()
[all …]
/external/rust/crates/protobuf/src/text_format/
Dprint.rs17 fn do_indent(buf: &mut String, pretty: bool, indent: usize) { in do_indent()
18 if pretty && indent > 0 { in do_indent()
31 pretty: bool, in print_start_field()
36 if !*first && !pretty { in print_start_field()
39 do_indent(buf, pretty, indent); in print_start_field()
44 fn print_end_field(buf: &mut String, pretty: bool) { in print_end_field()
45 if pretty { in print_end_field()
52 pretty: bool, in print_field()
58 print_start_field(buf, pretty, indent, first, field_name); in print_field()
63 if pretty { in print_field()
[all …]
/external/openthread/script/
Dmake-pretty31 # The script to check or format source code of OpenThread.
33 # Format c/c++, markdown, python, and shell:
35 # script/make-pretty
37 # Format c/c++ only:
39 # script/make-pretty clang
40 # script/make-pretty clang-format
41 # script/make-pretty clang-tidy
43 # Format markdown only:
45 # script/make-pretty markdown
47 # Format python only:
[all …]
Dbootstrap34 set -euxo pipefail
38 echo 'Installing pretty tools useful for code contributions...'
40 # add clang-format and clang-tidy for pretty
41 …sudo apt-get --no-install-recommends install -y clang-format-14 clang-tidy-14 || echo 'WARNING: co…
43 # add yapf for pretty
44 …python3 -m pip install yapf==0.31.0 || echo 'WARNING: could not install yapf, which is useful if y…
47 …python3 -m pip install mdv || echo 'WARNING: could not install mdv, which is required to post mark…
49 # add shfmt for shell pretty
50 …command -v shfmt || sudo apt-get install shfmt || echo 'WARNING: could not install shfmt, which is…
57 # apt-get update and install dependencies
[all …]
/external/ot-br-posix/script/
Dmake-pretty31 # The script to check or format source code of OpenThread.
33 # Format c/c++, markdown, python, and shell:
35 # script/make-pretty
37 # Format c/c++ only:
39 # script/make-pretty clang
41 # Format markdown only:
43 # script/make-pretty markdown
45 # Format python only:
47 # script/make-pretty python
49 # Format shell only:
[all …]
/external/python/cpython2/Lib/
Dpprint.py7 # tuples with fairly non-descriptive content. This is modeled very much
8 # after Lisp/Scheme - style pretty-printing of lists. If you find it
11 """Support to pretty-print lists, tuples, & dictionaries recursively.
16 -------
19 Handle pretty-printing operations onto a stream using a configured
23 ---------
26 Format a Python object into a pretty-printed representation.
29 Pretty-print a Python object to a stream [default is sys.stdout].
32 Generate a 'standard' repr()-like value, but protect against recursive
56 """Pretty-print a Python object to a stream [default is sys.stdout]."""
[all …]
/external/cronet/third_party/libc++/src/utils/libcxx/test/
Dconfig.py1 # ===----------------------------------------------------------------------===##
5 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 # ===----------------------------------------------------------------------===##
16 raise ValueError("Substitution {} is not in the config.".format(substitution))
20 note = lambda s: lit_config.note("({}) {}".format(config.name, s))
32 "Applied '{}' as a result of parameter '{}'".format(
33 action.pretty(config, lit_config.params),
34 param.pretty(config, lit_config.params),
38 # Then, apply the automatically-detected features.
45 "Applied '{}' as a result of implicitly detected feature '{}'".format(
[all …]
Ddsl.py1 # ===----------------------------------------------------------------------===##
5 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 # ===----------------------------------------------------------------------===##
16 import libcxx.test.format
50 since Lit configuration is single-threaded.
70 # We write to a PID-suffixed file and rename the result to
102 return libcxx.test.format._executeScriptInternal(test, litConfig, commands)
116 # and 'rm -r %T' to avoid cluttering the build directory.
124 testDir, _ = libcxx.test.format._getTempPaths(self)
129 testDir, _ = libcxx.test.format._getTempPaths(self)
[all …]
/external/rust/crates/libtest-mimic/src/
Dprinter.rs5 //! - `color`
6 //! - `format` (and `quiet`)
7 //! - `logfile`
20 format: FormatSetting, field
26 /// Creates a new printer configured by the given arguments (`format`,
28 pub(crate) fn new(args: &Arguments, tests: &[Trial]) -> Self { in new()
48 // Determine correct format in new()
49 let format = if args.quiet { in new() localVariable
52 args.format.unwrap_or(FormatSetting::Pretty) in new()
80 format, in new()
[all …]
Dargs.rs9 /// `libtest-mimic` supports a subset of all args/flags supported by the
11 /// the main use cases should work exactly like with the built-in harness.
14 help_template = "USAGE: [OPTIONS] [FILTER]\n\n{all-args}\n\n\n{after-help}",
17 --test-threads flag when running tests (set it to 1).",
21 /// Run ignored and non-ignored tests.
22 #[arg(long = "include-ignored", help = "Run ignored tests")]
45 /// No-op, ignored (libtest-mimic always runs in no-capture mode)
46 #[arg(long = "nocapture", help = "No-op (libtest-mimic always runs in no-capture mode)")]
59 /// This is an alias for `--format=terse`. If this is set, `format` is
64 conflicts_with = "format",
[all …]
/external/drm_hwcomposer/.ci/
D.gitlab-ci-checkcommit.sh4 if ! command -v $1 &> /dev/null
22 match="$tag: $(echo $person | tr -s ' ')"
24 if [ -z "$(echo "$commit_body" | tr -s ' ' | grep -i "$match")" ]; then
28 echoerr "-----------------------------------------------------"
30 echoerr "-----------------------------------------------------"
39 check_tool_installed clang-format-diff-15
41 git fetch https://gitlab.freedesktop.org/drm-hwcomposer/drm-hwcomposer.git
43 git log --pretty='%h' FETCH_HEAD..HEAD | while read h; do
44 subject=$(git show -s --pretty='%s' "$h")
50 commit_body=$(git show -s --pretty=%b "$h")
[all …]
/external/ComputeLibrary/tests/framework/printers/
DPrinters.h4 * SPDX-License-Identifier: MIT
40 PRETTY enumerator
45 inline ::std::stringstream &operator>>(::std::stringstream &stream, LogFormat &format)
49 format = log_format_from_name(value);
53 inline ::std::stringstream &operator<<(::std::stringstream &stream, LogFormat format)
55 switch(format)
57 case LogFormat::PRETTY:
58 stream << "PRETTY";
67 throw std::invalid_argument("Unsupported log format");
/external/swiftshader/third_party/
Dupdate-llvm-16.sh3 # llvm now lives in a mono-repo along with clang, libc, lldb and a whole bunch
8 # * The llvm16-clean branch is fetched and checked out.
10 # * The third_party/llvm-16.0/llvm is replaced with the latest LLVM version.
12 # * The original branch is checked out again, and a merge from llvm16-clean to
16 STAGING_DIR="/tmp/llvm-16-update"
17 CLEAN_BRANCH="llvm16-clean"
19 TARGET_DIR="${THIRD_PARTY_DIR}/llvm-16.0/llvm"
23 SWIFTSHADER_HEAD=`git rev-parse HEAD`
26 if ! git diff --quiet HEAD; then
32 if [[ -d "$STAGING_DIR" ]]; then
[all …]
Dupdate-llvm-10.sh3 # llvm now lives in a mono-repo along with clang, libc, lldb and a whole bunch
8 # * The llvm10-clean branch is fetched and checked out.
10 # * The third_party/llvm-10.0/llvm is replaced with the latest LLVM version.
12 # * The original branch is checked out again, and a merge from llvm10-clean to
16 STAGING_DIR="/tmp/llvm-10-update"
17 CLEAN_BRANCH="llvm10-clean"
19 TARGET_DIR="${THIRD_PARTY_DIR}/llvm-10.0/llvm"
23 SWIFTSHADER_HEAD=`git rev-parse HEAD`
26 if ! git diff --quiet HEAD; then
32 if [[ -d "$STAGING_DIR" ]]; then
[all …]
/external/ComputeLibrary/tests/framework/command_line/
DCommonOptions.cpp2 * Copyright (c) 2018-2020 Arm Limited.
4 * SPDX-License-Identifier: MIT
45 log_file(parser.add_option<SimpleOption<std::string>>("log-file")), in CommonOptions()
47 throw_errors(parser.add_option<ToggleOption>("throw-errors")), in CommonOptions()
49 …color_output(parser.add_option<ToggleOption>("color-output", isatty(STDOUT_FILENO))), // Only enab… in CommonOptions()
51 pretty_console(parser.add_option<ToggleOption>("pretty-console", false)), in CommonOptions()
52 json_file(parser.add_option<SimpleOption<std::string>>("json-file")), in CommonOptions()
53 pretty_file(parser.add_option<SimpleOption<std::string>>("pretty-file")), in CommonOptions()
71 LogFormat::PRETTY, in CommonOptions()
87 …at = parser.add_option<EnumOption<LogFormat>>("log-format", supported_log_formats, LogFormat::PRE… in CommonOptions()
[all …]
/external/rust/crates/plotters/src/data/
Dfloat.rs2 fn find_minimal_repr(n: f64, eps: f64) -> (f64, usize) { in find_minimal_repr()
6 if n - n.floor() < eps { in find_minimal_repr()
8 } else if n.ceil() - n < eps { in find_minimal_repr()
11 let (rem, pre) = find_minimal_repr((n - n.floor()) * 10.0, eps * 10.0); in find_minimal_repr()
17 fn float_to_string(n: f64, max_precision: usize, min_decimal: usize) -> String { in float_to_string()
19 let (sign, n) = if n < 0.0 { ("-", -n) } else { ("", n) }; in float_to_string()
23 ((n.abs() - int_part.abs()) * (10.0f64).powi(max_precision as i32)).round() as u64; in float_to_string()
26 break (format!("{}{:.0}", sign, int_part), 0); in float_to_string()
30 let mut dec_result = format!("{}", dec_part); in float_to_string()
32 for _ in 0..(max_precision - dec_result.len()) { in float_to_string()
[all …]
/external/cronet/net/data/ocsp_unittest/
Dannotate_test_data.py3 # Use of this source code is governed by a BSD-style license that can be
7 """This script is called without any arguments to re-format all of the *.pem
32 # If there was a user comment (non-script-generated comment) associated
48 """Returns a string describing |block_data|. The format of |block_data| is
49 inferred from |block_name|, and is pretty-printed accordingly. For
50 instance CERTIFICATE is understood to be an X.509 certificate and pretty
51 printed using OpenSSL's x509 command. If there is no specific pretty-printer
54 # Try to pretty printing as X.509 certificate.
56 p = subprocess.Popen(["openssl", "x509", "-text", "-noout",
57 "-inform", "DER"],
[all …]
/external/cronet/third_party/boringssl/src/pki/testdata/ocsp_unittest/
Dannotate_test_data.py3 # Use of this source code is governed by a BSD-style license that can be
7 """This script is called without any arguments to re-format all of the *.pem
32 # If there was a user comment (non-script-generated comment) associated
48 """Returns a string describing |block_data|. The format of |block_data| is
49 inferred from |block_name|, and is pretty-printed accordingly. For
50 instance CERTIFICATE is understood to be an X.509 certificate and pretty
51 printed using OpenSSL's x509 command. If there is no specific pretty-printer
54 # Try to pretty printing as X.509 certificate.
56 p = subprocess.Popen(["openssl", "x509", "-text", "-noout",
57 "-inform", "DER"],
[all …]
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/tool/
DGenerateComparison.java61 format = NumberFormat.getNumberInstance(); in main()
62 format.setGroupingUsed(true); in main()
80 "../cldr-release-1-7/common/main")) in main()
196 // TODO Sort by the pretty form in main()
275 // TODO check for non-distinguishing attribute value differences in main()
279 // Skip deletions of alt-proposed in main()
337 status = "NOT-ACC"; in main()
356 "Bad pretty path: " + pretty_sort + ", original: " + cleanedPath); in main()
362 String pretty = prettyPathMaker.getOutputForm(pretty_sort); in main() local
368 String[] prettyParts = pretty.split("[|]"); in main()
[all …]
/external/sg3_utils/doc/
Dsg3_utils_json.81 .TH SG3_UTILS_JSON "8" "November 2022" "sg3_utils\-1.48" SG3_UTILS
3 sg3_utils_json \- JSON output for some sg3_utils utilities
6 \fI\-\-json[=JO]\fR [\fIOTHER_OPTIONS\fR] [\fIDEVICE\fR]
14 output, rather than simple, human-readable output. The default remains
15 human-readable output.
17 JavaScript Object Notation (JSON) is an open standard file format that can be
20 uses the json-builder C implementation found at
21 https://github.com/json-parser/json-builder which implements four simple JSON
28 underscore characters. The json-builder library uses the
29 SPDX\-License\-Identifier: BSD\-2\-Clause which is the same license as the
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DPrettyStackTrace.cpp1 //===- PrettyStackTrace.cpp - Pretty Crash Handling -----------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
15 #include "llvm-c/ErrorHandling.h"
35 // If backtrace support is not enabled, compile out support for pretty stack
43 // thread-local variable.
65 std::tie(Prev, Head, Head->NextEntry) = in ReverseStackTrace()
66 std::make_tuple(Head, Head->NextEntry, Prev); in ReverseStackTrace()
73 // to fail if we crashed due to stack overflow), we do an up-front pass to in PrintStack()
[all …]
/external/python/cpython3/Lib/
Dpprint.py7 # tuples with fairly non-descriptive content. This is modeled very much
8 # after Lisp/Scheme - style pretty-printing of lists. If you find it
11 """Support to pretty-print lists, tuples, & dictionaries recursively.
16 -------
19 Handle pretty-printing operations onto a stream using a configured
23 ---------
26 Format a Python object into a pretty-printed representation.
29 Pretty-print a Python object to a stream [default is sys.stdout].
32 Generate a 'standard' repr()-like value, but protect against recursive
50 """Pretty-print a Python object to a stream [default is sys.stdout]."""
[all …]
/external/wpa_supplicant_8/wpa_supplicant/examples/
Dwps-nfc.py4 # Copyright (c) 2012-2013, Jouni Malinen <j@w1.fi>
110 ret = wpas.request("NFC_GET_HANDOVER_REQ NDEF WPS-CR")
121 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF WPS-CR").rstrip()
123 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF WPS-CR " + uuid).rstrip()
145 # override to avoid parser error in request/response.pretty() in nfcpy
146 # due to new WSC handover format
148 summary("received handover request {}".format(request.type))
156 summary("error decoding 'Hr' message: {}".format(e))
159 summary("send handover response {}".format(response.type))
164 summary("HandoverServer - request received")
[all …]
Dp2p-nfc.py4 # Copyright (c) 2012-2013, Jouni Malinen <j@w1.fi>
94 res = wpas.request("NFC_GET_HANDOVER_REQ NDEF P2P-CR").rstrip()
103 res = wpas.request("NFC_GET_HANDOVER_REQ NDEF WPS-CR").rstrip()
114 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF P2P-CR-TAG").rstrip()
116 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF P2P-CR").rstrip()
126 res = wpas.request("NFC_GET_HANDOVER_SEL NDEF WPS-CR");
169 print("Handover request (pre-WPS):")
171 print(message.pretty())
183 print(message.pretty())
216 summary("Response was not Hs - received: " + message.type)
[all …]
/external/swiftshader/third_party/llvm-16.0/llvm/lib/Support/
DPrettyStackTrace.cpp1 //===- PrettyStackTrace.cpp - Pretty Crash Handling -----------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
15 #include "llvm-c/ErrorHandling.h"
44 // If backtrace support is not enabled, compile out support for pretty stack
52 // thread-local variable.
75 std::tie(Prev, Head, Head->NextEntry) = in ReverseStackTrace()
76 std::make_tuple(Head, Head->NextEntry, Prev); in ReverseStackTrace()
83 // to fail if we crashed due to stack overflow), we do an up-front pass to in PrintStack()
[all …]

12345678910>>...42