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
public static int getRSADecryptFunctionFromModulus(BigInteger modulus){ // 1048 is on purpose, not exact 1024, what if implementation generated modulus of bitLength 1025? return modulus.bitLength() > 1048 ? UserObjectType.TYPE_RSA2048DECRYPT_NOPAD : UserObjectType.TYPE_RSA1024DECRYPT_NOPAD; }
static int function(BigInteger modulus){ return modulus.bitLength() > 1048 ? UserObjectType.TYPE_RSA2048DECRYPT_NOPAD : UserObjectType.TYPE_RSA1024DECRYPT_NOPAD; }
/** * Returns either TYPE_RSA2048DECRYPT_NOPAD or TYPE_RSA1024DECRYPT_NOPAD depending on the bitLength of the modulus. * * @param modulus modulus of the RSA private key * @return TYPE_RSA2048DECRYPT_NOPAD or TYPE_RSA1024DECRYPT_NOPAD */
Returns either TYPE_RSA2048DECRYPT_NOPAD or TYPE_RSA1024DECRYPT_NOPAD depending on the bitLength of the modulus
getRSADecryptFunctionFromModulus
{ "repo_name": "EnigmaBridge/client.java", "path": "client/src/main/java/com/enigmabridge/UserObjectType.java", "license": "mit", "size": 13576 }
[ "java.math.BigInteger" ]
import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
1,880,320
interface WithVirtualNetworkRules { WithCreate withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules); } interface WithCreate extends Creatable<DatabaseAccountGetResults>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithCapabilities...
interface WithVirtualNetworkRules { WithCreate withVirtualNetworkRules(List<VirtualNetworkRule> virtualNetworkRules); } interface WithCreate extends Creatable<DatabaseAccountGetResults>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithCapabilities, DefinitionStages.WithConnectorOffer, DefinitionStages.Wit...
/** * Specifies virtualNetworkRules. * @param virtualNetworkRules List of Virtual Network ACL rules configured for the Cosmos DB account * @return the next definition stage */
Specifies virtualNetworkRules
withVirtualNetworkRules
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/DatabaseAccountGetResults.java", "license": "mit", "size": 20853 }
[ "com.microsoft.azure.arm.model.Appliable", "com.microsoft.azure.arm.model.Creatable", "com.microsoft.azure.arm.resources.models.Resource", "java.util.List" ]
import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.Resource; import java.util.List;
import com.microsoft.azure.arm.model.*; import com.microsoft.azure.arm.resources.models.*; import java.util.*;
[ "com.microsoft.azure", "java.util" ]
com.microsoft.azure; java.util;
376,648
protected final ByteBuf newDirectBuffer(ByteBuf buf) { final int readableBytes = buf.readableBytes(); if (readableBytes == 0) { ReferenceCountUtil.safeRelease(buf); return Unpooled.EMPTY_BUFFER; } final ByteBufAllocator alloc = alloc(); if (alloc.isDi...
final ByteBuf function(ByteBuf buf) { final int readableBytes = buf.readableBytes(); if (readableBytes == 0) { ReferenceCountUtil.safeRelease(buf); return Unpooled.EMPTY_BUFFER; } final ByteBufAllocator alloc = alloc(); if (alloc.isDirectBufferPooled()) { ByteBuf directBuf = alloc.directBuffer(readableBytes); directBuf...
/** * Returns an off-heap copy of the specified {@link ByteBuf}, and releases the original one. * Note that this method does not create an off-heap copy if the allocation / deallocation cost is too high, * but just returns the original {@link ByteBuf}.. */
Returns an off-heap copy of the specified <code>ByteBuf</code>, and releases the original one. Note that this method does not create an off-heap copy if the allocation / deallocation cost is too high, but just returns the original <code>ByteBuf</code>.
newDirectBuffer
{ "repo_name": "doom369/netty", "path": "transport/src/main/java/io/netty/channel/nio/AbstractNioChannel.java", "license": "apache-2.0", "size": 18670 }
[ "io.netty.buffer.ByteBuf", "io.netty.buffer.ByteBufAllocator", "io.netty.buffer.ByteBufUtil", "io.netty.buffer.Unpooled", "io.netty.util.ReferenceCountUtil" ]
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBufAllocator; import io.netty.buffer.ByteBufUtil; import io.netty.buffer.Unpooled; import io.netty.util.ReferenceCountUtil;
import io.netty.buffer.*; import io.netty.util.*;
[ "io.netty.buffer", "io.netty.util" ]
io.netty.buffer; io.netty.util;
772,746
return SecurityBean.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(SecurityBean.Meta.INSTANCE); }
return SecurityBean.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(SecurityBean.Meta.INSTANCE); }
/** * The meta-bean for {@code SecurityBean}. * @return the meta-bean, not null */
The meta-bean for SecurityBean
meta
{ "repo_name": "McLeodMoores/starling", "path": "projects/master-db/src/main/java/com/opengamma/masterdb/security/hibernate/SecurityBean.java", "license": "apache-2.0", "size": 6966 }
[ "org.joda.beans.JodaBeanUtils" ]
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
1,889,230
private static int getWholeDigits(BigDecimal decimalValue) { decimalValue = decimalValue.abs(); if (ONE.compareTo(decimalValue) == 1) { return 0; } if (bdPrecision != null) { // use reflection so we can still compile using JDK1.4 //...
static int function(BigDecimal decimalValue) { decimalValue = decimalValue.abs(); if (ONE.compareTo(decimalValue) == 1) { return 0; } if (bdPrecision != null) { try { int precision = ((Integer) bdPrecision.invoke(decimalValue, null)).intValue(); return precision - decimalValue.scale(); } catch (IllegalAccessException e...
/** * Calculate the number of digits to the left of the decimal point * of the passed in value. * @param decimalValue Value to get whole digits from, never null. * @return number of whole digits. */
Calculate the number of digits to the left of the decimal point of the passed in value
getWholeDigits
{ "repo_name": "kavin256/Derby", "path": "java/engine/org/apache/derby/iapi/types/SQLDecimal.java", "license": "apache-2.0", "size": 31036 }
[ "java.lang.reflect.InvocationTargetException", "java.math.BigDecimal" ]
import java.lang.reflect.InvocationTargetException; import java.math.BigDecimal;
import java.lang.reflect.*; import java.math.*;
[ "java.lang", "java.math" ]
java.lang; java.math;
322,643
@Test public void toBlobName() { // /full/path/on/disk/to/content/directpath/some/direct/path/file.txt.properties Path absolute = underTest.getContentDir().resolve(DIRECT_PATH_ROOT).resolve("some/direct/path/file.txt.properties"); assertThat(underTest.toBlobName(absolute), is("some/direct/path/file.txt"...
void function() { Path absolute = underTest.getContentDir().resolve(DIRECT_PATH_ROOT).resolve(STR); assertThat(underTest.toBlobName(absolute), is(STR)); }
/** * This test guarantees we are returning unix-style paths for {@link BlobId}s returned by * {@link FileBlobStore#getDirectPathBlobIdStream(String)}. * This test would fail on Windows if {@link FileBlobStore#toBlobName(Path)} wasn't implemented correctly. */
This test guarantees we are returning unix-style paths for <code>BlobId</code>s returned by <code>FileBlobStore#getDirectPathBlobIdStream(String)</code>. This test would fail on Windows if <code>FileBlobStore#toBlobName(Path)</code> wasn't implemented correctly
toBlobName
{ "repo_name": "sonatype/nexus-public", "path": "components/nexus-blobstore-file/src/test/java/org/sonatype/nexus/blobstore/file/FileBlobStoreTest.java", "license": "epl-1.0", "size": 17253 }
[ "java.nio.file.Path", "org.hamcrest.MatcherAssert", "org.hamcrest.Matchers" ]
import java.nio.file.Path; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers;
import java.nio.file.*; import org.hamcrest.*;
[ "java.nio", "org.hamcrest" ]
java.nio; org.hamcrest;
1,462,561
public static void main(String[] args) throws UnsupportedLookAndFeelException { UIManager.setLookAndFeel(new MetalLookAndFeel()); //MetalLookAndFeel.setCurrentTheme(new InverseTheme()); themeInvert(); setUIFont(new javax.swing.plaf.FontUIResource(new Font("Monospaced", Font.PLAIN, 17...
static void function(String[] args) throws UnsupportedLookAndFeelException { UIManager.setLookAndFeel(new MetalLookAndFeel()); themeInvert(); setUIFont(new javax.swing.plaf.FontUIResource(new Font(STR, Font.PLAIN, 17))); runApplication(Environment.class, Main.class, args); }
/** * starts the application. * * @param args the commandline arguments */
starts the application
main
{ "repo_name": "automenta/adams-core", "path": "src/main/java/adams/gui/Main.java", "license": "gpl-3.0", "size": 9613 }
[ "java.awt.Font", "javax.swing.UIManager", "javax.swing.UnsupportedLookAndFeelException", "javax.swing.plaf.metal.MetalLookAndFeel" ]
import java.awt.Font; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException; import javax.swing.plaf.metal.MetalLookAndFeel;
import java.awt.*; import javax.swing.*; import javax.swing.plaf.metal.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
1,445,090
@PUT @NoCache @Path("mappers/{id}") @Consumes(MediaType.APPLICATION_JSON) public void update(@PathParam("id") String id, IdentityProviderMapperRepresentation rep) { this.auth.realm().requireManageIdentityProviders(); if (identityProviderModel == null) { throw new javax.w...
@Path(STR) @Consumes(MediaType.APPLICATION_JSON) void function(@PathParam("id") String id, IdentityProviderMapperRepresentation rep) { this.auth.realm().requireManageIdentityProviders(); if (identityProviderModel == null) { throw new javax.ws.rs.NotFoundException(); } IdentityProviderMapperModel model = realm.getIdenti...
/** * Update a mapper for the identity provider * * @param id Mapper id * @param rep */
Update a mapper for the identity provider
update
{ "repo_name": "agolPL/keycloak", "path": "services/src/main/java/org/keycloak/services/resources/admin/IdentityProviderResource.java", "license": "apache-2.0", "size": 18065 }
[ "javax.ws.rs.Consumes", "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.core.MediaType", "org.jboss.resteasy.spi.NotFoundException", "org.keycloak.events.admin.OperationType", "org.keycloak.events.admin.ResourceType", "org.keycloak.models.IdentityProviderMapperModel", "org.keycloak.models....
import javax.ws.rs.Consumes; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.core.MediaType; import org.jboss.resteasy.spi.NotFoundException; import org.keycloak.events.admin.OperationType; import org.keycloak.events.admin.ResourceType; import org.keycloak.models.IdentityProviderMapperModel; i...
import javax.ws.rs.*; import javax.ws.rs.core.*; import org.jboss.resteasy.spi.*; import org.keycloak.events.admin.*; import org.keycloak.models.*; import org.keycloak.models.utils.*; import org.keycloak.representations.idm.*;
[ "javax.ws", "org.jboss.resteasy", "org.keycloak.events", "org.keycloak.models", "org.keycloak.representations" ]
javax.ws; org.jboss.resteasy; org.keycloak.events; org.keycloak.models; org.keycloak.representations;
1,149,826
protected void customizeVendorProperties(Map<String, Object> vendorProperties) { }
void function(Map<String, Object> vendorProperties) { }
/** * Customize vendor properties before they are used. Allows for post processing (for * example to configure JTA specific settings). * @param vendorProperties the vendor properties to customize */
Customize vendor properties before they are used. Allows for post processing (for example to configure JTA specific settings)
customizeVendorProperties
{ "repo_name": "lburgazzoli/spring-boot", "path": "spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/orm/jpa/JpaBaseConfiguration.java", "license": "apache-2.0", "size": 9531 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,201,042
@GET @GZIP @Path("info/{name}") @Produces(MediaType.APPLICATION_JSON) Object getMBeanInfo(@HeaderParam("sessionid") String sessionId, @PathParam("name") ObjectName name, @QueryParam("attr") List<String> attrs) throws InstanceNotFoundException, IntrospectionException, Reflecti...
@Path(STR) @Produces(MediaType.APPLICATION_JSON) Object getMBeanInfo(@HeaderParam(STR) String sessionId, @PathParam("name") ObjectName name, @QueryParam("attr") List<String> attrs) throws InstanceNotFoundException, IntrospectionException, ReflectionException, IOException, NotConnectedException, PermissionRestException;
/** * JMX Mbean information. * * Returns the attributes <code>attr</code> of the mbean * registered as <code>name</code>. * @param sessionId a valid session * @param name mbean's object name * @param attrs attributes to enumerate * @return returns the attributes of the mbean ...
JMX Mbean information. Returns the attributes <code>attr</code> of the mbean registered as <code>name</code>
getMBeanInfo
{ "repo_name": "mbenguig/scheduling", "path": "rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/RMRestInterface.java", "license": "agpl-3.0", "size": 48002 }
[ "java.io.IOException", "java.util.List", "javax.management.InstanceNotFoundException", "javax.management.IntrospectionException", "javax.management.ObjectName", "javax.management.ReflectionException", "javax.ws.rs.HeaderParam", "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.Produces", ...
import java.io.IOException; import java.util.List; import javax.management.InstanceNotFoundException; import javax.management.IntrospectionException; import javax.management.ObjectName; import javax.management.ReflectionException; import javax.ws.rs.HeaderParam; import javax.ws.rs.Path; import javax.ws.rs.PathParam; im...
import java.io.*; import java.util.*; import javax.management.*; import javax.ws.rs.*; import javax.ws.rs.core.*; import org.ow2.proactive.scheduler.common.exception.*; import org.ow2.proactive_grid_cloud_portal.scheduler.exception.*;
[ "java.io", "java.util", "javax.management", "javax.ws", "org.ow2.proactive", "org.ow2.proactive_grid_cloud_portal" ]
java.io; java.util; javax.management; javax.ws; org.ow2.proactive; org.ow2.proactive_grid_cloud_portal;
312,433
public void stopScreenshotSequence() { if(config.commandLogging){ Log.d(config.commandLoggingTag, "stopScreenshotSequence()"); } screenshotTaker.stopScreenshotSequence(); }
void function() { if(config.commandLogging){ Log.d(config.commandLoggingTag, STR); } screenshotTaker.stopScreenshotSequence(); }
/** * Causes a screenshot sequence to end. * * If this method is not called to end a sequence and a prior sequence is still in * progress, startScreenshotSequence() will throw an exception. */
Causes a screenshot sequence to end. If this method is not called to end a sequence and a prior sequence is still in progress, startScreenshotSequence() will throw an exception
stopScreenshotSequence
{ "repo_name": "darker50/robotium", "path": "robotium-solo/src/main/java/com/robotium/solo/Solo.java", "license": "apache-2.0", "size": 124742 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
1,972,569
private int writePacketHeader(ByteBuffer pkt, int dataLen, int packetLen) { pkt.clear(); // both syncBlock and syncPacket are false PacketHeader header = new PacketHeader(packetLen, offset, seqno, (dataLen == 0), dataLen, false); int size = header.getSerializedSize(); pkt.position(Pac...
int function(ByteBuffer pkt, int dataLen, int packetLen) { pkt.clear(); PacketHeader header = new PacketHeader(packetLen, offset, seqno, (dataLen == 0), dataLen, false); int size = header.getSerializedSize(); pkt.position(PacketHeader.PKT_MAX_HEADER_LEN - size); header.putInBuffer(pkt); return size; }
/** * Write packet header into {@code pkt}, * return the length of the header written. */
Write packet header into pkt, return the length of the header written
writePacketHeader
{ "repo_name": "vesense/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockSender.java", "license": "apache-2.0", "size": 32055 }
[ "java.nio.ByteBuffer", "org.apache.hadoop.hdfs.protocol.datatransfer.PacketHeader" ]
import java.nio.ByteBuffer; import org.apache.hadoop.hdfs.protocol.datatransfer.PacketHeader;
import java.nio.*; import org.apache.hadoop.hdfs.protocol.datatransfer.*;
[ "java.nio", "org.apache.hadoop" ]
java.nio; org.apache.hadoop;
1,682,613
public static ExecutionConfig timeoutOf(long timeout) { return defaultConfig().withTimeoutOf(timeout); }
static ExecutionConfig function(long timeout) { return defaultConfig().withTimeoutOf(timeout); }
/** * Gets an instance of an execution configuration with a specified timeout in milliseconds. * @param timeout the timeout * @return an instance of an execution configuration with a specified timeout in milliseconds. */
Gets an instance of an execution configuration with a specified timeout in milliseconds
timeoutOf
{ "repo_name": "SilverDav/Silverpeas-Core", "path": "core-api/src/main/java/org/silverpeas/core/thread/ManagedThreadPool.java", "license": "agpl-3.0", "size": 17556 }
[ "org.silverpeas.core.thread.ManagedThreadPool" ]
import org.silverpeas.core.thread.ManagedThreadPool;
import org.silverpeas.core.thread.*;
[ "org.silverpeas.core" ]
org.silverpeas.core;
2,514,131
public void schedule() { Timer timer = new Timer(); timer.schedule(this, 0, pxConfiguration.getValidateRequestQueueInterval()); }
void function() { Timer timer = new Timer(); timer.schedule(this, 0, pxConfiguration.getValidateRequestQueueInterval()); }
/** * Sets a new timer object and runs its execution method */
Sets a new timer object and runs its execution method
schedule
{ "repo_name": "PerimeterX/perimeterx-java-sdk", "path": "src/main/java/com/perimeterx/http/TimerValidateRequestsQueue.java", "license": "mit", "size": 1177 }
[ "java.util.Timer" ]
import java.util.Timer;
import java.util.*;
[ "java.util" ]
java.util;
1,492,226
public URI getBaseUri() { return this.baseUri; } private SubscriptionCloudCredentials credentials;
URI function() { return this.baseUri; } private SubscriptionCloudCredentials credentials;
/** * Gets the URI used as the base for all cloud service requests. * @return The BaseUri value. */
Gets the URI used as the base for all cloud service requests
getBaseUri
{ "repo_name": "flydream2046/azure-sdk-for-java", "path": "service-management/azure-svc-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/NotificationHubsManagementClientImpl.java", "license": "apache-2.0", "size": 9236 }
[ "com.microsoft.windowsazure.credentials.SubscriptionCloudCredentials" ]
import com.microsoft.windowsazure.credentials.SubscriptionCloudCredentials;
import com.microsoft.windowsazure.credentials.*;
[ "com.microsoft.windowsazure" ]
com.microsoft.windowsazure;
1,272,963
protected String processOffer(String offer) throws OpenViduException { if (this.isWeb()) { if (webEndpoint == null) { throw new OpenViduException(Code.MEDIA_WEBRTC_ENDPOINT_ERROR_CODE, "Can't process offer when WebRtcEndpoint is null (ep: " + endpointName + ")"); } return webEndpoint.processOffe...
String function(String offer) throws OpenViduException { if (this.isWeb()) { if (webEndpoint == null) { throw new OpenViduException(Code.MEDIA_WEBRTC_ENDPOINT_ERROR_CODE, STR + endpointName + ")"); } return webEndpoint.processOffer(offer); } else if (this.isPlayerEndpoint()) { return STRCan't process offer when RtpEndp...
/** * Orders the internal endpoint ({@link RtpEndpoint} or {@link WebRtcEndpoint}) * to process the offer String. * * @see SdpEndpoint#processOffer(String) * @param offer String with the Sdp offer * @return the Sdp answer */
Orders the internal endpoint (<code>RtpEndpoint</code> or <code>WebRtcEndpoint</code>) to process the offer String
processOffer
{ "repo_name": "OpenVidu/openvidu", "path": "openvidu-server/src/main/java/io/openvidu/server/kurento/endpoint/MediaEndpoint.java", "license": "apache-2.0", "size": 25963 }
[ "io.openvidu.client.OpenViduException", "org.kurento.client.RtpEndpoint" ]
import io.openvidu.client.OpenViduException; import org.kurento.client.RtpEndpoint;
import io.openvidu.client.*; import org.kurento.client.*;
[ "io.openvidu.client", "org.kurento.client" ]
io.openvidu.client; org.kurento.client;
1,146,525
public String getID(ItemStack upgrade);
String function(ItemStack upgrade);
/*** * Gets the ID for this upgrade. There is no validation for this -- Multiple upgrades can have the same ID, but may cause issues. * * @param upgrade * The upgrade itself. * @return Identifier */
Gets the ID for this upgrade. There is no validation for this -- Multiple upgrades can have the same ID, but may cause issues
getID
{ "repo_name": "Solace7/EnhancedPortals", "path": "src/main/java/enhancedportals/utility/IPortalModule.java", "license": "lgpl-3.0", "size": 4224 }
[ "net.minecraft.item.ItemStack" ]
import net.minecraft.item.ItemStack;
import net.minecraft.item.*;
[ "net.minecraft.item" ]
net.minecraft.item;
2,240,645
public static String getStringProperty(Message message, String propertyName) { try { return message.getStringProperty(propertyName); } catch (Exception e) { // ignore due some broker client does not support accessing StringProperty } return null; }
static String function(Message message, String propertyName) { try { return message.getStringProperty(propertyName); } catch (Exception e) { } return null; }
/** * Gets the String Properties from the message. * * @param message the message * @return the type, can be <tt>null</tt> */
Gets the String Properties from the message
getStringProperty
{ "repo_name": "isavin/camel", "path": "components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsMessageHelper.java", "license": "apache-2.0", "size": 16024 }
[ "javax.jms.Message" ]
import javax.jms.Message;
import javax.jms.*;
[ "javax.jms" ]
javax.jms;
1,012,794
private void updateCertificateSelector() { if (!mCheckAuto.isChecked()) { mSelectCert.setEnabled(true); mSelectCert.setVisibility(View.VISIBLE); if (mCertEntry != null) { mSelectCert.getText1().setText(mCertEntry.getSubjectPrimary()); mSelectCert.getText2().setText(mCertEntry.getSubjectSeco...
void function() { if (!mCheckAuto.isChecked()) { mSelectCert.setEnabled(true); mSelectCert.setVisibility(View.VISIBLE); if (mCertEntry != null) { mSelectCert.getText1().setText(mCertEntry.getSubjectPrimary()); mSelectCert.getText2().setText(mCertEntry.getSubjectSecondary()); } else { mSelectCert.getText1().setText(R.st...
/** * Update the CA certificate selection UI depending on whether the * certificate should be automatically selected or not. */
Update the CA certificate selection UI depending on whether the certificate should be automatically selected or not
updateCertificateSelector
{ "repo_name": "vapana/client", "path": "src/frontends/android/src/org/strongswan/android/ui/VpnProfileDetailActivity.java", "license": "gpl-2.0", "size": 15530 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
328,935
public void testPublishWithOverwrite() throws IOException { //we expect the overwrite settings to be passed through the event listeners and into the publisher. this.expectedOverwrite = true; //set overwrite to true. InstrumentedResolver will verify that the correct argument value w...
void function() throws IOException { this.expectedOverwrite = true; publishOptions.setOverwrite(true); Collection missing = publishEngine.publish(publishModule.getModuleRevisionId(), publishSources, STR, publishOptions); assertEquals(STR, 0, missing.size()); assertEquals(STR, 2, preTriggers); assertEquals(STR, 2, postT...
/** * Test a simple artifact publish, with overwrite set to true. */
Test a simple artifact publish, with overwrite set to true
testPublishWithOverwrite
{ "repo_name": "sbt/ivy", "path": "test/java/org/apache/ivy/core/publish/PublishEventsTest.java", "license": "apache-2.0", "size": 22123 }
[ "java.io.IOException", "java.util.Collection" ]
import java.io.IOException; import java.util.Collection;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,700,122
public boolean contains(String name, boolean caseSensitive) { if (names.contains(name)) { return true; } if (!caseSensitive) { final String s = names.ceiling(name.toLowerCase(Locale.ROOT)); return s != null && s.equalsIgnoreCase(name); } return false; }
boolean function(String name, boolean caseSensitive) { if (names.contains(name)) { return true; } if (!caseSensitive) { final String s = names.ceiling(name.toLowerCase(Locale.ROOT)); return s != null && s.equalsIgnoreCase(name); } return false; }
/** Returns whether this set contains the given name, with a given * case-sensitivity. */
Returns whether this set contains the given name, with a given
contains
{ "repo_name": "b-slim/calcite", "path": "core/src/main/java/org/apache/calcite/util/NameSet.java", "license": "apache-2.0", "size": 3597 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
1,043,513
public static <K,V> IdentityHashMap<K,V> readIdentityHashMap(DataInput in) throws IOException, ClassNotFoundException { InternalDataSerializer.checkIn(in); int size = InternalDataSerializer.readArrayLength(in); if (size == -1) { return null; } else { IdentityHashMap<K,V> map = new Id...
static <K,V> IdentityHashMap<K,V> function(DataInput in) throws IOException, ClassNotFoundException { InternalDataSerializer.checkIn(in); int size = InternalDataSerializer.readArrayLength(in); if (size == -1) { return null; } else { IdentityHashMap<K,V> map = new IdentityHashMap<K,V>(size); for (int i = 0; i < size; i+...
/** * Reads a <code>IdentityHashMap</code> from a <code>DataInput</code>. * Note that key identity is not preserved unless the keys belong to a class * whose serialization preserves identity. * * @throws IOException * A problem occurs while reading from <code>in</code> * @throws ClassNotFou...
Reads a <code>IdentityHashMap</code> from a <code>DataInput</code>. Note that key identity is not preserved unless the keys belong to a class whose serialization preserves identity
readIdentityHashMap
{ "repo_name": "sshcherbakov/incubator-geode", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/DataSerializer.java", "license": "apache-2.0", "size": 109153 }
[ "com.gemstone.gemfire.internal.InternalDataSerializer", "com.gemstone.gemfire.internal.logging.log4j.LogMarker", "java.io.DataInput", "java.io.IOException", "java.util.IdentityHashMap" ]
import com.gemstone.gemfire.internal.InternalDataSerializer; import com.gemstone.gemfire.internal.logging.log4j.LogMarker; import java.io.DataInput; import java.io.IOException; import java.util.IdentityHashMap;
import com.gemstone.gemfire.internal.*; import com.gemstone.gemfire.internal.logging.log4j.*; import java.io.*; import java.util.*;
[ "com.gemstone.gemfire", "java.io", "java.util" ]
com.gemstone.gemfire; java.io; java.util;
2,384,486
protected Command getReorientRelationshipCommand(ReorientRelationshipRequest req) { switch (getVisualID(req)) { case EsbLinkEditPart.VISUAL_ID: return getGEFWrapper(new EsbLinkReorientCommand(req)); } return super.getReorientRelationshipCommand(req); }
Command function(ReorientRelationshipRequest req) { switch (getVisualID(req)) { case EsbLinkEditPart.VISUAL_ID: return getGEFWrapper(new EsbLinkReorientCommand(req)); } return super.getReorientRelationshipCommand(req); }
/** * Returns command to reorient EClass based link. New link target or source * should be the domain model element associated with this node. * * @generated */
Returns command to reorient EClass based link. New link target or source should be the domain model element associated with this node
getReorientRelationshipCommand
{ "repo_name": "harsha1979/developer-studio", "path": "esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/policies/RecipientListEndPointWestOutputConnectorItemSemanticEditPolicy.java", "license": "apache-2.0", "size": 3888 }
[ "org.eclipse.gef.commands.Command", "org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest", "org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands.EsbLinkReorientCommand", "org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.parts.EsbLinkEditPart" ]
import org.eclipse.gef.commands.Command; import org.eclipse.gmf.runtime.emf.type.core.requests.ReorientRelationshipRequest; import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands.EsbLinkReorientCommand; import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.parts.EsbLinkEditPart;
import org.eclipse.gef.commands.*; import org.eclipse.gmf.runtime.emf.type.core.requests.*; import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.commands.*; import org.wso2.developerstudio.eclipse.gmf.esb.diagram.edit.parts.*;
[ "org.eclipse.gef", "org.eclipse.gmf", "org.wso2.developerstudio" ]
org.eclipse.gef; org.eclipse.gmf; org.wso2.developerstudio;
2,637,503
public void setSolrOperations(SolrOperations operations) { this.operations = operations; }
void function(SolrOperations operations) { this.operations = operations; }
/** * Configures the {@link SolrOperations} to be used to create Solr repositories. * * @param operations the operations to set */
Configures the <code>SolrOperations</code> to be used to create Solr repositories
setSolrOperations
{ "repo_name": "cipous/spring-data-solr", "path": "src/main/java/org/springframework/data/solr/repository/support/SolrRepositoryFactoryBean.java", "license": "apache-2.0", "size": 3989 }
[ "org.springframework.data.solr.core.SolrOperations" ]
import org.springframework.data.solr.core.SolrOperations;
import org.springframework.data.solr.core.*;
[ "org.springframework.data" ]
org.springframework.data;
2,448,786
DataLakePathAsyncClient getPathAsyncClient(String destinationPath) { if (CoreUtils.isNullOrEmpty(destinationPath)) { throw logger.logExceptionAsError(new IllegalArgumentException("'destinationPath' can not be set to null")); } // Get current Datalake URL and replace current path ...
DataLakePathAsyncClient getPathAsyncClient(String destinationPath) { if (CoreUtils.isNullOrEmpty(destinationPath)) { throw logger.logExceptionAsError(new IllegalArgumentException(STR)); } String newDfsEndpoint = BlobUrlParts.parse(getPathUrl()) .setBlobName(destinationPath).toUrl().toString(); return new DataLakePathAs...
/** * Takes in a destination path and creates a DataLakePathAsyncClient with a new path name * @param destinationPath The destination path * @return A DataLakePathAsyncClient */
Takes in a destination path and creates a DataLakePathAsyncClient with a new path name
getPathAsyncClient
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/DataLakePathAsyncClient.java", "license": "mit", "size": 37307 }
[ "com.azure.core.util.CoreUtils", "com.azure.storage.blob.BlobUrlParts" ]
import com.azure.core.util.CoreUtils; import com.azure.storage.blob.BlobUrlParts;
import com.azure.core.util.*; import com.azure.storage.blob.*;
[ "com.azure.core", "com.azure.storage" ]
com.azure.core; com.azure.storage;
765,789
public static Map<String, String> getUidDisplayPropertyMap( Collection<? extends NameableObject> objects, DisplayProperty displayProperty ) { Map<String, String> map = new HashMap<>(); if ( objects != null ) { for ( NameableObject object : objects ) { ...
static Map<String, String> function( Collection<? extends NameableObject> objects, DisplayProperty displayProperty ) { Map<String, String> map = new HashMap<>(); if ( objects != null ) { for ( NameableObject object : objects ) { map.put( object.getUid(), object.getDisplayProperty( displayProperty ) ); } } return map; }
/** * Returns a mapping between the UID and the property defined by the given * display property. * * @param objects the objects. * @param displayProperty the property to use as value. * @return mapping between the uid and the property of the given objects. */
Returns a mapping between the UID and the property defined by the given display property
getUidDisplayPropertyMap
{ "repo_name": "dhis2/dhis2-core", "path": "dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/NameableObjectUtils.java", "license": "bsd-3-clause", "size": 4974 }
[ "java.util.Collection", "java.util.HashMap", "java.util.Map" ]
import java.util.Collection; import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,393,954
boolean compare( CompareRequest compareRequest ) throws LdapException;
boolean compare( CompareRequest compareRequest ) throws LdapException;
/** * Checks to see if an attribute in an entry contains a value. * * @param compareRequest the received request * @throws Exception if there are failures while comparing */
Checks to see if an attribute in an entry contains a value
compare
{ "repo_name": "drankye/directory-server", "path": "core-api/src/main/java/org/apache/directory/server/core/api/CoreSession.java", "license": "apache-2.0", "size": 31531 }
[ "org.apache.directory.api.ldap.model.exception.LdapException", "org.apache.directory.api.ldap.model.message.CompareRequest" ]
import org.apache.directory.api.ldap.model.exception.LdapException; import org.apache.directory.api.ldap.model.message.CompareRequest;
import org.apache.directory.api.ldap.model.exception.*; import org.apache.directory.api.ldap.model.message.*;
[ "org.apache.directory" ]
org.apache.directory;
2,566,322
float compute(List<Set<Integer>> a, List<Set<Integer>> b, IProgressMonitor monitor);
float compute(List<Set<Integer>> a, List<Set<Integer>> b, IProgressMonitor monitor);
/** * computes the score between the two stratifications identified by their collection of group sets * * @param a * @param b * @return */
computes the score between the two stratifications identified by their collection of group sets
compute
{ "repo_name": "Caleydo/caleydo", "path": "org.caleydo.view.tourguide/src/main/java/org/caleydo/view/tourguide/spi/algorithm/IStratificationAlgorithm.java", "license": "bsd-3-clause", "size": 1118 }
[ "java.util.List", "java.util.Set", "org.eclipse.core.runtime.IProgressMonitor" ]
import java.util.List; import java.util.Set; import org.eclipse.core.runtime.IProgressMonitor;
import java.util.*; import org.eclipse.core.runtime.*;
[ "java.util", "org.eclipse.core" ]
java.util; org.eclipse.core;
1,293,782
public static TransitiveInfoCollection mallocForTarget(RuleContext ruleContext) { if (ruleContext.getFragment(CppConfiguration.class).customMalloc() != null) { return ruleContext.getPrerequisite(":default_malloc", Mode.TARGET); } else { return ruleContext.getPrerequisite("malloc", Mode.TARGET); ...
static TransitiveInfoCollection function(RuleContext ruleContext) { if (ruleContext.getFragment(CppConfiguration.class).customMalloc() != null) { return ruleContext.getPrerequisite(STR, Mode.TARGET); } else { return ruleContext.getPrerequisite(STR, Mode.TARGET); } }
/** * Returns the malloc implementation for the given target. */
Returns the malloc implementation for the given target
mallocForTarget
{ "repo_name": "abergmeier-dsfishlabs/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CppHelper.java", "license": "apache-2.0", "size": 25316 }
[ "com.google.devtools.build.lib.analysis.RuleConfiguredTarget", "com.google.devtools.build.lib.analysis.RuleContext", "com.google.devtools.build.lib.analysis.TransitiveInfoCollection" ]
import com.google.devtools.build.lib.analysis.RuleConfiguredTarget; import com.google.devtools.build.lib.analysis.RuleContext; import com.google.devtools.build.lib.analysis.TransitiveInfoCollection;
import com.google.devtools.build.lib.analysis.*;
[ "com.google.devtools" ]
com.google.devtools;
632,208
public void correctCoerce() { if (useMetaClass) return; Class[] parameters = handle.type().parameterArray(); if (currentType!=null) parameters = currentType.parameterArray(); if (args.length != parameters.length) { throw new GroovyBugError("At thi...
void function() { if (useMetaClass) return; Class[] parameters = handle.type().parameterArray(); if (currentType!=null) parameters = currentType.parameterArray(); if (args.length != parameters.length) { throw new GroovyBugError(STR); } for (int i=0; i<args.length; i++) { if (parameters[i]==Object.class) continue; Objec...
/** * There are some conversions we have to do explicitly. * These are GString to String, Number to Byte and Number to BigInteger * conversions. */
There are some conversions we have to do explicitly. These are GString to String, Number to Byte and Number to BigInteger conversions
correctCoerce
{ "repo_name": "avafanasiev/groovy", "path": "src/main/org/codehaus/groovy/vmplugin/v7/Selector.java", "license": "apache-2.0", "size": 50283 }
[ "org.codehaus.groovy.GroovyBugError", "org.codehaus.groovy.vmplugin.v7.IndyInterface" ]
import org.codehaus.groovy.GroovyBugError; import org.codehaus.groovy.vmplugin.v7.IndyInterface;
import org.codehaus.groovy.*; import org.codehaus.groovy.vmplugin.v7.*;
[ "org.codehaus.groovy" ]
org.codehaus.groovy;
288,994
public void setVoice(boolean state) { if (state) { m_mode.add(Channel.CHANNEL_MODE_VOICE); m_logger.log(Level.INFO, "voice set on channel '" + m_strName + "': " + m_user.getNick()); } else { m_mode.remove(Channel.CHANNEL_MODE_VOICE); m_logger.log(Level.INFO, "voice set on chan...
void function(boolean state) { if (state) { m_mode.add(Channel.CHANNEL_MODE_VOICE); m_logger.log(Level.INFO, STR + m_strName + STR + m_user.getNick()); } else { m_mode.remove(Channel.CHANNEL_MODE_VOICE); m_logger.log(Level.INFO, STR + m_strName + STR + m_user.getNick()); } } private User m_user; private Mode m_mode; } ...
/** * Sets the voice status of the member. * * @param state * the state. */
Sets the voice status of the member
setVoice
{ "repo_name": "bhuisgen/hbircs", "path": "src/fr/hbis/ircs/Channel.java", "license": "gpl-2.0", "size": 36466 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
1,789,759
EClass getActRelationship();
EClass getActRelationship();
/** * Returns the meta object for class '{@link org.openhealthtools.mdht.uml.hl7.rim.ActRelationship <em>Act Relationship</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Act Relationship</em>'. * @see org.openhealthtools.mdht.uml.hl7.rim.ActRelationship ...
Returns the meta object for class '<code>org.openhealthtools.mdht.uml.hl7.rim.ActRelationship Act Relationship</code>'.
getActRelationship
{ "repo_name": "drbgfc/mdht", "path": "cda/plugins/org.openhealthtools.mdht.uml.hl7.rim/src/org/openhealthtools/mdht/uml/hl7/rim/RIMPackage.java", "license": "epl-1.0", "size": 12211 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,700,373
@ProbeBuilder public TestProbeBuilder probeConfiguration(TestProbeBuilder probe) { probe.setHeader(Constants.DYNAMICIMPORT_PACKAGE, "*,org.apache.felix.service.*;status=provisional"); return probe; }
TestProbeBuilder function(TestProbeBuilder probe) { probe.setHeader(Constants.DYNAMICIMPORT_PACKAGE, STR); return probe; }
/** * This is used to customize the Probe that will contain the test. * We need to enable dynamic import of provisional bundles, to use the Console. */
This is used to customize the Probe that will contain the test. We need to enable dynamic import of provisional bundles, to use the Console
probeConfiguration
{ "repo_name": "jludvice/fabric8", "path": "tooling/testing/pax-exam-karaf/src/main/java/io/fabric8/tooling/testing/pax/exam/karaf/FabricKarafTestSupport.java", "license": "apache-2.0", "size": 12953 }
[ "org.ops4j.pax.exam.TestProbeBuilder", "org.osgi.framework.Constants" ]
import org.ops4j.pax.exam.TestProbeBuilder; import org.osgi.framework.Constants;
import org.ops4j.pax.exam.*; import org.osgi.framework.*;
[ "org.ops4j.pax", "org.osgi.framework" ]
org.ops4j.pax; org.osgi.framework;
1,797,650
private boolean isValidFile(final File file) { return (file != null && file.isDirectory() && file.canRead() && (file.canWrite())); }
boolean function(final File file) { return (file != null && file.isDirectory() && file.canRead() && (file.canWrite())); }
/** * Returns true if the selected file or directory would be valid selection. */
Returns true if the selected file or directory would be valid selection
isValidFile
{ "repo_name": "wizmer/syncorg", "path": "SyncOrg/src/main/java/com/coste/syncorg/directory_chooser/DirectoryChooserFragment.java", "license": "gpl-3.0", "size": 17314 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,871,196
public static AbstractColumnValue getColumnValue(IColumnValue<?> col) { AbstractColumnValue colValue = null; if (col.getType() == IColumnValue.ColumnType.BigDecimal) { colValue = new BigDecimalColumnValue(col.getName(), (BigDecimal)col.getValue()); } else if (col.getType() == IColumnValue.Co...
static AbstractColumnValue function(IColumnValue<?> col) { AbstractColumnValue colValue = null; if (col.getType() == IColumnValue.ColumnType.BigDecimal) { colValue = new BigDecimalColumnValue(col.getName(), (BigDecimal)col.getValue()); } else if (col.getType() == IColumnValue.ColumnType.BigInteger) { colValue = new Big...
/** * Get an abstract column value instantiated with the correct concrete data * type based on an incoming message column value type. * * @param col a message primary key column value * @return a Poesys/DB column value corresponding to the message column value */
Get an abstract column value instantiated with the correct concrete data type based on an incoming message column value type
getColumnValue
{ "repo_name": "Poesys-Associates/poesys-db", "path": "poesys-db/src/com/poesys/db/pk/MessageKeyFactory.java", "license": "lgpl-3.0", "size": 5316 }
[ "com.poesys.db.col.AbstractColumnValue", "com.poesys.db.col.BigDecimalColumnValue", "com.poesys.db.col.BigIntegerColumnValue", "com.poesys.db.col.DateColumnValue", "com.poesys.db.col.IntegerColumnValue", "com.poesys.db.col.LongColumnValue", "com.poesys.db.col.NullColumnValue", "com.poesys.db.col.Strin...
import com.poesys.db.col.AbstractColumnValue; import com.poesys.db.col.BigDecimalColumnValue; import com.poesys.db.col.BigIntegerColumnValue; import com.poesys.db.col.DateColumnValue; import com.poesys.db.col.IntegerColumnValue; import com.poesys.db.col.LongColumnValue; import com.poesys.db.col.NullColumnValue; import ...
import com.poesys.db.col.*; import com.poesys.ms.col.*; import java.math.*; import java.sql.*;
[ "com.poesys.db", "com.poesys.ms", "java.math", "java.sql" ]
com.poesys.db; com.poesys.ms; java.math; java.sql;
958,257
@VisibleForTesting public ImmutableList<E> getEntries() { return new ImmutableList.Builder<E>().addAll(referenceMap.keySet()).build(); }
ImmutableList<E> function() { return new ImmutableList.Builder<E>().addAll(referenceMap.keySet()).build(); }
/** * Get entries in the reference Map. * * @return */
Get entries in the reference Map
getEntries
{ "repo_name": "legend-hua/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/util/ReferenceCountMap.java", "license": "apache-2.0", "size": 3282 }
[ "com.google.common.collect.ImmutableList" ]
import com.google.common.collect.ImmutableList;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
2,842,205
public DatabaseField getPrimaryKeyJoinColumnAssociationField(DatabaseField primaryKeyField) { if (! m_pkJoinColumnAssociations.isEmpty()) { return m_pkJoinColumnAssociations.keySet().iterator().next(); } return primaryKeyField; }
DatabaseField function(DatabaseField primaryKeyField) { if (! m_pkJoinColumnAssociations.isEmpty()) { return m_pkJoinColumnAssociations.keySet().iterator().next(); } return primaryKeyField; }
/** * INTERNAL: * Returns the first primary key join column association if there is one. * Otherwise, the primary key field given is returned. */
Returns the first primary key join column association if there is one. Otherwise, the primary key field given is returned
getPrimaryKeyJoinColumnAssociationField
{ "repo_name": "RallySoftware/eclipselink.runtime", "path": "jpa/org.eclipse.persistence.jpa/src/org/eclipse/persistence/internal/jpa/metadata/MetadataDescriptor.java", "license": "epl-1.0", "size": 70318 }
[ "org.eclipse.persistence.internal.helper.DatabaseField" ]
import org.eclipse.persistence.internal.helper.DatabaseField;
import org.eclipse.persistence.internal.helper.*;
[ "org.eclipse.persistence" ]
org.eclipse.persistence;
999,581
@Override public AttachmentCopyContext<AttachmentRef> copy(IAttachmentRef ref, SDocument sdoc) { if (!(ref instanceof AttachmentRef)) { return super.copy(ref, sdoc); } if (sdoc != null ) { Optional<FormVersionEntity> fve = formService.findCurrentFormVersion(sdoc);...
AttachmentCopyContext<AttachmentRef> function(IAttachmentRef ref, SDocument sdoc) { if (!(ref instanceof AttachmentRef)) { return super.copy(ref, sdoc); } if (sdoc != null ) { Optional<FormVersionEntity> fve = formService.findCurrentFormVersion(sdoc); if(fve.isPresent()){ formAttachmentService.saveNewFormAttachmentEnti...
/** * Faz o vinculo entre anexo persistido e formversionentity * * @param ref referencia a um anexo ja persistido no banco de dados * @param sdoc documento atual do formulario * @return os dados de contexto para ações pos copia */
Faz o vinculo entre anexo persistido e formversionentity
copy
{ "repo_name": "opensingular/singular-server", "path": "lib/app-commons/src/main/java/org/opensingular/app/commons/spring/persistence/attachment/ServerAttachmentPersistenceService.java", "license": "apache-2.0", "size": 3458 }
[ "java.util.Optional", "org.opensingular.form.document.SDocument", "org.opensingular.form.persistence.dto.AttachmentRef", "org.opensingular.form.persistence.entity.FormVersionEntity", "org.opensingular.form.type.core.attachment.AttachmentCopyContext", "org.opensingular.form.type.core.attachment.IAttachment...
import java.util.Optional; import org.opensingular.form.document.SDocument; import org.opensingular.form.persistence.dto.AttachmentRef; import org.opensingular.form.persistence.entity.FormVersionEntity; import org.opensingular.form.type.core.attachment.AttachmentCopyContext; import org.opensingular.form.type.core.attac...
import java.util.*; import org.opensingular.form.document.*; import org.opensingular.form.persistence.dto.*; import org.opensingular.form.persistence.entity.*; import org.opensingular.form.type.core.attachment.*;
[ "java.util", "org.opensingular.form" ]
java.util; org.opensingular.form;
1,406,923
public static HashMap<String, String> getNonEncryptedQueryValues(String query, int limit) { return getDefaultStorage().getForNonEncryptedQuery(query, limit); }
static HashMap<String, String> function(String query, int limit) { return getDefaultStorage().getForNonEncryptedQuery(query, limit); }
/** * Retrieves key-val pairs according to given query, limiting amount of results returned. * * @param query query that determines what key-val pairs will be returned * @param limit max amount of key-val pairs returned * @return hashmap of key-val pairs */
Retrieves key-val pairs according to given query, limiting amount of results returned
getNonEncryptedQueryValues
{ "repo_name": "soomla/soomla-android-core", "path": "src/com/soomla/data/KeyValueStorage.java", "license": "mit", "size": 7401 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,550,173
public void setBaseItemLabelFont(Font font, boolean notify); //// ITEM LABEL PAINT /////////////////////////////////////////////////////
void function(Font font, boolean notify);
/** * Sets the default item label font and, if requested, sends a * {@link RendererChangeEvent} to all registered listeners. * * @param font the font (<code>null</code> not permitted). * @param notify notify listeners? * * @since 1.2.0 * * @see #getBaseItemLab...
Sets the default item label font and, if requested, sends a <code>RendererChangeEvent</code> to all registered listeners
setBaseItemLabelFont
{ "repo_name": "SpoonLabs/astor", "path": "examples/chart_11/source/org/jfree/chart/renderer/category/CategoryItemRenderer.java", "license": "gpl-2.0", "size": 64985 }
[ "java.awt.Font" ]
import java.awt.Font;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,678,520
private static void prepareServiceRoles(PerunSession sess) { // Load list of perunAdmins from the configuration, split the list by the comma List<String> perunAdmins = BeansUtils.getCoreConfig().getAdmins(); // Check if the PerunPrincipal is in a group of Perun Admins if (perunAdmins.contains(sess.getPerunP...
static void function(PerunSession sess) { List<String> perunAdmins = BeansUtils.getCoreConfig().getAdmins(); if (perunAdmins.contains(sess.getPerunPrincipal().getActor())) { sess.getPerunPrincipal().getRoles().putAuthzRole(Role.PERUNADMIN); sess.getPerunPrincipal().setAuthzInitialized(true); log.trace(STR, sess.getPeru...
/** * Prepare service roles to session AuthzRoles (PERUNADMIN, SERVICE, RPC, ENGINE etc.) * * @param sess use session to add roles */
Prepare service roles to session AuthzRoles (PERUNADMIN, SERVICE, RPC, ENGINE etc.)
prepareServiceRoles
{ "repo_name": "zoraseb/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/blImpl/AuthzResolverBlImpl.java", "license": "bsd-2-clause", "size": 97601 }
[ "cz.metacentrum.perun.core.api.BeansUtils", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.Role", "java.util.List" ]
import cz.metacentrum.perun.core.api.BeansUtils; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.Role; import java.util.List;
import cz.metacentrum.perun.core.api.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
2,626,385
protected boolean shouldRenderAsFull(final Url url) { Url clientUrl = request.getClientUrl(); if (!Strings.isEmpty(url.getProtocol()) && !url.getProtocol().equals(clientUrl.getProtocol())) { return true; } if (!Strings.isEmpty(url.getHost()) && !url.getHost().equals(clientUrl.getHost())) { ret...
boolean function(final Url url) { Url clientUrl = request.getClientUrl(); if (!Strings.isEmpty(url.getProtocol()) && !url.getProtocol().equals(clientUrl.getProtocol())) { return true; } if (!Strings.isEmpty(url.getHost()) && !url.getHost().equals(clientUrl.getHost())) { return true; } if ((url.getPort() != null) && !ur...
/** * Determines whether a URL should be rendered in its full form * * @param url * @return {@code true} if URL should be rendered in the full form */
Determines whether a URL should be rendered in its full form
shouldRenderAsFull
{ "repo_name": "martin-g/wicket-osgi", "path": "wicket-request/src/main/java/org/apache/wicket/request/UrlRenderer.java", "license": "apache-2.0", "size": 7868 }
[ "org.apache.wicket.util.string.Strings" ]
import org.apache.wicket.util.string.Strings;
import org.apache.wicket.util.string.*;
[ "org.apache.wicket" ]
org.apache.wicket;
266,795
private void createOrUpdateHoraireActiviteInDB(listeDesActivitesEtProf listeDesActivitesEtProf) { DatabaseHelper dbHelper = new DatabaseHelper(context); try { for (HoraireActivite horaireActivite : listeDesActivitesEtProf.listeActivites) { dbHelper.getDao(HoraireActivite...
void function(listeDesActivitesEtProf listeDesActivitesEtProf) { DatabaseHelper dbHelper = new DatabaseHelper(context); try { for (HoraireActivite horaireActivite : listeDesActivitesEtProf.listeActivites) { dbHelper.getDao(HoraireActivite.class).createOrUpdate(horaireActivite); } } catch (SQLException e) { e.printStack...
/** * Adds new API entries on DB or updates existing ones * * @param listeDesActivitesEtProf API list */
Adds new API entries on DB or updates existing ones
createOrUpdateHoraireActiviteInDB
{ "repo_name": "ApplETS/ETSMobile-Android2", "path": "app/src/main/java/ca/etsmtl/applets/etsmobile/util/HoraireManager.java", "license": "apache-2.0", "size": 16308 }
[ "ca.etsmtl.applets.etsmobile.db.DatabaseHelper", "ca.etsmtl.applets.etsmobile.model.HoraireActivite", "java.sql.SQLException" ]
import ca.etsmtl.applets.etsmobile.db.DatabaseHelper; import ca.etsmtl.applets.etsmobile.model.HoraireActivite; import java.sql.SQLException;
import ca.etsmtl.applets.etsmobile.db.*; import ca.etsmtl.applets.etsmobile.model.*; import java.sql.*;
[ "ca.etsmtl.applets", "java.sql" ]
ca.etsmtl.applets; java.sql;
743,034
private void parseMultiMovieDir(File[] files, File parentDir, String datasource) { if (files == null || files.length == 0) { return; } List<File> completeDirContents = new ArrayList<File>(Arrays.asList(parentDir.listFiles()));
void function(File[] files, File parentDir, String datasource) { if (files == null files.length == 0) { return; } List<File> completeDirContents = new ArrayList<File>(Arrays.asList(parentDir.listFiles()));
/** * parses a list of VIDEO files in a dir and creates movies out of it */
parses a list of VIDEO files in a dir and creates movies out of it
parseMultiMovieDir
{ "repo_name": "mlaggner/tinyMediaManager", "path": "src/org/tinymediamanager/core/movie/tasks/MovieUpdateDatasourceTask.java", "license": "apache-2.0", "size": 34051 }
[ "java.io.File", "java.util.ArrayList", "java.util.Arrays", "java.util.List" ]
import java.io.File; import java.util.ArrayList; import java.util.Arrays; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,170,565
public Activity setActivityForEntity(UserInfo userInfo, String entityId, String activityId) throws DatastoreException, UnauthorizedException, NotFoundException;
Activity function(UserInfo userInfo, String entityId, String activityId) throws DatastoreException, UnauthorizedException, NotFoundException;
/** * Sets the activity for the current version of the Entity * @param userInfo * @param entityId * @param activityId * @return * @throws DatastoreException * @throws UnauthorizedException * @throws NotFoundException */
Sets the activity for the current version of the Entity
setActivityForEntity
{ "repo_name": "hhu94/Synapse-Repository-Services", "path": "services/repository-managers/src/main/java/org/sagebionetworks/repo/manager/EntityManager.java", "license": "apache-2.0", "size": 15103 }
[ "org.sagebionetworks.repo.model.DatastoreException", "org.sagebionetworks.repo.model.UnauthorizedException", "org.sagebionetworks.repo.model.UserInfo", "org.sagebionetworks.repo.model.provenance.Activity", "org.sagebionetworks.repo.web.NotFoundException" ]
import org.sagebionetworks.repo.model.DatastoreException; import org.sagebionetworks.repo.model.UnauthorizedException; import org.sagebionetworks.repo.model.UserInfo; import org.sagebionetworks.repo.model.provenance.Activity; import org.sagebionetworks.repo.web.NotFoundException;
import org.sagebionetworks.repo.model.*; import org.sagebionetworks.repo.model.provenance.*; import org.sagebionetworks.repo.web.*;
[ "org.sagebionetworks.repo" ]
org.sagebionetworks.repo;
1,792,633
public void setPortFeatures(WebServiceFeature... features) { this.portFeatures = features; }
void function(WebServiceFeature... features) { this.portFeatures = features; }
/** * Specify WebServiceFeature objects (e.g. as inner bean definitions) * to apply to JAX-WS port stub creation. * @since 4.0 * @see Service#getPort(Class, javax.xml.ws.WebServiceFeature...) * @see #setServiceFeatures */
Specify WebServiceFeature objects (e.g. as inner bean definitions) to apply to JAX-WS port stub creation
setPortFeatures
{ "repo_name": "boggad/jdk9-sample", "path": "sample-catalog/spring-jdk9/src/spring.web/org/springframework/remoting/jaxws/JaxWsPortClientInterceptor.java", "license": "mit", "size": 15906 }
[ "javax.xml.ws.WebServiceFeature" ]
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.*;
[ "javax.xml" ]
javax.xml;
2,742,717
EReference getLoadArea_ControlArea();
EReference getLoadArea_ControlArea();
/** * Returns the meta object for the reference '{@link outagePreventionJointarget.LoadArea#getControlArea <em>Control Area</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the reference '<em>Control Area</em>'. * @see outagePreventionJointarget.LoadArea#getControlArea()...
Returns the meta object for the reference '<code>outagePreventionJointarget.LoadArea#getControlArea Control Area</code>'.
getLoadArea_ControlArea
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/ModelJoin/src/main/java/outagePreventionJointarget/OutagePreventionJointargetPackage.java", "license": "mit", "size": 67109 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
823,920
public void setEditor(Control editor, int column, int row) { setRow(row); setColumn(column); setEditor(editor); layout(); }
void function(Control editor, int column, int row) { setRow(row); setColumn(column); setEditor(editor); layout(); }
/** * Specify the Control that is to be displayed and the cell in the table * that it is to be positioned above. * <p> * Note: The Control provided as the editor <b>must</b> be created with its * parent being the Table control specified in the TableEditor constructor. * * @par...
Specify the Control that is to be displayed and the cell in the table that it is to be positioned above. Note: The Control provided as the editor must be created with its parent being the Table control specified in the TableEditor constructor
setEditor
{ "repo_name": "ruspl-afed/dbeaver", "path": "plugins/org.jkiss.dbeaver.core/src/org/jkiss/dbeaver/ui/controls/resultset/spreadsheet/SpreadsheetCellEditor.java", "license": "apache-2.0", "size": 9256 }
[ "org.eclipse.swt.widgets.Control" ]
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
1,547,808
public static void addApplicationFormatters(FormatterRegistry registry) { registry.addFormatter(new CharArrayFormatter()); registry.addFormatter(new InetAddressFormatter()); registry.addFormatter(new IsoOffsetFormatter()); }
static void function(FormatterRegistry registry) { registry.addFormatter(new CharArrayFormatter()); registry.addFormatter(new InetAddressFormatter()); registry.addFormatter(new IsoOffsetFormatter()); }
/** * Add formatters useful for most Spring Boot applications. * @param registry the service to register default formatters with */
Add formatters useful for most Spring Boot applications
addApplicationFormatters
{ "repo_name": "drumonii/spring-boot", "path": "spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/ApplicationConversionService.java", "license": "apache-2.0", "size": 5482 }
[ "org.springframework.format.FormatterRegistry" ]
import org.springframework.format.FormatterRegistry;
import org.springframework.format.*;
[ "org.springframework.format" ]
org.springframework.format;
1,586,096
public CmsGalleryDialog getGalleryDialog();
CmsGalleryDialog function();
/** * Returns the gallery dialog.<p> * * @return the gallery dialog */
Returns the gallery dialog
getGalleryDialog
{ "repo_name": "serrapos/opencms-core", "path": "src-gwt/org/opencms/ade/galleries/client/preview/I_CmsPreviewHandler.java", "license": "lgpl-2.1", "size": 2160 }
[ "org.opencms.ade.galleries.client.ui.CmsGalleryDialog" ]
import org.opencms.ade.galleries.client.ui.CmsGalleryDialog;
import org.opencms.ade.galleries.client.ui.*;
[ "org.opencms.ade" ]
org.opencms.ade;
1,500,341
public Collection<IOffer> getAsks();
Collection<IOffer> function();
/** * Convenience method for getPrices */
Convenience method for getPrices
getAsks
{ "repo_name": "kronrod/agentecon", "path": "src/com/agentecon/market/IPriceTakerMarket.java", "license": "gpl-3.0", "size": 813 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,774,063
public ForwardCursor<E> entities() throws DatabaseException { return entities(null, null); }
ForwardCursor<E> function() throws DatabaseException { return entities(null, null); }
/** * Opens a cursor that returns the entities qualifying for the join. The * join operation is performed as the returned cursor is accessed. * * <p>The operations performed with the cursor will not be transaction * protected, and {@link CursorConfig#DEFAULT} is used implicitly.</p> * ...
Opens a cursor that returns the entities qualifying for the join. The join operation is performed as the returned cursor is accessed. The operations performed with the cursor will not be transaction protected, and <code>CursorConfig#DEFAULT</code> is used implicitly
entities
{ "repo_name": "nologic/nabs", "path": "client/trunk/shared/libraries/je-3.2.44/src/com/sleepycat/persist/EntityJoin.java", "license": "gpl-2.0", "size": 10845 }
[ "com.sleepycat.je.DatabaseException" ]
import com.sleepycat.je.DatabaseException;
import com.sleepycat.je.*;
[ "com.sleepycat.je" ]
com.sleepycat.je;
2,142,735
public Timestamp getDateLastRun () { return (Timestamp)get_Value(COLUMNNAME_DateLastRun); }
Timestamp function () { return (Timestamp)get_Value(COLUMNNAME_DateLastRun); }
/** Get Date last run. @return Date the process was last run. */
Get Date last run
getDateLastRun
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/X_PA_SLA_Goal.java", "license": "gpl-2.0", "size": 8946 }
[ "java.sql.Timestamp" ]
import java.sql.Timestamp;
import java.sql.*;
[ "java.sql" ]
java.sql;
375,875
super.onInitialize(); JsonArray characterData = CharacterHelper.getCharacterData(); String characterDataString = characterData.toString(); WebMarkupContainer bodyContainer = new TransparentWebMarkupContainer("body"); bodyContainer.add(AttributeModifier.append("data-characters", characte...
super.onInitialize(); JsonArray characterData = CharacterHelper.getCharacterData(); String characterDataString = characterData.toString(); WebMarkupContainer bodyContainer = new TransparentWebMarkupContainer("body"); bodyContainer.add(AttributeModifier.append(STR, characterDataString)); add(bodyContainer); add(new Head...
/** * Called when a base page is initialized. */
Called when a base page is initialized
onInitialize
{ "repo_name": "mhusar/lemming", "path": "src/main/java/lemming/ui/page/BasePage.java", "license": "apache-2.0", "size": 1296 }
[ "javax.json.JsonArray", "org.apache.wicket.AttributeModifier", "org.apache.wicket.markup.html.TransparentWebMarkupContainer", "org.apache.wicket.markup.html.WebMarkupContainer" ]
import javax.json.JsonArray; import org.apache.wicket.AttributeModifier; import org.apache.wicket.markup.html.TransparentWebMarkupContainer; import org.apache.wicket.markup.html.WebMarkupContainer;
import javax.json.*; import org.apache.wicket.*; import org.apache.wicket.markup.html.*;
[ "javax.json", "org.apache.wicket" ]
javax.json; org.apache.wicket;
2,064,588
private void callExit(Component caller) { ctrlWindow.attemptToExit(caller); } }); }
void function(Component caller) { ctrlWindow.attemptToExit(caller); } }); }
/** * Calls exit from the control window */
Calls exit from the control window
callExit
{ "repo_name": "qial/ChatGameFontificator", "path": "src/main/java/com/glitchcog/fontificator/gui/chat/ChatWindow.java", "license": "unlicense", "size": 5401 }
[ "java.awt.Component" ]
import java.awt.Component;
import java.awt.*;
[ "java.awt" ]
java.awt;
781,451
@Bean @Lazy @ConditionalOnMissingBean(KillService.class) public KillService killService( final ExecutionContext executionContext, final AgentProperties agentProperties ) { return new KillServiceImpl(executionContext, agentProperties); }
@ConditionalOnMissingBean(KillService.class) KillService function( final ExecutionContext executionContext, final AgentProperties agentProperties ) { return new KillServiceImpl(executionContext, agentProperties); }
/** * Provide a lazy {@link KillService} bean if one hasn't already been defined. * * @param executionContext the execution context * @param agentProperties the agent properties * @return A {@link KillServiceImpl} instance */
Provide a lazy <code>KillService</code> bean if one hasn't already been defined
killService
{ "repo_name": "Netflix/genie", "path": "genie-agent/src/main/java/com/netflix/genie/agent/execution/services/impl/ServicesAutoConfiguration.java", "license": "apache-2.0", "size": 6202 }
[ "com.netflix.genie.agent.execution.services.KillService", "com.netflix.genie.agent.execution.statemachine.ExecutionContext", "com.netflix.genie.agent.properties.AgentProperties", "org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean" ]
import com.netflix.genie.agent.execution.services.KillService; import com.netflix.genie.agent.execution.statemachine.ExecutionContext; import com.netflix.genie.agent.properties.AgentProperties; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import com.netflix.genie.agent.execution.services.*; import com.netflix.genie.agent.execution.statemachine.*; import com.netflix.genie.agent.properties.*; import org.springframework.boot.autoconfigure.condition.*;
[ "com.netflix.genie", "org.springframework.boot" ]
com.netflix.genie; org.springframework.boot;
2,801,419
public void testMoveDestination() throws RepositoryException { doMove(moveNode.getPath(), destinationPath); doMove(destParentNode.getPath(), srcParentNode.getPath() + "/" + destParentNode.getName()); superuser.save(); assertTrue(destParentNode.getParent().isSame(srcParentNode)); ...
void function() throws RepositoryException { doMove(moveNode.getPath(), destinationPath); doMove(destParentNode.getPath(), srcParentNode.getPath() + "/" + destParentNode.getName()); superuser.save(); assertTrue(destParentNode.getParent().isSame(srcParentNode)); assertTrue(moveNode.getParent().isSame(destParentNode)); }
/** * Move destination after moving the target node. */
Move destination after moving the target node
testMoveDestination
{ "repo_name": "tripodsan/jackrabbit", "path": "jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/MoveMultipleTest.java", "license": "apache-2.0", "size": 10261 }
[ "javax.jcr.RepositoryException" ]
import javax.jcr.RepositoryException;
import javax.jcr.*;
[ "javax.jcr" ]
javax.jcr;
1,125,533
public void addPreDelayCommand(CommandOPEN command) { preDelayCommandList.add(command); }
void function(CommandOPEN command) { preDelayCommandList.add(command); }
/** * Add a command to this action that is executed before the delay * * @param command * command to put on front of the command list */
Add a command to this action that is executed before the delay
addPreDelayCommand
{ "repo_name": "Gecko33/openhab", "path": "bundles/binding/org.openhab.binding.bticino/src/main/java/com/myhome/fcrisciani/datastructure/action/Action.java", "license": "epl-1.0", "size": 5769 }
[ "com.myhome.fcrisciani.datastructure.command.CommandOPEN" ]
import com.myhome.fcrisciani.datastructure.command.CommandOPEN;
import com.myhome.fcrisciani.datastructure.command.*;
[ "com.myhome.fcrisciani" ]
com.myhome.fcrisciani;
2,363,046
public static String getImageAuthentication(final String imageUrl) { Log.d(TAG, "getImageAuthentication() called with: " + "imageUrl = [" + imageUrl + "]"); PodDBAdapter adapter = PodDBAdapter.getInstance(); adapter.open(); try { return getImageAuthentication(imageUrl, a...
static String function(final String imageUrl) { Log.d(TAG, STR + STR + imageUrl + "]"); PodDBAdapter adapter = PodDBAdapter.getInstance(); adapter.open(); try { return getImageAuthentication(imageUrl, adapter); } finally { adapter.close(); } }
/** * Returns credentials based on image URL * * @param imageUrl The URL of the image * @return Credentials in format "<Username>:<Password>", empty String if no authorization given */
Returns credentials based on image URL
getImageAuthentication
{ "repo_name": "domingos86/AntennaPod", "path": "core/src/main/java/de/danoeh/antennapod/core/storage/DBReader.java", "license": "mit", "size": 46041 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
2,195,737
public String getDataFormatString(org.apache.poi.hssf.model.Workbook workbook) { HSSFDataFormat format = new HSSFDataFormat( workbook ); return format.getFormat(getDataFormat()); }
String function(org.apache.poi.hssf.model.Workbook workbook) { HSSFDataFormat format = new HSSFDataFormat( workbook ); return format.getFormat(getDataFormat()); }
/** * Get the contents of the format string, by looking up * the DataFormat against the supplied low level workbook * @see org.apache.poi.hssf.usermodel.HSSFDataFormat */
Get the contents of the format string, by looking up the DataFormat against the supplied low level workbook
getDataFormatString
{ "repo_name": "tobyclemson/msci-project", "path": "vendor/poi-3.6/src/java/org/apache/poi/hssf/usermodel/HSSFCellStyle.java", "license": "mit", "size": 26023 }
[ "org.apache.poi.hssf.model.Workbook" ]
import org.apache.poi.hssf.model.Workbook;
import org.apache.poi.hssf.model.*;
[ "org.apache.poi" ]
org.apache.poi;
2,540,548
private void export(ClassRealm realm, String... packages) { for (Object o : world.getRealms()) { ClassRealm dep = (ClassRealm) o; if (!StringUtils.equals(dep.getId(), realm.getId())) { try { for (String packageName : packages) { dep.importFrom(realm.getId(), packageName);...
void function(ClassRealm realm, String... packages) { for (Object o : world.getRealms()) { ClassRealm dep = (ClassRealm) o; if (!StringUtils.equals(dep.getId(), realm.getId())) { try { for (String packageName : packages) { dep.importFrom(realm.getId(), packageName); } } catch (NoSuchRealmException e) { throw new SonarE...
/** * Exports specified packages from given ClassRealm to all others. */
Exports specified packages from given ClassRealm to all others
export
{ "repo_name": "xinghuangxu/xinghuangxu.sonarqube", "path": "sonar-core/src/main/java/org/sonar/core/plugins/PluginClassloaders.java", "license": "lgpl-3.0", "size": 8468 }
[ "org.apache.commons.lang.StringUtils", "org.codehaus.plexus.classworlds.realm.ClassRealm", "org.codehaus.plexus.classworlds.realm.NoSuchRealmException", "org.sonar.api.utils.SonarException" ]
import org.apache.commons.lang.StringUtils; import org.codehaus.plexus.classworlds.realm.ClassRealm; import org.codehaus.plexus.classworlds.realm.NoSuchRealmException; import org.sonar.api.utils.SonarException;
import org.apache.commons.lang.*; import org.codehaus.plexus.classworlds.realm.*; import org.sonar.api.utils.*;
[ "org.apache.commons", "org.codehaus.plexus", "org.sonar.api" ]
org.apache.commons; org.codehaus.plexus; org.sonar.api;
668,553
MessageDigest digest = MessageDigest.getInstance(algorithm); FileInputStream fis = null; try { fis = new FileInputStream(file); FileChannel ch = fis.getChannel(); long remainingToRead = file.length(); long start = 0; while (remainingToRead > 0)...
MessageDigest digest = MessageDigest.getInstance(algorithm); FileInputStream fis = null; try { fis = new FileInputStream(file); FileChannel ch = fis.getChannel(); long remainingToRead = file.length(); long start = 0; while (remainingToRead > 0) { long amountToRead; if (remainingToRead > Integer.MAX_VALUE) { remainingTo...
/** * <p> * Creates the cryptographic checksum of a given file using the specified algorithm.</p> * * @param algorithm the algorithm to use to calculate the checksum * @param file the file to calculate the checksum for * @return the checksum * @throws IOException when the file does no...
Creates the cryptographic checksum of a given file using the specified algorithm
getChecksum
{ "repo_name": "simon-eastwood/DependencyCheckCM", "path": "dependency-check-utils/src/main/java/org/owasp/dependencycheck/utils/Checksum.java", "license": "apache-2.0", "size": 5353 }
[ "java.io.FileInputStream", "java.io.IOException", "java.nio.MappedByteBuffer", "java.nio.channels.FileChannel", "java.security.MessageDigest", "java.util.logging.Level" ]
import java.io.FileInputStream; import java.io.IOException; import java.nio.MappedByteBuffer; import java.nio.channels.FileChannel; import java.security.MessageDigest; import java.util.logging.Level;
import java.io.*; import java.nio.*; import java.nio.channels.*; import java.security.*; import java.util.logging.*;
[ "java.io", "java.nio", "java.security", "java.util" ]
java.io; java.nio; java.security; java.util;
2,125,691
private void initialize() { frame = new JFrame(); frame.setIconImage(Toolkit .getDefaultToolkit() .getImage( Personaje9.class .getResource("/images/Historias de Zagas, logo.png"))); frame.setTitle("Historias de Zagas"); frame.setBounds(100, 100, 380, 301); frame.setLocationRe...
void function() { frame = new JFrame(); frame.setIconImage(Toolkit .getDefaultToolkit() .getImage( Personaje9.class .getResource(STR))); frame.setTitle(STR); frame.setBounds(100, 100, 380, 301); frame.setLocationRelativeTo(null); frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); frame.setResizable(false); fra...
/** * Initialize the contents of the frame. */
Initialize the contents of the frame
initialize
{ "repo_name": "ZagasTales/HistoriasdeZagas", "path": "src Graf/es/thesinsprods/zagastales/juegozagas/jugar/master/jugador9/ArmaduraJugadores.java", "license": "cc0-1.0", "size": 7237 }
[ "java.awt.Color", "java.awt.Toolkit", "javax.swing.JFrame", "javax.swing.JScrollPane", "javax.swing.JTextArea", "javax.swing.JTextField" ]
import java.awt.Color; import java.awt.Toolkit; import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.JTextField;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
359,503
public Exchange createExchange(PDU pdu, CommandResponderEvent event) { Exchange exchange = super.createExchange(); exchange.setIn(new SnmpMessage(pdu, event)); return exchange; }
Exchange function(PDU pdu, CommandResponderEvent event) { Exchange exchange = super.createExchange(); exchange.setIn(new SnmpMessage(pdu, event)); return exchange; }
/** * creates an exchange for the given message * * @param pdu the pdu * @param event a snmp4j CommandResponderEvent * @return an exchange */
creates an exchange for the given message
createExchange
{ "repo_name": "lburgazzoli/apache-camel", "path": "components/camel-snmp/src/main/java/org/apache/camel/component/snmp/SnmpEndpoint.java", "license": "apache-2.0", "size": 12934 }
[ "org.apache.camel.Exchange", "org.snmp4j.CommandResponderEvent" ]
import org.apache.camel.Exchange; import org.snmp4j.CommandResponderEvent;
import org.apache.camel.*; import org.snmp4j.*;
[ "org.apache.camel", "org.snmp4j" ]
org.apache.camel; org.snmp4j;
2,542,596
public List<Dependency> scan(Set<File> files) { final List<Dependency> deps = new ArrayList<Dependency>(); for (File file : files) { final List<Dependency> d = scan(file); if (d != null) { deps.addAll(d); } } return deps; }
List<Dependency> function(Set<File> files) { final List<Dependency> deps = new ArrayList<Dependency>(); for (File file : files) { final List<Dependency> d = scan(file); if (d != null) { deps.addAll(d); } } return deps; }
/** * Scans a list of files or directories. If a directory is specified, it will be scanned recursively. Any * dependencies identified are added to the dependency collection. * * @param files a set of paths to files or directories to be analyzed * @return the list of dependencies scanned *...
Scans a list of files or directories. If a directory is specified, it will be scanned recursively. Any dependencies identified are added to the dependency collection
scan
{ "repo_name": "simon-eastwood/DependencyCheckCM", "path": "dependency-check-core/src/main/java/org/owasp/dependencycheck/Engine.java", "license": "apache-2.0", "size": 19694 }
[ "java.io.File", "java.util.ArrayList", "java.util.List", "java.util.Set", "org.owasp.dependencycheck.dependency.Dependency" ]
import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Set; import org.owasp.dependencycheck.dependency.Dependency;
import java.io.*; import java.util.*; import org.owasp.dependencycheck.dependency.*;
[ "java.io", "java.util", "org.owasp.dependencycheck" ]
java.io; java.util; org.owasp.dependencycheck;
1,741,455
public boolean write(Node nodeArg, LSOutput destination) throws LSException { // If the destination is null if (destination == null) { String msg = Utils.messages .createMessage( MsgKey.ER_NO_OUTPUT_SPECIFIED, null); if (fDO...
boolean function(Node nodeArg, LSOutput destination) throws LSException { if (destination == null) { String msg = Utils.messages .createMessage( MsgKey.ER_NO_OUTPUT_SPECIFIED, null); if (fDOMErrorHandler != null) { fDOMErrorHandler.handleError(new DOMErrorImpl( DOMError.SEVERITY_FATAL_ERROR, msg, MsgKey.ER_NO_OUTPUT_SP...
/** * Serializes the specified node to the specified LSOutput and returns true if the Node * was successfully serialized. * * @see org.w3c.dom.ls.LSSerializer#write(org.w3c.dom.Node, org.w3c.dom.ls.LSOutput) * @since DOM Level 3 * @param nodeArg The Node to serialize. * @throws or...
Serializes the specified node to the specified LSOutput and returns true if the Node was successfully serialized
write
{ "repo_name": "mirego/j2objc", "path": "xalan/third_party/android/platform/external/apache-xml/src/main/java/org/apache/xml/serializer/dom3/LSSerializerImpl.java", "license": "apache-2.0", "size": 74517 }
[ "java.io.FileOutputStream", "java.io.OutputStream", "java.io.UnsupportedEncodingException", "java.io.Writer", "java.net.HttpURLConnection", "java.net.URLConnection", "org.apache.xml.serializer.DOM3Serializer", "org.apache.xml.serializer.Encodings", "org.apache.xml.serializer.Serializer", "org.apac...
import java.io.FileOutputStream; import java.io.OutputStream; import java.io.UnsupportedEncodingException; import java.io.Writer; import java.net.HttpURLConnection; import java.net.URLConnection; import org.apache.xml.serializer.DOM3Serializer; import org.apache.xml.serializer.Encodings; import org.apache.xml.serialize...
import java.io.*; import java.net.*; import org.apache.xml.serializer.*; import org.apache.xml.serializer.utils.*; import org.w3c.dom.*; import org.w3c.dom.ls.*;
[ "java.io", "java.net", "org.apache.xml", "org.w3c.dom" ]
java.io; java.net; org.apache.xml; org.w3c.dom;
966,476
public void setText(String source) { string_ = source; // TODO: do we need to remember the source string in a field? CollationIterator newIter; boolean numeric = rbc_.settings.readOnly().isNumeric(); if (rbc_.settings.readOnly().dontCheckFCD()) { newIter = new UTF16Collat...
void function(String source) { string_ = source; CollationIterator newIter; boolean numeric = rbc_.settings.readOnly().isNumeric(); if (rbc_.settings.readOnly().dontCheckFCD()) { newIter = new UTF16CollationIterator(rbc_.data, numeric, string_, 0); } else { newIter = new FCDUTF16CollationIterator(rbc_.data, numeric, st...
/** * Set a new source string for iteration, and reset the offset * to the beginning of the text. * * @param source the new source string for iteration. * @stable ICU 2.8 */
Set a new source string for iteration, and reset the offset to the beginning of the text
setText
{ "repo_name": "abhijitvalluri/fitnotifications", "path": "icu4j/src/main/java/com/ibm/icu/text/CollationElementIterator.java", "license": "apache-2.0", "size": 28142 }
[ "com.ibm.icu.impl.coll.CollationIterator", "com.ibm.icu.impl.coll.FCDUTF16CollationIterator", "com.ibm.icu.impl.coll.UTF16CollationIterator" ]
import com.ibm.icu.impl.coll.CollationIterator; import com.ibm.icu.impl.coll.FCDUTF16CollationIterator; import com.ibm.icu.impl.coll.UTF16CollationIterator;
import com.ibm.icu.impl.coll.*;
[ "com.ibm.icu" ]
com.ibm.icu;
2,437,933
public void error(@Nullable final String event, @Nullable final String message) { log(LogLevel.ERROR, event, message, EMPTY_STRING_ARRAY, EMPTY_OBJECT_ARRAY, DEFAULT_THROWABLE); }
void function(@Nullable final String event, @Nullable final String message) { log(LogLevel.ERROR, event, message, EMPTY_STRING_ARRAY, EMPTY_OBJECT_ARRAY, DEFAULT_THROWABLE); }
/** * Log a message for a canonical event at the error level. Default values * are used for all other parameters. * * @since 1.3.0 * * @param event The canonical event that occurred. * @param message The message to be logged. */
Log a message for a canonical event at the error level. Default values are used for all other parameters
error
{ "repo_name": "ArpNetworking/logback-steno", "path": "src/main/java/com/arpnetworking/steno/Logger.java", "license": "apache-2.0", "size": 68020 }
[ "javax.annotation.Nullable" ]
import javax.annotation.Nullable;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
2,208,235
public String getSchemaName(int column) throws SQLException { try { debugCodeCall("getSchemaName", column); checkColumnIndex(column); return result.getSchemaName(--column); } catch (Exception e) { throw logAndConvert(e); } }
String function(int column) throws SQLException { try { debugCodeCall(STR, column); checkColumnIndex(column); return result.getSchemaName(--column); } catch (Exception e) { throw logAndConvert(e); } }
/** * Returns the schema name. * * @param column the column index (1,2,...) * @return the schema name * @throws SQLException if the result set is closed or invalid */
Returns the schema name
getSchemaName
{ "repo_name": "titus08/frostwire-desktop", "path": "lib/jars-src/h2-1.3.164/org/h2/jdbc/JdbcResultSetMetaData.java", "license": "gpl-3.0", "size": 13665 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
893,154
protected Iterator defineBranching(final DelaneySymbol ds) { if (this.simple) { final DynamicDSymbol out = new DynamicDSymbol(new DSymbol(ds)); final IndexList idx = new IndexList(2, 3); for (final Iterator reps = out.orbitReps(idx); reps.hasNext();) { final Object D = reps.next(); final int r = ...
Iterator function(final DelaneySymbol ds) { if (this.simple) { final DynamicDSymbol out = new DynamicDSymbol(new DSymbol(ds)); final IndexList idx = new IndexList(2, 3); for (final Iterator reps = out.orbitReps(idx); reps.hasNext();) { final Object D = reps.next(); final int r = out.r(2, 3, D); if (r == 3) { out.redefi...
/** * Override this to restrict or change the generation of branching number * combination. * * @param ds a Delaney symbol. * @return an iterator over all admissible extensions of ds with complete * branching. */
Override this to restrict or change the generation of branching number combination
defineBranching
{ "repo_name": "BackupTheBerlios/gavrog", "path": "src/org/gavrog/joss/dsyms/generators/TileKTransitiveDuo.java", "license": "apache-2.0", "size": 15955 }
[ "java.util.Iterator", "org.gavrog.box.collections.Iterators", "org.gavrog.joss.dsyms.basic.DSymbol", "org.gavrog.joss.dsyms.basic.DelaneySymbol", "org.gavrog.joss.dsyms.basic.DynamicDSymbol", "org.gavrog.joss.dsyms.basic.IndexList" ]
import java.util.Iterator; import org.gavrog.box.collections.Iterators; import org.gavrog.joss.dsyms.basic.DSymbol; import org.gavrog.joss.dsyms.basic.DelaneySymbol; import org.gavrog.joss.dsyms.basic.DynamicDSymbol; import org.gavrog.joss.dsyms.basic.IndexList;
import java.util.*; import org.gavrog.box.collections.*; import org.gavrog.joss.dsyms.basic.*;
[ "java.util", "org.gavrog.box", "org.gavrog.joss" ]
java.util; org.gavrog.box; org.gavrog.joss;
69,859
protected void addFromPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_ConnectingObject_from_feature"), getString("_UI_PropertyDescriptor_des...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), SimpleBPMNPackage.Literals.CONNECTING_OBJECT__FROM, true, false, true, null, null, null)); }
/** * This adds a property descriptor for the From feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the From feature.
addFromPropertyDescriptor
{ "repo_name": "bluezio/simplified-bpmn-example", "path": "org.eclipse.epsilon.eugenia.bpmn.edit/src/SimpleBPMN/provider/ConnectingObjectItemProvider.java", "license": "epl-1.0", "size": 3827 }
[ "org.eclipse.emf.edit.provider.ComposeableAdapterFactory" ]
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,769,182
return new RTreeMemoryReader(); }
return new RTreeMemoryReader(); }
/** * Get the reader for the test * @return */
Get the reader for the test
getRTreeReader
{ "repo_name": "jnidzwetzki/scalephant", "path": "bboxdb-server/src/test/java/org/bboxdb/test/storage/rtree/TestRTreeMemoryDeserializer.java", "license": "apache-2.0", "size": 5763 }
[ "org.bboxdb.storage.sstable.spatialindex.rtree.RTreeMemoryReader" ]
import org.bboxdb.storage.sstable.spatialindex.rtree.RTreeMemoryReader;
import org.bboxdb.storage.sstable.spatialindex.rtree.*;
[ "org.bboxdb.storage" ]
org.bboxdb.storage;
170,837
protected Object getObjectId(Object elementOrId) { if (elementOrId == null || (elementOrId instanceof JsonNull)) { throw new IllegalArgumentException("Element cannot be null"); } else if (isNumericType(elementOrId)) { return getNumericValue(elementOrId); } else if (is...
Object function(Object elementOrId) { if (elementOrId == null (elementOrId instanceof JsonNull)) { throw new IllegalArgumentException(STR); } else if (isNumericType(elementOrId)) { return getNumericValue(elementOrId); } else if (isStringType(elementOrId)) { return getStringValue(elementOrId); } else { JsonObject jsonOb...
/** * Gets the id property from a given element * * @param elementOrId The element to use * @return The id of the element */
Gets the id property from a given element
getObjectId
{ "repo_name": "daemun/azure-mobile-services", "path": "sdk/android/src/sdk/src/main/java/com/microsoft/windowsazure/mobileservices/table/MobileServiceTableBase.java", "license": "apache-2.0", "size": 34721 }
[ "com.google.gson.JsonElement", "com.google.gson.JsonNull", "com.google.gson.JsonObject" ]
import com.google.gson.JsonElement; import com.google.gson.JsonNull; import com.google.gson.JsonObject;
import com.google.gson.*;
[ "com.google.gson" ]
com.google.gson;
1,835,889
public ListenableFuture<NewEpochResponseProto> newEpoch(long epoch);
ListenableFuture<NewEpochResponseProto> function(long epoch);
/** * Begin a new epoch on the target node. */
Begin a new epoch on the target node
newEpoch
{ "repo_name": "Reidddddd/mo-hadoop2.6.0", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/client/AsyncLogger.java", "license": "apache-2.0", "size": 6331 }
[ "com.google.common.util.concurrent.ListenableFuture", "org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos" ]
import com.google.common.util.concurrent.ListenableFuture; import org.apache.hadoop.hdfs.qjournal.protocol.QJournalProtocolProtos;
import com.google.common.util.concurrent.*; import org.apache.hadoop.hdfs.qjournal.protocol.*;
[ "com.google.common", "org.apache.hadoop" ]
com.google.common; org.apache.hadoop;
2,592,074
private void writeMeta(String key, Serializable obj) throws IgniteCheckedException { assert obj != null; if (!checkMetastore("Unable to save metadata to %s", key)) return; db.checkpointReadLock(); try { metastore.write(key, obj); } finally {...
void function(String key, Serializable obj) throws IgniteCheckedException { assert obj != null; if (!checkMetastore(STR, key)) return; db.checkpointReadLock(); try { metastore.write(key, obj); } finally { db.checkpointReadUnlock(); } }
/** * Write object to local metastore. * * @param key Path to write. * @param obj Object to write. * @throws IgniteCheckedException Throws in case of errors. */
Write object to local metastore
writeMeta
{ "repo_name": "NSAmelchev/ignite", "path": "modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/stat/IgniteStatisticsPersistenceStoreImpl.java", "license": "apache-2.0", "size": 26094 }
[ "java.io.Serializable", "org.apache.ignite.IgniteCheckedException" ]
import java.io.Serializable; import org.apache.ignite.IgniteCheckedException;
import java.io.*; import org.apache.ignite.*;
[ "java.io", "org.apache.ignite" ]
java.io; org.apache.ignite;
2,416,278
public SdkHttpFullRequest presign(SdkHttpFullRequest request, Aws4PresignerParams signingParams) { // anonymous credentials, don't sign if (CredentialUtils.isAnonymous(signingParams.awsCredentials())) { return request; } Aws4SignerRequestParams requestParams = new Aws4Si...
SdkHttpFullRequest function(SdkHttpFullRequest request, Aws4PresignerParams signingParams) { if (CredentialUtils.isAnonymous(signingParams.awsCredentials())) { return request; } Aws4SignerRequestParams requestParams = new Aws4SignerRequestParams(signingParams); return doPresign(request, requestParams, signingParams).bu...
/** * A method to pre sign the given #request. The parameters required for pre signing are provided through the modeled * {@link Aws4PresignerParams} class. * * @param request The request to pre-sign * @param signingParams Class with the parameters used for pre signing the request * @retur...
A method to pre sign the given #request. The parameters required for pre signing are provided through the modeled <code>Aws4PresignerParams</code> class
presign
{ "repo_name": "aws/aws-sdk-java-v2", "path": "core/auth/src/main/java/software/amazon/awssdk/auth/signer/internal/AbstractAwsS3V4Signer.java", "license": "apache-2.0", "size": 15170 }
[ "software.amazon.awssdk.auth.credentials.CredentialUtils", "software.amazon.awssdk.auth.signer.params.Aws4PresignerParams", "software.amazon.awssdk.http.SdkHttpFullRequest" ]
import software.amazon.awssdk.auth.credentials.CredentialUtils; import software.amazon.awssdk.auth.signer.params.Aws4PresignerParams; import software.amazon.awssdk.http.SdkHttpFullRequest;
import software.amazon.awssdk.auth.credentials.*; import software.amazon.awssdk.auth.signer.params.*; import software.amazon.awssdk.http.*;
[ "software.amazon.awssdk" ]
software.amazon.awssdk;
1,837,446
public QueryHint<NamedQuery<T>> getOrCreateHint() { List<Node> nodeList = childNode.get("hint"); if (nodeList != null && nodeList.size() > 0) { return new QueryHintImpl<NamedQuery<T>>(this, "hint", childNode, nodeList.get(0)); } return createHint(); }
QueryHint<NamedQuery<T>> function() { List<Node> nodeList = childNode.get("hint"); if (nodeList != null && nodeList.size() > 0) { return new QueryHintImpl<NamedQuery<T>>(this, "hint", childNode, nodeList.get(0)); } return createHint(); }
/** * If not already created, a new <code>hint</code> element will be created and returned. * Otherwise, the first existing <code>hint</code> element will be returned. * @return the instance defined for the element <code>hint</code> */
If not already created, a new <code>hint</code> element will be created and returned. Otherwise, the first existing <code>hint</code> element will be returned
getOrCreateHint
{ "repo_name": "forge/javaee-descriptors", "path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/orm21/NamedQueryImpl.java", "license": "epl-1.0", "size": 8841 }
[ "java.util.List", "org.jboss.shrinkwrap.descriptor.api.orm21.NamedQuery", "org.jboss.shrinkwrap.descriptor.api.orm21.QueryHint", "org.jboss.shrinkwrap.descriptor.spi.node.Node" ]
import java.util.List; import org.jboss.shrinkwrap.descriptor.api.orm21.NamedQuery; import org.jboss.shrinkwrap.descriptor.api.orm21.QueryHint; import org.jboss.shrinkwrap.descriptor.spi.node.Node;
import java.util.*; import org.jboss.shrinkwrap.descriptor.api.orm21.*; import org.jboss.shrinkwrap.descriptor.spi.node.*;
[ "java.util", "org.jboss.shrinkwrap" ]
java.util; org.jboss.shrinkwrap;
1,582,797
public void setNoCompressionUserAgents(Pattern[] noCompressionUserAgents) { this.noCompressionUserAgents = noCompressionUserAgents; }
void function(Pattern[] noCompressionUserAgents) { this.noCompressionUserAgents = noCompressionUserAgents; }
/** * Set no compression user agent list (this method is best when used with * a large number of connectors, where it would be better to have all of * them referenced a single array). */
Set no compression user agent list (this method is best when used with a large number of connectors, where it would be better to have all of them referenced a single array)
setNoCompressionUserAgents
{ "repo_name": "plumer/codana", "path": "tomcat_files/6.0.0/Http11NioProcessor.java", "license": "mit", "size": 54880 }
[ "java.util.regex.Pattern" ]
import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
2,368,235
public static Adaptation startAdaptation(final Configurator conf) { Adaptation adaptation = AdaptationFactory.getAdaptation(conf); new Thread(adaptation).start(); return adaptation; }
static Adaptation function(final Configurator conf) { Adaptation adaptation = AdaptationFactory.getAdaptation(conf); new Thread(adaptation).start(); return adaptation; }
/** * Starts the Adaptation layer of the SDN-WISE network. The configurator * contains the parameters of the Adaptation layer. In particular: a "lower" * Adapter, in order to communicate with the Nodes and an "upper" Adapter to * communicate with the FlowVisor * * @param conf contains the ...
Starts the Adaptation layer of the SDN-WISE network. The configurator contains the parameters of the Adaptation layer. In particular: a "lower" Adapter, in order to communicate with the Nodes and an "upper" Adapter to communicate with the FlowVisor
startAdaptation
{ "repo_name": "sdnwiselab/sdn-wise-java", "path": "ctrl/src/main/java/com/github/sdnwiselab/sdnwise/loader/SdnWise.java", "license": "gpl-3.0", "size": 10614 }
[ "com.github.sdnwiselab.sdnwise.adaptation.Adaptation", "com.github.sdnwiselab.sdnwise.adaptation.AdaptationFactory", "com.github.sdnwiselab.sdnwise.configuration.Configurator" ]
import com.github.sdnwiselab.sdnwise.adaptation.Adaptation; import com.github.sdnwiselab.sdnwise.adaptation.AdaptationFactory; import com.github.sdnwiselab.sdnwise.configuration.Configurator;
import com.github.sdnwiselab.sdnwise.adaptation.*; import com.github.sdnwiselab.sdnwise.configuration.*;
[ "com.github.sdnwiselab" ]
com.github.sdnwiselab;
2,545,637
protected void reloadCollectionSkillCategories() throws Exception { skillCategoryRepository.deleteAll(); URL skillCategoriesURL = Thread.currentThread().getContextClassLoader() .getResource("imports/skill_categories.json"); TypeReference<List<SkillCategory>> typeRef = new Ty...
void function() throws Exception { skillCategoryRepository.deleteAll(); URL skillCategoriesURL = Thread.currentThread().getContextClassLoader() .getResource(STR); TypeReference<List<SkillCategory>> typeRef = new TypeReference<List<SkillCategory>>() { }; List<SkillCategory> categories = new ObjectMapper().readValue(new ...
/** * Reload collection skill_categories. * <p> * Drop collection if exist, create a new collection and load data. * Read data from skill_categories.json * * @throws IOException exception. */
Reload collection skill_categories. Drop collection if exist, create a new collection and load data. Read data from skill_categories.json
reloadCollectionSkillCategories
{ "repo_name": "SergejMeister/intellijob", "path": "src/test/java/com/intellijob/BaseTester.java", "license": "apache-2.0", "size": 6983 }
[ "com.fasterxml.jackson.core.type.TypeReference", "com.fasterxml.jackson.databind.ObjectMapper", "com.intellijob.domain.skills.SkillCategory", "java.io.File", "java.util.List" ]
import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.intellijob.domain.skills.SkillCategory; import java.io.File; import java.util.List;
import com.fasterxml.jackson.core.type.*; import com.fasterxml.jackson.databind.*; import com.intellijob.domain.skills.*; import java.io.*; import java.util.*;
[ "com.fasterxml.jackson", "com.intellijob.domain", "java.io", "java.util" ]
com.fasterxml.jackson; com.intellijob.domain; java.io; java.util;
2,386,246
public static void setTag(View v, int key, Object value) { getTagger(v, true).set(key, value); }
static void function(View v, int key, Object value) { getTagger(v, true).set(key, value); }
/** * Static method to set the tag matching the ID on the view * * @param v View from which to retrieve tag * @param key Key of tag to store * @param value Object to store at specified tag */
Static method to set the tag matching the ID on the view
setTag
{ "repo_name": "bdunogier/Book-Catalogue", "path": "src/com/eleybourn/bookcatalogue/ViewTagger.java", "license": "gpl-3.0", "size": 4725 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
523,067
public Map<String, String> getHeaders() { return headers; }
Map<String, String> function() { return headers; }
/** * Headers for the http request */
Headers for the http request
getHeaders
{ "repo_name": "Qordobacode/api-sdk-java", "path": "QordobaLib/src/com/qordoba/developers/http/request/HttpRequest.java", "license": "mit", "size": 3066 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,766,984
public GeneralizationSetMatch getOneArbitraryMatch(final Generalization pGen) { return rawGetOneArbitraryMatch(new Object[]{pGen}); }
GeneralizationSetMatch function(final Generalization pGen) { return rawGetOneArbitraryMatch(new Object[]{pGen}); }
/** * Returns an arbitrarily chosen match of the pattern that conforms to the given fixed values of some parameters. * Neither determinism nor randomness of selection is guaranteed. * @param pGen the fixed value of pattern parameter gen, or null if not bound. * @return a match represented as a Generaliz...
Returns an arbitrarily chosen match of the pattern that conforms to the given fixed values of some parameters. Neither determinism nor randomness of selection is guaranteed
getOneArbitraryMatch
{ "repo_name": "ELTE-Soft/xUML-RT-Executor", "path": "plugins/hu.eltesoft.modelexecution.validation/src-gen/hu/eltesoft/modelexecution/validation/GeneralizationSetMatcher.java", "license": "epl-1.0", "size": 10419 }
[ "hu.eltesoft.modelexecution.validation.GeneralizationSetMatch", "org.eclipse.uml2.uml.Generalization" ]
import hu.eltesoft.modelexecution.validation.GeneralizationSetMatch; import org.eclipse.uml2.uml.Generalization;
import hu.eltesoft.modelexecution.validation.*; import org.eclipse.uml2.uml.*;
[ "hu.eltesoft.modelexecution", "org.eclipse.uml2" ]
hu.eltesoft.modelexecution; org.eclipse.uml2;
2,105,667
private DirectedGraph<IBlockNode, IBlockEdge> convert( final MutableDirectedGraph<INaviViewNode, INaviEdge> viewGraph) { final Map<INaviViewNode, IBlockNode> blockMap = new LinkedHashMap<INaviViewNode, IBlockNode>(); final List<IBlockEdge> edges = new FilledList<IBlockEdge>(); for (final INaviViewN...
DirectedGraph<IBlockNode, IBlockEdge> function( final MutableDirectedGraph<INaviViewNode, INaviEdge> viewGraph) { final Map<INaviViewNode, IBlockNode> blockMap = new LinkedHashMap<INaviViewNode, IBlockNode>(); final List<IBlockEdge> edges = new FilledList<IBlockEdge>(); for (final INaviViewNode viewNode : viewGraph) { ...
/** * Converts a view graph to a function graph. * * @param viewGraph The graph to convert. * * @return The converted graph. */
Converts a view graph to a function graph
convert
{ "repo_name": "dgrif/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/disassembly/CFunction.java", "license": "apache-2.0", "size": 22454 }
[ "com.google.common.collect.Lists", "com.google.security.zynamics.zylib.types.graphs.DirectedGraph", "com.google.security.zynamics.zylib.types.graphs.MutableDirectedGraph", "com.google.security.zynamics.zylib.types.lists.FilledList", "java.util.ArrayList", "java.util.LinkedHashMap", "java.util.List", "...
import com.google.common.collect.Lists; import com.google.security.zynamics.zylib.types.graphs.DirectedGraph; import com.google.security.zynamics.zylib.types.graphs.MutableDirectedGraph; import com.google.security.zynamics.zylib.types.lists.FilledList; import java.util.ArrayList; import java.util.LinkedHashMap; import ...
import com.google.common.collect.*; import com.google.security.zynamics.zylib.types.graphs.*; import com.google.security.zynamics.zylib.types.lists.*; import java.util.*;
[ "com.google.common", "com.google.security", "java.util" ]
com.google.common; com.google.security; java.util;
614,836
private Transaction createTransaction(String line) { //build the items Pattern splitPattern = Pattern.compile(" "); String[] items = splitPattern.split(line); Integer[] itemsSorted = new Integer[items.length]; for (int i = 0; i < items.length; i++) { Integer item...
Transaction function(String line) { Pattern splitPattern = Pattern.compile(" "); String[] items = splitPattern.split(line); Integer[] itemsSorted = new Integer[items.length]; for (int i = 0; i < items.length; i++) { Integer item = Integer.valueOf(items[i]); itemsSorted[i] = item; uniqueItems.add(item); } int lastItem =...
/** * Create a transaction object from a line from the input file * @param line a line from input file * @return a transaction */
Create a transaction object from a line from the input file
createTransaction
{ "repo_name": "ArneBinder/LanguageAnalyzer", "path": "src/main/java/ca/pfv/spmf/algorithms/frequentpatterns/lcm/Dataset.java", "license": "gpl-3.0", "size": 4374 }
[ "java.util.regex.Pattern" ]
import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
1,435,596
Key<?> ofType(Type type) { return new Key<Object>(type, annotationStrategy); }
Key<?> ofType(Type type) { return new Key<Object>(type, annotationStrategy); }
/** * Returns a new key of the specified type with the same annotation as this * key. */
Returns a new key of the specified type with the same annotation as this key
ofType
{ "repo_name": "langke93/elasticsearch", "path": "src/main/java/org/elasticsearch/common/inject/Key.java", "license": "apache-2.0", "size": 15855 }
[ "java.lang.reflect.Type" ]
import java.lang.reflect.Type;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,780,090
public void setDate(LocalDateTime setDate) { this.setDate=setDate; }
void function(LocalDateTime setDate) { this.setDate=setDate; }
/** * Set the current week date * * @param setDate */
Set the current week date
setDate
{ "repo_name": "rameshvoltella/RWeekCalendar", "path": "RamzCalSample/ramzcalender/src/main/java/com/ramzcalender/utils/AppController.java", "license": "mit", "size": 1139 }
[ "org.joda.time.LocalDateTime" ]
import org.joda.time.LocalDateTime;
import org.joda.time.*;
[ "org.joda.time" ]
org.joda.time;
1,925,992
protected final RefreshResponse refresh(String... indices) { waitForRelocation(); // TODO RANDOMIZE with flush? RefreshResponse actionGet = client().admin().indices().prepareRefresh(indices).execute().actionGet(); assertNoFailures(actionGet); return actionGet; }
final RefreshResponse function(String... indices) { waitForRelocation(); RefreshResponse actionGet = client().admin().indices().prepareRefresh(indices).execute().actionGet(); assertNoFailures(actionGet); return actionGet; }
/** * Waits for relocations and refreshes all indices in the cluster. * * @see #waitForRelocation() */
Waits for relocations and refreshes all indices in the cluster
refresh
{ "repo_name": "sreeramjayan/elasticsearch", "path": "test/framework/src/main/java/org/elasticsearch/test/ESIntegTestCase.java", "license": "apache-2.0", "size": 100953 }
[ "org.elasticsearch.action.admin.indices.refresh.RefreshResponse", "org.elasticsearch.test.hamcrest.ElasticsearchAssertions" ]
import org.elasticsearch.action.admin.indices.refresh.RefreshResponse; import org.elasticsearch.test.hamcrest.ElasticsearchAssertions;
import org.elasticsearch.action.admin.indices.refresh.*; import org.elasticsearch.test.hamcrest.*;
[ "org.elasticsearch.action", "org.elasticsearch.test" ]
org.elasticsearch.action; org.elasticsearch.test;
2,562,382
TestBase test = TestBase.createCaller().init(); test.config.traceTest = true; test.test(); }
TestBase test = TestBase.createCaller().init(); test.config.traceTest = true; test.test(); }
/** * Run just this test. * * @param a ignored */
Run just this test
main
{ "repo_name": "vdr007/ThriftyPaxos", "path": "src/applications/h2/src/test/org/h2/test/synth/TestRandomCompare.java", "license": "apache-2.0", "size": 9682 }
[ "org.h2.test.TestBase" ]
import org.h2.test.TestBase;
import org.h2.test.*;
[ "org.h2.test" ]
org.h2.test;
1,017,640
public ArrayList<Expression> getArgs() { return arguments; } // TODO: I added the methods replace() and replaceAll() below to help with the substituteM() //method in Expression class. Note, they increase the mutability of OperatorExpression, //which we may not wish to have... P.O.
ArrayList<Expression> function() { return arguments; }
/** * Returns the arguments for this OperatorExpression * @return the arguments for this OperatorExpression */
Returns the arguments for this OperatorExpression
getArgs
{ "repo_name": "poser3/Prove-It", "path": "src/edu/emory/prove_it/expression/OperatorExpression.java", "license": "mit", "size": 9395 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
7,560
public static synchronized void syncModulesData(Context context, String account, int syncType, String sessionId, String moduleName, SyncResult syncResult) throws SugarCrmException { long rawId = 0; final ContentResolver resolver...
static synchronized void function(Context context, String account, int syncType, String sessionId, String moduleName, SyncResult syncResult) throws SugarCrmException { long rawId = 0; final ContentResolver resolver = context.getContentResolver(); final BatchOperation batchOperation = new BatchOperation(resolver); if (d...
/** * Synchronize raw contacts * * @param context * The context of Authenticator Activity * @param account * The username for the account * @param sessionId * The session Id associated with sugarcrm session * @param moduleName * ...
Synchronize raw contacts
syncModulesData
{ "repo_name": "Imaginea/pancake-android", "path": "src/com/imaginea/android/sugarcrm/sync/SugarSyncManager.java", "license": "apache-2.0", "size": 50197 }
[ "android.content.ContentResolver", "android.content.Context", "android.content.SyncResult", "com.imaginea.android.sugarcrm.provider.DatabaseHelper", "com.imaginea.android.sugarcrm.util.SugarBean", "com.imaginea.android.sugarcrm.util.SugarCrmException" ]
import android.content.ContentResolver; import android.content.Context; import android.content.SyncResult; import com.imaginea.android.sugarcrm.provider.DatabaseHelper; import com.imaginea.android.sugarcrm.util.SugarBean; import com.imaginea.android.sugarcrm.util.SugarCrmException;
import android.content.*; import com.imaginea.android.sugarcrm.provider.*; import com.imaginea.android.sugarcrm.util.*;
[ "android.content", "com.imaginea.android" ]
android.content; com.imaginea.android;
1,280,732
// Initialize system functions and templates SPINModuleRegistry.get().init(); if(args.length == 0) { System.out.println("Arguments: baseURI [fileName]"); System.exit(0); } // Load main file String baseURI = args[0]; Model baseModel = ModelFactory.createDefaultModel(); if(args.length > 1) { ...
SPINModuleRegistry.get().init(); if(args.length == 0) { System.out.println(STR); System.exit(0); } String baseURI = args[0]; Model baseModel = ModelFactory.createDefaultModel(); if(args.length > 1) { String fileName = args[1]; File file = new File(fileName); InputStream is = new FileInputStream(file); String lang = Fil...
/** * The command line entry point. * @param args * [0]: the base URI/physical URL of the file * [1]: the (optional) name of a local RDF file contains the base URI */
The command line entry point
main
{ "repo_name": "dallemang/SPIN-from-RIF", "path": "SPIN/CheckConstraints.java", "license": "gpl-3.0", "size": 2322 }
[ "com.hp.hpl.jena.ontology.OntModel", "com.hp.hpl.jena.ontology.OntModelSpec", "com.hp.hpl.jena.rdf.model.Model", "com.hp.hpl.jena.rdf.model.ModelFactory", "com.hp.hpl.jena.util.FileUtils", "com.hp.hpl.jena.vocabulary.RDFS", "java.io.File", "java.io.FileInputStream", "java.io.InputStream", "java.ut...
import com.hp.hpl.jena.ontology.OntModel; import com.hp.hpl.jena.ontology.OntModelSpec; import com.hp.hpl.jena.rdf.model.Model; import com.hp.hpl.jena.rdf.model.ModelFactory; import com.hp.hpl.jena.util.FileUtils; import com.hp.hpl.jena.vocabulary.RDFS; import java.io.File; import java.io.FileInputStream; import java.i...
import com.hp.hpl.jena.ontology.*; import com.hp.hpl.jena.rdf.model.*; import com.hp.hpl.jena.util.*; import com.hp.hpl.jena.vocabulary.*; import java.io.*; import java.util.*; import org.topbraid.spin.constraints.*; import org.topbraid.spin.system.*; import org.topbraid.spin.util.*;
[ "com.hp.hpl", "java.io", "java.util", "org.topbraid.spin" ]
com.hp.hpl; java.io; java.util; org.topbraid.spin;
2,475,454
@ServiceMethod(returns = ReturnType.SINGLE) PrivateEndpointConnectionInner update( String resourceGroupName, String resourceName, String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters);
@ServiceMethod(returns = ReturnType.SINGLE) PrivateEndpointConnectionInner update( String resourceGroupName, String resourceName, String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters);
/** * Updates a private endpoint connection in the specified managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param privateEndpointConnectionName The name of the private endpoint connection. * @...
Updates a private endpoint connection in the specified managed cluster
update
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/PrivateEndpointConnectionsClient.java", "license": "mit", "size": 18488 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.containerservice.fluent.models.PrivateEndpointConnectionInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.containerservice.fluent.models.PrivateEndpointConnectionInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.containerservice.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,373,170
private static void outputResult(final float result, final AbstractStringMetric metric, final String str1, final String str2) { // System.out.println("Using Metric " + // metric.getShortDescriptionString() // + " on strings \"" + str1 + "\" & \"" + str2 // + "\" gives a similarity score of " + result);...
static void function(final float result, final AbstractStringMetric metric, final String str1, final String str2) { System.out.println((int) (result * 100) + STR + metric.getShortDescriptionString() + "]"); }
/** * outputs the result of the metric test. * * @param result * the float result of the metric test * @param metric * the metric itself to provide its description in the output * @param str1 * the first string with which to compare * @param str2 * the se...
outputs the result of the metric test
outputResult
{ "repo_name": "pgillet/Glue", "path": "glue-feed/src/main/java/com/glue/feed/sim/SimStringTests.java", "license": "gpl-3.0", "size": 2348 }
[ "uk.ac.shef.wit.simmetrics.similaritymetrics.AbstractStringMetric" ]
import uk.ac.shef.wit.simmetrics.similaritymetrics.AbstractStringMetric;
import uk.ac.shef.wit.simmetrics.similaritymetrics.*;
[ "uk.ac.shef" ]
uk.ac.shef;
2,173,747
public List<Formula> result() { return this.result; }
List<Formula> function() { return this.result; }
/** * Returns the result of this algorithm. * @return the result of this algorithm */
Returns the result of this algorithm
result
{ "repo_name": "logic-ng/LogicNG", "path": "src/main/java/org/logicng/datastructures/EncodingResult.java", "license": "apache-2.0", "size": 7612 }
[ "java.util.List", "org.logicng.formulas.Formula" ]
import java.util.List; import org.logicng.formulas.Formula;
import java.util.*; import org.logicng.formulas.*;
[ "java.util", "org.logicng.formulas" ]
java.util; org.logicng.formulas;
1,248,116
public synchronized int getCurrentBlockReplication() throws IOException { dfsClient.checkOpen(); checkClosed(); if (getStreamer().streamerClosed()) { return blockReplication; // no pipeline, return repl factor of file } DatanodeInfo[] currentNodes = getStreamer().getNodes(); if (currentN...
synchronized int function() throws IOException { dfsClient.checkOpen(); checkClosed(); if (getStreamer().streamerClosed()) { return blockReplication; } DatanodeInfo[] currentNodes = getStreamer().getNodes(); if (currentNodes == null) { return blockReplication; } return currentNodes.length; }
/** * Note that this is not a public API; * use {@link HdfsDataOutputStream#getCurrentBlockReplication()} instead. * * @return the number of valid replicas of the current block */
Note that this is not a public API; use <code>HdfsDataOutputStream#getCurrentBlockReplication()</code> instead
getCurrentBlockReplication
{ "repo_name": "huafengw/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DFSOutputStream.java", "license": "apache-2.0", "size": 39406 }
[ "java.io.IOException", "org.apache.hadoop.hdfs.protocol.DatanodeInfo" ]
import java.io.IOException; import org.apache.hadoop.hdfs.protocol.DatanodeInfo;
import java.io.*; import org.apache.hadoop.hdfs.protocol.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,382,481
@Override public int getItemEnchantability() { return Items.iron_sword.getItemEnchantability(); }
int function() { return Items.iron_sword.getItemEnchantability(); }
/** * Return the enchantability factor of the item, most of the time is based * on material. */
Return the enchantability factor of the item, most of the time is based on material
getItemEnchantability
{ "repo_name": "VapourDrive/HarderStart", "path": "src/main/java/com/vapourdrive/harderstart/items/CuttingKnifeBase.java", "license": "mit", "size": 4003 }
[ "net.minecraft.init.Items" ]
import net.minecraft.init.Items;
import net.minecraft.init.*;
[ "net.minecraft.init" ]
net.minecraft.init;
443,204
WebView getCurrentTopWebView() { Tab t = getTab(mCurrentTab); if (t == null) { return null; } return t.getTopWindow(); }
WebView getCurrentTopWebView() { Tab t = getTab(mCurrentTab); if (t == null) { return null; } return t.getTopWindow(); }
/** * Return the current tab's top-level WebView. This can return a subwindow * if one exists. * @return The top-level WebView of the current tab. */
Return the current tab's top-level WebView. This can return a subwindow if one exists
getCurrentTopWebView
{ "repo_name": "ChaOSChriS/chaoschrome", "path": "src/com/android/browser/TabControl.java", "license": "gpl-2.0", "size": 23642 }
[ "org.codeaurora.swe.WebView" ]
import org.codeaurora.swe.WebView;
import org.codeaurora.swe.*;
[ "org.codeaurora.swe" ]
org.codeaurora.swe;
1,348,593
public void setAssetDepreciationDate (Timestamp AssetDepreciationDate) { set_ValueNoCheck (COLUMNNAME_AssetDepreciationDate, AssetDepreciationDate); }
void function (Timestamp AssetDepreciationDate) { set_ValueNoCheck (COLUMNNAME_AssetDepreciationDate, AssetDepreciationDate); }
/** Set Asset Depreciation Date. @param AssetDepreciationDate Date of last depreciation */
Set Asset Depreciation Date
setAssetDepreciationDate
{ "repo_name": "arthurmelo88/palmetalADP", "path": "adempiere_360/base/src/org/compiere/model/X_A_Asset_Change.java", "license": "gpl-2.0", "size": 39409 }
[ "java.sql.Timestamp" ]
import java.sql.Timestamp;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,312,031
@Test public void testGetTransactionId04() { // given DHTTokenQueue tt = new DHTTokenQueueImpl(); // when ReflectionTestUtils.setField(tt, "transactionId1", "aa"); ReflectionTestUtils.setField(tt, "transactionId2", "bb"); // verify assertTrue(tt.isValidT...
void function() { DHTTokenQueue tt = new DHTTokenQueueImpl(); ReflectionTestUtils.setField(tt, STR, "aa"); ReflectionTestUtils.setField(tt, STR, "bb"); assertTrue(tt.isValidTransactionId("aa")); assertTrue(tt.isValidTransactionId("bb")); assertFalse(tt.isValidTransactionId(null)); assertFalse(tt.isValidTransactionId("a...
/** * testGetTransactionId04() - different transaction Id tokens both * transaction ids are valid. */
testGetTransactionId04() - different transaction Id tokens both transaction ids are valid
testGetTransactionId04
{ "repo_name": "mfriesen/cthulhu-dht", "path": "src/test/java/ca/gobits/test/dht/server/queue/DHTTokenQueueUnitTest.java", "license": "apache-2.0", "size": 12402 }
[ "ca.gobits.dht.server.queue.DHTTokenQueue", "ca.gobits.dht.server.queue.DHTTokenQueueImpl", "org.junit.Assert", "org.springframework.test.util.ReflectionTestUtils" ]
import ca.gobits.dht.server.queue.DHTTokenQueue; import ca.gobits.dht.server.queue.DHTTokenQueueImpl; import org.junit.Assert; import org.springframework.test.util.ReflectionTestUtils;
import ca.gobits.dht.server.queue.*; import org.junit.*; import org.springframework.test.util.*;
[ "ca.gobits.dht", "org.junit", "org.springframework.test" ]
ca.gobits.dht; org.junit; org.springframework.test;
1,021,325