Searched refs:date_removed (Results 1 – 7 of 7) sorted by relevance
/external/pigweed/pw_tokenizer/py/ |
D | tokens_test.py | 148 self.assertEqual(jello.date_removed, datetime.datetime(2019, 6, 11)) 155 self.assertIsNone(llu.date_removed) 204 1, 'one', date_removed=datetime.datetime.min), 206 2, 'two', date_removed=datetime.datetime.min), 209 self.assertEqual(db.token_to_entries[1][0].date_removed, 211 self.assertEqual(db.token_to_entries[2][0].date_removed, 219 4, 'four', date_removed=datetime.datetime.min), 224 self.assertIsNone(db.token_to_entries[3][0].date_removed) 225 self.assertEqual(db.token_to_entries[4][0].date_removed, 235 self.assertEqual(db.token_to_entries[4][0].date_removed, [all …]
|
D | detokenize_test.py | 108 date_removed=dt.datetime.now()) 118 date_removed=dt.datetime(1, 1, 1)) 135 date_removed=dt.datetime(1, 1, 1)) 150 date_removed=dt.datetime(1, 1, 1)) 167 date_removed=dt.datetime( 318 token, 'REMOVED', date_removed=dt.datetime(9, 1, 1)), 321 token, 'A: %d', date_removed=dt.datetime(30, 5, 9)), 323 token, 'B: %c', date_removed=dt.datetime(30, 5, 10)),
|
/external/pigweed/pw_tokenizer/py/pw_tokenizer/ |
D | tokens.py | 81 date_removed: Optional[datetime] = None variable in TokenizedStringEntry 91 if self.date_removed is None: 94 if new_date_removed is None or new_date_removed > self.date_removed: 95 self.date_removed = new_date_removed 104 if self.date_removed != other.date_removed: 105 return (other.date_removed or datetime.max) < (self.date_removed 195 and (entry.date_removed is None 196 or removal_date < entry.date_removed)): 198 entry.date_removed = removal_date 212 entry.date_removed = None [all …]
|
D | database.py | 218 present = [entry for entry in db.entries() if not entry.date_removed] 302 if not entry.date_removed), date)
|
D | detokenize.py | 98 entry.date_removed or datetime.max) # most recently present
|
/external/pigweed/pw_tokenizer/ |
D | detokenize.cc | 77 for (const auto& [format, date_removed] : entries) { in DetokenizedString() 78 results.push_back(DecodingResult{format.Format(arguments), date_removed}); in DetokenizedString() 102 database_[entry.token].emplace_back(entry.string, entry.date_removed); in Detokenizer()
|
/external/pigweed/pw_tokenizer/public/pw_tokenizer/ |
D | token_database.h | 61 uint32_t date_removed; member 76 uint32_t date_removed; member 91 return {raw_->token, raw_->date_removed, string_}; in entry()
|