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
List<DataSet> getDataSetsForMobile();
List<DataSet> getDataSetsForMobile();
/** * Returns all DataSets that can be collected through mobile (all * organisation unit). */
Returns all DataSets that can be collected through mobile (all organisation unit)
getDataSetsForMobile
{ "repo_name": "mortenoh/dhis2-core", "path": "dhis-2/dhis-api/src/main/java/org/hisp/dhis/dataset/DataSetService.java", "license": "bsd-3-clause", "size": 14270 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,636,628
EReference getPlace_Port();
EReference getPlace_Port();
/** * Returns the meta object for the containment reference '{@link io.github.abelgomez.cpntools.Place#getPort <em>Port</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Port</em>'. * @see io.github.abelgomez.cpntools.Place#getPort() ...
Returns the meta object for the containment reference '<code>io.github.abelgomez.cpntools.Place#getPort Port</code>'.
getPlace_Port
{ "repo_name": "abelgomez/cpntools.toolkit", "path": "plugins/io.github.abelgomez.cpntools/src/io/github/abelgomez/cpntools/CpntoolsPackage.java", "license": "epl-1.0", "size": 204644 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
188,049
private long sendNiciraRoleRequest(OFControllerRole role, long xid){ // Construct the role request message if(factory.getVersion().compareTo(OFVersion.OF_12) < 0) { OFNiciraControllerRoleRequest.Builder builder = factory.buildNiciraControllerRoleRequest(); xid = xid <= 0 ? factory.nextXid() : ...
long function(OFControllerRole role, long xid){ if(factory.getVersion().compareTo(OFVersion.OF_12) < 0) { OFNiciraControllerRoleRequest.Builder builder = factory.buildNiciraControllerRoleRequest(); xid = xid <= 0 ? factory.nextXid() : xid; builder.setXid(xid); OFNiciraControllerRole niciraRole = NiciraRoleUtils.ofRoleT...
/** * Send Nicira role request message to the switch requesting the * specified role. * * @param role, role to request * @param xid, if greater than 0, the XID to use in the request */
Send Nicira role request message to the switch requesting the specified role
sendNiciraRoleRequest
{ "repo_name": "cbarrin/EAGERFloodlight", "path": "src/main/java/net/floodlightcontroller/core/internal/OFSwitchHandshakeHandler.java", "license": "apache-2.0", "size": 63500 }
[ "org.projectfloodlight.openflow.protocol.OFControllerRole", "org.projectfloodlight.openflow.protocol.OFNiciraControllerRole", "org.projectfloodlight.openflow.protocol.OFNiciraControllerRoleRequest", "org.projectfloodlight.openflow.protocol.OFRoleRequest", "org.projectfloodlight.openflow.protocol.OFVersion" ...
import org.projectfloodlight.openflow.protocol.OFControllerRole; import org.projectfloodlight.openflow.protocol.OFNiciraControllerRole; import org.projectfloodlight.openflow.protocol.OFNiciraControllerRoleRequest; import org.projectfloodlight.openflow.protocol.OFRoleRequest; import org.projectfloodlight.openflow.protoc...
import org.projectfloodlight.openflow.protocol.*;
[ "org.projectfloodlight.openflow" ]
org.projectfloodlight.openflow;
1,428,953
public void setWarningThreshold(long inWarningThreshold) { if (inWarningThreshold < 0L) { throw new IllegalArgumentException(JMeterUtils.getResString("argument_must_not_be_negative")); //$NON-NLS-1$ } if (inWarningThreshold == Long.MAX_VALUE) { setProperty(new LongPro...
void function(long inWarningThreshold) { if (inWarningThreshold < 0L) { throw new IllegalArgumentException(JMeterUtils.getResString(STR)); } if (inWarningThreshold == Long.MAX_VALUE) { setProperty(new LongProperty(WARNING_THRESHOLD_KEY, 0)); } else { setProperty(new LongProperty(WARNING_THRESHOLD_KEY, inWarningThreshol...
/** * Sets the threshold on warning level * * @param inWarningThreshold * The max number of warnings which are to be tolerated * @throws IllegalArgumentException * if <code>inWarningThreshold</code> is less or equal zero */
Sets the threshold on warning level
setWarningThreshold
{ "repo_name": "ubikfsabbe/jmeter", "path": "src/components/org/apache/jmeter/assertions/HTMLAssertion.java", "license": "apache-2.0", "size": 12971 }
[ "org.apache.jmeter.testelement.property.LongProperty", "org.apache.jmeter.util.JMeterUtils" ]
import org.apache.jmeter.testelement.property.LongProperty; import org.apache.jmeter.util.JMeterUtils;
import org.apache.jmeter.testelement.property.*; import org.apache.jmeter.util.*;
[ "org.apache.jmeter" ]
org.apache.jmeter;
1,227,020
@Test public void testRemotePreparedStatementInsert() throws Exception { final Connection connection = DriverManager.getConnection( "jdbc:avatica:remote:factory=" + LocalServiceModifiableFactory.class.getName()); assertThat(connection.isClosed(), is(false)); String sql = "insert into ...
@Test void function() throws Exception { final Connection connection = DriverManager.getConnection( STR + LocalServiceModifiableFactory.class.getName()); assertThat(connection.isClosed(), is(false)); String sql = STRfoo\".\"bar\STR; PreparedStatement preparedStatement = connection.prepareStatement(sql); assertThat(prep...
/** * Remote PreparedStatement insert WITHOUT bind variables */
Remote PreparedStatement insert WITHOUT bind variables
testRemotePreparedStatementInsert
{ "repo_name": "adeshr/incubator-calcite", "path": "core/src/test/java/org/apache/calcite/jdbc/CalciteRemoteDriverTest.java", "license": "apache-2.0", "size": 30042 }
[ "java.sql.Connection", "java.sql.DriverManager", "java.sql.PreparedStatement", "java.sql.ResultSet", "org.hamcrest.CoreMatchers", "org.junit.Assert", "org.junit.Test" ]
import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import org.hamcrest.CoreMatchers; import org.junit.Assert; import org.junit.Test;
import java.sql.*; import org.hamcrest.*; import org.junit.*;
[ "java.sql", "org.hamcrest", "org.junit" ]
java.sql; org.hamcrest; org.junit;
240,391
public JournalsApi getJournalsApi() { JournalsApi journalsApi = new JournalsApi(authToken, organizationId); return journalsApi; }
JournalsApi function() { JournalsApi journalsApi = new JournalsApi(authToken, organizationId); return journalsApi; }
/** * get an instance of journals api. * @return Returns the JournalsApi object. */
get an instance of journals api
getJournalsApi
{ "repo_name": "zoho/books-java-wrappers", "path": "source/com/zoho/books/service/ZohoBooks.java", "license": "mit", "size": 8329 }
[ "com.zoho.books.api.JournalsApi" ]
import com.zoho.books.api.JournalsApi;
import com.zoho.books.api.*;
[ "com.zoho.books" ]
com.zoho.books;
2,775,460
public ItemLabelPosition getPositiveItemLabelPositionFallback() { return this.positiveItemLabelPositionFallback; }
ItemLabelPosition function() { return this.positiveItemLabelPositionFallback; }
/** * Returns the fallback position for positive item labels that don't fit * within a bar. * * @return The fallback position (<code>null</code> possible). * * @see #setPositiveItemLabelPositionFallback(ItemLabelPosition) * @since 1.0.2 */
Returns the fallback position for positive item labels that don't fit within a bar
getPositiveItemLabelPositionFallback
{ "repo_name": "aaronc/jfreechart", "path": "source/org/jfree/chart/renderer/xy/XYBarRenderer.java", "license": "lgpl-2.1", "size": 45098 }
[ "org.jfree.chart.labels.ItemLabelPosition" ]
import org.jfree.chart.labels.ItemLabelPosition;
import org.jfree.chart.labels.*;
[ "org.jfree.chart" ]
org.jfree.chart;
1,636,266
private void initializeTopDown(ARXNode node) { int id = node.getId(); Anonymity nodeAnonymity = node.getAnonymity(); InformationLoss<?> nodeMax = node.getHighestScore(); InformationLoss<?> metricMax = metric.createInstanceOfHighestScore(); if (nodeAnonymity =...
void function(ARXNode node) { int id = node.getId(); Anonymity nodeAnonymity = node.getAnonymity(); InformationLoss<?> nodeMax = node.getHighestScore(); InformationLoss<?> metricMax = metric.createInstanceOfHighestScore(); if (nodeAnonymity == Anonymity.ANONYMOUS && monotonicAnonymous) { maximumAnonymous[id] = getValue...
/** * Initializes the top node. * * @param node */
Initializes the top node
initializeTopDown
{ "repo_name": "RaffaelBild/arx", "path": "src/main/org/deidentifier/arx/UtilityEstimator.java", "license": "apache-2.0", "size": 13687 }
[ "org.deidentifier.arx.ARXLattice", "org.deidentifier.arx.metric.InformationLoss" ]
import org.deidentifier.arx.ARXLattice; import org.deidentifier.arx.metric.InformationLoss;
import org.deidentifier.arx.*; import org.deidentifier.arx.metric.*;
[ "org.deidentifier.arx" ]
org.deidentifier.arx;
2,490,359
@Override public void onCreate(@Nonnull Group group, @Nonnull Root root, @Nonnull NamePathMapper namePathMapper) throws RepositoryException { // nothing to do }
void function(@Nonnull Group group, @Nonnull Root root, @Nonnull NamePathMapper namePathMapper) throws RepositoryException { }
/** * Doesn't perform any action. */
Doesn't perform any action
onCreate
{ "repo_name": "mduerig/jackrabbit-oak", "path": "oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/user/action/AbstractAuthorizableAction.java", "license": "apache-2.0", "size": 2961 }
[ "javax.annotation.Nonnull", "javax.jcr.RepositoryException", "org.apache.jackrabbit.api.security.user.Group", "org.apache.jackrabbit.oak.api.Root", "org.apache.jackrabbit.oak.namepath.NamePathMapper" ]
import javax.annotation.Nonnull; import javax.jcr.RepositoryException; import org.apache.jackrabbit.api.security.user.Group; import org.apache.jackrabbit.oak.api.Root; import org.apache.jackrabbit.oak.namepath.NamePathMapper;
import javax.annotation.*; import javax.jcr.*; import org.apache.jackrabbit.api.security.user.*; import org.apache.jackrabbit.oak.api.*; import org.apache.jackrabbit.oak.namepath.*;
[ "javax.annotation", "javax.jcr", "org.apache.jackrabbit" ]
javax.annotation; javax.jcr; org.apache.jackrabbit;
1,405,965
public final Queue<Session> getSessionByAddress(InetSocketAddress addr) { return this.sessionMap.get(addr); } public MemcachedConnector(Configuration configuration, MemcachedSessionLocator locator, BufferAllocator allocator, CommandFactory commandFactory, int poolSize, int maxQueuedNoReplyOperations) {...
final Queue<Session> function(InetSocketAddress addr) { return this.sessionMap.get(addr); } public MemcachedConnector(Configuration configuration, MemcachedSessionLocator locator, BufferAllocator allocator, CommandFactory commandFactory, int poolSize, int maxQueuedNoReplyOperations) { super(configuration, null); this.s...
/** * Get session by InetSocketAddress * * @param addr * @return */
Get session by InetSocketAddress
getSessionByAddress
{ "repo_name": "mangotv/strom-xmemcached", "path": "src/main/java/net/rubyeye/xmemcached/impl/MemcachedConnector.java", "license": "apache-2.0", "size": 21170 }
[ "com.google.code.yanf4j.config.Configuration", "com.google.code.yanf4j.core.Session", "java.net.InetSocketAddress", "java.util.Queue", "net.rubyeye.xmemcached.CommandFactory", "net.rubyeye.xmemcached.FlowControl", "net.rubyeye.xmemcached.MemcachedSessionLocator", "net.rubyeye.xmemcached.buffer.BufferA...
import com.google.code.yanf4j.config.Configuration; import com.google.code.yanf4j.core.Session; import java.net.InetSocketAddress; import java.util.Queue; import net.rubyeye.xmemcached.CommandFactory; import net.rubyeye.xmemcached.FlowControl; import net.rubyeye.xmemcached.MemcachedSessionLocator; import net.rubyeye.xm...
import com.google.code.yanf4j.config.*; import com.google.code.yanf4j.core.*; import java.net.*; import java.util.*; import net.rubyeye.xmemcached.*; import net.rubyeye.xmemcached.buffer.*;
[ "com.google.code", "java.net", "java.util", "net.rubyeye.xmemcached" ]
com.google.code; java.net; java.util; net.rubyeye.xmemcached;
800,784
public static void registerSoftInputChangedListener(@NonNull final Window window, @NonNull final OnSoftInputChangedListener listener) { final int flags = window.getAttributes().flags; if ((flags & WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMIT...
static void function(@NonNull final Window window, @NonNull final OnSoftInputChangedListener listener) { final int flags = window.getAttributes().flags; if ((flags & WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS) != 0) { window.clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); }
/** * Register soft input changed listener. * * @param window The window. * @param listener The soft input changed listener. */
Register soft input changed listener
registerSoftInputChangedListener
{ "repo_name": "didi/DoraemonKit", "path": "Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/KeyboardUtils.java", "license": "apache-2.0", "size": 13838 }
[ "android.view.Window", "android.view.WindowManager", "androidx.annotation.NonNull" ]
import android.view.Window; import android.view.WindowManager; import androidx.annotation.NonNull;
import android.view.*; import androidx.annotation.*;
[ "android.view", "androidx.annotation" ]
android.view; androidx.annotation;
1,302,439
public void updateGeometry() { VertexBuffer vb = this.getBuffer(Type.Position); FloatBuffer posBuf = this.getFloatBuffer(Type.Position); posBuf.clear(); for (int i = 0; i < skeleton.getBoneCount(); ++i) { Bone bone = skeleton.getBone(i); Vector3f parentTail = ...
void function() { VertexBuffer vb = this.getBuffer(Type.Position); FloatBuffer posBuf = this.getFloatBuffer(Type.Position); posBuf.clear(); for (int i = 0; i < skeleton.getBoneCount(); ++i) { Bone bone = skeleton.getBone(i); Vector3f parentTail = bone.getModelSpacePosition().add(bone.getModelSpaceRotation().mult(Vector...
/** * The method updates the geometry according to the poitions of the bones. */
The method updates the geometry according to the poitions of the bones
updateGeometry
{ "repo_name": "PlanetWaves/clockworkengine", "path": "trunk/jme3-core/src/main/java/com/jme3/scene/debug/SkeletonInterBoneWire.java", "license": "apache-2.0", "size": 4908 }
[ "com.jme3.animation.Bone", "com.jme3.math.Vector3f", "com.jme3.scene.VertexBuffer", "java.nio.FloatBuffer" ]
import com.jme3.animation.Bone; import com.jme3.math.Vector3f; import com.jme3.scene.VertexBuffer; import java.nio.FloatBuffer;
import com.jme3.animation.*; import com.jme3.math.*; import com.jme3.scene.*; import java.nio.*;
[ "com.jme3.animation", "com.jme3.math", "com.jme3.scene", "java.nio" ]
com.jme3.animation; com.jme3.math; com.jme3.scene; java.nio;
1,290,754
@SuppressWarnings("unchecked") protected O lookupCache(DatabaseRow row, DatabaseService database) { final I id = mapper.getPrimaryKeyMapper().createID( (RI) row.get(entity.getPrimaryKey().getLocalColumns() .get(0))); if (id != null) { if (database.hasCachedObject(id)) return (O) datab...
@SuppressWarnings(STR) O function(DatabaseRow row, DatabaseService database) { final I id = mapper.getPrimaryKeyMapper().createID( (RI) row.get(entity.getPrimaryKey().getLocalColumns() .get(0))); if (id != null) { if (database.hasCachedObject(id)) return (O) database.getCachedObject(id); } return null; }
/** * Checks if the object is on the cache. Returns it if available, * <code>null</code> otherwise. * * @param row * the row * @param database * the database service * @return the object on cache, if exists. */
Checks if the object is on the cache. Returns it if available, <code>null</code> otherwise
lookupCache
{ "repo_name": "l2jserver2/l2jserver2", "path": "l2jserver2-common/src/main/java/com/l2jserver/service/database/orientdb/AbstractOrientDatabaseService.java", "license": "gpl-3.0", "size": 31680 }
[ "com.l2jserver.service.database.DatabaseService", "com.l2jserver.service.database.dao.DatabaseRow" ]
import com.l2jserver.service.database.DatabaseService; import com.l2jserver.service.database.dao.DatabaseRow;
import com.l2jserver.service.database.*; import com.l2jserver.service.database.dao.*;
[ "com.l2jserver.service" ]
com.l2jserver.service;
912,805
public void setTypeConverterExistsLoggingLevel(LoggingLevel typeConverterExistsLoggingLevel) { this.typeConverterExistsLoggingLevel = typeConverterExistsLoggingLevel; }
void function(LoggingLevel typeConverterExistsLoggingLevel) { this.typeConverterExistsLoggingLevel = typeConverterExistsLoggingLevel; }
/** * The logging level to use when logging that a type converter already exists when attempting to add a duplicate type converter. * <p/> * The default logging level is <tt>WARN</tt> */
The logging level to use when logging that a type converter already exists when attempting to add a duplicate type converter. The default logging level is WARN
setTypeConverterExistsLoggingLevel
{ "repo_name": "kevinearls/camel", "path": "components/camel-spring/src/main/java/org/apache/camel/spring/CamelContextFactoryBean.java", "license": "apache-2.0", "size": 41422 }
[ "org.apache.camel.LoggingLevel" ]
import org.apache.camel.LoggingLevel;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
2,115,787
public HorizontalAlignment getAlign(ExcelWriter writer, int row, int column, Object value) { if ((value instanceof Number)) { return HorizontalAlignment.RIGHT; } return null; }
HorizontalAlignment function(ExcelWriter writer, int row, int column, Object value) { if ((value instanceof Number)) { return HorizontalAlignment.RIGHT; } return null; }
/** * Returns the alignment to be used. * This implementation returns null. * @param writer writer that requires the information * @param row row index * @param column column index * @param value value in cell * @return alignment index for Excel or null if no alignment is required */
Returns the alignment to be used. This implementation returns null
getAlign
{ "repo_name": "technicalguru/csv", "path": "src/main/java/csv/impl/DefaultExcelFormatter.java", "license": "gpl-3.0", "size": 33333 }
[ "org.apache.poi.ss.usermodel.HorizontalAlignment" ]
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.*;
[ "org.apache.poi" ]
org.apache.poi;
1,204,573
public TagOperationResult addTagsToDocument(String tags, String documentName, XWikiContext context) throws XWikiException { return addTagsToDocument(tags, context.getWiki().getDocument(documentName, context), context); }
TagOperationResult function(String tags, String documentName, XWikiContext context) throws XWikiException { return addTagsToDocument(tags, context.getWiki().getDocument(documentName, context), context); }
/** * Add a list of tags to a document. The document is saved (minor edit) after this operation. * * @param tags the comma separated list of tags to set; whitespace around the tags is stripped * @param documentName the name of the target document * @param context the current request context. ...
Add a list of tags to a document. The document is saved (minor edit) after this operation
addTagsToDocument
{ "repo_name": "pbondoer/xwiki-platform", "path": "xwiki-platform-core/xwiki-platform-tag/xwiki-platform-tag-api/src/main/java/com/xpn/xwiki/plugin/tag/TagPlugin.java", "license": "lgpl-2.1", "size": 23741 }
[ "com.xpn.xwiki.XWikiContext", "com.xpn.xwiki.XWikiException" ]
import com.xpn.xwiki.XWikiContext; import com.xpn.xwiki.XWikiException;
import com.xpn.xwiki.*;
[ "com.xpn.xwiki" ]
com.xpn.xwiki;
2,776,227
public void selectionChanged(SelectionChangedEvent event) { // Remove any menu items for old selection. // if (createChildMenuManager != null) { depopulateManager(createChildMenuManager, createChildActions); } if (createSiblingMenuManager != null) { depopulateManager(createSiblingMenuManager, createS...
void function(SelectionChangedEvent event) { depopulateManager(createChildMenuManager, createChildActions); } if (createSiblingMenuManager != null) { depopulateManager(createSiblingMenuManager, createSiblingActions); } Collection<?> newSiblingDescriptors = null; ISelection selection = event.getSelection(); if (selectio...
/** * This implements {@link org.eclipse.jface.viewers.ISelectionChangedListener}, * handling {@link org.eclipse.jface.viewers.SelectionChangedEvent}s by querying for the children and siblings * that can be added to the selected object and updating the menus accordingly. * <!-- begin-user-doc --> * <!-- end-u...
This implements <code>org.eclipse.jface.viewers.ISelectionChangedListener</code>, handling <code>org.eclipse.jface.viewers.SelectionChangedEvent</code>s by querying for the children and siblings that can be added to the selected object and updating the menus accordingly.
selectionChanged
{ "repo_name": "ObeoNetwork/EAST-ADL-Designer", "path": "plugins/org.obeonetwork.dsl.eastadl.editor/src/org/obeonetwork/dsl/east_adl/structure/common/presentation/CommonActionBarContributor.java", "license": "epl-1.0", "size": 14132 }
[ "java.util.Collection", "org.eclipse.emf.edit.domain.EditingDomain", "org.eclipse.emf.edit.domain.IEditingDomainProvider", "org.eclipse.jface.viewers.ISelection", "org.eclipse.jface.viewers.IStructuredSelection", "org.eclipse.jface.viewers.SelectionChangedEvent" ]
import java.util.Collection; import org.eclipse.emf.edit.domain.EditingDomain; import org.eclipse.emf.edit.domain.IEditingDomainProvider; import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.SelectionChangedEvent;
import java.util.*; import org.eclipse.emf.edit.domain.*; import org.eclipse.jface.viewers.*;
[ "java.util", "org.eclipse.emf", "org.eclipse.jface" ]
java.util; org.eclipse.emf; org.eclipse.jface;
109,651
default <T extends ValueNode> T add(T value) { if (value.graph() != null) { assert !(value instanceof StateSplit) || ((StateSplit) value).stateAfter() != null; return value; } T equivalentValue = append(value); if (equivalentValue instanceof StateSplit) { ...
default <T extends ValueNode> T add(T value) { if (value.graph() != null) { assert !(value instanceof StateSplit) ((StateSplit) value).stateAfter() != null; return value; } T equivalentValue = append(value); if (equivalentValue instanceof StateSplit) { StateSplit stateSplit = (StateSplit) equivalentValue; if (stateSpli...
/** * Adds a node to the graph. If the node is in the graph, returns immediately. If the node is a * {@link StateSplit} with a null {@linkplain StateSplit#stateAfter() frame state}, the frame * state is initialized. * * @param value the value to add to the graph and push to the stack. The ...
Adds a node to the graph. If the node is in the graph, returns immediately. If the node is a <code>StateSplit</code> with a null StateSplit#stateAfter() frame state, the frame state is initialized
add
{ "repo_name": "graalvm/graal-core", "path": "graal/org.graalvm.compiler.nodes/src/org/graalvm/compiler/nodes/graphbuilderconf/GraphBuilderContext.java", "license": "gpl-2.0", "size": 12329 }
[ "org.graalvm.compiler.nodes.StateSplit", "org.graalvm.compiler.nodes.ValueNode" ]
import org.graalvm.compiler.nodes.StateSplit; import org.graalvm.compiler.nodes.ValueNode;
import org.graalvm.compiler.nodes.*;
[ "org.graalvm.compiler" ]
org.graalvm.compiler;
476,913
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jSeparator1 = new javax.swing.JSeparator(); jSeparator2 = new javax.swing.JSeparator(); jMenu2 = new javax.swing.JMenu(); ...
@SuppressWarnings(STR) void function() { jSeparator1 = new javax.swing.JSeparator(); jSeparator2 = new javax.swing.JSeparator(); jMenu2 = new javax.swing.JMenu(); jLabel1 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); jLabel2 = new javax.swing.JLabel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu1 = ...
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. regenerated by the Form Editor
initComponents
{ "repo_name": "FedericoTorres/tp-IngSoft", "path": "Snakev2/src/SnakeView/SwingGui.java", "license": "gpl-3.0", "size": 13491 }
[ "java.awt.Dimension", "javax.swing.JLabel" ]
import java.awt.Dimension; import javax.swing.JLabel;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
1,495,250
public int countValidFileSpecs(List<IFileSpec> fileSpecs) { int validFSpecCount = 0; if (fileSpecs != null) { if (fileSpecs.size() > 0) { for (IFileSpec fileSpec : fileSpecs) { if (fileSpec != null && (fileSpec.getClientPath() != null || fileSpec.get...
int function(List<IFileSpec> fileSpecs) { int validFSpecCount = 0; if (fileSpecs != null) { if (fileSpecs.size() > 0) { for (IFileSpec fileSpec : fileSpecs) { if (fileSpec != null && (fileSpec.getClientPath() != null fileSpec.getOriginalPath() != null fileSpec.getDepotPath() != null) && fileSpec.getOpStatus() == FileSp...
/** * Returns the number of valid fileSpecs for the passed in List of FileSpecs. */
Returns the number of valid fileSpecs for the passed in List of FileSpecs
countValidFileSpecs
{ "repo_name": "groboclown/p4ic4idea", "path": "p4java/src/test/java/com/perforce/p4java/tests/dev/unit/endtoend/ClientIntegrationE2ETest.java", "license": "apache-2.0", "size": 85275 }
[ "com.perforce.p4java.core.file.FileSpecOpStatus", "com.perforce.p4java.core.file.IFileSpec", "java.util.List" ]
import com.perforce.p4java.core.file.FileSpecOpStatus; import com.perforce.p4java.core.file.IFileSpec; import java.util.List;
import com.perforce.p4java.core.file.*; import java.util.*;
[ "com.perforce.p4java", "java.util" ]
com.perforce.p4java; java.util;
2,653,738
public static String getMD5Checksum(InputStream is) throws IOException { byte[] digest = null; try { MessageDigest md = MessageDigest.getInstance(JawrConstant.MD5_ALGORITHM); InputStream digestIs = new DigestInputStream(is, md); // read stream to EOF as normal... while (digestIs.read() != -1) { ...
static String function(InputStream is) throws IOException { byte[] digest = null; try { MessageDigest md = MessageDigest.getInstance(JawrConstant.MD5_ALGORITHM); InputStream digestIs = new DigestInputStream(is, md); while (digestIs.read() != -1) { } digest = md.digest(); } catch (NoSuchAlgorithmException e) { throw new...
/** * Returns the MD5 Checksum of the input stream * * @param is the input stream * * @return the Checksum of the input stream * @throws IOException if an IO exception occurs */
Returns the MD5 Checksum of the input stream
getMD5Checksum
{ "repo_name": "diorcety/jawr", "path": "jawr-core/src/main/java/net/jawr/web/resource/bundle/CheckSumUtils.java", "license": "apache-2.0", "size": 5493 }
[ "java.io.IOException", "java.io.InputStream", "java.math.BigInteger", "java.security.DigestInputStream", "java.security.MessageDigest", "java.security.NoSuchAlgorithmException", "net.jawr.web.JawrConstant", "net.jawr.web.exception.BundlingProcessException" ]
import java.io.IOException; import java.io.InputStream; import java.math.BigInteger; import java.security.DigestInputStream; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import net.jawr.web.JawrConstant; import net.jawr.web.exception.BundlingProcessException;
import java.io.*; import java.math.*; import java.security.*; import net.jawr.web.*; import net.jawr.web.exception.*;
[ "java.io", "java.math", "java.security", "net.jawr.web" ]
java.io; java.math; java.security; net.jawr.web;
1,507,720
public List<Dependency> getDependencies() { return dependencies; }
List<Dependency> function() { return dependencies; }
/** * Get the dependencies identified. * * @return the dependencies identified */
Get the dependencies identified
getDependencies
{ "repo_name": "wmaintw/DependencyCheck", "path": "dependency-check-core/src/main/java/org/owasp/dependencycheck/Engine.java", "license": "apache-2.0", "size": 18726 }
[ "java.util.List", "org.owasp.dependencycheck.dependency.Dependency" ]
import java.util.List; import org.owasp.dependencycheck.dependency.Dependency;
import java.util.*; import org.owasp.dependencycheck.dependency.*;
[ "java.util", "org.owasp.dependencycheck" ]
java.util; org.owasp.dependencycheck;
2,560,831
public OduSignalType signalType();
OduSignalType function();
/** * Returns ODU signal type. * * @return ODU signal type */
Returns ODU signal type
signalType
{ "repo_name": "VinodKumarS-Huawei/ietf96yang", "path": "core/api/src/main/java/org/onosproject/net/optical/OchPort.java", "license": "apache-2.0", "size": 1420 }
[ "org.onosproject.net.OduSignalType" ]
import org.onosproject.net.OduSignalType;
import org.onosproject.net.*;
[ "org.onosproject.net" ]
org.onosproject.net;
109,353
@Override @Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO) public String getAssignedUserNames() { return assignedUserNames; }
@Field(index = Index.YES, analyze = Analyze.YES, store = Store.NO) String function() { return assignedUserNames; }
/** * Returns the assigned user names. * * @return the assigned user names */
Returns the assigned user names
getAssignedUserNames
{ "repo_name": "IHTSDO/OTF-Mapping-Service", "path": "jpa-model/src/main/java/org/ihtsdo/otf/mapping/workflow/TrackingRecordJpa.java", "license": "apache-2.0", "size": 15983 }
[ "org.hibernate.search.annotations.Analyze", "org.hibernate.search.annotations.Field", "org.hibernate.search.annotations.Index", "org.hibernate.search.annotations.Store" ]
import org.hibernate.search.annotations.Analyze; import org.hibernate.search.annotations.Field; import org.hibernate.search.annotations.Index; import org.hibernate.search.annotations.Store;
import org.hibernate.search.annotations.*;
[ "org.hibernate.search" ]
org.hibernate.search;
1,979,373
@Override public void exitEnumConstants(@NotNull PJParser.EnumConstantsContext ctx) { }
@Override public void exitEnumConstants(@NotNull PJParser.EnumConstantsContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
enterEnumConstants
{ "repo_name": "Diolor/PJ", "path": "src/main/java/com/lorentzos/pj/PJBaseListener.java", "license": "mit", "size": 73292 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
782,611
void closeRegion(final String regionname, final String serverName) throws IOException;
void closeRegion(final String regionname, final String serverName) throws IOException;
/** * Close a region. For expert-admins. Runs close on the regionserver. The master will not be * informed of the close. * * @param regionname region name to close * @param serverName If supplied, we'll use this location rather than the one currently in * <code>hbase:meta</code> * @throws IOExcep...
Close a region. For expert-admins. Runs close on the regionserver. The master will not be informed of the close
closeRegion
{ "repo_name": "gustavoanatoly/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java", "license": "apache-2.0", "size": 97415 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
90,694
public void runBatch(File cfgFile) throws ConfigurationException, SAXException, IOException { DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder(); Configuration cfg = cfgBuilder.buildFromFile(cfgFile); runBatch(cfg); }
void function(File cfgFile) throws ConfigurationException, SAXException, IOException { DefaultConfigurationBuilder cfgBuilder = new DefaultConfigurationBuilder(); Configuration cfg = cfgBuilder.buildFromFile(cfgFile); runBatch(cfg); }
/** * Runs the batch. * @param cfgFile configuration file to use * @throws ConfigurationException In case of a problem with the configuration * @throws SAXException In case of a problem during SAX processing * @throws IOException In case of a I/O problem */
Runs the batch
runBatch
{ "repo_name": "StrategyObject/fop", "path": "test/java/org/apache/fop/visual/BatchDiffer.java", "license": "apache-2.0", "size": 12850 }
[ "java.io.File", "java.io.IOException", "org.apache.avalon.framework.configuration.Configuration", "org.apache.avalon.framework.configuration.ConfigurationException", "org.apache.avalon.framework.configuration.DefaultConfigurationBuilder", "org.xml.sax.SAXException" ]
import java.io.File; import java.io.IOException; import org.apache.avalon.framework.configuration.Configuration; import org.apache.avalon.framework.configuration.ConfigurationException; import org.apache.avalon.framework.configuration.DefaultConfigurationBuilder; import org.xml.sax.SAXException;
import java.io.*; import org.apache.avalon.framework.configuration.*; import org.xml.sax.*;
[ "java.io", "org.apache.avalon", "org.xml.sax" ]
java.io; org.apache.avalon; org.xml.sax;
1,012,490
void registerTypeConverter (@Nonnull ITypeConverterRegistry aRegistry);
void registerTypeConverter (@Nonnull ITypeConverterRegistry aRegistry);
/** * Register all your type converters. * * @param aRegistry * The destination registry. Never <code>null</code>. */
Register all your type converters
registerTypeConverter
{ "repo_name": "lsimons/phloc-schematron-standalone", "path": "phloc-commons/src/main/java/com/phloc/commons/typeconvert/ITypeConverterRegistrarSPI.java", "license": "apache-2.0", "size": 1210 }
[ "javax.annotation.Nonnull" ]
import javax.annotation.Nonnull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
2,067,246
public VlanVid[] getSwitchPortVlanIds(SwitchPort swp);
VlanVid[] function(SwitchPort swp);
/** * Returns all unique VLAN IDs for the device that were observed on * the given switch port * @param swp the switch port to query * @return an array containing the unique VLAN IDs */
Returns all unique VLAN IDs for the device that were observed on the given switch port
getSwitchPortVlanIds
{ "repo_name": "zsavvas/MPTCP-aware-SDN", "path": "src/main/java/net/floodlightcontroller/devicemanager/IDevice.java", "license": "apache-2.0", "size": 3665 }
[ "org.projectfloodlight.openflow.types.VlanVid" ]
import org.projectfloodlight.openflow.types.VlanVid;
import org.projectfloodlight.openflow.types.*;
[ "org.projectfloodlight.openflow" ]
org.projectfloodlight.openflow;
2,443,187
void push_sources(List<Source> resultList, boolean autopop) { ArrayList<Source> list = new ArrayList<Source>(resultList); Collections.reverse(list); boolean isFirst = true;//add all but first as sibling for (Source s : list) { _push_source(s, autopop, !isFirst); ...
void push_sources(List<Source> resultList, boolean autopop) { ArrayList<Source> list = new ArrayList<Source>(resultList); Collections.reverse(list); boolean isFirst = true; for (Source s : list) { _push_source(s, autopop, !isFirst); isFirst = false; } }
/** * pushes a list of sources which are handled as siblings * * @param resultList * @param b */
pushes a list of sources which are handled as siblings
push_sources
{ "repo_name": "mbeddr/TypeChef", "path": "PartialPreprocessor/src/main/scala/de/fosd/typechef/lexer/SourceManager.java", "license": "lgpl-3.0", "size": 6018 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.List" ]
import java.util.ArrayList; import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,465,435
public void setOnProgressAnimationListener(@Nullable OnProgressAnimationListener listener) { this.mProgressAnimationListener = listener; }
void function(@Nullable OnProgressAnimationListener listener) { this.mProgressAnimationListener = listener; }
/** * Registers a callback to be invoked whenever a new animation session is <b>started</b> or * the current one is <b>stopped</b> for the progress drawable attached to this progress bar. * * @param listener Listener callback. May be {@code null} to clear the current one. */
Registers a callback to be invoked whenever a new animation session is started or the current one is stopped for the progress drawable attached to this progress bar
setOnProgressAnimationListener
{ "repo_name": "android-libraries/android_ui", "path": "library/src/widget/common/progress/java/com/albedinsky/android/ui/widget/BaseProgressBar.java", "license": "apache-2.0", "size": 53206 }
[ "android.support.annotation.Nullable" ]
import android.support.annotation.Nullable;
import android.support.annotation.*;
[ "android.support" ]
android.support;
2,423,836
EReference getUiVisibilityProcessorAssignment_Processor();
EReference getUiVisibilityProcessorAssignment_Processor();
/** * Returns the meta object for the containment reference '{@link org.lunifera.ecview.semantic.uimodel.UiVisibilityProcessorAssignment#getProcessor <em>Processor</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference '<em>Processor</em>'. * @see org...
Returns the meta object for the containment reference '<code>org.lunifera.ecview.semantic.uimodel.UiVisibilityProcessorAssignment#getProcessor Processor</code>'.
getUiVisibilityProcessorAssignment_Processor
{ "repo_name": "lunifera/lunifera-ecview-addons", "path": "org.lunifera.ecview.semantic.uimodel/src/org/lunifera/ecview/semantic/uimodel/UiModelPackage.java", "license": "epl-1.0", "size": 498897 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,419,542
@ServiceMethod(returns = ReturnType.SINGLE) public AttestationInner createOrUpdateAtSubscription( String attestationName, AttestationInner parameters, Context context) { return createOrUpdateAtSubscriptionAsync(attestationName, parameters, context).block(); }
@ServiceMethod(returns = ReturnType.SINGLE) AttestationInner function( String attestationName, AttestationInner parameters, Context context) { return createOrUpdateAtSubscriptionAsync(attestationName, parameters, context).block(); }
/** * Creates or updates an attestation at subscription scope. * * @param attestationName The name of the attestation. * @param parameters The attestation parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail...
Creates or updates an attestation at subscription scope
createOrUpdateAtSubscription
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/implementation/AttestationsClientImpl.java", "license": "mit", "size": 124635 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.util.Context", "com.azure.resourcemanager.policyinsights.fluent.models.AttestationInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.util.Context; import com.azure.resourcemanager.policyinsights.fluent.models.AttestationInner;
import com.azure.core.annotation.*; import com.azure.core.util.*; import com.azure.resourcemanager.policyinsights.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
82,803
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<Flux<ByteBuffer>>> enforceWithResponseAsync( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName, AdaptiveNetwor...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Flux<ByteBuffer>>> function( String resourceGroupName, String resourceNamespace, String resourceType, String resourceName, String adaptiveNetworkHardeningResourceName, AdaptiveNetworkHardeningEnforceRequest body, Context context) { if (this.client.getEndpoint() ...
/** * Enforces the given rules on the NSG(s) listed in the request. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param resourceNamespace The Namespace of the resource. * @param resourceType The type of th...
Enforces the given rules on the NSG(s) listed in the request
enforceWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AdaptiveNetworkHardeningsClientImpl.java", "license": "mit", "size": 53391 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.security.models.AdaptiveNetworkHardeningEnforceRequest", "java.nio.ByteBuffer" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.security.models.AdaptiveNetworkHardeningEnforceRequest; import java.nio.ByteBuffer;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.security.models.*; import java.nio.*;
[ "com.azure.core", "com.azure.resourcemanager", "java.nio" ]
com.azure.core; com.azure.resourcemanager; java.nio;
2,787,469
static void validateEntityLabel(EntityType entityType) { String label = entityType.getLabel(); if (label != null) { if (label.isEmpty()) { throw new MolgenisValidationException( new ConstraintViolation(format("Label of EntityType [%s] is empty", entityType.getId()))); } else if (label.tr...
static void validateEntityLabel(EntityType entityType) { String label = entityType.getLabel(); if (label != null) { if (label.isEmpty()) { throw new MolgenisValidationException( new ConstraintViolation(format(STR, entityType.getId()))); } else if (label.trim().equals(STRLabel of EntityType [%s] contains only white spac...
/** * Validates the entity label: * - Validates that the label is not an empty string * - Validates that the label does not only consist of white space * * @param entityType entity meta data * @throws MolgenisValidationException if the entity label is invalid */
Validates the entity label: - Validates that the label is not an empty string - Validates that the label does not only consist of white space
validateEntityLabel
{ "repo_name": "Mark-de-Haan/molgenis", "path": "molgenis-data-validation/src/main/java/org/molgenis/data/validation/meta/EntityTypeValidator.java", "license": "lgpl-3.0", "size": 12042 }
[ "org.molgenis.data.meta.model.EntityType", "org.molgenis.data.validation.ConstraintViolation", "org.molgenis.data.validation.MolgenisValidationException" ]
import org.molgenis.data.meta.model.EntityType; import org.molgenis.data.validation.ConstraintViolation; import org.molgenis.data.validation.MolgenisValidationException;
import org.molgenis.data.meta.model.*; import org.molgenis.data.validation.*;
[ "org.molgenis.data" ]
org.molgenis.data;
1,696,508
@Test public void fileStreamFactory() throws Exception { final PrintStream stream = FileStreamFactory.INSTANCE.getStream("name"); stream.print("test"); FileStreamFactory.INSTANCE.done(stream); assertFalse(stream.checkError()); //try writing stream.write(12)...
void function() throws Exception { final PrintStream stream = FileStreamFactory.INSTANCE.getStream("name"); stream.print("test"); FileStreamFactory.INSTANCE.done(stream); assertFalse(stream.checkError()); stream.write(12); assertTrue(stream.checkError()); } private static class MyStream extends PrintStream { public MyS...
/** * Tests the {@link FileStreamFactory}. * * @throws Exception if there were errors. */
Tests the <code>FileStreamFactory</code>
fileStreamFactory
{ "repo_name": "nagyist/marketcetera", "path": "trunk/core/src/test/java/org/marketcetera/metrics/PrintStreamFactoryTest.java", "license": "apache-2.0", "size": 3532 }
[ "java.io.ByteArrayOutputStream", "java.io.PrintStream", "org.junit.Assert" ]
import java.io.ByteArrayOutputStream; import java.io.PrintStream; import org.junit.Assert;
import java.io.*; import org.junit.*;
[ "java.io", "org.junit" ]
java.io; org.junit;
764,153
private boolean isOld(File file, boolean stable) { long max = tooOldChanging; if (stable) { max = tooOldStable; } if (max < 0) { return false; } long time = new Date().getTime() - file.lastModified(); if (time < 0) { tracer.error("Timestamp in the future for file: " + file.getAbsolutePa...
boolean function(File file, boolean stable) { long max = tooOldChanging; if (stable) { max = tooOldStable; } if (max < 0) { return false; } long time = new Date().getTime() - file.lastModified(); if (time < 0) { tracer.error(STR + file.getAbsolutePath()); } return time < 0 time > max; } /** * Return the associated cach...
/** * Check if the {@link File} is too old according to * {@link Cache#tooOldChanging}. * * @param file * the file to check * @param stable * TRUE to denote stable files, that are not supposed to change * too often * * @return TRUE if it is */
Check if the <code>File</code> is too old according to <code>Cache#tooOldChanging</code>
isOld
{ "repo_name": "nikiroo/fanfix", "path": "src/be/nikiroo/utils/Cache.java", "license": "gpl-3.0", "size": 11776 }
[ "java.io.File", "java.util.Date" ]
import java.io.File; import java.util.Date;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,563,627
@Test public void throwFileNotFoundExceptionWhenListStatusNonExistingTest() throws Exception { FileSystem alluxioHadoopFs = null; try { Path path = new Path("/ALLUXIO-2036"); alluxio.client.file.FileSystem alluxioFs = mock(alluxio.client.file.FileSystem.class); when(alluxioFs.listStatus(ne...
void function() throws Exception { FileSystem alluxioHadoopFs = null; try { Path path = new Path(STR); alluxio.client.file.FileSystem alluxioFs = mock(alluxio.client.file.FileSystem.class); when(alluxioFs.listStatus(new AlluxioURI(HadoopUtils.getPathWithoutScheme(path)))) .thenThrow(new FileNotFoundException(STR)); all...
/** * Tests that the {@link AbstractFileSystem#listStatus(Path)} method throws * FileNotFound Exception. */
Tests that the <code>AbstractFileSystem#listStatus(Path)</code> method throws FileNotFound Exception
throwFileNotFoundExceptionWhenListStatusNonExistingTest
{ "repo_name": "PasaLab/tachyon", "path": "core/client/hdfs/src/test/java/alluxio/hadoop/AbstractFileSystemTest.java", "license": "apache-2.0", "size": 28622 }
[ "java.io.FileNotFoundException", "org.apache.hadoop.fs.FileStatus", "org.apache.hadoop.fs.Path", "org.junit.Assert", "org.mockito.Mockito" ]
import java.io.FileNotFoundException; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.Path; import org.junit.Assert; import org.mockito.Mockito;
import java.io.*; import org.apache.hadoop.fs.*; import org.junit.*; import org.mockito.*;
[ "java.io", "org.apache.hadoop", "org.junit", "org.mockito" ]
java.io; org.apache.hadoop; org.junit; org.mockito;
2,446,703
public Options dataFormat(String dataFormat) { this.dataFormat = dataFormat; return this; } } @OpInputsMetadata( outputsClass = MaxPool3dGradGrad.class ) public static class Inputs<T extends TNumber> extends RawOpInputs<MaxPool3dGradGrad<T>> { public final Operand<T> origInpu...
Options function(String dataFormat) { this.dataFormat = dataFormat; return this; } } @OpInputsMetadata( outputsClass = MaxPool3dGradGrad.class ) static class Inputs<T extends TNumber> extends RawOpInputs<MaxPool3dGradGrad<T>> { public final Operand<T> origInput; public final Operand<T> origOutput; public final Operand<...
/** * Sets the dataFormat option. * * @param dataFormat The data format of the input and output data. With the * default format &quot;NDHWC&quot;, the data is stored in the order of: * [batch, in_depth, in_height, in_width, in_channels]. * Alternatively, the format could be &quot;NCDHW&quo...
Sets the dataFormat option
dataFormat
{ "repo_name": "tensorflow/java", "path": "tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/nn/MaxPool3dGradGrad.java", "license": "apache-2.0", "size": 7644 }
[ "java.util.Arrays", "org.tensorflow.GraphOperation", "org.tensorflow.Operand", "org.tensorflow.op.RawOpInputs", "org.tensorflow.op.annotation.OpInputsMetadata", "org.tensorflow.proto.framework.DataType", "org.tensorflow.types.family.TNumber" ]
import java.util.Arrays; import org.tensorflow.GraphOperation; import org.tensorflow.Operand; import org.tensorflow.op.RawOpInputs; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.proto.framework.DataType; import org.tensorflow.types.family.TNumber;
import java.util.*; import org.tensorflow.*; import org.tensorflow.op.*; import org.tensorflow.op.annotation.*; import org.tensorflow.proto.framework.*; import org.tensorflow.types.family.*;
[ "java.util", "org.tensorflow", "org.tensorflow.op", "org.tensorflow.proto", "org.tensorflow.types" ]
java.util; org.tensorflow; org.tensorflow.op; org.tensorflow.proto; org.tensorflow.types;
564,851
private void checkQuery(final DataScope dataScope) { Assert.assertEquals(1, dataScope.queryLength()); Assert.assertEquals(1, dataScope.getQuery(0).datasetLength()); Assert.assertEquals(1, dataScope.getQuery(0).getDataset(0).idLength()); Assert.assertEquals(1, dataScope.getQuery(0).ge...
void function(final DataScope dataScope) { Assert.assertEquals(1, dataScope.queryLength()); Assert.assertEquals(1, dataScope.getQuery(0).datasetLength()); Assert.assertEquals(1, dataScope.getQuery(0).getDataset(0).idLength()); Assert.assertEquals(1, dataScope.getQuery(0).getDataset(0).getId(0).filterLength()); Assert.a...
/** * Check that the input query matches the expected structure. * * @param dataScope {@link DataScope} to test. */
Check that the input query matches the expected structure
checkQuery
{ "repo_name": "CitrineInformatics/java-citrination-client", "path": "src/test/java/io/citrine/jcc/search/core/query/BasicFieldQueryTest.java", "license": "apache-2.0", "size": 1943 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,898,634
private static long copy(InputStream source, OutputStream sink) throws IOException { long nread = 0L; byte[] buf = new byte[BUFFER_SIZE]; int n; while ((n = source.read(buf)) > 0) { sink.write(buf, 0, n); nread += n; } return nread;...
static long function(InputStream source, OutputStream sink) throws IOException { long nread = 0L; byte[] buf = new byte[BUFFER_SIZE]; int n; while ((n = source.read(buf)) > 0) { sink.write(buf, 0, n); nread += n; } return nread; } /** * Copies all bytes from an input stream to a file. On return, the input * stream will...
/** * Reads all bytes from an input stream and writes them to an output stream. */
Reads all bytes from an input stream and writes them to an output stream
copy
{ "repo_name": "Taichi-SHINDO/jdk9-jdk", "path": "src/java.base/share/classes/java/nio/file/Files.java", "license": "gpl-2.0", "size": 171296 }
[ "java.io.IOException", "java.io.InputStream", "java.io.OutputStream" ]
import java.io.IOException; import java.io.InputStream; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
693,648
Collection<AsteriskQueue> getQueues() { refreshQueuesIfForced(); Collection<AsteriskQueue> copy; try (LockCloser closer = queuesLRU.withLock()) { copy = new ArrayList<AsteriskQueue>(queuesLRU.values()); } return copy; }
Collection<AsteriskQueue> getQueues() { refreshQueuesIfForced(); Collection<AsteriskQueue> copy; try (LockCloser closer = queuesLRU.withLock()) { copy = new ArrayList<AsteriskQueue>(queuesLRU.values()); } return copy; }
/** * Gets (a copy of) the list of the queues. * * @return a copy of the list of the queues. */
Gets (a copy of) the list of the queues
getQueues
{ "repo_name": "asterisk-java/asterisk-java", "path": "src/main/java/org/asteriskjava/live/internal/QueueManager.java", "license": "apache-2.0", "size": 22449 }
[ "java.util.ArrayList", "java.util.Collection", "org.asteriskjava.live.AsteriskQueue", "org.asteriskjava.lock.Locker" ]
import java.util.ArrayList; import java.util.Collection; import org.asteriskjava.live.AsteriskQueue; import org.asteriskjava.lock.Locker;
import java.util.*; import org.asteriskjava.live.*; import org.asteriskjava.lock.*;
[ "java.util", "org.asteriskjava.live", "org.asteriskjava.lock" ]
java.util; org.asteriskjava.live; org.asteriskjava.lock;
403,595
EClass getNavigationFlow();
EClass getNavigationFlow();
/** * Returns the meta object for class '{@link IFML.Core.NavigationFlow <em>Navigation Flow</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Navigation Flow</em>'. * @see IFML.Core.NavigationFlow * @generated */
Returns the meta object for class '<code>IFML.Core.NavigationFlow Navigation Flow</code>'.
getNavigationFlow
{ "repo_name": "ifml/ifml-editor", "path": "plugins/IFMLEditor/src/IFML/Core/CorePackage.java", "license": "mit", "size": 245317 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,546,736
public static StringBuilder getAuthUrlBuffer(OpenIdUser user, String trustRoot, String realm, String returnTo) { if(!user.isAssociated()) throw new IllegalArgumentException("claimed_id of user has not been verified."); String identity = user.getOpenIdD...
static StringBuilder function(OpenIdUser user, String trustRoot, String realm, String returnTo) { if(!user.isAssociated()) throw new IllegalArgumentException(STR); String identity = user.getOpenIdDelegate(); if(identity==null) identity = user.getClaimedId(); StringBuilder buffer = new StringBuilder().append(user.getOpe...
/** * Gets the StringBuilder filled with the openid parameters that is used to * redirect the user to his openid provider. */
Gets the StringBuilder filled with the openid parameters that is used to redirect the user to his openid provider
getAuthUrlBuffer
{ "repo_name": "thr0w/dyuproject", "path": "modules/openid/src/main/java/com/dyuproject/openid/RelyingParty.java", "license": "apache-2.0", "size": 30751 }
[ "com.dyuproject.util.http.UrlEncodedParameterMap" ]
import com.dyuproject.util.http.UrlEncodedParameterMap;
import com.dyuproject.util.http.*;
[ "com.dyuproject.util" ]
com.dyuproject.util;
1,730,685
public void applyCommentDefaultsToEntries(WebsiteData website) throws RollerException;
void function(WebsiteData website) throws RollerException;
/** * Apply comment default settings from website to all of website's entries. */
Apply comment default settings from website to all of website's entries
applyCommentDefaultsToEntries
{ "repo_name": "paulnguyen/cmpe279", "path": "eclipse/Roller/src/org/apache/roller/model/WeblogManager.java", "license": "apache-2.0", "size": 14559 }
[ "org.apache.roller.RollerException", "org.apache.roller.pojos.WebsiteData" ]
import org.apache.roller.RollerException; import org.apache.roller.pojos.WebsiteData;
import org.apache.roller.*; import org.apache.roller.pojos.*;
[ "org.apache.roller" ]
org.apache.roller;
51,697
public static String createFileId(FileContext ctx) { Folder folder = ctx.getInputFolder(); String folderGuid = Native.createGuid().replaceAll("[^A-Za-z0-9]", ""); if (folder != null) { String inputFolderName = folder.getName(); return inputFolde...
static String function(FileContext ctx) { Folder folder = ctx.getInputFolder(); String folderGuid = Native.createGuid().replaceAll(STR, STR-" + folderGuid; } else { return folderGuid; } }
/** * Creates a unique file ID. * * @param ctx folderObject File's input folder. * * @return */
Creates a unique file ID
createFileId
{ "repo_name": "MatthiasEberl/cordysfilecon", "path": "src/cws/FileConnector/com-cordys-coe/fileconnector/java/source/com/cordys/coe/ac/fileconnector/extensions/directorypoller/Utils.java", "license": "apache-2.0", "size": 11561 }
[ "com.eibus.util.system.Native" ]
import com.eibus.util.system.Native;
import com.eibus.util.system.*;
[ "com.eibus.util" ]
com.eibus.util;
1,297,662
private void setupconfigIpCPoints() { for (int i = 1; i <= 3; i++) { ConnectPoint connectPoint = new ConnectPoint( getDeviceId(i), PortNumber.portNumber(1)); configIpCPoints.add(connectPoint); } }
void function() { for (int i = 1; i <= 3; i++) { ConnectPoint connectPoint = new ConnectPoint( getDeviceId(i), PortNumber.portNumber(1)); configIpCPoints.add(connectPoint); } }
/** * Creates a list of connect points used to verify floodling on ports * with interfaces configured (both VLAN and IP). */
Creates a list of connect points used to verify floodling on ports with interfaces configured (both VLAN and IP)
setupconfigIpCPoints
{ "repo_name": "paradisecr/ONOS-OXP", "path": "core/net/src/test/java/org/onosproject/net/proxyarp/impl/ProxyArpManagerTest.java", "license": "apache-2.0", "size": 46424 }
[ "org.onosproject.net.ConnectPoint", "org.onosproject.net.PortNumber" ]
import org.onosproject.net.ConnectPoint; import org.onosproject.net.PortNumber;
import org.onosproject.net.*;
[ "org.onosproject.net" ]
org.onosproject.net;
2,461,290
@Deprecated @Override public Button getButton(int whichButton) { if (whichButton == AlertDialog.BUTTON_POSITIVE) { return mBuilder.positiveText != null ? new Button(getContext()) : null; } else if (whichButton == AlertDialog.BUTTON_NEUTRAL) { return mBuilder.neutralTe...
Button function(int whichButton) { if (whichButton == AlertDialog.BUTTON_POSITIVE) { return mBuilder.positiveText != null ? new Button(getContext()) : null; } else if (whichButton == AlertDialog.BUTTON_NEUTRAL) { return mBuilder.neutralText != null ? new Button(getContext()) : null; } else { return mBuilder.negativeTex...
/** * This will not return buttons that are actually in the layout itself, since the layout doesn't * contain buttons. This is only implemented to avoid crashing issues on Huawei devices. Huawei's * stock OS requires this method in order to detect visible buttons. * * @deprecated Use getActionB...
This will not return buttons that are actually in the layout itself, since the layout doesn't contain buttons. This is only implemented to avoid crashing issues on Huawei devices. Huawei's stock OS requires this method in order to detect visible buttons
getButton
{ "repo_name": "trafi/material-dialogs", "path": "library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java", "license": "mit", "size": 70017 }
[ "android.app.AlertDialog", "android.widget.Button" ]
import android.app.AlertDialog; import android.widget.Button;
import android.app.*; import android.widget.*;
[ "android.app", "android.widget" ]
android.app; android.widget;
1,531,448
void scheduleRunOnceJob(RunOnceSchedulableJob schedulableJob);
void scheduleRunOnceJob(RunOnceSchedulableJob schedulableJob);
/** * Schedules {@code RunOnceSchedulableJob}. * * @param schedulableJob the {@code RunOnceSchedulableJob} to be scheduled, not null */
Schedules RunOnceSchedulableJob
scheduleRunOnceJob
{ "repo_name": "sebbrudzinski/motech", "path": "modules/scheduler/scheduler/src/main/java/org/motechproject/scheduler/service/MotechSchedulerService.java", "license": "bsd-3-clause", "size": 10532 }
[ "org.motechproject.scheduler.contract.RunOnceSchedulableJob" ]
import org.motechproject.scheduler.contract.RunOnceSchedulableJob;
import org.motechproject.scheduler.contract.*;
[ "org.motechproject.scheduler" ]
org.motechproject.scheduler;
1,109,999
@Test public void issuerWhenGrantTypesSupportedInvalidThenException() throws Exception { this.response.put("grant_types_supported", Arrays.asList("implicit")); assertThatThrownBy(() -> registration("")) .isInstanceOf(IllegalArgumentException.class) .hasMessageContaining("Only AuthorizationGrantType.AUT...
void function() throws Exception { this.response.put(STR, Arrays.asList(STR)); assertThatThrownBy(() -> registration(STROnly AuthorizationGrantType.AUTHORIZATION_CODE is supported. The issuer \STR\STR); }
/** * We currently only support authorization_code, so verify we have a meaningful error until we add support. * @throws Exception */
We currently only support authorization_code, so verify we have a meaningful error until we add support
issuerWhenGrantTypesSupportedInvalidThenException
{ "repo_name": "eddumelendez/spring-security", "path": "oauth2/oauth2-client/src/test/java/org/springframework/security/oauth2/client/registration/ClientRegistrationsTest.java", "license": "apache-2.0", "size": 18306 }
[ "java.util.Arrays", "org.assertj.core.api.Assertions", "org.springframework.security.oauth2.core.AuthorizationGrantType" ]
import java.util.Arrays; import org.assertj.core.api.Assertions; import org.springframework.security.oauth2.core.AuthorizationGrantType;
import java.util.*; import org.assertj.core.api.*; import org.springframework.security.oauth2.core.*;
[ "java.util", "org.assertj.core", "org.springframework.security" ]
java.util; org.assertj.core; org.springframework.security;
33,634
public static void setLinksTo(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Thing value) { Base.set(model, instanceResource, LINKSTO, value); }
static void function(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, Thing value) { Base.set(model, instanceResource, LINKSTO, value); }
/** * Sets a value of property LinksTo from an instance of Thing First, all * existing values are removed, then this value is added. Cardinality * constraints are not checked, but this method exists only for properties * with no minCardinality or minCardinality == 1. * * @param model ...
Sets a value of property LinksTo from an instance of Thing First, all existing values are removed, then this value is added. Cardinality constraints are not checked, but this method exists only for properties with no minCardinality or minCardinality == 1
setLinksTo
{ "repo_name": "m0ep/master-thesis", "path": "source/apis/rdf2go/rdf2go-sioc/src/main/java/org/rdfs/sioc/Thing.java", "license": "mit", "size": 317844 }
[ "org.ontoware.rdf2go.model.Model", "org.ontoware.rdfreactor.runtime.Base" ]
import org.ontoware.rdf2go.model.Model; import org.ontoware.rdfreactor.runtime.Base;
import org.ontoware.rdf2go.model.*; import org.ontoware.rdfreactor.runtime.*;
[ "org.ontoware.rdf2go", "org.ontoware.rdfreactor" ]
org.ontoware.rdf2go; org.ontoware.rdfreactor;
1,083,797
public JobExecutionTypeStatistics getJobExecutionTypeStatistics() { int transientJobCnt = 0; int daemonJobCnt = 0; for (CloudJobConfigurationPOJO each : configurationService.loadAll()) { if (CloudJobExecutionType.TRANSIENT.equals(each.getJobExecutionType())) { tra...
JobExecutionTypeStatistics function() { int transientJobCnt = 0; int daemonJobCnt = 0; for (CloudJobConfigurationPOJO each : configurationService.loadAll()) { if (CloudJobExecutionType.TRANSIENT.equals(each.getJobExecutionType())) { transientJobCnt++; } else if (CloudJobExecutionType.DAEMON.equals(each.getJobExecutionT...
/** * Get job execution type statistics. * * @return Job execution type statistics data object */
Get job execution type statistics
getJobExecutionTypeStatistics
{ "repo_name": "dangdangdotcom/elastic-job", "path": "elasticjob-cloud/elasticjob-cloud-scheduler/src/main/java/org/apache/shardingsphere/elasticjob/cloud/scheduler/statistics/StatisticManager.java", "license": "apache-2.0", "size": 11051 }
[ "org.apache.shardingsphere.elasticjob.cloud.config.CloudJobExecutionType", "org.apache.shardingsphere.elasticjob.cloud.config.pojo.CloudJobConfigurationPOJO", "org.apache.shardingsphere.elasticjob.cloud.statistics.type.job.JobExecutionTypeStatistics" ]
import org.apache.shardingsphere.elasticjob.cloud.config.CloudJobExecutionType; import org.apache.shardingsphere.elasticjob.cloud.config.pojo.CloudJobConfigurationPOJO; import org.apache.shardingsphere.elasticjob.cloud.statistics.type.job.JobExecutionTypeStatistics;
import org.apache.shardingsphere.elasticjob.cloud.config.*; import org.apache.shardingsphere.elasticjob.cloud.config.pojo.*; import org.apache.shardingsphere.elasticjob.cloud.statistics.type.job.*;
[ "org.apache.shardingsphere" ]
org.apache.shardingsphere;
1,564,307
String uniqueDeviceName = getClassTokenName(); //ascertain if this element is to be displayed on the dashboard String b = MediPiProperties.getInstance().getProperties().getProperty(MediPi.ELEMENTNAMESPACESTEM + uniqueDeviceName + ".showdashboardtile"); if (b == null || b.trim().leng...
String uniqueDeviceName = getClassTokenName(); String b = MediPiProperties.getInstance().getProperties().getProperty(MediPi.ELEMENTNAMESPACESTEM + uniqueDeviceName + STR); if (b == null b.trim().length() == 0) { showTile = new SimpleBooleanProperty(true); } else { showTile = new SimpleBooleanProperty(!b.toLowerCase().s...
/** * Initiation method called for this Element. * * Successful initiation of the this class results in a null return. Any * other response indicates a failure with the returned content being a * reason for the failure * * @return populated or null for whether the initiation wa...
Initiation method called for this Element. Successful initiation of the this class results in a null return. Any other response indicates a failure with the returned content being a reason for the failure
init
{ "repo_name": "Samuel789/MediPi", "path": "MediPiPatient/MediPi/src/main/java/org/medipi/devices/Responses.java", "license": "apache-2.0", "size": 28680 }
[ "java.io.File", "java.io.IOException", "java.nio.file.Paths", "org.medipi.MediPi", "org.medipi.MediPiProperties" ]
import java.io.File; import java.io.IOException; import java.nio.file.Paths; import org.medipi.MediPi; import org.medipi.MediPiProperties;
import java.io.*; import java.nio.file.*; import org.medipi.*;
[ "java.io", "java.nio", "org.medipi" ]
java.io; java.nio; org.medipi;
1,438,727
@Deprecated public HttpResponse sendBulkRequest(Iterable<PiwikRequest> requests, String authToken) throws IOException { if (authToken != null && authToken.length() != PiwikRequest.AUTH_TOKEN_LENGTH) { throw new IllegalArgumentException(authToken + " is not " + PiwikRequest.AUTH_TOKEN_LENGTH + " characters...
HttpResponse function(Iterable<PiwikRequest> requests, String authToken) throws IOException { if (authToken != null && authToken.length() != PiwikRequest.AUTH_TOKEN_LENGTH) { throw new IllegalArgumentException(authToken + STR + PiwikRequest.AUTH_TOKEN_LENGTH + STR); } JsonObjectBuilder ob = Json.createObjectBuilder(); ...
/** * Send multiple requests in a single HTTP call. More efficient than sending * several individual requests. Specify the AuthToken if parameters that require * an auth token is used. * * @param requests the requests to send * @param authToken specify if any of the parameters use require AuthToken ...
Send multiple requests in a single HTTP call. More efficient than sending several individual requests. Specify the AuthToken if parameters that require an auth token is used
sendBulkRequest
{ "repo_name": "piwik/piwik-java-tracker", "path": "src/main/java/org/piwik/java/tracking/PiwikTracker.java", "license": "bsd-3-clause", "size": 9957 }
[ "java.io.IOException", "java.net.URISyntaxException", "javax.json.Json", "javax.json.JsonArrayBuilder", "javax.json.JsonObjectBuilder", "org.apache.http.HttpResponse", "org.apache.http.client.HttpClient", "org.apache.http.client.methods.HttpPost", "org.apache.http.entity.ContentType", "org.apache....
import java.io.IOException; import java.net.URISyntaxException; import javax.json.Json; import javax.json.JsonArrayBuilder; import javax.json.JsonObjectBuilder; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.Co...
import java.io.*; import java.net.*; import javax.json.*; import org.apache.http.*; import org.apache.http.client.*; import org.apache.http.client.methods.*; import org.apache.http.entity.*;
[ "java.io", "java.net", "javax.json", "org.apache.http" ]
java.io; java.net; javax.json; org.apache.http;
1,863,144
public ITemplate getById(Long id);
ITemplate function(Long id);
/** * Returns the Template from the database by its Id * * @param id * of the Template * @return the corresponding Template from the database */
Returns the Template from the database by its Id
getById
{ "repo_name": "modaclouds/modaclouds-sla-core", "path": "sla-repository/src/main/java/eu/atos/sla/dao/ITemplateDAO.java", "license": "apache-2.0", "size": 2807 }
[ "eu.atos.sla.datamodel.ITemplate" ]
import eu.atos.sla.datamodel.ITemplate;
import eu.atos.sla.datamodel.*;
[ "eu.atos.sla" ]
eu.atos.sla;
1,356,531
public void setMomentoObjectUsingSharedDoc(Momento m) { Element root = doc.getRootElement(); Element action_name = root.getChild("action_name"); Element action_time = root.getChild("action_time"); Element action_id = root.getChild("action_id"); Element action_type = root.getChild("action_type"); action_...
void function(Momento m) { Element root = doc.getRootElement(); Element action_name = root.getChild(STR); Element action_time = root.getChild(STR); Element action_id = root.getChild(STR); Element action_type = root.getChild(STR); action_name.setText(m.getActionName()); action_time.setText(m.getActionTime()); action_id....
/** *The momento object records the status of actions. It has the following properties: action_name, action_time, action_id, action_type; * Unlike other methods here, the user does not need to call writeDocument(). * <p>Same as above but the caller must remember to write the doc later. */
The momento object records the status of actions. It has the following properties: Unlike other methods here, the user does not need to call writeDocument(). Same as above but the caller must remember to write the doc later
setMomentoObjectUsingSharedDoc
{ "repo_name": "timofeysie/catechis", "path": "src/org/catechis/file/FileTestRecords.java", "license": "apache-2.0", "size": 68533 }
[ "org.catechis.dto.Momento", "org.jdom.Element" ]
import org.catechis.dto.Momento; import org.jdom.Element;
import org.catechis.dto.*; import org.jdom.*;
[ "org.catechis.dto", "org.jdom" ]
org.catechis.dto; org.jdom;
784,573
private void refreshRowContainer(RowContainer rows, StaticSection<?> section) { // Add or Remove rows on demand int rowDiff = section.getVisibleRowCount() - rows.getRowCount(); if (rowDiff > 0) { rows.insertRows(0, rowDiff); } else if (rowDiff < 0) { rows.rem...
void function(RowContainer rows, StaticSection<?> section) { int rowDiff = section.getVisibleRowCount() - rows.getRowCount(); if (rowDiff > 0) { rows.insertRows(0, rowDiff); } else if (rowDiff < 0) { rows.removeRows(0, -rowDiff); } if (rows.getRowCount() > 0) { rows.refreshRows(0, rows.getRowCount()); } }
/** * Refreshes header or footer rows on demand * * @param rows * The row container * @param firstRowIsVisible * is the first row visible * @param isHeader * <code>true</code> if we refreshing the header, else assumed * the footer...
Refreshes header or footer rows on demand
refreshRowContainer
{ "repo_name": "shahrzadmn/vaadin", "path": "client/src/com/vaadin/client/widgets/Grid.java", "license": "apache-2.0", "size": 302957 }
[ "com.vaadin.client.widget.escalator.RowContainer" ]
import com.vaadin.client.widget.escalator.RowContainer;
import com.vaadin.client.widget.escalator.*;
[ "com.vaadin.client" ]
com.vaadin.client;
1,526,955
private MInOut createShipment(MDocType dt, Timestamp movementDate) { log.debug("For " + dt); MInOut shipment = new MInOut(this, dt.getC_DocTypeShipment_ID(), movementDate); // shipment.setDateAcct(getDateAcct()); if (!shipment.save(get_TrxName())) { m_processMsg = "Could not create Shipment"; return...
MInOut function(MDocType dt, Timestamp movementDate) { log.debug(STR + dt); MInOut shipment = new MInOut(this, dt.getC_DocTypeShipment_ID(), movementDate); if (!shipment.save(get_TrxName())) { m_processMsg = STR; return null; } for (int i = 0; i < oLines.length; i++) { MOrderLine oLine = oLines[i]; final I_C_OrderLine ...
/** * Create Shipment * * @param dt order document type * @param movementDate optional movement date (default today) * @return shipment or null */
Create Shipment
createShipment
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.business/src/main/java-legacy/org/compiere/model/MOrder.java", "license": "gpl-2.0", "size": 76411 }
[ "de.metas.i18n.Msg", "java.math.BigDecimal", "java.sql.Timestamp", "org.adempiere.model.InterfaceWrapperHelper", "org.compiere.util.Env" ]
import de.metas.i18n.Msg; import java.math.BigDecimal; import java.sql.Timestamp; import org.adempiere.model.InterfaceWrapperHelper; import org.compiere.util.Env;
import de.metas.i18n.*; import java.math.*; import java.sql.*; import org.adempiere.model.*; import org.compiere.util.*;
[ "de.metas.i18n", "java.math", "java.sql", "org.adempiere.model", "org.compiere.util" ]
de.metas.i18n; java.math; java.sql; org.adempiere.model; org.compiere.util;
731,065
@NotNull private String fieldToString(IgniteBiTuple<String, Object> kv, boolean pretty) { StringBuilder builder = new StringBuilder(pretty ? "\t" : "") .append(kv.getKey()).append(" = ["); if (kv.getValue() instanceof List) { List list = (List)kv.getValue(); build...
@NotNull String function(IgniteBiTuple<String, Object> kv, boolean pretty) { StringBuilder builder = new StringBuilder(pretty ? "\t" : STR = [STR\nSTRSTR\t\tSTRSTR,\nSTR, STR\n\t]STR]STR]"); } return builder.toString(); }
/** * Convert Field Name-Value pair to string. * * @param kv Field name and value. * @param pretty Use pretty mode. */
Convert Field Name-Value pair to string
fieldToString
{ "repo_name": "ptupitsyn/ignite", "path": "modules/ml/src/main/java/org/apache/ignite/ml/util/ModelTrace.java", "license": "apache-2.0", "size": 3904 }
[ "org.apache.ignite.lang.IgniteBiTuple", "org.jetbrains.annotations.NotNull" ]
import org.apache.ignite.lang.IgniteBiTuple; import org.jetbrains.annotations.NotNull;
import org.apache.ignite.lang.*; import org.jetbrains.annotations.*;
[ "org.apache.ignite", "org.jetbrains.annotations" ]
org.apache.ignite; org.jetbrains.annotations;
1,154,522
public static <C extends ComponentId> Partition getPartitionForLocalService(Class<C> compClass) throws EucalyptusCloudException { try { return Partitions.lookup(Components.lookup(compClass).getLocalServiceConfiguration()); } catch(Exception e) { LOG.error("Error finding partition for local component: " + c...
static <C extends ComponentId> Partition function(Class<C> compClass) throws EucalyptusCloudException { try { return Partitions.lookup(Components.lookup(compClass).getLocalServiceConfiguration()); } catch(Exception e) { LOG.error(STR + compClass.getCanonicalName()); throw new EucalyptusCloudException(STR, e); } }
/** * Returns the corresponding partition for the requested componentId class running on the local host * @param compClass * @return */
Returns the corresponding partition for the requested componentId class running on the local host
getPartitionForLocalService
{ "repo_name": "davenpcj5542009/eucalyptus", "path": "clc/modules/block-storage-common/src/main/java/com/eucalyptus/blockstorage/util/BlockStorageUtil.java", "license": "gpl-3.0", "size": 15533 }
[ "com.eucalyptus.component.ComponentId", "com.eucalyptus.component.Components", "com.eucalyptus.component.Partition", "com.eucalyptus.component.Partitions", "com.eucalyptus.util.EucalyptusCloudException" ]
import com.eucalyptus.component.ComponentId; import com.eucalyptus.component.Components; import com.eucalyptus.component.Partition; import com.eucalyptus.component.Partitions; import com.eucalyptus.util.EucalyptusCloudException;
import com.eucalyptus.component.*; import com.eucalyptus.util.*;
[ "com.eucalyptus.component", "com.eucalyptus.util" ]
com.eucalyptus.component; com.eucalyptus.util;
1,759,998
public List<JobInfo> getJobInfo() { List<JobInfo> ret = new ArrayList<JobInfo>(jobs.values()); Collections.sort(ret); return ret; }
List<JobInfo> function() { List<JobInfo> ret = new ArrayList<JobInfo>(jobs.values()); Collections.sort(ret); return ret; }
/** * get all job info * */
get all job info
getJobInfo
{ "repo_name": "home9464/ABCGrid", "path": "master/src/pku/cbi/abcgrid/master/JobMonitor.java", "license": "gpl-3.0", "size": 4012 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.List" ]
import java.util.ArrayList; import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,341,064
protected void dropFewItems(boolean p_70628_1_, int p_70628_2_) { if (this.getSkeletonType() == 1) { int i = this.rand.nextInt(3 + p_70628_2_) - 1; for (int j = 0; j < i; ++j) { this.dropItem(Items.coal, 1); } } els...
void function(boolean p_70628_1_, int p_70628_2_) { if (this.getSkeletonType() == 1) { int i = this.rand.nextInt(3 + p_70628_2_) - 1; for (int j = 0; j < i; ++j) { this.dropItem(Items.coal, 1); } } else { int k = this.rand.nextInt(3 + p_70628_2_); for (int i1 = 0; i1 < k; ++i1) { this.dropItem(Items.arrow, 1); } } int ...
/** * Drop 0-2 items of this living's type */
Drop 0-2 items of this living's type
dropFewItems
{ "repo_name": "TorchPowered/Thallium", "path": "src/main/java/net/minecraft/entity/monster/EntitySkeleton.java", "license": "mit", "size": 14041 }
[ "net.minecraft.init.Items" ]
import net.minecraft.init.Items;
import net.minecraft.init.*;
[ "net.minecraft.init" ]
net.minecraft.init;
1,921,812
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<SqlStoredProcedureGetResultsInner> getSqlStoredProcedureAsync( String resourceGroupName, String accountName, String databaseName, String containerName, String storedProcedureName) { return getSqlStoredProcedu...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<SqlStoredProcedureGetResultsInner> function( String resourceGroupName, String accountName, String databaseName, String containerName, String storedProcedureName) { return getSqlStoredProcedureWithResponseAsync( resourceGroupName, accountName, databaseName, containerName,...
/** * Gets the SQL storedProcedure under an existing Azure Cosmos DB database account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @param co...
Gets the SQL storedProcedure under an existing Azure Cosmos DB database account
getSqlStoredProcedureAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/implementation/SqlResourcesClientImpl.java", "license": "mit", "size": 547809 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.resourcemanager.cosmos.fluent.models.SqlStoredProcedureGetResultsInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.resourcemanager.cosmos.fluent.models.SqlStoredProcedureGetResultsInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.cosmos.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,839,526
public Object clone() { try { PKIXParameters copy = (PKIXParameters)super.clone(); // must clone these because addCertStore, et al. modify them if (certStores != null) { copy.certStores = new ArrayList<>(certStores); } if (certPath...
Object function() { try { PKIXParameters copy = (PKIXParameters)super.clone(); if (certStores != null) { copy.certStores = new ArrayList<>(certStores); } if (certPathCheckers != null) { copy.certPathCheckers = new ArrayList<>(certPathCheckers.size()); for (PKIXCertPathChecker checker : certPathCheckers) { copy.certPath...
/** * Makes a copy of this {@code PKIXParameters} object. Changes * to the copy will not affect the original and vice versa. * * @return a copy of this {@code PKIXParameters} object */
Makes a copy of this PKIXParameters object. Changes to the copy will not affect the original and vice versa
clone
{ "repo_name": "FauxFaux/jdk9-jdk", "path": "src/java.base/share/classes/java/security/cert/PKIXParameters.java", "license": "gpl-2.0", "size": 29332 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
2,576,869
public Line withWords(List<Word> words) { this.words = words; return this; }
Line function(List<Word> words) { this.words = words; return this; }
/** * Set the words value. * * @param words the words value to set * @return the Line object itself. */
Set the words value
withWords
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/cognitiveservices/ms-azure-cs-computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/models/Line.java", "license": "mit", "size": 2720 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
662,998
public UpdateResult toTrakt(Set<Integer> moviesNotOnTraktCollection, Set<Integer> moviesNotOnTraktWatchlist) { if (moviesNotOnTraktCollection.size() == 0 && moviesNotOnTraktWatchlist.size() == 0) { // nothing to upload Timber.d("toTrakt: nothing to upload"); r...
UpdateResult function(Set<Integer> moviesNotOnTraktCollection, Set<Integer> moviesNotOnTraktWatchlist) { if (moviesNotOnTraktCollection.size() == 0 && moviesNotOnTraktWatchlist.size() == 0) { Timber.d(STR); return UpdateResult.SUCCESS; } if (!AndroidUtils.isNetworkConnected(context)) { return UpdateResult.INCOMPLETE; }...
/** * Checks if the given movies are in the local collection or watchlist, then uploads them to the * appropriate list(s) on trakt. */
Checks if the given movies are in the local collection or watchlist, then uploads them to the appropriate list(s) on trakt
toTrakt
{ "repo_name": "TreyWiranta/ASV", "path": "SeriesGuide/src/main/java/com/battlelancer/seriesguide/util/MovieTools.java", "license": "unlicense", "size": 42931 }
[ "android.database.Cursor", "com.battlelancer.seriesguide.provider.SeriesGuideContract", "com.battlelancer.seriesguide.sync.SgSyncAdapter", "com.battlelancer.seriesguide.traktapi.SgTrakt", "com.uwetrottmann.androidutils.AndroidUtils", "com.uwetrottmann.trakt5.entities.MovieIds", "com.uwetrottmann.trakt5....
import android.database.Cursor; import com.battlelancer.seriesguide.provider.SeriesGuideContract; import com.battlelancer.seriesguide.sync.SgSyncAdapter; import com.battlelancer.seriesguide.traktapi.SgTrakt; import com.uwetrottmann.androidutils.AndroidUtils; import com.uwetrottmann.trakt5.entities.MovieIds; import com....
import android.database.*; import com.battlelancer.seriesguide.provider.*; import com.battlelancer.seriesguide.sync.*; import com.battlelancer.seriesguide.traktapi.*; import com.uwetrottmann.androidutils.*; import com.uwetrottmann.trakt5.entities.*; import com.uwetrottmann.trakt5.services.*; import java.io.*; import ja...
[ "android.database", "com.battlelancer.seriesguide", "com.uwetrottmann.androidutils", "com.uwetrottmann.trakt5", "java.io", "java.util" ]
android.database; com.battlelancer.seriesguide; com.uwetrottmann.androidutils; com.uwetrottmann.trakt5; java.io; java.util;
1,837,221
private void expandAndRehash() { final Object[] oldKeys = this.keys; assert assigned >= resizeThreshold; allocateBuffers(nextCapacity(keys.length)); final int mask = keys.length - 1; for (int i = 0; i < oldKeys.length; i++) { final Object key = oldKeys[i]; ...
void function() { final Object[] oldKeys = this.keys; assert assigned >= resizeThreshold; allocateBuffers(nextCapacity(keys.length)); final int mask = keys.length - 1; for (int i = 0; i < oldKeys.length; i++) { final Object key = oldKeys[i]; if (key != null) { int slot = rehash(key) & mask; while (keys[slot] != null) {...
/** * Expand the internal storage buffers (capacity) or rehash current keys and * values if there are a lot of deleted slots. */
Expand the internal storage buffers (capacity) or rehash current keys and values if there are a lot of deleted slots
expandAndRehash
{ "repo_name": "williamchengit/TestRepo", "path": "solr-4.9.0/lucene/test-framework/src/java/org/apache/lucene/util/RamUsageTester.java", "license": "apache-2.0", "size": 14052 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
374,138
public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { this.extraParams = new HashMap<>(); } this.extraParams.put(key, value); return this; }
Builder function(String key, Object value) { if (this.extraParams == null) { this.extraParams = new HashMap<>(); } this.extraParams.put(key, value); return this; }
/** * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` * call, and subsequent calls add additional key/value pairs to the original map. See {@link * TaxCodeListParams#extraParams} for the field documentation. */
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See <code>TaxCodeListParams#extraParams</code> for the field documentation
putExtraParam
{ "repo_name": "stripe/stripe-java", "path": "src/main/java/com/stripe/param/TaxCodeListParams.java", "license": "mit", "size": 5885 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,105,104
@Test public void testDelete3() { TimeSeries s1 = new TimeSeries("S1"); s1.add(new Year(2011), 1.1); s1.add(new Year(2012), 2.2); s1.add(new Year(2013), 3.3); s1.add(new Year(2014), 4.4); s1.add(new Year(2015), 5.5); s1.add(new Year(2016), 6.6); ...
void function() { TimeSeries s1 = new TimeSeries("S1"); s1.add(new Year(2011), 1.1); s1.add(new Year(2012), 2.2); s1.add(new Year(2013), 3.3); s1.add(new Year(2014), 4.4); s1.add(new Year(2015), 5.5); s1.add(new Year(2016), 6.6); s1.delete(2, 5); assertEquals(2, s1.getItemCount()); assertEquals(new Year(2011), s1.getTi...
/** * Some checks for the delete(int, int) method. */
Some checks for the delete(int, int) method
testDelete3
{ "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,919
public void doNewRecord(boolean bDisplayOption) { super.doNewRecord(bDisplayOption); if (m_bMoveOnNew) { boolean bOldModified = false; if (m_fldDest != null) bOldModified = m_fldDest.isModified(); int iMoveType = DBConstants.INIT_MOVE; // Ty...
void function(boolean bDisplayOption) { super.doNewRecord(bDisplayOption); if (m_bMoveOnNew) { boolean bOldModified = false; if (m_fldDest != null) bOldModified = m_fldDest.isModified(); int iMoveType = DBConstants.INIT_MOVE; if (m_bMoveOnValid) if (m_fldDest != null) if (m_fldDest instanceof ReferenceField) if (((Refe...
/** * Called when a new blank record is required for the table/query. * @param bDisplayOption If true, display any changes. */
Called when a new blank record is required for the table/query
doNewRecord
{ "repo_name": "jbundle/jbundle", "path": "base/base/src/main/java/org/jbundle/base/db/event/MoveOnEventHandler.java", "license": "gpl-3.0", "size": 9554 }
[ "org.jbundle.base.field.ReferenceField", "org.jbundle.base.model.DBConstants" ]
import org.jbundle.base.field.ReferenceField; import org.jbundle.base.model.DBConstants;
import org.jbundle.base.field.*; import org.jbundle.base.model.*;
[ "org.jbundle.base" ]
org.jbundle.base;
2,550,407
@Override @NotNull PsiClassType createType(@NotNull PsiClass resolve, @NotNull PsiSubstitutor substitutor, @Nullable LanguageLevel languageLevel);
@NotNull PsiClassType createType(@NotNull PsiClass resolve, @NotNull PsiSubstitutor substitutor, @Nullable LanguageLevel languageLevel);
/** * Creates a class type for the specified class, using the specified substitutor * to replace generic type parameters on the class. * * @param resolve the class for which the class type is created. * @param substitutor the substitutor to use. * @param languageLevel to memorize language leve...
Creates a class type for the specified class, using the specified substitutor to replace generic type parameters on the class
createType
{ "repo_name": "caot/intellij-community", "path": "java/java-psi-api/src/com/intellij/psi/PsiElementFactory.java", "license": "apache-2.0", "size": 20810 }
[ "com.intellij.pom.java.LanguageLevel", "org.jetbrains.annotations.NotNull", "org.jetbrains.annotations.Nullable" ]
import com.intellij.pom.java.LanguageLevel; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable;
import com.intellij.pom.java.*; import org.jetbrains.annotations.*;
[ "com.intellij.pom", "org.jetbrains.annotations" ]
com.intellij.pom; org.jetbrains.annotations;
2,438,478
// TODO: We should add: ObjectMapper#getParentObjectMapper() public ObjectMapper findParentObjectMapper(ObjectMapper objectMapper) { int indexOfLastDot = objectMapper.fullPath().lastIndexOf('.'); if (indexOfLastDot != -1) { String parentNestObjectPath = objectMapper.fullPath().substr...
ObjectMapper function(ObjectMapper objectMapper) { int indexOfLastDot = objectMapper.fullPath().lastIndexOf('.'); if (indexOfLastDot != -1) { String parentNestObjectPath = objectMapper.fullPath().substring(0, indexOfLastDot); return objectMappers().get(parentNestObjectPath); } else { return null; } }
/** * Returns the parent {@link ObjectMapper} instance of the specified object mapper or <code>null</code> if there * isn't any. */
Returns the parent <code>ObjectMapper</code> instance of the specified object mapper or <code>null</code> if there isn't any
findParentObjectMapper
{ "repo_name": "weipinghe/elasticsearch", "path": "core/src/main/java/org/elasticsearch/index/mapper/DocumentMapper.java", "license": "apache-2.0", "size": 19923 }
[ "org.elasticsearch.index.mapper.object.ObjectMapper" ]
import org.elasticsearch.index.mapper.object.ObjectMapper;
import org.elasticsearch.index.mapper.object.*;
[ "org.elasticsearch.index" ]
org.elasticsearch.index;
2,164,533
void cancelDisplayTaskFor(ImageView imageView) { cacheKeysForImageViews.remove(imageView.hashCode()); } /** * Denies or allows engine to download images from the network.<br /> * <br /> * If downloads are denied and if image isn't cached then * {@link ImageLoadingListener#onLoadingFailed(String, View, F...
void cancelDisplayTaskFor(ImageView imageView) { cacheKeysForImageViews.remove(imageView.hashCode()); } /** * Denies or allows engine to download images from the network.<br /> * <br /> * If downloads are denied and if image isn't cached then * {@link ImageLoadingListener#onLoadingFailed(String, View, FailReason)} call...
/** * Cancels the task of loading and displaying image for incoming <b>imageView</b>. * * @param imageView {@link ImageView} for which display task will be cancelled */
Cancels the task of loading and displaying image for incoming imageView
cancelDisplayTaskFor
{ "repo_name": "huanghuorong/Android-Universal-Image-Loader", "path": "library/src/com/nostra13/universalimageloader/core/ImageLoaderEngine.java", "license": "apache-2.0", "size": 7086 }
[ "android.view.View", "android.widget.ImageView", "com.nostra13.universalimageloader.core.assist.FailReason", "com.nostra13.universalimageloader.core.assist.ImageLoadingListener" ]
import android.view.View; import android.widget.ImageView; import com.nostra13.universalimageloader.core.assist.FailReason; import com.nostra13.universalimageloader.core.assist.ImageLoadingListener;
import android.view.*; import android.widget.*; import com.nostra13.universalimageloader.core.assist.*;
[ "android.view", "android.widget", "com.nostra13.universalimageloader" ]
android.view; android.widget; com.nostra13.universalimageloader;
263,028
@Override public int readSFixed32() throws IOException { checkIfPackedField(); return readRawLittleEndian32(); }
int function() throws IOException { checkIfPackedField(); return readRawLittleEndian32(); }
/** * Read an {@code sfixed32} field value from the stream. */
Read an sfixed32 field value from the stream
readSFixed32
{ "repo_name": "Shvid/protostuff", "path": "protostuff-core/src/main/java/io/protostuff/CodedInput.java", "license": "apache-2.0", "size": 40683 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,027,066
public Controller setAttrs(Map<String, Object> attrMap) { for (Map.Entry<String, Object> entry : attrMap.entrySet()) request.setAttribute(entry.getKey(), entry.getValue()); return this; }
Controller function(Map<String, Object> attrMap) { for (Map.Entry<String, Object> entry : attrMap.entrySet()) request.setAttribute(entry.getKey(), entry.getValue()); return this; }
/** * Stores attributes in this request, key of the map as attribute name and value of the map as attribute value * @param attrMap key and value as attribute of the map to be stored */
Stores attributes in this request, key of the map as attribute name and value of the map as attribute value
setAttrs
{ "repo_name": "shootboss/goja", "path": "goja-jfinal/src/main/java/com/jfinal/core/Controller.java", "license": "mit", "size": 31589 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
140,197
public void addVersionLabel(final String label) throws RepositoryException { final VersionHistory versionHistory = getVersionHistory(node); versionHistory.addVersionLabel(getBaseVersion(node).getName(), label, true); }
void function(final String label) throws RepositoryException { final VersionHistory versionHistory = getVersionHistory(node); versionHistory.addVersionLabel(getBaseVersion(node).getName(), label, true); }
/** * Tag the current version of the Node with a version label that * can be retrieved by name later. * * @param label * @throws RepositoryException */
Tag the current version of the Node with a version label that can be retrieved by name later
addVersionLabel
{ "repo_name": "barmintor/fcrepo4", "path": "fcrepo-kernel/src/main/java/org/fcrepo/kernel/FedoraResource.java", "license": "apache-2.0", "size": 13555 }
[ "javax.jcr.RepositoryException", "javax.jcr.version.VersionHistory", "org.fcrepo.kernel.utils.FedoraTypesUtils" ]
import javax.jcr.RepositoryException; import javax.jcr.version.VersionHistory; import org.fcrepo.kernel.utils.FedoraTypesUtils;
import javax.jcr.*; import javax.jcr.version.*; import org.fcrepo.kernel.utils.*;
[ "javax.jcr", "org.fcrepo.kernel" ]
javax.jcr; org.fcrepo.kernel;
1,240,974
public static void assertElementText(QAFWebElement ele, String text) { ele.assertText(text); }
static void function(QAFWebElement ele, String text) { ele.assertText(text); }
/** * To assert text present * * @param ele * @param text */
To assert text present
assertElementText
{ "repo_name": "infoneershalin/qaf", "path": "src/com/qmetry/qaf/automation/step/WebElementStepLib.java", "license": "gpl-3.0", "size": 28625 }
[ "com.qmetry.qaf.automation.ui.webdriver.QAFWebElement" ]
import com.qmetry.qaf.automation.ui.webdriver.QAFWebElement;
import com.qmetry.qaf.automation.ui.webdriver.*;
[ "com.qmetry.qaf" ]
com.qmetry.qaf;
381,756
@Template("<div class=\"{0}\" id=\"{1}\" title=\"{2}\" aria-role=\"tree\">{3}</div>") SafeHtml outerDiv(String classes, String id , String title, String content);
@Template(STR{0}\STR{1}\STR{2}\STRtree\STR) SafeHtml outerDiv(String classes, String id , String title, String content);
/** * Outer div. * * @param classes the classes * @param id the id * @param title the title * @param content the content * @return the safe html */
Outer div
outerDiv
{ "repo_name": "JaLandry/MeasureAuthoringTool_LatestSprint", "path": "mat/src/mat/client/clause/clauseworkspace/view/XmlTreeView.java", "license": "apache-2.0", "size": 94235 }
[ "com.google.gwt.safehtml.client.SafeHtmlTemplates", "com.google.gwt.safehtml.shared.SafeHtml" ]
import com.google.gwt.safehtml.client.SafeHtmlTemplates; import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.safehtml.client.*; import com.google.gwt.safehtml.shared.*;
[ "com.google.gwt" ]
com.google.gwt;
954,260
protected void animatePanelToState(PanelState state, StateChangeReason reason, long duration) { mAnimatingState = state; mAnimatingStateReason = reason; final float height = getPanelHeightFromState(state); animatePanelTo(height, duration); }
void function(PanelState state, StateChangeReason reason, long duration) { mAnimatingState = state; mAnimatingStateReason = reason; final float height = getPanelHeightFromState(state); animatePanelTo(height, duration); }
/** * Animates the Contextual Search Panel to a given |state| with a custom |duration|. * * @param state The state to animate to. * @param reason The reason for the change of panel state. * @param duration The animation duration in milliseconds. */
Animates the Contextual Search Panel to a given |state| with a custom |duration|
animatePanelToState
{ "repo_name": "Pluto-tv/chromium-crosswalk", "path": "chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelAnimation.java", "license": "bsd-3-clause", "size": 19433 }
[ "org.chromium.chrome.browser.compositor.bottombar.contextualsearch.ContextualSearchPanel" ]
import org.chromium.chrome.browser.compositor.bottombar.contextualsearch.ContextualSearchPanel;
import org.chromium.chrome.browser.compositor.bottombar.contextualsearch.*;
[ "org.chromium.chrome" ]
org.chromium.chrome;
1,884,652
private void assertFileSpecs(final List<IFileSpec> specs) { assertNotNull(specs); assertEquals(1, specs.size()); IFileSpec fs = specs.get(0); assertNotNull(specs.get(0)); assertEquals(FileSpecOpStatus.VALID, fs.getOpStatus()); }
void function(final List<IFileSpec> specs) { assertNotNull(specs); assertEquals(1, specs.size()); IFileSpec fs = specs.get(0); assertNotNull(specs.get(0)); assertEquals(FileSpecOpStatus.VALID, fs.getOpStatus()); }
/** * Assert that the file specs built are as expected. * * @param specs * the specs */
Assert that the file specs built are as expected
assertFileSpecs
{ "repo_name": "groboclown/p4ic4idea", "path": "p4java/r18-1/src/test/java/com/perforce/p4java/impl/mapbased/server/cmd/FilesDelegatorTest.java", "license": "apache-2.0", "size": 10724 }
[ "com.perforce.p4java.core.file.FileSpecOpStatus", "com.perforce.p4java.core.file.IFileSpec", "java.util.List", "org.junit.Assert" ]
import com.perforce.p4java.core.file.FileSpecOpStatus; import com.perforce.p4java.core.file.IFileSpec; import java.util.List; import org.junit.Assert;
import com.perforce.p4java.core.file.*; import java.util.*; import org.junit.*;
[ "com.perforce.p4java", "java.util", "org.junit" ]
com.perforce.p4java; java.util; org.junit;
2,082,301
public static CameraDevice openCamera(CameraManager manager, String cameraId, Handler handler) throws CameraAccessException, BlockingOpenException { return openCamera(manager, cameraId, null, handler); }
static CameraDevice function(CameraManager manager, String cameraId, Handler handler) throws CameraAccessException, BlockingOpenException { return openCamera(manager, cameraId, null, handler); }
/** * Block until the camera is opened. * * <p>Don't use this to test #onDisconnected/#onError since this will throw * an AssertionError if it fails to open the camera device.</p> * * @return CameraDevice opened camera device * * @throws AssertionError if the camera fails to open...
Block until the camera is opened. Don't use this to test #onDisconnected/#onError since this will throw an AssertionError if it fails to open the camera device
openCamera
{ "repo_name": "indashnet/InDashNet.Open.UN2000", "path": "android/cts/tests/tests/hardware/src/android/hardware/camera2/cts/CameraTestUtils.java", "license": "apache-2.0", "size": 11988 }
[ "android.hardware.camera2.CameraAccessException", "android.hardware.camera2.CameraDevice", "android.hardware.camera2.CameraManager", "android.os.Handler", "com.android.ex.camera2.blocking.BlockingCameraManager" ]
import android.hardware.camera2.CameraAccessException; import android.hardware.camera2.CameraDevice; import android.hardware.camera2.CameraManager; import android.os.Handler; import com.android.ex.camera2.blocking.BlockingCameraManager;
import android.hardware.camera2.*; import android.os.*; import com.android.ex.camera2.blocking.*;
[ "android.hardware", "android.os", "com.android.ex" ]
android.hardware; android.os; com.android.ex;
2,829,464
public List<VJoint> getControlledJoints() { return bodyParts; }
List<VJoint> function() { return bodyParts; }
/** * Gets the joints steered with this ProcAnimation */
Gets the joints steered with this ProcAnimation
getControlledJoints
{ "repo_name": "ArticulatedSocialAgentsPlatform/AsapRealizer", "path": "Engines/Animation/AsapAnimationEngine/src/asap/animationengine/procanimation/ProcAnimationMU.java", "license": "lgpl-3.0", "size": 44301 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
619,698
public void uninstallFix(Collection<String> fixNames) throws InstallException { getUninstallDirector().uninstallFix(fixNames); }
void function(Collection<String> fixNames) throws InstallException { getUninstallDirector().uninstallFix(fixNames); }
/** * Uninstalls all fixes in the specified collection * * @param fixNames Collection of fix names to uninstall * @throws InstallException */
Uninstalls all fixes in the specified collection
uninstallFix
{ "repo_name": "kgibm/open-liberty", "path": "dev/com.ibm.ws.install/src/com/ibm/ws/install/internal/Director.java", "license": "epl-1.0", "size": 93799 }
[ "com.ibm.ws.install.InstallException", "java.util.Collection" ]
import com.ibm.ws.install.InstallException; import java.util.Collection;
import com.ibm.ws.install.*; import java.util.*;
[ "com.ibm.ws", "java.util" ]
com.ibm.ws; java.util;
2,721,868
public boolean supportsOpenCursorsAcrossRollback() throws SQLException { return false; }
boolean function() throws SQLException { return false; }
/** * Can cursors remain open across rollbacks? * * @return true if so * @throws SQLException * if an error occurs * @see Connection#disableAutoClose */
Can cursors remain open across rollbacks
supportsOpenCursorsAcrossRollback
{ "repo_name": "slockhart/sql-app", "path": "mysql-connector-java-5.1.34/src/com/mysql/jdbc/DatabaseMetaData.java", "license": "gpl-2.0", "size": 338367 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,032,048
boolean moveProxy(int proxyId, AABB aabb, Vec2 displacement);
boolean moveProxy(int proxyId, AABB aabb, Vec2 displacement);
/** * Move a proxy with a swepted AABB. If the proxy has moved outside of its fattened AABB, then the * proxy is removed from the tree and re-inserted. Otherwise the function returns immediately. * * @return true if the proxy was re-inserted. */
Move a proxy with a swepted AABB. If the proxy has moved outside of its fattened AABB, then the proxy is removed from the tree and re-inserted. Otherwise the function returns immediately
moveProxy
{ "repo_name": "Omnicrola/PixelBlaster", "path": "PixelBlaster/lib/jbox2d/src-jbox2d-2.2.1.1/main/java/org/jbox2d/collision/broadphase/BroadPhaseStrategy.java", "license": "mit", "size": 2444 }
[ "org.jbox2d.common.Vec2" ]
import org.jbox2d.common.Vec2;
import org.jbox2d.common.*;
[ "org.jbox2d.common" ]
org.jbox2d.common;
1,449,309
@Override public Reader getCodeReader() throws IOException { if (hasSourceInMemory()) { return super.getCodeReader(); } else { // If we haven't pulled the code into memory yet, don't. return getCodeCharSource().openStream(); } }
Reader function() throws IOException { if (hasSourceInMemory()) { return super.getCodeReader(); } else { return getCodeCharSource().openStream(); } }
/** * Gets a reader for the code at this URL. */
Gets a reader for the code at this URL
getCodeReader
{ "repo_name": "mneise/closure-compiler", "path": "src/com/google/javascript/jscomp/SourceFile.java", "license": "apache-2.0", "size": 21322 }
[ "java.io.IOException", "java.io.Reader" ]
import java.io.IOException; import java.io.Reader;
import java.io.*;
[ "java.io" ]
java.io;
2,146,595
public static TargetNameMap loadList(String clientFile) throws IOException { String line; TargetNameMap targetSpeakerNameMap = new TargetNameMap(); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(clientFile), Parameter.DefaultCharset)); w...
static TargetNameMap function(String clientFile) throws IOException { String line; TargetNameMap targetSpeakerNameMap = new TargetNameMap(); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(clientFile), Parameter.DefaultCharset)); while ((line = bufferedReader.readLine()) != ...
/** * Load a list of target speaker name and gender. * * @param clientFile the file * @return the target speaker name and gender map * @throws IOException Signals that an I/O exception has occurred. */
Load a list of target speaker name and gender
loadList
{ "repo_name": "marcossilva/convMod", "path": "app/src/main/java/fr/lium/experimental/spkDiarization/libNamedSpeaker/SpeakerNameUtils.java", "license": "agpl-3.0", "size": 13080 }
[ "fr.lium.spkDiarization.parameter.Parameter", "java.io.BufferedReader", "java.io.FileInputStream", "java.io.IOException", "java.io.InputStreamReader" ]
import fr.lium.spkDiarization.parameter.Parameter; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader;
import fr.lium.*; import java.io.*;
[ "fr.lium", "java.io" ]
fr.lium; java.io;
2,840,686
public Collection<String> getAllSchemaNames() { return metaDataMap.keySet(); }
Collection<String> function() { return metaDataMap.keySet(); }
/** * Get all schema names. * * @return all schema names */
Get all schema names
getAllSchemaNames
{ "repo_name": "apache/incubator-shardingsphere", "path": "shardingsphere-mode/shardingsphere-mode-core/src/main/java/org/apache/shardingsphere/mode/metadata/MetaDataContexts.java", "license": "apache-2.0", "size": 3697 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
690,413
// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code."> @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); ...
void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); }
/** * Handles the HTTP <code>GET</code> method. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */
Handles the HTTP <code>GET</code> method
doGet
{ "repo_name": "ftomassetti/JavaIncrementalParser", "path": "src/test/resources/javaee7-samples/servlet/file-upload/src/main/java/org/javaee7/servlet/file/upload/TestServlet.java", "license": "apache-2.0", "size": 5318 }
[ "java.io.IOException", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse" ]
import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import java.io.*; import javax.servlet.*; import javax.servlet.http.*;
[ "java.io", "javax.servlet" ]
java.io; javax.servlet;
2,615,100
public static Expression concatExpression(final Collection<Expression> expressions) { return concatExpression(expressions, null); }
static Expression function(final Collection<Expression> expressions) { return concatExpression(expressions, null); }
/** * Returns an expression which returns the string concatenation value of the various * expressions * * @param expressions the expression to be concatenated dynamically * @return an expression which when evaluated will return the concatenated values */
Returns an expression which returns the string concatenation value of the various expressions
concatExpression
{ "repo_name": "kingargyle/turmeric-bot", "path": "camel-core/src/main/java/org/apache/camel/builder/ExpressionBuilder.java", "license": "apache-2.0", "size": 53733 }
[ "java.util.Collection", "org.apache.camel.Expression" ]
import java.util.Collection; import org.apache.camel.Expression;
import java.util.*; import org.apache.camel.*;
[ "java.util", "org.apache.camel" ]
java.util; org.apache.camel;
337,144
public static byte[] decode( final byte[] source, final int off, final int len, final boolean urlSafe) throws IOException { int options = NO_OPTIONS; if (urlSafe) { options = URL_SAFE; } // Lots of error checking and exception throwing if( source == null ){ throw n...
static byte[] function( final byte[] source, final int off, final int len, final boolean urlSafe) throws IOException { int options = NO_OPTIONS; if (urlSafe) { options = URL_SAFE; } if( source == null ){ throw new IllegalArgumentException(STR); } if( off < 0 off + len > source.length ){ throw new IllegalArgumentExcepti...
/** Descodifica datos en Base64. * @param source Datos codificados en Base64. * @param off El &iacute;ndice inicial por el que empezar a descodificar. * @param len N&uacute;mero de caracteres que descodificar. * @param urlSafe Si se establece a <code>true</code> indica que los datos est&aacute...
Descodifica datos en Base64
decode
{ "repo_name": "venanciolm/afirma-ui-miniapplet_x_x", "path": "afirma_ui_miniapplet/src/main/java/es/gob/afirma/core/misc/Base64.java", "license": "mit", "size": 28500 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,237,820
@ApiModelProperty(example = "General expenses", value = "Name of account") public String getName() { return name; }
@ApiModelProperty(example = STR, value = STR) String function() { return name; }
/** * Name of account * * @return name */
Name of account
getName
{ "repo_name": "SidneyAllen/Xero-Java", "path": "src/main/java/com/xero/models/payrollau/Account.java", "license": "mit", "size": 3508 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
2,833,522
public static String md5Hex(String s) { if (s == null) { return null; } try { MessageDigest md5 = MessageDigest.getInstance("MD5"); return new String(Hex.encodeHex(md5.digest(s.getBytes(ENCODING_UTF8)))); } catch (Exception x) { ...
static String function(String s) { if (s == null) { return null; } try { MessageDigest md5 = MessageDigest.getInstance("MD5"); return new String(Hex.encodeHex(md5.digest(s.getBytes(ENCODING_UTF8)))); } catch (Exception x) { throw new RuntimeException(x.getMessage(), x); } }
/** * Calculates the MD5 digest and returns the value as a 32 character hex string. * * @param s Data to digest. * @return MD5 digest as a hex string. */
Calculates the MD5 digest and returns the value as a 32 character hex string
md5Hex
{ "repo_name": "MadMarty/madsonic-server-5.1", "path": "madsonic-main/src/main/java/org/madsonic/util/StringUtil.java", "license": "gpl-3.0", "size": 23867 }
[ "java.security.MessageDigest", "org.apache.commons.codec.binary.Hex" ]
import java.security.MessageDigest; import org.apache.commons.codec.binary.Hex;
import java.security.*; import org.apache.commons.codec.binary.*;
[ "java.security", "org.apache.commons" ]
java.security; org.apache.commons;
2,829,208
public void testUpdate() throws Exception { // Goal is to check correct saving to store (no exception must be thrown) final Ignite grid = startGrid(); final IgniteCache<TestObj, TestObj> cache = grid.createCache(CACHE_NAME); final TestObj testObj = new TestObj(0); cache.p...
void function() throws Exception { final Ignite grid = startGrid(); final IgniteCache<TestObj, TestObj> cache = grid.createCache(CACHE_NAME); final TestObj testObj = new TestObj(0); cache.put(testObj, testObj); assert testObj.equals(cache.get(testObj)); assert store.map.containsKey(testObj); cache.remove(testObj); asse...
/** * Checks no additional unmarshalling happens in calling * {@link GridCacheMapEntry#innerUpdateLocal(GridCacheVersion, GridCacheOperation, Object, Object[], * boolean, boolean, boolean, boolean, ExpiryPolicy, boolean, boolean, CacheEntryPredicate[], * boolean, UUID, String)}. * * @throw...
Checks no additional unmarshalling happens in calling <code>GridCacheMapEntry#innerUpdateLocal(GridCacheVersion, GridCacheOperation, Object, Object[], boolean, boolean, boolean, boolean, ExpiryPolicy, boolean, boolean, CacheEntryPredicate[], boolean, UUID, String)</code>
testUpdate
{ "repo_name": "alexzaitzev/ignite", "path": "modules/core/src/test/java/org/apache/ignite/internal/processors/cache/GridLocalCacheStoreManagerDeserializationTest.java", "license": "apache-2.0", "size": 3732 }
[ "org.apache.ignite.Ignite", "org.apache.ignite.IgniteCache" ]
import org.apache.ignite.Ignite; import org.apache.ignite.IgniteCache;
import org.apache.ignite.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,076,595
@Override public Stream<TimeSeriesCollection> stream(Duration stepSizeArg) { final Duration stepSize; if (!stepSizeArg.isLongerThan(Duration.ZERO)) stepSize = new Duration(1); else stepSize = stepSizeArg; try { final RpcIterator<TimeSeriesColl...
Stream<TimeSeriesCollection> function(Duration stepSizeArg) { final Duration stepSize; if (!stepSizeArg.isLongerThan(Duration.ZERO)) stepSize = new Duration(1); else stepSize = stepSizeArg; try { final RpcIterator<TimeSeriesCollection> iter = new RpcIterator<>( getRpcClient(OncRpcProtocols.ONCRPC_TCP), (rh_protoClient ...
/** * Iterate the entire history. * * @param stepSizeArg The minimum time difference between metrics. * @return A TimeSeriesCollection stream, in chronological order. */
Iterate the entire history
stream
{ "repo_name": "groupon/monsoon", "path": "remote_history/src/main/java/com/groupon/monsoon/remote/history/Client.java", "license": "bsd-3-clause", "size": 35187 }
[ "com.groupon.lex.metrics.timeseries.TimeSeriesCollection", "java.io.IOException", "java.util.Optional", "java.util.Spliterators", "java.util.logging.Level", "java.util.stream.Stream", "java.util.stream.StreamSupport", "org.acplt.oncrpc.OncRpcException", "org.acplt.oncrpc.OncRpcProtocols", "org.jod...
import com.groupon.lex.metrics.timeseries.TimeSeriesCollection; import java.io.IOException; import java.util.Optional; import java.util.Spliterators; import java.util.logging.Level; import java.util.stream.Stream; import java.util.stream.StreamSupport; import org.acplt.oncrpc.OncRpcException; import org.acplt.oncrpc.On...
import com.groupon.lex.metrics.timeseries.*; import java.io.*; import java.util.*; import java.util.logging.*; import java.util.stream.*; import org.acplt.oncrpc.*; import org.joda.time.*;
[ "com.groupon.lex", "java.io", "java.util", "org.acplt.oncrpc", "org.joda.time" ]
com.groupon.lex; java.io; java.util; org.acplt.oncrpc; org.joda.time;
17,674
@SuppressWarnings("deprecation") public void setSid1Option(LongOption option) { this.sid1.copyFrom(option); }
@SuppressWarnings(STR) void function(LongOption option) { this.sid1.copyFrom(option); }
/** * Sets sid1. * @param option the value, or <code>null</code> to set this property to <code>null</code> */
Sets sid1
setSid1Option
{ "repo_name": "cocoatomo/asakusafw", "path": "mapreduce/compiler/core/src/test/java/com/asakusafw/compiler/flow/testing/model/ExJoined2.java", "license": "apache-2.0", "size": 6235 }
[ "com.asakusafw.runtime.value.LongOption" ]
import com.asakusafw.runtime.value.LongOption;
import com.asakusafw.runtime.value.*;
[ "com.asakusafw.runtime" ]
com.asakusafw.runtime;
1,011,675
private void parseProperties(Object identifier, InputStream input) { assert input != null; Property property = UtilOptions.getInstance(OptionsModelChecker.PROPERTY_INPUT_TYPE); RawProperties properties = new RawProperties(); property.readProperties(identifier, properties, input); ...
void function(Object identifier, InputStream input) { assert input != null; Property property = UtilOptions.getInstance(OptionsModelChecker.PROPERTY_INPUT_TYPE); RawProperties properties = new RawProperties(); property.readProperties(identifier, properties, input); parseProperties(identifier, properties); }
/** * Parse properties from a single input stream. * The input stream parameter must not be {@code null}. * * @param input input string to parse from */
Parse properties from a single input stream. The input stream parameter must not be null
parseProperties
{ "repo_name": "liyi-david/ePMC", "path": "main/src/main/java/epmc/modelchecker/PropertiesDummy.java", "license": "gpl-3.0", "size": 5256 }
[ "java.io.InputStream" ]
import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,345,221
private void init(NetScramble parent) { parentApp = parent; // Animation delay. setDelay(30); // Find out the device's screen dimensions and calculate the // size and shape of the cell matrix. findMatrix(); // Create all the cells in the calculated board. In appSize() // we will take care of posit...
void function(NetScramble parent) { parentApp = parent; setDelay(30); findMatrix(); Log.i(TAG, STR + gridWidth + "x" + gridHeight); cellMatrix = new Cell[gridWidth][gridHeight]; for (int y = 0; y < gridHeight; ++y) { for (int x = 0; x < gridWidth; ++x) { Cell cell = new Cell(parent, this, x, y); cellMatrix[x][y] = cell...
/** * Initialise this board view. * * @param parent * The application context we're running in. */
Initialise this board view
init
{ "repo_name": "SilentServices/Scrambled-Net", "path": "Scrambled Net/src/com/silentservices/netscramble/BoardView.java", "license": "gpl-2.0", "size": 53111 }
[ "android.util.Log", "java.util.LinkedList" ]
import android.util.Log; import java.util.LinkedList;
import android.util.*; import java.util.*;
[ "android.util", "java.util" ]
android.util; java.util;
1,329,862
public ServiceResponse<List<UUID>> getUuidInvalidChars() throws ErrorException, IOException { Call<ResponseBody> call = service.getUuidInvalidChars(); return getUuidInvalidCharsDelegate(call.execute()); }
ServiceResponse<List<UUID>> function() throws ErrorException, IOException { Call<ResponseBody> call = service.getUuidInvalidChars(); return getUuidInvalidCharsDelegate(call.execute()); }
/** * Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']. * * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @return the List&lt;UUID&gt; object wrapped in {@link ServiceResponse} if successful...
Get uuid array value ['6dcc7237-45fe-45c4-8a6b-3a8a3f625652', 'foo']
getUuidInvalidChars
{ "repo_name": "yaqiyang/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodyarray/implementation/ArraysImpl.java", "license": "mit", "size": 176923 }
[ "com.microsoft.rest.ServiceResponse", "java.io.IOException", "java.util.List" ]
import com.microsoft.rest.ServiceResponse; import java.io.IOException; import java.util.List;
import com.microsoft.rest.*; import java.io.*; import java.util.*;
[ "com.microsoft.rest", "java.io", "java.util" ]
com.microsoft.rest; java.io; java.util;
2,859,531
public String getGrammarName( Grammar<KrbCredInfoContainer> grammar ) { if ( grammar instanceof KrbCredInfoGrammar ) { return "KRB_CRED_INFO_GRAMMAR"; } else { return "UNKNOWN GRAMMAR"; } }
String function( Grammar<KrbCredInfoContainer> grammar ) { if ( grammar instanceof KrbCredInfoGrammar ) { return STR; } else { return STR; } }
/** * Get the grammar name * * @param grammar The grammar class * @return The grammar name */
Get the grammar name
getGrammarName
{ "repo_name": "drankye/directory-server", "path": "kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/codec/krbCredInfo/KrbCredInfoStatesEnum.java", "license": "apache-2.0", "size": 3380 }
[ "org.apache.directory.api.asn1.ber.grammar.Grammar" ]
import org.apache.directory.api.asn1.ber.grammar.Grammar;
import org.apache.directory.api.asn1.ber.grammar.*;
[ "org.apache.directory" ]
org.apache.directory;
274,758