Clears all events from the store, effectively resetting it to its initial state. This method
is intended for use during unit testing, and should generally not be called by production
code.
190057
void clear() {
        nextId = 0;
        collectionIds = new HashMap<String, List<Long>>();
        events = new HashMap<Long, String>();
    }
1008083
public function clear()
    {
        if (empty($this->store)) {
            throw new ClientError('Missing store instance to use for this operation.');
        }

        if (!empty($this->url)) {
            $this->store->delete($this->getKey($this->url));
        }

        $this->cached = false;
    }
36571
public void clear() {
		//release a static buffer if possible
		if (_buffersToReuse != null && !_buffersToReuse.isEmpty()) {
			StaticBuffers.getInstance().releaseByteBuffer(BUFFER_KEY, _buffersToReuse.peek());
		} else if (!_buffers.isEmpty()) {
			StaticBuffers.getInstance().releaseByteBuffer(BUFFER_KEY, _buffers.get(0));
		}
		
		if (_buffersToReuse != null) {
			_buffersToReuse.clear();
		}
		_buffers.clear();
		_position = 0;
		_flushPosition = 0;
		_size = 0;
	}
56322
public void clear() {
        synchronized (mLock) {
            if (mOriginalValues != null) {
                mOriginalValues.clear();
            } else {
                mObjects.clear();
            }
        }
        if (mNotifyOnChange) notifyDataSetChanged();
    }
409572
public function clear()
    {
        $this->id = null;
        $this->code = null;
        $this->driver_code = null;
        $this->title = null;
        $this->serialized_configuration = null;
        $this->alreadyInSave = false;
        $this->clearAllReferences();
        $this->resetModified();
        $this->setNew(true);
        $this->setDeleted(false);
    }
52838
public function clear()
    {
        try {
            $store = $this->_createDataStore();
            $this->_setDataStore($store);
        } catch (RootException $e) {
            throw $this->_createContainerException($this->__('Could not clear data'), null, $e, $this);
        }
    }
114160
public void clear() {
		try {
			events.cleanup();
			events = new XFastEventList(this.attributeMapSerializer);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
146301
public void clear()
    {
        final Object[] keys = _keys;
        final int[] values = _values;

        for (int i = keys.length - 1; i >= 0; i--) {
            keys[i] = null;
            values[i] = 0;
        }

        _size = 0;
    }
864658
public void reset() {
        this.table = this.hashTable.getTable();
        this.length = this.table.length;
        this.entry = null;
        this.row = 0;
    }
614758
final void clear() {
        reset();
        
        _freeQueue.clear();
        _targetQueue.clear();
        _compactedQueue.clear();
        while(!_updateManager.isServiceQueueEmpty()) {
            CompactionUpdateBatch batch = _updateManager.pollBatch();
            _updateManager.recycleBatch(batch);
        }
    }
274154
public synchronized void clear() {
		try {
			this.storage.close();
			this.storage = provider.createStorage();
		} catch (IOException e) {
			// major fuckup
			e.printStackTrace();
		}
		this.size = 0;
	}
310887
function () {
            if (this._storage) {
                this._removeOldCache();
                this._storage.setItem(this._storageKey, this._cache);
                this._storage.$dispose();
                this._storage = null;
            }
            ariaUtilsEvent.removeListener(Aria.$window, "unload", this._saveCacheCB);
        }
1122632
public function clear()
    {
        if ($this->storageAdapter->has($this->key)) {
            $this->storageAdapter->remove($this->key);
        }
    }
1136863
public void clear() {
        final ReentrantLock lock = this.lock;
        lock.lock();
        try {
            Object[] array = queue;
            int n = size;
            size = 0;
            for (int i = 0; i < n; i++)
                array[i] = null;
        } finally {
            lock.unlock();
        }
    }
1274451
public void clear()
  {
    for (int i = 0; i < _values.length; i++) {
      _keys[i] = null;
      _values[i] = 0;
    }
    
    _size = 0;
  }
585755
private void resetEvents()
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.entry(tc, "resetEvents");

        // Reset all callbacks
        PRE_COMMIT_ADD = null;
        PRE_COMMIT_REMOVE = null;
        POST_COMMIT_ADD_1 = null;
        POST_COMMIT_ADD_2 = null;
        POST_COMMIT_REMOVE_1 = null;
        POST_COMMIT_REMOVE_2 = null;
        POST_COMMIT_REMOVE_3 = null;
        POST_COMMIT_REMOVE_4 = null;
        POST_ROLLBACK_ADD_1 = null;
        POST_ROLLBACK_ADD_2 = null;
        POST_ROLLBACK_REMOVE_1 = null;
        POST_ROLLBACK_REMOVE_2 = null;
        POST_ROLLBACK_REMOVE_3 = null;
        POST_ROLLBACK_REMOVE_4 = null;
        UNLOCKED_1 = null;
        UNLOCKED_2 = null;
        UNLOCKED_3 = null;
        PRE_UNLOCKED_1 = null;
        PRE_UNLOCKED_2 = null;
        REFERENCES_DROPPED_TO_ZERO = null;

        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
            SibTr.exit(tc, "resetEvents");
    }
1254306
def clear(self):
        
        self.database.delete(self.key)
        self.database.delete(self.event)