/third_party/python/Lib/collections/ |
D | __init__.py | 328 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/ |
D | shard_segment.cc | 42 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/ |
D | output_test_helper.cc | 192 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/ |
D | stringify_util.h | 72 return indent + FBS::Traits::field_names[Index] + " = " + *value_string +
|
/third_party/python/Lib/ |
D | dataclasses.py | 1133 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/ |
D | general_com.c | 395 if (strcmp (current_type->field_names [i],variable)==0) { in set() 667 wprintw (show_pad,"%-20s = ",current_type->field_names [i]); in show()
|
D | ext2ed.h | 91 unsigned char field_names [MAX_FIELDS][80]; member
|
D | init.c | 237 strcpy (ptr->field_names [ptr->fields_num],v_name); in add_new_variable()
|
/third_party/flatbuffers/tests/cpp17/generated_cpp17/ |
D | monster_test_generated.h | 522 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 …]
|
D | optional_scalars_generated.h | 642 static constexpr std::array<const char *, 36> field_names = { member
|
/third_party/protobuf/ruby/compatibility_tests/v3.0.0/tests/ |
D | basic.rb | 789 field_names = o.map{|f| f.name}.sort 790 assert field_names == ["a", "b", "c", "d"]
|
/third_party/python/Doc/library/ |
D | collections.rst | 838 .. 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/ |
D | common_tests.rb | 575 field_names = o.map{|f| f.name}.sort 576 assert field_names == ["a", "b", "c", "d"]
|