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 Color getTextColor() { checkWidget(); return this.textColor; }
Color function() { checkWidget(); return this.textColor; }
/** * Returns the color of the text when the button is enabled and not selected. * * @return the receiver's text color * * @exception SWTException * <ul> * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> * <li>ERROR_THREAD_INVALID...
Returns the color of the text when the button is enabled and not selected
getTextColor
{ "repo_name": "Haixing-Hu/swt-widgets", "path": "src/main/java/com/github/haixing_hu/swt/toolbar/BreadCrumbItem.java", "license": "epl-1.0", "size": 32844 }
[ "org.eclipse.swt.graphics.Color" ]
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
744,471
public MeshPrimitiveBuilder setIntIndices(IntBuffer indices) { return setIndicesInternal( GltfConstants.GL_UNSIGNED_INT, "SCALAR", Buffers.createByteBufferFrom(indices)); }
MeshPrimitiveBuilder function(IntBuffer indices) { return setIndicesInternal( GltfConstants.GL_UNSIGNED_INT, STR, Buffers.createByteBufferFrom(indices)); }
/** * Set the given indices as the indices for the mesh primitive. * The indices will be of the type "unsigned int" * * @param indices The indices * @return This builder */
Set the given indices as the indices for the mesh primitive. The indices will be of the type "unsigned int"
setIntIndices
{ "repo_name": "javagl/JglTF", "path": "jgltf-model-builder/src/main/java/de/javagl/jgltf/model/creation/MeshPrimitiveBuilder.java", "license": "mit", "size": 13128 }
[ "de.javagl.jgltf.model.GltfConstants", "de.javagl.jgltf.model.io.Buffers", "java.nio.IntBuffer" ]
import de.javagl.jgltf.model.GltfConstants; import de.javagl.jgltf.model.io.Buffers; import java.nio.IntBuffer;
import de.javagl.jgltf.model.*; import de.javagl.jgltf.model.io.*; import java.nio.*;
[ "de.javagl.jgltf", "java.nio" ]
de.javagl.jgltf; java.nio;
1,240,016
static ByteBuffer stashString(ByteBuffer target, String string, Charset charset) { byte[] bytes = string.getBytes(charset); stashIntN(target, bytes.length); return target.put(bytes); }
static ByteBuffer stashString(ByteBuffer target, String string, Charset charset) { byte[] bytes = string.getBytes(charset); stashIntN(target, bytes.length); return target.put(bytes); }
/** * Store string using UTF 8 charset. * * @param target buffer to write to * @param string string to store * @param charset charset used for encoding */
Store string using UTF 8 charset
stashString
{ "repo_name": "sormuras/stash", "path": "com.github.sormuras.stash/main/java/com/github/sormuras/stash/Stashable.java", "license": "apache-2.0", "size": 11354 }
[ "java.nio.ByteBuffer", "java.nio.charset.Charset" ]
import java.nio.ByteBuffer; import java.nio.charset.Charset;
import java.nio.*; import java.nio.charset.*;
[ "java.nio" ]
java.nio;
2,052,827
@Test public void test_sonar_runner_inspection() { orchestrator.getServer().restoreProfile(FileLocation.ofClasspath("/analysis/MultiLanguageTest/one-issue-per-line.xml")); orchestrator.getServer().restoreProfile(FileLocation.ofClasspath("/analysis/MultiLanguageTest/one-issue-per-line-xoo2.xml")); orche...
void function() { orchestrator.getServer().restoreProfile(FileLocation.ofClasspath(STR)); orchestrator.getServer().restoreProfile(FileLocation.ofClasspath(STR)); orchestrator.getServer().provisionProject(STR, STR); orchestrator.getServer().associateProjectToQualityProfile(STR, "xoo", STR); orchestrator.getServer().asso...
/** * SONAR-926 * SONAR-5069 */
SONAR-926 SONAR-5069
test_sonar_runner_inspection
{ "repo_name": "Builders-SonarSource/sonarqube-bis", "path": "it/it-tests/src/test/java/it/analysis/MultiLanguageTest.java", "license": "lgpl-3.0", "size": 3242 }
[ "com.sonar.orchestrator.build.BuildResult", "com.sonar.orchestrator.build.SonarScanner", "com.sonar.orchestrator.locator.FileLocation", "java.util.Map", "org.assertj.core.api.Assertions" ]
import com.sonar.orchestrator.build.BuildResult; import com.sonar.orchestrator.build.SonarScanner; import com.sonar.orchestrator.locator.FileLocation; import java.util.Map; import org.assertj.core.api.Assertions;
import com.sonar.orchestrator.build.*; import com.sonar.orchestrator.locator.*; import java.util.*; import org.assertj.core.api.*;
[ "com.sonar.orchestrator", "java.util", "org.assertj.core" ]
com.sonar.orchestrator; java.util; org.assertj.core;
1,720,041
public static ImmutableList<String> getDefaultServiceScopes() { return DEFAULT_SERVICE_SCOPES; }
static ImmutableList<String> function() { return DEFAULT_SERVICE_SCOPES; }
/** * Returns the default service scopes. */
Returns the default service scopes
getDefaultServiceScopes
{ "repo_name": "ethanbao/api-client-staging-1", "path": "generated/java/google-devtools-clouderrorreporting-v1beta1/src/main/java/com/google/cloud/errorreporting/spi/v1beta1/ErrorGroupServiceSettings.java", "license": "bsd-3-clause", "size": 11076 }
[ "com.google.common.collect.ImmutableList" ]
import com.google.common.collect.ImmutableList;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
2,512,515
public static Compare getInstance(String operator) { Assert.notNull("operator", operator); return INSTANCE_MAP.get(operator); }
static Compare function(String operator) { Assert.notNull(STR, operator); return INSTANCE_MAP.get(operator); }
/** * Returns a <code>Compare</code> instance for the specified operator. * * @param operator * @return A <code>Compare</code> instance for the specified operator */
Returns a <code>Compare</code> instance for the specified operator
getInstance
{ "repo_name": "yuri0x7c1/ofbiz-explorer", "path": "src/test/resources/apache-ofbiz-17.12.04/framework/minilang/src/main/java/org/apache/ofbiz/minilang/method/conditional/Compare.java", "license": "apache-2.0", "size": 11477 }
[ "org.apache.ofbiz.base.util.Assert" ]
import org.apache.ofbiz.base.util.Assert;
import org.apache.ofbiz.base.util.*;
[ "org.apache.ofbiz" ]
org.apache.ofbiz;
2,490,991
public DatastoreIdentifier newForeignKeyFieldIdentifier(AbstractMemberMetaData ownerFmd, DatastoreIdentifier destinationId, boolean embedded, int fieldRole) { if (fieldRole == FieldRole.ROLE_OWNER) { // FK field (FK collection/array/list/map) return newDatasto...
DatastoreIdentifier function(AbstractMemberMetaData ownerFmd, DatastoreIdentifier destinationId, boolean embedded, int fieldRole) { if (fieldRole == FieldRole.ROLE_OWNER) { return newDatastoreFieldIdentifier(ownerFmd.getName() + "." + destinationId.getIdentifierName(), embedded, fieldRole); } else if (fieldRole == Fiel...
/** * Method to generate a FK/FK-index field identifier. * The identifier could be for the FK field itself, or for a related index for the FK. * @param ownerFmd MetaData for the owner field * @param destinationId Identifier for the identity field of the destination table (if strict FK) * @para...
Method to generate a FK/FK-index field identifier. The identifier could be for the FK field itself, or for a related index for the FK
newForeignKeyFieldIdentifier
{ "repo_name": "GoogleCloudPlatform/datanucleus-appengine", "path": "src/org/datanucleus/store/mapped/identifier/DN2IdentifierFactory.java", "license": "apache-2.0", "size": 9949 }
[ "org.datanucleus.exceptions.NucleusException", "org.datanucleus.metadata.AbstractMemberMetaData", "org.datanucleus.metadata.FieldRole", "org.datanucleus.store.mapped.DatastoreIdentifier" ]
import org.datanucleus.exceptions.NucleusException; import org.datanucleus.metadata.AbstractMemberMetaData; import org.datanucleus.metadata.FieldRole; import org.datanucleus.store.mapped.DatastoreIdentifier;
import org.datanucleus.exceptions.*; import org.datanucleus.metadata.*; import org.datanucleus.store.mapped.*;
[ "org.datanucleus.exceptions", "org.datanucleus.metadata", "org.datanucleus.store" ]
org.datanucleus.exceptions; org.datanucleus.metadata; org.datanucleus.store;
936,001
private void registerCompileAndArchiveActions( CompilationArtifacts compilationArtifacts, ObjcProvider objcProvider, Optional<CppModuleMap> moduleMap, boolean isCodeCoverageEnabled, boolean isFullyLinkEnabled) throws InterruptedException { ImmutableList.Builder<Artifact> objFiles = n...
void function( CompilationArtifacts compilationArtifacts, ObjcProvider objcProvider, Optional<CppModuleMap> moduleMap, boolean isCodeCoverageEnabled, boolean isFullyLinkEnabled) throws InterruptedException { ImmutableList.Builder<Artifact> objFiles = new ImmutableList.Builder<>(); for (Artifact sourceFile : compilation...
/** * Creates actions to compile each source file individually, and link all the compiled object * files into a single archive library. */
Creates actions to compile each source file individually, and link all the compiled object files into a single archive library
registerCompileAndArchiveActions
{ "repo_name": "whuwxl/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java", "license": "apache-2.0", "size": 63192 }
[ "com.google.common.base.Optional", "com.google.common.collect.ImmutableList", "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.rules.cpp.CppModuleMap", "com.google.devtools.build.lib.rules.objc.XcodeProvider" ]
import com.google.common.base.Optional; import com.google.common.collect.ImmutableList; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.rules.cpp.CppModuleMap; import com.google.devtools.build.lib.rules.objc.XcodeProvider;
import com.google.common.base.*; import com.google.common.collect.*; import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.rules.cpp.*; import com.google.devtools.build.lib.rules.objc.*;
[ "com.google.common", "com.google.devtools" ]
com.google.common; com.google.devtools;
962,754
public static Future<IMendixObject> rollbackAsync(IContext context, IMendixObject object) { return component.core().rollbackAsync(context, object); }
static Future<IMendixObject> function(IContext context, IMendixObject object) { return component.core().rollbackAsync(context, object); }
/** * Rollback changes of the object with the given id (asynchronously). * When the object's state is NORMAL: Removes the object from the cache, all performed changes without commit will be lost. * When the object's state is NEW: Removes the object from the database. * This action is not executed in a trans...
Rollback changes of the object with the given id (asynchronously). This action is not executed in a transaction
rollbackAsync
{ "repo_name": "mendix/circle-diagram-widget", "path": "test/javasource/com/mendix/core/Core.java", "license": "apache-2.0", "size": 76608 }
[ "com.mendix.systemwideinterfaces.core.IContext", "com.mendix.systemwideinterfaces.core.IMendixObject", "java.util.concurrent.Future" ]
import com.mendix.systemwideinterfaces.core.IContext; import com.mendix.systemwideinterfaces.core.IMendixObject; import java.util.concurrent.Future;
import com.mendix.systemwideinterfaces.core.*; import java.util.concurrent.*;
[ "com.mendix.systemwideinterfaces", "java.util" ]
com.mendix.systemwideinterfaces; java.util;
1,494,546
public final transient DefaultInputPort<KeyValPair<K, V>> base = new DefaultInputPort<KeyValPair<K, V>>() { @Override public void process(KeyValPair<K, V> tuple) { if (tuple.getValue().doubleValue() != 0.0) { // Avoid divide by zero, Emit // an error tuple? MutableDouble val =...
final transient DefaultInputPort<KeyValPair<K, V>> base = new DefaultInputPort<KeyValPair<K, V>>() { public void function(KeyValPair<K, V> tuple) { if (tuple.getValue().doubleValue() != 0.0) { MutableDouble val = basemap.get(tuple.getKey()); if (val == null) { val = new MutableDouble(0.0); basemap.put(cloneKey(tuple.ge...
/** * Process each key to store the value. If same key appears again update * with latest value. */
Process each key to store the value. If same key appears again update with latest value
process
{ "repo_name": "vrozov/apex-malhar", "path": "contrib/src/main/java/org/apache/apex/malhar/contrib/misc/math/ChangeKeyVal.java", "license": "apache-2.0", "size": 4586 }
[ "com.datatorrent.api.DefaultInputPort", "com.datatorrent.api.DefaultOutputPort", "com.datatorrent.api.annotation.OutputPortFieldAnnotation", "org.apache.apex.malhar.lib.util.KeyValPair", "org.apache.commons.lang.mutable.MutableDouble" ]
import com.datatorrent.api.DefaultInputPort; import com.datatorrent.api.DefaultOutputPort; import com.datatorrent.api.annotation.OutputPortFieldAnnotation; import org.apache.apex.malhar.lib.util.KeyValPair; import org.apache.commons.lang.mutable.MutableDouble;
import com.datatorrent.api.*; import com.datatorrent.api.annotation.*; import org.apache.apex.malhar.lib.util.*; import org.apache.commons.lang.mutable.*;
[ "com.datatorrent.api", "org.apache.apex", "org.apache.commons" ]
com.datatorrent.api; org.apache.apex; org.apache.commons;
1,258,876
EReference getArrayExpression_Expression();
EReference getArrayExpression_Expression();
/** * Returns the meta object for the containment reference list '{@link org.smeup.sys.il.expr.QArrayExpression#getExpression <em>Expression</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference list '<em>Expression</em>'. * @see org.smeup.sys.il.exp...
Returns the meta object for the containment reference list '<code>org.smeup.sys.il.expr.QArrayExpression#getExpression Expression</code>'.
getArrayExpression_Expression
{ "repo_name": "smeup/asup", "path": "org.smeup.sys.il.expr/src/org/smeup/sys/il/expr/QIntegratedLanguageExpressionPackage.java", "license": "epl-1.0", "size": 58569 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,171,894
public boolean checkSequenceExists( String sequenceName ) throws KettleDatabaseException { return checkSequenceExists( null, sequenceName ); }
boolean function( String sequenceName ) throws KettleDatabaseException { return checkSequenceExists( null, sequenceName ); }
/** * Check whether the sequence exists, Oracle only! * * @param sequenceName The name of the sequence * @return true if the sequence exists. */
Check whether the sequence exists, Oracle only
checkSequenceExists
{ "repo_name": "tmcsantos/pentaho-kettle", "path": "core/src/main/java/org/pentaho/di/core/database/Database.java", "license": "apache-2.0", "size": 181888 }
[ "org.pentaho.di.core.exception.KettleDatabaseException" ]
import org.pentaho.di.core.exception.KettleDatabaseException;
import org.pentaho.di.core.exception.*;
[ "org.pentaho.di" ]
org.pentaho.di;
153,211
@Override public void paint(Graphics g) { // fill white g.setColor(GRAPH_VIEW_BACKGROUND); g.fillRect(0, 0, getWidth(), getHeight()); // enable anti-aliasing GraphDrawing.enableAntiAliasing(g); // draw edges first, nodes last drawEdges(g); drawNodes(g); }
void function(Graphics g) { g.setColor(GRAPH_VIEW_BACKGROUND); g.fillRect(0, 0, getWidth(), getHeight()); GraphDrawing.enableAntiAliasing(g); drawEdges(g); drawNodes(g); }
/** * Drawing method. Draws all graph elements with anti-aliasing. * * @author Anselm Schmidt */
Drawing method. Draws all graph elements with anti-aliasing
paint
{ "repo_name": "jurkov/j-algo-mod", "path": "src/org/jalgo/module/bfsdfs/gui/graphview/GraphView.java", "license": "gpl-2.0", "size": 16148 }
[ "java.awt.Graphics", "org.jalgo.module.bfsdfs.gui.GraphDrawing" ]
import java.awt.Graphics; import org.jalgo.module.bfsdfs.gui.GraphDrawing;
import java.awt.*; import org.jalgo.module.bfsdfs.gui.*;
[ "java.awt", "org.jalgo.module" ]
java.awt; org.jalgo.module;
1,864,597
@Override public boolean isTransformableMimetype(String sourceMimetype, String targetMimetype, TransformationOptions options) { return isTransformable(sourceMimetype, targetMimetype, options); }
boolean function(String sourceMimetype, String targetMimetype, TransformationOptions options) { return isTransformable(sourceMimetype, targetMimetype, options); }
/** * Checks the supplied mimetypes are supported by calling the deprecated * {@link #isTransformable(String, String, TransformationOptions)} method. */
Checks the supplied mimetypes are supported by calling the deprecated <code>#isTransformable(String, String, TransformationOptions)</code> method
isTransformableMimetype
{ "repo_name": "Alfresco/alfresco-repository", "path": "src/main/java/org/alfresco/repo/content/transform/AbstractContentTransformer.java", "license": "lgpl-3.0", "size": 17857 }
[ "org.alfresco.service.cmr.repository.TransformationOptions" ]
import org.alfresco.service.cmr.repository.TransformationOptions;
import org.alfresco.service.cmr.repository.*;
[ "org.alfresco.service" ]
org.alfresco.service;
1,169,119
@Override public void onResume() { super.onResume(); mExecutionState = mPreferences.getInt(TrackerSettings.TRACKER_STATE_PREFERENCE, TrackerSettings.IDLE); // Create a network manager mConnectivityMgr = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE); myLocationOverlay.enabl...
void function() { super.onResume(); mExecutionState = mPreferences.getInt(TrackerSettings.TRACKER_STATE_PREFERENCE, TrackerSettings.IDLE); mConnectivityMgr = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE); myLocationOverlay.enableMyLocation(); myLocationOverlay.enableCompass(); if (mConnectiv...
/** * Handles updating the UI when the Activity is resumed. It also * distinguishes between this activity started from the main POSIT menu * (the default) and started from the TrackerListActivity (action = ACTION_VIEW). * In the latter case the track is just viewable--the Tracker is IDLE. */
Handles updating the UI when the Activity is resumed. It also distinguishes between this activity started from the main POSIT menu (the default) and started from the TrackerListActivity (action = ACTION_VIEW). In the latter case the track is just viewable--the Tracker is IDLE
onResume
{ "repo_name": "sanyaade-g2g-repos/posit-mobile.haiti-commodity", "path": "src/org/hfoss/posit/android/TrackerActivity.java", "license": "lgpl-2.1", "size": 40033 }
[ "android.content.ContentValues", "android.content.Context", "android.net.ConnectivityManager", "android.util.Log", "android.view.View", "java.util.ArrayList", "org.hfoss.posit.android.utilities.Utils" ]
import android.content.ContentValues; import android.content.Context; import android.net.ConnectivityManager; import android.util.Log; import android.view.View; import java.util.ArrayList; import org.hfoss.posit.android.utilities.Utils;
import android.content.*; import android.net.*; import android.util.*; import android.view.*; import java.util.*; import org.hfoss.posit.android.utilities.*;
[ "android.content", "android.net", "android.util", "android.view", "java.util", "org.hfoss.posit" ]
android.content; android.net; android.util; android.view; java.util; org.hfoss.posit;
2,723,820
@Override public Set<String> getRequirements() { return requirements; }
Set<String> function() { return requirements; }
/** * Gets the names of other capabilities required by this capability. * These are static requirements. * * @return the capability names. Will not be {@code null} but may be empty. */
Gets the names of other capabilities required by this capability. These are static requirements
getRequirements
{ "repo_name": "JiriOndrusek/wildfly-core", "path": "controller/src/main/java/org/jboss/as/controller/capability/AbstractCapability.java", "license": "lgpl-2.1", "size": 10235 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,536,347
private void handleMissingWorkers(AgentStatusResponse agentStatus) { for (Map.Entry<Long, ManagedWorker> entry : workers.entrySet()) { Long workerId = entry.getKey(); if (!agentStatus.workers().containsKey(workerId)) { ManagedWorker worker = entry....
void function(AgentStatusResponse agentStatus) { for (Map.Entry<Long, ManagedWorker> entry : workers.entrySet()) { Long workerId = entry.getKey(); if (!agentStatus.workers().containsKey(workerId)) { ManagedWorker worker = entry.getValue(); if (worker.shouldRun) { worker.tryCreate(); } } } }
/** * Identify workers which we think should be running but do not appear in the agent's response. * We need to send startWorker requests for those */
Identify workers which we think should be running but do not appear in the agent's response. We need to send startWorker requests for those
handleMissingWorkers
{ "repo_name": "KevinLiLu/kafka", "path": "tools/src/main/java/org/apache/kafka/trogdor/coordinator/NodeManager.java", "license": "apache-2.0", "size": 14269 }
[ "java.util.Map", "org.apache.kafka.trogdor.rest.AgentStatusResponse" ]
import java.util.Map; import org.apache.kafka.trogdor.rest.AgentStatusResponse;
import java.util.*; import org.apache.kafka.trogdor.rest.*;
[ "java.util", "org.apache.kafka" ]
java.util; org.apache.kafka;
1,116,742
EAttribute getRoundScoredMessage_Team();
EAttribute getRoundScoredMessage_Team();
/** * Returns the meta object for the attribute '{@link MessagesModel.RoundScoredMessage#getTeam <em>Team</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Team</em>'. * @see MessagesModel.RoundScoredMessage#getTeam() * @see #getRoundScoredMessage() ...
Returns the meta object for the attribute '<code>MessagesModel.RoundScoredMessage#getTeam Team</code>'.
getRoundScoredMessage_Team
{ "repo_name": "Hu3bl/statsbot", "path": "statsbot-parent/statsbot-module.messages.model/src/main/java/MessagesModel/ModelPackage.java", "license": "mit", "size": 147130 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
773,114
@SuppressWarnings("unchecked") public final void actionCompleted(AllocatableAction action) { LOGGER.info("[TaskScheduler] Action completed " + action); // Mark action as finished removeFromReady(action); ResourceScheduler<WorkerResourceDescription> resource; resource = (...
@SuppressWarnings(STR) final void function(AllocatableAction action) { LOGGER.info(STR + action); removeFromReady(action); ResourceScheduler<WorkerResourceDescription> resource; resource = (ResourceScheduler<WorkerResourceDescription>) action.getAssignedResource(); List<AllocatableAction> resourceFree; try { resourceFr...
/** * Registers an action as completed and releases all the resource and data dependencies. * * @param action Action that has finished */
Registers an action as completed and releases all the resource and data dependencies
actionCompleted
{ "repo_name": "mF2C/COMPSs", "path": "compss/runtime/scheduler/commons/src/main/java/es/bsc/compss/components/impl/TaskScheduler.java", "license": "apache-2.0", "size": 64481 }
[ "es.bsc.compss.scheduler.exceptions.ActionNotFoundException", "es.bsc.compss.scheduler.types.AllocatableAction", "es.bsc.compss.types.resources.WorkerResourceDescription", "java.util.LinkedList", "java.util.List" ]
import es.bsc.compss.scheduler.exceptions.ActionNotFoundException; import es.bsc.compss.scheduler.types.AllocatableAction; import es.bsc.compss.types.resources.WorkerResourceDescription; import java.util.LinkedList; import java.util.List;
import es.bsc.compss.scheduler.exceptions.*; import es.bsc.compss.scheduler.types.*; import es.bsc.compss.types.resources.*; import java.util.*;
[ "es.bsc.compss", "java.util" ]
es.bsc.compss; java.util;
105,213
public P read(E elementToRead) throws SlideSetException;
P function(E elementToRead) throws SlideSetException;
/** * Convert "underlying" data to "processed" data. * * @param elementToRead The {@code DataElement} containing * the "underlying" data which should be translated. * * @return The "processed" data. * * @throws SlideSetException */
Convert "underlying" data to "processed" data
read
{ "repo_name": "bnanes/slideset", "path": "src/main/java/org/nanes/slideset/dm/read/ElementReader.java", "license": "bsd-2-clause", "size": 926 }
[ "org.nanes.slideset.ex.SlideSetException" ]
import org.nanes.slideset.ex.SlideSetException;
import org.nanes.slideset.ex.*;
[ "org.nanes.slideset" ]
org.nanes.slideset;
368,027
public final class GmOfRussianNounTest { @Test public void obeysEqualsContract() throws Exception { EqualsVerifier.forClass(GmOfRussianNoun.class) .suppress(Warning.TRANSIENT_FIELDS) .verify(); }
final class GmOfRussianNounTest { public void function() throws Exception { EqualsVerifier.forClass(GmOfRussianNoun.class) .suppress(Warning.TRANSIENT_FIELDS) .verify(); }
/** * {@link GmOfRussianNoun} can be checked for equality against instances * of its class. * @throws Exception If fails */
<code>GmOfRussianNoun</code> can be checked for equality against instances of its class
obeysEqualsContract
{ "repo_name": "Suseika/inflectible", "path": "src/test/java/org/tendiwa/inflectible/implementations/GmOfRussianNounTest.java", "license": "mit", "size": 2374 }
[ "nl.jqno.equalsverifier.EqualsVerifier", "nl.jqno.equalsverifier.Warning" ]
import nl.jqno.equalsverifier.EqualsVerifier; import nl.jqno.equalsverifier.Warning;
import nl.jqno.equalsverifier.*;
[ "nl.jqno.equalsverifier" ]
nl.jqno.equalsverifier;
1,623,637
public void setSeriesOutlineStroke(int series, Stroke stroke) { setSeriesOutlineStroke(series, stroke, true); }
void function(int series, Stroke stroke) { setSeriesOutlineStroke(series, stroke, true); }
/** * Sets the outline stroke used for a series and sends a * {@link RendererChangeEvent} to all registered listeners. * * @param series the series index (zero-based). * @param stroke the stroke (<code>null</code> permitted). */
Sets the outline stroke used for a series and sends a <code>RendererChangeEvent</code> to all registered listeners
setSeriesOutlineStroke
{ "repo_name": "raedle/univis", "path": "lib/jfreechart-1.0.1/src/org/jfree/chart/renderer/AbstractRenderer.java", "license": "lgpl-2.1", "size": 97537 }
[ "java.awt.Stroke" ]
import java.awt.Stroke;
import java.awt.*;
[ "java.awt" ]
java.awt;
157,376
// ----------------------------------------------------------------------- public DayOfWeek getFirstDayOfWeek() { return this.firstDayOfWeek; }
DayOfWeek function() { return this.firstDayOfWeek; }
/** * Gets the first day-of-week. * <p> * The first day-of-week varies by culture. For example, the US uses Sunday, while France and the ISO-8601 * standard use Monday. This method returns the first day using the standard {@code DayOfWeek} enum. * * @return the first day-of-week, not null */
Gets the first day-of-week. The first day-of-week varies by culture. For example, the US uses Sunday, while France and the ISO-8601 standard use Monday. This method returns the first day using the standard DayOfWeek enum
getFirstDayOfWeek
{ "repo_name": "m-m-m/java8-backports", "path": "mmm-util-backport-java.time/src/main/java/java/time/calendrical/WeekDefinition.java", "license": "apache-2.0", "size": 24320 }
[ "java.time.DayOfWeek" ]
import java.time.DayOfWeek;
import java.time.*;
[ "java.time" ]
java.time;
291,387
private static void addProperties(final HttpURLConnection request, FileProperties properties) { BaseRequest.addOptionalHeader(request, FileConstants.CACHE_CONTROL_HEADER, properties.getCacheControl()); BaseRequest.addOptionalHeader(request, FileConstants.CONTENT_DISPOSITION_HEADER, p...
static void function(final HttpURLConnection request, FileProperties properties) { BaseRequest.addOptionalHeader(request, FileConstants.CACHE_CONTROL_HEADER, properties.getCacheControl()); BaseRequest.addOptionalHeader(request, FileConstants.CONTENT_DISPOSITION_HEADER, properties.getContentDisposition()); BaseRequest.a...
/** * Adds the properties. * * @param request * The request. * @param properties * The properties. */
Adds the properties
addProperties
{ "repo_name": "manikandan-palaniappan/azure-storage-java", "path": "microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileRequest.java", "license": "apache-2.0", "size": 43136 }
[ "com.microsoft.azure.storage.core.BaseRequest", "java.net.HttpURLConnection" ]
import com.microsoft.azure.storage.core.BaseRequest; import java.net.HttpURLConnection;
import com.microsoft.azure.storage.core.*; import java.net.*;
[ "com.microsoft.azure", "java.net" ]
com.microsoft.azure; java.net;
2,730,320
int[] first = {1, 2, 3, 4, 5}; int[] second = {6, 7, 8}; int[] expected = {1, 2, 3, 4, 5, 6, 7, 8}; Merge merge = new Merge(); assertThat(merge.merge(first, second), is(expected)); }
int[] first = {1, 2, 3, 4, 5}; int[] second = {6, 7, 8}; int[] expected = {1, 2, 3, 4, 5, 6, 7, 8}; Merge merge = new Merge(); assertThat(merge.merge(first, second), is(expected)); }
/** * got : 1, 2, 3, 4, 5 and 6, 7, 8. * expected 1, 2, 3, 4, 5, 6, 7, 8. */
got : 1, 2, 3, 4, 5 and 6, 7, 8. expected 1, 2, 3, 4, 5, 6, 7, 8
whenHaveTwoArraysInOrderThenSimpleMerge
{ "repo_name": "wamdue/agorbunov", "path": "chapter_001/src/test/java/ru/job4j/task/MergeTest.java", "license": "apache-2.0", "size": 911 }
[ "org.hamcrest.core.Is", "org.junit.Assert" ]
import org.hamcrest.core.Is; import org.junit.Assert;
import org.hamcrest.core.*; import org.junit.*;
[ "org.hamcrest.core", "org.junit" ]
org.hamcrest.core; org.junit;
1,490,809
public final void mount(final IRequestMapper mapper) { Args.notNull(mapper, "mapper"); getRootRequestMapperAsCompound().add(mapper); }
final void function(final IRequestMapper mapper) { Args.notNull(mapper, STR); getRootRequestMapperAsCompound().add(mapper); }
/** * Mounts an encoder at the given path. * * @param mapper * the encoder that will be used for this mount */
Mounts an encoder at the given path
mount
{ "repo_name": "zwsong/wicket", "path": "wicket-core/src/main/java/org/apache/wicket/protocol/http/WebApplication.java", "license": "apache-2.0", "size": 32126 }
[ "org.apache.wicket.request.IRequestMapper", "org.apache.wicket.util.lang.Args" ]
import org.apache.wicket.request.IRequestMapper; import org.apache.wicket.util.lang.Args;
import org.apache.wicket.request.*; import org.apache.wicket.util.lang.*;
[ "org.apache.wicket" ]
org.apache.wicket;
808,123
public String getEntryCode(final int catalog, final String name) { String code = ""; ArrayList<SCfdXmlCatalogEntry> entries = mhmCatalogs.get(catalog); for (SCfdXmlCatalogEntry entry : entries) { if (entry.getName().compareTo(name) == 0) { code = entry.ge...
String function(final int catalog, final String name) { String code = ""; ArrayList<SCfdXmlCatalogEntry> entries = mhmCatalogs.get(catalog); for (SCfdXmlCatalogEntry entry : entries) { if (entry.getName().compareTo(name) == 0) { code = entry.getCode(); break; } } return code; }
/** * Gets code of catalog entry for corresponding name from given catalog. * @param catalog Desired catalog (SDataConstantsSys.TRNS_CFD_CAT_...). * @param name Name of desired catalog-entry's code. * @return Code of desired catalog entry. An empty <code>String</code> for invalid catalog or name. ...
Gets code of catalog entry for corresponding name from given catalog
getEntryCode
{ "repo_name": "swaplicado/siie32", "path": "src/erp/cfd/SCfdXmlCatalogs.java", "license": "mit", "size": 8153 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
359,355
@Override public T visitOption(@NotNull ANTLRv4Parser.OptionContext ctx) { return visitChildren(ctx); }
@Override public T visitOption(@NotNull ANTLRv4Parser.OptionContext ctx) { return visitChildren(ctx); }
/** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */
The default implementation returns the result of calling <code>#visitChildren</code> on ctx
visitExceptionHandler
{ "repo_name": "ajosephau/generic_multiobjective_superoptimizer", "path": "src/org/gso/antlrv4parser/ANTLRv4ParserBaseVisitor.java", "license": "gpl-2.0", "size": 15727 }
[ "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;
971,850
public void tx(View view) { if (hackrf != null) { this.readGuiElements(); this.task = TRANSMIT; this.stopRequested = false; new Thread(this).start(); toggleButtonsEnabledIfTransceiving(true); } }
void function(View view) { if (hackrf != null) { this.readGuiElements(); this.task = TRANSMIT; this.stopRequested = false; new Thread(this).start(); toggleButtonsEnabledIfTransceiving(true); } }
/** * Is called if the user presses the 'TX' Button. Will start a Thread that * sets the HackRF into transmitting mode and then read the samples * from a file and pass them to the HackRF. Will run forever until user * presses the 'Stop' button. * * @param view Reference to the calling View (in this case ...
Is called if the user presses the 'TX' Button. Will start a Thread that sets the HackRF into transmitting mode and then read the samples from a file and pass them to the HackRF. Will run forever until user presses the 'Stop' button
tx
{ "repo_name": "rad1o/hackrf_android", "path": "examples/src/com/mantz_it/hackrf_test/MainActivity.java", "license": "gpl-2.0", "size": 25126 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,410,270
@Nullable VirtualFile getModuleDir();
VirtualFile getModuleDir();
/** * Returns the <code>VirtualFile</code> to the module dir * * @return the virtual file instance. */
Returns the <code>VirtualFile</code> to the module dir
getModuleDir
{ "repo_name": "consulo/consulo", "path": "modules/base/core-api/src/main/java/com/intellij/openapi/module/Module.java", "license": "apache-2.0", "size": 2348 }
[ "com.intellij.openapi.vfs.VirtualFile" ]
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.openapi.vfs.*;
[ "com.intellij.openapi" ]
com.intellij.openapi;
158,109
private void createMain(KillerPuzzle killerPuzzle) { Group mainGroup = new Group(this, SWT.NONE); mainGroup.setLayout(new GridLayout(2, false)); mainGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); mainGroup.setText(Messages.SudokuComposite_MainGroup_Title); createButtonArea(mainGroup); ...
void function(KillerPuzzle killerPuzzle) { Group mainGroup = new Group(this, SWT.NONE); mainGroup.setLayout(new GridLayout(2, false)); mainGroup.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true)); mainGroup.setText(Messages.SudokuComposite_MainGroup_Title); createButtonArea(mainGroup); createPlayFieldArea(main...
/** * Creates the part of the GUI in which the buttons and the text field is. * @param killerPuzzle */
Creates the part of the GUI in which the buttons and the text field is
createMain
{ "repo_name": "jcryptool/crypto", "path": "org.jcryptool.games.sudoku/src/org/jcryptool/games/sudoku/views/KillerPuzzle.java", "license": "epl-1.0", "size": 106282 }
[ "org.eclipse.swt.layout.GridData", "org.eclipse.swt.layout.GridLayout", "org.eclipse.swt.widgets.Group", "org.jcryptool.games.sudoku.Messages" ]
import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Group; import org.jcryptool.games.sudoku.Messages;
import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; import org.jcryptool.games.sudoku.*;
[ "org.eclipse.swt", "org.jcryptool.games" ]
org.eclipse.swt; org.jcryptool.games;
853,324
@Test void testBetweenAnd() { final String sql = "select * from emp\n" + "where deptno between - DEPTNO + 1 and 5"; final String expected = "SELECT *\n" + "FROM `EMP`\n" + "WHERE (`DEPTNO` BETWEEN ASYMMETRIC ((- `DEPTNO`) + 1) AND 5)"; sql(sql).ok(expected); }
@Test void testBetweenAnd() { final String sql = STR + STR; final String expected = STR + STR + STR; sql(sql).ok(expected); }
/** Test case that does not reproduce but is related to * <a href="https://issues.apache.org/jira/browse/CALCITE-2637">[CALCITE-2637] * Prefix '-' operator failed between BETWEEN and AND</a>. */
Test case that does not reproduce but is related to [CALCITE-2637]
testBetweenAnd
{ "repo_name": "jcamachor/calcite", "path": "core/src/test/java/org/apache/calcite/sql/parser/SqlParserTest.java", "license": "apache-2.0", "size": 391238 }
[ "org.junit.jupiter.api.Test" ]
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.*;
[ "org.junit.jupiter" ]
org.junit.jupiter;
2,476,392
public void createFlightBookingResponse(Exchange exchange) throws Exception { // Retrieve flight connection and passenger info from exchange message headers. FlightConnectionInfo flightConnectionInfo = exchange.getIn().getHeader("flightConnectionInfo", FlightConnectionInfo.class); PassengerInfo passengerInfo...
void function(Exchange exchange) throws Exception { FlightConnectionInfo flightConnectionInfo = exchange.getIn().getHeader(STR, FlightConnectionInfo.class); PassengerInfo passengerInfo = exchange.getIn().getHeader(STR, PassengerInfo.class); BookFlightResponse response = new BookFlightResponse(); response.setPassengerFo...
/** * Builds Flight Trip Response bean from BAPI_FLTRIP_CREATE response in * exchange message body and flight connection info and passenger info beans * in exchange message headers and adds to exchange message body. * * @param exchange * @throws Exception */
Builds Flight Trip Response bean from BAPI_FLTRIP_CREATE response in exchange message body and flight connection info and passenger info beans in exchange message headers and adds to exchange message body
createFlightBookingResponse
{ "repo_name": "punkhorn/flight-booking-demo", "path": "src/main/java/org/jboss/fuse/sap/flightbookingdemo/processor/ReturnFlightTripResponse.java", "license": "apache-2.0", "size": 4265 }
[ "java.util.ArrayList", "java.util.List", "org.apache.camel.Exchange", "org.jboss.fuse.sap.flightbookingdemo.bean.FlightConnectionInfo", "org.jboss.fuse.sap.flightbookingdemo.bean.FlightHop", "org.jboss.fuse.sap.flightbookingdemo.bean.PassengerInfo", "org.jboss.fuse.sap.flightbookingdemo.jaxb.BookFlightR...
import java.util.ArrayList; import java.util.List; import org.apache.camel.Exchange; import org.jboss.fuse.sap.flightbookingdemo.bean.FlightConnectionInfo; import org.jboss.fuse.sap.flightbookingdemo.bean.FlightHop; import org.jboss.fuse.sap.flightbookingdemo.bean.PassengerInfo; import org.jboss.fuse.sap.flightbookingd...
import java.util.*; import org.apache.camel.*; import org.jboss.fuse.sap.flightbookingdemo.bean.*; import org.jboss.fuse.sap.flightbookingdemo.jaxb.*;
[ "java.util", "org.apache.camel", "org.jboss.fuse" ]
java.util; org.apache.camel; org.jboss.fuse;
1,094,210
public static String validateDomainName(String domain) { if (domain == null || domain.trim().length() == 0) { throw new IllegalArgumentException("Domain name cannot be null or empty"); } String result = IDN.toASCII(domain); if (result.equals(domain)) { // no conversion; validate again via ...
static String function(String domain) { if (domain == null domain.trim().length() == 0) { throw new IllegalArgumentException(STR); } String result = IDN.toASCII(domain); if (result.equals(domain)) { IDN.toASCII(domain, IDN.USE_STD3_ASCII_RULES); } else { Log.info(MessageFormat.format(STR, domain, result)); } return res...
/** * Returns a valid domain name, possibly as an ACE-encoded IDN * (per <a href="http://www.ietf.org/rfc/rfc3490.txt">RFC 3490</a>). * * @param domain Proposed domain name * @return The validated domain name, possibly ACE-encoded * @throws IllegalArgumentException The given domain name ...
Returns a valid domain name, possibly as an ACE-encoded IDN (per RFC 3490)
validateDomainName
{ "repo_name": "zhouluoyang/openfire", "path": "src/java/org/jivesoftware/util/StringUtils.java", "license": "apache-2.0", "size": 40539 }
[ "java.net.IDN", "java.text.MessageFormat" ]
import java.net.IDN; import java.text.MessageFormat;
import java.net.*; import java.text.*;
[ "java.net", "java.text" ]
java.net; java.text;
785,351
@Override public Long getInteger( Object[] dataRow, int index ) throws KettleValueException { if ( dataRow == null ) { return null; } ValueMetaInterface meta = valueMetaList.get( index ); return meta.getInteger( dataRow[index] ); }
Long function( Object[] dataRow, int index ) throws KettleValueException { if ( dataRow == null ) { return null; } ValueMetaInterface meta = valueMetaList.get( index ); return meta.getInteger( dataRow[index] ); }
/** * Get an Integer value from a row of data. Convert data if this needed. * * @param rowRow * the row of data * @param index * the index * @return The integer found on that position in the row * @throws KettleValueException * in case there was a problem convertin...
Get an Integer value from a row of data. Convert data if this needed
getInteger
{ "repo_name": "ma459006574/pentaho-kettle", "path": "core/src/org/pentaho/di/core/row/RowMeta.java", "license": "apache-2.0", "size": 34343 }
[ "org.pentaho.di.core.exception.KettleValueException" ]
import org.pentaho.di.core.exception.KettleValueException;
import org.pentaho.di.core.exception.*;
[ "org.pentaho.di" ]
org.pentaho.di;
2,600,708
private Form getGroupPermissionForm(EntityBrowser browser) throws Exception { Help help = getHelp(HELP_TEXT_KEY); SubmitButton save = new SubmitButton(this.iwrb.getLocalizedImageButton("save", "Save")); save.setSubmitConfirm(this.iwrb.getLocalizedString("change.selected.per...
Form function(EntityBrowser browser) throws Exception { Help help = getHelp(HELP_TEXT_KEY); SubmitButton save = new SubmitButton(this.iwrb.getLocalizedImageButton("save", "Save")); save.setSubmitConfirm(this.iwrb.getLocalizedString(STR, STR)); CloseButton close = new CloseButton(this.iwrb.getLocalizedImageButton("close...
/** * Method addGroupPermissionForm. * * @param iwc */
Method addGroupPermissionForm
getGroupPermissionForm
{ "repo_name": "idega/platform2", "path": "src/com/idega/user/presentation/GroupRolesWindow.java", "license": "gpl-3.0", "size": 30273 }
[ "com.idega.block.entity.presentation.EntityBrowser", "com.idega.idegaweb.help.presentation.Help", "com.idega.presentation.Table", "com.idega.presentation.text.Text", "com.idega.presentation.ui.CloseButton", "com.idega.presentation.ui.Form", "com.idega.presentation.ui.SubmitButton", "com.idega.presenta...
import com.idega.block.entity.presentation.EntityBrowser; import com.idega.idegaweb.help.presentation.Help; import com.idega.presentation.Table; import com.idega.presentation.text.Text; import com.idega.presentation.ui.CloseButton; import com.idega.presentation.ui.Form; import com.idega.presentation.ui.SubmitButton; im...
import com.idega.block.entity.presentation.*; import com.idega.idegaweb.help.presentation.*; import com.idega.presentation.*; import com.idega.presentation.text.*; import com.idega.presentation.ui.*;
[ "com.idega.block", "com.idega.idegaweb", "com.idega.presentation" ]
com.idega.block; com.idega.idegaweb; com.idega.presentation;
1,121,216
BigDecimal getQuantity();
BigDecimal getQuantity();
/** * how many get billed * * @return the quantity of the item */
how many get billed
getQuantity
{ "repo_name": "ZUGFeRD/mustangproject", "path": "library/src/main/java/org/mustangproject/ZUGFeRD/IZUGFeRDExportableItem.java", "license": "apache-2.0", "size": 3333 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
2,771,709
public static String getSqlTypeName(final MajorType type) { if (type.getMode() == DataMode.REPEATED || type.getMinorType() == MinorType.LIST) { return "ARRAY"; } switch (type.getMinorType()) { // Standard SQL atomic data types: case BIT: return "BOOLEAN"; case SMALL...
static String function(final MajorType type) { if (type.getMode() == DataMode.REPEATED type.getMinorType() == MinorType.LIST) { return "ARRAY"; } switch (type.getMinorType()) { case BIT: return STR; case SMALLINT: return STR; case INT: return STR; case BIGINT: return STR; case FLOAT4: return "FLOAT"; case FLOAT8: retur...
/*** * Gets SQL data type name for given Dremio RPC-/protobuf-level data type. * @return * canonical keyword sequence for SQL data type (leading keywords in * corresponding {@code <data type>}; what * {@code INFORMATION_SCHEMA.COLUMNS.TYPE_NAME} would list) */
Gets SQL data type name for given Dremio RPC-/protobuf-level data type
getSqlTypeName
{ "repo_name": "dremio/dremio-oss", "path": "sabot/vector-tools/src/main/java/com/dremio/common/types/Types.java", "license": "apache-2.0", "size": 21780 }
[ "com.dremio.common.types.TypeProtos" ]
import com.dremio.common.types.TypeProtos;
import com.dremio.common.types.*;
[ "com.dremio.common" ]
com.dremio.common;
1,881,150
public static Interface getInterface(final Node itfContainer, final String name) { if (!(itfContainer instanceof InterfaceContainer)) return null; for (final Interface itf : ((InterfaceContainer) itfContainer) .getInterfaces()) { if (name.equals(itf.getName())) return itf; } return...
static Interface function(final Node itfContainer, final String name) { if (!(itfContainer instanceof InterfaceContainer)) return null; for (final Interface itf : ((InterfaceContainer) itfContainer) .getInterfaces()) { if (name.equals(itf.getName())) return itf; } return null; } /** * Create a new {@link MindInterface}...
/** * Returns the interface node contained by the given container and having the * given name. * * @param itfContainer a container. * @param name the name of the interface to return. * @return the interface node contained by the given container and having the * given name, or <code>null</c...
Returns the interface node contained by the given container and having the given name
getInterface
{ "repo_name": "MIND-Tools/mind-compiler", "path": "adl-frontend/src/main/java/org/ow2/mind/adl/ast/ASTHelper.java", "license": "gpl-3.0", "size": 35981 }
[ "org.objectweb.fractal.adl.Node", "org.objectweb.fractal.adl.NodeFactory", "org.objectweb.fractal.adl.interfaces.Interface", "org.objectweb.fractal.adl.interfaces.InterfaceContainer" ]
import org.objectweb.fractal.adl.Node; import org.objectweb.fractal.adl.NodeFactory; import org.objectweb.fractal.adl.interfaces.Interface; import org.objectweb.fractal.adl.interfaces.InterfaceContainer;
import org.objectweb.fractal.adl.*; import org.objectweb.fractal.adl.interfaces.*;
[ "org.objectweb.fractal" ]
org.objectweb.fractal;
687,190
public List<Message> getDebugs(){ return getMessagesFrom(Level.DEBUG); }
List<Message> function(){ return getMessagesFrom(Level.DEBUG); }
/** * Gets the debugs. * * @return the debug messages */
Gets the debugs
getDebugs
{ "repo_name": "daisy/pipeline-issues", "path": "framework/common-utils/src/main/java/org/daisy/common/messaging/MessageAccessor.java", "license": "apache-2.0", "size": 2886 }
[ "java.util.List", "org.daisy.common.messaging.Message" ]
import java.util.List; import org.daisy.common.messaging.Message;
import java.util.*; import org.daisy.common.messaging.*;
[ "java.util", "org.daisy.common" ]
java.util; org.daisy.common;
816,778
public static Pattern getEqualsAnyPattern(String[] terms){ StringBuffer sb = new StringBuffer(); sb.append("(?s)\\A"); buildFindAnyPattern(terms, sb); sb.append("\\z"); return Pattern.compile(sb.toString()); }
static Pattern function(String[] terms){ StringBuffer sb = new StringBuffer(); sb.append(STR); buildFindAnyPattern(terms, sb); sb.append("\\z"); return Pattern.compile(sb.toString()); }
/** * Compile a pattern that can will match a string if the string * equals any of the given terms. * <p> * Usage:<br> * <code>boolean b = getEqualsAnyPattern(terms).matcher(s).matches();</code> * <p> * If multiple strings are matched against the same set of terms, * it is more efficient to reuse the pa...
Compile a pattern that can will match a string if the string equals any of the given terms. Usage: <code>boolean b = getEqualsAnyPattern(terms).matcher(s).matches();</code> If multiple strings are matched against the same set of terms, it is more efficient to reuse the pattern returned by this function
getEqualsAnyPattern
{ "repo_name": "jimmyLian001/SpringLearn", "path": "src/main/java/com/jimmy/Util/StringHelper.java", "license": "apache-2.0", "size": 55239 }
[ "java.util.regex.Pattern" ]
import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
1,942,360
@Override public long skip(long n) throws IOException { n = Math.min(n, maxInput - read); long skpd = super.skip(n); read += skpd; return skpd; }
long function(long n) throws IOException { n = Math.min(n, maxInput - read); long skpd = super.skip(n); read += skpd; return skpd; }
/** * skipping also increments the counter. * Other behavior could be imagined. This won't work well on streams that allow rewinding * * @param n the number of bytes to skip * @return the bytes skipped * @throws IOException */
skipping also increments the counter. Other behavior could be imagined. This won't work well on streams that allow rewinding
skip
{ "repo_name": "jyrkio/LinkedDataAuthorization", "path": "drumbeat_security_server/src/main/java/net/java/dev/sommer/foafssl/util/SafeInputStream.java", "license": "mit", "size": 4284 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,419,296
Member createMember(PerunSession sess, Vo vo, ExtSource extSource, String login, List<Group> groups) throws InternalErrorException, WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException;
Member createMember(PerunSession sess, Vo vo, ExtSource extSource, String login, List<Group> groups) throws InternalErrorException, WrongAttributeValueException, WrongReferenceAttributeValueException, AlreadyMemberException, ExtendMembershipException;
/** * Create new member from user by login and ExtSource. * * Also add this member to groups in list. * * <strong>This method runs asynchronously</strong> * * @param sess * @param vo * @param extSource * @param login * @param groups list of groups where member will be added too * @return newly c...
Create new member from user by login and ExtSource. Also add this member to groups in list. This method runs asynchronously
createMember
{ "repo_name": "stavamichal/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/bl/MembersManagerBl.java", "license": "bsd-2-clause", "size": 66169 }
[ "cz.metacentrum.perun.core.api.ExtSource", "cz.metacentrum.perun.core.api.Group", "cz.metacentrum.perun.core.api.Member", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.Vo", "cz.metacentrum.perun.core.api.exceptions.AlreadyMemberException", "cz.metacentrum.perun.core.api.ex...
import cz.metacentrum.perun.core.api.ExtSource; import cz.metacentrum.perun.core.api.Group; import cz.metacentrum.perun.core.api.Member; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.Vo; import cz.metacentrum.perun.core.api.exceptions.AlreadyMemberException; import cz.metacentr...
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
1,842,808
public void setAnnotationgraphicsHLAPI( AnnotationGraphicsHLAPI elem){ if(elem!=null) item.setAnnotationgraphics((AnnotationGraphics)elem.getContainedItem()); }
void function( AnnotationGraphicsHLAPI elem){ if(elem!=null) item.setAnnotationgraphics((AnnotationGraphics)elem.getContainedItem()); }
/** * set Annotationgraphics */
set Annotationgraphics
setAnnotationgraphicsHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-SNNet/src/fr/lip6/move/pnml/symmetricnet/hlcorestructure/hlapi/TypeHLAPI.java", "license": "epl-1.0", "size": 11473 }
[ "fr.lip6.move.pnml.symmetricnet.hlcorestructure.AnnotationGraphics" ]
import fr.lip6.move.pnml.symmetricnet.hlcorestructure.AnnotationGraphics;
import fr.lip6.move.pnml.symmetricnet.hlcorestructure.*;
[ "fr.lip6.move" ]
fr.lip6.move;
313,079
@Override public void deleteFile(Path filePath) throws IOException { try { super.deleteFile(filePath); repo.rm() .addFilepattern(filePath.toString()) .call(); commitChanges(); } catch (GitAPIException e) { throw new IOException(e); } }
void function(Path filePath) throws IOException { try { super.deleteFile(filePath); repo.rm() .addFilepattern(filePath.toString()) .call(); commitChanges(); } catch (GitAPIException e) { throw new IOException(e); } }
/** * Delete file from this repository. Commits changes. * * @param filePath relative file path to delete * @throws GitAPIException when unable to commit changes */
Delete file from this repository. Commits changes
deleteFile
{ "repo_name": "fromanator/cfg4j", "path": "cfg4j-git/src/test/java/org/cfg4j/source/git/TempConfigurationGitRepo.java", "license": "apache-2.0", "size": 4075 }
[ "java.io.IOException", "java.nio.file.Path", "org.eclipse.jgit.api.errors.GitAPIException" ]
import java.io.IOException; import java.nio.file.Path; import org.eclipse.jgit.api.errors.GitAPIException;
import java.io.*; import java.nio.file.*; import org.eclipse.jgit.api.errors.*;
[ "java.io", "java.nio", "org.eclipse.jgit" ]
java.io; java.nio; org.eclipse.jgit;
1,483,989
public Set<String> getObjectNames();
Set<String> function();
/** * Return iterator over the names of all already loaded objects in the storage. * * @return Set of all object names */
Return iterator over the names of all already loaded objects in the storage
getObjectNames
{ "repo_name": "maritelle/red5-server-common", "path": "src/main/java/org/red5/server/api/persistence/IPersistenceStore.java", "license": "apache-2.0", "size": 3378 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
292,338
public long startRecovery(IndexShard indexShard, DiscoveryNode sourceNode, PeerRecoveryTargetService.RecoveryListener listener, TimeValue activityTimeout) { RecoveryTarget recoveryTarget = new RecoveryTarget(indexShard, sourceNode, listener, ensureClusterStateVersionCallback); ...
long function(IndexShard indexShard, DiscoveryNode sourceNode, PeerRecoveryTargetService.RecoveryListener listener, TimeValue activityTimeout) { RecoveryTarget recoveryTarget = new RecoveryTarget(indexShard, sourceNode, listener, ensureClusterStateVersionCallback); startRecoveryInternal(recoveryTarget, activityTimeout)...
/** * Starts are new recovery for the given shard, source node and state * * @return the id of the new recovery. */
Starts are new recovery for the given shard, source node and state
startRecovery
{ "repo_name": "wuranbo/elasticsearch", "path": "core/src/main/java/org/elasticsearch/indices/recovery/RecoveriesCollection.java", "license": "apache-2.0", "size": 13828 }
[ "org.elasticsearch.cluster.node.DiscoveryNode", "org.elasticsearch.common.unit.TimeValue", "org.elasticsearch.index.shard.IndexShard" ]
import org.elasticsearch.cluster.node.DiscoveryNode; import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.index.shard.IndexShard;
import org.elasticsearch.cluster.node.*; import org.elasticsearch.common.unit.*; import org.elasticsearch.index.shard.*;
[ "org.elasticsearch.cluster", "org.elasticsearch.common", "org.elasticsearch.index" ]
org.elasticsearch.cluster; org.elasticsearch.common; org.elasticsearch.index;
2,346,062
public static void print(CSProperties props, PrintWriter out) { out.println(PROPERTIES + "," + CSVParser.printLine(props.getName())); for (String key : props.getInfo().keySet()) { out.println(" " + CSVParser.printLine(key, props.getInfo().get(key))); } out.println(); ...
static void function(CSProperties props, PrintWriter out) { out.println(PROPERTIES + "," + CSVParser.printLine(props.getName())); for (String key : props.getInfo().keySet()) { out.println(" " + CSVParser.printLine(key, props.getInfo().get(key))); } out.println(); for (String key : props.keySet()) { out.println(PROPERTY...
/** * Print CSProperties. * @param props the Properties to print * @param out the output writer to print to. */
Print CSProperties
print
{ "repo_name": "formeppe/NewAge-JGrass", "path": "oms3/src/main/java/oms3/io/DataIO.java", "license": "gpl-2.0", "size": 61055 }
[ "java.io.PrintWriter" ]
import java.io.PrintWriter;
import java.io.*;
[ "java.io" ]
java.io;
1,036,484
public StoredScript storedScriptFor(final Source source, final String mainClassName, final Map<String, byte[]> classBytes, final Map<Integer, FunctionInitializer> initializers, final Object[] cons...
StoredScript function(final Source source, final String mainClassName, final Map<String, byte[]> classBytes, final Map<Integer, FunctionInitializer> initializers, final Object[] constants, final int compilationId) { for (final Object constant : constants) { if (!(constant instanceof Serializable)) { getLogger().warning...
/** * Returns a new StoredScript instance. * * @param mainClassName the main class name * @param classBytes a map of class bytes * @param initializers function initializers * @param constants the constants array * @param compilationId the compilation id * @return The compiled scr...
Returns a new StoredScript instance
storedScriptFor
{ "repo_name": "koutheir/incinerator-hotspot", "path": "nashorn/src/jdk/nashorn/internal/runtime/CodeStore.java", "license": "gpl-2.0", "size": 12873 }
[ "java.io.Serializable", "java.util.Map" ]
import java.io.Serializable; import java.util.Map;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
715,605
public static com.netxforge.oss2.config.ackd.Reader unmarshal( final java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (com.netxforge.oss2.config.ackd.Reader) Unmarshaller.unmarshal(com.netxforge.oss2.config.ackd.Reader.c...
static com.netxforge.oss2.config.ackd.Reader function( final java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (com.netxforge.oss2.config.ackd.Reader) Unmarshaller.unmarshal(com.netxforge.oss2.config.ackd.Reader.class, reader); }
/** * Method unmarshal. * * @param reader * @throws org.exolab.castor.xml.MarshalException if object is * null or if any SAXException is thrown during marshaling * @throws org.exolab.castor.xml.ValidationException if this * object is an invalid instance according to the schema *...
Method unmarshal
unmarshal
{ "repo_name": "dzonekl/oss2nms", "path": "plugins/com.netxforge.oss2.config.model/src/com/netxforge/oss2/config/ackd/Reader.java", "license": "gpl-3.0", "size": 15626 }
[ "org.exolab.castor.xml.Unmarshaller" ]
import org.exolab.castor.xml.Unmarshaller;
import org.exolab.castor.xml.*;
[ "org.exolab.castor" ]
org.exolab.castor;
2,867,164
@Override public InputFormat getInputFormat() throws IOException { return new SequenceFileInputFormat<ThriftWritable, ThriftEnvelope>(); }
InputFormat function() throws IOException { return new SequenceFileInputFormat<ThriftWritable, ThriftEnvelope>(); }
/** * This will be called during planning on the front end. This is the * instance of InputFormat (rather than the class name) because the * load function may need to instantiate the InputFormat in order * to control how it is constructed. * * @return the InputFormat associated with this l...
This will be called during planning on the front end. This is the instance of InputFormat (rather than the class name) because the load function may need to instantiate the InputFormat in order to control how it is constructed
getInputFormat
{ "repo_name": "pierre/serialization", "path": "hadoop/src/main/java/com/ning/metrics/serialization/hadoop/pig/ThriftStorage.java", "license": "apache-2.0", "size": 13638 }
[ "com.ning.metrics.serialization.thrift.ThriftEnvelope", "com.ning.metrics.serialization.thrift.hadoop.ThriftWritable", "java.io.IOException", "org.apache.hadoop.mapreduce.InputFormat", "org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat" ]
import com.ning.metrics.serialization.thrift.ThriftEnvelope; import com.ning.metrics.serialization.thrift.hadoop.ThriftWritable; import java.io.IOException; import org.apache.hadoop.mapreduce.InputFormat; import org.apache.hadoop.mapreduce.lib.input.SequenceFileInputFormat;
import com.ning.metrics.serialization.thrift.*; import com.ning.metrics.serialization.thrift.hadoop.*; import java.io.*; import org.apache.hadoop.mapreduce.*; import org.apache.hadoop.mapreduce.lib.input.*;
[ "com.ning.metrics", "java.io", "org.apache.hadoop" ]
com.ning.metrics; java.io; org.apache.hadoop;
2,682,795
void enterConditionalOrExpression(@NotNull Java8Parser.ConditionalOrExpressionContext ctx); void exitConditionalOrExpression(@NotNull Java8Parser.ConditionalOrExpressionContext ctx);
void enterConditionalOrExpression(@NotNull Java8Parser.ConditionalOrExpressionContext ctx); void exitConditionalOrExpression(@NotNull Java8Parser.ConditionalOrExpressionContext ctx);
/** * Exit a parse tree produced by {@link Java8Parser#conditionalOrExpression}. * @param ctx the parse tree */
Exit a parse tree produced by <code>Java8Parser#conditionalOrExpression</code>
exitConditionalOrExpression
{ "repo_name": "IsThisThePayneResidence/intellidots", "path": "src/main/java/ua/edu/hneu/ast/parsers/Java8Listener.java", "license": "gpl-3.0", "size": 95845 }
[ "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;
608,501
public DcmElement putUL(int tag) { return put(ValueElement.createUL(tag)); }
DcmElement function(int tag) { return put(ValueElement.createUL(tag)); }
/** * Description of the Method * * @param tag Description of the Parameter * @return Description of the Return Value */
Description of the Method
putUL
{ "repo_name": "medicayun/medicayundicom", "path": "dcm4che14/tags/DCM4CHE_1_4_14/src/java/org/dcm4cheri/data/DcmObjectImpl.java", "license": "apache-2.0", "size": 84001 }
[ "org.dcm4che.data.DcmElement" ]
import org.dcm4che.data.DcmElement;
import org.dcm4che.data.*;
[ "org.dcm4che.data" ]
org.dcm4che.data;
1,078,955
public List<Integer> getSenCheckKeyIds() { return _senCheckKeyIds; }
List<Integer> function() { return _senCheckKeyIds; }
/** * Key ids that must be present in the same *sentence*; * These are the extra "check" key ids, that will not * be highlighted as part of the search results. * */
Key ids that must be present in the same *sentence*; These are the extra "check" key ids, that will not be highlighted as part of the search results
getSenCheckKeyIds
{ "repo_name": "akuz/readrz-public", "path": "rz-core/src/main/java/com/readrz/search/QueryKeyIds.java", "license": "agpl-3.0", "size": 4646 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
883,563
protected void computeInitialScheduleBounds () { DAGraph graph = getGraph (); Iterable<DAGraph.Vertex> itRoots = GraphUtil.getRootVertices (graph); Iterable<DAGraph.Vertex> itLeaves = GraphUtil.getLeafVertices (graph); int nIssueRate = getIssueRate (); int nMinExecUnits = getMinExecUnits (); for (...
void function () { DAGraph graph = getGraph (); Iterable<DAGraph.Vertex> itRoots = GraphUtil.getRootVertices (graph); Iterable<DAGraph.Vertex> itLeaves = GraphUtil.getLeafVertices (graph); int nIssueRate = getIssueRate (); int nMinExecUnits = getMinExecUnits (); for (DAGraph.Vertex v : graph.getVertices ()) { int nCrit...
/** * Compute the lower and upper scheduling bounds for each vertex in the graph based on the critical path analysis. */
Compute the lower and upper scheduling bounds for each vertex in the graph based on the critical path analysis
computeInitialScheduleBounds
{ "repo_name": "bcosenza/patus", "path": "src/ch/unibas/cs/hpwc/patus/codegen/backend/assembly/InstructionRegionScheduler.java", "license": "lgpl-2.1", "size": 14822 }
[ "ch.unibas.cs.hpwc.patus.codegen.backend.assembly.analyze.DAGraph", "ch.unibas.cs.hpwc.patus.graph.algorithm.GraphUtil", "ch.unibas.cs.hpwc.patus.util.MathUtil" ]
import ch.unibas.cs.hpwc.patus.codegen.backend.assembly.analyze.DAGraph; import ch.unibas.cs.hpwc.patus.graph.algorithm.GraphUtil; import ch.unibas.cs.hpwc.patus.util.MathUtil;
import ch.unibas.cs.hpwc.patus.codegen.backend.assembly.analyze.*; import ch.unibas.cs.hpwc.patus.graph.algorithm.*; import ch.unibas.cs.hpwc.patus.util.*;
[ "ch.unibas.cs" ]
ch.unibas.cs;
2,544,735
void syncSaveContainerpage(CmsUUID pageStructureId, List<CmsContainer> containers, String locale) throws CmsRpcException;
void syncSaveContainerpage(CmsUUID pageStructureId, List<CmsContainer> containers, String locale) throws CmsRpcException;
/** * Saves the container-page in a synchronized RPC call.<p> * * @param pageStructureId the container page structure id * @param containers the container-page's containers * @param locale the content locale * * @throws CmsRpcException if something goes wrong processing the request ...
Saves the container-page in a synchronized RPC call
syncSaveContainerpage
{ "repo_name": "it-tavis/opencms-core", "path": "src/org/opencms/ade/containerpage/shared/rpc/I_CmsContainerpageService.java", "license": "lgpl-2.1", "size": 14846 }
[ "java.util.List", "org.opencms.ade.containerpage.shared.CmsContainer", "org.opencms.gwt.CmsRpcException", "org.opencms.util.CmsUUID" ]
import java.util.List; import org.opencms.ade.containerpage.shared.CmsContainer; import org.opencms.gwt.CmsRpcException; import org.opencms.util.CmsUUID;
import java.util.*; import org.opencms.ade.containerpage.shared.*; import org.opencms.gwt.*; import org.opencms.util.*;
[ "java.util", "org.opencms.ade", "org.opencms.gwt", "org.opencms.util" ]
java.util; org.opencms.ade; org.opencms.gwt; org.opencms.util;
1,482,540
@SuppressWarnings("unchecked") @Test public void testNamedQueryHint() throws URISyntaxException { // load the cache Map<String, String> hints = new HashMap<String, String>(); hints.put(QueryHints.REFRESH, "true"); List<StaticUser> users = (List<StaticUser>)restNamedQuer...
@SuppressWarnings(STR) void function() throws URISyntaxException { Map<String, String> hints = new HashMap<String, String>(); hints.put(QueryHints.REFRESH, "true"); List<StaticUser> users = (List<StaticUser>)restNamedQuery(STR, STR, null, hints); assertTrue(STR, users.size() == 3); StaticUser user1 = users.get(0); Stri...
/** * Test named query hint. * * @throws URISyntaxException the uRI syntax exception */
Test named query hint
testNamedQueryHint
{ "repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs", "path": "jpa/eclipselink.jpars.test/src/org/eclipse/persistence/jpars/test/server/ServerCrudTest.java", "license": "epl-1.0", "size": 59374 }
[ "java.net.URISyntaxException", "java.util.HashMap", "java.util.List", "java.util.Map", "org.eclipse.persistence.config.QueryHints", "org.eclipse.persistence.jpars.test.model.auction.StaticUser", "org.junit.Assert" ]
import java.net.URISyntaxException; import java.util.HashMap; import java.util.List; import java.util.Map; import org.eclipse.persistence.config.QueryHints; import org.eclipse.persistence.jpars.test.model.auction.StaticUser; import org.junit.Assert;
import java.net.*; import java.util.*; import org.eclipse.persistence.config.*; import org.eclipse.persistence.jpars.test.model.auction.*; import org.junit.*;
[ "java.net", "java.util", "org.eclipse.persistence", "org.junit" ]
java.net; java.util; org.eclipse.persistence; org.junit;
372,118
public static Config getKafkaAndMetricsConfigFromProperties(Properties props) { return ConfigUtils.propertiesToConfig(props, Optional.of(ConfigurationKeys.METRICS_CONFIGURATIONS_PREFIX)) .withFallback(ConfigUtils.propertiesToConfig(props, Optional.of(ConfigurationKeys.SHARED_KAFKA_CONFIG_PREFI...
static Config function(Properties props) { return ConfigUtils.propertiesToConfig(props, Optional.of(ConfigurationKeys.METRICS_CONFIGURATIONS_PREFIX)) .withFallback(ConfigUtils.propertiesToConfig(props, Optional.of(ConfigurationKeys.SHARED_KAFKA_CONFIG_PREFIX))); } public static class BuilderFactory {
/** * Get config with metrics configuration and shared kafka configuration */
Get config with metrics configuration and shared kafka configuration
getKafkaAndMetricsConfigFromProperties
{ "repo_name": "jinhyukchang/gobblin", "path": "gobblin-modules/gobblin-kafka-common/src/main/java/org/apache/gobblin/metrics/kafka/KafkaReporter.java", "license": "apache-2.0", "size": 5886 }
[ "com.google.common.base.Optional", "com.typesafe.config.Config", "java.util.Properties", "org.apache.gobblin.configuration.ConfigurationKeys", "org.apache.gobblin.util.ConfigUtils" ]
import com.google.common.base.Optional; import com.typesafe.config.Config; import java.util.Properties; import org.apache.gobblin.configuration.ConfigurationKeys; import org.apache.gobblin.util.ConfigUtils;
import com.google.common.base.*; import com.typesafe.config.*; import java.util.*; import org.apache.gobblin.configuration.*; import org.apache.gobblin.util.*;
[ "com.google.common", "com.typesafe.config", "java.util", "org.apache.gobblin" ]
com.google.common; com.typesafe.config; java.util; org.apache.gobblin;
1,364,861
private org.opennms.netmgt.xml.event.Tticket transform(org.opennms.netmgt.xml.eventconf.Tticket src) { org.opennms.netmgt.xml.event.Tticket dest = new org.opennms.netmgt.xml.event.Tticket(); dest.setContent(src.getContent()); dest.setState(src.getState()); return dest; }
org.opennms.netmgt.xml.event.Tticket function(org.opennms.netmgt.xml.eventconf.Tticket src) { org.opennms.netmgt.xml.event.Tticket dest = new org.opennms.netmgt.xml.event.Tticket(); dest.setContent(src.getContent()); dest.setState(src.getState()); return dest; }
/** * This method is used to transform a trouble ticket event configuration * instance into a trouble ticket event instance. This is used when the * incoming event does not have any trouble ticket information and the * information from the configuration object is copied. * * @param src ...
This method is used to transform a trouble ticket event configuration instance into a trouble ticket event instance. This is used when the incoming event does not have any trouble ticket information and the information from the configuration object is copied
transform
{ "repo_name": "dzonekl/oss2nms", "path": "plugins/com.netxforge.oss2.config/src/com/netxforge/oss2/config/EventExpander.java", "license": "gpl-3.0", "size": 29114 }
[ "org.opennms.netmgt.xml.event.Tticket" ]
import org.opennms.netmgt.xml.event.Tticket;
import org.opennms.netmgt.xml.event.*;
[ "org.opennms.netmgt" ]
org.opennms.netmgt;
107,593
private void refreshInfiniteList() { WebElement refreshButton = findDomElement(By.cssSelector(REFRESH_BUTTON)); refreshButton.click(); waitForLoadingIndicatorToDisappear(); }
void function() { WebElement refreshButton = findDomElement(By.cssSelector(REFRESH_BUTTON)); refreshButton.click(); waitForLoadingIndicatorToDisappear(); }
/** * Refresh infinite List */
Refresh infinite List
refreshInfiniteList
{ "repo_name": "igor-sfdc/aura", "path": "aura/src/test/java/org/auraframework/components/ui/infiniteListRow/infiniteListRowUITest.java", "license": "apache-2.0", "size": 14304 }
[ "org.openqa.selenium.By", "org.openqa.selenium.WebElement" ]
import org.openqa.selenium.By; import org.openqa.selenium.WebElement;
import org.openqa.selenium.*;
[ "org.openqa.selenium" ]
org.openqa.selenium;
348,618
void removeROIShape(long id, Coord3D coord) throws NoSuchROIException { ROIShape shape = roiComponent.getShape(id, coord); if (shape != null) { if (drawingComponent.contains(shape.getFigure())) drawingComponent.removeFigure(shape.getFigure()); else roiComponent.deleteShape(id, coord); } }
void removeROIShape(long id, Coord3D coord) throws NoSuchROIException { ROIShape shape = roiComponent.getShape(id, coord); if (shape != null) { if (drawingComponent.contains(shape.getFigure())) drawingComponent.removeFigure(shape.getFigure()); else roiComponent.deleteShape(id, coord); } }
/** * Removes the <code>ROIShape</code> corresponding to the passed id on * the plane coordinates. * * @param id The id of the <code>ROI</code>. * @param coord the coordinates of the shape to delete. * @throws NoSuchROIException If the ROI does not exist. */
Removes the <code>ROIShape</code> corresponding to the passed id on the plane coordinates
removeROIShape
{ "repo_name": "bramalingam/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/measurement/view/MeasurementViewerModel.java", "license": "gpl-2.0", "size": 50321 }
[ "org.openmicroscopy.shoola.util.roi.exception.NoSuchROIException", "org.openmicroscopy.shoola.util.roi.model.ROIShape", "org.openmicroscopy.shoola.util.roi.model.util.Coord3D" ]
import org.openmicroscopy.shoola.util.roi.exception.NoSuchROIException; import org.openmicroscopy.shoola.util.roi.model.ROIShape; import org.openmicroscopy.shoola.util.roi.model.util.Coord3D;
import org.openmicroscopy.shoola.util.roi.exception.*; import org.openmicroscopy.shoola.util.roi.model.*; import org.openmicroscopy.shoola.util.roi.model.util.*;
[ "org.openmicroscopy.shoola" ]
org.openmicroscopy.shoola;
1,753,847
private void facetTestSetup() throws Exception{ createSchemaOneOfEachType(); createTableWithSchema(); // Now add some data RowSet rowSet = new RowSet(); rowSet.setRows(TableModelTestUtils.createRows(schema, 6)); rowSet.setHeaders(TableModelUtils.getSelectColumns(schema)); rowSet.setTableId(table...
void function() throws Exception{ createSchemaOneOfEachType(); createTableWithSchema(); RowSet rowSet = new RowSet(); rowSet.setRows(TableModelTestUtils.createRows(schema, 6)); rowSet.setHeaders(TableModelUtils.getSelectColumns(schema)); rowSet.setTableId(tableId); referenceSet = appendRows(adminUserInfo, tableId, rowS...
/** * Stolen from testLimitOffset() */
Stolen from testLimitOffset()
facetTestSetup
{ "repo_name": "zimingd/Synapse-Repository-Services", "path": "services/workers/src/test/java/org/sagebionetworks/table/worker/TableWorkerIntegrationTest.java", "license": "apache-2.0", "size": 147213 }
[ "org.junit.jupiter.api.Assertions", "org.sagebionetworks.repo.model.dbo.dao.table.TableModelTestUtils", "org.sagebionetworks.repo.model.table.RowSet", "org.sagebionetworks.table.cluster.utils.TableModelUtils" ]
import org.junit.jupiter.api.Assertions; import org.sagebionetworks.repo.model.dbo.dao.table.TableModelTestUtils; import org.sagebionetworks.repo.model.table.RowSet; import org.sagebionetworks.table.cluster.utils.TableModelUtils;
import org.junit.jupiter.api.*; import org.sagebionetworks.repo.model.dbo.dao.table.*; import org.sagebionetworks.repo.model.table.*; import org.sagebionetworks.table.cluster.utils.*;
[ "org.junit.jupiter", "org.sagebionetworks.repo", "org.sagebionetworks.table" ]
org.junit.jupiter; org.sagebionetworks.repo; org.sagebionetworks.table;
1,500,681
public ServiceResponse<Void> createUsersWithListInput(List<User> body) throws ServiceException, IOException { Validator.validate(body); Call<ResponseBody> call = service.createUsersWithListInput(body); return createUsersWithListInputDelegate(call.execute()); }
ServiceResponse<Void> function(List<User> body) throws ServiceException, IOException { Validator.validate(body); Call<ResponseBody> call = service.createUsersWithListInput(body); return createUsersWithListInputDelegate(call.execute()); }
/** * Creates list of users with given input array. * * @param body List of user object * @throws ServiceException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @return the {@link ServiceResponse} object if successful. */
Creates list of users with given input array
createUsersWithListInput
{ "repo_name": "John-Hart/autorest", "path": "Samples/petstore/Java/implementation/SwaggerPetstoreImpl.java", "license": "mit", "size": 88839 }
[ "com.microsoft.rest.ServiceException", "com.microsoft.rest.ServiceResponse", "com.microsoft.rest.Validator", "java.io.IOException", "java.util.List" ]
import com.microsoft.rest.ServiceException; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.Validator; import java.io.IOException; import java.util.List;
import com.microsoft.rest.*; import java.io.*; import java.util.*;
[ "com.microsoft.rest", "java.io", "java.util" ]
com.microsoft.rest; java.io; java.util;
623,604
@Override @NotNull public String getFullPath() { final String fullPath = getDirectoryFullPath(); if (fullPath == null) { throw new InvalidResponseException(pathNotFoundError()); } return fullPath; }
String function() { final String fullPath = getDirectoryFullPath(); if (fullPath == null) { throw new InvalidResponseException(pathNotFoundError()); } return fullPath; }
/** * Retrieves a full path without the forward slash prefix. * * @return The full path without the forward slash prefix. A root directory will return empty. */
Retrieves a full path without the forward slash prefix
getFullPath
{ "repo_name": "hurzl/dmix", "path": "JMPDComm/src/main/java/com/anpmech/mpd/item/AbstractDirectoryBase.java", "license": "apache-2.0", "size": 7178 }
[ "com.anpmech.mpd.exception.InvalidResponseException" ]
import com.anpmech.mpd.exception.InvalidResponseException;
import com.anpmech.mpd.exception.*;
[ "com.anpmech.mpd" ]
com.anpmech.mpd;
1,815,547
@Override public void setCryptoVaultManager(CryptoVaultManager cryptoVaultManager) { this.cryptoVaultManager = cryptoVaultManager; }
void function(CryptoVaultManager cryptoVaultManager) { this.cryptoVaultManager = cryptoVaultManager; }
/** * DealsWithCryptoVault Interface implementation. */
DealsWithCryptoVault Interface implementation
setCryptoVaultManager
{ "repo_name": "fvasquezjatar/fermat-unused", "path": "DMP/plugin/transaction/fermat-dmp-plugin-transaction-outgoing-extra-user-bitdubai/src/main/java/com/bitdubai/fermat_dmp_plugin/layer/transaction/outgoing_extra_user/developer/bitdubai/version_1/structure/OutgoingExtraUserTransactionProcessorAgent.java", "lice...
[ "com.bitdubai.fermat_cry_api.layer.crypto_vault.CryptoVaultManager" ]
import com.bitdubai.fermat_cry_api.layer.crypto_vault.CryptoVaultManager;
import com.bitdubai.fermat_cry_api.layer.crypto_vault.*;
[ "com.bitdubai.fermat_cry_api" ]
com.bitdubai.fermat_cry_api;
2,508,162
public synchronized void elementRendered(String requestUniqueId, BaseUpdateableElement element) { if(logMINOR){ Logger.minor(this, "Element is rendered in page:"+requestUniqueId+" element:"+element); } // Add to the pages if (pages.containsKey(requestUniqueId) == false) { pages.put(requestUniqueId, new...
synchronized void function(String requestUniqueId, BaseUpdateableElement element) { if(logMINOR){ Logger.minor(this, STR+requestUniqueId+STR+element); } if (pages.containsKey(requestUniqueId) == false) { pages.put(requestUniqueId, new ArrayList<BaseUpdateableElement>()); } pages.get(requestUniqueId).add(element); Strin...
/** * A pushed element is rendered and needs to be tracked. * * @param requestUniqueId * - The requestId that rendered the element * @param element * - The element that is rendered */
A pushed element is rendered and needs to be tracked
elementRendered
{ "repo_name": "wnoisephx/fred-official", "path": "src/freenet/clients/http/updateableelements/PushDataManager.java", "license": "gpl-2.0", "size": 12102 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
877,695
public AssertionType copyAssertionTypeObject(AssertionType orig) { AssertionType copy = null; ByteArrayOutputStream baOutStrm = null; ByteArrayInputStream baInStrm = null; try { JAXBUnmarshallingUtil util = new JAXBUnmarshallingUtil(); JAXBContextHand...
AssertionType function(AssertionType orig) { AssertionType copy = null; ByteArrayOutputStream baOutStrm = null; ByteArrayInputStream baInStrm = null; try { JAXBUnmarshallingUtil util = new JAXBUnmarshallingUtil(); JAXBContextHandler oHandler = new JAXBContextHandler(); JAXBContext jc = oHandler.getJAXBContext(STR); Mar...
/** * Copy the original AssertionType using JAXB * * @param orig * @return copy of AssertionType */
Copy the original AssertionType using JAXB
copyAssertionTypeObject
{ "repo_name": "AurionProject/Aurion", "path": "Product/Production/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/async/AsyncMessageProcessHelper.java", "license": "bsd-3-clause", "size": 26347 }
[ "gov.hhs.fha.nhinc.common.nhinccommon.AssertionType", "gov.hhs.fha.nhinc.transform.marshallers.JAXBContextHandler", "gov.hhs.fha.nhinc.util.JAXBUnmarshallingUtil", "gov.hhs.fha.nhinc.util.StreamUtils", "java.io.ByteArrayInputStream", "java.io.ByteArrayOutputStream", "javax.xml.bind.JAXBContext", "java...
import gov.hhs.fha.nhinc.common.nhinccommon.AssertionType; import gov.hhs.fha.nhinc.transform.marshallers.JAXBContextHandler; import gov.hhs.fha.nhinc.util.JAXBUnmarshallingUtil; import gov.hhs.fha.nhinc.util.StreamUtils; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import javax.xml.bind.J...
import gov.hhs.fha.nhinc.common.nhinccommon.*; import gov.hhs.fha.nhinc.transform.marshallers.*; import gov.hhs.fha.nhinc.util.*; import java.io.*; import javax.xml.bind.*; import javax.xml.stream.*;
[ "gov.hhs.fha", "java.io", "javax.xml" ]
gov.hhs.fha; java.io; javax.xml;
2,784,289
void saveUserPrefs(UserPrefs userPrefs) throws IOException;
void saveUserPrefs(UserPrefs userPrefs) throws IOException;
/** * Saves the given {@link seedu.dailyplanner.model.UserPrefs} to the storage. * @param userPrefs cannot be null. * @throws IOException if there was any problem writing to the file. */
Saves the given <code>seedu.dailyplanner.model.UserPrefs</code> to the storage
saveUserPrefs
{ "repo_name": "CS2103AUG2016-F11-C4/main", "path": "src/main/java/seedu/dailyplanner/storage/UserPrefsStorage.java", "license": "mit", "size": 996 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,712,971
public ShardHandler getShardHandler(final HttpClient httpClient){ return new HttpShardHandler(this, httpClient); }
ShardHandler function(final HttpClient httpClient){ return new HttpShardHandler(this, httpClient); }
/** * Get {@link ShardHandler} that uses custom http client. */
Get <code>ShardHandler</code> that uses custom http client
getShardHandler
{ "repo_name": "visouza/solr-5.0.0", "path": "solr/core/src/java/org/apache/solr/handler/component/HttpShardHandlerFactory.java", "license": "apache-2.0", "size": 10620 }
[ "org.apache.http.client.HttpClient" ]
import org.apache.http.client.HttpClient;
import org.apache.http.client.*;
[ "org.apache.http" ]
org.apache.http;
2,587,707
@ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String resourceName);
@ServiceMethod(returns = ReturnType.SINGLE) void delete(String resourceGroupName, String resourceName);
/** * Deletes the OpenShift managed cluster with a specified resource group and name. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @throws IllegalArgumentException thrown if parameters fail the validatio...
Deletes the OpenShift managed cluster with a specified resource group and name
delete
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/OpenShiftManagedClustersClient.java", "license": "mit", "size": 28206 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod;
import com.azure.core.annotation.*;
[ "com.azure.core" ]
com.azure.core;
285,918
private boolean wasCancelled(CacheException e) { return X.hasSuppressed(e, QueryCancelledException.class); }
boolean function(CacheException e) { return X.hasSuppressed(e, QueryCancelledException.class); }
/** * Returns true if the exception is triggered by query cancel. * * @param e Exception. * @return {@code true} if exception is caused by cancel. */
Returns true if the exception is triggered by query cancel
wasCancelled
{ "repo_name": "WilliamDo/ignite", "path": "modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/twostep/GridReduceQueryExecutor.java", "license": "apache-2.0", "size": 61953 }
[ "javax.cache.CacheException", "org.apache.ignite.cache.query.QueryCancelledException", "org.apache.ignite.internal.util.typedef.X" ]
import javax.cache.CacheException; import org.apache.ignite.cache.query.QueryCancelledException; import org.apache.ignite.internal.util.typedef.X;
import javax.cache.*; import org.apache.ignite.cache.query.*; import org.apache.ignite.internal.util.typedef.*;
[ "javax.cache", "org.apache.ignite" ]
javax.cache; org.apache.ignite;
2,578,825
public CrossSiteAccessPolicies crossSiteAccessPolicies() { return this.crossSiteAccessPolicies; }
CrossSiteAccessPolicies function() { return this.crossSiteAccessPolicies; }
/** * Get the Live Event access policies. * * @return the crossSiteAccessPolicies value */
Get the Live Event access policies
crossSiteAccessPolicies
{ "repo_name": "hovsepm/azure-sdk-for-java", "path": "mediaservices/resource-manager/v2018_30_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_30_30_preview/implementation/LiveEventInner.java", "license": "mit", "size": 7396 }
[ "com.microsoft.azure.management.mediaservices.v2018_30_30_preview.CrossSiteAccessPolicies" ]
import com.microsoft.azure.management.mediaservices.v2018_30_30_preview.CrossSiteAccessPolicies;
import com.microsoft.azure.management.mediaservices.v2018_30_30_preview.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
1,724,001
public String getWorkerNodeDirectory(Job job) { return mPegasusLite.getWorkerNodeDirectory(job); }
String function(Job job) { return mPegasusLite.getWorkerNodeDirectory(job); }
/** * Pass through to PegasusLite instance * * @return String */
Pass through to PegasusLite instance
getWorkerNodeDirectory
{ "repo_name": "pegasus-isi/pegasus", "path": "src/edu/isi/pegasus/planner/code/gridstart/PegasusAWSBatchGS.java", "license": "apache-2.0", "size": 18139 }
[ "edu.isi.pegasus.planner.classes.Job" ]
import edu.isi.pegasus.planner.classes.Job;
import edu.isi.pegasus.planner.classes.*;
[ "edu.isi.pegasus" ]
edu.isi.pegasus;
1,862,712
public List<com.cellarhq.generated.tables.pojos.Glassware> fetchById(Long... values) { return fetch(Glassware.GLASSWARE.ID, values); }
List<com.cellarhq.generated.tables.pojos.Glassware> function(Long... values) { return fetch(Glassware.GLASSWARE.ID, values); }
/** * Fetch records that have <code>id IN (values)</code> */
Fetch records that have <code>id IN (values)</code>
fetchById
{ "repo_name": "CellarHQ/cellarhq.com", "path": "model/src/main/generated/com/cellarhq/generated/tables/daos/GlasswareDao.java", "license": "mit", "size": 7563 }
[ "com.cellarhq.generated.tables.Glassware", "java.util.List" ]
import com.cellarhq.generated.tables.Glassware; import java.util.List;
import com.cellarhq.generated.tables.*; import java.util.*;
[ "com.cellarhq.generated", "java.util" ]
com.cellarhq.generated; java.util;
2,293,924
public static TestSuite newTestSuite(Object... suiteOrClasses) { TestSuite suite = new TestSuite(); for (Object suiteOrClass : suiteOrClasses) { if (suiteOrClass instanceof TestSuite) suite.addTest((TestSuite) suiteOrClass); else if (suiteOrClass instanceof Class)...
static TestSuite function(Object... suiteOrClasses) { TestSuite suite = new TestSuite(); for (Object suiteOrClass : suiteOrClasses) { if (suiteOrClass instanceof TestSuite) suite.addTest((TestSuite) suiteOrClass); else if (suiteOrClass instanceof Class) suite.addTest(new TestSuite((Class<?>) suiteOrClass)); else throw ...
/** * Runs all unit tests in the given test suite. * Actual behavior influenced by jsr166.* system properties. */
Runs all unit tests in the given test suite. Actual behavior influenced by jsr166.* system properties
newTestSuite
{ "repo_name": "debian-pkg-android-tools/android-platform-libcore", "path": "jsr166-tests/src/test/java/jsr166/JSR166TestCase.java", "license": "gpl-2.0", "size": 64461 }
[ "junit.framework.TestSuite" ]
import junit.framework.TestSuite;
import junit.framework.*;
[ "junit.framework" ]
junit.framework;
1,811,123
@Test public void testValidatePath() throws Exception { final CookieSpec cookiespec = new RFC2965Spec(); Header header = new BasicHeader("Set-Cookie2", "name=value;path=/path;version=1"); try { final CookieOrigin origin = new CookieOrigin("www.domain.com", 80, "/", false); ...
void function() throws Exception { final CookieSpec cookiespec = new RFC2965Spec(); Header header = new BasicHeader(STR, STR); try { final CookieOrigin origin = new CookieOrigin(STR, 80, "/", false); final List<Cookie> cookies = cookiespec.parse(header, origin); for (int i = 0; i < cookies.size(); i++) { cookiespec.val...
/** * Test cookie {@code Path} validation. Cookie path attribute must path-match * request path. */
Test cookie Path validation. Cookie path attribute must path-match request path
testValidatePath
{ "repo_name": "byronka/xenos", "path": "lib/lib_src/httpcomponents_source/httpcomponents-client-4.4/httpclient/src/test/java/org/apache/http/impl/cookie/TestCookieRFC2965Spec.java", "license": "mit", "size": 45790 }
[ "java.util.List", "org.apache.http.Header", "org.apache.http.cookie.Cookie", "org.apache.http.cookie.CookieOrigin", "org.apache.http.cookie.CookieSpec", "org.apache.http.cookie.MalformedCookieException", "org.apache.http.message.BasicHeader", "org.junit.Assert" ]
import java.util.List; import org.apache.http.Header; import org.apache.http.cookie.Cookie; import org.apache.http.cookie.CookieOrigin; import org.apache.http.cookie.CookieSpec; import org.apache.http.cookie.MalformedCookieException; import org.apache.http.message.BasicHeader; import org.junit.Assert;
import java.util.*; import org.apache.http.*; import org.apache.http.cookie.*; import org.apache.http.message.*; import org.junit.*;
[ "java.util", "org.apache.http", "org.junit" ]
java.util; org.apache.http; org.junit;
175,221
protected Transaction txnBeginCursor() throws DatabaseException { return txnBeginCursor(null, null); }
Transaction function() throws DatabaseException { return txnBeginCursor(null, null); }
/** * Begin a txn if in TXN_USER or TXN_AUTO mode; otherwise return null; */
Begin a txn if in TXN_USER or TXN_AUTO mode; otherwise return null
txnBeginCursor
{ "repo_name": "nologic/nabs", "path": "client/trunk/shared/libraries/je-3.2.44/test/com/sleepycat/je/test/TxnTestCase.java", "license": "gpl-2.0", "size": 6559 }
[ "com.sleepycat.je.DatabaseException", "com.sleepycat.je.Transaction" ]
import com.sleepycat.je.DatabaseException; import com.sleepycat.je.Transaction;
import com.sleepycat.je.*;
[ "com.sleepycat.je" ]
com.sleepycat.je;
2,392,232
public static void fastNlMeansDenoisingColored(Mat src, Mat dst) { fastNlMeansDenoisingColored_1(src.nativeObj, dst.nativeObj); return; } // // C++: void fastNlMeansDenoisingColoredMulti(vector_Mat srcImgs, Mat& dst, int imgToDenoiseIndex, int temporalWindowSize, float h = 3, float ...
static void function(Mat src, Mat dst) { fastNlMeansDenoisingColored_1(src.nativeObj, dst.nativeObj); return; } //
/** * <p>Modification of <code>fastNlMeansDenoising</code> function for colored images</p> * <p/> * <p>The function converts image to CIELAB colorspace and then separately denoise * L and AB components with given h parameters using <code>fastNlMeansDenoising</code> * function.</p> * *...
Modification of <code>fastNlMeansDenoising</code> function for colored images The function converts image to CIELAB colorspace and then separately denoise L and AB components with given h parameters using <code>fastNlMeansDenoising</code> function
fastNlMeansDenoisingColored
{ "repo_name": "dilloncc/podchief-android", "path": "scanlibrary/src/main/jni/sdk/java/src/org/opencv/photo/Photo.java", "license": "apache-2.0", "size": 20245 }
[ "org.opencv.core.Mat" ]
import org.opencv.core.Mat;
import org.opencv.core.*;
[ "org.opencv.core" ]
org.opencv.core;
685,098
@Test public void testStopOverrideFromCoprocessor() throws Exception { Admin admin = testUtil.getAdmin(); HRegionServer regionserver = cluster.getRegionServer(0); admin.stopRegionServer(regionserver.getServerName().getHostAndPort()); // regionserver should have failed to stop due to coprocessor ...
void function() throws Exception { Admin admin = testUtil.getAdmin(); HRegionServer regionserver = cluster.getRegionServer(0); admin.stopRegionServer(regionserver.getServerName().getHostAndPort()); assertFalse(cluster.getRegionServer(0).isAborted()); assertFalse(cluster.getRegionServer(0).isStopped()); } public static ...
/** * Test that a coprocessor is able to override a normal regionserver stop request. */
Test that a coprocessor is able to override a normal regionserver stop request
testStopOverrideFromCoprocessor
{ "repo_name": "ultratendency/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerAbort.java", "license": "apache-2.0", "size": 9761 }
[ "org.apache.hadoop.hbase.client.Admin", "org.apache.hadoop.hbase.coprocessor.RegionCoprocessor", "org.apache.hadoop.hbase.coprocessor.RegionObserver", "org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessor", "org.apache.hadoop.hbase.coprocessor.RegionServerObserver", "org.junit.Assert" ]
import org.apache.hadoop.hbase.client.Admin; import org.apache.hadoop.hbase.coprocessor.RegionCoprocessor; import org.apache.hadoop.hbase.coprocessor.RegionObserver; import org.apache.hadoop.hbase.coprocessor.RegionServerCoprocessor; import org.apache.hadoop.hbase.coprocessor.RegionServerObserver; import org.junit.Asse...
import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.coprocessor.*; import org.junit.*;
[ "org.apache.hadoop", "org.junit" ]
org.apache.hadoop; org.junit;
1,737,591
public void addNotification(Invoke invoke) { this.mNotifications.add(invoke); }
void function(Invoke invoke) { this.mNotifications.add(invoke); }
/** * Adds a Invoke object correpsonding to a notification. * * @param invoke the invoke object containing the notification */
Adds a Invoke object correpsonding to a notification
addNotification
{ "repo_name": "pegasus-isi/pegasus", "path": "src/edu/isi/pegasus/planner/catalog/transformation/TransformationCatalogEntry.java", "license": "apache-2.0", "size": 32053 }
[ "edu.isi.pegasus.planner.dax.Invoke" ]
import edu.isi.pegasus.planner.dax.Invoke;
import edu.isi.pegasus.planner.dax.*;
[ "edu.isi.pegasus" ]
edu.isi.pegasus;
2,610,520
public void preprocess() { for (Iterator<JRCrosstab> it = getCrosstabs().iterator(); it.hasNext();) { JRDesignCrosstab crosstab = (JRDesignCrosstab) it.next(); crosstab.preprocess(); } }
void function() { for (Iterator<JRCrosstab> it = getCrosstabs().iterator(); it.hasNext();) { JRDesignCrosstab crosstab = (JRDesignCrosstab) it.next(); crosstab.preprocess(); } }
/** * Performs preliminary processing and calculations prior to compilation. */
Performs preliminary processing and calculations prior to compilation
preprocess
{ "repo_name": "OpenSoftwareSolutions/PDFReporter", "path": "pdfreporter-core/src/org/oss/pdfreporter/engine/design/JasperDesign.java", "license": "lgpl-3.0", "size": 31170 }
[ "java.util.Iterator", "org.oss.pdfreporter.crosstabs.JRCrosstab", "org.oss.pdfreporter.crosstabs.design.JRDesignCrosstab" ]
import java.util.Iterator; import org.oss.pdfreporter.crosstabs.JRCrosstab; import org.oss.pdfreporter.crosstabs.design.JRDesignCrosstab;
import java.util.*; import org.oss.pdfreporter.crosstabs.*; import org.oss.pdfreporter.crosstabs.design.*;
[ "java.util", "org.oss.pdfreporter" ]
java.util; org.oss.pdfreporter;
1,675,141
points.add(new Coordinate(lon, lat)); return this; }
points.add(new Coordinate(lon, lat)); return this; }
/** * Adds a point to the Polygon * * @param lon Longitude of the point * @param lat Latitude of the point * @return this */
Adds a point to the Polygon
point
{ "repo_name": "yipen9/spatial4j", "path": "src/test/java/com/spatial4j/core/io/PolygonBuilder.java", "license": "apache-2.0", "size": 4323 }
[ "com.vividsolutions.jts.geom.Coordinate" ]
import com.vividsolutions.jts.geom.Coordinate;
import com.vividsolutions.jts.geom.*;
[ "com.vividsolutions.jts" ]
com.vividsolutions.jts;
569,603
public String getHiddenHtml(final TargetMode _mode) throws EFapsException { this.targetMode = _mode; this.display = Display.HIDDEN; String ret = null; ret = executeEvents(EventType.UI_FIELD_VALUE); if (ret == null) { ret = executeEvents(EventType.UI_FI...
String function(final TargetMode _mode) throws EFapsException { this.targetMode = _mode; this.display = Display.HIDDEN; String ret = null; ret = executeEvents(EventType.UI_FIELD_VALUE); if (ret == null) { ret = executeEvents(EventType.UI_FIELD_FORMAT); if (ret == null && this.ui != null) { ret = this.ui.getHiddenHtml(t...
/** * Method to get html code for this FieldValue in case of hidden. * * @see #executeEvents * @param _mode target mode * @throws EFapsException on error * @return html code as a String */
Method to get html code for this FieldValue in case of hidden
getHiddenHtml
{ "repo_name": "ov3rflow/eFaps-Kernel", "path": "src/main/java/org/efaps/admin/datamodel/ui/FieldValue.java", "license": "apache-2.0", "size": 18447 }
[ "org.efaps.admin.event.EventType", "org.efaps.admin.ui.AbstractUserInterfaceObject", "org.efaps.admin.ui.field.Field", "org.efaps.util.EFapsException" ]
import org.efaps.admin.event.EventType; import org.efaps.admin.ui.AbstractUserInterfaceObject; import org.efaps.admin.ui.field.Field; import org.efaps.util.EFapsException;
import org.efaps.admin.event.*; import org.efaps.admin.ui.*; import org.efaps.admin.ui.field.*; import org.efaps.util.*;
[ "org.efaps.admin", "org.efaps.util" ]
org.efaps.admin; org.efaps.util;
915,857
public void setCenter(float[] val) { if ( center == null ) { center = (SFVec3f)getField( "center" ); } center.setValue( val ); }
void function(float[] val) { if ( center == null ) { center = (SFVec3f)getField( STR ); } center.setValue( val ); }
/** Set the center field. * @param val The float[] to set. */
Set the center field
setCenter
{ "repo_name": "Norkart/NK-VirtualGlobe", "path": "Xj3D/src/java/org/xj3d/sai/external/node/navigation/SAILOD.java", "license": "gpl-2.0", "size": 6410 }
[ "org.web3d.x3d.sai.SFVec3f" ]
import org.web3d.x3d.sai.SFVec3f;
import org.web3d.x3d.sai.*;
[ "org.web3d.x3d" ]
org.web3d.x3d;
76,551
protected String getUrl(String repo, String oldId, String newId) { IRuntimeManager runtimeManager = GitblitContext.getManager(IRuntimeManager.class); String canonicalUrl = runtimeManager.getSettings().getString(Keys.web.canonicalUrl, "https://localhost:8443"); if (oldId == null && newId != null) { // c...
String function(String repo, String oldId, String newId) { IRuntimeManager runtimeManager = GitblitContext.getManager(IRuntimeManager.class); String canonicalUrl = runtimeManager.getSettings().getString(Keys.web.canonicalUrl, STR{0}/commit?r={1}&h={2}STR{0}/log?r={1}&h={2}STR{0}/compare?r={1}&h={2}..{3}STR{0}/summary?r...
/** * Returns a link appropriate for the push. * * If both new and old ids are null, the summary page link is returned. * * @param repo * @param oldId * @param newId * @return a link */
Returns a link appropriate for the push. If both new and old ids are null, the summary page link is returned
getUrl
{ "repo_name": "gitblit/gitblit-hipchat-plugin", "path": "src/main/java/com/gitblit/plugin/hipchat/HipChatReceiveHook.java", "license": "apache-2.0", "size": 11156 }
[ "com.gitblit.Keys", "com.gitblit.manager.IRuntimeManager", "com.gitblit.servlet.GitblitContext", "java.text.MessageFormat" ]
import com.gitblit.Keys; import com.gitblit.manager.IRuntimeManager; import com.gitblit.servlet.GitblitContext; import java.text.MessageFormat;
import com.gitblit.*; import com.gitblit.manager.*; import com.gitblit.servlet.*; import java.text.*;
[ "com.gitblit", "com.gitblit.manager", "com.gitblit.servlet", "java.text" ]
com.gitblit; com.gitblit.manager; com.gitblit.servlet; java.text;
817,949
public void stop() { logger.info("Initiating shutdown ..."); // Only do a system exit if we're running standalone if (isStandAlone()) { // if we're in a wrapper, we have to tell the wrapper to shut us down if (isRestartable()) { try { ...
void function() { logger.info(STR); if (isStandAlone()) { if (isRestartable()) { try { Class<?> wrapperClass = Class.forName(WRAPPER_CLASSNAME); Method stopMethod = wrapperClass.getMethod("stop", Integer.TYPE); stopMethod.invoke(null, 0); } catch (Exception e) { logger.error(STR, e); } } else { shutdownServer(); Thread...
/** * Stops the server only if running in standalone mode. Do nothing if the server is running * inside of another server. */
Stops the server only if running in standalone mode. Do nothing if the server is running inside of another server
stop
{ "repo_name": "GregDThomas/Openfire", "path": "xmppserver/src/main/java/org/jivesoftware/openfire/XMPPServer.java", "license": "apache-2.0", "size": 78835 }
[ "java.lang.reflect.Method" ]
import java.lang.reflect.Method;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,978,697
public static void storeToDB(Connect conn, WordBase word, LanguageType native_lang) { String page_title = word.getPageTitle(); // table 'page', stores page title, gets id of new page int word_count = 0; // to calculate, todo ... ...
static void function(Connect conn, WordBase word, LanguageType native_lang) { String page_title = word.getPageTitle(); int word_count = 0; int wiki_link_count = 0; boolean is_in_wiktionary = true; TPage tpage = TPage.getOrInsert(conn, page_title, word_count, wiki_link_count, is_in_wiktionary, word.getRedirect()); if(nu...
/** Stores word data to tables of parsed wiktionary database * * @param conn connection interface to a parsed wiktionary database * @param word data to be stored to a parsed wiktionary database * @param native_lang native language in the Wiktionary, * e.g. Russian...
Stores word data to tables of parsed wiktionary database
storeToDB
{ "repo_name": "lolocripto/wikokit", "path": "common_wiki_jdbc/src/wikokit/base/wikt/mrd/Keeper.java", "license": "apache-2.0", "size": 6633 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,499,579
public void testCachesOnUserDefinedDefaultMemoryPolicy() throws Exception { prepareCustomConfigWithOverriddenDefaultName(); IgniteEx ignite = startGrid(0); CacheConfiguration cache1Cfg = new CacheConfiguration() .setName("cache1"); IgniteCache cache1 = ignite.creat...
void function() throws Exception { prepareCustomConfigWithOverriddenDefaultName(); IgniteEx ignite = startGrid(0); CacheConfiguration cache1Cfg = new CacheConfiguration() .setName(STR); IgniteCache cache1 = ignite.createCache(cache1Cfg); verifyCacheMemoryPolicy(cache1, CUSTOM_NON_DEFAULT_MEM_PLC_NAME); CacheConfigurati...
/** * Test for verification that caches with not specified memory policy name, * with specified default memory policy name and specified custom memory policy name * all started with correct memory policy. */
Test for verification that caches with not specified memory policy name, with specified default memory policy name and specified custom memory policy name all started with correct memory policy
testCachesOnUserDefinedDefaultMemoryPolicy
{ "repo_name": "psadusumilli/ignite", "path": "modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/MemoryPolicyInitializationTest.java", "license": "apache-2.0", "size": 11033 }
[ "org.apache.ignite.IgniteCache", "org.apache.ignite.configuration.CacheConfiguration", "org.apache.ignite.internal.IgniteEx" ]
import org.apache.ignite.IgniteCache; import org.apache.ignite.configuration.CacheConfiguration; import org.apache.ignite.internal.IgniteEx;
import org.apache.ignite.*; import org.apache.ignite.configuration.*; import org.apache.ignite.internal.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,889,225
HashSet<String> getAllItemTokens(Locale locale) { if (allItemTokens == null) { allItemTokens = new HashMap<Locale, HashSet<String>>(); } HashSet<String> localeTokens = allItemTokens.get(locale); if (localeTokens == null) { allItemTokens.put(locale, localeToken...
HashSet<String> getAllItemTokens(Locale locale) { if (allItemTokens == null) { allItemTokens = new HashMap<Locale, HashSet<String>>(); } HashSet<String> localeTokens = allItemTokens.get(locale); if (localeTokens == null) { allItemTokens.put(locale, localeTokens = new HashSet<String>()); for (Item item : itemRegistry.ge...
/** * All the tokens (name parts) of the names of all the items in the {@link ItemRegistry}. * * @param locale The locale that is to be used for preparing the tokens. * @return the identifier tokens */
All the tokens (name parts) of the names of all the items in the <code>ItemRegistry</code>
getAllItemTokens
{ "repo_name": "AchimHentschel/smarthome", "path": "bundles/core/org.eclipse.smarthome.core.voice/src/main/java/org/eclipse/smarthome/core/voice/text/AbstractRuleBasedInterpreter.java", "license": "epl-1.0", "size": 33781 }
[ "java.util.HashMap", "java.util.HashSet", "java.util.Locale", "org.eclipse.smarthome.core.items.Item" ]
import java.util.HashMap; import java.util.HashSet; import java.util.Locale; import org.eclipse.smarthome.core.items.Item;
import java.util.*; import org.eclipse.smarthome.core.items.*;
[ "java.util", "org.eclipse.smarthome" ]
java.util; org.eclipse.smarthome;
2,477,728
public Form createForm(String subject, String name, String displayMode, Long status) { final Form pForm = new Form(); pForm.setId(generateUniqueId()); pForm.setSubject(subject); pForm.setDisplayMode(displayMode); pForm.setStatus(status); pForm.setName(name); ...
Form function(String subject, String name, String displayMode, Long status) { final Form pForm = new Form(); pForm.setId(generateUniqueId()); pForm.setSubject(subject); pForm.setDisplayMode(displayMode); pForm.setStatus(status); pForm.setName(name); pForm.setFormFields(new HashSet()); return pForm; }
/** * Create an empty form with given parameters * * @param subject Form subject * @param name Form name * @param displayMode Form display mode * @param status Form status * @return The created form * @throws Exception in case of error */
Create an empty form with given parameters
createForm
{ "repo_name": "baldimir/jbpm-form-modeler", "path": "jbpm-form-modeler-core/jbpm-form-modeler-service/jbpm-form-modeler-service-core/src/main/java/org/jbpm/formModeler/core/config/FormManagerImpl.java", "license": "apache-2.0", "size": 22600 }
[ "java.util.HashSet", "org.jbpm.formModeler.api.model.Form" ]
import java.util.HashSet; import org.jbpm.formModeler.api.model.Form;
import java.util.*; import org.jbpm.*;
[ "java.util", "org.jbpm" ]
java.util; org.jbpm;
886,889
@Override public void render(GameContainer gc, StateBasedGame game, Graphics g) throws SlickException { g.resetTransform(); g.clear(); g.setColor(Color.darkGray); g.fillRect(0.0f, 0.0f, Globals.WIDTH, Globals.HEIGHT); drawInventory(g); drawShop(g); drawShopCenter(g); drawHeaderAndFooter(g); }
void function(GameContainer gc, StateBasedGame game, Graphics g) throws SlickException { g.resetTransform(); g.clear(); g.setColor(Color.darkGray); g.fillRect(0.0f, 0.0f, Globals.WIDTH, Globals.HEIGHT); drawInventory(g); drawShop(g); drawShopCenter(g); drawHeaderAndFooter(g); }
/** * Alternate render method. Testing a different shop layout. */
Alternate render method. Testing a different shop layout
render
{ "repo_name": "packetpirate/Generic-Zombie-Shooter-Redux", "path": "src/com/grave/states/ShopState.java", "license": "gpl-3.0", "size": 29711 }
[ "com.grave.Globals", "org.newdawn.slick.Color", "org.newdawn.slick.GameContainer", "org.newdawn.slick.Graphics", "org.newdawn.slick.SlickException", "org.newdawn.slick.state.StateBasedGame" ]
import com.grave.Globals; import org.newdawn.slick.Color; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick.SlickException; import org.newdawn.slick.state.StateBasedGame;
import com.grave.*; import org.newdawn.slick.*; import org.newdawn.slick.state.*;
[ "com.grave", "org.newdawn.slick" ]
com.grave; org.newdawn.slick;
958,142
byte[] requestDatagram = null; String fullCommand = ENCRYPT_PREFIX + PACKET_NUMBER + requestPacket.getVendor().getCompanyCode() + DEVICE_TYPE + requestPacket.getVendor().getAuthenticationCode() + String.format(requestPacket.getType().getCommand(), requestPacket.getMacAddress()); ...
byte[] requestDatagram = null; String fullCommand = ENCRYPT_PREFIX + PACKET_NUMBER + requestPacket.getVendor().getCompanyCode() + DEVICE_TYPE + requestPacket.getVendor().getAuthenticationCode() + String.format(requestPacket.getType().getCommand(), requestPacket.getMacAddress()); byte[] inputByte = hexStringToByteArray(...
/** * Method that transforms one {@link SilvercrestWifiSocketRequest} to one byte array to be ready to be transmitted. * * @param requestPacket the {@link SilvercrestWifiSocketRequest}. * @return the byte array with the message. */
Method that transforms one <code>SilvercrestWifiSocketRequest</code> to one byte array to be ready to be transmitted
transformToByteMessage
{ "repo_name": "afuechsel/openhab2", "path": "addons/binding/org.openhab.binding.silvercrestwifisocket/src/main/java/org/openhab/binding/silvercrestwifisocket/internal/utils/WifiSocketPacketConverter.java", "license": "epl-1.0", "size": 13530 }
[ "java.net.DatagramPacket", "javax.crypto.BadPaddingException", "javax.crypto.IllegalBlockSizeException" ]
import java.net.DatagramPacket; import javax.crypto.BadPaddingException; import javax.crypto.IllegalBlockSizeException;
import java.net.*; import javax.crypto.*;
[ "java.net", "javax.crypto" ]
java.net; javax.crypto;
2,085,446
private void mountAndJournal(LockedInodePath inodePath, AlluxioURI ufsPath, MountOptions options, JournalContext journalContext) throws InvalidPathException, FileAlreadyExistsException, FileDoesNotExistException, IOException, AccessControlException { // Check that the Alluxio Path does not exist...
void function(LockedInodePath inodePath, AlluxioURI ufsPath, MountOptions options, JournalContext journalContext) throws InvalidPathException, FileAlreadyExistsException, FileDoesNotExistException, IOException, AccessControlException { if (inodePath.fullPathExists()) { throw new InvalidPathException( ExceptionMessage.M...
/** * Mounts a UFS path onto an Alluxio path. * <p> * Writes to the journal. * * @param inodePath the Alluxio path to mount to * @param ufsPath the UFS path to mount * @param options the mount options * @param journalContext the journal context * @throws InvalidPathException if an invalid pat...
Mounts a UFS path onto an Alluxio path. Writes to the journal
mountAndJournal
{ "repo_name": "jsimsa/alluxio", "path": "core/server/master/src/main/java/alluxio/master/file/DefaultFileSystemMaster.java", "license": "apache-2.0", "size": 131976 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "java.util.Map" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
843,873
public String listFSDir(Path path) throws IOException { FileStatus[] stats = fileSystem.listStatus(path); StringBuilder builder = new StringBuilder(); for (FileStatus stat : stats) { builder.append(stat.getPath().toString()) .append("\t") .append(stat.getLen()) ...
String function(Path path) throws IOException { FileStatus[] stats = fileSystem.listStatus(path); StringBuilder builder = new StringBuilder(); for (FileStatus stat : stats) { builder.append(stat.getPath().toString()) .append("\t") .append(stat.getLen()) .append("\n"); } return builder.toString(); }
/** * list entries in a filesystem directory * * @param path directory * @return a listing, one to a line * @throws IOException */
list entries in a filesystem directory
listFSDir
{ "repo_name": "xiao-chen/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/utils/CoreFileSystem.java", "license": "apache-2.0", "size": 19569 }
[ "java.io.IOException", "org.apache.hadoop.fs.FileStatus", "org.apache.hadoop.fs.Path" ]
import java.io.IOException; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.Path;
import java.io.*; import org.apache.hadoop.fs.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,650,005
private static Token<AuthenticationTokenIdentifier> getAuthToken(Configuration conf, User user) throws IOException, InterruptedException { ZKWatcher zkw = new ZKWatcher(conf, "TokenUtil-getAuthToken", null); try { String clusterId = ZKClusterId.readClusterIdZNode(zkw); if (clusterId == null)...
static Token<AuthenticationTokenIdentifier> function(Configuration conf, User user) throws IOException, InterruptedException { ZKWatcher zkw = new ZKWatcher(conf, STR, null); try { String clusterId = ZKClusterId.readClusterIdZNode(zkw); if (clusterId == null) { throw new IOException(STR); } return new AuthenticationTok...
/** * Get the authentication token of the user for the cluster specified in the configuration * @return null if the user does not have the token, otherwise the auth token for the cluster. */
Get the authentication token of the user for the cluster specified in the configuration
getAuthToken
{ "repo_name": "ChinmaySKulkarni/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/security/token/TokenUtil.java", "license": "apache-2.0", "size": 11840 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hbase.security.User", "org.apache.hadoop.hbase.zookeeper.ZKClusterId", "org.apache.hadoop.hbase.zookeeper.ZKWatcher", "org.apache.hadoop.io.Text", "org.apache.hadoop.security.token.Token", "org.apache.zookeeper.KeeperExc...
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.security.User; import org.apache.hadoop.hbase.zookeeper.ZKClusterId; import org.apache.hadoop.hbase.zookeeper.ZKWatcher; import org.apache.hadoop.io.Text; import org.apache.hadoop.security.token.Token; import org.apa...
import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hbase.security.*; import org.apache.hadoop.hbase.zookeeper.*; import org.apache.hadoop.io.*; import org.apache.hadoop.security.token.*; import org.apache.zookeeper.*;
[ "java.io", "org.apache.hadoop", "org.apache.zookeeper" ]
java.io; org.apache.hadoop; org.apache.zookeeper;
1,432,474
private void createFlattenedDependenciesDirect( List<Dependency> projectDependencies, List<Dependency> flattenedDependencies ) { for ( Dependency projectDependency : projectDependencies ) { Dependency flattenedDependency = createFlattenedDependency( projectDependency ); i...
void function( List<Dependency> projectDependencies, List<Dependency> flattenedDependencies ) { for ( Dependency projectDependency : projectDependencies ) { Dependency flattenedDependency = createFlattenedDependency( projectDependency ); if ( flattenedDependency != null ) { flattenedDependencies.add( flattenedDependenc...
/** * Collects the resolved {@link Dependency dependencies} from the given <code>effectiveModel</code>. * * @param projectDependencies is the effective POM {@link Model}'s current dependencies * @param flattenedDependencies is the {@link List} where to add the collected {@link Dependency dependencie...
Collects the resolved <code>Dependency dependencies</code> from the given <code>effectiveModel</code>
createFlattenedDependenciesDirect
{ "repo_name": "mojohaus/flatten-maven-plugin", "path": "src/main/java/org/codehaus/mojo/flatten/FlattenMojo.java", "license": "apache-2.0", "size": 55135 }
[ "java.util.List", "org.apache.maven.model.Dependency" ]
import java.util.List; import org.apache.maven.model.Dependency;
import java.util.*; import org.apache.maven.model.*;
[ "java.util", "org.apache.maven" ]
java.util; org.apache.maven;
494,119
@Override public void setContainer(Container container) { Container oldContainer = this.container; this.container = container; support.firePropertyChange("container", oldContainer, this.container); }
void function(Container container) { Container oldContainer = this.container; this.container = container; support.firePropertyChange(STR, oldContainer, this.container); }
/** * Set the Container associated with our Cluster * * @param container * The Container to use */
Set the Container associated with our Cluster
setContainer
{ "repo_name": "apache/tomcat", "path": "java/org/apache/catalina/ha/tcp/SimpleTcpCluster.java", "license": "apache-2.0", "size": 28893 }
[ "org.apache.catalina.Container" ]
import org.apache.catalina.Container;
import org.apache.catalina.*;
[ "org.apache.catalina" ]
org.apache.catalina;
2,428,845
public List<E> getSlice(Object start, Object end, Object step, Location loc) throws EvalException { List<E> list = getContentsUnsafe(); int length = list.size(); ImmutableList.Builder<E> slice = ImmutableList.builder(); for (int pos : EvalUtils.getSliceIndices(start, end, step, length, loc)) { ...
List<E> function(Object start, Object end, Object step, Location loc) throws EvalException { List<E> list = getContentsUnsafe(); int length = list.size(); ImmutableList.Builder<E> slice = ImmutableList.builder(); for (int pos : EvalUtils.getSliceIndices(start, end, step, length, loc)) { slice.add(list.get(pos)); } retu...
/** * Retrieve a sublist from a SkylarkList. * @param start start value * @param end end value * @param step step value * @param loc a {@link Location} in case of error * @throws EvalException if the key is invalid */
Retrieve a sublist from a SkylarkList
getSlice
{ "repo_name": "mikelikespie/bazel", "path": "src/main/java/com/google/devtools/build/lib/syntax/SkylarkList.java", "license": "apache-2.0", "size": 20750 }
[ "com.google.common.collect.ImmutableList", "com.google.devtools.build.lib.events.Location", "java.util.List" ]
import com.google.common.collect.ImmutableList; import com.google.devtools.build.lib.events.Location; import java.util.List;
import com.google.common.collect.*; import com.google.devtools.build.lib.events.*; import java.util.*;
[ "com.google.common", "com.google.devtools", "java.util" ]
com.google.common; com.google.devtools; java.util;
138,825
public BukkitTask runTaskTimerAsynchronously(BukkitRunnable task, long delay, long period) { return task.runTaskTimerAsynchronously(authMe, delay, period); }
BukkitTask function(BukkitRunnable task, long delay, long period) { return task.runTaskTimerAsynchronously(authMe, delay, period); }
/** * <b>Asynchronous tasks should never access any API in Bukkit. Great care * should be taken to assure the thread-safety of asynchronous tasks.</b> * <p> * Returns a task that will repeatedly run asynchronously until cancelled, * starting after the specified number of server ticks. * ...
Asynchronous tasks should never access any API in Bukkit. Great care should be taken to assure the thread-safety of asynchronous tasks. Returns a task that will repeatedly run asynchronously until cancelled, starting after the specified number of server ticks
runTaskTimerAsynchronously
{ "repo_name": "games647/AuthMeReloaded", "path": "src/main/java/fr/xephi/authme/service/BukkitService.java", "license": "gpl-3.0", "size": 12069 }
[ "org.bukkit.scheduler.BukkitRunnable", "org.bukkit.scheduler.BukkitTask" ]
import org.bukkit.scheduler.BukkitRunnable; import org.bukkit.scheduler.BukkitTask;
import org.bukkit.scheduler.*;
[ "org.bukkit.scheduler" ]
org.bukkit.scheduler;
1,992,262
public boolean match(Node node, ExprEnvironment env) throws XPathException { if (! _parent.match(node, env)) return false; // Select patterns use the first shortcut. int envPosition = env.getContextPosition(); if (envPosition > 0) { if (_expr.isBoolean()) { return _e...
boolean function(Node node, ExprEnvironment env) throws XPathException { if (! _parent.match(node, env)) return false; int envPosition = env.getContextPosition(); if (envPosition > 0) { if (_expr.isBoolean()) { return _expr.evalBoolean(node, env); } else if (_expr.isNumber()) { double test = _expr.evalNumber(node, env)...
/** * Matches if the filter expression matches. When the filter expression * returns a number, match if the position() equals the expression. * * @param node the current node to test * @param env the variable environment * * @return true if the pattern matches. */
Matches if the filter expression matches. When the filter expression returns a number, match if the position() equals the expression
match
{ "repo_name": "dwango/quercus", "path": "src/main/java/com/caucho/xpath/pattern/FilterPattern.java", "license": "gpl-2.0", "size": 5588 }
[ "com.caucho.xpath.Env", "com.caucho.xpath.Expr", "com.caucho.xpath.ExprEnvironment", "com.caucho.xpath.XPathException", "org.w3c.dom.Node" ]
import com.caucho.xpath.Env; import com.caucho.xpath.Expr; import com.caucho.xpath.ExprEnvironment; import com.caucho.xpath.XPathException; import org.w3c.dom.Node;
import com.caucho.xpath.*; import org.w3c.dom.*;
[ "com.caucho.xpath", "org.w3c.dom" ]
com.caucho.xpath; org.w3c.dom;
1,389,479