/external/python/cpython3/Lib/idlelib/idle_test/ |
D | test_history.py | 3 from idlelib.history import History 22 cls.history = History(cls.text) 26 self.history.history = [] 29 self.assertIs(self.history.text, self.text) 30 self.assertEqual(self.history.history, []) 31 self.assertIsNone(self.history.prefix) 32 self.assertIsNone(self.history.pointer) 33 self.assertEqual(self.history.cyclic, 37 self.history.store('a') 38 self.assertEqual(self.history.history, []) [all …]
|
/external/python/cpython2/Lib/idlelib/idle_test/ |
D | test_idlehistory.py | 19 cls.history = History(cls.text) 23 self.history.history = [] 26 self.assertIs(self.history.text, self.text) 27 self.assertEqual(self.history.history, []) 28 self.assertIsNone(self.history.prefix) 29 self.assertIsNone(self.history.pointer) 30 self.assertEqual(self.history.cyclic, 34 self.history.store('a') 35 self.assertEqual(self.history.history, []) 36 self.history.store(' a ') [all …]
|
/external/jline/src/src/main/java/jline/ |
D | History.java | 19 private List history = new ArrayList(); field in History 72 return history.size(); in size() 79 history.clear(); in clear() 89 if ((history.size() != 0) && buffer.equals(history.get(history.size() - 1))) { in addToHistory() 93 history.add(buffer); in addToHistory() 95 while (history.size() > getMaxSize()) { in addToHistory() 96 history.remove(0); in addToHistory() 99 currentIndex = history.size(); in addToHistory() 112 … for (Iterator i = history.iterator(); i.hasNext(); getOutput().println((String) i.next())) { in flushBuffer() 128 int lastEntry = history.size() - 1; in moveToLastEntry() [all …]
|
D | ConsoleReader.java | 127 History history = new History(); field in ConsoleReader 543 searchIndex = history.searchBackwards(searchTerm.toString()); in readLine() 545 … searchIndex = history.searchBackwards(searchTerm.toString(), searchIndex); in readLine() 552 searchIndex = history.searchBackwards(searchTerm.toString()); in readLine() 558 searchIndex = history.searchBackwards(searchTerm.toString()); in readLine() 564 history.setCurrentIndex(searchIndex); in readLine() 565 setBuffer(history.current()); in readLine() 566 buf.cursor = history.current().indexOf(searchTerm.toString()); in readLine() 580 … printSearchStatus(searchTerm.toString(), history.getHistory(searchIndex)); in readLine() 676 success = history.moveToFirstEntry(); in readLine() [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowWebView.java | 59 private ArrayList<String> history = new ArrayList<>(); field in ShadowWebView 143 history.add(0, url); in loadUrl() 159 history.add(0, historyUrl); in loadDataWithBaseURL() 244 history.clear(); in clearHistory() 298 return history.size() > 1; in canGoBack() 310 history.remove(0); in goBack() 311 if (!history.isEmpty()) { in goBack() 312 originalUrl = history.get(0); in goBack() 319 return new BackForwardList(history); in copyBackForwardList() 382 if (history.size() > 0) { in saveState() [all …]
|
/external/tensorflow/tensorflow/python/keras/ |
D | integration_test.py | 57 history = model.fit(x_train, y_train, epochs=10, batch_size=10, 60 self.assertGreater(history.history['val_acc'][-1], 0.7) 62 self.assertAlmostEqual(history.history['val_acc'][-1], val_acc) 96 history = model.fit(x_train, y_train, epochs=10, batch_size=10, 99 self.assertGreater(history.history['val_acc'][-1], 0.7) 101 self.assertAlmostEqual(history.history['val_acc'][-1], val_acc) 131 history = model.fit(x_train, y_train, epochs=15, batch_size=10, 134 self.assertGreater(history.history['val_acc'][-1], 0.7) 136 self.assertAlmostEqual(history.history['val_acc'][-1], val_acc) 160 history = model.fit(x_train, y_train, epochs=15, batch_size=10, [all …]
|
D | metrics_correctness_test.py | 139 history = model.fit([self.x, self.x], [self.y, self.y], 148 self.assertAllClose(history.history[key], value, 1e-3) 189 history = model.fit_generator( 192 self.assertAllClose(history.history[key], value, 1e-3) 274 history = model.fit( 282 self.assertAllClose(history.history[key], value, 1e-3) 310 history = model.fit_generator( 313 self.assertAllClose(history.history[key], value, 1e-3)
|
/external/google-breakpad/src/testing/gtest/test/ |
D | gtest-linked_ptr_test.cc | 44 Message* history = NULL; variable 49 A(): mynum(num++) { *history << "A" << mynum << " ctor\n"; } in A() 50 virtual ~A() { *history << "A" << mynum << " dtor\n"; } in ~A() 51 virtual void Use() { *history << "A" << mynum << " use\n"; } in Use() 59 B() { *history << "B" << mynum << " ctor\n"; } in B() 60 ~B() { *history << "B" << mynum << " dtor\n"; } in ~B() 61 virtual void Use() { *history << "B" << mynum << " use\n"; } in Use() 68 history = new Message; in LinkedPtrTest() 72 delete history; in ~LinkedPtrTest() 73 history = NULL; in ~LinkedPtrTest() [all …]
|
/external/python/cpython3/Doc/library/ |
D | readline.rst | 13 completion and reading/writing of history files from the Python interpreter. 94 The following functions operate on a history file: 99 Load a readline history file, and append it to the history list. 100 The default filename is :file:`~/.history`. This calls 106 Save the history list to a readline history file, overwriting any 107 existing file. The default filename is :file:`~/.history`. This calls 113 Append the last *nelements* items of history to a file. The default filename is 114 :file:`~/.history`. The file must already exist. This calls 125 Set or return the desired number of lines to save in the history file. 127 the history file, by calling :c:func:`history_truncate_file` in [all …]
|
/external/libchrome/base/memory/ |
D | linked_ptr_unittest.cc | 15 std::string history; variable 19 A(): mynum(num++) { history += base::StringPrintf("A%d ctor\n", mynum); } in A() 20 virtual ~A() { history += base::StringPrintf("A%d dtor\n", mynum); } in ~A() 21 virtual void Use() { history += base::StringPrintf("A%d use\n", mynum); } in Use() 27 B() { history += base::StringPrintf("B%d ctor\n", mynum); } in B() 28 ~B() override { history += base::StringPrintf("B%d dtor\n", mynum); } in ~B() 29 void Use() override { history += base::StringPrintf("B%d use\n", mynum); } in Use() 86 ASSERT_EQ(history, in TEST()
|
/external/autotest/site_utils/ |
D | lab_inventory.py | 140 def _get_diagnosis(history): argument 143 diagnosis = _Diagnosis(*history.last_diagnosis()) 145 and diagnosis.task.end_time < history.start_time): 154 fields={'host': history.hostname, 'presence': dut_present}) 158 def _host_is_working(history): argument 159 return _get_diagnosis(history).status == status_history.WORKING 162 def _host_is_broken(history): argument 163 return _get_diagnosis(history).status == status_history.BROKEN 166 def _host_is_idle(history): argument 168 return _get_diagnosis(history).status in idle_statuses [all …]
|
D | dut_status.py | 173 for history in history_list: 174 status, event = history.last_diagnosis() 184 print fmt % (history.hostname, 213 for history in history_list: 214 status, _ = history.last_diagnosis() 217 print history.hostname 219 for event in history: 222 for event in history.diagnosis_interval():
|
D | lab_inventory_unittest.py | 88 def _get_diagnosis_status(self, history): argument 89 return lab_inventory._get_diagnosis(history).status 93 history = _FakeHostHistory('', '', _WORKING) 94 history.fake_task = _FakeHostEvent(history.start_time + 1) 95 self.assertEqual(self._get_diagnosis_status(history), _WORKING) 99 history = _FakeHostHistory('', '', _BROKEN) 100 history.fake_task = _FakeHostEvent(history.start_time + 1) 101 self.assertEqual(self._get_diagnosis_status(history), _BROKEN) 105 history = _FakeHostHistory('', '', _BROKEN) 106 history.fake_task = _FakeHostEvent(history.start_time - 1) [all …]
|
/external/python/cpython2/Doc/library/ |
D | readline.rst | 11 completion and reading/writing of history files from the Python interpreter. 84 The following functions operate on a history file: 89 Load a readline history file, and append it to the history list. 90 The default filename is :file:`~/.history`. This calls 96 Save the history list to a readline history file, overwriting any 97 existing file. The default filename is :file:`~/.history`. This calls 104 Set or return the desired number of lines to save in the history file. 106 the history file, by calling :c:func:`history_truncate_file` in 108 unlimited history file size. 114 The following functions operate on a global history list: [all …]
|
/external/autotest/server/cros/network/ |
D | netperf_session.py | 107 history = [] 112 while len(history) + none_count < self.MEASUREMENT_MAX_SAMPLES: 123 history.append(result) 124 if len(history) < self.MEASUREMENT_MIN_SAMPLES: 127 final_result = self._from_samples(history) 133 final_result = self._from_samples(history) 135 return history or None
|
/external/mksh/src/ |
D | histrap.c | 360 if (histptr >= history && last_line != hist_source->line) { in hist_execute() 396 if ((size_t)hp < (size_t)history) { in hist_get() 418 if ((n = findhist(histptr - history - 1, 0, str, anchored)) < 0) in hist_get() 421 hp = &history[n]; in hist_get() 430 if (histptr < history || (!allow_cur && histptr == history)) { in hist_get_newest() 441 if (histptr <= history) { in hist_get_oldest() 445 return (history); in hist_get_oldest() 464 int last = histptr - history; in histnum() 470 current = &history[n]; in histnum() 485 int maxhist = histptr - history; in findhist() [all …]
|
/external/python/cpython2/Lib/idlelib/ |
D | IdleHistory.py | 23 self.history = [] 48 nhist = len(self.history) 53 self.text.get("iomark", "end-1c") != self.history[pointer]: 79 item = self.history[pointer] 95 self.history.remove(source) 98 self.history.append(source)
|
/external/python/cpython3/Lib/idlelib/ |
D | history.py | 24 self.history = [] 49 nhist = len(self.history) 54 self.text.get("iomark", "end-1c") != self.history[pointer]: 80 item = self.history[pointer] 96 self.history.remove(source) 99 self.history.append(source)
|
/external/tensorflow/tensorflow/python/keras/engine/ |
D | training_dataset_test.py | 366 history = model.fit(train_dataset, 369 self.assertListEqual(history.history['loss'], 372 self.assertListEqual(history.history['val_loss'], 380 history = model.fit(train_dataset, 382 self.assertListEqual(history.history['loss'], 384 self.assertListEqual(history.history['val_loss'], 429 history = model.fit(dataset, epochs=2, verbose=1, callbacks=[batch_counter]) 431 self.assertLen(history.history['loss'], 2) 452 history = model.fit(dataset, epochs=2, verbose=1, callbacks=[batch_counter]) 454 self.assertLen(history.history['loss'], 2) [all …]
|
D | correctness_test.py | 80 history = model.fit(x, y, batch_size=3, epochs=5) 81 self.assertAllClose(history.history['loss'], [1., 0.9, 0.8, 0.7, 0.6]) 123 history = model.fit(x, y, batch_size=3, epochs=5) 124 self.assertAllClose(history.history['loss'], [1., 0.9, 0.8, 0.7, 0.6])
|
/external/doclava/res/assets/templates/assets/ |
D | jquery-history.js | 32 var current = $.history.getCurrent(); 38 $.history = { 42 var previous = $.history.getCurrent(); 47 $.event.trigger('historyadd', [$.history.getCurrent(), previous]); 62 $.fn.history = function(fn) { function
|
/external/tensorflow/tensorflow/contrib/integrate/python/ops/ |
D | odes.py | 334 def adaptive_runge_kutta_step(rk_state, history, n_steps): argument 372 history = _History( 373 _ta_append(history.integrate_points, t0 + dt), 374 _ta_append(history.error_ratio, error_ratio)) 375 return rk_state, history, n_steps + 1 377 def interpolate(solution, history, rk_state, i): argument 380 rk_state, history, _ = control_flow_ops.while_loop( 382 adaptive_runge_kutta_step, (rk_state, history, 0), 387 return solution, history, rk_state, i + 1 394 history = _History( [all …]
|
/external/jline/src/src/main/resources/jline/ |
D | windowsbindings.properties | 34 # CTRL-K: Vertical tab - on windows we'll move to the start of the history 37 # CTRL-L: Form feed - on windows, we'll move to the end of the history 43 # CTRL-N: scroll to the next element in the history buffer 46 # CTRL-P: scroll to the previous element in the history buffer 49 # CTRL-R: search backwards in history
|
/external/jline/src/src/test/java/jline/ |
D | ConsoleReaderTest.java | 156 History history = new History(); in createSeededHistory() local 157 history.addToHistory("dir"); in createSeededHistory() 158 history.addToHistory("cd c:\\"); in createSeededHistory() 159 history.addToHistory("mkdir monkey"); in createSeededHistory() 160 return history; in createSeededHistory()
|
/external/icu/icu4c/source/test/intltest/ |
D | colldata.cpp | 504 int32_t CollData::minLengthInChars(const CEList *ceList, int32_t offset, int32_t *history) const in minLengthInChars() 509 if (history[offset] >= 0) { in minLengthInChars() 510 return history[offset]; in minLengthInChars() 539 rlength = minLengthInChars(ceList, roffset, history); in minLengthInChars() 572 rlength = minLengthInChars(ceList, roffset, history); in minLengthInChars() 614 rlength = minLengthInChars(ceList, roffset, history); in minLengthInChars() 630 history[offset] = shortestLength; in minLengthInChars() 638 int32_t *history = NEW_ARRAY(int32_t, clength); in minLengthInChars() local 641 history[i] = -1; in minLengthInChars() 644 int32_t minLength = minLengthInChars(ceList, offset, history); in minLengthInChars() [all …]
|