method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
private static boolean areDuplicateMethodDescriptors(
FactoryMethodDescriptor factory,
ImplementationMethodDescriptor implementation) {
if (!factory.name().equals(implementation.name())) {
return false;
}
// Descriptors are identical if they have the same passed types in the same order... | static boolean function( FactoryMethodDescriptor factory, ImplementationMethodDescriptor implementation) { if (!factory.name().equals(implementation.name())) { return false; } return MoreTypes.equivalence().pairwise().equivalent( Iterables.transform(factory.passedParameters(), Parameter.TYPE), Iterables.transform(imple... | /**
* Returns true if the given {@link FactoryMethodDescriptor} and
* {@link ImplementationMethodDescriptor} are duplicates.
*
* <p>Descriptors are duplicates if they have the same name and if they have the same passed types
* in the same order.
*/ | Returns true if the given <code>FactoryMethodDescriptor</code> and <code>ImplementationMethodDescriptor</code> are duplicates. Descriptors are duplicates if they have the same name and if they have the same passed types in the same order | areDuplicateMethodDescriptors | {
"repo_name": "MaTriXy/auto",
"path": "factory/src/main/java/com/google/auto/factory/processor/FactoryDescriptor.java",
"license": "apache-2.0",
"size": 8824
} | [
"com.google.auto.common.MoreTypes",
"com.google.common.collect.Iterables"
] | import com.google.auto.common.MoreTypes; import com.google.common.collect.Iterables; | import com.google.auto.common.*; import com.google.common.collect.*; | [
"com.google.auto",
"com.google.common"
] | com.google.auto; com.google.common; | 2,378,820 |
EAttribute getBoundingBoxType_Dimensions(); | EAttribute getBoundingBoxType_Dimensions(); | /**
* Returns the meta object for the attribute '{@link net.opengis.ows11.BoundingBoxType#getDimensions <em>Dimensions</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Dimensions</em>'.
* @see net.opengis.ows11.BoundingBoxType#getDimensions()
... | Returns the meta object for the attribute '<code>net.opengis.ows11.BoundingBoxType#getDimensions Dimensions</code>'. | getBoundingBoxType_Dimensions | {
"repo_name": "geotools/geotools",
"path": "modules/ogc/net.opengis.ows/src/net/opengis/ows11/Ows11Package.java",
"license": "lgpl-2.1",
"size": 292282
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,256,799 |
public static OutputStream string2OutputStream(final String string, final String charsetName) {
if (string == null) return null;
try {
return bytes2OutputStream(string.getBytes(getSafeCharset(charsetName)));
} catch (UnsupportedEncodingException e) {
e.printStackTrace... | static OutputStream function(final String string, final String charsetName) { if (string == null) return null; try { return bytes2OutputStream(string.getBytes(getSafeCharset(charsetName))); } catch (UnsupportedEncodingException e) { e.printStackTrace(); return null; } } | /**
* String to output stream.
*/ | String to output stream | string2OutputStream | {
"repo_name": "didi/DoraemonKit",
"path": "Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/ConvertUtils.java",
"license": "apache-2.0",
"size": 22928
} | [
"java.io.OutputStream",
"java.io.UnsupportedEncodingException"
] | import java.io.OutputStream; import java.io.UnsupportedEncodingException; | import java.io.*; | [
"java.io"
] | java.io; | 1,666,779 |
@Override
public Reference getReference() throws NamingException {
return JNDIReferenceFactory.createReference(this.getClass().getName(), this);
} | Reference function() throws NamingException { return JNDIReferenceFactory.createReference(this.getClass().getName(), this); } | /**
* Retrieve a Reference for this instance to store in JNDI
*
* @return the built Reference
* @throws NamingException
* if error on building Reference
*/ | Retrieve a Reference for this instance to store in JNDI | getReference | {
"repo_name": "avranju/qpid-jms",
"path": "qpid-jms-client/src/main/java/org/apache/qpid/jms/jndi/JNDIStorable.java",
"license": "apache-2.0",
"size": 3755
} | [
"javax.naming.NamingException",
"javax.naming.Reference"
] | import javax.naming.NamingException; import javax.naming.Reference; | import javax.naming.*; | [
"javax.naming"
] | javax.naming; | 1,621,992 |
public static Object getProxyObjectImpl(Object domainObject)
{
Object object = domainObject;
if (domainObject instanceof HibernateProxy)
{
HibernateProxy hiberProxy = (HibernateProxy)domainObject;
object = hiberProxy.getHibernateLazyInitializer().getImplementation();
}
return object;
... | static Object function(Object domainObject) { Object object = domainObject; if (domainObject instanceof HibernateProxy) { HibernateProxy hiberProxy = (HibernateProxy)domainObject; object = hiberProxy.getHibernateLazyInitializer().getImplementation(); } return object; } | /**
* This method will return domain object from proxy Object.
* @param domainObject :
* @return domain Object :
*/ | This method will return domain object from proxy Object | getProxyObjectImpl | {
"repo_name": "NCIP/catissue-dao",
"path": "src/edu/wustl/dao/util/HibernateMetaData.java",
"license": "bsd-3-clause",
"size": 16223
} | [
"org.hibernate.proxy.HibernateProxy"
] | import org.hibernate.proxy.HibernateProxy; | import org.hibernate.proxy.*; | [
"org.hibernate.proxy"
] | org.hibernate.proxy; | 1,650,616 |
@Override
public void plotChanged(PlotChangeEvent event) {
notifyListeners(event);
}
| void function(PlotChangeEvent event) { notifyListeners(event); } | /**
* Receives a {@link PlotChangeEvent} and responds by notifying all
* listeners.
*
* @param event the event.
*/ | Receives a <code>PlotChangeEvent</code> and responds by notifying all listeners | plotChanged | {
"repo_name": "sebkur/JFreeChart",
"path": "src/main/java/org/jfree/chart/plot/CombinedDomainCategoryPlot.java",
"license": "lgpl-3.0",
"size": 25498
} | [
"org.jfree.chart.event.PlotChangeEvent"
] | import org.jfree.chart.event.PlotChangeEvent; | import org.jfree.chart.event.*; | [
"org.jfree.chart"
] | org.jfree.chart; | 2,279,548 |
public List<SystemOverview> listUngroupedSystems(User loggedInUser) {
return SystemManager.ungroupedList(loggedInUser, null);
} | List<SystemOverview> function(User loggedInUser) { return SystemManager.ungroupedList(loggedInUser, null); } | /**
* list systems that are not in any system group
* @param loggedInUser The current user
* @return A list of Maps containing ID,name, and last checkin
*
* @xmlrpc.doc List systems that are not associated with any system groups.
* @xmlrpc.param #param("string", "sessionKey")
* @xmlrp... | list systems that are not in any system group | listUngroupedSystems | {
"repo_name": "jdobes/spacewalk",
"path": "java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java",
"license": "gpl-2.0",
"size": 240801
} | [
"com.redhat.rhn.domain.user.User",
"com.redhat.rhn.frontend.dto.SystemOverview",
"com.redhat.rhn.manager.system.SystemManager",
"java.util.List"
] | import com.redhat.rhn.domain.user.User; import com.redhat.rhn.frontend.dto.SystemOverview; import com.redhat.rhn.manager.system.SystemManager; import java.util.List; | import com.redhat.rhn.domain.user.*; import com.redhat.rhn.frontend.dto.*; import com.redhat.rhn.manager.system.*; import java.util.*; | [
"com.redhat.rhn",
"java.util"
] | com.redhat.rhn; java.util; | 2,280,069 |
public Node getNode(String name) {
return hostnameToNodeMap.get(name);
} | Node function(String name) { return hostnameToNodeMap.get(name); } | /**
* Return the Node in the network topology that corresponds to the hostname
*/ | Return the Node in the network topology that corresponds to the hostname | getNode | {
"repo_name": "jchen123/hadoop-20-warehouse-fix",
"path": "src/mapred/org/apache/hadoop/mapred/JobTracker.java",
"license": "apache-2.0",
"size": 153244
} | [
"org.apache.hadoop.net.Node"
] | import org.apache.hadoop.net.Node; | import org.apache.hadoop.net.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,613,923 |
@Nullable
public Image getImage() {
if (sourcePath != null) {
return new Image(GWT.getModuleBaseForStaticFiles() + sourcePath);
} else if (imageResource != null) {
return new Image(imageResource);
} else {
return null;
}
} | Image function() { if (sourcePath != null) { return new Image(GWT.getModuleBaseForStaticFiles() + sourcePath); } else if (imageResource != null) { return new Image(imageResource); } else { return null; } } | /**
* Returns {@link Image} widget.
*
* @return {@link Image} widget
*/ | Returns <code>Image</code> widget | getImage | {
"repo_name": "jonahkichwacoders/che",
"path": "ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/icon/Icon.java",
"license": "epl-1.0",
"size": 3249
} | [
"com.google.gwt.core.client.GWT",
"com.google.gwt.user.client.ui.Image"
] | import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.Image; | import com.google.gwt.core.client.*; import com.google.gwt.user.client.ui.*; | [
"com.google.gwt"
] | com.google.gwt; | 1,232,358 |
public Observable<ServiceResponse<ExpressRoutePortInner>> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String expressRoutePortName, Map<String, String> tags) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionI... | Observable<ServiceResponse<ExpressRoutePortInner>> function(String resourceGroupName, String expressRoutePortName, Map<String, String> tags) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (expressRou... | /**
* Update ExpressRoutePort tags.
*
* @param resourceGroupName The name of the resource group.
* @param expressRoutePortName The name of the ExpressRoutePort resource.
* @param tags Resource tags.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return ... | Update ExpressRoutePort tags | beginUpdateTagsWithServiceResponseAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/network/v2019_08_01/implementation/ExpressRoutePortsInner.java",
"license": "mit",
"size": 74971
} | [
"com.microsoft.rest.ServiceResponse",
"java.util.Map"
] | import com.microsoft.rest.ServiceResponse; import java.util.Map; | import com.microsoft.rest.*; import java.util.*; | [
"com.microsoft.rest",
"java.util"
] | com.microsoft.rest; java.util; | 528,673 |
public Transform convert(Transform t); | Transform function(Transform t); | /**
* Gets the converted Transform for the given Transform. The change must be exactly an integer number of chunks in each dimension.
*
* @param t the transform
*/ | Gets the converted Transform for the given Transform. The change must be exactly an integer number of chunks in each dimension | convert | {
"repo_name": "flow/engine",
"path": "src/main/java/com/flowpowered/api/player/reposition/RepositionManager.java",
"license": "mit",
"size": 4303
} | [
"com.flowpowered.api.geo.discrete.Transform"
] | import com.flowpowered.api.geo.discrete.Transform; | import com.flowpowered.api.geo.discrete.*; | [
"com.flowpowered.api"
] | com.flowpowered.api; | 9,418 |
public CmsOrganizationalUnit getOrganizationalUnit() {
return m_orgUnit;
} | CmsOrganizationalUnit function() { return m_orgUnit; } | /**
* Gets the organizational unit to which a user must belong.
*
* @return the organizational unit
*/ | Gets the organizational unit to which a user must belong | getOrganizationalUnit | {
"repo_name": "ggiudetti/opencms-core",
"path": "src/org/opencms/file/CmsUserSearchParameters.java",
"license": "lgpl-2.1",
"size": 12347
} | [
"org.opencms.security.CmsOrganizationalUnit"
] | import org.opencms.security.CmsOrganizationalUnit; | import org.opencms.security.*; | [
"org.opencms.security"
] | org.opencms.security; | 1,669,478 |
public static PaletteFactory getFactory() {
return InjectorInstance.injector.getInstance(PaletteFactory.class);
}
private static class InjectorInstance {
static final Injector injector = createInjector(new ColorPaletteModule());
} | static PaletteFactory function() { return InjectorInstance.injector.getInstance(PaletteFactory.class); } private static class InjectorInstance { static final Injector injector = createInjector(new ColorPaletteModule()); } | /**
* Creates the point format factory.
*
* @return the {@link PointFormatFactory}.
*/ | Creates the point format factory | getFactory | {
"repo_name": "devent/prefdialog",
"path": "prefdialog-misc-swing/src/main/java/com/anrisoftware/prefdialog/miscswing/colorpalette/ColorPaletteModule.java",
"license": "gpl-3.0",
"size": 1928
} | [
"com.google.inject.Guice",
"com.google.inject.Injector"
] | import com.google.inject.Guice; import com.google.inject.Injector; | import com.google.inject.*; | [
"com.google.inject"
] | com.google.inject; | 1,167,646 |
@Override public T visitLexerCommands(@NotNull ANTLRv4Parser.LexerCommandsContext ctx) { return visitChildren(ctx); } | @Override public T visitLexerCommands(@NotNull ANTLRv4Parser.LexerCommandsContext 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 | visitLexerRule | {
"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,853 |
public void setImportRules( ImportRules importRules ); | void function( ImportRules importRules ); | /**
* Set the list of rules that need to be applied to every imported object.
*
* @param importRules
* The rules to use during import into the repository
*/ | Set the list of rules that need to be applied to every imported object | setImportRules | {
"repo_name": "tkafalas/pentaho-kettle",
"path": "engine/src/main/java/org/pentaho/di/repository/IRepositoryImporter.java",
"license": "apache-2.0",
"size": 2901
} | [
"org.pentaho.di.imp.ImportRules"
] | import org.pentaho.di.imp.ImportRules; | import org.pentaho.di.imp.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 1,399,528 |
private float getMorphStartX(PreviewBar previewBar, float offset) {
float previewPadding = previewBar.getThumbOffset();
float previewLeftX = ((View) previewBar).getLeft();
float previewRightX = ((View) previewBar).getRight();
float previewSeekBarStartX = previewLeftX + previewPadding... | float function(PreviewBar previewBar, float offset) { float previewPadding = previewBar.getThumbOffset(); float previewLeftX = ((View) previewBar).getLeft(); float previewRightX = ((View) previewBar).getRight(); float previewSeekBarStartX = previewLeftX + previewPadding; float previewSeekBarEndX = previewRightX - previ... | /**
* The starting X position of the view that'll morph into the preview.
*/ | The starting X position of the view that'll morph into the preview | getMorphStartX | {
"repo_name": "rubensousa/PreviewSeekBar",
"path": "previewseekbar/src/main/java/com/github/rubensousa/previewseekbar/animator/PreviewMorphAnimator.java",
"license": "apache-2.0",
"size": 19170
} | [
"android.view.View",
"com.github.rubensousa.previewseekbar.PreviewBar"
] | import android.view.View; import com.github.rubensousa.previewseekbar.PreviewBar; | import android.view.*; import com.github.rubensousa.previewseekbar.*; | [
"android.view",
"com.github.rubensousa"
] | android.view; com.github.rubensousa; | 1,106,153 |
void maybePrepareCall(Node callNode) {
CallSiteType callSiteType = classifyCallSite(callNode);
callSiteType.prepare(this, callNode);
} | void maybePrepareCall(Node callNode) { CallSiteType callSiteType = classifyCallSite(callNode); callSiteType.prepare(this, callNode); } | /**
* If required, rewrite the statement containing the call expression.
* @see ExpressionDecomposer#canExposeExpression
*/ | If required, rewrite the statement containing the call expression | maybePrepareCall | {
"repo_name": "bramstein/closure-compiler-inline",
"path": "src/com/google/javascript/jscomp/FunctionInjector.java",
"license": "apache-2.0",
"size": 32725
} | [
"com.google.javascript.rhino.Node"
] | import com.google.javascript.rhino.Node; | import com.google.javascript.rhino.*; | [
"com.google.javascript"
] | com.google.javascript; | 2,850,884 |
private RealMatrix formAlgebraicMatrix(RealVector v) {
// a =
// [ Ax^2 2Dxy 2Exz 2Gx ]
// [ 2Dxy By^2 2Fyz 2Hy ]
// [ 2Exz 2Fyz Cz^2 2Iz ]
// [ 2Gx 2Hy 2Iz -1 ] ]
RealMatrix a = new Array2DRowRealMatrix(4, 4);
a.setEntry(0, 0, v.getEntry(0));
a.setEn... | RealMatrix function(RealVector v) { RealMatrix a = new Array2DRowRealMatrix(4, 4); a.setEntry(0, 0, v.getEntry(0)); a.setEntry(0, 1, v.getEntry(3)); a.setEntry(0, 2, v.getEntry(4)); a.setEntry(0, 3, v.getEntry(6)); a.setEntry(1, 0, v.getEntry(3)); a.setEntry(1, 1, v.getEntry(1)); a.setEntry(1, 2, v.getEntry(5)); a.setE... | /**
* Create a matrix in the algebraic form of the polynomial Ax^2 + By^2 +
* Cz^2 + 2Dxy + 2Exz + 2Fyz + 2Gx + 2Hy + 2Iz = 1.
*
* @param v the vector polynomial.
* @return the matrix of the algebraic form of the polynomial.
*/ | Create a matrix in the algebraic form of the polynomial Ax^2 + By^2 + Cz^2 + 2Dxy + 2Exz + 2Fyz + 2Gx + 2Hy + 2Iz = 1 | formAlgebraicMatrix | {
"repo_name": "KalebKE/FSensor",
"path": "fsensor/src/main/java/com/kircherelectronics/fsensor/util/offset/FitPoints.java",
"license": "apache-2.0",
"size": 10155
} | [
"org.apache.commons.math3.linear.Array2DRowRealMatrix",
"org.apache.commons.math3.linear.RealMatrix",
"org.apache.commons.math3.linear.RealVector"
] | import org.apache.commons.math3.linear.Array2DRowRealMatrix; import org.apache.commons.math3.linear.RealMatrix; import org.apache.commons.math3.linear.RealVector; | import org.apache.commons.math3.linear.*; | [
"org.apache.commons"
] | org.apache.commons; | 489,887 |
log.info(Messages.getString("metrics.enabled"));
MetricsService metricsService = MetricsService.create(vertx);
Router router = Router.router(vertx);
BridgeOptions options = new BridgeOptions().
addOutboundPermitted(
new PermittedOptions().
... | log.info(Messages.getString(STR)); MetricsService metricsService = MetricsService.create(vertx); Router router = Router.router(vertx); BridgeOptions options = new BridgeOptions(). addOutboundPermitted( new PermittedOptions(). setAddress(STR) ); router.route(STR).handler(SockJSHandler.create(vertx).bridge(options)); rou... | /**
* Called by vertx3
* @throws Exception if something has gone wrong.
*/ | Called by vertx3 | start | {
"repo_name": "krslynx/axiom",
"path": "src/main/java/com/krslynx/axiom/AxiomMetrics.java",
"license": "apache-2.0",
"size": 2117
} | [
"io.vertx.core.http.HttpServer",
"io.vertx.core.json.JsonObject",
"io.vertx.ext.dropwizard.MetricsService",
"io.vertx.ext.web.Router",
"io.vertx.ext.web.handler.StaticHandler",
"io.vertx.ext.web.handler.sockjs.BridgeOptions",
"io.vertx.ext.web.handler.sockjs.PermittedOptions",
"io.vertx.ext.web.handle... | import io.vertx.core.http.HttpServer; import io.vertx.core.json.JsonObject; import io.vertx.ext.dropwizard.MetricsService; import io.vertx.ext.web.Router; import io.vertx.ext.web.handler.StaticHandler; import io.vertx.ext.web.handler.sockjs.BridgeOptions; import io.vertx.ext.web.handler.sockjs.PermittedOptions; import ... | import io.vertx.core.http.*; import io.vertx.core.json.*; import io.vertx.ext.dropwizard.*; import io.vertx.ext.web.*; import io.vertx.ext.web.handler.*; import io.vertx.ext.web.handler.sockjs.*; | [
"io.vertx.core",
"io.vertx.ext"
] | io.vertx.core; io.vertx.ext; | 2,097,693 |
if(list != null && list.size() > 0 && list.get(0) != null) {
Row headerRow;
if(indexRow == 0) {
headerRow = currentSheet.createRow(indexRow++);
addHeaderRow(list.get(0), headerRow, streamWorkbook);
}
for (T t : list) {
... | if(list != null && list.size() > 0 && list.get(0) != null) { Row headerRow; if(indexRow == 0) { headerRow = currentSheet.createRow(indexRow++); addHeaderRow(list.get(0), headerRow, streamWorkbook); } for (T t : list) { if(indexRow > Constants.EXCEL_MAX_SHEET_ROWS) { if(this.keepWritingAtNextSheet) { Formatter.adjustShe... | /**
* This method takes a List and saves it into an excel file
* @param list of type List
* @throws IllegalAccessException
*/ | This method takes a List and saves it into an excel file | addRows | {
"repo_name": "omacias/EasyExcel",
"path": "src/main/java/com/salvador/easyexcel/filegenerator/Generator.java",
"license": "mit",
"size": 10371
} | [
"org.apache.poi.ss.usermodel.Row"
] | import org.apache.poi.ss.usermodel.Row; | import org.apache.poi.ss.usermodel.*; | [
"org.apache.poi"
] | org.apache.poi; | 2,395,052 |
@Override
public void preClear(InstanceLifecycleEvent event) {
// ignoring, not important to us
} | void function(InstanceLifecycleEvent event) { } | /**
* Does nothing, not important event for Isis to track.
*/ | Does nothing, not important event for Isis to track | preClear | {
"repo_name": "howepeng/isis",
"path": "core/runtime/src/main/java/org/apache/isis/core/runtime/system/persistence/IsisLifecycleListener2.java",
"license": "apache-2.0",
"size": 6794
} | [
"javax.jdo.listener.InstanceLifecycleEvent"
] | import javax.jdo.listener.InstanceLifecycleEvent; | import javax.jdo.listener.*; | [
"javax.jdo"
] | javax.jdo; | 320,378 |
private String localizeMessage(String msgProp, LocalizedResource localLangUtil, String [] args)
{
String locMsg = null;
//check if the argument is a property
if (args != null)
{
String [] argMsg = new String[args.length];
for (int i = 0; i < args.length; i++)
{
if (isMsgProperty(args[i]))
... | String function(String msgProp, LocalizedResource localLangUtil, String [] args) { String locMsg = null; if (args != null) { String [] argMsg = new String[args.length]; for (int i = 0; i < args.length; i++) { if (isMsgProperty(args[i])) argMsg[i] = localLangUtil.getTextMessage(args[i]); else argMsg[i] = args[i]; } swit... | /**
* Localize a message given a particular AppUI
*
* @param msgProp message key
* @param localLangUtil LocalizedResource to use to localize message
* @param args arguments to message
*
*/ | Localize a message given a particular AppUI | localizeMessage | {
"repo_name": "papicella/snappy-store",
"path": "gemfirexd/core/src/drda/java/com/pivotal/gemfirexd/internal/impl/drda/NetworkServerControlImpl.java",
"license": "apache-2.0",
"size": 138180
} | [
"com.pivotal.gemfirexd.internal.iapi.tools.i18n.LocalizedResource"
] | import com.pivotal.gemfirexd.internal.iapi.tools.i18n.LocalizedResource; | import com.pivotal.gemfirexd.internal.iapi.tools.i18n.*; | [
"com.pivotal.gemfirexd"
] | com.pivotal.gemfirexd; | 2,514,771 |
public static int compare(final @NonNull Optional<Revision> first, final @NonNull Optional<Revision> second) {
if (first.isPresent()) {
return second.isPresent() ? first.get().compareTo(second.get()) : 1;
}
return second.isPresent() ? -1 : 0;
} | static int function(final @NonNull Optional<Revision> first, final @NonNull Optional<Revision> second) { if (first.isPresent()) { return second.isPresent() ? first.get().compareTo(second.get()) : 1; } return second.isPresent() ? -1 : 0; } | /**
* Compare two {@link Optional}s wrapping Revisions. Arguments and return value are consistent with
* {@link java.util.Comparator#compare(Object, Object)} interface contract. Missing revisions compare as lower
* than any other revision.
*
* @param first First optional revision
* @param ... | Compare two <code>Optional</code>s wrapping Revisions. Arguments and return value are consistent with <code>java.util.Comparator#compare(Object, Object)</code> interface contract. Missing revisions compare as lower than any other revision | compare | {
"repo_name": "opendaylight/yangtools",
"path": "common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Revision.java",
"license": "epl-1.0",
"size": 6724
} | [
"java.util.Optional",
"org.eclipse.jdt.annotation.NonNull"
] | import java.util.Optional; import org.eclipse.jdt.annotation.NonNull; | import java.util.*; import org.eclipse.jdt.annotation.*; | [
"java.util",
"org.eclipse.jdt"
] | java.util; org.eclipse.jdt; | 163,506 |
public Type<?> getType() {
return type;
} | Type<?> function() { return type; } | /**
* Returns the logical type of this attribute. (May differ from the actual
* representation as a value in the build interpreter; for example, an
* attribute may logically be a list of labels, but be represented as a list
* of strings.)
*/ | Returns the logical type of this attribute. (May differ from the actual representation as a value in the build interpreter; for example, an attribute may logically be a list of labels, but be represented as a list of strings.) | getType | {
"repo_name": "zhexuany/bazel",
"path": "src/main/java/com/google/devtools/build/lib/packages/Attribute.java",
"license": "apache-2.0",
"size": 83219
} | [
"com.google.devtools.build.lib.syntax.Type"
] | import com.google.devtools.build.lib.syntax.Type; | import com.google.devtools.build.lib.syntax.*; | [
"com.google.devtools"
] | com.google.devtools; | 1,461,140 |
private void swapEditableArea() {
String value = getValue();
if (html.isAttached()) {
fp.remove(html);
if (BrowserInfo.get().isWebkit()) {
fp.remove(formatter);
createRTAComponents(); // recreate new RTA to bypass #5379
fp.add(f... | void function() { String value = getValue(); if (html.isAttached()) { fp.remove(html); if (BrowserInfo.get().isWebkit()) { fp.remove(formatter); createRTAComponents(); fp.add(formatter); } fp.add(rta); } else { fp.remove(rta); fp.add(html); } setValue(value); } | /**
* Swaps html to rta and visa versa.
*/ | Swaps html to rta and visa versa | swapEditableArea | {
"repo_name": "Darsstar/framework",
"path": "compatibility-client/src/main/java/com/vaadin/v7/client/ui/VRichTextArea.java",
"license": "apache-2.0",
"size": 11501
} | [
"com.vaadin.client.BrowserInfo"
] | import com.vaadin.client.BrowserInfo; | import com.vaadin.client.*; | [
"com.vaadin.client"
] | com.vaadin.client; | 1,203,861 |
ConnectFuture connect(SocketAddress address, IoHandler handler); | ConnectFuture connect(SocketAddress address, IoHandler handler); | /**
* Connects to the specified <code>address</code>. If communication starts
* successfully, events are fired to the specified
* <code>handler</code>.
*
* @return {@link ConnectFuture} that will tell the result of the connection attempt
*/ | Connects to the specified <code>address</code>. If communication starts successfully, events are fired to the specified <code>handler</code> | connect | {
"repo_name": "mksmbrtsh/LLRPexplorer",
"path": "src/org/apache/mina/common/IoConnector.java",
"license": "apache-2.0",
"size": 3382
} | [
"java.net.SocketAddress"
] | import java.net.SocketAddress; | import java.net.*; | [
"java.net"
] | java.net; | 2,390,825 |
private boolean isAutoCompression(HttpBaseMessageImpl msg) {
if (this.getHttpConfig().useAutoCompression()) {
//set the Vary header
if (msg.containsHeader(HttpHeaderKeys.HDR_VARY) && !msg.getHeader(HttpHeaderKeys.HDR_VARY).asString().isEmpty()) {
String varyHeader = ... | boolean function(HttpBaseMessageImpl msg) { if (this.getHttpConfig().useAutoCompression()) { if (msg.containsHeader(HttpHeaderKeys.HDR_VARY) && !msg.getHeader(HttpHeaderKeys.HDR_VARY).asString().isEmpty()) { String varyHeader = msg.getHeader(HttpHeaderKeys.HDR_VARY).asString().toLowerCase(); if (!varyHeader.contains(Ht... | /**
* Method to check on whether autocompression is requested for this outgoing
* message.
*
* @param msg
* @return boolean
*/ | Method to check on whether autocompression is requested for this outgoing message | isAutoCompression | {
"repo_name": "kgibm/open-liberty",
"path": "dev/com.ibm.ws.transport.http/src/com/ibm/ws/http/channel/internal/HttpServiceContextImpl.java",
"license": "epl-1.0",
"size": 221447
} | [
"com.ibm.websphere.ras.Tr",
"com.ibm.websphere.ras.TraceComponent",
"com.ibm.wsspi.http.channel.values.ContentEncodingValues",
"com.ibm.wsspi.http.channel.values.HttpHeaderKeys",
"java.util.Locale"
] | import com.ibm.websphere.ras.Tr; import com.ibm.websphere.ras.TraceComponent; import com.ibm.wsspi.http.channel.values.ContentEncodingValues; import com.ibm.wsspi.http.channel.values.HttpHeaderKeys; import java.util.Locale; | import com.ibm.websphere.ras.*; import com.ibm.wsspi.http.channel.values.*; import java.util.*; | [
"com.ibm.websphere",
"com.ibm.wsspi",
"java.util"
] | com.ibm.websphere; com.ibm.wsspi; java.util; | 2,795,026 |
@Override
public void doTileProcessing() {
try {
// Generate the list of tiles that will be processed
final List<Tile> tiles = new ArrayList<>();
for (final Integer tileNumber : this.tiles) {
tiles.add(new Tile(tileNumber));
}
... | void function() { try { final List<Tile> tiles = new ArrayList<>(); for (final Integer tileNumber : this.tiles) { tiles.add(new Tile(tileNumber)); } final TileReadAggregator tileReadAggregator = new TileReadAggregator(tiles); tileReadAggregator.submit(); try { tileReadAggregator.awaitWorkComplete(); } catch (final Inte... | /**
* Do the work, i.e. create a bunch of threads to read, sort and write.
* setConverter() must be called before calling this method.
*/ | Do the work, i.e. create a bunch of threads to read, sort and write. setConverter() must be called before calling this method | doTileProcessing | {
"repo_name": "alecw/picard",
"path": "src/main/java/picard/illumina/IlluminaBasecallsConverter.java",
"license": "mit",
"size": 39117
} | [
"java.util.ArrayList",
"java.util.List",
"java.util.Map"
] | import java.util.ArrayList; import java.util.List; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,679,455 |
Assertion validateServiceTicket(@NotNull String serviceTicketId, @NotNull Service service) throws AbstractTicketException; | Assertion validateServiceTicket(@NotNull String serviceTicketId, @NotNull Service service) throws AbstractTicketException; | /**
* Validate a ServiceTicket for a particular Service.
*
* @param serviceTicketId Proof of prior authentication.
* @param service Service wishing to validate a prior authentication.
* @return Non -null ticket validation assertion.
* @throws AbstractTicketException if there was an... | Validate a ServiceTicket for a particular Service | validateServiceTicket | {
"repo_name": "joansmith/cas",
"path": "cas-server-core-api/src/main/java/org/jasig/cas/CentralAuthenticationService.java",
"license": "apache-2.0",
"size": 8162
} | [
"javax.validation.constraints.NotNull",
"org.jasig.cas.authentication.principal.Service",
"org.jasig.cas.ticket.AbstractTicketException",
"org.jasig.cas.validation.Assertion"
] | import javax.validation.constraints.NotNull; import org.jasig.cas.authentication.principal.Service; import org.jasig.cas.ticket.AbstractTicketException; import org.jasig.cas.validation.Assertion; | import javax.validation.constraints.*; import org.jasig.cas.authentication.principal.*; import org.jasig.cas.ticket.*; import org.jasig.cas.validation.*; | [
"javax.validation",
"org.jasig.cas"
] | javax.validation; org.jasig.cas; | 2,320,913 |
private static void scheduleRebootService(Context context) {
Intent serviceIntent = new Intent(context, ServiceRebooter.class);
PendingIntent sender = PendingIntent.getService(context, 0,
serviceIntent, 0);
// reboot each day to keep things happy
AlarmManager am = (AlarmManager) context
.getSystemSe... | static void function(Context context) { Intent serviceIntent = new Intent(context, ServiceRebooter.class); PendingIntent sender = PendingIntent.getService(context, 0, serviceIntent, 0); AlarmManager am = (AlarmManager) context .getSystemService(Context.ALARM_SERVICE); Calendar now = Calendar.getInstance(); now.add(Cale... | /**
* Trigger a reboot tomorrow at midnight
*/ | Trigger a reboot tomorrow at midnight | scheduleRebootService | {
"repo_name": "SMSGateway/2015-SMSGateway",
"path": "app/src/main/java/com/android/smap/sms/ServiceRebooter.java",
"license": "gpl-3.0",
"size": 2341
} | [
"android.app.AlarmManager",
"android.app.PendingIntent",
"android.content.Context",
"android.content.Intent",
"java.util.Calendar"
] | import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import java.util.Calendar; | import android.app.*; import android.content.*; import java.util.*; | [
"android.app",
"android.content",
"java.util"
] | android.app; android.content; java.util; | 1,090,325 |
List<User> findByLastname(String lastname); | List<User> findByLastname(String lastname); | /**
* Find all users with the given lastname. This method will be translated into a query by constructing it directly
* from the method name as there is no other query declared.
*
* @param lastname
* @return
*/ | Find all users with the given lastname. This method will be translated into a query by constructing it directly from the method name as there is no other query declared | findByLastname | {
"repo_name": "thomasdarimont/spring-data-examples",
"path": "jpa/example/src/main/java/example/springdata/jpa/simple/SimpleUserRepository.java",
"license": "apache-2.0",
"size": 4132
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 364,674 |
PutMappingRequestBuilder preparePutMapping(String... indices); | PutMappingRequestBuilder preparePutMapping(String... indices); | /**
* Add mapping definition for a type into one or more indices.
*/ | Add mapping definition for a type into one or more indices | preparePutMapping | {
"repo_name": "gfyoung/elasticsearch",
"path": "server/src/main/java/org/elasticsearch/client/IndicesAdminClient.java",
"license": "apache-2.0",
"size": 31239
} | [
"org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequestBuilder"
] | import org.elasticsearch.action.admin.indices.mapping.put.PutMappingRequestBuilder; | import org.elasticsearch.action.admin.indices.mapping.put.*; | [
"org.elasticsearch.action"
] | org.elasticsearch.action; | 1,582,393 |
protected void doVersionControl(WebdavRequest request, WebdavResponse response,
DavResource resource)
throws DavException, IOException {
if (!(resource instanceof VersionableResource)) {
response.sendError(DavServletResponse.SC_METHOD_NOT_ALLOWED);... | void function(WebdavRequest request, WebdavResponse response, DavResource resource) throws DavException, IOException { if (!(resource instanceof VersionableResource)) { response.sendError(DavServletResponse.SC_METHOD_NOT_ALLOWED); return; } ((VersionableResource) resource).addVersionControl(); } | /**
* The VERSION-CONTROL method
*
* @param request
* @param response
* @param resource
* @throws DavException
* @throws IOException
*/ | The VERSION-CONTROL method | doVersionControl | {
"repo_name": "sdmcraft/jackrabbit",
"path": "jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/server/AbstractWebdavServlet.java",
"license": "apache-2.0",
"size": 51450
} | [
"java.io.IOException",
"org.apache.jackrabbit.webdav.DavException",
"org.apache.jackrabbit.webdav.DavResource",
"org.apache.jackrabbit.webdav.DavServletResponse",
"org.apache.jackrabbit.webdav.WebdavRequest",
"org.apache.jackrabbit.webdav.WebdavResponse",
"org.apache.jackrabbit.webdav.version.Versionabl... | import java.io.IOException; import org.apache.jackrabbit.webdav.DavException; import org.apache.jackrabbit.webdav.DavResource; import org.apache.jackrabbit.webdav.DavServletResponse; import org.apache.jackrabbit.webdav.WebdavRequest; import org.apache.jackrabbit.webdav.WebdavResponse; import org.apache.jackrabbit.webda... | import java.io.*; import org.apache.jackrabbit.webdav.*; import org.apache.jackrabbit.webdav.version.*; | [
"java.io",
"org.apache.jackrabbit"
] | java.io; org.apache.jackrabbit; | 968,730 |
public void addComponentToControls(JComponent component)
{
if (component == null)
throw new IllegalArgumentException("The component cannot be null.");
uiDelegate.addComponentToControls(component);
} | void function(JComponent component) { if (component == null) throw new IllegalArgumentException(STR); uiDelegate.addComponentToControls(component); } | /**
* Adds the passed component to add to the control.
*
* @param component The component to add.
*/ | Adds the passed component to add to the control | addComponentToControls | {
"repo_name": "knabar/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/util/ui/filechooser/FileChooser.java",
"license": "gpl-2.0",
"size": 19657
} | [
"javax.swing.JComponent"
] | import javax.swing.JComponent; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 162,610 |
public static byte[] serializeCalendar(Calendar cal) throws Exception {
byte[] ret=null;
java.io.ByteArrayOutputStream baos=new java.io.ByteArrayOutputStream();
MAPPER.writeValue(baos, cal);
ret = baos.toByteArray();
baos.close();
... | static byte[] function(Calendar cal) throws Exception { byte[] ret=null; java.io.ByteArrayOutputStream baos=new java.io.ByteArrayOutputStream(); MAPPER.writeValue(baos, cal); ret = baos.toByteArray(); baos.close(); return (ret); } | /**
* This method serializes a calendar into a JSON representation.
*
* @param cal The calendar
* @return The JSON serialized representation
* @throws Exception Failed to serialize
*/ | This method serializes a calendar into a JSON representation | serializeCalendar | {
"repo_name": "jorgemoralespou/rtgov",
"path": "modules/activity-analysis/reports/src/main/java/org/overlord/rtgov/reports/util/ReportsUtil.java",
"license": "apache-2.0",
"size": 5830
} | [
"org.overlord.rtgov.reports.model.Calendar"
] | import org.overlord.rtgov.reports.model.Calendar; | import org.overlord.rtgov.reports.model.*; | [
"org.overlord.rtgov"
] | org.overlord.rtgov; | 2,113,479 |
public ServiceCall<Void> putDateTimeValidAsync(Map<String, DateTime> arrayBody, final ServiceCallback<Void> serviceCallback) {
return ServiceCall.fromResponse(putDateTimeValidWithServiceResponseAsync(arrayBody), serviceCallback);
} | ServiceCall<Void> function(Map<String, DateTime> arrayBody, final ServiceCallback<Void> serviceCallback) { return ServiceCall.fromResponse(putDateTimeValidWithServiceResponseAsync(arrayBody), serviceCallback); } | /**
* Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": "1492-10-12T10:15:01-08:00"}.
*
* @param arrayBody the Map<String, DateTime> value
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @return the {... | Set dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": "1492-10-12T10:15:01-08:00"} | putDateTimeValidAsync | {
"repo_name": "matthchr/autorest",
"path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodydictionary/implementation/DictionarysImpl.java",
"license": "mit",
"size": 210563
} | [
"com.microsoft.rest.ServiceCall",
"com.microsoft.rest.ServiceCallback",
"java.util.Map",
"org.joda.time.DateTime"
] | import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback; import java.util.Map; import org.joda.time.DateTime; | import com.microsoft.rest.*; import java.util.*; import org.joda.time.*; | [
"com.microsoft.rest",
"java.util",
"org.joda.time"
] | com.microsoft.rest; java.util; org.joda.time; | 2,119,908 |
private void assertFormatValue(String test, String expected) {
assertThat(test.replaceAll("[ \u00a0]", "").replace(',', '.'),
is(expected.replaceAll(" ", "")));
} | void function(String test, String expected) { assertThat(test.replaceAll(STR, STR STR"))); } | /**
* Centralized assert
* @param test
* @param expected
*/ | Centralized assert | assertFormatValue | {
"repo_name": "auroreallibe/Silverpeas-Core",
"path": "core-api/src/test/java/org/silverpeas/core/util/TestTimeData.java",
"license": "agpl-3.0",
"size": 11240
} | [
"org.hamcrest.MatcherAssert"
] | import org.hamcrest.MatcherAssert; | import org.hamcrest.*; | [
"org.hamcrest"
] | org.hamcrest; | 246,809 |
public void persist(int maxDelaySec, AuthenticationInfo subject) {
startDelayedPersistTimer(maxDelaySec, subject);
} | void function(int maxDelaySec, AuthenticationInfo subject) { startDelayedPersistTimer(maxDelaySec, subject); } | /**
* Persist this note with maximum delay.
*/ | Persist this note with maximum delay | persist | {
"repo_name": "anthonycorbacho/incubator-zeppelin",
"path": "zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/Note.java",
"license": "apache-2.0",
"size": 29903
} | [
"org.apache.zeppelin.user.AuthenticationInfo"
] | import org.apache.zeppelin.user.AuthenticationInfo; | import org.apache.zeppelin.user.*; | [
"org.apache.zeppelin"
] | org.apache.zeppelin; | 156,350 |
public Map<String, JRGroup> getGroupsMap()
{
return mainDesignDataset.getGroupsMap();
} | Map<String, JRGroup> function() { return mainDesignDataset.getGroupsMap(); } | /**
* Gets a list of report groups.
*/ | Gets a list of report groups | getGroupsMap | {
"repo_name": "OpenSoftwareSolutions/PDFReporter",
"path": "pdfreporter-core/src/org/oss/pdfreporter/engine/design/JasperDesign.java",
"license": "lgpl-3.0",
"size": 31170
} | [
"java.util.Map",
"org.oss.pdfreporter.engine.JRGroup"
] | import java.util.Map; import org.oss.pdfreporter.engine.JRGroup; | import java.util.*; import org.oss.pdfreporter.engine.*; | [
"java.util",
"org.oss.pdfreporter"
] | java.util; org.oss.pdfreporter; | 1,675,131 |
@Test
public void getRootPath() {
assertEquals("s3a://s3-bucket-name/",
new AlluxioURI("s3a://s3-bucket-name/").getRootPath());
assertEquals("s3a://s3-bucket-name/",
new AlluxioURI("s3a://s3-bucket-name/folder").getRootPath());
assertEquals("/",
new AlluxioURI("/tmp/folder").getR... | void function() { assertEquals(STRs3a: assertEquals(STRs3a: assertEquals("/", new AlluxioURI(STR).getRootPath()); } | /**
* Tests the {@link AlluxioURI#getRootPath()} method.
*/ | Tests the <code>AlluxioURI#getRootPath()</code> method | getRootPath | {
"repo_name": "EvilMcJerkface/alluxio",
"path": "core/common/src/test/java/alluxio/AlluxioURITest.java",
"license": "apache-2.0",
"size": 40892
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 1,319,362 |
@Override
public float getValueZ() {
return 0;
}
}
private static final class ParticleDataException extends RuntimeException {
private static final long serialVersionUID = 3203085387160737484L;
public ParticleDataException(String message) {
... | float function() { return 0; } } private static final class ParticleDataException extends RuntimeException { private static final long serialVersionUID = 3203085387160737484L; public ParticleDataException(String message) { super(message); } } private static final class ParticleColorException extends RuntimeException { ... | /**
* Returns zero because the offsetZ value is unused
*
* @return zero
*/ | Returns zero because the offsetZ value is unused | getValueZ | {
"repo_name": "TheApocalypseMC/FunCore",
"path": "src/com/theapocalypsemc/funcore/fx/ParticleEffect.java",
"license": "gpl-2.0",
"size": 67409
} | [
"java.lang.reflect.Constructor",
"java.lang.reflect.Field",
"java.lang.reflect.Method",
"org.bukkit.util.Vector"
] | import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.Method; import org.bukkit.util.Vector; | import java.lang.reflect.*; import org.bukkit.util.*; | [
"java.lang",
"org.bukkit.util"
] | java.lang; org.bukkit.util; | 2,740,204 |
// <editor-fold defaultstate="collapsed"
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
java.awt.GridBagConstraints gridBagConstraints;
jPanel1 = new javax.swing.JPanel();
jPanel2 = new javax.swing.JPanel();
... | void function() { java.awt.GridBagConstraints gridBagConstraints; jPanel1 = new javax.swing.JPanel(); jPanel2 = new javax.swing.JPanel(); jButton2 = new javax.swing.JButton(); jButton1 = new javax.swing.JButton(); jPanel3 = new javax.swing.JPanel(); newButton = new javax.swing.JButton(); editButton = new javax.swing.JB... | /**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
* regenerated by the Form Editor.
*/ | This method is called from within the constructor to initialize the form. regenerated by the Form Editor | initComponents | {
"repo_name": "Recombine/jailer",
"path": "src/main/net/sf/jailer/ui/DbConnectionDialog.java",
"license": "apache-2.0",
"size": 33940
} | [
"javax.swing.JLabel",
"javax.swing.JTable"
] | import javax.swing.JLabel; import javax.swing.JTable; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 2,010,965 |
//##############################################################################################
// ADDING something to user
public void AddNewGiftCard(View menu){
// Add new giftcard
GiftCard gc = new GiftCard();
gc.setBelongsTo(username);
inv.addGiftCard(gc);
// ... | void function(View menu){ GiftCard gc = new GiftCard(); gc.setBelongsTo(username); inv.addGiftCard(gc); ArrayList<GiftCard> tempArray = inv.getInvList(); ArrayList<String> GiftCardNames = new ArrayList<String>(); for (int index = 0; index <tempArray.size(); index++){ GiftCardNames.add(0, tempArray.get(index).getMerchan... | /**
* AddNewGiftCard
* create a new giftcard and place in inventory, then switch to ItemActivity to edit that giftcard
* @param menu
* return
*/ | AddNewGiftCard create a new giftcard and place in inventory, then switch to ItemActivity to edit that giftcard | AddNewGiftCard | {
"repo_name": "CMPUT301F15T08/SMACCR",
"path": "src/GiftCarder/app/src/main/java/ca/ualberta/smaccr/giftcarder/AllActivity.java",
"license": "apache-2.0",
"size": 27649
} | [
"android.content.Intent",
"android.view.View",
"java.util.ArrayList"
] | import android.content.Intent; import android.view.View; import java.util.ArrayList; | import android.content.*; import android.view.*; import java.util.*; | [
"android.content",
"android.view",
"java.util"
] | android.content; android.view; java.util; | 2,776,481 |
private void loadModifications() {
modifications = new HashMap<>();
try {
for (Modification modification : modificationService.loadPipelineModifications(ResourceUtils.getResourceByRelativePath(PropertiesConfigurationHolder.getInstance().getString("modification.pipeline_modifications_file... | void function() { modifications = new HashMap<>(); try { for (Modification modification : modificationService.loadPipelineModifications(ResourceUtils.getResourceByRelativePath(PropertiesConfigurationHolder.getInstance().getString(STR)))) { modifications.put(modification.getName(), modification); } } catch (JDOMExceptio... | /**
* loads pipeline modifications in order to map the modification names in
* the result file to the right modification
*/ | loads pipeline modifications in order to map the modification names in the result file to the right modification | loadModifications | {
"repo_name": "compomics/pride-asa-pipeline",
"path": "pride-asa-pipeline-model/src/main/java/com/compomics/pride_asa_pipeline/core/repository/impl/FileResultHandlerImpl2.java",
"license": "apache-2.0",
"size": 21913
} | [
"com.compomics.pride_asa_pipeline.core.config.PropertiesConfigurationHolder",
"com.compomics.pride_asa_pipeline.core.util.ResourceUtils",
"com.compomics.pride_asa_pipeline.model.Modification",
"java.util.HashMap",
"org.jdom2.JDOMException"
] | import com.compomics.pride_asa_pipeline.core.config.PropertiesConfigurationHolder; import com.compomics.pride_asa_pipeline.core.util.ResourceUtils; import com.compomics.pride_asa_pipeline.model.Modification; import java.util.HashMap; import org.jdom2.JDOMException; | import com.compomics.pride_asa_pipeline.core.config.*; import com.compomics.pride_asa_pipeline.core.util.*; import com.compomics.pride_asa_pipeline.model.*; import java.util.*; import org.jdom2.*; | [
"com.compomics.pride_asa_pipeline",
"java.util",
"org.jdom2"
] | com.compomics.pride_asa_pipeline; java.util; org.jdom2; | 297,599 |
public DatanodeStorageInfo[] chooseTarget4NewBlock(final String src,
final int numOfReplicas, final Node client,
final Set<Node> excludedNodes,
final long blocksize,
final List<String> favoredNodes,
final byte storagePolicyID,
final BlockType blockType,
final ErasureCodingPol... | DatanodeStorageInfo[] function(final String src, final int numOfReplicas, final Node client, final Set<Node> excludedNodes, final long blocksize, final List<String> favoredNodes, final byte storagePolicyID, final BlockType blockType, final ErasureCodingPolicy ecPolicy, final EnumSet<AddBlockFlag> flags) throws IOExcept... | /**
* Choose target datanodes for creating a new block.
*
* @throws IOException
* if the number of targets < minimum replication.
* @see BlockPlacementPolicy#chooseTarget(String, int, Node,
* Set, long, List, BlockStoragePolicy, EnumSet)
*/ | Choose target datanodes for creating a new block | chooseTarget4NewBlock | {
"repo_name": "dennishuo/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java",
"license": "apache-2.0",
"size": 191685
} | [
"java.io.IOException",
"java.util.EnumSet",
"java.util.List",
"java.util.Set",
"org.apache.hadoop.hdfs.AddBlockFlag",
"org.apache.hadoop.hdfs.protocol.BlockStoragePolicy",
"org.apache.hadoop.hdfs.protocol.BlockType",
"org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy",
"org.apache.hadoop.net.Node"... | import java.io.IOException; import java.util.EnumSet; import java.util.List; import java.util.Set; import org.apache.hadoop.hdfs.AddBlockFlag; import org.apache.hadoop.hdfs.protocol.BlockStoragePolicy; import org.apache.hadoop.hdfs.protocol.BlockType; import org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy; import o... | import java.io.*; import java.util.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.hadoop.net.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 847,825 |
private static <T> T run(PrivilegedAction<T> action) {
return System.getSecurityManager() != null ? AccessController.doPrivileged( action ) : action.run();
} | static <T> T function(PrivilegedAction<T> action) { return System.getSecurityManager() != null ? AccessController.doPrivileged( action ) : action.run(); } | /**
* Runs the given privileged action, using a privileged block if required.
* <p>
* <b>NOTE:</b> This must never be changed into a publicly available method to avoid execution of arbitrary
* privileged actions within HV's protection domain.
*/ | Runs the given privileged action, using a privileged block if required. privileged actions within HV's protection domain | run | {
"repo_name": "DavideD/hibernate-validator",
"path": "engine/src/main/java/org/hibernate/validator/internal/xml/ConstrainedExecutableBuilder.java",
"license": "apache-2.0",
"size": 11520
} | [
"java.security.AccessController",
"java.security.PrivilegedAction"
] | import java.security.AccessController; import java.security.PrivilegedAction; | import java.security.*; | [
"java.security"
] | java.security; | 2,515,439 |
@Test
public void initiateMessageTest36() throws PcepParseException, PcepOutOfBoundMessageException {
// SRP, LSP ( StatefulLspDbVerTlv), END-POINTS,
// ERO, LSPA OBJECT.
//
byte[] initiateCreationMsg = new byte[]{0x20, 0x0C, 0x00, (byte) 0x58,
0x21, 0x10, 0x00, ... | void function() throws PcepParseException, PcepOutOfBoundMessageException { 0x21, 0x10, 0x00, 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x20, 0x10, 0x00, 0x14, 0x00, 0x00, 0x10, 0x03, 0x00, 0x17, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x04, 0x12, 0x00, 0x0C, 0x01, 0x01, 0x01, 0x01, 0x02... | /**
* This test case checks for SRP, LSP ( StatefulLspDbVerTlv), END-POINTS,
* ERO, LSPA OBJECT objects in PcInitiate message.
*/ | This test case checks for SRP, LSP ( StatefulLspDbVerTlv), END-POINTS, ERO, LSPA OBJECT objects in PcInitiate message | initiateMessageTest36 | {
"repo_name": "sonu283304/onos",
"path": "protocols/pcep/pcepio/src/test/java/org/onosproject/pcepio/protocol/PcepInitiateMsgExtTest.java",
"license": "apache-2.0",
"size": 81890
} | [
"org.hamcrest.MatcherAssert",
"org.hamcrest.Matchers",
"org.hamcrest.core.Is",
"org.jboss.netty.buffer.ChannelBuffer",
"org.jboss.netty.buffer.ChannelBuffers",
"org.onosproject.pcepio.exceptions.PcepOutOfBoundMessageException",
"org.onosproject.pcepio.exceptions.PcepParseException"
] | import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.hamcrest.core.Is; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffers; import org.onosproject.pcepio.exceptions.PcepOutOfBoundMessageException; import org.onosproject.pcepio.exceptions.PcepParseException; | import org.hamcrest.*; import org.hamcrest.core.*; import org.jboss.netty.buffer.*; import org.onosproject.pcepio.exceptions.*; | [
"org.hamcrest",
"org.hamcrest.core",
"org.jboss.netty",
"org.onosproject.pcepio"
] | org.hamcrest; org.hamcrest.core; org.jboss.netty; org.onosproject.pcepio; | 1,652,580 |
public List<GameObject> getObjects() {
if (objects == null) {
return null;
}
List<GameObject> list = new ArrayList<GameObject>();
for (int z = 0; z < objects.length; z++) {
if (objects[z] == null) {
continue;
}
for (int x = 0; x < objects[z].length; x++) {
if (objects[z][x] == null) {
... | List<GameObject> function() { if (objects == null) { return null; } List<GameObject> list = new ArrayList<GameObject>(); for (int z = 0; z < objects.length; z++) { if (objects[z] == null) { continue; } for (int x = 0; x < objects[z].length; x++) { if (objects[z][x] == null) { continue; } for (int y = 0; y < objects[z][... | /**
* Gets the list of world objects in this region.
*
* @return The list of world objects.
*/ | Gets the list of world objects in this region | getObjects | {
"repo_name": "OzanKurt/Citelic-742",
"path": "src/com/citelic/game/map/Region.java",
"license": "mit",
"size": 28997
} | [
"com.citelic.game.map.objects.GameObject",
"java.util.ArrayList",
"java.util.List"
] | import com.citelic.game.map.objects.GameObject; import java.util.ArrayList; import java.util.List; | import com.citelic.game.map.objects.*; import java.util.*; | [
"com.citelic.game",
"java.util"
] | com.citelic.game; java.util; | 2,866,726 |
@VisibleForTesting
protected void updateFlushTime(Date now) {
// In non-initial rounds, add an integer number of intervals to the last
// flush until a time in the future is achieved, thus preserving the
// original random offset.
int millis =
(int) (((now.getTime() - nextFlush.getTimeInMill... | void function(Date now) { int millis = (int) (((now.getTime() - nextFlush.getTimeInMillis()) / rollIntervalMillis + 1) * rollIntervalMillis); nextFlush.add(Calendar.MILLISECOND, millis); } | /**
* Update the {@link #nextFlush} variable to the next flush time. Add
* an integer number of flush intervals, preserving the initial random offset.
*
* @param now the current time
*/ | Update the <code>#nextFlush</code> variable to the next flush time. Add an integer number of flush intervals, preserving the initial random offset | updateFlushTime | {
"repo_name": "GeLiXin/hadoop",
"path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/sink/RollingFileSystemSink.java",
"license": "apache-2.0",
"size": 35623
} | [
"java.util.Calendar",
"java.util.Date"
] | import java.util.Calendar; import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 1,389,288 |
Element elementNS(String namespace, String elementName); | Element elementNS(String namespace, String elementName); | /**
* Starts an element within the given namespace. The correct namespace prefix will be identified and used. Must be
* balanced by a call to {@link #end()}.
*
* @param namespace URI containing the element
* @param elementName name of the element within the namespace
* @return the new El... | Starts an element within the given namespace. The correct namespace prefix will be identified and used. Must be balanced by a call to <code>#end()</code> | elementNS | {
"repo_name": "apache/tapestry-5",
"path": "tapestry-core/src/main/java/org/apache/tapestry5/MarkupWriter.java",
"license": "apache-2.0",
"size": 5669
} | [
"org.apache.tapestry5.dom.Element"
] | import org.apache.tapestry5.dom.Element; | import org.apache.tapestry5.dom.*; | [
"org.apache.tapestry5"
] | org.apache.tapestry5; | 1,570,481 |
private String getProxyUserIdKey(UserId userId) {
return StringUtil.concat("proxy:", gameServerId, Constant.COLON, userId.toString());
} | String function(UserId userId) { return StringUtil.concat(STR, gameServerId, Constant.COLON, userId.toString()); } | /**
* Get the userId's proxy key in Redis
* @param idString
* @return
*/ | Get the userId's proxy key in Redis | getProxyUserIdKey | {
"repo_name": "wangqi/gameserver",
"path": "server/src/main/java/com/xinqihd/sns/gameserver/session/SessionManager.java",
"license": "apache-2.0",
"size": 17163
} | [
"com.xinqihd.sns.gameserver.config.Constant",
"com.xinqihd.sns.gameserver.entity.user.UserId",
"com.xinqihd.sns.gameserver.util.StringUtil"
] | import com.xinqihd.sns.gameserver.config.Constant; import com.xinqihd.sns.gameserver.entity.user.UserId; import com.xinqihd.sns.gameserver.util.StringUtil; | import com.xinqihd.sns.gameserver.config.*; import com.xinqihd.sns.gameserver.entity.user.*; import com.xinqihd.sns.gameserver.util.*; | [
"com.xinqihd.sns"
] | com.xinqihd.sns; | 1,874,551 |
@Override
public Result getNext(Tuple t) throws ExecException {
if(!setUpDone && lFile!=null){
try {
setUp();
} catch (IOException ioe) {
int errCode = 2081;
String msg = "Unable to setup the load function.";
throw n... | Result function(Tuple t) throws ExecException { if(!setUpDone && lFile!=null){ try { setUp(); } catch (IOException ioe) { int errCode = 2081; String msg = STR; throw new ExecException(msg, errCode, PigException.BUG, ioe); } setUpDone = true; } Result res = new Result(); try { res.result = loader.getNext(); if(res.resul... | /**
* The main method used by this operator's successor
* to read tuples from the specified file using the
* specified load function.
*
* @return Whatever the loader returns
* A null from the loader is indicative
* of EOP and hence the tearDown of connection
*/ | The main method used by this operator's successor to read tuples from the specified file using the specified load function | getNext | {
"repo_name": "kaituo/sedge",
"path": "trunk/src/org/apache/pig/backend/hadoop/executionengine/physicalLayer/relationalOperators/POLoad.java",
"license": "mit",
"size": 7546
} | [
"java.io.IOException",
"org.apache.pig.PigException",
"org.apache.pig.backend.executionengine.ExecException",
"org.apache.pig.backend.hadoop.executionengine.physicalLayer.POStatus",
"org.apache.pig.backend.hadoop.executionengine.physicalLayer.Result",
"org.apache.pig.data.Tuple"
] | import java.io.IOException; import org.apache.pig.PigException; import org.apache.pig.backend.executionengine.ExecException; import org.apache.pig.backend.hadoop.executionengine.physicalLayer.POStatus; import org.apache.pig.backend.hadoop.executionengine.physicalLayer.Result; import org.apache.pig.data.Tuple; | import java.io.*; import org.apache.pig.*; import org.apache.pig.backend.executionengine.*; import org.apache.pig.backend.hadoop.executionengine.*; import org.apache.pig.data.*; | [
"java.io",
"org.apache.pig"
] | java.io; org.apache.pig; | 2,288,612 |
public org.w3c.dom.Node getLastChild() {
return node.getLastChild();
} | org.w3c.dom.Node function() { return node.getLastChild(); } | /**
* getLastChild method comment.
*/ | getLastChild method comment | getLastChild | {
"repo_name": "jbarriosc/ACSUFRO",
"path": "LGPL/CommonSoftware/jlogEngine/src/com/cosylab/logging/engine/DataNode.java",
"license": "lgpl-2.1",
"size": 8433
} | [
"org.w3c.dom.Node"
] | import org.w3c.dom.Node; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 2,716,586 |
@CheckForNull
public UserDetails getSsoUserDetails(HttpServletRequest request) {
checkNotNull(request, "request is null");
WindowsPrincipal windowsPrincipal = getWindowsPrincipal(request, WindowsAuthenticationHelper.SSO_PRINCIPAL_KEY);
return windowsPrincipal != null ? getUserDetails(windowsPrincipal.g... | UserDetails function(HttpServletRequest request) { checkNotNull(request, STR); WindowsPrincipal windowsPrincipal = getWindowsPrincipal(request, WindowsAuthenticationHelper.SSO_PRINCIPAL_KEY); return windowsPrincipal != null ? getUserDetails(windowsPrincipal.getName()) : null; } | /**
* Gets the {@link UserDetails} for the given {@link WindowsPrincipal} defined in {@link HttpServletRequest}.
*
* @return {@link UserDetails} for the given {@link WindowsPrincipal} or null if it is not found.
*/ | Gets the <code>UserDetails</code> for the given <code>WindowsPrincipal</code> defined in <code>HttpServletRequest</code> | getSsoUserDetails | {
"repo_name": "SonarQubeCommunity/sonar-activedirectory",
"path": "src/main/java/org/sonar/plugins/activedirectory/windows/WindowsAuthenticationHelper.java",
"license": "lgpl-3.0",
"size": 11024
} | [
"com.google.common.base.Preconditions",
"javax.servlet.http.HttpServletRequest",
"org.sonar.api.security.UserDetails"
] | import com.google.common.base.Preconditions; import javax.servlet.http.HttpServletRequest; import org.sonar.api.security.UserDetails; | import com.google.common.base.*; import javax.servlet.http.*; import org.sonar.api.security.*; | [
"com.google.common",
"javax.servlet",
"org.sonar.api"
] | com.google.common; javax.servlet; org.sonar.api; | 1,552,238 |
protected void initDistributedDatabases() {
for (Entry<String, String> storageEntry : serverInstance.getAvailableStorageNames().entrySet()) {
OLogManager.instance().warn(this, "DISTRIBUTED <> opening database %s...", storageEntry.getKey());
getDatabaseSynchronizer(storageEntry.getKey());
}
... | void function() { for (Entry<String, String> storageEntry : serverInstance.getAvailableStorageNames().entrySet()) { OLogManager.instance().warn(this, STR, storageEntry.getKey()); getDatabaseSynchronizer(storageEntry.getKey()); } } | /**
* Initializes distributed databases.
*/ | Initializes distributed databases | initDistributedDatabases | {
"repo_name": "nengxu/OrientDB",
"path": "distributed/src/main/java/com/orientechnologies/orient/server/hazelcast/OHazelcastPlugin.java",
"license": "apache-2.0",
"size": 27372
} | [
"com.orientechnologies.common.log.OLogManager",
"java.util.Map"
] | import com.orientechnologies.common.log.OLogManager; import java.util.Map; | import com.orientechnologies.common.log.*; import java.util.*; | [
"com.orientechnologies.common",
"java.util"
] | com.orientechnologies.common; java.util; | 2,259,691 |
public void setInvoicedAmt (BigDecimal InvoicedAmt)
{
set_Value (COLUMNNAME_InvoicedAmt, InvoicedAmt);
} | void function (BigDecimal InvoicedAmt) { set_Value (COLUMNNAME_InvoicedAmt, InvoicedAmt); } | /** Set Invoiced Amount.
@param InvoicedAmt
The amount invoiced
*/ | Set Invoiced Amount | setInvoicedAmt | {
"repo_name": "klst-com/metasfresh",
"path": "de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/X_T_Aging.java",
"license": "gpl-2.0",
"size": 20737
} | [
"java.math.BigDecimal"
] | import java.math.BigDecimal; | import java.math.*; | [
"java.math"
] | java.math; | 1,560,221 |
@Test
public void testSetLocationStrategy() {
final FileLocationStrategy strategy = EasyMock.createMock(FileLocationStrategy.class);
EasyMock.replay(strategy);
final FileHandler handler = new FileHandler();
handler.setLocationStrategy(strategy);
assertSame("Wrong strategy... | void function() { final FileLocationStrategy strategy = EasyMock.createMock(FileLocationStrategy.class); EasyMock.replay(strategy); final FileHandler handler = new FileHandler(); handler.setLocationStrategy(strategy); assertSame(STR, strategy, handler.getFileLocator().getLocationStrategy()); assertSame(STR, strategy, h... | /**
* Tests whether the location strategy can be changed.
*/ | Tests whether the location strategy can be changed | testSetLocationStrategy | {
"repo_name": "apache/commons-configuration",
"path": "src/test/java/org/apache/commons/configuration2/io/TestFileHandler.java",
"license": "apache-2.0",
"size": 52995
} | [
"org.easymock.EasyMock",
"org.junit.Assert"
] | import org.easymock.EasyMock; import org.junit.Assert; | import org.easymock.*; import org.junit.*; | [
"org.easymock",
"org.junit"
] | org.easymock; org.junit; | 2,062,838 |
protected void renderMomentInclude(Writer out) throws IOException {
if (pageContext.getRequest().getAttribute(
"__spacewalk_momentjs_included") == null) {
this.bestLocale = null;
out.append("<script type=\"text/javascript\" src=\"" +
"/javascript/momen... | void function(Writer out) throws IOException { if (pageContext.getRequest().getAttribute( STR) == null) { this.bestLocale = null; out.append(STRtext/javascript\STRSTR/javascript/momentjs/moment-with-langs.min.js\STR); out.append(STRtext/javascript\">"); out.append(STRSTR\");"); out.append(STR); pageContext.getRequest()... | /**
* renders code that includes the moment.js library, only
* if it has not been included before by the same tag
* @param out Where to render to
* @throws IOException
*/ | renders code that includes the moment.js library, only if it has not been included before by the same tag | renderMomentInclude | {
"repo_name": "xkollar/spacewalk",
"path": "java/code/src/com/redhat/rhn/frontend/taglibs/FormatDateTag.java",
"license": "gpl-2.0",
"size": 10940
} | [
"java.io.IOException",
"java.io.Writer"
] | import java.io.IOException; import java.io.Writer; | import java.io.*; | [
"java.io"
] | java.io; | 1,217,862 |
@Override
public boolean isEventAssociated(String eventType) throws WorkflowException {
List<WorkflowListener> workflowListenerList =
WorkflowServiceDataHolder.getInstance().getWorkflowListenerList();
for (WorkflowListener workflowListener : workflowListenerList) {
i... | boolean function(String eventType) throws WorkflowException { List<WorkflowListener> workflowListenerList = WorkflowServiceDataHolder.getInstance().getWorkflowListenerList(); for (WorkflowListener workflowListener : workflowListenerList) { if (workflowListener.isEnable()) { workflowListener.doPreIsEventAssociated(event... | /**
* Check if an operation is engaged with a workflow or not.
*
* @param eventType
* @return
* @throws InternalWorkflowException
*/ | Check if an operation is engaged with a workflow or not | isEventAssociated | {
"repo_name": "thariyarox/carbon-identity",
"path": "components/workflow-mgt/org.wso2.carbon.identity.workflow.mgt/src/main/java/org/wso2/carbon/identity/workflow/mgt/WorkflowManagementServiceImpl.java",
"license": "apache-2.0",
"size": 39823
} | [
"java.util.List",
"org.wso2.carbon.context.CarbonContext",
"org.wso2.carbon.identity.workflow.mgt.bean.WorkflowAssociation",
"org.wso2.carbon.identity.workflow.mgt.exception.WorkflowException",
"org.wso2.carbon.identity.workflow.mgt.internal.WorkflowServiceDataHolder",
"org.wso2.carbon.identity.workflow.m... | import java.util.List; import org.wso2.carbon.context.CarbonContext; import org.wso2.carbon.identity.workflow.mgt.bean.WorkflowAssociation; import org.wso2.carbon.identity.workflow.mgt.exception.WorkflowException; import org.wso2.carbon.identity.workflow.mgt.internal.WorkflowServiceDataHolder; import org.wso2.carbon.id... | import java.util.*; import org.wso2.carbon.context.*; import org.wso2.carbon.identity.workflow.mgt.bean.*; import org.wso2.carbon.identity.workflow.mgt.exception.*; import org.wso2.carbon.identity.workflow.mgt.internal.*; import org.wso2.carbon.identity.workflow.mgt.listener.*; | [
"java.util",
"org.wso2.carbon"
] | java.util; org.wso2.carbon; | 2,063,403 |
@NonNull
default Select function(@NonNull CqlIdentifier functionId, @NonNull Selector... arguments) {
return function(functionId, Arrays.asList(arguments));
} | default Select function(@NonNull CqlIdentifier functionId, @NonNull Selector... arguments) { return function(functionId, Arrays.asList(arguments)); } | /**
* Var-arg equivalent of {@link #function(CqlIdentifier, Iterable)}.
*
* @see Selector#function(CqlIdentifier, Selector...)
*/ | Var-arg equivalent of <code>#function(CqlIdentifier, Iterable)</code> | function | {
"repo_name": "datastax/java-driver",
"path": "query-builder/src/main/java/com/datastax/oss/driver/api/querybuilder/select/OngoingSelection.java",
"license": "apache-2.0",
"size": 29048
} | [
"com.datastax.oss.driver.api.core.CqlIdentifier",
"edu.umd.cs.findbugs.annotations.NonNull",
"java.util.Arrays"
] | import com.datastax.oss.driver.api.core.CqlIdentifier; import edu.umd.cs.findbugs.annotations.NonNull; import java.util.Arrays; | import com.datastax.oss.driver.api.core.*; import edu.umd.cs.findbugs.annotations.*; import java.util.*; | [
"com.datastax.oss",
"edu.umd.cs",
"java.util"
] | com.datastax.oss; edu.umd.cs; java.util; | 442,292 |
public static List<String> getTermsBetweenChars(String query, char c,
int includeChars) {
// Map out locations of "'s
List<String> output = new ArrayList();
String modquery = query;
int counter = 0;
List<Integer> positions = new ArrayList<Integer>();
while (modquery.indexOf("\"") != -1) {
int temp... | static List<String> function(String query, char c, int includeChars) { List<String> output = new ArrayList(); String modquery = query; int counter = 0; List<Integer> positions = new ArrayList<Integer>(); while (modquery.indexOf("\"STR\STR STR\STR\""); } } return output; } | /**
* Gets "bob" and "alan" out of <"bob"~10 AND "alan"> IncludeChars - include
* the delimiting characted: 0: Don't 1: Do 2: Only do so when
*
* @return
*/ | Gets "bob" and "alan" out of IncludeChars - include the delimiting characted: 0: Don't 1: Do 2: Only do so when | getTermsBetweenChars | {
"repo_name": "sodash/open-code",
"path": "winterwell.utils/src/com/winterwell/utils/StrUtils.java",
"license": "mit",
"size": 51954
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 116,470 |
interface Listener extends Closeable {
@Override
void close(); | interface Listener extends Closeable { void close(); | /**
* Called to close the resources, if any. Cannot throw an exception.
*/ | Called to close the resources, if any. Cannot throw an exception | close | {
"repo_name": "vincentpoon/hbase",
"path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/ClusterStatusListener.java",
"license": "apache-2.0",
"size": 8960
} | [
"java.io.Closeable"
] | import java.io.Closeable; | import java.io.*; | [
"java.io"
] | java.io; | 2,283,729 |
protected static Optional<WindowNode> pullWindowNodeAboveProjects(
WindowNode target,
List<ProjectNode> projects)
{
if (projects.isEmpty()) {
return Optional.of(target);
}
PlanNode targetChild = target.getSource();
... | static Optional<WindowNode> function( WindowNode target, List<ProjectNode> projects) { if (projects.isEmpty()) { return Optional.of(target); } PlanNode targetChild = target.getSource(); Set<Symbol> targetInputs = ImmutableSet.copyOf(targetChild.getOutputSymbols()); Set<Symbol> targetOutputs = ImmutableSet.copyOf(target... | /**
* Looks for the pattern (ProjectNode*)WindowNode, and rewrites it to WindowNode(ProjectNode*),
* returning an empty option if it can't rewrite the projects, for example because they rely on
* the output of the WindowNode.
*
* @param projects the nodes above the target, b... | Looks for the pattern (ProjectNode*)WindowNode, and rewrites it to WindowNode(ProjectNode*), returning an empty option if it can't rewrite the projects, for example because they rely on the output of the WindowNode | pullWindowNodeAboveProjects | {
"repo_name": "sopel39/presto",
"path": "presto-main/src/main/java/io/prestosql/sql/planner/iterative/rule/GatherAndMergeWindows.java",
"license": "apache-2.0",
"size": 13383
} | [
"com.google.common.collect.ImmutableList",
"com.google.common.collect.ImmutableSet",
"com.google.common.collect.Maps",
"io.prestosql.sql.planner.Symbol",
"io.prestosql.sql.planner.SymbolsExtractor",
"io.prestosql.sql.planner.plan.Assignments",
"io.prestosql.sql.planner.plan.PlanNode",
"io.prestosql.sq... | import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Maps; import io.prestosql.sql.planner.Symbol; import io.prestosql.sql.planner.SymbolsExtractor; import io.prestosql.sql.planner.plan.Assignments; import io.prestosql.sql.planner.plan.PlanNode;... | import com.google.common.collect.*; import io.prestosql.sql.planner.*; import io.prestosql.sql.planner.plan.*; import io.prestosql.sql.tree.*; import java.util.*; | [
"com.google.common",
"io.prestosql.sql",
"java.util"
] | com.google.common; io.prestosql.sql; java.util; | 309,881 |
public void setContextPath(String path)
throws ConfigException
{
if (! path.startsWith("/"))
throw new ConfigException(L.l("context-path '{0}' must start with '/'.",
path));
_contextPath = path;
} | void function(String path) throws ConfigException { if (! path.startsWith("/")) throw new ConfigException(L.l(STR, path)); _contextPath = path; } | /**
* Sets the context path
*/ | Sets the context path | setContextPath | {
"repo_name": "christianchristensen/resin",
"path": "modules/resin/src/com/caucho/server/webapp/WebAppConfig.java",
"license": "gpl-2.0",
"size": 3898
} | [
"com.caucho.config.ConfigException"
] | import com.caucho.config.ConfigException; | import com.caucho.config.*; | [
"com.caucho.config"
] | com.caucho.config; | 1,546,926 |
@Test
public void testAttributeKeyWithMultipleValues()
throws ConfigurationException
{
conf.addProperty("errorTest[@multiAttr]", Arrays.asList("v1", "v2"));
saveTestConfig();
XMLConfiguration checkConfig = new XMLConfiguration();
load(checkConfig, testSaveConf.get... | void function() throws ConfigurationException { conf.addProperty(STR, Arrays.asList("v1", "v2")); saveTestConfig(); XMLConfiguration checkConfig = new XMLConfiguration(); load(checkConfig, testSaveConf.getAbsolutePath()); assertEquals(STR, "v1", checkConfig.getString(STR)); } | /**
* Tries to create an attribute with multiple values. Only the first value
* is taken into account.
*/ | Tries to create an attribute with multiple values. Only the first value is taken into account | testAttributeKeyWithMultipleValues | {
"repo_name": "mohanaraosv/commons-configuration",
"path": "src/test/java/org/apache/commons/configuration2/TestXMLConfiguration.java",
"license": "apache-2.0",
"size": 59359
} | [
"java.util.Arrays",
"org.apache.commons.configuration2.ex.ConfigurationException",
"org.junit.Assert"
] | import java.util.Arrays; import org.apache.commons.configuration2.ex.ConfigurationException; import org.junit.Assert; | import java.util.*; import org.apache.commons.configuration2.ex.*; import org.junit.*; | [
"java.util",
"org.apache.commons",
"org.junit"
] | java.util; org.apache.commons; org.junit; | 2,849,738 |
private static void appendImmutableSortedSet(
IndentedLinesBuilder ilb, String typeParamSnippet, Collection<String> itemSnippets) {
appendListOrSetHelper(
ilb, "ImmutableSortedSet." + typeParamSnippet + "of", itemSnippets);
} | static void function( IndentedLinesBuilder ilb, String typeParamSnippet, Collection<String> itemSnippets) { appendListOrSetHelper( ilb, STR + typeParamSnippet + "of", itemSnippets); } | /**
* Private helper to append an ImmutableSortedSet to the code.
*
* @param ilb The builder for the code.
* @param typeParamSnippet The type parameter for the ImmutableSortedSet.
* @param itemSnippets Code snippets for the items to put into the ImmutableSortedSet.
*/ | Private helper to append an ImmutableSortedSet to the code | appendImmutableSortedSet | {
"repo_name": "atul-bhouraskar/closure-templates",
"path": "java/src/com/google/template/soy/parseinfo/passes/GenerateParseInfoVisitor.java",
"license": "apache-2.0",
"size": 37171
} | [
"com.google.template.soy.base.internal.IndentedLinesBuilder",
"java.util.Collection"
] | import com.google.template.soy.base.internal.IndentedLinesBuilder; import java.util.Collection; | import com.google.template.soy.base.internal.*; import java.util.*; | [
"com.google.template",
"java.util"
] | com.google.template; java.util; | 72,362 |
public void testManageTags() {
UserController.getInstance().setCurrentUser(new User("zach"));
TagListController.getInstance().initialize();
ClaimTag tag = new ClaimTag("1st tag");
TagListController.getInstance().addTag(tag);
TagList taglist = TagListController.getInstance().getTagList();
ArrayList<ClaimT... | void function() { UserController.getInstance().setCurrentUser(new User("zach")); TagListController.getInstance().initialize(); ClaimTag tag = new ClaimTag(STR); TagListController.getInstance().addTag(tag); TagList taglist = TagListController.getInstance().getTagList(); ArrayList<ClaimTag> claimtaglist = taglist.getTags... | /**
* Test the TagList model and the TagListController to see if we can list, add, rename and delete tags
*/ | Test the TagList model and the TagListController to see if we can list, add, rename and delete tags | testManageTags | {
"repo_name": "CMPUT301W15T14/ExpenseExpress",
"path": "src/team14/expenseexpress/test/TestClaimTagModel.java",
"license": "gpl-3.0",
"size": 2160
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 1,537,904 |
@Override
public void setDefaultName(String mname) throws Exception
{
if (mname == null)
{
defaultModule = new INModule();
executableModules.add(defaultModule);
checkedModules.add(new TCModule());
defaultEnvironment = new ModuleEnvironment(checkedModules.get(0));
}
else
{
for (... | void function(String mname) throws Exception { if (mname == null) { defaultModule = new INModule(); executableModules.add(defaultModule); checkedModules.add(new TCModule()); defaultEnvironment = new ModuleEnvironment(checkedModules.get(0)); } else { for (INModule m: executableModules) { if (m.name.getName().equals(mnam... | /**
* Set the default module to the name given.
*
* @param mname The name of the new default module.
* @throws Exception The module name is not known.
*/ | Set the default module to the name given | setDefaultName | {
"repo_name": "nickbattle/vdmj",
"path": "vdmj/src/main/java/com/fujitsu/vdmj/runtime/ModuleInterpreter.java",
"license": "gpl-3.0",
"size": 12261
} | [
"com.fujitsu.vdmj.in.modules.INModule",
"com.fujitsu.vdmj.tc.modules.TCModule",
"com.fujitsu.vdmj.typechecker.ModuleEnvironment"
] | import com.fujitsu.vdmj.in.modules.INModule; import com.fujitsu.vdmj.tc.modules.TCModule; import com.fujitsu.vdmj.typechecker.ModuleEnvironment; | import com.fujitsu.vdmj.in.modules.*; import com.fujitsu.vdmj.tc.modules.*; import com.fujitsu.vdmj.typechecker.*; | [
"com.fujitsu.vdmj"
] | com.fujitsu.vdmj; | 2,003,560 |
private Type getType(Datapoint datapoint, byte[] asdu) {
for (KNXTypeMapper typeMapper : typeMappers) {
Type type = typeMapper.toType(datapoint, asdu);
if (type != null)
return type;
}
return null;
}
| Type function(Datapoint datapoint, byte[] asdu) { for (KNXTypeMapper typeMapper : typeMappers) { Type type = typeMapper.toType(datapoint, asdu); if (type != null) return type; } return null; } | /**
* Transforms the raw KNX bus data of a given datapoint into an openHAB type (command or state)
*
* @param datapoint
* the datapoint to which the data belongs
* @param asdu
* the byte array of the raw data from the KNX bus
* @return the openHAB command or state that corres... | Transforms the raw KNX bus data of a given datapoint into an openHAB type (command or state) | getType | {
"repo_name": "noushadali/openhab",
"path": "bundles/binding/org.openhab.binding.knx/src/main/java/org/openhab/binding/knx/internal/bus/KNXBinding.java",
"license": "gpl-3.0",
"size": 17504
} | [
"org.openhab.binding.knx.config.KNXTypeMapper",
"org.openhab.core.types.Type"
] | import org.openhab.binding.knx.config.KNXTypeMapper; import org.openhab.core.types.Type; | import org.openhab.binding.knx.config.*; import org.openhab.core.types.*; | [
"org.openhab.binding",
"org.openhab.core"
] | org.openhab.binding; org.openhab.core; | 1,405,930 |
public static void register(ICubicPopulator populator, int weight) {
Preconditions.checkNotNull(populator);
sortedGeneratorList.add(new GeneratorWrapper(populator, weight));
} | static void function(ICubicPopulator populator, int weight) { Preconditions.checkNotNull(populator); sortedGeneratorList.add(new GeneratorWrapper(populator, weight)); } | /**
* Register a world generator - something that inserts new block types into the world on population stage
*
* @param populator the generator
* @param weight a weight to assign to this generator. Heavy weights tend to sink to the bottom of
* list of world generators (i.e. they run later)
... | Register a world generator - something that inserts new block types into the world on population stage | register | {
"repo_name": "Barteks2x/CubicChunks",
"path": "CubicChunksAPI/src/main/java/io/github/opencubicchunks/cubicchunks/api/worldgen/CubeGeneratorsRegistry.java",
"license": "mit",
"size": 5641
} | [
"com.google.common.base.Preconditions",
"io.github.opencubicchunks.cubicchunks.api.worldgen.populator.ICubicPopulator"
] | import com.google.common.base.Preconditions; import io.github.opencubicchunks.cubicchunks.api.worldgen.populator.ICubicPopulator; | import com.google.common.base.*; import io.github.opencubicchunks.cubicchunks.api.worldgen.populator.*; | [
"com.google.common",
"io.github.opencubicchunks"
] | com.google.common; io.github.opencubicchunks; | 2,131,413 |
// TODO - verificar se o bug é valida para 1.7 e superior.
private void fixAliases(KeyStore keyStore) {
Field field;
KeyStoreSpi keyStoreVeritable;
try {
field = keyStore.getClass().getDeclaredField("keyStoreSpi");
field.setAccessible(true);
keyStoreVeritable = (KeyStoreSpi) field.get(keyStore);
... | void function(KeyStore keyStore) { Field field; KeyStoreSpi keyStoreVeritable; try { field = keyStore.getClass().getDeclaredField(STR); field.setAccessible(true); keyStoreVeritable = (KeyStoreSpi) field.get(keyStore); field = keyStoreVeritable.getClass().getEnclosingClass().getDeclaredField(STR); field.setAccessible(tr... | /**
* Implementation of the boundary method to avoid duplicate certificates, as
* described in <http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6672015>
*
* @param keyStore
*/ | Implementation of the boundary method to avoid duplicate certificates, as described in | fixAliases | {
"repo_name": "demoiselle/signer",
"path": "core/src/main/java/org/demoiselle/signer/core/keystore/loader/implementation/MSKeyStoreLoader.java",
"license": "lgpl-3.0",
"size": 6613
} | [
"java.lang.reflect.Field",
"java.security.KeyStore",
"java.security.KeyStoreSpi",
"java.security.cert.X509Certificate",
"java.util.Collection",
"java.util.Map"
] | import java.lang.reflect.Field; import java.security.KeyStore; import java.security.KeyStoreSpi; import java.security.cert.X509Certificate; import java.util.Collection; import java.util.Map; | import java.lang.reflect.*; import java.security.*; import java.security.cert.*; import java.util.*; | [
"java.lang",
"java.security",
"java.util"
] | java.lang; java.security; java.util; | 2,361,562 |
public List<SecurityRuleInner> defaultSecurityRules() {
return this.defaultSecurityRules;
} | List<SecurityRuleInner> function() { return this.defaultSecurityRules; } | /**
* Get collection of default security rules of the network security group.
*
* @return the defaultSecurityRules value
*/ | Get collection of default security rules of the network security group | defaultSecurityRules | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/network/v2020_04_01/SecurityRuleAssociations.java",
"license": "mit",
"size": 3986
} | [
"com.microsoft.azure.management.network.v2020_04_01.implementation.SecurityRuleInner",
"java.util.List"
] | import com.microsoft.azure.management.network.v2020_04_01.implementation.SecurityRuleInner; import java.util.List; | import com.microsoft.azure.management.network.v2020_04_01.implementation.*; import java.util.*; | [
"com.microsoft.azure",
"java.util"
] | com.microsoft.azure; java.util; | 600,812 |
private boolean downloadUrl(String url) {
Registry reg = EditorAgent.getRegistry();
UserNotifier un = reg.getUserNotifier();
try {
int lastSlash = url.lastIndexOf("/");
if (lastSlash < 0) return false; // can't be valid url
String newFileName = url.substring(lastSlash);
if (new File(newFileNa... | boolean function(String url) { Registry reg = EditorAgent.getRegistry(); UserNotifier un = reg.getUserNotifier(); try { int lastSlash = url.lastIndexOf("/"); if (lastSlash < 0) return false; String newFileName = url.substring(lastSlash); if (new File(newFileName).exists()) { String fileExt = "."+EditorFileFilter.CPE_XM... | /**
* Creates a new file by down-loading from the given URL.
* Passes this to the model, to open a new file.
*
* @param url The URL to down-load and open.
* @return true if the down-load is OK (file found OK etc).
*/ | Creates a new file by down-loading from the given URL. Passes this to the model, to open a new file | downloadUrl | {
"repo_name": "jballanc/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/agents/editor/uiComponents/UrlChooser.java",
"license": "gpl-2.0",
"size": 9468
} | [
"java.io.File",
"java.io.IOException",
"java.net.MalformedURLException",
"org.openmicroscopy.shoola.agents.editor.EditorAgent",
"org.openmicroscopy.shoola.agents.editor.util.FileDownload",
"org.openmicroscopy.shoola.agents.editor.view.Editor",
"org.openmicroscopy.shoola.env.config.Registry",
"org.open... | import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import org.openmicroscopy.shoola.agents.editor.EditorAgent; import org.openmicroscopy.shoola.agents.editor.util.FileDownload; import org.openmicroscopy.shoola.agents.editor.view.Editor; import org.openmicroscopy.shoola.env.config.Re... | import java.io.*; import java.net.*; import org.openmicroscopy.shoola.agents.editor.*; import org.openmicroscopy.shoola.agents.editor.util.*; import org.openmicroscopy.shoola.agents.editor.view.*; import org.openmicroscopy.shoola.env.config.*; import org.openmicroscopy.shoola.env.ui.*; import org.openmicroscopy.shoola.... | [
"java.io",
"java.net",
"org.openmicroscopy.shoola"
] | java.io; java.net; org.openmicroscopy.shoola; | 1,279,639 |
public V1RuntimeClassList listRuntimeClass(
String pretty,
Boolean allowWatchBookmarks,
String _continue,
String fieldSelector,
String labelSelector,
Integer limit,
String resourceVersion,
String resourceVersionMatch,
Integer timeoutSeconds,
Boolean watch)
... | V1RuntimeClassList function( String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, String resourceVersionMatch, Integer timeoutSeconds, Boolean watch) throws ApiException { ApiResponse<V1RuntimeClassList> localVarResp = listRunti... | /**
* list or watch objects of kind RuntimeClass
*
* @param pretty If 'true', then the output is pretty printed. (optional)
* @param allowWatchBookmarks allowWatchBookmarks requests watch events with type
* \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag a... | list or watch objects of kind RuntimeClass | listRuntimeClass | {
"repo_name": "kubernetes-client/java",
"path": "kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java",
"license": "apache-2.0",
"size": 128012
} | [
"io.kubernetes.client.openapi.ApiException",
"io.kubernetes.client.openapi.ApiResponse",
"io.kubernetes.client.openapi.models.V1RuntimeClassList"
] | import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.ApiResponse; import io.kubernetes.client.openapi.models.V1RuntimeClassList; | import io.kubernetes.client.openapi.*; import io.kubernetes.client.openapi.models.*; | [
"io.kubernetes.client"
] | io.kubernetes.client; | 2,165,512 |
public List<Comment> getComments(Integer repositoryId, String revision, Integer page, Integer perPage) {
URLBuilder url = new URLBuilder(host, "/api/" + repositoryId + "/comments.xml")
.addFieldValuePair("revision", revision)
.addFieldValuePair("page", page)
.... | List<Comment> function(Integer repositoryId, String revision, Integer page, Integer perPage) { URLBuilder url = new URLBuilder(host, "/api/" + repositoryId + STR) .addFieldValuePair(STR, revision) .addFieldValuePair("page", page) .addFieldValuePair(STR, perPage); InputStream httpStream = httpConnection.doGet(url.toURL(... | /**
* Find all comments for specific changeset
*
* @param repositoryId
* @param revision
* @return
*/ | Find all comments for specific changeset | getComments | {
"repo_name": "raupachz/raupach-me.com",
"path": "src/main/java/org/beanstalk4j/BeanstalkApi.java",
"license": "apache-2.0",
"size": 38736
} | [
"java.io.InputStream",
"java.util.List",
"org.beanstalk4j.http.URLBuilder",
"org.beanstalk4j.model.Comment"
] | import java.io.InputStream; import java.util.List; import org.beanstalk4j.http.URLBuilder; import org.beanstalk4j.model.Comment; | import java.io.*; import java.util.*; import org.beanstalk4j.http.*; import org.beanstalk4j.model.*; | [
"java.io",
"java.util",
"org.beanstalk4j.http",
"org.beanstalk4j.model"
] | java.io; java.util; org.beanstalk4j.http; org.beanstalk4j.model; | 1,105,852 |
public void setBounds( Bounds bo )
{
_bo = bo;
} | void function( Bounds bo ) { _bo = bo; } | /**
* Sets the bounds associated with this rectangle.
*/ | Sets the bounds associated with this rectangle | setBounds | {
"repo_name": "sguan-actuate/birt",
"path": "chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/event/RectangleRenderEvent.java",
"license": "epl-1.0",
"size": 3569
} | [
"org.eclipse.birt.chart.model.attribute.Bounds"
] | import org.eclipse.birt.chart.model.attribute.Bounds; | import org.eclipse.birt.chart.model.attribute.*; | [
"org.eclipse.birt"
] | org.eclipse.birt; | 2,272,091 |
public static PackageAction schedulePackageUpgrade(User user, Server server,
List<Map<String, Long>> packages, Date earliest, ActionChain actionChain) {
return schedulePackageInstall(user, server, packages, earliest, actionChain);
} | static PackageAction function(User user, Server server, List<Map<String, Long>> packages, Date earliest, ActionChain actionChain) { return schedulePackageInstall(user, server, packages, earliest, actionChain); } | /**
* Schedules a package upgrade for the given server.
* @param user the user scheduling actions
* @param server the server
* @param packages a list of "package maps"
* @param earliest the earliest execution date
* @param actionChain the action chain or null
* @return scheduled actio... | Schedules a package upgrade for the given server | schedulePackageUpgrade | {
"repo_name": "jdobes/spacewalk",
"path": "java/code/src/com/redhat/rhn/manager/action/ActionChainManager.java",
"license": "gpl-2.0",
"size": 23433
} | [
"com.redhat.rhn.domain.action.ActionChain",
"com.redhat.rhn.domain.action.rhnpackage.PackageAction",
"com.redhat.rhn.domain.server.Server",
"com.redhat.rhn.domain.user.User",
"java.util.Date",
"java.util.List",
"java.util.Map"
] | import com.redhat.rhn.domain.action.ActionChain; import com.redhat.rhn.domain.action.rhnpackage.PackageAction; import com.redhat.rhn.domain.server.Server; import com.redhat.rhn.domain.user.User; import java.util.Date; import java.util.List; import java.util.Map; | import com.redhat.rhn.domain.action.*; import com.redhat.rhn.domain.action.rhnpackage.*; import com.redhat.rhn.domain.server.*; import com.redhat.rhn.domain.user.*; import java.util.*; | [
"com.redhat.rhn",
"java.util"
] | com.redhat.rhn; java.util; | 149,542 |
private boolean matchDropAction(JsonNode node, Description description) {
DropMappingAction actionToMatch = (DropMappingAction) action;
final String jsonType = node.get(MappingActionCodec.TYPE).textValue();
if (!actionToMatch.type().name().equals(jsonType)) {
description.appendTe... | boolean function(JsonNode node, Description description) { DropMappingAction actionToMatch = (DropMappingAction) action; final String jsonType = node.get(MappingActionCodec.TYPE).textValue(); if (!actionToMatch.type().name().equals(jsonType)) { description.appendText(STR + jsonType); return false; } return true; } | /**
* Matches the contents of a drop mapping action.
*
* @param node JSON action to match
* @param description object used for recording errors
* @return true if the contents match, false otherwise
*/ | Matches the contents of a drop mapping action | matchDropAction | {
"repo_name": "gkatsikas/onos",
"path": "apps/mappingmanagement/api/src/test/java/org/onosproject/mapping/codec/MappingActionJsonMatcher.java",
"license": "apache-2.0",
"size": 5488
} | [
"com.fasterxml.jackson.databind.JsonNode",
"org.hamcrest.Description",
"org.onosproject.mapping.actions.DropMappingAction"
] | import com.fasterxml.jackson.databind.JsonNode; import org.hamcrest.Description; import org.onosproject.mapping.actions.DropMappingAction; | import com.fasterxml.jackson.databind.*; import org.hamcrest.*; import org.onosproject.mapping.actions.*; | [
"com.fasterxml.jackson",
"org.hamcrest",
"org.onosproject.mapping"
] | com.fasterxml.jackson; org.hamcrest; org.onosproject.mapping; | 2,281,805 |
public void errorOp(final Marker marker, final String message) {
logger.logIfEnabled(FQCN, ERROR, marker, message, (Throwable) null);
}
/**
* Logs a message with parameters at the {@code ERROR} level.
*
* @param marker the marker data specific to this log statement
* @param mes... | void function(final Marker marker, final String message) { logger.logIfEnabled(FQCN, ERROR, marker, message, (Throwable) null); } /** * Logs a message with parameters at the {@code ERROR} level. * * @param marker the marker data specific to this log statement * @param message the message to log; the format depends on t... | /**
* Logs a message object with the {@code ERROR} level.
*
* @param marker the marker data specific to this log statement
* @param message the message object to log.
*/ | Logs a message object with the ERROR level | errorOp | {
"repo_name": "ppatierno/kaas",
"path": "operator-common/src/main/java/io/strimzi/operator/common/ReconciliationLogger.java",
"license": "apache-2.0",
"size": 352724
} | [
"org.apache.logging.log4j.Marker"
] | import org.apache.logging.log4j.Marker; | import org.apache.logging.log4j.*; | [
"org.apache.logging"
] | org.apache.logging; | 399,408 |
private void initActions() {
this.actionAddNewCategory = new FHAESAction("Add new category", "edit_add.png") {
private static final long serialVersionUID = 1L;
| void function() { this.actionAddNewCategory = new FHAESAction(STR, STR) { private static final long serialVersionUID = 1L; | /**
* Initialize the menu and toolbar actions.
*/ | Initialize the menu and toolbar actions | initActions | {
"repo_name": "petebrew/fhaes",
"path": "fhaes/src/main/java/org/fhaes/gui/CategoryEntryPanel.java",
"license": "gpl-3.0",
"size": 16167
} | [
"org.fhaes.util.FHAESAction"
] | import org.fhaes.util.FHAESAction; | import org.fhaes.util.*; | [
"org.fhaes.util"
] | org.fhaes.util; | 2,463,990 |
@Nullable
Query queryStringTermQuery(Term term); | Query queryStringTermQuery(Term term); | /**
* A term query to use when parsing a query string. Can return <tt>null</tt>.
*/ | A term query to use when parsing a query string. Can return null | queryStringTermQuery | {
"repo_name": "vrkansagara/elasticsearch",
"path": "src/main/java/org/elasticsearch/index/mapper/FieldMapper.java",
"license": "apache-2.0",
"size": 9913
} | [
"org.apache.lucene.index.Term",
"org.apache.lucene.search.Query"
] | import org.apache.lucene.index.Term; import org.apache.lucene.search.Query; | import org.apache.lucene.index.*; import org.apache.lucene.search.*; | [
"org.apache.lucene"
] | org.apache.lucene; | 1,641,321 |
public List getEntries() {
return entries;
}
| List function() { return entries; } | /**
* Gets the list of entries
*
* @return the list of entries
*/ | Gets the list of entries | getEntries | {
"repo_name": "shvets/cafebabe",
"path": "cafebabe/src/main/java/org/sf/cafebabe/task/classhound/ClassHound.java",
"license": "mit",
"size": 12498
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,089,926 |
public void setDestinationDir(File destinationDir) {
this.destinationDir.set(destinationDir);
} | void function(File destinationDir) { this.destinationDir.set(destinationDir); } | /**
* Sets the directory to generate the {@code .class} files into.
*
* @param destinationDir The destination directory. Must not be null.
*/ | Sets the directory to generate the .class files into | setDestinationDir | {
"repo_name": "gstevey/gradle",
"path": "subprojects/language-jvm/src/main/java/org/gradle/api/tasks/compile/AbstractCompile.java",
"license": "apache-2.0",
"size": 3800
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 2,839,509 |
private void generateCSVForBatch(TableWriter csvWriter, Batch batch) throws IOException {
// A row with the right length.
Object[] row = new Object[EVENTS.size() * COLUMNS_PER_EVENT + ROW_HEADER_COLUMNS];
// Row headers
updateCell(row, 0, "=\"" + batch.getBatchID() + "\"");
... | void function(TableWriter csvWriter, Batch batch) throws IOException { Object[] row = new Object[EVENTS.size() * COLUMNS_PER_EVENT + ROW_HEADER_COLUMNS]; updateCell(row, 0, "=\"STR\""); updateCell(row, 1, batch.getRoundTripNumber()); updateCell(row, 2, batch.getAvisID()); updateCell(row, 3, batch.getStartDate()); updat... | /**
* Run through all events for a batch, and generate a row containing information about events for that batch.
*
* @param csvWriter The csvWriter to generate the row on.
* @param batch The batch to generate a row for.
* @throws IOException If the row cannot be generated.
*/ | Run through all events for a batch, and generate a row containing information about events for that batch | generateCSVForBatch | {
"repo_name": "statsbiblioteket/newspaper-digitisation-process-monitor",
"path": "process-monitor-backend-service/src/main/java/dk/statsbiblioteket/newspaper/processmonitor/backend/CSVGenerator.java",
"license": "apache-2.0",
"size": 9968
} | [
"java.io.IOException",
"java.util.Map"
] | import java.io.IOException; import java.util.Map; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 1,685,095 |
@BufferGet
@Override
public Collection<T> getData(){
while(data.size() > size) data.remove(0);
return data;
} | Collection<T> function(){ while(data.size() > size) data.remove(0); return data; } | /**
* Returns the data in this window.
*/ | Returns the data in this window | getData | {
"repo_name": "SmaSTra/SmaSTra",
"path": "AndroidCodeSnippets/SmaSTraDefaultsGenerator/src/main/java/de/tu_darmstadt/smastra/buffers/FixedWindowSizeBuffer.java",
"license": "apache-2.0",
"size": 2201
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 262,144 |
public static INDArray center(INDArray arr, int[] shape) {
if (arr.length() < ArrayUtil.prod(shape))
return arr;
for (int i = 0; i < shape.length; i++)
if (shape[i] < 1)
shape[i] = 1;
INDArray shapeMatrix = ArrayUtil.toNDArray(shape);
INDArray... | static INDArray function(INDArray arr, int[] shape) { if (arr.length() < ArrayUtil.prod(shape)) return arr; for (int i = 0; i < shape.length; i++) if (shape[i] < 1) shape[i] = 1; INDArray shapeMatrix = ArrayUtil.toNDArray(shape); INDArray currShape = ArrayUtil.toNDArray(arr.shape()); INDArray startIndex = Transforms.fl... | /**
* Center an array
*
* @param arr the arr to center
* @param shape the shape of the array
* @return the center portion of the array based on the
* specified shape
*/ | Center an array | center | {
"repo_name": "GeorgeMe/nd4j",
"path": "nd4j-api/src/main/java/org/nd4j/linalg/util/NDArrayUtil.java",
"license": "apache-2.0",
"size": 3107
} | [
"org.nd4j.linalg.api.ndarray.INDArray",
"org.nd4j.linalg.factory.Nd4j",
"org.nd4j.linalg.indexing.INDArrayIndex",
"org.nd4j.linalg.indexing.Indices",
"org.nd4j.linalg.ops.transforms.Transforms"
] | import org.nd4j.linalg.api.ndarray.INDArray; import org.nd4j.linalg.factory.Nd4j; import org.nd4j.linalg.indexing.INDArrayIndex; import org.nd4j.linalg.indexing.Indices; import org.nd4j.linalg.ops.transforms.Transforms; | import org.nd4j.linalg.api.ndarray.*; import org.nd4j.linalg.factory.*; import org.nd4j.linalg.indexing.*; import org.nd4j.linalg.ops.transforms.*; | [
"org.nd4j.linalg"
] | org.nd4j.linalg; | 1,851,501 |
StoragePluginConfig copyConfig(StoragePluginConfig config); | StoragePluginConfig copyConfig(StoragePluginConfig config); | /**
* Copy the given storage plugin config so it may be modified.
*
* @param config the storage plugin config to copy
* @return the copy
*/ | Copy the given storage plugin config so it may be modified | copyConfig | {
"repo_name": "apache/drill",
"path": "exec/java-exec/src/main/java/org/apache/drill/exec/store/StoragePluginRegistry.java",
"license": "apache-2.0",
"size": 11374
} | [
"org.apache.drill.common.logical.StoragePluginConfig"
] | import org.apache.drill.common.logical.StoragePluginConfig; | import org.apache.drill.common.logical.*; | [
"org.apache.drill"
] | org.apache.drill; | 653,498 |
public static Test suite() {
TestSuite suite = new TestSuite("org.jfree.chart.title");
suite.addTestSuite(CompositeTitleTests.class);
suite.addTestSuite(DateTitleTests.class);
suite.addTestSuite(ImageTitleTests.class);
suite.addTestSuite(LegendGraphicTests.class);
sui... | static Test function() { TestSuite suite = new TestSuite(STR); suite.addTestSuite(CompositeTitleTests.class); suite.addTestSuite(DateTitleTests.class); suite.addTestSuite(ImageTitleTests.class); suite.addTestSuite(LegendGraphicTests.class); suite.addTestSuite(LegendTitleTests.class); suite.addTestSuite(TextTitleTests.c... | /**
* Returns a test suite to the JUnit test runner.
*
* @return The test suite.
*/ | Returns a test suite to the JUnit test runner | suite | {
"repo_name": "raedle/univis",
"path": "lib/jfreechart-1.0.1/src/org/jfree/chart/title/junit/TitlePackageTests.java",
"license": "lgpl-2.1",
"size": 3011
} | [
"junit.framework.Test",
"junit.framework.TestSuite"
] | import junit.framework.Test; import junit.framework.TestSuite; | import junit.framework.*; | [
"junit.framework"
] | junit.framework; | 738,379 |
//------//
// main //
//------//
public static void main (String... args)
{
standAlone = true;
// Set UI Look and Feel
UILookAndFeel.setUI(null);
Locale.setDefault(Locale.ENGLISH);
// Off we go...
Application.launch(Trainer.class, args);... | static void function (String... args) { standAlone = true; UILookAndFeel.setUI(null); Locale.setDefault(Locale.ENGLISH); Application.launch(Trainer.class, args); } public static class Task extends Observable { static enum Activity { INACTIVE, TRAINING, VALIDATION; } public final Classifier classifier; private Activity ... | /**
* Just to allow stand-alone running of this class
*
* @param args not used
*/ | Just to allow stand-alone running of this class | main | {
"repo_name": "Audiveris/audiveris",
"path": "src/main/org/audiveris/omr/classifier/ui/Trainer.java",
"license": "agpl-3.0",
"size": 12294
} | [
"java.util.Locale",
"java.util.Observable",
"org.audiveris.omr.classifier.Classifier",
"org.audiveris.omr.ui.util.UILookAndFeel",
"org.jdesktop.application.Application"
] | import java.util.Locale; import java.util.Observable; import org.audiveris.omr.classifier.Classifier; import org.audiveris.omr.ui.util.UILookAndFeel; import org.jdesktop.application.Application; | import java.util.*; import org.audiveris.omr.classifier.*; import org.audiveris.omr.ui.util.*; import org.jdesktop.application.*; | [
"java.util",
"org.audiveris.omr",
"org.jdesktop.application"
] | java.util; org.audiveris.omr; org.jdesktop.application; | 2,650,872 |
default <T1,R1,X1 extends Function<T1,R1>> Case<T1,R1,X1> map(Function<Two<Predicate<T>,X>,Two<Predicate<T1>,X1>> mapper){
return Case.of(mapper.apply(get()));
} | default <T1,R1,X1 extends Function<T1,R1>> Case<T1,R1,X1> map(Function<Two<Predicate<T>,X>,Two<Predicate<T1>,X1>> mapper){ return Case.of(mapper.apply(get())); } | /**
* Allows both the predicate and function in the current case to be replaced in a new Case
* <pre>
* case1 =Case.of(input->false,input->input+10);
* Tuple2<Predicate<Integer>,Function<Integer,Integer>> tuple = Tuple.tuple( t->true,(Integer input)->input+20);
assertThat(case1.... | Allows both the predicate and function in the current case to be replaced in a new Case <code> case1 =Case.of(input->false,input->input+10); Tuple2<Predicate<Integer>,Function<Integer,Integer>> tuple = Tuple.tuple( t->true,(Integer input)->input+20); </code> | map | {
"repo_name": "sjfloat/cyclops",
"path": "cyclops-pattern-matching/src/main/java/com/aol/cyclops/matcher/Case.java",
"license": "mit",
"size": 17901
} | [
"java.util.function.Function",
"java.util.function.Predicate"
] | import java.util.function.Function; import java.util.function.Predicate; | import java.util.function.*; | [
"java.util"
] | java.util; | 1,367,319 |
@Override
public ResourceLocator getResourceLocator() {
return LQNEditPlugin.INSTANCE;
} | ResourceLocator function() { return LQNEditPlugin.INSTANCE; } | /**
* Return the resource locator for this item provider's resources.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | Return the resource locator for this item provider's resources. | getResourceLocator | {
"repo_name": "aciancone/klapersuite",
"path": "klapersuite.metamodel.lqn.edit/src/lqn/provider/PhaseActivitiesItemProvider.java",
"license": "epl-1.0",
"size": 4821
} | [
"org.eclipse.emf.common.util.ResourceLocator"
] | import org.eclipse.emf.common.util.ResourceLocator; | import org.eclipse.emf.common.util.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 451,467 |
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == SPEECH_REQUEST_CODE && resultCode == RESULT_OK) {
List<String> results = data.getStringArrayListExtra(
RecognizerIntent.EXTRA_RESULTS);
String spokenTe... | void function(int requestCode, int resultCode, Intent data) { if (requestCode == SPEECH_REQUEST_CODE && resultCode == RESULT_OK) { List<String> results = data.getStringArrayListExtra( RecognizerIntent.EXTRA_RESULTS); String spokenText = results.get(0); makeAPIRequest(spokenText); } super.onActivityResult(requestCode, r... | /**
* Receiving speech input
* */ | Receiving speech input | onActivityResult | {
"repo_name": "dany4madden/ShoppingList",
"path": "app/src/main/java/com/psu/shoppinglist/ManageListActivity.java",
"license": "mit",
"size": 30723
} | [
"android.content.Intent",
"android.speech.RecognizerIntent",
"java.util.List"
] | import android.content.Intent; import android.speech.RecognizerIntent; import java.util.List; | import android.content.*; import android.speech.*; import java.util.*; | [
"android.content",
"android.speech",
"java.util"
] | android.content; android.speech; java.util; | 2,261,130 |
public static <E extends Serializable> List<E> asList(final ListResult<E> result) {
return result == null ? null : (List<E>) result.getList();
}
| static <E extends Serializable> List<E> function(final ListResult<E> result) { return result == null ? null : (List<E>) result.getList(); } | /**
* Returns the given {@code result} inner list data.
*
* @param result
* The {@code ListResult} instance (can be {@code null}).
* @return the given {@code result} inner list data, or {@code null} if {@code result} is {@code null}.
*/ | Returns the given result inner list data | asList | {
"repo_name": "Raphcal/sigmah",
"path": "src/main/java/org/sigmah/shared/command/result/ListResult.java",
"license": "gpl-3.0",
"size": 4254
} | [
"java.io.Serializable",
"java.util.List"
] | import java.io.Serializable; import java.util.List; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 1,335,696 |
public static GeoPackageDataType fromName(String name) {
return valueOf(name.toUpperCase(Locale.US));
} | static GeoPackageDataType function(String name) { return valueOf(name.toUpperCase(Locale.US)); } | /**
* Get the Data Type from the name, ignoring case
*
* @param name
* @return
*/ | Get the Data Type from the name, ignoring case | fromName | {
"repo_name": "boundlessgeo/geopackage-core-java",
"path": "src/main/java/mil/nga/geopackage/db/GeoPackageDataType.java",
"license": "mit",
"size": 3443
} | [
"java.util.Locale"
] | import java.util.Locale; | import java.util.*; | [
"java.util"
] | java.util; | 2,733,329 |
@Test
public void testFlow1_10() throws Exception
{
setupRequest("/flow_base.xhtml");
processLifecycleExecute();
ConfigurableNavigationHandler handler = (ConfigurableNavigationHandler) facesContext.getApplication().getNavigationHandler();
processRender();
... | void function() throws Exception { setupRequest(STR); processLifecycleExecute(); ConfigurableNavigationHandler handler = (ConfigurableNavigationHandler) facesContext.getApplication().getNavigationHandler(); processRender(); UICommand button = (UICommand) facesContext.getViewRoot().findComponent(STR); submit(button); pr... | /**
* This tests do the following:
*
* - Start flow 3 (start flow 1)
* - Start flow 2
* - End flow 2
* - Return flow 1 and 3
*
* @throws Exception
*/ | This tests do the following: - Start flow 3 (start flow 1) - Start flow 2 - End flow 2 - Return flow 1 and 3 | testFlow1_10 | {
"repo_name": "kulinski/myfaces",
"path": "impl/src/test/java/org/apache/myfaces/application/flow/FlowMyFacesRequestTestCase.java",
"license": "apache-2.0",
"size": 55578
} | [
"javax.faces.application.ConfigurableNavigationHandler",
"javax.faces.application.NavigationCase",
"javax.faces.component.UICommand",
"javax.faces.flow.Flow",
"org.testng.Assert"
] | import javax.faces.application.ConfigurableNavigationHandler; import javax.faces.application.NavigationCase; import javax.faces.component.UICommand; import javax.faces.flow.Flow; import org.testng.Assert; | import javax.faces.application.*; import javax.faces.component.*; import javax.faces.flow.*; import org.testng.*; | [
"javax.faces",
"org.testng"
] | javax.faces; org.testng; | 574,879 |
public SubAward getAmountInfo(SubAward subAward); | SubAward function(SubAward subAward); | /**
* This method will add AmountInfo details to subaward.
* @param subAward
* @return
*/ | This method will add AmountInfo details to subaward | getAmountInfo | {
"repo_name": "geothomasp/kcmit",
"path": "coeus-impl/src/main/java/org/kuali/kra/subaward/service/SubAwardService.java",
"license": "agpl-3.0",
"size": 3218
} | [
"org.kuali.kra.subaward.bo.SubAward"
] | import org.kuali.kra.subaward.bo.SubAward; | import org.kuali.kra.subaward.bo.*; | [
"org.kuali.kra"
] | org.kuali.kra; | 1,041,393 |
@Deprecated
private void addSpatialFilteringProfilePathToDirList(final StringBuilder builder, Map<String, Object> settings,
final String spatialFilteringProfilePath) {
if (isSpatialFilteringProfileDatasource()) {
Boolean spatialFilteringProfile = (Boolean) settings.get(spatialFil... | void function(final StringBuilder builder, Map<String, Object> settings, final String spatialFilteringProfilePath) { if (isSpatialFilteringProfileDatasource()) { Boolean spatialFilteringProfile = (Boolean) settings.get(spatialFilteringProfileDefinition.getKey()); if (spatialFilteringProfile != null && spatialFilteringP... | /**
* Add Spatial Filtering Profile mapping files path to directory String if
* this is a Spatial Filtering Profile datasource and Spatial Filtering
* Profile is activated in the settings
*
* @param builder
* Mapping files directories String
* @param settings
* ... | Add Spatial Filtering Profile mapping files path to directory String if this is a Spatial Filtering Profile datasource and Spatial Filtering Profile is activated in the settings | addSpatialFilteringProfilePathToDirList | {
"repo_name": "shane-axiom/SOS",
"path": "hibernate/datasource/common/src/main/java/org/n52/sos/ds/datasource/AbstractHibernateDatasource.java",
"license": "gpl-2.0",
"size": 43145
} | [
"java.util.Map",
"org.n52.sos.ds.hibernate.SessionFactoryProvider"
] | import java.util.Map; import org.n52.sos.ds.hibernate.SessionFactoryProvider; | import java.util.*; import org.n52.sos.ds.hibernate.*; | [
"java.util",
"org.n52.sos"
] | java.util; org.n52.sos; | 2,150,610 |
@Override
public short[] toProtoValue(Object value) throws ValueConversionException {
throw new UnsupportedOperationException("Not supported yet.");
} | short[] function(Object value) throws ValueConversionException { throw new UnsupportedOperationException(STR); } | /**
* Currently not supported. Throws {@code UnsupportedOperationException }.
* @throws UnsupportedOperationException
*/ | Currently not supported. Throws UnsupportedOperationException | toProtoValue | {
"repo_name": "MICRORISC/iqrfsdk",
"path": "libs/simply/simply-iqrf-dpa-v21x/src/main/java/com/microrisc/simply/iqrf/dpa/v21x/typeconvertors/FRC_DataConvertor.java",
"license": "apache-2.0",
"size": 2675
} | [
"com.microrisc.simply.typeconvertors.ValueConversionException"
] | import com.microrisc.simply.typeconvertors.ValueConversionException; | import com.microrisc.simply.typeconvertors.*; | [
"com.microrisc.simply"
] | com.microrisc.simply; | 2,627,922 |
public void setStatementDate (Timestamp StatementDate)
{
set_Value (COLUMNNAME_StatementDate, StatementDate);
} | void function (Timestamp StatementDate) { set_Value (COLUMNNAME_StatementDate, StatementDate); } | /** Set Statement date.
@param StatementDate
Date of the statement
*/ | Set Statement date | setStatementDate | {
"repo_name": "arthurmelo88/palmetalADP",
"path": "adempiere_360/base/src/org/compiere/model/X_C_BankStatement.java",
"license": "gpl-2.0",
"size": 14636
} | [
"java.sql.Timestamp"
] | import java.sql.Timestamp; | import java.sql.*; | [
"java.sql"
] | java.sql; | 2,181,462 |
T visitUna(@NotNull jazzikParser.UnaContext ctx); | T visitUna(@NotNull jazzikParser.UnaContext ctx); | /**
* Visit a parse tree produced by {@link jazzikParser#Una}.
* @param ctx the parse tree
* @return the visitor result
*/ | Visit a parse tree produced by <code>jazzikParser#Una</code> | visitUna | {
"repo_name": "petersch/jazzik",
"path": "src/parser/jazzikVisitor.java",
"license": "gpl-3.0",
"size": 10234
} | [
"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; | 1,726,710 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.