method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
@Deprecated public void clearMetadataOutput(MetadataOutput output) { removeMetadataOutput(output); }
void function(MetadataOutput output) { removeMetadataOutput(output); }
/** * Equivalent to {@link #removeMetadataOutput(MetadataOutput)}. * * @param output The output to clear. * @deprecated Use {@link #removeMetadataOutput(MetadataOutput)}. */
Equivalent to <code>#removeMetadataOutput(MetadataOutput)</code>
clearMetadataOutput
{ "repo_name": "superbderrick/ExoPlayer", "path": "library/core/src/main/java/com/google/android/exoplayer2/SimpleExoPlayer.java", "license": "apache-2.0", "size": 60373 }
[ "com.google.android.exoplayer2.metadata.MetadataOutput" ]
import com.google.android.exoplayer2.metadata.MetadataOutput;
import com.google.android.exoplayer2.metadata.*;
[ "com.google.android" ]
com.google.android;
33,742
public static void checkAccess(UserGroupInformation ugi, FileStatus file, FsAction action) throws AccessControlException { if (ugi.getShortUserName().equals(file.getOwner())) { if (file.getPermission().getUserAction().implies(action)) { return; } } else if (contains(ugi.getGroupNames...
static void function(UserGroupInformation ugi, FileStatus file, FsAction action) throws AccessControlException { if (ugi.getShortUserName().equals(file.getOwner())) { if (file.getPermission().getUserAction().implies(action)) { return; } } else if (contains(ugi.getGroupNames(), file.getGroup())) { if (file.getPermission...
/** * Throw an exception if an action is not permitted by a user on a file. * * @param ugi * the user * @param file * the file * @param action * the action */
Throw an exception if an action is not permitted by a user on a file
checkAccess
{ "repo_name": "intel-hadoop/hbase-rhino", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java", "license": "apache-2.0", "size": 69381 }
[ "org.apache.hadoop.fs.FileStatus", "org.apache.hadoop.fs.permission.FsAction", "org.apache.hadoop.security.AccessControlException", "org.apache.hadoop.security.UserGroupInformation" ]
import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.permission.FsAction; import org.apache.hadoop.security.AccessControlException; import org.apache.hadoop.security.UserGroupInformation;
import org.apache.hadoop.fs.*; import org.apache.hadoop.fs.permission.*; import org.apache.hadoop.security.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,491,012
public void addContact(String address) throws ImException { if (null == address) { throw new NullPointerException(); } if (mManager.getState() == ContactListManager.BLOCKED_LIST_LOADED) { if (mManager.isBlocked(address)) { throw new ImException(ImErr...
void function(String address) throws ImException { if (null == address) { throw new NullPointerException(); } if (mManager.getState() == ContactListManager.BLOCKED_LIST_LOADED) { if (mManager.isBlocked(address)) { throw new ImException(ImErrorInfo.CANT_ADD_BLOCKED_CONTACT, STR); } } Contact contact = getContact(address...
/** * Add a contact to the list. The contact is specified by its address * string. * * @param address the address string specifies the contact. * @throws IllegalArgumentException if the address is invalid. * @throws NullPointerException if the address string is null * @throws ImExcep...
Add a contact to the list. The contact is specified by its address string
addContact
{ "repo_name": "0359xiaodong/ChatSecureAndroid", "path": "src/info/guardianproject/otr/app/im/engine/ContactList.java", "license": "apache-2.0", "size": 7195 }
[ "info.guardianproject.otr.app.im.plugin.xmpp.XmppAddress" ]
import info.guardianproject.otr.app.im.plugin.xmpp.XmppAddress;
import info.guardianproject.otr.app.im.plugin.xmpp.*;
[ "info.guardianproject.otr" ]
info.guardianproject.otr;
1,401,567
public static NetworkServerControl getNetworkServerControl() throws Exception { TestConfiguration config = TestConfiguration.getCurrent(); final InetAddress host = InetAddress.getByName(config.getHostName()); final int port = config.getPort(); final String user = config.g...
static NetworkServerControl function() throws Exception { TestConfiguration config = TestConfiguration.getCurrent(); final InetAddress host = InetAddress.getByName(config.getHostName()); final int port = config.getPort(); final String user = config.getUserName(); final String password = config.getUserPassword(); if (co...
/** * Return a new NetworkServerControl for the current configuration. */
Return a new NetworkServerControl for the current configuration
getNetworkServerControl
{ "repo_name": "viaper/DBPlus", "path": "DerbyHodgepodge/java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java", "license": "apache-2.0", "size": 27769 }
[ "java.net.InetAddress", "org.apache.derby.drda.NetworkServerControl" ]
import java.net.InetAddress; import org.apache.derby.drda.NetworkServerControl;
import java.net.*; import org.apache.derby.drda.*;
[ "java.net", "org.apache.derby" ]
java.net; org.apache.derby;
1,068,134
public PipelinedShapeModification interceptAdd(PipelinedShapeModification addModification) { if (DEBUG) { System.out.println("interceptAdd"); } convertToPythonElementsAddOrRemove(addModification, true); return addModification; }
PipelinedShapeModification function(PipelinedShapeModification addModification) { if (DEBUG) { System.out.println(STR); } convertToPythonElementsAddOrRemove(addModification, true); return addModification; }
/** * This method intercepts some addition to the tree and converts its elements to python * elements. * * @see org.eclipse.ui.navigator.IPipelinedTreeContentProvider#interceptAdd(org.eclipse.ui.navigator.PipelinedShapeModification) */
This method intercepts some addition to the tree and converts its elements to python elements
interceptAdd
{ "repo_name": "smkr/pyclipse", "path": "plugins/org.python.pydev/src_navigator/org/python/pydev/navigator/PythonModelProvider.java", "license": "epl-1.0", "size": 28874 }
[ "org.eclipse.ui.navigator.PipelinedShapeModification" ]
import org.eclipse.ui.navigator.PipelinedShapeModification;
import org.eclipse.ui.navigator.*;
[ "org.eclipse.ui" ]
org.eclipse.ui;
2,138,446
public void setFilter(LSSerializerFilter filter) { fSerializerFilter = filter; }
void function(LSSerializerFilter filter) { fSerializerFilter = filter; }
/** * Set a LSSerilizerFilter on the LSSerializer. When set, the filter is * called before each node is serialized which depending on its implemention * determines if the node is to be serialized or not. * * @see org.w3c.dom.ls.LSSerializer#setFilter * @since DOM Level 3 * @param fil...
Set a LSSerilizerFilter on the LSSerializer. When set, the filter is called before each node is serialized which depending on its implemention determines if the node is to be serialized or not
setFilter
{ "repo_name": "md-5/jdk10", "path": "src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/dom3/LSSerializerImpl.java", "license": "gpl-2.0", "size": 65392 }
[ "org.w3c.dom.ls.LSSerializerFilter" ]
import org.w3c.dom.ls.LSSerializerFilter;
import org.w3c.dom.ls.*;
[ "org.w3c.dom" ]
org.w3c.dom;
2,544,711
protected IndexShard reinitShard(IndexShard current, IndexingOperationListener... listeners) throws IOException { final ShardRouting shardRouting = current.routingEntry(); return reinitShard(current, ShardRoutingHelper.initWithSameId(shardRouting, shardRouting.primary() ? RecoverySource....
IndexShard function(IndexShard current, IndexingOperationListener... listeners) throws IOException { final ShardRouting shardRouting = current.routingEntry(); return reinitShard(current, ShardRoutingHelper.initWithSameId(shardRouting, shardRouting.primary() ? RecoverySource.StoreRecoverySource.EXISTING_STORE_INSTANCE :...
/** * Takes an existing shard, closes it and and starts a new initialing shard at the same location * * @param listeners new listerns to use for the newly created shard */
Takes an existing shard, closes it and and starts a new initialing shard at the same location
reinitShard
{ "repo_name": "fernandozhu/elasticsearch", "path": "test/framework/src/main/java/org/elasticsearch/index/shard/IndexShardTestCase.java", "license": "apache-2.0", "size": 24846 }
[ "java.io.IOException", "org.elasticsearch.cluster.routing.RecoverySource", "org.elasticsearch.cluster.routing.ShardRouting", "org.elasticsearch.cluster.routing.ShardRoutingHelper" ]
import java.io.IOException; import org.elasticsearch.cluster.routing.RecoverySource; import org.elasticsearch.cluster.routing.ShardRouting; import org.elasticsearch.cluster.routing.ShardRoutingHelper;
import java.io.*; import org.elasticsearch.cluster.routing.*;
[ "java.io", "org.elasticsearch.cluster" ]
java.io; org.elasticsearch.cluster;
1,259,063
public synchronized void addNotOverriddenDependency(RVMMethod source, CompiledMethod cm) { int cmid = cm.getId(); if (TRACE || DEBUG) { report("CLDM: " + cmid + "(" + cm.getMethod() + ") is dependent on " + source + " not being overridden\n"); } db.addNotOverriddenDependency(source, cmid); }
synchronized void function(RVMMethod source, CompiledMethod cm) { int cmid = cm.getId(); if (TRACE DEBUG) { report(STR + cmid + "(" + cm.getMethod() + STR + source + STR); } db.addNotOverriddenDependency(source, cmid); }
/** * Record that the code currently being compiled (cm) must be * invalidated if source is overridden. */
Record that the code currently being compiled (cm) must be invalidated if source is overridden
addNotOverriddenDependency
{ "repo_name": "ut-osa/laminar", "path": "jikesrvm-3.0.0/rvm/src/org/jikesrvm/compilers/opt/inlining/ClassLoadingDependencyManager.java", "license": "bsd-3-clause", "size": 6665 }
[ "org.jikesrvm.classloader.RVMMethod", "org.jikesrvm.compilers.common.CompiledMethod" ]
import org.jikesrvm.classloader.RVMMethod; import org.jikesrvm.compilers.common.CompiledMethod;
import org.jikesrvm.classloader.*; import org.jikesrvm.compilers.common.*;
[ "org.jikesrvm.classloader", "org.jikesrvm.compilers" ]
org.jikesrvm.classloader; org.jikesrvm.compilers;
1,621,487
@Test public void whenEqualsAndHashOverridedThen() { Map<User, Object> users = new HashMap<>(); User userOne = new UserEqualsHash("Vasya", 1, calend); User userTwo = new UserEqualsHash("Vasya", 1, calend); users.put(userOne, "1"); users.put(userTwo, "1"); System.o...
void function() { Map<User, Object> users = new HashMap<>(); User userOne = new UserEqualsHash("Vasya", 1, calend); User userTwo = new UserEqualsHash("Vasya", 1, calend); users.put(userOne, "1"); users.put(userTwo, "1"); System.out.println(users); }
/** * Test-method to see result when adding users with overrided equals and without hashcode. */
Test-method to see result when adding users with overrided equals and without hashcode
whenEqualsAndHashOverridedThen
{ "repo_name": "V1toss/JavaPA", "path": "part_5/map/src/test/java/vkaretko/UserTest.java", "license": "apache-2.0", "size": 2331 }
[ "java.util.HashMap", "java.util.Map" ]
import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
893,771
//=============================================================================== // Expose JMX attributes through Tomcat's dynamic reflection //=============================================================================== public int getIdle() { try { return createPool().getIdle(); ...
int function() { try { return createPool().getIdle(); }catch (SQLException x) { throw new RuntimeException(x); } } /** * {@link #getIdle()}
/** * If the pool has not been created, it will be created during this call. * @return the number of established but idle connections */
If the pool has not been created, it will be created during this call
getIdle
{ "repo_name": "pistolove/sourcecode4junit", "path": "Source4Tomcat/src/org/apache/tomcat/jdbc/pool/DataSourceProxy.java", "license": "apache-2.0", "size": 28225 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
664,543
public static void removeMagicResponseContextFields(Map<String, Object> responseContext) { responseContext.remove(DirectDruidClient.QUERY_TOTAL_BYTES_GATHERED); }
static void function(Map<String, Object> responseContext) { responseContext.remove(DirectDruidClient.QUERY_TOTAL_BYTES_GATHERED); }
/** * Removes the magical fields added by {@link #makeResponseContextForQuery()}. */
Removes the magical fields added by <code>#makeResponseContextForQuery()</code>
removeMagicResponseContextFields
{ "repo_name": "dkhwangbo/druid", "path": "server/src/main/java/org/apache/druid/client/DirectDruidClient.java", "license": "apache-2.0", "size": 21953 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,883,383
public void objectStop(Appendable out) throws IOException { out.append('}'); }
void function(Appendable out) throws IOException { out.append('}'); }
/** * terminate Object */
terminate Object
objectStop
{ "repo_name": "netplex/json-smart-v2", "path": "json-smart/src/main/java/net/minidev/json/JSONStyle.java", "license": "apache-2.0", "size": 4569 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,300,501
@Test public void testSFRemoteInterface_get_set_double() throws Exception { double originalValue = fejb1.getDoubleValue(); fejb1.setDoubleValue((originalValue + 1.0)); assertEquals("Set value test was unexpected value", fejb1.getDoubleValue(), (originalValue + 1.0), DDELTA); fejb...
void function() throws Exception { double originalValue = fejb1.getDoubleValue(); fejb1.setDoubleValue((originalValue + 1.0)); assertEquals(STR, fejb1.getDoubleValue(), (originalValue + 1.0), DDELTA); fejb1.setDoubleValue(originalValue); assertEquals(STR, fejb1.getDoubleValue(), originalValue, DDELTA); }
/** * (bmg08) Test Stateful remote get/set methods for double value. */
(bmg08) Test Stateful remote get/set methods for double value
testSFRemoteInterface_get_set_double
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.ejbcontainer.legacy_fat/test-applications/EJB2XRemoteSpecWeb.war/src/com/ibm/ejb2x/base/spec/sfr/web/SFRemoteInterfaceMethodServlet.java", "license": "epl-1.0", "size": 13304 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,310,723
public void setCount(final Integer countValue) { this.count = countValue; } private Calendar endTime;
void function(final Integer countValue) { this.count = countValue; } private Calendar endTime;
/** * Optional. Count of occurrences that will execute. Optional. Default will * recur infinitely * @param countValue The Count value. */
Optional. Count of occurrences that will execute. Optional. Default will recur infinitely
setCount
{ "repo_name": "flydream2046/azure-sdk-for-java", "path": "service-management/azure-svc-mgmt-scheduler/src/main/java/com/microsoft/windowsazure/scheduler/models/JobRecurrence.java", "license": "apache-2.0", "size": 3867 }
[ "java.util.Calendar" ]
import java.util.Calendar;
import java.util.*;
[ "java.util" ]
java.util;
397,353
public static void main(final String[] args) throws Exception { new DatabaseFactory().initializeDatabase(); SingletonRepository.getRPWorld(); //Configuration.setConfigurationFile("marauroa-prod.ini"); final ItemDumper itemDumper = new ItemDumper(); itemDumper.dump(); }
static void function(final String[] args) throws Exception { new DatabaseFactory().initializeDatabase(); SingletonRepository.getRPWorld(); final ItemDumper itemDumper = new ItemDumper(); itemDumper.dump(); }
/** * starts the ItemDumper. * * @param args * ignored * @throws Exception * in case of an unexpected item */
starts the ItemDumper
main
{ "repo_name": "sourceress-project/archestica", "path": "src/games/stendhal/tools/statistics/ItemDumper.java", "license": "gpl-2.0", "size": 4330 }
[ "games.stendhal.server.core.engine.SingletonRepository" ]
import games.stendhal.server.core.engine.SingletonRepository;
import games.stendhal.server.core.engine.*;
[ "games.stendhal.server" ]
games.stendhal.server;
1,996,489
private void removeBookmarkTrackingIcons() { if (trackingIcons!=null) { for (Iterator i=trackingIcons.iterator(); i.hasNext(); ) { GutterIconImpl ti = (GutterIconImpl)i.next(); if (ti.getIcon()==bookmarkIcon) { i.remove(); } } } }
void function() { if (trackingIcons!=null) { for (Iterator i=trackingIcons.iterator(); i.hasNext(); ) { GutterIconImpl ti = (GutterIconImpl)i.next(); if (ti.getIcon()==bookmarkIcon) { i.remove(); } } } }
/** * Removes all bookmark tracking icons. */
Removes all bookmark tracking icons
removeBookmarkTrackingIcons
{ "repo_name": "thomasgalvin/ThirdParty", "path": "RText/RText-Editor/src/main/java/org/fife/ui/rtextarea/IconRowHeader.java", "license": "apache-2.0", "size": 21561 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,066,630
EAttribute getVerbatimExpression_Code();
EAttribute getVerbatimExpression_Code();
/** * Returns the meta object for the attribute '{@link org.xtext.example.statemachine.statemachine.VerbatimExpression#getCode <em>Code</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Code</em>'. * @see org.xtext.example.statemachine.statemachine...
Returns the meta object for the attribute '<code>org.xtext.example.statemachine.statemachine.VerbatimExpression#getCode Code</code>'.
getVerbatimExpression_Code
{ "repo_name": "spoenemann/xtext-gef", "path": "org.xtext.example.statemachine/src-gen/org/xtext/example/statemachine/statemachine/StatemachinePackage.java", "license": "epl-1.0", "size": 33686 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
955,614
public void rollBackConnection() throws SQLException;
void function() throws SQLException;
/** * Roll back connection. * * @throws SQLException the SQL exception */
Roll back connection
rollBackConnection
{ "repo_name": "Appgree/db-utils", "path": "src/main/java/com/appgree/core/database/provider/DataBaseProvider.java", "license": "apache-2.0", "size": 1430 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,588,917
public static void assertEqualsIsReflexive(Object obj) { assertThat(obj).isEqualTo(obj); }
static void function(Object obj) { assertThat(obj).isEqualTo(obj); }
/** * Verifies that the {@code equals} implementation of the given object is reflexive: the object must be equal to * itself, which it would be at any given instance; unless you intentionally override the equals method to behave * otherwise. * @param obj the object to verify. * @throws AssertionError if ...
Verifies that the equals implementation of the given object is reflexive: the object must be equal to itself, which it would be at any given instance; unless you intentionally override the equals method to behave otherwise
assertEqualsIsReflexive
{ "repo_name": "xasx/assertj-core", "path": "src/test/java/org/assertj/core/test/EqualsHashCodeContractAssert.java", "license": "apache-2.0", "size": 4393 }
[ "org.assertj.core.api.Assertions" ]
import org.assertj.core.api.Assertions;
import org.assertj.core.api.*;
[ "org.assertj.core" ]
org.assertj.core;
721,374
@Test public void testLongStreamGaussian() throws Exception { System.out.println("********** testLongStreamGaussian"); ContentName basename = ContentName.fromNative(prefix, String.format("content_%016X", _rnd.nextLong())); TestListener listener = new TestListener(); TestVIM vim = new TestVIM(sinkhandle, b...
void function() throws Exception { System.out.println(STR); ContentName basename = ContentName.fromNative(prefix, String.format(STR, _rnd.nextLong())); TestListener listener = new TestListener(); TestVIM vim = new TestVIM(sinkhandle, basename, null, VersionNumber.getMinimumVersion(), listener); vim.setSendInterest(true...
/** * Send a very long stream with arrivals normally distributed around a spot * @throws Exception */
Send a very long stream with arrivals normally distributed around a spot
testLongStreamGaussian
{ "repo_name": "yyhpys/ccnx-trace-interest", "path": "javasrc/src/org/ccnx/ccn/test/profiles/versioning/VersioningInterestManagerTestRepo.java", "license": "lgpl-2.1", "size": 17246 }
[ "junit.framework.Assert", "org.ccnx.ccn.profiles.versioning.VersionNumber", "org.ccnx.ccn.profiles.versioning.VersioningInterestManager", "org.ccnx.ccn.protocol.CCNTime", "org.ccnx.ccn.protocol.ContentName", "org.ccnx.ccn.test.profiles.versioning.VersioningHelper" ]
import junit.framework.Assert; import org.ccnx.ccn.profiles.versioning.VersionNumber; import org.ccnx.ccn.profiles.versioning.VersioningInterestManager; import org.ccnx.ccn.protocol.CCNTime; import org.ccnx.ccn.protocol.ContentName; import org.ccnx.ccn.test.profiles.versioning.VersioningHelper;
import junit.framework.*; import org.ccnx.ccn.profiles.versioning.*; import org.ccnx.ccn.protocol.*; import org.ccnx.ccn.test.profiles.versioning.*;
[ "junit.framework", "org.ccnx.ccn" ]
junit.framework; org.ccnx.ccn;
1,696,397
ControllerServiceReferencingComponentsEntity getControllerServiceReferencingComponents(String controllerServiceId);
ControllerServiceReferencingComponentsEntity getControllerServiceReferencingComponents(String controllerServiceId);
/** * Gets the references for specified controller service. * * @param controllerServiceId id * @return service reference */
Gets the references for specified controller service
getControllerServiceReferencingComponents
{ "repo_name": "mcgilman/nifi", "path": "nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/NiFiServiceFacade.java", "license": "apache-2.0", "size": 85713 }
[ "org.apache.nifi.web.api.entity.ControllerServiceReferencingComponentsEntity" ]
import org.apache.nifi.web.api.entity.ControllerServiceReferencingComponentsEntity;
import org.apache.nifi.web.api.entity.*;
[ "org.apache.nifi" ]
org.apache.nifi;
2,542,536
void herk(char Order, char Uplo, char Trans, IComplexNumber alpha, IComplexNDArray A, IComplexNumber beta, IComplexNDArray C);
void herk(char Order, char Uplo, char Trans, IComplexNumber alpha, IComplexNDArray A, IComplexNumber beta, IComplexNDArray C);
/** * herk performs a rank-n update of a Hermitian matrix, that is, one of the following operations: c := alpha*a*conjug(a') + beta*c for trans = 'N'or'n' c := alpha*conjug(a')*a + beta*c for trans = 'C'or'c', where c is an n-by-n Hermitian matrix; a is an n-by-k matrix, if trans = 'N'or'n', ...
herk performs a rank-n update of a Hermitian matrix, that is, one of the following operations: a*conjug(a') + beta*c for trans = 'N'or'n' conjug(a')*a + beta*c for trans = 'C'or'c'
herk
{ "repo_name": "smarthi/nd4j", "path": "nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/api/blas/Level3.java", "license": "apache-2.0", "size": 10742 }
[ "org.nd4j.linalg.api.complex.IComplexNDArray", "org.nd4j.linalg.api.complex.IComplexNumber" ]
import org.nd4j.linalg.api.complex.IComplexNDArray; import org.nd4j.linalg.api.complex.IComplexNumber;
import org.nd4j.linalg.api.complex.*;
[ "org.nd4j.linalg" ]
org.nd4j.linalg;
1,605,533
protected Pair<Boolean, Set<Throwable>> evaluateAuthenticationPolicies(final Authentication authentication, final AuthenticationTransaction transaction, final Set<Aut...
Pair<Boolean, Set<Throwable>> function(final Authentication authentication, final AuthenticationTransaction transaction, final Set<AuthenticationHandler> authenticationHandlers) { val failures = new LinkedHashSet<Throwable>(); val policies = authenticationEventExecutionPlan.getAuthenticationPolicies(transaction); polic...
/** * Evaluate authentication policies. * * @param authentication the authentication * @param transaction the transaction * @param authenticationHandlers the authentication handlers * @return true /false */
Evaluate authentication policies
evaluateAuthenticationPolicies
{ "repo_name": "GIP-RECIA/cas", "path": "core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/PolicyBasedAuthenticationManager.java", "license": "apache-2.0", "size": 20195 }
[ "java.security.GeneralSecurityException", "java.util.LinkedHashSet", "java.util.Set", "java.util.stream.Collectors", "org.apache.commons.lang3.tuple.Pair" ]
import java.security.GeneralSecurityException; import java.util.LinkedHashSet; import java.util.Set; import java.util.stream.Collectors; import org.apache.commons.lang3.tuple.Pair;
import java.security.*; import java.util.*; import java.util.stream.*; import org.apache.commons.lang3.tuple.*;
[ "java.security", "java.util", "org.apache.commons" ]
java.security; java.util; org.apache.commons;
2,002,053
@Override protected void renderItem(final LoopItem loopItem) { // Call default implementation super.renderItem(loopItem); // Add separator if not last page if (separator != null && (loopItem.getIndex() != getIterations() - 1)) { getResponse().write(separator); } }
void function(final LoopItem loopItem) { super.renderItem(loopItem); if (separator != null && (loopItem.getIndex() != getIterations() - 1)) { getResponse().write(separator); } }
/** * Renders the page link. Add the separator if not the last page link * * @see Loop#renderItem(org.apache.wicket.markup.html.list.LoopItem) */
Renders the page link. Add the separator if not the last page link
renderItem
{ "repo_name": "zwsong/wicket", "path": "wicket-core/src/main/java/org/apache/wicket/markup/html/navigation/paging/PagingNavigation.java", "license": "apache-2.0", "size": 11396 }
[ "org.apache.wicket.markup.html.list.LoopItem" ]
import org.apache.wicket.markup.html.list.LoopItem;
import org.apache.wicket.markup.html.list.*;
[ "org.apache.wicket" ]
org.apache.wicket;
1,121,949
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 response.setHeader("Pragma","no-cache"); /...
void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(STR); response.setHeader(STR,STR); response.setHeader(STR,STR); response.setDateHeader (STR, 0); HttpSession session = request.getSession(); this.userSess = (UserSession) session.getAtt...
/** * Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */
Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods
processRequest
{ "repo_name": "katropine/firepass", "path": "src/java/com/katropine/controller/CoreServlet.java", "license": "mit", "size": 5666 }
[ "com.katropine.helper.Acl", "com.katropine.helper.AclResourceGroup", "com.katropine.model.ResourceGroup", "com.katropine.model.User", "com.katropine.model.UserSession", "java.io.IOException", "java.util.List", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servle...
import com.katropine.helper.Acl; import com.katropine.helper.AclResourceGroup; import com.katropine.model.ResourceGroup; import com.katropine.model.User; import com.katropine.model.UserSession; import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServle...
import com.katropine.helper.*; import com.katropine.model.*; import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*;
[ "com.katropine.helper", "com.katropine.model", "java.io", "java.util", "javax.servlet" ]
com.katropine.helper; com.katropine.model; java.io; java.util; javax.servlet;
2,742,573
void spaces(PrintWriter pw, int n) { while (n-- > 0) pw.print(' '); }
void spaces(PrintWriter pw, int n) { while (n-- > 0) pw.print(' '); }
/** * Make spaces. */
Make spaces
spaces
{ "repo_name": "psoreide/bnd", "path": "aQute.libg/src/aQute/lib/tag/Tag.java", "license": "apache-2.0", "size": 19156 }
[ "java.io.PrintWriter" ]
import java.io.PrintWriter;
import java.io.*;
[ "java.io" ]
java.io;
2,403,193
@ApiMethod(name = "getProfile", path = "profile", httpMethod = HttpMethod.GET) public Profile getProfile(final User user) throws UnauthorizedException { if (user == null) { throw new UnauthorizedException("Authorization required"); } // load the Profile Entity String userId = user.getUserId(); Key key...
@ApiMethod(name = STR, path = STR, httpMethod = HttpMethod.GET) Profile function(final User user) throws UnauthorizedException { if (user == null) { throw new UnauthorizedException(STR); } String userId = user.getUserId(); Key key = Key.create(Profile.class, userId); Profile profile = (Profile) ofy().load().key(key).no...
/** * Returns a Profile object associated with the given user object. The cloud * endpoints system automatically inject the User object. * * @param user * A User object injected by the cloud endpoints. * @return Profile object. * @throws UnauthorizedException * when the User objec...
Returns a Profile object associated with the given user object. The cloud endpoints system automatically inject the User object
getProfile
{ "repo_name": "valllllll2000/udacity_course_gae", "path": "Lesson_2/00_Conference_Central/src/main/java/com/google/devrel/training/conference/spi/ConferenceApi.java", "license": "gpl-3.0", "size": 17396 }
[ "com.google.api.server.spi.config.ApiMethod", "com.google.api.server.spi.response.UnauthorizedException", "com.google.appengine.api.users.User", "com.google.devrel.training.conference.domain.Profile", "com.google.devrel.training.conference.service.OfyService", "com.googlecode.objectify.Key" ]
import com.google.api.server.spi.config.ApiMethod; import com.google.api.server.spi.response.UnauthorizedException; import com.google.appengine.api.users.User; import com.google.devrel.training.conference.domain.Profile; import com.google.devrel.training.conference.service.OfyService; import com.googlecode.objectify.Ke...
import com.google.api.server.spi.config.*; import com.google.api.server.spi.response.*; import com.google.appengine.api.users.*; import com.google.devrel.training.conference.domain.*; import com.google.devrel.training.conference.service.*; import com.googlecode.objectify.*;
[ "com.google.api", "com.google.appengine", "com.google.devrel", "com.googlecode.objectify" ]
com.google.api; com.google.appengine; com.google.devrel; com.googlecode.objectify;
434,753
public Observable<ServiceResponse<ImageInner>> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String imageName, String expand) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } ...
Observable<ServiceResponse<ImageInner>> function(String resourceGroupName, String imageName, String expand) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (imageName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionId() == null) { throw new IllegalArgum...
/** * Gets an image. * * @param resourceGroupName The name of the resource group. * @param imageName The name of the image. * @param expand The expand expression to apply on the operation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observ...
Gets an image
getByResourceGroupWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/compute/mgmt-v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/ImagesInner.java", "license": "mit", "size": 58594 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,957,225
@Test public void testAddPrivateFeature() throws Throwable { File simpleEsa = new File(esaDir, "simple.hidden.esa"); EsaResourceWritable featureInMassive = uploadAsset(simpleEsa); assertEquals( "The symbolic name should have been set to the value in the ESA file", ...
void function() throws Throwable { File simpleEsa = new File(esaDir, STR); EsaResourceWritable featureInMassive = uploadAsset(simpleEsa); assertEquals( STR, STR, featureInMassive.getProvideFeature()); assertEquals(STR, DisplayPolicy.HIDDEN, featureInMassive.getDisplayPolicy()); assertEquals(STR, DisplayPolicy.HIDDEN, r...
/** * Test to make sure that private features can be added to Massive * * @throws Throwable */
Test to make sure that private features can be added to Massive
testAddPrivateFeature
{ "repo_name": "WASdev/tool.lars", "path": "upload-lib/src/fat/java/com/ibm/ws/massive/esa/MassiveEsaTest.java", "license": "apache-2.0", "size": 73685 }
[ "com.ibm.ws.lars.testutils.ReflectionTricks", "com.ibm.ws.repository.common.enums.DisplayPolicy", "com.ibm.ws.repository.common.enums.State", "com.ibm.ws.repository.resources.writeable.EsaResourceWritable", "java.io.File", "org.junit.Assert" ]
import com.ibm.ws.lars.testutils.ReflectionTricks; import com.ibm.ws.repository.common.enums.DisplayPolicy; import com.ibm.ws.repository.common.enums.State; import com.ibm.ws.repository.resources.writeable.EsaResourceWritable; import java.io.File; import org.junit.Assert;
import com.ibm.ws.lars.testutils.*; import com.ibm.ws.repository.common.enums.*; import com.ibm.ws.repository.resources.writeable.*; import java.io.*; import org.junit.*;
[ "com.ibm.ws", "java.io", "org.junit" ]
com.ibm.ws; java.io; org.junit;
2,480,966
public void setMaxQuantity(BigDecimal maxQuantity) { this._maxQuantity = maxQuantity; }
void function(BigDecimal maxQuantity) { this._maxQuantity = maxQuantity; }
/** * Sets the maximum quantity, exclusive, null for no maximum. * @param maxQuantity the new value of the property */
Sets the maximum quantity, exclusive, null for no maximum
setMaxQuantity
{ "repo_name": "jeorme/OG-Platform", "path": "projects/OG-Master/src/main/java/com/opengamma/master/position/PositionSearchRequest.java", "license": "apache-2.0", "size": 29168 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
2,058,802
if (file.isDirectory()) { final File[] files = file.listFiles(); return files == null || files.length == 0; } else { return file.length() == 0; } }
if (file.isDirectory()) { final File[] files = file.listFiles(); return files == null files.length == 0; } else { return file.length() == 0; } }
/** * Checks to see if the file is empty. * * @param file the file or directory to check * @return {@code true} if the file or directory * is <i>empty</i>, otherwise {@code false}. */
Checks to see if the file is empty
accept
{ "repo_name": "pimtegelaar/commons-io-test3", "path": "src/main/java/org/apache/commons/io/filefilter/EmptyFileFilter.java", "license": "apache-2.0", "size": 2699 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
431,209
// for testing only public static void main(String args[]) { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException e) { // do nothing } catch (InstantiationException e) { // do nothing } catch (IllegalAccessException e) { // do nothing }...
static void function(String args[]) { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException e) { } catch (InstantiationException e) { } catch (IllegalAccessException e) { } catch (UnsupportedLookAndFeelException e) { } theGUI = new GUI(null); } public GUI(Jg jg) { su...
/** * The main method. * * @param args * the arguments */
The main method
main
{ "repo_name": "apache/uima-uimaj", "path": "uimaj-tools/src/main/java/org/apache/uima/tools/jcasgen/GUI.java", "license": "apache-2.0", "size": 12369 }
[ "java.awt.BorderLayout", "java.awt.Color", "java.io.IOException", "javax.swing.JLabel", "javax.swing.UIManager", "javax.swing.UnsupportedLookAndFeelException", "org.apache.uima.tools.images.Images", "org.apache.uima.tools.util.gui.AboutDialog" ]
import java.awt.BorderLayout; import java.awt.Color; import java.io.IOException; import javax.swing.JLabel; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import org.apache.uima.tools.images.Images; import org.apache.uima.tools.util.gui.AboutDialog;
import java.awt.*; import java.io.*; import javax.swing.*; import org.apache.uima.tools.images.*; import org.apache.uima.tools.util.gui.*;
[ "java.awt", "java.io", "javax.swing", "org.apache.uima" ]
java.awt; java.io; javax.swing; org.apache.uima;
1,289,353
public String getEndpointConfiguredDestinationName() { String remainder = ObjectHelper.after(getEndpointKey(), "//"); if (remainder != null && remainder.contains("@")) { remainder = remainder.substring(remainder.indexOf('@')); } if (remainder != null && remainder.contai...
String function() { String remainder = ObjectHelper.after(getEndpointKey(), STR@STR?STR?"); } if (ObjectHelper.isEmpty(remainder)) { return remainder; } return remainder; }
/** * Gets the destination name which was configured from the endpoint uri. * * @return the destination name resolved from the endpoint uri */
Gets the destination name which was configured from the endpoint uri
getEndpointConfiguredDestinationName
{ "repo_name": "logzio/camel", "path": "components/camel-jcr/src/main/java/org/apache/camel/component/jcr/JcrEndpoint.java", "license": "apache-2.0", "size": 8948 }
[ "org.apache.camel.util.ObjectHelper" ]
import org.apache.camel.util.ObjectHelper;
import org.apache.camel.util.*;
[ "org.apache.camel" ]
org.apache.camel;
136,439
protected Set<String> figureOutUniqueQualificationSetForDelegation(List<RoleDocumentDelegationMember> memberships, List<KimAttributeField> attributeDefinitions) { Set<String> uniqueAttributeIds = new HashSet<String>(); if (memberships != null && memberships.size() > 1) { // if there aren't two or more...
Set<String> function(List<RoleDocumentDelegationMember> memberships, List<KimAttributeField> attributeDefinitions) { Set<String> uniqueAttributeIds = new HashSet<String>(); if (memberships != null && memberships.size() > 1) { RoleDocumentDelegationMember membership = memberships.get(0); for (RoleDocumentDelegationMembe...
/** * Finds the names of the unique qualification attributes which this role should be checking against * * @param memberships the memberships (we take the qualification from the first) * @param attributeDefinitions information about the attributeDefinitions * @return a Set of unique attri...
Finds the names of the unique qualification attributes which this role should be checking against
figureOutUniqueQualificationSetForDelegation
{ "repo_name": "ricepanda/rice-git3", "path": "rice-middleware/impl/src/main/java/org/kuali/rice/kim/document/rule/IdentityManagementRoleDocumentRule.java", "license": "apache-2.0", "size": 46012 }
[ "java.util.HashSet", "java.util.List", "java.util.Set", "org.apache.commons.lang.StringUtils", "org.kuali.rice.kim.api.type.KimAttributeField", "org.kuali.rice.kim.bo.ui.RoleDocumentDelegationMember", "org.kuali.rice.kim.bo.ui.RoleDocumentDelegationMemberQualifier", "org.kuali.rice.kns.kim.type.DataDi...
import java.util.HashSet; import java.util.List; import java.util.Set; import org.apache.commons.lang.StringUtils; import org.kuali.rice.kim.api.type.KimAttributeField; import org.kuali.rice.kim.bo.ui.RoleDocumentDelegationMember; import org.kuali.rice.kim.bo.ui.RoleDocumentDelegationMemberQualifier; import org.kuali.r...
import java.util.*; import org.apache.commons.lang.*; import org.kuali.rice.kim.api.type.*; import org.kuali.rice.kim.bo.ui.*; import org.kuali.rice.kns.kim.type.*;
[ "java.util", "org.apache.commons", "org.kuali.rice" ]
java.util; org.apache.commons; org.kuali.rice;
80,595
List<User> findUsersByName(PerunSession sess, String searchString) throws PrivilegeException;
List<User> findUsersByName(PerunSession sess, String searchString) throws PrivilegeException;
/** * Returns list of users who matches the searchString * * @param sess * @param searchString * @return list of users * @throws InternalErrorException */
Returns list of users who matches the searchString
findUsersByName
{ "repo_name": "zoraseb/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/api/UsersManager.java", "license": "bsd-2-clause", "size": 54525 }
[ "cz.metacentrum.perun.core.api.exceptions.PrivilegeException", "java.util.List" ]
import cz.metacentrum.perun.core.api.exceptions.PrivilegeException; import java.util.List;
import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
1,342,922
public static MozuClient<com.mozu.api.contracts.commerceruntime.returns.ReturnCollection> getReturnsClient(Integer startIndex, Integer pageSize, String sortBy, String filter, String responseFields) throws Exception { MozuUrl url = com.mozu.api.urls.commerce.ReturnUrl.getReturnsUrl(filter, pageSize, responseFields...
static MozuClient<com.mozu.api.contracts.commerceruntime.returns.ReturnCollection> function(Integer startIndex, Integer pageSize, String sortBy, String filter, String responseFields) throws Exception { MozuUrl url = com.mozu.api.urls.commerce.ReturnUrl.getReturnsUrl(filter, pageSize, responseFields, sortBy, startIndex)...
/** * Retrieves a list of all returns according to any filter and sort criteria. * <p><pre><code> * MozuClient<com.mozu.api.contracts.commerceruntime.returns.ReturnCollection> mozuClient=GetReturnsClient( startIndex, pageSize, sortBy, filter, responseFields); * client.setBaseAddress(url); * client.execute...
Retrieves a list of all returns according to any filter and sort criteria. <code><code> MozuClient mozuClient=GetReturnsClient( startIndex, pageSize, sortBy, filter, responseFields); client.setBaseAddress(url); client.executeRequest(); ReturnCollection returnCollection = client.Result(); </code></code>
getReturnsClient
{ "repo_name": "bhewett/mozu-java", "path": "mozu-java-core/src/main/java/com/mozu/api/clients/commerce/ReturnClient.java", "license": "mit", "size": 38320 }
[ "com.mozu.api.MozuClient", "com.mozu.api.MozuClientFactory", "com.mozu.api.MozuUrl" ]
import com.mozu.api.MozuClient; import com.mozu.api.MozuClientFactory; import com.mozu.api.MozuUrl;
import com.mozu.api.*;
[ "com.mozu.api" ]
com.mozu.api;
675,215
public static <T> String toString(Class<T> cls, T obj, String name, @Nullable Object val, boolean sens) { assert cls != null; assert obj != null; assert name != null; Queue<GridToStringThreadLocal> queue = threadCache.get(); assert queue != null; // Since string() ...
static <T> String function(Class<T> cls, T obj, String name, @Nullable Object val, boolean sens) { assert cls != null; assert obj != null; assert name != null; Queue<GridToStringThreadLocal> queue = threadCache.get(); assert queue != null; GridToStringThreadLocal tmp = queue.isEmpty() ? new GridToStringThreadLocal() : ...
/** * Produces auto-generated output of string presentation for given object and its declaration class. * * @param <T> Type of the object. * @param cls Declaration class of the object. Note that this should not be a runtime class. * @param obj Object to get a string presentation for. * @pa...
Produces auto-generated output of string presentation for given object and its declaration class
toString
{ "repo_name": "irudyak/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/tostring/GridToStringBuilder.java", "license": "apache-2.0", "size": 64606 }
[ "java.util.Queue", "org.jetbrains.annotations.Nullable" ]
import java.util.Queue; import org.jetbrains.annotations.Nullable;
import java.util.*; import org.jetbrains.annotations.*;
[ "java.util", "org.jetbrains.annotations" ]
java.util; org.jetbrains.annotations;
2,027,342
public void copySettings(Settings dest, Settings src) { dest.setTimeBoxStage1(src.getTimeBoxStage1()); dest.setTimeBoxStage2(src.getTimeBoxStage2()); dest.setTimeBoxStage3(src.getTimeBoxStage3()); dest.setTimeBoxStage4(src.getTimeBoxStage4()); dest.setTimeBoxStage5(src.getTim...
void function(Settings dest, Settings src) { dest.setTimeBoxStage1(src.getTimeBoxStage1()); dest.setTimeBoxStage2(src.getTimeBoxStage2()); dest.setTimeBoxStage3(src.getTimeBoxStage3()); dest.setTimeBoxStage4(src.getTimeBoxStage4()); dest.setTimeBoxStage5(src.getTimeBoxStage5()); dest.setTimeBoxStage6(src.getTimeBoxStag...
/** * Copy all settings parameters from src into dest * * @param dest destination object * @param src source object */
Copy all settings parameters from src into dest
copySettings
{ "repo_name": "tope018/CSC439_Project", "path": "app/src/main/java/de/fhdw/ergoholics/brainphaser/database/SettingsDataSource.java", "license": "gpl-3.0", "size": 5624 }
[ "de.fhdw.ergoholics.brainphaser.model.Settings" ]
import de.fhdw.ergoholics.brainphaser.model.Settings;
import de.fhdw.ergoholics.brainphaser.model.*;
[ "de.fhdw.ergoholics" ]
de.fhdw.ergoholics;
407,738
public CmsUser readOwner(CmsRequestContext context, CmsProject project) throws CmsException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); CmsUser result = null; try { result = m_driverManager.readOwner(dbc, project); } catch (Exception e) { d...
CmsUser function(CmsRequestContext context, CmsProject project) throws CmsException { CmsDbContext dbc = m_dbContextFactory.getDbContext(context); CmsUser result = null; try { result = m_driverManager.readOwner(dbc, project); } catch (Exception e) { dbc.report( null, Messages.get().container(Messages.ERR_READ_OWNER_FOR...
/** * Reads the owner of a project from the OpenCms.<p> * * @param context the current request context * @param project the project to get the owner from * * @return the owner of a resource * * @throws CmsException if something goes wrong */
Reads the owner of a project from the OpenCms
readOwner
{ "repo_name": "sbonoc/opencms-core", "path": "src/org/opencms/db/CmsSecurityManager.java", "license": "lgpl-2.1", "size": 287876 }
[ "org.opencms.file.CmsProject", "org.opencms.file.CmsRequestContext", "org.opencms.file.CmsUser", "org.opencms.main.CmsException" ]
import org.opencms.file.CmsProject; import org.opencms.file.CmsRequestContext; import org.opencms.file.CmsUser; import org.opencms.main.CmsException;
import org.opencms.file.*; import org.opencms.main.*;
[ "org.opencms.file", "org.opencms.main" ]
org.opencms.file; org.opencms.main;
2,580,123
public final synchronized void runBlock(boolean run, boolean force) throws ScriptException, DonkeyException { if (statement.endsWith("{")) { try { BufferedReader r = new BufferedReader(new FileReader(file)); LineNumberReader lr = new LineNumberReader(r); String s; String[] l; int sNum...
final synchronized void function(boolean run, boolean force) throws ScriptException, DonkeyException { if (statement.endsWith("{")) { try { BufferedReader r = new BufferedReader(new FileReader(file)); LineNumberReader lr = new LineNumberReader(r); String s; String[] l; int sNum = getLineNumber(); int eNum = -1; long br...
/** * Run the block that the statement controls * * @param run Whether to run the contents of the block or not * @param force If run is on, then force the statements to run * @throws DonkeyException If there's an error in the Donkey code * @throws ScriptException If an error happens in the script ...
Run the block that the statement controls
runBlock
{ "repo_name": "DonkeyCore/DPL", "path": "DPL/src/me/donkeycore/dpl/statement/Statement.java", "license": "gpl-3.0", "size": 17025 }
[ "java.io.BufferedReader", "java.io.FileReader", "java.io.IOException", "java.io.LineNumberReader", "javax.script.ScriptException", "me.donkeycore.dpl.exceptions.DonkeyException" ]
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.io.LineNumberReader; import javax.script.ScriptException; import me.donkeycore.dpl.exceptions.DonkeyException;
import java.io.*; import javax.script.*; import me.donkeycore.dpl.exceptions.*;
[ "java.io", "javax.script", "me.donkeycore.dpl" ]
java.io; javax.script; me.donkeycore.dpl;
1,414,333
private void determineNumChunks(Map<String, Source> sourcesByName, int parallelism) { // first round: set numChunk to 1 if source output is too small double k = Math.log10(parallelism); for (Source src : sourcesByName.values()) { k -= Math.log10(src.numRecord); } k = Math.pow(10, k / sources...
void function(Map<String, Source> sourcesByName, int parallelism) { double k = Math.log10(parallelism); for (Source src : sourcesByName.values()) { k -= Math.log10(src.numRecord); } k = Math.pow(10, k / sourcesByName.size()); for (Source src : sourcesByName.values()) { if (src.numRecord * k < 2) { src.numChunk = 1; } }...
/** * determine num chunk for each source by weighted factorization of initial parallelism **/
determine num chunk for each source by weighted factorization of initial parallelism
determineNumChunks
{ "repo_name": "ueshin/apache-tez", "path": "tez-runtime-library/src/main/java/org/apache/tez/runtime/library/cartesianproduct/FairCartesianProductVertexManager.java", "license": "apache-2.0", "size": 21505 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,314,830
public ServiceFuture<DateTime> getUnderflowAsync(final ServiceCallback<DateTime> serviceCallback) { return ServiceFuture.fromResponse(getUnderflowWithServiceResponseAsync(), serviceCallback); }
ServiceFuture<DateTime> function(final ServiceCallback<DateTime> serviceCallback) { return ServiceFuture.fromResponse(getUnderflowWithServiceResponseAsync(), serviceCallback); }
/** * Get underflow datetime value. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
Get underflow datetime value
getUnderflowAsync
{ "repo_name": "lmazuel/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodydatetimerfc1123/implementation/Datetimerfc1123sImpl.java", "license": "mit", "size": 34184 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture", "org.joda.time.DateTime" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import org.joda.time.DateTime;
import com.microsoft.rest.*; import org.joda.time.*;
[ "com.microsoft.rest", "org.joda.time" ]
com.microsoft.rest; org.joda.time;
584,842
private void revokeCorrs(final ITGGMatch match, final IGreenPattern pattern) { Set<EObject> nodesToRevoke = new HashSet<EObject>(); Set<EMFEdge> edgesToRevoke = new HashSet<EMFEdge>(); pattern.getCorrNodes().stream() // .map(TGGRuleNode::getName) // .map(match::get) // .map(EObject.class::c...
void function(final ITGGMatch match, final IGreenPattern pattern) { Set<EObject> nodesToRevoke = new HashSet<EObject>(); Set<EMFEdge> edgesToRevoke = new HashSet<EMFEdge>(); pattern.getCorrNodes().stream() .map(TGGRuleNode::getName) .map(match::get) .map(EObject.class::cast) .forEach(corr -> revokeCorr(corr, nodesToRev...
/** * Revokes nodes and edges in the correspondence model. * * @param match * the match * @param pattern * the pattern */
Revokes nodes and edges in the correspondence model
revokeCorrs
{ "repo_name": "eMoflon/emoflon-ibex", "path": "org.emoflon.ibex.tgg.core.runtime/src/org/emoflon/ibex/tgg/operational/defaults/IbexRedInterpreter.java", "license": "gpl-3.0", "size": 5618 }
[ "java.util.HashSet", "java.util.Set", "org.eclipse.emf.ecore.EObject", "org.emoflon.ibex.common.emf.EMFEdge", "org.emoflon.ibex.tgg.operational.matches.ITGGMatch", "org.emoflon.ibex.tgg.operational.patterns.IGreenPattern" ]
import java.util.HashSet; import java.util.Set; import org.eclipse.emf.ecore.EObject; import org.emoflon.ibex.common.emf.EMFEdge; import org.emoflon.ibex.tgg.operational.matches.ITGGMatch; import org.emoflon.ibex.tgg.operational.patterns.IGreenPattern;
import java.util.*; import org.eclipse.emf.ecore.*; import org.emoflon.ibex.common.emf.*; import org.emoflon.ibex.tgg.operational.matches.*; import org.emoflon.ibex.tgg.operational.patterns.*;
[ "java.util", "org.eclipse.emf", "org.emoflon.ibex" ]
java.util; org.eclipse.emf; org.emoflon.ibex;
2,527,470
public byte[] createCertificateRequest(X509Certificate cert, KeyPair keyPair) throws GeneralSecurityException { String issuer = cert.getSubjectDN().getName(); X509Name subjectDN = new X509Name(issuer + ",CN=proxy"); String sigAlgName = cert.getSigAlgName(); return createCertificateRequest(subjectDN, ...
byte[] function(X509Certificate cert, KeyPair keyPair) throws GeneralSecurityException { String issuer = cert.getSubjectDN().getName(); X509Name subjectDN = new X509Name(issuer + STR); String sigAlgName = cert.getSigAlgName(); return createCertificateRequest(subjectDN, sigAlgName, keyPair); }
/** * Creates a certificate request from the specified * certificate and a key pair. The certificate's * subject DN with <I>"CN=proxy"</I> name component * appended to the subject is used as the subject * of the certificate request. * Also the certificate's signing algorithm is * u...
Creates a certificate request from the specified certificate and a key pair. The certificate's subject DN with "CN=proxy" name component appended to the subject is used as the subject of the certificate request. Also the certificate's signing algorithm is used as the certificate request signing algorithm
createCertificateRequest
{ "repo_name": "NCIP/cagrid2-wsrf", "path": "wsrf-jglobus/src/main/java/org/globus/gsi/bc/BouncyCastleCertProcessingFactory.java", "license": "bsd-3-clause", "size": 28452 }
[ "java.security.GeneralSecurityException", "java.security.KeyPair", "java.security.cert.X509Certificate", "org.bouncycastle.asn1.x509.X509Name" ]
import java.security.GeneralSecurityException; import java.security.KeyPair; import java.security.cert.X509Certificate; import org.bouncycastle.asn1.x509.X509Name;
import java.security.*; import java.security.cert.*; import org.bouncycastle.asn1.x509.*;
[ "java.security", "org.bouncycastle.asn1" ]
java.security; org.bouncycastle.asn1;
2,286,232
public void onResetGlobalPropertiesResponse(ResetGlobalPropertiesResponse response);
void function(ResetGlobalPropertiesResponse response);
/** * onResetGlobalPropertiesResponse being called indicates that SDL has * responded to a request to reset global properties. * * @param response - Contains information about the response sent from SDL. */
onResetGlobalPropertiesResponse being called indicates that SDL has responded to a request to reset global properties
onResetGlobalPropertiesResponse
{ "repo_name": "mrapitis/sdl_android", "path": "sdl_android_lib/src/com/smartdevicelink/proxy/interfaces/IProxyListenerBase.java", "license": "bsd-3-clause", "size": 12722 }
[ "com.smartdevicelink.proxy.rpc.ResetGlobalPropertiesResponse" ]
import com.smartdevicelink.proxy.rpc.ResetGlobalPropertiesResponse;
import com.smartdevicelink.proxy.rpc.*;
[ "com.smartdevicelink.proxy" ]
com.smartdevicelink.proxy;
1,075,412
static void signalProcess(Process proc, String sig) throws Exception { if (!VALID_SIGNALS.contains(sig)) { throw new IllegalArgumentException(sig + " is not a supported signal, only " + Joiner.on(",").join(VALID_SIGNALS) + " are supported"); } int pid = pidOfProcess(proc); int rv =...
static void signalProcess(Process proc, String sig) throws Exception { if (!VALID_SIGNALS.contains(sig)) { throw new IllegalArgumentException(sig + STR + Joiner.on(",").join(VALID_SIGNALS) + STR); } int pid = pidOfProcess(proc); int rv = Runtime.getRuntime() .exec(String.format(STR, sig, pid)) .waitFor(); if (rv != 0) ...
/** * Send a code specified by its string representation to the specified process. * TODO: Use a JNR/JNR-Posix instead of forking the JVM to exec "kill". * @param proc The specified process. * @param sig The string representation of the process (e.g., STOP for SIGSTOP). * @throws IllegalArgumentException...
Send a code specified by its string representation to the specified process
signalProcess
{ "repo_name": "andrwng/kudu", "path": "java/kudu-client/src/test/java/org/apache/kudu/client/TestUtils.java", "license": "apache-2.0", "size": 8202 }
[ "com.google.common.base.Joiner" ]
import com.google.common.base.Joiner;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
1,545,148
CompletableFuture<SinkConfig> getSinkAsync(String tenant, String namespace, String sink);
CompletableFuture<SinkConfig> getSinkAsync(String tenant, String namespace, String sink);
/** * Get the configuration for the specified sink asynchronously. * <p/> * Response Example: * * <pre> * <code>{ serviceUrl : "http://my-broker.example.com:8080/" }</code> * </pre> * * @param tenant * Tenant name * @param namespace * Nam...
Get the configuration for the specified sink asynchronously. Response Example: <code> <code>{ serviceUrl : "HREF" }</code> </code>
getSinkAsync
{ "repo_name": "massakam/pulsar", "path": "pulsar-client-admin-api/src/main/java/org/apache/pulsar/client/admin/Sinks.java", "license": "apache-2.0", "size": 18069 }
[ "java.util.concurrent.CompletableFuture", "org.apache.pulsar.common.io.SinkConfig" ]
import java.util.concurrent.CompletableFuture; import org.apache.pulsar.common.io.SinkConfig;
import java.util.concurrent.*; import org.apache.pulsar.common.io.*;
[ "java.util", "org.apache.pulsar" ]
java.util; org.apache.pulsar;
1,900,264
public static double calculateSimpsonsIndexOfDiversity(Collection<Integer> distribution) { return 1 - calculateSimpsonsIndex(distribution); }
static double function(Collection<Integer> distribution) { return 1 - calculateSimpsonsIndex(distribution); }
/** * Simpson's Index of Diversity: 1 - D * * 1.0 means infinite diversity while 0.0 means no diversity. * * @param distribution * @return */
Simpson's Index of Diversity: 1 - D 1.0 means infinite diversity while 0.0 means no diversity
calculateSimpsonsIndexOfDiversity
{ "repo_name": "TKnudsen/ComplexDataObject", "path": "src/main/java/com/github/TKnudsen/ComplexDataObject/model/statistics/SimpsonsIndex.java", "license": "apache-2.0", "size": 4821 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,193,695
Drug d = new Drug(); // Copy fields from DrugTo1 object // over to the new Drug object. // This is not quite a one-to-one copy, some transformation // is done on types. try { d.setId(t.getDrugId()); d.setBrandName(t.getBrandName()); ...
Drug d = new Drug(); try { d.setId(t.getDrugId()); d.setBrandName(t.getBrandName()); d.setGenericName(t.getGenericName()); d.setDemographicId(t.getDemographicNo()); d.setProviderNo(t.getProviderNo().toString()); d.setAtc(t.getAtc()); d.setRegionalIdentifier(t.getRegionalIdentifier()); d.setDosage(t.getStrength() + t.ge...
/** * Converts from a transfer object to a Drug domain object. * * @param loggedInInfo information regarding the current logged in user. * @param t the transfer object to copy the data from * @return a Drug domain object representing this data. * @throws ConversionException if c...
Converts from a transfer object to a Drug domain object
getAsDomainObject
{ "repo_name": "williamgrosset/OSCAR-ConCert", "path": "src/main/java/org/oscarehr/ws/rest/conversion/DrugConverter.java", "license": "gpl-2.0", "size": 8941 }
[ "org.oscarehr.common.model.Drug" ]
import org.oscarehr.common.model.Drug;
import org.oscarehr.common.model.*;
[ "org.oscarehr.common" ]
org.oscarehr.common;
1,065,521
public ProjectResource parse(String id) throws UnprocessableEntityException { ProjectResource rsrc = _parse(id); if (rsrc == null) { throw new UnprocessableEntityException(String.format( "Project Not Found: %s", id)); } return rsrc; }
ProjectResource function(String id) throws UnprocessableEntityException { ProjectResource rsrc = _parse(id); if (rsrc == null) { throw new UnprocessableEntityException(String.format( STR, id)); } return rsrc; }
/** * Parses a project ID from a request body and returns the project. * * @param id ID of the project, can be a project name * @return the project * @throws UnprocessableEntityException thrown if the project ID cannot be * resolved or if the project is not visible to the calling user */
Parses a project ID from a request body and returns the project
parse
{ "repo_name": "basilgor/gerrit", "path": "gerrit-server/src/main/java/com/google/gerrit/server/project/ProjectsCollection.java", "license": "apache-2.0", "size": 3747 }
[ "com.google.gerrit.extensions.restapi.UnprocessableEntityException" ]
import com.google.gerrit.extensions.restapi.UnprocessableEntityException;
import com.google.gerrit.extensions.restapi.*;
[ "com.google.gerrit" ]
com.google.gerrit;
1,725,483
public void importRecords() throws IOException, InterruptedException { RemoteAdmin remoteAdmin = new RemoteAdmin(hbaseConnection.getClient(), new Configuration()); if (remoteAdmin.isTableAvailable(tableName)) { logger.info("Table \"" + tableName + "\" exists, droping it"); remoteAdmin.deleteTable(tableName...
void function() throws IOException, InterruptedException { RemoteAdmin remoteAdmin = new RemoteAdmin(hbaseConnection.getClient(), new Configuration()); if (remoteAdmin.isTableAvailable(tableName)) { logger.info(STRSTR\STR); remoteAdmin.deleteTable(tableName); } logger.info(STRSTR\STRSELECT * FROM STRPuts list created, ...
/** * Import the records of the selected table */
Import the records of the selected table
importRecords
{ "repo_name": "OpenSoftwareSolutions/PDFReporter-Studio", "path": "com.jaspersoft.studio.data.hbase/src/com/jaspersoft/hadoop/hbase/HBaseImporter.java", "license": "lgpl-3.0", "size": 7624 }
[ "java.io.IOException", "java.sql.SQLException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hbase.rest.client.RemoteAdmin" ]
import java.io.IOException; import java.sql.SQLException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.rest.client.RemoteAdmin;
import java.io.*; import java.sql.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hbase.rest.client.*;
[ "java.io", "java.sql", "org.apache.hadoop" ]
java.io; java.sql; org.apache.hadoop;
1,917,636
public List<GuiButton> getButtonList() { return buttonList; }
List<GuiButton> function() { return buttonList; }
/** * The {@link #buttonList} field from the GuiScreen object referenced by {@link #gui}. */
The <code>#buttonList</code> field from the GuiScreen object referenced by <code>#gui</code>
getButtonList
{ "repo_name": "TheGreatAndPowerfulWeegee/wipunknown", "path": "build/tmp/recompileMc/sources/net/minecraftforge/client/event/GuiScreenEvent.java", "license": "gpl-3.0", "size": 11193 }
[ "java.util.List", "net.minecraft.client.gui.GuiButton" ]
import java.util.List; import net.minecraft.client.gui.GuiButton;
import java.util.*; import net.minecraft.client.gui.*;
[ "java.util", "net.minecraft.client" ]
java.util; net.minecraft.client;
629,827
PasswordHash generateHash(String password) throws SignetieException;
PasswordHash generateHash(String password) throws SignetieException;
/** * Generate a hash value based on the password supplied and a random * salt value. */
Generate a hash value based on the password supplied and a random salt value
generateHash
{ "repo_name": "kagalle/signetie", "path": "cli_client/src/org/rainshowers/signetie/pbe/PasswordHasher.java", "license": "gpl-2.0", "size": 2016 }
[ "org.rainshowers.signetie.SignetieException" ]
import org.rainshowers.signetie.SignetieException;
import org.rainshowers.signetie.*;
[ "org.rainshowers.signetie" ]
org.rainshowers.signetie;
695,820
private synchronized void shrinkWriteOperationQueue() throws IOException { try { while (writeOperations.peek() != null && writeOperations.peek().task.isDone()) { writeOperations.peek().task.get(); lastTotalAppendOffset += writeOperations.peek().length; writeOperations.remove(); ...
synchronized void function() throws IOException { try { while (writeOperations.peek() != null && writeOperations.peek().task.isDone()) { writeOperations.peek().task.get(); lastTotalAppendOffset += writeOperations.peek().length; writeOperations.remove(); if (outputStreamStatistics != null) { outputStreamStatistics.queue...
/** * Try to remove the completed write operations from the beginning of write * operation FIFO queue. */
Try to remove the completed write operations from the beginning of write operation FIFO queue
shrinkWriteOperationQueue
{ "repo_name": "nandakumar131/hadoop", "path": "hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsOutputStream.java", "license": "apache-2.0", "size": 24447 }
[ "java.io.IOException", "org.apache.hadoop.fs.azurebfs.contracts.exceptions.AzureBlobFileSystemException" ]
import java.io.IOException; import org.apache.hadoop.fs.azurebfs.contracts.exceptions.AzureBlobFileSystemException;
import java.io.*; import org.apache.hadoop.fs.azurebfs.contracts.exceptions.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
593,484
private void onAddPlaceButtonClicked() { if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)!=PackageManager.PERMISSION_GRANTED){ Toast.makeText(this, getString(R.string.need_location_permission_message), Toast.LENGTH_SHORT).show(); return; ...
void function() { if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)!=PackageManager.PERMISSION_GRANTED){ Toast.makeText(this, getString(R.string.need_location_permission_message), Toast.LENGTH_SHORT).show(); return; } Toast.makeText(this, getString(R.string.location_permissions_gran...
/** * Button click event handler for the add place button. */
Button click event handler for the add place button
onAddPlaceButtonClicked
{ "repo_name": "samagra14/Shush", "path": "app/src/main/java/com/mdg/droiders/samagra/shush/MainActivity.java", "license": "mit", "size": 10861 }
[ "android.content.Intent", "android.content.pm.PackageManager", "android.support.v4.app.ActivityCompat", "android.widget.Toast", "com.google.android.gms.common.GooglePlayServicesNotAvailableException", "com.google.android.gms.common.GooglePlayServicesRepairableException", "com.google.android.gms.location...
import android.content.Intent; import android.content.pm.PackageManager; import android.support.v4.app.ActivityCompat; import android.widget.Toast; import com.google.android.gms.common.GooglePlayServicesNotAvailableException; import com.google.android.gms.common.GooglePlayServicesRepairableException; import com.google....
import android.content.*; import android.content.pm.*; import android.support.v4.app.*; import android.widget.*; import com.google.android.gms.common.*; import com.google.android.gms.location.places.ui.*;
[ "android.content", "android.support", "android.widget", "com.google.android" ]
android.content; android.support; android.widget; com.google.android;
1,286,074
@Action(resultTag = RuleConstants.DIAGNOSIS_TAG_CAUSE_STRUCTURE) public CauseStructure action() { // In case there is just one Root Cause method. if (rootCause.size() == 1) { return new CauseStructure(CauseType.SINGLE, rootCause.getSourceType()); } // The Root Causes are called either recursive if (ca...
@Action(resultTag = RuleConstants.DIAGNOSIS_TAG_CAUSE_STRUCTURE) CauseStructure function() { if (rootCause.size() == 1) { return new CauseStructure(CauseType.SINGLE, rootCause.getSourceType()); } if (calculateMaxRecursionDepth() > 1) { return new CauseStructure(CauseType.RECURSIVE, rootCause.getSourceType()); } else { ...
/** * Rule execution. * * @return DIAGNOSIS_TAG_CAUSE_STRUCTURE */
Rule execution
action
{ "repo_name": "inspectIT/inspectIT", "path": "inspectit.server.diagnosis/src/main/java/rocks/inspectit/server/diagnosis/service/rules/impl/CauseStructureRule.java", "license": "agpl-3.0", "size": 4219 }
[ "rocks.inspectit.server.diagnosis.engine.rule.annotation.Action", "rocks.inspectit.server.diagnosis.service.rules.RuleConstants", "rocks.inspectit.shared.cs.communication.data.diagnosis.CauseStructure" ]
import rocks.inspectit.server.diagnosis.engine.rule.annotation.Action; import rocks.inspectit.server.diagnosis.service.rules.RuleConstants; import rocks.inspectit.shared.cs.communication.data.diagnosis.CauseStructure;
import rocks.inspectit.server.diagnosis.engine.rule.annotation.*; import rocks.inspectit.server.diagnosis.service.rules.*; import rocks.inspectit.shared.cs.communication.data.diagnosis.*;
[ "rocks.inspectit.server", "rocks.inspectit.shared" ]
rocks.inspectit.server; rocks.inspectit.shared;
558,167
public RigidBody setInertiaTensorInverse(@Const Matrix3 tensorInverse);
RigidBody function(@Const Matrix3 tensorInverse);
/** * Set the inverse of the body's inertia tensor matrix. This must be computed by a task, which by default * is handled in the {@link com.ferox.physics.task.IntegrationTask}. * * @param tensorInverse The inverse tensor * * @return This component */
Set the inverse of the body's inertia tensor matrix. This must be computed by a task, which by default is handled in the <code>com.ferox.physics.task.IntegrationTask</code>
setInertiaTensorInverse
{ "repo_name": "geronimo-iia/ferox", "path": "ferox-physics/src/main/java/com/ferox/physics/dynamics/RigidBody.java", "license": "bsd-2-clause", "size": 4423 }
[ "com.ferox.math.Const", "com.ferox.math.Matrix3" ]
import com.ferox.math.Const; import com.ferox.math.Matrix3;
import com.ferox.math.*;
[ "com.ferox.math" ]
com.ferox.math;
2,271,631
public void writeSFixed64(int fieldNumber, long value, boolean repeated) throws IOException;
void function(int fieldNumber, long value, boolean repeated) throws IOException;
/** * Writes a signed+fixed long(8 bytes) field. */
Writes a signed+fixed long(8 bytes) field
writeSFixed64
{ "repo_name": "protostuff/protostuff-me", "path": "src/main/java/io/protostuff/me/Output.java", "license": "apache-2.0", "size": 4025 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
827,672
Request put(String caller, Transport.Target target, Map<String, ?> parameters, Map<String, ?> fields);
Request put(String caller, Transport.Target target, Map<String, ?> parameters, Map<String, ?> fields);
/** * North: submit data. * * @param caller * @param target * @param parameters * @param fields * * @return */
North: submit data
put
{ "repo_name": "OpenBankProject/OBP-JVM", "path": "obp-ri-transport/src/main/java/com/tesobe/obp/transport/Encoder.java", "license": "agpl-3.0", "size": 2353 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,939,981
@SuppressWarnings("deprecation") public static void send(MaterialData materialdata, Location location, float xDev, float yDev, float zDev, float speed, int amount, Player... players) { int id = materialdata.getItemType().getId(); byte data = materialdata.getData() > 0 ? materiald...
@SuppressWarnings(STR) static void function(MaterialData materialdata, Location location, float xDev, float yDev, float zDev, float speed, int amount, Player... players) { int id = materialdata.getItemType().getId(); byte data = materialdata.getData() > 0 ? materialdata.getData() : 0; Object packet = new WrapperPlayOut...
/** * Send a Particle once, with the specified options. All players * specified and within range will be able to see the particles. * * @param materialdata The material data of the block that should be used * to create the particle(s). * @param l...
Send a Particle once, with the specified options. All players specified and within range will be able to see the particles
send
{ "repo_name": "ewized/CommonUtils", "path": "src/main/java/com/archeinteractive/dev/commonutils/effects/particle/ParticleEffect.java", "license": "gpl-3.0", "size": 13679 }
[ "com.archeinteractive.dev.commonutils.network.packets.WrapperPlayOutWorldParticles", "com.archeinteractive.dev.commonutils.reflection.EntityHandler", "org.bukkit.Location", "org.bukkit.entity.Player", "org.bukkit.material.MaterialData" ]
import com.archeinteractive.dev.commonutils.network.packets.WrapperPlayOutWorldParticles; import com.archeinteractive.dev.commonutils.reflection.EntityHandler; import org.bukkit.Location; import org.bukkit.entity.Player; import org.bukkit.material.MaterialData;
import com.archeinteractive.dev.commonutils.network.packets.*; import com.archeinteractive.dev.commonutils.reflection.*; import org.bukkit.*; import org.bukkit.entity.*; import org.bukkit.material.*;
[ "com.archeinteractive.dev", "org.bukkit", "org.bukkit.entity", "org.bukkit.material" ]
com.archeinteractive.dev; org.bukkit; org.bukkit.entity; org.bukkit.material;
1,731,557
public void passivate() { // Notify interested session event listeners fireSessionEvent(Session.SESSION_PASSIVATED_EVENT, null); // Notify ActivationListeners HttpSessionEvent event = null; String keys[] = keys(); for (int i = 0; i < keys.length; i++) { ...
void function() { fireSessionEvent(Session.SESSION_PASSIVATED_EVENT, null); HttpSessionEvent event = null; String keys[] = keys(); for (int i = 0; i < keys.length; i++) { Object attribute = attributes.get(keys[i]); if (attribute instanceof HttpSessionActivationListener) { if (event == null) event = new HttpSessionEvent...
/** * Perform the internal processing required to passivate * this session. */
Perform the internal processing required to passivate this session
passivate
{ "repo_name": "yuyupapa/OpenSource", "path": "apache-tomcat-6.0.48/java/org/apache/catalina/session/StandardSession.java", "license": "apache-2.0", "size": 60890 }
[ "javax.servlet.http.HttpSessionActivationListener", "javax.servlet.http.HttpSessionEvent", "org.apache.catalina.Session" ]
import javax.servlet.http.HttpSessionActivationListener; import javax.servlet.http.HttpSessionEvent; import org.apache.catalina.Session;
import javax.servlet.http.*; import org.apache.catalina.*;
[ "javax.servlet", "org.apache.catalina" ]
javax.servlet; org.apache.catalina;
2,654,166
protected Credentials getCredentials() { return credentials; }
Credentials function() { return credentials; }
/** * get credentials to update the delegation tokens for accessed FS objects * @return Credentials object */
get credentials to update the delegation tokens for accessed FS objects
getCredentials
{ "repo_name": "wankunde/cloudera_hadoop", "path": "hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/CopyListing.java", "license": "apache-2.0", "size": 11392 }
[ "org.apache.hadoop.security.Credentials" ]
import org.apache.hadoop.security.Credentials;
import org.apache.hadoop.security.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,574,080
public Armor make(GameContainer gc) throws SlickException, IOException, FontFormatException { return new Armor( id, ArmorType.fromName(type), ItemMaterial.fromName(material), value, armRat, bonuses, equipEffects, equipReq, icon, mSpri...
Armor function(GameContainer gc) throws SlickException, IOException, FontFormatException { return new Armor( id, ArmorType.fromName(type), ItemMaterial.fromName(material), value, armRat, bonuses, equipEffects, equipReq, icon, mSprite, fSprite, gc); }
/** * Creates item from this pattern * * @param gc Slick game container * @return New armor object * @throws SlickException * @throws IOException * @throws FontFormatException */
Creates item from this pattern
make
{ "repo_name": "Isangeles/Senlin", "path": "src/main/java/pl/isangeles/senlin/data/pattern/ArmorPattern.java", "license": "gpl-2.0", "size": 4220 }
[ "java.awt.FontFormatException", "java.io.IOException", "org.newdawn.slick.GameContainer", "org.newdawn.slick.SlickException", "pl.isangeles.senlin.core.item.Armor", "pl.isangeles.senlin.core.item.ArmorType", "pl.isangeles.senlin.core.item.ItemMaterial" ]
import java.awt.FontFormatException; import java.io.IOException; import org.newdawn.slick.GameContainer; import org.newdawn.slick.SlickException; import pl.isangeles.senlin.core.item.Armor; import pl.isangeles.senlin.core.item.ArmorType; import pl.isangeles.senlin.core.item.ItemMaterial;
import java.awt.*; import java.io.*; import org.newdawn.slick.*; import pl.isangeles.senlin.core.item.*;
[ "java.awt", "java.io", "org.newdawn.slick", "pl.isangeles.senlin" ]
java.awt; java.io; org.newdawn.slick; pl.isangeles.senlin;
990,126
protected void compareOutput(AbstractOutputGenerator generator, final int[] indices) { final AbstractOutputGenerator current; SwingWorker worker; current = configureOutput(generator); if (current == null) return;
void function(AbstractOutputGenerator generator, final int[] indices) { final AbstractOutputGenerator current; SwingWorker worker; current = configureOutput(generator); if (current == null) return;
/** * Prompts the user with a GOE for configuring the output generator and * then displays the generated outputs side by side. * * @param generator the generator to use customize * @param indices the indices of the items to display */
Prompts the user with a GOE for configuring the output generator and then displays the generated outputs side by side
compareOutput
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-weka/src/main/java/adams/gui/tools/wekainvestigator/tab/AttributeSelectionTab.java", "license": "gpl-3.0", "size": 36377 }
[ "javax.swing.SwingWorker" ]
import javax.swing.SwingWorker;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
498,188
public void handleResult(Object result) { if (viewer.getState() == DataBrowser.DISCARDED) return; //Async cancel. Collection l = (Collection) result; List<DataObject> filteredNodes = new ArrayList<DataObject>(); if (l == null) { viewer.setFilteredNodes(filteredNodes, null); r...
void function(Object result) { if (viewer.getState() == DataBrowser.DISCARDED) return; Collection l = (Collection) result; List<DataObject> filteredNodes = new ArrayList<DataObject>(); if (l == null) { viewer.setFilteredNodes(filteredNodes, null); return; } Iterator i = l.iterator(); long id; while (i.hasNext()) { id =...
/** * Feeds the result back to the viewer. * @see DataBrowserLoader#handleResult(Object) */
Feeds the result back to the viewer
handleResult
{ "repo_name": "joshmoore/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/dataBrowser/TagsFilter.java", "license": "gpl-2.0", "size": 4542 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Iterator", "java.util.List", "org.openmicroscopy.shoola.agents.dataBrowser.view.DataBrowser" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import org.openmicroscopy.shoola.agents.dataBrowser.view.DataBrowser;
import java.util.*; import org.openmicroscopy.shoola.agents.*;
[ "java.util", "org.openmicroscopy.shoola" ]
java.util; org.openmicroscopy.shoola;
1,580,492
private void showGlobalContextActionBar() { ActionBar actionBar = getActionBar(); actionBar.setDisplayShowTitleEnabled(true); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD); actionBar.setTitle(R.string.app_name); }
void function() { ActionBar actionBar = getActionBar(); actionBar.setDisplayShowTitleEnabled(true); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD); actionBar.setTitle(R.string.app_name); }
/** * Per the navigation drawer design guidelines, updates the action bar to show the global app * 'context', rather than just what's in the current screen. */
Per the navigation drawer design guidelines, updates the action bar to show the global app 'context', rather than just what's in the current screen
showGlobalContextActionBar
{ "repo_name": "Bikonja/scad-for-android", "path": "Scad/app/src/main/java/com/igorloborec/scad/NavigationDrawerFragment.java", "license": "gpl-2.0", "size": 10764 }
[ "android.support.v7.app.ActionBar" ]
import android.support.v7.app.ActionBar;
import android.support.v7.app.*;
[ "android.support" ]
android.support;
154,877
public ValueBuilder prepend(Object value) { Expression newExp = ExpressionBuilder.prepend(expression, asExpression(value)); return onNewValueBuilder(newExp); }
ValueBuilder function(Object value) { Expression newExp = ExpressionBuilder.prepend(expression, asExpression(value)); return onNewValueBuilder(newExp); }
/** * Prepends the string evaluation of this expression with the given value * * @param value the value or expression to prepend * @return the current builder */
Prepends the string evaluation of this expression with the given value
prepend
{ "repo_name": "jarst/camel", "path": "camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java", "license": "apache-2.0", "size": 12052 }
[ "org.apache.camel.Expression" ]
import org.apache.camel.Expression;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
2,184,340
public static Point2D.Float getDifference(Point2D.Float p1, Point2D.Float p2) { Point2D.Float p = new Point2D.Float(); getDifference(p1, p2, p); return p; }
static Point2D.Float function(Point2D.Float p1, Point2D.Float p2) { Point2D.Float p = new Point2D.Float(); getDifference(p1, p2, p); return p; }
/** * returns the difference between the two positns * * @param p1 * @param p2 * @return */
returns the difference between the two positns
getDifference
{ "repo_name": "TOMIGalway/cmoct-sourcecode", "path": "src/com/joey/software/mathsToolkit/MathsToolkit.java", "license": "gpl-2.0", "size": 12561 }
[ "java.awt.geom.Point2D" ]
import java.awt.geom.Point2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
1,578,418
@Override public void generateSetterMethod(JavaWriter out) throws IOException { // commented out: jpa/0s2d // JMethod setter = getSetterMethod(); // // if (setter == null) // return; // // JClass []paramTypes = setter.getParameterTypes(); JType type; ClassLoader loader ...
void function(JavaWriter out) throws IOException { JType type; ClassLoader loader = getSourceType().getPersistenceUnit().getTempClassLoader(); if (! getEntitySourceType().isFieldAccess()) { type = JTypeWrapper.create(getGetterMethod().getGenericReturnType(), loader); } else { Field field = EntityType.getField(getBeanCl...
/** * Generates the set property. */
Generates the set property
generateSetterMethod
{ "repo_name": "dlitz/resin", "path": "modules/resin/src/com/caucho/amber/field/OneToManyField.java", "license": "gpl-2.0", "size": 20114 }
[ "com.caucho.amber.type.EntityType", "com.caucho.bytecode.JType", "com.caucho.bytecode.JTypeWrapper", "com.caucho.java.JavaWriter", "java.io.IOException", "java.lang.reflect.Field", "java.util.Map", "java.util.Set" ]
import com.caucho.amber.type.EntityType; import com.caucho.bytecode.JType; import com.caucho.bytecode.JTypeWrapper; import com.caucho.java.JavaWriter; import java.io.IOException; import java.lang.reflect.Field; import java.util.Map; import java.util.Set;
import com.caucho.amber.type.*; import com.caucho.bytecode.*; import com.caucho.java.*; import java.io.*; import java.lang.reflect.*; import java.util.*;
[ "com.caucho.amber", "com.caucho.bytecode", "com.caucho.java", "java.io", "java.lang", "java.util" ]
com.caucho.amber; com.caucho.bytecode; com.caucho.java; java.io; java.lang; java.util;
434,538
public FlowScript getControlFlowScript() { return flowScript; }
FlowScript function() { return flowScript; }
/** * Get the control flow script * * @return the post-script */
Get the control flow script
getControlFlowScript
{ "repo_name": "acontes/scheduling", "path": "src/scheduler/src/org/ow2/proactive/scheduler/task/launcher/TaskLauncherInitializer.java", "license": "agpl-3.0", "size": 9155 }
[ "org.ow2.proactive.scheduler.common.task.flow.FlowScript" ]
import org.ow2.proactive.scheduler.common.task.flow.FlowScript;
import org.ow2.proactive.scheduler.common.task.flow.*;
[ "org.ow2.proactive" ]
org.ow2.proactive;
2,516,665
protected ScratchAttributeWriter createLibraryTargetWriter(String labelString) { return ScratchAttributeWriter.fromLabelString(this, "objc_library", labelString); }
ScratchAttributeWriter function(String labelString) { return ScratchAttributeWriter.fromLabelString(this, STR, labelString); }
/** * Creates an {@code objc_library} target writer for the label indicated by the given String. */
Creates an objc_library target writer for the label indicated by the given String
createLibraryTargetWriter
{ "repo_name": "dslomov/bazel", "path": "src/test/java/com/google/devtools/build/lib/rules/objc/ObjcRuleTestCase.java", "license": "apache-2.0", "size": 85621 }
[ "com.google.devtools.build.lib.analysis.util.ScratchAttributeWriter" ]
import com.google.devtools.build.lib.analysis.util.ScratchAttributeWriter;
import com.google.devtools.build.lib.analysis.util.*;
[ "com.google.devtools" ]
com.google.devtools;
1,253,819
@Override public Cloudlet getNextFinishedCloudlet() { if (getCloudletFinishedList().size() > 0) { return getCloudletFinishedList().remove(0).getCloudlet(); } return null; }
Cloudlet function() { if (getCloudletFinishedList().size() > 0) { return getCloudletFinishedList().remove(0).getCloudlet(); } return null; }
/** * Returns the next cloudlet in the finished list, $null if this list is * empty. * * @return a finished cloudlet * @pre $none * @post $none */
Returns the next cloudlet in the finished list, $null if this list is empty
getNextFinishedCloudlet
{ "repo_name": "ianmalcolm/compsched", "path": "src/main/java/loea/sched/scheduler/SubtaskScheduler.java", "license": "mit", "size": 18446 }
[ "org.cloudbus.cloudsim.Cloudlet" ]
import org.cloudbus.cloudsim.Cloudlet;
import org.cloudbus.cloudsim.*;
[ "org.cloudbus.cloudsim" ]
org.cloudbus.cloudsim;
199,194
public static Optional<GameObjectType> valueOf(int id) { return Optional.ofNullable(values.get(id)); }
static Optional<GameObjectType> function(int id) { return Optional.ofNullable(values.get(id)); }
/** * Returns a {@link GameObjectType} wrapped in an {@link Optional} for the * specified {@code id}. * * @param id The game object type id. * @return The optional game object type. */
Returns a <code>GameObjectType</code> wrapped in an <code>Optional</code> for the specified id
valueOf
{ "repo_name": "atomicint/aj8", "path": "server/src/main/java/org/apollo/game/model/obj/GameObjectType.java", "license": "isc", "size": 3611 }
[ "java.util.Optional" ]
import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
2,467,673
public void setAgencyDataImportService(AgencyDataImportService agencyDataImportService) { this.agencyDataImportService = agencyDataImportService; }
void function(AgencyDataImportService agencyDataImportService) { this.agencyDataImportService = agencyDataImportService; }
/** * Sets the agencyDataImportService attribute value. * @param agencyDataImportService The agencyDataImportService to set. */
Sets the agencyDataImportService attribute value
setAgencyDataImportService
{ "repo_name": "ua-eas/ua-kfs-5.3", "path": "work/src/org/kuali/kfs/module/tem/batch/AgencyDataImportStep.java", "license": "agpl-3.0", "size": 1899 }
[ "org.kuali.kfs.module.tem.batch.service.AgencyDataImportService" ]
import org.kuali.kfs.module.tem.batch.service.AgencyDataImportService;
import org.kuali.kfs.module.tem.batch.service.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
2,090,585
public final Object GetData(String sessionId, String key, boolean refresh) { Map<String, Object> currentContext = null; if ((currentContext = newContext.get(sessionId)) != null) { return currentContext.get(key); } if (refresh) { if((currentContext = oldContext...
final Object function(String sessionId, String key, boolean refresh) { Map<String, Object> currentContext = null; if ((currentContext = newContext.get(sessionId)) != null) { return currentContext.get(key); } if (refresh) { if((currentContext = oldContext.remove(sessionId)) != null) { newContext.put(sessionId, currentCo...
/** * Get data by session and internal key * * @param sessionId * - id of session * @param key * - the internal key * @param refresh * - if perform refresh of session * @return */
Get data by session and internal key
GetData
{ "repo_name": "raksha-rao/gluster-ovirt", "path": "backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/session/SessionDataContainer.java", "license": "apache-2.0", "size": 6193 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
632,332
public void registerTable(String tableName, GeoPackageCursorWrapper cursorWrapper) { // Check for an existing wrapper GeoPackageCursorWrapper existing = tableCursors.get(tableName); // Add the wrapper if (existing == null) { tableCursors.put(tableName, cursorWrapper); } // Verify that the wrapper...
void function(String tableName, GeoPackageCursorWrapper cursorWrapper) { GeoPackageCursorWrapper existing = tableCursors.get(tableName); if (existing == null) { tableCursors.put(tableName, cursorWrapper); } else if (!existing.getClass().equals(cursorWrapper.getClass())) { throw new GeoPackageException(STR + tableName +...
/** * Register a cursor wrapper for the provided table name. Database queries * will wrap the returned cursor * * @param tableName * @param cursorWrapper */
Register a cursor wrapper for the provided table name. Database queries will wrap the returned cursor
registerTable
{ "repo_name": "boundlessgeo/geopackage-android", "path": "geopackage-sdk/src/main/java/mil/nga/geopackage/factory/GeoPackageCursorFactory.java", "license": "mit", "size": 2380 }
[ "mil.nga.geopackage.GeoPackageException" ]
import mil.nga.geopackage.GeoPackageException;
import mil.nga.geopackage.*;
[ "mil.nga.geopackage" ]
mil.nga.geopackage;
393,053
public VpnClientIPsecParametersInner withDhGroup(DhGroup dhGroup) { this.dhGroup = dhGroup; return this; }
VpnClientIPsecParametersInner function(DhGroup dhGroup) { this.dhGroup = dhGroup; return this; }
/** * Set the DH Groups used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'. * * @param dhGroup the dhGroup value to set * @return the VpnClientIPsecParametersInner object itself. */
Set the DH Groups used in IKE Phase 1 for initial SA. Possible values include: 'None', 'DHGroup1', 'DHGroup2', 'DHGroup14', 'DHGroup2048', 'ECP256', 'ECP384', 'DHGroup24'
withDhGroup
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/network/v2018_07_01/implementation/VpnClientIPsecParametersInner.java", "license": "mit", "size": 9051 }
[ "com.microsoft.azure.management.network.v2018_07_01.DhGroup" ]
import com.microsoft.azure.management.network.v2018_07_01.DhGroup;
import com.microsoft.azure.management.network.v2018_07_01.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
2,599,245
public static String asMapArea(MapWidget map, double area) { double unitLength = map.getUnitLength(); double distance = area * unitLength * unitLength; String unit = "m"; if (map.getMapModel().getMapInfo().getDisplayUnitType() == UnitType.METRIC) { // Right now, the distance is expressed in meter. Switch...
static String function(MapWidget map, double area) { double unitLength = map.getUnitLength(); double distance = area * unitLength * unitLength; String unit = "m"; if (map.getMapModel().getMapInfo().getDisplayUnitType() == UnitType.METRIC) { if (distance > (METERS_IN_KM * METERS_IN_KM)) { distance /= (METERS_IN_KM * MET...
/** * Area formatting method. Requires an area as parameter, expressed in the CRS units of the given map. * * @param map * The map for which an area should be formatted. This map may be configured to use the metric system or * the English system. * @param area * The origi...
Area formatting method. Requires an area as parameter, expressed in the CRS units of the given map
asMapArea
{ "repo_name": "geomajas/geomajas-project-client-gwt", "path": "client/src/main/java/org/geomajas/gwt/client/util/DistanceFormat.java", "license": "agpl-3.0", "size": 4734 }
[ "com.google.gwt.i18n.client.NumberFormat", "org.geomajas.configuration.client.UnitType", "org.geomajas.gwt.client.widget.MapWidget" ]
import com.google.gwt.i18n.client.NumberFormat; import org.geomajas.configuration.client.UnitType; import org.geomajas.gwt.client.widget.MapWidget;
import com.google.gwt.i18n.client.*; import org.geomajas.configuration.client.*; import org.geomajas.gwt.client.widget.*;
[ "com.google.gwt", "org.geomajas.configuration", "org.geomajas.gwt" ]
com.google.gwt; org.geomajas.configuration; org.geomajas.gwt;
1,456,610
protected void showTabs() { if (getPageCount() > 1) { setPageText(0, getString("_UI_SelectionPage_label")); if (getContainer() instanceof CTabFolder) { ((CTabFolder)getContainer()).setTabHeight(SWT.DEFAULT); Point point = getContainer().getSize(); getContainer().setSize(point.x, point.y - 6); ...
void function() { if (getPageCount() > 1) { setPageText(0, getString(STR)); if (getContainer() instanceof CTabFolder) { ((CTabFolder)getContainer()).setTabHeight(SWT.DEFAULT); Point point = getContainer().getSize(); getContainer().setSize(point.x, point.y - 6); } } }
/** * If there is more than one page in the multi-page editor part, * this shows the tabs at the bottom. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
If there is more than one page in the multi-page editor part, this shows the tabs at the bottom.
showTabs
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore.editor/src/net/opengis/citygml/transportation/presentation/TransportationEditor.java", "license": "apache-2.0", "size": 56558 }
[ "org.eclipse.swt.custom.CTabFolder", "org.eclipse.swt.graphics.Point" ]
import org.eclipse.swt.custom.CTabFolder; import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.custom.*; import org.eclipse.swt.graphics.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
1,033,246
@Test(groups = "Hybrid", enabled = true, timeOut = 300000) public void AONE_15488() throws Exception { String testName = getTestName() + uniqueRun; String opUser1 = getUserNameForDomain(testName + "opUser1", testDomain); String opUser2 = getUserNameForDomain(testName + "opUser2"...
@Test(groups = STR, enabled = true, timeOut = 300000) void function() throws Exception { String testName = getTestName() + uniqueRun; String opUser1 = getUserNameForDomain(testName + STR, testDomain); String opUser2 = getUserNameForDomain(testName + STR, testDomain); String opSiteName = getSiteName(testName) + "-OP"; S...
/** * AONE-15488: Sync to the different networks by different users. */
AONE-15488: Sync to the different networks by different users
AONE_15488
{ "repo_name": "nguyentienlong/community-edition", "path": "projects/qa-share/src/test/java/org/alfresco/share/cloudsync/HybridSyncNegativeTests2.java", "license": "lgpl-3.0", "size": 62857 }
[ "org.alfresco.po.share.site.document.DocumentLibraryPage", "org.alfresco.po.share.workflow.DestinationAndAssigneePage", "org.alfresco.share.util.ShareUser", "org.testng.Assert", "org.testng.annotations.Test" ]
import org.alfresco.po.share.site.document.DocumentLibraryPage; import org.alfresco.po.share.workflow.DestinationAndAssigneePage; import org.alfresco.share.util.ShareUser; import org.testng.Assert; import org.testng.annotations.Test;
import org.alfresco.po.share.site.document.*; import org.alfresco.po.share.workflow.*; import org.alfresco.share.util.*; import org.testng.*; import org.testng.annotations.*;
[ "org.alfresco.po", "org.alfresco.share", "org.testng", "org.testng.annotations" ]
org.alfresco.po; org.alfresco.share; org.testng; org.testng.annotations;
770,063
private static byte[] ntlmv2Hash(String target, String user, String password) throws NTLMEngineException { try { byte[] ntlmHash = ntlmHash(password); HMACMD5 hmacMD5 = new HMACMD5(ntlmHash); // Upper case username, mixed case target!! hmacMD5.upda...
static byte[] function(String target, String user, String password) throws NTLMEngineException { try { byte[] ntlmHash = ntlmHash(password); HMACMD5 hmacMD5 = new HMACMD5(ntlmHash); hmacMD5.update(user.toUpperCase(Locale.ENGLISH).getBytes(STR)); hmacMD5.update(target.getBytes(STR)); return hmacMD5.getOutput(); } catch ...
/** * Creates the NTLMv2 Hash of the user's password. * * @param target The authentication target (i.e., domain). * @param user The username. * @param password The password. * @return The NTLMv2 Hash, used in the calculation of the NTLMv2 and LMv2 * Responses. */
Creates the NTLMv2 Hash of the user's password
ntlmv2Hash
{ "repo_name": "typesafehub/async-http-client", "path": "api/src/main/java/org/asynchttpclient/ntlm/NTLMEngine.java", "license": "apache-2.0", "size": 51022 }
[ "java.io.UnsupportedEncodingException", "java.util.Locale" ]
import java.io.UnsupportedEncodingException; import java.util.Locale;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,149,279
public void waitUntilIdle() { waitTaskTrackers(); JobClient client; try { client = new JobClient(job); ClusterStatus status = client.getClusterStatus(); while(status.getTaskTrackers() + numTrackerToExclude < taskTrackerList.size()) { for(TaskTrackerRunner runner...
void function() { waitTaskTrackers(); JobClient client; try { client = new JobClient(job); ClusterStatus status = client.getClusterStatus(); while(status.getTaskTrackers() + numTrackerToExclude < taskTrackerList.size()) { for(TaskTrackerRunner runner : taskTrackerList) { if(runner.isDead) { throw new RuntimeException(S...
/** * Wait until the system is idle. */
Wait until the system is idle
waitUntilIdle
{ "repo_name": "YuMatsuzawa/HadoopEclipseProject", "path": "src/test/org/apache/hadoop/mapred/MiniMRCluster.java", "license": "apache-2.0", "size": 22898 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,319,492
private List initScanners (MatcherConfig config, FileSystem[] filesystems, MatchResults results) { List dirs = config.getSearchDirs(); String dir; int i, j; MatcherScanner scanner; List scanners = new ArrayList()...
List function (MatcherConfig config, FileSystem[] filesystems, MatchResults results) { List dirs = config.getSearchDirs(); String dir; int i, j; MatcherScanner scanner; List scanners = new ArrayList(); List selectorList = config.getMatchSelectors(); MatchSelector[] selectors; MasterMatchSelector masterSelector; FileSel...
/** * Sets up the appropriate MatcherScanners to use for the search. * @param config The config to use to initialize * @return A List of MatcherScanners to use for the search. */
Sets up the appropriate MatcherScanners to use for the search
initScanners
{ "repo_name": "cc14514/hq6", "path": "hq-util/src/main/java/org/hyperic/util/file/match/Matcher.java", "license": "unlicense", "size": 12057 }
[ "java.io.File", "java.util.ArrayList", "java.util.List", "org.apache.commons.logging.Log", "org.apache.tools.ant.types.selectors.FileSelector", "org.hyperic.sigar.FileSystem" ]
import java.io.File; import java.util.ArrayList; import java.util.List; import org.apache.commons.logging.Log; import org.apache.tools.ant.types.selectors.FileSelector; import org.hyperic.sigar.FileSystem;
import java.io.*; import java.util.*; import org.apache.commons.logging.*; import org.apache.tools.ant.types.selectors.*; import org.hyperic.sigar.*;
[ "java.io", "java.util", "org.apache.commons", "org.apache.tools", "org.hyperic.sigar" ]
java.io; java.util; org.apache.commons; org.apache.tools; org.hyperic.sigar;
2,473,225
@Override public boolean fixLighting(PlotChunk<Chunk> pc, boolean fixAll) { try { FastChunk_1_9 bc = (FastChunk_1_9) pc; Chunk chunk = bc.getChunk(); if (!chunk.isLoaded()) { chunk.load(false); } else { chunk.unload(true, tr...
boolean function(PlotChunk<Chunk> pc, boolean fixAll) { try { FastChunk_1_9 bc = (FastChunk_1_9) pc; Chunk chunk = bc.getChunk(); if (!chunk.isLoaded()) { chunk.load(false); } else { chunk.unload(true, true); chunk.load(false); } Object c = this.methodGetHandleChunk.of(chunk).call(); if (fixAll && !(boolean) this.metho...
/** * This should be overridden by any specialized queues * @param pc */
This should be overridden by any specialized queues
fixLighting
{ "repo_name": "Maescool/PlotSquared", "path": "Bukkit/src/main/java/com/plotsquared/bukkit/util/block/FastQueue_1_9.java", "license": "gpl-3.0", "size": 18661 }
[ "com.intellectualcrafters.plot.object.ChunkLoc", "com.intellectualcrafters.plot.object.PseudoRandom", "com.intellectualcrafters.plot.util.ChunkManager", "com.intellectualcrafters.plot.util.MainUtil", "com.intellectualcrafters.plot.util.PlotChunk", "com.intellectualcrafters.plot.util.ReflectionUtils", "c...
import com.intellectualcrafters.plot.object.ChunkLoc; import com.intellectualcrafters.plot.object.PseudoRandom; import com.intellectualcrafters.plot.util.ChunkManager; import com.intellectualcrafters.plot.util.MainUtil; import com.intellectualcrafters.plot.util.PlotChunk; import com.intellectualcrafters.plot.util.Refle...
import com.intellectualcrafters.plot.object.*; import com.intellectualcrafters.plot.util.*; import org.bukkit.*;
[ "com.intellectualcrafters.plot", "org.bukkit" ]
com.intellectualcrafters.plot; org.bukkit;
2,817,797
Builder profileName(String profileName); } private static final class DefaultS3ServiceConfigurationBuilder implements Builder { private Boolean dualstackEnabled; private Boolean fipsModeEnabled; private ProfileFile profileFile; private String profileName; privat...
Builder profileName(String profileName); } static final class DefaultS3ServiceConfigurationBuilder implements Builder { private Boolean dualstackEnabled; private Boolean fipsModeEnabled; private ProfileFile profileFile; private String function; private Boolean useArnRegionEnabled;
/** * The profile name that should be consulted to determine the service-specific default configuration. This is not * currently used by S3 control, but may be in a future SDK version. */
The profile name that should be consulted to determine the service-specific default configuration. This is not currently used by S3 control, but may be in a future SDK version
profileName
{ "repo_name": "aws/aws-sdk-java-v2", "path": "services/s3control/src/main/java/software/amazon/awssdk/services/s3control/S3ControlConfiguration.java", "license": "apache-2.0", "size": 9034 }
[ "software.amazon.awssdk.profiles.ProfileFile" ]
import software.amazon.awssdk.profiles.ProfileFile;
import software.amazon.awssdk.profiles.*;
[ "software.amazon.awssdk" ]
software.amazon.awssdk;
1,760,364
@Override public Sentence doProcess(Sentence st) { Eojeol[] eojeols = st.getEojeols(); for (int i = 0; i < eojeols.length; i++) { String[] morphemes = eojeols[i].getMorphemes(); String[] tags = eojeols[i].getTags(); nounMorphemes.clear(); nounTags.clear(); for (int j = 0; j < tag...
Sentence function(Sentence st) { Eojeol[] eojeols = st.getEojeols(); for (int i = 0; i < eojeols.length; i++) { String[] morphemes = eojeols[i].getMorphemes(); String[] tags = eojeols[i].getTags(); nounMorphemes.clear(); nounTags.clear(); for (int j = 0; j < tags.length; j++) { char c = tags[j].charAt(0); if (c == 'n')...
/** * It extracts the morphemes which were recognized as noun after POS tagging. * @param st - the POS tagged sentence * @return the sentence in which only nouns were remained */
It extracts the morphemes which were recognized as noun after POS tagging
doProcess
{ "repo_name": "haven-jeon/HanNanum-Analyzer", "path": "src/kr/ac/kaist/swrc/jhannanum/plugin/SupplementPlugin/PosProcessor/NounExtractor/NounExtractor.java", "license": "gpl-3.0", "size": 2741 }
[ "kr.ac.kaist.swrc.jhannanum.comm.Eojeol", "kr.ac.kaist.swrc.jhannanum.comm.Sentence" ]
import kr.ac.kaist.swrc.jhannanum.comm.Eojeol; import kr.ac.kaist.swrc.jhannanum.comm.Sentence;
import kr.ac.kaist.swrc.jhannanum.comm.*;
[ "kr.ac.kaist" ]
kr.ac.kaist;
1,293,877
protected Query<E> namedTypedQuery(String queryName) throws HibernateException { return currentSession().createNamedQuery(queryName, getEntityClass()); } /** * Returns a typed {@link Query<E>}
Query<E> function(String queryName) throws HibernateException { return currentSession().createNamedQuery(queryName, getEntityClass()); } /** * Returns a typed {@link Query<E>}
/** * Returns a named and type-safe {@link Query}. * * @param queryName the name of the query * @return the named query * @see Session#createNamedQuery(String, Class) * @since 2.0.22 */
Returns a named and type-safe <code>Query</code>
namedTypedQuery
{ "repo_name": "phambryan/dropwizard", "path": "dropwizard-hibernate/src/main/java/io/dropwizard/hibernate/AbstractDAO.java", "license": "apache-2.0", "size": 7769 }
[ "org.hibernate.HibernateException", "org.hibernate.query.Query" ]
import org.hibernate.HibernateException; import org.hibernate.query.Query;
import org.hibernate.*; import org.hibernate.query.*;
[ "org.hibernate", "org.hibernate.query" ]
org.hibernate; org.hibernate.query;
993,193
Response<LabCost> getByIdWithResponse(String id, String expand, Context context);
Response<LabCost> getByIdWithResponse(String id, String expand, Context context);
/** * Get cost. * * @param id the resource ID. * @param expand Specify the $expand query. Example: 'properties($expand=labCostDetails)'. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throw...
Get cost
getByIdWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/devtestlabs/azure-resourcemanager-devtestlabs/src/main/java/com/azure/resourcemanager/devtestlabs/models/Costs.java", "license": "mit", "size": 3050 }
[ "com.azure.core.http.rest.Response", "com.azure.core.util.Context" ]
import com.azure.core.http.rest.Response; import com.azure.core.util.Context;
import com.azure.core.http.rest.*; import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
1,957,821
public ReferrerPolicyConfig policy(ReferrerPolicy policy) { this.writer.setPolicy(policy); return this; }
ReferrerPolicyConfig function(ReferrerPolicy policy) { this.writer.setPolicy(policy); return this; }
/** * Sets the policy to be used in the response header. * @param policy a referrer policy * @return the {@link ReferrerPolicyConfig} for additional configuration * @throws IllegalArgumentException if policy is null */
Sets the policy to be used in the response header
policy
{ "repo_name": "fhanik/spring-security", "path": "config/src/main/java/org/springframework/security/config/annotation/web/configurers/HeadersConfigurer.java", "license": "apache-2.0", "size": 33246 }
[ "org.springframework.security.web.header.writers.ReferrerPolicyHeaderWriter" ]
import org.springframework.security.web.header.writers.ReferrerPolicyHeaderWriter;
import org.springframework.security.web.header.writers.*;
[ "org.springframework.security" ]
org.springframework.security;
1,963,830
public static String getPathForUri(Context context, Uri uri) { final String scheme = uri.getScheme(); if (scheme == null) { return uri.getPath(); } if (scheme.equals("content")) { ContentResolver resolver = context.getContentResolver(); if (resolve...
static String function(Context context, Uri uri) { final String scheme = uri.getScheme(); if (scheme == null) { return uri.getPath(); } if (scheme.equals(STR)) { ContentResolver resolver = context.getContentResolver(); if (resolver == null) { return null; } Cursor cursor = null; try { cursor = resolver.query(uri, null,...
/*** * returns file path for the image at the given uri */
returns file path for the image at the given uri
getPathForUri
{ "repo_name": "renard314/textfairy", "path": "app/src/main/java/com/renard/ocr/util/Util.java", "license": "apache-2.0", "size": 18278 }
[ "android.content.ContentResolver", "android.content.Context", "android.database.Cursor", "android.net.Uri", "android.provider.MediaStore" ]
import android.content.ContentResolver; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.provider.MediaStore;
import android.content.*; import android.database.*; import android.net.*; import android.provider.*;
[ "android.content", "android.database", "android.net", "android.provider" ]
android.content; android.database; android.net; android.provider;
1,707,053
List<Destination> getDestinations(PerunSession perunSession, Service service, Facility facility);
List<Destination> getDestinations(PerunSession perunSession, Service service, Facility facility);
/** * Get list of all destinations defined for the service and facility. * * @param perunSession * @param service * @param facility * @return list list of destinations defined for the service and facility * @throws InternalErrorException */
Get list of all destinations defined for the service and facility
getDestinations
{ "repo_name": "balcirakpeter/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/implApi/ServicesManagerImplApi.java", "license": "bsd-2-clause", "size": 19989 }
[ "cz.metacentrum.perun.core.api.Destination", "cz.metacentrum.perun.core.api.Facility", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.Service", "java.util.List" ]
import cz.metacentrum.perun.core.api.Destination; import cz.metacentrum.perun.core.api.Facility; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.Service; import java.util.List;
import cz.metacentrum.perun.core.api.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
1,835,453
String getAutoValue(IGraphicalPart part, String key);
String getAutoValue(IGraphicalPart part, String key);
/** * Selects a value that's not defined by user for this part by the given * key. * * @param part * The part on which the returned style is applied * @param key * The key to find the value * @return A value that's not defined by user */
Selects a value that's not defined by user for this part by the given key
getAutoValue
{ "repo_name": "nickmain/xmind", "path": "bundles/org.xmind.gef/src/org/xmind/gef/graphicalpolicy/IStyleSelector.java", "license": "epl-1.0", "size": 4670 }
[ "org.xmind.gef.part.IGraphicalPart" ]
import org.xmind.gef.part.IGraphicalPart;
import org.xmind.gef.part.*;
[ "org.xmind.gef" ]
org.xmind.gef;
475,667
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<ContainersDeleteResponse> deleteWithRestResponseAsync(String containerName, Integer timeout, String leaseId, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String requestId, Context context) { final String restype = "container"; ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<ContainersDeleteResponse> function(String containerName, Integer timeout, String leaseId, OffsetDateTime ifModifiedSince, OffsetDateTime ifUnmodifiedSince, String requestId, Context context) { final String restype = STR; DateTimeRfc1123 ifModifiedSinceConverted = ifModif...
/** * operation marks the specified container for deletion. The container and any blobs contained within it are later deleted during garbage collection. * * @param containerName The container name. * @param timeout The timeout parameter is expressed in seconds. For more information, see &lt;a href="...
operation marks the specified container for deletion. The container and any blobs contained within it are later deleted during garbage collection
deleteWithRestResponseAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/implementation/ContainersImpl.java", "license": "mit", "size": 58992 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.util.Context", "com.azure.core.util.DateTimeRfc1123", "com.azure.storage.blob.implementation.models.ContainersDeleteResponse", "java.time.OffsetDateTime" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.util.Context; import com.azure.core.util.DateTimeRfc1123; import com.azure.storage.blob.implementation.models.ContainersDeleteResponse; import java.time.OffsetDateTime;
import com.azure.core.annotation.*; import com.azure.core.util.*; import com.azure.storage.blob.implementation.models.*; import java.time.*;
[ "com.azure.core", "com.azure.storage", "java.time" ]
com.azure.core; com.azure.storage; java.time;
1,385,468
public void setDescription(String description) { if ((this.description == null)) { if ((description == null)) { return; } this.description = new Description(); } this.description.setValue(description); }
void function(String description) { if ((this.description == null)) { if ((description == null)) { return; } this.description = new Description(); } this.description.setValue(description); }
/** * Missing description at method setDescription. * * @param description the String. */
Missing description at method setDescription
setDescription
{ "repo_name": "NABUCCO/org.nabucco.framework.base", "path": "org.nabucco.framework.base.facade.datatype/src/main/gen/org/nabucco/framework/base/facade/datatype/issuetracking/Version.java", "license": "epl-1.0", "size": 13618 }
[ "org.nabucco.framework.base.facade.datatype.Description" ]
import org.nabucco.framework.base.facade.datatype.Description;
import org.nabucco.framework.base.facade.datatype.*;
[ "org.nabucco.framework" ]
org.nabucco.framework;
2,382,924
// END Federico Dall'Orso 8/3/2005 public boolean checkForSave(String msg) { // Checks if there's an old graph to save if (data != null && data.isChanged()) { int resultValue = JOptionPane.showConfirmDialog(this, msg, "JABA - Warning", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE);...
boolean function(String msg) { if (data != null && data.isChanged()) { int resultValue = JOptionPane.showConfirmDialog(this, msg, STR, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE); if (resultValue == JOptionPane.YES_OPTION) { save(); return true; } if (resultValue == JOptionPane.CANCEL_OPTION) { retur...
/** * Shows a confirmation dialog to save before new model or exit operations * * @param msg * The message to display. * @return <code>true</code> - if the user select cancel button. */
Shows a confirmation dialog to save before new model or exit operations
checkForSave
{ "repo_name": "chpatrick/jmt", "path": "src/jmt/gui/jaba/JabaWizard.java", "license": "gpl-2.0", "size": 20553 }
[ "javax.swing.JOptionPane" ]
import javax.swing.JOptionPane;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,145,128
public void homeAxes(EnumSet<AxisId> axes, boolean positive, double feedrate) throws RetryException { }
void function(EnumSet<AxisId> axes, boolean positive, double feedrate) throws RetryException { }
/*************************************************************************** * various homing functions * @throws RetryException **************************************************************************/
various homing functions
homeAxes
{ "repo_name": "jetty840/ReplicatorG", "path": "src/replicatorg/drivers/DriverBaseImplementation.java", "license": "gpl-2.0", "size": 29018 }
[ "java.util.EnumSet" ]
import java.util.EnumSet;
import java.util.*;
[ "java.util" ]
java.util;
2,778,106
public void initialize(Context context, Locale locale, TimePickerController timePickerController, Timepoint initialTime, boolean is24HourMode) { if (mTimeInitialized) { Log.e(TAG, "Time has already been initialized."); return; } mController...
void function(Context context, Locale locale, TimePickerController timePickerController, Timepoint initialTime, boolean is24HourMode) { if (mTimeInitialized) { Log.e(TAG, STR); return; } mController = timePickerController; mIs24HourMode = mAccessibilityManager.isTouchExplorationEnabled() is24HourMode; mCircleView.initi...
/** * Initialize the Layout with starting values. * * @param context A context needed to inflate resources * @param initialTime The initial selection of the Timepicker * @param is24HourMode Indicates whether we should render in 24hour mode or with AM/PM selectors */
Initialize the Layout with starting values
initialize
{ "repo_name": "alhazmy13/HijriDatePicker", "path": "library/src/main/java/net/alhazmy13/hijridatepicker/time/RadialPickerLayout.java", "license": "apache-2.0", "size": 47264 }
[ "android.content.Context", "android.util.Log", "java.util.Locale" ]
import android.content.Context; import android.util.Log; import java.util.Locale;
import android.content.*; import android.util.*; import java.util.*;
[ "android.content", "android.util", "java.util" ]
android.content; android.util; java.util;
2,485,459
public Time getTime (String columnName) throws SQLException { validateResultSet(); return resultSet_.getTime(columnName); }
Time function (String columnName) throws SQLException { validateResultSet(); return resultSet_.getTime(columnName); }
/** * Returns the value of a column as a java.sql.Time object using the * default calendar. This can be used to get values from columns * with SQL types CHAR, VARCHAR, TIME, and TIMESTAMP. * * @param columnName The column name. * @return The column value or null if the value ...
Returns the value of a column as a java.sql.Time object using the default calendar. This can be used to get values from columns with SQL types CHAR, VARCHAR, TIME, and TIMESTAMP
getTime
{ "repo_name": "piguangming/jt400", "path": "src/com/ibm/as400/access/AS400JDBCRowSet.java", "license": "epl-1.0", "size": 312066 }
[ "java.sql.SQLException", "java.sql.Time" ]
import java.sql.SQLException; import java.sql.Time;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,436,113
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_ASSET, defaultValue = "") @SimpleProperty(description = "Specifies the path of the button's image. " + "If there is both an Image and a BackgroundColor, only the Image will be " + "visible.") public void Image(String path) { ...
@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_ASSET, defaultValue = STRSpecifies the path of the button's image. STRIf there is both an Image and a BackgroundColor, only the Image will be STRvisible.STRSTRUnable to load " + imagePath); } } updateAppearance(); }
/** * Specifies the path of the button's image. * * <p/>See {@link MediaUtil#determineMediaSource} for information about what * a path can be. * * @param path the path of the button's image */
Specifies the path of the button's image. See <code>MediaUtil#determineMediaSource</code> for information about what a path can be
Image
{ "repo_name": "JDub20/CodeBlocks", "path": "appinventor/components/src/com/google/appinventor/components/runtime/ButtonBase.java", "license": "mit", "size": 20833 }
[ "com.google.appinventor.components.annotations.DesignerProperty", "com.google.appinventor.components.common.PropertyTypeConstants" ]
import com.google.appinventor.components.annotations.DesignerProperty; import com.google.appinventor.components.common.PropertyTypeConstants;
import com.google.appinventor.components.annotations.*; import com.google.appinventor.components.common.*;
[ "com.google.appinventor" ]
com.google.appinventor;
2,427,513
public void dispatchPacket(OSCPacket packet, Date timestamp) { if (packet instanceof OSCBundle) { dispatchBundle((OSCBundle) packet); } else { dispatchMessage((OSCMessage) packet, timestamp); } }
void function(OSCPacket packet, Date timestamp) { if (packet instanceof OSCBundle) { dispatchBundle((OSCBundle) packet); } else { dispatchMessage((OSCMessage) packet, timestamp); } }
/** * Dispatch packet. * * @param packet * the packet * @param timestamp * the timestamp */
Dispatch packet
dispatchPacket
{ "repo_name": "synergynet/synergynet3.1", "path": "synergynet3.1-parent/multiplicity3-input/src/main/java/com/illposed/osc/utility/OSCPacketDispatcher.java", "license": "bsd-3-clause", "size": 4275 }
[ "com.illposed.osc.OSCBundle", "com.illposed.osc.OSCMessage", "com.illposed.osc.OSCPacket", "java.util.Date" ]
import com.illposed.osc.OSCBundle; import com.illposed.osc.OSCMessage; import com.illposed.osc.OSCPacket; import java.util.Date;
import com.illposed.osc.*; import java.util.*;
[ "com.illposed.osc", "java.util" ]
com.illposed.osc; java.util;
1,410,451