Dataset Viewer
Auto-converted to Parquet Duplicate
Unnamed: 0
int64
0
2.1k
func
stringlengths
30
107k
target
bool
2 classes
project
stringlengths
62
145
0
public abstract class AbstractEntryIterator<K, V, T> implements OLazyIterator<T>, OResettable { OMVRBTree<K, V> tree; OMVRBTreeEntry<K, V> begin; OMVRBTreeEntry<K, V> next; OMVRBTreeEntry<K, V> lastReturned; int expectedModCount; int pageIndex; AbstractEntryIterator...
false
commons_src_main_java_com_orientechnologies_common_collection_AbstractEntryIterator.java
1
public final class OAlwaysGreaterKey implements Comparable<Comparable<?>>{ public int compareTo(Comparable<?> o) { return 1; } }
false
commons_src_main_java_com_orientechnologies_common_collection_OAlwaysGreaterKey.java
2
public final class OAlwaysLessKey implements Comparable<Comparable<?>> { public int compareTo(Comparable<?> o) { return -1; } }
false
commons_src_main_java_com_orientechnologies_common_collection_OAlwaysLessKey.java
3
public class OCompositeKey implements Comparable<OCompositeKey>, Serializable { private static final long serialVersionUID = 1L; /** * List of heterogeneous values that are going to be stored in {@link OMVRBTree}. */ private final List<Object> keys; private final Comparator<Object> comparato...
false
commons_src_main_java_com_orientechnologies_common_collection_OCompositeKey.java
4
@Test public class OCompositeKeyTest { @Test public void testEqualSameKeys() { final OCompositeKey compositeKey = new OCompositeKey(); compositeKey.addKey("a"); compositeKey.addKey("b"); final OCompositeKey anotherCompositeKey = new OCompositeKey(); anotherCompositeKey.addKey("a"); anothe...
false
commons_src_test_java_com_orientechnologies_common_collection_OCompositeKeyTest.java
5
public class OIterableObject<T> implements Iterable<T>, OResettable, Iterator<T> { private final T object; private boolean alreadyRead = false; public OIterableObject(T o) { object = o; } /** * Returns an iterator over a set of elements of type T. * * @return an Iterator. */ public Itera...
false
commons_src_main_java_com_orientechnologies_common_collection_OIterableObject.java
6
public class OIterableObjectArray<T> implements Iterable<T> { private final Object object; private int length; public OIterableObjectArray(Object o) { object = o; length = Array.getLength(o); } /** * Returns an iterator over a set of elements of type T. * * @return an Iterator. */ public Iter...
false
commons_src_main_java_com_orientechnologies_common_collection_OIterableObjectArray.java
7
private class ObjIterator implements Iterator<T> { private int p = 0; /** * Returns <tt>true</tt> if the iteration has more elements. (In other words, returns <tt>true</tt> if <tt>next</tt> would * return an element rather than throwing an exception.) * * @return <tt>true</tt> if the iterator has mor...
false
commons_src_main_java_com_orientechnologies_common_collection_OIterableObjectArray.java
8
public interface OLazyIterator<T> extends Iterator<T> { public T update(T iValue); }
false
commons_src_main_java_com_orientechnologies_common_collection_OLazyIterator.java
9
public class OLazyIteratorListWrapper<T> implements OLazyIterator<T> { private ListIterator<T> underlying; public OLazyIteratorListWrapper(ListIterator<T> iUnderlying) { underlying = iUnderlying; } public boolean hasNext() { return underlying.hasNext(); } public T next() { return underlying.next(); } ...
false
commons_src_main_java_com_orientechnologies_common_collection_OLazyIteratorListWrapper.java
10
@SuppressWarnings("serial") public class OLimitedMap<K, V> extends LinkedHashMap<K, V> { protected final int limit; public OLimitedMap(final int initialCapacity, final float loadFactor, final int limit) { super(initialCapacity, loadFactor, true); this.limit = limit; } @Override protected boolean rem...
false
commons_src_main_java_com_orientechnologies_common_collection_OLimitedMap.java
11
@SuppressWarnings({ "unchecked", "serial" }) public abstract class OMVRBTree<K, V> extends AbstractMap<K, V> implements ONavigableMap<K, V>, Cloneable, java.io.Serializable { private static final OAlwaysLessKey ALWAYS_LESS_KEY = new OAlwaysLessKey(); private static final OAlwaysGreaterKey ALWAYS_GREATER_...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
12
static final class AscendingSubMap<K, V> extends NavigableSubMap<K, V> { private static final long serialVersionUID = 912986545866124060L; AscendingSubMap(final OMVRBTree<K, V> m, final boolean fromStart, final K lo, final boolean loInclusive, final boolean toEnd, K hi, final boolean hiInclusive) { ...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
13
final class AscendingEntrySetView extends EntrySetView { @Override public Iterator<Map.Entry<K, V>> iterator() { return new SubMapEntryIterator(absLowest(), absHighFence()); } }
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
14
final class DescendingKeyIterator extends AbstractEntryIterator<K, V, K> { DescendingKeyIterator(final OMVRBTreeEntry<K, V> first) { super(first); } public K next() { return prevEntry().getKey(); } }
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
15
static final class DescendingSubMap<K, V> extends NavigableSubMap<K, V> { private static final long serialVersionUID = 912986545866120460L; private final Comparator<? super K> reverseComparator = Collections.reverseOrder(m.comparator); DescendingSubMap(final OMVRBTree<K, V> m, final boolean f...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
16
final class DescendingEntrySetView extends EntrySetView { @Override public Iterator<Map.Entry<K, V>> iterator() { return new DescendingSubMapEntryIterator(absHighest(), absLowFence()); } }
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
17
final class EntryIterator extends AbstractEntryIterator<K, V, Map.Entry<K, V>> { EntryIterator(final OMVRBTreeEntry<K, V> first) { super(first); } public Map.Entry<K, V> next() { return nextEntry(); } }
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
18
public class EntrySet extends AbstractSet<Map.Entry<K, V>> { @Override public Iterator<Map.Entry<K, V>> iterator() { return new EntryIterator(getFirstEntry()); } public Iterator<Map.Entry<K, V>> inverseIterator() { return new InverseEntryIterator(getLastEntry()); } @Override ...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
19
final class InverseEntryIterator extends AbstractEntryIterator<K, V, Map.Entry<K, V>> { InverseEntryIterator(final OMVRBTreeEntry<K, V> last) { super(last); // we have to set ourselves after current index to make iterator work if (last != null) { pageIndex = last.getTree().getPageIndex()...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
20
final class KeyIterator extends AbstractEntryIterator<K, V, K> { KeyIterator(final OMVRBTreeEntry<K, V> first) { super(first); } @Override public K next() { return nextKey(); } }
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
21
@SuppressWarnings("rawtypes") static final class KeySet<E> extends AbstractSet<E> implements ONavigableSet<E> { private final ONavigableMap<E, Object> m; KeySet(ONavigableMap<E, Object> map) { m = map; } @Override public OLazyIterator<E> iterator() { if (m instanceof OMVRBTree) ...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
22
static abstract class NavigableSubMap<K, V> extends AbstractMap<K, V> implements ONavigableMap<K, V>, java.io.Serializable { /** * The backing map. */ final OMVRBTree<K, V> m; /** * Endpoints are represented as triples (fromStart, lo, loInclusive) and (toEnd, hi, hiInclusive). If fromStart...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
23
final class DescendingSubMapEntryIterator extends SubMapIterator<Map.Entry<K, V>> { DescendingSubMapEntryIterator(final OMVRBTreeEntryPosition<K, V> last, final OMVRBTreeEntryPosition<K, V> fence) { super(last, fence); } public Map.Entry<K, V> next() { final Map.Entry<K, V> e = OM...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
24
final class DescendingSubMapKeyIterator extends SubMapIterator<K> { DescendingSubMapKeyIterator(final OMVRBTreeEntryPosition<K, V> last, final OMVRBTreeEntryPosition<K, V> fence) { super(last, fence); } public K next() { return prevEntry().getKey(); } public void remo...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
25
abstract class EntrySetView extends AbstractSet<Map.Entry<K, V>> { private transient int size = -1, sizeModCount; @Override public int size() { if (fromStart && toEnd) return m.size(); if (size == -1 || sizeModCount != m.modCount) { sizeModCount = m.modCount; ...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
26
final class SubMapEntryIterator extends SubMapIterator<Map.Entry<K, V>> { SubMapEntryIterator(final OMVRBTreeEntryPosition<K, V> first, final OMVRBTreeEntryPosition<K, V> fence) { super(first, fence); } public Map.Entry<K, V> next() { final Map.Entry<K, V> e = OMVRBTree.exportEntr...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
27
abstract class SubMapIterator<T> implements OLazyIterator<T> { OMVRBTreeEntryPosition<K, V> lastReturned; OMVRBTreeEntryPosition<K, V> next; final K fenceKey; int expectedModCount; SubMapIterator(final OMVRBTreeEntryPosition<K, V> first, f...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
28
final class SubMapKeyIterator extends SubMapIterator<K> { SubMapKeyIterator(final OMVRBTreeEntryPosition<K, V> first, final OMVRBTreeEntryPosition<K, V> fence) { super(first, fence); } public K next() { return nextEntry().getKey(); } public void remove() { rem...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
29
public static enum PartialSearchMode { /** * Any partially matched key will be used as search result. */ NONE, /** * The biggest partially matched key will be used as search result. */ HIGHEST_BOUNDARY, /** * The smallest partially matched key will be used as search resul...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
30
final class ValueInverseIterator extends AbstractEntryIterator<K, V, V> { ValueInverseIterator(final OMVRBTreeEntry<K, V> last) { super(last); // we have to set ourselves after current index to make iterator work if (last != null) { pageIndex = last.getTree().getPageIndex() + 1; } ...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
31
final class ValueIterator extends AbstractEntryIterator<K, V, V> { ValueIterator(final OMVRBTreeEntry<K, V> first) { super(first); } @Override public V next() { return nextValue(); } }
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
32
public class Values extends AbstractCollection<V> { @Override public Iterator<V> iterator() { return new ValueIterator(getFirstEntry()); } public Iterator<V> inverseIterator() { return new ValueInverseIterator(getLastEntry()); } @Override public int size() { return OMVR...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTree.java
33
@Test public class OMVRBTreeCompositeTest { protected OMVRBTree<OCompositeKey, Double> tree; @BeforeMethod public void beforeMethod() throws Exception { tree = new OMVRBTreeMemory<OCompositeKey, Double>(4, 0.5f, 2); for (double i = 1; i < 4; i++) { for (double j = 1; j < 10; j++) { final OC...
false
core_src_test_java_com_orientechnologies_common_collection_OMVRBTreeCompositeTest.java
34
@SuppressWarnings("unchecked") public abstract class OMVRBTreeEntry<K, V> implements Map.Entry<K, V>, Comparable<OMVRBTreeEntry<K, V>> { protected OMVRBTree<K, V> tree; private int pageSplitItems; public static final int BINARY_SEARCH_THRESHOLD = 10; /** * Constructor called on unmarshallin...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTreeEntry.java
35
@SuppressWarnings("unchecked") public class OMVRBTreeEntryMemory<K, V> extends OMVRBTreeEntry<K, V> { protected int size = 1; protected int pageSize; protected K[] keys; protected V[] values; protected OMVRBTreeEntryMemory<K, V> left = null; protected OMVRBTreeEnt...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTreeEntryMemory.java
36
public class OMVRBTreeEntryPosition<K, V> { public OMVRBTreeEntry<K, V> entry; public int position; public OMVRBTreeEntryPosition(final OMVRBTreeEntryPosition<K, V> entryPosition) { this.entry = entryPosition.entry; this.position = entryPosition.position; } public OMVRBTreeEntryPosition(final OMVRBTr...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTreeEntryPosition.java
37
@SuppressWarnings("serial") public class OMVRBTreeMemory<K, V> extends OMVRBTree<K, V> { /** * The number of entries in the tree */ protected int size = 0; protected int defaultPageSize = 63; /** * Memory based MVRB-Tree implementation. Constructs a new, empty tree map, using the natural or...
false
commons_src_main_java_com_orientechnologies_common_collection_OMVRBTreeMemory.java
End of preview. Expand in Data Studio

Dataset Card for "orientdb_1_6_2"

More Information needed

Downloads last month
14