id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
45,100
btrplace/scheduler
api/src/main/java/org/btrplace/model/view/network/StaticRouting.java
StaticRouting.getStaticRoute
public List<Link> getStaticRoute(NodesMap nm) { Map<Link, Boolean> route = routes.get(nm); if (route == null) { return null; } return new ArrayList<>(route.keySet()); }
java
public List<Link> getStaticRoute(NodesMap nm) { Map<Link, Boolean> route = routes.get(nm); if (route == null) { return null; } return new ArrayList<>(route.keySet()); }
[ "public", "List", "<", "Link", ">", "getStaticRoute", "(", "NodesMap", "nm", ")", "{", "Map", "<", "Link", ",", "Boolean", ">", "route", "=", "routes", ".", "get", "(", "nm", ")", ";", "if", "(", "route", "==", "null", ")", "{", "return", "null", ...
Get the static route between two given nodes. @param nm the nodes map @return the static route. {@code null} if not found
[ "Get", "the", "static", "route", "between", "two", "given", "nodes", "." ]
611063aad0b47a016e57ebf36fa4dfdf24de09e8
https://github.com/btrplace/scheduler/blob/611063aad0b47a016e57ebf36fa4dfdf24de09e8/api/src/main/java/org/btrplace/model/view/network/StaticRouting.java#L52-L61
45,101
btrplace/scheduler
api/src/main/java/org/btrplace/model/view/network/StaticRouting.java
StaticRouting.setStaticRoute
public void setStaticRoute(NodesMap nm, Map<Link, Boolean> links) { routes.put(nm, links); // Only one route between two nodes (replace the old route) }
java
public void setStaticRoute(NodesMap nm, Map<Link, Boolean> links) { routes.put(nm, links); // Only one route between two nodes (replace the old route) }
[ "public", "void", "setStaticRoute", "(", "NodesMap", "nm", ",", "Map", "<", "Link", ",", "Boolean", ">", "links", ")", "{", "routes", ".", "put", "(", "nm", ",", "links", ")", ";", "// Only one route between two nodes (replace the old route)", "}" ]
Manually add a static route between two nodes. @param nm a node mapping containing two nodes: the source and the destination node. @param links an insert-ordered map of link<->direction representing the path between the two nodes.
[ "Manually", "add", "a", "static", "route", "between", "two", "nodes", "." ]
611063aad0b47a016e57ebf36fa4dfdf24de09e8
https://github.com/btrplace/scheduler/blob/611063aad0b47a016e57ebf36fa4dfdf24de09e8/api/src/main/java/org/btrplace/model/view/network/StaticRouting.java#L78-L80
45,102
btrplace/scheduler
choco/src/main/java/org/btrplace/scheduler/choco/constraint/mttr/OnStableNodeFirst.java
OnStableNodeFirst.getMovingVM
private IntVar getMovingVM() { //VMs that are moving for (int i = move.nextSetBit(0); i >= 0; i = move.nextSetBit(i + 1)) { if (starts[i] != null && !starts[i].isInstantiated() && oldPos[i] != hosts[i].getValue()) { return starts[i]; } } return nul...
java
private IntVar getMovingVM() { //VMs that are moving for (int i = move.nextSetBit(0); i >= 0; i = move.nextSetBit(i + 1)) { if (starts[i] != null && !starts[i].isInstantiated() && oldPos[i] != hosts[i].getValue()) { return starts[i]; } } return nul...
[ "private", "IntVar", "getMovingVM", "(", ")", "{", "//VMs that are moving", "for", "(", "int", "i", "=", "move", ".", "nextSetBit", "(", "0", ")", ";", "i", ">=", "0", ";", "i", "=", "move", ".", "nextSetBit", "(", "i", "+", "1", ")", ")", "{", "...
Get the start moment for a VM that moves @return a start moment, or {@code null} if all the moments are already instantiated
[ "Get", "the", "start", "moment", "for", "a", "VM", "that", "moves" ]
611063aad0b47a016e57ebf36fa4dfdf24de09e8
https://github.com/btrplace/scheduler/blob/611063aad0b47a016e57ebf36fa4dfdf24de09e8/choco/src/main/java/org/btrplace/scheduler/choco/constraint/mttr/OnStableNodeFirst.java#L184-L192
45,103
btrplace/scheduler
choco/src/main/java/org/btrplace/scheduler/choco/constraint/mttr/OnStableNodeFirst.java
OnStableNodeFirst.getEarlyVar
private IntVar getEarlyVar() { IntVar earlyVar = null; for (int i = stays.nextSetBit(0); i >= 0; i = stays.nextSetBit(i + 1)) { if (starts[i] != null && !starts[i].isInstantiated()) { if (earlyVar == null) { earlyVar = starts[i]; } else { ...
java
private IntVar getEarlyVar() { IntVar earlyVar = null; for (int i = stays.nextSetBit(0); i >= 0; i = stays.nextSetBit(i + 1)) { if (starts[i] != null && !starts[i].isInstantiated()) { if (earlyVar == null) { earlyVar = starts[i]; } else { ...
[ "private", "IntVar", "getEarlyVar", "(", ")", "{", "IntVar", "earlyVar", "=", "null", ";", "for", "(", "int", "i", "=", "stays", ".", "nextSetBit", "(", "0", ")", ";", "i", ">=", "0", ";", "i", "=", "stays", ".", "nextSetBit", "(", "i", "+", "1",...
Get the earliest un-instantiated start moment @return the variable, or {@code null} if all the start moments are already instantiated
[ "Get", "the", "earliest", "un", "-", "instantiated", "start", "moment" ]
611063aad0b47a016e57ebf36fa4dfdf24de09e8
https://github.com/btrplace/scheduler/blob/611063aad0b47a016e57ebf36fa4dfdf24de09e8/choco/src/main/java/org/btrplace/scheduler/choco/constraint/mttr/OnStableNodeFirst.java#L222-L236
45,104
btrplace/scheduler
choco/src/main/java/org/btrplace/scheduler/choco/constraint/mttr/OnStableNodeFirst.java
OnStableNodeFirst.getVMtoLeafNode
private IntVar getVMtoLeafNode() { for (int x = 0; x < outs.length; x++) { if (outs[x].cardinality() == 0) { //no outgoing VMs, can be launched directly. BitSet in = ins[x]; for (int i = in.nextSetBit(0); i >= 0; i = in.nextSetBit(i + 1)) { ...
java
private IntVar getVMtoLeafNode() { for (int x = 0; x < outs.length; x++) { if (outs[x].cardinality() == 0) { //no outgoing VMs, can be launched directly. BitSet in = ins[x]; for (int i = in.nextSetBit(0); i >= 0; i = in.nextSetBit(i + 1)) { ...
[ "private", "IntVar", "getVMtoLeafNode", "(", ")", "{", "for", "(", "int", "x", "=", "0", ";", "x", "<", "outs", ".", "length", ";", "x", "++", ")", "{", "if", "(", "outs", "[", "x", "]", ".", "cardinality", "(", ")", "==", "0", ")", "{", "//n...
Get the start moment for a VM that move to a node where no VM will leave this node. This way, we are pretty sure the action can be scheduled at 0. @return a start moment, or {@code null} if there is no more un-schedule actions to leaf nodes
[ "Get", "the", "start", "moment", "for", "a", "VM", "that", "move", "to", "a", "node", "where", "no", "VM", "will", "leave", "this", "node", ".", "This", "way", "we", "are", "pretty", "sure", "the", "action", "can", "be", "scheduled", "at", "0", "." ]
611063aad0b47a016e57ebf36fa4dfdf24de09e8
https://github.com/btrplace/scheduler/blob/611063aad0b47a016e57ebf36fa4dfdf24de09e8/choco/src/main/java/org/btrplace/scheduler/choco/constraint/mttr/OnStableNodeFirst.java#L245-L258
45,105
m-m-m/util
contenttype/src/main/java/net/sf/mmm/util/contenttype/base/format/SegmentConstant.java
SegmentConstant.initBytes
protected void initBytes(StringBuilder source) { if (this.bytes == null) { if (this.string != null) { String encodingValue = getEncoding(); try { this.bytes = this.string.getBytes(encodingValue); } catch (UnsupportedEncodingException e) { source.append(".en...
java
protected void initBytes(StringBuilder source) { if (this.bytes == null) { if (this.string != null) { String encodingValue = getEncoding(); try { this.bytes = this.string.getBytes(encodingValue); } catch (UnsupportedEncodingException e) { source.append(".en...
[ "protected", "void", "initBytes", "(", "StringBuilder", "source", ")", "{", "if", "(", "this", ".", "bytes", "==", "null", ")", "{", "if", "(", "this", ".", "string", "!=", "null", ")", "{", "String", "encodingValue", "=", "getEncoding", "(", ")", ";",...
This method initializes the internal byte array. @param source describes the source.
[ "This", "method", "initializes", "the", "internal", "byte", "array", "." ]
f0e4e084448f8dfc83ca682a9e1618034a094ce6
https://github.com/m-m-m/util/blob/f0e4e084448f8dfc83ca682a9e1618034a094ce6/contenttype/src/main/java/net/sf/mmm/util/contenttype/base/format/SegmentConstant.java#L116-L134
45,106
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/db/record/ORecordLazyMap.java
ORecordLazyMap.convertLink2Record
private void convertLink2Record(final Object iKey) { if (status == MULTIVALUE_CONTENT_TYPE.ALL_RECORDS) return; final Object value; if (iKey instanceof ORID) value = iKey; else value = super.get(iKey); if (value != null && value instanceof ORID) { final ORID rid = (ORID) value; ...
java
private void convertLink2Record(final Object iKey) { if (status == MULTIVALUE_CONTENT_TYPE.ALL_RECORDS) return; final Object value; if (iKey instanceof ORID) value = iKey; else value = super.get(iKey); if (value != null && value instanceof ORID) { final ORID rid = (ORID) value; ...
[ "private", "void", "convertLink2Record", "(", "final", "Object", "iKey", ")", "{", "if", "(", "status", "==", "MULTIVALUE_CONTENT_TYPE", ".", "ALL_RECORDS", ")", "return", ";", "final", "Object", "value", ";", "if", "(", "iKey", "instanceof", "ORID", ")", "v...
Convert the item with the received key to a record. @param iKey Key of the item to convert
[ "Convert", "the", "item", "with", "the", "received", "key", "to", "a", "record", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/db/record/ORecordLazyMap.java#L187-L212
45,107
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/db/ODatabaseFactory.java
ODatabaseFactory.register
public synchronized ODatabaseComplex<?> register(final ODatabaseComplex<?> db) { instances.put(db, Thread.currentThread()); return db; }
java
public synchronized ODatabaseComplex<?> register(final ODatabaseComplex<?> db) { instances.put(db, Thread.currentThread()); return db; }
[ "public", "synchronized", "ODatabaseComplex", "<", "?", ">", "register", "(", "final", "ODatabaseComplex", "<", "?", ">", "db", ")", "{", "instances", ".", "put", "(", "db", ",", "Thread", ".", "currentThread", "(", ")", ")", ";", "return", "db", ";", ...
Registers a database. @param db @return
[ "Registers", "a", "database", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/db/ODatabaseFactory.java#L41-L44
45,108
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/db/ODatabaseFactory.java
ODatabaseFactory.unregister
public synchronized void unregister(final OStorage iStorage) { for (ODatabaseComplex<?> db : new HashSet<ODatabaseComplex<?>>(instances.keySet())) { if (db != null && db.getStorage() == iStorage) { db.close(); instances.remove(db); } } }
java
public synchronized void unregister(final OStorage iStorage) { for (ODatabaseComplex<?> db : new HashSet<ODatabaseComplex<?>>(instances.keySet())) { if (db != null && db.getStorage() == iStorage) { db.close(); instances.remove(db); } } }
[ "public", "synchronized", "void", "unregister", "(", "final", "OStorage", "iStorage", ")", "{", "for", "(", "ODatabaseComplex", "<", "?", ">", "db", ":", "new", "HashSet", "<", "ODatabaseComplex", "<", "?", ">", ">", "(", "instances", ".", "keySet", "(", ...
Unregisters all the database instances that share the storage received as argument. @param iStorage
[ "Unregisters", "all", "the", "database", "instances", "that", "share", "the", "storage", "received", "as", "argument", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/db/ODatabaseFactory.java#L60-L67
45,109
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/db/ODatabaseFactory.java
ODatabaseFactory.shutdown
public synchronized void shutdown() { if (instances.size() > 0) { OLogManager.instance().debug(null, "Found %d databases opened during OrientDB shutdown. Assure to always close database instances after usage", instances.size()); for (ODatabaseComplex<?> db : new HashSet<ODatabaseComplex<?>>(ins...
java
public synchronized void shutdown() { if (instances.size() > 0) { OLogManager.instance().debug(null, "Found %d databases opened during OrientDB shutdown. Assure to always close database instances after usage", instances.size()); for (ODatabaseComplex<?> db : new HashSet<ODatabaseComplex<?>>(ins...
[ "public", "synchronized", "void", "shutdown", "(", ")", "{", "if", "(", "instances", ".", "size", "(", ")", ">", "0", ")", "{", "OLogManager", ".", "instance", "(", ")", ".", "debug", "(", "null", ",", "\"Found %d databases opened during OrientDB shutdown. Ass...
Closes all open databases.
[ "Closes", "all", "open", "databases", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/db/ODatabaseFactory.java#L72-L84
45,110
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/security/OSecurityManager.java
OSecurityManager.digest2String
public String digest2String(final String iInput, final boolean iIncludeAlgorithm) { final StringBuilder buffer = new StringBuilder(); if (iIncludeAlgorithm) buffer.append(ALGORITHM_PREFIX); buffer.append(OSecurityManager.instance().digest2String(iInput)); return buffer.toString(); }
java
public String digest2String(final String iInput, final boolean iIncludeAlgorithm) { final StringBuilder buffer = new StringBuilder(); if (iIncludeAlgorithm) buffer.append(ALGORITHM_PREFIX); buffer.append(OSecurityManager.instance().digest2String(iInput)); return buffer.toString(); }
[ "public", "String", "digest2String", "(", "final", "String", "iInput", ",", "final", "boolean", "iIncludeAlgorithm", ")", "{", "final", "StringBuilder", "buffer", "=", "new", "StringBuilder", "(", ")", ";", "if", "(", "iIncludeAlgorithm", ")", "buffer", ".", "...
Hashes the input string. @param iInput String to hash @param iIncludeAlgorithm Include the algorithm used or not @return
[ "Hashes", "the", "input", "string", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/security/OSecurityManager.java#L77-L85
45,111
lightblue-platform/lightblue-migrator
migrator/src/main/java/com/redhat/lightblue/migrator/ThreadMonitor.java
ThreadMonitor.getThreads
private static Thread[] getThreads(ThreadGroup g) { int mul = 1; do { Thread[] arr = new Thread[g.activeCount() * mul + 1]; if (g.enumerate(arr) < arr.length) { return arr; } mul++; } while (true); }
java
private static Thread[] getThreads(ThreadGroup g) { int mul = 1; do { Thread[] arr = new Thread[g.activeCount() * mul + 1]; if (g.enumerate(arr) < arr.length) { return arr; } mul++; } while (true); }
[ "private", "static", "Thread", "[", "]", "getThreads", "(", "ThreadGroup", "g", ")", "{", "int", "mul", "=", "1", ";", "do", "{", "Thread", "[", "]", "arr", "=", "new", "Thread", "[", "g", ".", "activeCount", "(", ")", "*", "mul", "+", "1", "]", ...
Returns threads in an array. Some elements may be null.
[ "Returns", "threads", "in", "an", "array", ".", "Some", "elements", "may", "be", "null", "." ]
ec20748557b40d1f7851e1816d1b76dae48d2027
https://github.com/lightblue-platform/lightblue-migrator/blob/ec20748557b40d1f7851e1816d1b76dae48d2027/migrator/src/main/java/com/redhat/lightblue/migrator/ThreadMonitor.java#L185-L194
45,112
lightblue-platform/lightblue-migrator
migrator/src/main/java/com/redhat/lightblue/migrator/ThreadMonitor.java
ThreadMonitor.getThreadCount
public int getThreadCount(ThreadGroup group, Status... s) { Thread[] threads = getThreads(group); int count = 0; for (Thread t : threads) { if (t instanceof MonitoredThread) { Status status = getStatus((MonitoredThread) t); if (status != null) { ...
java
public int getThreadCount(ThreadGroup group, Status... s) { Thread[] threads = getThreads(group); int count = 0; for (Thread t : threads) { if (t instanceof MonitoredThread) { Status status = getStatus((MonitoredThread) t); if (status != null) { ...
[ "public", "int", "getThreadCount", "(", "ThreadGroup", "group", ",", "Status", "...", "s", ")", "{", "Thread", "[", "]", "threads", "=", "getThreads", "(", "group", ")", ";", "int", "count", "=", "0", ";", "for", "(", "Thread", "t", ":", "threads", "...
Return the count of threads that are in any of the statuses
[ "Return", "the", "count", "of", "threads", "that", "are", "in", "any", "of", "the", "statuses" ]
ec20748557b40d1f7851e1816d1b76dae48d2027
https://github.com/lightblue-platform/lightblue-migrator/blob/ec20748557b40d1f7851e1816d1b76dae48d2027/migrator/src/main/java/com/redhat/lightblue/migrator/ThreadMonitor.java#L199-L215
45,113
wealthfront/kawala
kawala-hibernate/src/main/java/com/kaching/platform/hibernate/types/AbstractImmutableType.java
AbstractImmutableType.assemble
public final Object assemble(Serializable cached, Object owner) throws HibernateException { if (cached != null) { log.trace("assemble " + cached + " (" + cached.getClass() + "), owner is " + owner); } return cached; }
java
public final Object assemble(Serializable cached, Object owner) throws HibernateException { if (cached != null) { log.trace("assemble " + cached + " (" + cached.getClass() + "), owner is " + owner); } return cached; }
[ "public", "final", "Object", "assemble", "(", "Serializable", "cached", ",", "Object", "owner", ")", "throws", "HibernateException", "{", "if", "(", "cached", "!=", "null", ")", "{", "log", ".", "trace", "(", "\"assemble \"", "+", "cached", "+", "\" (\"", ...
Returns the cached value.
[ "Returns", "the", "cached", "value", "." ]
acf24b7a9ef6e2f0fc1e862d44cfa4dcc4da8f6e
https://github.com/wealthfront/kawala/blob/acf24b7a9ef6e2f0fc1e862d44cfa4dcc4da8f6e/kawala-hibernate/src/main/java/com/kaching/platform/hibernate/types/AbstractImmutableType.java#L80-L86
45,114
loldevs/riotapi
rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/LcdsServiceProxy.java
LcdsServiceProxy.createGroupFinderLobby
public LobbyStatus createGroupFinderLobby(int type, String uuid) { return client.sendRpcAndWait(SERVICE, "createGroupFinderLobby", type, uuid); }
java
public LobbyStatus createGroupFinderLobby(int type, String uuid) { return client.sendRpcAndWait(SERVICE, "createGroupFinderLobby", type, uuid); }
[ "public", "LobbyStatus", "createGroupFinderLobby", "(", "int", "type", ",", "String", "uuid", ")", "{", "return", "client", ".", "sendRpcAndWait", "(", "SERVICE", ",", "\"createGroupFinderLobby\"", ",", "type", ",", "uuid", ")", ";", "}" ]
Create a group finder lobby. Might be deprecated? @param type unknown - The queue type? @param uuid A unique id for the team @return The lobby status of the group finder lobby
[ "Create", "a", "group", "finder", "lobby", ".", "Might", "be", "deprecated?" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/LcdsServiceProxy.java#L40-L42
45,115
loldevs/riotapi
rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/LcdsServiceProxy.java
LcdsServiceProxy.call
public Object call(String uuid, GameMode mode, String procCall, JsonObject object) { return client.sendRpcAndWait(SERVICE, "call", uuid, mode.name(), procCall, object.toString()); }
java
public Object call(String uuid, GameMode mode, String procCall, JsonObject object) { return client.sendRpcAndWait(SERVICE, "call", uuid, mode.name(), procCall, object.toString()); }
[ "public", "Object", "call", "(", "String", "uuid", ",", "GameMode", "mode", ",", "String", "procCall", ",", "JsonObject", "object", ")", "{", "return", "client", ".", "sendRpcAndWait", "(", "SERVICE", ",", "\"call\"", ",", "uuid", ",", "mode", ".", "name",...
Call a group finder action @param uuid The uuid of the team @param mode The game mode of lobby @param procCall The name of the action @param object Call args @return unknown
[ "Call", "a", "group", "finder", "action" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/LcdsServiceProxy.java#L52-L54
45,116
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/sql/query/OSQLQuery.java
OSQLQuery.run
@SuppressWarnings("unchecked") public List<T> run(final Object... iArgs) { final ODatabaseRecord database = ODatabaseRecordThreadLocal.INSTANCE.get(); if (database == null) throw new OQueryParsingException("No database configured"); setParameters(iArgs); return (List<T>) database.getStor...
java
@SuppressWarnings("unchecked") public List<T> run(final Object... iArgs) { final ODatabaseRecord database = ODatabaseRecordThreadLocal.INSTANCE.get(); if (database == null) throw new OQueryParsingException("No database configured"); setParameters(iArgs); return (List<T>) database.getStor...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "List", "<", "T", ">", "run", "(", "final", "Object", "...", "iArgs", ")", "{", "final", "ODatabaseRecord", "database", "=", "ODatabaseRecordThreadLocal", ".", "INSTANCE", ".", "get", "(", ")", ";...
Delegates to the OQueryExecutor the query execution.
[ "Delegates", "to", "the", "OQueryExecutor", "the", "query", "execution", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/sql/query/OSQLQuery.java#L61-L69
45,117
dmfs/jdav
src/org/dmfs/dav/rfc6352/AddressbookQuery.java
AddressbookQuery.limitNumberOfResults
public AddressbookQuery limitNumberOfResults(int limit) { if (limit > 0) { addLimit(WebDavSearch.NRESULTS, limit); } else { removeLimit(WebDavSearch.NRESULTS); } return this; }
java
public AddressbookQuery limitNumberOfResults(int limit) { if (limit > 0) { addLimit(WebDavSearch.NRESULTS, limit); } else { removeLimit(WebDavSearch.NRESULTS); } return this; }
[ "public", "AddressbookQuery", "limitNumberOfResults", "(", "int", "limit", ")", "{", "if", "(", "limit", ">", "0", ")", "{", "addLimit", "(", "WebDavSearch", ".", "NRESULTS", ",", "limit", ")", ";", "}", "else", "{", "removeLimit", "(", "WebDavSearch", "."...
Limit the number of results in the response, if supported by the server. A negative value will remove the limit. @param limit The maximum number of result in the response if this is a positive integer. @return This instance.
[ "Limit", "the", "number", "of", "results", "in", "the", "response", "if", "supported", "by", "the", "server", ".", "A", "negative", "value", "will", "remove", "the", "limit", "." ]
a619d85423210a283b3eb1fba9abda4fdc894969
https://github.com/dmfs/jdav/blob/a619d85423210a283b3eb1fba9abda4fdc894969/src/org/dmfs/dav/rfc6352/AddressbookQuery.java#L145-L156
45,118
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/db/ODatabasePoolAbstract.java
ODatabasePoolAbstract.close
public void close() { for (Entry<String, OResourcePool<String, DB>> pool : pools.entrySet()) { for (DB db : pool.getValue().getResources()) { pool.getValue().close(); try { OLogManager.instance().debug(this, "Closing pooled database '%s'...", db.getName()); ((ODatabas...
java
public void close() { for (Entry<String, OResourcePool<String, DB>> pool : pools.entrySet()) { for (DB db : pool.getValue().getResources()) { pool.getValue().close(); try { OLogManager.instance().debug(this, "Closing pooled database '%s'...", db.getName()); ((ODatabas...
[ "public", "void", "close", "(", ")", "{", "for", "(", "Entry", "<", "String", ",", "OResourcePool", "<", "String", ",", "DB", ">", ">", "pool", ":", "pools", ".", "entrySet", "(", ")", ")", "{", "for", "(", "DB", "db", ":", "pool", ".", "getValue...
Closes all the databases.
[ "Closes", "all", "the", "databases", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/db/ODatabasePoolAbstract.java#L94-L107
45,119
wuman/orientdb-android
commons/src/main/java/com/orientechnologies/common/collection/OMultiValue.java
OMultiValue.isMultiValue
public static boolean isMultiValue(final Class<?> iType) { return (iType.isArray() || Collection.class.isAssignableFrom(iType) || Map.class.isAssignableFrom(iType)); }
java
public static boolean isMultiValue(final Class<?> iType) { return (iType.isArray() || Collection.class.isAssignableFrom(iType) || Map.class.isAssignableFrom(iType)); }
[ "public", "static", "boolean", "isMultiValue", "(", "final", "Class", "<", "?", ">", "iType", ")", "{", "return", "(", "iType", ".", "isArray", "(", ")", "||", "Collection", ".", "class", ".", "isAssignableFrom", "(", "iType", ")", "||", "Map", ".", "c...
Checks if a class is a multi-value type. @param iType Class to check @return true if it's an array, a collection or a map, otherwise false
[ "Checks", "if", "a", "class", "is", "a", "multi", "-", "value", "type", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/commons/src/main/java/com/orientechnologies/common/collection/OMultiValue.java#L44-L46
45,120
wuman/orientdb-android
commons/src/main/java/com/orientechnologies/common/collection/OMultiValue.java
OMultiValue.getSize
public static int getSize(final Object iObject) { if (iObject == null) return 0; if (!isMultiValue(iObject)) return 0; if (iObject instanceof Collection<?>) return ((Collection<Object>) iObject).size(); if (iObject instanceof Map<?, ?>) return ((Map<?, Object>) iObjec...
java
public static int getSize(final Object iObject) { if (iObject == null) return 0; if (!isMultiValue(iObject)) return 0; if (iObject instanceof Collection<?>) return ((Collection<Object>) iObject).size(); if (iObject instanceof Map<?, ?>) return ((Map<?, Object>) iObjec...
[ "public", "static", "int", "getSize", "(", "final", "Object", "iObject", ")", "{", "if", "(", "iObject", "==", "null", ")", "return", "0", ";", "if", "(", "!", "isMultiValue", "(", "iObject", ")", ")", "return", "0", ";", "if", "(", "iObject", "insta...
Returns the size of the multi-value object @param iObject Multi-value object (array, collection or map) @return the size of the multi value object
[ "Returns", "the", "size", "of", "the", "multi", "-", "value", "object" ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/commons/src/main/java/com/orientechnologies/common/collection/OMultiValue.java#L66-L80
45,121
wuman/orientdb-android
commons/src/main/java/com/orientechnologies/common/thread/OSoftThread.java
OSoftThread.pauseCurrentThread
public static boolean pauseCurrentThread(long iTime) { try { if (iTime <= 0) iTime = Long.MAX_VALUE; Thread.sleep(iTime); return true; } catch (InterruptedException e) { Thread.currentThread().interrupt(); return false; } }
java
public static boolean pauseCurrentThread(long iTime) { try { if (iTime <= 0) iTime = Long.MAX_VALUE; Thread.sleep(iTime); return true; } catch (InterruptedException e) { Thread.currentThread().interrupt(); return false; } }
[ "public", "static", "boolean", "pauseCurrentThread", "(", "long", "iTime", ")", "{", "try", "{", "if", "(", "iTime", "<=", "0", ")", "iTime", "=", "Long", ".", "MAX_VALUE", ";", "Thread", ".", "sleep", "(", "iTime", ")", ";", "return", "true", ";", "...
Pauses current thread until iTime timeout or a wake up by another thread. @param iTime @return true if timeout has reached, otherwise false. False is the case of wake-up by another thread.
[ "Pauses", "current", "thread", "until", "iTime", "timeout", "or", "a", "wake", "up", "by", "another", "thread", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/commons/src/main/java/com/orientechnologies/common/thread/OSoftThread.java#L63-L74
45,122
amsa-code/risky
geotools-extras/src/main/java/au/gov/amsa/gt/Shapes.java
Shapes.containing
public Stream<String> containing(double lat, double lon) { return shapes.keySet().stream() // select if contains lat lon .filter(name -> shapes.get(name).contains(lat, lon)); }
java
public Stream<String> containing(double lat, double lon) { return shapes.keySet().stream() // select if contains lat lon .filter(name -> shapes.get(name).contains(lat, lon)); }
[ "public", "Stream", "<", "String", ">", "containing", "(", "double", "lat", ",", "double", "lon", ")", "{", "return", "shapes", ".", "keySet", "(", ")", ".", "stream", "(", ")", "// select if contains lat lon", ".", "filter", "(", "name", "->", "shapes", ...
Returns the names of those shapes that contain the given lat, lon. @param lat @param lon @return
[ "Returns", "the", "names", "of", "those", "shapes", "that", "contain", "the", "given", "lat", "lon", "." ]
13649942aeddfdb9210eec072c605bc5d7a6daf3
https://github.com/amsa-code/risky/blob/13649942aeddfdb9210eec072c605bc5d7a6daf3/geotools-extras/src/main/java/au/gov/amsa/gt/Shapes.java#L58-L62
45,123
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/query/OQueryAbstract.java
OQueryAbstract.setFetchPlan
public OQuery<T> setFetchPlan(final String fetchPlan) { OFetchHelper.checkFetchPlanValid(fetchPlan); if (fetchPlan != null && fetchPlan.length() == 0) this.fetchPlan = null; else this.fetchPlan = fetchPlan; return this; }
java
public OQuery<T> setFetchPlan(final String fetchPlan) { OFetchHelper.checkFetchPlanValid(fetchPlan); if (fetchPlan != null && fetchPlan.length() == 0) this.fetchPlan = null; else this.fetchPlan = fetchPlan; return this; }
[ "public", "OQuery", "<", "T", ">", "setFetchPlan", "(", "final", "String", "fetchPlan", ")", "{", "OFetchHelper", ".", "checkFetchPlanValid", "(", "fetchPlan", ")", ";", "if", "(", "fetchPlan", "!=", "null", "&&", "fetchPlan", ".", "length", "(", ")", "=="...
Sets the fetch plan to use.
[ "Sets", "the", "fetch", "plan", "to", "use", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/query/OQueryAbstract.java#L43-L50
45,124
lkoskela/beaninject
src/main/java/org/laughingpanda/beaninject/Inject.java
Inject.field
public static ITargetIdentifier field(final String fieldName) { return new ITargetIdentifier() { public IDependencyInjector of(final Object target) { return new FieldInjector(target, fieldName); } }; }
java
public static ITargetIdentifier field(final String fieldName) { return new ITargetIdentifier() { public IDependencyInjector of(final Object target) { return new FieldInjector(target, fieldName); } }; }
[ "public", "static", "ITargetIdentifier", "field", "(", "final", "String", "fieldName", ")", "{", "return", "new", "ITargetIdentifier", "(", ")", "{", "public", "IDependencyInjector", "of", "(", "final", "Object", "target", ")", "{", "return", "new", "FieldInject...
Returns a target identifier that uses an injector that injects directly to a member field regardless of the field's visibility. @param fieldName The name of the field to inject.
[ "Returns", "a", "target", "identifier", "that", "uses", "an", "injector", "that", "injects", "directly", "to", "a", "member", "field", "regardless", "of", "the", "field", "s", "visibility", "." ]
6a63e76bdfbc6953cf582380f42170fc2512c483
https://github.com/lkoskela/beaninject/blob/6a63e76bdfbc6953cf582380f42170fc2512c483/src/main/java/org/laughingpanda/beaninject/Inject.java#L52-L58
45,125
lkoskela/beaninject
src/main/java/org/laughingpanda/beaninject/Inject.java
Inject.with
public static ITargetInjector with(final IInjectionStrategy strategy) { return new ITargetInjector() { public void bean(Object target) { strategy.inject(target); } }; }
java
public static ITargetInjector with(final IInjectionStrategy strategy) { return new ITargetInjector() { public void bean(Object target) { strategy.inject(target); } }; }
[ "public", "static", "ITargetInjector", "with", "(", "final", "IInjectionStrategy", "strategy", ")", "{", "return", "new", "ITargetInjector", "(", ")", "{", "public", "void", "bean", "(", "Object", "target", ")", "{", "strategy", ".", "inject", "(", "target", ...
Returns an injector implementation which delegates actual injection to the given strategy when provided with a target to inject. @param strategy The injection strategy.
[ "Returns", "an", "injector", "implementation", "which", "delegates", "actual", "injection", "to", "the", "given", "strategy", "when", "provided", "with", "a", "target", "to", "inject", "." ]
6a63e76bdfbc6953cf582380f42170fc2512c483
https://github.com/lkoskela/beaninject/blob/6a63e76bdfbc6953cf582380f42170fc2512c483/src/main/java/org/laughingpanda/beaninject/Inject.java#L133-L139
45,126
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/query/nativ/OQueryContextNative.java
OQueryContextNative.key
public OQueryContextNative key(final Object iKey) { if (finalResult != null && finalResult.booleanValue()) return this; if (iKey == null) // ERROR: BREAK CHAIN return error(); if (currentValue != null && currentValue instanceof Map) currentValue = ((Map<Object, Object>) currentValue).get(iK...
java
public OQueryContextNative key(final Object iKey) { if (finalResult != null && finalResult.booleanValue()) return this; if (iKey == null) // ERROR: BREAK CHAIN return error(); if (currentValue != null && currentValue instanceof Map) currentValue = ((Map<Object, Object>) currentValue).get(iK...
[ "public", "OQueryContextNative", "key", "(", "final", "Object", "iKey", ")", "{", "if", "(", "finalResult", "!=", "null", "&&", "finalResult", ".", "booleanValue", "(", ")", ")", "return", "this", ";", "if", "(", "iKey", "==", "null", ")", "// ERROR: BREAK...
Sets as current value the map's value by key. @param iKey Key to use for the lookup @return This object to allow fluent expressions in chain.
[ "Sets", "as", "current", "value", "the", "map", "s", "value", "by", "key", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/query/nativ/OQueryContextNative.java#L68-L80
45,127
wuman/orientdb-android
commons/src/main/java/com/orientechnologies/common/synch/OSynchEventAdapter.java
OSynchEventAdapter.getValue
public synchronized RESPONSE_TYPE getValue(final RESOURCE_TYPE iResource, final long iTimeout) { if (OLogManager.instance().isDebugEnabled()) OLogManager.instance().debug( this, "Thread [" + Thread.currentThread().getId() + "] is waiting for the resource " + iResource + (iTimeout <= 0 ? " for...
java
public synchronized RESPONSE_TYPE getValue(final RESOURCE_TYPE iResource, final long iTimeout) { if (OLogManager.instance().isDebugEnabled()) OLogManager.instance().debug( this, "Thread [" + Thread.currentThread().getId() + "] is waiting for the resource " + iResource + (iTimeout <= 0 ? " for...
[ "public", "synchronized", "RESPONSE_TYPE", "getValue", "(", "final", "RESOURCE_TYPE", "iResource", ",", "final", "long", "iTimeout", ")", "{", "if", "(", "OLogManager", ".", "instance", "(", ")", ".", "isDebugEnabled", "(", ")", ")", "OLogManager", ".", "insta...
Wait until the requested resource is unlocked. Put the current thread in sleep until timeout or is waked up by an unlock.
[ "Wait", "until", "the", "requested", "resource", "is", "unlocked", ".", "Put", "the", "current", "thread", "in", "sleep", "until", "timeout", "or", "is", "waked", "up", "by", "an", "unlock", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/commons/src/main/java/com/orientechnologies/common/synch/OSynchEventAdapter.java#L32-L51
45,128
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/entity/OEntityManager.java
OEntityManager.setClassHandler
public synchronized void setClassHandler(final OEntityManagerClassHandler iClassHandler) { for (Entry<String, Class<?>> entry : classHandler.getClassesEntrySet()) { iClassHandler.registerEntityClass(entry.getValue()); } this.classHandler = iClassHandler; }
java
public synchronized void setClassHandler(final OEntityManagerClassHandler iClassHandler) { for (Entry<String, Class<?>> entry : classHandler.getClassesEntrySet()) { iClassHandler.registerEntityClass(entry.getValue()); } this.classHandler = iClassHandler; }
[ "public", "synchronized", "void", "setClassHandler", "(", "final", "OEntityManagerClassHandler", "iClassHandler", ")", "{", "for", "(", "Entry", "<", "String", ",", "Class", "<", "?", ">", ">", "entry", ":", "classHandler", ".", "getClassesEntrySet", "(", ")", ...
Sets the received handler as default and merges the classes all together. @param iClassHandler
[ "Sets", "the", "received", "handler", "as", "default", "and", "merges", "the", "classes", "all", "together", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/entity/OEntityManager.java#L143-L148
45,129
jpkrohling/secret-store
secret-store/src/main/java/org/keycloak/secretstore/boundary/TokenEndpoint.java
TokenEndpoint.createFromRedirect
@GET @Path("create") public Response createFromRedirect() { KeycloakPrincipal principal = (KeycloakPrincipal) sessionContext.getCallerPrincipal(); RefreshableKeycloakSecurityContext kcSecurityContext = (RefreshableKeycloakSecurityContext) principal.getKeycloakSecurityContext(); ...
java
@GET @Path("create") public Response createFromRedirect() { KeycloakPrincipal principal = (KeycloakPrincipal) sessionContext.getCallerPrincipal(); RefreshableKeycloakSecurityContext kcSecurityContext = (RefreshableKeycloakSecurityContext) principal.getKeycloakSecurityContext(); ...
[ "@", "GET", "@", "Path", "(", "\"create\"", ")", "public", "Response", "createFromRedirect", "(", ")", "{", "KeycloakPrincipal", "principal", "=", "(", "KeycloakPrincipal", ")", "sessionContext", ".", "getCallerPrincipal", "(", ")", ";", "RefreshableKeycloakSecurity...
This endpoint is called when Keycloak redirects the logged in user to our application. @return a response with a TokenCreateResponse as entity.
[ "This", "endpoint", "is", "called", "when", "Keycloak", "redirects", "the", "logged", "in", "user", "to", "our", "application", "." ]
f136ea6286a6919cc767d0b4a5e84f333c33f483
https://github.com/jpkrohling/secret-store/blob/f136ea6286a6919cc767d0b4a5e84f333c33f483/secret-store/src/main/java/org/keycloak/secretstore/boundary/TokenEndpoint.java#L118-L156
45,130
jpkrohling/secret-store
secret-store/src/main/java/org/keycloak/secretstore/boundary/TokenEndpoint.java
TokenEndpoint.createFromBasicAuth
@POST @Path("create") @Consumes(MediaType.APPLICATION_FORM_URLENCODED) public Response createFromBasicAuth() throws Exception { return doCreateFromBasicAuth(null); }
java
@POST @Path("create") @Consumes(MediaType.APPLICATION_FORM_URLENCODED) public Response createFromBasicAuth() throws Exception { return doCreateFromBasicAuth(null); }
[ "@", "POST", "@", "Path", "(", "\"create\"", ")", "@", "Consumes", "(", "MediaType", ".", "APPLICATION_FORM_URLENCODED", ")", "public", "Response", "createFromBasicAuth", "(", ")", "throws", "Exception", "{", "return", "doCreateFromBasicAuth", "(", "null", ")", ...
This endpoint is called when a client makes a REST call with basic auth as APPLICATION_FORM_URLENCODED, without parameters. @return a response with a TokenCreateResponse as entity
[ "This", "endpoint", "is", "called", "when", "a", "client", "makes", "a", "REST", "call", "with", "basic", "auth", "as", "APPLICATION_FORM_URLENCODED", "without", "parameters", "." ]
f136ea6286a6919cc767d0b4a5e84f333c33f483
https://github.com/jpkrohling/secret-store/blob/f136ea6286a6919cc767d0b4a5e84f333c33f483/secret-store/src/main/java/org/keycloak/secretstore/boundary/TokenEndpoint.java#L164-L169
45,131
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/config/OStorageConfiguration.java
OStorageConfiguration.load
public OStorageConfiguration load() throws OSerializationException { final byte[] record = storage.readRecord(CONFIG_RID, null, false, null).buffer; if (record == null) throw new OStorageException("Cannot load database's configuration. The database seems to be corrupted."); fromStream(record);...
java
public OStorageConfiguration load() throws OSerializationException { final byte[] record = storage.readRecord(CONFIG_RID, null, false, null).buffer; if (record == null) throw new OStorageException("Cannot load database's configuration. The database seems to be corrupted."); fromStream(record);...
[ "public", "OStorageConfiguration", "load", "(", ")", "throws", "OSerializationException", "{", "final", "byte", "[", "]", "record", "=", "storage", ".", "readRecord", "(", "CONFIG_RID", ",", "null", ",", "false", ",", "null", ")", ".", "buffer", ";", "if", ...
This method load the record information by the internal cluster segment. It's for compatibility with older database than 0.9.25. @param iRequesterId @compatibility 0.9.25 @return @throws OSerializationException
[ "This", "method", "load", "the", "record", "information", "by", "the", "internal", "cluster", "segment", ".", "It", "s", "for", "compatibility", "with", "older", "database", "than", "0", ".", "9", ".", "25", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/config/OStorageConfiguration.java#L89-L97
45,132
wealthfront/kawala
kawala-common/src/main/java/com/kaching/platform/common/Option.java
Option.some
public static <T> Option<T> some(T t) { return new Option.Some<T>(t); }
java
public static <T> Option<T> some(T t) { return new Option.Some<T>(t); }
[ "public", "static", "<", "T", ">", "Option", "<", "T", ">", "some", "(", "T", "t", ")", "{", "return", "new", "Option", ".", "Some", "<", "T", ">", "(", "t", ")", ";", "}" ]
Gets the some object wrapping the given value.
[ "Gets", "the", "some", "object", "wrapping", "the", "given", "value", "." ]
acf24b7a9ef6e2f0fc1e862d44cfa4dcc4da8f6e
https://github.com/wealthfront/kawala/blob/acf24b7a9ef6e2f0fc1e862d44cfa4dcc4da8f6e/kawala-common/src/main/java/com/kaching/platform/common/Option.java#L292-L294
45,133
wealthfront/kawala
kawala-common/src/main/java/com/kaching/platform/common/Option.java
Option.of
public static <T> Option<T> of(T t) { return t == null ? Option.<T>none() : some(t); }
java
public static <T> Option<T> of(T t) { return t == null ? Option.<T>none() : some(t); }
[ "public", "static", "<", "T", ">", "Option", "<", "T", ">", "of", "(", "T", "t", ")", "{", "return", "t", "==", "null", "?", "Option", ".", "<", "T", ">", "none", "(", ")", ":", "some", "(", "t", ")", ";", "}" ]
Wraps anything. @param <T> @param t @return if null, none(), some(t) otherwise
[ "Wraps", "anything", "." ]
acf24b7a9ef6e2f0fc1e862d44cfa4dcc4da8f6e
https://github.com/wealthfront/kawala/blob/acf24b7a9ef6e2f0fc1e862d44cfa4dcc4da8f6e/kawala-common/src/main/java/com/kaching/platform/common/Option.java#L303-L305
45,134
dmfs/jdav
src/org/dmfs/dav/PropertyRequest.java
PropertyRequest.addProperty
public PropertyRequest addProperty(ElementDescriptor<?> property) { if (mProp == null) { mProp = new HashMap<ElementDescriptor<?>, Object>(16); } mProp.put(property, null); return this; }
java
public PropertyRequest addProperty(ElementDescriptor<?> property) { if (mProp == null) { mProp = new HashMap<ElementDescriptor<?>, Object>(16); } mProp.put(property, null); return this; }
[ "public", "PropertyRequest", "addProperty", "(", "ElementDescriptor", "<", "?", ">", "property", ")", "{", "if", "(", "mProp", "==", "null", ")", "{", "mProp", "=", "new", "HashMap", "<", "ElementDescriptor", "<", "?", ">", ",", "Object", ">", "(", "16",...
Add another property to the list of requested properties. @param property The property to request from the server. @return This instance.
[ "Add", "another", "property", "to", "the", "list", "of", "requested", "properties", "." ]
a619d85423210a283b3eb1fba9abda4fdc894969
https://github.com/dmfs/jdav/blob/a619d85423210a283b3eb1fba9abda4fdc894969/src/org/dmfs/dav/PropertyRequest.java#L49-L57
45,135
lightblue-platform/lightblue-migrator
jiff/src/main/java/jiff/JsonDiff.java
JsonDiff.setOption
public void setOption(Option option) { switch (option) { case ARRAY_ORDER_SIGNIFICANT: arrayComparator = new DefaultArrayNodeComparator(); break; case ARRAY_ORDER_INSIGNIFICANT: arrayComparator = new SetArrayNodeComparator(); ...
java
public void setOption(Option option) { switch (option) { case ARRAY_ORDER_SIGNIFICANT: arrayComparator = new DefaultArrayNodeComparator(); break; case ARRAY_ORDER_INSIGNIFICANT: arrayComparator = new SetArrayNodeComparator(); ...
[ "public", "void", "setOption", "(", "Option", "option", ")", "{", "switch", "(", "option", ")", "{", "case", "ARRAY_ORDER_SIGNIFICANT", ":", "arrayComparator", "=", "new", "DefaultArrayNodeComparator", "(", ")", ";", "break", ";", "case", "ARRAY_ORDER_INSIGNIFICAN...
Sets an option
[ "Sets", "an", "option" ]
ec20748557b40d1f7851e1816d1b76dae48d2027
https://github.com/lightblue-platform/lightblue-migrator/blob/ec20748557b40d1f7851e1816d1b76dae48d2027/jiff/src/main/java/jiff/JsonDiff.java#L340-L356
45,136
lightblue-platform/lightblue-migrator
jiff/src/main/java/jiff/JsonDiff.java
JsonDiff.computeDiff
public List<JsonDelta> computeDiff(String node1, String node2) throws IOException { ObjectMapper mapper = new ObjectMapper(); return computeDiff(mapper.readTree(node1), mapper.readTree(node2)); }
java
public List<JsonDelta> computeDiff(String node1, String node2) throws IOException { ObjectMapper mapper = new ObjectMapper(); return computeDiff(mapper.readTree(node1), mapper.readTree(node2)); }
[ "public", "List", "<", "JsonDelta", ">", "computeDiff", "(", "String", "node1", ",", "String", "node2", ")", "throws", "IOException", "{", "ObjectMapper", "mapper", "=", "new", "ObjectMapper", "(", ")", ";", "return", "computeDiff", "(", "mapper", ".", "read...
Computes the difference of two JSON strings, and returns the differences
[ "Computes", "the", "difference", "of", "two", "JSON", "strings", "and", "returns", "the", "differences" ]
ec20748557b40d1f7851e1816d1b76dae48d2027
https://github.com/lightblue-platform/lightblue-migrator/blob/ec20748557b40d1f7851e1816d1b76dae48d2027/jiff/src/main/java/jiff/JsonDiff.java#L368-L371
45,137
lightblue-platform/lightblue-migrator
jiff/src/main/java/jiff/JsonDiff.java
JsonDiff.computeDiff
public List<JsonDelta> computeDiff(JsonNode node1, JsonNode node2) { List<JsonDelta> list = new ArrayList<>(); computeDiff(list, new ArrayList<String>(), node1, node2); return list; }
java
public List<JsonDelta> computeDiff(JsonNode node1, JsonNode node2) { List<JsonDelta> list = new ArrayList<>(); computeDiff(list, new ArrayList<String>(), node1, node2); return list; }
[ "public", "List", "<", "JsonDelta", ">", "computeDiff", "(", "JsonNode", "node1", ",", "JsonNode", "node2", ")", "{", "List", "<", "JsonDelta", ">", "list", "=", "new", "ArrayList", "<>", "(", ")", ";", "computeDiff", "(", "list", ",", "new", "ArrayList"...
Computes the difference of two JSON nodes and returns the differences
[ "Computes", "the", "difference", "of", "two", "JSON", "nodes", "and", "returns", "the", "differences" ]
ec20748557b40d1f7851e1816d1b76dae48d2027
https://github.com/lightblue-platform/lightblue-migrator/blob/ec20748557b40d1f7851e1816d1b76dae48d2027/jiff/src/main/java/jiff/JsonDiff.java#L376-L380
45,138
lightblue-platform/lightblue-migrator
jiff/src/main/java/jiff/JsonDiff.java
JsonDiff.computeDiff
public boolean computeDiff(List<JsonDelta> delta, List<String> context, JsonNode node1, JsonNode node2) { boolean ret = false; if (context.size() == 0 || filter.includeField(context)) { JsonComparator cmp = getComparator(context, node1, node2); if (cmp != null) { ...
java
public boolean computeDiff(List<JsonDelta> delta, List<String> context, JsonNode node1, JsonNode node2) { boolean ret = false; if (context.size() == 0 || filter.includeField(context)) { JsonComparator cmp = getComparator(context, node1, node2); if (cmp != null) { ...
[ "public", "boolean", "computeDiff", "(", "List", "<", "JsonDelta", ">", "delta", ",", "List", "<", "String", ">", "context", ",", "JsonNode", "node1", ",", "JsonNode", "node2", ")", "{", "boolean", "ret", "=", "false", ";", "if", "(", "context", ".", "...
Returns true if there is a difference
[ "Returns", "true", "if", "there", "is", "a", "difference" ]
ec20748557b40d1f7851e1816d1b76dae48d2027
https://github.com/lightblue-platform/lightblue-migrator/blob/ec20748557b40d1f7851e1816d1b76dae48d2027/jiff/src/main/java/jiff/JsonDiff.java#L385-L397
45,139
lightblue-platform/lightblue-migrator
jiff/src/main/java/jiff/JsonDiff.java
JsonDiff.getComparator
public JsonComparator getComparator(List<String> context, JsonNode node1, JsonNode node2) { if (node1 == null) { if (node2 == null) { return NODIFF_CMP; } else { return null; ...
java
public JsonComparator getComparator(List<String> context, JsonNode node1, JsonNode node2) { if (node1 == null) { if (node2 == null) { return NODIFF_CMP; } else { return null; ...
[ "public", "JsonComparator", "getComparator", "(", "List", "<", "String", ">", "context", ",", "JsonNode", "node1", ",", "JsonNode", "node2", ")", "{", "if", "(", "node1", "==", "null", ")", "{", "if", "(", "node2", "==", "null", ")", "{", "return", "NO...
Returns the comparator for the give field, and nodes. This method can be overriden to customize comparison logic.
[ "Returns", "the", "comparator", "for", "the", "give", "field", "and", "nodes", ".", "This", "method", "can", "be", "overriden", "to", "customize", "comparison", "logic", "." ]
ec20748557b40d1f7851e1816d1b76dae48d2027
https://github.com/lightblue-platform/lightblue-migrator/blob/ec20748557b40d1f7851e1816d1b76dae48d2027/jiff/src/main/java/jiff/JsonDiff.java#L403-L436
45,140
loldevs/riotapi
rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/LcdsGameInvitationService.java
LcdsGameInvitationService.createGroupFinderLobby
public LobbyStatus createGroupFinderLobby(long queueId, String uuid) { return client.sendRpcAndWait(SERVICE, "createGroupFinderLobby", queueId, uuid); }
java
public LobbyStatus createGroupFinderLobby(long queueId, String uuid) { return client.sendRpcAndWait(SERVICE, "createGroupFinderLobby", queueId, uuid); }
[ "public", "LobbyStatus", "createGroupFinderLobby", "(", "long", "queueId", ",", "String", "uuid", ")", "{", "return", "client", ".", "sendRpcAndWait", "(", "SERVICE", ",", "\"createGroupFinderLobby\"", ",", "queueId", ",", "uuid", ")", ";", "}" ]
Create a groupfinder lobby @param queueId The target queue @param uuid The uuid for this lobby @return The lobby status
[ "Create", "a", "groupfinder", "lobby" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/LcdsGameInvitationService.java#L40-L42
45,141
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/storage/fs/OMMapBufferEntry.java
OMMapBufferEntry.flush
boolean flush() { if (!dirty) return true; acquireExclusiveLock(); try { final long timer = OProfiler.getInstance().startChrono(); // FORCE THE WRITE OF THE BUFFER for (int i = 0; i < FORCE_RETRY; ++i) { try { buffer.force(); dirty = false;...
java
boolean flush() { if (!dirty) return true; acquireExclusiveLock(); try { final long timer = OProfiler.getInstance().startChrono(); // FORCE THE WRITE OF THE BUFFER for (int i = 0; i < FORCE_RETRY; ++i) { try { buffer.force(); dirty = false;...
[ "boolean", "flush", "(", ")", "{", "if", "(", "!", "dirty", ")", "return", "true", ";", "acquireExclusiveLock", "(", ")", ";", "try", "{", "final", "long", "timer", "=", "OProfiler", ".", "getInstance", "(", ")", ".", "startChrono", "(", ")", ";", "/...
Flushes the memory mapped buffer to disk only if it's dirty. @return true if the buffer has been successfully flushed, otherwise false.
[ "Flushes", "the", "memory", "mapped", "buffer", "to", "disk", "only", "if", "it", "s", "dirty", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/storage/fs/OMMapBufferEntry.java#L65-L99
45,142
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/storage/fs/OMMapBufferEntry.java
OMMapBufferEntry.close
void close() { acquireExclusiveLock(); try { if (buffer != null) { if (dirty) buffer.force(); if (sunClass != null) { // USE SUN JVM SPECIAL METHOD TO FREE RESOURCES try { final Method m = sunClass.getMethod("cleaner"); fi...
java
void close() { acquireExclusiveLock(); try { if (buffer != null) { if (dirty) buffer.force(); if (sunClass != null) { // USE SUN JVM SPECIAL METHOD TO FREE RESOURCES try { final Method m = sunClass.getMethod("cleaner"); fi...
[ "void", "close", "(", ")", "{", "acquireExclusiveLock", "(", ")", ";", "try", "{", "if", "(", "buffer", "!=", "null", ")", "{", "if", "(", "dirty", ")", "buffer", ".", "force", "(", ")", ";", "if", "(", "sunClass", "!=", "null", ")", "{", "// USE...
Force closing of file if it's opened yet.
[ "Force", "closing", "of", "file", "if", "it", "s", "opened", "yet", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/storage/fs/OMMapBufferEntry.java#L112-L139
45,143
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/sql/OIndexProxy.java
OIndexProxy.prepareKeys
private Set<Comparable> prepareKeys(OIndex<?> index, Object keys) { final Class<?> targetType = index.getKeyTypes()[0].getDefaultJavaType(); return convertResult(keys, targetType); }
java
private Set<Comparable> prepareKeys(OIndex<?> index, Object keys) { final Class<?> targetType = index.getKeyTypes()[0].getDefaultJavaType(); return convertResult(keys, targetType); }
[ "private", "Set", "<", "Comparable", ">", "prepareKeys", "(", "OIndex", "<", "?", ">", "index", ",", "Object", "keys", ")", "{", "final", "Class", "<", "?", ">", "targetType", "=", "index", ".", "getKeyTypes", "(", ")", "[", "0", "]", ".", "getDefaul...
Make type conversion of keys for specific index. @param index - index for which keys prepared for. @param keys - which should be prepared. @return keys converted to necessary type.
[ "Make", "type", "conversion", "of", "keys", "for", "specific", "index", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/sql/OIndexProxy.java#L243-L247
45,144
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/record/ORecordSchemaAwareAbstract.java
ORecordSchemaAwareAbstract.validate
public void validate() throws OValidationException { if (ODatabaseRecordThreadLocal.INSTANCE.isDefined() && !getDatabase().isValidationEnabled()) return; checkForLoading(); checkForFields(); if (_clazz != null) { if (_clazz.isStrictMode()) { // CHECK IF ALL FIELDS ARE DEFI...
java
public void validate() throws OValidationException { if (ODatabaseRecordThreadLocal.INSTANCE.isDefined() && !getDatabase().isValidationEnabled()) return; checkForLoading(); checkForFields(); if (_clazz != null) { if (_clazz.isStrictMode()) { // CHECK IF ALL FIELDS ARE DEFI...
[ "public", "void", "validate", "(", ")", "throws", "OValidationException", "{", "if", "(", "ODatabaseRecordThreadLocal", ".", "INSTANCE", ".", "isDefined", "(", ")", "&&", "!", "getDatabase", "(", ")", ".", "isValidationEnabled", "(", ")", ")", "return", ";", ...
Validates the record following the declared constraints defined in schema such as mandatory, notNull, min, max, regexp, etc. If the schema is not defined for the current class or there are not constraints then the validation is ignored. @see OProperty @throws OValidationException if the document breaks some validation...
[ "Validates", "the", "record", "following", "the", "declared", "constraints", "defined", "in", "schema", "such", "as", "mandatory", "notNull", "min", "max", "regexp", "etc", ".", "If", "the", "schema", "is", "not", "defined", "for", "the", "current", "class", ...
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/record/ORecordSchemaAwareAbstract.java#L48-L69
45,145
dmfs/jdav
src/org/dmfs/dav/rfc4918/PropertyUpdate.java
PropertyUpdate.set
public <T> void set(ElementDescriptor<T> property, T value) { if (mSet == null) { mSet = new HashMap<ElementDescriptor<?>, Object>(16); } mSet.put(property, value); if (mRemove != null) { mRemove.remove(property); } }
java
public <T> void set(ElementDescriptor<T> property, T value) { if (mSet == null) { mSet = new HashMap<ElementDescriptor<?>, Object>(16); } mSet.put(property, value); if (mRemove != null) { mRemove.remove(property); } }
[ "public", "<", "T", ">", "void", "set", "(", "ElementDescriptor", "<", "T", ">", "property", ",", "T", "value", ")", "{", "if", "(", "mSet", "==", "null", ")", "{", "mSet", "=", "new", "HashMap", "<", "ElementDescriptor", "<", "?", ">", ",", "Objec...
Add a new property with a specific value to the resource. @param property The {@link ElementDescriptor} of the property to add. @param value The value of the property.
[ "Add", "a", "new", "property", "with", "a", "specific", "value", "to", "the", "resource", "." ]
a619d85423210a283b3eb1fba9abda4fdc894969
https://github.com/dmfs/jdav/blob/a619d85423210a283b3eb1fba9abda4fdc894969/src/org/dmfs/dav/rfc4918/PropertyUpdate.java#L142-L154
45,146
dmfs/jdav
src/org/dmfs/dav/rfc4918/PropertyUpdate.java
PropertyUpdate.remove
public <T> void remove(ElementDescriptor<T> property) { if (mRemove == null) { mRemove = new HashMap<ElementDescriptor<?>, Object>(16); } mRemove.put(property, null); if (mSet != null) { mSet.remove(property); } }
java
public <T> void remove(ElementDescriptor<T> property) { if (mRemove == null) { mRemove = new HashMap<ElementDescriptor<?>, Object>(16); } mRemove.put(property, null); if (mSet != null) { mSet.remove(property); } }
[ "public", "<", "T", ">", "void", "remove", "(", "ElementDescriptor", "<", "T", ">", "property", ")", "{", "if", "(", "mRemove", "==", "null", ")", "{", "mRemove", "=", "new", "HashMap", "<", "ElementDescriptor", "<", "?", ">", ",", "Object", ">", "("...
Remove a property from the resource. @param property The {@link ElementDescriptor} of the property to remove.
[ "Remove", "a", "property", "from", "the", "resource", "." ]
a619d85423210a283b3eb1fba9abda4fdc894969
https://github.com/dmfs/jdav/blob/a619d85423210a283b3eb1fba9abda4fdc894969/src/org/dmfs/dav/rfc4918/PropertyUpdate.java#L163-L175
45,147
dmfs/jdav
src/org/dmfs/dav/rfc4918/PropertyUpdate.java
PropertyUpdate.clear
public <T> void clear(ElementDescriptor<T> property) { if (mRemove != null) { mRemove.remove(property); } if (mSet != null) { mSet.remove(property); } }
java
public <T> void clear(ElementDescriptor<T> property) { if (mRemove != null) { mRemove.remove(property); } if (mSet != null) { mSet.remove(property); } }
[ "public", "<", "T", ">", "void", "clear", "(", "ElementDescriptor", "<", "T", ">", "property", ")", "{", "if", "(", "mRemove", "!=", "null", ")", "{", "mRemove", ".", "remove", "(", "property", ")", ";", "}", "if", "(", "mSet", "!=", "null", ")", ...
Clear the modification of given property, i.e. neither change nor remove the property. @param property The {@link ElementDescriptor} of the property to clear.
[ "Clear", "the", "modification", "of", "given", "property", "i", ".", "e", ".", "neither", "change", "nor", "remove", "the", "property", "." ]
a619d85423210a283b3eb1fba9abda4fdc894969
https://github.com/dmfs/jdav/blob/a619d85423210a283b3eb1fba9abda4fdc894969/src/org/dmfs/dav/rfc4918/PropertyUpdate.java#L184-L195
45,148
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/cache/OLevel2RecordCache.java
OLevel2RecordCache.updateRecord
public void updateRecord(final ORecordInternal<?> fresh) { if (!isEnabled() || fresh == null || fresh.isDirty() || fresh.getIdentity().isNew() || !fresh.getIdentity().isValid() || fresh.getIdentity().getClusterId() == excludedCluster) return; if (fresh.isPinned() == null || fresh.isPinned())...
java
public void updateRecord(final ORecordInternal<?> fresh) { if (!isEnabled() || fresh == null || fresh.isDirty() || fresh.getIdentity().isNew() || !fresh.getIdentity().isValid() || fresh.getIdentity().getClusterId() == excludedCluster) return; if (fresh.isPinned() == null || fresh.isPinned())...
[ "public", "void", "updateRecord", "(", "final", "ORecordInternal", "<", "?", ">", "fresh", ")", "{", "if", "(", "!", "isEnabled", "(", ")", "||", "fresh", "==", "null", "||", "fresh", ".", "isDirty", "(", ")", "||", "fresh", ".", "getIdentity", "(", ...
Push record to cache. Identifier of record used as access key @param fresh new record that should be cached
[ "Push", "record", "to", "cache", ".", "Identifier", "of", "record", "used", "as", "access", "key" ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/cache/OLevel2RecordCache.java#L63-L88
45,149
ptgoetz/storm-hbase
src/main/java/org/apache/storm/hbase/common/ColumnList.java
ColumnList.addColumn
public ColumnList addColumn(byte[] family, byte[] qualifier, byte[] value){ columns().add(new Column(family, qualifier, -1, value)); return this; }
java
public ColumnList addColumn(byte[] family, byte[] qualifier, byte[] value){ columns().add(new Column(family, qualifier, -1, value)); return this; }
[ "public", "ColumnList", "addColumn", "(", "byte", "[", "]", "family", ",", "byte", "[", "]", "qualifier", ",", "byte", "[", "]", "value", ")", "{", "columns", "(", ")", ".", "add", "(", "new", "Column", "(", "family", ",", "qualifier", ",", "-", "1...
Add a standard HBase column @param family @param qualifier @param value @return
[ "Add", "a", "standard", "HBase", "column" ]
509e41514bb92ef65dba1449bbd935557dc8193c
https://github.com/ptgoetz/storm-hbase/blob/509e41514bb92ef65dba1449bbd935557dc8193c/src/main/java/org/apache/storm/hbase/common/ColumnList.java#L128-L131
45,150
ptgoetz/storm-hbase
src/main/java/org/apache/storm/hbase/common/ColumnList.java
ColumnList.addCounter
public ColumnList addCounter(byte[] family, byte[] qualifier, long incr){ counters().add(new Counter(family, qualifier, incr)); return this; }
java
public ColumnList addCounter(byte[] family, byte[] qualifier, long incr){ counters().add(new Counter(family, qualifier, incr)); return this; }
[ "public", "ColumnList", "addCounter", "(", "byte", "[", "]", "family", ",", "byte", "[", "]", "qualifier", ",", "long", "incr", ")", "{", "counters", "(", ")", ".", "add", "(", "new", "Counter", "(", "family", ",", "qualifier", ",", "incr", ")", ")",...
Add an HBase counter column. @param family @param qualifier @param incr @return
[ "Add", "an", "HBase", "counter", "column", "." ]
509e41514bb92ef65dba1449bbd935557dc8193c
https://github.com/ptgoetz/storm-hbase/blob/509e41514bb92ef65dba1449bbd935557dc8193c/src/main/java/org/apache/storm/hbase/common/ColumnList.java#L151-L154
45,151
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getLeagues
public Future<Map<Long, List<LeagueList>>> getLeagues(long... summoners) { return new ApiFuture<>(() -> handler.getLeagues(summoners)); }
java
public Future<Map<Long, List<LeagueList>>> getLeagues(long... summoners) { return new ApiFuture<>(() -> handler.getLeagues(summoners)); }
[ "public", "Future", "<", "Map", "<", "Long", ",", "List", "<", "LeagueList", ">", ">", ">", "getLeagues", "(", "long", "...", "summoners", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getLeagues", "(", "summoners"...
Get a listing of leagues for the specified summoners @param summoners The ids of the summoners @return A list of leagues @see <a href=https://developer.riotgames.com/api/methods#!/593/1862>Official API documentation</a>
[ "Get", "a", "listing", "of", "leagues", "for", "the", "specified", "summoners" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L235-L237
45,152
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getLeagueEntries
public Future<Map<Long, List<LeagueItem>>> getLeagueEntries(long... summoners) { return new ApiFuture<>(() -> handler.getLeagueEntries(summoners)); }
java
public Future<Map<Long, List<LeagueItem>>> getLeagueEntries(long... summoners) { return new ApiFuture<>(() -> handler.getLeagueEntries(summoners)); }
[ "public", "Future", "<", "Map", "<", "Long", ",", "List", "<", "LeagueItem", ">", ">", ">", "getLeagueEntries", "(", "long", "...", "summoners", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getLeagueEntries", "(", ...
Get a listing of all league entries in the summoners' leagues @param summoners The ids of the summoners @return A map, mapping summoner ids to lists of league entries for that summoner @see <a href=https://developer.riotgames.com/api/methods#!/593/1863>Official API documentation</a>
[ "Get", "a", "listing", "of", "all", "league", "entries", "in", "the", "summoners", "leagues" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L255-L257
45,153
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getLeagues
public Future<List<LeagueList>> getLeagues(String teamId) { return new ApiFuture<>(() -> handler.getLeagues(teamId)); }
java
public Future<List<LeagueList>> getLeagues(String teamId) { return new ApiFuture<>(() -> handler.getLeagues(teamId)); }
[ "public", "Future", "<", "List", "<", "LeagueList", ">", ">", "getLeagues", "(", "String", "teamId", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getLeagues", "(", "teamId", ")", ")", ";", "}" ]
Get a listing of leagues for the specified team @param teamId The id of the team @return A list of leagues @see <a href=https://developer.riotgames.com/api/methods#!/593/1860>Official API documentation</a>
[ "Get", "a", "listing", "of", "leagues", "for", "the", "specified", "team" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L265-L267
45,154
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getLeagues
public Future<Map<String, List<LeagueList>>> getLeagues(String... teamIds) { return new ApiFuture<>(() -> handler.getLeagues(teamIds)); }
java
public Future<Map<String, List<LeagueList>>> getLeagues(String... teamIds) { return new ApiFuture<>(() -> handler.getLeagues(teamIds)); }
[ "public", "Future", "<", "Map", "<", "String", ",", "List", "<", "LeagueList", ">", ">", ">", "getLeagues", "(", "String", "...", "teamIds", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getLeagues", "(", "teamIds"...
Get a listing of leagues for the specified teams @param teamIds The ids of the team @return A mapping of team ids to lists of leagues @see <a href=https://developer.riotgames.com/api/methods#!/593/1860>Official API documentation</a>
[ "Get", "a", "listing", "of", "leagues", "for", "the", "specified", "teams" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L275-L277
45,155
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getLeagueEntries
public Future<List<LeagueItem>> getLeagueEntries(String teamId) { return new ApiFuture<>(() -> handler.getLeagueEntries(teamId)); }
java
public Future<List<LeagueItem>> getLeagueEntries(String teamId) { return new ApiFuture<>(() -> handler.getLeagueEntries(teamId)); }
[ "public", "Future", "<", "List", "<", "LeagueItem", ">", ">", "getLeagueEntries", "(", "String", "teamId", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getLeagueEntries", "(", "teamId", ")", ")", ";", "}" ]
Get a listing of all league entries in the team's leagues @param teamId The id of the team @return A list of league entries @see <a href=https://developer.riotgames.com/api/methods#!/593/1861>Official API documentation</a>
[ "Get", "a", "listing", "of", "all", "league", "entries", "in", "the", "team", "s", "leagues" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L285-L287
45,156
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getLeagueEntries
public Future<Map<String, List<LeagueItem>>> getLeagueEntries(String... teamIds) { return new ApiFuture<>(() -> handler.getLeagueEntries(teamIds)); }
java
public Future<Map<String, List<LeagueItem>>> getLeagueEntries(String... teamIds) { return new ApiFuture<>(() -> handler.getLeagueEntries(teamIds)); }
[ "public", "Future", "<", "Map", "<", "String", ",", "List", "<", "LeagueItem", ">", ">", ">", "getLeagueEntries", "(", "String", "...", "teamIds", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getLeagueEntries", "(",...
Get a listing of all league entries in the teams' leagues @param teamIds The ids of the teams @return A mapping of teamIds to lists of league entries @see <a href=https://developer.riotgames.com/api/methods#!/593/1861>Official API documentation</a>
[ "Get", "a", "listing", "of", "all", "league", "entries", "in", "the", "teams", "leagues" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L295-L297
45,157
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getMatch
public Future<MatchDetail> getMatch(long matchId, boolean includeTimeline) { return new ApiFuture<>(() -> handler.getMatch(matchId, includeTimeline)); }
java
public Future<MatchDetail> getMatch(long matchId, boolean includeTimeline) { return new ApiFuture<>(() -> handler.getMatch(matchId, includeTimeline)); }
[ "public", "Future", "<", "MatchDetail", ">", "getMatch", "(", "long", "matchId", ",", "boolean", "includeTimeline", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getMatch", "(", "matchId", ",", "includeTimeline", ")", ...
Retrieves the specified match. @param matchId The id of the match. @param includeTimeline Whether or not the event timeline should be retrieved. @return The match details. @see <a href="https://developer.riotgames.com/api/methods#!/806/2848">Official API Documentation</a>
[ "Retrieves", "the", "specified", "match", "." ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L976-L978
45,158
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getMatchHistory
public Future<List<MatchSummary>> getMatchHistory(long playerId, String[] championIds, QueueType... queueTypes) { return new ApiFuture<>(() -> handler.getMatchHistory(playerId, championIds, queueTypes)); }
java
public Future<List<MatchSummary>> getMatchHistory(long playerId, String[] championIds, QueueType... queueTypes) { return new ApiFuture<>(() -> handler.getMatchHistory(playerId, championIds, queueTypes)); }
[ "public", "Future", "<", "List", "<", "MatchSummary", ">", ">", "getMatchHistory", "(", "long", "playerId", ",", "String", "[", "]", "championIds", ",", "QueueType", "...", "queueTypes", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", ...
Retrieve a player's match history, filtering out all games not in the specified queues. @param playerId The id of the player. @param championIds The championIds to use for retrieval. @param queueTypes The queue types to retrieve (must be one of RANKED_SOLO_5x5, RANKED_TEAM_3x3 or RANKED_TEAM_5x5). @return The matc...
[ "Retrieve", "a", "player", "s", "match", "history", "filtering", "out", "all", "games", "not", "in", "the", "specified", "queues", "." ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L1014-L1016
45,159
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getRankedStats
public Future<RankedStats> getRankedStats(long summoner, Season season) { return new ApiFuture<>(() -> handler.getRankedStats(summoner, season)); }
java
public Future<RankedStats> getRankedStats(long summoner, Season season) { return new ApiFuture<>(() -> handler.getRankedStats(summoner, season)); }
[ "public", "Future", "<", "RankedStats", ">", "getRankedStats", "(", "long", "summoner", ",", "Season", "season", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getRankedStats", "(", "summoner", ",", "season", ")", ")", ...
Get ranked stats for a player in a specific season @param summoner The id of the summoner @param season The season @return Ranked stats @see <a href=https://developer.riotgames.com/api/methods#!/622/1937>Official API documentation</a>
[ "Get", "ranked", "stats", "for", "a", "player", "in", "a", "specific", "season" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L1055-L1057
45,160
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getStatsSummary
public Future<List<PlayerStats>> getStatsSummary(long summoner, Season season) { return new ApiFuture<>(() -> handler.getStatsSummary(summoner, season)); }
java
public Future<List<PlayerStats>> getStatsSummary(long summoner, Season season) { return new ApiFuture<>(() -> handler.getStatsSummary(summoner, season)); }
[ "public", "Future", "<", "List", "<", "PlayerStats", ">", ">", "getStatsSummary", "(", "long", "summoner", ",", "Season", "season", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getStatsSummary", "(", "summoner", ",", ...
Get player stats for the player @param summoner The id of the summoner @param season The season @return The player's stats @see <a href=https://developer.riotgames.com/api/methods#!/622/1938>Official API documentation</a>
[ "Get", "player", "stats", "for", "the", "player" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L1076-L1078
45,161
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getSummoners
public Future<Map<String, Summoner>> getSummoners(String... names) { return new ApiFuture<>(() -> handler.getSummoners(names)); }
java
public Future<Map<String, Summoner>> getSummoners(String... names) { return new ApiFuture<>(() -> handler.getSummoners(names)); }
[ "public", "Future", "<", "Map", "<", "String", ",", "Summoner", ">", ">", "getSummoners", "(", "String", "...", "names", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getSummoners", "(", "names", ")", ")", ";", "...
Get summoner information for the summoners with the specified names @param names The names of the players @return A map, mapping standardized player names to summoner information @see <a href=https://developer.riotgames.com/api/methods#!/620/1930>Official API documentation</a> @see net.boreeas.riotapi.Util#standardizeS...
[ "Get", "summoner", "information", "for", "the", "summoners", "with", "the", "specified", "names" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L1091-L1093
45,162
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getSummoners
public Future<Map<Integer, Summoner>> getSummoners(Integer... ids) { return new ApiFuture<>(() -> handler.getSummoners(ids)); }
java
public Future<Map<Integer, Summoner>> getSummoners(Integer... ids) { return new ApiFuture<>(() -> handler.getSummoners(ids)); }
[ "public", "Future", "<", "Map", "<", "Integer", ",", "Summoner", ">", ">", "getSummoners", "(", "Integer", "...", "ids", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getSummoners", "(", "ids", ")", ")", ";", "}"...
Get summoner information for the summoners with the specified ids @param ids The ids of the summoners @return A map, mapping player ids to summoner information @see <a href=https://developer.riotgames.com/api/methods#!/620/1931>Official API documentation</a>
[ "Get", "summoner", "information", "for", "the", "summoners", "with", "the", "specified", "ids" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L1111-L1113
45,163
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getMasteryPagesMultipleUsers
public Future<Map<Integer, Set<MasteryPage>>> getMasteryPagesMultipleUsers(Integer... ids) { return new ApiFuture<>(() -> handler.getMasteryPagesMultipleUsers(ids)); }
java
public Future<Map<Integer, Set<MasteryPage>>> getMasteryPagesMultipleUsers(Integer... ids) { return new ApiFuture<>(() -> handler.getMasteryPagesMultipleUsers(ids)); }
[ "public", "Future", "<", "Map", "<", "Integer", ",", "Set", "<", "MasteryPage", ">", ">", ">", "getMasteryPagesMultipleUsers", "(", "Integer", "...", "ids", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getMasteryPages...
Retrieve mastery pages for multiple users @param ids The ids of the users @return A map, mapping player ids to their respective mastery pages @see <a href=https://developer.riotgames.com/api/methods#!/620/1933>Official API documentation</a>
[ "Retrieve", "mastery", "pages", "for", "multiple", "users" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L1131-L1133
45,164
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getSummonerNames
public Future<Map<Integer, String>> getSummonerNames(Integer... ids) { return new ApiFuture<>(() -> handler.getSummonerNames(ids)); }
java
public Future<Map<Integer, String>> getSummonerNames(Integer... ids) { return new ApiFuture<>(() -> handler.getSummonerNames(ids)); }
[ "public", "Future", "<", "Map", "<", "Integer", ",", "String", ">", ">", "getSummonerNames", "(", "Integer", "...", "ids", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getSummonerNames", "(", "ids", ")", ")", ";",...
Retrieve summoner names for the specified ids @param ids The ids to lookup @return A map, mapping user ids to summoner names @see <a href=https://developer.riotgames.com/api/methods#!/620/1934>Official API documentation</a>
[ "Retrieve", "summoner", "names", "for", "the", "specified", "ids" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L1151-L1153
45,165
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getRunePagesMultipleUsers
public Future<Map<Integer, Set<RunePage>>> getRunePagesMultipleUsers(int... ids) { return new ApiFuture<>(() -> handler.getRunePagesMultipleUsers(ids)); }
java
public Future<Map<Integer, Set<RunePage>>> getRunePagesMultipleUsers(int... ids) { return new ApiFuture<>(() -> handler.getRunePagesMultipleUsers(ids)); }
[ "public", "Future", "<", "Map", "<", "Integer", ",", "Set", "<", "RunePage", ">", ">", ">", "getRunePagesMultipleUsers", "(", "int", "...", "ids", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getRunePagesMultipleUsers...
Retrieve runes pages for multiple users @param ids The ids of the users @return A map, mapping user ids to their respective runes pages @see <a href=https://developer.riotgames.com/api/methods#!/620/1932>Official API documentation</a>
[ "Retrieve", "runes", "pages", "for", "multiple", "users" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L1171-L1173
45,166
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getTeams
public Future<Map<Long, List<RankedTeam>>> getTeams(long... ids) { return new ApiFuture<>(() -> handler.getTeamsBySummoners(ids)); }
java
public Future<Map<Long, List<RankedTeam>>> getTeams(long... ids) { return new ApiFuture<>(() -> handler.getTeamsBySummoners(ids)); }
[ "public", "Future", "<", "Map", "<", "Long", ",", "List", "<", "RankedTeam", ">", ">", ">", "getTeams", "(", "long", "...", "ids", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getTeamsBySummoners", "(", "ids", "...
Retrieve the ranked teams of the specified users @param ids The users' ids @return The ranked teams of the users @see <a href=https://developer.riotgames.com/api/methods#!/594/1865>Official API documentation</a>
[ "Retrieve", "the", "ranked", "teams", "of", "the", "specified", "users" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L1205-L1207
45,167
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getTeams
public Future<Map<String, RankedTeam>> getTeams(String... teamIds) { return new ApiFuture<>(() -> handler.getTeams(teamIds)); }
java
public Future<Map<String, RankedTeam>> getTeams(String... teamIds) { return new ApiFuture<>(() -> handler.getTeams(teamIds)); }
[ "public", "Future", "<", "Map", "<", "String", ",", "RankedTeam", ">", ">", "getTeams", "(", "String", "...", "teamIds", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getTeams", "(", "teamIds", ")", ")", ";", "}"...
Retrieve information for the specified ranked teams @param teamIds The ids of the teams @return A map, mapping team ids to team information @see <a href=https://developer.riotgames.com/api/methods#!/594/1866>Official API documentation</a>
[ "Retrieve", "information", "for", "the", "specified", "ranked", "teams" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L1225-L1227
45,168
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.getSummonerIds
public Future<List<Long>> getSummonerIds(String... names) { return new ApiFuture<>(() -> handler.getSummonerIds(names)); }
java
public Future<List<Long>> getSummonerIds(String... names) { return new ApiFuture<>(() -> handler.getSummonerIds(names)); }
[ "public", "Future", "<", "List", "<", "Long", ">", ">", "getSummonerIds", "(", "String", "...", "names", ")", "{", "return", "new", "ApiFuture", "<>", "(", "(", ")", "->", "handler", ".", "getSummonerIds", "(", "names", ")", ")", ";", "}" ]
Retrieve summoner ids for the specified names @param names The names of the users @return Their respective ids
[ "Retrieve", "summoner", "ids", "for", "the", "specified", "names" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L1238-L1240
45,169
loldevs/riotapi
rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java
ThrottledApiHandler.developmentDefault
public static ThrottledApiHandler developmentDefault(Shard shard, String token) { return new ThrottledApiHandler(shard, token, new Limit(10, 10, TimeUnit.SECONDS), new Limit(500, 10, TimeUnit.MINUTES)); }
java
public static ThrottledApiHandler developmentDefault(Shard shard, String token) { return new ThrottledApiHandler(shard, token, new Limit(10, 10, TimeUnit.SECONDS), new Limit(500, 10, TimeUnit.MINUTES)); }
[ "public", "static", "ThrottledApiHandler", "developmentDefault", "(", "Shard", "shard", ",", "String", "token", ")", "{", "return", "new", "ThrottledApiHandler", "(", "shard", ",", "token", ",", "new", "Limit", "(", "10", ",", "10", ",", "TimeUnit", ".", "SE...
Returns a throttled api handler with the current development request limits, which is 10 requests per 10 seconds and 500 requests per 10 minutes @param shard The target server @param token The api key @return The api handler
[ "Returns", "a", "throttled", "api", "handler", "with", "the", "current", "development", "request", "limits", "which", "is", "10", "requests", "per", "10", "seconds", "and", "500", "requests", "per", "10", "minutes" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rest/src/main/java/net/boreeas/riotapi/rest/ThrottledApiHandler.java#L1379-L1383
45,170
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/cache/OLevel1RecordCache.java
OLevel1RecordCache.updateRecord
public void updateRecord(final ORecordInternal<?> record) { if (isEnabled() && record.getIdentity().getClusterId() != excludedCluster && record.getIdentity().isValid()) { underlying.lock(record.getIdentity()); try { if (underlying.get(record.getIdentity()) != record) underlying.pu...
java
public void updateRecord(final ORecordInternal<?> record) { if (isEnabled() && record.getIdentity().getClusterId() != excludedCluster && record.getIdentity().isValid()) { underlying.lock(record.getIdentity()); try { if (underlying.get(record.getIdentity()) != record) underlying.pu...
[ "public", "void", "updateRecord", "(", "final", "ORecordInternal", "<", "?", ">", "record", ")", "{", "if", "(", "isEnabled", "(", ")", "&&", "record", ".", "getIdentity", "(", ")", ".", "getClusterId", "(", ")", "!=", "excludedCluster", "&&", "record", ...
Pushes record to cache. Identifier of record used as access key @param record record that should be cached
[ "Pushes", "record", "to", "cache", ".", "Identifier", "of", "record", "used", "as", "access", "key" ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/cache/OLevel1RecordCache.java#L62-L74
45,171
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/cache/OLevel1RecordCache.java
OLevel1RecordCache.findRecord
public ORecordInternal<?> findRecord(final ORID rid) { if (!isEnabled()) // DELEGATE TO THE 2nd LEVEL CACHE return null; // secondary.retrieveRecord(rid); ORecordInternal<?> record; underlying.lock(rid); try { record = underlying.get(rid); if (record == null) { ...
java
public ORecordInternal<?> findRecord(final ORID rid) { if (!isEnabled()) // DELEGATE TO THE 2nd LEVEL CACHE return null; // secondary.retrieveRecord(rid); ORecordInternal<?> record; underlying.lock(rid); try { record = underlying.get(rid); if (record == null) { ...
[ "public", "ORecordInternal", "<", "?", ">", "findRecord", "(", "final", "ORID", "rid", ")", "{", "if", "(", "!", "isEnabled", "(", ")", ")", "// DELEGATE TO THE 2nd LEVEL CACHE\r", "return", "null", ";", "// secondary.retrieveRecord(rid);\r", "ORecordInternal", "<",...
Looks up for record in cache by it's identifier. Optionally look up in secondary cache and update primary with found record @param rid unique identifier of record @return record stored in cache if any, otherwise - {@code null}
[ "Looks", "up", "for", "record", "in", "cache", "by", "it", "s", "identifier", ".", "Optionally", "look", "up", "in", "secondary", "cache", "and", "update", "primary", "with", "found", "record" ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/cache/OLevel1RecordCache.java#L83-L108
45,172
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/sql/OCommandExecutorSQLCreateIndex.java
OCommandExecutorSQLCreateIndex.execute
@SuppressWarnings("rawtypes") public Object execute(final Map<Object, Object> iArgs) { if (indexName == null) throw new OCommandExecutionException("Cannot execute the command because it has not been parsed yet"); final ODatabaseRecord database = getDatabase(); final OIndex<?> idx; if (fi...
java
@SuppressWarnings("rawtypes") public Object execute(final Map<Object, Object> iArgs) { if (indexName == null) throw new OCommandExecutionException("Cannot execute the command because it has not been parsed yet"); final ODatabaseRecord database = getDatabase(); final OIndex<?> idx; if (fi...
[ "@", "SuppressWarnings", "(", "\"rawtypes\"", ")", "public", "Object", "execute", "(", "final", "Map", "<", "Object", ",", "Object", ">", "iArgs", ")", "{", "if", "(", "indexName", "==", "null", ")", "throw", "new", "OCommandExecutionException", "(", "\"Cann...
Execute the CREATE INDEX.
[ "Execute", "the", "CREATE", "INDEX", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/sql/OCommandExecutorSQLCreateIndex.java#L182-L214
45,173
loldevs/riotapi
rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/SummonerTeamService.java
SummonerTeamService.createTeam
public Team createTeam(String name, String tag) { return client.sendRpcAndWait(SERVICE, "createTeam", name, tag); }
java
public Team createTeam(String name, String tag) { return client.sendRpcAndWait(SERVICE, "createTeam", name, tag); }
[ "public", "Team", "createTeam", "(", "String", "name", ",", "String", "tag", ")", "{", "return", "client", ".", "sendRpcAndWait", "(", "SERVICE", ",", "\"createTeam\"", ",", "name", ",", "tag", ")", ";", "}" ]
Create a new ranked team with the specified name and tag @param name The name @param tag The tag @return The created team
[ "Create", "a", "new", "ranked", "team", "with", "the", "specified", "name", "and", "tag" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/SummonerTeamService.java#L95-L97
45,174
loldevs/riotapi
rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/SummonerTeamService.java
SummonerTeamService.invitePlayer
public Team invitePlayer(long summonerId, TeamId teamId) { return client.sendRpcAndWait(SERVICE, "invitePlayer", summonerId, teamId); }
java
public Team invitePlayer(long summonerId, TeamId teamId) { return client.sendRpcAndWait(SERVICE, "invitePlayer", summonerId, teamId); }
[ "public", "Team", "invitePlayer", "(", "long", "summonerId", ",", "TeamId", "teamId", ")", "{", "return", "client", ".", "sendRpcAndWait", "(", "SERVICE", ",", "\"invitePlayer\"", ",", "summonerId", ",", "teamId", ")", ";", "}" ]
Invite a player to the target team @param summonerId The id of the player @param teamId The id of the team @return The new team state
[ "Invite", "a", "player", "to", "the", "target", "team" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/SummonerTeamService.java#L105-L107
45,175
loldevs/riotapi
rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/SummonerTeamService.java
SummonerTeamService.kickPlayer
public Team kickPlayer(long summonerId, TeamId teamId) { return client.sendRpcAndWait(SERVICE, "kickPlayer", summonerId, teamId); }
java
public Team kickPlayer(long summonerId, TeamId teamId) { return client.sendRpcAndWait(SERVICE, "kickPlayer", summonerId, teamId); }
[ "public", "Team", "kickPlayer", "(", "long", "summonerId", ",", "TeamId", "teamId", ")", "{", "return", "client", ".", "sendRpcAndWait", "(", "SERVICE", ",", "\"kickPlayer\"", ",", "summonerId", ",", "teamId", ")", ";", "}" ]
Kick a player from the target team @param summonerId The id of the player @param teamId The id of the team @return The new team state
[ "Kick", "a", "player", "from", "the", "target", "team" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rtmp/src/main/java/net/boreeas/riotapi/rtmp/services/SummonerTeamService.java#L115-L117
45,176
wealthfront/kawala
kawala-converters/src/main/java/com/kaching/platform/converters/ConstructorAnalysis.java
ConstructorAnalysis.analyse
static AnalysisResult analyse( Class<?> klass, Constructor<?> constructor) throws IOException { Class<?>[] parameterTypes = constructor.getParameterTypes(); InputStream in = klass.getResourceAsStream("/" + klass.getName().replace('.', '/') + ".class"); if (in == null) { throw new IllegalArgument...
java
static AnalysisResult analyse( Class<?> klass, Constructor<?> constructor) throws IOException { Class<?>[] parameterTypes = constructor.getParameterTypes(); InputStream in = klass.getResourceAsStream("/" + klass.getName().replace('.', '/') + ".class"); if (in == null) { throw new IllegalArgument...
[ "static", "AnalysisResult", "analyse", "(", "Class", "<", "?", ">", "klass", ",", "Constructor", "<", "?", ">", "constructor", ")", "throws", "IOException", "{", "Class", "<", "?", ">", "[", "]", "parameterTypes", "=", "constructor", ".", "getParameterTypes"...
Produces an assignment or field names to values or fails. @throws IllegalConstructorException
[ "Produces", "an", "assignment", "or", "field", "names", "to", "values", "or", "fails", "." ]
acf24b7a9ef6e2f0fc1e862d44cfa4dcc4da8f6e
https://github.com/wealthfront/kawala/blob/acf24b7a9ef6e2f0fc1e862d44cfa4dcc4da8f6e/kawala-converters/src/main/java/com/kaching/platform/converters/ConstructorAnalysis.java#L61-L71
45,177
jpkrohling/secret-store
secret-store-api/src/main/java/org/keycloak/secretstore/api/internal/ZonedDateTimeXmlAdapter.java
ZonedDateTimeXmlAdapter.marshal
@Override public String marshal(ZonedDateTime zonedDateTime) { if (null == zonedDateTime) { return null; } return zonedDateTime.withZoneSameInstant(ZoneOffset.UTC).format(formatter); }
java
@Override public String marshal(ZonedDateTime zonedDateTime) { if (null == zonedDateTime) { return null; } return zonedDateTime.withZoneSameInstant(ZoneOffset.UTC).format(formatter); }
[ "@", "Override", "public", "String", "marshal", "(", "ZonedDateTime", "zonedDateTime", ")", "{", "if", "(", "null", "==", "zonedDateTime", ")", "{", "return", "null", ";", "}", "return", "zonedDateTime", ".", "withZoneSameInstant", "(", "ZoneOffset", ".", "UTC...
When marshalling, the provided zonedDateTime is normalized to UTC, so that the output is consistent between dates and time zones. @param zonedDateTime the zonedDateTime to marshall @return the UTC-based date time in ISO format
[ "When", "marshalling", "the", "provided", "zonedDateTime", "is", "normalized", "to", "UTC", "so", "that", "the", "output", "is", "consistent", "between", "dates", "and", "time", "zones", "." ]
f136ea6286a6919cc767d0b4a5e84f333c33f483
https://github.com/jpkrohling/secret-store/blob/f136ea6286a6919cc767d0b4a5e84f333c33f483/secret-store-api/src/main/java/org/keycloak/secretstore/api/internal/ZonedDateTimeXmlAdapter.java#L48-L55
45,178
amsa-code/risky
ais/src/main/java/au/gov/amsa/util/nmea/NmeaUtil.java
NmeaUtil.isValid
public static boolean isValid(String sentence) { // Compare the characters after the asterisk to the calculation try { return sentence.substring(sentence.lastIndexOf("*") + 1) .equalsIgnoreCase(getChecksum(sentence)); } catch (AisParseException e) { r...
java
public static boolean isValid(String sentence) { // Compare the characters after the asterisk to the calculation try { return sentence.substring(sentence.lastIndexOf("*") + 1) .equalsIgnoreCase(getChecksum(sentence)); } catch (AisParseException e) { r...
[ "public", "static", "boolean", "isValid", "(", "String", "sentence", ")", "{", "// Compare the characters after the asterisk to the calculation", "try", "{", "return", "sentence", ".", "substring", "(", "sentence", ".", "lastIndexOf", "(", "\"*\"", ")", "+", "1", ")...
Returns true if and only if the sentence's checksum matches the calculated checksum. @param sentence @return
[ "Returns", "true", "if", "and", "only", "if", "the", "sentence", "s", "checksum", "matches", "the", "calculated", "checksum", "." ]
13649942aeddfdb9210eec072c605bc5d7a6daf3
https://github.com/amsa-code/risky/blob/13649942aeddfdb9210eec072c605bc5d7a6daf3/ais/src/main/java/au/gov/amsa/util/nmea/NmeaUtil.java#L52-L61
45,179
NetsOSS/embedded-jetty
src/main/java/eu/nets/oss/jetty/ServerUtil.java
ServerUtil.getEnvironmentFile
private static Properties getEnvironmentFile(File configFile) { Properties mergedProperties = new Properties(); InputStream inputStream; try { inputStream = new FileInputStream(configFile); } catch (FileNotFoundException e) { // File does not exist. That's all ri...
java
private static Properties getEnvironmentFile(File configFile) { Properties mergedProperties = new Properties(); InputStream inputStream; try { inputStream = new FileInputStream(configFile); } catch (FileNotFoundException e) { // File does not exist. That's all ri...
[ "private", "static", "Properties", "getEnvironmentFile", "(", "File", "configFile", ")", "{", "Properties", "mergedProperties", "=", "new", "Properties", "(", ")", ";", "InputStream", "inputStream", ";", "try", "{", "inputStream", "=", "new", "FileInputStream", "(...
Leser properties fra classpath og vil overlaste i reverse order, slik at classpath reverse order styrer hvilke props som gjelder. @param configFile the file to read properties from @return Properties med properties i overridden form @throws {@link java.io.IOException}, {@link RuntimeException}
[ "Leser", "properties", "fra", "classpath", "og", "vil", "overlaste", "i", "reverse", "order", "slik", "at", "classpath", "reverse", "order", "styrer", "hvilke", "props", "som", "gjelder", "." ]
c2535867ad4887c4a43a8aa7f95b711ff54c8542
https://github.com/NetsOSS/embedded-jetty/blob/c2535867ad4887c4a43a8aa7f95b711ff54c8542/src/main/java/eu/nets/oss/jetty/ServerUtil.java#L60-L77
45,180
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/sql/OCommandExecutorSQLSelect.java
OCommandExecutorSQLSelect.createIndexedProperty
private static OIndexSearchResult createIndexedProperty(final OSQLFilterCondition iCondition, final Object iItem) { if (iItem == null || !(iItem instanceof OSQLFilterItemField)) return null; if (iCondition.getLeft() instanceof OSQLFilterItemField && iCondition.getRight() instanceof OSQLFilterItemFiel...
java
private static OIndexSearchResult createIndexedProperty(final OSQLFilterCondition iCondition, final Object iItem) { if (iItem == null || !(iItem instanceof OSQLFilterItemField)) return null; if (iCondition.getLeft() instanceof OSQLFilterItemField && iCondition.getRight() instanceof OSQLFilterItemFiel...
[ "private", "static", "OIndexSearchResult", "createIndexedProperty", "(", "final", "OSQLFilterCondition", "iCondition", ",", "final", "Object", "iItem", ")", "{", "if", "(", "iItem", "==", "null", "||", "!", "(", "iItem", "instanceof", "OSQLFilterItemField", ")", "...
Add SQL filter field to the search candidate list. @param iCondition Condition item @param iItem Value to search @return true if the property was indexed and found, otherwise false
[ "Add", "SQL", "filter", "field", "to", "the", "search", "candidate", "list", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/sql/OCommandExecutorSQLSelect.java#L519-L543
45,181
soi-toolkit/soi-toolkit-mule
tools/soitoolkit-generator/soitoolkit-generator/src/main/java/org/soitoolkit/tools/generator/cli/util/OptionData.java
OptionData.addResult
void addResult(String valueData, String detailData) { if (value) { if (valueData == null) throw new IllegalArgumentException(CLASS + ": valueData may not be null"); values.add(valueData); if (detail) { if (detailData == null) throw new IllegalArgumentException(CLASS + ": detailData may not...
java
void addResult(String valueData, String detailData) { if (value) { if (valueData == null) throw new IllegalArgumentException(CLASS + ": valueData may not be null"); values.add(valueData); if (detail) { if (detailData == null) throw new IllegalArgumentException(CLASS + ": detailData may not...
[ "void", "addResult", "(", "String", "valueData", ",", "String", "detailData", ")", "{", "if", "(", "value", ")", "{", "if", "(", "valueData", "==", "null", ")", "throw", "new", "IllegalArgumentException", "(", "CLASS", "+", "\": valueData may not be null\"", "...
Store the data for a match found
[ "Store", "the", "data", "for", "a", "match", "found" ]
e891350dbf55e6307be94d193d056bdb785b37d3
https://github.com/soi-toolkit/soi-toolkit-mule/blob/e891350dbf55e6307be94d193d056bdb785b37d3/tools/soitoolkit-generator/soitoolkit-generator/src/main/java/org/soitoolkit/tools/generator/cli/util/OptionData.java#L223-L233
45,182
soi-toolkit/soi-toolkit-mule
commons/components/commons-mule/src/main/java/org/soitoolkit/commons/mule/jaxb/JaxbUtil.java
JaxbUtil.marshal
public String marshal(Object jaxbObject) { // Precondition, check that the jaxbContext is set! if (jaxbContext == null) { logger.error("Trying to marshal with a null jaxbContext, returns null. Check your configuration, e.g. jaxb-transformers!"); return null; } try { StringWri...
java
public String marshal(Object jaxbObject) { // Precondition, check that the jaxbContext is set! if (jaxbContext == null) { logger.error("Trying to marshal with a null jaxbContext, returns null. Check your configuration, e.g. jaxb-transformers!"); return null; } try { StringWri...
[ "public", "String", "marshal", "(", "Object", "jaxbObject", ")", "{", "// Precondition, check that the jaxbContext is set!", "if", "(", "jaxbContext", "==", "null", ")", "{", "logger", ".", "error", "(", "\"Trying to marshal with a null jaxbContext, returns null. Check your c...
Marshal a JAXB object to a XML-string @param jaxbObject @return the XML string
[ "Marshal", "a", "JAXB", "object", "to", "a", "XML", "-", "string" ]
e891350dbf55e6307be94d193d056bdb785b37d3
https://github.com/soi-toolkit/soi-toolkit-mule/blob/e891350dbf55e6307be94d193d056bdb785b37d3/commons/components/commons-mule/src/main/java/org/soitoolkit/commons/mule/jaxb/JaxbUtil.java#L113-L140
45,183
amsa-code/risky
ais/src/main/java/au/gov/amsa/ais/NmeaMessageExactEarthTimestamp.java
NmeaMessageExactEarthTimestamp.isPghp
@VisibleForTesting static boolean isPghp(String line) { if (line == null) return false; else // return Pattern.matches("^(\\\\.*\\\\)?\\$PGHP.*$", line); return pghpPattern.matcher(line).matches(); }
java
@VisibleForTesting static boolean isPghp(String line) { if (line == null) return false; else // return Pattern.matches("^(\\\\.*\\\\)?\\$PGHP.*$", line); return pghpPattern.matcher(line).matches(); }
[ "@", "VisibleForTesting", "static", "boolean", "isPghp", "(", "String", "line", ")", "{", "if", "(", "line", "==", "null", ")", "return", "false", ";", "else", "// return Pattern.matches(\"^(\\\\\\\\.*\\\\\\\\)?\\\\$PGHP.*$\", line);", "return", "pghpPattern", ".", "m...
Returns true if and only if the given NMEA line is a PGHP line. Remember that the line can start with a tag block. @param line @return
[ "Returns", "true", "if", "and", "only", "if", "the", "given", "NMEA", "line", "is", "a", "PGHP", "line", ".", "Remember", "that", "the", "line", "can", "start", "with", "a", "tag", "block", "." ]
13649942aeddfdb9210eec072c605bc5d7a6daf3
https://github.com/amsa-code/risky/blob/13649942aeddfdb9210eec072c605bc5d7a6daf3/ais/src/main/java/au/gov/amsa/ais/NmeaMessageExactEarthTimestamp.java#L62-L69
45,184
amsa-code/risky
ais/src/main/java/au/gov/amsa/ais/NmeaMessageExactEarthTimestamp.java
NmeaMessageExactEarthTimestamp.isExactEarthTimestamp
public static boolean isExactEarthTimestamp(String line) { try { new NmeaMessageExactEarthTimestamp(line); return true; } catch (AisParseException e) { return false; } catch (NmeaMessageParseException e) { return false; } }
java
public static boolean isExactEarthTimestamp(String line) { try { new NmeaMessageExactEarthTimestamp(line); return true; } catch (AisParseException e) { return false; } catch (NmeaMessageParseException e) { return false; } }
[ "public", "static", "boolean", "isExactEarthTimestamp", "(", "String", "line", ")", "{", "try", "{", "new", "NmeaMessageExactEarthTimestamp", "(", "line", ")", ";", "return", "true", ";", "}", "catch", "(", "AisParseException", "e", ")", "{", "return", "false"...
Returns true if the given line is a custom ExactEarth timestamp. @param line @return
[ "Returns", "true", "if", "the", "given", "line", "is", "a", "custom", "ExactEarth", "timestamp", "." ]
13649942aeddfdb9210eec072c605bc5d7a6daf3
https://github.com/amsa-code/risky/blob/13649942aeddfdb9210eec072c605bc5d7a6daf3/ais/src/main/java/au/gov/amsa/ais/NmeaMessageExactEarthTimestamp.java#L77-L86
45,185
amsa-code/risky
ais/src/main/java/au/gov/amsa/ais/NmeaMessageExactEarthTimestamp.java
NmeaMessageExactEarthTimestamp.getTime
private static long getTime(int year, int month, int day, int hour, int minute, int second, int millisecond) { Calendar cal = Calendar.getInstance(Util.TIME_ZONE_UTC); cal.set(year, month - 1, day, hour, minute, second); cal.set(Calendar.MILLISECOND, millisecond); return cal.getTimeInMillis(); }
java
private static long getTime(int year, int month, int day, int hour, int minute, int second, int millisecond) { Calendar cal = Calendar.getInstance(Util.TIME_ZONE_UTC); cal.set(year, month - 1, day, hour, minute, second); cal.set(Calendar.MILLISECOND, millisecond); return cal.getTimeInMillis(); }
[ "private", "static", "long", "getTime", "(", "int", "year", ",", "int", "month", ",", "int", "day", ",", "int", "hour", ",", "int", "minute", ",", "int", "second", ",", "int", "millisecond", ")", "{", "Calendar", "cal", "=", "Calendar", ".", "getInstan...
Returns the epoch time in ms. @return
[ "Returns", "the", "epoch", "time", "in", "ms", "." ]
13649942aeddfdb9210eec072c605bc5d7a6daf3
https://github.com/amsa-code/risky/blob/13649942aeddfdb9210eec072c605bc5d7a6daf3/ais/src/main/java/au/gov/amsa/ais/NmeaMessageExactEarthTimestamp.java#L103-L109
45,186
soi-toolkit/soi-toolkit-mule
tools/soitoolkit-generator/soitoolkit-generator/src/main/java/org/soitoolkit/tools/generator/GeneratorUtil.java
GeneratorUtil.getFolderAndCreateIfMissing
private String getFolderAndCreateIfMissing(String inFolder) { String folder = outputFolder; if (inFolder != null) { folder += "/" + inFolder; } mkdirs(folder); return folder; }
java
private String getFolderAndCreateIfMissing(String inFolder) { String folder = outputFolder; if (inFolder != null) { folder += "/" + inFolder; } mkdirs(folder); return folder; }
[ "private", "String", "getFolderAndCreateIfMissing", "(", "String", "inFolder", ")", "{", "String", "folder", "=", "outputFolder", ";", "if", "(", "inFolder", "!=", "null", ")", "{", "folder", "+=", "\"/\"", "+", "inFolder", ";", "}", "mkdirs", "(", "folder",...
Computes foldername and creates the folders that does not already exist @param inFolder, left out if null @return
[ "Computes", "foldername", "and", "creates", "the", "folders", "that", "does", "not", "already", "exist" ]
e891350dbf55e6307be94d193d056bdb785b37d3
https://github.com/soi-toolkit/soi-toolkit-mule/blob/e891350dbf55e6307be94d193d056bdb785b37d3/tools/soitoolkit-generator/soitoolkit-generator/src/main/java/org/soitoolkit/tools/generator/GeneratorUtil.java#L331-L338
45,187
Putnami/putnami-web-toolkit
core/src/main/java/fr/putnami/pwt/core/event/client/EventBus.java
EventBus.get
public static EventBus get() { if (EventBus.instance == null) { EventBus.instance = new EventBus(); } return EventBus.instance; }
java
public static EventBus get() { if (EventBus.instance == null) { EventBus.instance = new EventBus(); } return EventBus.instance; }
[ "public", "static", "EventBus", "get", "(", ")", "{", "if", "(", "EventBus", ".", "instance", "==", "null", ")", "{", "EventBus", ".", "instance", "=", "new", "EventBus", "(", ")", ";", "}", "return", "EventBus", ".", "instance", ";", "}" ]
Get the singleton. @return the event bus
[ "Get", "the", "singleton", "." ]
129aa781d1bda508e579d194693ca3034b4d470b
https://github.com/Putnami/putnami-web-toolkit/blob/129aa781d1bda508e579d194693ca3034b4d470b/core/src/main/java/fr/putnami/pwt/core/event/client/EventBus.java#L40-L45
45,188
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/iterator/ORecordIteratorClusters.java
ORecordIteratorClusters.last
@Override public ORecordIteratorClusters<REC> last() { currentClusterIdx = clusterIds.length - 1; current.clusterPosition = liveUpdated ? database.countClusterElements(clusterIds[currentClusterIdx]) : lastClusterPosition + 1; return this; }
java
@Override public ORecordIteratorClusters<REC> last() { currentClusterIdx = clusterIds.length - 1; current.clusterPosition = liveUpdated ? database.countClusterElements(clusterIds[currentClusterIdx]) : lastClusterPosition + 1; return this; }
[ "@", "Override", "public", "ORecordIteratorClusters", "<", "REC", ">", "last", "(", ")", "{", "currentClusterIdx", "=", "clusterIds", ".", "length", "-", "1", ";", "current", ".", "clusterPosition", "=", "liveUpdated", "?", "database", ".", "countClusterElements...
Move the iterator to the end of the range. If no range was specified move to the last record of the cluster. @return The object itself
[ "Move", "the", "iterator", "to", "the", "end", "of", "the", "range", ".", "If", "no", "range", "was", "specified", "move", "to", "the", "last", "record", "of", "the", "cluster", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/iterator/ORecordIteratorClusters.java#L274-L279
45,189
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/serialization/serializer/record/string/ORecordSerializerCSVAbstract.java
ORecordSerializerCSVAbstract.linkToStream
private static OIdentifiable linkToStream(final StringBuilder buffer, final ORecordSchemaAware<?> iParentRecord, Object iLinked) { if (iLinked == null) // NULL REFERENCE return null; OIdentifiable resultRid = null; ORID rid; final ODatabaseRecord database = ODatabaseRecordThreadLoc...
java
private static OIdentifiable linkToStream(final StringBuilder buffer, final ORecordSchemaAware<?> iParentRecord, Object iLinked) { if (iLinked == null) // NULL REFERENCE return null; OIdentifiable resultRid = null; ORID rid; final ODatabaseRecord database = ODatabaseRecordThreadLoc...
[ "private", "static", "OIdentifiable", "linkToStream", "(", "final", "StringBuilder", "buffer", ",", "final", "ORecordSchemaAware", "<", "?", ">", "iParentRecord", ",", "Object", "iLinked", ")", "{", "if", "(", "iLinked", "==", "null", ")", "// NULL REFERENCE\r", ...
Serialize the link. @param buffer @param iParentRecord @param iFieldName TODO @param iLinked Can be an instance of ORID or a Record<?> @return
[ "Serialize", "the", "link", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/serialization/serializer/record/string/ORecordSerializerCSVAbstract.java#L692-L765
45,190
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/index/OIndexManagerShared.java
OIndexManagerShared.toStream
@Override public ODocument toStream() { acquireExclusiveLock(); try { document.setInternalStatus(ORecordElement.STATUS.UNMARSHALLING); try { final ORecordTrackedSet idxs = new ORecordTrackedSet(document); for (final OIndexInternal<?> i : indexes.values()) { id...
java
@Override public ODocument toStream() { acquireExclusiveLock(); try { document.setInternalStatus(ORecordElement.STATUS.UNMARSHALLING); try { final ORecordTrackedSet idxs = new ORecordTrackedSet(document); for (final OIndexInternal<?> i : indexes.values()) { id...
[ "@", "Override", "public", "ODocument", "toStream", "(", ")", "{", "acquireExclusiveLock", "(", ")", ";", "try", "{", "document", ".", "setInternalStatus", "(", "ORecordElement", ".", "STATUS", ".", "UNMARSHALLING", ")", ";", "try", "{", "final", "ORecordTrack...
Binds POJO to ODocument.
[ "Binds", "POJO", "to", "ODocument", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/index/OIndexManagerShared.java#L166-L189
45,191
loldevs/riotapi
rtmp/src/main/java/net/boreeas/riotapi/rtmp/RtmpClient.java
RtmpClient.releaseCallbacks
private void releaseCallbacks(Exception ex) { synchronized (callbacks) { for (Map.Entry<Integer, InvokeCallback> cb: callbacks.entrySet()) { cb.getValue().release(ex); } } }
java
private void releaseCallbacks(Exception ex) { synchronized (callbacks) { for (Map.Entry<Integer, InvokeCallback> cb: callbacks.entrySet()) { cb.getValue().release(ex); } } }
[ "private", "void", "releaseCallbacks", "(", "Exception", "ex", ")", "{", "synchronized", "(", "callbacks", ")", "{", "for", "(", "Map", ".", "Entry", "<", "Integer", ",", "InvokeCallback", ">", "cb", ":", "callbacks", ".", "entrySet", "(", ")", ")", "{",...
Release waiting threads if we fail for some reason
[ "Release", "waiting", "threads", "if", "we", "fail", "for", "some", "reason" ]
0b8aac407aa5289845f249024f9732332855544f
https://github.com/loldevs/riotapi/blob/0b8aac407aa5289845f249024f9732332855544f/rtmp/src/main/java/net/boreeas/riotapi/rtmp/RtmpClient.java#L205-L211
45,192
amsa-code/risky
ais/src/main/java/au/gov/amsa/ais/NmeaStreamProcessor.java
NmeaStreamProcessor.line
synchronized void line(String line, long arrivalTime) { if (count.incrementAndGet() % logCountFrequency == 0) log.info("count=" + count.get() + ",buffer size=" + lines.size()); NmeaMessage nmea; try { nmea = NmeaUtil.parseNmea(line); } catch (NmeaMessageParseException e) { listener.invalidNmea(line, ...
java
synchronized void line(String line, long arrivalTime) { if (count.incrementAndGet() % logCountFrequency == 0) log.info("count=" + count.get() + ",buffer size=" + lines.size()); NmeaMessage nmea; try { nmea = NmeaUtil.parseNmea(line); } catch (NmeaMessageParseException e) { listener.invalidNmea(line, ...
[ "synchronized", "void", "line", "(", "String", "line", ",", "long", "arrivalTime", ")", "{", "if", "(", "count", ".", "incrementAndGet", "(", ")", "%", "logCountFrequency", "==", "0", ")", "log", ".", "info", "(", "\"count=\"", "+", "count", ".", "get", ...
Handles the arrival of a new NMEA line at the given arrival time. @param line @param arrivalTime
[ "Handles", "the", "arrival", "of", "a", "new", "NMEA", "line", "at", "the", "given", "arrival", "time", "." ]
13649942aeddfdb9210eec072c605bc5d7a6daf3
https://github.com/amsa-code/risky/blob/13649942aeddfdb9210eec072c605bc5d7a6daf3/ais/src/main/java/au/gov/amsa/ais/NmeaStreamProcessor.java#L91-L150
45,193
amsa-code/risky
ais/src/main/java/au/gov/amsa/ais/NmeaStreamProcessor.java
NmeaStreamProcessor.findExpiredIndexesBeforeIndex
private Set<Integer> findExpiredIndexesBeforeIndex(int index) { long indexTime = getLineTime(index); Set<Integer> removeThese = Sets.newHashSet(); for (int i = index - 1; i >= 0; i--) { if (indexTime - getLineTime(i) > MAXIMUM_ARRIVAL_TIME_DIFFERENCE_MS) { listener.timestampNotFound(getLine(i), getLineTime...
java
private Set<Integer> findExpiredIndexesBeforeIndex(int index) { long indexTime = getLineTime(index); Set<Integer> removeThese = Sets.newHashSet(); for (int i = index - 1; i >= 0; i--) { if (indexTime - getLineTime(i) > MAXIMUM_ARRIVAL_TIME_DIFFERENCE_MS) { listener.timestampNotFound(getLine(i), getLineTime...
[ "private", "Set", "<", "Integer", ">", "findExpiredIndexesBeforeIndex", "(", "int", "index", ")", "{", "long", "indexTime", "=", "getLineTime", "(", "index", ")", ";", "Set", "<", "Integer", ">", "removeThese", "=", "Sets", ".", "newHashSet", "(", ")", ";"...
Returns the list of those indexes that can be removed from the buffer because they have a timestamp more than MAXIMUM_ARRIVAL_TIME_DIFFERENCE_MS from the arrival time of the given index. @param index @return
[ "Returns", "the", "list", "of", "those", "indexes", "that", "can", "be", "removed", "from", "the", "buffer", "because", "they", "have", "a", "timestamp", "more", "than", "MAXIMUM_ARRIVAL_TIME_DIFFERENCE_MS", "from", "the", "arrival", "time", "of", "the", "given"...
13649942aeddfdb9210eec072c605bc5d7a6daf3
https://github.com/amsa-code/risky/blob/13649942aeddfdb9210eec072c605bc5d7a6daf3/ais/src/main/java/au/gov/amsa/ais/NmeaStreamProcessor.java#L170-L180
45,194
amsa-code/risky
ais/src/main/java/au/gov/amsa/ais/NmeaStreamProcessor.java
NmeaStreamProcessor.matchWithClosestAisMessageIfBufferLargeEnough
private Set<Integer> matchWithClosestAisMessageIfBufferLargeEnough( long arrivalTime, Integer earliestTimestampLineIndex) { String timestampLine = getLine(earliestTimestampLineIndex); long time = getLineTime(earliestTimestampLineIndex); log.debug("ts=" + timestampLine + ",time=" + time); Set<Integer> removeT...
java
private Set<Integer> matchWithClosestAisMessageIfBufferLargeEnough( long arrivalTime, Integer earliestTimestampLineIndex) { String timestampLine = getLine(earliestTimestampLineIndex); long time = getLineTime(earliestTimestampLineIndex); log.debug("ts=" + timestampLine + ",time=" + time); Set<Integer> removeT...
[ "private", "Set", "<", "Integer", ">", "matchWithClosestAisMessageIfBufferLargeEnough", "(", "long", "arrivalTime", ",", "Integer", "earliestTimestampLineIndex", ")", "{", "String", "timestampLine", "=", "getLine", "(", "earliestTimestampLineIndex", ")", ";", "long", "t...
Finds matches and reports them to the listeners if buffer has a sufficent span of time in it. Returns the indexes that should be removed from the buffer. @param arrivalTime @param earliestTimestampLineIndex @return
[ "Finds", "matches", "and", "reports", "them", "to", "the", "listeners", "if", "buffer", "has", "a", "sufficent", "span", "of", "time", "in", "it", ".", "Returns", "the", "indexes", "that", "should", "be", "removed", "from", "the", "buffer", "." ]
13649942aeddfdb9210eec072c605bc5d7a6daf3
https://github.com/amsa-code/risky/blob/13649942aeddfdb9210eec072c605bc5d7a6daf3/ais/src/main/java/au/gov/amsa/ais/NmeaStreamProcessor.java#L191-L203
45,195
amsa-code/risky
ais/src/main/java/au/gov/amsa/ais/NmeaStreamProcessor.java
NmeaStreamProcessor.reportMatchAndFindIndexesToRemove
private Set<Integer> reportMatchAndFindIndexesToRemove( Integer earliestTimestampLineIndex, NmeaMessageExactEarthTimestamp timestamp, Integer lowestTimeDiffIndex) { String msg = getLine(lowestTimeDiffIndex); log.debug("found matching msg=" + msg); listener.message(msg, timestamp.getTime()); int maxInde...
java
private Set<Integer> reportMatchAndFindIndexesToRemove( Integer earliestTimestampLineIndex, NmeaMessageExactEarthTimestamp timestamp, Integer lowestTimeDiffIndex) { String msg = getLine(lowestTimeDiffIndex); log.debug("found matching msg=" + msg); listener.message(msg, timestamp.getTime()); int maxInde...
[ "private", "Set", "<", "Integer", ">", "reportMatchAndFindIndexesToRemove", "(", "Integer", "earliestTimestampLineIndex", ",", "NmeaMessageExactEarthTimestamp", "timestamp", ",", "Integer", "lowestTimeDiffIndex", ")", "{", "String", "msg", "=", "getLine", "(", "lowestTime...
Reports a found match and returns the indexes that can be removed from the buffer. @param earliestTimestampLineIndex @param timestamp @param lowestTimeDiffIndex @return
[ "Reports", "a", "found", "match", "and", "returns", "the", "indexes", "that", "can", "be", "removed", "from", "the", "buffer", "." ]
13649942aeddfdb9210eec072c605bc5d7a6daf3
https://github.com/amsa-code/risky/blob/13649942aeddfdb9210eec072c605bc5d7a6daf3/ais/src/main/java/au/gov/amsa/ais/NmeaStreamProcessor.java#L283-L298
45,196
soi-toolkit/soi-toolkit-mule
commons/components/commons-mule/src/main/java/org/soitoolkit/commons/mule/mail/MailUtil.java
MailUtil.createMimeMessage
public static MimeMessage createMimeMessage(Session session, String from, String[] to, String subject, String content, DataSource[] attachments) { logger.debug("Creates a mime message with {} attachments", (attachments == null) ? 0 : attachments.length); try { MimeMessage message = new MimeMessage(session); ...
java
public static MimeMessage createMimeMessage(Session session, String from, String[] to, String subject, String content, DataSource[] attachments) { logger.debug("Creates a mime message with {} attachments", (attachments == null) ? 0 : attachments.length); try { MimeMessage message = new MimeMessage(session); ...
[ "public", "static", "MimeMessage", "createMimeMessage", "(", "Session", "session", ",", "String", "from", ",", "String", "[", "]", "to", ",", "String", "subject", ",", "String", "content", ",", "DataSource", "[", "]", "attachments", ")", "{", "logger", ".", ...
Creates a mime-message, multipart if attachements are supplied otherwise as plain text. Assumes UTF-8 encoding for both subject and content. @param session, must be specified @param from, can be null @param to, can be null or empty @param subject, can be null @param content, must be specified @param attachments, can b...
[ "Creates", "a", "mime", "-", "message", "multipart", "if", "attachements", "are", "supplied", "otherwise", "as", "plain", "text", ".", "Assumes", "UTF", "-", "8", "encoding", "for", "both", "subject", "and", "content", "." ]
e891350dbf55e6307be94d193d056bdb785b37d3
https://github.com/soi-toolkit/soi-toolkit-mule/blob/e891350dbf55e6307be94d193d056bdb785b37d3/commons/components/commons-mule/src/main/java/org/soitoolkit/commons/mule/mail/MailUtil.java#L289-L341
45,197
soi-toolkit/soi-toolkit-mule
commons/components/commons-mule/src/main/java/org/soitoolkit/commons/mule/soap/SoapUtil.java
SoapUtil.disableTlsServerCertificateCheck
public static void disableTlsServerCertificateCheck(Client client) { if (!(client.getConduit() instanceof HTTPConduit)) { log.warn("Conduit not of type HTTPConduit (" + client.getConduit().getClass().getName() + ") , skip disabling server certification validation."); return; } log.warn("Disables server ...
java
public static void disableTlsServerCertificateCheck(Client client) { if (!(client.getConduit() instanceof HTTPConduit)) { log.warn("Conduit not of type HTTPConduit (" + client.getConduit().getClass().getName() + ") , skip disabling server certification validation."); return; } log.warn("Disables server ...
[ "public", "static", "void", "disableTlsServerCertificateCheck", "(", "Client", "client", ")", "{", "if", "(", "!", "(", "client", ".", "getConduit", "(", ")", "instanceof", "HTTPConduit", ")", ")", "{", "log", ".", "warn", "(", "\"Conduit not of type HTTPConduit...
Disables validation of https server certificates, only to be used during development and tests!!! @param client
[ "Disables", "validation", "of", "https", "server", "certificates", "only", "to", "be", "used", "during", "development", "and", "tests!!!" ]
e891350dbf55e6307be94d193d056bdb785b37d3
https://github.com/soi-toolkit/soi-toolkit-mule/blob/e891350dbf55e6307be94d193d056bdb785b37d3/commons/components/commons-mule/src/main/java/org/soitoolkit/commons/mule/soap/SoapUtil.java#L48-L63
45,198
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/metadata/security/OUser.java
OUser.isRuleDefined
public boolean isRuleDefined(final String iResource) { for (ORole r : roles) if (r.hasRule(iResource)) return true; return false; }
java
public boolean isRuleDefined(final String iResource) { for (ORole r : roles) if (r.hasRule(iResource)) return true; return false; }
[ "public", "boolean", "isRuleDefined", "(", "final", "String", "iResource", ")", "{", "for", "(", "ORole", "r", ":", "roles", ")", "if", "(", "r", ".", "hasRule", "(", "iResource", ")", ")", "return", "true", ";", "return", "false", ";", "}" ]
Checks if a rule was defined for the user. @param iResource Requested resource @return True is a rule is defined, otherwise false
[ "Checks", "if", "a", "rule", "was", "defined", "for", "the", "user", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/metadata/security/OUser.java#L137-L143
45,199
wuman/orientdb-android
core/src/main/java/com/orientechnologies/orient/core/sql/OCommandExecutorSQLAlterProperty.java
OCommandExecutorSQLAlterProperty.execute
public Object execute(final Map<Object, Object> iArgs) { if (attribute == null) throw new OCommandExecutionException("Cannot execute the command because it has not yet been parsed"); final OClassImpl sourceClass = (OClassImpl) getDatabase().getMetadata().getSchema().getClass(className); if (sour...
java
public Object execute(final Map<Object, Object> iArgs) { if (attribute == null) throw new OCommandExecutionException("Cannot execute the command because it has not yet been parsed"); final OClassImpl sourceClass = (OClassImpl) getDatabase().getMetadata().getSchema().getClass(className); if (sour...
[ "public", "Object", "execute", "(", "final", "Map", "<", "Object", ",", "Object", ">", "iArgs", ")", "{", "if", "(", "attribute", "==", "null", ")", "throw", "new", "OCommandExecutionException", "(", "\"Cannot execute the command because it has not yet been parsed\"",...
Execute the ALTER PROPERTY.
[ "Execute", "the", "ALTER", "PROPERTY", "." ]
ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0
https://github.com/wuman/orientdb-android/blob/ff9b17e4349f26168b2d0c4facb1a18cbfbe8cf0/core/src/main/java/com/orientechnologies/orient/core/sql/OCommandExecutorSQLAlterProperty.java#L109-L123