Home
last modified time | relevance | path

Searched refs:field_names (Results 1 – 13 of 13) sorted by relevance

/third_party/python/Lib/collections/
D__init__.py328 def namedtuple(typename, field_names, *, rename=False, defaults=None, module=None): argument
354 if isinstance(field_names, str):
355 field_names = field_names.replace(',', ' ').split()
356 field_names = list(map(str, field_names))
361 for index, name in enumerate(field_names):
366 field_names[index] = f'_{index}'
369 for name in [typename] + field_names:
380 for name in field_names:
391 if len(defaults) > len(field_names):
393 field_defaults = dict(reversed(list(zip(reversed(field_names),
[all …]
/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/io/
Dshard_segment.cc42 std::vector<std::vector<std::string>> field_names; in GetCategoryFields() local
45 …int rc = sqlite3_exec(database_paths_[0], common::SafeCStr(sql), SelectCallback, &field_names, &er… in GetCategoryFields()
54 …MS_LOG(INFO) << "Succeed to get " << static_cast<int>(field_names.size()) << " records from index.… in GetCategoryFields()
58 while (idx < field_names.size()) { in GetCategoryFields()
59 if (field_names[idx].size() < 2) { in GetCategoryFields()
64 std::to_string(field_names[idx].size())); in GetCategoryFields()
66 candidate_category_fields_.push_back(field_names[idx][1]); in GetCategoryFields()
/third_party/benchmark/test/
Doutput_test_helper.cc192 std::vector<std::string> field_names; member in internal::ResultsChecker
263 field_names = SplitCsv_(csv_header); in SetHeader_()
269 BM_CHECK(!field_names.empty()); in SetValues_()
271 BM_CHECK_EQ(vals.size(), field_names.size()); in SetValues_()
275 entry.values[field_names[i]] = vals[i]; in SetValues_()
283 if (!field_names.empty()) out.reserve(field_names.size()); in SplitCsv_()
/third_party/flatbuffers/tests/cpp17/
Dstringify_util.h72 return indent + FBS::Traits::field_names[Index] + " = " + *value_string +
/third_party/python/Lib/
Ddataclasses.py1133 field_names = tuple(f.name for f in fields(cls))
1134 cls_dict['__slots__'] = field_names
1135 for field_name in field_names:
/third_party/e2fsprogs/ext2ed/
Dgeneral_com.c395 if (strcmp (current_type->field_names [i],variable)==0) { in set()
667 wprintw (show_pad,"%-20s = ",current_type->field_names [i]); in show()
Dext2ed.h91 unsigned char field_names [MAX_FIELDS][80]; member
Dinit.c237 strcpy (ptr->field_names [ptr->fields_num],v_name); in add_new_variable()
/third_party/flatbuffers/tests/cpp17/generated_cpp17/
Dmonster_test_generated.h522 static constexpr std::array<const char *, 2> field_names = {
629 static constexpr std::array<const char *, 6> field_names = {
691 static constexpr std::array<const char *, 2> field_names = {
753 static constexpr std::array<const char *, 3> field_names = {
811 static constexpr std::array<const char *, 0> field_names = {};
865 static constexpr std::array<const char *, 0> field_names = {};
942 static constexpr std::array<const char *, 1> field_names = {
1056 static constexpr std::array<const char *, 3> field_names = {
1154 static constexpr std::array<const char *, 1> field_names = {
2059 static constexpr std::array<const char *, 50> field_names = {
[all …]
Doptional_scalars_generated.h642 static constexpr std::array<const char *, 36> field_names = { member
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/
Dbasic.rb789 field_names = o.map{|f| f.name}.sort
790 assert field_names == ["a", "b", "c", "d"]
/third_party/python/Doc/library/
Dcollections.rst838 .. function:: namedtuple(typename, field_names, *, rename=False, defaults=None, module=None)
843 helpful docstring (with typename and field_names) and a helpful :meth:`__repr__`
846 The *field_names* are a sequence of strings such as ``['x', 'y']``.
847 Alternatively, *field_names* can be a single string with each fieldname
/third_party/protobuf/ruby/tests/
Dcommon_tests.rb575 field_names = o.map{|f| f.name}.sort
576 assert field_names == ["a", "b", "c", "d"]