method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public List<SelfHostedIntegrationRuntimeNodeInner> nodes() {
return this.nodes;
} | List<SelfHostedIntegrationRuntimeNodeInner> function() { return this.nodes; } | /**
* Get the nodes property: The list of nodes for this integration runtime.
*
* @return the nodes value.
*/ | Get the nodes property: The list of nodes for this integration runtime | nodes | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/models/SelfHostedIntegrationRuntimeStatusTypeProperties.java",
"license": "mit",
"size": 10037
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 82,754 |
private void updateAlbumList() {
// check if lists are dirty
if (!albumListDirty) {
return;
}
// refresh list
List<Album> list = new ArrayList<Album>(library.getAll());
Collections.sort(list, new AlbumComparator());
// clear old lists
string2Album.clear();
albumList.clear();
// regenerate i... | void function() { if (!albumListDirty) { return; } List<Album> list = new ArrayList<Album>(library.getAll()); Collections.sort(list, new AlbumComparator()); string2Album.clear(); albumList.clear(); for (Album album : list) { string2Album.put(album.getName(), album); albumList.add(album.getName()); } albumChooser.setMod... | /**
* update a the list of albums displayed updateAlbumList
*/ | update a the list of albums displayed updateAlbumList | updateAlbumList | {
"repo_name": "HerbertJordan/JimCat",
"path": "src/org/jimcat/gui/smartlisteditor/editor/AlbumFilterEditor.java",
"license": "gpl-2.0",
"size": 6552
} | [
"java.util.ArrayList",
"java.util.Collections",
"java.util.List",
"javax.swing.JComboBox",
"org.jimcat.model.Album",
"org.jimcat.model.comparator.AlbumComparator",
"org.jimcat.model.libraries.AlbumLibrary",
"org.jimcat.model.notification.CollectionListener"
] | import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.swing.JComboBox; import org.jimcat.model.Album; import org.jimcat.model.comparator.AlbumComparator; import org.jimcat.model.libraries.AlbumLibrary; import org.jimcat.model.notification.CollectionListener; | import java.util.*; import javax.swing.*; import org.jimcat.model.*; import org.jimcat.model.comparator.*; import org.jimcat.model.libraries.*; import org.jimcat.model.notification.*; | [
"java.util",
"javax.swing",
"org.jimcat.model"
] | java.util; javax.swing; org.jimcat.model; | 1,365,211 |
public Collator newCollator() {
Context context = Context.getCurrentContext();
if (context != null && context.getLocale() != null) {
return Collator.getInstance(context.getLocale());
}
else {
return Collator.getInstance();
}
} | Collator function() { Context context = Context.getCurrentContext(); if (context != null && context.getLocale() != null) { return Collator.getInstance(context.getLocale()); } else { return Collator.getInstance(); } } | /**
* Returns a NEW instance of the collator/string comparator
* based on the current locale..
* Look at the javadoc for COllator to see what it does...
* (basically an i18n aware string comparator)
* @return neww instance of the collator
*/ | Returns a NEW instance of the collator/string comparator based on the current locale.. Look at the javadoc for COllator to see what it does... (basically an i18n aware string comparator) | newCollator | {
"repo_name": "colloquium/spacewalk",
"path": "java/code/src/com/redhat/rhn/common/localization/LocalizationService.java",
"license": "gpl-2.0",
"size": 24837
} | [
"com.redhat.rhn.frontend.context.Context",
"java.text.Collator"
] | import com.redhat.rhn.frontend.context.Context; import java.text.Collator; | import com.redhat.rhn.frontend.context.*; import java.text.*; | [
"com.redhat.rhn",
"java.text"
] | com.redhat.rhn; java.text; | 925,616 |
private ProcessGroupFlowDTO populateRemainingFlowContent(ProcessGroupFlowDTO flow) {
FlowDTO flowStructure = flow.getFlow();
// populate the remaining fields for the processors, connections, process group refs, remote process groups, and labels if appropriate
if (flowStructure != null) {
... | ProcessGroupFlowDTO function(ProcessGroupFlowDTO flow) { FlowDTO flowStructure = flow.getFlow(); if (flowStructure != null) { populateRemainingFlowStructure(flowStructure); } flow.setUri(generateResourceUri("flow", STR, flow.getId())); return flow; } | /**
* Populates the remaining fields in the specified process group.
*
* @param flow group
* @return group dto
*/ | Populates the remaining fields in the specified process group | populateRemainingFlowContent | {
"repo_name": "qfdk/nifi",
"path": "nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/FlowResource.java",
"license": "apache-2.0",
"size": 105682
} | [
"org.apache.nifi.web.api.dto.flow.FlowDTO",
"org.apache.nifi.web.api.dto.flow.ProcessGroupFlowDTO"
] | import org.apache.nifi.web.api.dto.flow.FlowDTO; import org.apache.nifi.web.api.dto.flow.ProcessGroupFlowDTO; | import org.apache.nifi.web.api.dto.flow.*; | [
"org.apache.nifi"
] | org.apache.nifi; | 1,878,845 |
public int removeLastInt() {
if ( size == 0 ) throw new NoSuchElementException();
final int pos = last;
// Abbreviated version of fixPointers(pos)
last = (int)( link[ pos ] >>> 32 );
if ( 0 <= last ) {
// Special case of SET_NEXT( link[ last ], -1 )
link[ last ] |= -1 & 0xFFFFFFFFL;
}
final int k... | int function() { if ( size == 0 ) throw new NoSuchElementException(); final int pos = last; last = (int)( link[ pos ] >>> 32 ); if ( 0 <= last ) { link[ last ] = -1 & 0xFFFFFFFFL; } final int k = key[ pos ]; size--; if ( ( ( k ) == ( 0 ) ) ) { containsNull = false; key[ n ] = ( 0 ); } else shiftKeys( pos ); if ( size <... | /** Removes the the last key in iteration order.
*
* @return the last key.
* @throws NoSuchElementException is this set is empty. */ | Removes the the last key in iteration order | removeLastInt | {
"repo_name": "tommyettinger/doughyo",
"path": "src/main/java/vigna/fastutil/ints/IntLinkedOpenHashSet.java",
"license": "apache-2.0",
"size": 35009
} | [
"java.util.NoSuchElementException"
] | import java.util.NoSuchElementException; | import java.util.*; | [
"java.util"
] | java.util; | 698,693 |
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Void> updateAsync(
String resourceGroupName, String serviceName, String ifMatch, PortalSignupSettingsInner parameters) {
return updateWithResponseAsync(resourceGroupName, serviceName, ifMatch, parameters)
.flatMap((Response<Voi... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Void> function( String resourceGroupName, String serviceName, String ifMatch, PortalSignupSettingsInner parameters) { return updateWithResponseAsync(resourceGroupName, serviceName, ifMatch, parameters) .flatMap((Response<Void> res) -> Mono.empty()); } | /**
* Update Sign-Up settings.
*
* @param resourceGroupName The name of the resource group.
* @param serviceName The name of the API Management service.
* @param ifMatch ETag of the Entity. ETag should match the current entity state from the header response of the GET
* request or it s... | Update Sign-Up settings | updateAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/apimanagement/azure-resourcemanager-apimanagement/src/main/java/com/azure/resourcemanager/apimanagement/implementation/SignUpSettingsClientImpl.java",
"license": "mit",
"size": 38634
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.resourcemanager.apimanagement.fluent.models.PortalSignupSettingsInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.resourcemanager.apimanagement.fluent.models.PortalSignupSettingsInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.apimanagement.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 374,503 |
public String select(String identifier) {
Select select = new Select(findSelect(identifier));
return select.getFirstSelectedOption().getText();
} | String function(String identifier) { Select select = new Select(findSelect(identifier)); return select.getFirstSelectedOption().getText(); } | /**
* Returns the value of select with given identifier
*
* @param identifier
* @return text of selected option
*/ | Returns the value of select with given identifier | select | {
"repo_name": "cypo721/testsuite",
"path": "src/main/java/org/jboss/hal/testsuite/fragment/formeditor/Editor.java",
"license": "lgpl-2.1",
"size": 9213
} | [
"org.openqa.selenium.support.ui.Select"
] | import org.openqa.selenium.support.ui.Select; | import org.openqa.selenium.support.ui.*; | [
"org.openqa.selenium"
] | org.openqa.selenium; | 942,478 |
private void handleNdpReply(NeighbourMessageContext pkt, HostService hostService) {
if (isNdpForGateway(pkt)) {
log.debug("Forwarding all the ip packets we stored");
Ip6Address hostIpAddress = pkt.sender().getIp6Address();
srManager.ipHandler.forwardPackets(pkt.inPort().d... | void function(NeighbourMessageContext pkt, HostService hostService) { if (isNdpForGateway(pkt)) { log.debug(STR); Ip6Address hostIpAddress = pkt.sender().getIp6Address(); srManager.ipHandler.forwardPackets(pkt.inPort().deviceId(), hostIpAddress); } else { HostId hostId = HostId.hostId(pkt.dstMac(), pkt.vlan()); Host ta... | /**
* Helper method to handle the ndp replies.
*
* @param pkt the ndp packet reply and context information
* @param hostService the host service
*/ | Helper method to handle the ndp replies | handleNdpReply | {
"repo_name": "donNewtonAlpha/onos",
"path": "apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/IcmpHandler.java",
"license": "apache-2.0",
"size": 20168
} | [
"org.onlab.packet.Ip6Address",
"org.onlab.packet.VlanId",
"org.onosproject.incubator.net.neighbour.NeighbourMessageContext",
"org.onosproject.net.Host",
"org.onosproject.net.HostId",
"org.onosproject.net.host.HostService"
] | import org.onlab.packet.Ip6Address; import org.onlab.packet.VlanId; import org.onosproject.incubator.net.neighbour.NeighbourMessageContext; import org.onosproject.net.Host; import org.onosproject.net.HostId; import org.onosproject.net.host.HostService; | import org.onlab.packet.*; import org.onosproject.incubator.net.neighbour.*; import org.onosproject.net.*; import org.onosproject.net.host.*; | [
"org.onlab.packet",
"org.onosproject.incubator",
"org.onosproject.net"
] | org.onlab.packet; org.onosproject.incubator; org.onosproject.net; | 293,738 |
public int getCreatedBucketsCount() {
final ProxyBucketRegion[] bucs = buckets;
if (bucs == null) {
return 0;
}
int createdBucketsCount = 0;
for (ProxyBucketRegion buc : bucs) {
if (buc.getBucketOwnersCount() > 0) {
createdBucketsCount++;
}
}
return createdBuckets... | int function() { final ProxyBucketRegion[] bucs = buckets; if (bucs == null) { return 0; } int createdBucketsCount = 0; for (ProxyBucketRegion buc : bucs) { if (buc.getBucketOwnersCount() > 0) { createdBucketsCount++; } } return createdBucketsCount; } | /**
* Returns the total number of buckets created anywhere in the distributed system for this
* partitioned region.
*
* @return the total number of buckets created anywhere for this PR
*/ | Returns the total number of buckets created anywhere in the distributed system for this partitioned region | getCreatedBucketsCount | {
"repo_name": "PurelyApplied/geode",
"path": "geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/RegionAdvisor.java",
"license": "apache-2.0",
"size": 57229
} | [
"org.apache.geode.internal.cache.ProxyBucketRegion"
] | import org.apache.geode.internal.cache.ProxyBucketRegion; | import org.apache.geode.internal.cache.*; | [
"org.apache.geode"
] | org.apache.geode; | 1,172,887 |
public boolean hasGroupInInheritance(Group start, String askedGroup) {
if (start == null || askedGroup == null) {
return false;
}
LinkedList<Group> stack = new LinkedList<Group>();
ArrayList<Group> alreadyVisited = new ArrayList<Group>();
stack.push(start);
alreadyVisited.add(start);
while (!stack.... | boolean function(Group start, String askedGroup) { if (start == null askedGroup == null) { return false; } LinkedList<Group> stack = new LinkedList<Group>(); ArrayList<Group> alreadyVisited = new ArrayList<Group>(); stack.push(start); alreadyVisited.add(start); while (!stack.isEmpty()) { Group now = stack.pop(); if (no... | /**
* Check if given group inherits another group.
*
* It does Breadth-first search
*
* @param start The group to start the search.
* @param askedGroup Name of the group you're looking for
* @return true if it inherits the group.
*/ | Check if given group inherits another group. It does Breadth-first search | hasGroupInInheritance | {
"repo_name": "GravityCraftMC/EssentialsGroupManager",
"path": "src/main/java/org/anjocaido/groupmanager/permissions/AnjoPermissionsHandler.java",
"license": "gpl-3.0",
"size": 36770
} | [
"java.util.ArrayList",
"java.util.LinkedList",
"org.anjocaido.groupmanager.data.Group"
] | import java.util.ArrayList; import java.util.LinkedList; import org.anjocaido.groupmanager.data.Group; | import java.util.*; import org.anjocaido.groupmanager.data.*; | [
"java.util",
"org.anjocaido.groupmanager"
] | java.util; org.anjocaido.groupmanager; | 11,337 |
public void getSkyAngle(float[] val) {
if ( skyAngle == null ) {
skyAngle = (MFFloat)getField( "skyAngle" );
}
skyAngle.getValue( val );
} | void function(float[] val) { if ( skyAngle == null ) { skyAngle = (MFFloat)getField( STR ); } skyAngle.getValue( val ); } | /** Return the skyAngle value in the argument float[]
* @param val The float[] to initialize. */ | Return the skyAngle value in the argument float[] | getSkyAngle | {
"repo_name": "Norkart/NK-VirtualGlobe",
"path": "Xj3D/src/java/org/xj3d/sai/internal/node/environmentaleffects/SAITextureBackground.java",
"license": "gpl-2.0",
"size": 11964
} | [
"org.web3d.x3d.sai.MFFloat"
] | import org.web3d.x3d.sai.MFFloat; | import org.web3d.x3d.sai.*; | [
"org.web3d.x3d"
] | org.web3d.x3d; | 932,438 |
/////////////////////////////
// ModuleControl interface //
/////////////////////////////
public boolean canSupport(String identifier, Properties startParams) {
boolean supported =
Monitor.isDesiredCreateType(startParams, getEngineType());
if (supported) {
Strin... | boolean function(String identifier, Properties startParams) { boolean supported = Monitor.isDesiredCreateType(startParams, getEngineType()); if (supported) { String repliMode = startParams.getProperty(SlaveFactory.REPLICATION_MODE); if (repliMode == null !repliMode.equals(SlaveFactory.SLAVE_MODE)) { supported = false; ... | /**
* Determines whether this Database implementation should be used
* to boot the database.
* @param startParams The properties used to decide if
* SlaveDatabase is the correct implementation of Database for the
* database to be booted.
* @return true if the database is updatable (not re... | Determines whether this Database implementation should be used to boot the database | canSupport | {
"repo_name": "SnappyDataInc/snappy-store",
"path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/impl/db/SlaveDatabase.java",
"license": "apache-2.0",
"size": 17041
} | [
"com.pivotal.gemfirexd.internal.iapi.services.monitor.Monitor",
"com.pivotal.gemfirexd.internal.iapi.store.replication.slave.SlaveFactory",
"java.util.Properties"
] | import com.pivotal.gemfirexd.internal.iapi.services.monitor.Monitor; import com.pivotal.gemfirexd.internal.iapi.store.replication.slave.SlaveFactory; import java.util.Properties; | import com.pivotal.gemfirexd.internal.iapi.services.monitor.*; import com.pivotal.gemfirexd.internal.iapi.store.replication.slave.*; import java.util.*; | [
"com.pivotal.gemfirexd",
"java.util"
] | com.pivotal.gemfirexd; java.util; | 487,773 |
public void setNull(int index) {
while (index >= getValidityBufferValueCapacity()) {
reallocValidityBuffer();
}
BitVectorHelper.setValidityBit(validityBuffer, index, 0);
} | void function(int index) { while (index >= getValidityBufferValueCapacity()) { reallocValidityBuffer(); } BitVectorHelper.setValidityBit(validityBuffer, index, 0); } | /**
* Sets the value at index to null. Reallocates if index is larger than capacity.
*/ | Sets the value at index to null. Reallocates if index is larger than capacity | setNull | {
"repo_name": "renesugar/arrow",
"path": "java/vector/src/main/java/org/apache/arrow/vector/complex/FixedSizeListVector.java",
"license": "apache-2.0",
"size": 21234
} | [
"org.apache.arrow.vector.BitVectorHelper"
] | import org.apache.arrow.vector.BitVectorHelper; | import org.apache.arrow.vector.*; | [
"org.apache.arrow"
] | org.apache.arrow; | 2,407,381 |
public List<ByteArrayId> getInsertionIds(
MultiDimensionalNumericData indexedData ); | List<ByteArrayId> function( MultiDimensionalNumericData indexedData ); | /**
* Returns a list of id's for insertion.
*
* @param indexedData
* defines the numeric data to be indexed
* @return a List of insertion ID's
*/ | Returns a list of id's for insertion | getInsertionIds | {
"repo_name": "state-hiu/geowave",
"path": "geowave-index/src/main/java/mil/nga/giat/geowave/index/NumericIndexStrategy.java",
"license": "apache-2.0",
"size": 3179
} | [
"java.util.List",
"mil.nga.giat.geowave.index.sfc.data.MultiDimensionalNumericData"
] | import java.util.List; import mil.nga.giat.geowave.index.sfc.data.MultiDimensionalNumericData; | import java.util.*; import mil.nga.giat.geowave.index.sfc.data.*; | [
"java.util",
"mil.nga.giat"
] | java.util; mil.nga.giat; | 1,143,798 |
static int getSignedInt(ByteBuf buf, int offset) {
return (buf.getByte(offset) & 0xFF) << 24 |
(buf.getByte(offset + 1) & 0xFF) << 16 |
(buf.getByte(offset + 2) & 0xFF) << 8 |
buf.getByte(offset + 3) & 0xFF;
} | static int getSignedInt(ByteBuf buf, int offset) { return (buf.getByte(offset) & 0xFF) << 24 (buf.getByte(offset + 1) & 0xFF) << 16 (buf.getByte(offset + 2) & 0xFF) << 8 buf.getByte(offset + 3) & 0xFF; } | /**
* Reads a big-endian signed integer from the buffer.
*/ | Reads a big-endian signed integer from the buffer | getSignedInt | {
"repo_name": "chanakaudaya/netty",
"path": "codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyCodecUtil.java",
"license": "apache-2.0",
"size": 19125
} | [
"io.netty.buffer.ByteBuf"
] | import io.netty.buffer.ByteBuf; | import io.netty.buffer.*; | [
"io.netty.buffer"
] | io.netty.buffer; | 1,828,721 |
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
}
return itemPropertyDescriptors;
} | List<IItemPropertyDescriptor> function(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); } return itemPropertyDescriptors; } | /**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This returns the property descriptors for the adapted class. | getPropertyDescriptors | {
"repo_name": "prabushi/devstudio-tooling-esb",
"path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/ProxyServicePolicyItemProvider.java",
"license": "apache-2.0",
"size": 5840
} | [
"java.util.List",
"org.eclipse.emf.edit.provider.IItemPropertyDescriptor"
] | import java.util.List; import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; | import java.util.*; import org.eclipse.emf.edit.provider.*; | [
"java.util",
"org.eclipse.emf"
] | java.util; org.eclipse.emf; | 2,765,864 |
public void testHashcode() {
StackedXYBarRenderer r1 = new StackedXYBarRenderer();
StackedXYBarRenderer r2 = new StackedXYBarRenderer();
assertTrue(r1.equals(r2));
int h1 = r1.hashCode();
int h2 = r2.hashCode();
assertEquals(h1, h2);
} | void function() { StackedXYBarRenderer r1 = new StackedXYBarRenderer(); StackedXYBarRenderer r2 = new StackedXYBarRenderer(); assertTrue(r1.equals(r2)); int h1 = r1.hashCode(); int h2 = r2.hashCode(); assertEquals(h1, h2); } | /**
* Two objects that are equal are required to return the same hashCode.
*/ | Two objects that are equal are required to return the same hashCode | testHashcode | {
"repo_name": "raedle/univis",
"path": "lib/jfreechart-1.0.1/src/org/jfree/chart/renderer/xy/junit/StackedXYBarRendererTests.java",
"license": "lgpl-2.1",
"size": 6397
} | [
"org.jfree.chart.renderer.xy.StackedXYBarRenderer"
] | import org.jfree.chart.renderer.xy.StackedXYBarRenderer; | import org.jfree.chart.renderer.xy.*; | [
"org.jfree.chart"
] | org.jfree.chart; | 1,668,482 |
setBackground(new java.awt.Color(204, 255, 204));
setForeground(new java.awt.Color(255, 255, 255));
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayo... | setBackground(new java.awt.Color(204, 255, 204)); setForeground(new java.awt.Color(255, 255, 255)); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGap(0, 400, Short.MAX_VALUE... | /** 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. always regenerated by the Form Editor | initComponents | {
"repo_name": "geoom/othello",
"path": "src/otelo/Hexagonal/JPanelOtelo.java",
"license": "apache-2.0",
"size": 11460
} | [
"java.awt.Color"
] | import java.awt.Color; | import java.awt.*; | [
"java.awt"
] | java.awt; | 724,776 |
private void writeStationData(DataOutputStream bw, StationData stData) throws IOException {
int i;
String aStid = "11111";
float lon, lat, t, value;
int nLev, flag;
lon = 0;
lat = 0;
t = 0;
nLev = 1;
flag = 1; //Has ground level
... | void function(DataOutputStream bw, StationData stData) throws IOException { int i; String aStid = "11111"; float lon, lat, t, value; int nLev, flag; lon = 0; lat = 0; t = 0; nLev = 1; flag = 1; EndianDataOutputStream ebw = new EndianDataOutputStream(bw); for (i = 0; i < stData.getStNum(); i++) { aStid = stData.getStid(... | /**
* Write station info data
*
* @param bw DataOutputStream
* @param stData StationData
*/ | Write station info data | writeStationData | {
"repo_name": "meteoinfo/meteoinfolib",
"path": "src/org/meteoinfo/data/meteodata/grads/GrADSDataInfo.java",
"license": "lgpl-3.0",
"size": 115651
} | [
"java.io.DataOutputStream",
"java.io.IOException",
"org.meteoinfo.data.StationData",
"org.meteoinfo.io.EndianDataOutputStream"
] | import java.io.DataOutputStream; import java.io.IOException; import org.meteoinfo.data.StationData; import org.meteoinfo.io.EndianDataOutputStream; | import java.io.*; import org.meteoinfo.data.*; import org.meteoinfo.io.*; | [
"java.io",
"org.meteoinfo.data",
"org.meteoinfo.io"
] | java.io; org.meteoinfo.data; org.meteoinfo.io; | 561,821 |
public final <AggInputT> Aggregator<AggInputT, AggInputT> createAggregator(
String name, SerializableFunction<Iterable<AggInputT>, AggInputT> combiner) {
checkNotNull(combiner, "combiner cannot be null.");
return createAggregator(name, Combine.IterableCombineFn.of(combiner));
} | final <AggInputT> Aggregator<AggInputT, AggInputT> function( String name, SerializableFunction<Iterable<AggInputT>, AggInputT> combiner) { checkNotNull(combiner, STR); return createAggregator(name, Combine.IterableCombineFn.of(combiner)); } | /**
* Returns an {@link Aggregator} with the aggregation logic specified by the
* {@link SerializableFunction} argument. The name provided must be unique
* across {@link Aggregator}s created within the DoFn.
*
* @param name the name of the aggregator
* @param combiner the {@link SerializableFunction} ... | Returns an <code>Aggregator</code> with the aggregation logic specified by the <code>SerializableFunction</code> argument. The name provided must be unique across <code>Aggregator</code>s created within the DoFn | createAggregator | {
"repo_name": "tyagihas/DataflowJavaSDK",
"path": "sdk/src/main/java/com/google/cloud/dataflow/sdk/transforms/DoFnWithContext.java",
"license": "apache-2.0",
"size": 15651
} | [
"com.google.common.base.Preconditions"
] | import com.google.common.base.Preconditions; | import com.google.common.base.*; | [
"com.google.common"
] | com.google.common; | 396,977 |
synchronized void start() {
if (!isEnabled() || started)
return;
pageSize = ctx.igniteConfiguration().getDataStorageConfiguration().getPageSize();
EncryptionSpi encSpi = ctx.igniteConfiguration().getEncryptionSpi();
pageMemoryMock = Mockito.mock(PageMemory.class);
... | synchronized void start() { if (!isEnabled() started) return; pageSize = ctx.igniteConfiguration().getDataStorageConfiguration().getPageSize(); EncryptionSpi encSpi = ctx.igniteConfiguration().getEncryptionSpi(); pageMemoryMock = Mockito.mock(PageMemory.class); Mockito.doReturn(pageSize).when(pageMemoryMock).pageSize()... | /**
* Start tracking pages.
*/ | Start tracking pages | start | {
"repo_name": "ilantukh/ignite",
"path": "modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/wal/memtracker/PageMemoryTracker.java",
"license": "apache-2.0",
"size": 30970
} | [
"java.nio.ByteBuffer",
"org.apache.ignite.internal.mem.unsafe.UnsafeMemoryProvider",
"org.apache.ignite.internal.pagemem.PageMemory",
"org.apache.ignite.internal.processors.cache.GridCacheSharedContext",
"org.apache.ignite.internal.processors.cache.persistence.DataRegion",
"org.apache.ignite.internal.proc... | import java.nio.ByteBuffer; import org.apache.ignite.internal.mem.unsafe.UnsafeMemoryProvider; import org.apache.ignite.internal.pagemem.PageMemory; import org.apache.ignite.internal.processors.cache.GridCacheSharedContext; import org.apache.ignite.internal.processors.cache.persistence.DataRegion; import org.apache.ign... | import java.nio.*; import org.apache.ignite.internal.mem.unsafe.*; import org.apache.ignite.internal.pagemem.*; import org.apache.ignite.internal.processors.cache.*; import org.apache.ignite.internal.processors.cache.persistence.*; import org.apache.ignite.internal.processors.cache.persistence.pagemem.*; import org.apa... | [
"java.nio",
"org.apache.ignite",
"org.mockito"
] | java.nio; org.apache.ignite; org.mockito; | 1,545,975 |
public static ScopedResponse getScopedResponse( HttpServletResponse realResponse,
ScopedRequest scopedRequest )
{
assert ! ( realResponse instanceof ScopedResponse );
String responseAttr = getScopedName( OVERRIDE_RESPONSE_ATTR,
... | static ScopedResponse function( HttpServletResponse realResponse, ScopedRequest scopedRequest ) { assert ! ( realResponse instanceof ScopedResponse ); String responseAttr = getScopedName( OVERRIDE_RESPONSE_ATTR, scopedRequest.getScopeKey() ); HttpServletRequest outerRequest = scopedRequest.getOuterRequest(); ScopedResp... | /**
* Get the cached wrapper servlet response. If none exists, creates one and caches it.
*
* @param realResponse the "real" (outer) ServletResponse, which will be wrapped.
* @param scopedRequest the ScopedRequest returned from {@link #getScopedRequest}.
* @return the cached (or newly-created)... | Get the cached wrapper servlet response. If none exists, creates one and caches it | getScopedResponse | {
"repo_name": "moparisthebest/beehive",
"path": "beehive-netui-core/src/main/java/org/apache/beehive/netui/pageflow/scoping/ScopedServletUtils.java",
"license": "apache-2.0",
"size": 16416
} | [
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpServletResponse",
"org.apache.beehive.netui.pageflow.scoping.internal.ScopedResponseImpl"
] | import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.beehive.netui.pageflow.scoping.internal.ScopedResponseImpl; | import javax.servlet.http.*; import org.apache.beehive.netui.pageflow.scoping.internal.*; | [
"javax.servlet",
"org.apache.beehive"
] | javax.servlet; org.apache.beehive; | 2,106,138 |
public static int checkedMultiply(int a, int b) {
long result = (long) a * b;
checkNoOverflow(result == (int) result);
return (int) result;
} | static int function(int a, int b) { long result = (long) a * b; checkNoOverflow(result == (int) result); return (int) result; } | /**
* Returns the product of {@code a} and {@code b}, provided it does not overflow.
*
* @throws ArithmeticException if {@code a * b} overflows in signed {@code int} arithmetic
*/ | Returns the product of a and b, provided it does not overflow | checkedMultiply | {
"repo_name": "sensui/guava-libraries",
"path": "guava-gwt/src-super/com/google/common/math/super/com/google/common/math/IntMath.java",
"license": "apache-2.0",
"size": 14617
} | [
"com.google.common.math.MathPreconditions"
] | import com.google.common.math.MathPreconditions; | import com.google.common.math.*; | [
"com.google.common"
] | com.google.common; | 1,572,895 |
private void initialize() {
frmHistoriasDeZagas = new JFrame();
frmHistoriasDeZagas.getContentPane().setBackground(
new Color(205, 133, 63));
frmHistoriasDeZagas.setTitle("Historias de Zagas");
frmHistoriasDeZagas
.setIconImage(Toolkit
.getDefaultToolkit()
.getImage(
Arma... | void function() { frmHistoriasDeZagas = new JFrame(); frmHistoriasDeZagas.getContentPane().setBackground( new Color(205, 133, 63)); frmHistoriasDeZagas.setTitle(STR); frmHistoriasDeZagas .setIconImage(Toolkit .getDefaultToolkit() .getImage( Armas.class .getResource(STR))); frmHistoriasDeZagas.setBounds(100, 100, 584, 5... | /**
* Initialize the contents of the frame.
*/ | Initialize the contents of the frame | initialize | {
"repo_name": "ZagasTales/HistoriasdeZagas",
"path": "src Graf/es/thesinsprods/zagastales/juegozagas/creadorpnjs/Habilidades.java",
"license": "cc0-1.0",
"size": 20750
} | [
"java.awt.Color",
"java.awt.Toolkit",
"javax.swing.JFrame",
"javax.swing.JPanel"
] | import java.awt.Color; import java.awt.Toolkit; import javax.swing.JFrame; import javax.swing.JPanel; | import java.awt.*; import javax.swing.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 152,283 |
private int recursion(SequentialPattern prefix, List<PseudoSequenceBIDE> contexte) throws IOException {
// find frequent items of size 1 in the current projected database.
Set<PairBIDE> pairs = findAllFrequentPairs(prefix, contexte);
// we will keep tract of the maximum support of patterns
// that c... | int function(SequentialPattern prefix, List<PseudoSequenceBIDE> contexte) throws IOException { Set<PairBIDE> pairs = findAllFrequentPairs(prefix, contexte); int maxSupport = 0; for(PairBIDE pair : pairs){ if(pair.getCount() >= minsuppAbsolute){ SequentialPattern newPrefix; if(pair.isPostfix()){ newPrefix = appendItemTo... | /**
* Method to recursively grow a given sequential pattern.
* @param prefix the current sequential pattern that we want to try to grow
* @param database the current projected sequence database
* @throws IOException exception if there is an error writing to the output file
*/ | Method to recursively grow a given sequential pattern | recursion | {
"repo_name": "automenta/java_dann",
"path": "src/syncleus/dann/learn/pattern/algorithms/sequentialpatterns/BIDE_and_prefixspan/AlgoBIDEPlus.java",
"license": "agpl-3.0",
"size": 29109
} | [
"java.io.IOException",
"java.util.List",
"java.util.Set"
] | import java.io.IOException; import java.util.List; import java.util.Set; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 2,411,807 |
public static Pattern createPattern(String pattern, boolean isCaseSensitive, boolean isRegex)
throws PatternSyntaxException {
return PatternConstructor.createPattern(pattern, isRegex, true, isCaseSensitive, false);
} | static Pattern function(String pattern, boolean isCaseSensitive, boolean isRegex) throws PatternSyntaxException { return PatternConstructor.createPattern(pattern, isRegex, true, isCaseSensitive, false); } | /**
* Creates a pattern for the given search string and the given options.
*
* @param pattern the search pattern. If <code>isRegex</code> is:
* <ul>
* <li><code>false</code>: a string including '*' and '?' wildcards and '\' for escaping the
* literals '*', '?' and '\'
* <l... | Creates a pattern for the given search string and the given options | createPattern | {
"repo_name": "sleshchenko/che",
"path": "plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-search/src/main/java/org/eclipse/search/core/text/TextSearchEngine.java",
"license": "epl-1.0",
"size": 5138
} | [
"java.util.regex.Pattern",
"java.util.regex.PatternSyntaxException",
"org.eclipse.search.internal.core.text.PatternConstructor"
] | import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; import org.eclipse.search.internal.core.text.PatternConstructor; | import java.util.regex.*; import org.eclipse.search.internal.core.text.*; | [
"java.util",
"org.eclipse.search"
] | java.util; org.eclipse.search; | 959,903 |
public static Uri lookupContact(ContentResolver resolver, Uri lookupUri) {
if (lookupUri == null) {
return null;
}
Cursor c = resolver.query(lookupUri, new String[]{Contacts._ID}, null, null, null);
if (c == null) {
return null;
... | static Uri function(ContentResolver resolver, Uri lookupUri) { if (lookupUri == null) { return null; } Cursor c = resolver.query(lookupUri, new String[]{Contacts._ID}, null, null, null); if (c == null) { return null; } try { if (c.moveToFirst()) { long contactId = c.getLong(0); return ContentUris.withAppendedId(Contact... | /**
* Computes a content URI (see {@link #CONTENT_URI}) given a lookup URI.
* <p>
* Returns null if the contact cannot be found.
*/ | Computes a content URI (see <code>#CONTENT_URI</code>) given a lookup URI. Returns null if the contact cannot be found | lookupContact | {
"repo_name": "mateor/pdroid",
"path": "android-4.0.3_r1/trunk/frameworks/base/core/java/android/provider/ContactsContract.java",
"license": "gpl-3.0",
"size": 326589
} | [
"android.content.ContentResolver",
"android.content.ContentUris",
"android.database.Cursor",
"android.net.Uri"
] | import android.content.ContentResolver; import android.content.ContentUris; import android.database.Cursor; import android.net.Uri; | import android.content.*; import android.database.*; import android.net.*; | [
"android.content",
"android.database",
"android.net"
] | android.content; android.database; android.net; | 234,284 |
public boolean changeGroup(int gid)
throws IOException
{
return false;
} | boolean function(int gid) throws IOException { return false; } | /**
* Changes the group
*/ | Changes the group | changeGroup | {
"repo_name": "christianchristensen/resin",
"path": "modules/kernel/src/com/caucho/vfs/Path.java",
"license": "gpl-2.0",
"size": 35240
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,692,322 |
public void countValuesFromIndex(Map<String, Integer> valuesCount,
String table, Map<String, List<String>> tablesNames,
String tableName2) throws Exception {
getIndexSearcher();
BooleanQuery constrainedQuery = new BooleanQuery();
TermQuery categoryQuery = new TermQuery(
new Term(IS_PRIMARY_... | void function(Map<String, Integer> valuesCount, String table, Map<String, List<String>> tablesNames, String tableName2) throws Exception { getIndexSearcher(); BooleanQuery constrainedQuery = new BooleanQuery(); TermQuery categoryQuery = new TermQuery( new Term(IS_PRIMARY_KEY, "true")); constrainedQuery.add(categoryQuer... | /**
* used to count values from key column
*
* @param valuesCount
* @param tableName
* @param tableName2
* @param tablesNames
* @throws IOException
*/ | used to count values from key column | countValuesFromIndex | {
"repo_name": "AnLiGentile/DS4DM",
"path": "DS4DM_Backend/src/de/mannheim/uni/index/IndexManager.java",
"license": "mit",
"size": 37027
} | [
"java.util.ArrayList",
"java.util.List",
"java.util.Map",
"org.apache.lucene.document.Document",
"org.apache.lucene.index.Term",
"org.apache.lucene.search.BooleanClause",
"org.apache.lucene.search.BooleanQuery",
"org.apache.lucene.search.Query",
"org.apache.lucene.search.ScoreDoc",
"org.apache.luc... | import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.lucene.document.Document; import org.apache.lucene.index.Term; import org.apache.lucene.search.BooleanClause; import org.apache.lucene.search.BooleanQuery; import org.apache.lucene.search.Query; import org.apache.lucene.search.Sc... | import java.util.*; import org.apache.lucene.document.*; import org.apache.lucene.index.*; import org.apache.lucene.search.*; | [
"java.util",
"org.apache.lucene"
] | java.util; org.apache.lucene; | 993,658 |
private TableColumn getColumnByIdentifier(Object identifier) {
TableColumn columnExt;
try {
columnExt = getColumn(identifier);
} catch (IllegalArgumentException e) {
// hacking around weird getColumn(Object) behaviour -
// PENDING JW: revisit and override... | TableColumn function(Object identifier) { TableColumn columnExt; try { columnExt = getColumn(identifier); } catch (IllegalArgumentException e) { columnExt = getColumnExt(identifier); } return columnExt; } | /**
* Returns a contained TableColumn with the given identifier.
*
* Note that this is a hack around weird columnModel.getColumn(Object) contract in
* core TableColumnModel (throws exception if not found).
*
* @param identifier the column identifier
* @return a TableColumn with ... | Returns a contained TableColumn with the given identifier. Note that this is a hack around weird columnModel.getColumn(Object) contract in core TableColumnModel (throws exception if not found) | getColumnByIdentifier | {
"repo_name": "trejkaz/swingx",
"path": "swingx-core/src/main/java/org/jdesktop/swingx/JXTable.java",
"license": "lgpl-2.1",
"size": 163623
} | [
"javax.swing.table.TableColumn"
] | import javax.swing.table.TableColumn; | import javax.swing.table.*; | [
"javax.swing"
] | javax.swing; | 1,953,470 |
public AggregateDefinition completionTimeout(Expression completionTimeout) {
setCompletionTimeoutExpression(new ExpressionSubElementDefinition(completionTimeout));
return this;
} | AggregateDefinition function(Expression completionTimeout) { setCompletionTimeoutExpression(new ExpressionSubElementDefinition(completionTimeout)); return this; } | /**
* Sets the completion timeout, which would cause the aggregate to consider the group as complete
* and send out the aggregated exchange.
*
* @param completionTimeout the timeout as an {@link Expression} which is evaluated as a {@link Long} type
* @return the builder
*/ | Sets the completion timeout, which would cause the aggregate to consider the group as complete and send out the aggregated exchange | completionTimeout | {
"repo_name": "shuliangtao/apache-camel-2.13.0-src",
"path": "camel-core/src/main/java/org/apache/camel/model/AggregateDefinition.java",
"license": "apache-2.0",
"size": 34124
} | [
"org.apache.camel.Expression"
] | import org.apache.camel.Expression; | import org.apache.camel.*; | [
"org.apache.camel"
] | org.apache.camel; | 1,321,438 |
private DnsServerAddressStream getNameServersFromCache(String hostname) {
int len = hostname.length();
if (len == 0) {
// We never cache for root servers.
return null;
}
// We always store in the cache with a trailing '.'.
if (hostname.charAt(len - 1... | DnsServerAddressStream function(String hostname) { int len = hostname.length(); if (len == 0) { return null; } if (hostname.charAt(len - 1) != '.') { hostname += "."; } int idx = hostname.indexOf('.'); if (idx == hostname.length() - 1) { return null; } for (;;) { hostname = hostname.substring(idx + 1); int idx2 = hostn... | /**
* Returns the {@link DnsServerAddressStream} that was cached for the given hostname or {@code null} if non
* could be found.
*/ | Returns the <code>DnsServerAddressStream</code> that was cached for the given hostname or null if non could be found | getNameServersFromCache | {
"repo_name": "kiril-me/netty",
"path": "resolver-dns/src/main/java/io/netty/resolver/dns/DnsNameResolverContext.java",
"license": "apache-2.0",
"size": 38241
} | [
"java.net.InetSocketAddress",
"java.util.List"
] | import java.net.InetSocketAddress; import java.util.List; | import java.net.*; import java.util.*; | [
"java.net",
"java.util"
] | java.net; java.util; | 1,543,493 |
public Observable<ServiceResponse<Page<LabAccountInner>>> listSinglePageAsync(final String expand, final String filter, final Integer top, final String orderby) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required an... | Observable<ServiceResponse<Page<LabAccountInner>>> function(final String expand, final String filter, final Integer top, final String orderby) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException(STR); } | /**
* List lab accounts in a subscription.
*
ServiceResponse<PageImpl<LabAccountInner>> * @param expand Specify the $expand query. Example: 'properties($expand=sizeConfiguration)'
ServiceResponse<PageImpl<LabAccountInner>> * @param filter The filter to apply to the operation.
ServiceResponse<PageI... | List lab accounts in a subscription | listSinglePageAsync | {
"repo_name": "navalev/azure-sdk-for-java",
"path": "sdk/labservices/mgmt-v2018_10_15/src/main/java/com/microsoft/azure/management/labservices/v2018_10_15/implementation/LabAccountsInner.java",
"license": "mit",
"size": 87311
} | [
"com.microsoft.azure.Page",
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse; | import com.microsoft.azure.*; import com.microsoft.rest.*; | [
"com.microsoft.azure",
"com.microsoft.rest"
] | com.microsoft.azure; com.microsoft.rest; | 2,678,310 |
public List<BluetoothGattService> getSupportedGattServices() {
if (mGatt != null) {
return mGatt.getServices();
} else {
return null;
}
} | List<BluetoothGattService> function() { if (mGatt != null) { return mGatt.getServices(); } else { return null; } } | /**
* Retrieves a list of supported GATT services on the connected device. This should be
* invoked only after {@code BluetoothGatt#discoverServices()} completes successfully.
*
* @return A {@code List} of supported services.
*/ | Retrieves a list of supported GATT services on the connected device. This should be invoked only after BluetoothGatt#discoverServices() completes successfully | getSupportedGattServices | {
"repo_name": "MauricePeek513/MySneakerProject",
"path": "app/src/main/java/com/adafruit/bluefruit/le/connect/ble/BleManager.java",
"license": "mit",
"size": 16967
} | [
"android.bluetooth.BluetoothGattService",
"java.util.List"
] | import android.bluetooth.BluetoothGattService; import java.util.List; | import android.bluetooth.*; import java.util.*; | [
"android.bluetooth",
"java.util"
] | android.bluetooth; java.util; | 256,535 |
public static Sort toSort(SortOrders sortOrders) {
return toSort(sortOrders != null ? sortOrders.getSortOrders() : null);
} | static Sort function(SortOrders sortOrders) { return toSort(sortOrders != null ? sortOrders.getSortOrders() : null); } | /**
* Transforms sort orders into a {@code Sort} object.
*
* @param sortOrders the sort orders
* @return the sort
*/ | Transforms sort orders into a Sort object | toSort | {
"repo_name": "bremersee/comparator",
"path": "src/main/java/org/bremersee/comparator/spring/mapper/SortMapper.java",
"license": "apache-2.0",
"size": 6828
} | [
"org.bremersee.comparator.model.SortOrders",
"org.springframework.data.domain.Sort"
] | import org.bremersee.comparator.model.SortOrders; import org.springframework.data.domain.Sort; | import org.bremersee.comparator.model.*; import org.springframework.data.domain.*; | [
"org.bremersee.comparator",
"org.springframework.data"
] | org.bremersee.comparator; org.springframework.data; | 2,024,307 |
public PipelineTree buildPipelineTree() {
if (aggregationBuilders.isEmpty() && pipelineAggregatorBuilders.isEmpty()) {
return PipelineTree.EMPTY;
}
Map<String, PipelineTree> subTrees = aggregationBuilders.stream()
.collect(toMap(AggregationBuil... | PipelineTree function() { if (aggregationBuilders.isEmpty() && pipelineAggregatorBuilders.isEmpty()) { return PipelineTree.EMPTY; } Map<String, PipelineTree> subTrees = aggregationBuilders.stream() .collect(toMap(AggregationBuilder::getName, AggregationBuilder::buildPipelineTree)); List<PipelineAggregator> aggregators ... | /**
* Build a tree of {@link PipelineAggregator}s to modify the tree of
* aggregation results after the final reduction.
*/ | Build a tree of <code>PipelineAggregator</code>s to modify the tree of aggregation results after the final reduction | buildPipelineTree | {
"repo_name": "ern/elasticsearch",
"path": "server/src/main/java/org/elasticsearch/search/aggregations/AggregatorFactories.java",
"license": "apache-2.0",
"size": 27724
} | [
"java.util.List",
"java.util.Map",
"org.elasticsearch.search.aggregations.pipeline.PipelineAggregator"
] | import java.util.List; import java.util.Map; import org.elasticsearch.search.aggregations.pipeline.PipelineAggregator; | import java.util.*; import org.elasticsearch.search.aggregations.pipeline.*; | [
"java.util",
"org.elasticsearch.search"
] | java.util; org.elasticsearch.search; | 1,902,599 |
public java.util.List<fr.lip6.move.pnml.pthlpng.integers.hlapi.NaturalHLAPI> getInput_integers_NaturalHLAPI() {
java.util.List<fr.lip6.move.pnml.pthlpng.integers.hlapi.NaturalHLAPI> retour = new ArrayList<fr.lip6.move.pnml.pthlpng.integers.hlapi.NaturalHLAPI>();
for (Sort elemnt : getInput()) {
if (elemnt.get... | java.util.List<fr.lip6.move.pnml.pthlpng.integers.hlapi.NaturalHLAPI> function() { java.util.List<fr.lip6.move.pnml.pthlpng.integers.hlapi.NaturalHLAPI> retour = new ArrayList<fr.lip6.move.pnml.pthlpng.integers.hlapi.NaturalHLAPI>(); for (Sort elemnt : getInput()) { if (elemnt.getClass().equals(fr.lip6.move.pnml.pthlpn... | /**
* This accessor return a list of encapsulated subelement, only of NaturalHLAPI
* kind. WARNING : this method can creates a lot of new object in memory.
*/ | This accessor return a list of encapsulated subelement, only of NaturalHLAPI kind. WARNING : this method can creates a lot of new object in memory | getInput_integers_NaturalHLAPI | {
"repo_name": "lhillah/pnmlframework",
"path": "pnmlFw-PT-HLPNG/src/fr/lip6/move/pnml/pthlpng/integers/hlapi/DivisionHLAPI.java",
"license": "epl-1.0",
"size": 69770
} | [
"fr.lip6.move.pnml.pthlpng.terms.Sort",
"java.util.ArrayList",
"java.util.List"
] | import fr.lip6.move.pnml.pthlpng.terms.Sort; import java.util.ArrayList; import java.util.List; | import fr.lip6.move.pnml.pthlpng.terms.*; import java.util.*; | [
"fr.lip6.move",
"java.util"
] | fr.lip6.move; java.util; | 2,327,257 |
private static final void dumpLine(PrintWriter pw, int uid, String category, String type,
Object... args ) {
pw.print(BATTERY_STATS_CHECKIN_VERSION); pw.print(',');
pw.print(uid); pw.print(',');
pw.print(category); pw.print(',');
pw.print(type);
for (Obje... | static final void function(PrintWriter pw, int uid, String category, String type, Object... args ) { pw.print(BATTERY_STATS_CHECKIN_VERSION); pw.print(','); pw.print(uid); pw.print(','); pw.print(category); pw.print(','); pw.print(type); for (Object arg : args) { pw.print(','); pw.print(arg); } pw.println(); } | /**
* Dump a comma-separated line of values for terse checkin mode.
*
* @param pw the PageWriter to dump log to
* @param category category of data (e.g. "total", "last", "unplugged", "current" )
* @param type type of data (e.g. "wakelock", "sensor", "process", "apk" , "process", "network")
... | Dump a comma-separated line of values for terse checkin mode | dumpLine | {
"repo_name": "JSDemos/android-sdk-20",
"path": "src/android/os/BatteryStats.java",
"license": "apache-2.0",
"size": 103955
} | [
"java.io.PrintWriter"
] | import java.io.PrintWriter; | import java.io.*; | [
"java.io"
] | java.io; | 975,997 |
public void start(PcepAgent ag) {
log.info("Started");
this.agent = ag;
this.init();
this.run();
} | void function(PcepAgent ag) { log.info(STR); this.agent = ag; this.init(); this.run(); } | /**
* Starts the pcep controller.
*
* @param ag Pcep agent
*/ | Starts the pcep controller | start | {
"repo_name": "sonu283304/onos",
"path": "protocols/pcep/ctl/src/main/java/org/onosproject/pcep/controller/impl/Controller.java",
"license": "apache-2.0",
"size": 6136
} | [
"org.onosproject.pcep.controller.driver.PcepAgent"
] | import org.onosproject.pcep.controller.driver.PcepAgent; | import org.onosproject.pcep.controller.driver.*; | [
"org.onosproject.pcep"
] | org.onosproject.pcep; | 120,700 |
public static StartupProgress getStartupProgressFromContext(
ServletContext context) {
return (StartupProgress)context.getAttribute(STARTUP_PROGRESS_ATTRIBUTE_KEY);
} | static StartupProgress function( ServletContext context) { return (StartupProgress)context.getAttribute(STARTUP_PROGRESS_ATTRIBUTE_KEY); } | /**
* Returns StartupProgress associated with ServletContext.
*
* @param context ServletContext to get
* @return StartupProgress associated with context
*/ | Returns StartupProgress associated with ServletContext | getStartupProgressFromContext | {
"repo_name": "tomatoKiller/Hadoop_Source_Learn",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNodeHttpServer.java",
"license": "apache-2.0",
"size": 10092
} | [
"javax.servlet.ServletContext",
"org.apache.hadoop.hdfs.server.namenode.startupprogress.StartupProgress"
] | import javax.servlet.ServletContext; import org.apache.hadoop.hdfs.server.namenode.startupprogress.StartupProgress; | import javax.servlet.*; import org.apache.hadoop.hdfs.server.namenode.startupprogress.*; | [
"javax.servlet",
"org.apache.hadoop"
] | javax.servlet; org.apache.hadoop; | 1,073,681 |
public Map<String, IndicesAccessControl.IndexAccessControl> authorize(String action, Set<String> requestedIndicesOrAliases,
Map<String, IndexAbstraction> lookup,
FieldP... | Map<String, IndicesAccessControl.IndexAccessControl> function(String action, Set<String> requestedIndicesOrAliases, Map<String, IndexAbstraction> lookup, FieldPermissionsCache fieldPermissionsCache) { Map<String, Set<FieldPermissions>> fieldPermissionsByIndex = new HashMap<>(); Map<String, DocumentLevelPermissions> rol... | /**
* Authorizes the provided action against the provided indices, given the current cluster metadata
*/ | Authorizes the provided action against the provided indices, given the current cluster metadata | authorize | {
"repo_name": "nknize/elasticsearch",
"path": "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/permission/IndicesPermission.java",
"license": "apache-2.0",
"size": 22840
} | [
"java.util.ArrayList",
"java.util.Collections",
"java.util.HashMap",
"java.util.HashSet",
"java.util.List",
"java.util.Map",
"java.util.Set",
"org.elasticsearch.cluster.metadata.IndexAbstraction",
"org.elasticsearch.cluster.metadata.IndexMetadata",
"org.elasticsearch.common.bytes.BytesReference",
... | import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.elasticsearch.cluster.metadata.IndexAbstraction; import org.elasticsearch.cluster.metadata.IndexMetadata; import org.elasticsearch.c... | import java.util.*; import org.elasticsearch.cluster.metadata.*; import org.elasticsearch.common.bytes.*; import org.elasticsearch.common.logging.*; import org.elasticsearch.xpack.core.security.authz.accesscontrol.*; | [
"java.util",
"org.elasticsearch.cluster",
"org.elasticsearch.common",
"org.elasticsearch.xpack"
] | java.util; org.elasticsearch.cluster; org.elasticsearch.common; org.elasticsearch.xpack; | 1,505,389 |
public void returnValue() {
mv.visitInsn(returnType.getOpcode(Opcodes.IRETURN));
}
// ------------------------------------------------------------------------
// Instructions to load and store fields
// ------------------------------------------------------------------------
| void function() { mv.visitInsn(returnType.getOpcode(Opcodes.IRETURN)); } | /**
* Generates the instruction to return the top stack value to the caller.
*/ | Generates the instruction to return the top stack value to the caller | returnValue | {
"repo_name": "coolking70/aviator",
"path": "src/main/java/com/googlecode/aviator/asm/commons/GeneratorAdapter.java",
"license": "lgpl-3.0",
"size": 46627
} | [
"com.googlecode.aviator.asm.Opcodes"
] | import com.googlecode.aviator.asm.Opcodes; | import com.googlecode.aviator.asm.*; | [
"com.googlecode.aviator"
] | com.googlecode.aviator; | 86,979 |
private List<SunZodiac> calculateZodiacs(int year) {
List<SunZodiac> zodiacs = new ArrayList<SunZodiac>();
zodiacs.add(new SunZodiac(ZodiacSign.ARIES,
DateTimeUtils.getRange(year, Calendar.MARCH, 21, year, Calendar.APRIL, 19)));
zodiacs.add(new SunZodiac(ZodiacSign.TAURUS,
... | List<SunZodiac> function(int year) { List<SunZodiac> zodiacs = new ArrayList<SunZodiac>(); zodiacs.add(new SunZodiac(ZodiacSign.ARIES, DateTimeUtils.getRange(year, Calendar.MARCH, 21, year, Calendar.APRIL, 19))); zodiacs.add(new SunZodiac(ZodiacSign.TAURUS, DateTimeUtils.getRange(year, Calendar.APRIL, 20, year, Calenda... | /**
* Calculates the zodiacs for the current year.
*/ | Calculates the zodiacs for the current year | calculateZodiacs | {
"repo_name": "theoweiss/openhab",
"path": "bundles/binding/org.openhab.binding.astro/src/main/java/org/openhab/binding/astro/internal/calc/SunZodiacCalc.java",
"license": "epl-1.0",
"size": 3669
} | [
"java.util.ArrayList",
"java.util.Calendar",
"java.util.List",
"org.openhab.binding.astro.internal.model.SunZodiac",
"org.openhab.binding.astro.internal.model.ZodiacSign",
"org.openhab.binding.astro.internal.util.DateTimeUtils"
] | import java.util.ArrayList; import java.util.Calendar; import java.util.List; import org.openhab.binding.astro.internal.model.SunZodiac; import org.openhab.binding.astro.internal.model.ZodiacSign; import org.openhab.binding.astro.internal.util.DateTimeUtils; | import java.util.*; import org.openhab.binding.astro.internal.model.*; import org.openhab.binding.astro.internal.util.*; | [
"java.util",
"org.openhab.binding"
] | java.util; org.openhab.binding; | 1,282,171 |
@Generated
@CVariable()
@MappedReturn(ObjCStringMapper.class)
public static native String NSLinguisticTagOther(); | @CVariable() @MappedReturn(ObjCStringMapper.class) static native String function(); | /**
* Other tokens, including non-linguistic items such as symbols.
*/ | Other tokens, including non-linguistic items such as symbols | NSLinguisticTagOther | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/foundation/c/Foundation.java",
"license": "apache-2.0",
"size": 156135
} | [
"org.moe.natj.c.ann.CVariable",
"org.moe.natj.general.ann.MappedReturn",
"org.moe.natj.objc.map.ObjCStringMapper"
] | import org.moe.natj.c.ann.CVariable; import org.moe.natj.general.ann.MappedReturn; import org.moe.natj.objc.map.ObjCStringMapper; | import org.moe.natj.c.ann.*; import org.moe.natj.general.ann.*; import org.moe.natj.objc.map.*; | [
"org.moe.natj"
] | org.moe.natj; | 2,658,125 |
public boolean existsTable(Database database, DatabaseTable databaseTable) {
boolean response;
// TODO: Not implemented.
throw new UnsupportedOperationException(this.getClass().getName() + ":existsTable");
// return response;
}
}
/**
------------------------------------| Engine... | boolean function(Database database, DatabaseTable databaseTable) { boolean response; throw new UnsupportedOperationException(this.getClass().getName() + STR); } } /** ------------------------------------ Engineered with ♥ in Barcelona, Catalonia -------------------------------------- | /**
* Checks if databaseTable exists by given database name.
*
* @param database Database for databaseTable consulting.
* @param databaseTable DatabaseTable object with the name of the databaseTable inside.
* @return True if exists, false otherwise
* @since v2.0
*/ | Checks if databaseTable exists by given database name | existsTable | {
"repo_name": "AdaptiveMe/adaptive-arp-android",
"path": "adaptive-arp-rt/wear/src/main/java/me/adaptive/arp/impl/DatabaseDelegate.java",
"license": "apache-2.0",
"size": 6406
} | [
"me.adaptive.arp.api.Database",
"me.adaptive.arp.api.DatabaseTable"
] | import me.adaptive.arp.api.Database; import me.adaptive.arp.api.DatabaseTable; | import me.adaptive.arp.api.*; | [
"me.adaptive.arp"
] | me.adaptive.arp; | 758,043 |
public synchronized void remove(int index) {
XYEntry<Double, Double> removedEntry = mXY.removeByIndex(index);
double removedX = removedEntry.getKey();
double removedY = removedEntry.getValue();
if (removedX == mMinX || removedX == mMaxX || removedY == mMinY || removedY == mMaxY) {
initRange();
... | synchronized void function(int index) { XYEntry<Double, Double> removedEntry = mXY.removeByIndex(index); double removedX = removedEntry.getKey(); double removedY = removedEntry.getValue(); if (removedX == mMinX removedX == mMaxX removedY == mMinY removedY == mMaxY) { initRange(); } } | /**
* Removes an existing value from the series.
*
* @param index the index in the series of the value to remove
*/ | Removes an existing value from the series | remove | {
"repo_name": "artiomchi/Dual-Battery-Widget",
"path": "lib/AChartEngine/src/org/achartengine/model/XYSeries.java",
"license": "apache-2.0",
"size": 6447
} | [
"org.achartengine.util.XYEntry"
] | import org.achartengine.util.XYEntry; | import org.achartengine.util.*; | [
"org.achartengine.util"
] | org.achartengine.util; | 1,193,791 |
public FluentBackoff withExponent(double exponent) {
checkArgument(exponent > 0, "exponent %s must be greater than 0", exponent);
return new FluentBackoff(
exponent, initialBackoff, maxBackoff, maxCumulativeBackoff, maxRetries);
} | FluentBackoff function(double exponent) { checkArgument(exponent > 0, STR, exponent); return new FluentBackoff( exponent, initialBackoff, maxBackoff, maxCumulativeBackoff, maxRetries); } | /**
* Returns a copy of this {@link FluentBackoff} that instead uses the specified exponent to
* control the exponential growth of delay.
*
* <p>Does not modify this object.
*
* @see FluentBackoff
*/ | Returns a copy of this <code>FluentBackoff</code> that instead uses the specified exponent to control the exponential growth of delay. Does not modify this object | withExponent | {
"repo_name": "mxm/incubator-beam",
"path": "sdks/java/core/src/main/java/org/apache/beam/sdk/util/FluentBackoff.java",
"license": "apache-2.0",
"size": 8571
} | [
"com.google.common.base.Preconditions"
] | import com.google.common.base.Preconditions; | import com.google.common.base.*; | [
"com.google.common"
] | com.google.common; | 2,291,135 |
public void AddRemSymptomSource (int symid, int remid, byte sourceid, String sym_name, String rem_name, String author, String work) {
ChangeItem ci = new ChangeItem();
ci.type = CHANGE_TYPE_ADD_REMSYMPTOM_SOURCE;
ci.sym_id = symid;
ci.rem_id = remid;
ci.sym_name = sym_name;
... | void function (int symid, int remid, byte sourceid, String sym_name, String rem_name, String author, String work) { ChangeItem ci = new ChangeItem(); ci.type = CHANGE_TYPE_ADD_REMSYMPTOM_SOURCE; ci.sym_id = symid; ci.rem_id = remid; ci.sym_name = sym_name; ci.rem_name = rem_name; ci.source_id = new ArrayList(); ci.sour... | /** Records the change - adding of the new remedy source to the Remedy Addition
*
* @param symid symptomid
* @param remid remedyid
* @param sourceid sourceid
* @param sym_name symptom name
* @param rem_name remedy name
* @param author author of the addition
* @param work name of... | Records the change - adding of the new remedy source to the Remedy Addition | AddRemSymptomSource | {
"repo_name": "Bergische-Akademie/OpenRep-Deutsch",
"path": "src/prescriber/Changes.java",
"license": "gpl-3.0",
"size": 19356
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 946,676 |
public void setAfterRenderer(IRenderInto<T> afterContent) {
m_afterRenderer = afterContent;
} | void function(IRenderInto<T> afterContent) { m_afterRenderer = afterContent; } | /**
* Enables appending of custom content that would be enveloped into additionaly added row <i>after</i> the actual data.
*/ | Enables appending of custom content that would be enveloped into additionaly added row after the actual data | setAfterRenderer | {
"repo_name": "fjalvingh/domui",
"path": "to.etc.domui/src/main/java/to/etc/domui/component/input/SimpleLookupInputRenderer.java",
"license": "lgpl-2.1",
"size": 6845
} | [
"to.etc.domui.util.IRenderInto"
] | import to.etc.domui.util.IRenderInto; | import to.etc.domui.util.*; | [
"to.etc.domui"
] | to.etc.domui; | 2,376,246 |
public void doEdit_page(RunData data, Context context)
{
SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid());
state.setAttribute("mode", "editPage");
String id = data.getParameters().getString("id");
// get the page
Site site = (Site) state.getAttr... | void function(RunData data, Context context) { SessionState state = ((JetspeedRunData) data).getPortletSessionState(((JetspeedRunData) data).getJs_peid()); state.setAttribute("mode", STR); String id = data.getParameters().getString("id"); Site site = (Site) state.getAttribute("site"); SitePage page = site.getPage(id); ... | /**
* Edit an existing page.
*/ | Edit an existing page | doEdit_page | {
"repo_name": "kingmook/sakai",
"path": "site/site-tool/tool/src/java/org/sakaiproject/site/tool/AdminSitesAction.java",
"license": "apache-2.0",
"size": 77028
} | [
"org.sakaiproject.cheftool.Context",
"org.sakaiproject.cheftool.JetspeedRunData",
"org.sakaiproject.cheftool.RunData",
"org.sakaiproject.event.api.SessionState",
"org.sakaiproject.site.api.Site",
"org.sakaiproject.site.api.SitePage"
] | import org.sakaiproject.cheftool.Context; import org.sakaiproject.cheftool.JetspeedRunData; import org.sakaiproject.cheftool.RunData; import org.sakaiproject.event.api.SessionState; import org.sakaiproject.site.api.Site; import org.sakaiproject.site.api.SitePage; | import org.sakaiproject.cheftool.*; import org.sakaiproject.event.api.*; import org.sakaiproject.site.api.*; | [
"org.sakaiproject.cheftool",
"org.sakaiproject.event",
"org.sakaiproject.site"
] | org.sakaiproject.cheftool; org.sakaiproject.event; org.sakaiproject.site; | 2,459,023 |
public static final Class<?> getIndexDataType(Cursor c, int i) {
switch (c.getType(i)) {
case Cursor.FIELD_TYPE_STRING:
return String.class;
case Cursor.FIELD_TYPE_FLOAT:
return Double.class;
case Cursor.FIELD_TYPE_INTEGER:
return Long.class;
case Cursor.FIELD_TYPE_NULL:
re... | static final Class<?> function(Cursor c, int i) { switch (c.getType(i)) { case Cursor.FIELD_TYPE_STRING: return String.class; case Cursor.FIELD_TYPE_FLOAT: return Double.class; case Cursor.FIELD_TYPE_INTEGER: return Long.class; case Cursor.FIELD_TYPE_NULL: return String.class; default: case Cursor.FIELD_TYPE_BLOB: thro... | /**
* Retrieve the data type of the [i] field in the Cursor.
*
* @param c
* @param i
* @return
*/ | Retrieve the data type of the [i] field in the Cursor | getIndexDataType | {
"repo_name": "MACEPA/EpiSample",
"path": "androidCommon/src/main/java/org/path/common/android/utilities/ODKDatabaseUtils.java",
"license": "apache-2.0",
"size": 84011
} | [
"android.database.Cursor"
] | import android.database.Cursor; | import android.database.*; | [
"android.database"
] | android.database; | 2,163,387 |
public FetchSourceContext fetchSource() {
return fetchSourceContext;
} | FetchSourceContext function() { return fetchSourceContext; } | /**
* Gets the {@link FetchSourceContext} which defines how the _source should
* be fetched.
*/ | Gets the <code>FetchSourceContext</code> which defines how the _source should be fetched | fetchSource | {
"repo_name": "clintongormley/elasticsearch",
"path": "core/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java",
"license": "apache-2.0",
"size": 56204
} | [
"org.elasticsearch.search.fetch.source.FetchSourceContext"
] | import org.elasticsearch.search.fetch.source.FetchSourceContext; | import org.elasticsearch.search.fetch.source.*; | [
"org.elasticsearch.search"
] | org.elasticsearch.search; | 401,152 |
protected void collectNewChildDescriptors(Collection newChildDescriptors,
Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
} | void function(Collection newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); } | /**
* This adds to the collection of
* {@link org.eclipse.emf.edit.command.CommandParameter}s describing all of
* the children that can be created under this object. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*
* @generated
*/ | This adds to the collection of <code>org.eclipse.emf.edit.command.CommandParameter</code>s describing all of the children that can be created under this object. | collectNewChildDescriptors | {
"repo_name": "apache/geronimo-devtools",
"path": "plugins/org.apache.geronimo.deployment.model.edit/src/org/apache/geronimo/xml/ns/naming/provider/ResourceEnvRefTypeItemProvider.java",
"license": "apache-2.0",
"size": 14782
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 2,543,839 |
@Test
public void testProcessWithKerberos_DontUpdateKererosConfigProperty_WithCustomValueDifferentThanStackDefault() throws
Exception {
Capture<? extends Set<String>> captureUpdatedConfigTypes = testProcessWithKerberos("testPropertyValue",
"defaultTestValue", null);
Set<String> updatedConfigType... | void function() throws Exception { Capture<? extends Set<String>> captureUpdatedConfigTypes = testProcessWithKerberos(STR, STR, null); Set<String> updatedConfigTypes = captureUpdatedConfigTypes.getValue(); assertEquals(1, updatedConfigTypes.size()); } | /**
* testConfigType config type shouldn't be in updatedConfigTypes, as testProperty in Blueprint is different that
* stack default (custom value) ==> Kerberos config property shouldn't be updated
* @throws Exception
*/ | testConfigType config type shouldn't be in updatedConfigTypes, as testProperty in Blueprint is different that stack default (custom value) ==> Kerberos config property shouldn't be updated | testProcessWithKerberos_DontUpdateKererosConfigProperty_WithCustomValueDifferentThanStackDefault | {
"repo_name": "sekikn/ambari",
"path": "ambari-server/src/test/java/org/apache/ambari/server/topology/ClusterConfigurationRequestTest.java",
"license": "apache-2.0",
"size": 24015
} | [
"java.util.Set",
"org.easymock.Capture",
"org.junit.Assert"
] | import java.util.Set; import org.easymock.Capture; import org.junit.Assert; | import java.util.*; import org.easymock.*; import org.junit.*; | [
"java.util",
"org.easymock",
"org.junit"
] | java.util; org.easymock; org.junit; | 1,194,472 |
public DistrictConfig getDistrictConfigByName(String districtName) {
if (this.districtConfig.getDistricts().containsKey(districtName)) {
return this.districtConfig.getDistricts().get(districtName);
}
return null;
} | DistrictConfig function(String districtName) { if (this.districtConfig.getDistricts().containsKey(districtName)) { return this.districtConfig.getDistricts().get(districtName); } return null; } | /**
* Gets a specific district configuration by its name
*
* @param districtName
* @return the district config
*/ | Gets a specific district configuration by its name | getDistrictConfigByName | {
"repo_name": "jerumble/vVoteVerifier",
"path": "src/com/vvote/verifier/component/ComponentDataStore.java",
"license": "gpl-3.0",
"size": 12611
} | [
"com.vvote.datafiles.DistrictConfig"
] | import com.vvote.datafiles.DistrictConfig; | import com.vvote.datafiles.*; | [
"com.vvote.datafiles"
] | com.vvote.datafiles; | 1,656,586 |
resp.setContentType("application/json");
RecordRetrievalService recordService = new RecordRetrievalServiceImpl();
String queryText = req.getParameter("search-text");
Type collectionType = new TypeToken<List<String>>() {
}.getType();
List<String> queryProperties = gson.fromJson(req.getParameter("searc... | resp.setContentType(STR); RecordRetrievalService recordService = new RecordRetrievalServiceImpl(); String queryText = req.getParameter(STR); Type collectionType = new TypeToken<List<String>>() { }.getType(); List<String> queryProperties = gson.fromJson(req.getParameter(STR), collectionType); Set<Dog> dogs = new HashSet... | /**
* The method handles the request from the Search Table tab on the website
*/ | The method handles the request from the Search Table tab on the website | doGet | {
"repo_name": "jack-linden/Dogs-of-Westchester",
"path": "src/main/java/web/SearchServlet.java",
"license": "apache-2.0",
"size": 1414
} | [
"com.google.gson.reflect.TypeToken",
"java.lang.reflect.Type",
"java.util.HashSet",
"java.util.List",
"java.util.Set"
] | import com.google.gson.reflect.TypeToken; import java.lang.reflect.Type; import java.util.HashSet; import java.util.List; import java.util.Set; | import com.google.gson.reflect.*; import java.lang.reflect.*; import java.util.*; | [
"com.google.gson",
"java.lang",
"java.util"
] | com.google.gson; java.lang; java.util; | 2,412,451 |
public static String parseUnicodeIdentifier(String str, int[] pos) {
// assert(pos[0] < str.length());
StringBuilder buf = new StringBuilder();
int p = pos[0];
while (p < str.length()) {
int ch = Character.codePointAt(str, p);
if (buf.length() == 0) {
... | static String function(String str, int[] pos) { StringBuilder buf = new StringBuilder(); int p = pos[0]; while (p < str.length()) { int ch = Character.codePointAt(str, p); if (buf.length() == 0) { if (UCharacter.isUnicodeIdentifierStart(ch)) { buf.appendCodePoint(ch); } else { return null; } } else { if (UCharacter.isU... | /**
* Parse a Unicode identifier from the given string at the given
* position. Return the identifier, or null if there is no
* identifier.
* @param str the string to parse
* @param pos INPUT-OUPUT parameter. On INPUT, pos[0] is the
* first character to examine. It must be less than str... | Parse a Unicode identifier from the given string at the given position. Return the identifier, or null if there is no identifier | parseUnicodeIdentifier | {
"repo_name": "lylysa/quickdic-dictionary.dictionary",
"path": "jars/icu4j-52_1/main/classes/core/src/com/ibm/icu/impl/Utility.java",
"license": "apache-2.0",
"size": 64675
} | [
"com.ibm.icu.lang.UCharacter"
] | import com.ibm.icu.lang.UCharacter; | import com.ibm.icu.lang.*; | [
"com.ibm.icu"
] | com.ibm.icu; | 352,628 |
public List<BufferedImage> getThumbnailSet(List pixelsID, int max)
throws Exception
{
List<BufferedImage> images = new ArrayList<BufferedImage>();
try {
ThumbnailStorePrx service = getThumbService();
Map<Long, byte[]> results = service.getThumbnailByLongestSideSet(
omero.rtypes.rint(max), pixelsID)... | List<BufferedImage> function(List pixelsID, int max) throws Exception { List<BufferedImage> images = new ArrayList<BufferedImage>(); try { ThumbnailStorePrx service = getThumbService(); Map<Long, byte[]> results = service.getThumbnailByLongestSideSet( omero.rtypes.rint(max), pixelsID); if (results == null) return image... | /**
* Retrieves the specified images.
*
* @param pixelsID The identifier of the images.
* @param max The maximum length of a thumbnail.
* @return See above.
* @throws Exception
*/ | Retrieves the specified images | getThumbnailSet | {
"repo_name": "jballanc/openmicroscopy",
"path": "components/insight/TEST/org/openmicroscopy/shoola/examples/data/Gateway.java",
"license": "gpl-2.0",
"size": 13098
} | [
"java.awt.image.BufferedImage",
"java.util.ArrayList",
"java.util.Iterator",
"java.util.List",
"java.util.Map"
] | import java.awt.image.BufferedImage; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Map; | import java.awt.image.*; import java.util.*; | [
"java.awt",
"java.util"
] | java.awt; java.util; | 258,915 |
protected void listen(RaftSession session) {
listeners.put(session.sessionId().id(), session);
} | void function(RaftSession session) { listeners.put(session.sessionId().id(), session); } | /**
* Handles a listen commit.
*
* @param session listen session
*/ | Handles a listen commit | listen | {
"repo_name": "osinstom/onos",
"path": "core/store/primitives/src/main/java/org/onosproject/store/primitives/resources/impl/AtomixConsistentMapService.java",
"license": "apache-2.0",
"size": 44039
} | [
"io.atomix.protocols.raft.session.RaftSession"
] | import io.atomix.protocols.raft.session.RaftSession; | import io.atomix.protocols.raft.session.*; | [
"io.atomix.protocols"
] | io.atomix.protocols; | 1,976,330 |
public boolean isNull(QueryContext context)
throws SQLException
{
return evalBoolean(context) == UNKNOWN;
} | boolean function(QueryContext context) throws SQLException { return evalBoolean(context) == UNKNOWN; } | /**
* Returns true if the expressoin evaluates to null
*/ | Returns true if the expressoin evaluates to null | isNull | {
"repo_name": "dlitz/resin",
"path": "modules/resin/src/com/caucho/db/sql/OrExpr.java",
"license": "gpl-2.0",
"size": 2962
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 640,696 |
public void afterUnassigned(Assignment<Request, Enrollment> assignment, long iteration, Enrollment value) {
if (value != null && !value.equals(iUnassignedValue)) {
unassigned(assignment, value);
}
} | void function(Assignment<Request, Enrollment> assignment, long iteration, Enrollment value) { if (value != null && !value.equals(iUnassignedValue)) { unassigned(assignment, value); } } | /**
* Called after a value is unassigned from a variable.
* @param assignment current assignment
* @param iteration current iteration
* @param value value that was unassigned
*/ | Called after a value is unassigned from a variable | afterUnassigned | {
"repo_name": "UniTime/cpsolver",
"path": "src/org/cpsolver/studentsct/extension/TimeOverlapsCounter.java",
"license": "lgpl-3.0",
"size": 30907
} | [
"org.cpsolver.ifs.assignment.Assignment",
"org.cpsolver.studentsct.model.Enrollment",
"org.cpsolver.studentsct.model.Request"
] | import org.cpsolver.ifs.assignment.Assignment; import org.cpsolver.studentsct.model.Enrollment; import org.cpsolver.studentsct.model.Request; | import org.cpsolver.ifs.assignment.*; import org.cpsolver.studentsct.model.*; | [
"org.cpsolver.ifs",
"org.cpsolver.studentsct"
] | org.cpsolver.ifs; org.cpsolver.studentsct; | 2,523,569 |
public RepositoryVersionEntity getSourceRepositoryVersion(String serviceName) {
return m_sourceRepositoryMap.get(serviceName);
} | RepositoryVersionEntity function(String serviceName) { return m_sourceRepositoryMap.get(serviceName); } | /**
* Gets the version that service is being considered to be "coming from".
* <p/>
* With a {@link Direction#UPGRADE}, this value represent the services'
* desired repository. However, {@link Direction#DOWNGRADE} will use the same
* value for all services which is the version that the downgrade is comin... | Gets the version that service is being considered to be "coming from". With a <code>Direction#UPGRADE</code>, this value represent the services' desired repository. However, <code>Direction#DOWNGRADE</code> will use the same value for all services which is the version that the downgrade is coming from | getSourceRepositoryVersion | {
"repo_name": "radicalbit/ambari",
"path": "ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeContext.java",
"license": "apache-2.0",
"size": 50065
} | [
"org.apache.ambari.server.orm.entities.RepositoryVersionEntity"
] | import org.apache.ambari.server.orm.entities.RepositoryVersionEntity; | import org.apache.ambari.server.orm.entities.*; | [
"org.apache.ambari"
] | org.apache.ambari; | 2,852,492 |
public synchronized boolean chmod(String perms, String file) throws IOException {
if(!connected)
{
throw new IOException("Server not connected");
}
if(!login)
{
throw new IOException("Not logged in");
}
sendLine("SITE CHMOD " + perms + " " + file);
... | synchronized boolean function(String perms, String file) throws IOException { if(!connected) { throw new IOException(STR); } if(!login) { throw new IOException(STR); } sendLine(STR + perms + " " + file); String response = readLine(); Log.v(STR, STR + response); return (response.startsWith(STR)); } | /**
* Changes permission to remote file
* @param perms are the permissions (oktal, e.g. 755) for the file
* @param file is the remote filename for what we choose the permissions
* @return a boolean if the operation wos successful or not
* @throws IOException when something goes wrong
... | Changes permission to remote file | chmod | {
"repo_name": "paolodongilli/SASAbus",
"path": "src/it/sasabz/android/sasabus/classes/network/SasabusFTP.java",
"license": "gpl-3.0",
"size": 18702
} | [
"android.util.Log",
"java.io.IOException"
] | import android.util.Log; import java.io.IOException; | import android.util.*; import java.io.*; | [
"android.util",
"java.io"
] | android.util; java.io; | 1,855,530 |
public Output<U> output() {
return output;
} | Output<U> function() { return output; } | /**
* Gets output.
* Random values with specified shape.
* @return output.
*/ | Gets output. Random values with specified shape | output | {
"repo_name": "tensorflow/java",
"path": "tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatefulUniformInt.java",
"license": "apache-2.0",
"size": 5232
} | [
"org.tensorflow.Output"
] | import org.tensorflow.Output; | import org.tensorflow.*; | [
"org.tensorflow"
] | org.tensorflow; | 391,010 |
public void testGetItem() throws Exception {
String userName = USER_NAME_1;
// define expected results values
byte[] expectedBody = "Random text\n".getBytes();
// Set up for testing.
JcloudsFileDataObjectBodyDAO dao = createInstance(userName);
//create the item
... | void function() throws Exception { String userName = USER_NAME_1; byte[] expectedBody = STR.getBytes(); JcloudsFileDataObjectBodyDAO dao = createInstance(userName); FileDataObjectWrapper fdow = FDOHelper.createFileDataObjectWrapperFromByteArray( userName, STR, expectedBody); dao.addItem(fdow); String localName = fdow.g... | /**
* Test of getItem method, of class FileDAO.
*/ | Test of getItem method, of class FileDAO | testGetItem | {
"repo_name": "accesstest3/cfunambol",
"path": "modules/foundation/foundation-core/src/test/java/com/funambol/foundation/items/dao/JcloudsFileDataObjectBodyDAOTest.java",
"license": "agpl-3.0",
"size": 19966
} | [
"com.funambol.common.media.file.FileDataObjectBody",
"com.funambol.foundation.items.model.FileDataObjectWrapper",
"com.funambol.framework.tools.IOTools",
"java.io.File"
] | import com.funambol.common.media.file.FileDataObjectBody; import com.funambol.foundation.items.model.FileDataObjectWrapper; import com.funambol.framework.tools.IOTools; import java.io.File; | import com.funambol.common.media.file.*; import com.funambol.foundation.items.model.*; import com.funambol.framework.tools.*; import java.io.*; | [
"com.funambol.common",
"com.funambol.foundation",
"com.funambol.framework",
"java.io"
] | com.funambol.common; com.funambol.foundation; com.funambol.framework; java.io; | 2,282,771 |
@GuardedBy("Segment.this")
void drainReferenceQueues() {
if (map.usesKeyReferences()) {
drainKeyReferenceQueue();
}
if (map.usesValueReferences()) {
drainValueReferenceQueue();
}
} | @GuardedBy(STR) void drainReferenceQueues() { if (map.usesKeyReferences()) { drainKeyReferenceQueue(); } if (map.usesValueReferences()) { drainValueReferenceQueue(); } } | /**
* Drain the key and value reference queues, cleaning up internal entries containing garbage
* collected keys or values.
*/ | Drain the key and value reference queues, cleaning up internal entries containing garbage collected keys or values | drainReferenceQueues | {
"repo_name": "sensui/guava-libraries",
"path": "guava/src/com/google/common/cache/LocalCache.java",
"license": "apache-2.0",
"size": 145799
} | [
"javax.annotation.concurrent.GuardedBy"
] | import javax.annotation.concurrent.GuardedBy; | import javax.annotation.concurrent.*; | [
"javax.annotation"
] | javax.annotation; | 990,729 |
@Override public T visitPrimaryExpr(@NotNull GolangParser.PrimaryExprContext ctx) { return visitChildren(ctx); } | @Override public T visitPrimaryExpr(@NotNull GolangParser.PrimaryExprContext ctx) { return visitChildren(ctx); } | /**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/ | The default implementation returns the result of calling <code>#visitChildren</code> on ctx | visitCommCase | {
"repo_name": "IsThisThePayneResidence/intellidots",
"path": "src/main/java/ua/edu/hneu/ast/parsers/GolangBaseVisitor.java",
"license": "gpl-3.0",
"size": 26234
} | [
"org.antlr.v4.runtime.misc.NotNull"
] | import org.antlr.v4.runtime.misc.NotNull; | import org.antlr.v4.runtime.misc.*; | [
"org.antlr.v4"
] | org.antlr.v4; | 1,174,310 |
boolean isEnabled(IScopeContext context); | boolean isEnabled(IScopeContext context); | /**
* Called when a compilation unit is saved.
* <p>
* @param context the context in which the compilation unit is saved
* @return true if the corresponding {@link IPostSaveListener} needs to be informed
*/ | Called when a compilation unit is saved. | isEnabled | {
"repo_name": "brunyuriy/quick-fix-scout",
"path": "org.eclipse.jdt.ui_3.7.1.r371_v20110824-0800/src/org/eclipse/jdt/internal/ui/javaeditor/saveparticipant/ISaveParticipantPreferenceConfiguration.java",
"license": "mit",
"size": 3398
} | [
"org.eclipse.core.runtime.preferences.IScopeContext"
] | import org.eclipse.core.runtime.preferences.IScopeContext; | import org.eclipse.core.runtime.preferences.*; | [
"org.eclipse.core"
] | org.eclipse.core; | 415,558 |
public void init(GatewayEngine engine, String id, String cfcPath, Map<String,String> config)
throws IOException; | void function(GatewayEngine engine, String id, String cfcPath, Map<String,String> config) throws IOException; | /**
* method to initialize the gateway
*
* @param engine the gateway engine
* @param id the id of the gateway
* @param cfcPath the path to the listener component
* @param config the configuration as map
*/ | method to initialize the gateway | init | {
"repo_name": "lucee/unoffical-Lucee-no-jre",
"path": "source/java/loader/src/lucee/runtime/gateway/Gateway.java",
"license": "lgpl-2.1",
"size": 2322
} | [
"java.io.IOException",
"java.util.Map"
] | import java.io.IOException; import java.util.Map; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 1,654,406 |
boolean clientInsertSelectiveMethodGenerated(Method method,
Interface interfaze, IntrospectedTable introspectedTable); | boolean clientInsertSelectiveMethodGenerated(Method method, Interface interfaze, IntrospectedTable introspectedTable); | /**
* This method is called when the insert selective method has been generated
* in the client interface.
*
* @param method
* the generated insert method
* @param interfaze
* the partially implemented client interface. You can add
* additional i... | This method is called when the insert selective method has been generated in the client interface | clientInsertSelectiveMethodGenerated | {
"repo_name": "solmix/datax",
"path": "generator/core/src/main/java/org/solmix/generator/api/Plugin.java",
"license": "lgpl-2.1",
"size": 72918
} | [
"org.solmix.generator.api.java.Interface",
"org.solmix.generator.api.java.Method"
] | import org.solmix.generator.api.java.Interface; import org.solmix.generator.api.java.Method; | import org.solmix.generator.api.java.*; | [
"org.solmix.generator"
] | org.solmix.generator; | 123,824 |
PagedFlux<GalleryImageVersion> listVersionsAsync(); | PagedFlux<GalleryImageVersion> listVersionsAsync(); | /**
* List image versions.
*
* @return the observable for the request
*/ | List image versions | listVersionsAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanagerhybrid/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/GalleryImage.java",
"license": "mit",
"size": 23389
} | [
"com.azure.core.http.rest.PagedFlux"
] | import com.azure.core.http.rest.PagedFlux; | import com.azure.core.http.rest.*; | [
"com.azure.core"
] | com.azure.core; | 141,883 |
@Override
public MissingCellPolicy getMissingCellPolicy() {
throw new UnsupportedOperationException();
} | MissingCellPolicy function() { throw new UnsupportedOperationException(); } | /**
* Not supported
*/ | Not supported | getMissingCellPolicy | {
"repo_name": "monitorjbl/excel-streaming-reader",
"path": "src/main/java/com/monitorjbl/xlsx/impl/StreamingWorkbook.java",
"license": "apache-2.0",
"size": 9971
} | [
"org.apache.poi.ss.usermodel.Row"
] | import org.apache.poi.ss.usermodel.Row; | import org.apache.poi.ss.usermodel.*; | [
"org.apache.poi"
] | org.apache.poi; | 1,621,387 |
private CompletableFuture<Void> requestBootstrapFromPeers(List<NodeId> peers) {
if (peers.isEmpty()) {
return CompletableFuture.completedFuture(null);
}
CompletableFuture<Void> future = new CompletableFuture<>();
final int totalPeers = peers.size();
AtomicBoole... | CompletableFuture<Void> function(List<NodeId> peers) { if (peers.isEmpty()) { return CompletableFuture.completedFuture(null); } CompletableFuture<Void> future = new CompletableFuture<>(); final int totalPeers = peers.size(); AtomicBoolean successful = new AtomicBoolean(); AtomicInteger totalCount = new AtomicInteger();... | /**
* Requests all updates from each peer in the provided list of peers.
* <p>
* The returned future will be completed once at least one peer bootstraps this map or bootstrap requests to all
* peers fail.
*
* @param peers the list of peers from which to request updates
* @return a fut... | Requests all updates from each peer in the provided list of peers. The returned future will be completed once at least one peer bootstraps this map or bootstrap requests to all peers fail | requestBootstrapFromPeers | {
"repo_name": "LorenzReinhart/ONOSnew",
"path": "core/store/primitives/src/main/java/org/onosproject/store/primitives/impl/EventuallyConsistentMapImpl.java",
"license": "apache-2.0",
"size": 40611
} | [
"java.util.List",
"java.util.concurrent.CompletableFuture",
"java.util.concurrent.atomic.AtomicBoolean",
"java.util.concurrent.atomic.AtomicInteger",
"java.util.concurrent.atomic.AtomicReference",
"org.onosproject.cluster.NodeId"
] | import java.util.List; import java.util.concurrent.CompletableFuture; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference; import org.onosproject.cluster.NodeId; | import java.util.*; import java.util.concurrent.*; import java.util.concurrent.atomic.*; import org.onosproject.cluster.*; | [
"java.util",
"org.onosproject.cluster"
] | java.util; org.onosproject.cluster; | 2,369,133 |
private void setImageViewBackground(String url) {
if (url != null) {
Point displaySize = new Point();
getWindowManager().getDefaultDisplay().getSize(displaySize);
UIUtils.loadImageIntoImageview(hostManager, url, backgroundImage,
displaySize.x, display... | void function(String url) { if (url != null) { Point displaySize = new Point(); getWindowManager().getDefaultDisplay().getSize(displaySize); UIUtils.loadImageIntoImageview(hostManager, url, backgroundImage, displaySize.x, displaySize.y / 2); final int pixelsPerPage = displaySize.x / 4; | /**
* Sets or clear the image background
* @param url Image url
*/ | Sets or clear the image background | setImageViewBackground | {
"repo_name": "xbmc/Kore",
"path": "app/src/main/java/org/xbmc/kore/ui/sections/remote/RemoteActivity.java",
"license": "apache-2.0",
"size": 31562
} | [
"android.graphics.Point",
"org.xbmc.kore.utils.UIUtils"
] | import android.graphics.Point; import org.xbmc.kore.utils.UIUtils; | import android.graphics.*; import org.xbmc.kore.utils.*; | [
"android.graphics",
"org.xbmc.kore"
] | android.graphics; org.xbmc.kore; | 1,082,970 |
public static Collection<String> getStringCollection(String str){
List<String> values = new ArrayList<String>();
if (str == null)
return values;
StringTokenizer tokenizer = new StringTokenizer (str,",");
values = new ArrayList<String>();
while (tokenizer.hasMoreTokens()) {
values.add(t... | static Collection<String> function(String str){ List<String> values = new ArrayList<String>(); if (str == null) return values; StringTokenizer tokenizer = new StringTokenizer (str,","); values = new ArrayList<String>(); while (tokenizer.hasMoreTokens()) { values.add(tokenizer.nextToken()); } return values; } | /**
* Returns a collection of strings.
* @param str comma seperated string values
* @return an <code>ArrayList</code> of string values
*/ | Returns a collection of strings | getStringCollection | {
"repo_name": "ict-carch/hadoop-plus",
"path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/StringUtils.java",
"license": "apache-2.0",
"size": 29153
} | [
"java.util.ArrayList",
"java.util.Collection",
"java.util.List",
"java.util.StringTokenizer"
] | import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.StringTokenizer; | import java.util.*; | [
"java.util"
] | java.util; | 1,628,016 |
TfsBuildFacade getBuildOnTfs(final int tfsBuildId, final ActualBuild actualBuild, final TfsClient tfsClient); | TfsBuildFacade getBuildOnTfs(final int tfsBuildId, final ActualBuild actualBuild, final TfsClient tfsClient); | /**
* Get a TfsBuildFacade when a build has been queued already on TFS side
* @param tfsBuildId
* @param actualBuild
* @param tfsClient
*/ | Get a TfsBuildFacade when a build has been queued already on TFS side | getBuildOnTfs | {
"repo_name": "Microsoft/vsts-bamboo-build-integration-sample",
"path": "src/main/java/com/microsoft/teamfoundation/plugin/TfsBuildFacadeFactory.java",
"license": "mit",
"size": 2186
} | [
"com.microsoft.teamfoundation.plugin.impl.TfsClient"
] | import com.microsoft.teamfoundation.plugin.impl.TfsClient; | import com.microsoft.teamfoundation.plugin.impl.*; | [
"com.microsoft.teamfoundation"
] | com.microsoft.teamfoundation; | 128,115 |
public List<Entity> getEntities() {
return entities;
} | List<Entity> function() { return entities; } | /**
* Gets the list of the entities.
* @return
*/ | Gets the list of the entities | getEntities | {
"repo_name": "jtzeng/bfish",
"path": "src/net/skyrealm/bfish/world/World.java",
"license": "gpl-3.0",
"size": 12184
} | [
"java.util.List",
"net.skyrealm.bfish.model.Entity"
] | import java.util.List; import net.skyrealm.bfish.model.Entity; | import java.util.*; import net.skyrealm.bfish.model.*; | [
"java.util",
"net.skyrealm.bfish"
] | java.util; net.skyrealm.bfish; | 1,575,865 |
@ServiceMethod(returns = ReturnType.SINGLE)
public String startPacketCapture(
String resourceGroupName, String gatewayName, VpnGatewayPacketCaptureStartParameters parameters) {
return startPacketCaptureAsync(resourceGroupName, gatewayName, parameters).block();
} | @ServiceMethod(returns = ReturnType.SINGLE) String function( String resourceGroupName, String gatewayName, VpnGatewayPacketCaptureStartParameters parameters) { return startPacketCaptureAsync(resourceGroupName, gatewayName, parameters).block(); } | /**
* Starts packet capture on vpn gateway in the specified resource group.
*
* @param resourceGroupName The resource group name of the VpnGateway.
* @param gatewayName The name of the gateway.
* @param parameters Vpn gateway packet capture parameters supplied to start packet capture on vpn gat... | Starts packet capture on vpn gateway in the specified resource group | startPacketCapture | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnGatewaysClientImpl.java",
"license": "mit",
"size": 124002
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.resourcemanager.network.models.VpnGatewayPacketCaptureStartParameters"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.network.models.VpnGatewayPacketCaptureStartParameters; | import com.azure.core.annotation.*; import com.azure.resourcemanager.network.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 682,126 |
public void setPriceActual (BigDecimal PriceActual)
{
if (PriceActual == null)
throw new IllegalArgumentException ("PriceActual is mandatory");
set_ValueNoCheck("PriceActual", PriceActual);
} // setPriceActual
| void function (BigDecimal PriceActual) { if (PriceActual == null) throw new IllegalArgumentException (STR); set_ValueNoCheck(STR, PriceActual); } | /**
* Set Price Actual.
* (actual price is not updateable)
* @param PriceActual actual price
*/ | Set Price Actual. (actual price is not updateable) | setPriceActual | {
"repo_name": "arthurmelo88/palmetalADP",
"path": "adempiere_360/base/src/org/compiere/model/MInvoiceLine.java",
"license": "gpl-2.0",
"size": 38920
} | [
"java.math.BigDecimal"
] | import java.math.BigDecimal; | import java.math.*; | [
"java.math"
] | java.math; | 2,225,673 |
public final RegisterTask register(Policy policy, ClassLoader resourceLoader, String resourcePath, String serverPath, Language language)
throws AerospikeException {
if (policy == null) {
policy = writePolicyDefault;
}
byte[] bytes = Util.readResource(resourceLoader, resourcePath);
return RegisterComman... | final RegisterTask function(Policy policy, ClassLoader resourceLoader, String resourcePath, String serverPath, Language language) throws AerospikeException { if (policy == null) { policy = writePolicyDefault; } byte[] bytes = Util.readResource(resourceLoader, resourcePath); return RegisterCommand.register(cluster, poli... | /**
* Register package located in a resource containing user defined functions with server.
* This asynchronous server call will return before command is complete.
* The user can optionally wait for command completion by using the returned
* RegisterTask instance.
* <p>
* This method is only supported by Ae... | Register package located in a resource containing user defined functions with server. This asynchronous server call will return before command is complete. The user can optionally wait for command completion by using the returned RegisterTask instance. This method is only supported by Aerospike 3 servers | register | {
"repo_name": "wgpshashank/aerospike-client-java",
"path": "client/src/com/aerospike/client/AerospikeClient.java",
"license": "apache-2.0",
"size": 64575
} | [
"com.aerospike.client.command.RegisterCommand",
"com.aerospike.client.policy.Policy",
"com.aerospike.client.task.RegisterTask",
"com.aerospike.client.util.Util"
] | import com.aerospike.client.command.RegisterCommand; import com.aerospike.client.policy.Policy; import com.aerospike.client.task.RegisterTask; import com.aerospike.client.util.Util; | import com.aerospike.client.command.*; import com.aerospike.client.policy.*; import com.aerospike.client.task.*; import com.aerospike.client.util.*; | [
"com.aerospike.client"
] | com.aerospike.client; | 1,441,708 |
void releasePartitions(JobID jobId, Set<ResultPartitionID> partitionIds); | void releasePartitions(JobID jobId, Set<ResultPartitionID> partitionIds); | /**
* Batch release intermediate result partitions.
*
* @param jobId id of the job that the partitions belong to
* @param partitionIds partition ids to release
*/ | Batch release intermediate result partitions | releasePartitions | {
"repo_name": "rmetzger/flink",
"path": "flink-runtime/src/main/java/org/apache/flink/runtime/jobmanager/slots/TaskManagerGateway.java",
"license": "apache-2.0",
"size": 5657
} | [
"java.util.Set",
"org.apache.flink.api.common.JobID",
"org.apache.flink.runtime.io.network.partition.ResultPartitionID"
] | import java.util.Set; import org.apache.flink.api.common.JobID; import org.apache.flink.runtime.io.network.partition.ResultPartitionID; | import java.util.*; import org.apache.flink.api.common.*; import org.apache.flink.runtime.io.network.partition.*; | [
"java.util",
"org.apache.flink"
] | java.util; org.apache.flink; | 1,712,354 |
public void setSliceMetadata(IMetadata sliceMeta); | void function(IMetadata sliceMeta); | /**
* The metadata of the current slice, if any
* @return
*/ | The metadata of the current slice, if any | setSliceMetadata | {
"repo_name": "willrogers/dawnsci",
"path": "org.eclipse.dawnsci.slicing.api/src/org/eclipse/dawnsci/slicing/api/system/ISliceSystem.java",
"license": "epl-1.0",
"size": 8327
} | [
"org.eclipse.dawnsci.analysis.api.metadata.IMetadata"
] | import org.eclipse.dawnsci.analysis.api.metadata.IMetadata; | import org.eclipse.dawnsci.analysis.api.metadata.*; | [
"org.eclipse.dawnsci"
] | org.eclipse.dawnsci; | 2,336,746 |
EOperation getLocation__IsAppropriate_FWD__Match_Location_MeterAsset_MeterAssetMMXUPair(); | EOperation getLocation__IsAppropriate_FWD__Match_Location_MeterAsset_MeterAssetMMXUPair(); | /**
* Returns the meta object for the '{@link rgse.ttc17.emoflon.tgg.task2.Rules.Location#isAppropriate_FWD(org.moflon.tgg.runtime.Match, gluemodel.CIM.IEC61968.Common.Location, gluemodel.CIM.IEC61968.Metering.MeterAsset, gluemodel.MeterAssetMMXUPair) <em>Is Appropriate FWD</em>}' operation.
* <!-- begin-user-doc -... | Returns the meta object for the '<code>rgse.ttc17.emoflon.tgg.task2.Rules.Location#isAppropriate_FWD(org.moflon.tgg.runtime.Match, gluemodel.CIM.IEC61968.Common.Location, gluemodel.CIM.IEC61968.Metering.MeterAsset, gluemodel.MeterAssetMMXUPair) Is Appropriate FWD</code>' operation. | getLocation__IsAppropriate_FWD__Match_Location_MeterAsset_MeterAssetMMXUPair | {
"repo_name": "georghinkel/ttc2017smartGrids",
"path": "solutions/eMoflon/rgse.ttc17.emoflon.tgg.task2/gen/rgse/ttc17/emoflon/tgg/task2/Rules/RulesPackage.java",
"license": "mit",
"size": 437406
} | [
"org.eclipse.emf.ecore.EOperation"
] | import org.eclipse.emf.ecore.EOperation; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,727,674 |
public static CustomZipOutputStream newOutputStream(OutputStream out) {
return newOutputStream(out, HandleDuplicates.THROW_EXCEPTION);
} | static CustomZipOutputStream function(OutputStream out) { return newOutputStream(out, HandleDuplicates.THROW_EXCEPTION); } | /**
* Create a new {@link CustomZipOutputStream} that will by default act in the same way as {@link
* java.util.zip.ZipOutputStream}, notably by throwing an exception if duplicate entries are
* added.
*
* @param out The output stream to write to.
*/ | Create a new <code>CustomZipOutputStream</code> that will by default act in the same way as <code>java.util.zip.ZipOutputStream</code>, notably by throwing an exception if duplicate entries are added | newOutputStream | {
"repo_name": "ilya-klyuchnikov/buck",
"path": "src/com/facebook/buck/util/zip/ZipOutputStreams.java",
"license": "apache-2.0",
"size": 4838
} | [
"java.io.OutputStream"
] | import java.io.OutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 609,838 |
public SignOperation sign(PublishArtifact... artifacts) {
for (PublishArtifact artifact : artifacts) {
signatures.add(new Signature(artifact, this));
}
return this;
} | SignOperation function(PublishArtifact... artifacts) { for (PublishArtifact artifact : artifacts) { signatures.add(new Signature(artifact, this)); } return this; } | /**
* Registers signatures for the given artifacts.
*
* @return this
* @see Signature#Signature(File, SignatureSpec, Object...)
*/ | Registers signatures for the given artifacts | sign | {
"repo_name": "robinverduijn/gradle",
"path": "subprojects/signing/src/main/java/org/gradle/plugins/signing/SignOperation.java",
"license": "apache-2.0",
"size": 7371
} | [
"org.gradle.api.artifacts.PublishArtifact"
] | import org.gradle.api.artifacts.PublishArtifact; | import org.gradle.api.artifacts.*; | [
"org.gradle.api"
] | org.gradle.api; | 1,285,039 |
public void begin(String namespace, String nameX, Attributes attributes)
throws Exception {
for (int i = 0; i < attributes.getLength(); i++) {
String name = attributes.getLocalName(i);
if ("".equals(name)) {
name = attributes.getQName(i);
}... | void function(String namespace, String nameX, Attributes attributes) throws Exception { for (int i = 0; i < attributes.getLength(); i++) { String name = attributes.getLocalName(i); if (STR[SetAllPropertiesRule]{STR} Setting property 'STR' to 'STR' did not find a matching property."); } } } } | /**
* Handle the beginning of an XML element.
*
* @param attributes The attributes of this element
*
* @exception Exception if a processing error occurs
*/ | Handle the beginning of an XML element | begin | {
"repo_name": "yuyupapa/OpenSource",
"path": "apache-tomcat-6.0.48/java/org/apache/catalina/startup/SetAllPropertiesRule.java",
"license": "apache-2.0",
"size": 2906
} | [
"org.xml.sax.Attributes"
] | import org.xml.sax.Attributes; | import org.xml.sax.*; | [
"org.xml.sax"
] | org.xml.sax; | 2,297,370 |
Future<?> runServerTask( Runnable task );
| Future<?> runServerTask( Runnable task ); | /**
* Run tha main ServerSocket Task
*
* @param task
* @return
*/ | Run tha main ServerSocket Task | runServerTask | {
"repo_name": "dentmaged/xserver",
"path": "XServer-API/src/main/java/de/mickare/xserver/ServerThreadPoolExecutor.java",
"license": "mit",
"size": 485
} | [
"java.util.concurrent.Future"
] | import java.util.concurrent.Future; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 2,034,654 |
public void setServiceValue(String serviceValue) throws JNCException {
setServiceValue(new YangString(serviceValue));
} | void function(String serviceValue) throws JNCException { setServiceValue(new YangString(serviceValue)); } | /**
* Sets the value for child leaf "service",
* using a String value.
* @param serviceValue used during instantiation.
*/ | Sets the value for child leaf "service", using a String value | setServiceValue | {
"repo_name": "jnpr-shinma/yangfile",
"path": "hitel/src/hctaEpc/mmeSgsn/statistics/gprsSm/PrimaryActFail.java",
"license": "apache-2.0",
"size": 11425
} | [
"com.tailf.jnc.YangString"
] | import com.tailf.jnc.YangString; | import com.tailf.jnc.*; | [
"com.tailf.jnc"
] | com.tailf.jnc; | 2,141,155 |
protected void checkForTupleEquivalence(AdminClient admin,
int serverId,
String store,
List<ByteArray> keyList,
HashMap<String, String> base... | void function(AdminClient admin, int serverId, String store, List<ByteArray> keyList, HashMap<String, String> baselineTuples, HashMap<String, VectorClock> baselineVersions) { Iterator<QueryKeyResult> positiveTestResultsItr = admin.streamingOps.queryKeys(serverId, store, keyList.iterator()); while(positiveTestResultsItr... | /**
* REFACTOR: these should belong AdminClient so existence checks can be done
* easily across the board
*
* @param admin
* @param serverId
* @param store
* @param keyList
*/ | easily across the board | checkForTupleEquivalence | {
"repo_name": "FelixGV/voldemort",
"path": "test/unit/voldemort/client/rebalance/AbstractRebalanceTest.java",
"license": "apache-2.0",
"size": 18899
} | [
"java.util.HashMap",
"java.util.Iterator",
"java.util.List",
"org.junit.Assert"
] | import java.util.HashMap; import java.util.Iterator; import java.util.List; import org.junit.Assert; | import java.util.*; import org.junit.*; | [
"java.util",
"org.junit"
] | java.util; org.junit; | 591,496 |
@Override
public SQLWarning getWarnings() {
return null;
} | SQLWarning function() { return null; } | /**
* Returns null.
*
* @return null
*/ | Returns null | getWarnings | {
"repo_name": "ferquies/2dam",
"path": "AD/Tema 2/h2/src/main/org/h2/tools/SimpleResultSet.java",
"license": "gpl-3.0",
"size": 53505
} | [
"java.sql.SQLWarning"
] | import java.sql.SQLWarning; | import java.sql.*; | [
"java.sql"
] | java.sql; | 407,668 |
public Map<String,List<String>> getMrnaByGene(String arg1, List<String> geneIdList, RpcContext... jsonRpcContext) throws IOException, JsonClientException {
List<Object> args = new ArrayList<Object>();
args.add(arg1);
args.add(geneIdList);
TypeReference<List<Map<String,List<String>>>>... | Map<String,List<String>> function(String arg1, List<String> geneIdList, RpcContext... jsonRpcContext) throws IOException, JsonClientException { List<Object> args = new ArrayList<Object>(); args.add(arg1); args.add(geneIdList); TypeReference<List<Map<String,List<String>>>> retType = new TypeReference<List<Map<String,Lis... | /**
* <p>Original spec-file function name: get_mrna_by_gene</p>
* <pre>
* *
* * Retrieve the mRNA id for each Gene id in this GenomeAnnotation.
* *
* </pre>
* @param arg1 instance of original type "ObjectReference"
* @param geneIdList instance of list of String
* @re... | Original spec-file function name: get_mrna_by_gene <code> Retrieve the mRNA id for each Gene id in this GenomeAnnotation. </code> | getMrnaByGene | {
"repo_name": "scanon/data_api2",
"path": "lib/src/us/kbase/genomeannotaitonapi/GenomeAnnotaitonApiClient.java",
"license": "mit",
"size": 24864
} | [
"com.fasterxml.jackson.core.type.TypeReference",
"java.io.IOException",
"java.util.ArrayList",
"java.util.List",
"java.util.Map",
"us.kbase.common.service.JsonClientException",
"us.kbase.common.service.RpcContext"
] | import com.fasterxml.jackson.core.type.TypeReference; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map; import us.kbase.common.service.JsonClientException; import us.kbase.common.service.RpcContext; | import com.fasterxml.jackson.core.type.*; import java.io.*; import java.util.*; import us.kbase.common.service.*; | [
"com.fasterxml.jackson",
"java.io",
"java.util",
"us.kbase.common"
] | com.fasterxml.jackson; java.io; java.util; us.kbase.common; | 733,204 |
public SyncAgentState state() {
return this.state;
} | SyncAgentState function() { return this.state; } | /**
* Get state of the sync agent. Possible values include: 'Online', 'Offline', 'NeverConnected'.
*
* @return the state value
*/ | Get state of the sync agent. Possible values include: 'Online', 'Offline', 'NeverConnected' | state | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/sql/mgmt-v2015_05_01_preview/src/main/java/com/microsoft/azure/management/sql/v2015_05_01_preview/implementation/SyncAgentInner.java",
"license": "mit",
"size": 3670
} | [
"com.microsoft.azure.management.sql.v2015_05_01_preview.SyncAgentState"
] | import com.microsoft.azure.management.sql.v2015_05_01_preview.SyncAgentState; | import com.microsoft.azure.management.sql.v2015_05_01_preview.*; | [
"com.microsoft.azure"
] | com.microsoft.azure; | 2,134,840 |
public void smeltItem()
{
if (this.canSmelt())
{
ItemStack itemstack = EviscerateRecipes.grinding().getGrindingResult(this.furnaceItemStacks[0]);
if (this.furnaceItemStacks[2] == null)
{
this.furnaceItemStacks[2] = itemstack.copy();
... | void function() { if (this.canSmelt()) { ItemStack itemstack = EviscerateRecipes.grinding().getGrindingResult(this.furnaceItemStacks[0]); if (this.furnaceItemStacks[2] == null) { this.furnaceItemStacks[2] = itemstack.copy(); } else if (this.furnaceItemStacks[2].isItemEqual(itemstack)) { furnaceItemStacks[2].stackSize +... | /**
* Turn one item from the furnace source stack into the appropriate smelted item in the furnace result stack
*/ | Turn one item from the furnace source stack into the appropriate smelted item in the furnace result stack | smeltItem | {
"repo_name": "Virtuoel/Unreal-1.5.2",
"path": "src/minecraft/virtuoel/unreal/tileentity/TileEntityEviscerator.java",
"license": "lgpl-3.0",
"size": 16283
} | [
"net.minecraft.item.ItemStack"
] | import net.minecraft.item.ItemStack; | import net.minecraft.item.*; | [
"net.minecraft.item"
] | net.minecraft.item; | 19,266 |
public NumberFormat getDurationDecimalFormat()
{
return (m_durationDecimalFormat);
} | NumberFormat function() { return (m_durationDecimalFormat); } | /**
* Retrieve the duration decimal format.
*
* @return duration decimal format
*/ | Retrieve the duration decimal format | getDurationDecimalFormat | {
"repo_name": "tmyroadctfig/mpxj",
"path": "net/sf/mpxj/utility/MPXJFormats.java",
"license": "lgpl-2.1",
"size": 18743
} | [
"java.text.NumberFormat"
] | import java.text.NumberFormat; | import java.text.*; | [
"java.text"
] | java.text; | 1,625,010 |
@Override
public Collection<?> getVisibleItemIds() {
final LinkedList<Object> visible = new LinkedList<Object>();
// Iterates trough hierarchical tree using a stack of iterators
final Stack<Iterator<?>> iteratorStack = new Stack<Iterator<?>>();
final Collection<?> ids = rootIte... | Collection<?> function() { final LinkedList<Object> visible = new LinkedList<Object>(); final Stack<Iterator<?>> iteratorStack = new Stack<Iterator<?>>(); final Collection<?> ids = rootItemIds(); if (ids != null) { iteratorStack.push(ids.iterator()); } while (!iteratorStack.isEmpty()) { final Iterator<?> i = iteratorSt... | /**
* Gets the visible item ids.
*
* @see com.vaadin.ui.Select#getVisibleItemIds()
*/ | Gets the visible item ids | getVisibleItemIds | {
"repo_name": "Flamenco/vaadin",
"path": "server/src/com/vaadin/ui/Tree.java",
"license": "apache-2.0",
"size": 59241
} | [
"java.util.Collection",
"java.util.Iterator",
"java.util.LinkedList",
"java.util.Stack"
] | import java.util.Collection; import java.util.Iterator; import java.util.LinkedList; import java.util.Stack; | import java.util.*; | [
"java.util"
] | java.util; | 2,365,981 |
@Override
public int write(ByteBuffer buff) throws IOException {
TLSStatus stat = tlsWrapper.getStatus();
// The loop below falls into infinite loop for some reason.
// Let's try to detect it here and recover.
// Looks like for some reason tlsWrapper.getStatus() sometimes starts to
// return
// NEED_RE... | int function(ByteBuffer buff) throws IOException { TLSStatus stat = tlsWrapper.getStatus(); int loop_cnt = 0; int max_loop_runs = 1000; while (((stat == TLSStatus.NEED_WRITE) (stat == TLSStatus.NEED_READ)) && (++loop_cnt < max_loop_runs)) { switch (stat) { case NEED_WRITE: writeBuff(ByteBuffer.allocate(0)); break; case... | /**
* Method description
*
*
* @param buff
*
* @return
*
* @throws IOException
*/ | Method description | write | {
"repo_name": "zooldk/tigase-server",
"path": "src/main/java/tigase/io/TLSIO.java",
"license": "agpl-3.0",
"size": 14368
} | [
"java.io.EOFException",
"java.io.IOException",
"java.nio.ByteBuffer",
"java.util.logging.Level"
] | import java.io.EOFException; import java.io.IOException; import java.nio.ByteBuffer; import java.util.logging.Level; | import java.io.*; import java.nio.*; import java.util.logging.*; | [
"java.io",
"java.nio",
"java.util"
] | java.io; java.nio; java.util; | 1,495,464 |
static Optional<IpsecPeerConfig> toIpsecPeerConfig(
Tunnel tunnel,
String tunnelIfaceName,
CiscoConfiguration oldConfig,
Configuration newConfig,
Warnings w) {
Ip localAddress = tunnel.getSourceAddress();
if (localAddress == null || !localAddress.valid()) {
w.redFlag(
... | static Optional<IpsecPeerConfig> toIpsecPeerConfig( Tunnel tunnel, String tunnelIfaceName, CiscoConfiguration oldConfig, Configuration newConfig, Warnings w) { Ip localAddress = tunnel.getSourceAddress(); if (localAddress == null !localAddress.valid()) { w.redFlag( String.format( STR, tunnelIfaceName)); return Optional... | /**
* Converts a {@link Tunnel} to an {@link IpsecPeerConfig}, or empty optional if it can't be
* converted
*/ | Converts a <code>Tunnel</code> to an <code>IpsecPeerConfig</code>, or empty optional if it can't be converted | toIpsecPeerConfig | {
"repo_name": "intentionet/batfish",
"path": "projects/batfish/src/main/java/org/batfish/representation/cisco/CiscoConversions.java",
"license": "apache-2.0",
"size": 94691
} | [
"java.util.Optional",
"org.batfish.common.Warnings",
"org.batfish.datamodel.Configuration",
"org.batfish.datamodel.Ip",
"org.batfish.datamodel.IpsecPeerConfig",
"org.batfish.datamodel.IpsecStaticPeerConfig"
] | import java.util.Optional; import org.batfish.common.Warnings; import org.batfish.datamodel.Configuration; import org.batfish.datamodel.Ip; import org.batfish.datamodel.IpsecPeerConfig; import org.batfish.datamodel.IpsecStaticPeerConfig; | import java.util.*; import org.batfish.common.*; import org.batfish.datamodel.*; | [
"java.util",
"org.batfish.common",
"org.batfish.datamodel"
] | java.util; org.batfish.common; org.batfish.datamodel; | 1,423,626 |
@Override
public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException {
super.looseMarshal(wireFormat, o, dataOut);
} | void function(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { super.looseMarshal(wireFormat, o, dataOut); } | /**
* Write the booleans that this object uses to a BooleanStream
*/ | Write the booleans that this object uses to a BooleanStream | looseMarshal | {
"repo_name": "apache/activemq-openwire",
"path": "openwire-legacy/src/main/java/org/apache/activemq/openwire/codec/v7/KeepAliveInfoMarshaller.java",
"license": "apache-2.0",
"size": 3538
} | [
"java.io.DataOutput",
"java.io.IOException",
"org.apache.activemq.openwire.codec.OpenWireFormat"
] | import java.io.DataOutput; import java.io.IOException; import org.apache.activemq.openwire.codec.OpenWireFormat; | import java.io.*; import org.apache.activemq.openwire.codec.*; | [
"java.io",
"org.apache.activemq"
] | java.io; org.apache.activemq; | 1,515,432 |
public Weight getMinimum() {
if (left != null) {
return this.left.getMinimum();
} else {
return this.root.getContent();
}
} | Weight function() { if (left != null) { return this.left.getMinimum(); } else { return this.root.getContent(); } } | /**
* gets the Weight-object which is concidered a minimum concerning the
* second-last dimension
*
* @return the weight-object which is concidered a minimum concerning the
* second-last dimension
*/ | gets the Weight-object which is concidered a minimum concerning the second-last dimension | getMinimum | {
"repo_name": "saep/MONET-bundles",
"path": "ssspLabelcorrecting/src/com/github/monet/algorithms/sssp/AVLTree.java",
"license": "agpl-3.0",
"size": 8992
} | [
"com.github.monet.graph.weighted.Weight"
] | import com.github.monet.graph.weighted.Weight; | import com.github.monet.graph.weighted.*; | [
"com.github.monet"
] | com.github.monet; | 876,798 |
public RowMetaInterface createRowMetaInterfaceResult1() {
RowMetaInterface rm = new RowMeta();
ValueMetaInterface[] valuesMeta =
{ new ValueMeta( "string", ValueMeta.TYPE_STRING ), new ValueMeta( "bool", ValueMeta.TYPE_BOOLEAN ) };
for ( int i = 0; i < valuesMeta.length; i++ ) {
rm.addValueMet... | RowMetaInterface function() { RowMetaInterface rm = new RowMeta(); ValueMetaInterface[] valuesMeta = { new ValueMeta( STR, ValueMeta.TYPE_STRING ), new ValueMeta( "bool", ValueMeta.TYPE_BOOLEAN ) }; for ( int i = 0; i < valuesMeta.length; i++ ) { rm.addValueMeta( valuesMeta[i] ); } return rm; } | /**
* Create the meta data for the results (ltrim/rtrim/trim).
*/ | Create the meta data for the results (ltrim/rtrim/trim) | createRowMetaInterfaceResult1 | {
"repo_name": "YuryBY/pentaho-kettle",
"path": "test/org/pentaho/di/trans/steps/scriptvalues_mod/JavaScriptSpecialTest.java",
"license": "apache-2.0",
"size": 24721
} | [
"org.pentaho.di.core.row.RowMeta",
"org.pentaho.di.core.row.RowMetaInterface",
"org.pentaho.di.core.row.ValueMeta",
"org.pentaho.di.core.row.ValueMetaInterface"
] | import org.pentaho.di.core.row.RowMeta; import org.pentaho.di.core.row.RowMetaInterface; import org.pentaho.di.core.row.ValueMeta; import org.pentaho.di.core.row.ValueMetaInterface; | import org.pentaho.di.core.row.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 2,071,952 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.