Home
last modified time | relevance | path

Searched +full:- +full:print +full:- +full:file +full:- +full:name (Results 1 – 25 of 1068) sorted by relevance

12345678910>>...43

/third_party/grpc/tools/codegen/core/
Dgen_config_vars.py6 # you may not use this file except in compliance with the License.
9 # http://www.apache.org/licenses/LICENSE-2.0
38 if "name" not in attr:
39 print("config has no name: %r" % attr)
43 "experiment" in attr["name"] and "experimental" not in attr["name"]
44 ) and attr["name"] != "experiments":
45 print("use experiment system for experiments")
48 print("no description for %s" % attr["name"])
51 print("no default for %s" % attr["name"])
77 # utility: print a big comment block into a set of files
[all …]
Dgen_stats_data.py6 # you may not use this file except in compliance with the License.
9 # http://www.apache.org/licenses/LICENSE-2.0
30 REQUIRED_FIELDS = ["name", "doc"]
33 def make_type(name, fields): argument
36 name, " ".join(list(set(REQUIRED_FIELDS + fields)))
70 name = attr[t_name] variable
72 lst.append(t(name=name, **attr))
100 table_size = mapped_bounds[n - 1] >> shift_bits
111 # print("gen_map_table(%s, %s)" % (mapped_bounds, shift_data))
115 for i in range(0, mapped_bounds[shift_data[1] - 1]):
[all …]
Dexperiments_compiler.py6 # you may not use this file except in compliance with the License.
9 # http://www.apache.org/licenses/LICENSE-2.0
35 This file contains the autogenerated parts of the experiments API.
41 - a function IsNewCarProjectEnabled() that returns true if the experiment
44 - a macro GRPC_EXPERIMENT_IS_INCLUDED_NEW_CAR_PROJECT that is defined if the
48 non-experiment code path.
64 --define=grpc_experiments_are_final=true
97 def _EXPERIMENTS_EXPECTED_VALUE(name, expected_value): argument
99 bool GetExperiment{name}ExpectedValue() {{
105 def _EXPERIMENT_CHECK_TEXT(name): argument
[all …]
Dgen_grpc_tls_credentials_options.py6 # you may not use this file except in compliance with the License.
9 # http://www.apache.org/licenses/LICENSE-2.0
33 name: str # name of the data member without the trailing '_'
35 test_name: str # The name to use for the associated test
36 test_value_1: str # Test-specific value to use for comparison
37 test_value_2: str # Test-specific value (different from test_value_1)
38 …default_initializer: str = ( # If non-empty, this will be used as the default initialization of t…
49 setter_move_semantics: bool = False # Should the setter use move-semantics
50 special_comparator: str = ( # If non-empty, this will be used in `operator==`
57 name="cert_request_type",
[all …]
/third_party/cups/examples/
Dipp-everywhere.test4 # Copyright © 2020-2024 by OpenPrinting.
5 # Copyright © 2007-2018 by Apple Inc.
6 # Copyright © 2001-2006 by Easy Software Products. All rights reserved.
8 # Licensed under Apache License v2.0. See the file "LICENSE" for more
13 # ./ipptool -V 2.0 -tf filename.ext printer-uri ipp-everywhere.test
17 INCLUDE "ipp-2.0.test"
24 NAME "PWG 5100.14 section 5.1/5.2 - Required Operations and Attributes"
25 OPERATION Get-Printer-Attributes
26 GROUP operation-attributes-tag
27 ATTR charset attributes-charset utf-8
[all …]
/third_party/grpc/src/compiler/
Dnode_generator.cc6 * you may not use this file except in compliance with the License.
9 * http://www.apache.org/licenses/LICENSE-2.0
42 // This scheme could technically cause problems if a file includes any 2 of: in ModuleAlias()
47 // We'll worry about this problem if/when we actually see it. This name isn't in ModuleAlias()
50 basename = grpc_generator::StringReplace(basename, "-", "$"); in ModuleAlias()
57 // message file foo/bar/baz.js
59 std::string name = filename; in GetJSMessageFilename() local
60 return grpc_generator::StripProto(name) + "_pb.js"; in GetJSMessageFilename()
68 // Well-known types (.proto files in the google/protobuf directory) are in GetRootPath()
69 // assumed to come from the 'google-protobuf' npm package. We may want to in GetRootPath()
[all …]
Druby_generator.cc6 * you may not use this file except in compliance with the License.
9 * http://www.apache.org/licenses/LICENSE-2.0
26 #include "src/compiler/ruby_generator_helpers-inl.h"
27 #include "src/compiler/ruby_generator_map-inl.h"
28 #include "src/compiler/ruby_generator_string-inl.h"
43 std::string input_type = RubyTypeOf(method->input_type()); in PrintMethod()
44 if (method->client_streaming()) { in PrintMethod()
47 std::string output_type = RubyTypeOf(method->output_type()); in PrintMethod()
48 if (method->server_streaming()) { in PrintMethod()
52 "mth.name", in PrintMethod()
[all …]
Dpython_generator.cc6 * you may not use this file except in compliance with the License.
9 * http://www.apache.org/licenses/LICENSE-2.0
69 // // destructor called at end of scope, un-indenting my_py_printer
74 // NOTE(rbellevi): Two-space tabs are hard-coded in the protocol compiler. in IndentScope()
76 printer_->Indent(); in IndentScope()
77 printer_->Indent(); in IndentScope()
81 printer_->Outdent(); in ~IndentScope()
82 printer_->Outdent(); in ~IndentScope()
90 const grpc_generator::File* file) in PrivateGenerator() argument
91 : config(config), file(file) {} in PrivateGenerator()
[all …]
Dcsharp_generator.cc6 * you may not use this file except in compliance with the License.
9 * http://www.apache.org/licenses/LICENSE-2.0
66 printer->Print("/// <summary>\n"); in GenerateDocCommentBodyImpl()
82 printer->Print("///\n"); in GenerateDocCommentBodyImpl()
91 printer->Print("///$line$\n", "line", line); in GenerateDocCommentBodyImpl()
94 printer->Print("/// </summary>\n"); in GenerateDocCommentBodyImpl()
102 // * it would cause a lot of churn in the pre-generated code in GenerateGeneratedCodeAttribute()
104 printer->Print( in GenerateGeneratedCodeAttribute()
113 printer->Print("[global::System.ObsoleteAttribute]\n"); in GenerateObsoleteAttribute()
121 if (!descriptor->GetSourceLocation(&location)) { in GenerateDocCommentBody()
[all …]
Dphp_generator.cc6 * you may not use this file except in compliance with the License.
9 * http://www.apache.org/licenses/LICENSE-2.0
39 std::string ConvertToPhpNamespace(const std::string& name) { in ConvertToPhpNamespace() argument
40 std::vector<std::string> tokens = grpc_generator::tokenize(name, "."); in ConvertToPhpNamespace()
49 std::string PackageName(const FileDescriptor* file) { in PackageName() argument
50 if (file->options().has_php_namespace()) { in PackageName()
51 return file->options().php_namespace(); in PackageName()
53 return ConvertToPhpNamespace(std::string(file->package())); in PackageName()
57 std::string MessageIdentifierName(const std::string& name, in MessageIdentifierName() argument
58 const FileDescriptor* file) { in MessageIdentifierName() argument
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
Dpromote.py3 # Copyright 2016-2024 The Khronos Group Inc.
5 # SPDX-License-Identifier: Apache-2.0
10 # Usage: promote.py [-overwrite] [-out dir] [-suffix str] files
11 # -overwrite updates in place (can be risky, make sure there are backups)
12 # -out specifies directory to create output file in, default 'out'
13 # -suffix specifies suffix to add to output files, default ''
16 # For error and file-loading interfaces only
25 return 'promoted-' + str(anchor)
31 print('[[' + anchorname(anchor) + ']]', file=fp)
32 print('This anchor:', anchorname(anchor), file=fp)
[all …]
DgenRef.py3 # Copyright 2016-2024 The Khronos Group Inc.
5 # SPDX-License-Identifier: Apache-2.0
7 # genRef.py - create API ref pages from spec source files
39 # Other refpage types - SPIR-V builtins, API feature blocks, etc. - which do
49 def makeExtensionInclude(name): argument
51 - name - extension name"""
55 name,
59 def makeAPIInclude(type, name): argument
61 - type - type of the API, e.g. 'flags', 'handles', etc
62 - name - name of the API"""
[all …]
/third_party/protobuf/src/google/protobuf/compiler/php/
Dphp_generator.cc1 // Protocol Buffers - Google's data interchange format
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
67 std::string GeneratedMetadataFileName(const FileDescriptor* file,
69 std::string UnderscoresToCamelCase(absl::string_view name,
73 void GenerateAddFilesToPool(const FileDescriptor* file, const Options& options,
93 absl::string_view full_name = desc->full_name(); in DescriptorFullName()
130 if (desc->file()->options().has_php_namespace()) { in RootPhpNamespace()
131 absl::string_view php_namespace = desc->file()->options().php_namespace(); in RootPhpNamespace()
[all …]
/third_party/mksh/
Dcheck.pl3 #-
10 # is granted to deal in this work without restriction, including un-
22 #-
24 # name: a-test
27 # arguments: !-x!-f!
29 # echo -n *
31 # expected-stdout: !
33 # expected-stderr:
34 # + echo -n *
36 # expected-exit: 1
[all …]
/third_party/python/Tools/scripts/
Dparse_html5_entities.py20 """Download the json file from the url and returns a decoded object."""
22 data = f.read().decode('utf-8')
28 for name, value in entities.items():
29 new_html5[name.lstrip('&')] = value['characters']
33 """Compare the old and new dicts and print the differences."""
34 added = new.keys() - old.keys()
36 print('{} entitie(s) have been added:'.format(len(added)))
37 for name in sorted(added):
38 print(' {!r}: {!r}'.format(name, new[name]))
39 removed = old.keys() - new.keys()
[all …]
Dtexi2html.py3 # Convert GNU texinfo files into HTML, one file per node.
5 # Usage: texi2html [-d] [-d] [-c] inputfile outputdirectory
6 # The input file must be a complete texinfo file, e.g. emacs.texi.
8 # overwriting existing files of the same name. All files created have
13 # - handle @comment*** correctly
14 # - handle @xref {some words} correctly
15 # - handle @ftable correctly (items aren't indexed?)
16 # - handle @itemx properly
17 # - handle @exdent properly
18 # - add links directly to the proper line from indices
[all …]
/third_party/protobuf/src/google/protobuf/compiler/python/
Dgenerator.cc1 // Protocol Buffers - Google's data interchange format
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
10 // This module outputs pure-Python protocol message classes that will
19 // performance-minded Python code leverage the fast C++ implementation
71 // We can't have dots in the module name, so we replace each with _dot_. in ModuleAlias()
79 // Name of the class attribute where we store the Python
91 // None for non-repeated, composite fields).
114 // Python pre-2.6 on Windows does not parse "inf" correctly. However, in StringifyDefaultValue()
[all …]
Dpyi_generator.cc1 // Protocol Buffers - Google's data interchange format
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file or at
6 // https://developers.google.com/open-source/licenses/bsd
39 std::string name = NamePrefixedWithNestedTypes(descriptor, "."); in ModuleLevelName() local
40 if (descriptor.file() != file_) { in ModuleLevelName()
42 const absl::string_view filename = descriptor.file()->name(); in ModuleLevelName()
44 std::string module_name = ModuleName(descriptor.file()->name()); in ModuleLevelName()
50 name = absl::StrCat(module_alias, ".", name); in ModuleLevelName()
52 return name; in ModuleLevelName()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/scripts/
Dupdate.py6 # you may not use this file except in compliance with the License.
9 # http://www.apache.org/licenses/LICENSE-2.0
29 # LLVM_BRANCH must match the value of the same variable in third_party/update-llvm-10.sh
32 … must be set to the commit hash that we last updated to when running third_party/update-llvm-10.sh.
33 # Run 'git show -s origin/llvm10-clean' and look for 'llvm-10-update: <hash>' to retrieve it.
37 LLVM_STAGING_DIR = path.abspath(path.join(tempfile.gettempdir(), "llvm-10"))
51 # Per-platform arches
54 ('__x86_64__', 'x86_64-linux-android'),
55 ('__i386__', 'i686-linux-android'),
56 ('__arm__', 'armv7-linux-androideabi'),
[all …]
/third_party/mesa3d/src/freedreno/registers/
Dgen_header.py3 # Copyright © 2019-2024 Google, Inc.
5 # SPDX-License-Identifier: MIT
20 def __init__(self, name): argument
21 self.name = name
24 def has_name(self, name): argument
26 if n == name:
35 for (name, value) in self.values:
39 print("enum %s {" % self.name)
40 for (name, value) in self.values:
42 print("\t%s = 0x%08x," % (name, value))
[all …]
/third_party/toybox/tests/
Dfind.test3 [ -f testing.sh ] && . testing.sh
7 touch file
9 # fs timestamp granularity isn't always enough for -newer to tell, so wait
11 ln -s fifo link
16 touch perm/all-read-only
17 chmod a=r perm/all-read-only
19 #testing "name" "command" "result" "infile" "stdin"
23 testing "-type l -a -type d -o -type p" \
24 "find dir -type l -a -type d -o -type p" "dir/fifo\n" "" ""
25 testing "-type l -type d -o -type p" "find dir -type l -type d -o -type p" \
[all …]
/third_party/icu/tools/scripts/
Dbldicures.py1 #!/usr/bin/python -B
6 # Copyright (C) 2013-2014 IBM Corporation and Others. All Rights Reserved.
8 print("NOTE: this tool is a TECHNOLOGY PREVIEW and not a supported ICU tool.")
10 # @author Steven R. Loomis <srl@icu-project.org>
19 ##$ rm -rf ./out
20 ##$ bldicures.py --name myapp --from ./loc -d ./out
23 # use 'bldicures.py --help' for help.
36 # for utf-8
38 #sys.setdefaultencoding("utf-8")
45 … ICU Resource Builder', epilog='ICU tool, http://icu-project.org - master copy at http://source.ic…
[all …]
/third_party/python/Lib/ctypes/
Dutil.py6 # find_library(name) returns the pathname of a library, or None.
7 if os.name == "nt":
18 if i == -1:
22 majorVersion = int(s[:-2]) - 6
35 """Return the name of the VC runtime dll"""
55 def find_library(name): argument
56 if name in ('c', 'm'):
60 fname = os.path.join(directory, name)
70 elif os.name == "posix" and sys.platform == "darwin":
72 def find_library(name): argument
[all …]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/Retired/
DfixupRef.py3 # Copyright 2016-2024 The Khronos Group Inc.
5 # SPDX-License-Identifier: Apache-2.0
7 # fixupRef.py - replace old // refBegin .. // refEnd syntax with new
10 # Usage: fixupRef.py [-outdir path] [-overwrite] files
30 print("[open,refpage='" + pi.name +
34 file=fp)
36 print("[open,refpage='" + pi.name +
39 file=fp)
40 print('--', file=fp)
44 print('--', file=fp)
[all …]
/third_party/flatbuffers/grpc/src/compiler/
Dts_generator.cc5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
18 * NOTE: The following implementation is a translation for the Swift-grpc
20 * please open an issue in the flatbuffers repository. This file should always
21 * be maintained according to the Swift-grpc repository
57 // MARK: - Shared code
64 printer->Print( in GenerateImports()
66 printer->Print("import * as flatbuffers from 'flatbuffers';\n"); in GenerateImports()
70 for (auto it = 0; it < service->method_count(); it++) { in GenerateImports()
71 auto method = service->method(it); in GenerateImports()
[all …]

12345678910>>...43