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
56,500
ModeShape/modeshape
modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java
JcrTools.removeAllChildren
public int removeAllChildren( Node node ) throws RepositoryException { isNotNull(node, "node"); int childrenRemoved = 0; NodeIterator iter = node.getNodes(); while (iter.hasNext()) { Node child = iter.nextNode(); child.remove(); ++childrenRemoved; ...
java
public int removeAllChildren( Node node ) throws RepositoryException { isNotNull(node, "node"); int childrenRemoved = 0; NodeIterator iter = node.getNodes(); while (iter.hasNext()) { Node child = iter.nextNode(); child.remove(); ++childrenRemoved; ...
[ "public", "int", "removeAllChildren", "(", "Node", "node", ")", "throws", "RepositoryException", "{", "isNotNull", "(", "node", ",", "\"node\"", ")", ";", "int", "childrenRemoved", "=", "0", ";", "NodeIterator", "iter", "=", "node", ".", "getNodes", "(", ")"...
Remove all children from the specified node @param node @return the number of children removed. @throws RepositoryException @throws IllegalArgumentException if the node argument is null
[ "Remove", "all", "children", "from", "the", "specified", "node" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java#L77-L87
56,501
ModeShape/modeshape
modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java
JcrTools.getNode
public Node getNode( Node node, String relativePath, boolean required ) throws RepositoryException { isNotNull(node, "node"); isNotNull(relativePath, "relativePath"); Node result = null; try { result = node.getNode(relativePat...
java
public Node getNode( Node node, String relativePath, boolean required ) throws RepositoryException { isNotNull(node, "node"); isNotNull(relativePath, "relativePath"); Node result = null; try { result = node.getNode(relativePat...
[ "public", "Node", "getNode", "(", "Node", "node", ",", "String", "relativePath", ",", "boolean", "required", ")", "throws", "RepositoryException", "{", "isNotNull", "(", "node", ",", "\"node\"", ")", ";", "isNotNull", "(", "relativePath", ",", "\"relativePath\""...
Get the node under a specified node at a location defined by the specified relative path. If node is required, then a problem is created and added to the Problems list. @param node a parent node from which to obtain a node relative to. may not be null @param relativePath the path of the desired node. may not be null @...
[ "Get", "the", "node", "under", "a", "specified", "node", "at", "a", "location", "defined", "by", "the", "specified", "relative", "path", ".", "If", "node", "is", "required", "then", "a", "problem", "is", "created", "and", "added", "to", "the", "Problems", ...
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java#L111-L126
56,502
ModeShape/modeshape
modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java
JcrTools.getReadable
public String getReadable( Node node ) { if (node == null) return ""; try { return node.getPath(); } catch (RepositoryException err) { return node.toString(); } }
java
public String getReadable( Node node ) { if (node == null) return ""; try { return node.getPath(); } catch (RepositoryException err) { return node.toString(); } }
[ "public", "String", "getReadable", "(", "Node", "node", ")", "{", "if", "(", "node", "==", "null", ")", "return", "\"\"", ";", "try", "{", "return", "node", ".", "getPath", "(", ")", ";", "}", "catch", "(", "RepositoryException", "err", ")", "{", "re...
Get the readable string form for a specified node. @param node the node to obtain the readable string form. may be null @return the readable string form for a specified node.
[ "Get", "the", "readable", "string", "form", "for", "a", "specified", "node", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java#L134-L141
56,503
ModeShape/modeshape
modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java
JcrTools.findOrCreateNode
public Node findOrCreateNode( Session session, String path, String nodeType ) throws RepositoryException { return findOrCreateNode(session, path, nodeType, nodeType); }
java
public Node findOrCreateNode( Session session, String path, String nodeType ) throws RepositoryException { return findOrCreateNode(session, path, nodeType, nodeType); }
[ "public", "Node", "findOrCreateNode", "(", "Session", "session", ",", "String", "path", ",", "String", "nodeType", ")", "throws", "RepositoryException", "{", "return", "findOrCreateNode", "(", "session", ",", "path", ",", "nodeType", ",", "nodeType", ")", ";", ...
Get or create a node at the specified path and node type. @param session the JCR session. may not be null @param path the path of the desired node to be found or created. may not be null @param nodeType the node type. may be null @return the existing or newly created node @throws RepositoryException @throws IllegalArg...
[ "Get", "or", "create", "a", "node", "at", "the", "specified", "path", "and", "node", "type", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java#L354-L358
56,504
ModeShape/modeshape
modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java
JcrTools.findOrCreateChild
public Node findOrCreateChild( Node parent, String name ) throws RepositoryException { return findOrCreateChild(parent, name, null); }
java
public Node findOrCreateChild( Node parent, String name ) throws RepositoryException { return findOrCreateChild(parent, name, null); }
[ "public", "Node", "findOrCreateChild", "(", "Node", "parent", ",", "String", "name", ")", "throws", "RepositoryException", "{", "return", "findOrCreateChild", "(", "parent", ",", "name", ",", "null", ")", ";", "}" ]
Get or create a node with the specified node under the specified parent node. @param parent the parent node. may not be null @param name the name of the child node. may not be null @return the existing or newly created child node @throws RepositoryException @throws IllegalArgumentException if either the parent or name...
[ "Get", "or", "create", "a", "node", "with", "the", "specified", "node", "under", "the", "specified", "parent", "node", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java#L460-L463
56,505
ModeShape/modeshape
modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java
JcrTools.findOrCreateChild
public Node findOrCreateChild( Node parent, String name, String nodeType ) throws RepositoryException { return findOrCreateNode(parent, name, nodeType, nodeType); }
java
public Node findOrCreateChild( Node parent, String name, String nodeType ) throws RepositoryException { return findOrCreateNode(parent, name, nodeType, nodeType); }
[ "public", "Node", "findOrCreateChild", "(", "Node", "parent", ",", "String", "name", ",", "String", "nodeType", ")", "throws", "RepositoryException", "{", "return", "findOrCreateNode", "(", "parent", ",", "name", ",", "nodeType", ",", "nodeType", ")", ";", "}"...
Get or create a node with the specified node and node type under the specified parent node. @param parent the parent node. may not be null @param name the name of the child node. may not be null @param nodeType the node type. may be null @return the existing or newly created child node @throws RepositoryException
[ "Get", "or", "create", "a", "node", "with", "the", "specified", "node", "and", "node", "type", "under", "the", "specified", "parent", "node", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java#L474-L478
56,506
ModeShape/modeshape
modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java
JcrTools.onEachNode
public void onEachNode( Session session, boolean includeSystemNodes, NodeOperation operation ) throws Exception { Node node = session.getRootNode(); operation.run(node); NodeIterator iter = node.getNodes(); while (iter.hasNext()) { ...
java
public void onEachNode( Session session, boolean includeSystemNodes, NodeOperation operation ) throws Exception { Node node = session.getRootNode(); operation.run(node); NodeIterator iter = node.getNodes(); while (iter.hasNext()) { ...
[ "public", "void", "onEachNode", "(", "Session", "session", ",", "boolean", "includeSystemNodes", ",", "NodeOperation", "operation", ")", "throws", "Exception", "{", "Node", "node", "=", "session", ".", "getRootNode", "(", ")", ";", "operation", ".", "run", "("...
Execute the supplied operation on each node in the workspace accessible by the supplied session. @param session the session @param includeSystemNodes true if all nodes under "/jcr:system" should be included, or false if the system nodes should be excluded @param operation the operation @throws Exception the exception ...
[ "Execute", "the", "supplied", "operation", "on", "each", "node", "in", "the", "workspace", "accessible", "by", "the", "supplied", "session", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr-api/src/main/java/org/modeshape/jcr/api/JcrTools.java#L865-L877
56,507
ModeShape/modeshape
sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/node/AstNodeFactory.java
AstNodeFactory.getChildrenForType
public List<AstNode> getChildrenForType( AstNode astNode, String nodeType ) { CheckArg.isNotNull(astNode, "astNode"); CheckArg.isNotNull(nodeType, "nodeType"); List<AstNode> childrenOfType = new ArrayList<AstNode>(); for (AstNode child : astN...
java
public List<AstNode> getChildrenForType( AstNode astNode, String nodeType ) { CheckArg.isNotNull(astNode, "astNode"); CheckArg.isNotNull(nodeType, "nodeType"); List<AstNode> childrenOfType = new ArrayList<AstNode>(); for (AstNode child : astN...
[ "public", "List", "<", "AstNode", ">", "getChildrenForType", "(", "AstNode", "astNode", ",", "String", "nodeType", ")", "{", "CheckArg", ".", "isNotNull", "(", "astNode", ",", "\"astNode\"", ")", ";", "CheckArg", ".", "isNotNull", "(", "nodeType", ",", "\"no...
Utility method to obtain the children of a given node that match the given type @param astNode the parent node; may not be null @param nodeType the type property of the target child node; may not be null @return the list of typed nodes (may be empty)
[ "Utility", "method", "to", "obtain", "the", "children", "of", "a", "given", "node", "that", "match", "the", "given", "type" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/node/AstNodeFactory.java#L105-L120
56,508
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/SequencingRunner.java
SequencingRunner.findOutputNodes
private List<AbstractJcrNode> findOutputNodes( AbstractJcrNode rootOutputNode ) throws RepositoryException { if (rootOutputNode.isNew()) { return Arrays.asList(rootOutputNode); } // if the node was not new, we need to find the new sequenced nodes List<AbstractJcrNode> nodes ...
java
private List<AbstractJcrNode> findOutputNodes( AbstractJcrNode rootOutputNode ) throws RepositoryException { if (rootOutputNode.isNew()) { return Arrays.asList(rootOutputNode); } // if the node was not new, we need to find the new sequenced nodes List<AbstractJcrNode> nodes ...
[ "private", "List", "<", "AbstractJcrNode", ">", "findOutputNodes", "(", "AbstractJcrNode", "rootOutputNode", ")", "throws", "RepositoryException", "{", "if", "(", "rootOutputNode", ".", "isNew", "(", ")", ")", "{", "return", "Arrays", ".", "asList", "(", "rootOu...
Finds the top nodes which have been created during the sequencing process, based on the original output node. It is important that this is called before the session is saved, because it uses the new flag. @param rootOutputNode the node under which the output of the sequencing process was written to. @return the first ...
[ "Finds", "the", "top", "nodes", "which", "have", "been", "created", "during", "the", "sequencing", "process", "based", "on", "the", "original", "output", "node", ".", "It", "is", "important", "that", "this", "is", "called", "before", "the", "session", "is", ...
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/SequencingRunner.java#L365-L380
56,509
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/SequencingRunner.java
SequencingRunner.removeExistingOutputNodes
private void removeExistingOutputNodes( AbstractJcrNode parentOfOutput, String outputNodeName, String selectedPath, String logMsg ) throws RepositoryException { // Determine if the...
java
private void removeExistingOutputNodes( AbstractJcrNode parentOfOutput, String outputNodeName, String selectedPath, String logMsg ) throws RepositoryException { // Determine if the...
[ "private", "void", "removeExistingOutputNodes", "(", "AbstractJcrNode", "parentOfOutput", ",", "String", "outputNodeName", ",", "String", "selectedPath", ",", "String", "logMsg", ")", "throws", "RepositoryException", "{", "// Determine if there is an existing output node ...", ...
Remove any existing nodes that were generated by previous sequencing operations of the node at the selected path. @param parentOfOutput the parent of the output; may not be null @param outputNodeName the name of the output node; may not be null or empty @param selectedPath the path of the node that was selected for se...
[ "Remove", "any", "existing", "nodes", "that", "were", "generated", "by", "previous", "sequencing", "operations", "of", "the", "node", "at", "the", "selected", "path", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/SequencingRunner.java#L412-L437
56,510
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/CassandraBinaryStore.java
CassandraBinaryStore.contentExists
private boolean contentExists( BinaryKey key, boolean alive ) throws BinaryStoreException { try { String query = "SELECT payload from modeshape.binary where cid='" + key.toString() + "'"; query = alive ? query + " and usage=1;" : query + " and usage = 0...
java
private boolean contentExists( BinaryKey key, boolean alive ) throws BinaryStoreException { try { String query = "SELECT payload from modeshape.binary where cid='" + key.toString() + "'"; query = alive ? query + " and usage=1;" : query + " and usage = 0...
[ "private", "boolean", "contentExists", "(", "BinaryKey", "key", ",", "boolean", "alive", ")", "throws", "BinaryStoreException", "{", "try", "{", "String", "query", "=", "\"SELECT payload from modeshape.binary where cid='\"", "+", "key", ".", "toString", "(", ")", "+...
Test content for existence. @param key content identifier @param alive true inside used content and false for checking within content marked as unused. @return true if content found @throws BinaryStoreException
[ "Test", "content", "for", "existence", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/CassandraBinaryStore.java#L298-L308
56,511
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/CassandraBinaryStore.java
CassandraBinaryStore.buffer
private ByteBuffer buffer( InputStream stream ) throws IOException { stream.reset(); ByteArrayOutputStream bout = new ByteArrayOutputStream(); IoUtil.write(stream, bout); return ByteBuffer.wrap(bout.toByteArray()); }
java
private ByteBuffer buffer( InputStream stream ) throws IOException { stream.reset(); ByteArrayOutputStream bout = new ByteArrayOutputStream(); IoUtil.write(stream, bout); return ByteBuffer.wrap(bout.toByteArray()); }
[ "private", "ByteBuffer", "buffer", "(", "InputStream", "stream", ")", "throws", "IOException", "{", "stream", ".", "reset", "(", ")", ";", "ByteArrayOutputStream", "bout", "=", "new", "ByteArrayOutputStream", "(", ")", ";", "IoUtil", ".", "write", "(", "stream...
Converts input stream into ByteBuffer. @param stream @return the byte buffer @throws IOException
[ "Converts", "input", "stream", "into", "ByteBuffer", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/CassandraBinaryStore.java#L317-L322
56,512
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/model/Visitors.java
Visitors.getSelectorAliasesByName
public static Map<SelectorName, SelectorName> getSelectorAliasesByName( Visitable visitable ) { // Find all of the selectors that have aliases ... final Map<SelectorName, SelectorName> result = new HashMap<SelectorName, SelectorName>(); Visitors.visitAll(visitable, new Visitors.AbstractVisitor()...
java
public static Map<SelectorName, SelectorName> getSelectorAliasesByName( Visitable visitable ) { // Find all of the selectors that have aliases ... final Map<SelectorName, SelectorName> result = new HashMap<SelectorName, SelectorName>(); Visitors.visitAll(visitable, new Visitors.AbstractVisitor()...
[ "public", "static", "Map", "<", "SelectorName", ",", "SelectorName", ">", "getSelectorAliasesByName", "(", "Visitable", "visitable", ")", "{", "// Find all of the selectors that have aliases ...", "final", "Map", "<", "SelectorName", ",", "SelectorName", ">", "result", ...
Get a map of the selector aliases keyed by their names. @param visitable the object to be visited @return the map from the selector names to their alias (or name if there is no alias); never null but possibly empty
[ "Get", "a", "map", "of", "the", "selector", "aliases", "keyed", "by", "their", "names", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/model/Visitors.java#L222-L241
56,513
ModeShape/modeshape
sequencers/modeshape-sequencer-images/src/main/java/org/modeshape/sequencer/image/ImageMetadata.java
ImageMetadata.getComment
public String getComment( int index ) { if (comments == null || index < 0 || index >= comments.size()) { throw new IllegalArgumentException("Not a valid comment index: " + index); } return comments.elementAt(index); }
java
public String getComment( int index ) { if (comments == null || index < 0 || index >= comments.size()) { throw new IllegalArgumentException("Not a valid comment index: " + index); } return comments.elementAt(index); }
[ "public", "String", "getComment", "(", "int", "index", ")", "{", "if", "(", "comments", "==", "null", "||", "index", "<", "0", "||", "index", ">=", "comments", ".", "size", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Not a val...
Returns the index'th comment retrieved from the file. @param index int index of comment to return @return the comment at the supplied index @throws IllegalArgumentException if index is smaller than 0 or larger than or equal to the number of comments retrieved @see #getNumberOfComments
[ "Returns", "the", "index", "th", "comment", "retrieved", "from", "the", "file", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-images/src/main/java/org/modeshape/sequencer/image/ImageMetadata.java#L717-L722
56,514
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/security/acl/AccessControlEntryImpl.java
AccessControlEntryImpl.hasPrivileges
protected boolean hasPrivileges( Privilege[] privileges ) { for (Privilege p : privileges) { if (!contains(this.privileges, p)) { return false; } } return true; }
java
protected boolean hasPrivileges( Privilege[] privileges ) { for (Privilege p : privileges) { if (!contains(this.privileges, p)) { return false; } } return true; }
[ "protected", "boolean", "hasPrivileges", "(", "Privilege", "[", "]", "privileges", ")", "{", "for", "(", "Privilege", "p", ":", "privileges", ")", "{", "if", "(", "!", "contains", "(", "this", ".", "privileges", ",", "p", ")", ")", "{", "return", "fals...
Tests given privileges. @param privileges privileges for testing. @return true if this entry contains all given privileges
[ "Tests", "given", "privileges", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/security/acl/AccessControlEntryImpl.java#L72-L79
56,515
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/security/acl/AccessControlEntryImpl.java
AccessControlEntryImpl.addIfNotPresent
protected boolean addIfNotPresent( Privilege[] privileges ) { ArrayList<Privilege> list = new ArrayList<Privilege>(); Collections.addAll(list, privileges); boolean res = combineRecursively(list, privileges); this.privileges.addAll(list); return res; }
java
protected boolean addIfNotPresent( Privilege[] privileges ) { ArrayList<Privilege> list = new ArrayList<Privilege>(); Collections.addAll(list, privileges); boolean res = combineRecursively(list, privileges); this.privileges.addAll(list); return res; }
[ "protected", "boolean", "addIfNotPresent", "(", "Privilege", "[", "]", "privileges", ")", "{", "ArrayList", "<", "Privilege", ">", "list", "=", "new", "ArrayList", "<", "Privilege", ">", "(", ")", ";", "Collections", ".", "addAll", "(", "list", ",", "privi...
Adds specified privileges to this entry. @param privileges privileges to add. @return true if at least one of privileges was added.
[ "Adds", "specified", "privileges", "to", "this", "entry", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/security/acl/AccessControlEntryImpl.java#L97-L105
56,516
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/security/acl/AccessControlEntryImpl.java
AccessControlEntryImpl.combineRecursively
protected boolean combineRecursively( List<Privilege> list, Privilege[] privileges ) { boolean res = false; for (Privilege p : privileges) { if (p.isAggregate()) { res = combineRecursively(list, p.getAggregatePrivileges()); ...
java
protected boolean combineRecursively( List<Privilege> list, Privilege[] privileges ) { boolean res = false; for (Privilege p : privileges) { if (p.isAggregate()) { res = combineRecursively(list, p.getAggregatePrivileges()); ...
[ "protected", "boolean", "combineRecursively", "(", "List", "<", "Privilege", ">", "list", ",", "Privilege", "[", "]", "privileges", ")", "{", "boolean", "res", "=", "false", ";", "for", "(", "Privilege", "p", ":", "privileges", ")", "{", "if", "(", "p", ...
Adds specified privileges to the given list. @param list the result list of combined privileges. @param privileges privileges to add. @return true if at least one of privileges was added.
[ "Adds", "specified", "privileges", "to", "the", "given", "list", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/security/acl/AccessControlEntryImpl.java#L114-L127
56,517
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/engine/ScanningQueryEngine.java
ScanningQueryEngine.createNodeSequenceForSource
protected NodeSequence createNodeSequenceForSource( QueryCommand originalQuery, QueryContext context, PlanNode sourceNode, Columns columns, ...
java
protected NodeSequence createNodeSequenceForSource( QueryCommand originalQuery, QueryContext context, PlanNode sourceNode, Columns columns, ...
[ "protected", "NodeSequence", "createNodeSequenceForSource", "(", "QueryCommand", "originalQuery", ",", "QueryContext", "context", ",", "PlanNode", "sourceNode", ",", "Columns", "columns", ",", "QuerySources", "sources", ")", "{", "// The indexes should already be in the corre...
Create a node sequence for the given source. @param originalQuery the original query command; may not be null @param context the context in which the query is to be executed; may not be null @param sourceNode the {@link Type#SOURCE} plan node for one part of a query; may not be null @param columns the result column de...
[ "Create", "a", "node", "sequence", "for", "the", "given", "source", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/engine/ScanningQueryEngine.java#L951-L973
56,518
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/engine/ScanningQueryEngine.java
ScanningQueryEngine.createNodeSequenceForSource
protected NodeSequence createNodeSequenceForSource( QueryCommand originalQuery, QueryContext context, PlanNode sourceNode, IndexPlan index, ...
java
protected NodeSequence createNodeSequenceForSource( QueryCommand originalQuery, QueryContext context, PlanNode sourceNode, IndexPlan index, ...
[ "protected", "NodeSequence", "createNodeSequenceForSource", "(", "QueryCommand", "originalQuery", ",", "QueryContext", "context", ",", "PlanNode", "sourceNode", ",", "IndexPlan", "index", ",", "Columns", "columns", ",", "QuerySources", "sources", ")", "{", "if", "(", ...
Create a node sequence for the given index @param originalQuery the original query command; may not be null @param context the context in which the query is to be executed; may not be null @param sourceNode the {@link Type#SOURCE} plan node for one part of a query; may not be null @param index the {@link IndexPlan} sp...
[ "Create", "a", "node", "sequence", "for", "the", "given", "index" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/engine/ScanningQueryEngine.java#L986-L1023
56,519
ModeShape/modeshape
web/modeshape-web-cmis/src/main/java/org/modeshape/cmis/JcrMsVersion.java
JcrMsVersion.getHash
private String getHash() { try { Node contentNode = getContextNode(); Property data = contentNode.getProperty(Property.JCR_DATA); Binary bin = (Binary) data.getBinary(); return String.format("{%s}%s", HASH_ALGORITHM, bin.getHexHash()); } catch (RepositoryE...
java
private String getHash() { try { Node contentNode = getContextNode(); Property data = contentNode.getProperty(Property.JCR_DATA); Binary bin = (Binary) data.getBinary(); return String.format("{%s}%s", HASH_ALGORITHM, bin.getHexHash()); } catch (RepositoryE...
[ "private", "String", "getHash", "(", ")", "{", "try", "{", "Node", "contentNode", "=", "getContextNode", "(", ")", ";", "Property", "data", "=", "contentNode", ".", "getProperty", "(", "Property", ".", "JCR_DATA", ")", ";", "Binary", "bin", "=", "(", "Bi...
Get the hexadecimal form of the SHA-1 hash of the contents. @return the hexadecimal form of hash, or a null string if the hash could not be computed or is not known
[ "Get", "the", "hexadecimal", "form", "of", "the", "SHA", "-", "1", "hash", "of", "the", "contents", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-cmis/src/main/java/org/modeshape/cmis/JcrMsVersion.java#L110-L119
56,520
ModeShape/modeshape
web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/WorkspacePanel.java
WorkspacePanel.setWorkspaceNames
public void setWorkspaceNames(String[] values) { col2.combo.setValueMap(values); if (values.length > 0) { col2.combo.setValue(values[0]); } }
java
public void setWorkspaceNames(String[] values) { col2.combo.setValueMap(values); if (values.length > 0) { col2.combo.setValue(values[0]); } }
[ "public", "void", "setWorkspaceNames", "(", "String", "[", "]", "values", ")", "{", "col2", ".", "combo", ".", "setValueMap", "(", "values", ")", ";", "if", "(", "values", ".", "length", ">", "0", ")", "{", "col2", ".", "combo", ".", "setValue", "(",...
Assigns workspace names to the combo box into column 2. @param values
[ "Assigns", "workspace", "names", "to", "the", "combo", "box", "into", "column", "2", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/contents/WorkspacePanel.java#L85-L90
56,521
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/JcrVersionHistoryNode.java
JcrVersionHistoryNode.versionLabelsFor
private Set<String> versionLabelsFor( Version version ) throws RepositoryException { if (!version.getParent().equals(this)) { throw new VersionException(JcrI18n.invalidVersion.text(version.getPath(), getPath())); } String versionId = version.getIdentifier(); PropertyIterator...
java
private Set<String> versionLabelsFor( Version version ) throws RepositoryException { if (!version.getParent().equals(this)) { throw new VersionException(JcrI18n.invalidVersion.text(version.getPath(), getPath())); } String versionId = version.getIdentifier(); PropertyIterator...
[ "private", "Set", "<", "String", ">", "versionLabelsFor", "(", "Version", "version", ")", "throws", "RepositoryException", "{", "if", "(", "!", "version", ".", "getParent", "(", ")", ".", "equals", "(", "this", ")", ")", "{", "throw", "new", "VersionExcept...
Returns the version labels that point to the given version @param version the version for which the labels should be retrieved @return the set of version labels for that version; never null @throws RepositoryException if an error occurs accessing the repository
[ "Returns", "the", "version", "labels", "that", "point", "to", "the", "given", "version" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/JcrVersionHistoryNode.java#L136-L153
56,522
ModeShape/modeshape
modeshape-jca/src/main/java/org/modeshape/jca/JcrConnectionRequestInfo.java
JcrConnectionRequestInfo.computeCredsHashCode
private int computeCredsHashCode( Credentials c ) { if (c instanceof SimpleCredentials) { return computeSimpleCredsHashCode((SimpleCredentials)c); } return c.hashCode(); }
java
private int computeCredsHashCode( Credentials c ) { if (c instanceof SimpleCredentials) { return computeSimpleCredsHashCode((SimpleCredentials)c); } return c.hashCode(); }
[ "private", "int", "computeCredsHashCode", "(", "Credentials", "c", ")", "{", "if", "(", "c", "instanceof", "SimpleCredentials", ")", "{", "return", "computeSimpleCredsHashCode", "(", "(", "SimpleCredentials", ")", "c", ")", ";", "}", "return", "c", ".", "hashC...
Returns Credentials instance hash code. Handles instances of SimpleCredentials in a special way. @param c the credentials @return the hash code
[ "Returns", "Credentials", "instance", "hash", "code", ".", "Handles", "instances", "of", "SimpleCredentials", "in", "a", "special", "way", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jca/src/main/java/org/modeshape/jca/JcrConnectionRequestInfo.java#L197-L202
56,523
ModeShape/modeshape
sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/node/AstNode.java
AstNode.getSameNameSiblingIndex
public int getSameNameSiblingIndex() { int snsIndex = 1; if (this.parent == null) { return snsIndex; } // Go through all the children ... for (AstNode sibling : this.parent.getChildren()) { if (sibling == this) { break; } ...
java
public int getSameNameSiblingIndex() { int snsIndex = 1; if (this.parent == null) { return snsIndex; } // Go through all the children ... for (AstNode sibling : this.parent.getChildren()) { if (sibling == this) { break; } ...
[ "public", "int", "getSameNameSiblingIndex", "(", ")", "{", "int", "snsIndex", "=", "1", ";", "if", "(", "this", ".", "parent", "==", "null", ")", "{", "return", "snsIndex", ";", "}", "// Go through all the children ...", "for", "(", "AstNode", "sibling", ":"...
Get the current same-name-sibling index. @return the SNS index, or 1 if this is the first sibling with the same name
[ "Get", "the", "current", "same", "-", "name", "-", "sibling", "index", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/node/AstNode.java#L114-L129
56,524
ModeShape/modeshape
sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/node/AstNode.java
AstNode.getAbsolutePath
public String getAbsolutePath() { StringBuilder pathBuilder = new StringBuilder("/").append(this.getName()); AstNode parent = this.getParent(); while (parent != null) { pathBuilder.insert(0, "/" + parent.getName()); parent = parent.getParent(); } return pa...
java
public String getAbsolutePath() { StringBuilder pathBuilder = new StringBuilder("/").append(this.getName()); AstNode parent = this.getParent(); while (parent != null) { pathBuilder.insert(0, "/" + parent.getName()); parent = parent.getParent(); } return pa...
[ "public", "String", "getAbsolutePath", "(", ")", "{", "StringBuilder", "pathBuilder", "=", "new", "StringBuilder", "(", "\"/\"", ")", ".", "append", "(", "this", ".", "getName", "(", ")", ")", ";", "AstNode", "parent", "=", "this", ".", "getParent", "(", ...
Get the current path of this node @return the path of this node; never null
[ "Get", "the", "current", "path", "of", "this", "node" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/node/AstNode.java#L136-L144
56,525
ModeShape/modeshape
sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/node/AstNode.java
AstNode.setProperty
public AstNode setProperty( String name, Object value ) { CheckArg.isNotNull(name, "name"); CheckArg.isNotNull(value, "value"); properties.put(name, value); return this; }
java
public AstNode setProperty( String name, Object value ) { CheckArg.isNotNull(name, "name"); CheckArg.isNotNull(value, "value"); properties.put(name, value); return this; }
[ "public", "AstNode", "setProperty", "(", "String", "name", ",", "Object", "value", ")", "{", "CheckArg", ".", "isNotNull", "(", "name", ",", "\"name\"", ")", ";", "CheckArg", ".", "isNotNull", "(", "value", ",", "\"value\"", ")", ";", "properties", ".", ...
Set the property with the given name to the supplied value. Any existing property with the same name will be replaced. @param name the name of the property; may not be null @param value the value of the property; may not be null @return this node, for method chaining purposes
[ "Set", "the", "property", "with", "the", "given", "name", "to", "the", "supplied", "value", ".", "Any", "existing", "property", "with", "the", "same", "name", "will", "be", "replaced", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/node/AstNode.java#L163-L169
56,526
ModeShape/modeshape
sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/node/AstNode.java
AstNode.setProperty
public AstNode setProperty( String name, Object... values ) { CheckArg.isNotNull(name, "name"); CheckArg.isNotNull(values, "value"); if (values.length != 0) { properties.put(name, Arrays.asList(values)); } return this; }
java
public AstNode setProperty( String name, Object... values ) { CheckArg.isNotNull(name, "name"); CheckArg.isNotNull(values, "value"); if (values.length != 0) { properties.put(name, Arrays.asList(values)); } return this; }
[ "public", "AstNode", "setProperty", "(", "String", "name", ",", "Object", "...", "values", ")", "{", "CheckArg", ".", "isNotNull", "(", "name", ",", "\"name\"", ")", ";", "CheckArg", ".", "isNotNull", "(", "values", ",", "\"value\"", ")", ";", "if", "(",...
Set the property with the given name to the supplied values. If there is at least one value, the new property will replace any existing property with the same name. This method does nothing if zero values are supplied. @param name the name of the property; may not be null @param values the values of the property @retu...
[ "Set", "the", "property", "with", "the", "given", "name", "to", "the", "supplied", "values", ".", "If", "there", "is", "at", "least", "one", "value", "the", "new", "property", "will", "replace", "any", "existing", "property", "with", "the", "same", "name",...
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/sequencers/modeshape-sequencer-ddl/src/main/java/org/modeshape/sequencer/ddl/node/AstNode.java#L179-L187
56,527
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/parse/BasicSqlQueryParser.java
BasicSqlQueryParser.removeBracketsAndQuotes
protected String removeBracketsAndQuotes( String text, Position position ) { return removeBracketsAndQuotes(text, true, position); }
java
protected String removeBracketsAndQuotes( String text, Position position ) { return removeBracketsAndQuotes(text, true, position); }
[ "protected", "String", "removeBracketsAndQuotes", "(", "String", "text", ",", "Position", "position", ")", "{", "return", "removeBracketsAndQuotes", "(", "text", ",", "true", ",", "position", ")", ";", "}" ]
Remove all leading and trailing single-quotes, double-quotes, or square brackets from the supplied text. If multiple, properly-paired quotes or brackets are found, they will all be removed. @param text the input text; may not be null @param position the position of the text; may not be null @return the text without le...
[ "Remove", "all", "leading", "and", "trailing", "single", "-", "quotes", "double", "-", "quotes", "or", "square", "brackets", "from", "the", "supplied", "text", ".", "If", "multiple", "properly", "-", "paired", "quotes", "or", "brackets", "are", "found", "the...
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/parse/BasicSqlQueryParser.java#L1353-L1356
56,528
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/parse/BasicSqlQueryParser.java
BasicSqlQueryParser.removeBracketsAndQuotes
protected String removeBracketsAndQuotes( String text, boolean recursive, Position position ) { if (text.length() > 0) { char firstChar = text.charAt(0); switch (firstChar) { case ...
java
protected String removeBracketsAndQuotes( String text, boolean recursive, Position position ) { if (text.length() > 0) { char firstChar = text.charAt(0); switch (firstChar) { case ...
[ "protected", "String", "removeBracketsAndQuotes", "(", "String", "text", ",", "boolean", "recursive", ",", "Position", "position", ")", "{", "if", "(", "text", ".", "length", "(", ")", ">", "0", ")", "{", "char", "firstChar", "=", "text", ".", "charAt", ...
Remove any leading and trailing single-quotes, double-quotes, or square brackets from the supplied text. @param text the input text; may not be null @param recursive true if more than one pair of quotes, double-quotes, or square brackets should be removed, or false if just the first pair should be removed @param posit...
[ "Remove", "any", "leading", "and", "trailing", "single", "-", "quotes", "double", "-", "quotes", "or", "square", "brackets", "from", "the", "supplied", "text", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/parse/BasicSqlQueryParser.java#L1368-L1392
56,529
ModeShape/modeshape
web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java
JcrServiceImpl.propertyDefs
private String[] propertyDefs( Node node ) throws RepositoryException { ArrayList<String> list = new ArrayList<>(); NodeType primaryType = node.getPrimaryNodeType(); PropertyDefinition[] defs = primaryType.getPropertyDefinitions(); for (PropertyDefinition def : defs) { if (...
java
private String[] propertyDefs( Node node ) throws RepositoryException { ArrayList<String> list = new ArrayList<>(); NodeType primaryType = node.getPrimaryNodeType(); PropertyDefinition[] defs = primaryType.getPropertyDefinitions(); for (PropertyDefinition def : defs) { if (...
[ "private", "String", "[", "]", "propertyDefs", "(", "Node", "node", ")", "throws", "RepositoryException", "{", "ArrayList", "<", "String", ">", "list", "=", "new", "ArrayList", "<>", "(", ")", ";", "NodeType", "primaryType", "=", "node", ".", "getPrimaryNode...
Gets the list of properties available to the given node. @param node the node instance. @return list of property names. @throws RepositoryException
[ "Gets", "the", "list", "of", "properties", "available", "to", "the", "given", "node", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java#L272-L298
56,530
ModeShape/modeshape
web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java
JcrServiceImpl.findAccessList
private AccessControlList findAccessList( AccessControlManager acm, String path ) throws RepositoryException { AccessControlPolicy[] policy = acm.getPolicies(path); if (policy != null && policy.length > 0) { return (AccessControlList)policy[0]; ...
java
private AccessControlList findAccessList( AccessControlManager acm, String path ) throws RepositoryException { AccessControlPolicy[] policy = acm.getPolicies(path); if (policy != null && policy.length > 0) { return (AccessControlList)policy[0]; ...
[ "private", "AccessControlList", "findAccessList", "(", "AccessControlManager", "acm", ",", "String", "path", ")", "throws", "RepositoryException", "{", "AccessControlPolicy", "[", "]", "policy", "=", "acm", ".", "getPolicies", "(", "path", ")", ";", "if", "(", "...
Searches access list for the given node. @param acm access manager @param path the path to the node @return access list representation. @throws RepositoryException
[ "Searches", "access", "list", "for", "the", "given", "node", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java#L335-L349
56,531
ModeShape/modeshape
web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java
JcrServiceImpl.getProperties
private Collection<JcrProperty> getProperties( String repository, String workspace, String path, Node node ) throws RepositoryException { ArrayList<PropertyDefinition> names = new ArrayList<>(); NodeType primaryType = node.getPrimaryNodeType(); PropertyDefinition[] defs = primaryType.ge...
java
private Collection<JcrProperty> getProperties( String repository, String workspace, String path, Node node ) throws RepositoryException { ArrayList<PropertyDefinition> names = new ArrayList<>(); NodeType primaryType = node.getPrimaryNodeType(); PropertyDefinition[] defs = primaryType.ge...
[ "private", "Collection", "<", "JcrProperty", ">", "getProperties", "(", "String", "repository", ",", "String", "workspace", ",", "String", "path", ",", "Node", "node", ")", "throws", "RepositoryException", "{", "ArrayList", "<", "PropertyDefinition", ">", "names",...
Reads properties of the given node. @param repository the repository name @param workspace the workspace name @param path the path to the node @param node the node instance @return list of node's properties. @throws RepositoryException
[ "Reads", "properties", "of", "the", "given", "node", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java#L361-L394
56,532
ModeShape/modeshape
web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java
JcrServiceImpl.values
private String values( PropertyDefinition pd, Property p ) throws RepositoryException { if (p == null) { return "N/A"; } if (pd.getRequiredType() == PropertyType.BINARY) { return "BINARY"; } if (!p.isMultiple()) { return p.get...
java
private String values( PropertyDefinition pd, Property p ) throws RepositoryException { if (p == null) { return "N/A"; } if (pd.getRequiredType() == PropertyType.BINARY) { return "BINARY"; } if (!p.isMultiple()) { return p.get...
[ "private", "String", "values", "(", "PropertyDefinition", "pd", ",", "Property", "p", ")", "throws", "RepositoryException", "{", "if", "(", "p", "==", "null", ")", "{", "return", "\"N/A\"", ";", "}", "if", "(", "pd", ".", "getRequiredType", "(", ")", "==...
Displays property value as string @param pd the property definition @param p the property to display @return property value as text string @throws RepositoryException
[ "Displays", "property", "value", "as", "string" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java#L440-L454
56,533
ModeShape/modeshape
web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java
JcrServiceImpl.pick
private AccessControlEntry pick( AccessControlList acl, String principal ) throws RepositoryException { for (AccessControlEntry entry : acl.getAccessControlEntries()) { if (entry.getPrincipal().getName().equals(principal)) { return entry; ...
java
private AccessControlEntry pick( AccessControlList acl, String principal ) throws RepositoryException { for (AccessControlEntry entry : acl.getAccessControlEntries()) { if (entry.getPrincipal().getName().equals(principal)) { return entry; ...
[ "private", "AccessControlEntry", "pick", "(", "AccessControlList", "acl", ",", "String", "principal", ")", "throws", "RepositoryException", "{", "for", "(", "AccessControlEntry", "entry", ":", "acl", ".", "getAccessControlEntries", "(", ")", ")", "{", "if", "(", ...
Picks access entry for the given principal. @param acl @param principal @return the ACL entry @throws RepositoryException
[ "Picks", "access", "entry", "for", "the", "given", "principal", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java#L852-L860
56,534
ModeShape/modeshape
web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java
JcrServiceImpl.excludePrivilege
private Privilege[] excludePrivilege( Privilege[] privileges, JcrPermission permission ) { ArrayList<Privilege> list = new ArrayList<>(); for (Privilege privilege : privileges) { if (!privilege.getName().equalsIgnoreCase(permission.getName())) { ...
java
private Privilege[] excludePrivilege( Privilege[] privileges, JcrPermission permission ) { ArrayList<Privilege> list = new ArrayList<>(); for (Privilege privilege : privileges) { if (!privilege.getName().equalsIgnoreCase(permission.getName())) { ...
[ "private", "Privilege", "[", "]", "excludePrivilege", "(", "Privilege", "[", "]", "privileges", ",", "JcrPermission", "permission", ")", "{", "ArrayList", "<", "Privilege", ">", "list", "=", "new", "ArrayList", "<>", "(", ")", ";", "for", "(", "Privilege", ...
Excludes given privilege. @param privileges @param permission @return the privileges
[ "Excludes", "given", "privilege", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java#L869-L882
56,535
ModeShape/modeshape
web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java
JcrServiceImpl.includePrivilege
private Privilege[] includePrivilege( AccessControlManager acm, Privilege[] privileges, JcrPermission permission ) throws RepositoryException { ArrayList<Privilege> list = new ArrayList<>(); for (Privilege privilege : p...
java
private Privilege[] includePrivilege( AccessControlManager acm, Privilege[] privileges, JcrPermission permission ) throws RepositoryException { ArrayList<Privilege> list = new ArrayList<>(); for (Privilege privilege : p...
[ "private", "Privilege", "[", "]", "includePrivilege", "(", "AccessControlManager", "acm", ",", "Privilege", "[", "]", "privileges", ",", "JcrPermission", "permission", ")", "throws", "RepositoryException", "{", "ArrayList", "<", "Privilege", ">", "list", "=", "new...
Includes given privilege. @param acm the access control manager @param privileges @param permission @return the privileges @throws RepositoryException
[ "Includes", "given", "privilege", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/web/modeshape-web-explorer/src/main/java/org/modeshape/web/server/JcrServiceImpl.java#L893-L908
56,536
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/FileSystemBinaryStore.java
FileSystemBinaryStore.create
public static FileSystemBinaryStore create( File directory, File trash ) { String key = directory.getAbsolutePath(); FileSystemBinaryStore store = INSTANCES.get(key); if (store == null) { store = trash != null ? new FileSystemBinaryStore(directory, trash) : new FileSystemBinaryStore(...
java
public static FileSystemBinaryStore create( File directory, File trash ) { String key = directory.getAbsolutePath(); FileSystemBinaryStore store = INSTANCES.get(key); if (store == null) { store = trash != null ? new FileSystemBinaryStore(directory, trash) : new FileSystemBinaryStore(...
[ "public", "static", "FileSystemBinaryStore", "create", "(", "File", "directory", ",", "File", "trash", ")", "{", "String", "key", "=", "directory", ".", "getAbsolutePath", "(", ")", ";", "FileSystemBinaryStore", "store", "=", "INSTANCES", ".", "get", "(", "key...
Creates a new FS binary store instance @param directory a {@link File} instance where the binary data will be stored; may not be {@code null} @param trash a {@link File} instance where unused binary data is transferred to, until completely being removed from disk; may be {@code null} in which case a default location w...
[ "Creates", "a", "new", "FS", "binary", "store", "instance" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/FileSystemBinaryStore.java#L70-L81
56,537
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/query/engine/process/RestartableSequence.java
RestartableSequence.loadRemaining
protected void loadRemaining() { if (!loadedAll) { // Put all of the batches from the sequence into the buffer assert targetNumRowsInMemory >= 0L; assert batchSize != null; Batch batch = original.nextBatch(); boolean loadIntoMemory = inMemoryBatches !=...
java
protected void loadRemaining() { if (!loadedAll) { // Put all of the batches from the sequence into the buffer assert targetNumRowsInMemory >= 0L; assert batchSize != null; Batch batch = original.nextBatch(); boolean loadIntoMemory = inMemoryBatches !=...
[ "protected", "void", "loadRemaining", "(", ")", "{", "if", "(", "!", "loadedAll", ")", "{", "// Put all of the batches from the sequence into the buffer", "assert", "targetNumRowsInMemory", ">=", "0L", ";", "assert", "batchSize", "!=", "null", ";", "Batch", "batch", ...
Load all of the remaining rows from the supplied sequence into the buffer.
[ "Load", "all", "of", "the", "remaining", "rows", "from", "the", "supplied", "sequence", "into", "the", "buffer", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/query/engine/process/RestartableSequence.java#L180-L201
56,538
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/CompositeBinaryStore.java
CompositeBinaryStore.moveValue
public BinaryKey moveValue( BinaryKey key, String source, String destination ) throws BinaryStoreException { final BinaryStore sourceStore; if (source == null) { sourceStore = findBinaryStoreContainingKey(key); } else {...
java
public BinaryKey moveValue( BinaryKey key, String source, String destination ) throws BinaryStoreException { final BinaryStore sourceStore; if (source == null) { sourceStore = findBinaryStoreContainingKey(key); } else {...
[ "public", "BinaryKey", "moveValue", "(", "BinaryKey", "key", ",", "String", "source", ",", "String", "destination", ")", "throws", "BinaryStoreException", "{", "final", "BinaryStore", "sourceStore", ";", "if", "(", "source", "==", "null", ")", "{", "sourceStore"...
Move a value from one named store to another store @param key Binary key to transfer from the source store to the destination store @param source a hint for discovering the source repository; may be null @param destination a hint for discovering the destination repository @return the {@link BinaryKey} value of the mov...
[ "Move", "a", "value", "from", "one", "named", "store", "to", "another", "store" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/CompositeBinaryStore.java#L165-L192
56,539
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/CompositeBinaryStore.java
CompositeBinaryStore.moveValue
public void moveValue( BinaryKey key, String destination ) throws BinaryStoreException { moveValue(key, null, destination); }
java
public void moveValue( BinaryKey key, String destination ) throws BinaryStoreException { moveValue(key, null, destination); }
[ "public", "void", "moveValue", "(", "BinaryKey", "key", ",", "String", "destination", ")", "throws", "BinaryStoreException", "{", "moveValue", "(", "key", ",", "null", ",", "destination", ")", ";", "}" ]
Move a BinaryKey to a named store @param key Binary key to transfer from the source store to the destination store @param destination a hint for discovering the destination repository @throws BinaryStoreException if anything unexpected fails
[ "Move", "a", "BinaryKey", "to", "a", "named", "store" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/CompositeBinaryStore.java#L201-L204
56,540
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/CompositeBinaryStore.java
CompositeBinaryStore.findBinaryStoreContainingKey
public BinaryStore findBinaryStoreContainingKey( BinaryKey key ) { Iterator<Map.Entry<String, BinaryStore>> binaryStoreIterator = getNamedStoreIterator(); while (binaryStoreIterator.hasNext()) { BinaryStore bs = binaryStoreIterator.next().getValue(); if (bs.hasBinary(key)) { ...
java
public BinaryStore findBinaryStoreContainingKey( BinaryKey key ) { Iterator<Map.Entry<String, BinaryStore>> binaryStoreIterator = getNamedStoreIterator(); while (binaryStoreIterator.hasNext()) { BinaryStore bs = binaryStoreIterator.next().getValue(); if (bs.hasBinary(key)) { ...
[ "public", "BinaryStore", "findBinaryStoreContainingKey", "(", "BinaryKey", "key", ")", "{", "Iterator", "<", "Map", ".", "Entry", "<", "String", ",", "BinaryStore", ">", ">", "binaryStoreIterator", "=", "getNamedStoreIterator", "(", ")", ";", "while", "(", "bina...
Get the named binary store that contains the key @param key the key to the binary content; never null @return the BinaryStore that contains the given key
[ "Get", "the", "named", "binary", "store", "that", "contains", "the", "key" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/CompositeBinaryStore.java#L398-L409
56,541
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/CompositeBinaryStore.java
CompositeBinaryStore.selectBinaryStore
private BinaryStore selectBinaryStore( String hint ) { BinaryStore namedBinaryStore = null; if (hint != null) { logger.trace("Selecting named binary store for hint: " + hint); namedBinaryStore = namedStores.get(hint); } if (namedBinaryStore == null) { ...
java
private BinaryStore selectBinaryStore( String hint ) { BinaryStore namedBinaryStore = null; if (hint != null) { logger.trace("Selecting named binary store for hint: " + hint); namedBinaryStore = namedStores.get(hint); } if (namedBinaryStore == null) { ...
[ "private", "BinaryStore", "selectBinaryStore", "(", "String", "hint", ")", "{", "BinaryStore", "namedBinaryStore", "=", "null", ";", "if", "(", "hint", "!=", "null", ")", "{", "logger", ".", "trace", "(", "\"Selecting named binary store for hint: \"", "+", "hint",...
Select a named binary store for the given hint @param hint a hint to a binary store; possibly null @return a named BinaryStore from the hint, or the default store
[ "Select", "a", "named", "binary", "store", "for", "the", "given", "hint" ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/value/binary/CompositeBinaryStore.java#L417-L433
56,542
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/ModeShapeEngine.java
ModeShapeEngine.start
public void start() { if (state == State.RUNNING) return; final Lock lock = this.lock.writeLock(); try { lock.lock(); this.state = State.STARTING; // Create an executor service that we'll use to start the repositories ... ThreadFactory threadFacto...
java
public void start() { if (state == State.RUNNING) return; final Lock lock = this.lock.writeLock(); try { lock.lock(); this.state = State.STARTING; // Create an executor service that we'll use to start the repositories ... ThreadFactory threadFacto...
[ "public", "void", "start", "(", ")", "{", "if", "(", "state", "==", "State", ".", "RUNNING", ")", "return", ";", "final", "Lock", "lock", "=", "this", ".", "lock", ".", "writeLock", "(", ")", ";", "try", "{", "lock", ".", "lock", "(", ")", ";", ...
Start this engine to make it available for use. This method does nothing if the engine is already running. @see #shutdown()
[ "Start", "this", "engine", "to", "make", "it", "available", "for", "use", ".", "This", "method", "does", "nothing", "if", "the", "engine", "is", "already", "running", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/ModeShapeEngine.java#L92-L110
56,543
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/ModeShapeEngine.java
ModeShapeEngine.shutdown
public Future<Boolean> shutdown( boolean forceShutdownOfAllRepositories ) { if (!forceShutdownOfAllRepositories) { // Check to see if there are any still running ... final Lock lock = this.lock.readLock(); try { lock.lock(); for (JcrRepository ...
java
public Future<Boolean> shutdown( boolean forceShutdownOfAllRepositories ) { if (!forceShutdownOfAllRepositories) { // Check to see if there are any still running ... final Lock lock = this.lock.readLock(); try { lock.lock(); for (JcrRepository ...
[ "public", "Future", "<", "Boolean", ">", "shutdown", "(", "boolean", "forceShutdownOfAllRepositories", ")", "{", "if", "(", "!", "forceShutdownOfAllRepositories", ")", "{", "// Check to see if there are any still running ...", "final", "Lock", "lock", "=", "this", ".", ...
Shutdown this engine, optionally stopping all still-running repositories. @param forceShutdownOfAllRepositories true if the engine should be shutdown even if there are currently-running repositories, or false if the engine should not be shutdown if at least one repository is still running. @return a future that allows...
[ "Shutdown", "this", "engine", "optionally", "stopping", "all", "still", "-", "running", "repositories", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/ModeShapeEngine.java#L140-L173
56,544
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/ModeShapeEngine.java
ModeShapeEngine.doShutdown
protected boolean doShutdown() { if (state == State.NOT_RUNNING) { LOGGER.debug("Engine already shut down."); return true; } LOGGER.debug("Shutting down engine..."); final Lock lock = this.lock.writeLock(); try { lock.lock(); state ...
java
protected boolean doShutdown() { if (state == State.NOT_RUNNING) { LOGGER.debug("Engine already shut down."); return true; } LOGGER.debug("Shutting down engine..."); final Lock lock = this.lock.writeLock(); try { lock.lock(); state ...
[ "protected", "boolean", "doShutdown", "(", ")", "{", "if", "(", "state", "==", "State", ".", "NOT_RUNNING", ")", "{", "LOGGER", ".", "debug", "(", "\"Engine already shut down.\"", ")", ";", "return", "true", ";", "}", "LOGGER", ".", "debug", "(", "\"Shutti...
Do the work of shutting down this engine and its repositories. @return true if the engine was shutdown (or was not running), and false if the engine is still running and could not be shutdown
[ "Do", "the", "work", "of", "shutting", "down", "this", "engine", "and", "its", "repositories", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/ModeShapeEngine.java#L181-L236
56,545
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/ModeShapeEngine.java
ModeShapeEngine.getRepositories
public Map<String, State> getRepositories() { checkRunning(); Map<String, State> results = new HashMap<String, State>(); final Lock lock = this.lock.readLock(); try { lock.lock(); for (JcrRepository repository : repositories.values()) { results.put...
java
public Map<String, State> getRepositories() { checkRunning(); Map<String, State> results = new HashMap<String, State>(); final Lock lock = this.lock.readLock(); try { lock.lock(); for (JcrRepository repository : repositories.values()) { results.put...
[ "public", "Map", "<", "String", ",", "State", ">", "getRepositories", "(", ")", "{", "checkRunning", "(", ")", ";", "Map", "<", "String", ",", "State", ">", "results", "=", "new", "HashMap", "<", "String", ",", "State", ">", "(", ")", ";", "final", ...
Get an instantaneous snapshot of the JCR repositories and their state. Note that the results are accurate only when this methods returns. @return the immutable map of repository states keyed by repository names; never null
[ "Get", "an", "instantaneous", "snapshot", "of", "the", "JCR", "repositories", "and", "their", "state", ".", "Note", "that", "the", "results", "are", "accurate", "only", "when", "this", "methods", "returns", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/ModeShapeEngine.java#L391-L404
56,546
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/ModeShapeEngine.java
ModeShapeEngine.repositories
protected Collection<JcrRepository> repositories() { if (this.state == State.RUNNING) { final Lock lock = this.lock.readLock(); try { lock.lock(); return new ArrayList<JcrRepository>(repositories.values()); } finally { lock.unlo...
java
protected Collection<JcrRepository> repositories() { if (this.state == State.RUNNING) { final Lock lock = this.lock.readLock(); try { lock.lock(); return new ArrayList<JcrRepository>(repositories.values()); } finally { lock.unlo...
[ "protected", "Collection", "<", "JcrRepository", ">", "repositories", "(", ")", "{", "if", "(", "this", ".", "state", "==", "State", ".", "RUNNING", ")", "{", "final", "Lock", "lock", "=", "this", ".", "lock", ".", "readLock", "(", ")", ";", "try", "...
Returns a copy of the repositories. Note that when returned, not all repositories may be active. @return a copy of the repositories; never null
[ "Returns", "a", "copy", "of", "the", "repositories", ".", "Note", "that", "when", "returned", "not", "all", "repositories", "may", "be", "active", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/ModeShapeEngine.java#L411-L422
56,547
ModeShape/modeshape
modeshape-jcr/src/main/java/org/modeshape/jcr/ModeShapeEngine.java
ModeShapeEngine.deploy
protected JcrRepository deploy( final RepositoryConfiguration repositoryConfiguration, final String repositoryKey ) throws ConfigurationException, RepositoryException { CheckArg.isNotNull(repositoryConfiguration, "repositoryConfiguration"); checkRunning(); fi...
java
protected JcrRepository deploy( final RepositoryConfiguration repositoryConfiguration, final String repositoryKey ) throws ConfigurationException, RepositoryException { CheckArg.isNotNull(repositoryConfiguration, "repositoryConfiguration"); checkRunning(); fi...
[ "protected", "JcrRepository", "deploy", "(", "final", "RepositoryConfiguration", "repositoryConfiguration", ",", "final", "String", "repositoryKey", ")", "throws", "ConfigurationException", ",", "RepositoryException", "{", "CheckArg", ".", "isNotNull", "(", "repositoryConfi...
Deploy a new repository with the given configuration. This method will fail if this engine already contains a repository with the specified name. @param repositoryConfiguration the configuration for the repository @param repositoryKey the key by which this repository is known to this engine; may be null if the {@link ...
[ "Deploy", "a", "new", "repository", "with", "the", "given", "configuration", ".", "This", "method", "will", "fail", "if", "this", "engine", "already", "contains", "a", "repository", "with", "the", "specified", "name", "." ]
794cfdabb67a90f24629c4fff0424a6125f8f95b
https://github.com/ModeShape/modeshape/blob/794cfdabb67a90f24629c4fff0424a6125f8f95b/modeshape-jcr/src/main/java/org/modeshape/jcr/ModeShapeEngine.java#L461-L489
56,548
networknt/light-rest-4j
openapi-validator/src/main/java/com/networknt/openapi/RequestValidator.java
RequestValidator.validateRequest
public Status validateRequest(final NormalisedPath requestPath, HttpServerExchange exchange, OpenApiOperation openApiOperation) { requireNonNull(requestPath, "A request path is required"); requireNonNull(exchange, "An exchange is required"); requireNonNull(openApiOperation, "An OpenAPI operation...
java
public Status validateRequest(final NormalisedPath requestPath, HttpServerExchange exchange, OpenApiOperation openApiOperation) { requireNonNull(requestPath, "A request path is required"); requireNonNull(exchange, "An exchange is required"); requireNonNull(openApiOperation, "An OpenAPI operation...
[ "public", "Status", "validateRequest", "(", "final", "NormalisedPath", "requestPath", ",", "HttpServerExchange", "exchange", ",", "OpenApiOperation", "openApiOperation", ")", "{", "requireNonNull", "(", "requestPath", ",", "\"A request path is required\"", ")", ";", "requ...
Validate the request against the given API operation @param requestPath normalised path @param exchange The HttpServerExchange to validate @param openApiOperation OpenAPI operation @return A validation report containing validation errors
[ "Validate", "the", "request", "against", "the", "given", "API", "operation" ]
06b15128e6101351e617284a636ef5d632e6b1fe
https://github.com/networknt/light-rest-4j/blob/06b15128e6101351e617284a636ef5d632e6b1fe/openapi-validator/src/main/java/com/networknt/openapi/RequestValidator.java#L70-L90
56,549
networknt/light-rest-4j
swagger-validator/src/main/java/com/networknt/validator/ResponseValidator.java
ResponseValidator.validateResponse
public Status validateResponse(final HttpServerExchange exchange, final SwaggerOperation swaggerOperation) { requireNonNull(exchange, "An exchange is required"); requireNonNull(swaggerOperation, "A swagger operation is required"); io.swagger.models.Response swaggerResponse = swaggerOperation.ge...
java
public Status validateResponse(final HttpServerExchange exchange, final SwaggerOperation swaggerOperation) { requireNonNull(exchange, "An exchange is required"); requireNonNull(swaggerOperation, "A swagger operation is required"); io.swagger.models.Response swaggerResponse = swaggerOperation.ge...
[ "public", "Status", "validateResponse", "(", "final", "HttpServerExchange", "exchange", ",", "final", "SwaggerOperation", "swaggerOperation", ")", "{", "requireNonNull", "(", "exchange", ",", "\"An exchange is required\"", ")", ";", "requireNonNull", "(", "swaggerOperatio...
Validate the given response against the API operation. @param exchange The exchange to validate @param swaggerOperation The API operation to validate the response against @return A status containing validation error
[ "Validate", "the", "given", "response", "against", "the", "API", "operation", "." ]
06b15128e6101351e617284a636ef5d632e6b1fe
https://github.com/networknt/light-rest-4j/blob/06b15128e6101351e617284a636ef5d632e6b1fe/swagger-validator/src/main/java/com/networknt/validator/ResponseValidator.java#L50-L72
56,550
networknt/light-rest-4j
swagger-validator/src/main/java/com/networknt/validator/SchemaValidator.java
SchemaValidator.validate
public Status validate(final Object value, final Property schema) { return doValidate(value, schema, null); }
java
public Status validate(final Object value, final Property schema) { return doValidate(value, schema, null); }
[ "public", "Status", "validate", "(", "final", "Object", "value", ",", "final", "Property", "schema", ")", "{", "return", "doValidate", "(", "value", ",", "schema", ",", "null", ")", ";", "}" ]
Validate the given value against the given property schema. @param value The value to validate @param schema The property schema to validate the value against @return A status containing error code and description
[ "Validate", "the", "given", "value", "against", "the", "given", "property", "schema", "." ]
06b15128e6101351e617284a636ef5d632e6b1fe
https://github.com/networknt/light-rest-4j/blob/06b15128e6101351e617284a636ef5d632e6b1fe/swagger-validator/src/main/java/com/networknt/validator/SchemaValidator.java#L81-L83
56,551
networknt/light-rest-4j
swagger-validator/src/main/java/com/networknt/validator/SchemaValidator.java
SchemaValidator.validate
public Status validate(final Object value, final Model schema, SchemaValidatorsConfig config) { return doValidate(value, schema, config); }
java
public Status validate(final Object value, final Model schema, SchemaValidatorsConfig config) { return doValidate(value, schema, config); }
[ "public", "Status", "validate", "(", "final", "Object", "value", ",", "final", "Model", "schema", ",", "SchemaValidatorsConfig", "config", ")", "{", "return", "doValidate", "(", "value", ",", "schema", ",", "config", ")", ";", "}" ]
Validate the given value against the given model schema. @param value The value to validate @param schema The model schema to validate the value against @param config The config model for some validator @return A status containing error code and description
[ "Validate", "the", "given", "value", "against", "the", "given", "model", "schema", "." ]
06b15128e6101351e617284a636ef5d632e6b1fe
https://github.com/networknt/light-rest-4j/blob/06b15128e6101351e617284a636ef5d632e6b1fe/swagger-validator/src/main/java/com/networknt/validator/SchemaValidator.java#L94-L96
56,552
networknt/light-rest-4j
openapi-validator/src/main/java/com/networknt/openapi/ResponseValidator.java
ResponseValidator.validateResponseContent
public Status validateResponseContent(Object responseContent, OpenApiOperation openApiOperation, String statusCode, String mediaTypeName) { //try to convert json string to structured object if(responseContent instanceof String) { responseContent = convertStrToObjTree((String)responseContent)...
java
public Status validateResponseContent(Object responseContent, OpenApiOperation openApiOperation, String statusCode, String mediaTypeName) { //try to convert json string to structured object if(responseContent instanceof String) { responseContent = convertStrToObjTree((String)responseContent)...
[ "public", "Status", "validateResponseContent", "(", "Object", "responseContent", ",", "OpenApiOperation", "openApiOperation", ",", "String", "statusCode", ",", "String", "mediaTypeName", ")", "{", "//try to convert json string to structured object", "if", "(", "responseConten...
validate a given response content object @param responseContent response content needs to be validated @param openApiOperation OpenApi Operation which is located by uri and httpMethod @param statusCode eg. 200, 400 @param mediaTypeName eg. "application/json" @return Status
[ "validate", "a", "given", "response", "content", "object" ]
06b15128e6101351e617284a636ef5d632e6b1fe
https://github.com/networknt/light-rest-4j/blob/06b15128e6101351e617284a636ef5d632e6b1fe/openapi-validator/src/main/java/com/networknt/openapi/ResponseValidator.java#L116-L138
56,553
networknt/light-rest-4j
openapi-validator/src/main/java/com/networknt/openapi/ResponseValidator.java
ResponseValidator.convertStrToObjTree
private Object convertStrToObjTree(String s) { Object contentObj = null; if (s != null) { s = s.trim(); try { if (s.startsWith("{")) { contentObj = Config.getInstance().getMapper().readValue(s, new TypeReference<HashMap<String, Object>>() { ...
java
private Object convertStrToObjTree(String s) { Object contentObj = null; if (s != null) { s = s.trim(); try { if (s.startsWith("{")) { contentObj = Config.getInstance().getMapper().readValue(s, new TypeReference<HashMap<String, Object>>() { ...
[ "private", "Object", "convertStrToObjTree", "(", "String", "s", ")", "{", "Object", "contentObj", "=", "null", ";", "if", "(", "s", "!=", "null", ")", "{", "s", "=", "s", ".", "trim", "(", ")", ";", "try", "{", "if", "(", "s", ".", "startsWith", ...
try to convert a string with json style to a structured object. @param s @return Object
[ "try", "to", "convert", "a", "string", "with", "json", "style", "to", "a", "structured", "object", "." ]
06b15128e6101351e617284a636ef5d632e6b1fe
https://github.com/networknt/light-rest-4j/blob/06b15128e6101351e617284a636ef5d632e6b1fe/openapi-validator/src/main/java/com/networknt/openapi/ResponseValidator.java#L145-L165
56,554
networknt/light-rest-4j
openapi-validator/src/main/java/com/networknt/openapi/ResponseValidator.java
ResponseValidator.getOpenApiOperation
private OpenApiOperation getOpenApiOperation(String uri, String httpMethod) throws URISyntaxException { String uriWithoutQuery = new URI(uri).getPath(); NormalisedPath requestPath = new ApiNormalisedPath(uriWithoutQuery); Optional<NormalisedPath> maybeApiPath = OpenApiHelper.findMatchingApiPath(...
java
private OpenApiOperation getOpenApiOperation(String uri, String httpMethod) throws URISyntaxException { String uriWithoutQuery = new URI(uri).getPath(); NormalisedPath requestPath = new ApiNormalisedPath(uriWithoutQuery); Optional<NormalisedPath> maybeApiPath = OpenApiHelper.findMatchingApiPath(...
[ "private", "OpenApiOperation", "getOpenApiOperation", "(", "String", "uri", ",", "String", "httpMethod", ")", "throws", "URISyntaxException", "{", "String", "uriWithoutQuery", "=", "new", "URI", "(", "uri", ")", ".", "getPath", "(", ")", ";", "NormalisedPath", "...
locate operation based on uri and httpMethod @param uri original uri of the request @param httpMethod http method of the request @return OpenApiOperation the wrapper of an api operation
[ "locate", "operation", "based", "on", "uri", "and", "httpMethod" ]
06b15128e6101351e617284a636ef5d632e6b1fe
https://github.com/networknt/light-rest-4j/blob/06b15128e6101351e617284a636ef5d632e6b1fe/openapi-validator/src/main/java/com/networknt/openapi/ResponseValidator.java#L173-L186
56,555
spring-projects/spring-social-twitter
spring-social-twitter/src/main/java/org/springframework/social/twitter/api/FilterStreamParameters.java
FilterStreamParameters.follow
public FilterStreamParameters follow(long follow) { if (this.follow.length() > 0) { this.follow.append(','); } this.follow.append(follow); return this; }
java
public FilterStreamParameters follow(long follow) { if (this.follow.length() > 0) { this.follow.append(','); } this.follow.append(follow); return this; }
[ "public", "FilterStreamParameters", "follow", "(", "long", "follow", ")", "{", "if", "(", "this", ".", "follow", ".", "length", "(", ")", ">", "0", ")", "{", "this", ".", "follow", ".", "append", "(", "'", "'", ")", ";", "}", "this", ".", "follow",...
Add a user to follow in the stream. Does not replace any existing follows in the filter. @param follow the Twitter user ID of a user to follow in the stream. @return this FilterStreamParameters for building up filter parameters.
[ "Add", "a", "user", "to", "follow", "in", "the", "stream", ".", "Does", "not", "replace", "any", "existing", "follows", "in", "the", "filter", "." ]
5df7b3556d7bdbe7db8d833f30141336b5552178
https://github.com/spring-projects/spring-social-twitter/blob/5df7b3556d7bdbe7db8d833f30141336b5552178/spring-social-twitter/src/main/java/org/springframework/social/twitter/api/FilterStreamParameters.java#L35-L41
56,556
spring-projects/spring-social-twitter
spring-social-twitter/src/main/java/org/springframework/social/twitter/api/AbstractStreamParameters.java
AbstractStreamParameters.track
public AbstractStreamParameters track(String track) { if (this.track.length() > 0) { this.track.append(','); } this.track.append(track); return this; }
java
public AbstractStreamParameters track(String track) { if (this.track.length() > 0) { this.track.append(','); } this.track.append(track); return this; }
[ "public", "AbstractStreamParameters", "track", "(", "String", "track", ")", "{", "if", "(", "this", ".", "track", ".", "length", "(", ")", ">", "0", ")", "{", "this", ".", "track", ".", "append", "(", "'", "'", ")", ";", "}", "this", ".", "track", ...
Add tracking keywords to the filter. Does not replace any existing tracking keywords in the filter. @param track the keywords to track. @return this StreamFilter for building up filter parameters.
[ "Add", "tracking", "keywords", "to", "the", "filter", ".", "Does", "not", "replace", "any", "existing", "tracking", "keywords", "in", "the", "filter", "." ]
5df7b3556d7bdbe7db8d833f30141336b5552178
https://github.com/spring-projects/spring-social-twitter/blob/5df7b3556d7bdbe7db8d833f30141336b5552178/spring-social-twitter/src/main/java/org/springframework/social/twitter/api/AbstractStreamParameters.java#L44-L50
56,557
spring-projects/spring-social-twitter
spring-social-twitter/src/main/java/org/springframework/social/twitter/api/AbstractStreamParameters.java
AbstractStreamParameters.addLocation
public AbstractStreamParameters addLocation(float west, float south, float east, float north) { if (locations.length() > 0) { locations.append(','); } locations.append(west).append(',').append(south).append(','); locations.append(east).append(',').append(north).append(','); return this; }
java
public AbstractStreamParameters addLocation(float west, float south, float east, float north) { if (locations.length() > 0) { locations.append(','); } locations.append(west).append(',').append(south).append(','); locations.append(east).append(',').append(north).append(','); return this; }
[ "public", "AbstractStreamParameters", "addLocation", "(", "float", "west", ",", "float", "south", ",", "float", "east", ",", "float", "north", ")", "{", "if", "(", "locations", ".", "length", "(", ")", ">", "0", ")", "{", "locations", ".", "append", "(",...
Add a location to the filter Does not replace any existing locations in the filter. @param west the longitude of the western side of the location's bounding box. @param south the latitude of the southern side of the location's bounding box. @param east the longitude of the eastern side of the location's bounding box. @...
[ "Add", "a", "location", "to", "the", "filter", "Does", "not", "replace", "any", "existing", "locations", "in", "the", "filter", "." ]
5df7b3556d7bdbe7db8d833f30141336b5552178
https://github.com/spring-projects/spring-social-twitter/blob/5df7b3556d7bdbe7db8d833f30141336b5552178/spring-social-twitter/src/main/java/org/springframework/social/twitter/api/AbstractStreamParameters.java#L61-L68
56,558
spring-projects/spring-social-twitter
spring-social-twitter/src/main/java/org/springframework/social/twitter/api/impl/TweetDeserializer.java
TweetDeserializer.toEntities
private Entities toEntities(final JsonNode node, String text) throws IOException { if (null == node || node.isNull() || node.isMissingNode()) { return null; } final ObjectMapper mapper = this.createMapper(); Entities entities = mapper.readerFor(Entities.class).readValue(node); extractTickerSymbolEntitiesFr...
java
private Entities toEntities(final JsonNode node, String text) throws IOException { if (null == node || node.isNull() || node.isMissingNode()) { return null; } final ObjectMapper mapper = this.createMapper(); Entities entities = mapper.readerFor(Entities.class).readValue(node); extractTickerSymbolEntitiesFr...
[ "private", "Entities", "toEntities", "(", "final", "JsonNode", "node", ",", "String", "text", ")", "throws", "IOException", "{", "if", "(", "null", "==", "node", "||", "node", ".", "isNull", "(", ")", "||", "node", ".", "isMissingNode", "(", ")", ")", ...
passing in text to fetch ticker symbol pseudo-entities
[ "passing", "in", "text", "to", "fetch", "ticker", "symbol", "pseudo", "-", "entities" ]
5df7b3556d7bdbe7db8d833f30141336b5552178
https://github.com/spring-projects/spring-social-twitter/blob/5df7b3556d7bdbe7db8d833f30141336b5552178/spring-social-twitter/src/main/java/org/springframework/social/twitter/api/impl/TweetDeserializer.java#L125-L133
56,559
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/user/UserClient.java
UserClient.getUserState
public UserStateResult getUserState(String username) throws APIConnectionException, APIRequestException { StringUtils.checkUsername(username); ResponseWrapper response = _httpClient.sendGet(_baseUrl + userPath + "/" + username + "/userstat"); return UserStateResult.fromResponse(respo...
java
public UserStateResult getUserState(String username) throws APIConnectionException, APIRequestException { StringUtils.checkUsername(username); ResponseWrapper response = _httpClient.sendGet(_baseUrl + userPath + "/" + username + "/userstat"); return UserStateResult.fromResponse(respo...
[ "public", "UserStateResult", "getUserState", "(", "String", "username", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "StringUtils", ".", "checkUsername", "(", "username", ")", ";", "ResponseWrapper", "response", "=", "_httpClient", ".", "s...
Get user state @param username Necessary @return user state info, include login and online message. @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Get", "user", "state" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/user/UserClient.java#L108-L113
56,560
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/user/UserClient.java
UserClient.getUsersState
public UserStateListResult[] getUsersState(String... users) throws APIConnectionException, APIRequestException { JsonArray jsonArray = new JsonArray(); for (String username : users) { StringUtils.checkUsername(username); jsonArray.add(new JsonPrimitive(username)); } ...
java
public UserStateListResult[] getUsersState(String... users) throws APIConnectionException, APIRequestException { JsonArray jsonArray = new JsonArray(); for (String username : users) { StringUtils.checkUsername(username); jsonArray.add(new JsonPrimitive(username)); } ...
[ "public", "UserStateListResult", "[", "]", "getUsersState", "(", "String", "...", "users", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "JsonArray", "jsonArray", "=", "new", "JsonArray", "(", ")", ";", "for", "(", "String", "username",...
Get users' state @param users username of users @return {@link UserStateListResult} @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Get", "users", "state" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/user/UserClient.java#L123-L131
56,561
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/user/UserClient.java
UserClient.getBlackList
public UserInfoResult[] getBlackList(String username) throws APIConnectionException, APIRequestException { StringUtils.checkUsername(username); ResponseWrapper response = _httpClient.sendGet(_baseUrl + userPath + "/" + username + "/blacklist"); return _gson.fromJson(response.response...
java
public UserInfoResult[] getBlackList(String username) throws APIConnectionException, APIRequestException { StringUtils.checkUsername(username); ResponseWrapper response = _httpClient.sendGet(_baseUrl + userPath + "/" + username + "/blacklist"); return _gson.fromJson(response.response...
[ "public", "UserInfoResult", "[", "]", "getBlackList", "(", "String", "username", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "StringUtils", ".", "checkUsername", "(", "username", ")", ";", "ResponseWrapper", "response", "=", "_httpClient"...
Get a user's all black list @param username The owner of the black list @return UserList @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Get", "a", "user", "s", "all", "black", "list" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/user/UserClient.java#L161-L166
56,562
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/user/UserClient.java
UserClient.getGroupList
public UserGroupsResult getGroupList(String username) throws APIConnectionException, APIRequestException { StringUtils.checkUsername(username); ResponseWrapper response = _httpClient.sendGet(_baseUrl + userPath + "/" + username + "/groups"); return UserGroupsResult.fromResponse(resp...
java
public UserGroupsResult getGroupList(String username) throws APIConnectionException, APIRequestException { StringUtils.checkUsername(username); ResponseWrapper response = _httpClient.sendGet(_baseUrl + userPath + "/" + username + "/groups"); return UserGroupsResult.fromResponse(resp...
[ "public", "UserGroupsResult", "getGroupList", "(", "String", "username", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "StringUtils", ".", "checkUsername", "(", "username", ")", ";", "ResponseWrapper", "response", "=", "_httpClient", ".", "...
Get all groups of a user @param username Necessary @return Group info list @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Get", "all", "groups", "of", "a", "user" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/user/UserClient.java#L266-L272
56,563
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/JMessageClient.java
JMessageClient.addBlackList
public ResponseWrapper addBlackList(String username, String...users) throws APIConnectionException, APIRequestException { return _userClient.addBlackList(username, users); }
java
public ResponseWrapper addBlackList(String username, String...users) throws APIConnectionException, APIRequestException { return _userClient.addBlackList(username, users); }
[ "public", "ResponseWrapper", "addBlackList", "(", "String", "username", ",", "String", "...", "users", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "return", "_userClient", ".", "addBlackList", "(", "username", ",", "users", ")", ";", ...
Add Users to black list @param username The owner of the black list @param users The users that will add to black list @return add users to black list @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Add", "Users", "to", "black", "list" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/JMessageClient.java#L241-L244
56,564
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/JMessageClient.java
JMessageClient.setNoDisturb
public ResponseWrapper setNoDisturb(String username, NoDisturbPayload payload) throws APIConnectionException, APIRequestException { return _userClient.setNoDisturb(username, payload); }
java
public ResponseWrapper setNoDisturb(String username, NoDisturbPayload payload) throws APIConnectionException, APIRequestException { return _userClient.setNoDisturb(username, payload); }
[ "public", "ResponseWrapper", "setNoDisturb", "(", "String", "username", ",", "NoDisturbPayload", "payload", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "return", "_userClient", ".", "setNoDisturb", "(", "username", ",", "payload", ")", ";...
Set don't disturb service while receiving messages. You can Add or remove single conversation or group conversation @param username Necessary @param payload NoDisturbPayload @return No content @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Set", "don", "t", "disturb", "service", "while", "receiving", "messages", ".", "You", "can", "Add", "or", "remove", "single", "conversation", "or", "group", "conversation" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/JMessageClient.java#L277-L280
56,565
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/JMessageClient.java
JMessageClient.addOrRemoveMembers
public void addOrRemoveMembers(long gid, String[] addList, String[] removeList) throws APIConnectionException, APIRequestException { Members add = Members.newBuilder() .addMember(addList) .build(); Members remove = Members.newBuilder() .addMem...
java
public void addOrRemoveMembers(long gid, String[] addList, String[] removeList) throws APIConnectionException, APIRequestException { Members add = Members.newBuilder() .addMember(addList) .build(); Members remove = Members.newBuilder() .addMem...
[ "public", "void", "addOrRemoveMembers", "(", "long", "gid", ",", "String", "[", "]", "addList", ",", "String", "[", "]", "removeList", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "Members", "add", "=", "Members", ".", "newBuilder", ...
Add or remove members from a group @param gid The group id @param addList If this parameter is null then send remove request @param removeList If this parameter is null then send add request @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Add", "or", "remove", "members", "from", "a", "group" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/JMessageClient.java#L400-L411
56,566
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/JMessageClient.java
JMessageClient.sendSingleTextByAdmin
public SendMessageResult sendSingleTextByAdmin(String targetId, String fromId, MessageBody body) throws APIConnectionException, APIRequestException { return sendMessage(_sendVersion, "single", targetId, "admin",fromId, MessageType.TEXT, body); }
java
public SendMessageResult sendSingleTextByAdmin(String targetId, String fromId, MessageBody body) throws APIConnectionException, APIRequestException { return sendMessage(_sendVersion, "single", targetId, "admin",fromId, MessageType.TEXT, body); }
[ "public", "SendMessageResult", "sendSingleTextByAdmin", "(", "String", "targetId", ",", "String", "fromId", ",", "MessageBody", "body", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "return", "sendMessage", "(", "_sendVersion", ",", "\"single...
Send single text message by admin @param targetId target user's id @param fromId sender's id @param body message body, include text and extra(if needed). @return return msg_id @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Send", "single", "text", "message", "by", "admin" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/JMessageClient.java#L472-L475
56,567
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/JMessageClient.java
JMessageClient.addCrossBlacklist
public ResponseWrapper addCrossBlacklist(String username, CrossBlacklist[] blacklists) throws APIConnectionException, APIRequestException { return _crossAppClient.addCrossBlacklist(username, blacklists); }
java
public ResponseWrapper addCrossBlacklist(String username, CrossBlacklist[] blacklists) throws APIConnectionException, APIRequestException { return _crossAppClient.addCrossBlacklist(username, blacklists); }
[ "public", "ResponseWrapper", "addCrossBlacklist", "(", "String", "username", ",", "CrossBlacklist", "[", "]", "blacklists", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "return", "_crossAppClient", ".", "addCrossBlacklist", "(", "username", ...
Add blacklist whose users belong to another app to a given user. @param username The owner of the blacklist @param blacklists CrossBlacklist array @return No Content @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Add", "blacklist", "whose", "users", "belong", "to", "another", "app", "to", "a", "given", "user", "." ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/JMessageClient.java#L619-L622
56,568
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/chatroom/ChatRoomClient.java
ChatRoomClient.createChatRoom
public CreateChatRoomResult createChatRoom(ChatRoomPayload payload) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(null != payload, "ChatRoomPayload should not be null"); ResponseWrapper responseWrapper = _httpClient.sendPost(_baseUrl + mChatRoomPath, payload.toString()...
java
public CreateChatRoomResult createChatRoom(ChatRoomPayload payload) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(null != payload, "ChatRoomPayload should not be null"); ResponseWrapper responseWrapper = _httpClient.sendPost(_baseUrl + mChatRoomPath, payload.toString()...
[ "public", "CreateChatRoomResult", "createChatRoom", "(", "ChatRoomPayload", "payload", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "Preconditions", ".", "checkArgument", "(", "null", "!=", "payload", ",", "\"ChatRoomPayload should not be null\"",...
Create chat room @param payload {@link ChatRoomPayload} @return result contains room id @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Create", "chat", "room" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/chatroom/ChatRoomClient.java#L53-L57
56,569
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/chatroom/ChatRoomClient.java
ChatRoomClient.getBatchChatRoomInfo
public ChatRoomListResult getBatchChatRoomInfo(long... roomIds) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(roomIds != null && roomIds.length > 0, "Room ids should not be null"); JsonArray array = new JsonArray(); for (long id : roomIds) { array.a...
java
public ChatRoomListResult getBatchChatRoomInfo(long... roomIds) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(roomIds != null && roomIds.length > 0, "Room ids should not be null"); JsonArray array = new JsonArray(); for (long id : roomIds) { array.a...
[ "public", "ChatRoomListResult", "getBatchChatRoomInfo", "(", "long", "...", "roomIds", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "Preconditions", ".", "checkArgument", "(", "roomIds", "!=", "null", "&&", "roomIds", ".", "length", ">", ...
Get chat room information by room ids @param roomIds Array of room id @return {@link ChatRoomListResult} @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Get", "chat", "room", "information", "by", "room", "ids" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/chatroom/ChatRoomClient.java#L67-L75
56,570
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/chatroom/ChatRoomClient.java
ChatRoomClient.getUserChatRoomInfo
public ChatRoomListResult getUserChatRoomInfo(String username) throws APIConnectionException, APIRequestException { StringUtils.checkUsername(username); ResponseWrapper responseWrapper = _httpClient.sendGet(_baseUrl + mUserPath + "/" + username + "/chatroom"); return ChatRoomListResult.fromRespo...
java
public ChatRoomListResult getUserChatRoomInfo(String username) throws APIConnectionException, APIRequestException { StringUtils.checkUsername(username); ResponseWrapper responseWrapper = _httpClient.sendGet(_baseUrl + mUserPath + "/" + username + "/chatroom"); return ChatRoomListResult.fromRespo...
[ "public", "ChatRoomListResult", "getUserChatRoomInfo", "(", "String", "username", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "StringUtils", ".", "checkUsername", "(", "username", ")", ";", "ResponseWrapper", "responseWrapper", "=", "_httpCli...
Get user's whole chat room information @param username required @return {@link ChatRoomListResult} @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Get", "user", "s", "whole", "chat", "room", "information" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/chatroom/ChatRoomClient.java#L85-L89
56,571
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/chatroom/ChatRoomClient.java
ChatRoomClient.deleteChatRoom
public ResponseWrapper deleteChatRoom(long roomId) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(roomId > 0, "room id is invalid"); return _httpClient.sendDelete(_baseUrl + mChatRoomPath + "/" + roomId); }
java
public ResponseWrapper deleteChatRoom(long roomId) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(roomId > 0, "room id is invalid"); return _httpClient.sendDelete(_baseUrl + mChatRoomPath + "/" + roomId); }
[ "public", "ResponseWrapper", "deleteChatRoom", "(", "long", "roomId", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "Preconditions", ".", "checkArgument", "(", "roomId", ">", "0", ",", "\"room id is invalid\"", ")", ";", "return", "_httpCli...
Delete chat room by id @param roomId room id @return No content @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Delete", "chat", "room", "by", "id" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/chatroom/ChatRoomClient.java#L139-L142
56,572
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/resource/ResourceClient.java
ResourceClient.downloadFile
public DownloadResult downloadFile(String mediaId) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(null != mediaId, "mediaId is necessary"); ResponseWrapper response = _httpClient.sendGet(_baseUrl + resourcePath + "?mediaId=" + mediaId); return Downl...
java
public DownloadResult downloadFile(String mediaId) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(null != mediaId, "mediaId is necessary"); ResponseWrapper response = _httpClient.sendGet(_baseUrl + resourcePath + "?mediaId=" + mediaId); return Downl...
[ "public", "DownloadResult", "downloadFile", "(", "String", "mediaId", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "Preconditions", ".", "checkArgument", "(", "null", "!=", "mediaId", ",", "\"mediaId is necessary\"", ")", ";", "ResponseWrapp...
Download file with mediaId, will return DownloadResult which include url. @param mediaId Necessary @return DownloadResult @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Download", "file", "with", "mediaId", "will", "return", "DownloadResult", "which", "include", "url", "." ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/resource/ResourceClient.java#L55-L61
56,573
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/reportv2/ReportClient.java
ReportClient.v2GetMessageListByCursor
public MessageListResult v2GetMessageListByCursor(String cursor) throws APIConnectionException, APIRequestException { if (null != cursor) { String requestUrl = mBaseReportPath + mV2MessagePath + "?cursor=" + cursor; ResponseWrapper response = _httpClient.sendGet(requestUrl); ...
java
public MessageListResult v2GetMessageListByCursor(String cursor) throws APIConnectionException, APIRequestException { if (null != cursor) { String requestUrl = mBaseReportPath + mV2MessagePath + "?cursor=" + cursor; ResponseWrapper response = _httpClient.sendGet(requestUrl); ...
[ "public", "MessageListResult", "v2GetMessageListByCursor", "(", "String", "cursor", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "if", "(", "null", "!=", "cursor", ")", "{", "String", "requestUrl", "=", "mBaseReportPath", "+", "mV2MessageP...
Get message list with cursor, the cursor will effective in 120 seconds. And will return same count of messages as first request. @param cursor First request will return cursor @return MessageListResult @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Get", "message", "list", "with", "cursor", "the", "cursor", "will", "effective", "in", "120", "seconds", ".", "And", "will", "return", "same", "count", "of", "messages", "as", "first", "request", "." ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/reportv2/ReportClient.java#L115-L124
56,574
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/crossapp/CrossAppClient.java
CrossAppClient.getCrossGroupMembers
public MemberListResult getCrossGroupMembers(long gid) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(0 != gid, "gid must not be empty"); ResponseWrapper response = _httpClient.sendGet(_baseUrl + crossGroupPath + "/" + gid + "/members/"); return Memb...
java
public MemberListResult getCrossGroupMembers(long gid) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(0 != gid, "gid must not be empty"); ResponseWrapper response = _httpClient.sendGet(_baseUrl + crossGroupPath + "/" + gid + "/members/"); return Memb...
[ "public", "MemberListResult", "getCrossGroupMembers", "(", "long", "gid", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "Preconditions", ".", "checkArgument", "(", "0", "!=", "gid", ",", "\"gid must not be empty\"", ")", ";", "ResponseWrapper...
Get members' info from cross group @param gid Necessary, target group id @return Member info array @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Get", "members", "info", "from", "cross", "group" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/crossapp/CrossAppClient.java#L68-L73
56,575
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/crossapp/CrossAppClient.java
CrossAppClient.deleteCrossBlacklist
public ResponseWrapper deleteCrossBlacklist(String username, CrossBlacklist[] blacklists) throws APIConnectionException, APIRequestException { StringUtils.checkUsername(username); CrossBlacklistPayload payload = new CrossBlacklistPayload.Builder() .setCrossBlacklists(blacklis...
java
public ResponseWrapper deleteCrossBlacklist(String username, CrossBlacklist[] blacklists) throws APIConnectionException, APIRequestException { StringUtils.checkUsername(username); CrossBlacklistPayload payload = new CrossBlacklistPayload.Builder() .setCrossBlacklists(blacklis...
[ "public", "ResponseWrapper", "deleteCrossBlacklist", "(", "String", "username", ",", "CrossBlacklist", "[", "]", "blacklists", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "StringUtils", ".", "checkUsername", "(", "username", ")", ";", "Cr...
Delete blacklist whose users belong to another app from a given user. @param username The owner of the blacklist @param blacklists CrossBlacklist array @return No content @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Delete", "blacklist", "whose", "users", "belong", "to", "another", "app", "from", "a", "given", "user", "." ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/crossapp/CrossAppClient.java#L100-L107
56,576
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/sensitiveword/SensitiveWordClient.java
SensitiveWordClient.deleteSensitiveWord
public ResponseWrapper deleteSensitiveWord(String word) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(word.length() <= 10, "one word's max length is 10"); JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("word", word); return _httpClient...
java
public ResponseWrapper deleteSensitiveWord(String word) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(word.length() <= 10, "one word's max length is 10"); JsonObject jsonObject = new JsonObject(); jsonObject.addProperty("word", word); return _httpClient...
[ "public", "ResponseWrapper", "deleteSensitiveWord", "(", "String", "word", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "Preconditions", ".", "checkArgument", "(", "word", ".", "length", "(", ")", "<=", "10", ",", "\"one word's max length ...
Delete sensitive word @param word word to be deleted @return No content @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Delete", "sensitive", "word" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/sensitiveword/SensitiveWordClient.java#L94-L99
56,577
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/sensitiveword/SensitiveWordClient.java
SensitiveWordClient.updateSensitiveWordStatus
public ResponseWrapper updateSensitiveWordStatus(int status) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(status == 0 || status == 1, "status should be 0 or 1"); return _httpClient.sendPut(_baseUrl + sensitiveWordPath + "/status?status=" + status, null); }
java
public ResponseWrapper updateSensitiveWordStatus(int status) throws APIConnectionException, APIRequestException { Preconditions.checkArgument(status == 0 || status == 1, "status should be 0 or 1"); return _httpClient.sendPut(_baseUrl + sensitiveWordPath + "/status?status=" + status, null); }
[ "public", "ResponseWrapper", "updateSensitiveWordStatus", "(", "int", "status", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "Preconditions", ".", "checkArgument", "(", "status", "==", "0", "||", "status", "==", "1", ",", "\"status should ...
Update sensitive word status @param status 1 represent turn on filtering, 0 represent turn off. @return No content @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Update", "sensitive", "word", "status" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/sensitiveword/SensitiveWordClient.java#L124-L127
56,578
jpush/jmessage-api-java-client
src/main/java/cn/jmessage/api/sensitiveword/SensitiveWordClient.java
SensitiveWordClient.getSensitiveWordStatus
public SensitiveWordStatusResult getSensitiveWordStatus() throws APIConnectionException, APIRequestException { ResponseWrapper responseWrapper = _httpClient.sendGet(_baseUrl + sensitiveWordPath + "/status"); return _gson.fromJson(responseWrapper.responseContent, SensitiveWordStatusResult.class); }
java
public SensitiveWordStatusResult getSensitiveWordStatus() throws APIConnectionException, APIRequestException { ResponseWrapper responseWrapper = _httpClient.sendGet(_baseUrl + sensitiveWordPath + "/status"); return _gson.fromJson(responseWrapper.responseContent, SensitiveWordStatusResult.class); }
[ "public", "SensitiveWordStatusResult", "getSensitiveWordStatus", "(", ")", "throws", "APIConnectionException", ",", "APIRequestException", "{", "ResponseWrapper", "responseWrapper", "=", "_httpClient", ".", "sendGet", "(", "_baseUrl", "+", "sensitiveWordPath", "+", "\"/stat...
Get sensitive word status @return status of sensitive word @throws APIConnectionException connect exception @throws APIRequestException request exception
[ "Get", "sensitive", "word", "status" ]
767f5fb15e9fe5a546c00f6e68b64f6dd53c617c
https://github.com/jpush/jmessage-api-java-client/blob/767f5fb15e9fe5a546c00f6e68b64f6dd53c617c/src/main/java/cn/jmessage/api/sensitiveword/SensitiveWordClient.java#L135-L138
56,579
markushi/android-ui
src/main/java/at/markushi/ui/ActionView.java
ActionView.setAction
public void setAction(final Action fromAction, final Action toAction, final int rotation, long delay) { setAction(fromAction, false, ROTATE_CLOCKWISE); postDelayed(new Runnable() { @Override public void run() { if (!isAttachedToWindow()) { return; } setAction(toAction, true, rotation); } ...
java
public void setAction(final Action fromAction, final Action toAction, final int rotation, long delay) { setAction(fromAction, false, ROTATE_CLOCKWISE); postDelayed(new Runnable() { @Override public void run() { if (!isAttachedToWindow()) { return; } setAction(toAction, true, rotation); } ...
[ "public", "void", "setAction", "(", "final", "Action", "fromAction", ",", "final", "Action", "toAction", ",", "final", "int", "rotation", ",", "long", "delay", ")", "{", "setAction", "(", "fromAction", ",", "false", ",", "ROTATE_CLOCKWISE", ")", ";", "postDe...
Sets a new action transition. @param fromAction The initial action. @param toAction The target action. @param rotation The rotation direction used for the transition {@link #ROTATE_CLOCKWISE} or {@link #ROTATE_COUNTER_CLOCKWISE}. @param delay The delay in ms before the transition is started.
[ "Sets", "a", "new", "action", "transition", "." ]
a589fad7b74ace063c2b0e90741d43225b200a18
https://github.com/markushi/android-ui/blob/a589fad7b74ace063c2b0e90741d43225b200a18/src/main/java/at/markushi/ui/ActionView.java#L215-L226
56,580
markushi/android-ui
src/main/java/at/markushi/ui/RevealColorView.java
RevealColorView.calculateScale
private float calculateScale(int x, int y) { final float centerX = getWidth() / 2f; final float centerY = getHeight() / 2f; final float maxDistance = (float) Math.sqrt(centerX * centerX + centerY * centerY); final float deltaX = centerX - x; final float deltaY = centerY - y; final float distance = (float) ...
java
private float calculateScale(int x, int y) { final float centerX = getWidth() / 2f; final float centerY = getHeight() / 2f; final float maxDistance = (float) Math.sqrt(centerX * centerX + centerY * centerY); final float deltaX = centerX - x; final float deltaY = centerY - y; final float distance = (float) ...
[ "private", "float", "calculateScale", "(", "int", "x", ",", "int", "y", ")", "{", "final", "float", "centerX", "=", "getWidth", "(", ")", "/", "2f", ";", "final", "float", "centerY", "=", "getHeight", "(", ")", "/", "2f", ";", "final", "float", "maxD...
calculates the required scale of the ink-view to fill the whole view @param x circle center x @param y circle center y @return
[ "calculates", "the", "required", "scale", "of", "the", "ink", "-", "view", "to", "fill", "the", "whole", "view" ]
a589fad7b74ace063c2b0e90741d43225b200a18
https://github.com/markushi/android-ui/blob/a589fad7b74ace063c2b0e90741d43225b200a18/src/main/java/at/markushi/ui/RevealColorView.java#L207-L217
56,581
sarl/sarl
docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/SarlDoclet.java
SarlDoclet.validOptions
public static boolean validOptions(String[][] options, DocErrorReporter reporter) { return SARL_DOCLET.configuration.validOptions(options, reporter); }
java
public static boolean validOptions(String[][] options, DocErrorReporter reporter) { return SARL_DOCLET.configuration.validOptions(options, reporter); }
[ "public", "static", "boolean", "validOptions", "(", "String", "[", "]", "[", "]", "options", ",", "DocErrorReporter", "reporter", ")", "{", "return", "SARL_DOCLET", ".", "configuration", ".", "validOptions", "(", "options", ",", "reporter", ")", ";", "}" ]
Validate the given options. @param options the options to validate, which their parameters. @param reporter the receiver of errors. @return the validation status.
[ "Validate", "the", "given", "options", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/SarlDoclet.java#L104-L106
56,582
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/Kernel.java
Kernel.spawn
public List<UUID> spawn(int nbAgents, Class<? extends Agent> agent, Object... params) { return this.spawnService.spawn(nbAgents, null, this.janusContext, null, agent, params); }
java
public List<UUID> spawn(int nbAgents, Class<? extends Agent> agent, Object... params) { return this.spawnService.spawn(nbAgents, null, this.janusContext, null, agent, params); }
[ "public", "List", "<", "UUID", ">", "spawn", "(", "int", "nbAgents", ",", "Class", "<", "?", "extends", "Agent", ">", "agent", ",", "Object", "...", "params", ")", "{", "return", "this", ".", "spawnService", ".", "spawn", "(", "nbAgents", ",", "null", ...
Spawn agents of the given type, and pass the parameters to its initialization function. @param nbAgents the number of agents to spawn. @param agent the type of the agents to spawn. @param params the list of the parameters to pass to the agent initialization function. @return the identifiers of the agents, never <code>...
[ "Spawn", "agents", "of", "the", "given", "type", "and", "pass", "the", "parameters", "to", "its", "initialization", "function", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/Kernel.java#L154-L156
56,583
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/Kernel.java
Kernel.spawn
public UUID spawn(UUID agentID, Class<? extends Agent> agent, Object... params) { final List<UUID> ids = this.spawnService.spawn(1, null, this.janusContext, agentID, agent, params); if (ids.isEmpty()) { return null; } return ids.get(0); }
java
public UUID spawn(UUID agentID, Class<? extends Agent> agent, Object... params) { final List<UUID> ids = this.spawnService.spawn(1, null, this.janusContext, agentID, agent, params); if (ids.isEmpty()) { return null; } return ids.get(0); }
[ "public", "UUID", "spawn", "(", "UUID", "agentID", ",", "Class", "<", "?", "extends", "Agent", ">", "agent", ",", "Object", "...", "params", ")", "{", "final", "List", "<", "UUID", ">", "ids", "=", "this", ".", "spawnService", ".", "spawn", "(", "1",...
Spawn an agent of the given type, and pass the parameters to its initialization function. @param agentID the identifier of the agent to spawn. If <code>null</code> the identifier is randomly selected. @param agent the type of the agent to spawn. @param params the list of the parameters to pass to the agent initializat...
[ "Spawn", "an", "agent", "of", "the", "given", "type", "and", "pass", "the", "parameters", "to", "its", "initialization", "function", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/Kernel.java#L166-L172
56,584
sarl/sarl
sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/Kernel.java
Kernel.getService
public <S extends Service> S getService(Class<S> type) { for (final Service serv : this.serviceManager.servicesByState().values()) { if (serv.isRunning() && type.isInstance(serv)) { return type.cast(serv); } } return null; }
java
public <S extends Service> S getService(Class<S> type) { for (final Service serv : this.serviceManager.servicesByState().values()) { if (serv.isRunning() && type.isInstance(serv)) { return type.cast(serv); } } return null; }
[ "public", "<", "S", "extends", "Service", ">", "S", "getService", "(", "Class", "<", "S", ">", "type", ")", "{", "for", "(", "final", "Service", "serv", ":", "this", ".", "serviceManager", ".", "servicesByState", "(", ")", ".", "values", "(", ")", ")...
Replies a kernel service that is alive. @param <S> - type of the type to reply. @param type type of the type to reply. @return the service, or <code>null</code>.
[ "Replies", "a", "kernel", "service", "that", "is", "alive", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/sre/io.janusproject/io.janusproject.plugin/src/io/janusproject/kernel/Kernel.java#L181-L188
56,585
sarl/sarl
main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/codemining/SARLCodeminingPreferenceAccess.java
SARLCodeminingPreferenceAccess.setCodeminingEnabled
public void setCodeminingEnabled(Boolean enable) { final IPreferenceStore store = getWritablePreferenceStore(null); if (enable == null) { store.setToDefault(CODEMINING_PROPERTY); } else { store.setValue(CODEMINING_PROPERTY, enable.booleanValue()); } }
java
public void setCodeminingEnabled(Boolean enable) { final IPreferenceStore store = getWritablePreferenceStore(null); if (enable == null) { store.setToDefault(CODEMINING_PROPERTY); } else { store.setValue(CODEMINING_PROPERTY, enable.booleanValue()); } }
[ "public", "void", "setCodeminingEnabled", "(", "Boolean", "enable", ")", "{", "final", "IPreferenceStore", "store", "=", "getWritablePreferenceStore", "(", "null", ")", ";", "if", "(", "enable", "==", "null", ")", "{", "store", ".", "setToDefault", "(", "CODEM...
Enable or disable the codemining feature into the SARL editor. @param enable is {@code true} if it is enabled; {@code false} if it is disable; {@code null} to restore the default value. @since 0.8 @see #getWritablePreferenceStore(Object)
[ "Enable", "or", "disable", "the", "codemining", "feature", "into", "the", "SARL", "editor", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.ui/src/io/sarl/lang/ui/codemining/SARLCodeminingPreferenceAccess.java#L69-L76
56,586
sarl/sarl
docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/writers/WriterUtils.java
WriterUtils.addFormalParameter
public static void addFormalParameter(ExecutableMemberDoc member, Parameter param, boolean isVarArg, Content htmlTree, SarlConfiguration configuration, SubWriterHolderWriter writer) { final ProxyInstaller proxyInstaller = configuration.getProxyInstaller(); final ExecutableMemberDoc omember = proxyInstaller.unwra...
java
public static void addFormalParameter(ExecutableMemberDoc member, Parameter param, boolean isVarArg, Content htmlTree, SarlConfiguration configuration, SubWriterHolderWriter writer) { final ProxyInstaller proxyInstaller = configuration.getProxyInstaller(); final ExecutableMemberDoc omember = proxyInstaller.unwra...
[ "public", "static", "void", "addFormalParameter", "(", "ExecutableMemberDoc", "member", ",", "Parameter", "param", ",", "boolean", "isVarArg", ",", "Content", "htmlTree", ",", "SarlConfiguration", "configuration", ",", "SubWriterHolderWriter", "writer", ")", "{", "fin...
Add a parameter to the given executable member. @param member the executable member. @param param the parameter. @param isVarArg indicates if the parameter is variadic. @param htmlTree the output. @param configuration the configuration. @param writer the background writer.
[ "Add", "a", "parameter", "to", "the", "given", "executable", "member", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/docs/io.sarl.docs.doclet/src/main/java/io/sarl/docs/doclet/writers/WriterUtils.java#L58-L89
56,587
sarl/sarl
main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/binding/BindingElement.java
BindingElement.getKeyString
public String getKeyString() { if (!Strings.isEmpty(getAnnotatedWith())) { return MessageFormat.format("@{1} {0}", getBind(), getAnnotatedWith()); //$NON-NLS-1$ } if (!Strings.isEmpty(getAnnotatedWithName())) { return MessageFormat.format("@Named({1}) {0}", getBind(), getAnnotatedWithName()); //$NON-NLS-1$ ...
java
public String getKeyString() { if (!Strings.isEmpty(getAnnotatedWith())) { return MessageFormat.format("@{1} {0}", getBind(), getAnnotatedWith()); //$NON-NLS-1$ } if (!Strings.isEmpty(getAnnotatedWithName())) { return MessageFormat.format("@Named({1}) {0}", getBind(), getAnnotatedWithName()); //$NON-NLS-1$ ...
[ "public", "String", "getKeyString", "(", ")", "{", "if", "(", "!", "Strings", ".", "isEmpty", "(", "getAnnotatedWith", "(", ")", ")", ")", "{", "return", "MessageFormat", ".", "format", "(", "\"@{1} {0}\"", ",", "getBind", "(", ")", ",", "getAnnotatedWith"...
Replies the string representation of the binding key. @return the string representation of the binding key. @since 0.8
[ "Replies", "the", "string", "representation", "of", "the", "binding", "key", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/binding/BindingElement.java#L97-L105
56,588
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java
SREsPreferencePage.refreshSREListUI
protected void refreshSREListUI() { // Refreshes the SRE listing after a SRE install notification, might not // happen on the UI thread. final Display display = Display.getDefault(); if (display.getThread().equals(Thread.currentThread())) { if (!this.sresList.isBusy()) { this.sresList.refresh(); } }...
java
protected void refreshSREListUI() { // Refreshes the SRE listing after a SRE install notification, might not // happen on the UI thread. final Display display = Display.getDefault(); if (display.getThread().equals(Thread.currentThread())) { if (!this.sresList.isBusy()) { this.sresList.refresh(); } }...
[ "protected", "void", "refreshSREListUI", "(", ")", "{", "// Refreshes the SRE listing after a SRE install notification, might not", "// happen on the UI thread.", "final", "Display", "display", "=", "Display", ".", "getDefault", "(", ")", ";", "if", "(", "display", ".", "...
Refresh the UI list of SRE.
[ "Refresh", "the", "UI", "list", "of", "SRE", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java#L161-L180
56,589
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java
SREsPreferencePage.setErrorMessage
public void setErrorMessage(Throwable exception) { if (exception != null) { String message = exception.getLocalizedMessage(); if (Strings.isNullOrEmpty(message)) { message = exception.getMessage(); } if (Strings.isNullOrEmpty(message)) { message = MessageFormat.format(Messages.SREsPreferencePage_9...
java
public void setErrorMessage(Throwable exception) { if (exception != null) { String message = exception.getLocalizedMessage(); if (Strings.isNullOrEmpty(message)) { message = exception.getMessage(); } if (Strings.isNullOrEmpty(message)) { message = MessageFormat.format(Messages.SREsPreferencePage_9...
[ "public", "void", "setErrorMessage", "(", "Throwable", "exception", ")", "{", "if", "(", "exception", "!=", "null", ")", "{", "String", "message", "=", "exception", ".", "getLocalizedMessage", "(", ")", ";", "if", "(", "Strings", ".", "isNullOrEmpty", "(", ...
Set the error message from the given exception. @param exception the exception to log.
[ "Set", "the", "error", "message", "from", "the", "given", "exception", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java#L186-L197
56,590
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java
SREsPreferencePage.setSREs
protected void setSREs(ISREInstall[] sres) { this.sreArray.clear(); for (final ISREInstall sre : sres) { this.sreArray.add(sre); } this.sresList.setInput(this.sreArray); refreshSREListUI(); updateUI(); }
java
protected void setSREs(ISREInstall[] sres) { this.sreArray.clear(); for (final ISREInstall sre : sres) { this.sreArray.add(sre); } this.sresList.setInput(this.sreArray); refreshSREListUI(); updateUI(); }
[ "protected", "void", "setSREs", "(", "ISREInstall", "[", "]", "sres", ")", "{", "this", ".", "sreArray", ".", "clear", "(", ")", ";", "for", "(", "final", "ISREInstall", "sre", ":", "sres", ")", "{", "this", ".", "sreArray", ".", "add", "(", "sre", ...
Sets the SREs to be displayed in this block. @param sres SREs to be displayed
[ "Sets", "the", "SREs", "to", "be", "displayed", "in", "this", "block", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java#L375-L383
56,591
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java
SREsPreferencePage.createUniqueName
public String createUniqueName(String name) { if (!isDuplicateName(name)) { return name; } if (name.matches(".*\\(\\d*\\)")) { //$NON-NLS-1$ final int start = name.lastIndexOf('('); final int end = name.lastIndexOf(')'); final String stringInt = name.substring(start + 1, end); final int numericValu...
java
public String createUniqueName(String name) { if (!isDuplicateName(name)) { return name; } if (name.matches(".*\\(\\d*\\)")) { //$NON-NLS-1$ final int start = name.lastIndexOf('('); final int end = name.lastIndexOf(')'); final String stringInt = name.substring(start + 1, end); final int numericValu...
[ "public", "String", "createUniqueName", "(", "String", "name", ")", "{", "if", "(", "!", "isDuplicateName", "(", "name", ")", ")", "{", "return", "name", ";", "}", "if", "(", "name", ".", "matches", "(", "\".*\\\\(\\\\d*\\\\)\"", ")", ")", "{", "//$NON-N...
Compares the given name against current names and adds the appropriate numerical suffix to ensure that it is unique. @param name the name with which to ensure uniqueness. @return the unique version of the given name.
[ "Compares", "the", "given", "name", "against", "current", "names", "and", "adds", "the", "appropriate", "numerical", "suffix", "to", "ensure", "that", "it", "is", "unique", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java#L429-L442
56,592
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java
SREsPreferencePage.addSRE
protected void addSRE() { final AddSREInstallWizard wizard = new AddSREInstallWizard( createUniqueIdentifier(), this.sreArray.toArray(new ISREInstall[this.sreArray.size()])); final WizardDialog dialog = new WizardDialog(getShell(), wizard); if (dialog.open() == Window.OK) { final ISREInstall result = w...
java
protected void addSRE() { final AddSREInstallWizard wizard = new AddSREInstallWizard( createUniqueIdentifier(), this.sreArray.toArray(new ISREInstall[this.sreArray.size()])); final WizardDialog dialog = new WizardDialog(getShell(), wizard); if (dialog.open() == Window.OK) { final ISREInstall result = w...
[ "protected", "void", "addSRE", "(", ")", "{", "final", "AddSREInstallWizard", "wizard", "=", "new", "AddSREInstallWizard", "(", "createUniqueIdentifier", "(", ")", ",", "this", ".", "sreArray", ".", "toArray", "(", "new", "ISREInstall", "[", "this", ".", "sreA...
Add a SRE.
[ "Add", "a", "SRE", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java#L446-L469
56,593
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java
SREsPreferencePage.editSRE
protected void editSRE() { final IStructuredSelection selection = (IStructuredSelection) this.sresList.getSelection(); final ISREInstall sre = (ISREInstall) selection.getFirstElement(); if (sre == null) { return; } final EditSREInstallWizard wizard = new EditSREInstallWizard( sre, this.sreArray.toArray...
java
protected void editSRE() { final IStructuredSelection selection = (IStructuredSelection) this.sresList.getSelection(); final ISREInstall sre = (ISREInstall) selection.getFirstElement(); if (sre == null) { return; } final EditSREInstallWizard wizard = new EditSREInstallWizard( sre, this.sreArray.toArray...
[ "protected", "void", "editSRE", "(", ")", "{", "final", "IStructuredSelection", "selection", "=", "(", "IStructuredSelection", ")", "this", ".", "sresList", ".", "getSelection", "(", ")", ";", "final", "ISREInstall", "sre", "=", "(", "ISREInstall", ")", "selec...
Edit the selected SRE.
[ "Edit", "the", "selected", "SRE", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java#L473-L487
56,594
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java
SREsPreferencePage.copySRE
@SuppressWarnings("unchecked") protected void copySRE() { final IStructuredSelection selection = (IStructuredSelection) this.sresList.getSelection(); final Iterator<ISREInstall> it = selection.iterator(); final List<ISREInstall> newEntries = new ArrayList<>(); while (it.hasNext()) { final ISREInstall selec...
java
@SuppressWarnings("unchecked") protected void copySRE() { final IStructuredSelection selection = (IStructuredSelection) this.sresList.getSelection(); final Iterator<ISREInstall> it = selection.iterator(); final List<ISREInstall> newEntries = new ArrayList<>(); while (it.hasNext()) { final ISREInstall selec...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "protected", "void", "copySRE", "(", ")", "{", "final", "IStructuredSelection", "selection", "=", "(", "IStructuredSelection", ")", "this", ".", "sresList", ".", "getSelection", "(", ")", ";", "final", "Iterato...
Copy the selected SRE.
[ "Copy", "the", "selected", "SRE", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java#L491-L524
56,595
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java
SREsPreferencePage.removeSREs
@SuppressWarnings("unchecked") protected void removeSREs() { final IStructuredSelection selection = (IStructuredSelection) this.sresList.getSelection(); final ISREInstall[] vms = new ISREInstall[selection.size()]; final Iterator<ISREInstall> iter = selection.iterator(); int i = 0; while (iter.hasNext()) { ...
java
@SuppressWarnings("unchecked") protected void removeSREs() { final IStructuredSelection selection = (IStructuredSelection) this.sresList.getSelection(); final ISREInstall[] vms = new ISREInstall[selection.size()]; final Iterator<ISREInstall> iter = selection.iterator(); int i = 0; while (iter.hasNext()) { ...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "protected", "void", "removeSREs", "(", ")", "{", "final", "IStructuredSelection", "selection", "=", "(", "IStructuredSelection", ")", "this", ".", "sresList", ".", "getSelection", "(", ")", ";", "final", "ISRE...
Remove the selected SREs.
[ "Remove", "the", "selected", "SREs", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java#L528-L539
56,596
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java
SREsPreferencePage.removeSREs
@SuppressWarnings("checkstyle:npathcomplexity") public void removeSREs(ISREInstall... sres) { final ISREInstall defaultSRE = getDefaultSRE(); final String defaultId = defaultSRE == null ? null : defaultSRE.getId(); int defaultIndex = -1; if (defaultId != null) { for (int i = 0; defaultIndex == -1 && i < thi...
java
@SuppressWarnings("checkstyle:npathcomplexity") public void removeSREs(ISREInstall... sres) { final ISREInstall defaultSRE = getDefaultSRE(); final String defaultId = defaultSRE == null ? null : defaultSRE.getId(); int defaultIndex = -1; if (defaultId != null) { for (int i = 0; defaultIndex == -1 && i < thi...
[ "@", "SuppressWarnings", "(", "\"checkstyle:npathcomplexity\"", ")", "public", "void", "removeSREs", "(", "ISREInstall", "...", "sres", ")", "{", "final", "ISREInstall", "defaultSRE", "=", "getDefaultSRE", "(", ")", ";", "final", "String", "defaultId", "=", "defau...
Removes the given SREs from the table. @param sres the SREs to remove.
[ "Removes", "the", "given", "SREs", "from", "the", "table", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java#L546-L586
56,597
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java
SREsPreferencePage.enableButtons
@SuppressWarnings("unchecked") private void enableButtons() { final IStructuredSelection selection = (IStructuredSelection) this.sresList.getSelection(); final int selectionCount = selection.size(); this.editButton.setEnabled(selectionCount == 1); this.copyButton.setEnabled(selectionCount > 0); if (selection...
java
@SuppressWarnings("unchecked") private void enableButtons() { final IStructuredSelection selection = (IStructuredSelection) this.sresList.getSelection(); final int selectionCount = selection.size(); this.editButton.setEnabled(selectionCount == 1); this.copyButton.setEnabled(selectionCount > 0); if (selection...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "void", "enableButtons", "(", ")", "{", "final", "IStructuredSelection", "selection", "=", "(", "IStructuredSelection", ")", "this", ".", "sresList", ".", "getSelection", "(", ")", ";", "final", "int...
Enables the buttons based on selected items counts in the viewer.
[ "Enables", "the", "buttons", "based", "on", "selected", "items", "counts", "in", "the", "viewer", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java#L837-L856
56,598
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java
SREsPreferencePage.sortByName
private void sortByName() { this.sresList.setComparator(new ViewerComparator() { @Override public int compare(Viewer viewer, Object e1, Object e2) { if ((e1 instanceof ISREInstall) && (e2 instanceof ISREInstall)) { final ISREInstall left = (ISREInstall) e1; final ISREInstall right = (ISREInstall) ...
java
private void sortByName() { this.sresList.setComparator(new ViewerComparator() { @Override public int compare(Viewer viewer, Object e1, Object e2) { if ((e1 instanceof ISREInstall) && (e2 instanceof ISREInstall)) { final ISREInstall left = (ISREInstall) e1; final ISREInstall right = (ISREInstall) ...
[ "private", "void", "sortByName", "(", ")", "{", "this", ".", "sresList", ".", "setComparator", "(", "new", "ViewerComparator", "(", ")", "{", "@", "Override", "public", "int", "compare", "(", "Viewer", "viewer", ",", "Object", "e1", ",", "Object", "e2", ...
Sorts by SRE name.
[ "Sorts", "by", "SRE", "name", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java#L861-L879
56,599
sarl/sarl
main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java
SREsPreferencePage.sortByLocation
private void sortByLocation() { this.sresList.setComparator(new ViewerComparator() { @Override public int compare(Viewer viewer, Object e1, Object e2) { if ((e1 instanceof ISREInstall) && (e2 instanceof ISREInstall)) { final ISREInstall left = (ISREInstall) e1; final ISREInstall right = (ISREInsta...
java
private void sortByLocation() { this.sresList.setComparator(new ViewerComparator() { @Override public int compare(Viewer viewer, Object e1, Object e2) { if ((e1 instanceof ISREInstall) && (e2 instanceof ISREInstall)) { final ISREInstall left = (ISREInstall) e1; final ISREInstall right = (ISREInsta...
[ "private", "void", "sortByLocation", "(", ")", "{", "this", ".", "sresList", ".", "setComparator", "(", "new", "ViewerComparator", "(", ")", "{", "@", "Override", "public", "int", "compare", "(", "Viewer", "viewer", ",", "Object", "e1", ",", "Object", "e2"...
Sorts by VM location.
[ "Sorts", "by", "VM", "location", "." ]
ca00ff994598c730339972def4e19a60e0b8cace
https://github.com/sarl/sarl/blob/ca00ff994598c730339972def4e19a60e0b8cace/main/coreplugins/io.sarl.eclipse/src/io/sarl/eclipse/preferences/SREsPreferencePage.java#L884-L902