method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public void setFooterView(@LayoutRes int footerViewId) {
mFooterViewId = footerViewId;
handleFooter();
} | void function(@LayoutRes int footerViewId) { mFooterViewId = footerViewId; handleFooter(); } | /**
* Sets the footer view.
*
* @param footerViewId View that becomes the footer.
*/ | Sets the footer view | setFooterView | {
"repo_name": "PSD-Company/duo-navigation-drawer",
"path": "duo-navigation-drawer/src/main/java/nl/psdcompany/duonavigationdrawer/views/DuoMenuView.java",
"license": "apache-2.0",
"size": 11793
} | [
"androidx.annotation.LayoutRes"
] | import androidx.annotation.LayoutRes; | import androidx.annotation.*; | [
"androidx.annotation"
] | androidx.annotation; | 800,772 |
public static MozuUrl resetPasswordUrl()
{
UrlFormatter formatter = new UrlFormatter("/api/commerce/customer/accounts/Reset-Password");
return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
} | static MozuUrl function() { UrlFormatter formatter = new UrlFormatter(STR); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; } | /**
* Get Resource Url for ResetPassword
* @return String Resource Url
*/ | Get Resource Url for ResetPassword | resetPasswordUrl | {
"repo_name": "lakshmi-nair/mozu-java",
"path": "mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/customer/CustomerAccountUrl.java",
"license": "mit",
"size": 13535
} | [
"com.mozu.api.MozuUrl",
"com.mozu.api.utils.UrlFormatter"
] | import com.mozu.api.MozuUrl; import com.mozu.api.utils.UrlFormatter; | import com.mozu.api.*; import com.mozu.api.utils.*; | [
"com.mozu.api"
] | com.mozu.api; | 2,667,112 |
public static DMNRuntimeBuilderConfigured usingStrict() {
DMNRuntimeBuilder dmnRuntimeBuilder = new DMNRuntimeBuilder();
dmnRuntimeBuilder.setRootClassLoader(null);
dmnRuntimeBuilder.setOption(new RuntimeTypeCheckOption(true));
return dmnRuntimeBuilder.buildConfiguration();
} | static DMNRuntimeBuilderConfigured function() { DMNRuntimeBuilder dmnRuntimeBuilder = new DMNRuntimeBuilder(); dmnRuntimeBuilder.setRootClassLoader(null); dmnRuntimeBuilder.setOption(new RuntimeTypeCheckOption(true)); return dmnRuntimeBuilder.buildConfiguration(); } | /**
* Internal Utility class.
*/ | Internal Utility class | usingStrict | {
"repo_name": "mariofusco/drools",
"path": "kie-dmn/kie-dmn-core/src/main/java/org/kie/dmn/core/internal/utils/DMNRuntimeBuilder.java",
"license": "apache-2.0",
"size": 7943
} | [
"org.kie.dmn.core.compiler.RuntimeTypeCheckOption"
] | import org.kie.dmn.core.compiler.RuntimeTypeCheckOption; | import org.kie.dmn.core.compiler.*; | [
"org.kie.dmn"
] | org.kie.dmn; | 1,096,564 |
private static boolean shouldRemoveFinalVariableCandidate(ScopeData scopeData, DetailAST ast) {
boolean shouldRemove = true;
for (DetailAST variable : scopeData.uninitializedVariables) {
if (variable.getText().equals(ast.getText())) {
// if the variable is declared outsid... | static boolean function(ScopeData scopeData, DetailAST ast) { boolean shouldRemove = true; for (DetailAST variable : scopeData.uninitializedVariables) { if (variable.getText().equals(ast.getText())) { if (isInTheSameLoop(variable, ast) !isUseOfExternalVariableInsideLoop(ast)) { final FinalVariableCandidate candidate = ... | /**
* Whether the final variable candidate should be removed from the list of final local variable
* candidates.
* @param scopeData the scope data of the variable.
* @param ast the variable ast.
* @return true, if the variable should be removed.
*/ | Whether the final variable candidate should be removed from the list of final local variable candidates | shouldRemoveFinalVariableCandidate | {
"repo_name": "AkshitaKukreja30/checkstyle",
"path": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/FinalLocalVariableCheck.java",
"license": "lgpl-2.1",
"size": 27259
} | [
"com.puppycrawl.tools.checkstyle.api.DetailAST"
] | import com.puppycrawl.tools.checkstyle.api.DetailAST; | import com.puppycrawl.tools.checkstyle.api.*; | [
"com.puppycrawl.tools"
] | com.puppycrawl.tools; | 463,839 |
public TypeDescription getOutputType() {
return outputType;
} | TypeDescription function() { return outputType; } | /**
* Returns the output type.
* @return the output type
*/ | Returns the output type | getOutputType | {
"repo_name": "asakusafw/asakusafw-compiler",
"path": "dag/compiler/codegen/src/main/java/com/asakusafw/dag/compiler/codegen/OperatorNodeGenerator.java",
"license": "apache-2.0",
"size": 11304
} | [
"com.asakusafw.lang.compiler.model.description.TypeDescription"
] | import com.asakusafw.lang.compiler.model.description.TypeDescription; | import com.asakusafw.lang.compiler.model.description.*; | [
"com.asakusafw.lang"
] | com.asakusafw.lang; | 72,503 |
File getDatabase(Context context, String id); | File getDatabase(Context context, String id); | /**
* Return the {@link File} to the choosen email database file. The
* resulting {@link File} doesn't necessarily match an existing file on
* the filesystem.
*
* @param context
* Never <code>null</code>.
* @param id
* Never <... | Return the <code>File</code> to the choosen email database file. The resulting <code>File</code> doesn't necessarily match an existing file on the filesystem | getDatabase | {
"repo_name": "1037704496/ZywxEmail",
"path": "src/com/fsck/zywxMailk9/mail/store/StorageManager.java",
"license": "bsd-3-clause",
"size": 24249
} | [
"android.content.Context",
"java.io.File"
] | import android.content.Context; import java.io.File; | import android.content.*; import java.io.*; | [
"android.content",
"java.io"
] | android.content; java.io; | 2,478,821 |
public void testSerialization2() {
MeterPlot p1 = new MeterPlot(new DefaultValueDataset(1.23));
MeterPlot p2 = null;
try {
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(p1);
... | void function() { MeterPlot p1 = new MeterPlot(new DefaultValueDataset(1.23)); MeterPlot p2 = null; try { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); ObjectOutput out = new ObjectOutputStream(buffer); out.writeObject(p1); out.close(); ObjectInput in = new ObjectInputStream( new ByteArrayInputStream(buff... | /**
* Serialize an instance, restore it, and check for equality.
*/ | Serialize an instance, restore it, and check for equality | testSerialization2 | {
"repo_name": "nologic/nabs",
"path": "client/trunk/shared/libraries/jfreechart-1.0.5/tests/org/jfree/chart/plot/junit/MeterPlotTests.java",
"license": "gpl-2.0",
"size": 10416
} | [
"java.io.ByteArrayInputStream",
"java.io.ByteArrayOutputStream",
"java.io.ObjectInput",
"java.io.ObjectInputStream",
"java.io.ObjectOutput",
"java.io.ObjectOutputStream",
"org.jfree.chart.plot.MeterPlot",
"org.jfree.data.general.DefaultValueDataset"
] | import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.ObjectInput; import java.io.ObjectInputStream; import java.io.ObjectOutput; import java.io.ObjectOutputStream; import org.jfree.chart.plot.MeterPlot; import org.jfree.data.general.DefaultValueDataset; | import java.io.*; import org.jfree.chart.plot.*; import org.jfree.data.general.*; | [
"java.io",
"org.jfree.chart",
"org.jfree.data"
] | java.io; org.jfree.chart; org.jfree.data; | 1,441,798 |
private Map<String, String> getInfoMap() {
Map<String, String> infos = new LinkedHashMap<String, String>();
int corruptedSites = getCorruptedSites().size();
infos.put(
CmsVaadinUtils.getMessageText(Messages.GUI_SITE_STATISTICS_NUM_WEBSITES_0),
String.valueOf(getAllEl... | Map<String, String> function() { Map<String, String> infos = new LinkedHashMap<String, String>(); int corruptedSites = getCorruptedSites().size(); infos.put( CmsVaadinUtils.getMessageText(Messages.GUI_SITE_STATISTICS_NUM_WEBSITES_0), String.valueOf(getAllElements().size() + corruptedSites)); if (corruptedSites > 0) { i... | /**
* Get info map.<p>
*
* @return map of sites info
*/ | Get info map | getInfoMap | {
"repo_name": "alkacon/opencms-core",
"path": "src/org/opencms/ui/apps/sitemanager/CmsSiteManager.java",
"license": "lgpl-2.1",
"size": 17611
} | [
"java.util.LinkedHashMap",
"java.util.Map",
"org.opencms.ui.CmsVaadinUtils",
"org.opencms.ui.apps.Messages"
] | import java.util.LinkedHashMap; import java.util.Map; import org.opencms.ui.CmsVaadinUtils; import org.opencms.ui.apps.Messages; | import java.util.*; import org.opencms.ui.*; import org.opencms.ui.apps.*; | [
"java.util",
"org.opencms.ui"
] | java.util; org.opencms.ui; | 403,235 |
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<Void>, Void> beginPowerOff(
String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown); | @ServiceMethod(returns = ReturnType.SINGLE) SyncPoller<PollResult<Void>, Void> beginPowerOff( String resourceGroupName, String vmScaleSetName, String instanceId, Boolean skipShutdown); | /**
* Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting
* charged for the resources. Instead, use deallocate to release resources and avoid charges.
*
* @param resourceGroupName The name of the resource group.
* @param vmScaleSetNam... | Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges | beginPowerOff | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/VirtualMachineScaleSetVMsClient.java",
"license": "mit",
"size": 89951
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.management.polling.PollResult",
"com.azure.core.util.polling.SyncPoller"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.polling.SyncPoller; | import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.polling.*; | [
"com.azure.core"
] | com.azure.core; | 1,740,631 |
public Shape getClip() {
return g.getClip();
} | Shape function() { return g.getClip(); } | /**
* Gets the current clipping area.
* This method returns the user clip, which is independent of the
* clipping associated with device bounds and window visibility.
* If no clip has previously been set, or if the clip has been
* cleared using <code>setClip(null)</code>, this method returns
... | Gets the current clipping area. This method returns the user clip, which is independent of the clipping associated with device bounds and window visibility. If no clip has previously been set, or if the clip has been cleared using <code>setClip(null)</code>, this method returns <code>null</code> | getClip | {
"repo_name": "TheTypoMaster/Scaper",
"path": "openjdk/jdk/src/share/classes/sun/print/ProxyGraphics.java",
"license": "gpl-2.0",
"size": 53194
} | [
"java.awt.Shape"
] | import java.awt.Shape; | import java.awt.*; | [
"java.awt"
] | java.awt; | 2,871,569 |
public static PrivateKey getPrivateAddressKey(){
return privateAddressKey;
}
| static PrivateKey function(){ return privateAddressKey; } | /**
* Returns the private address-key for this specific Host.
* The private address-key is used to authenticate in the DCL network
* @return
* Returns the private address-key for this specific Host.
*/ | Returns the private address-key for this specific Host. The private address-key is used to authenticate in the DCL network | getPrivateAddressKey | {
"repo_name": "martinexner/dcl",
"path": "dcl/src/org/sblit/configuration/Configuration.java",
"license": "gpl-3.0",
"size": 3931
} | [
"java.security.PrivateKey"
] | import java.security.PrivateKey; | import java.security.*; | [
"java.security"
] | java.security; | 509,090 |
List<StreamMessage<K, V>> xrange(K key, Range<String> range, Limit limit); | List<StreamMessage<K, V>> xrange(K key, Range<String> range, Limit limit); | /**
* Read messages from a stream within a specific {@link Range} applying a {@link Limit}.
*
* @param key the stream key.
* @param range must not be {@code null}.
* @param limit must not be {@code null}.
* @return List<StreamMessage> array-reply list with members of the resulting st... | Read messages from a stream within a specific <code>Range</code> applying a <code>Limit</code> | xrange | {
"repo_name": "mp911de/lettuce",
"path": "src/main/templates/io/lettuce/core/api/RedisStreamCommands.java",
"license": "apache-2.0",
"size": 11437
} | [
"io.lettuce.core.Limit",
"io.lettuce.core.Range",
"io.lettuce.core.StreamMessage",
"java.util.List"
] | import io.lettuce.core.Limit; import io.lettuce.core.Range; import io.lettuce.core.StreamMessage; import java.util.List; | import io.lettuce.core.*; import java.util.*; | [
"io.lettuce.core",
"java.util"
] | io.lettuce.core; java.util; | 313,804 |
private ArrayList<Batch> markReady(ArrayList<Batch> batches, Batch batch) {
if (!batch.ready()) {
batch.ready(true);
if (batches == null)
batches = new ArrayList<>();
batches.add(batch);
}
return batches;
} | ArrayList<Batch> function(ArrayList<Batch> batches, Batch batch) { if (!batch.ready()) { batch.ready(true); if (batches == null) batches = new ArrayList<>(); batches.add(batch); } return batches; } | /**
* Add batch to batch collection if it is ready.
*
* @param batches Collection of batches.
* @param batch Batch to be added.
*/ | Add batch to batch collection if it is ready | markReady | {
"repo_name": "NSAmelchev/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/near/GridNearTxEnlistFuture.java",
"license": "apache-2.0",
"size": 22289
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 1,173,574 |
public void endFakeDrag() {
if (!mFakeDragging) {
throw new IllegalStateException("No fake drag in progress. Call beginFakeDrag first.");
}
if (mAdapter != null) {
final VelocityTracker velocityTracker = mVelocityTracker;
velocityTracker.computeCurrentVel... | void function() { if (!mFakeDragging) { throw new IllegalStateException(STR); } if (mAdapter != null) { final VelocityTracker velocityTracker = mVelocityTracker; velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); int initialVelocity = (int) VelocityTrackerCompat.getXVelocity( velocityTracker, mActivePointe... | /**
* End a fake drag of the pager.
*
* @see #beginFakeDrag()
* @see #fakeDragBy(float)
*/ | End a fake drag of the pager | endFakeDrag | {
"repo_name": "kazi-mifta/Campus-App",
"path": "material-intro-screen/src/main/java/android/support/v4/view/CustomViewPager.java",
"license": "mit",
"size": 123780
} | [
"android.view.VelocityTracker"
] | import android.view.VelocityTracker; | import android.view.*; | [
"android.view"
] | android.view; | 606,888 |
ZonedDateTime getLastDeploymentDate(String site, String path); | ZonedDateTime getLastDeploymentDate(String site, String path); | /**
* Get last deployment date time for given site and path
*
* @param site site id
* @param path path
* @return last deployment date or null if never deployed
*/ | Get last deployment date time for given site and path | getLastDeploymentDate | {
"repo_name": "jdrossl/studio2",
"path": "src/main/java/org/craftercms/studio/api/v1/service/deployment/DeploymentHistoryProvider.java",
"license": "gpl-3.0",
"size": 1969
} | [
"java.time.ZonedDateTime"
] | import java.time.ZonedDateTime; | import java.time.*; | [
"java.time"
] | java.time; | 1,916,139 |
public ResequenceDefinition batch(BatchResequencerConfig config) {
this.batchConfig = config;
this.streamConfig = null;
return this;
} | ResequenceDefinition function(BatchResequencerConfig config) { this.batchConfig = config; this.streamConfig = null; return this; } | /**
* Configures the batch-based resequencing algorithm using the given
* {@link BatchResequencerConfig}.
*
* @param config the config
* @return the builder
*/ | Configures the batch-based resequencing algorithm using the given <code>BatchResequencerConfig</code> | batch | {
"repo_name": "dpocock/camel",
"path": "camel-core/src/main/java/org/apache/camel/model/ResequenceDefinition.java",
"license": "apache-2.0",
"size": 14569
} | [
"org.apache.camel.model.config.BatchResequencerConfig"
] | import org.apache.camel.model.config.BatchResequencerConfig; | import org.apache.camel.model.config.*; | [
"org.apache.camel"
] | org.apache.camel; | 548,247 |
public Status getStatus() {
return status;
} | Status function() { return status; } | /**
* Returns the status of the execution.
*
* @return the status
*/ | Returns the status of the execution | getStatus | {
"repo_name": "SSEHUB/EASyProducer",
"path": "Plugins/Instantiation/de.uni_hildesheim.sse.easy.instantiatorCore/src/net/ssehub/easy/instantiation/core/model/buildlangModel/matchLoop/BuildExecutionApplicator.java",
"license": "apache-2.0",
"size": 2084
} | [
"net.ssehub.easy.instantiation.core.model.buildlangModel.RuleExecutionResult"
] | import net.ssehub.easy.instantiation.core.model.buildlangModel.RuleExecutionResult; | import net.ssehub.easy.instantiation.core.model.*; | [
"net.ssehub.easy"
] | net.ssehub.easy; | 1,205,350 |
@Override
public void writeToParcel(Parcel dest, int flags) {
// mBaseUri is not parceled
dest.writeLong(mId);
dest.writeInt(mPasswordMode);
dest.writeInt(mPasswordMinLength);
dest.writeInt(mPasswordMaxFails);
dest.writeInt(mPasswordHistory);
dest.writeInt... | void function(Parcel dest, int flags) { dest.writeLong(mId); dest.writeInt(mPasswordMode); dest.writeInt(mPasswordMinLength); dest.writeInt(mPasswordMaxFails); dest.writeInt(mPasswordHistory); dest.writeInt(mPasswordExpirationDays); dest.writeInt(mPasswordComplexChars); dest.writeInt(mMaxScreenLockTime); dest.writeInt(... | /**
* Supports Parcelable
*/ | Supports Parcelable | writeToParcel | {
"repo_name": "s20121035/rk3288_android5.1_repo",
"path": "packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/Policy.java",
"license": "gpl-3.0",
"size": 24075
} | [
"android.os.Parcel"
] | import android.os.Parcel; | import android.os.*; | [
"android.os"
] | android.os; | 2,055,924 |
@Override
public void notifyParseResult(ModuleNode moduleNode) {
if (showAST) {
System.err.println("***Abstract Syntax Tree: ");
System.err.println(new XStream(new DomDriver()).toXML(moduleNode));
}
} | void function(ModuleNode moduleNode) { if (showAST) { System.err.println(STR); System.err.println(new XStream(new DomDriver()).toXML(moduleNode)); } } | /**
* Outputs the abstract syntax tree obtained from parsing by serializing the DomDriver object to a pretty-printed XML
* String.
*
* @param moduleNode
*/ | Outputs the abstract syntax tree obtained from parsing by serializing the DomDriver object to a pretty-printed XML String | notifyParseResult | {
"repo_name": "prestoncarman/vxquery",
"path": "vxquery-core/src/main/java/org/apache/vxquery/xmlquery/query/VXQueryCompilationListener.java",
"license": "apache-2.0",
"size": 4733
} | [
"com.thoughtworks.xstream.XStream",
"com.thoughtworks.xstream.io.xml.DomDriver",
"org.apache.vxquery.xmlquery.ast.ModuleNode"
] | import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.xml.DomDriver; import org.apache.vxquery.xmlquery.ast.ModuleNode; | import com.thoughtworks.xstream.*; import com.thoughtworks.xstream.io.xml.*; import org.apache.vxquery.xmlquery.ast.*; | [
"com.thoughtworks.xstream",
"org.apache.vxquery"
] | com.thoughtworks.xstream; org.apache.vxquery; | 580,024 |
private void unsubscribe(final String[] tags, final CallbackContext callbackContext) {
pushLogger.debug("In unsubscribe"); | void function(final String[] tags, final CallbackContext callbackContext) { pushLogger.debug(STR); | /**
* Unsubscribes to the given tag(s)
* @param tags
* @param callbackContext Javascript callback
*/ | Unsubscribes to the given tag(s) | unsubscribe | {
"repo_name": "echoguan/StudentHD",
"path": "plugins/cordova-plugin-mfp-push/src/android/CDVMFPPush.java",
"license": "apache-2.0",
"size": 14015
} | [
"org.apache.cordova.CallbackContext"
] | import org.apache.cordova.CallbackContext; | import org.apache.cordova.*; | [
"org.apache.cordova"
] | org.apache.cordova; | 616,376 |
public static void writeFloat(float num, DataOutput out) throws IOException {
writeInt(Float.floatToIntBits(num), out);
} | static void function(float num, DataOutput out) throws IOException { writeInt(Float.floatToIntBits(num), out); } | /**
* Writes a float to an output stream
* @param num the float to be written
* @param out the output stream
*/ | Writes a float to an output stream | writeFloat | {
"repo_name": "dimbleby/JGroups",
"path": "src/org/jgroups/util/Bits.java",
"license": "apache-2.0",
"size": 26132
} | [
"java.io.DataOutput",
"java.io.IOException"
] | import java.io.DataOutput; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,013,910 |
@Override
public void logEntryReceived(ILogEntry logEntry) {
numOfReceivedLogs++;
if (audience instanceof OperatorAudience) {
if (logEntry.getType().ordinal()>=LogTypeHelper.WARNING.ordinal()) {
return;
}
String logStrAudience = (String)logEntry.getField(LogField.AUDIENCE);
String logAudienc... | void function(ILogEntry logEntry) { numOfReceivedLogs++; if (audience instanceof OperatorAudience) { if (logEntry.getType().ordinal()>=LogTypeHelper.WARNING.ordinal()) { return; } String logStrAudience = (String)logEntry.getField(LogField.AUDIENCE); String logAudience=alma.log_audience.OPERATOR.value; if (!logStrAudien... | /**
*
* The counter <code>numOfReceivedLogs</code> is incremented for each received log.
* The method write a message in the stdout if the received log does not match
* with the <code>audience</code>
*
* @see com.cosylab.logging.engine.ACS.ACSRemoteLogListener#logEntryReceived(com.cosylab.logging.engine.... | The counter <code>numOfReceivedLogs</code> is incremented for each received log. The method write a message in the stdout if the received log does not match with the <code>audience</code> | logEntryReceived | {
"repo_name": "ACS-Community/ACS",
"path": "LGPL/CommonSoftware/jlogEngine/test/alma/acs/jlog/test/EngineAudienceTest.java",
"license": "lgpl-2.1",
"size": 11322
} | [
"com.cosylab.logging.engine.audience.OperatorAudience",
"com.cosylab.logging.engine.log.ILogEntry",
"com.cosylab.logging.engine.log.LogField",
"com.cosylab.logging.engine.log.LogTypeHelper"
] | import com.cosylab.logging.engine.audience.OperatorAudience; import com.cosylab.logging.engine.log.ILogEntry; import com.cosylab.logging.engine.log.LogField; import com.cosylab.logging.engine.log.LogTypeHelper; | import com.cosylab.logging.engine.audience.*; import com.cosylab.logging.engine.log.*; | [
"com.cosylab.logging"
] | com.cosylab.logging; | 1,373,562 |
public void registerRecevier() {
IntentFilter regularFilter = new IntentFilter(AstridApiConstants.BROADCAST_SEND_FILTERS);
regularFilter.setPriority(2);
activity.registerReceiver(filterReceiver, regularFilter);
activity.registerReceiver(filterListUpdateReceiver, new IntentFilter(Astr... | void function() { IntentFilter regularFilter = new IntentFilter(AstridApiConstants.BROADCAST_SEND_FILTERS); regularFilter.setPriority(2); activity.registerReceiver(filterReceiver, regularFilter); activity.registerReceiver(filterListUpdateReceiver, new IntentFilter(AstridApiConstants.BROADCAST_EVENT_FILTER_LIST_UPDATED)... | /**
* Call this method from your activity's onResume() method
*/ | Call this method from your activity's onResume() method | registerRecevier | {
"repo_name": "cinash/tasks",
"path": "astrid/src/main/java/com/todoroo/astrid/adapter/FilterAdapter.java",
"license": "gpl-3.0",
"size": 13845
} | [
"android.content.IntentFilter",
"com.todoroo.astrid.api.AstridApiConstants"
] | import android.content.IntentFilter; import com.todoroo.astrid.api.AstridApiConstants; | import android.content.*; import com.todoroo.astrid.api.*; | [
"android.content",
"com.todoroo.astrid"
] | android.content; com.todoroo.astrid; | 2,838,370 |
public HandlerRegistration addHeaderKeyUpHandler(HeaderKeyUpHandler handler) {
return addHandler(handler, keyUp.getAssociatedType());
} | HandlerRegistration function(HeaderKeyUpHandler handler) { return addHandler(handler, keyUp.getAssociatedType()); } | /**
* Register a HeaderKeyUpHandler to this Grid. The event for this handler is
* fired when a KeyUp event occurs while cell focus is in the Header of this
* Grid.
*
* @param handler
* the key handler to register
* @return the registration for the event
*/ | Register a HeaderKeyUpHandler to this Grid. The event for this handler is fired when a KeyUp event occurs while cell focus is in the Header of this Grid | addHeaderKeyUpHandler | {
"repo_name": "Peppe/vaadin",
"path": "client/src/com/vaadin/client/widgets/Grid.java",
"license": "apache-2.0",
"size": 306271
} | [
"com.google.gwt.event.shared.HandlerRegistration",
"com.vaadin.client.widget.grid.events.HeaderKeyUpHandler"
] | import com.google.gwt.event.shared.HandlerRegistration; import com.vaadin.client.widget.grid.events.HeaderKeyUpHandler; | import com.google.gwt.event.shared.*; import com.vaadin.client.widget.grid.events.*; | [
"com.google.gwt",
"com.vaadin.client"
] | com.google.gwt; com.vaadin.client; | 1,832,320 |
public static void writeChartAsPNG(OutputStream out, JFreeChart chart,
int width, int height, ChartRenderingInfo info,
boolean encodeAlpha, int compression) throws IOException {
if (out == null) {
throw new IllegalArgumentException("Null 'out' argument.");
... | static void function(OutputStream out, JFreeChart chart, int width, int height, ChartRenderingInfo info, boolean encodeAlpha, int compression) throws IOException { if (out == null) { throw new IllegalArgumentException(STR); } if (chart == null) { throw new IllegalArgumentException(STR); } BufferedImage chartImage = cha... | /**
* Writes a chart to an output stream in PNG format. This method allows
* you to pass in a {@link ChartRenderingInfo} object, to collect
* information about the chart dimensions/entities. You will need this
* info if you want to create an HTML image map.
*
* @param out the outp... | Writes a chart to an output stream in PNG format. This method allows you to pass in a <code>ChartRenderingInfo</code> object, to collect information about the chart dimensions/entities. You will need this info if you want to create an HTML image map | writeChartAsPNG | {
"repo_name": "linuxuser586/jfreechart",
"path": "source/org/jfree/chart/ChartUtilities.java",
"license": "lgpl-2.1",
"size": 30510
} | [
"java.awt.image.BufferedImage",
"java.io.IOException",
"java.io.OutputStream"
] | import java.awt.image.BufferedImage; import java.io.IOException; import java.io.OutputStream; | import java.awt.image.*; import java.io.*; | [
"java.awt",
"java.io"
] | java.awt; java.io; | 548,838 |
@Test
public void testPublicCloneable() {
StandardXYSeriesLabelGenerator g1
= new StandardXYSeriesLabelGenerator("Series {0}");
assertTrue(g1 instanceof PublicCloneable);
} | void function() { StandardXYSeriesLabelGenerator g1 = new StandardXYSeriesLabelGenerator(STR); assertTrue(g1 instanceof PublicCloneable); } | /**
* Check to ensure that this class implements PublicCloneable.
*/ | Check to ensure that this class implements PublicCloneable | testPublicCloneable | {
"repo_name": "akardapolov/ASH-Viewer",
"path": "jfreechart-fse/src/test/java/org/jfree/chart/labels/StandardXYSeriesLabelGeneratorTest.java",
"license": "gpl-3.0",
"size": 5346
} | [
"org.jfree.chart.util.PublicCloneable",
"org.junit.Assert"
] | import org.jfree.chart.util.PublicCloneable; import org.junit.Assert; | import org.jfree.chart.util.*; import org.junit.*; | [
"org.jfree.chart",
"org.junit"
] | org.jfree.chart; org.junit; | 1,670,728 |
public static AuthnRequest getAuthnRequest(final OpenSamlConfigBean openSamlConfigBean,
final SamlRegisteredService samlRegisteredService) {
var builder = (SAMLObjectBuilder) openSamlConfigBean.getBuilderFactory()
.getBuilder(AuthnRequest.DEFAULT_EL... | static AuthnRequest function(final OpenSamlConfigBean openSamlConfigBean, final SamlRegisteredService samlRegisteredService) { var builder = (SAMLObjectBuilder) openSamlConfigBean.getBuilderFactory() .getBuilder(AuthnRequest.DEFAULT_ELEMENT_NAME); var authnRequest = (AuthnRequest) Objects.requireNonNull(builder).buildO... | /**
* Gets authn request.
*
* @param openSamlConfigBean the open saml config bean
* @param samlRegisteredService the saml registered service
* @return the authn request
*/ | Gets authn request | getAuthnRequest | {
"repo_name": "apereo/cas",
"path": "support/cas-server-support-saml-idp/src/test/java/org/apereo/cas/support/saml/SamlIdPTestUtils.java",
"license": "apache-2.0",
"size": 2877
} | [
"java.util.Objects",
"org.apereo.cas.support.saml.services.SamlRegisteredService",
"org.opensaml.saml.common.SAMLObjectBuilder",
"org.opensaml.saml.saml2.core.AuthnRequest",
"org.opensaml.saml.saml2.core.Issuer"
] | import java.util.Objects; import org.apereo.cas.support.saml.services.SamlRegisteredService; import org.opensaml.saml.common.SAMLObjectBuilder; import org.opensaml.saml.saml2.core.AuthnRequest; import org.opensaml.saml.saml2.core.Issuer; | import java.util.*; import org.apereo.cas.support.saml.services.*; import org.opensaml.saml.common.*; import org.opensaml.saml.saml2.core.*; | [
"java.util",
"org.apereo.cas",
"org.opensaml.saml"
] | java.util; org.apereo.cas; org.opensaml.saml; | 977,881 |
@Test
public void testResetDefaultByOwnerNoRndSettingsTarget()
throws Exception
{
EventContext ctx = newUserAndGroup("rwra--");
Image image = createBinaryImage();
Pixels pixels = image.getPrimaryPixels();
IRenderingSettingsPrx prx = factory.getRenderingSettingsService();
prx.... | void function() throws Exception { EventContext ctx = newUserAndGroup(STR); Image image = createBinaryImage(); Pixels pixels = image.getPrimaryPixels(); IRenderingSettingsPrx prx = factory.getRenderingSettingsService(); prx.setOriginalSettingsInSet(Image.class.getName(), Arrays.asList(image.getId().getValue())); discon... | /**
* Tests to apply the rendering settings to a collection of images.
* Tests the <code>ApplySettingsToSet</code> method.
* @throws Exception Thrown if an error occurred.
*/ | Tests to apply the rendering settings to a collection of images. Tests the <code>ApplySettingsToSet</code> method | testResetDefaultByOwnerNoRndSettingsTarget | {
"repo_name": "chris-allan/openmicroscopy",
"path": "components/tools/OmeroJava/test/integration/RenderingSettingsServiceTest.java",
"license": "gpl-2.0",
"size": 48923
} | [
"java.util.Arrays",
"java.util.List"
] | import java.util.Arrays; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,719,746 |
public SDVariable logNormal(String name, double mean, double stddev, DataType datatype,
long... shape) {
Preconditions.checkArgument(shape.length >= 0, "shape has incorrect size/length. Expected: shape.length >= 0, got %s", shape.length);
SDVariable out = new org.nd4j.linalg.api.ops.random.impl.LogNorm... | SDVariable function(String name, double mean, double stddev, DataType datatype, long... shape) { Preconditions.checkArgument(shape.length >= 0, STR, shape.length); SDVariable out = new org.nd4j.linalg.api.ops.random.impl.LogNormalDistribution(sd,mean, stddev, datatype, shape).outputVariable(); return sd.updateVariableN... | /**
* Generate a new random INDArray, where values are randomly sampled according to a Log Normal distribution,<br>
* i.e., {@code log(x) ~ N(mean, stdev)}<br>
*
* @param name name May be null. Name for the output variable
* @param mean Mean value for the random array
* @param stddev Standard deviatio... | Generate a new random INDArray, where values are randomly sampled according to a Log Normal distribution, i.e., log(x) ~ N(mean, stdev) | logNormal | {
"repo_name": "deeplearning4j/deeplearning4j",
"path": "nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/ops/SDRandom.java",
"license": "apache-2.0",
"size": 15396
} | [
"java.lang.String",
"org.nd4j.autodiff.samediff.SDVariable",
"org.nd4j.common.base.Preconditions",
"org.nd4j.linalg.api.buffer.DataType"
] | import java.lang.String; import org.nd4j.autodiff.samediff.SDVariable; import org.nd4j.common.base.Preconditions; import org.nd4j.linalg.api.buffer.DataType; | import java.lang.*; import org.nd4j.autodiff.samediff.*; import org.nd4j.common.base.*; import org.nd4j.linalg.api.buffer.*; | [
"java.lang",
"org.nd4j.autodiff",
"org.nd4j.common",
"org.nd4j.linalg"
] | java.lang; org.nd4j.autodiff; org.nd4j.common; org.nd4j.linalg; | 1,460,935 |
@Override public void enterIfRule(@NotNull PJParser.IfRuleContext ctx) { } | @Override public void enterIfRule(@NotNull PJParser.IfRuleContext ctx) { } | /**
* {@inheritDoc}
*
* <p>The default implementation does nothing.</p>
*/ | The default implementation does nothing | exitPrimitiveType | {
"repo_name": "Diolor/PJ",
"path": "src/main/java/com/lorentzos/pj/PJBaseListener.java",
"license": "mit",
"size": 73292
} | [
"org.antlr.v4.runtime.misc.NotNull"
] | import org.antlr.v4.runtime.misc.NotNull; | import org.antlr.v4.runtime.misc.*; | [
"org.antlr.v4"
] | org.antlr.v4; | 782,568 |
protected void addValueLiteralPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_RuleResult_valueLiteral_feature"),
getString("_UI_PropertyDesc... | void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), EsbPackage.Literals.RULE_RESULT__VALUE_LITERAL, true, false, false, ItemPropertyDescriptor.GENERI... | /**
* This adds a property descriptor for the Value Literal feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This adds a property descriptor for the Value Literal feature. | addValueLiteralPropertyDescriptor | {
"repo_name": "nwnpallewela/devstudio-tooling-esb",
"path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/RuleResultItemProvider.java",
"license": "apache-2.0",
"size": 9666
} | [
"org.eclipse.emf.edit.provider.ComposeableAdapterFactory",
"org.eclipse.emf.edit.provider.ItemPropertyDescriptor",
"org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage"
] | import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage; | import org.eclipse.emf.edit.provider.*; import org.wso2.developerstudio.eclipse.gmf.esb.*; | [
"org.eclipse.emf",
"org.wso2.developerstudio"
] | org.eclipse.emf; org.wso2.developerstudio; | 1,996,142 |
public ScriptNode getRenditionByName(ScriptNode node, String renditionName)
{
QName qname = createQName(renditionName);
ChildAssociationRef result = this.renditionService.getRenditionByName(node.getNodeRef(), qname);
return result == null ? null : new ScriptNode(result.getC... | ScriptNode function(ScriptNode node, String renditionName) { QName qname = createQName(renditionName); ChildAssociationRef result = this.renditionService.getRenditionByName(node.getNodeRef(), qname); return result == null ? null : new ScriptNode(result.getChildRef(), serviceRegistry); } | /**
* This method gets the rendition of the specified node identified by
* the provided rendition name.
*
* @param node the source node for the renditions
* @param renditionName the renditionName used to identify a rendition. e.g. cm:doclib or
* "{http://www... | This method gets the rendition of the specified node identified by the provided rendition name | getRenditionByName | {
"repo_name": "Alfresco/community-edition",
"path": "projects/repository/source/java/org/alfresco/repo/rendition/script/ScriptRenditionService.java",
"license": "lgpl-3.0",
"size": 10912
} | [
"org.alfresco.repo.jscript.ScriptNode",
"org.alfresco.service.cmr.repository.ChildAssociationRef",
"org.alfresco.service.namespace.QName"
] | import org.alfresco.repo.jscript.ScriptNode; import org.alfresco.service.cmr.repository.ChildAssociationRef; import org.alfresco.service.namespace.QName; | import org.alfresco.repo.jscript.*; import org.alfresco.service.cmr.repository.*; import org.alfresco.service.namespace.*; | [
"org.alfresco.repo",
"org.alfresco.service"
] | org.alfresco.repo; org.alfresco.service; | 1,307,846 |
public Observable<ServiceResponse<Page<Product>>> getMultiplePagesNextSinglePageAsync(final String nextPageLink) {
if (nextPageLink == null) {
throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.");
} | Observable<ServiceResponse<Page<Product>>> function(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException(STR); } | /**
* A paging operation that includes a nextLink that has 10 pages.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @return the List<Product> object wrapped in {@link ServiceResponse} if successful.
*/ | A paging operation that includes a nextLink that has 10 pages | getMultiplePagesNextSinglePageAsync | {
"repo_name": "haocs/autorest",
"path": "src/generator/AutoRest.Java.Azure.Tests/src/main/java/fixtures/paging/implementation/PagingsImpl.java",
"license": "mit",
"size": 132597
} | [
"com.microsoft.azure.Page",
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse; | import com.microsoft.azure.*; import com.microsoft.rest.*; | [
"com.microsoft.azure",
"com.microsoft.rest"
] | com.microsoft.azure; com.microsoft.rest; | 2,014,450 |
public static void showMessage(DetailedSerializableException exception) {
new ErrorPopup(exception.getMessage(), exception.getLongDescription());
LoadingPopup.close();
} | static void function(DetailedSerializableException exception) { new ErrorPopup(exception.getMessage(), exception.getLongDescription()); LoadingPopup.close(); } | /**
* For showing a more detailed report.
*/ | For showing a more detailed report | showMessage | {
"repo_name": "bobmcwhirter/drools",
"path": "drools-guvnor/src/main/java/org/drools/guvnor/client/common/ErrorPopup.java",
"license": "apache-2.0",
"size": 2903
} | [
"org.drools.guvnor.client.rpc.DetailedSerializableException"
] | import org.drools.guvnor.client.rpc.DetailedSerializableException; | import org.drools.guvnor.client.rpc.*; | [
"org.drools.guvnor"
] | org.drools.guvnor; | 624,565 |
void createQueue(@NotNull String name) throws JMSException; | void createQueue(@NotNull String name) throws JMSException; | /**
* Create a non-persistent JMS queue via the underling server implementation.<br>
* Will throw if a queue with the same name already exist.
*
* @param name Name of the JMS queue to be created.
* @throws JMSException When underlying JMS implementation fails
*/ | Create a non-persistent JMS queue via the underling server implementation. Will throw if a queue with the same name already exist | createQueue | {
"repo_name": "florentw/bench",
"path": "cluster-jms/src/main/java/io/amaze/bench/shared/jms/JMSServer.java",
"license": "apache-2.0",
"size": 2444
} | [
"javax.validation.constraints.NotNull"
] | import javax.validation.constraints.NotNull; | import javax.validation.constraints.*; | [
"javax.validation"
] | javax.validation; | 1,963,633 |
protected void buildSuperJoinTree(TableAlias left, ClassDescriptor cld, String name, boolean useOuterJoin)
{
ClassDescriptor superCld = cld.getSuperClassDescriptor();
if (superCld != null)
{
SuperReferenceDescriptor superRef = cld.getSuperReference();
FieldD... | void function(TableAlias left, ClassDescriptor cld, String name, boolean useOuterJoin) { ClassDescriptor superCld = cld.getSuperClassDescriptor(); if (superCld != null) { SuperReferenceDescriptor superRef = cld.getSuperReference(); FieldDescriptor[] leftFields = superRef.getForeignKeyFieldDescriptors(cld); TableAlias b... | /**
* build the Join-Information if a super reference exists
*
* @param left
* @param cld
* @param name
*/ | build the Join-Information if a super reference exists | buildSuperJoinTree | {
"repo_name": "kuali/ojb-1.0.4",
"path": "src/java/org/apache/ojb/broker/accesslayer/sql/SqlQueryStatement.java",
"license": "apache-2.0",
"size": 69247
} | [
"org.apache.ojb.broker.metadata.ClassDescriptor",
"org.apache.ojb.broker.metadata.FieldDescriptor",
"org.apache.ojb.broker.metadata.SuperReferenceDescriptor"
] | import org.apache.ojb.broker.metadata.ClassDescriptor; import org.apache.ojb.broker.metadata.FieldDescriptor; import org.apache.ojb.broker.metadata.SuperReferenceDescriptor; | import org.apache.ojb.broker.metadata.*; | [
"org.apache.ojb"
] | org.apache.ojb; | 1,946,300 |
public FeatureResultSet queryFeaturesForChunk(boolean distinct,
String[] columns, BoundingBox boundingBox, String where,
String[] whereArgs, int limit) {
return queryFeaturesForChunk(distinct, columns, boundingBox, where,
whereArgs, getPkColumnName(), limit);
} | FeatureResultSet function(boolean distinct, String[] columns, BoundingBox boundingBox, String where, String[] whereArgs, int limit) { return queryFeaturesForChunk(distinct, columns, boundingBox, where, whereArgs, getPkColumnName(), limit); } | /**
* Query for features within the bounding box ordered by id, starting at the
* offset and returning no more than the limit
*
* @param distinct
* distinct rows
* @param columns
* columns
* @param boundingBox
* bounding box
* @param where
* where claus... | Query for features within the bounding box ordered by id, starting at the offset and returning no more than the limit | queryFeaturesForChunk | {
"repo_name": "ngageoint/geopackage-java",
"path": "src/main/java/mil/nga/geopackage/extension/rtree/RTreeIndexTableDao.java",
"license": "mit",
"size": 349361
} | [
"mil.nga.geopackage.BoundingBox",
"mil.nga.geopackage.features.user.FeatureResultSet"
] | import mil.nga.geopackage.BoundingBox; import mil.nga.geopackage.features.user.FeatureResultSet; | import mil.nga.geopackage.*; import mil.nga.geopackage.features.user.*; | [
"mil.nga.geopackage"
] | mil.nga.geopackage; | 1,962,548 |
public VbridgeBuildHelper createBridge(String name) {
return createBridge(new VnodeName(name));
} | VbridgeBuildHelper function(String name) { return createBridge(new VnodeName(name)); } | /**
* Create the {@link VbridgeBuildHelper} instance for the specified
* vBridge.
*
* @param name The name of the vBridge.
* @return A {@link VbridgeBuildHelper} instance.
*/ | Create the <code>VbridgeBuildHelper</code> instance for the specified vBridge | createBridge | {
"repo_name": "opendaylight/vtn",
"path": "manager/implementation/src/test/java/org/opendaylight/vtn/manager/internal/vnode/VtnBuildHelper.java",
"license": "epl-1.0",
"size": 23060
} | [
"org.opendaylight.yang.gen.v1.urn.opendaylight.vtn.types.rev150209.VnodeName"
] | import org.opendaylight.yang.gen.v1.urn.opendaylight.vtn.types.rev150209.VnodeName; | import org.opendaylight.yang.gen.v1.urn.opendaylight.vtn.types.rev150209.*; | [
"org.opendaylight.yang"
] | org.opendaylight.yang; | 513,941 |
void setNextFrame(byte[] data, Camera camera) {
synchronized (mLock) {
if (mPendingFrameData != null) {
camera.addCallbackBuffer(mPendingFrameData.array());
mPendingFrameData = null;
}
if (!mBytesToByteBuffer.co... | void setNextFrame(byte[] data, Camera camera) { synchronized (mLock) { if (mPendingFrameData != null) { camera.addCallbackBuffer(mPendingFrameData.array()); mPendingFrameData = null; } if (!mBytesToByteBuffer.containsKey(data)) { Log.d(LOG_TAG, STR + STR); return; } mPendingTimeMillis = SystemClock.elapsedRealtime() - ... | /**
* Sets the frame data received from the camera. This adds the previous unused frame buffer
* (if present) back to the camera, and keeps a pending reference to the frame data for
* future use.
*/ | Sets the frame data received from the camera. This adds the previous unused frame buffer (if present) back to the camera, and keeps a pending reference to the frame data for future use | setNextFrame | {
"repo_name": "zarub2k/duodroid",
"path": "alexandria/app/src/main/java/it/jaschke/alexandria/changes/CameraSource.java",
"license": "apache-2.0",
"size": 45312
} | [
"android.hardware.Camera",
"android.os.SystemClock",
"android.util.Log"
] | import android.hardware.Camera; import android.os.SystemClock; import android.util.Log; | import android.hardware.*; import android.os.*; import android.util.*; | [
"android.hardware",
"android.os",
"android.util"
] | android.hardware; android.os; android.util; | 2,700,040 |
public String toString(String fmt, String open, String close, String colSep, String rowSep) {
StringWriter s = new StringWriter();
PrintWriter p = new PrintWriter(s);
p.print(open);
for (int r = 0; r < rows; r++) {
for (int c = 0; c < columns; c++) {
p.p... | String function(String fmt, String open, String close, String colSep, String rowSep) { StringWriter s = new StringWriter(); PrintWriter p = new PrintWriter(s); p.print(open); for (int r = 0; r < rows; r++) { for (int c = 0; c < columns; c++) { p.printf(fmt, get(r, c)); if (c < columns - 1) { p.print(colSep); } } if (r ... | /**
* Generate string representation of the matrix, with specified
* format for the entries, and delimiters.
*
* @param fmt entry format (passed to String.format())
* @param open opening parenthesis
* @param close closing parenthesis
* @param colSep separator between columns
* @param rowSep sepa... | Generate string representation of the matrix, with specified format for the entries, and delimiters | toString | {
"repo_name": "mikiobraun/jblas",
"path": "src/main/java/org/jblas/FloatMatrix.java",
"license": "bsd-3-clause",
"size": 110591
} | [
"java.io.PrintWriter",
"java.io.StringWriter"
] | import java.io.PrintWriter; import java.io.StringWriter; | import java.io.*; | [
"java.io"
] | java.io; | 1,488,851 |
public List<FeedMapping> insertFeedMappings(List<FeedMapping> feedMappings)
throws RemoteException {
return delegateLocator.getFeedMappingDelegate().insert(feedMappings);
} | List<FeedMapping> function(List<FeedMapping> feedMappings) throws RemoteException { return delegateLocator.getFeedMappingDelegate().insert(feedMappings); } | /**
* Inserts the FeedMapping into the ExtendedManagedCustomer's ManagedCustomer.
*
* @param feedMappings the FeedMappings to insert
* @return the updated FeedMapping
* @throws RemoteException for communication-related exceptions
*/ | Inserts the FeedMapping into the ExtendedManagedCustomer's ManagedCustomer | insertFeedMappings | {
"repo_name": "raja15792/googleads-java-lib",
"path": "modules/adwords_axis_utility_extension/src/main/java/com/google/api/ads/adwords/axis/utility/extension/ExtendedManagedCustomer.java",
"license": "apache-2.0",
"size": 39864
} | [
"com.google.api.ads.adwords.axis.v201506.cm.FeedMapping",
"java.rmi.RemoteException",
"java.util.List"
] | import com.google.api.ads.adwords.axis.v201506.cm.FeedMapping; import java.rmi.RemoteException; import java.util.List; | import com.google.api.ads.adwords.axis.v201506.cm.*; import java.rmi.*; import java.util.*; | [
"com.google.api",
"java.rmi",
"java.util"
] | com.google.api; java.rmi; java.util; | 1,423,949 |
public static Process compile(
final String command,
final String[] env,
final File outputFile,
final File directory,
final Action onSuccess,
final Action onFailure,
final MessageList compilationOutput,
boolean synchronous)
throws Exception {
Pattern p = Pattern.c... | static Process function( final String command, final String[] env, final File outputFile, final File directory, final Action onSuccess, final Action onFailure, final MessageList compilationOutput, boolean synchronous) throws Exception { Pattern p = Pattern.compile(STR']+ \"[^\"]*\STR); Matcher m = p.matcher(command); A... | /**
* Executes a Contiki compilation command.
*
* @param command Command
* @param env (Optional) Environment. May be null.
* @param outputFile Expected output. May be null.
* @param directory Directory in which to execute command
* @param onSuccess Action called if compilation succeeds
* @param ... | Executes a Contiki compilation command | compile | {
"repo_name": "miarcompanies/sdn-wise-contiki",
"path": "contiki/tools/cooja/java/org/contikios/cooja/dialogs/CompileContiki.java",
"license": "bsd-3-clause",
"size": 20398
} | [
"java.io.File",
"java.util.ArrayList",
"java.util.regex.Matcher",
"java.util.regex.Pattern",
"javax.swing.Action"
] | import java.io.File; import java.util.ArrayList; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.swing.Action; | import java.io.*; import java.util.*; import java.util.regex.*; import javax.swing.*; | [
"java.io",
"java.util",
"javax.swing"
] | java.io; java.util; javax.swing; | 1,296,121 |
private ImmutableSortedSet<PathFragment> getAndroidDeviceSystemImageDirs(
Path androidSdkPath, Environment env)
throws RepositoryFunctionException, InterruptedException {
if (!androidSdkPath.getRelative(SYSTEM_IMAGES_DIR).exists()) {
return ImmutableSortedSet.of();
}
DirectoryListingValu... | ImmutableSortedSet<PathFragment> function( Path androidSdkPath, Environment env) throws RepositoryFunctionException, InterruptedException { if (!androidSdkPath.getRelative(SYSTEM_IMAGES_DIR).exists()) { return ImmutableSortedSet.of(); } DirectoryListingValue systemImagesDirectoryValue = getDirectoryListing(androidSdkPa... | /**
* Gets PathFragments for /sdk/system-images/*/*/*, which are the directories in the SDK
* that contain system images needed for android_device.
*
* <p>If the sdk/system-images directory does not exist, an empty set is returned.
*/ | Gets PathFragments for /sdk/system-images/*/*/*, which are the directories in the SDK that contain system images needed for android_device. If the sdk/system-images directory does not exist, an empty set is returned | getAndroidDeviceSystemImageDirs | {
"repo_name": "perezd/bazel",
"path": "src/main/java/com/google/devtools/build/lib/bazel/rules/android/AndroidSdkRepositoryFunction.java",
"license": "apache-2.0",
"size": 21630
} | [
"com.google.common.collect.ImmutableMap",
"com.google.common.collect.ImmutableSortedSet",
"com.google.devtools.build.lib.skyframe.DirectoryListingValue",
"com.google.devtools.build.lib.vfs.Dirent",
"com.google.devtools.build.lib.vfs.Path",
"com.google.devtools.build.lib.vfs.PathFragment",
"com.google.de... | import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSortedSet; import com.google.devtools.build.lib.skyframe.DirectoryListingValue; import com.google.devtools.build.lib.vfs.Dirent; import com.google.devtools.build.lib.vfs.Path; import com.google.devtools.build.lib.vfs.PathFragment; ... | import com.google.common.collect.*; import com.google.devtools.build.lib.skyframe.*; import com.google.devtools.build.lib.vfs.*; import com.google.devtools.build.skyframe.*; | [
"com.google.common",
"com.google.devtools"
] | com.google.common; com.google.devtools; | 642,855 |
public void projectionChanged(ProjectionEvent e) {
graphics.generate(e.getProjection());
repaint();
} | void function(ProjectionEvent e) { graphics.generate(e.getProjection()); repaint(); } | /**
* Invoked when the projection has changed or this Layer has been
* added to the MapBean.
*
* @param e ProjectionEvent
*/ | Invoked when the projection has changed or this Layer has been added to the MapBean | projectionChanged | {
"repo_name": "d2fn/passage",
"path": "src/main/java/com/bbn/openmap/layer/test/HelloWorldLayer.java",
"license": "mit",
"size": 8825
} | [
"com.bbn.openmap.event.ProjectionEvent"
] | import com.bbn.openmap.event.ProjectionEvent; | import com.bbn.openmap.event.*; | [
"com.bbn.openmap"
] | com.bbn.openmap; | 1,266,142 |
public void openFileChooser(ValueCallback<Uri> uploadFile, String acceptType, String capture) {
uploadFile.onReceiveValue(null);
}
public void setupAutoFill(Message msg) { } | void function(ValueCallback<Uri> uploadFile, String acceptType, String capture) { uploadFile.onReceiveValue(null); } public void setupAutoFill(Message msg) { } | /**
* Tell the client to open a file chooser.
* @param uploadFile A ValueCallback to set the URI of the file to upload.
* onReceiveValue must be called to wake up the thread.a
* @param acceptType The value of the 'accept' attribute of the input tag
* associated with this file picke... | Tell the client to open a file chooser | openFileChooser | {
"repo_name": "yuzaipiaofei/chromium_webview",
"path": "java/src/com/mogoweb/chrome/WebChromeClient.java",
"license": "bsd-3-clause",
"size": 16494
} | [
"android.net.Uri",
"android.os.Message",
"android.webkit.ValueCallback"
] | import android.net.Uri; import android.os.Message; import android.webkit.ValueCallback; | import android.net.*; import android.os.*; import android.webkit.*; | [
"android.net",
"android.os",
"android.webkit"
] | android.net; android.os; android.webkit; | 978,132 |
public final MockResultSet simpleReturnCode(final Integer index) {
if (index == null) { return null; }
int rsid = index.intValue();
switch (rsid) {
case -1:
return MockResultSetUtils.buildScalarOutParam("100");
case 0:
return MockResult... | final MockResultSet function(final Integer index) { if (index == null) { return null; } int rsid = index.intValue(); switch (rsid) { case -1: return MockResultSetUtils.buildScalarOutParam("100"); case 0: return MockResultSetUtils.buildZerothResultSet(0); default: return null; } } | /**
* A method returning a return code only.
* @param index the result set id.
* @return a MockResult.
*/ | A method returning a return code only | simpleReturnCode | {
"repo_name": "ecalo/SQLUnit-5.0-Fork",
"path": "test/java/mock/SQLUnitMockDatabase.java",
"license": "gpl-3.0",
"size": 45758
} | [
"com.mockrunner.mock.jdbc.MockResultSet"
] | import com.mockrunner.mock.jdbc.MockResultSet; | import com.mockrunner.mock.jdbc.*; | [
"com.mockrunner.mock"
] | com.mockrunner.mock; | 210,815 |
private void searchNotes() throws Exception {
// Searches are formatted according to the Evernote search grammar.
// Learn more at
// http://dev.evernote.com/documentation/cloud/chapters/Searching_notes.php
// In this example, we search for notes that have the term "EDAMDemo" in
// the title.
... | void function() throws Exception { String query = STR; NoteFilter filter = new NoteFilter(); filter.setWords(query); filter.setOrder(NoteSortOrder.UPDATED.getValue()); filter.setAscending(false); System.out.println(STR + query); NoteList notes = noteStore.findNotes(filter, 0, 50); System.out.println(STR + notes.getTota... | /**
* Search a user's notes and display the results.
*/ | Search a user's notes and display the results | searchNotes | {
"repo_name": "allentcm/evernote-sdk-java",
"path": "sample/client/EDAMDemo.java",
"license": "bsd-2-clause",
"size": 13662
} | [
"com.evernote.edam.notestore.NoteFilter",
"com.evernote.edam.notestore.NoteList",
"com.evernote.edam.type.Note",
"com.evernote.edam.type.NoteSortOrder",
"java.util.Iterator"
] | import com.evernote.edam.notestore.NoteFilter; import com.evernote.edam.notestore.NoteList; import com.evernote.edam.type.Note; import com.evernote.edam.type.NoteSortOrder; import java.util.Iterator; | import com.evernote.edam.notestore.*; import com.evernote.edam.type.*; import java.util.*; | [
"com.evernote.edam",
"java.util"
] | com.evernote.edam; java.util; | 648,012 |
private void throwExceptionIfHasAllergen(Allergy allergy, Collection<? extends Allergy> allergies) {
if (containsAllergen(allergy, allergies)) {
throw new APIException("Duplicate allergens not allowed");
}
}
| void function(Allergy allergy, Collection<? extends Allergy> allergies) { if (containsAllergen(allergy, allergies)) { throw new APIException(STR); } } | /**
* Throws an exception if the given allergies collection has
* an allergen similar to that of the given allergy
*
* @param allergy the given allergy
* @param allergies the given allergies collection
*/ | Throws an exception if the given allergies collection has an allergen similar to that of the given allergy | throwExceptionIfHasAllergen | {
"repo_name": "jdegraft/openmrs-module-allergyapi",
"path": "api/src/main/java/org/openmrs/module/allergyapi/Allergies.java",
"license": "mpl-2.0",
"size": 8223
} | [
"java.util.Collection",
"org.openmrs.api.APIException"
] | import java.util.Collection; import org.openmrs.api.APIException; | import java.util.*; import org.openmrs.api.*; | [
"java.util",
"org.openmrs.api"
] | java.util; org.openmrs.api; | 2,352,601 |
public JobDataMap selectTriggerJobDataMap(Connection conn, String triggerName,
String groupName) throws SQLException, ClassNotFoundException,
IOException {
PreparedStatement ps = null;
ResultSet rs = null;
try {
Trigger trigger = null;
... | JobDataMap function(Connection conn, String triggerName, String groupName) throws SQLException, ClassNotFoundException, IOException { PreparedStatement ps = null; ResultSet rs = null; try { Trigger trigger = null; ps = conn.prepareStatement(rtp(SELECT_TRIGGER_DATA)); ps.setString(1, triggerName); ps.setString(2, groupN... | /**
* <p>
* Select a trigger's JobDataMap.
* </p>
*
* @param conn
* the DB Connection
* @param triggerName
* the name of the trigger
* @param groupName
* the group containing the trigger
* @return the <code>{@link org.quartz.JobDataMap}<... | Select a trigger's JobDataMap. | selectTriggerJobDataMap | {
"repo_name": "optivo-org/quartz-1.8.3-optivo",
"path": "quartz/src/main/java/org/quartz/impl/jdbcjobstore/StdJDBCDelegate.java",
"license": "apache-2.0",
"size": 117209
} | [
"java.io.IOException",
"java.sql.Connection",
"java.sql.PreparedStatement",
"java.sql.ResultSet",
"java.sql.SQLException",
"java.util.Map",
"org.quartz.JobDataMap",
"org.quartz.Trigger"
] | import java.io.IOException; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Map; import org.quartz.JobDataMap; import org.quartz.Trigger; | import java.io.*; import java.sql.*; import java.util.*; import org.quartz.*; | [
"java.io",
"java.sql",
"java.util",
"org.quartz"
] | java.io; java.sql; java.util; org.quartz; | 2,136,650 |
public static APIListDTO fromAPIListToDTO(List<API> apiList, boolean expand) throws APIManagementException {
APIListDTO apiListDTO = new APIListDTO();
List<APIInfoDTO> apiInfoDTOs = apiListDTO.getList();
if (apiList != null && !expand) {
for (API api : apiList) {
... | static APIListDTO function(List<API> apiList, boolean expand) throws APIManagementException { APIListDTO apiListDTO = new APIListDTO(); List<APIInfoDTO> apiInfoDTOs = apiListDTO.getList(); if (apiList != null && !expand) { for (API api : apiList) { apiInfoDTOs.add(fromAPIToInfoDTO(api)); } } else if (apiList != null &&... | /**
* Converts a List object of APIs into a DTO
*
* @param apiList List of APIs
* @param expand defines whether APIListDTO should contain APIINFODTOs or APIDTOs
* @return APIListDTO object containing APIDTOs
*/ | Converts a List object of APIs into a DTO | fromAPIListToDTO | {
"repo_name": "nuwand/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/utils/mappings/APIMappingUtil.java",
"license": "apache-2.0",
"size": 42815
} | [
"java.util.List",
"org.wso2.carbon.apimgt.api.APIManagementException",
"org.wso2.carbon.apimgt.rest.api.publisher.dto.APIInfoDTO",
"org.wso2.carbon.apimgt.rest.api.publisher.dto.APIListDTO"
] | import java.util.List; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.rest.api.publisher.dto.APIInfoDTO; import org.wso2.carbon.apimgt.rest.api.publisher.dto.APIListDTO; | import java.util.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.rest.api.publisher.dto.*; | [
"java.util",
"org.wso2.carbon"
] | java.util; org.wso2.carbon; | 2,104,809 |
private List<String> generateDropStatementsForSpatialExtensions(boolean defaultSchemaForUser) throws SQLException {
List<String> statements = new ArrayList<String>();
if (!spatialExtensionsAvailable()) {
LOG.debug("Oracle Spatial Extensions are not available. No cleaning of MDSYS tables... | List<String> function(boolean defaultSchemaForUser) throws SQLException { List<String> statements = new ArrayList<String>(); if (!spatialExtensionsAvailable()) { LOG.debug(STR); return statements; } if (!dbSupport.getCurrentSchemaName().equalsIgnoreCase(name)) { int count = jdbcTemplate.queryForInt(STR, name); count +=... | /**
* Generates the drop statements for Oracle Spatial Extensions-related database objects.
*
* @param defaultSchemaForUser Whether we are currently cleaning the default schema for the logged in user.
* @return The complete drop statements, ready to execute.
* @throws SQLException when the drop... | Generates the drop statements for Oracle Spatial Extensions-related database objects | generateDropStatementsForSpatialExtensions | {
"repo_name": "fdefalco/flyway",
"path": "flyway-core/src/main/java/org/flywaydb/core/internal/dbsupport/oracle/OracleSchema.java",
"license": "apache-2.0",
"size": 16757
} | [
"java.sql.SQLException",
"java.util.ArrayList",
"java.util.List"
] | import java.sql.SQLException; import java.util.ArrayList; import java.util.List; | import java.sql.*; import java.util.*; | [
"java.sql",
"java.util"
] | java.sql; java.util; | 1,348,202 |
@Override
public ConsumesRequestCondition getMatchingCondition(HttpServletRequest request) {
if (CorsUtils.isPreFlightRequest(request)) {
return PRE_FLIGHT_MATCH;
}
if (isEmpty()) {
return this;
}
MediaType contentType;
try {
contentType = StringUtils.hasLength(request.getContentType()) ?
... | ConsumesRequestCondition function(HttpServletRequest request) { if (CorsUtils.isPreFlightRequest(request)) { return PRE_FLIGHT_MATCH; } if (isEmpty()) { return this; } MediaType contentType; try { contentType = StringUtils.hasLength(request.getContentType()) ? MediaType.parseMediaType(request.getContentType()) : MediaT... | /**
* Checks if any of the contained media type expressions match the given
* request 'Content-Type' header and returns an instance that is guaranteed
* to contain matching expressions only. The match is performed via
* {@link MediaType#includes(MediaType)}.
* @param request the current request
* @return th... | Checks if any of the contained media type expressions match the given request 'Content-Type' header and returns an instance that is guaranteed to contain matching expressions only. The match is performed via <code>MediaType#includes(MediaType)</code> | getMatchingCondition | {
"repo_name": "boggad/jdk9-sample",
"path": "sample-catalog/spring-jdk9/src/spring.webmvc/org/springframework/web/servlet/mvc/condition/ConsumesRequestCondition.java",
"license": "mit",
"size": 7886
} | [
"java.util.Iterator",
"java.util.LinkedHashSet",
"java.util.Set",
"javax.servlet.http.HttpServletRequest",
"org.springframework.http.InvalidMediaTypeException",
"org.springframework.http.MediaType",
"org.springframework.util.StringUtils",
"org.springframework.web.cors.CorsUtils"
] | import java.util.Iterator; import java.util.LinkedHashSet; import java.util.Set; import javax.servlet.http.HttpServletRequest; import org.springframework.http.InvalidMediaTypeException; import org.springframework.http.MediaType; import org.springframework.util.StringUtils; import org.springframework.web.cors.CorsUtils; | import java.util.*; import javax.servlet.http.*; import org.springframework.http.*; import org.springframework.util.*; import org.springframework.web.cors.*; | [
"java.util",
"javax.servlet",
"org.springframework.http",
"org.springframework.util",
"org.springframework.web"
] | java.util; javax.servlet; org.springframework.http; org.springframework.util; org.springframework.web; | 1,750,627 |
private static ComponentDefinition setComponentDefinition(SBOLDocument sbol_Library, SBOLDocument sbolDoc, Model model, Species species) throws SBOLValidationException
{
String compDef_identity = model.getId() + "__" + species.getId();
Set<URI> compDef_type = new HashSet<URI>();
Set<URI> compDef_role =... | static ComponentDefinition function(SBOLDocument sbol_Library, SBOLDocument sbolDoc, Model model, Species species) throws SBOLValidationException { String compDef_identity = model.getId() + "__" + species.getId(); Set<URI> compDef_type = new HashSet<URI>(); Set<URI> compDef_role = new HashSet<URI>(); ComponentDefinitio... | /**
* Convert an SBOL ComponentDefinition from SBML Species.
*
* @param sbol_Library - The global SBOL document that contains all SBOL objects referenced in conversion.
* @param sbolDoc - The SBOL Document that will store the ComponentDefinition.
* @param model - The SBML model that contains the SBML s... | Convert an SBOL ComponentDefinition from SBML Species | setComponentDefinition | {
"repo_name": "MyersResearchGroup/iBioSim",
"path": "conversion/src/main/java/edu/utah/ece/async/ibiosim/conversion/SBML2SBOL.java",
"license": "apache-2.0",
"size": 31929
} | [
"edu.utah.ece.async.ibiosim.dataModels.biomodel.annotation.AnnotationUtility",
"edu.utah.ece.async.ibiosim.dataModels.biomodel.parser.BioModel",
"edu.utah.ece.async.ibiosim.dataModels.biomodel.util.SBMLutilities",
"edu.utah.ece.async.ibiosim.dataModels.util.GlobalConstants",
"java.util.HashSet",
"java.uti... | import edu.utah.ece.async.ibiosim.dataModels.biomodel.annotation.AnnotationUtility; import edu.utah.ece.async.ibiosim.dataModels.biomodel.parser.BioModel; import edu.utah.ece.async.ibiosim.dataModels.biomodel.util.SBMLutilities; import edu.utah.ece.async.ibiosim.dataModels.util.GlobalConstants; import java.util.HashSet... | import edu.utah.ece.async.ibiosim.*; import java.util.*; import org.sbml.jsbml.*; import org.sbolstandard.core2.*; | [
"edu.utah.ece",
"java.util",
"org.sbml.jsbml",
"org.sbolstandard.core2"
] | edu.utah.ece; java.util; org.sbml.jsbml; org.sbolstandard.core2; | 919,952 |
public static EntityConfigSummary entityConfigSummary(EntityLocal entity, ConfigKey<?> config) {
// EntityDynamicType typeMap =
// ((AbstractEntity)entity).getMutableEntityType();
// // above line works if we can cast; line below won't work, but there should some way
// // to get bac... | static EntityConfigSummary function(EntityLocal entity, ConfigKey<?> config) { String label = null; Double priority = null; String applicationUri = STR + entity.getApplicationId(); String entityUri = applicationUri + STR + entity.getId(); Map<String,URI> links = ImmutableMap.<String, URI>builder() .put("self", URI.crea... | /** generates a representation for a given config key,
* with label inferred from annoation in the entity class,
* and links pointing to the entity and the applicaiton */ | generates a representation for a given config key, with label inferred from annoation in the entity class | entityConfigSummary | {
"repo_name": "neykov/incubator-brooklyn",
"path": "usage/rest-server/src/main/java/brooklyn/rest/transform/EntityTransformer.java",
"license": "apache-2.0",
"size": 6161
} | [
"com.google.common.collect.ImmutableMap",
"java.net.URI",
"java.util.Map"
] | import com.google.common.collect.ImmutableMap; import java.net.URI; import java.util.Map; | import com.google.common.collect.*; import java.net.*; import java.util.*; | [
"com.google.common",
"java.net",
"java.util"
] | com.google.common; java.net; java.util; | 2,820,832 |
@Override
public String getText(Object object) {
String label = ((DimensionRepository)object).getId();
return label == null || label.length() == 0 ?
getString("_UI_DimensionRepository_type") :
getString("_UI_DimensionRepository_type") + " " + label;
}
| String function(Object object) { String label = ((DimensionRepository)object).getId(); return label == null label.length() == 0 ? getString(STR) : getString(STR) + " " + label; } | /**
* This returns the label text for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This returns the label text for the adapted class. | getText | {
"repo_name": "KAMP-Research/KAMP",
"path": "bundles/Toometa/de.uka.ipd.sdq.dsexplore.qml.dimensions.edit/src/de/uka/ipd/sdq/dsexplore/qml/dimensions/provider/DimensionRepositoryItemProvider.java",
"license": "apache-2.0",
"size": 4766
} | [
"de.uka.ipd.sdq.dsexplore.qml.dimensions.DimensionRepository"
] | import de.uka.ipd.sdq.dsexplore.qml.dimensions.DimensionRepository; | import de.uka.ipd.sdq.dsexplore.qml.dimensions.*; | [
"de.uka.ipd"
] | de.uka.ipd; | 1,135,466 |
public final void commit(IContext context) throws CoreException
{
Core.commit(context, getMendixObject());
} | final void function(IContext context) throws CoreException { Core.commit(context, getMendixObject()); } | /**
* Commit the changes made on this proxy object using the specified context.
*/ | Commit the changes made on this proxy object using the specified context | commit | {
"repo_name": "synobsys/mendix-ObjectBackupRestore",
"path": "src/project/javasource/objectbackuprestore/proxies/BackupConfiguration.java",
"license": "apache-2.0",
"size": 11056
} | [
"com.mendix.core.Core",
"com.mendix.core.CoreException",
"com.mendix.systemwideinterfaces.core.IContext"
] | import com.mendix.core.Core; import com.mendix.core.CoreException; import com.mendix.systemwideinterfaces.core.IContext; | import com.mendix.core.*; import com.mendix.systemwideinterfaces.core.*; | [
"com.mendix.core",
"com.mendix.systemwideinterfaces"
] | com.mendix.core; com.mendix.systemwideinterfaces; | 2,471,131 |
public ServiceFuture<LinkResourceFormatInner> getAsync(String resourceGroupName, String hubName, String linkName, final ServiceCallback<LinkResourceFormatInner> serviceCallback) {
return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, hubName, linkName), serviceCallback);
} | ServiceFuture<LinkResourceFormatInner> function(String resourceGroupName, String hubName, String linkName, final ServiceCallback<LinkResourceFormatInner> serviceCallback) { return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, hubName, linkName), serviceCallback); } | /**
* Gets a link in the hub.
*
* @param resourceGroupName The name of the resource group.
* @param hubName The name of the hub.
* @param linkName The name of the link.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgum... | Gets a link in the hub | getAsync | {
"repo_name": "martinsawicki/azure-sdk-for-java",
"path": "azure-mgmt-customerinsights/src/main/java/com/microsoft/azure/management/customerinsights/implementation/LinksInner.java",
"license": "mit",
"size": 39620
} | [
"com.microsoft.rest.ServiceCallback",
"com.microsoft.rest.ServiceFuture"
] | import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 2,130,575 |
public OsType getOsType() {
return osType;
}
| OsType function() { return osType; } | /**
* Getter for the OS type attribute.
*
* @return osType
*/ | Getter for the OS type attribute | getOsType | {
"repo_name": "codehaus/geobatch",
"path": "file-catalog/src/main/java/it/geosolutions/geobatch/configuration/event/generator/file/FileBasedEventGeneratorConfiguration.java",
"license": "gpl-3.0",
"size": 5671
} | [
"it.geosolutions.filesystemmonitor.OsType"
] | import it.geosolutions.filesystemmonitor.OsType; | import it.geosolutions.filesystemmonitor.*; | [
"it.geosolutions.filesystemmonitor"
] | it.geosolutions.filesystemmonitor; | 281,774 |
Dimension getPreferredSize(int columns); | Dimension getPreferredSize(int columns); | /**
* Returns the preferred size of the text field with the specified number
* of columns.
*
* @param columns the number of columns
*
* @return the preferred size of the text field
*
* @see TextField#getPreferredSize(int)
*/ | Returns the preferred size of the text field with the specified number of columns | getPreferredSize | {
"repo_name": "shun634501730/java_source_cn",
"path": "src_en/java/awt/peer/TextFieldPeer.java",
"license": "apache-2.0",
"size": 1477
} | [
"java.awt.Dimension"
] | import java.awt.Dimension; | import java.awt.*; | [
"java.awt"
] | java.awt; | 556,116 |
public static void logp(final Object caller, final Level arg0,
final String arg1, final String arg2, final String arg3,
final Throwable arg4)
{
Logger.resolveLogger(caller).logp(arg0, arg1, arg2, arg3, arg4);
} | static void function(final Object caller, final Level arg0, final String arg1, final String arg2, final String arg3, final Throwable arg4) { Logger.resolveLogger(caller).logp(arg0, arg1, arg2, arg3, arg4); } | /**
* Logs a message, with associated throwable and class information
*
* @param caller the object calling the logger
* @param arg0 the log level
* @param arg1 the source class
* @param arg2 the method information
* @param arg3 the message
* @param arg4 the parameters
*/ | Logs a message, with associated throwable and class information | logp | {
"repo_name": "krevelen/coala",
"path": "coala-adapters/coala-dsol2-adapter/src/main/java/nl/tudelft/simulation/logger/Logger.java",
"license": "apache-2.0",
"size": 19181
} | [
"java.util.logging.Level"
] | import java.util.logging.Level; | import java.util.logging.*; | [
"java.util"
] | java.util; | 647,540 |
public long getMaxFlow(int s, int t) {
while (true) {
final Queue<Integer> Q = new ArrayDeque<Integer>();
Q.add(s);
for (int i = 0; i < this.n; ++i)
visited[i] = false;
visited[s] = true;
boolean check = false;
int cur... | long function(int s, int t) { while (true) { final Queue<Integer> Q = new ArrayDeque<Integer>(); Q.add(s); for (int i = 0; i < this.n; ++i) visited[i] = false; visited[s] = true; boolean check = false; int current; while (!Q.isEmpty()) { current = Q.peek(); if (current == t) { check = true; break; } Q.remove(); for (in... | /**
* Get maximum flow.
*
* @param s source
* @param t target
* @return maximum flow
*/ | Get maximum flow | getMaxFlow | {
"repo_name": "phishman3579/java-algorithms-implementation",
"path": "src/com/jwetherell/algorithms/graph/EdmondsKarp.java",
"license": "apache-2.0",
"size": 2756
} | [
"java.util.ArrayDeque",
"java.util.Queue"
] | import java.util.ArrayDeque; import java.util.Queue; | import java.util.*; | [
"java.util"
] | java.util; | 1,638,667 |
public static Bitmap decodeSampledBitmapFromResource(Resources res, int resId, int reqWidth,
int reqHeight, boolean isMutable) {
// First decode with inJustDecodeBounds=true to check dimensions
final BitmapFactory.Options options = new Bitmap... | static Bitmap function(Resources res, int resId, int reqWidth, int reqHeight, boolean isMutable) { final BitmapFactory.Options options = new BitmapFactory.Options(); options.inJustDecodeBounds = true; BitmapFactory.decodeResource(res, resId, options); options.inSampleSize = calculateInSampleSize(options, reqWidth, reqH... | /**
* Decode and sample down a bitmap from resources to the requested width and
* height.
*
* @param res The resources object containing the image data
* @param resId The resource id of the image data
* @param reqWidth The requested width of the resulting bitmap
* @param re... | Decode and sample down a bitmap from resources to the requested width and height | decodeSampledBitmapFromResource | {
"repo_name": "ChaussonORG/AndroidBaseModule",
"path": "basemodule/src/main/java/com/sudao/basemodule/common/util/ImageUtil.java",
"license": "mit",
"size": 14160
} | [
"android.content.res.Resources",
"android.graphics.Bitmap",
"android.graphics.BitmapFactory",
"android.os.Build"
] | import android.content.res.Resources; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.os.Build; | import android.content.res.*; import android.graphics.*; import android.os.*; | [
"android.content",
"android.graphics",
"android.os"
] | android.content; android.graphics; android.os; | 1,850,680 |
@Override
public java.util.Date getCreateDate() {
return _paymentRequest.getCreateDate();
} | java.util.Date function() { return _paymentRequest.getCreateDate(); } | /**
* Returns the create date of this payment request.
*
* @return the create date of this payment request
*/ | Returns the create date of this payment request | getCreateDate | {
"repo_name": "openegovplatform/OEPv2",
"path": "oep-dossier-portlet/docroot/WEB-INF/service/org/oep/dossiermgt/model/PaymentRequestWrapper.java",
"license": "apache-2.0",
"size": 17613
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 1,466,153 |
private IAsynchronousUploadHandler2 getHandler2( HttpServletRequest request )
{
for ( IAsynchronousUploadHandler2 handler : SpringContextService.getBeansOfType( IAsynchronousUploadHandler2.class ) )
{
if ( handler.isInvoked( request ) )
{
return handler;
... | IAsynchronousUploadHandler2 function( HttpServletRequest request ) { for ( IAsynchronousUploadHandler2 handler : SpringContextService.getBeansOfType( IAsynchronousUploadHandler2.class ) ) { if ( handler.isInvoked( request ) ) { return handler; } } return null; } | /**
* Gets the handler implementing the new version IAsynchronousUploadHandler2
*
* @param request
* the request
* @return the handler found, <code>null</code> otherwise.
* @see IAsynchronousUploadHandler2#isInvoked(HttpServletRequest)
*/ | Gets the handler implementing the new version IAsynchronousUploadHandler2 | getHandler2 | {
"repo_name": "lutece-platform/lutece-core",
"path": "src/java/fr/paris/lutece/portal/web/upload/UploadServlet.java",
"license": "bsd-3-clause",
"size": 5132
} | [
"fr.paris.lutece.portal.service.spring.SpringContextService",
"javax.servlet.http.HttpServletRequest"
] | import fr.paris.lutece.portal.service.spring.SpringContextService; import javax.servlet.http.HttpServletRequest; | import fr.paris.lutece.portal.service.spring.*; import javax.servlet.http.*; | [
"fr.paris.lutece",
"javax.servlet"
] | fr.paris.lutece; javax.servlet; | 841,696 |
public boolean disconnect() {
if (DBG) log("disconnect()");
if (mService != null) {
try {
mService.disconnect();
return true;
} catch (RemoteException e) {Log.e(TAG, e.toString());}
} else {
Log.w(TAG, "Proxy not attached to... | boolean function() { if (DBG) log(STR); if (mService != null) { try { mService.disconnect(); return true; } catch (RemoteException e) {Log.e(TAG, e.toString());} } else { Log.w(TAG, STR); if (DBG) log(Log.getStackTraceString(new Throwable())); } return false; } | /**
* Disconnects the current Pbap client (PCE). Currently this call blocks,
* it may soon be made asynchronous. Returns false if this proxy object is
* not currently connected to the Pbap service.
*/ | Disconnects the current Pbap client (PCE). Currently this call blocks, it may soon be made asynchronous. Returns false if this proxy object is not currently connected to the Pbap service | disconnect | {
"repo_name": "mateor/PDroidHistory",
"path": "frameworks/base/core/java/android/bluetooth/BluetoothPbap.java",
"license": "gpl-3.0",
"size": 9382
} | [
"android.os.RemoteException",
"android.util.Log"
] | import android.os.RemoteException; import android.util.Log; | import android.os.*; import android.util.*; | [
"android.os",
"android.util"
] | android.os; android.util; | 2,792,378 |
IdentityProvider getResidentIdP(String tenantDomain) throws IdentityProviderManagementException; | IdentityProvider getResidentIdP(String tenantDomain) throws IdentityProviderManagementException; | /**
* Retrieves resident Identity provider for a given tenant
*
* @param tenantDomain Tenant domain whose resident IdP is requested
* @return <code>LocalIdentityProvider</code>
* @throws IdentityProviderManagementException Error when getting Resident Identity Providers
*/ | Retrieves resident Identity provider for a given tenant | getResidentIdP | {
"repo_name": "PasinduTennage/carbon-identity-framework",
"path": "components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/IdpManager.java",
"license": "apache-2.0",
"size": 14377
} | [
"org.wso2.carbon.identity.application.common.model.IdentityProvider"
] | import org.wso2.carbon.identity.application.common.model.IdentityProvider; | import org.wso2.carbon.identity.application.common.model.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 971,056 |
public String[] getQueries() {
return ArrayHelper.toStringArray( queryStatistics.keySet() );
} | String[] function() { return ArrayHelper.toStringArray( queryStatistics.keySet() ); } | /**
* Get all executed query strings
*/ | Get all executed query strings | getQueries | {
"repo_name": "HerrB92/obp",
"path": "OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-core/src/main/java/org/hibernate/stat/internal/ConcurrentStatisticsImpl.java",
"license": "mit",
"size": 27879
} | [
"org.hibernate.internal.util.collections.ArrayHelper"
] | import org.hibernate.internal.util.collections.ArrayHelper; | import org.hibernate.internal.util.collections.*; | [
"org.hibernate.internal"
] | org.hibernate.internal; | 1,556,421 |
public File getFile() throws IOException {
throw new FileNotFoundException(getDescription() + " cannot be resolved to absolute file path");
} | File function() throws IOException { throw new FileNotFoundException(getDescription() + STR); } | /**
* This implementation throws a FileNotFoundException, assuming
* that the resource cannot be resolved to an absolute file path.
*/ | This implementation throws a FileNotFoundException, assuming that the resource cannot be resolved to an absolute file path | getFile | {
"repo_name": "icemanzp/Orion-Server",
"path": "src/main/java/com/jack/netty/conf/io/AbstractResource.java",
"license": "mit",
"size": 5830
} | [
"java.io.File",
"java.io.FileNotFoundException",
"java.io.IOException"
] | import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,327,040 |
public double getAverageBatteryLevel() {
return PoorManStatistics.mean(this.batteryData);
} | double function() { return PoorManStatistics.mean(this.batteryData); } | /**
* Gets the average recorded Battery level for the day
*
* @return Double representing average Battery level for the day
*/ | Gets the average recorded Battery level for the day | getAverageBatteryLevel | {
"repo_name": "rootio/rootio_handset",
"path": "app/src/main/java/org/rootio/activities/DiagnosticStatistics.java",
"license": "agpl-3.0",
"size": 10139
} | [
"org.rootio.tools.utils.PoorManStatistics"
] | import org.rootio.tools.utils.PoorManStatistics; | import org.rootio.tools.utils.*; | [
"org.rootio.tools"
] | org.rootio.tools; | 2,610,165 |
public void textBlue() throws IOException {
setTextColor(Color.BLUE);
} | void function() throws IOException { setTextColor(Color.BLUE); } | /**
* Makes text print on the terminal in blue.
*/ | Makes text print on the terminal in blue | textBlue | {
"repo_name": "variac/bazel",
"path": "src/main/java/com/google/devtools/build/lib/util/io/AnsiTerminal.java",
"license": "apache-2.0",
"size": 6138
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,245,464 |
public void startCDATA(Augmentations augs) throws XNIException {
// only deal with CDATA boundaries within an annotation.
if (fAnnotationDepth != -1) {
schemaDOM.startAnnotationCDATA();
}
} | void function(Augmentations augs) throws XNIException { if (fAnnotationDepth != -1) { schemaDOM.startAnnotationCDATA(); } } | /**
* The start of a CDATA section.
*
* @param augs Additional information that may include infoset augmentations
*
* @exception XNIException
* Thrown by handler to signal an error.
*/ | The start of a CDATA section | startCDATA | {
"repo_name": "itgeeker/jdk",
"path": "src/com/sun/org/apache/xerces/internal/impl/xs/opti/SchemaDOMParser.java",
"license": "apache-2.0",
"size": 22275
} | [
"com.sun.org.apache.xerces.internal.xni.Augmentations",
"com.sun.org.apache.xerces.internal.xni.XNIException"
] | import com.sun.org.apache.xerces.internal.xni.Augmentations; import com.sun.org.apache.xerces.internal.xni.XNIException; | import com.sun.org.apache.xerces.internal.xni.*; | [
"com.sun.org"
] | com.sun.org; | 1,184,497 |
public HashSet<String> getMsgDeps() {
HashSet<String> deps = new HashSet<String>();
for (ISmachableSensor sensor : this) {
deps.addAll(sensor.getImports());
}
return deps;
} | HashSet<String> function() { HashSet<String> deps = new HashSet<String>(); for (ISmachableSensor sensor : this) { deps.addAll(sensor.getImports()); } return deps; } | /**
* Creates Strings representing all message imports that are needed to
* communicate with all {@link ISmachableSensor} in this instance
*
* @return {@link HashSet} of all message imports
*/ | Creates Strings representing all message imports that are needed to communicate with all <code>ISmachableSensor</code> in this instance | getMsgDeps | {
"repo_name": "iti-luebeck/SmachApp",
"path": "app/src/main/java/de/uni_luebeck/iti/smachGenerator/SmachableSensors.java",
"license": "bsd-3-clause",
"size": 5796
} | [
"java.util.HashSet"
] | import java.util.HashSet; | import java.util.*; | [
"java.util"
] | java.util; | 853,258 |
public static boolean isArrow(int keyCode) {
switch (keyCode) {
case KeyCodes.KEY_DOWN:
case KeyCodes.KEY_RIGHT:
case KeyCodes.KEY_UP:
case KeyCodes.KEY_LEFT:
return true;
default:
return false;
}
} | static boolean function(int keyCode) { switch (keyCode) { case KeyCodes.KEY_DOWN: case KeyCodes.KEY_RIGHT: case KeyCodes.KEY_UP: case KeyCodes.KEY_LEFT: return true; default: return false; } } | /**
* Does the key code represent an arrow key?
*
* @param keyCode
* the key code
* @return if it is an arrow key code
*/ | Does the key code represent an arrow key | isArrow | {
"repo_name": "Darsstar/framework",
"path": "client/src/main/java/com/vaadin/client/widget/grid/events/GridKeyUpEvent.java",
"license": "apache-2.0",
"size": 3942
} | [
"com.google.gwt.event.dom.client.KeyCodes"
] | import com.google.gwt.event.dom.client.KeyCodes; | import com.google.gwt.event.dom.client.*; | [
"com.google.gwt"
] | com.google.gwt; | 2,599,900 |
@POST
@Path("noedit/{project}/{record}")
@ServiceDescription("Post metadata to repository without editing")
public Response postMetadataNoEdit(@PathParam("project") String project,
@PathParam("record") String record,
String metadata) throws ValidatorException
{
Obje... | @Path(STR) @ServiceDescription(STR) Response function(@PathParam(STR) String project, @PathParam(STR) String record, String metadata) throws ValidatorException { Objects.requireNonNull(project, STR); Objects.requireNonNull(record, STR); Objects.requireNonNull(metadata, STR); DataStore datastore = DataStoreFactory.getIn... | /**
* Posting metadata will cause the record to be created/updated and stored in repository
@param project
* The project the metadata record is in.
* @param record
* The identifier for the record.
* @param metadata
* The new metadata for the record.
... | Posting metadata will cause the record to be created/updated and stored in repository The project the metadata record is in | postMetadataNoEdit | {
"repo_name": "metno/metadata-editor",
"path": "src/main/java/no/met/metadataeditor/service/RESTApi.java",
"license": "gpl-2.0",
"size": 9581
} | [
"com.sun.jersey.api.Responses",
"java.util.Objects",
"javax.ws.rs.Path",
"javax.ws.rs.PathParam",
"javax.ws.rs.core.Response",
"no.met.metadataeditor.datastore.DataStore",
"no.met.metadataeditor.datastore.DataStoreFactory",
"no.met.metadataeditor.validation.ValidatorException"
] | import com.sun.jersey.api.Responses; import java.util.Objects; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.core.Response; import no.met.metadataeditor.datastore.DataStore; import no.met.metadataeditor.datastore.DataStoreFactory; import no.met.metadataeditor.validation.ValidatorException; | import com.sun.jersey.api.*; import java.util.*; import javax.ws.rs.*; import javax.ws.rs.core.*; import no.met.metadataeditor.datastore.*; import no.met.metadataeditor.validation.*; | [
"com.sun.jersey",
"java.util",
"javax.ws",
"no.met.metadataeditor"
] | com.sun.jersey; java.util; javax.ws; no.met.metadataeditor; | 322,088 |
private SPSSODescriptor getSPSsoDescriptor(final EntityDescriptor entityDescriptor) {
logger.debug("Locating SP SSO descriptor for SAML2 protocol...");
SPSSODescriptor spssoDescriptor = entityDescriptor.getSPSSODescriptor(SAMLConstants.SAML20P_NS);
if (spssoDescriptor == null) {
... | SPSSODescriptor function(final EntityDescriptor entityDescriptor) { logger.debug(STR); SPSSODescriptor spssoDescriptor = entityDescriptor.getSPSSODescriptor(SAMLConstants.SAML20P_NS); if (spssoDescriptor == null) { logger.debug(STR); spssoDescriptor = entityDescriptor.getSPSSODescriptor(SAMLConstants.SAML11P_NS); } if ... | /**
* Gets SP SSO descriptor.
*
* @param entityDescriptor the entity descriptor
* @return the SP SSO descriptor
*/ | Gets SP SSO descriptor | getSPSsoDescriptor | {
"repo_name": "y1011/cas-server",
"path": "cas-server-support-saml-mdui/src/main/java/org/jasig/cas/support/saml/web/flow/mdui/SamlMetadataUIParserAction.java",
"license": "apache-2.0",
"size": 7192
} | [
"org.opensaml.saml.common.xml.SAMLConstants",
"org.opensaml.saml.saml2.metadata.EntityDescriptor",
"org.opensaml.saml.saml2.metadata.SPSSODescriptor"
] | import org.opensaml.saml.common.xml.SAMLConstants; import org.opensaml.saml.saml2.metadata.EntityDescriptor; import org.opensaml.saml.saml2.metadata.SPSSODescriptor; | import org.opensaml.saml.common.xml.*; import org.opensaml.saml.saml2.metadata.*; | [
"org.opensaml.saml"
] | org.opensaml.saml; | 1,245,933 |
@Override
public boolean isWritable() {
return (Files.isWritable(this.path) && !Files.isDirectory(this.path));
} | boolean function() { return (Files.isWritable(this.path) && !Files.isDirectory(this.path)); } | /**
* This implementation checks whether the underlying file is marked as writable
* (and corresponds to an actual file with content, not to a directory).
* @see java.nio.file.Files#isWritable(Path)
* @see java.nio.file.Files#isDirectory(Path, java.nio.file.LinkOption...)
*/ | This implementation checks whether the underlying file is marked as writable (and corresponds to an actual file with content, not to a directory) | isWritable | {
"repo_name": "spring-projects/spring-framework",
"path": "spring-core/src/main/java/org/springframework/core/io/PathResource.java",
"license": "apache-2.0",
"size": 9070
} | [
"java.nio.file.Files"
] | import java.nio.file.Files; | import java.nio.file.*; | [
"java.nio"
] | java.nio; | 2,662,632 |
if(preferredWidth < 0)
return 0;
return Math.min(preferredWidth, Toolkit.getDefaultToolkit()
.getScreenSize().width);
}
| if(preferredWidth < 0) return 0; return Math.min(preferredWidth, Toolkit.getDefaultToolkit() .getScreenSize().width); } | /**
* Returns the closest valid width.
* @param preferredWidth preferred width
* @return width
*/ | Returns the closest valid width | getValidWidth | {
"repo_name": "losvald/sglj",
"path": "src/main/java/org/sglj/swing/util/ScreenUtils.java",
"license": "lgpl-3.0",
"size": 2340
} | [
"java.awt.Toolkit"
] | import java.awt.Toolkit; | import java.awt.*; | [
"java.awt"
] | java.awt; | 1,577,354 |
@Override
public ISerializableLabelBean deserializeBean(Map<String, String> attributes) {
String strObjectID = attributes.get("objectID");
if (strObjectID!=null) {
this.setObjectID(new Integer(strObjectID));
}
this.setName(attributes.get("name"));
this.setLabel(attributes.get("label"));
t... | ISerializableLabelBean function(Map<String, String> attributes) { String strObjectID = attributes.get(STR); if (strObjectID!=null) { this.setObjectID(new Integer(strObjectID)); } this.setName(attributes.get("name")); this.setLabel(attributes.get("label")); this.setIndex(Integer.parseInt(attributes.get("index"))); this.... | /**A
* Deserialize the labelBean
* @param attributes
* @return
*/ | A Deserialize the labelBean | deserializeBean | {
"repo_name": "trackplus/Genji",
"path": "src/main/java/com/aurel/track/beans/TScreenTabBean.java",
"license": "gpl-3.0",
"size": 5112
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,332,389 |
RouteDefinition getRouteDefinition(String id); | RouteDefinition getRouteDefinition(String id); | /**
* Gets the route definition with the given id
*
* @param id id of the route
* @return the route definition or <tt>null</tt> if not found
*/ | Gets the route definition with the given id | getRouteDefinition | {
"repo_name": "tlehoux/camel",
"path": "camel-core/src/main/java/org/apache/camel/CamelContext.java",
"license": "apache-2.0",
"size": 77596
} | [
"org.apache.camel.model.RouteDefinition"
] | import org.apache.camel.model.RouteDefinition; | import org.apache.camel.model.*; | [
"org.apache.camel"
] | org.apache.camel; | 1,646,493 |
@ApiModelProperty(example = "null", required = true, value = "")
public String getNameOnCard() {
return nameOnCard;
} | @ApiModelProperty(example = "null", required = true, value = "") String function() { return nameOnCard; } | /**
* Get nameOnCard
* @return nameOnCard
**/ | Get nameOnCard | getNameOnCard | {
"repo_name": "ixaris/ope-applicationclients",
"path": "java-client/src/main/java/com/ixaris/ope/applications/client/model/ManagedCard.java",
"license": "mit",
"size": 29097
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 2,487,129 |
public static TokenOperatorPS parse(String exp) throws URITemplateSyntaxException {
String sexp = strip(exp);
if (sexp.length() < 2)
throw new URITemplateSyntaxException(exp, "Cannot produce a valid token operator.");
char c = sexp.charAt(0);
Operator operator = TokenOperatorPS.toOperator(c);
if (operat... | static TokenOperatorPS function(String exp) throws URITemplateSyntaxException { String sexp = strip(exp); if (sexp.length() < 2) throw new URITemplateSyntaxException(exp, STR); char c = sexp.charAt(0); Operator operator = TokenOperatorPS.toOperator(c); if (operator == null) throw new URITemplateSyntaxException(String.v... | /**
* Parses the specified string and returns the corresponding token.
*
* This method accepts both the raw expression or the expression wrapped in
* curly brackets.
*
* @param exp
* The expression to parse.
*
* @return The corresponding token.
*
* @throws URITemplateSyntaxException... | Parses the specified string and returns the corresponding token. This method accepts both the raw expression or the expression wrapped in curly brackets | parse | {
"repo_name": "daima/solo-spring",
"path": "src/main/java/org/weborganic/furi/TokenOperatorPS.java",
"license": "apache-2.0",
"size": 14925
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 779,153 |
public static double meanDifference(final double[] sample1, final double[] sample2)
throws DimensionMismatchException, NoDataException{
return sumDifference(sample1, sample2) / sample1.length;
} | static double function(final double[] sample1, final double[] sample2) throws DimensionMismatchException, NoDataException{ return sumDifference(sample1, sample2) / sample1.length; } | /**
* Returns the mean of the (signed) differences between corresponding elements of the
* input arrays -- i.e., sum(sample1[i] - sample2[i]) / sample1.length.
*
* @param sample1 the first array
* @param sample2 the second array
* @return mean of paired differences
* @throws Dimensi... | Returns the mean of the (signed) differences between corresponding elements of the input arrays -- i.e., sum(sample1[i] - sample2[i]) / sample1.length | meanDifference | {
"repo_name": "tbepler/seq-svm",
"path": "src/org/apache/commons/math3/stat/StatUtils.java",
"license": "mit",
"size": 38065
} | [
"org.apache.commons.math3.exception.DimensionMismatchException",
"org.apache.commons.math3.exception.NoDataException"
] | import org.apache.commons.math3.exception.DimensionMismatchException; import org.apache.commons.math3.exception.NoDataException; | import org.apache.commons.math3.exception.*; | [
"org.apache.commons"
] | org.apache.commons; | 1,229,643 |
List<String> getGroupByAttributesForEffectiveDating(Class<?> businessObjectClass);
| List<String> getGroupByAttributesForEffectiveDating(Class<?> businessObjectClass); | /**
* Returns the list of attributes that should be used for grouping when determining the current
* status of a business object that implements InactivateableFromTo
*
* @param businessObjectClass - business object class to get configured list for
* @return List of string attribute names t... | Returns the list of attributes that should be used for grouping when determining the current status of a business object that implements InactivateableFromTo | getGroupByAttributesForEffectiveDating | {
"repo_name": "kuali/kc-rice",
"path": "rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/service/DataDictionaryService.java",
"license": "apache-2.0",
"size": 19553
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 498,543 |
@Auditable(parameters = {"contextNodeRef", "namePattern", "includeSubFolders"})
public List<FileInfo> search(
NodeRef contextNodeRef,
String namePattern,
boolean includeSubFolders);
| @Auditable(parameters = {STR, STR, STR}) List<FileInfo> function( NodeRef contextNodeRef, String namePattern, boolean includeSubFolders); | /**
* Searches for all files and folders with the matching name pattern,
* using wildcard characters <b>*</b> and <b>?</b>.
*
* Warning: Please avoid using this method with any "namePattern" other than "*".
* Although it works, its performance is poor, which is why this method is deprec... | Searches for all files and folders with the matching name pattern, using wildcard characters * and ?. Warning: Please avoid using this method with any "namePattern" other than "*". Although it works, its performance is poor, which is why this method is deprecated | search | {
"repo_name": "Alfresco/alfresco-repository",
"path": "src/main/java/org/alfresco/service/cmr/model/FileFolderService.java",
"license": "lgpl-3.0",
"size": 22822
} | [
"java.util.List",
"org.alfresco.service.Auditable",
"org.alfresco.service.cmr.repository.NodeRef"
] | import java.util.List; import org.alfresco.service.Auditable; import org.alfresco.service.cmr.repository.NodeRef; | import java.util.*; import org.alfresco.service.*; import org.alfresco.service.cmr.repository.*; | [
"java.util",
"org.alfresco.service"
] | java.util; org.alfresco.service; | 2,534,281 |
public void getData( SalesforceInputMeta in ) {
wURL.setText( Const.NVL( in.getTargetURL(), "" ) );
wUserName.setText( Const.NVL( in.getUserName(), "" ) );
wPassword.setText( Const.NVL( in.getPassword(), "" ) );
wModule.setText( Const.NVL( in.getModule(), "Account" ) );
wCondition.setText( Const.N... | void function( SalesforceInputMeta in ) { wURL.setText( Const.NVL( in.getTargetURL(), STRSTRSTRAccountSTRSTRSTRSTRSTRSTRSTRSTRSTRSTRSTRSTRSalesforceInputDialog.Log.GettingFieldsInfoSTRSystem.Combo.YesSTRSystem.Combo.NoSTRSTRSTRSystem.Combo.YesSTRSystem.Combo.NoSTR-1STR-1".equals( prec ) ) { item.setText( 7, prec ); } i... | /**
* Read the data from the TextFileInputMeta object and show it in this dialog.
*
* @param in
* The SalesforceInputMeta object to obtain the data from.
*/ | Read the data from the TextFileInputMeta object and show it in this dialog | getData | {
"repo_name": "IvanNikolaychuk/pentaho-kettle",
"path": "plugins/salesforce/src/org/pentaho/di/ui/trans/steps/salesforceinput/SalesforceInputDialog.java",
"license": "apache-2.0",
"size": 77923
} | [
"org.pentaho.di.core.Const",
"org.pentaho.di.trans.steps.salesforceinput.SalesforceInputMeta"
] | import org.pentaho.di.core.Const; import org.pentaho.di.trans.steps.salesforceinput.SalesforceInputMeta; | import org.pentaho.di.core.*; import org.pentaho.di.trans.steps.salesforceinput.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 2,440,653 |
JSONArray domain = new JSONArray();
domain.put(column);
domain.put(operator);
if (value instanceof List) {
domain.put(listToArray(value));
} else {
domain.put(value);
}
add(domain);
return this;
} | JSONArray domain = new JSONArray(); domain.put(column); domain.put(operator); if (value instanceof List) { domain.put(listToArray(value)); } else { domain.put(value); } add(domain); return this; } | /**
* Add Domain with column, operator and it's condition value
*
* @param column column name
* @param operator conditional operator
* @param value condition value
* @return self object
*/ | Add Domain with column, operator and it's condition value | add | {
"repo_name": "js-superion/framework-master",
"path": "app/src/main/java/com/odoo/core/rpc/helper/ODomain.java",
"license": "agpl-3.0",
"size": 2073
} | [
"java.util.List",
"org.json.JSONArray"
] | import java.util.List; import org.json.JSONArray; | import java.util.*; import org.json.*; | [
"java.util",
"org.json"
] | java.util; org.json; | 1,577,893 |
public static MozuClient<com.mozu.api.contracts.productadmin.Attribute> getAttributeClient(String attributeFQN) throws Exception
{
return getAttributeClient( attributeFQN, null);
}
| static MozuClient<com.mozu.api.contracts.productadmin.Attribute> function(String attributeFQN) throws Exception { return getAttributeClient( attributeFQN, null); } | /**
*
* <p><pre><code>
* MozuClient<com.mozu.api.contracts.productadmin.Attribute> mozuClient=GetAttributeClient( attributeFQN);
* client.setBaseAddress(url);
* client.executeRequest();
* Attribute attribute = client.Result();
* </code></pre></p>
* @param attributeFQN Fully qualified name for a... | <code><code> MozuClient mozuClient=GetAttributeClient( attributeFQN); client.setBaseAddress(url); client.executeRequest(); Attribute attribute = client.Result(); </code></code> | getAttributeClient | {
"repo_name": "Mozu/mozu-java",
"path": "mozu-java-core/src/main/java/com/mozu/api/clients/commerce/catalog/admin/attributedefinition/AttributeClient.java",
"license": "mit",
"size": 12978
} | [
"com.mozu.api.MozuClient"
] | import com.mozu.api.MozuClient; | import com.mozu.api.*; | [
"com.mozu.api"
] | com.mozu.api; | 895,016 |
void getMemberRange(
Level level, Member startMember, Member endMember, List<Member> list); | void getMemberRange( Level level, Member startMember, Member endMember, List<Member> list); | /**
* Appends to <code>list</code> all members between <code>startMember</code>
* and <code>endMember</code> (inclusive) which belong to
* <code>level</code>.
*/ | Appends to <code>list</code> all members between <code>startMember</code> and <code>endMember</code> (inclusive) which belong to <code>level</code> | getMemberRange | {
"repo_name": "Twixer/mondrian-3.1.5",
"path": "src/main/mondrian/olap/SchemaReader.java",
"license": "epl-1.0",
"size": 14002
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 376,857 |
Map<String, Map<String,String>> findConfigurationTagsWithOverrides(
Cluster cluster, String hostName) throws AmbariException; | Map<String, Map<String,String>> findConfigurationTagsWithOverrides( Cluster cluster, String hostName) throws AmbariException; | /**
* Find configuration tags with applied overrides
*
* @param cluster the cluster
* @param hostName the host name
*
* @return the configuration tags
*
* @throws AmbariException if configuration tags can not be obtained
*/ | Find configuration tags with applied overrides | findConfigurationTagsWithOverrides | {
"repo_name": "radicalbit/ambari",
"path": "ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementController.java",
"license": "apache-2.0",
"size": 30426
} | [
"java.util.Map",
"org.apache.ambari.server.AmbariException",
"org.apache.ambari.server.state.Cluster"
] | import java.util.Map; import org.apache.ambari.server.AmbariException; import org.apache.ambari.server.state.Cluster; | import java.util.*; import org.apache.ambari.server.*; import org.apache.ambari.server.state.*; | [
"java.util",
"org.apache.ambari"
] | java.util; org.apache.ambari; | 935,872 |
@Nonnull
public java.util.List<com.microsoft.graph.options.FunctionOption> getFunctionOptions() {
final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>();
if(this.values != null) {
result.add(new com.microsoft.graph.options.FunctionOption("values", valu... | java.util.List<com.microsoft.graph.options.FunctionOption> function() { final ArrayList<com.microsoft.graph.options.FunctionOption> result = new ArrayList<>(); if(this.values != null) { result.add(new com.microsoft.graph.options.FunctionOption(STR, values)); } return result; } | /**
* Gets the functions options from the properties that have been set
* @return a list of function options for the request
*/ | Gets the functions options from the properties that have been set | getFunctionOptions | {
"repo_name": "microsoftgraph/msgraph-sdk-java",
"path": "src/main/java/com/microsoft/graph/models/WorkbookFunctionsStDev_PParameterSet.java",
"license": "mit",
"size": 3444
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 169,893 |
public void addRuleInstances(Digester digester) {
digester.addRule(prefix + "web-app",
new SetPublicIdRule(digester, "setPublicId"));
digester.addCallMethod(prefix + "web-app/context-param",
"addParameter", 2);
digester.addCallParam(prefix + "web-app/context-param/param-name", 0);
di... | void function(Digester digester) { digester.addRule(prefix + STR, new SetPublicIdRule(digester, STR)); digester.addCallMethod(prefix + STR, STR, 2); digester.addCallParam(prefix + STR, 0); digester.addCallParam(prefix + STR, 1); digester.addCallMethod(prefix + STR, STR, 0); digester.addRule(prefix + STR, new SetDistrib... | /**
* <p>Add the set of Rule instances defined in this RuleSet to the
* specified <code>Digester</code> instance, associating them with
* our namespace URI (if any). This method should only be called
* by a Digester instance.</p>
*
* @param digester Digester instance to which the new Rule instances
... | Add the set of Rule instances defined in this RuleSet to the specified <code>Digester</code> instance, associating them with our namespace URI (if any). This method should only be called by a Digester instance | addRuleInstances | {
"repo_name": "NorthFacing/step-by-Java",
"path": "fra-tomcat/fra-tomcat-analysis/source/book01/HowTomcatWorks/src/org/apache/catalina/startup/WebRuleSet.java",
"license": "gpl-2.0",
"size": 18612
} | [
"org.apache.commons.digester.Digester",
"org.apache.commons.digester.Rule"
] | import org.apache.commons.digester.Digester; import org.apache.commons.digester.Rule; | import org.apache.commons.digester.*; | [
"org.apache.commons"
] | org.apache.commons; | 2,761,971 |
public void initType(Object input, Enumerator current); | void function(Object input, Enumerator current); | /**
* Init the type
* @param input the viewer input
* @param current the current value
*/ | Init the type | initType | {
"repo_name": "prabushi/devstudio-tooling-esb",
"path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src-gen/org/wso2/developerstudio/eclipse/gmf/esb/parts/InboundEndpointPropertiesEditionPart.java",
"license": "apache-2.0",
"size": 71590
} | [
"org.eclipse.emf.common.util.Enumerator"
] | import org.eclipse.emf.common.util.Enumerator; | import org.eclipse.emf.common.util.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,546,021 |
public static void storeLocale(Map objectModel,
String attribute,
String locale,
boolean storeInRequest,
boolean storeInSession,
boolean stor... | static void function(Map objectModel, String attribute, String locale, boolean storeInRequest, boolean storeInSession, boolean storeInCookie, boolean createSession) { if (storeInRequest) { Request request = ObjectModelHelper.getRequest(objectModel); request.setAttribute(attribute, locale); } if (storeInSession) { Reque... | /**
* Store locale in request, session, or cookie.
* @since 2.1.6
*/ | Store locale in request, session, or cookie | storeLocale | {
"repo_name": "apache/cocoon",
"path": "core/cocoon-core/src/main/java/org/apache/cocoon/i18n/I18nUtils.java",
"license": "apache-2.0",
"size": 9784
} | [
"java.util.Map",
"javax.servlet.http.HttpSession",
"org.apache.cocoon.environment.ObjectModelHelper",
"org.apache.cocoon.environment.Request",
"org.apache.cocoon.environment.Response"
] | import java.util.Map; import javax.servlet.http.HttpSession; import org.apache.cocoon.environment.ObjectModelHelper; import org.apache.cocoon.environment.Request; import org.apache.cocoon.environment.Response; | import java.util.*; import javax.servlet.http.*; import org.apache.cocoon.environment.*; | [
"java.util",
"javax.servlet",
"org.apache.cocoon"
] | java.util; javax.servlet; org.apache.cocoon; | 618,561 |
public TrackSelectionDialogBuilder setOverride(@Nullable SelectionOverride override) {
return setOverrides(
override == null ? Collections.emptyList() : Collections.singletonList(override));
} | TrackSelectionDialogBuilder function(@Nullable SelectionOverride override) { return setOverrides( override == null ? Collections.emptyList() : Collections.singletonList(override)); } | /**
* Sets the initial selection override to show.
*
* @param override The initial override to show, or null for no override.
* @return This builder, for convenience.
*/ | Sets the initial selection override to show | setOverride | {
"repo_name": "androidx/media",
"path": "libraries/ui/src/main/java/androidx/media3/ui/TrackSelectionDialogBuilder.java",
"license": "apache-2.0",
"size": 12512
} | [
"androidx.annotation.Nullable",
"androidx.media3.exoplayer.trackselection.DefaultTrackSelector",
"java.util.Collections"
] | import androidx.annotation.Nullable; import androidx.media3.exoplayer.trackselection.DefaultTrackSelector; import java.util.Collections; | import androidx.annotation.*; import androidx.media3.exoplayer.trackselection.*; import java.util.*; | [
"androidx.annotation",
"androidx.media3",
"java.util"
] | androidx.annotation; androidx.media3; java.util; | 2,528,212 |
public void getImage( OutputStream out, String imageDir, String imageID )
throws EngineException
{
//As imageID is created by handleImage(), we need check the imageID first to avoid
//user uses this API read arbitrary file in disk.
if ( imageID.indexOf( "./" ) != -1 || imageID.indexOf( ".\\" ) != -1 )
{
... | void function( OutputStream out, String imageDir, String imageID ) throws EngineException { if ( imageID.indexOf( "./" ) != -1 imageID.indexOf( ".\\" ) != -1 ) { throw new EngineException( MessageConstants.MISSING_IMAGE_FILE_ERROR ); } File imageFile = new File( imageDir, imageID ); if ( !imageFile.exists( ) ) { throw ... | /**
* get image
*
* @param out
* the output stream of image
* @param imageDir
* the image directory
* @param imageID
* id of image
* @throws IOException
*/ | get image | getImage | {
"repo_name": "sguan-actuate/birt",
"path": "engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/HTMLServerImageHandler.java",
"license": "epl-1.0",
"size": 9247
} | [
"java.io.File",
"java.io.FileInputStream",
"java.io.IOException",
"java.io.InputStream",
"java.io.OutputStream",
"org.eclipse.birt.report.engine.i18n.MessageConstants"
] | import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.eclipse.birt.report.engine.i18n.MessageConstants; | import java.io.*; import org.eclipse.birt.report.engine.i18n.*; | [
"java.io",
"org.eclipse.birt"
] | java.io; org.eclipse.birt; | 15,270 |
public static String getWarningRiskLevel(String dic)
{
int dictn = Integer.parseInt(dic);
String ret = "error.no";
switch (dictn)
{
case RISKLEVEL_WARNING_HIGH_INT:
ret = RISKLEVEL_WARNING_HIGH_LBL;
break;
case RISKLEVEL_WARNING_LOW_INT:
ret = RISKLEVEL_WARNING_LOW_LBL;
break;
}
re... | static String function(String dic) { int dictn = Integer.parseInt(dic); String ret = STR; switch (dictn) { case RISKLEVEL_WARNING_HIGH_INT: ret = RISKLEVEL_WARNING_HIGH_LBL; break; case RISKLEVEL_WARNING_LOW_INT: ret = RISKLEVEL_WARNING_LOW_LBL; break; } return Labels.getLabel(ret); } | /**
* Static function which returns the risk level label
*
* @param dic Numerical id of the risk level
* @return Localized string with the risk level value
*/ | Static function which returns the risk level label | getWarningRiskLevel | {
"repo_name": "rosogon/SoftCare-Case-Study",
"path": "softcare-gui/src/eu/ehealth/SystemDictionary.java",
"license": "apache-2.0",
"size": 26504
} | [
"org.zkoss.util.resource.Labels"
] | import org.zkoss.util.resource.Labels; | import org.zkoss.util.resource.*; | [
"org.zkoss.util"
] | org.zkoss.util; | 2,716,156 |
private void addBreakpointsFor(IContainer container) {
try {
IMarker[] markers = container.findMarkers(PyBreakpoint.PY_BREAK_MARKER, true, IResource.DEPTH_INFINITE);
IMarker[] condMarkers = container.findMarkers(PyBreakpoint.PY_CONDITIONAL_BREAK_MARKER, true,
IRes... | void function(IContainer container) { try { IMarker[] markers = container.findMarkers(PyBreakpoint.PY_BREAK_MARKER, true, IResource.DEPTH_INFINITE); IMarker[] condMarkers = container.findMarkers(PyBreakpoint.PY_CONDITIONAL_BREAK_MARKER, true, IResource.DEPTH_INFINITE); IMarker[] djangoMarkers = container.findMarkers(Py... | /**
* Adds the breakpoints associated with a container.
* @param container the container we're interested in (usually workspace root)
*/ | Adds the breakpoints associated with a container | addBreakpointsFor | {
"repo_name": "akurtakov/Pydev",
"path": "plugins/org.python.pydev.debug/src/org/python/pydev/debug/model/AbstractDebugTarget.java",
"license": "epl-1.0",
"size": 37867
} | [
"org.eclipse.core.resources.IContainer",
"org.eclipse.core.resources.IMarker",
"org.eclipse.core.resources.IResource",
"org.eclipse.debug.core.DebugPlugin",
"org.eclipse.debug.core.IBreakpointManager",
"org.python.pydev.debug.core.PydevDebugPlugin"
] | import org.eclipse.core.resources.IContainer; import org.eclipse.core.resources.IMarker; import org.eclipse.core.resources.IResource; import org.eclipse.debug.core.DebugPlugin; import org.eclipse.debug.core.IBreakpointManager; import org.python.pydev.debug.core.PydevDebugPlugin; | import org.eclipse.core.resources.*; import org.eclipse.debug.core.*; import org.python.pydev.debug.core.*; | [
"org.eclipse.core",
"org.eclipse.debug",
"org.python.pydev"
] | org.eclipse.core; org.eclipse.debug; org.python.pydev; | 2,254,050 |
public boolean tryAssignResource(final LogicalSlot logicalSlot) {
assertRunningInJobMasterMainThread();
checkNotNull(logicalSlot);
// only allow to set the assigned resource in state SCHEDULED or CREATED
// note: we also accept resource assignment when being in state CREATED for testing purposes
if (sta... | boolean function(final LogicalSlot logicalSlot) { assertRunningInJobMasterMainThread(); checkNotNull(logicalSlot); if (state == SCHEDULED state == CREATED) { if (assignedResource == null) { assignedResource = logicalSlot; if (logicalSlot.tryAssignPayload(this)) { if ((state == SCHEDULED state == CREATED) && !taskManage... | /**
* Tries to assign the given slot to the execution. The assignment works only if the
* Execution is in state SCHEDULED. Returns true, if the resource could be assigned.
*
* @param logicalSlot to assign to this execution
* @return true if the slot could be assigned to the execution, otherwise false
*/ | Tries to assign the given slot to the execution. The assignment works only if the Execution is in state SCHEDULED. Returns true, if the resource could be assigned | tryAssignResource | {
"repo_name": "GJL/flink",
"path": "flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/Execution.java",
"license": "apache-2.0",
"size": 65174
} | [
"org.apache.flink.runtime.jobmaster.LogicalSlot",
"org.apache.flink.util.Preconditions"
] | import org.apache.flink.runtime.jobmaster.LogicalSlot; import org.apache.flink.util.Preconditions; | import org.apache.flink.runtime.jobmaster.*; import org.apache.flink.util.*; | [
"org.apache.flink"
] | org.apache.flink; | 1,528,099 |
protected String readData() throws IOException {
String line = getLine();
if (line == null) {
this.file.seek(0);
line = getLine();
}
return line;
} | String function() throws IOException { String line = getLine(); if (line == null) { this.file.seek(0); line = getLine(); } return line; } | /**
* Read data from predefined data file.
*
* @return Next line from the file.
* @throws IOException
*/ | Read data from predefined data file | readData | {
"repo_name": "aaronhayes/ICE-SmartHome",
"path": "src/sensors/SensorAbstract.java",
"license": "mit",
"size": 4073
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 708,534 |
protected void updateOrganization(Organization value, String xmlTag, Counter counter, Element element)
{
boolean shouldExist = value != null;
Element root = updateElement(counter, element, xmlTag, shouldExist);
if (shouldExist)
{
Counter innerCount = new Counter(counter.getDepth()... | void function(Organization value, String xmlTag, Counter counter, Element element) { boolean shouldExist = value != null; Element root = updateElement(counter, element, xmlTag, shouldExist); if (shouldExist) { Counter innerCount = new Counter(counter.getDepth() + 1); findAndReplaceSimpleElement(innerCount, root, "name"... | /**
* Method updateOrganization.
*
* @param value
* @param element
* @param counter
* @param xmlTag
*/ | Method updateOrganization | updateOrganization | {
"repo_name": "jerr/jbossforge-core",
"path": "maven/impl/src/main/java/org/jboss/forge/addon/maven/util/MavenJDOMWriter.java",
"license": "epl-1.0",
"size": 84577
} | [
"org.apache.maven.model.Organization",
"org.jdom.Element"
] | import org.apache.maven.model.Organization; import org.jdom.Element; | import org.apache.maven.model.*; import org.jdom.*; | [
"org.apache.maven",
"org.jdom"
] | org.apache.maven; org.jdom; | 1,669,340 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.