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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
private static double[] complexRange(StringBuilder graphicControl, IAST plotRange, int steps,
JavaScriptFormFactory toJS) {
double[] result = new double[2];
IExpr zMin = plotRange.arg2();
IExpr zMax = plotRange.arg3();
Complex cMin = zMin.evalComplex();
Complex cMax = zMax.evalComplex();
... | static double[] function(StringBuilder graphicControl, IAST plotRange, int steps, JavaScriptFormFactory toJS) { double[] result = new double[2]; IExpr zMin = plotRange.arg2(); IExpr zMax = plotRange.arg3(); Complex cMin = zMin.evalComplex(); Complex cMax = zMax.evalComplex(); if (cMin != null && cMax != null) { double ... | /**
* Convert a range of 2 complex numbers into a <code>ComplexPlot3D</code> compatible range.
*
* @param graphicControl
* @param plotRange example <code>{z, -2-2*I, 2+2*I}</code>
* @param steps an additional step parameter. If less <code>0</code> the parameter will be ignored
* @param toJS the expres... | Convert a range of 2 complex numbers into a <code>ComplexPlot3D</code> compatible range | complexRange | {
"repo_name": "axkr/symja_android_library",
"path": "symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/builtin/ManipulateFunction.java",
"license": "gpl-3.0",
"size": 103850
} | [
"org.hipparchus.complex.Complex",
"org.matheclipse.core.expression.F",
"org.matheclipse.core.form.output.JavaScriptFormFactory",
"org.matheclipse.core.interfaces.IExpr"
] | import org.hipparchus.complex.Complex; import org.matheclipse.core.expression.F; import org.matheclipse.core.form.output.JavaScriptFormFactory; import org.matheclipse.core.interfaces.IExpr; | import org.hipparchus.complex.*; import org.matheclipse.core.expression.*; import org.matheclipse.core.form.output.*; import org.matheclipse.core.interfaces.*; | [
"org.hipparchus.complex",
"org.matheclipse.core"
] | org.hipparchus.complex; org.matheclipse.core; | 2,230,620 |
private IpcPredictionsForRouteStopDest getPredictionsForRouteStopDestination(
IpcPrediction prediction) {
return getPredictionsForRouteStopDestination(prediction.getTrip(),
prediction.getStopId());
}
//
// public static void main(String args[]) {
// String projectId = args.length > 0 ? args[0] : "testP... | IpcPredictionsForRouteStopDest function( IpcPrediction prediction) { return getPredictionsForRouteStopDestination(prediction.getTrip(), prediction.getStopId()); } | /**
* Returns PredictionsForRouteStop object associated with the
* specified route/stop/destination specified by the prediction parameter.
*
* @param prediction
* for specifying route and stop for which to get the prediction
* list for.
* @return The PredictionsForRouteStop for the ... | Returns PredictionsForRouteStop object associated with the specified route/stop/destination specified by the prediction parameter | getPredictionsForRouteStopDestination | {
"repo_name": "TheTransitClock/transitime",
"path": "transitclock/src/main/java/org/transitclock/core/dataCache/PredictionDataCache.java",
"license": "gpl-3.0",
"size": 30827
} | [
"org.transitclock.ipc.data.IpcPrediction",
"org.transitclock.ipc.data.IpcPredictionsForRouteStopDest"
] | import org.transitclock.ipc.data.IpcPrediction; import org.transitclock.ipc.data.IpcPredictionsForRouteStopDest; | import org.transitclock.ipc.data.*; | [
"org.transitclock.ipc"
] | org.transitclock.ipc; | 2,516,507 |
@NonNull
@RequiresApi(LOLLIPOP)
PopupAlertBuilder setElevation(float elevation); | @RequiresApi(LOLLIPOP) PopupAlertBuilder setElevation(float elevation); | /**
* Specifies the elevation for this popup alert.
*
* @param elevation elevation in pixels
* @return Builder object which has called this method.
* @since 1.0.0
*/ | Specifies the elevation for this popup alert | setElevation | {
"repo_name": "Mordag/hitogo",
"path": "core/src/main/java/org/hitogo/alert/popup/PopupAlertBuilder.java",
"license": "apache-2.0",
"size": 7150
} | [
"androidx.annotation.RequiresApi"
] | import androidx.annotation.RequiresApi; | import androidx.annotation.*; | [
"androidx.annotation"
] | androidx.annotation; | 124,247 |
public HostnameVerifier getHostnameVerifier() {
if (hostnameVerifier != null)
return hostnameVerifier;
return SmackConfiguration.getDefaultHostnameVerifier();
} | HostnameVerifier function() { if (hostnameVerifier != null) return hostnameVerifier; return SmackConfiguration.getDefaultHostnameVerifier(); } | /**
* Returns the configured HostnameVerifier of this ConnectionConfiguration or the Smack default
* HostnameVerifier configured with
* {@link SmackConfiguration#setDefaultHostnameVerifier(HostnameVerifier)}.
*
* @return a configured HostnameVerifier or <code>null</code>
*/ | Returns the configured HostnameVerifier of this ConnectionConfiguration or the Smack default HostnameVerifier configured with <code>SmackConfiguration#setDefaultHostnameVerifier(HostnameVerifier)</code> | getHostnameVerifier | {
"repo_name": "esl/Smack",
"path": "smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java",
"license": "apache-2.0",
"size": 36691
} | [
"javax.net.ssl.HostnameVerifier"
] | import javax.net.ssl.HostnameVerifier; | import javax.net.ssl.*; | [
"javax.net"
] | javax.net; | 2,736,944 |
@ApiOperation(value = "Update server-side endpoint profile",
notes = "Update a server-side endpoint profile. Only users with the TENANT_DEVELOPER or "
+ "TENANT_USER role are allowed to perform this operation.")
@ApiResponses(value = {
@ApiResponse(code = 400,
message = "Specified se... | @ApiOperation(value = STR, notes = STR + STR) @ApiResponses(value = { @ApiResponse(code = 400, message = STR), @ApiResponse(code = 401, message = STR), @ApiResponse(code = 403, message = STR + STR), @ApiResponse(code = 500, message = STR)}) @RequestMapping(value = STR, method = RequestMethod.POST) EndpointProfileDto fu... | /**
* Update server profile of endpoint.
*
* @param endpointProfileKey the endpoint profile key
* @param version the version
* @param serverProfileBody the server profile body
* @return the endpoint profile dto
* @throws Exception the exception
*/ | Update server profile of endpoint | updateServerProfile | {
"repo_name": "vtkhir/kaa",
"path": "server/node/src/main/java/org/kaaproject/kaa/server/admin/controller/ProfileController.java",
"license": "apache-2.0",
"size": 21424
} | [
"io.swagger.annotations.ApiOperation",
"io.swagger.annotations.ApiParam",
"io.swagger.annotations.ApiResponse",
"io.swagger.annotations.ApiResponses",
"org.kaaproject.kaa.common.dto.EndpointProfileDto",
"org.springframework.web.bind.annotation.RequestMapping",
"org.springframework.web.bind.annotation.Re... | import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponses; import org.kaaproject.kaa.common.dto.EndpointProfileDto; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.we... | import io.swagger.annotations.*; import org.kaaproject.kaa.common.dto.*; import org.springframework.web.bind.annotation.*; | [
"io.swagger.annotations",
"org.kaaproject.kaa",
"org.springframework.web"
] | io.swagger.annotations; org.kaaproject.kaa; org.springframework.web; | 1,515,565 |
public void onChange(ConfigChangeEvent changeEvent); | void function(ConfigChangeEvent changeEvent); | /**
* Invoked when there is any config change for the namespace.
* @param changeEvent the event for this change
*/ | Invoked when there is any config change for the namespace | onChange | {
"repo_name": "ycaihua/omicron",
"path": "omicron-client/src/main/java/com/datagre/apps/omicron/client/ConfigChangeListener.java",
"license": "apache-2.0",
"size": 1050
} | [
"com.datagre.apps.omicron.client.model.ConfigChangeEvent"
] | import com.datagre.apps.omicron.client.model.ConfigChangeEvent; | import com.datagre.apps.omicron.client.model.*; | [
"com.datagre.apps"
] | com.datagre.apps; | 349,560 |
void updateExtensionDecoders(ICodecPipeline pipeline);
| void updateExtensionDecoders(ICodecPipeline pipeline); | /**
* Called to updated the pipeline decoders based on the negotiated extensions
*
* @param pipeline the pipeline to be updated
*/ | Called to updated the pipeline decoders based on the negotiated extensions | updateExtensionDecoders | {
"repo_name": "snf4j/snf4j",
"path": "snf4j-websocket/src/main/java/org/snf4j/websocket/handshake/IHandshaker.java",
"license": "mit",
"size": 4476
} | [
"org.snf4j.core.codec.ICodecPipeline"
] | import org.snf4j.core.codec.ICodecPipeline; | import org.snf4j.core.codec.*; | [
"org.snf4j.core"
] | org.snf4j.core; | 1,592,306 |
@Test
public void testBasicStampQuery() throws Exception {
NoteItemFilter filter = new NoteItemFilter();
StampFilter missingFilter = new StampFilter();
missingFilter.setStampClass(EventStamp.class);
filter.getStampFilters().add(missingFilter);
Query query = queryBuilder.... | void function() throws Exception { NoteItemFilter filter = new NoteItemFilter(); StampFilter missingFilter = new StampFilter(); missingFilter.setStampClass(EventStamp.class); filter.getStampFilters().add(missingFilter); Query query = queryBuilder.buildQuery(session, filter); Assert.assertEquals(STR + STR, query.getQuer... | /**
* Tests basic stamp query.
* @throws Exception - if something is wrong this exception is thrown.
*/ | Tests basic stamp query | testBasicStampQuery | {
"repo_name": "Eisler/cosmo",
"path": "cosmo-core/src/test/unit/java/org/unitedinternet/cosmo/dao/hibernate/query/StandardItemFilterProcessorTest.java",
"license": "apache-2.0",
"size": 15229
} | [
"org.hibernate.Query",
"org.junit.Assert",
"org.unitedinternet.cosmo.model.EventStamp",
"org.unitedinternet.cosmo.model.filter.NoteItemFilter",
"org.unitedinternet.cosmo.model.filter.StampFilter"
] | import org.hibernate.Query; import org.junit.Assert; import org.unitedinternet.cosmo.model.EventStamp; import org.unitedinternet.cosmo.model.filter.NoteItemFilter; import org.unitedinternet.cosmo.model.filter.StampFilter; | import org.hibernate.*; import org.junit.*; import org.unitedinternet.cosmo.model.*; import org.unitedinternet.cosmo.model.filter.*; | [
"org.hibernate",
"org.junit",
"org.unitedinternet.cosmo"
] | org.hibernate; org.junit; org.unitedinternet.cosmo; | 869,311 |
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Response<WorkflowTriggerCallbackUrlInner>> listContentCallbackUrlWithResponseAsync(
String resourceGroupName,
String integrationAccountName,
String agreementName,
GetCallbackUrlParameters listContentCallbackUrl) {
i... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<WorkflowTriggerCallbackUrlInner>> function( String resourceGroupName, String integrationAccountName, String agreementName, GetCallbackUrlParameters listContentCallbackUrl) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentExceptio... | /**
* Get the content callback url.
*
* @param resourceGroupName The resource group name.
* @param integrationAccountName The integration account name.
* @param agreementName The integration account agreement name.
* @param listContentCallbackUrl The callback url parameters.
* @throws... | Get the content callback url | listContentCallbackUrlWithResponseAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/IntegrationAccountAgreementsClientImpl.java",
"license": "mit",
"size": 57468
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.core.util.FluxUtil",
"com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerCallbackUrlInner",
"com.azure.resourcemanager.logic.models.GetCallbackUrlParameters"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerCallbackUrlInner; import com.azure.resourcemanager.logic.models.GetCallbackUrlPa... | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.logic.fluent.models.*; import com.azure.resourcemanager.logic.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,472,524 |
public File getFile() {
return _file;
}
| File function() { return _file; } | /**
* gets file where this node belongs to
* @return <code>File</code>
*/ | gets file where this node belongs to | getFile | {
"repo_name": "kiwiwin/git-sniffer",
"path": "third_party_tools/checkstyle-5.6/contrib/usage/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/usage/transmogrify/SymTabAST.java",
"license": "mit",
"size": 16517
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 2,901,666 |
public void testRemoveElementFull() throws Exception {
final Element boldElement = paragraph.getElement(1);
final int offset = boldElement.getStartOffset();
final int length = boldElement.getEndOffset() - offset;
buf.remove(offset, length, createEvent(offset, length));
f... | void function() throws Exception { final Element boldElement = paragraph.getElement(1); final int offset = boldElement.getStartOffset(); final int length = boldElement.getEndOffset() - offset; buf.remove(offset, length, createEvent(offset, length)); final List<?> edits = getEdits(event); assertEquals(1, edits.size()); ... | /**
* An element fully falls into the remove region.
* This element is to be removed.
*/ | An element fully falls into the remove region. This element is to be removed | testRemoveElementFull | {
"repo_name": "shannah/cn1",
"path": "Ports/iOSPort/xmlvm/apache-harmony-6.0-src-r991881/classlib/modules/swing/src/test/api/java.injected/javax/swing/text/DefaultStyledDocument_ElementBuffer_RemoveTest.java",
"license": "gpl-2.0",
"size": 14303
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,123,476 |
protected void scheduleFinally(ScheduledCommand command) {
Scheduler.get().scheduleFinally(command);
}
| void function(ScheduledCommand command) { Scheduler.get().scheduleFinally(command); } | /**
* Schedules the command.
*
* <p>
* Protected so that subclasses can override to use an alternative scheduler.
* </p>
*
* @param command the command to execute
*/ | Schedules the command. Protected so that subclasses can override to use an alternative scheduler. | scheduleFinally | {
"repo_name": "datalint/open",
"path": "Open/src/main/client/com/google/gwt/user/cellview/client/HasDataPresenter.java",
"license": "apache-2.0",
"size": 49882
} | [
"com.google.gwt.core.client.Scheduler"
] | import com.google.gwt.core.client.Scheduler; | import com.google.gwt.core.client.*; | [
"com.google.gwt"
] | com.google.gwt; | 1,040,023 |
public void testCreateWithObject() {
JsAny<JavaScriptObject> newObjectJsAny = JsAny.create(objectValue(objectJsAny));
assertTrue(newObjectJsAny.isObject());
assertEquals(objectValue(objectJsAny), newObjectJsAny.asObject());
} | void function() { JsAny<JavaScriptObject> newObjectJsAny = JsAny.create(objectValue(objectJsAny)); assertTrue(newObjectJsAny.isObject()); assertEquals(objectValue(objectJsAny), newObjectJsAny.asObject()); } | /**
* Test {@link JsAny#create(JavaScriptObject)}.
* <p>
* {@link JsAny#create(JavaScriptObject)} should return a new JS Any instance
* with the value set to the provided object value.
*/ | Test <code>JsAny#create(JavaScriptObject)</code>. <code>JsAny#create(JavaScriptObject)</code> should return a new JS Any instance with the value set to the provided object value | testCreateWithObject | {
"repo_name": "kjots/gwt-lib",
"path": "js-utils/src/test/java/org/kjots/lib/gwt/js/util/client/JsAnyGwtTest.java",
"license": "apache-2.0",
"size": 14661
} | [
"com.google.gwt.core.client.JavaScriptObject"
] | import com.google.gwt.core.client.JavaScriptObject; | import com.google.gwt.core.client.*; | [
"com.google.gwt"
] | com.google.gwt; | 590,279 |
public void createInternetRadio(InternetRadio radio) {
String sql = "insert into internet_radio (" + INSERT_COLUMNS + ") values (?, ?, ?, ?, ?)";
update(sql, radio.getName(), radio.getStreamUrl(), radio.getHomepageUrl(), radio.isEnabled(), radio.getChanged());
LOG.info("Created internet radi... | void function(InternetRadio radio) { String sql = STR + INSERT_COLUMNS + STR; update(sql, radio.getName(), radio.getStreamUrl(), radio.getHomepageUrl(), radio.isEnabled(), radio.getChanged()); LOG.info(STR + radio.getName()); } | /**
* Creates a new internet radio station.
*
* @param radio The internet radio station to create.
*/ | Creates a new internet radio station | createInternetRadio | {
"repo_name": "ibmibmibm/libresonic",
"path": "libresonic-main/src/main/java/org/libresonic/player/dao/InternetRadioDao.java",
"license": "gpl-3.0",
"size": 3401
} | [
"org.libresonic.player.domain.InternetRadio"
] | import org.libresonic.player.domain.InternetRadio; | import org.libresonic.player.domain.*; | [
"org.libresonic.player"
] | org.libresonic.player; | 1,314,661 |
List<LocalRepoDescriptor> getDeployableRepoDescriptors(); | List<LocalRepoDescriptor> getDeployableRepoDescriptors(); | /**
* Returns a list of local repo descriptors that the user is permitted to deploy on
*
* @return List<LocalRepoDescriptor> - List of deploy-permitted local repos
*/ | Returns a list of local repo descriptors that the user is permitted to deploy on | getDeployableRepoDescriptors | {
"repo_name": "alancnet/artifactory",
"path": "base/api/src/main/java/org/artifactory/api/repo/RepositoryService.java",
"license": "apache-2.0",
"size": 20641
} | [
"java.util.List",
"org.artifactory.descriptor.repo.LocalRepoDescriptor"
] | import java.util.List; import org.artifactory.descriptor.repo.LocalRepoDescriptor; | import java.util.*; import org.artifactory.descriptor.repo.*; | [
"java.util",
"org.artifactory.descriptor"
] | java.util; org.artifactory.descriptor; | 2,641,585 |
public void setContentView(View view) {
setContentView(view, new ViewGroup.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
} | void function(View view) { setContentView(view, new ViewGroup.LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); } | /**
* Set the content to an explicit view.
*
* @param view The desired content to display.
*/ | Set the content to an explicit view | setContentView | {
"repo_name": "fujia/WayHoo",
"path": "libs/MenuDrawer-lib/src/net/simonvt/menudrawer/MenuDrawer.java",
"license": "apache-2.0",
"size": 50496
} | [
"android.view.View",
"android.view.ViewGroup"
] | import android.view.View; import android.view.ViewGroup; | import android.view.*; | [
"android.view"
] | android.view; | 595,681 |
private boolean isEmptyWysiwygContent(SimpleDocument document, String lang) {
if (document.getDocumentType() == DocumentType.wysiwyg) {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
try {
AttachmentServiceFactory.getAttachmentService()
.getBinaryContent(buffer, docume... | boolean function(SimpleDocument document, String lang) { if (document.getDocumentType() == DocumentType.wysiwyg) { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); try { AttachmentServiceFactory.getAttachmentService() .getBinaryContent(buffer, document.getPk(), lang, 0, 1); if (buffer.size() == 0) { return t... | /**
* Indicates for the specified document and the specified language if the related content is
* empty.
* @param document the simple document to verify.
* @param lang the language of the content to verify.
* @return true if the specified content is empty, false otherwise.
*/ | Indicates for the specified document and the specified language if the related content is empty | isEmptyWysiwygContent | {
"repo_name": "CecileBONIN/Silverpeas-Core",
"path": "lib-core/src/main/java/org/silverpeas/wysiwyg/control/WysiwygManager.java",
"license": "agpl-3.0",
"size": 45379
} | [
"java.io.ByteArrayOutputStream",
"org.apache.commons.io.IOUtils",
"org.silverpeas.attachment.AttachmentServiceFactory",
"org.silverpeas.attachment.model.DocumentType",
"org.silverpeas.attachment.model.SimpleDocument"
] | import java.io.ByteArrayOutputStream; import org.apache.commons.io.IOUtils; import org.silverpeas.attachment.AttachmentServiceFactory; import org.silverpeas.attachment.model.DocumentType; import org.silverpeas.attachment.model.SimpleDocument; | import java.io.*; import org.apache.commons.io.*; import org.silverpeas.attachment.*; import org.silverpeas.attachment.model.*; | [
"java.io",
"org.apache.commons",
"org.silverpeas.attachment"
] | java.io; org.apache.commons; org.silverpeas.attachment; | 1,157,618 |
public void handleIncomingRequest(Socket data) {
if (DEBUG) {
System.out.println("in TCPServerSocket handleIncomingRequest(data)");
}
} | void function(Socket data) { if (DEBUG) { System.out.println(STR); } } | /**
* This method handles data received on a given TCPServerSocket.
* Could be abstract since the method does nothing. A subclass is
* expected to override this method to handle the incoming data as
* necessary.
*
* @param data Socket the data is arriving on
*/ | This method handles data received on a given TCPServerSocket. Could be abstract since the method does nothing. A subclass is expected to override this method to handle the incoming data as necessary | handleIncomingRequest | {
"repo_name": "hungyao/context-toolkit",
"path": "src/main/java/context/arch/comm/protocol/TCPServerSocket.java",
"license": "gpl-3.0",
"size": 3345
} | [
"java.net.Socket"
] | import java.net.Socket; | import java.net.*; | [
"java.net"
] | java.net; | 1,698,691 |
public void onChildViewAttachedToWindow(View view); | void function(View view); | /**
* Called when a view is attached to the RecyclerView.
*
* @param view The View which is attached to the RecyclerView
*/ | Called when a view is attached to the RecyclerView | onChildViewAttachedToWindow | {
"repo_name": "maoProgrammer/Telema",
"path": "TMessagesProj/src/main/java/org/telegram/messenger/support/widget/RecyclerView.java",
"license": "gpl-2.0",
"size": 438207
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 2,238,215 |
public COSArray getColorKeyMask()
{
COSBase mask = getCOSStream().getDictionaryObject(COSName.MASK);
if (mask instanceof COSArray)
{
return (COSArray)mask;
}
return null;
}
| COSArray function() { COSBase mask = getCOSStream().getDictionaryObject(COSName.MASK); if (mask instanceof COSArray) { return (COSArray)mask; } return null; } | /**
* Returns the color key mask array associated with this image, or null if there is none.
* @return Mask Image XObject
*/ | Returns the color key mask array associated with this image, or null if there is none | getColorKeyMask | {
"repo_name": "mdamt/pdfbox",
"path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java",
"license": "apache-2.0",
"size": 19128
} | [
"org.apache.pdfbox.cos.COSArray",
"org.apache.pdfbox.cos.COSBase",
"org.apache.pdfbox.cos.COSName"
] | import org.apache.pdfbox.cos.COSArray; import org.apache.pdfbox.cos.COSBase; import org.apache.pdfbox.cos.COSName; | import org.apache.pdfbox.cos.*; | [
"org.apache.pdfbox"
] | org.apache.pdfbox; | 895,854 |
private void convertChunks(File p_75811_1_, File p_75811_2_, WorldChunkManager p_75811_3_, int p_75811_4_, int p_75811_5_, IProgressUpdate p_75811_6_) {
try {
String var7 = p_75811_2_.getName();
RegionFile var8 = new RegionFile(p_75811_2_);
RegionFile var9 = new RegionFile(new File(p_75811_1_, var7.substr... | void function(File p_75811_1_, File p_75811_2_, WorldChunkManager p_75811_3_, int p_75811_4_, int p_75811_5_, IProgressUpdate p_75811_6_) { try { String var7 = p_75811_2_.getName(); RegionFile var8 = new RegionFile(p_75811_2_); RegionFile var9 = new RegionFile(new File(p_75811_1_, var7.substring(0, var7.length() - ".mc... | /**
* copies a 32x32 chunk set from par2File to par1File, via
* AnvilConverterData
*/ | copies a 32x32 chunk set from par2File to par1File, via AnvilConverterData | convertChunks | {
"repo_name": "KubaKaszycki/FreeCraft",
"path": "src/main/java/kk/freecraft/world/chunk/storage/AnvilSaveConverter.java",
"license": "gpl-3.0",
"size": 8347
} | [
"java.io.DataInputStream",
"java.io.DataOutputStream",
"java.io.File",
"java.io.IOException"
] | import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.File; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 334,196 |
public List<ParseIssue> getParseIssues() {
Collections.sort(parseIssues);
return parseIssues;
} | List<ParseIssue> function() { Collections.sort(parseIssues); return parseIssues; } | /**
* Obtain the list of parse issues.
*
* @return The list of parse issues.
*/ | Obtain the list of parse issues | getParseIssues | {
"repo_name": "apache/incubator-systemml",
"path": "src/main/java/org/apache/sysds/parser/dml/CustomErrorListener.java",
"license": "apache-2.0",
"size": 11319
} | [
"java.util.Collections",
"java.util.List"
] | import java.util.Collections; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,360,117 |
private void dispatchKeyEvent(GVRGamepadController controller,
KeyEvent event) {
int keyCode = event.getKeyCode();
int action = event.getAction();
if (ACTIVE_BUTTONS.contains(keyCode)) {
controller.setKeyEvent(event);
... | void function(GVRGamepadController controller, KeyEvent event) { int keyCode = event.getKeyCode(); int action = event.getAction(); if (ACTIVE_BUTTONS.contains(keyCode)) { controller.setKeyEvent(event); } else { switch (keyCode) { case KeyEvent.KEYCODE_DPAD_LEFT: if (action == KeyEvent.ACTION_DOWN && dpadState != KeyEve... | /**
* Process the KeyEvent from the Gamepad.
*
* @param event the {@link KeyEvent}.
* @return <code>true</code> if the key is from an active button,
* <code>false</code> otherwise
*/ | Process the KeyEvent from the Gamepad | dispatchKeyEvent | {
"repo_name": "rahul27/GearVRf",
"path": "GVRf/Framework/framework/src/main/java/org/gearvrf/io/GVRGamepadDeviceManager.java",
"license": "apache-2.0",
"size": 21018
} | [
"android.view.KeyEvent"
] | import android.view.KeyEvent; | import android.view.*; | [
"android.view"
] | android.view; | 2,707,349 |
public CqQuery[] getAllCqs(){
CqQuery[] cQuerys = new CqQuery[0]; // Empty array.
HashMap cqMap = cqQueryMap;
if (cqMap.size() > 0) {
Collection cqs = cqMap.values();
cQuerys = new CqQuery[cqs.size()];
//Now that we do copy-on-write for cqMap, we might not
//need to call toArray()
... | CqQuery[] function(){ CqQuery[] cQuerys = new CqQuery[0]; HashMap cqMap = cqQueryMap; if (cqMap.size() > 0) { Collection cqs = cqMap.values(); cQuerys = new CqQuery[cqs.size()]; cqs.toArray(cQuerys); } return cQuerys; } | /**
* Retrieve all registered CQs
*/ | Retrieve all registered CQs | getAllCqs | {
"repo_name": "SnappyDataInc/snappy-store",
"path": "gemfire-core/src/main/java/com/gemstone/gemfire/cache/query/internal/CqService.java",
"license": "apache-2.0",
"size": 77786
} | [
"com.gemstone.gemfire.cache.query.CqQuery",
"java.util.Collection",
"java.util.HashMap"
] | import com.gemstone.gemfire.cache.query.CqQuery; import java.util.Collection; import java.util.HashMap; | import com.gemstone.gemfire.cache.query.*; import java.util.*; | [
"com.gemstone.gemfire",
"java.util"
] | com.gemstone.gemfire; java.util; | 419,509 |
public void destroyJoint(Joint j) {
assert (isLocked() == false);
if (isLocked()) {
return;
}
boolean collideConnected = j.m_collideConnected;
// Remove from the doubly linked list.
if (j.m_prev != null) {
j.m_prev.m_next = j.m_next;
}
if (j.m_next != null) {
j.m_next.m_prev = j.m_p... | void function(Joint j) { assert (isLocked() == false); if (isLocked()) { return; } boolean collideConnected = j.m_collideConnected; if (j.m_prev != null) { j.m_prev.m_next = j.m_next; } if (j.m_next != null) { j.m_next.m_prev = j.m_prev; } if (j == m_jointList) { m_jointList = j.m_next; } j.m_next = null; j.m_prev = nu... | /**
* destroy a joint. This may cause the connected bodies to begin colliding.
*
* @warning This function is locked during callbacks.
* @param j
*/ | destroy a joint. This may cause the connected bodies to begin colliding | destroyJoint | {
"repo_name": "KoriSamui/PlayN",
"path": "gwtbox2d/src/org/jbox2d/dynamics/World.java",
"license": "apache-2.0",
"size": 37716
} | [
"org.jbox2d.dynamics.contacts.ContactEdge",
"org.jbox2d.dynamics.joints.Joint"
] | import org.jbox2d.dynamics.contacts.ContactEdge; import org.jbox2d.dynamics.joints.Joint; | import org.jbox2d.dynamics.contacts.*; import org.jbox2d.dynamics.joints.*; | [
"org.jbox2d.dynamics"
] | org.jbox2d.dynamics; | 787,296 |
protected void cachePluginList(String site, String list) {
PrintWriter writer = null;
try {
File pluginDir = Main.pref.getPluginsDirectory();
if (!pluginDir.exists()) {
if (! pluginDir.mkdirs()) {
Main.warn(tr("Failed to create plugin direc... | void function(String site, String list) { PrintWriter writer = null; try { File pluginDir = Main.pref.getPluginsDirectory(); if (!pluginDir.exists()) { if (! pluginDir.mkdirs()) { Main.warn(tr(STR, pluginDir.toString(), site)); } } File cacheFile = createSiteCacheFile(pluginDir, site, CacheType.PLUGIN_LIST); getProgres... | /**
* Writes the list of plugins to a cache file
*
* @param site the site from where the list was downloaded
* @param list the downloaded list
*/ | Writes the list of plugins to a cache file | cachePluginList | {
"repo_name": "CURocketry/Ground_Station_GUI",
"path": "src/org/openstreetmap/josm/plugins/ReadRemotePluginInformationTask.java",
"license": "gpl-3.0",
"size": 17371
} | [
"java.io.File",
"java.io.FileOutputStream",
"java.io.IOException",
"java.io.OutputStreamWriter",
"java.io.PrintWriter",
"org.openstreetmap.josm.Main",
"org.openstreetmap.josm.tools.Utils"
] | import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.PrintWriter; import org.openstreetmap.josm.Main; import org.openstreetmap.josm.tools.Utils; | import java.io.*; import org.openstreetmap.josm.*; import org.openstreetmap.josm.tools.*; | [
"java.io",
"org.openstreetmap.josm"
] | java.io; org.openstreetmap.josm; | 777,949 |
public boolean shouldExecute()
{
if (!this.theEntityTameable.isTamed())
{
return false;
}
else
{
EntityLivingBase entitylivingbase = this.theEntityTameable.getOwner();
if (entitylivingbase == null)
{
... | boolean function() { if (!this.theEntityTameable.isTamed()) { return false; } else { EntityLivingBase entitylivingbase = this.theEntityTameable.getOwner(); if (entitylivingbase == null) { return false; } else { this.theTarget = entitylivingbase.getLastAttacker(); int i = entitylivingbase.getLastAttackerTime(); return i... | /**
* Returns whether the EntityAIBase should begin execution.
*/ | Returns whether the EntityAIBase should begin execution | shouldExecute | {
"repo_name": "lucemans/ShapeClient-SRC",
"path": "net/minecraft/entity/ai/EntityAIOwnerHurtTarget.java",
"license": "mpl-2.0",
"size": 1778
} | [
"net.minecraft.entity.EntityLivingBase"
] | import net.minecraft.entity.EntityLivingBase; | import net.minecraft.entity.*; | [
"net.minecraft.entity"
] | net.minecraft.entity; | 1,760,017 |
public void applyQueryTimeout(Query query, int remainingTimeInSeconds) throws JDOException {
logger.info("DefaultJdoDialect does not support query timeouts: ignoring remaining transaction time");
} | void function(Query query, int remainingTimeInSeconds) throws JDOException { logger.info(STR); } | /**
* This implementation logs a warning that it cannot apply a query timeout.
*/ | This implementation logs a warning that it cannot apply a query timeout | applyQueryTimeout | {
"repo_name": "dachengxi/spring1.1.1_source",
"path": "src/org/springframework/orm/jdo/DefaultJdoDialect.java",
"license": "mit",
"size": 7855
} | [
"javax.jdo.JDOException",
"javax.jdo.Query"
] | import javax.jdo.JDOException; import javax.jdo.Query; | import javax.jdo.*; | [
"javax.jdo"
] | javax.jdo; | 1,658,755 |
protected void handleHREF(RenderableImage image, Element imageElement,
SVGGeneratorContext generatorContext)
throws SVGGraphics2DIOException {
// Simply write a placeholder
imageElement.setAttributeNS(XLINK_NAMESPACE_URI,
XLIN... | void function(RenderableImage image, Element imageElement, SVGGeneratorContext generatorContext) throws SVGGraphics2DIOException { imageElement.setAttributeNS(XLINK_NAMESPACE_URI, XLINK_HREF_QNAME, image.toString()); } | /**
* This template method should set the xlink:href attribute on the input
* Element parameter
*/ | This template method should set the xlink:href attribute on the input Element parameter | handleHREF | {
"repo_name": "Squeegee/batik",
"path": "sources/org/apache/batik/svggen/DefaultImageHandler.java",
"license": "apache-2.0",
"size": 6148
} | [
"java.awt.image.renderable.RenderableImage",
"org.w3c.dom.Element"
] | import java.awt.image.renderable.RenderableImage; import org.w3c.dom.Element; | import java.awt.image.renderable.*; import org.w3c.dom.*; | [
"java.awt",
"org.w3c.dom"
] | java.awt; org.w3c.dom; | 2,753,618 |
public List<Abilita> insiemeAbilitaPersonaliUtente(String emailUtente) throws RicercheException;
| List<Abilita> function(String emailUtente) throws RicercheException; | /**
* Metodo per ottenere la lista delle abilita personali dell'utente passato come parametro
* @param emailUtente= String rappresentante la mail dell'utente di cui si vogliono conoscere le abilita
* @return <b>insiemeAbilita</b> lista di abilita, <b>null</b> se l'utente non ha abilita
* @throws RicercheExcepti... | Metodo per ottenere la lista delle abilita personali dell'utente passato come parametro | insiemeAbilitaPersonaliUtente | {
"repo_name": "Ks89/SWIMv2",
"path": "SWIMv2_EJB/ejbModule/sessionBeans/interfaces/GestioneRicercheInterface.java",
"license": "apache-2.0",
"size": 3498
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,330,430 |
public void addResourceReservation(ResourceReservation resourceReservation) {
if (this.resourceReservations == null) {
this.resourceReservations = new HashSet<ResourceReservation>();
}
if (!this.resourceReservations.contains(resourceReservation)) {
this.resourceReserv... | void function(ResourceReservation resourceReservation) { if (this.resourceReservations == null) { this.resourceReservations = new HashSet<ResourceReservation>(); } if (!this.resourceReservations.contains(resourceReservation)) { this.resourceReservations.add(resourceReservation); } } | /**
* Adds a resource role to the resource role set
*
* @param client
*/ | Adds a resource role to the resource role set | addResourceReservation | {
"repo_name": "bernfried/SimplePRP",
"path": "SimplePRP/src/main/java/de/webertise/simpleprp/model/User.java",
"license": "gpl-2.0",
"size": 18738
} | [
"java.util.HashSet"
] | import java.util.HashSet; | import java.util.*; | [
"java.util"
] | java.util; | 2,655,467 |
public Obs saveObs(Obs obs) throws APIException {
// Get the buffered file from the ComplexData.
ComplexData complexData = obs.getComplexData();
if (complexData == null) {
log.error("Cannot save complex data where obsId=" + obs.getObsId() + " because its ComplexData is null.");
return obs;
}
File... | Obs function(Obs obs) throws APIException { ComplexData complexData = obs.getComplexData(); if (complexData == null) { log.error(STR + obs.getObsId() + STR); return obs; } FileOutputStream fout = null; try { File outfile = getOutputFileToWrite(obs); fout = new FileOutputStream(outfile); Object data = obs.getComplexData... | /**
* TODO should this support a StringReader too?
*
* @see org.openmrs.obs.ComplexObsHandler#saveObs(org.openmrs.Obs)
*/ | TODO should this support a StringReader too | saveObs | {
"repo_name": "Winbobob/openmrs-core",
"path": "api/src/main/java/org/openmrs/obs/handler/BinaryDataHandler.java",
"license": "mpl-2.0",
"size": 3865
} | [
"java.io.File",
"java.io.FileOutputStream",
"java.io.IOException",
"java.io.InputStream",
"org.openmrs.Obs",
"org.openmrs.api.APIException",
"org.openmrs.obs.ComplexData",
"org.openmrs.util.OpenmrsUtil"
] | import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import org.openmrs.Obs; import org.openmrs.api.APIException; import org.openmrs.obs.ComplexData; import org.openmrs.util.OpenmrsUtil; | import java.io.*; import org.openmrs.*; import org.openmrs.api.*; import org.openmrs.obs.*; import org.openmrs.util.*; | [
"java.io",
"org.openmrs",
"org.openmrs.api",
"org.openmrs.obs",
"org.openmrs.util"
] | java.io; org.openmrs; org.openmrs.api; org.openmrs.obs; org.openmrs.util; | 1,404,622 |
void saveGroupMembership(Site site) throws IdUnusedException, PermissionException; | void saveGroupMembership(Site site) throws IdUnusedException, PermissionException; | /**
* Save only site group membership updates to this site - it must be a defined site (the id must exist) and the user must have site group membership update permissions.
*
* @param site
* The site, modified, to save.
* @throws IdUnusedException
* If the site's id is not a defined site id.
... | Save only site group membership updates to this site - it must be a defined site (the id must exist) and the user must have site group membership update permissions | saveGroupMembership | {
"repo_name": "harfalm/Sakai-10.1",
"path": "kernel/api/src/main/java/org/sakaiproject/site/api/SiteService.java",
"license": "apache-2.0",
"size": 39195
} | [
"org.sakaiproject.exception.IdUnusedException",
"org.sakaiproject.exception.PermissionException"
] | import org.sakaiproject.exception.IdUnusedException; import org.sakaiproject.exception.PermissionException; | import org.sakaiproject.exception.*; | [
"org.sakaiproject.exception"
] | org.sakaiproject.exception; | 1,818,300 |
public T orderBy(AliasedField... orderFields) {
if (orderFields == null) {
throw new IllegalArgumentException("Fields were null in order by clause");
}
return orderBy(Arrays.asList(orderFields));
}
| T function(AliasedField... orderFields) { if (orderFields == null) { throw new IllegalArgumentException(STR); } return orderBy(Arrays.asList(orderFields)); } | /**
* Specifies the fields by which to order the result set:
*
* <blockquote><pre>
* SelectStatement statement = select().from("Foo").orderBy(field("name").desc());
* </pre></blockquote>
*
* @param orderFields the fields to order by
* @return a new select statement with the change applie... | Specifies the fields by which to order the result set: <code> SelectStatement statement = select().from("Foo").orderBy(field("name").desc()); </code> | orderBy | {
"repo_name": "alfasoftware/morf",
"path": "morf-core/src/main/java/org/alfasoftware/morf/sql/AbstractSelectStatement.java",
"license": "apache-2.0",
"size": 26633
} | [
"java.util.Arrays",
"org.alfasoftware.morf.sql.element.AliasedField"
] | import java.util.Arrays; import org.alfasoftware.morf.sql.element.AliasedField; | import java.util.*; import org.alfasoftware.morf.sql.element.*; | [
"java.util",
"org.alfasoftware.morf"
] | java.util; org.alfasoftware.morf; | 2,057,952 |
return new FactorModular<ModInteger>(fac);
} | return new FactorModular<ModInteger>(fac); } | /**
* Determine suitable implementation of factorization algorithm, case
* ModInteger.
* @param fac ModIntegerRing.
* @return factorization algorithm implementation.
*/ | Determine suitable implementation of factorization algorithm, case ModInteger | getImplementation | {
"repo_name": "breandan/java-algebra-system",
"path": "src/edu/jas/ufd/FactorFactory.java",
"license": "gpl-2.0",
"size": 7312
} | [
"edu.jas.arith.ModInteger"
] | import edu.jas.arith.ModInteger; | import edu.jas.arith.*; | [
"edu.jas.arith"
] | edu.jas.arith; | 390,482 |
@Override
public void abort(String reason, Throwable cause) {
String msg = "ABORTING region server " + this + ": " + reason;
if (cause != null) {
LOG.fatal(msg, cause);
} else {
LOG.fatal(msg);
}
this.abortRequested = true;
// HBASE-4014: show list of coprocessors that were loade... | void function(String reason, Throwable cause) { String msg = STR + this + STR + reason; if (cause != null) { LOG.fatal(msg, cause); } else { LOG.fatal(msg); } this.abortRequested = true; LOG.fatal(STR + CoprocessorHost.getLoadedCoprocessors()); try { LOG.info(STR + JSONBean.dumpRegionServerMetrics()); } catch (Malforme... | /**
* Cause the server to exit without closing the regions it is serving, the log
* it is using and without notifying the master. Used unit testing and on
* catastrophic events such as HDFS is yanked out from under hbase or we OOME.
*
* @param reason
* the reason we are aborting
* @param c... | Cause the server to exit without closing the regions it is serving, the log it is using and without notifying the master. Used unit testing and on catastrophic events such as HDFS is yanked out from under hbase or we OOME | abort | {
"repo_name": "ibmsoe/hbase",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java",
"license": "apache-2.0",
"size": 124784
} | [
"java.io.IOException",
"javax.management.MalformedObjectNameException",
"org.apache.hadoop.hbase.ServerName",
"org.apache.hadoop.hbase.coprocessor.CoprocessorHost",
"org.apache.hadoop.hbase.protobuf.ProtobufUtil",
"org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos",
"org.apache.hadoop.... | import java.io.IOException; import javax.management.MalformedObjectNameException; import org.apache.hadoop.hbase.ServerName; import org.apache.hadoop.hbase.coprocessor.CoprocessorHost; import org.apache.hadoop.hbase.protobuf.ProtobufUtil; import org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos; impor... | import java.io.*; import javax.management.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.coprocessor.*; import org.apache.hadoop.hbase.protobuf.*; import org.apache.hadoop.hbase.protobuf.generated.*; import org.apache.hadoop.hbase.util.*; import org.apache.hadoop.util.*; | [
"java.io",
"javax.management",
"org.apache.hadoop"
] | java.io; javax.management; org.apache.hadoop; | 2,057,372 |
@WebMethod
@Path("/addMemberToSiteWithRoleBatch")
@Produces("text/plain")
@GET
public String addMemberToSiteWithRoleBatch(
@WebParam(name = "sessionid", partName = "sessionid") @QueryParam("sessionid") String sessionid,
@WebParam(name = "siteid", partName = "siteid") @QueryPa... | @Path(STR) @Produces(STR) String function( @WebParam(name = STR, partName = STR) @QueryParam(STR) String sessionid, @WebParam(name = STR, partName = STR) @QueryParam(STR) String siteid, @WebParam(name = "eids", partName = "eids") @QueryParam("eids") String eids, @WebParam(name = STR, partName = STR) @QueryParam(STR) St... | /**
* Add a user to a site with a given role
*
* @param sessionid the id of a valid session
* @param siteid the id of the site to add the user to
* @param eids the login usernames (ie jsmith26) separated by commas of the user you want to add to the site
* @param roleid the id of t... | Add a user to a site with a given role | addMemberToSiteWithRoleBatch | {
"repo_name": "rodriguezdevera/sakai",
"path": "webservices/cxf/src/java/org/sakaiproject/webservices/SakaiScript.java",
"license": "apache-2.0",
"size": 213282
} | [
"java.util.Arrays",
"java.util.List",
"javax.jws.WebParam",
"javax.ws.rs.Path",
"javax.ws.rs.Produces",
"javax.ws.rs.QueryParam",
"org.sakaiproject.site.api.Site",
"org.sakaiproject.tool.api.Session"
] | import java.util.Arrays; import java.util.List; import javax.jws.WebParam; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import org.sakaiproject.site.api.Site; import org.sakaiproject.tool.api.Session; | import java.util.*; import javax.jws.*; import javax.ws.rs.*; import org.sakaiproject.site.api.*; import org.sakaiproject.tool.api.*; | [
"java.util",
"javax.jws",
"javax.ws",
"org.sakaiproject.site",
"org.sakaiproject.tool"
] | java.util; javax.jws; javax.ws; org.sakaiproject.site; org.sakaiproject.tool; | 2,016,030 |
private void onCreateAccount() {
final String accountUsername = usernameField.getText();
final String password = new String(passwordField.getPassword());
// If this window isn't enabled, we shouldn't act.
if (!this.isEnabled()) {
return;
}
final boolean ok = checkFields();
if (!ok) {
ret... | void function() { final String accountUsername = usernameField.getText(); final String password = new String(passwordField.getPassword()); if (!this.isEnabled()) { return; } final boolean ok = checkFields(); if (!ok) { return; } final String email = emailField.getText(); final String server = serverField.getText(); int... | /**
* Run when the "Create account" button is activated.
*/ | Run when the "Create account" button is activated | onCreateAccount | {
"repo_name": "acsid/stendhal",
"path": "src/games/stendhal/client/gui/login/CreateAccountDialog.java",
"license": "gpl-2.0",
"size": 19328
} | [
"games.stendhal.client.gui.ProgressBar",
"javax.swing.JOptionPane"
] | import games.stendhal.client.gui.ProgressBar; import javax.swing.JOptionPane; | import games.stendhal.client.gui.*; import javax.swing.*; | [
"games.stendhal.client",
"javax.swing"
] | games.stendhal.client; javax.swing; | 1,924,213 |
public EBIMatrix solve(EBIMatrix B) {
if (B.getRowDimension() != n) {
throw new IllegalArgumentException("Matrix row dimensions must agree.");
}
if (!isspd) {
throw new RuntimeException("Matrix is not symmetric positive definite.");
}
// Copy right ha... | EBIMatrix function(EBIMatrix B) { if (B.getRowDimension() != n) { throw new IllegalArgumentException(STR); } if (!isspd) { throw new RuntimeException(STR); } double[][] X = B.getArrayCopy(); int nx = B.getColumnDimension(); for (int k = 0; k < n; k++) { for (int j = 0; j < nx; j++) { for (int i = 0; i < k; i++) { X[k][... | /**
* Solve A*X = B
*
* @param B A Matrix with as many rows as A and any number of columns.
* @return X so that L*L'*X = B
* @exception IllegalArgumentException Matrix row dimensions must agree.
* @exception RuntimeException Matrix is not symmetric positive definite.
*/ | Solve A*X = B | solve | {
"repo_name": "asad/ReactionDecoder",
"path": "src/main/java/uk/ac/ebi/reactionblast/tools/matrix/CholeskyDecomposition.java",
"license": "lgpl-3.0",
"size": 6011
} | [
"uk.ac.ebi.reactionblast.tools.EBIMatrix"
] | import uk.ac.ebi.reactionblast.tools.EBIMatrix; | import uk.ac.ebi.reactionblast.tools.*; | [
"uk.ac.ebi"
] | uk.ac.ebi; | 744,801 |
@RequestMapping("/shop/category/{friendlyUrl}.html")
public String displayCategoryNoReference(@PathVariable final String friendlyUrl, Model model, HttpServletRequest request, HttpServletResponse response, Locale locale) throws Exception {
return this.displayCategory(friendlyUrl,null,model,request,response,loc... | @RequestMapping(STR) String function(@PathVariable final String friendlyUrl, Model model, HttpServletRequest request, HttpServletResponse response, Locale locale) throws Exception { return this.displayCategory(friendlyUrl,null,model,request,response,locale); } | /**
* Category page entry point
* @param friendlyUrl
* @param model
* @param request
* @param response
* @return
* @throws Exception
*/ | Category page entry point | displayCategoryNoReference | {
"repo_name": "aboutdata/shopizer",
"path": "shopizer/sm-shop/src/main/java/com/salesmanager/web/shop/controller/category/ShoppingCategoryController.java",
"license": "lgpl-2.1",
"size": 25299
} | [
"java.util.Locale",
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpServletResponse",
"org.springframework.ui.Model",
"org.springframework.web.bind.annotation.PathVariable",
"org.springframework.web.bind.annotation.RequestMapping"
] | import java.util.Locale; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; | import java.util.*; import javax.servlet.http.*; import org.springframework.ui.*; import org.springframework.web.bind.annotation.*; | [
"java.util",
"javax.servlet",
"org.springframework.ui",
"org.springframework.web"
] | java.util; javax.servlet; org.springframework.ui; org.springframework.web; | 1,575,359 |
public static void toStream(JspWriter out, PageContextImpl pageContext,
com.caucho.xpath.Expr select,
boolean doEscape)
throws JspException, XPathException, IOException
{
try {
Env env = XPath.createEnv();
env.setVarEnv(pageContext.getV... | static void function(JspWriter out, PageContextImpl pageContext, com.caucho.xpath.Expr select, boolean doEscape) throws JspException, XPathException, IOException { try { Env env = XPath.createEnv(); env.setVarEnv(pageContext.getVarEnv()); Node node = pageContext.getNodeEnv(); String value = select.evalString(node, env)... | /**
* Process the tag.
*/ | Process the tag | toStream | {
"repo_name": "WelcomeHUME/svn-caucho-com-resin",
"path": "modules/resin/src/com/caucho/jstl/el/XmlOutTag.java",
"license": "gpl-2.0",
"size": 3233
} | [
"com.caucho.jsp.PageContextImpl",
"com.caucho.xpath.Env",
"com.caucho.xpath.Expr",
"com.caucho.xpath.XPath",
"com.caucho.xpath.XPathException",
"java.io.IOException",
"javax.servlet.jsp.JspException",
"javax.servlet.jsp.JspWriter",
"org.w3c.dom.Node"
] | import com.caucho.jsp.PageContextImpl; import com.caucho.xpath.Env; import com.caucho.xpath.Expr; import com.caucho.xpath.XPath; import com.caucho.xpath.XPathException; import java.io.IOException; import javax.servlet.jsp.JspException; import javax.servlet.jsp.JspWriter; import org.w3c.dom.Node; | import com.caucho.jsp.*; import com.caucho.xpath.*; import java.io.*; import javax.servlet.jsp.*; import org.w3c.dom.*; | [
"com.caucho.jsp",
"com.caucho.xpath",
"java.io",
"javax.servlet",
"org.w3c.dom"
] | com.caucho.jsp; com.caucho.xpath; java.io; javax.servlet; org.w3c.dom; | 783,334 |
public Set<String> getAllValuesOfSName(final String pTName) {
return rawAccumulateAllValuesOfSName(new Object[]{
pTName,
null
});
} | Set<String> function(final String pTName) { return rawAccumulateAllValuesOfSName(new Object[]{ pTName, null }); } | /**
* Retrieve the set of values that occur in matches for SName.
* @return the Set of all values, null if no parameter with the given name exists, empty set if there are no matches
*
*/ | Retrieve the set of values that occur in matches for SName | getAllValuesOfSName | {
"repo_name": "tht-krisztian/EMF-IncQuery-Examples",
"path": "school/school.incquery/src-gen/school/TeachersOfSchoolNamesMatcher.java",
"license": "epl-1.0",
"size": 13077
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 1,954,903 |
@Test
public void testToItemPrefsMapperBooleanData() throws Exception {
Mapper<LongWritable,Text, VarLongWritable,VarLongWritable>.Context context =
EasyMock.createMock(Mapper.Context.class);
context.write(new VarLongWritable(12L), new VarLongWritable(34L));
context.write(new VarLongWritable(56L)... | void function() throws Exception { Mapper<LongWritable,Text, VarLongWritable,VarLongWritable>.Context context = EasyMock.createMock(Mapper.Context.class); context.write(new VarLongWritable(12L), new VarLongWritable(34L)); context.write(new VarLongWritable(56L), new VarLongWritable(78L)); EasyMock.replay(context); ToIte... | /**
* tests {@link ToItemPrefsMapper} using boolean data
*/ | tests <code>ToItemPrefsMapper</code> using boolean data | testToItemPrefsMapperBooleanData | {
"repo_name": "huran2014/huran.github.io",
"path": "program_learning/Java/MyEclipseProfessional2014/mr/src/test/java/org/apache/mahout/cf/taste/hadoop/item/RecommenderJobTest.java",
"license": "gpl-2.0",
"size": 34424
} | [
"org.apache.hadoop.io.LongWritable",
"org.apache.hadoop.io.Text",
"org.apache.hadoop.mapreduce.Mapper",
"org.apache.mahout.cf.taste.hadoop.ToItemPrefsMapper",
"org.apache.mahout.math.VarLongWritable",
"org.easymock.EasyMock"
] | import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; import org.apache.mahout.cf.taste.hadoop.ToItemPrefsMapper; import org.apache.mahout.math.VarLongWritable; import org.easymock.EasyMock; | import org.apache.hadoop.io.*; import org.apache.hadoop.mapreduce.*; import org.apache.mahout.cf.taste.hadoop.*; import org.apache.mahout.math.*; import org.easymock.*; | [
"org.apache.hadoop",
"org.apache.mahout",
"org.easymock"
] | org.apache.hadoop; org.apache.mahout; org.easymock; | 2,802,490 |
private void init() {// called from ctor, so must not be overridable
this.setLayout(new BorderLayout());
ImageIcon legend = JMeterUtils.getImage("monitor-legend.gif"); // I18N: Contains fixed English text ...
JLabel label = new JLabel(legend);
label.setPreferredSize(new Dimension... | void function() { this.setLayout(new BorderLayout()); ImageIcon legend = JMeterUtils.getImage(STR); JLabel label = new JLabel(legend); label.setPreferredSize(new Dimension(550, 25)); this.add(label, BorderLayout.NORTH); this.servers = new JPanel(); this.servers.setLayout(new BoxLayout(servers, BoxLayout.Y_AXIS)); this.... | /**
* init is responsible for creating the necessary legends and information
* for the health panel.
*/ | init is responsible for creating the necessary legends and information for the health panel | init | {
"repo_name": "yuyupapa/OpenSource",
"path": "apache-jmeter-3.0/src/monitor/components/org/apache/jmeter/visualizers/MonitorHealthPanel.java",
"license": "apache-2.0",
"size": 5394
} | [
"java.awt.BorderLayout",
"java.awt.Component",
"java.awt.Dimension",
"javax.swing.BoxLayout",
"javax.swing.ImageIcon",
"javax.swing.JLabel",
"javax.swing.JPanel",
"javax.swing.JScrollPane",
"org.apache.jmeter.util.JMeterUtils"
] | import java.awt.BorderLayout; import java.awt.Component; import java.awt.Dimension; import javax.swing.BoxLayout; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import org.apache.jmeter.util.JMeterUtils; | import java.awt.*; import javax.swing.*; import org.apache.jmeter.util.*; | [
"java.awt",
"javax.swing",
"org.apache.jmeter"
] | java.awt; javax.swing; org.apache.jmeter; | 17,454 |
@Deployment(resources = { "org/activiti/rest/service/api/management/JobResourceTest.testTimerProcess.bpmn20.xml" })
public void testDeleteJob() throws Exception {
ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("timerProcess");
Job timerJob = managementService.createTimerJobQuery(... | @Deployment(resources = { STR }) void function() throws Exception { ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(STR); Job timerJob = managementService.createTimerJobQuery().processInstanceId(processInstance.getId()).singleResult(); assertNotNull(timerJob); HttpDelete httpDelete = new Http... | /**
* Test deleting a single job.
*/ | Test deleting a single job | testDeleteJob | {
"repo_name": "roberthafner/flowable-engine",
"path": "modules/flowable-rest/src/test/java/org/activiti/rest/service/api/management/JobResourceTest.java",
"license": "apache-2.0",
"size": 7575
} | [
"org.activiti.engine.runtime.Job",
"org.activiti.engine.runtime.ProcessInstance",
"org.activiti.engine.test.Deployment",
"org.activiti.rest.service.api.RestUrls",
"org.apache.http.HttpStatus",
"org.apache.http.client.methods.CloseableHttpResponse",
"org.apache.http.client.methods.HttpDelete"
] | import org.activiti.engine.runtime.Job; import org.activiti.engine.runtime.ProcessInstance; import org.activiti.engine.test.Deployment; import org.activiti.rest.service.api.RestUrls; import org.apache.http.HttpStatus; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.Htt... | import org.activiti.engine.runtime.*; import org.activiti.engine.test.*; import org.activiti.rest.service.api.*; import org.apache.http.*; import org.apache.http.client.methods.*; | [
"org.activiti.engine",
"org.activiti.rest",
"org.apache.http"
] | org.activiti.engine; org.activiti.rest; org.apache.http; | 2,624,000 |
static void classifyNuclei(CancerNucleusClassification cnc, TMAspot ts, Classifier classifier, boolean foregroundDetection, boolean respectROI, PluginManager manager, boolean asParallelThread) {
if (classifier != null && ts != null) {
List<TMApoint> tps;
if (foregroundDetection) {
... | static void classifyNuclei(CancerNucleusClassification cnc, TMAspot ts, Classifier classifier, boolean foregroundDetection, boolean respectROI, PluginManager manager, boolean asParallelThread) { if (classifier != null && ts != null) { List<TMApoint> tps; if (foregroundDetection) { tps = ts.getPoints_Estimated(); } else... | /**
* Classifies the estimated (non-goldstandard) TMALabels on a given TMAspot with a given classifier.
* @param ts The TMAspot whose TMApoints (nuclei) are to be classified.
* @param classifier The classifier to be used.
* @param foregroundDetection If true, the classifier is interpreted as foregro... | Classifies the estimated (non-goldstandard) TMALabels on a given TMAspot with a given classifier | classifyNuclei | {
"repo_name": "ETH-NEXUS/TMARKER",
"path": "plugins/CancerNucleusClassification/src/cancernucleusclassification/CancerNucleusClassification.java",
"license": "gpl-2.0",
"size": 223226
} | [
"java.awt.Graphics",
"java.awt.image.BufferedImage",
"java.util.List",
"java.util.logging.Level",
"java.util.logging.Logger"
] | import java.awt.Graphics; import java.awt.image.BufferedImage; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; | import java.awt.*; import java.awt.image.*; import java.util.*; import java.util.logging.*; | [
"java.awt",
"java.util"
] | java.awt; java.util; | 1,546,971 |
@Test(expected = IllegalArgumentException.class)
public void getUsers_null() throws Exception {
reg.getUsers(null, 0);
} | @Test(expected = IllegalArgumentException.class) void function() throws Exception { reg.getUsers(null, 0); } | /**
* Test method for {@link com.ibm.ws.security.registry.UserRegistry#getUsers(java.lang.String, int)}.
*/ | Test method for <code>com.ibm.ws.security.registry.UserRegistry#getUsers(java.lang.String, int)</code> | getUsers_null | {
"repo_name": "OpenLiberty/open-liberty",
"path": "dev/com.ibm.ws.security.registry/test/com/ibm/ws/security/registry/UserRegistryIllegalArgumentTemplate.java",
"license": "epl-1.0",
"size": 9316
} | [
"org.junit.Test"
] | import org.junit.Test; | import org.junit.*; | [
"org.junit"
] | org.junit; | 2,274,835 |
Container call(); | Container call(); | /**
* Executes the task. The <code> Callable </code> returns a {@link Container} with the processed data.
*
* @return the container with the processed data
*/ | Executes the task. The <code> Callable </code> returns a <code>Container</code> with the processed data | call | {
"repo_name": "tomas-pluskal/masscascade",
"path": "MassCascadeCore/src/main/java/uk/ac/ebi/masscascade/interfaces/Task.java",
"license": "gpl-3.0",
"size": 1761
} | [
"uk.ac.ebi.masscascade.interfaces.container.Container"
] | import uk.ac.ebi.masscascade.interfaces.container.Container; | import uk.ac.ebi.masscascade.interfaces.container.*; | [
"uk.ac.ebi"
] | uk.ac.ebi; | 925,797 |
public static Object invokeMethod(final Object object, final Class<?> clazz, final String methodName,
final Object... arguments) throws Exception {
Class<?> superClazz = clazz;
while (superClazz != null) {
for (final Method declaredMethod : superClazz.getDeclaredMethods()) ... | static Object function(final Object object, final Class<?> clazz, final String methodName, final Object... arguments) throws Exception { Class<?> superClazz = clazz; while (superClazz != null) { for (final Method declaredMethod : superClazz.getDeclaredMethods()) { if (declaredMethod.getName().equals(methodName)) { fina... | /**
* Invoke a given method with given arguments on a given object via
* reflection.
*
* @param object
* -- target object of invocation
* @param clazz
* -- type of argument object
* @param methodName
* -- name of method to be invoked
* ... | Invoke a given method with given arguments on a given object via reflection | invokeMethod | {
"repo_name": "akquinet/needle",
"path": "src/main/java/de/akquinet/jbosscc/needle/reflection/ReflectionUtil.java",
"license": "lgpl-2.1",
"size": 16467
} | [
"java.lang.reflect.Method",
"java.util.Arrays"
] | import java.lang.reflect.Method; import java.util.Arrays; | import java.lang.reflect.*; import java.util.*; | [
"java.lang",
"java.util"
] | java.lang; java.util; | 53,455 |
protected int countAccountable(ResourceType type) {
int count = 0;
if (distributeValues) {
count = 0;
for (int i = 0; i < elements.length; i++) {
if (enableRecording(elements[i], type)) {
count++;
}
}
... | int function(ResourceType type) { int count = 0; if (distributeValues) { count = 0; for (int i = 0; i < elements.length; i++) { if (enableRecording(elements[i], type)) { count++; } } } return count; } | /**
* Counts the accountable resources.
*
* @param type the resource type
* @return the number of accountable resources
*
* @since 1.00
*/ | Counts the accountable resources | countAccountable | {
"repo_name": "SSEHUB/spassMeter",
"path": "Instrumentation.ex/src/de/uni_hildesheim/sse/monitoring/runtime/recordingStrategies/AbstractMultipleRecorderElement.java",
"license": "apache-2.0",
"size": 22705
} | [
"de.uni_hildesheim.sse.monitoring.runtime.boot.ResourceType"
] | import de.uni_hildesheim.sse.monitoring.runtime.boot.ResourceType; | import de.uni_hildesheim.sse.monitoring.runtime.boot.*; | [
"de.uni_hildesheim.sse"
] | de.uni_hildesheim.sse; | 338,884 |
private void updateButtonEnabled() {
// First check to see if something is selected. Set the state of the
// buttons based upon that
boolean selected = avatarList.getSelectedIndex() != -1;
customizeButton.setEnabled(selected);
deleteButton.setEnabled(selected);
useBut... | void function() { boolean selected = avatarList.getSelectedIndex() != -1; customizeButton.setEnabled(selected); deleteButton.setEnabled(selected); useButton.setEnabled(selected); if (selected == true) { AvatarSPI avatar = (AvatarSPI) avatarList.getSelectedValue(); customizeButton.setEnabled(avatar.canConfigure()); dele... | /**
* Updates the state of the Customize, Delete, and Use buttons based upon
* whether an item in the list is selected and whether it permits Customize
* and Delete
*/ | Updates the state of the Customize, Delete, and Use buttons based upon whether an item in the list is selected and whether it permits Customize and Delete | updateButtonEnabled | {
"repo_name": "AsherBond/MondocosmOS",
"path": "wonderland/modules/world/avatarbase/src/classes/org/jdesktop/wonderland/modules/avatarbase/client/ui/AvatarConfigFrame.java",
"license": "agpl-3.0",
"size": 24728
} | [
"javax.swing.JLabel",
"javax.swing.ListCellRenderer",
"org.jdesktop.wonderland.modules.avatarbase.client.registry.AvatarRegistry",
"org.jdesktop.wonderland.modules.avatarbase.client.registry.spi.AvatarSPI"
] | import javax.swing.JLabel; import javax.swing.ListCellRenderer; import org.jdesktop.wonderland.modules.avatarbase.client.registry.AvatarRegistry; import org.jdesktop.wonderland.modules.avatarbase.client.registry.spi.AvatarSPI; | import javax.swing.*; import org.jdesktop.wonderland.modules.avatarbase.client.registry.*; import org.jdesktop.wonderland.modules.avatarbase.client.registry.spi.*; | [
"javax.swing",
"org.jdesktop.wonderland"
] | javax.swing; org.jdesktop.wonderland; | 1,508,444 |
void placeSnagItOrder(Item item, BazaarAccount bazaarAccount, CreditCard card); | void placeSnagItOrder(Item item, BazaarAccount bazaarAccount, CreditCard card); | /**
* Places a snag-it order
* @param item - item to be purchased
* @param bidder - bidder purchasing the item
* @param card - card to be debited
*/ | Places a snag-it order | placeSnagItOrder | {
"repo_name": "rcuprak/actionbazaar",
"path": "chapter14/src/main/java/com/actionbazaar/buslogic/BidManager.java",
"license": "apache-2.0",
"size": 2057
} | [
"com.actionbazaar.account.BazaarAccount",
"com.actionbazaar.model.CreditCard",
"com.actionbazaar.model.Item"
] | import com.actionbazaar.account.BazaarAccount; import com.actionbazaar.model.CreditCard; import com.actionbazaar.model.Item; | import com.actionbazaar.account.*; import com.actionbazaar.model.*; | [
"com.actionbazaar.account",
"com.actionbazaar.model"
] | com.actionbazaar.account; com.actionbazaar.model; | 1,533,214 |
public DatabaseMeta loadDatabaseMeta(ObjectId id_database) throws KettleException
{
DatabaseMeta databaseMeta = new DatabaseMeta();
try
{
RowMetaAndData r = getDatabase(id_database);
if (r!=null)
{
ObjectId id_database_type = new LongObjectId( r.getInteger( KettleDatabaseRepository.FIELD_DAT... | DatabaseMeta function(ObjectId id_database) throws KettleException { DatabaseMeta databaseMeta = new DatabaseMeta(); try { RowMetaAndData r = getDatabase(id_database); if (r!=null) { ObjectId id_database_type = new LongObjectId( r.getInteger( KettleDatabaseRepository.FIELD_DATABASE_ID_DATABASE_TYPE, 0) ); String dbType... | /**
*
* Load the Database Info
*/ | Load the Database Info | loadDatabaseMeta | {
"repo_name": "lihongqiang/kettle-4.4.0-stable",
"path": "src/org/pentaho/di/repository/kdr/delegates/KettleDatabaseRepositoryDatabaseDelegate.java",
"license": "apache-2.0",
"size": 22480
} | [
"java.util.Properties",
"org.pentaho.di.core.RowMetaAndData",
"org.pentaho.di.core.database.DatabaseMeta",
"org.pentaho.di.core.exception.KettleException",
"org.pentaho.di.repository.LongObjectId",
"org.pentaho.di.repository.ObjectId",
"org.pentaho.di.repository.kdr.KettleDatabaseRepository"
] | import java.util.Properties; import org.pentaho.di.core.RowMetaAndData; import org.pentaho.di.core.database.DatabaseMeta; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.repository.LongObjectId; import org.pentaho.di.repository.ObjectId; import org.pentaho.di.repository.kdr.KettleDatabaseRep... | import java.util.*; import org.pentaho.di.core.*; import org.pentaho.di.core.database.*; import org.pentaho.di.core.exception.*; import org.pentaho.di.repository.*; import org.pentaho.di.repository.kdr.*; | [
"java.util",
"org.pentaho.di"
] | java.util; org.pentaho.di; | 2,616,165 |
public final ArrayList<Recalculate> getRecalculates() {
ArrayList<Recalculate> recalculates = new ArrayList<Recalculate>();
for ( QuickTriggerable qt : unorderedTriggerables ) {
if ( qt.t instanceof Recalculate ) {
recalculates.add((Recalculate) qt.t);
}
}
retu... | final ArrayList<Recalculate> function() { ArrayList<Recalculate> recalculates = new ArrayList<Recalculate>(); for ( QuickTriggerable qt : unorderedTriggerables ) { if ( qt.t instanceof Recalculate ) { recalculates.add((Recalculate) qt.t); } } return recalculates; } | /**
* API for retrieving thelist of recalculates, for use when
* serializing the form definition (e.g., into .cache file).
* @return
*/ | API for retrieving thelist of recalculates, for use when serializing the form definition (e.g., into .cache file) | getRecalculates | {
"repo_name": "Jonathan727/javarosa",
"path": "core/src/main/java/org/javarosa/core/model/IDag.java",
"license": "apache-2.0",
"size": 15725
} | [
"java.util.ArrayList",
"org.javarosa.core.model.condition.Recalculate"
] | import java.util.ArrayList; import org.javarosa.core.model.condition.Recalculate; | import java.util.*; import org.javarosa.core.model.condition.*; | [
"java.util",
"org.javarosa.core"
] | java.util; org.javarosa.core; | 208,994 |
@Override
public boolean onCreateOptionsMenu(Menu menu) {
//getMenuInflater().inflate(R.menu.activity_gas_record, menu);
return true;
} | boolean function(Menu menu) { return true; } | /**
* DESCRIPTION:
* Initialize the Activity's standard options menu.
* @see android.app.Activity#onCreateOptionsMenu(android.view.Menu)
*/ | Initialize the Activity's standard options menu | onCreateOptionsMenu | {
"repo_name": "jiacontrerasp/LAB2-Linares",
"path": "FillUp/src/com/github/wdkapps/fillup/DateTimeActivity.java",
"license": "gpl-2.0",
"size": 5196
} | [
"android.view.Menu"
] | import android.view.Menu; | import android.view.*; | [
"android.view"
] | android.view; | 2,740,210 |
public static void debugException(@NotNull final Throwable t)
{
if (debugEnabled && debugTypes.contains(DebugType.EXCEPTION))
{
debugException(Level.WARNING, t);
}
} | static void function(@NotNull final Throwable t) { if (debugEnabled && debugTypes.contains(DebugType.EXCEPTION)) { debugException(Level.WARNING, t); } } | /**
* Writes debug information about the provided exception, if appropriate. If
* it is to be logged, then it will be sent to the underlying logger using the
* {@code WARNING} level.
*
* @param t The exception for which debug information should be written.
*/ | Writes debug information about the provided exception, if appropriate. If it is to be logged, then it will be sent to the underlying logger using the WARNING level | debugException | {
"repo_name": "UnboundID/ldapsdk",
"path": "src/com/unboundid/util/Debug.java",
"license": "gpl-2.0",
"size": 53220
} | [
"java.util.logging.Level"
] | import java.util.logging.Level; | import java.util.logging.*; | [
"java.util"
] | java.util; | 2,423,176 |
public void setPaint(Paint paint) {
if (paint == null) {
throw new IllegalArgumentException("Null 'paint' argument.");
}
this.paint = paint;
notifyListeners(new DialLayerChangeEvent(this));
} | void function(Paint paint) { if (paint == null) { throw new IllegalArgumentException(STR); } this.paint = paint; notifyListeners(new DialLayerChangeEvent(this)); } | /**
* Sets the paint and sends a {@link DialLayerChangeEvent} to all
* registered listeners.
*
* @param paint the paint (<code>null</code> not permitted).
*
* @see #getPaint()
*/ | Sets the paint and sends a <code>DialLayerChangeEvent</code> to all registered listeners | setPaint | {
"repo_name": "SpoonLabs/astor",
"path": "examples/chart_11/source/org/jfree/chart/plot/dial/DialValueIndicator.java",
"license": "gpl-2.0",
"size": 20817
} | [
"java.awt.Paint"
] | import java.awt.Paint; | import java.awt.*; | [
"java.awt"
] | java.awt; | 2,500,314 |
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PrivateEndpointConnectionInner> createOrUpdateAsync(
String resourceGroupName,
String serverName,
String privateEndpointConnectionName,
PrivateEndpointConnectionInner parameters,
Context context) {
return be... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<PrivateEndpointConnectionInner> function( String resourceGroupName, String serverName, String privateEndpointConnectionName, PrivateEndpointConnectionInner parameters, Context context) { return beginCreateOrUpdateAsync( resourceGroupName, serverName, privateEndpointConne... | /**
* Approve or reject a private endpoint connection with a given name.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* ... | Approve or reject a private endpoint connection with a given name | createOrUpdateAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/implementation/PrivateEndpointConnectionsClientImpl.java",
"license": "mit",
"size": 58978
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.util.Context",
"com.azure.resourcemanager.sql.fluent.models.PrivateEndpointConnectionInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.util.Context; import com.azure.resourcemanager.sql.fluent.models.PrivateEndpointConnectionInner; | import com.azure.core.annotation.*; import com.azure.core.util.*; import com.azure.resourcemanager.sql.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,073,278 |
public final void release() throws Exception {
mbs.unregisterMBean(name);
MBeanServerFactory.releaseMBeanServer(mbs);
} | final void function() throws Exception { mbs.unregisterMBean(name); MBeanServerFactory.releaseMBeanServer(mbs); } | /**
* Deregister Hello MBean, shut down the server.
*/ | Deregister Hello MBean, shut down the server | release | {
"repo_name": "freeVM/freeVM",
"path": "enhanced/buildtest/tests/functional/src/test/functional/org/apache/harmony/test/func/api/javax/management/NotificationTest.java",
"license": "apache-2.0",
"size": 8899
} | [
"javax.management.MBeanServerFactory"
] | import javax.management.MBeanServerFactory; | import javax.management.*; | [
"javax.management"
] | javax.management; | 1,591,348 |
Map<GradoopId, String> idToGraphHeadName = getGraphHeadNameMapping(graphHeads);
Map<GradoopId, String> idToVertexName = getVertexNameMapping(vertices);
Map<GradoopId, String> idToEdgeName = getEdgeNameMapping(edges);
Set<GradoopId> usedVertexIds = new HashSet<>();
Set<GradoopId> usedEdgeIds = new HashS... | Map<GradoopId, String> idToGraphHeadName = getGraphHeadNameMapping(graphHeads); Map<GradoopId, String> idToVertexName = getVertexNameMapping(vertices); Map<GradoopId, String> idToEdgeName = getEdgeNameMapping(edges); Set<GradoopId> usedVertexIds = new HashSet<>(); Set<GradoopId> usedEdgeIds = new HashSet<>(); StringBui... | /**
* Creates a GDL formatted string from the graph heads, vertices and edges.
*
* @return GDL formatted string
*/ | Creates a GDL formatted string from the graph heads, vertices and edges | getGDLString | {
"repo_name": "galpha/gradoop",
"path": "gradoop-flink/src/main/java/org/gradoop/flink/io/impl/gdl/GDLEncoder.java",
"license": "apache-2.0",
"size": 11561
} | [
"java.util.HashSet",
"java.util.Map",
"java.util.Set",
"org.gradoop.common.model.impl.id.GradoopId"
] | import java.util.HashSet; import java.util.Map; import java.util.Set; import org.gradoop.common.model.impl.id.GradoopId; | import java.util.*; import org.gradoop.common.model.impl.id.*; | [
"java.util",
"org.gradoop.common"
] | java.util; org.gradoop.common; | 2,405,709 |
public List<ScheduleEntry> scheduleEntries() {
return this.scheduleEntries;
} | List<ScheduleEntry> function() { return this.scheduleEntries; } | /**
* Get the scheduleEntries value.
*
* @return the scheduleEntries value
*/ | Get the scheduleEntries value | scheduleEntries | {
"repo_name": "hovsepm/azure-sdk-for-java",
"path": "redis/resource-manager/v2017_10_01/src/main/java/com/microsoft/azure/management/redis/v2017_10_01/implementation/RedisPatchScheduleInner.java",
"license": "mit",
"size": 1425
} | [
"com.microsoft.azure.management.redis.v2017_10_01.ScheduleEntry",
"java.util.List"
] | import com.microsoft.azure.management.redis.v2017_10_01.ScheduleEntry; import java.util.List; | import com.microsoft.azure.management.redis.v2017_10_01.*; import java.util.*; | [
"com.microsoft.azure",
"java.util"
] | com.microsoft.azure; java.util; | 1,573,461 |
public DossierStep2RolePersistence getDossierStep2RolePersistence() {
return dossierStep2RolePersistence;
} | DossierStep2RolePersistence function() { return dossierStep2RolePersistence; } | /**
* Returns the dossier step2 role persistence.
*
* @return the dossier step2 role persistence
*/ | Returns the dossier step2 role persistence | getDossierStep2RolePersistence | {
"repo_name": "openegovplatform/OEPv2",
"path": "oep-core-processmgt-portlet/docroot/WEB-INF/src/org/oep/core/processmgt/service/base/DossierStepServiceBaseImpl.java",
"license": "apache-2.0",
"size": 40827
} | [
"org.oep.core.processmgt.service.persistence.DossierStep2RolePersistence"
] | import org.oep.core.processmgt.service.persistence.DossierStep2RolePersistence; | import org.oep.core.processmgt.service.persistence.*; | [
"org.oep.core"
] | org.oep.core; | 1,825,502 |
@Deprecated
public T property(String name) {
return expression(new ExchangePropertyExpression(name));
} | T function(String name) { return expression(new ExchangePropertyExpression(name)); } | /**
* An expression of an exchange property of the given name
*
* @deprecated use {@link #exchangeProperty(String)} instead
*/ | An expression of an exchange property of the given name | property | {
"repo_name": "acartapanis/camel",
"path": "camel-core/src/main/java/org/apache/camel/builder/ExpressionClauseSupport.java",
"license": "apache-2.0",
"size": 38841
} | [
"org.apache.camel.model.language.ExchangePropertyExpression"
] | import org.apache.camel.model.language.ExchangePropertyExpression; | import org.apache.camel.model.language.*; | [
"org.apache.camel"
] | org.apache.camel; | 939,614 |
return instance;
}
private String identifier;
private File[] includePath;
private ForteCCCompiler(String command, String[] sourceExtensions,
String[] headerExtensions) {
super(command, "-V", sourceExtensions, headerExtensions, false, null,
false, null);
} | return instance; } private String identifier; private File[] includePath; private ForteCCCompiler(String command, String[] sourceExtensions, String[] headerExtensions) { super(command, "-V", sourceExtensions, headerExtensions, false, null, false, null); } | /**
* Gets singleton instance of this class
*/ | Gets singleton instance of this class | getInstance | {
"repo_name": "1spatial/cpptasks-parallel",
"path": "src/main/java/net/sf/antcontrib/cpptasks/sun/ForteCCCompiler.java",
"license": "apache-2.0",
"size": 4283
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 2,011,502 |
public View getItem() {
return getCachedView(items);
} | View function() { return getCachedView(items); } | /**
* Gets item view
* @return the cached view
*/ | Gets item view | getItem | {
"repo_name": "NhamPhanDinh/smmatest",
"path": "SMMA/src/jp/ne/smma/wheel/WheelRecycle.java",
"license": "apache-2.0",
"size": 3689
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 67,196 |
private static boolean hasProblem(ITextViewer textViewer, int offset) {
if (!(textViewer instanceof ISourceViewer)) {
return false;
}
IAnnotationModel annotationModel = ((ISourceViewer) textViewer).getAnnotationModel();
Iterator<Annotation> iter = (annotationModel instanceof IAnnotationModelExtensi... | static boolean function(ITextViewer textViewer, int offset) { if (!(textViewer instanceof ISourceViewer)) { return false; } IAnnotationModel annotationModel = ((ISourceViewer) textViewer).getAnnotationModel(); Iterator<Annotation> iter = (annotationModel instanceof IAnnotationModelExtension2) ? ((IAnnotationModelExtens... | /***
* Returns true if it exists a marker annotation in the given offset and false
* otherwise.
*
* @param textViewer
* @param offset
* @return true if it exists a marker annotation in the given offset and false
* otherwise.
*/ | Returns true if it exists a marker annotation in the given offset and false otherwise | hasProblem | {
"repo_name": "angelozerr/ec4e",
"path": "org.eclipse.ec4e/src/main/java/org/eclipse/ec4e/internal/hover/EditorConfigTextHover.java",
"license": "epl-1.0",
"size": 2627
} | [
"java.util.Iterator",
"org.eclipse.jface.text.ITextViewer",
"org.eclipse.jface.text.source.Annotation",
"org.eclipse.jface.text.source.IAnnotationModel",
"org.eclipse.jface.text.source.IAnnotationModelExtension2",
"org.eclipse.jface.text.source.ISourceViewer",
"org.eclipse.ui.texteditor.MarkerAnnotation... | import java.util.Iterator; import org.eclipse.jface.text.ITextViewer; import org.eclipse.jface.text.source.Annotation; import org.eclipse.jface.text.source.IAnnotationModel; import org.eclipse.jface.text.source.IAnnotationModelExtension2; import org.eclipse.jface.text.source.ISourceViewer; import org.eclipse.ui.textedi... | import java.util.*; import org.eclipse.jface.text.*; import org.eclipse.jface.text.source.*; import org.eclipse.ui.texteditor.*; | [
"java.util",
"org.eclipse.jface",
"org.eclipse.ui"
] | java.util; org.eclipse.jface; org.eclipse.ui; | 1,440,349 |
public Builder<TYPE> legacyAllowAnyFileType() {
return allowedFileTypes(FileTypeSet.ANY_FILE);
} | Builder<TYPE> function() { return allowedFileTypes(FileTypeSet.ANY_FILE); } | /**
* Allow all files for legacy compatibility. All uses of this method should be audited and then
* removed. In some cases, it's correct to allow any file, but mostly the set of files should be
* restricted to a reasonable set.
*/ | Allow all files for legacy compatibility. All uses of this method should be audited and then removed. In some cases, it's correct to allow any file, but mostly the set of files should be restricted to a reasonable set | legacyAllowAnyFileType | {
"repo_name": "UrbanCompass/bazel",
"path": "src/main/java/com/google/devtools/build/lib/packages/Attribute.java",
"license": "apache-2.0",
"size": 64772
} | [
"com.google.devtools.build.lib.util.FileTypeSet"
] | import com.google.devtools.build.lib.util.FileTypeSet; | import com.google.devtools.build.lib.util.*; | [
"com.google.devtools"
] | com.google.devtools; | 1,176,777 |
@Override
public View getView() {
return seekbar;
} | View function() { return seekbar; } | /**
* Specifies the color of the slider bar to the right of the thumb as an alpha-red-green-blue
* integer, i.e., {@code 0xAARRGGBB}. An alpha of {@code 00}
* indicates fully transparent and {@code FF} means opaque.
*
* @param argb background color in the format 0xAARRGGBB, which
* includes alpha, re... | Specifies the color of the slider bar to the right of the thumb as an alpha-red-green-blue integer, i.e., 0xAARRGGBB. An alpha of 00 indicates fully transparent and FF means opaque | getView | {
"repo_name": "mark-friedman/web-appinventor",
"path": "appinventor/components/src/com/google/appinventor/components/runtime/Slider.java",
"license": "apache-2.0",
"size": 14720
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 1,161,260 |
@Deprecated
public static <T> Set<T> createCopyOnWriteSet() {
return new CopyOnWriteArraySet<T>();
} | static <T> Set<T> function() { return new CopyOnWriteArraySet<T>(); } | /**
* Create a copy-on-write Set (allowing for synchronization-less iteration) if possible:
* This implementation always creates a {@link java.util.concurrent.CopyOnWriteArraySet},
* since Spring 3 requires JDK 1.5 anyway.
* @return the new Set instance
* @deprecated as of Spring 3.0, for usage on JDK 1.5 or ... | Create a copy-on-write Set (allowing for synchronization-less iteration) if possible: This implementation always creates a <code>java.util.concurrent.CopyOnWriteArraySet</code>, since Spring 3 requires JDK 1.5 anyway | createCopyOnWriteSet | {
"repo_name": "TinyGroup/tiny",
"path": "framework/org.tinygroup.commons/src/main/java/org/tinygroup/commons/tools/CollectionFactory.java",
"license": "gpl-3.0",
"size": 11126
} | [
"java.util.Set",
"java.util.concurrent.CopyOnWriteArraySet"
] | import java.util.Set; import java.util.concurrent.CopyOnWriteArraySet; | import java.util.*; import java.util.concurrent.*; | [
"java.util"
] | java.util; | 2,042,397 |
private void initDBStruct() {
DB db = Database.get(getDomain());
if (db != null) {
Database.retain();
DBCollection coll = db.getCollection(getTableName());
List<DBObject> indexes = coll.getIndexInfo();
if (indexes.size() < 1) {
BasicDBObject i = new BasicDBObject();
i.put(fieldname_number, 1)... | void function() { DB db = Database.get(getDomain()); if (db != null) { Database.retain(); DBCollection coll = db.getCollection(getTableName()); List<DBObject> indexes = coll.getIndexInfo(); if (indexes.size() < 1) { BasicDBObject i = new BasicDBObject(); i.put(fieldname_number, 1); coll.createIndex(i); i.put(fieldname_... | /**
* Inits the db struct.
*/ | Inits the db struct | initDBStruct | {
"repo_name": "alexript/balas",
"path": "src/net/autosauler/ballance/server/model/AbstractStructuredData.java",
"license": "apache-2.0",
"size": 15494
} | [
"com.mongodb.BasicDBObject",
"com.mongodb.DBCollection",
"com.mongodb.DBObject",
"java.util.List",
"net.autosauler.ballance.server.mongodb.Database"
] | import com.mongodb.BasicDBObject; import com.mongodb.DBCollection; import com.mongodb.DBObject; import java.util.List; import net.autosauler.ballance.server.mongodb.Database; | import com.mongodb.*; import java.util.*; import net.autosauler.ballance.server.mongodb.*; | [
"com.mongodb",
"java.util",
"net.autosauler.ballance"
] | com.mongodb; java.util; net.autosauler.ballance; | 408,294 |
@SuppressWarnings("unchecked")
public synchronized void removeApplicationAttempt(
ApplicationAttemptId applicationAttemptId) {
getRMStateStoreEventHandler().handle(
new RMStateStoreRemoveAppAttemptEvent(applicationAttemptId));
} | @SuppressWarnings(STR) synchronized void function( ApplicationAttemptId applicationAttemptId) { getRMStateStoreEventHandler().handle( new RMStateStoreRemoveAppAttemptEvent(applicationAttemptId)); } | /**
* Non-blocking API
* ResourceManager services call this to remove an attempt from the state
* store
* This does not block the dispatcher threads
* There is no notification of completion for this operation.
*/ | Non-blocking API ResourceManager services call this to remove an attempt from the state store This does not block the dispatcher threads There is no notification of completion for this operation | removeApplicationAttempt | {
"repo_name": "soumabrata-chakraborty/hadoop",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/recovery/RMStateStore.java",
"license": "apache-2.0",
"size": 45966
} | [
"org.apache.hadoop.yarn.api.records.ApplicationAttemptId"
] | import org.apache.hadoop.yarn.api.records.ApplicationAttemptId; | import org.apache.hadoop.yarn.api.records.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 2,894,920 |
public int executeUpdate() throws SQLException {
return statement.executeUpdate();
} | int function() throws SQLException { return statement.executeUpdate(); } | /**
* Executes the statement, which must be an SQL INSERT, UPDATE or DELETE
* statement; or an SQL statement that returns nothing, such as a DDL
* statement.
*
* @return number of rows affected
* @throws SQLException
* if an error occurred
* @see PreparedStatement#executeUpdate()
*/ | Executes the statement, which must be an SQL INSERT, UPDATE or DELETE statement; or an SQL statement that returns nothing, such as a DDL statement | executeUpdate | {
"repo_name": "adamitj/oss-adamiworks",
"path": "MirrorDB/src/main/java/com/adamiworks/mirrordb/util/NamedParameterStatement.java",
"license": "gpl-2.0",
"size": 8712
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,951,851 |
public void append(Shape s, boolean connect)
{
append(s.getPathIterator(new AffineTransform()), connect);
} | void function(Shape s, boolean connect) { append(s.getPathIterator(new AffineTransform()), connect); } | /**
* Delegates to the enclosed <code>GeneralPath</code>.
*/ | Delegates to the enclosed <code>GeneralPath</code> | append | {
"repo_name": "a3rd/jgraphx",
"path": "src/com/mxgraph/util/svg/ExtendedGeneralPath.java",
"license": "bsd-3-clause",
"size": 19899
} | [
"java.awt.Shape",
"java.awt.geom.AffineTransform"
] | import java.awt.Shape; import java.awt.geom.AffineTransform; | import java.awt.*; import java.awt.geom.*; | [
"java.awt"
] | java.awt; | 224,813 |
public ProtectionDomain getProtectionDomain() {
return null;
} | ProtectionDomain function() { return null; } | /**
* Returns null.
*/ | Returns null | getProtectionDomain | {
"repo_name": "JSDemos/android-sdk-20",
"path": "src/java/lang/Class.java",
"license": "apache-2.0",
"size": 51633
} | [
"java.security.ProtectionDomain"
] | import java.security.ProtectionDomain; | import java.security.*; | [
"java.security"
] | java.security; | 1,725,843 |
private static int consumeFluidFuelDosage(ItemStack stack)
{
if (itemContainsFluidFuel(stack) == false)
{
return 0;
}
// All the null checks happened already in itemContainsFluidFuel()
IFluidHandler handler = stack.getCapability(CapabilityFluidHandler.FLUID_H... | static int function(ItemStack stack) { if (itemContainsFluidFuel(stack) == false) { return 0; } IFluidHandler handler = stack.getCapability(CapabilityFluidHandler.FLUID_HANDLER_CAPABILITY, null); FluidStack fluidStack = handler.drain(new FluidStack(FluidRegistry.LAVA, Fluid.BUCKET_VOLUME), true); return fluidStack != n... | /**
* Uses one dose (1000 mB) of fluid fuel, returns the amount of burn time that was gained from it.
* @param stack
* @return burn time gained, in ticks
*/ | Uses one dose (1000 mB) of fluid fuel, returns the amount of burn time that was gained from it | consumeFluidFuelDosage | {
"repo_name": "maruohon/enderutilities",
"path": "src/main/java/fi/dy/masa/enderutilities/tileentity/TileEntityEnderFurnace.java",
"license": "gpl-3.0",
"size": 26162
} | [
"net.minecraft.item.ItemStack",
"net.minecraftforge.fluids.Fluid",
"net.minecraftforge.fluids.FluidRegistry",
"net.minecraftforge.fluids.FluidStack",
"net.minecraftforge.fluids.capability.CapabilityFluidHandler",
"net.minecraftforge.fluids.capability.IFluidHandler"
] | import net.minecraft.item.ItemStack; import net.minecraftforge.fluids.Fluid; import net.minecraftforge.fluids.FluidRegistry; import net.minecraftforge.fluids.FluidStack; import net.minecraftforge.fluids.capability.CapabilityFluidHandler; import net.minecraftforge.fluids.capability.IFluidHandler; | import net.minecraft.item.*; import net.minecraftforge.fluids.*; import net.minecraftforge.fluids.capability.*; | [
"net.minecraft.item",
"net.minecraftforge.fluids"
] | net.minecraft.item; net.minecraftforge.fluids; | 715,648 |
@Override
public void print(String s) throws IOException
{
if (s == null)
s = "null";
OutputStream out = _out;
if (out instanceof WriteStream) {
WriteStream wOut = (WriteStream) out;
wOut.print(s);
}
else {
int length = s.length();
if (_buffer == null)
... | void function(String s) throws IOException { if (s == null) s = "null"; OutputStream out = _out; if (out instanceof WriteStream) { WriteStream wOut = (WriteStream) out; wOut.print(s); } else { int length = s.length(); if (_buffer == null) _buffer = new byte[128]; byte []buffer = _buffer; int offset = 0; while (length >... | /**
* Prints a string to the stream. Note, this method does not properly
* handle character encoding.
*
* @param s the string to write.
*/ | Prints a string to the stream. Note, this method does not properly handle character encoding | print | {
"repo_name": "dlitz/resin",
"path": "modules/resin/src/com/caucho/server/http/ServletOutputStreamImpl.java",
"license": "gpl-2.0",
"size": 3021
} | [
"com.caucho.vfs.WriteStream",
"java.io.IOException",
"java.io.OutputStream"
] | import com.caucho.vfs.WriteStream; import java.io.IOException; import java.io.OutputStream; | import com.caucho.vfs.*; import java.io.*; | [
"com.caucho.vfs",
"java.io"
] | com.caucho.vfs; java.io; | 2,187,398 |
@ServiceMethod(returns = ReturnType.SINGLE)
Response<OrderItemResourceInner> getOrderItemByNameWithResponse(
String orderItemName, String resourceGroupName, String expand, Context context); | @ServiceMethod(returns = ReturnType.SINGLE) Response<OrderItemResourceInner> getOrderItemByNameWithResponse( String orderItemName, String resourceGroupName, String expand, Context context); | /**
* Gets an order item.
*
* @param orderItemName The name of the order item.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param expand $expand is supported on device details, forward shipping details and reverse shipping details
* parame... | Gets an order item | getOrderItemByNameWithResponse | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/edgeorder/azure-resourcemanager-edgeorder/src/main/java/com/azure/resourcemanager/edgeorder/fluent/ResourceProvidersClient.java",
"license": "mit",
"size": 53832
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.core.util.Context",
"com.azure.resourcemanager.edgeorder.fluent.models.OrderItemResourceInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.edgeorder.fluent.models.OrderItemResourceInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.edgeorder.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,851,584 |
void visit(Equivalence node); | void visit(Equivalence node); | /**
* Visits an AST node of type Equivalence.
*
* @param node
* The AST node to visit
*/ | Visits an AST node of type Equivalence | visit | {
"repo_name": "team-worthwhile/worthwhile",
"path": "implementierung/src/worthwhile.model/src/edu/kit/iti/formal/pse/worthwhile/model/ast/visitor/IASTNodeVisitor.java",
"license": "bsd-3-clause",
"size": 13590
} | [
"edu.kit.iti.formal.pse.worthwhile.model.ast.Equivalence"
] | import edu.kit.iti.formal.pse.worthwhile.model.ast.Equivalence; | import edu.kit.iti.formal.pse.worthwhile.model.ast.*; | [
"edu.kit.iti"
] | edu.kit.iti; | 494,721 |
public void testConvertObjectToSearchResult_MatchInDescriptionWithinWord() throws Exception {
SearchResult searchResult = helper.convertObjectToSearchResult(
new FakeNameable(0, "The title", "Description"), "IPT");
assertEquals("Descr", searchResult.getMatchPrefix());
assertEqual... | void function() throws Exception { SearchResult searchResult = helper.convertObjectToSearchResult( new FakeNameable(0, STR, STR), "IPT"); assertEquals("Descr", searchResult.getMatchPrefix()); assertEquals("ipt", searchResult.getMatchingText()); assertEquals("ion", searchResult.getMatchSuffix()); assertTrue(searchResult... | /** Test convert object to search result_ match in description within
* word.
*
* @throws Exception
* the exception
*/ | Test convert object to search result_ match in description within word | testConvertObjectToSearchResult_MatchInDescriptionWithinWord | {
"repo_name": "alarulrajan/CodeFest",
"path": "test/com/technoetic/xplanner/db/TestSearchResultFactory.java",
"license": "gpl-2.0",
"size": 6196
} | [
"com.technoetic.xplanner.domain.SearchResult"
] | import com.technoetic.xplanner.domain.SearchResult; | import com.technoetic.xplanner.domain.*; | [
"com.technoetic.xplanner"
] | com.technoetic.xplanner; | 1,029,847 |
public EAttribute getPotentialTransformer_NominalRatio() {
return (EAttribute)getPotentialTransformer().getEStructuralFeatures().get(1);
} | EAttribute function() { return (EAttribute)getPotentialTransformer().getEStructuralFeatures().get(1); } | /**
* Returns the meta object for the attribute '{@link CIM15.IEC61970.AuxiliaryEquipment.PotentialTransformer#getNominalRatio <em>Nominal Ratio</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Nominal Ratio</em>'.
* @see CIM15.IEC61970.AuxiliaryEquipm... | Returns the meta object for the attribute '<code>CIM15.IEC61970.AuxiliaryEquipment.PotentialTransformer#getNominalRatio Nominal Ratio</code>'. | getPotentialTransformer_NominalRatio | {
"repo_name": "SES-fortiss/SmartGridCoSimulation",
"path": "core/cim15/src/CIM15/IEC61970/AuxiliaryEquipment/AuxiliaryEquipmentPackage.java",
"license": "apache-2.0",
"size": 91811
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,118,684 |
@Factory
public static <T extends Comparable<T>> Matcher<? super T> greaterThan(T value) {
return new OrderingComparison<T>(value, -1, -1);
}
| static <T extends Comparable<T>> Matcher<? super T> function(T value) { return new OrderingComparison<T>(value, -1, -1); } | /**
* Is value > expected?
*/ | Is value > expected | greaterThan | {
"repo_name": "nagyist/marketcetera",
"path": "trunk/core/src/test/java/org/marketcetera/core/position/impl/OrderingComparison.java",
"license": "apache-2.0",
"size": 2733
} | [
"org.hamcrest.Matcher"
] | import org.hamcrest.Matcher; | import org.hamcrest.*; | [
"org.hamcrest"
] | org.hamcrest; | 128,891 |
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Response<DatabaseVulnerabilityAssessmentRuleBaselineInner>> getWithResponseAsync(
String resourceGroupName,
String managedInstanceName,
String databaseName,
VulnerabilityAssessmentName vulnerabilityAssessmentName,
St... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<DatabaseVulnerabilityAssessmentRuleBaselineInner>> function( String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName... | /**
* Gets a database's vulnerability assessment rule baseline.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param managedInstanceName The name of the managed instanc... | Gets a database's vulnerability assessment rule baseline | getWithResponseAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/implementation/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientImpl.java",
"license": "mit",
"size": 50000
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.core.util.FluxUtil",
"com.azure.resourcemanager.sql.fluent.models.DatabaseVulnerabilityAssessmentRuleBaselineInner",
"com.azure.resourcemanager.sql.models.VulnerabilityAssessm... | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.sql.fluent.models.DatabaseVulnerabilityAssessmentRuleBaselineInner; import com.azure.resourcemanager.sql.models.Vul... | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.sql.fluent.models.*; import com.azure.resourcemanager.sql.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 1,547,959 |
public void moveDataToSourceDisk() throws IOException {
moveAllDataToDestDisk(this.node, sourceDiskIndex);
cluster.restartDataNodes();
cluster.waitActive();
} | void function() throws IOException { moveAllDataToDestDisk(this.node, sourceDiskIndex); cluster.restartDataNodes(); cluster.waitActive(); } | /**
* Moves all data to a source disk to create disk imbalance so we can run a
* planner.
*
* @throws IOException
*/ | Moves all data to a source disk to create disk imbalance so we can run a planner | moveDataToSourceDisk | {
"repo_name": "apurtell/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/diskbalancer/TestDiskBalancer.java",
"license": "apache-2.0",
"size": 29774
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 586,682 |
private static void upgradeTo300(Connection con) throws RollerException {
try {
mLogger.info("Doing upgrade to 300 ...");
// get system default language
String locale = java.util.Locale.getDefault().getLanguage();
... | static void function(Connection con) throws RollerException { try { mLogger.info(STR); String locale = java.util.Locale.getDefault().getLanguage(); mLogger.info(STR+locale+STR); PreparedStatement updateNullWeblogLocale = con.prepareStatement( STR); PreparedStatement updateEmptyWeblogLocale = con.prepareStatement( STR);... | /**
* Upgrade database for Roller 3.0.0
*/ | Upgrade database for Roller 3.0.0 | upgradeTo300 | {
"repo_name": "paulnguyen/cmpe279",
"path": "eclipse/Roller/src/org/apache/roller/business/utils/UpgradeDatabase.java",
"license": "apache-2.0",
"size": 20010
} | [
"java.sql.Connection",
"java.sql.PreparedStatement",
"java.sql.ResultSet",
"java.sql.SQLException",
"org.apache.roller.RollerException"
] | import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import org.apache.roller.RollerException; | import java.sql.*; import org.apache.roller.*; | [
"java.sql",
"org.apache.roller"
] | java.sql; org.apache.roller; | 497,004 |
private void synchronize(Bundle extras, boolean threaded) {
syncLockId = syncLock.acquireLock();
if (syncLockId == SyncLock.FORBIDDEN) {
Log.info(TAG_LOG, "Synchronization not permitted because sync is locked");
return;
}
// Init sources to be synchronized
... | void function(Bundle extras, boolean threaded) { syncLockId = syncLock.acquireLock(); if (syncLockId == SyncLock.FORBIDDEN) { Log.info(TAG_LOG, STR); return; } Vector sources = getSourcesToSync(extras); if (sources == null sources.size() == 0) { Log.info(TAG_LOG, STR); return; } try { if(threaded) { NetworkStatus netwo... | /**
* Perform the synchronization, if the operation is permitted
*
* @param extras The extra Bundle
* @param threaded true if the sync shall be executed in a new thread
*/ | Perform the synchronization, if the operation is permitted | synchronize | {
"repo_name": "accesstest3/AndroidFunambol",
"path": "src/com/funambol/android/services/AbstractSyncAdapterService.java",
"license": "agpl-3.0",
"size": 15995
} | [
"android.content.ContentResolver",
"android.os.Bundle",
"com.funambol.android.AndroidCustomization",
"com.funambol.android.SyncLock",
"com.funambol.android.controller.AndroidController",
"com.funambol.android.controller.AndroidHomeScreenController",
"com.funambol.client.controller.Controller",
"com.fu... | import android.content.ContentResolver; import android.os.Bundle; import com.funambol.android.AndroidCustomization; import com.funambol.android.SyncLock; import com.funambol.android.controller.AndroidController; import com.funambol.android.controller.AndroidHomeScreenController; import com.funambol.client.controller.Co... | import android.content.*; import android.os.*; import com.funambol.android.*; import com.funambol.android.controller.*; import com.funambol.client.controller.*; import com.funambol.client.engine.*; import com.funambol.platform.*; import com.funambol.util.*; import java.util.*; | [
"android.content",
"android.os",
"com.funambol.android",
"com.funambol.client",
"com.funambol.platform",
"com.funambol.util",
"java.util"
] | android.content; android.os; com.funambol.android; com.funambol.client; com.funambol.platform; com.funambol.util; java.util; | 2,371,270 |
@Override
public PreAuthenticatedAuthenticationToken deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
PreAuthenticatedAuthenticationToken token = null;
ObjectMapper mapper = (ObjectMapper) jp.getCodec();
JsonNode jsonNode = mapper.readTree(jp);
Boolean au... | PreAuthenticatedAuthenticationToken function(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { PreAuthenticatedAuthenticationToken token = null; ObjectMapper mapper = (ObjectMapper) jp.getCodec(); JsonNode jsonNode = mapper.readTree(jp); Boolean authenticated = readJsonNode(jsonN... | /**
* This method construct {@link PreAuthenticatedAuthenticationToken} object from serialized json.
* @param jp the JsonParser
* @param ctxt the DeserializationContext
* @return the user
* @throws IOException if a exception during IO occurs
* @throws JsonProcessingException if an error during JSON processi... | This method construct <code>PreAuthenticatedAuthenticationToken</code> object from serialized json | deserialize | {
"repo_name": "SanjayUser/SpringSecurityPro",
"path": "web/src/main/java/org/springframework/security/web/jackson2/PreAuthenticatedAuthenticationTokenDeserializer.java",
"license": "apache-2.0",
"size": 3671
} | [
"com.fasterxml.jackson.core.JsonParser",
"com.fasterxml.jackson.core.JsonProcessingException",
"com.fasterxml.jackson.core.type.TypeReference",
"com.fasterxml.jackson.databind.DeserializationContext",
"com.fasterxml.jackson.databind.JsonNode",
"com.fasterxml.jackson.databind.ObjectMapper",
"java.io.IOEx... | import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper;... | import com.fasterxml.jackson.core.*; import com.fasterxml.jackson.core.type.*; import com.fasterxml.jackson.databind.*; import java.io.*; import java.util.*; import org.springframework.security.core.*; import org.springframework.security.core.userdetails.*; import org.springframework.security.web.authentication.preauth... | [
"com.fasterxml.jackson",
"java.io",
"java.util",
"org.springframework.security"
] | com.fasterxml.jackson; java.io; java.util; org.springframework.security; | 323,640 |
@Test
public void testThrows_FailableShortSupplier_IOException() {
new FailableShortSupplier<IOException>() { | void function() { new FailableShortSupplier<IOException>() { | /**
* Tests that our failable interface is properly defined to throw any exception using String and IOExceptions as
* generic test types.
*/ | Tests that our failable interface is properly defined to throw any exception using String and IOExceptions as generic test types | testThrows_FailableShortSupplier_IOException | {
"repo_name": "britter/commons-lang",
"path": "src/test/java/org/apache/commons/lang3/function/FailableFunctionsTest.java",
"license": "apache-2.0",
"size": 95783
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,990,567 |
public static String prettyPrintMatch(IStrategoTerm match) {
return prettyPrintMatch(match, new StringBuilder()).toString();
} | static String function(IStrategoTerm match) { return prettyPrintMatch(match, new StringBuilder()).toString(); } | /**
* Pretty print the given SPT ATerm pattern.
*
* @param match
* the SPT ATerm pattern to pretty print to a 'normal' ATerm.
* @return the pretty printed result.
*/ | Pretty print the given SPT ATerm pattern | prettyPrintMatch | {
"repo_name": "metaborg/spt",
"path": "org.metaborg.spt.core/src/main/java/org/metaborg/spt/core/SPTUtil.java",
"license": "apache-2.0",
"size": 14478
} | [
"org.spoofax.interpreter.terms.IStrategoTerm"
] | import org.spoofax.interpreter.terms.IStrategoTerm; | import org.spoofax.interpreter.terms.*; | [
"org.spoofax.interpreter"
] | org.spoofax.interpreter; | 2,104,343 |
void setLinearVelocity(Vector3f value); | void setLinearVelocity(Vector3f value); | /**
* Sets the linear velocity
*
* @param value new linear velocity
*/ | Sets the linear velocity | setLinearVelocity | {
"repo_name": "Vizaxo/Terasology",
"path": "engine/src/main/java/org/terasology/physics/engine/RigidBody.java",
"license": "apache-2.0",
"size": 4565
} | [
"org.terasology.math.geom.Vector3f"
] | import org.terasology.math.geom.Vector3f; | import org.terasology.math.geom.*; | [
"org.terasology.math"
] | org.terasology.math; | 1,819,652 |
public void addAudioPlayer(IAudioPlayer ap) {
if (!mAudioPlayer.contains(ap))
mAudioPlayer.add(ap);
} | void function(IAudioPlayer ap) { if (!mAudioPlayer.contains(ap)) mAudioPlayer.add(ap); } | /**
* Add a AudioPlayer
* @param ap
*/ | Add a AudioPlayer | addAudioPlayer | {
"repo_name": "BinChengfei/vlc-android",
"path": "vlc-android/src/org/videolan/vlc/audio/AudioServiceController.java",
"license": "gpl-2.0",
"size": 19210
} | [
"org.videolan.vlc.interfaces.IAudioPlayer"
] | import org.videolan.vlc.interfaces.IAudioPlayer; | import org.videolan.vlc.interfaces.*; | [
"org.videolan.vlc"
] | org.videolan.vlc; | 2,545,534 |
@Override
public Configuration getConf() {
return conf;
} | Configuration function() { return conf; } | /**
* Return the configuration used by this object.
*
* @return the configuration object used by this objec.
*/ | Return the configuration used by this object | getConf | {
"repo_name": "plusplusjiajia/hadoop",
"path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/SnappyCodec.java",
"license": "apache-2.0",
"size": 7609
} | [
"org.apache.hadoop.conf.Configuration"
] | import org.apache.hadoop.conf.Configuration; | import org.apache.hadoop.conf.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 52,376 |
public static String dumpNegotiateHeader(HttpResponse response) throws IOException {
if (response == null)
return null;
final String negotiatePrefix = "Negotiate ";
for (Header header : response.getHeaders("WWW-Authenticate")) {
final String value = header.getValue();... | static String function(HttpResponse response) throws IOException { if (response == null) return null; final String negotiatePrefix = STR; for (Header header : response.getHeaders(STR)) { final String value = header.getValue(); if (value.startsWith(negotiatePrefix)) { byte[] token = Base64.getDecoder().decode(value.subs... | /**
* Dumps ASN.1 object as String from WWW-Authenticate/Negotiate HTTP header.
*
* @param response
*/ | Dumps ASN.1 object as String from WWW-Authenticate/Negotiate HTTP header | dumpNegotiateHeader | {
"repo_name": "tomazzupan/wildfly",
"path": "testsuite/shared/src/main/java/org/jboss/as/test/integration/security/common/negotiation/KerberosTestUtils.java",
"license": "lgpl-2.1",
"size": 7333
} | [
"java.io.IOException",
"java.util.Base64",
"org.apache.http.Header",
"org.apache.http.HttpResponse"
] | import java.io.IOException; import java.util.Base64; import org.apache.http.Header; import org.apache.http.HttpResponse; | import java.io.*; import java.util.*; import org.apache.http.*; | [
"java.io",
"java.util",
"org.apache.http"
] | java.io; java.util; org.apache.http; | 2,381,912 |
public void execute(Input input, Tracker tracker) {
String name = input.ask("Enter user name: ");
String description = input.ask("Enter description: ");
ArrayList<String> comments = new ArrayList<>();
while (true) {
String comm = input.ask("Enter new comment or type 'exit': ");
if ("exit".equa... | void function(Input input, Tracker tracker) { String name = input.ask(STR); String description = input.ask(STR); ArrayList<String> comments = new ArrayList<>(); while (true) { String comm = input.ask(STR); if ("exit".equals(comm)) break; comments.add(comm); } Item item = new Item(name, description, 130L); item.setComme... | /**
* Method execute action.
* @param input - class, which implements Input interface
* @param tracker - tracker
**/ | Method execute action | execute | {
"repo_name": "danailKondov/dkondov",
"path": "chapter_002/src/main/java/ru/job4j/tracker/MenuTracker.java",
"license": "apache-2.0",
"size": 6862
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 218,656 |
private R pushExprList(ExpressionList<T> list) {
if (textMode) {
textStack.push(list);
} else {
whereStack.push(list);
}
return root;
} | R function(ExpressionList<T> list) { if (textMode) { textStack.push(list); } else { whereStack.push(list); } return root; } | /**
* Push the expression list onto the appropriate stack.
*/ | Push the expression list onto the appropriate stack | pushExprList | {
"repo_name": "ebean-orm/avaje-ebeanorm-typequery",
"path": "src/main/java/io/ebean/typequery/TQRootBean.java",
"license": "apache-2.0",
"size": 55852
} | [
"io.ebean.ExpressionList"
] | import io.ebean.ExpressionList; | import io.ebean.*; | [
"io.ebean"
] | io.ebean; | 1,509,950 |
Color getProposalSelectorForeground() {
return fProposalSelectorForeground;
} | Color getProposalSelectorForeground() { return fProposalSelectorForeground; } | /**
* Returns the custom foreground color of the proposal selector.
*
* @return the foreground of the proposal selector or <code>null</code> if not set
* @since 2.0
*/ | Returns the custom foreground color of the proposal selector | getProposalSelectorForeground | {
"repo_name": "brunyuriy/quick-fix-scout",
"path": "org.eclipse.jface.text_3.6.1.r361_v20100825-0800/src/org/eclipse/jface/text/contentassist/ContentAssistant.java",
"license": "mit",
"size": 77038
} | [
"org.eclipse.swt.graphics.Color"
] | import org.eclipse.swt.graphics.Color; | import org.eclipse.swt.graphics.*; | [
"org.eclipse.swt"
] | org.eclipse.swt; | 1,877,734 |
private String combinePages(MultiString[] mess, int p) {
MultiBuilder mb = new MultiBuilder();
for (int i = 0; i < p; i++) {
if (i == 0) {
if (p > 1) {
Integer pt = misc_pnl.getPageOnTime();
if (pt != null)
mb.setPageTimes(pt, null);
}
} else
mb.addPage();
mb.append(mess[i]);... | String function(MultiString[] mess, int p) { MultiBuilder mb = new MultiBuilder(); for (int i = 0; i < p; i++) { if (i == 0) { if (p > 1) { Integer pt = misc_pnl.getPageOnTime(); if (pt != null) mb.setPageTimes(pt, null); } } else mb.addPage(); mb.append(mess[i]); } return mb.toString(); } | /** Build a MULTI string from an array of page strings.
* @param mess Array of page MULTI strings.
* @param p Number of non-blank pages.
* @return Combined MULTI string for all pages. */ | Build a MULTI string from an array of page strings | combinePages | {
"repo_name": "CA-IRIS/mn-iris",
"path": "src/us/mn/state/dot/tms/client/dms/SignMessageComposer.java",
"license": "gpl-2.0",
"size": 10600
} | [
"us.mn.state.dot.tms.utils.MultiBuilder",
"us.mn.state.dot.tms.utils.MultiString"
] | import us.mn.state.dot.tms.utils.MultiBuilder; import us.mn.state.dot.tms.utils.MultiString; | import us.mn.state.dot.tms.utils.*; | [
"us.mn.state"
] | us.mn.state; | 1,126,047 |
@Around("pointcut()")
public Object around(ProceedingJoinPoint joinPoint) throws Throwable {
DurationData measurement = new DurationData();
final Class<?> clazz = joinPoint.getThis().getClass();
measurement.setMetricName("dynamic_labels_example_duration");
measurement.setMetricDescription("Time i... | @Around(STR) Object function(ProceedingJoinPoint joinPoint) throws Throwable { DurationData measurement = new DurationData(); final Class<?> clazz = joinPoint.getThis().getClass(); measurement.setMetricName(STR); measurement.setMetricDescription(STR); measurement.getLabels().put(STR, clazz.getSimpleName()); try { retur... | /**
* This method is invoked by the join point functionality.
*/ | This method is invoked by the join point functionality | around | {
"repo_name": "levigo/jadice-webtoolkit-application-monitoring",
"path": "src/main/java/com/levigo/jadice/webtoolkit/monitoring/extended_examples/DynamicLabelExample.java",
"license": "bsd-3-clause",
"size": 1396
} | [
"com.levigo.jadice.webtoolkit.monitoring.data.DurationData",
"org.aspectj.lang.ProceedingJoinPoint",
"org.aspectj.lang.annotation.Around"
] | import com.levigo.jadice.webtoolkit.monitoring.data.DurationData; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; | import com.levigo.jadice.webtoolkit.monitoring.data.*; import org.aspectj.lang.*; import org.aspectj.lang.annotation.*; | [
"com.levigo.jadice",
"org.aspectj.lang"
] | com.levigo.jadice; org.aspectj.lang; | 1,170,686 |
public byte[] nextRow() {
if (nextRowResult == null) {
// no cached row - check scanner for more
while (results.hasNext()) {
nextRowResult = results.next();
Cell nextCell = nextRowResult.rawCells()[0];
if (currentRow == null
|| !Bytes... | byte[] function() { if (nextRowResult == null) { while (results.hasNext()) { nextRowResult = results.next(); Cell nextCell = nextRowResult.rawCells()[0]; if (currentRow == null !Bytes.equals(currentRow, 0, currentRow.length, nextCell.getRowArray(), nextCell.getRowOffset(), nextCell.getRowLength())) { break; } else { ne... | /**
* Advance to the next row and return its row key.
* Returns null iff there are no more rows.
*/ | Advance to the next row and return its row key. Returns null iff there are no more rows | nextRow | {
"repo_name": "francisliu/hbase",
"path": "hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapreduce/SyncTable.java",
"license": "apache-2.0",
"size": 31677
} | [
"org.apache.hadoop.hbase.Cell",
"org.apache.hadoop.hbase.util.Bytes"
] | import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.util.Bytes; | import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.util.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 2,266,297 |
public static int getConfigValueAsInt(@Nonnull Map<String, Object> config, @Nonnull String key, int defaultValue) {
Object value = getConfigValue(config, key, defaultValue);
return castToInt(value);
} | static int function(@Nonnull Map<String, Object> config, @Nonnull String key, int defaultValue) { Object value = getConfigValue(config, key, defaultValue); return castToInt(value); } | /**
* Returns the value for the specified key with an optional default value if no match is found.
*
* @param config the configuration object to be searched upon
* @param key the key to be searched
* @param defaultValue the value to send back if no match is found
*
* @r... | Returns the value for the specified key with an optional default value if no match is found | getConfigValueAsInt | {
"repo_name": "griffon/griffon",
"path": "subprojects/griffon-core-api/src/main/java/griffon/core/util/ConfigUtils.java",
"license": "apache-2.0",
"size": 23586
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 10,306 |
public static final void clearHostCredentials(String host) {
CredentialsProvider credsProvider = Collect.getInstance()
.getCredentialsProvider();
Log.i(t, "clearHostCredentials: " + host);
List<AuthScope> asList = buildAuthScopes(host);
for (AuthScope a : asList) {
... | static final void function(String host) { CredentialsProvider credsProvider = Collect.getInstance() .getCredentialsProvider(); Log.i(t, STR + host); List<AuthScope> asList = buildAuthScopes(host); for (AuthScope a : asList) { credsProvider.setCredentials(a, null); } } | /**
* Remove all credentials for accessing the specified host.
*/ | Remove all credentials for accessing the specified host | clearHostCredentials | {
"repo_name": "SDRC-India/collect",
"path": "collect_app/src/main/java/org/odk/collect/android/utilities/WebUtils.java",
"license": "apache-2.0",
"size": 18096
} | [
"android.util.Log",
"java.util.List",
"org.odk.collect.android.application.Collect",
"org.opendatakit.httpclientandroidlib.auth.AuthScope",
"org.opendatakit.httpclientandroidlib.client.CredentialsProvider"
] | import android.util.Log; import java.util.List; import org.odk.collect.android.application.Collect; import org.opendatakit.httpclientandroidlib.auth.AuthScope; import org.opendatakit.httpclientandroidlib.client.CredentialsProvider; | import android.util.*; import java.util.*; import org.odk.collect.android.application.*; import org.opendatakit.httpclientandroidlib.auth.*; import org.opendatakit.httpclientandroidlib.client.*; | [
"android.util",
"java.util",
"org.odk.collect",
"org.opendatakit.httpclientandroidlib"
] | android.util; java.util; org.odk.collect; org.opendatakit.httpclientandroidlib; | 2,170,158 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.