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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
protected boolean scopeLimitedExists(Path path, boolean followSymlinks) {
try {
// Path#asFragment() always returns an absolute path, so inScope() is called with
// parentDepth = 0.
return inScope(0, path.asFragment()) && !scopeLimitedStat(path, followSymlinks).outOfScope();
} catch (IOExcep... | boolean function(Path path, boolean followSymlinks) { try { return inScope(0, path.asFragment()) && !scopeLimitedStat(path, followSymlinks).outOfScope(); } catch (IOException e) { return false; } } | /**
* Like {@link #exists}, but checks for existence within this filesystem's scope.
*/ | Like <code>#exists</code>, but checks for existence within this filesystem's scope | scopeLimitedExists | {
"repo_name": "whuwxl/bazel",
"path": "src/main/java/com/google/devtools/build/lib/vfs/inmemoryfs/InMemoryFileSystem.java",
"license": "apache-2.0",
"size": 33544
} | [
"com.google.devtools.build.lib.vfs.Path",
"java.io.IOException"
] | import com.google.devtools.build.lib.vfs.Path; import java.io.IOException; | import com.google.devtools.build.lib.vfs.*; import java.io.*; | [
"com.google.devtools",
"java.io"
] | com.google.devtools; java.io; | 1,646,843 |
void remoteAdd(DevMachine devMachine,
ProjectConfigDto project,
String name,
String url,
AsyncRequestCallback<String> callback); | void remoteAdd(DevMachine devMachine, ProjectConfigDto project, String name, String url, AsyncRequestCallback<String> callback); | /**
* Adds remote repository to the list of remote repositories.
*
* @param devMachine
* of current workspace
* @param project
* project (root of GIT repository)
* @param name
* remote repository's name
* @param url
* remote repository's... | Adds remote repository to the list of remote repositories | remoteAdd | {
"repo_name": "stour/che",
"path": "core/ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/git/GitServiceClient.java",
"license": "epl-1.0",
"size": 23743
} | [
"org.eclipse.che.api.workspace.shared.dto.ProjectConfigDto",
"org.eclipse.che.ide.api.machine.DevMachine",
"org.eclipse.che.ide.rest.AsyncRequestCallback"
] | import org.eclipse.che.api.workspace.shared.dto.ProjectConfigDto; import org.eclipse.che.ide.api.machine.DevMachine; import org.eclipse.che.ide.rest.AsyncRequestCallback; | import org.eclipse.che.api.workspace.shared.dto.*; import org.eclipse.che.ide.api.machine.*; import org.eclipse.che.ide.rest.*; | [
"org.eclipse.che"
] | org.eclipse.che; | 1,598,228 |
public Set<String> getInterfaceNames() {
Set<String> result = new HashSet<String>();
try {
// For each interface ...
for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) {
NetworkInterface networkInterface = ... | Set<String> function() { Set<String> result = new HashSet<String>(); try { for (Enumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces(); en.hasMoreElements();) { NetworkInterface networkInterface = en.nextElement(); if (!networkInterface.isLoopback()) { result.add(networkInterface.getName()); } } } c... | /**
* Get a set of all interface names.
*
* @return Set of interface names
*/ | Get a set of all interface names | getInterfaceNames | {
"repo_name": "msvinth/openhab2-addons",
"path": "addons/binding/org.openhab.binding.network/src/main/java/org/openhab/binding/network/internal/utils/NetworkUtils.java",
"license": "epl-1.0",
"size": 11497
} | [
"java.net.NetworkInterface",
"java.net.SocketException",
"java.util.Enumeration",
"java.util.HashSet",
"java.util.Set"
] | import java.net.NetworkInterface; import java.net.SocketException; import java.util.Enumeration; import java.util.HashSet; import java.util.Set; | import java.net.*; import java.util.*; | [
"java.net",
"java.util"
] | java.net; java.util; | 2,681,457 |
public void writeGenotype(int type) throws IOException {
buffer = (byte) (buffer >>> 2);
switch (type) {
case 0:
break;
case 1:
buffer = (byte) (buffer | 0x40);
break;
case 2:
buffer... | void function(int type) throws IOException { buffer = (byte) (buffer >>> 2); switch (type) { case 0: break; case 1: buffer = (byte) (buffer 0x40); break; case 2: buffer = (byte) (buffer 0x80); break; case 3: buffer = (byte) (buffer 0xc0); break; } placesLeftInBuffer--; if (placesLeftInBuffer == 0) { clearBuffer(); plac... | /**
* Writes single genotype to file
*
* 00 Homozygote "1"/"1" -> internal notation: 0
* 01 Heterozygote -> internal notation: 2
* 11 Homozygote "2"/"2" -> internal notation: 3
* 10 Missing genotype -> internal notation: 1
*/ | Writes single genotype to file 00 Homozygote "1"/"1" -> internal notation: 0 01 Heterozygote -> internal notation: 2 11 Homozygote "2"/"2" -> internal notation: 3 10 Missing genotype -> internal notation: 1 | writeGenotype | {
"repo_name": "jamesmorris/evoker",
"path": "src/evoker/BEDFileWriter.java",
"license": "mit",
"size": 2905
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 960,905 |
public static BasicAction popAction (String threadId, boolean unregister)
throws NoSuchElementException
{
Deque<BasicAction> txs = _threadList.get();
if (txs != null)
{
BasicAction a = txs.pop();
if (a != null && unregister)
{
a.removeChildThread(threadId);
}
if (txs.size() == 0)
{... | static BasicAction function (String threadId, boolean unregister) throws NoSuchElementException { Deque<BasicAction> txs = _threadList.get(); if (txs != null) { BasicAction a = txs.pop(); if (a != null && unregister) { a.removeChildThread(threadId); } if (txs.size() == 0) { _threadList.set(null); } return a; } return n... | /**
* By setting the unregister flag accordingly, information about the thread
* is not removed from the action.
*/ | By setting the unregister flag accordingly, information about the thread is not removed from the action | popAction | {
"repo_name": "nmcl/scratch",
"path": "graalvm/transactions/fork/narayana/ArjunaCore/arjuna/classes/com/arjuna/ats/internal/arjuna/thread/ThreadActionData.java",
"license": "apache-2.0",
"size": 6547
} | [
"com.arjuna.ats.arjuna.coordinator.BasicAction",
"java.util.Deque",
"java.util.NoSuchElementException"
] | import com.arjuna.ats.arjuna.coordinator.BasicAction; import java.util.Deque; import java.util.NoSuchElementException; | import com.arjuna.ats.arjuna.coordinator.*; import java.util.*; | [
"com.arjuna.ats",
"java.util"
] | com.arjuna.ats; java.util; | 1,651,361 |
CharArrayBuffer formatElements(CharArrayBuffer buffer,
HeaderElement[] elems,
boolean quote); | CharArrayBuffer formatElements(CharArrayBuffer buffer, HeaderElement[] elems, boolean quote); | /**
* Formats an array of header elements.
*
* @param buffer the buffer to append to, or
* {@code null} to create a new buffer
* @param elems the header elements to format
* @param quote {@code true} to always format with quoted values,
* {... | Formats an array of header elements | formatElements | {
"repo_name": "cictourgune/MDP-Airbnb",
"path": "httpcomponents-core-4.4/httpcore/src/main/java/org/apache/http/message/HeaderValueFormatter.java",
"license": "apache-2.0",
"size": 5109
} | [
"org.apache.http.HeaderElement",
"org.apache.http.util.CharArrayBuffer"
] | import org.apache.http.HeaderElement; import org.apache.http.util.CharArrayBuffer; | import org.apache.http.*; import org.apache.http.util.*; | [
"org.apache.http"
] | org.apache.http; | 1,992,617 |
Response<Void> deleteWithResponse(
String resourceGroupName, String serviceName, String contentTypeId, String ifMatch, Context context); | Response<Void> deleteWithResponse( String resourceGroupName, String serviceName, String contentTypeId, String ifMatch, Context context); | /**
* Removes the specified developer portal's content type. Content types describe content items' properties,
* validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't
* be removed.
*
* @param resourceGroupName The name of the resource g... | Removes the specified developer portal's content type. Content types describe content items' properties, validation rules, and constraints. Built-in content types (with identifiers starting with the `c-` prefix) can't be removed | deleteWithResponse | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/apimanagement/azure-resourcemanager-apimanagement/src/main/java/com/azure/resourcemanager/apimanagement/models/ContentTypes.java",
"license": "mit",
"size": 8109
} | [
"com.azure.core.http.rest.Response",
"com.azure.core.util.Context"
] | import com.azure.core.http.rest.Response; import com.azure.core.util.Context; | import com.azure.core.http.rest.*; import com.azure.core.util.*; | [
"com.azure.core"
] | com.azure.core; | 2,200,523 |
public void startColumn(ColumnDescriptor descriptor,
long valueCount,
CompressionCodecName compressionCodecName) throws IOException {
state = state.startColumn();
encodingStatsBuilder.clear();
currentEncodings = new HashSet<Encoding>();
currentChunkP... | void function(ColumnDescriptor descriptor, long valueCount, CompressionCodecName compressionCodecName) throws IOException { state = state.startColumn(); encodingStatsBuilder.clear(); currentEncodings = new HashSet<Encoding>(); currentChunkPath = ColumnPath.get(descriptor.getPath()); currentChunkType = descriptor.getTyp... | /**
* start a column inside a block
* @param descriptor the column descriptor
* @param valueCount the value count in this column
* @param compressionCodecName
* @throws IOException
*/ | start a column inside a block | startColumn | {
"repo_name": "rdblue/parquet-mr",
"path": "parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileWriter.java",
"license": "apache-2.0",
"size": 34129
} | [
"java.io.IOException",
"java.util.HashSet",
"org.apache.parquet.column.ColumnDescriptor",
"org.apache.parquet.column.Encoding",
"org.apache.parquet.column.statistics.Statistics",
"org.apache.parquet.hadoop.metadata.ColumnPath",
"org.apache.parquet.hadoop.metadata.CompressionCodecName"
] | import java.io.IOException; import java.util.HashSet; import org.apache.parquet.column.ColumnDescriptor; import org.apache.parquet.column.Encoding; import org.apache.parquet.column.statistics.Statistics; import org.apache.parquet.hadoop.metadata.ColumnPath; import org.apache.parquet.hadoop.metadata.CompressionCodecName... | import java.io.*; import java.util.*; import org.apache.parquet.column.*; import org.apache.parquet.column.statistics.*; import org.apache.parquet.hadoop.metadata.*; | [
"java.io",
"java.util",
"org.apache.parquet"
] | java.io; java.util; org.apache.parquet; | 2,859,350 |
public boolean isManaged() {
PrefServiceBridge prefs = PrefServiceBridge.getInstance();
if (showCameraSites()) return !prefs.isCameraUserModifiable();
if (showCookiesSites()) return prefs.isAcceptCookiesManaged();
if (showFullscreenSites()) return prefs.isFullscreenManaged();
... | boolean function() { PrefServiceBridge prefs = PrefServiceBridge.getInstance(); if (showCameraSites()) return !prefs.isCameraUserModifiable(); if (showCookiesSites()) return prefs.isAcceptCookiesManaged(); if (showFullscreenSites()) return prefs.isFullscreenManaged(); if (showGeolocationSites()) { return !prefs.isAllow... | /**
* Returns whether the current category is managed either by enterprise policy or by the
* custodian of a supervised account.
*/ | Returns whether the current category is managed either by enterprise policy or by the custodian of a supervised account | isManaged | {
"repo_name": "js0701/chromium-crosswalk",
"path": "chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SiteSettingsCategory.java",
"license": "bsd-3-clause",
"size": 18386
} | [
"org.chromium.chrome.browser.preferences.PrefServiceBridge"
] | import org.chromium.chrome.browser.preferences.PrefServiceBridge; | import org.chromium.chrome.browser.preferences.*; | [
"org.chromium.chrome"
] | org.chromium.chrome; | 2,639,902 |
public Object getProperty(String property)
throws SAXNotRecognizedException, SAXNotSupportedException {
return (getParser().getProperty(property));
} | Object function(String property) throws SAXNotRecognizedException, SAXNotSupportedException { return (getParser().getProperty(property)); } | /**
* Return the current value of the specified property for the underlying
* <code>XMLReader</code> implementation.
* See <a href="http://www.saxproject.org">the saxproject website</a>
* for information about the standard SAX2 properties.
*
* @param property Property name to be retrieved
... | Return the current value of the specified property for the underlying <code>XMLReader</code> implementation. See the saxproject website for information about the standard SAX2 properties | getProperty | {
"repo_name": "lamsfoundation/lams",
"path": "3rdParty_sources/commons-digester/org/apache/commons/digester/Digester.java",
"license": "gpl-2.0",
"size": 106013
} | [
"org.xml.sax.SAXNotRecognizedException",
"org.xml.sax.SAXNotSupportedException"
] | import org.xml.sax.SAXNotRecognizedException; import org.xml.sax.SAXNotSupportedException; | import org.xml.sax.*; | [
"org.xml.sax"
] | org.xml.sax; | 940,157 |
OverviewLayoutElementVO vo = new OverviewLayoutElementVO();
vo.setId(dto.getId());
vo.setType(OverviewLayoutElementType.valueOf(dto.getType()));
if (dto.getType().equals("Sensor")) {
vo.setSensor(SensorConverter.toVO(dto.getSensor()));
} else if (dto.getType().equals("Actor")) {
vo.setActor(ActorC... | OverviewLayoutElementVO vo = new OverviewLayoutElementVO(); vo.setId(dto.getId()); vo.setType(OverviewLayoutElementType.valueOf(dto.getType())); if (dto.getType().equals(STR)) { vo.setSensor(SensorConverter.toVO(dto.getSensor())); } else if (dto.getType().equals("Actor")) { vo.setActor(ActorConverter.toVO(dto.getActor(... | /**
* Converts a {@code OverviewLayoutElementDTO} to VO.
* @param dto the DTO to convert
* @return {@code OverviewLayoutElementVO} equivalent to the DTO
* @throws ActorConvertException if the {@code Actor}, that belongs to this element, has invalid type
* @throws SensorConvertException if the {@code Sensor},... | Converts a OverviewLayoutElementDTO to VO | toVO | {
"repo_name": "daergoth/hiots",
"path": "service/src/main/java/net/daergoth/service/monitor/OverviewLayoutElementConverter.java",
"license": "mit",
"size": 3708
} | [
"net.daergoth.service.actor.ActorConverter",
"net.daergoth.service.sensor.SensorConverter",
"net.daergoth.serviceapi.monitor.OverviewLayoutElementType",
"net.daergoth.serviceapi.monitor.OverviewLayoutElementVO"
] | import net.daergoth.service.actor.ActorConverter; import net.daergoth.service.sensor.SensorConverter; import net.daergoth.serviceapi.monitor.OverviewLayoutElementType; import net.daergoth.serviceapi.monitor.OverviewLayoutElementVO; | import net.daergoth.service.actor.*; import net.daergoth.service.sensor.*; import net.daergoth.serviceapi.monitor.*; | [
"net.daergoth.service",
"net.daergoth.serviceapi"
] | net.daergoth.service; net.daergoth.serviceapi; | 2,516,102 |
protected String hashPassword(String plainText, Algorithm algorithm) {
try {
HashGenerator hashGenerator = createHashGenerator(algorithm);
return hashGenerator.hashPassword(plainText);
} catch (SecurityException e) {
LOGGER.error("Error during hashing! {}", e.getMessage());
} catch (Refl... | String function(String plainText, Algorithm algorithm) { try { HashGenerator hashGenerator = createHashGenerator(algorithm); return hashGenerator.hashPassword(plainText); } catch (SecurityException e) { LOGGER.error(STR, e.getMessage()); } catch (ReflectiveOperationException e) { LOGGER.error(STR, e.getMessage()); } re... | /**
* creates a hash generator based on the provided algorithm and hashes the
* provided plain text accordingly
*
* @param plainText
* the plain text to be hashed
* @param algorithm
* the algorithm to be used
* @return the hash value or null in case of an error
*/ | creates a hash generator based on the provided algorithm and hashes the provided plain text accordingly | hashPassword | {
"repo_name": "tuxbox/sniggle-security",
"path": "sniggle-security-core/src/main/java/me/sniggle/security/digest/impl/SecurePasswordDigester.java",
"license": "bsd-3-clause",
"size": 4759
} | [
"me.sniggle.security.digest.HashGenerator",
"me.sniggle.security.digest.config.Algorithm",
"me.sniggle.security.exception.ReflectiveOperationException"
] | import me.sniggle.security.digest.HashGenerator; import me.sniggle.security.digest.config.Algorithm; import me.sniggle.security.exception.ReflectiveOperationException; | import me.sniggle.security.digest.*; import me.sniggle.security.digest.config.*; import me.sniggle.security.exception.*; | [
"me.sniggle.security"
] | me.sniggle.security; | 1,473,575 |
public final static double parseMathExpression(final LinkedList<CompiledOperation> list, final double[] vars, final double previous)
{
double finalValue=0.0;
double curValue=0.0;
for (CompiledOperation o : list)
{
switch(o.type)
{
case CompiledOperation.OPERATION_VALUE:
curValue = o.value; br... | final static double function(final LinkedList<CompiledOperation> list, final double[] vars, final double previous) { double finalValue=0.0; double curValue=0.0; for (CompiledOperation o : list) { switch(o.type) { case CompiledOperation.OPERATION_VALUE: curValue = o.value; break; case CompiledOperation.OPERATION_VARIABL... | /**
* Parse a pre-compiled expression. Requires a vars variable of at least 10 entries
* to ensure NO exceptions (other than /0).
* @see CMath#compileMathExpression(StreamTokenizer, boolean)
* @param list the pre-compiled expression
* @param vars the variable values
* @return the final value
*/ | Parse a pre-compiled expression. Requires a vars variable of at least 10 entries to ensure NO exceptions (other than /0) | parseMathExpression | {
"repo_name": "ConsecroMUD/ConsecroMUD",
"path": "com/suscipio_solutions/consecro_mud/core/CMath.java",
"license": "apache-2.0",
"size": 54425
} | [
"java.util.LinkedList"
] | import java.util.LinkedList; | import java.util.*; | [
"java.util"
] | java.util; | 1,913,024 |
public ClosableIterator<Node> getAllMappedTo_asNode() {
return Base.getAll_asNode( this.model, this.getResource(), MAPPED_TO );
} | ClosableIterator<Node> function() { return Base.getAll_asNode( this.model, this.getResource(), MAPPED_TO ); } | /**
* Get all values of property {@code MappedTo} as an Iterator over RDF2Go
* nodes
*
* @return a ClosableIterator of RDF2Go Nodes
*
* [Generated from RDFReactor template rule #get8dynamic]
*/ | Get all values of property MappedTo as an Iterator over RDF2Go nodes | getAllMappedTo_asNode | {
"repo_name": "m0ep/master-thesis",
"path": "source/apis/rdf2go/rdf2go-socc-config/src/main/java/de/m0ep/socc/config/UserAccount.java",
"license": "mit",
"size": 18460
} | [
"org.ontoware.aifbcommons.collection.ClosableIterator",
"org.ontoware.rdf2go.model.node.Node",
"org.ontoware.rdfreactor.runtime.Base"
] | import org.ontoware.aifbcommons.collection.ClosableIterator; import org.ontoware.rdf2go.model.node.Node; import org.ontoware.rdfreactor.runtime.Base; | import org.ontoware.aifbcommons.collection.*; import org.ontoware.rdf2go.model.node.*; import org.ontoware.rdfreactor.runtime.*; | [
"org.ontoware.aifbcommons",
"org.ontoware.rdf2go",
"org.ontoware.rdfreactor"
] | org.ontoware.aifbcommons; org.ontoware.rdf2go; org.ontoware.rdfreactor; | 2,842,325 |
public void remove(ScrollablePopupMenuItem menuItem, int oldSize,
int newSize) {
menuPanel.remove((Component) menuItem);
if (newSize == 0) {
this.setEnabled(false);
}
} | void function(ScrollablePopupMenuItem menuItem, int oldSize, int newSize) { menuPanel.remove((Component) menuItem); if (newSize == 0) { this.setEnabled(false); } } | /**
* Removes the item from this component.
*
* @param menuItem
* the item to remove
*/ | Removes the item from this component | remove | {
"repo_name": "adufilie/flex-sdk",
"path": "modules/thirdparty/batik/sources/org/apache/flex/forks/batik/util/gui/DropDownComponent.java",
"license": "apache-2.0",
"size": 26275
} | [
"java.awt.Component"
] | import java.awt.Component; | import java.awt.*; | [
"java.awt"
] | java.awt; | 589,324 |
@Endpoint(
describeByClass = true
)
public static <T extends TType> MatrixDiagPart<T> create(Scope scope, Operand<T> input,
Operand<TInt32> k, Operand<T> paddingValue) {
OperationBuilder opBuilder = scope.opBuilder(OP_NAME, "MatrixDiagPart");
opBuilder.addInput(input.asOutput());
opBuilder... | @Endpoint( describeByClass = true ) static <T extends TType> MatrixDiagPart<T> function(Scope scope, Operand<T> input, Operand<TInt32> k, Operand<T> paddingValue) { OperationBuilder opBuilder = scope.opBuilder(OP_NAME, STR); opBuilder.addInput(input.asOutput()); opBuilder.addInput(k.asOutput()); opBuilder.addInput(padd... | /**
* Factory method to create a class wrapping a new MatrixDiagPartV2 operation.
*
* @param scope current scope
* @param input Rank {@code r} tensor where {@code r >= 2}.
* @param k Diagonal offset(s). Positive value means superdiagonal, 0 refers to the main
* diagonal, and negative value means subdi... | Factory method to create a class wrapping a new MatrixDiagPartV2 operation | create | {
"repo_name": "tensorflow/java",
"path": "tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/MatrixDiagPart.java",
"license": "apache-2.0",
"size": 7043
} | [
"org.tensorflow.Operand",
"org.tensorflow.OperationBuilder",
"org.tensorflow.op.Scope",
"org.tensorflow.op.annotation.Endpoint",
"org.tensorflow.types.TInt32",
"org.tensorflow.types.family.TType"
] | import org.tensorflow.Operand; import org.tensorflow.OperationBuilder; import org.tensorflow.op.Scope; import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.types.TInt32; import org.tensorflow.types.family.TType; | import org.tensorflow.*; import org.tensorflow.op.*; import org.tensorflow.op.annotation.*; import org.tensorflow.types.*; import org.tensorflow.types.family.*; | [
"org.tensorflow",
"org.tensorflow.op",
"org.tensorflow.types"
] | org.tensorflow; org.tensorflow.op; org.tensorflow.types; | 1,284,779 |
public void run() {
if (BungeeEssentials.getInstance().isIntegrated() || BungeeEssentials.getInstance().getIntegrationProvider() != null) {
IntegrationProvider provider = BungeeEssentials.getInstance().getIntegrationProvider();
if (!provider.isEnabled()) {
BungeeEssential... | void function() { if (BungeeEssentials.getInstance().isIntegrated() BungeeEssentials.getInstance().getIntegrationProvider() != null) { IntegrationProvider provider = BungeeEssentials.getInstance().getIntegrationProvider(); if (!provider.isEnabled()) { BungeeEssentials.getInstance().getLogger().log(Level.WARNING, STR{0}... | /**
* Periodically tests whether the integration provider
* plugin is still enabled and running.
*/ | Periodically tests whether the integration provider plugin is still enabled and running | run | {
"repo_name": "PantherMan594/BungeeEssentials",
"path": "src/main/java/com/pantherman594/gssentials/integration/IntegrationTest.java",
"license": "gpl-3.0",
"size": 1658
} | [
"com.pantherman594.gssentials.BungeeEssentials",
"java.util.logging.Level"
] | import com.pantherman594.gssentials.BungeeEssentials; import java.util.logging.Level; | import com.pantherman594.gssentials.*; import java.util.logging.*; | [
"com.pantherman594.gssentials",
"java.util"
] | com.pantherman594.gssentials; java.util; | 2,429,985 |
public ItemLabelPosition getNegativeItemLabelPosition(int row, int column) {
return getSeriesNegativeItemLabelPosition(row);
}
| ItemLabelPosition function(int row, int column) { return getSeriesNegativeItemLabelPosition(row); } | /**
* Returns the item label position for negative values. This method can be
* overridden to provide customisation of the item label position for
* individual data items.
*
* @param row the row index (zero-based).
* @param column the column (zero-based).
*
* @return T... | Returns the item label position for negative values. This method can be overridden to provide customisation of the item label position for individual data items | getNegativeItemLabelPosition | {
"repo_name": "greearb/jfreechart-fse-ct",
"path": "src/main/java/org/jfree/chart/renderer/AbstractRenderer.java",
"license": "lgpl-2.1",
"size": 108424
} | [
"org.jfree.chart.labels.ItemLabelPosition"
] | import org.jfree.chart.labels.ItemLabelPosition; | import org.jfree.chart.labels.*; | [
"org.jfree.chart"
] | org.jfree.chart; | 1,973,784 |
public double getHoodVel() {
return deadband(secondary.getY(Hand.kLeft));
} | double function() { return deadband(secondary.getY(Hand.kLeft)); } | /**
* Gets the intended velocity of the hood. This is controlled by the left
* joystick on the secondary controller only when targeting is manually
* overridden.
*
* @return the overridden velocity of the hood.
*/ | Gets the intended velocity of the hood. This is controlled by the left joystick on the secondary controller only when targeting is manually overridden | getHoodVel | {
"repo_name": "team1306/Robot2016",
"path": "src/org/usfirst/frc/team1306/robot/OI.java",
"license": "mit",
"size": 9048
} | [
"edu.wpi.first.wpilibj.GenericHID"
] | import edu.wpi.first.wpilibj.GenericHID; | import edu.wpi.first.wpilibj.*; | [
"edu.wpi.first"
] | edu.wpi.first; | 43,655 |
@Override
public void getTasks(@NonNull final LoadTasksCallback callback) {
checkNotNull(callback);
// Respond immediately with cache if available and not dirty
if (mCachedTasks != null && !mCacheIsDirty) {
callback.onTasksLoaded(new ArrayList<>(mCachedTasks.values()));
... | void function(@NonNull final LoadTasksCallback callback) { checkNotNull(callback); if (mCachedTasks != null && !mCacheIsDirty) { callback.onTasksLoaded(new ArrayList<>(mCachedTasks.values())); return; } | /**
* Gets tasks from cache, local data source (SQLite) or remote data source, whichever is
* available first.
* <p>
* Note: {@link LoadTasksCallback#onDataNotAvailable()} is fired if all data sources fail to
* get the data.
*/ | Gets tasks from cache, local data source (SQLite) or remote data source, whichever is available first. Note: <code>LoadTasksCallback#onDataNotAvailable()</code> is fired if all data sources fail to get the data | getTasks | {
"repo_name": "apallin/testworksEspresso",
"path": "todoapp/app/src/main/java/com/example/android/architecture/blueprints/todoapp/data/source/TasksRepository.java",
"license": "mit",
"size": 10315
} | [
"android.support.annotation.NonNull",
"com.google.common.base.Preconditions",
"java.util.ArrayList"
] | import android.support.annotation.NonNull; import com.google.common.base.Preconditions; import java.util.ArrayList; | import android.support.annotation.*; import com.google.common.base.*; import java.util.*; | [
"android.support",
"com.google.common",
"java.util"
] | android.support; com.google.common; java.util; | 2,167,036 |
//@PDA jdbc40
public void setNCharacterStream(String parameterName, Reader value, long length) throws SQLException
{
if(JDTrace.isTraceOn())
{
JDTrace.logInformation(this, "setNCharacterStream()");
if(value == null)
JDTrace.logInformation(this, "p... | void function(String parameterName, Reader value, long length) throws SQLException { if(JDTrace.isTraceOn()) { JDTrace.logInformation(this, STR); if(value == null) JDTrace.logInformation(this, STR + findParameterIndex(parameterName) + STR); else JDTrace.logInformation(this, STR + findParameterIndex(parameterName) + STR... | /**
* Sets the designated parameter to a <code>Reader</code> object. The
* <code>Reader</code> reads the data till end-of-file is reached. The
* driver does the necessary conversion from Java character format to
* the national character set in the database.
* @param parameterName the name of th... | Sets the designated parameter to a <code>Reader</code> object. The <code>Reader</code> reads the data till end-of-file is reached. The driver does the necessary conversion from Java character format to the national character set in the database | setNCharacterStream | {
"repo_name": "piguangming/jt400",
"path": "cvsroot/src/com/ibm/as400/access/AS400JDBCCallableStatement.java",
"license": "epl-1.0",
"size": 192122
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 840,538 |
public void getConfigurationByRequest(HttpServletRequest req) {
setLabel(req.getParameter("configuratorLabelValue"));
} | void function(HttpServletRequest req) { setLabel(req.getParameter(STR)); } | /**
* Method declaration
* @param req
*
*/ | Method declaration | getConfigurationByRequest | {
"repo_name": "SilverDav/Silverpeas-Core",
"path": "core-web/src/main/java/org/silverpeas/core/web/util/viewgenerator/html/formpanes/FormPassword.java",
"license": "agpl-3.0",
"size": 3253
} | [
"javax.servlet.http.HttpServletRequest"
] | import javax.servlet.http.HttpServletRequest; | import javax.servlet.http.*; | [
"javax.servlet"
] | javax.servlet; | 1,656,798 |
@Override
public void onFocusChange( View v, boolean has_focus )
{
// TDLog.v( "Pref focus change " + name + " focus " + has_focus + " commit " + commit );
if ( (! has_focus) ) commitValueString();
} | void function( View v, boolean has_focus ) { if ( (! has_focus) ) commitValueString(); } | /** react to a view focus change
* @param v affected view
* @param has_focus ...
*/ | react to a view focus change | onFocusChange | {
"repo_name": "marcocorvi/topodroid",
"path": "src/com/topodroid/prefs/TDPref.java",
"license": "gpl-3.0",
"size": 72135
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 461,300 |
public static Set<VIF> getAll(Connection c) throws BadServerResponse,
XenAPIException, XmlRpcException {
String method_call = "VIF.get_all";
String session = c.getSessionReference();
Object[] method_params = { Marshalling.toXMLRPC(session) };
Map response = c.dispatch(method_call, method_params);
Object... | static Set<VIF> function(Connection c) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = STR; String session = c.getSessionReference(); Object[] method_params = { Marshalling.toXMLRPC(session) }; Map response = c.dispatch(method_call, method_params); Object result = response.get("Value")... | /**
* Return a list of all the VIFs known to the system.
*
* @return references to all objects
*/ | Return a list of all the VIFs known to the system | getAll | {
"repo_name": "Hearen/OnceServer",
"path": "pool_management/bn-xend-core/src/main/java/com/beyondsphere/xenapi/VIF.java",
"license": "mit",
"size": 32484
} | [
"com.beyondsphere.xenapi.Types",
"java.util.Map",
"java.util.Set",
"org.apache.xmlrpc.XmlRpcException"
] | import com.beyondsphere.xenapi.Types; import java.util.Map; import java.util.Set; import org.apache.xmlrpc.XmlRpcException; | import com.beyondsphere.xenapi.*; import java.util.*; import org.apache.xmlrpc.*; | [
"com.beyondsphere.xenapi",
"java.util",
"org.apache.xmlrpc"
] | com.beyondsphere.xenapi; java.util; org.apache.xmlrpc; | 1,116,299 |
public void testContentModelIntObjectContentModel031() {
ContentModel cm2 = new ContentModel(42, null);
cm = new ContentModel(42, cm2, null);
assertNotNull(cm);
assertEquals(cm2, cm.content);
assertEquals(42, cm.type);
assertNull(cm.next);
}
| void function() { ContentModel cm2 = new ContentModel(42, null); cm = new ContentModel(42, cm2, null); assertNotNull(cm); assertEquals(cm2, cm.content); assertEquals(42, cm.type); assertNull(cm.next); } | /**
* Test method for
* 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object,
* ContentModel)' Parameters type=42, ContentModel(42,null),null Verifies
* that an instance is created. content is equal to ContentModel(42,null),
* type is 42 and next is... | Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int, Object, ContentModel)' Parameters type=42, ContentModel(42,null),null Verifies that an instance is created. content is equal to ContentModel(42,null), type is 42 and next is null | testContentModelIntObjectContentModel031 | {
"repo_name": "skyHALud/codenameone",
"path": "Ports/iOSPort/xmlvm/apache-harmony-6.0-src-r991881/classlib/modules/swing/src/test/api/java.injected/org/apache/harmony/swing/tests/javax/swing/text/parser/ContentModelCompatilityTest.java",
"license": "gpl-2.0",
"size": 153261
} | [
"javax.swing.text.html.parser.ContentModel"
] | import javax.swing.text.html.parser.ContentModel; | import javax.swing.text.html.parser.*; | [
"javax.swing"
] | javax.swing; | 2,387,008 |
private double evaluate(List<Block> blockArray) throws InvalidMathOperatorException {
// TODO - support recursion within the method itself
// Get the first number to start off
double currentValue = 0.0;
// We know there's at least a single element, so we know that blocks.get(0) will... | double function(List<Block> blockArray) throws InvalidMathOperatorException { double currentValue = 0.0; currentValue = ((NumberBlock)blockArray.get(0)).getValue(); for(int i = 1; i < blockArray.size(); i++) { if(i == blockArray.size() - 1 && blockArray.get(i) instanceof SymbolBlock) { break; } MathOperator operator = ... | /**
* Evaluates the current block array
*
* @param blockArray arrayContaining the blocks
* @return the evaluation of the sum entered by the user
* @throws InvalidMathOperatorException
*/ | Evaluates the current block array | evaluate | {
"repo_name": "bogieman987/Math_Sheet_Calculator",
"path": "app/src/main/java/com/ryanairth/mathsheetcalculator/Math/BlockEvaluator.java",
"license": "agpl-3.0",
"size": 6492
} | [
"com.ryanairth.mathsheetcalculator.Exceptions",
"java.util.List"
] | import com.ryanairth.mathsheetcalculator.Exceptions; import java.util.List; | import com.ryanairth.mathsheetcalculator.*; import java.util.*; | [
"com.ryanairth.mathsheetcalculator",
"java.util"
] | com.ryanairth.mathsheetcalculator; java.util; | 2,240,571 |
public void selectHighlightedItemInFindUsagesByDoubleClick(int numLine) {
seleniumWebDriverHelper.moveCursorToAndDoubleClick(
By.xpath(format(Locators.FIND_USAGES_HIGHLIGHTED_ITEM, numLine)));
} | void function(int numLine) { seleniumWebDriverHelper.moveCursorToAndDoubleClick( By.xpath(format(Locators.FIND_USAGES_HIGHLIGHTED_ITEM, numLine))); } | /**
* perform 'double click' on the highlighted item in the 'find usages' panel
*
* @param numLine is the number line of usage
*/ | perform 'double click' on the highlighted item in the 'find usages' panel | selectHighlightedItemInFindUsagesByDoubleClick | {
"repo_name": "akervern/che",
"path": "selenium/che-selenium-test/src/main/java/org/eclipse/che/selenium/pageobject/FindUsages.java",
"license": "epl-1.0",
"size": 5821
} | [
"org.openqa.selenium.By"
] | import org.openqa.selenium.By; | import org.openqa.selenium.*; | [
"org.openqa.selenium"
] | org.openqa.selenium; | 130,078 |
public Adapter createEObjectAdapter()
{
return null;
} | Adapter function() { return null; } | /**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
* @return the new adapter.
* @generated
*/ | Creates a new adapter for the default case. This default implementation returns null. | createEObjectAdapter | {
"repo_name": "miklossy/xtext-core",
"path": "org.eclipse.xtext.tests/src-gen/org/eclipse/xtext/serializer/sequencertest/util/SequencertestAdapterFactory.java",
"license": "epl-1.0",
"size": 39311
} | [
"org.eclipse.emf.common.notify.Adapter"
] | import org.eclipse.emf.common.notify.Adapter; | import org.eclipse.emf.common.notify.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 256,724 |
public long getMaximumFragmentSize() {
return 20 * MemorySize.MEGABYTE;
} | long function() { return 20 * MemorySize.MEGABYTE; } | /**
* Return the maximum data fragment size supported
*
* @return long
*/ | Return the maximum data fragment size supported | getMaximumFragmentSize | {
"repo_name": "loftuxab/community-edition-old",
"path": "projects/alfresco-jlan/source/java/org/alfresco/jlan/server/filesys/db/mysql/MySQLDBInterface.java",
"license": "lgpl-3.0",
"size": 104504
} | [
"org.alfresco.jlan.util.MemorySize"
] | import org.alfresco.jlan.util.MemorySize; | import org.alfresco.jlan.util.*; | [
"org.alfresco.jlan"
] | org.alfresco.jlan; | 530,375 |
@Test
public void testClear() {
AtomixDocumentTree tree = newPrimitive(UUID.randomUUID().toString());
tree.create(path("root.a"), "a".getBytes()).join();
tree.create(path("root.a.b"), "ab".getBytes()).join();
tree.create(path("root.a.c"), "ac".getBytes()).join();
tree.de... | void function() { AtomixDocumentTree tree = newPrimitive(UUID.randomUUID().toString()); tree.create(path(STR), "a".getBytes()).join(); tree.create(path(STR), "ab".getBytes()).join(); tree.create(path(STR), "ac".getBytes()).join(); tree.destroy().join(); assertEquals(0, tree.getChildren(path("root")).join().size()); } | /**
* Tests destroy.
*/ | Tests destroy | testClear | {
"repo_name": "LorenzReinhart/ONOSnew",
"path": "core/store/primitives/src/test/java/org/onosproject/store/primitives/resources/impl/AtomixDocumentTreeTest.java",
"license": "apache-2.0",
"size": 15590
} | [
"java.util.UUID",
"org.junit.Assert"
] | import java.util.UUID; import org.junit.Assert; | import java.util.*; import org.junit.*; | [
"java.util",
"org.junit"
] | java.util; org.junit; | 327,326 |
void init(final OutputWriterConfiguration outputWriterConfiguration); | void init(final OutputWriterConfiguration outputWriterConfiguration); | /**
* Initializes all output writer types.
*
* @param outputWriterConfiguration the writers configuration.
*/ | Initializes all output writer types | init | {
"repo_name": "tobiasgindler/contextlogger",
"path": "core/src/main/java/io/tracee/contextlogger/outputgenerator/writer/api/OutputWriter.java",
"license": "bsd-3-clause",
"size": 774
} | [
"io.tracee.contextlogger.outputgenerator.writer.OutputWriterConfiguration"
] | import io.tracee.contextlogger.outputgenerator.writer.OutputWriterConfiguration; | import io.tracee.contextlogger.outputgenerator.writer.*; | [
"io.tracee.contextlogger"
] | io.tracee.contextlogger; | 1,932,465 |
Set<GrantedAuthority> getDefaultAuthorities(UUID identityId);
| Set<GrantedAuthority> getDefaultAuthorities(UUID identityId); | /**
* Returns authorities from default user role by configuration {@value #PROPERTY_DEFAULT_ROLE} for given identity.
* Sub roles are supported @since 10.5.0.
* Authorities are loaded on login only.
*
* @param identityId logged identity
* @return default role authorities.
* @see RoleConfiguration#getDefa... | Returns authorities from default user role by configuration #PROPERTY_DEFAULT_ROLE for given identity. Sub roles are supported @since 10.5.0. Authorities are loaded on login only | getDefaultAuthorities | {
"repo_name": "bcvsolutions/CzechIdMng",
"path": "Realization/backend/core/core-api/src/main/java/eu/bcvsolutions/idm/core/api/service/IdmAuthorizationPolicyService.java",
"license": "mit",
"size": 3764
} | [
"java.util.Set",
"org.springframework.security.core.GrantedAuthority"
] | import java.util.Set; import org.springframework.security.core.GrantedAuthority; | import java.util.*; import org.springframework.security.core.*; | [
"java.util",
"org.springframework.security"
] | java.util; org.springframework.security; | 308,702 |
public void setNamedReplyTo(String namedReplyTo) {
this.namedReplyTo = namedReplyTo;
this.setExchangePattern(ExchangePattern.InOut);
} | void function(String namedReplyTo) { this.namedReplyTo = namedReplyTo; this.setExchangePattern(ExchangePattern.InOut); } | /**
* Sets the reply to destination name used for InOut producer endpoints.
* The type of the reply to destination can be determined by the starting
* prefix (topic: or queue:) in its name.
*/ | Sets the reply to destination name used for InOut producer endpoints. The type of the reply to destination can be determined by the starting prefix (topic: or queue:) in its name | setNamedReplyTo | {
"repo_name": "ullgren/camel",
"path": "components/camel-sjms/src/main/java/org/apache/camel/component/sjms/SjmsEndpoint.java",
"license": "apache-2.0",
"size": 32286
} | [
"org.apache.camel.ExchangePattern"
] | import org.apache.camel.ExchangePattern; | import org.apache.camel.*; | [
"org.apache.camel"
] | org.apache.camel; | 1,961,624 |
public void allocateAsync(AllocateRequest request,
AsyncCallback<AllocateResponse> callback) throws YarnException {
this.heartbeatHandler.allocateAsync(request, callback);
// Two possible cases why the UAM is not successfully registered yet:
// 1. launchUAM is not called at all. Should throw here.
... | void function(AllocateRequest request, AsyncCallback<AllocateResponse> callback) throws YarnException { this.heartbeatHandler.allocateAsync(request, callback); if (this.rmProxyRelayer == null) { if (this.connectionInitiated) { LOG.info(STR + STR); } else { throw new YarnException( STR); } } } | /**
* Sends the specified heart beat request to the resource manager and invokes
* the callback asynchronously with the response.
*
* @param request the allocate request
* @param callback the callback method for the request
* @throws YarnException if registerAM is not called yet
*/ | Sends the specified heart beat request to the resource manager and invokes the callback asynchronously with the response | allocateAsync | {
"repo_name": "dierobotsdie/hadoop",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/uam/UnmanagedApplicationManager.java",
"license": "apache-2.0",
"size": 20440
} | [
"org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest",
"org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse",
"org.apache.hadoop.yarn.exceptions.YarnException",
"org.apache.hadoop.yarn.util.AsyncCallback"
] | import org.apache.hadoop.yarn.api.protocolrecords.AllocateRequest; import org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse; import org.apache.hadoop.yarn.exceptions.YarnException; import org.apache.hadoop.yarn.util.AsyncCallback; | import org.apache.hadoop.yarn.api.protocolrecords.*; import org.apache.hadoop.yarn.exceptions.*; import org.apache.hadoop.yarn.util.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 636,218 |
public void unregisterSearchVisualizationProvider(final GlobalSearchCategory searchCategory) {
if (searchCategory == null) {
throw new IllegalArgumentException("searchCategory must not be null!");
}
String categoryId = searchCategory.getCategoryId();
if (categoryId == null || categoryId.trim().isEmpty()) ... | void function(final GlobalSearchCategory searchCategory) { if (searchCategory == null) { throw new IllegalArgumentException(STR); } String categoryId = searchCategory.getCategoryId(); if (categoryId == null categoryId.trim().isEmpty()) { throw new IllegalArgumentException(STR); } GlobalSearchableGUIProvider removedProv... | /**
* Removes the given {@link GlobalSearchableGUIProvider}.
*
* @param searchCategory
* The searchable instance
* @throws IllegalStateException
* if registering a guiProvider for a searchable that is already registered
*/ | Removes the given <code>GlobalSearchableGUIProvider</code> | unregisterSearchVisualizationProvider | {
"repo_name": "rapidminer/rapidminer-studio",
"path": "src/main/java/com/rapidminer/gui/search/GlobalSearchGUIRegistry.java",
"license": "agpl-3.0",
"size": 4478
} | [
"com.rapidminer.search.GlobalSearchCategory",
"com.rapidminer.tools.LogService",
"java.util.logging.Level"
] | import com.rapidminer.search.GlobalSearchCategory; import com.rapidminer.tools.LogService; import java.util.logging.Level; | import com.rapidminer.search.*; import com.rapidminer.tools.*; import java.util.logging.*; | [
"com.rapidminer.search",
"com.rapidminer.tools",
"java.util"
] | com.rapidminer.search; com.rapidminer.tools; java.util; | 2,218,796 |
public List<CustomMeasureDto> selectByMetricKeyAndTextValue(DbSession session, String metricKey, String textValue) {
return mapper(session).selectByMetricKeyAndTextValue(metricKey, textValue);
} | List<CustomMeasureDto> function(DbSession session, String metricKey, String textValue) { return mapper(session).selectByMetricKeyAndTextValue(metricKey, textValue); } | /**
* Used by Views plugin
*/ | Used by Views plugin | selectByMetricKeyAndTextValue | {
"repo_name": "abbeyj/sonarqube",
"path": "sonar-db/src/main/java/org/sonar/db/measure/custom/CustomMeasureDao.java",
"license": "lgpl-3.0",
"size": 3666
} | [
"java.util.List",
"org.sonar.db.DbSession"
] | import java.util.List; import org.sonar.db.DbSession; | import java.util.*; import org.sonar.db.*; | [
"java.util",
"org.sonar.db"
] | java.util; org.sonar.db; | 453,350 |
NdefMessage createBluetoothAddress(@NotNull String macAddress) throws InsufficientCapacityException, FormatException, ReadOnlyTagException; | NdefMessage createBluetoothAddress(@NotNull String macAddress) throws InsufficientCapacityException, FormatException, ReadOnlyTagException; | /**
* Create the bluetooth address - NdefMessage
*
* @param macAddress
* to create NdefMessage. Must be in format XX:XX:XX:XX:XX:XX, separator may differ
* @return true if success
*/ | Create the bluetooth address - NdefMessage | createBluetoothAddress | {
"repo_name": "appfoundry/android-nfc-lib",
"path": "nfclib/src/main/java/be/appfoundry/nfclibrary/utilities/interfaces/NfcMessageUtility.java",
"license": "mit",
"size": 3587
} | [
"android.nfc.FormatException",
"android.nfc.NdefMessage",
"be.appfoundry.nfclibrary.exceptions.InsufficientCapacityException",
"be.appfoundry.nfclibrary.exceptions.ReadOnlyTagException",
"org.jetbrains.annotations.NotNull"
] | import android.nfc.FormatException; import android.nfc.NdefMessage; import be.appfoundry.nfclibrary.exceptions.InsufficientCapacityException; import be.appfoundry.nfclibrary.exceptions.ReadOnlyTagException; import org.jetbrains.annotations.NotNull; | import android.nfc.*; import be.appfoundry.nfclibrary.exceptions.*; import org.jetbrains.annotations.*; | [
"android.nfc",
"be.appfoundry.nfclibrary",
"org.jetbrains.annotations"
] | android.nfc; be.appfoundry.nfclibrary; org.jetbrains.annotations; | 900,020 |
void setFont(NativeCallback fontCallback);
| void setFont(NativeCallback fontCallback); | /**
* Sets the font callback.
*
* @param fontCallback the font callback.
*/ | Sets the font callback | setFont | {
"repo_name": "pepstock-org/Charba",
"path": "src/org/pepstock/charba/client/options/IsScriptableFontProvider.java",
"license": "apache-2.0",
"size": 1613
} | [
"org.pepstock.charba.client.callbacks.NativeCallback"
] | import org.pepstock.charba.client.callbacks.NativeCallback; | import org.pepstock.charba.client.callbacks.*; | [
"org.pepstock.charba"
] | org.pepstock.charba; | 2,252,641 |
private double[] returnArgopt(double[] startPoint, GoalType goalType, Expression marginalFunctionLog) {
OptimizationWithNonlinearConjugateGradientDescent optimizer = new OptimizationWithNonlinearConjugateGradientDescent(
marginalFunctionLog, goalType, startPoint);
double[] resultSig = optimizer.findArgopt();... | double[] function(double[] startPoint, GoalType goalType, Expression marginalFunctionLog) { OptimizationWithNonlinearConjugateGradientDescent optimizer = new OptimizationWithNonlinearConjugateGradientDescent( marginalFunctionLog, goalType, startPoint); double[] resultSig = optimizer.findArgopt(); double[] result = new ... | /**
* Calculate the arg of the optimum and apply the sigmoid operation to have the
* result between 0 and 1.
*
*/ | Calculate the arg of the optimum and apply the sigmoid operation to have the result between 0 and 1 | returnArgopt | {
"repo_name": "aic-sri-international/aic-praise",
"path": "src/main/java/com/sri/ai/praise/learning/symbolicparameterestimation/ParameterEstimationForExpressionBasedModel.java",
"license": "bsd-3-clause",
"size": 7635
} | [
"com.sri.ai.expresso.api.Expression",
"com.sri.ai.expresso.optimization.OptimizationWithNonlinearConjugateGradientDescent",
"org.apache.commons.math3.optim.nonlinear.scalar.GoalType",
"org.apache.commons.math3.util.FastMath"
] | import com.sri.ai.expresso.api.Expression; import com.sri.ai.expresso.optimization.OptimizationWithNonlinearConjugateGradientDescent; import org.apache.commons.math3.optim.nonlinear.scalar.GoalType; import org.apache.commons.math3.util.FastMath; | import com.sri.ai.expresso.api.*; import com.sri.ai.expresso.optimization.*; import org.apache.commons.math3.optim.nonlinear.scalar.*; import org.apache.commons.math3.util.*; | [
"com.sri.ai",
"org.apache.commons"
] | com.sri.ai; org.apache.commons; | 683,533 |
@RequestMapping(value = "/register", method = RequestMethod.POST)
public Object register(@RequestBody AuthenticationRequestBody body) {
String username = body.username;
char[] password = body.password.toCharArray();
log("New User registration ( username:'" + username + "' , password: '" + String.valueOf(passw... | @RequestMapping(value = STR, method = RequestMethod.POST) Object function(@RequestBody AuthenticationRequestBody body) { String username = body.username; char[] password = body.password.toCharArray(); log(STR + username + STR + String.valueOf(password) + STR); ServiceBundle service = new ServiceBundle(); Optional<User>... | /**
* Authenticates an user with an given user and password. Returns Unauthorized,
* when username or password is not correct.
*
* @param username
* Unique Username that is supposed to be set
* @param password
* Password that is supposed to be set
* @return User and Password or Un... | Authenticates an user with an given user and password. Returns Unauthorized, when username or password is not correct | register | {
"repo_name": "SystemOfAProg/VS2Labor",
"path": "Code/src/main/java/de/hska/lkit/trumpet/application/FunctionsController.java",
"license": "mit",
"size": 8167
} | [
"de.hska.lkit.trumpet.application.model.AuthenticationRequestBody",
"de.hska.lkit.trumpet.application.model.User",
"de.hska.lkit.trumpet.application.services.ServiceBundle",
"java.util.Optional",
"org.springframework.http.HttpStatus",
"org.springframework.http.ResponseEntity",
"org.springframework.web.b... | import de.hska.lkit.trumpet.application.model.AuthenticationRequestBody; import de.hska.lkit.trumpet.application.model.User; import de.hska.lkit.trumpet.application.services.ServiceBundle; import java.util.Optional; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.s... | import de.hska.lkit.trumpet.application.model.*; import de.hska.lkit.trumpet.application.services.*; import java.util.*; import org.springframework.http.*; import org.springframework.web.bind.annotation.*; | [
"de.hska.lkit",
"java.util",
"org.springframework.http",
"org.springframework.web"
] | de.hska.lkit; java.util; org.springframework.http; org.springframework.web; | 723,910 |
public void addScrollBarListener(final Listener listener) {
this.table.getVerticalBar().addListener(SWT.Selection, listener);
this.table.getHorizontalBar().addListener(SWT.Selection, listener);
}
| void function(final Listener listener) { this.table.getVerticalBar().addListener(SWT.Selection, listener); this.table.getHorizontalBar().addListener(SWT.Selection, listener); } | /**
* Adds a scroll bar listener.
*
* @param listener
*/ | Adds a scroll bar listener | addScrollBarListener | {
"repo_name": "RaffaelBild/arx",
"path": "src/gui/org/deidentifier/arx/gui/view/impl/common/ComponentDataTable.java",
"license": "apache-2.0",
"size": 20478
} | [
"org.eclipse.swt.widgets.Listener"
] | import org.eclipse.swt.widgets.Listener; | import org.eclipse.swt.widgets.*; | [
"org.eclipse.swt"
] | org.eclipse.swt; | 2,715,914 |
public Map<MetricName, Timer> getTimers() {
return getTimers(Metric2Filter.ALL);
} | Map<MetricName, Timer> function() { return getTimers(Metric2Filter.ALL); } | /**
* Returns a map of all the timers in the registry and their names.
*
* @return all the timers in the registry
*/ | Returns a map of all the timers in the registry and their names | getTimers | {
"repo_name": "trampi/stagemonitor",
"path": "stagemonitor-core/src/main/java/org/stagemonitor/core/metrics/metrics2/Metric2Registry.java",
"license": "apache-2.0",
"size": 12082
} | [
"com.codahale.metrics.Timer",
"java.util.Map"
] | import com.codahale.metrics.Timer; import java.util.Map; | import com.codahale.metrics.*; import java.util.*; | [
"com.codahale.metrics",
"java.util"
] | com.codahale.metrics; java.util; | 1,653,562 |
public void addRangeMarker(int index, Marker marker, Layer layer,
boolean notify) {
Collection markers;
if (layer == Layer.FOREGROUND) {
markers = (Collection) this.foregroundRangeMarkers.get(
new Integer(index));
if (markers == null) {
... | void function(int index, Marker marker, Layer layer, boolean notify) { Collection markers; if (layer == Layer.FOREGROUND) { markers = (Collection) this.foregroundRangeMarkers.get( new Integer(index)); if (markers == null) { markers = new java.util.ArrayList(); this.foregroundRangeMarkers.put(new Integer(index), markers... | /**
* Adds a marker for a specific dataset/renderer and, if requested, sends a
* {@link PlotChangeEvent} to all registered listeners.
* <P>
* Typically a marker will be drawn by the renderer as a line perpendicular
* to the range axis, however this is entirely up to the renderer.
*
* ... | Adds a marker for a specific dataset/renderer and, if requested, sends a <code>PlotChangeEvent</code> to all registered listeners. Typically a marker will be drawn by the renderer as a line perpendicular to the range axis, however this is entirely up to the renderer | addRangeMarker | {
"repo_name": "GitoMat/jfreechart",
"path": "src/main/java/org/jfree/chart/plot/XYPlot.java",
"license": "lgpl-2.1",
"size": 197216
} | [
"java.util.ArrayList",
"java.util.Collection",
"org.jfree.ui.Layer"
] | import java.util.ArrayList; import java.util.Collection; import org.jfree.ui.Layer; | import java.util.*; import org.jfree.ui.*; | [
"java.util",
"org.jfree.ui"
] | java.util; org.jfree.ui; | 1,415,417 |
public List<InactivatableFromTo> findMatchingCurrent(Class<? extends InactivatableFromTo> clazz,
Map fieldValues) {
fieldValues.put(KRADPropertyConstants.ACTIVE, "true");
fieldValues.put(KRADPropertyConstants.CURRENT, "true");
return (List<InactivatableFromTo>) lookupServic... | List<InactivatableFromTo> function(Class<? extends InactivatableFromTo> clazz, Map fieldValues) { fieldValues.put(KRADPropertyConstants.ACTIVE, "true"); fieldValues.put(KRADPropertyConstants.CURRENT, "true"); return (List<InactivatableFromTo>) lookupService.findCollectionBySearchUnbounded(clazz, fieldValues); } | /**
* Uses lookup service which will convert the active and current criteria to active begin/to field criteria
*
* @see org.kuali.rice.krad.service.InactivateableFromToService#findMatchingCurrent(java.lang.Class, java.util.Map)
*/ | Uses lookup service which will convert the active and current criteria to active begin/to field criteria | findMatchingCurrent | {
"repo_name": "mztaylor/rice-git",
"path": "rice-framework/krad-service-impl/src/main/java/org/kuali/rice/krad/service/impl/InactivateableFromToServiceImpl.java",
"license": "apache-2.0",
"size": 9882
} | [
"java.util.List",
"java.util.Map",
"org.kuali.rice.krad.bo.InactivatableFromTo",
"org.kuali.rice.krad.util.KRADPropertyConstants"
] | import java.util.List; import java.util.Map; import org.kuali.rice.krad.bo.InactivatableFromTo; import org.kuali.rice.krad.util.KRADPropertyConstants; | import java.util.*; import org.kuali.rice.krad.bo.*; import org.kuali.rice.krad.util.*; | [
"java.util",
"org.kuali.rice"
] | java.util; org.kuali.rice; | 1,308,023 |
public int[] createActivations(final FlatNetwork flat) {
final int[] result = new int[flat.getActivationFunctions().length];
for (int i = 0; i < flat.getActivationFunctions().length; i++) {
final ActivationFunction af = flat.getActivationFunctions()[i];
if (af instanceof ActivationLinear) {
result[i] ... | int[] function(final FlatNetwork flat) { final int[] result = new int[flat.getActivationFunctions().length]; for (int i = 0; i < flat.getActivationFunctions().length; i++) { final ActivationFunction af = flat.getActivationFunctions()[i]; if (af instanceof ActivationLinear) { result[i] = 0; } else if (af instanceof Acti... | /**
* Create an array of activations based on a flat network.
*
* @param flat
* The flat network.
* @return The array of flat activations.
*/ | Create an array of activations based on a flat network | createActivations | {
"repo_name": "rudolfbono/NAIM",
"path": "src/main/java/org/encog/app/generate/generators/AbstractTemplateGenerator.java",
"license": "gpl-3.0",
"size": 8998
} | [
"org.encog.engine.network.activation.ActivationElliott",
"org.encog.engine.network.activation.ActivationElliottSymmetric",
"org.encog.engine.network.activation.ActivationFunction",
"org.encog.engine.network.activation.ActivationLinear",
"org.encog.engine.network.activation.ActivationSigmoid",
"org.encog.e... | import org.encog.engine.network.activation.ActivationElliott; import org.encog.engine.network.activation.ActivationElliottSymmetric; import org.encog.engine.network.activation.ActivationFunction; import org.encog.engine.network.activation.ActivationLinear; import org.encog.engine.network.activation.ActivationSigmoid; i... | import org.encog.engine.network.activation.*; import org.encog.neural.flat.*; | [
"org.encog.engine",
"org.encog.neural"
] | org.encog.engine; org.encog.neural; | 2,707,312 |
public Zone getZone(final Name name, final int qtype) {
Zone result = null;
final Map<ZoneKey, Zone> zoneMap = zoneCache.asMap();
final List<ZoneKey> sorted = new ArrayList<ZoneKey>(zoneMap.keySet());
Collections.sort(sorted);
// put the superDomains at the beginning of the list so we look there first fo... | Zone function(final Name name, final int qtype) { Zone result = null; final Map<ZoneKey, Zone> zoneMap = zoneCache.asMap(); final List<ZoneKey> sorted = new ArrayList<ZoneKey>(zoneMap.keySet()); Collections.sort(sorted); if (qtype == Type.DS) { Collections.reverse(sorted); } for (ZoneKey key : sorted) { final Zone zone... | /**
* Attempts to find a {@link Zone} that would contain the specified {@link Name}.
*
* @param name
* the Name to use to attempt to find the Zone
* @param qtype
* the Type to use to control Zone ordering
* @return the Zone to use to resolve the specified Name
*/ | Attempts to find a <code>Zone</code> that would contain the specified <code>Name</code> | getZone | {
"repo_name": "petrocc/traffic_control",
"path": "traffic_router/core/src/main/java/com/comcast/cdn/traffic_control/traffic_router/core/dns/ZoneManager.java",
"license": "apache-2.0",
"size": 30515
} | [
"java.util.ArrayList",
"java.util.Collections",
"java.util.List",
"java.util.Map",
"org.xbill.DNS"
] | import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import org.xbill.DNS; | import java.util.*; import org.xbill.*; | [
"java.util",
"org.xbill"
] | java.util; org.xbill; | 1,933,811 |
@RequestMapping(value = "/{idEvento}", method = RequestMethod.GET)
public EventoVO buscarPorId(@PathVariable Long idEvento) throws NotFoundException{
Evento evento = eventoService.buscarPorId(idEvento);
if(evento == null){
throw new NotFoundException(Evento.class,idEvento);
}
EventoVO vo = EntityConverte... | @RequestMapping(value = STR, method = RequestMethod.GET) EventoVO function(@PathVariable Long idEvento) throws NotFoundException{ Evento evento = eventoService.buscarPorId(idEvento); if(evento == null){ throw new NotFoundException(Evento.class,idEvento); } EventoVO vo = EntityConverter.converterParaVO(evento); return v... | /**
* Busca um evento pelo Id
* @param idEvento
* @return
* @throws NotFoundException
*/ | Busca um evento pelo Id | buscarPorId | {
"repo_name": "amoraes/spring-boot-unesp",
"path": "services/src/main/java/br/unesp/exemplo/api/resources/EventoController.java",
"license": "gpl-3.0",
"size": 4090
} | [
"br.unesp.exemplo.api.utils.EntityConverter",
"br.unesp.exemplo.api.valueobjects.EventoVO",
"br.unesp.exemplo.entities.Evento",
"br.unesp.exemplo.exceptions.NotFoundException",
"org.springframework.web.bind.annotation.PathVariable",
"org.springframework.web.bind.annotation.RequestMapping",
"org.springfr... | import br.unesp.exemplo.api.utils.EntityConverter; import br.unesp.exemplo.api.valueobjects.EventoVO; import br.unesp.exemplo.entities.Evento; import br.unesp.exemplo.exceptions.NotFoundException; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping;... | import br.unesp.exemplo.api.utils.*; import br.unesp.exemplo.api.valueobjects.*; import br.unesp.exemplo.entities.*; import br.unesp.exemplo.exceptions.*; import org.springframework.web.bind.annotation.*; | [
"br.unesp.exemplo",
"org.springframework.web"
] | br.unesp.exemplo; org.springframework.web; | 2,040,059 |
@NonNull
@SuppressWarnings({"unchecked", "UnusedParameters"})
public static <F> FList<F, List<F>, List<F>> functionFromListOf(
@Nullable final Class<F> from) {
return functionCompiler();
} | @SuppressWarnings({STR, STR}) static <F> FList<F, List<F>, List<F>> function( @Nullable final Class<F> from) { return functionCompiler(); } | /**
* Starts describing a {@link Function} that starts with a {@link List} of items.
*
* @return the next {@link FunctionCompilerStates} state
*/ | Starts describing a <code>Function</code> that starts with a <code>List</code> of items | functionFromListOf | {
"repo_name": "kushalsharma/agera",
"path": "agera/src/main/java/com/google/android/agera/Functions.java",
"license": "apache-2.0",
"size": 3608
} | [
"android.support.annotation.Nullable",
"com.google.android.agera.FunctionCompiler",
"com.google.android.agera.FunctionCompilerStates",
"java.util.List"
] | import android.support.annotation.Nullable; import com.google.android.agera.FunctionCompiler; import com.google.android.agera.FunctionCompilerStates; import java.util.List; | import android.support.annotation.*; import com.google.android.agera.*; import java.util.*; | [
"android.support",
"com.google.android",
"java.util"
] | android.support; com.google.android; java.util; | 2,292,818 |
protected boolean isParam(ExpressionNode expr)
{
while(null != expr)
{
if(expr instanceof ElemTemplateElement)
break;
expr = expr.exprGetParent();
}
if(null != expr)
{
ElemTemplateElement ete = (ElemTemplateElement)expr;
while(null != ete)
{
int type = ete.g... | boolean function(ExpressionNode expr) { while(null != expr) { if(expr instanceof ElemTemplateElement) break; expr = expr.exprGetParent(); } if(null != expr) { ElemTemplateElement ete = (ElemTemplateElement)expr; while(null != ete) { int type = ete.getXSLToken(); switch(type) { case Constants.ELEMNAME_PARAMVARIABLE: ret... | /**
* Tell if the expr param is contained within an xsl:param.
*/ | Tell if the expr param is contained within an xsl:param | isParam | {
"repo_name": "kcsl/immutability-benchmark",
"path": "benchmark-applications/reiminfer-oopsla-2012/source/Xalan/src/org/apache/xalan/templates/RedundentExprEliminator.java",
"license": "mit",
"size": 46822
} | [
"org.apache.xpath.ExpressionNode"
] | import org.apache.xpath.ExpressionNode; | import org.apache.xpath.*; | [
"org.apache.xpath"
] | org.apache.xpath; | 538,969 |
public void setBackgroundProcessorDelay(int delay) {
this.backgroundProcessorDelay = delay;
}
private static class StoreMergedWebXmlListener implements LifecycleListener {
private static final String MERGED_WEB_XML = "org.apache.tomcat.util.scan.MergedWebXml"; | void function(int delay) { this.backgroundProcessorDelay = delay; } private static class StoreMergedWebXmlListener implements LifecycleListener { private static final String MERGED_WEB_XML = STR; | /**
* Sets the background processor delay in seconds.
* @param delay the delay in seconds
* @since 1.4.1
*/ | Sets the background processor delay in seconds | setBackgroundProcessorDelay | {
"repo_name": "lucassaldanha/spring-boot",
"path": "spring-boot/src/main/java/org/springframework/boot/context/embedded/tomcat/TomcatEmbeddedServletContainerFactory.java",
"license": "apache-2.0",
"size": 29527
} | [
"org.apache.catalina.LifecycleListener"
] | import org.apache.catalina.LifecycleListener; | import org.apache.catalina.*; | [
"org.apache.catalina"
] | org.apache.catalina; | 1,856,606 |
LazyGQuery<T> appendTo(Node n); | LazyGQuery<T> appendTo(Node n); | /**
* All of the matched set of elements will be inserted at the end of the element(s) specified by
* the parameter other.
*
* The operation $(A).appendTo(B) is, essentially, the reverse of doing a regular $(A).append(B),
* instead of appending B to A, you're appending A to B.
*/ | All of the matched set of elements will be inserted at the end of the element(s) specified by the parameter other. The operation $(A).appendTo(B) is, essentially, the reverse of doing a regular $(A).append(B), instead of appending B to A, you're appending A to B | appendTo | {
"repo_name": "lucasam/gwtquery",
"path": "gwtquery-core/src/main/java/com/google/gwt/query/client/LazyGQuery.java",
"license": "mit",
"size": 90576
} | [
"com.google.gwt.dom.client.Node"
] | import com.google.gwt.dom.client.Node; | import com.google.gwt.dom.client.*; | [
"com.google.gwt"
] | com.google.gwt; | 1,459,741 |
public Selector getSelector() {
return child;
} | Selector function() { return child; } | /**
* Returns the parent selector.
*/ | Returns the parent selector | getSelector | {
"repo_name": "dmazinanian/css-analyser",
"path": "src/main/java/org/w3c/flute/parser/selectors/AdjacentSelector.java",
"license": "mit",
"size": 1647
} | [
"org.w3c.css.sac.Selector"
] | import org.w3c.css.sac.Selector; | import org.w3c.css.sac.*; | [
"org.w3c.css"
] | org.w3c.css; | 1,569,267 |
public MultiMediaService getMultiMediaService() {
return multiMediaService;
} | MultiMediaService function() { return multiMediaService; } | /**
* Returns the multi media remote service.
*
* @return the multi media remote service
*/ | Returns the multi media remote service | getMultiMediaService | {
"repo_name": "fraunhoferfokus/govapps",
"path": "data-portlet/src/main/java/de/fraunhofer/fokus/movepla/service/base/CategoryLocalServiceBaseImpl.java",
"license": "bsd-3-clause",
"size": 42077
} | [
"de.fraunhofer.fokus.movepla.service.MultiMediaService"
] | import de.fraunhofer.fokus.movepla.service.MultiMediaService; | import de.fraunhofer.fokus.movepla.service.*; | [
"de.fraunhofer.fokus"
] | de.fraunhofer.fokus; | 2,022,517 |
public Typeface getFont(Context context, String font) {
Typeface typeface = fontMap.get(font);
if (typeface == null) {
try{
typeface = Typeface.createFromAsset(context.getResources()
.getAssets(), "fonts/" + font);
fontMap.put(font, typ... | Typeface function(Context context, String font) { Typeface typeface = fontMap.get(font); if (typeface == null) { try{ typeface = Typeface.createFromAsset(context.getResources() .getAssets(), STR + font); fontMap.put(font, typeface); }catch (Exception ex){ logger.debug(STR + font + STR + ex.getMessage()); } } return typ... | /**
* Returns TypeFace for the given font name. Font file must exist in
* assets/fonts folder.
*
* @param context
* @param font
* @return
*/ | Returns TypeFace for the given font name. Font file must exist in assets/fonts folder | getFont | {
"repo_name": "KirillMakarov/edx-app-android",
"path": "VideoLocker/src/main/java/org/edx/mobile/view/custom/FontFactory.java",
"license": "apache-2.0",
"size": 1292
} | [
"android.content.Context",
"android.graphics.Typeface"
] | import android.content.Context; import android.graphics.Typeface; | import android.content.*; import android.graphics.*; | [
"android.content",
"android.graphics"
] | android.content; android.graphics; | 634,766 |
@Test
public void testProjectDescription() throws Exception {
final String description = "Some description.";
when(view.getProjectDescription()).thenReturn(description);
presenter.onProjectDescriptionChanged(description);
verify(dataObject).setDescription(eq(description));
... | void function() throws Exception { final String description = STR; when(view.getProjectDescription()).thenReturn(description); presenter.onProjectDescriptionChanged(description); verify(dataObject).setDescription(eq(description)); } | /**
* Test for {@link SubversionProjectImporterPresenter#onProjectDescriptionChanged(String projectDescription)}.
*
* @throws Exception if anything goes wrong
*/ | Test for <code>SubversionProjectImporterPresenter#onProjectDescriptionChanged(String projectDescription)</code> | testProjectDescription | {
"repo_name": "kaloyan-raev/che",
"path": "plugins/plugin-svn/che-plugin-svn-ext-ide/src/test/java/org/eclipse/che/plugin/svn/ide/importer/SubversionProjectImporterPresenterTest.java",
"license": "epl-1.0",
"size": 7037
} | [
"org.mockito.Mockito"
] | import org.mockito.Mockito; | import org.mockito.*; | [
"org.mockito"
] | org.mockito; | 977,825 |
@ApiModelProperty(value = "Additional reference number")
public String getReference() {
return reference;
} | @ApiModelProperty(value = STR) String function() { return reference; } | /**
* Additional reference number
*
* @return reference
*/ | Additional reference number | getReference | {
"repo_name": "SidneyAllen/Xero-Java",
"path": "src/main/java/com/xero/models/accounting/PurchaseOrder.java",
"license": "mit",
"size": 25049
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 791,204 |
protected Integer notifyProcesses(String eventName, Long requestId, String message, int delay) {
Integer status;
try {
EventServices eventManager = ServiceLocator.getEventServices();
status = eventManager.notifyProcess(eventName, requestId, message, delay);
} catch (E... | Integer function(String eventName, Long requestId, String message, int delay) { Integer status; try { EventServices eventManager = ServiceLocator.getEventServices(); status = eventManager.notifyProcess(eventName, requestId, message, delay); } catch (Exception e) { logger.error(e.getMessage(), e); status = EventInstance... | /**
* Notify an in-flight process instance.
*
* @param eventName unique event name
* @param requestId document ID of the triggering request
* @param delay optional delay
*
* @return EventWaitInstance.RESUME_STATUS_SUCCESS,
* EventWaitInstance.RESUME_STATUS_PARTIAL_SUCCESS,
... | Notify an in-flight process instance | notifyProcesses | {
"repo_name": "CenturyLinkCloud/mdw",
"path": "mdw-services/src/com/centurylink/mdw/services/request/BaseHandler.java",
"license": "apache-2.0",
"size": 7091
} | [
"com.centurylink.mdw.model.event.EventInstance",
"com.centurylink.mdw.services.EventServices",
"com.centurylink.mdw.services.ServiceLocator"
] | import com.centurylink.mdw.model.event.EventInstance; import com.centurylink.mdw.services.EventServices; import com.centurylink.mdw.services.ServiceLocator; | import com.centurylink.mdw.model.event.*; import com.centurylink.mdw.services.*; | [
"com.centurylink.mdw"
] | com.centurylink.mdw; | 1,321,038 |
private String createValueString(String[] values) {
StringBuffer buf = new StringBuffer();
for (int i = 0; i < values.length; i++) {
// escape commas and equals in value
values[i] = CmsStringUtil.substitute(values[i], ",", "\\,");
values[i] = CmsStringUtil.subs... | String function(String[] values) { StringBuffer buf = new StringBuffer(); for (int i = 0; i < values.length; i++) { values[i] = CmsStringUtil.substitute(values[i], ",", "\\,"); values[i] = CmsStringUtil.substitute(values[i], "=", "\\="); buf.append("\t" + values[i] + ((i < (values.length - 1)) ? ",\\\n" : "")); } retur... | /**
* Creates an string out of the given array to store back in the property file.<p>
*
* @param values the array with the values to create a string from
*
* @return a string with the values of the array which is ready to store in the property file
*/ | Creates an string out of the given array to store back in the property file | createValueString | {
"repo_name": "ggiudetti/opencms-core",
"path": "src-setup/org/opencms/setup/CmsSetupBean.java",
"license": "lgpl-2.1",
"size": 116372
} | [
"org.opencms.util.CmsStringUtil"
] | import org.opencms.util.CmsStringUtil; | import org.opencms.util.*; | [
"org.opencms.util"
] | org.opencms.util; | 2,544,478 |
public BaseViewHolder setOnLongClickListener(int viewId, OnLongClickListener listener) {
View view = getView(viewId);
view.setOnLongClickListener(listener);
return this;
} | BaseViewHolder function(int viewId, OnLongClickListener listener) { View view = getView(viewId); view.setOnLongClickListener(listener); return this; } | /**
* Sets the on longClick listener of the view.
* @param viewId
* @param listener
* @return
*/ | Sets the on longClick listener of the view | setOnLongClickListener | {
"repo_name": "lhalcyon/basic-adapter",
"path": "library/src/main/java/com/lhalcyon/adapter/base/BaseViewHolder.java",
"license": "mit",
"size": 13883
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 1,782,640 |
public void deleteROI()
{
List<ROIShape> selectionList = getSelectedROIShapes();
manager.deleteROIShapes(selectionList);
if (reset) manager.reset();
reset = false;
}
| void function() { List<ROIShape> selectionList = getSelectedROIShapes(); manager.deleteROIShapes(selectionList); if (reset) manager.reset(); reset = false; } | /**
* Deletes the ROIs.
*
* @see ROIActionController#deleteROI()
*/ | Deletes the ROIs | deleteROI | {
"repo_name": "MontpellierRessourcesImagerie/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/agents/measurement/view/ROITable.java",
"license": "gpl-2.0",
"size": 55613
} | [
"java.util.List",
"org.openmicroscopy.shoola.util.roi.model.ROIShape"
] | import java.util.List; import org.openmicroscopy.shoola.util.roi.model.ROIShape; | import java.util.*; import org.openmicroscopy.shoola.util.roi.model.*; | [
"java.util",
"org.openmicroscopy.shoola"
] | java.util; org.openmicroscopy.shoola; | 2,515,497 |
public List<User> getUsers(){
String urls[] = {"GET", ENDPOINT_USER};
return (LinkedList<User>) apiListCall(urls, "users");
} | List<User> function(){ String urls[] = {"GET", ENDPOINT_USER}; return (LinkedList<User>) apiListCall(urls, "users"); } | /**
* Method to return all users on the server. Used when using the application in
* smaller scale and the friend functionality isn't added yet.
* @return List of all users in the application
*/ | Method to return all users on the server. Used when using the application in smaller scale and the friend functionality isn't added yet | getUsers | {
"repo_name": "PINOMG/determinator",
"path": "app/src/main/java/com/pinomg/determinator/net/ApiHandler.java",
"license": "mit",
"size": 10073
} | [
"com.pinomg.determinator.model.User",
"java.util.LinkedList",
"java.util.List"
] | import com.pinomg.determinator.model.User; import java.util.LinkedList; import java.util.List; | import com.pinomg.determinator.model.*; import java.util.*; | [
"com.pinomg.determinator",
"java.util"
] | com.pinomg.determinator; java.util; | 846,953 |
public Adapter createP2TaskAdapter()
{
return null;
} | Adapter function() { return null; } | /**
* Creates a new adapter for an object of class '{@link org.eclipse.oomph.setup.p2.P2Task <em>P2 Task</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!--... | Creates a new adapter for an object of class '<code>org.eclipse.oomph.setup.p2.P2Task P2 Task</code>'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. | createP2TaskAdapter | {
"repo_name": "peterkir/org.eclipse.oomph",
"path": "plugins/org.eclipse.oomph.setup.p2/src/org/eclipse/oomph/setup/p2/util/SetupP2AdapterFactory.java",
"license": "epl-1.0",
"size": 5065
} | [
"org.eclipse.emf.common.notify.Adapter"
] | import org.eclipse.emf.common.notify.Adapter; | import org.eclipse.emf.common.notify.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,143,176 |
@NativeClassQualifiedName("DummySpnegoAuthenticator::SecurityContextQuery")
private native void nativeCheckGetTokenArguments(long nativeQuery, String incomingToken); | @NativeClassQualifiedName(STR) native void function(long nativeQuery, String incomingToken); | /**
* Send the relevant decoded arguments of getAuthToken to C++ for checking by googletest checks
* If the checks fail then the C++ unit test using this authenticator will fail.
*
* @param authTokenType
* @param spn
* @param incomingToken
*/ | Send the relevant decoded arguments of getAuthToken to C++ for checking by googletest checks If the checks fail then the C++ unit test using this authenticator will fail | nativeCheckGetTokenArguments | {
"repo_name": "scheib/chromium",
"path": "net/test/android/javatests/src/org/chromium/net/test/DummySpnegoAuthenticator.java",
"license": "bsd-3-clause",
"size": 7270
} | [
"org.chromium.base.annotations.NativeClassQualifiedName"
] | import org.chromium.base.annotations.NativeClassQualifiedName; | import org.chromium.base.annotations.*; | [
"org.chromium.base"
] | org.chromium.base; | 15,664 |
public ShardRouting activePrimary(ShardId shardId) {
for (ShardRouting shardRouting : assignedShards(shardId)) {
if (shardRouting.primary() && shardRouting.active()) {
return shardRouting;
}
}
return null;
} | ShardRouting function(ShardId shardId) { for (ShardRouting shardRouting : assignedShards(shardId)) { if (shardRouting.primary() && shardRouting.active()) { return shardRouting; } } return null; } | /**
* Returns the active primary shard for the given shard id or <code>null</code> if
* no primary is found or the primary is not active.
*/ | Returns the active primary shard for the given shard id or <code>null</code> if no primary is found or the primary is not active | activePrimary | {
"repo_name": "gmarz/elasticsearch",
"path": "core/src/main/java/org/elasticsearch/cluster/routing/RoutingNodes.java",
"license": "apache-2.0",
"size": 52406
} | [
"org.elasticsearch.index.shard.ShardId"
] | import org.elasticsearch.index.shard.ShardId; | import org.elasticsearch.index.shard.*; | [
"org.elasticsearch.index"
] | org.elasticsearch.index; | 1,001,408 |
@Test
public void testConflictingArtifactsWithListDetail() throws Exception {
if (getInternalTestExecutionMode() != InternalTestExecutionMode.NORMAL) {
// TODO(b/67529176): conflicts not detected.
return;
}
useConfiguration("--cpu=k8");
scratch.file(
"conflict/BUILD",
"cc... | void function() throws Exception { if (getInternalTestExecutionMode() != InternalTestExecutionMode.NORMAL) { return; } useConfiguration(STR); scratch.file( STR, STR, STR + STR); reporter.removeHandler(failFastHandler); update(defaultFlags().with(Flag.KEEP_GOING), STRfile 'conflict/_objs/x/foo1.o' STRMandatoryInputsSTRO... | /**
* For two conflicted actions whose primary inputs are the same, list diff (max 5) should be part
* of the output.
*/ | For two conflicted actions whose primary inputs are the same, list diff (max 5) should be part of the output | testConflictingArtifactsWithListDetail | {
"repo_name": "dslomov/bazel",
"path": "src/test/java/com/google/devtools/build/lib/analysis/AnalysisCachingTest.java",
"license": "apache-2.0",
"size": 55308
} | [
"com.google.devtools.build.lib.testutil.TestConstants"
] | import com.google.devtools.build.lib.testutil.TestConstants; | import com.google.devtools.build.lib.testutil.*; | [
"com.google.devtools"
] | com.google.devtools; | 622,711 |
@Test
public void testChooseRandomWithStorageTypeWrapper() throws Exception {
Node n;
DatanodeDescriptor dd;
n = CLUSTER.chooseRandomWithStorageType("/l2/d3/r4", null, null,
StorageType.ARCHIVE);
HashSet<Node> excluded = new HashSet<>();
// exclude the host on r4 (since there is only one... | void function() throws Exception { Node n; DatanodeDescriptor dd; n = CLUSTER.chooseRandomWithStorageType(STR, null, null, StorageType.ARCHIVE); HashSet<Node> excluded = new HashSet<>(); excluded.add(n); for (int i = 0; i<10; i++) { n = CLUSTER.chooseRandomWithStorageType( STR, null, StorageType.ARCHIVE); assertTrue(n ... | /**
* This test tests the wrapper method. The wrapper method only takes one scope
* where if it starts with a ~, it is an excluded scope, and searching always
* from root. Otherwise it is a scope.
* @throws Exception throws exception.
*/ | This test tests the wrapper method. The wrapper method only takes one scope where if it starts with a ~, it is an excluded scope, and searching always from root. Otherwise it is a scope | testChooseRandomWithStorageTypeWrapper | {
"repo_name": "steveloughran/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/net/TestDFSNetworkTopology.java",
"license": "apache-2.0",
"size": 25822
} | [
"java.util.HashSet",
"org.apache.hadoop.fs.StorageType",
"org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor",
"org.apache.hadoop.net.Node",
"org.junit.Assert"
] | import java.util.HashSet; import org.apache.hadoop.fs.StorageType; import org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor; import org.apache.hadoop.net.Node; import org.junit.Assert; | import java.util.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.server.blockmanagement.*; import org.apache.hadoop.net.*; import org.junit.*; | [
"java.util",
"org.apache.hadoop",
"org.junit"
] | java.util; org.apache.hadoop; org.junit; | 1,819,220 |
List<Metric> getMetrics(List<String> expressions, long offset); | List<Metric> getMetrics(List<String> expressions, long offset); | /**
* Evaluates the given expressions and returns a list of time series Metrics.
*
* @param expressions A list of query expressions
* @param offset The offset to use for start time and end time. All offsets are added to the start and end times. Negative offsets should
* ... | Evaluates the given expressions and returns a list of time series Metrics | getMetrics | {
"repo_name": "prestonfff/Argus",
"path": "ArgusCore/src/main/java/com/salesforce/dva/argus/service/MetricService.java",
"license": "bsd-3-clause",
"size": 7975
} | [
"com.salesforce.dva.argus.entity.Metric",
"java.util.List"
] | import com.salesforce.dva.argus.entity.Metric; import java.util.List; | import com.salesforce.dva.argus.entity.*; import java.util.*; | [
"com.salesforce.dva",
"java.util"
] | com.salesforce.dva; java.util; | 2,802,706 |
@Override
public void run(CommandContext context) {
String ref = null;
if (refList != null && !refList.isEmpty()) {
ref = refList.get(0);
}
LsTreeOp.Strategy lsStrategy = LsTreeOp.Strategy.CHILDREN;
if (recursive) {
if (includeTrees) {
... | void function(CommandContext context) { String ref = null; if (refList != null && !refList.isEmpty()) { ref = refList.get(0); } LsTreeOp.Strategy lsStrategy = LsTreeOp.Strategy.CHILDREN; if (recursive) { if (includeTrees) { lsStrategy = LsTreeOp.Strategy.DEPTHFIRST; } else if (onlyTrees) { lsStrategy = LsTreeOp.Strateg... | /**
* Runs the command and builds the appropriate response
*
* @param context - the context to use for this command
*/ | Runs the command and builds the appropriate response | run | {
"repo_name": "state-hiu/GeoGit",
"path": "src/web/api/src/main/java/org/geogit/web/api/commands/LsTree.java",
"license": "bsd-3-clause",
"size": 3334
} | [
"java.util.Iterator",
"org.geogit.api.CommandLocator",
"org.geogit.api.NodeRef",
"org.geogit.api.plumbing.LsTreeOp",
"org.geogit.web.api.CommandContext",
"org.geogit.web.api.CommandResponse"
] | import java.util.Iterator; import org.geogit.api.CommandLocator; import org.geogit.api.NodeRef; import org.geogit.api.plumbing.LsTreeOp; import org.geogit.web.api.CommandContext; import org.geogit.web.api.CommandResponse; | import java.util.*; import org.geogit.api.*; import org.geogit.api.plumbing.*; import org.geogit.web.api.*; | [
"java.util",
"org.geogit.api",
"org.geogit.web"
] | java.util; org.geogit.api; org.geogit.web; | 1,276,553 |
public boolean compare(@NotNull final String dn,
@NotNull final LDAPAttribute attribute)
throws LDAPException
{
return compare(dn, attribute, null);
} | boolean function(@NotNull final String dn, @NotNull final LDAPAttribute attribute) throws LDAPException { return compare(dn, attribute, null); } | /**
* Indicates whether the specified entry has the given attribute value.
*
* @param dn The DN of the entry to compare.
* @param attribute The attribute (which must have exactly one value) to use
* for the comparison.
*
* @return {@code true} if the compare matched t... | Indicates whether the specified entry has the given attribute value | compare | {
"repo_name": "UnboundID/ldapsdk",
"path": "src/com/unboundid/ldap/sdk/migrate/ldapjdk/LDAPConnection.java",
"license": "gpl-2.0",
"size": 46875
} | [
"com.unboundid.util.NotNull"
] | import com.unboundid.util.NotNull; | import com.unboundid.util.*; | [
"com.unboundid.util"
] | com.unboundid.util; | 1,592,553 |
private void checkVersionInBackground() {
SwingWorker<Boolean, Void> worker = new SwingWorker<Boolean, Void>() {
private String message = null;
private final BitcoinController finalController = controller;
private StringBuffer stringBuffer = new StringBuffer(); | void function() { SwingWorker<Boolean, Void> worker = new SwingWorker<Boolean, Void>() { private String message = null; private final BitcoinController finalController = controller; private StringBuffer stringBuffer = new StringBuffer(); | /**
* Get the URL contents in a background thread and check the version.
*/ | Get the URL contents in a background thread and check the version | checkVersionInBackground | {
"repo_name": "ychaim/sparkbit",
"path": "src/main/java/org/multibit/network/AlertManager.java",
"license": "mit",
"size": 22067
} | [
"javax.swing.SwingWorker",
"org.multibit.controller.bitcoin.BitcoinController"
] | import javax.swing.SwingWorker; import org.multibit.controller.bitcoin.BitcoinController; | import javax.swing.*; import org.multibit.controller.bitcoin.*; | [
"javax.swing",
"org.multibit.controller"
] | javax.swing; org.multibit.controller; | 391,493 |
protected Session login(Credentials credentials) {
try {
Session session = repository.login(credentials);
synchronized (sessions) {
sessions.add(session);
}
return session;
} catch (RepositoryException e) {
throw new RuntimeException... | Session function(Credentials credentials) { try { Session session = repository.login(credentials); synchronized (sessions) { sessions.add(session); } return session; } catch (RepositoryException e) { throw new RuntimeException(e); } } | /**
* Returns a new session for the given user
* that will be automatically closed once
* all the iterations of this test have been executed.
*
* @param credentials the user credentials
* @return user session
*/ | Returns a new session for the given user that will be automatically closed once all the iterations of this test have been executed | login | {
"repo_name": "AndreasAbdi/jackrabbit-oak",
"path": "oak-run/src/main/java/org/apache/jackrabbit/oak/benchmark/AbstractTest.java",
"license": "apache-2.0",
"size": 18336
} | [
"javax.jcr.Credentials",
"javax.jcr.RepositoryException",
"javax.jcr.Session"
] | import javax.jcr.Credentials; import javax.jcr.RepositoryException; import javax.jcr.Session; | import javax.jcr.*; | [
"javax.jcr"
] | javax.jcr; | 2,495,671 |
public static String[] getUserRoles(String username) throws DataServiceFault {
RealmService realmService = DataServicesDSComponent.getRealmService();
RegistryService registryService = DataServicesDSComponent.getRegistryService();
String tenantDomain = PrivilegedCarbonContext.getThreadLocalCarbo... | static String[] function(String username) throws DataServiceFault { RealmService realmService = DataServicesDSComponent.getRealmService(); RegistryService registryService = DataServicesDSComponent.getRegistryService(); String tenantDomain = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantDomain(); int te... | /**
* Retrieves the current user's roles given the username.
*
* @param username The username
* @return The user roles
* @throws DataServiceFault
*/ | Retrieves the current user's roles given the username | getUserRoles | {
"repo_name": "madhawa-gunasekara/carbon-data",
"path": "components/data-services/org.wso2.carbon.dataservices.core/src/main/java/org/wso2/carbon/dataservices/core/DBUtils.java",
"license": "apache-2.0",
"size": 54182
} | [
"org.wso2.carbon.context.PrivilegedCarbonContext",
"org.wso2.carbon.dataservices.core.internal.DataServicesDSComponent",
"org.wso2.carbon.registry.core.service.RegistryService",
"org.wso2.carbon.user.core.UserRealm",
"org.wso2.carbon.user.core.service.RealmService",
"org.wso2.carbon.utils.multitenancy.Mul... | import org.wso2.carbon.context.PrivilegedCarbonContext; import org.wso2.carbon.dataservices.core.internal.DataServicesDSComponent; import org.wso2.carbon.registry.core.service.RegistryService; import org.wso2.carbon.user.core.UserRealm; import org.wso2.carbon.user.core.service.RealmService; import org.wso2.carbon.utils... | import org.wso2.carbon.context.*; import org.wso2.carbon.dataservices.core.internal.*; import org.wso2.carbon.registry.core.service.*; import org.wso2.carbon.user.core.*; import org.wso2.carbon.user.core.service.*; import org.wso2.carbon.utils.multitenancy.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 1,535,195 |
private void addUnResolvedUsesToStack(YangNode node) {
YangNode curNode = node.getChild();
while (curNode != null) {
if (curNode instanceof YangUses) {
YangEntityToResolveInfoImpl<YangUses> unResolvedEntityInfo = new YangEntityToResolveInfoImpl<>();
... | void function(YangNode node) { YangNode curNode = node.getChild(); while (curNode != null) { if (curNode instanceof YangUses) { YangEntityToResolveInfoImpl<YangUses> unResolvedEntityInfo = new YangEntityToResolveInfoImpl<>(); unResolvedEntityInfo.setEntityToResolve((YangUses) curNode); unResolvedEntityInfo.setHolderOfE... | /**
* Returns if there is any unresolved uses in grouping.
*
* @param node grouping/typedef node
*/ | Returns if there is any unresolved uses in grouping | addUnResolvedUsesToStack | {
"repo_name": "VinodKumarS-Huawei/ietf96yang",
"path": "utils/yangutils/plugin/src/main/java/org/onosproject/yangutils/linker/impl/YangResolutionInfoImpl.java",
"license": "apache-2.0",
"size": 80538
} | [
"org.onosproject.yangutils.datamodel.YangEntityToResolveInfoImpl",
"org.onosproject.yangutils.datamodel.YangNode",
"org.onosproject.yangutils.datamodel.YangUses"
] | import org.onosproject.yangutils.datamodel.YangEntityToResolveInfoImpl; import org.onosproject.yangutils.datamodel.YangNode; import org.onosproject.yangutils.datamodel.YangUses; | import org.onosproject.yangutils.datamodel.*; | [
"org.onosproject.yangutils"
] | org.onosproject.yangutils; | 751,332 |
public void setPreparedStatementType(Class<? extends PreparedStatement> preparedStatementType) {
this.preparedStatementType = preparedStatementType;
} | void function(Class<? extends PreparedStatement> preparedStatementType) { this.preparedStatementType = preparedStatementType; } | /**
* Set the vendor's PreparedStatement type, e.g. {@code oracle.jdbc.OraclePreparedStatement}.
*/ | Set the vendor's PreparedStatement type, e.g. oracle.jdbc.OraclePreparedStatement | setPreparedStatementType | {
"repo_name": "boggad/jdk9-sample",
"path": "sample-catalog/spring-jdk9/src/spring.jdbc/org/springframework/jdbc/support/nativejdbc/Jdbc4NativeJdbcExtractor.java",
"license": "mit",
"size": 4266
} | [
"java.sql.PreparedStatement"
] | import java.sql.PreparedStatement; | import java.sql.*; | [
"java.sql"
] | java.sql; | 534,573 |
Call<ResponseBody> getArrayItemNullAsync(final ServiceCallback<List<List<String>>> serviceCallback); | Call<ResponseBody> getArrayItemNullAsync(final ServiceCallback<List<List<String>>> serviceCallback); | /**
* Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']].
*
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @return the {@link Call} object
*/ | Get an array of array of strings [['1', '2', '3'], null, ['7', '8', '9']] | getArrayItemNullAsync | {
"repo_name": "vulcansteel/autorest",
"path": "AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/ArrayOperations.java",
"license": "mit",
"size": 61287
} | [
"com.microsoft.rest.ServiceCallback",
"com.squareup.okhttp.ResponseBody",
"java.util.List"
] | import com.microsoft.rest.ServiceCallback; import com.squareup.okhttp.ResponseBody; import java.util.List; | import com.microsoft.rest.*; import com.squareup.okhttp.*; import java.util.*; | [
"com.microsoft.rest",
"com.squareup.okhttp",
"java.util"
] | com.microsoft.rest; com.squareup.okhttp; java.util; | 1,729,182 |
Configuration.defaultInit();
org.apache.hadoop.conf.Configuration hadoopConfig = new org.apache.hadoop.conf.Configuration();
long beforeSize = Configuration.toMap().size();
ConfUtils.mergeHadoopConfiguration(hadoopConfig);
long afterSize = Configuration.toMap().size();
Assert.assertEquals(beforeSiz... | Configuration.defaultInit(); org.apache.hadoop.conf.Configuration hadoopConfig = new org.apache.hadoop.conf.Configuration(); long beforeSize = Configuration.toMap().size(); ConfUtils.mergeHadoopConfiguration(hadoopConfig); long afterSize = Configuration.toMap().size(); Assert.assertEquals(beforeSize, afterSize); } | /**
* Test for the {@link ConfUtils#mergeHadoopConfiguration} method for an empty configuration.
*/ | Test for the <code>ConfUtils#mergeHadoopConfiguration</code> method for an empty configuration | mergeEmptyHadoopConfiguration | {
"repo_name": "bit-zyl/Alluxio-Nvdimm",
"path": "core/client/src/test/java/alluxio/hadoop/ConfUtilsTest.java",
"license": "apache-2.0",
"size": 2586
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 1,963,861 |
@Test
public void testBug2176967Off() {
final String badJsDoc = "\n var x";
Compiler compiler = new Compiler();
CompilerOptions options = createNewFlagBasedOptions();
options.setWarningLevel(DiagnosticGroups.NON_STANDARD_JSDOC, CheckLevel.OFF);
compiler.compile(
SourceFile.fromCode("ex... | void function() { final String badJsDoc = STR; Compiler compiler = new Compiler(); CompilerOptions options = createNewFlagBasedOptions(); options.setWarningLevel(DiagnosticGroups.NON_STANDARD_JSDOC, CheckLevel.OFF); compiler.compile( SourceFile.fromCode(STR, STRtest.js", badJsDoc), options); assertThat(compiler.getWarn... | /**
* Make sure that non-standard JSDoc annotation is not a hard error nor warning when it is off.
*/ | Make sure that non-standard JSDoc annotation is not a hard error nor warning when it is off | testBug2176967Off | {
"repo_name": "GoogleChromeLabs/chromeos_smart_card_connector",
"path": "third_party/closure-compiler/src/test/com/google/javascript/jscomp/CompilerTest.java",
"license": "apache-2.0",
"size": 117035
} | [
"com.google.common.truth.Truth"
] | import com.google.common.truth.Truth; | import com.google.common.truth.*; | [
"com.google.common"
] | com.google.common; | 2,590,378 |
@Test
public void testNodeUsageAfterDecommissioned()
throws IOException, InterruptedException {
nodeUsageVerification(2, new long[] { 26384L, 26384L },
AdminStates.DECOMMISSIONED);
} | void function() throws IOException, InterruptedException { nodeUsageVerification(2, new long[] { 26384L, 26384L }, AdminStates.DECOMMISSIONED); } | /**
* Decommissioned node should not be considered while calculating node usage
* @throws InterruptedException
*/ | Decommissioned node should not be considered while calculating node usage | testNodeUsageAfterDecommissioned | {
"repo_name": "leechoongyon/HadoopSourceAnalyze",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestDecommission.java",
"license": "apache-2.0",
"size": 54893
} | [
"java.io.IOException",
"org.apache.hadoop.hdfs.protocol.DatanodeInfo"
] | import java.io.IOException; import org.apache.hadoop.hdfs.protocol.DatanodeInfo; | import java.io.*; import org.apache.hadoop.hdfs.protocol.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 904,365 |
SceneNode createNode(); | SceneNode createNode(); | /**
* Creates and returns a new scene node. This method modifies the database. This method modifies the database.
*
* @return the new scene node
*/ | Creates and returns a new scene node. This method modifies the database. This method modifies the database | createNode | {
"repo_name": "dfki-asr-fitman/c3dwv",
"path": "compass-business-impl/src/main/java/de/dfki/asr/compass/business/api/SceneTreeManager.java",
"license": "apache-2.0",
"size": 5698
} | [
"de.dfki.asr.compass.model.SceneNode"
] | import de.dfki.asr.compass.model.SceneNode; | import de.dfki.asr.compass.model.*; | [
"de.dfki.asr"
] | de.dfki.asr; | 1,826,191 |
@Test
public void testEmptySubtaskStateLeadsToStatelessAcknowledgment() throws Exception {
// latch blocks until the async checkpoint thread acknowledges
final OneShotLatch checkpointCompletedLatch = new OneShotLatch();
final List<SubtaskState> checkpointResult = new ArrayList<>(1); | void function() throws Exception { final OneShotLatch checkpointCompletedLatch = new OneShotLatch(); final List<SubtaskState> checkpointResult = new ArrayList<>(1); | /**
* FLINK-5985
*
* <p>This test ensures that empty snapshots (no op/keyed stated whatsoever) will be reported as stateless tasks. This
* happens by translating an empty {@link SubtaskState} into reporting 'null' to #acknowledgeCheckpoint.
*/ | FLINK-5985 This test ensures that empty snapshots (no op/keyed stated whatsoever) will be reported as stateless tasks. This happens by translating an empty <code>SubtaskState</code> into reporting 'null' to #acknowledgeCheckpoint | testEmptySubtaskStateLeadsToStatelessAcknowledgment | {
"repo_name": "darionyaphet/flink",
"path": "flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/tasks/StreamTaskTest.java",
"license": "apache-2.0",
"size": 73248
} | [
"java.util.ArrayList",
"java.util.List",
"org.apache.flink.core.testutils.OneShotLatch",
"org.apache.flink.runtime.checkpoint.SubtaskState"
] | import java.util.ArrayList; import java.util.List; import org.apache.flink.core.testutils.OneShotLatch; import org.apache.flink.runtime.checkpoint.SubtaskState; | import java.util.*; import org.apache.flink.core.testutils.*; import org.apache.flink.runtime.checkpoint.*; | [
"java.util",
"org.apache.flink"
] | java.util; org.apache.flink; | 1,276,209 |
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PagedResponse<String>> getMemberGroupsSinglePageAsync(
String objectId, boolean securityEnabledOnly, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
new Illega... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<PagedResponse<String>> function( String objectId, boolean securityEnabledOnly, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (objectId == null) { return Mono.error(new IllegalArgumentException(ST... | /**
* Gets a collection that contains the object IDs of the groups of which the user is a member.
*
* @param objectId The object ID of the user for which to get group membership.
* @param securityEnabledOnly If true, only membership in security-enabled groups should be checked. Otherwise,
* ... | Gets a collection that contains the object IDs of the groups of which the user is a member | getMemberGroupsSinglePageAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-authorization/src/main/java/com/azure/resourcemanager/authorization/implementation/UsersClientImpl.java",
"license": "mit",
"size": 50884
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedResponse",
"com.azure.core.http.rest.PagedResponseBase",
"com.azure.core.util.Context",
"com.azure.resourcemanager.authorization.models.UserGetMemberGroupsParameters"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.util.Context; import com.azure.resourcemanager.authorization.models.UserGetMemberGroupsParameters; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.authorization.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 1,714,796 |
protected ViewItem getViewButton(ViewBuilder viewBuilder, String buttonName) {
ViewItem viewButton = null;
if (viewBuilder.getToolbar() != null) {
for (ViewItem button : viewBuilder.getToolbar()) {
if (button.getName().equals(buttonName)) {
viewButton = button;
break;
}
}
}
if (vie... | ViewItem function(ViewBuilder viewBuilder, String buttonName) { ViewItem viewButton = null; if (viewBuilder.getToolbar() != null) { for (ViewItem button : viewBuilder.getToolbar()) { if (button.getName().equals(buttonName)) { viewButton = button; break; } } } if (viewButton == null) { viewButton = new ViewItem(buttonNa... | /**
* Method to find/create ViewButton by button name from ViewBuilder.
*
* @param viewBuilder
* ViewBuilder to check for button.
* @param buttonName
* Name of button to search.
* @return Button searched or created.
*/ | Method to find/create ViewButton by button name from ViewBuilder | getViewButton | {
"repo_name": "jph-axelor/axelor-business-suite",
"path": "axelor-studio/src/main/java/com/axelor/studio/service/wkf/WkfService.java",
"license": "agpl-3.0",
"size": 13857
} | [
"com.axelor.studio.db.ViewBuilder",
"com.axelor.studio.db.ViewItem"
] | import com.axelor.studio.db.ViewBuilder; import com.axelor.studio.db.ViewItem; | import com.axelor.studio.db.*; | [
"com.axelor.studio"
] | com.axelor.studio; | 186,150 |
@GET
@Produces({"application/json" })
@Path("/{connection}/{catalog}/{schema}/{cube}/member/{member}")
public SaikuMember getMember(
@PathParam("connection") String connectionName,
@PathParam("catalog") String catalogName,
@PathParam("schema") String schemaName,
@PathParam("cube") String cubeName, ... | @Produces({STR }) @Path(STR) SaikuMember function( @PathParam(STR) String connectionName, @PathParam(STR) String catalogName, @PathParam(STR) String schemaName, @PathParam("cube") String cubeName, @PathParam(STR) String memberName) { if ("null".equals(schemaName)) { schemaName = ""; } SaikuCube cube = new SaikuCube(con... | /**
* Get all info for given member
* @return
*/ | Get all info for given member | getMember | {
"repo_name": "borderlayout/this-saiku26-parent",
"path": "saiku-core/saiku-web/src/main/java/org/saiku/web/rest/resources/OlapDiscoverResource.java",
"license": "apache-2.0",
"size": 12112
} | [
"javax.ws.rs.Path",
"javax.ws.rs.PathParam",
"javax.ws.rs.Produces",
"org.saiku.olap.dto.SaikuCube",
"org.saiku.olap.dto.SaikuMember"
] | import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import org.saiku.olap.dto.SaikuCube; import org.saiku.olap.dto.SaikuMember; | import javax.ws.rs.*; import org.saiku.olap.dto.*; | [
"javax.ws",
"org.saiku.olap"
] | javax.ws; org.saiku.olap; | 288,730 |
public boolean addUser(String username, String password) throws ConfigurationException {
if (!propertiesConfiguration.containsKey(username)) {
propertiesConfiguration.addProperty(username, password);
propertiesConfiguration.save();
return true;
} else {
re... | boolean function(String username, String password) throws ConfigurationException { if (!propertiesConfiguration.containsKey(username)) { propertiesConfiguration.addProperty(username, password); propertiesConfiguration.save(); return true; } else { return false; } } | /**
* Add a user
*
* @param username username of the user, which should be created
* @param password password, which should be set
* @return true, if user doesn't exists and was created, false if user already exists.
* @throws ConfigurationException is thrown if there is a problem during s... | Add a user | addUser | {
"repo_name": "hivemq/file-auth-plugin-utility",
"path": "src/main/java/com/dcsquare/fileauthplugin/utility/properties/CredentialProperties.java",
"license": "apache-2.0",
"size": 4276
} | [
"org.apache.commons.configuration.ConfigurationException"
] | import org.apache.commons.configuration.ConfigurationException; | import org.apache.commons.configuration.*; | [
"org.apache.commons"
] | org.apache.commons; | 641,424 |
private Set<String> getUniqueNames(List<Pair<String, String>> tables) {
Set<String> names = new HashSet<>();
for (Pair<String, String> table : tables) {
names.add(getTableName(table));
}
return names;
} | Set<String> function(List<Pair<String, String>> tables) { Set<String> names = new HashSet<>(); for (Pair<String, String> table : tables) { names.add(getTableName(table)); } return names; } | /**
* Get the unique names from a table list. The list may contain some cases where
* both the dbname and tablename are provided and some cases where the dbname is
* null, in which case we need to grab the dbname from the SessionState.
*/ | Get the unique names from a table list. The list may contain some cases where both the dbname and tablename are provided and some cases where the dbname is null, in which case we need to grab the dbname from the SessionState | getUniqueNames | {
"repo_name": "lirui-apache/hive",
"path": "ql/src/java/org/apache/hadoop/hive/ql/parse/CacheTableHelper.java",
"license": "apache-2.0",
"size": 9321
} | [
"java.util.HashSet",
"java.util.List",
"java.util.Set",
"org.apache.commons.lang3.tuple.Pair"
] | import java.util.HashSet; import java.util.List; import java.util.Set; import org.apache.commons.lang3.tuple.Pair; | import java.util.*; import org.apache.commons.lang3.tuple.*; | [
"java.util",
"org.apache.commons"
] | java.util; org.apache.commons; | 1,607,966 |
public static boolean loadIndex(String filename) {
File file = new File(filename);
try {
BufferedReader in = new BufferedReader(new FileReader(file));
// read total number of words
total = Integer.parseInt(in.readLine());
// read number of distinct words
distinct = Integer.parseInt(in.readL... | static boolean function(String filename) { File file = new File(filename); try { BufferedReader in = new BufferedReader(new FileReader(file)); total = Integer.parseInt(in.readLine()); distinct = Integer.parseInt(in.readLine()); index = new Hashtable<String, Integer>(2 * distinct); String word; int frequency; for (int i... | /**
* Loads an index of word frequencies from an input file.
*
* @param filename name of the input file containing the index
* @return true, iff the index was loaded successfully
*/ | Loads an index of word frequencies from an input file | loadIndex | {
"repo_name": "bogdartysh/openqa",
"path": "src/main/java/info/ephyra/nlp/indices/WordFrequencies.java",
"license": "gpl-3.0",
"size": 8586
} | [
"java.io.BufferedReader",
"java.io.File",
"java.io.FileReader",
"java.io.IOException",
"java.util.Hashtable"
] | import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.Hashtable; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 688,418 |
@Test
public void testGetIndex() {
TimeSeries series = new TimeSeries("Series");
assertEquals(-1, series.getIndex(new Month(1, 2003)));
series.add(new Month(1, 2003), 45.0);
assertEquals(0, series.getIndex(new Month(1, 2003)));
assertEquals(-1, series.getIndex(new... | void function() { TimeSeries series = new TimeSeries(STR); assertEquals(-1, series.getIndex(new Month(1, 2003))); series.add(new Month(1, 2003), 45.0); assertEquals(0, series.getIndex(new Month(1, 2003))); assertEquals(-1, series.getIndex(new Month(12, 2002))); assertEquals(-2, series.getIndex(new Month(2, 2003))); ser... | /**
* Some checks for the getIndex() method.
*/ | Some checks for the getIndex() method | testGetIndex | {
"repo_name": "greearb/jfreechart-fse-ct",
"path": "src/test/java/org/jfree/data/time/TimeSeriesTest.java",
"license": "lgpl-2.1",
"size": 36986
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 1,308,934 |
@AtMostOnce
public void modifyCachePool(CachePoolInfo req) throws IOException; | void function(CachePoolInfo req) throws IOException; | /**
* Modify an existing cache pool.
*
* @param req
* The request to modify a cache pool.
* @throws IOException
* If the request could not be completed.
*/ | Modify an existing cache pool | modifyCachePool | {
"repo_name": "huiyi-learning/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocol/ClientProtocol.java",
"license": "apache-2.0",
"size": 58668
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,977,944 |
public RouteDefinition getOriginalRoute() {
return originalRoute;
} | RouteDefinition function() { return originalRoute; } | /**
* Gets the original route to be adviced.
*
* @return the original route.
*/ | Gets the original route to be adviced | getOriginalRoute | {
"repo_name": "onders86/camel",
"path": "camel-core/src/main/java/org/apache/camel/builder/AdviceWithRouteBuilder.java",
"license": "apache-2.0",
"size": 7790
} | [
"org.apache.camel.model.RouteDefinition"
] | import org.apache.camel.model.RouteDefinition; | import org.apache.camel.model.*; | [
"org.apache.camel"
] | org.apache.camel; | 2,842,041 |
public synchronized void putAll(Map<Key, Value> m) {
for (Map.Entry<Key, Value> entry : m.entrySet()) {
this.put(entry.getKey(), entry.getValue());
}
} | synchronized void function(Map<Key, Value> m) { for (Map.Entry<Key, Value> entry : m.entrySet()) { this.put(entry.getKey(), entry.getValue()); } } | /**
* Puts all the values from the given map into the cache.
*
* @param m The map containing entries to put into the cache
*/ | Puts all the values from the given map into the cache | putAll | {
"repo_name": "davecramer/pgjdbc",
"path": "pgjdbc/src/main/java/org/postgresql/util/LruCache.java",
"license": "bsd-2-clause",
"size": 4753
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 568,363 |
private void installGems() throws CancellationException, RuntimeException, IOException, InterruptedException {
String msfPath = System.getMsfPath();
mBuilder.setContentTitle(getString(R.string.installing_gems))
.setContentText(getString(R.string.installing_bundle))
.setContentInfo("")... | void function() throws CancellationException, RuntimeException, IOException, InterruptedException { String msfPath = System.getMsfPath(); mBuilder.setContentTitle(getString(R.string.installing_gems)) .setContentText(getString(R.string.installing_bundle)) .setContentInfo(STRgem install bundleSTRcancelled while install b... | /**
* install gems required by the MSF
*/ | install gems required by the MSF | installGems | {
"repo_name": "wangandmu/c",
"path": "dSploit/src/it/evilsocket/dsploit/core/UpdateService.java",
"license": "gpl-3.0",
"size": 48400
} | [
"java.io.IOException",
"java.util.concurrent.CancellationException"
] | import java.io.IOException; import java.util.concurrent.CancellationException; | import java.io.*; import java.util.concurrent.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 816,265 |
public static DelegateClassLoader forPlugins(Stream<URL> urls,
ClassLoader appClassLoader) {
Require.nonNull(urls, "urls");
Require.nonNull(appClassLoader, "parent");
final Collection<DependencyResolver> plugins = new ArrayList<>();
final Collection<PluginInformation> in... | static DelegateClassLoader function(Stream<URL> urls, ClassLoader appClassLoader) { Require.nonNull(urls, "urls"); Require.nonNull(appClassLoader, STR); final Collection<DependencyResolver> plugins = new ArrayList<>(); final Collection<PluginInformation> information = new ArrayList<>(); final DependencyResolver delegat... | /**
* Creates a new ClassLoader which provides access to all plugins given by
* the collection of URLs.
*
* @param urls The URLs, each pointing to a plugin to be loaded.
* @param appClassLoader The ClassLoader to use as parent.
* @return The created ClassLoader.
*/ | Creates a new ClassLoader which provides access to all plugins given by the collection of URLs | forPlugins | {
"repo_name": "skuzzle/TinyPlugz",
"path": "tiny-plugz/src/main/java/de/skuzzle/tinyplugz/internal/DelegateClassLoader.java",
"license": "mit",
"size": 4918
} | [
"de.skuzzle.tinyplugz.PluginInformation",
"de.skuzzle.tinyplugz.util.Require",
"java.security.AccessController",
"java.security.PrivilegedAction",
"java.util.ArrayList",
"java.util.Collection",
"java.util.Iterator",
"java.util.stream.Stream"
] | import de.skuzzle.tinyplugz.PluginInformation; import de.skuzzle.tinyplugz.util.Require; import java.security.AccessController; import java.security.PrivilegedAction; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.stream.Stream; | import de.skuzzle.tinyplugz.*; import de.skuzzle.tinyplugz.util.*; import java.security.*; import java.util.*; import java.util.stream.*; | [
"de.skuzzle.tinyplugz",
"java.security",
"java.util"
] | de.skuzzle.tinyplugz; java.security; java.util; | 1,941,902 |
public IgniteInternalFuture<?> finishExplicitLocks(AffinityTopologyVersion topVer) {
GridCompoundFuture<Object, Object> res = new CacheObjectsReleaseFuture<>("ExplicitLock", topVer);
for (GridCacheExplicitLockSpan span : pendingExplicit.values()) {
AffinityTopologyVersion snapshot = spa... | IgniteInternalFuture<?> function(AffinityTopologyVersion topVer) { GridCompoundFuture<Object, Object> res = new CacheObjectsReleaseFuture<>(STR, topVer); for (GridCacheExplicitLockSpan span : pendingExplicit.values()) { AffinityTopologyVersion snapshot = span.topologyVersion(); if (snapshot != null && snapshot.compareT... | /**
* Creates a future that will wait for all explicit locks acquired on given topology
* version to be released.
*
* @param topVer Topology version to wait for.
* @return Explicit locks release future.
*/ | Creates a future that will wait for all explicit locks acquired on given topology version to be released | finishExplicitLocks | {
"repo_name": "NSAmelchev/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheMvccManager.java",
"license": "apache-2.0",
"size": 48322
} | [
"org.apache.ignite.internal.IgniteInternalFuture",
"org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion",
"org.apache.ignite.internal.util.future.GridCompoundFuture"
] | import org.apache.ignite.internal.IgniteInternalFuture; import org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion; import org.apache.ignite.internal.util.future.GridCompoundFuture; | import org.apache.ignite.internal.*; import org.apache.ignite.internal.processors.affinity.*; import org.apache.ignite.internal.util.future.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 1,277,103 |
protected void setMarginsAfterMeasure() {
View timerStart = findViewById(R.id.timer_start);
//View timerDisplay = findViewById(R.id.timer_time_display);
// if (timerStart != null && timerDisplay != null) {
// MarginLayoutParams marginLayoutParams =
// (MarginLayo... | void function() { View timerStart = findViewById(R.id.timer_start); } | /**
* To properly center the TimerView across from the dial pad, append a bottom margin that
* matches the measured height of the start button that is below the dial pad.
*/ | To properly center the TimerView across from the dial pad, append a bottom margin that matches the measured height of the start button that is below the dial pad | setMarginsAfterMeasure | {
"repo_name": "miswenwen/My_bird_work",
"path": "Bird_work/我的项目/AliDeskClock/AliDeskClock_liuqipeng_11_11_drawaniamtion/src/com/android/deskclock/TimerSetupView.java",
"license": "apache-2.0",
"size": 7460
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 1,990,524 |
@ApiModelProperty(example = "null", value = "Specific tax rate ex 3.5 (3.5%)")
public Double getSrvAmount() {
return srvAmount;
} | @ApiModelProperty(example = "null", value = STR) Double function() { return srvAmount; } | /**
* Specific tax rate ex 3.5 (3.5%)
* @return srvAmount
**/ | Specific tax rate ex 3.5 (3.5%) | getSrvAmount | {
"repo_name": "Avalara/avataxbr-clients",
"path": "java-client/src/main/java/io/swagger/client/model/TaxTypeRate.java",
"license": "gpl-3.0",
"size": 6458
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 628,715 |
private static AuthnContextClassRef makeAuthnContextClassRef(String uri) {
AuthnContextClassRef classRef = authnContextClassRefBuilder.buildObject();
classRef.setAuthnContextClassRef(uri);
return classRef;
} | static AuthnContextClassRef function(String uri) { AuthnContextClassRef classRef = authnContextClassRefBuilder.buildObject(); classRef.setAuthnContextClassRef(uri); return classRef; } | /**
* Static factory for SAML {@link AuthnContextClassRef} objects.
*
* @param uri A URI identifying an authentication context class.
* @return A new <code>AuthnContextClassRef</code> object.
*/ | Static factory for SAML <code>AuthnContextClassRef</code> objects | makeAuthnContextClassRef | {
"repo_name": "joesoc/plexi",
"path": "src/com/google/enterprise/adaptor/secmgr/saml/OpenSamlUtil.java",
"license": "apache-2.0",
"size": 42624
} | [
"org.opensaml.saml2.core.AuthnContextClassRef"
] | import org.opensaml.saml2.core.AuthnContextClassRef; | import org.opensaml.saml2.core.*; | [
"org.opensaml.saml2"
] | org.opensaml.saml2; | 1,447,722 |
public void onBlockAdded(World worldIn, BlockPos pos, IBlockState state)
{
if (!worldIn.isRemote && worldIn.getTileEntity(pos) == null)
{
this.checkForMove(worldIn, pos, state);
}
}
| void function(World worldIn, BlockPos pos, IBlockState state) { if (!worldIn.isRemote && worldIn.getTileEntity(pos) == null) { this.checkForMove(worldIn, pos, state); } } | /**
* Called after the block is set in the Chunk data, but before the Tile Entity is set
*/ | Called after the block is set in the Chunk data, but before the Tile Entity is set | onBlockAdded | {
"repo_name": "InverMN/MinecraftForgeReference",
"path": "MinecraftBlocks2/BlockPistonBase.java",
"license": "unlicense",
"size": 20102
} | [
"net.minecraft.block.state.IBlockState",
"net.minecraft.util.math.BlockPos",
"net.minecraft.world.World"
] | import net.minecraft.block.state.IBlockState; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; | import net.minecraft.block.state.*; import net.minecraft.util.math.*; import net.minecraft.world.*; | [
"net.minecraft.block",
"net.minecraft.util",
"net.minecraft.world"
] | net.minecraft.block; net.minecraft.util; net.minecraft.world; | 1,249,926 |
public Date getEnd();
| Date function(); | /**
* Returns the end date/time. This will always be on or after the
* start date.
*
* @return The end date/time (never <code>null</code>).
*/ | Returns the end date/time. This will always be on or after the start date | getEnd | {
"repo_name": "nologic/nabs",
"path": "client/trunk/shared/libraries/jfreechart-1.0.5/source/org/jfree/data/time/TimePeriod.java",
"license": "gpl-2.0",
"size": 2383
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 376,925 |
public void activateNetworkServer() throws IOException
{
_netMain.activateServer();
} | void function() throws IOException { _netMain.activateServer(); } | /**
* Activate the network server.
*
* @throws IOException
* if an error occurred during the activation of the server.
*/ | Activate the network server | activateNetworkServer | {
"repo_name": "BenObiWan/game",
"path": "src/game_core/src/game/core/ApplicationCore.java",
"license": "gpl-3.0",
"size": 2708
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,457,438 |
public Object[] unWrap(Object jaxbObject,
List<String> childNames) throws JAXBWrapperException; | Object[] function(Object jaxbObject, List<String> childNames) throws JAXBWrapperException; | /**
* unwrap Returns the list of child objects of the jaxb object
*
* @param jaxbObject that represents the type
* @param childNames list of xml child names as String
* @return list of Objects in the same order as the element names. Note: This method creates a
* PropertyDescriptor ... | unwrap Returns the list of child objects of the jaxb object | unWrap | {
"repo_name": "arunasujith/wso2-axis2",
"path": "modules/jaxws/src/org/apache/axis2/jaxws/wrapper/JAXBWrapperTool.java",
"license": "apache-2.0",
"size": 5033
} | [
"java.util.List",
"org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperException"
] | import java.util.List; import org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperException; | import java.util.*; import org.apache.axis2.jaxws.wrapper.impl.*; | [
"java.util",
"org.apache.axis2"
] | java.util; org.apache.axis2; | 1,553,851 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.