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 static SingleDTGraph statements2Graph(Set<Statement> stmts, int literalOption, List<Resource> instances, boolean simplifyInstanceNodes) {
List<DTNode<String,String>> instanceNodes = new ArrayList<DTNode<String,String>>();
DTGraph<String,String> graph = new LightDTGraph<String,String>();
Map<String, ... | static SingleDTGraph function(Set<Statement> stmts, int literalOption, List<Resource> instances, boolean simplifyInstanceNodes) { List<DTNode<String,String>> instanceNodes = new ArrayList<DTNode<String,String>>(); DTGraph<String,String> graph = new LightDTGraph<String,String>(); Map<String, DTNode<String,String>> nodeM... | /**
* Convert a set of RDF statements into a SingleDTGraph dataset object
*
* @param stmts
* @param literalOption
* @param instances
* @return SingleDTGraph
*/ | Convert a set of RDF statements into a SingleDTGraph dataset object | statements2Graph | {
"repo_name": "Data2Semantics/mustard",
"path": "mustard-kernels/src/main/java/org/data2semantics/mustard/rdf/RDFUtils.java",
"license": "mit",
"size": 17380
} | [
"java.util.ArrayList",
"java.util.HashMap",
"java.util.List",
"java.util.Map",
"java.util.Set",
"org.data2semantics.mustard.kernels.KernelUtils",
"org.data2semantics.mustard.kernels.data.SingleDTGraph",
"org.nodes.DTGraph",
"org.nodes.DTNode",
"org.nodes.LightDTGraph",
"org.openrdf.model.Literal... | import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.data2semantics.mustard.kernels.KernelUtils; import org.data2semantics.mustard.kernels.data.SingleDTGraph; import org.nodes.DTGraph; import org.nodes.DTNode; import org.nodes.LightDTGraph; ... | import java.util.*; import org.data2semantics.mustard.kernels.*; import org.data2semantics.mustard.kernels.data.*; import org.nodes.*; import org.openrdf.model.*; | [
"java.util",
"org.data2semantics.mustard",
"org.nodes",
"org.openrdf.model"
] | java.util; org.data2semantics.mustard; org.nodes; org.openrdf.model; | 1,008,500 |
public void testMultipleFilesSmallerThanOneBlock() throws Exception {
Configuration conf = new Configuration();
final int BLOCK_SIZE = 6 * 1024;
conf.set("dfs.block.size", Integer.toString(BLOCK_SIZE));
conf.setBoolean(DFSConfigKeys.DFS_WEBHDFS_ENABLED_KEY, true);
MiniDFSCluster cluster = new Mini... | void function() throws Exception { Configuration conf = new Configuration(); final int BLOCK_SIZE = 6 * 1024; conf.set(STR, Integer.toString(BLOCK_SIZE)); conf.setBoolean(DFSConfigKeys.DFS_WEBHDFS_ENABLED_KEY, true); MiniDFSCluster cluster = new MiniDFSCluster(conf, 3, true, null); cluster.waitActive(); FileSystem fs =... | /**
* Like the previous test but create many files. This covers bugs
* where the quota adjustment is incorrect but it takes many files
* to accrue a big enough accounting error to violate the quota.
*/ | Like the previous test but create many files. This covers bugs where the quota adjustment is incorrect but it takes many files to accrue a big enough accounting error to violate the quota | testMultipleFilesSmallerThanOneBlock | {
"repo_name": "baggioss/hadoop-cdh3u5",
"path": "src/test/org/apache/hadoop/hdfs/TestQuota.java",
"license": "apache-2.0",
"size": 32848
} | [
"org.apache.hadoop.conf.Configuration",
"org.apache.hadoop.fs.FileSystem",
"org.apache.hadoop.hdfs.tools.DFSAdmin",
"org.apache.hadoop.hdfs.web.WebHdfsFileSystem"
] | import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.hdfs.tools.DFSAdmin; import org.apache.hadoop.hdfs.web.WebHdfsFileSystem; | import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.tools.*; import org.apache.hadoop.hdfs.web.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,102,229 |
public Builder shiftAmount(double shiftAmount) {
JodaBeanUtils.notNull(shiftAmount, "shiftAmount");
this._shiftAmount = shiftAmount;
return this;
} | Builder function(double shiftAmount) { JodaBeanUtils.notNull(shiftAmount, STR); this._shiftAmount = shiftAmount; return this; } | /**
* Sets the {@code shiftAmount} property in the builder.
* @param shiftAmount the new value, not null
* @return this, for chaining, not null
*/ | Sets the shiftAmount property in the builder | shiftAmount | {
"repo_name": "DevStreet/FinanceAnalytics",
"path": "sesame/sesame-function/src/main/java/com/opengamma/sesame/marketdata/scenarios/CreditCurveParallelShift.java",
"license": "apache-2.0",
"size": 14466
} | [
"org.joda.beans.JodaBeanUtils"
] | import org.joda.beans.JodaBeanUtils; | import org.joda.beans.*; | [
"org.joda.beans"
] | org.joda.beans; | 2,890,879 |
List<String> getDefaultChannels(); | List<String> getDefaultChannels(); | /**
* Returns the list of channel ids of the <code>Service</code>.
*
* @return The list of channel ids of the <code>Service</code>.
*/ | Returns the list of channel ids of the <code>Service</code> | getDefaultChannels | {
"repo_name": "azureplus/flex-blazeds",
"path": "modules/core/src/flex/messaging/services/Service.java",
"license": "apache-2.0",
"size": 7151
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 167,276 |
@Override
public void setUp() {
bean = new TestBean();
beanPackageSubclass = new TestBeanPackageSubclass();
beanPrivate = PrivateBeanFactory.create();
beanPrivateSubclass = PrivateBeanFactory.createSubclass();
beanPublicSubclass = new TestBeanPublicSubclass();
propertyUtils.clearDescriptor... | void function() { bean = new TestBean(); beanPackageSubclass = new TestBeanPackageSubclass(); beanPrivate = PrivateBeanFactory.create(); beanPrivateSubclass = PrivateBeanFactory.createSubclass(); beanPublicSubclass = new TestBeanPublicSubclass(); propertyUtils.clearDescriptors(); } | /**
* Set up instance variables required by this test case.
*/ | Set up instance variables required by this test case | setUp | {
"repo_name": "takacsot/q-beanutils",
"path": "src/test/java/eu/qualityontime/commons/QPropertyUtilsBeanTest.java",
"license": "apache-2.0",
"size": 141088
} | [
"eu.qualityontime.commons.priv.PrivateBeanFactory"
] | import eu.qualityontime.commons.priv.PrivateBeanFactory; | import eu.qualityontime.commons.priv.*; | [
"eu.qualityontime.commons"
] | eu.qualityontime.commons; | 1,590,977 |
public static GroupMatcher<TriggerKey> triggerGroupContains(String compareTo) {
return GroupMatcher.groupContains(compareTo);
} | static GroupMatcher<TriggerKey> function(String compareTo) { return GroupMatcher.groupContains(compareTo); } | /**
* Create a GroupMatcher that matches trigger groups containing the given string.
*/ | Create a GroupMatcher that matches trigger groups containing the given string | triggerGroupContains | {
"repo_name": "suthat/signal",
"path": "vendor/quartz-2.2.0/src/org/quartz/impl/matchers/GroupMatcher.java",
"license": "apache-2.0",
"size": 4919
} | [
"org.quartz.TriggerKey"
] | import org.quartz.TriggerKey; | import org.quartz.*; | [
"org.quartz"
] | org.quartz; | 1,169,161 |
@Test
public void testExtractBoxedTextsTestWPhromma() throws IOException {
try ( InputStream resource = getClass().getResourceAsStream("testWPhromma.pdf");
PDDocument document = Loader.loadPDF(resource) ) {
for (PDPage page : document.getDocumentCatalog().getPages()) {
... | void function() throws IOException { try ( InputStream resource = getClass().getResourceAsStream(STR); PDDocument document = Loader.loadPDF(resource) ) { for (PDPage page : document.getDocumentCatalog().getPages()) { PdfBoxFinder boxFinder = new PdfBoxFinder(page); boxFinder.processPage(page); PDFTextStripperByArea str... | /**
* <a href="https://stackoverflow.com/questions/54956720/how-to-replace-a-space-with-a-word-while-extract-the-data-from-pdf-using-pdfbox">
* How to replace a space with a word while extract the data from PDF using PDFBox
* </a>
* <br/>
* <a href="https://drive.google.com/open?id=10ZkdPlGWzMJ... | How to replace a space with a word while extract the data from PDF using PDFBox test.pdf as "testWPhromma.pdf" The <code>PdfBoxFinder</code> can be used out of the box here. | testExtractBoxedTextsTestWPhromma | {
"repo_name": "mkl-public/testarea-pdfbox2",
"path": "src/test/java/mkl/testarea/pdfbox2/extract/ExtractBoxedText.java",
"license": "apache-2.0",
"size": 6986
} | [
"java.awt.geom.Rectangle2D",
"java.io.IOException",
"java.io.InputStream",
"java.util.List",
"java.util.Map",
"org.apache.pdfbox.Loader",
"org.apache.pdfbox.pdmodel.PDDocument",
"org.apache.pdfbox.pdmodel.PDPage",
"org.apache.pdfbox.text.PDFTextStripperByArea"
] | import java.awt.geom.Rectangle2D; import java.io.IOException; import java.io.InputStream; import java.util.List; import java.util.Map; import org.apache.pdfbox.Loader; import org.apache.pdfbox.pdmodel.PDDocument; import org.apache.pdfbox.pdmodel.PDPage; import org.apache.pdfbox.text.PDFTextStripperByArea; | import java.awt.geom.*; import java.io.*; import java.util.*; import org.apache.pdfbox.*; import org.apache.pdfbox.pdmodel.*; import org.apache.pdfbox.text.*; | [
"java.awt",
"java.io",
"java.util",
"org.apache.pdfbox"
] | java.awt; java.io; java.util; org.apache.pdfbox; | 2,741,635 |
public static Long getLongProperty(Dictionary<?, ?> properties,
String propertyName) {
Long value;
try {
String s = get(properties, propertyName);
value = Strings.isNullOrEmpty(s) ? null : Long.valueOf(s);
} catch (NumberFo... | static Long function(Dictionary<?, ?> properties, String propertyName) { Long value; try { String s = get(properties, propertyName); value = Strings.isNullOrEmpty(s) ? null : Long.valueOf(s); } catch (NumberFormatException ClassCastException e) { value = null; } return value; } | /**
* Get Long property from the propertyName
* Return null if propertyName is not found.
*
* @param properties properties to be looked up
* @param propertyName the name of the property to look up
* @return value when the propertyName is defined or return null
*/ | Get Long property from the propertyName Return null if propertyName is not found | getLongProperty | {
"repo_name": "LorenzReinhart/ONOSnew",
"path": "utils/misc/src/main/java/org/onlab/util/Tools.java",
"license": "apache-2.0",
"size": 30536
} | [
"com.google.common.base.Strings",
"java.util.Dictionary"
] | import com.google.common.base.Strings; import java.util.Dictionary; | import com.google.common.base.*; import java.util.*; | [
"com.google.common",
"java.util"
] | com.google.common; java.util; | 2,741,299 |
ArrayList<Player> getSurvivingPlayers(); | ArrayList<Player> getSurvivingPlayers(); | /**
* Returns the surviving players participating in the game without the neutral player as a copied
* mutable list.
*
* @return the surviving players participating in the game without the neutral player as a copied
* mutable list
*/ | Returns the surviving players participating in the game without the neutral player as a copied mutable list | getSurvivingPlayers | {
"repo_name": "AI-comp/JavaChallenge2012",
"path": "src/main/java/net/javachallenge/api/Game.java",
"license": "apache-2.0",
"size": 5475
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 559,746 |
public void close() throws IOException {
rr.close();
} | void function() throws IOException { rr.close(); } | /**
* Forward close request to proxied RR.
*/ | Forward close request to proxied RR | close | {
"repo_name": "dongpf/hadoop-0.19.1",
"path": "src/mapred/org/apache/hadoop/mapred/join/WrappedRecordReader.java",
"license": "apache-2.0",
"size": 6039
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 824,592 |
List<HBaseProtos.SnapshotDescription> listSnapshots(Pattern pattern) throws IOException; | List<HBaseProtos.SnapshotDescription> listSnapshots(Pattern pattern) throws IOException; | /**
* List all the completed snapshots matching the given pattern.
*
* @param pattern The compiled regular expression to match against
* @return - returns a List of SnapshotDescription
* @throws IOException if a remote or network exception occurs
*/ | List all the completed snapshots matching the given pattern | listSnapshots | {
"repo_name": "SeekerResource/hbase",
"path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java",
"license": "apache-2.0",
"size": 60792
} | [
"java.io.IOException",
"java.util.List",
"java.util.regex.Pattern",
"org.apache.hadoop.hbase.protobuf.generated.HBaseProtos"
] | import java.io.IOException; import java.util.List; import java.util.regex.Pattern; import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos; | import java.io.*; import java.util.*; import java.util.regex.*; import org.apache.hadoop.hbase.protobuf.generated.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 1,881,056 |
protected Map getProperties() {
return this.properties;
} | Map function() { return this.properties; } | /**
* Returns the additional properties used to create this
* <code>RuleSession</code>.
*
* @return the additional properties used to create this
* <code>RuleSession</code>.
*/ | Returns the additional properties used to create this <code>RuleSession</code> | getProperties | {
"repo_name": "rokn/Count_Words_2015",
"path": "testing/drools-master/drools-jsr94/src/main/java/org/drools/jsr94/rules/AbstractRuleSessionImpl.java",
"license": "mit",
"size": 5881
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,027,713 |
public TriggerListener getInternalTriggerListener(String name) {
synchronized (internalTriggerListeners) {
return internalTriggerListeners.get(name);
}
} | TriggerListener function(String name) { synchronized (internalTriggerListeners) { return internalTriggerListeners.get(name); } } | /**
* <p>
* Get the <i>internal</i> <code>{@link TriggerListener}</code> that
* has the given name.
* </p>
*/ | Get the internal <code><code>TriggerListener</code></code> that has the given name. | getInternalTriggerListener | {
"repo_name": "dumptruckman/Pail",
"path": "lib/quartz-2.0.1/quartz/src/main/java/org/quartz/core/QuartzScheduler.java",
"license": "gpl-2.0",
"size": 77924
} | [
"org.quartz.TriggerListener"
] | import org.quartz.TriggerListener; | import org.quartz.*; | [
"org.quartz"
] | org.quartz; | 639,545 |
private VlanId egressVlan() {
McastConfig mcastConfig =
srManager.cfgService.getConfig(coreAppId, McastConfig.class);
return (mcastConfig != null) ? mcastConfig.egressVlan() : VlanId.NONE;
} | VlanId function() { McastConfig mcastConfig = srManager.cfgService.getConfig(coreAppId, McastConfig.class); return (mcastConfig != null) ? mcastConfig.egressVlan() : VlanId.NONE; } | /**
* Gets egress VLAN from McastConfig.
*
* @return egress VLAN or VlanId.NONE if not configured
*/ | Gets egress VLAN from McastConfig | egressVlan | {
"repo_name": "Shashikanth-Huawei/bmp",
"path": "apps/segmentrouting/src/main/java/org/onosproject/segmentrouting/McastHandler.java",
"license": "apache-2.0",
"size": 35116
} | [
"org.onlab.packet.VlanId",
"org.onosproject.incubator.net.config.basics.McastConfig"
] | import org.onlab.packet.VlanId; import org.onosproject.incubator.net.config.basics.McastConfig; | import org.onlab.packet.*; import org.onosproject.incubator.net.config.basics.*; | [
"org.onlab.packet",
"org.onosproject.incubator"
] | org.onlab.packet; org.onosproject.incubator; | 1,474,250 |
private EntryPoint [] pop_piece()
{
if (list_anchor == null)
{
if (this.trace_piece_count != 0)
{
FRLogger.warn("ShapeTraceEntries: trace_piece_count is inconsistent");
}
return null;
}
EntryPoint first = list_anchor... | EntryPoint [] function() { if (list_anchor == null) { if (this.trace_piece_count != 0) { FRLogger.warn(STR); } return null; } EntryPoint first = list_anchor; EntryPoint prev_first = null; while (first != null) { if (first.stack_level == this.max_stack_level) { break; } prev_first = first; first = first.next; } if (firs... | /**
* Pops the next piece with minimal level from the imtersection list
* Returns null, if the stack is empty.
* The returned array has 2 elements. The first is the first entry point,
* and the second is the last entry point of the minimal level.
*/ | Pops the next piece with minimal level from the imtersection list Returns null, if the stack is empty. The returned array has 2 elements. The first is the first entry point, and the second is the last entry point of the minimal level | pop_piece | {
"repo_name": "freerouting/freerouting",
"path": "src/main/java/app/freerouting/board/ShapeTraceEntries.java",
"license": "gpl-3.0",
"size": 34246
} | [
"app.freerouting.logger.FRLogger"
] | import app.freerouting.logger.FRLogger; | import app.freerouting.logger.*; | [
"app.freerouting.logger"
] | app.freerouting.logger; | 1,037,147 |
@DeleteProvider(type=AsyncProcessCommandArgSqlProvider.class, method="deleteByExample")
int deleteByExample(AsyncProcessCommandArgCriteria example); | @DeleteProvider(type=AsyncProcessCommandArgSqlProvider.class, method=STR) int deleteByExample(AsyncProcessCommandArgCriteria example); | /**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table ASYNC_PROCESS_COMMAND_ARG
*
* @mbggenerated
*/ | This method was generated by MyBatis Generator. This method corresponds to the database table ASYNC_PROCESS_COMMAND_ARG | deleteByExample | {
"repo_name": "agwlvssainokuni/springapp",
"path": "common/src/generated/java/cherry/common/db/gen/mapper/AsyncProcessCommandArgMapper.java",
"license": "apache-2.0",
"size": 7881
} | [
"org.apache.ibatis.annotations.DeleteProvider"
] | import org.apache.ibatis.annotations.DeleteProvider; | import org.apache.ibatis.annotations.*; | [
"org.apache.ibatis"
] | org.apache.ibatis; | 1,981,040 |
public PageImpl<T> setItems(List<T> items) {
this.items = items;
return this;
} | PageImpl<T> function(List<T> items) { this.items = items; return this; } | /**
* Sets the list of items.
*
* @param items the list of items in {@link List}.
* @return this Page object itself.
*/ | Sets the list of items | setItems | {
"repo_name": "hovsepm/azure-sdk-for-java",
"path": "storage/resource-manager/v2018_02_01/src/main/java/com/microsoft/azure/management/storage/v2018_02_01/implementation/PageImpl.java",
"license": "mit",
"size": 1749
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 705,225 |
public InputStream getResourceAsStream(AbstractClassPathLocation location, String name) {
// In case no location is supplied ...
if (location == null) { return getClass().getClassLoader().getResourceAsStream(name); }
try {
final ClassLoader classLoader = this.classWorld.getRealm... | InputStream function(AbstractClassPathLocation location, String name) { if (location == null) { return getClass().getClassLoader().getResourceAsStream(name); } try { final ClassLoader classLoader = this.classWorld.getRealm(location.getRealm()).getClassLoader(); return classLoader.getResourceAsStream(name); } catch (NoS... | /**
* Returns a resource as an input stream for a given location.
*
* @param location The location to use.
* @param name The requested resource.
* @return The input stream for the requested resource or <code>null</code> if none
* was found.
*/ | Returns a resource as an input stream for a given location | getResourceAsStream | {
"repo_name": "ubicity-devs/ubicity-jspf",
"path": "src/main/java/net/xeoh/plugins/base/impl/classpath/ClassPathManager.java",
"license": "agpl-3.0",
"size": 13630
} | [
"java.io.InputStream",
"net.xeoh.plugins.base.impl.classpath.locator.AbstractClassPathLocation",
"org.codehaus.classworlds.NoSuchRealmException"
] | import java.io.InputStream; import net.xeoh.plugins.base.impl.classpath.locator.AbstractClassPathLocation; import org.codehaus.classworlds.NoSuchRealmException; | import java.io.*; import net.xeoh.plugins.base.impl.classpath.locator.*; import org.codehaus.classworlds.*; | [
"java.io",
"net.xeoh.plugins",
"org.codehaus.classworlds"
] | java.io; net.xeoh.plugins; org.codehaus.classworlds; | 2,783,128 |
return transition(NoTransition.getFactory());
} | return transition(NoTransition.getFactory()); } | /**
* Removes any existing animation put on the builder. Will be overridden by subsequent calls that
* put an animation.
*
* @return This request builder.
*/ | Removes any existing animation put on the builder. Will be overridden by subsequent calls that put an animation | dontTransition | {
"repo_name": "weiwenqiang/GitHub",
"path": "SelectWidget/glide-master/library/src/main/java/com/bumptech/glide/TransitionOptions.java",
"license": "apache-2.0",
"size": 2923
} | [
"com.bumptech.glide.request.transition.NoTransition"
] | import com.bumptech.glide.request.transition.NoTransition; | import com.bumptech.glide.request.transition.*; | [
"com.bumptech.glide"
] | com.bumptech.glide; | 1,935,327 |
@Override
public Date getDate() {
return date;
} | Date function() { return date; } | /**
* return the Date of this SocialInfo
* @return
*/ | return the Date of this SocialInfo | getDate | {
"repo_name": "stephaneperry/Silverpeas-Core",
"path": "lib-core/src/main/java/com/silverpeas/socialNetwork/status/SocialInformationStatus.java",
"license": "agpl-3.0",
"size": 5445
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 1,864,826 |
static boolean isCompressionEmulationEnabled(Configuration conf) {
return conf.getBoolean(COMPRESSION_EMULATION_ENABLE, true);
} | static boolean isCompressionEmulationEnabled(Configuration conf) { return conf.getBoolean(COMPRESSION_EMULATION_ENABLE, true); } | /**
* Checks if compression emulation is enabled or not. Default is {@code true}.
*/ | Checks if compression emulation is enabled or not. Default is true | isCompressionEmulationEnabled | {
"repo_name": "samuelan/hadoop",
"path": "hadoop-tools/hadoop-gridmix/src/main/java/org/apache/hadoop/mapred/gridmix/CompressionEmulationUtil.java",
"license": "apache-2.0",
"size": 22690
} | [
"org.apache.hadoop.conf.Configuration"
] | import org.apache.hadoop.conf.Configuration; | import org.apache.hadoop.conf.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 871,975 |
public void testDescendingTailMapContents() {
NavigableMap map = dmap5();
SortedMap sm = map.tailMap(m2);
assertFalse(sm.containsKey(m1));
assertTrue(sm.containsKey(m2));
assertTrue(sm.containsKey(m3));
assertTrue(sm.containsKey(m4));
assertTrue(sm.containsKey... | void function() { NavigableMap map = dmap5(); SortedMap sm = map.tailMap(m2); assertFalse(sm.containsKey(m1)); assertTrue(sm.containsKey(m2)); assertTrue(sm.containsKey(m3)); assertTrue(sm.containsKey(m4)); assertTrue(sm.containsKey(m5)); Iterator i = sm.keySet().iterator(); Object k; k = (Integer)(i.next()); assertEqu... | /**
* headMap returns map with keys in requested range
*/ | headMap returns map with keys in requested range | testDescendingTailMapContents | {
"repo_name": "life-beam/j2objc",
"path": "jre_emul/android/platform/libcore/jsr166-tests/src/test/java/jsr166/TreeSubMapTest.java",
"license": "apache-2.0",
"size": 32611
} | [
"java.util.Iterator",
"java.util.Map",
"java.util.NavigableMap",
"java.util.SortedMap"
] | import java.util.Iterator; import java.util.Map; import java.util.NavigableMap; import java.util.SortedMap; | import java.util.*; | [
"java.util"
] | java.util; | 1,534,442 |
final CubeExpandTemplate expandTemplate = DataManager.CUBEEXPANDER_DATA.getCubeExpandListTemplate(npc.getNpcId());
if (expandTemplate == null) {
log.error("Cube Expand Template could not be found for Npc ID: " + npc.getObjectId());
return;
}
if (npcCanExpandLevel... | final CubeExpandTemplate expandTemplate = DataManager.CUBEEXPANDER_DATA.getCubeExpandListTemplate(npc.getNpcId()); if (expandTemplate == null) { log.error(STR + npc.getObjectId()); return; } if (npcCanExpandLevel(expandTemplate, player.getNpcExpands() + 1) && canExpand(player)) { if (player.getNpcExpands() >= CustomCon... | /**
* Shows Question window and expands on positive response
*
* @param player
* @param npc
*/ | Shows Question window and expands on positive response | expandCube | {
"repo_name": "GiGatR00n/Aion-Core-v4.7.5",
"path": "AC-Game/src/com/aionemu/gameserver/services/CubeExpandService.java",
"license": "gpl-2.0",
"size": 7598
} | [
"com.aionemu.gameserver.configs.main.CustomConfig",
"com.aionemu.gameserver.dataholders.DataManager",
"com.aionemu.gameserver.model.templates.CubeExpandTemplate",
"com.aionemu.gameserver.utils.PacketSendUtility"
] | import com.aionemu.gameserver.configs.main.CustomConfig; import com.aionemu.gameserver.dataholders.DataManager; import com.aionemu.gameserver.model.templates.CubeExpandTemplate; import com.aionemu.gameserver.utils.PacketSendUtility; | import com.aionemu.gameserver.configs.main.*; import com.aionemu.gameserver.dataholders.*; import com.aionemu.gameserver.model.templates.*; import com.aionemu.gameserver.utils.*; | [
"com.aionemu.gameserver"
] | com.aionemu.gameserver; | 1,725,676 |
public void characters(org.w3c.dom.Node node)
throws org.xml.sax.SAXException
{
flushPending();
String data = node.getNodeValue();
if (data != null)
{
final int length = data.length();
if (length > m_charsBuff.length)
{
... | void function(org.w3c.dom.Node node) throws org.xml.sax.SAXException { flushPending(); String data = node.getNodeValue(); if (data != null) { final int length = data.length(); if (length > m_charsBuff.length) { m_charsBuff = new char[length * 2 + 1]; } data.getChars(0, length, m_charsBuff, 0); characters(m_charsBuff, 0... | /**
* This method gets the nodes value as a String and uses that String as if
* it were an input character notification.
* @param node the Node to serialize
* @throws org.xml.sax.SAXException
*/ | This method gets the nodes value as a String and uses that String as if it were an input character notification | characters | {
"repo_name": "srnsw/xena",
"path": "xena/ext/src/xalan-j_2_7_1/src/org/apache/xml/serializer/SerializerBase.java",
"license": "gpl-3.0",
"size": 55802
} | [
"org.xml.sax.SAXException"
] | import org.xml.sax.SAXException; | import org.xml.sax.*; | [
"org.xml.sax"
] | org.xml.sax; | 2,698,198 |
public Result testTwoConcurrentNotification() throws Exception {
startTimer();
long firsrtTime = 2000;
long secondTime = 6000;
long wait = 12000;
long start = timeCalc(firsrtTime);
Integer id1 = addNotification(start + firsrtTime, firsrtTime, 0);
Integer id... | Result function() throws Exception { startTimer(); long firsrtTime = 2000; long secondTime = 6000; long wait = 12000; long start = timeCalc(firsrtTime); Integer id1 = addNotification(start + firsrtTime, firsrtTime, 0); Integer id2 = addNotification(start + secondTime, secondTime, 0); waitNotification(1, wait); waitNoti... | /**
* Test for two notification.
*/ | Test for two notification | testTwoConcurrentNotification | {
"repo_name": "freeVM/freeVM",
"path": "enhanced/buildtest/tests/functional/src/test/functional/org/apache/harmony/test/func/api/javax/management/timer/NotificationTest.java",
"license": "apache-2.0",
"size": 6845
} | [
"javax.management.timer.TimerNotification",
"org.apache.harmony.share.Result"
] | import javax.management.timer.TimerNotification; import org.apache.harmony.share.Result; | import javax.management.timer.*; import org.apache.harmony.share.*; | [
"javax.management",
"org.apache.harmony"
] | javax.management; org.apache.harmony; | 1,621,398 |
public List<Address> getFromLocation(double latitude, double longitude, int maxResults)
throws IOException {
String url = SERVICE_URL + "reverse?";
if (mKey != null)
url += "api_key=" + mKey + "&";
url += "point.lat=" + latitude
+ "&point.lon=" + longitude
+ "&size=" + maxResults;
... | List<Address> function(double latitude, double longitude, int maxResults) throws IOException { String url = SERVICE_URL + STR; if (mKey != null) url += STR + mKey + "&"; url += STR + latitude + STR + longitude + STR + maxResults; url += STR + mLocale.getLanguage(); if (mOptions != null){ url += '&' + mOptions; } Log.d(... | /**
* Equivalent to Geocoder::getFromLocation(double latitude, double longitude, int maxResults).
*/ | Equivalent to Geocoder::getFromLocation(double latitude, double longitude, int maxResults) | getFromLocation | {
"repo_name": "spyhunter99/osmbonuspack",
"path": "OSMBonusPack/src/main/java/org/osmdroid/bonuspack/location/GeocoderMapzen.java",
"license": "lgpl-3.0",
"size": 8718
} | [
"android.location.Address",
"android.util.Log",
"com.google.gson.JsonArray",
"com.google.gson.JsonElement",
"com.google.gson.JsonObject",
"com.google.gson.JsonParser",
"com.google.gson.JsonSyntaxException",
"java.io.IOException",
"java.util.ArrayList",
"java.util.List",
"org.osmdroid.bonuspack.u... | import android.location.Address; import android.util.Log; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParser; import com.google.gson.JsonSyntaxException; import java.io.IOException; import java.util.ArrayList; import java.util.List;... | import android.location.*; import android.util.*; import com.google.gson.*; import java.io.*; import java.util.*; import org.osmdroid.bonuspack.utils.*; | [
"android.location",
"android.util",
"com.google.gson",
"java.io",
"java.util",
"org.osmdroid.bonuspack"
] | android.location; android.util; com.google.gson; java.io; java.util; org.osmdroid.bonuspack; | 870,735 |
public static DoubleStream empty() {
return StreamSupport.doubleStream(Spliterators.emptyDoubleSpliterator(), false);
} | static DoubleStream function() { return StreamSupport.doubleStream(Spliterators.emptyDoubleSpliterator(), false); } | /**
* Returns an empty sequential {@code DoubleStream}.
*
* @return an empty sequential stream
*/ | Returns an empty sequential DoubleStream | empty | {
"repo_name": "Taichi-SHINDO/jdk9-jdk",
"path": "src/java.base/share/classes/java/util/stream/DoubleStream.java",
"license": "gpl-2.0",
"size": 37749
} | [
"java.util.Spliterators"
] | import java.util.Spliterators; | import java.util.*; | [
"java.util"
] | java.util; | 2,365,120 |
@SuppressWarnings("squid:S00100")
@SimpleFunction(description = "Compute the distance, in meters, between a Marker and a " +
"latitude, longitude point.")
public double DistanceToPoint(double latitude, double longitude) {
return GeometryUtil.distanceBetween(this, new GeoPoint(latitude, longitude));
} | @SuppressWarnings(STR) @SimpleFunction(description = STR + STR) double function(double latitude, double longitude) { return GeometryUtil.distanceBetween(this, new GeoPoint(latitude, longitude)); } | /**
* Compute the distance, in meters, between a `Marker` and a `latitude`, `longitude` point.
*
* @param latitude
* @param longitude
* @return
*/ | Compute the distance, in meters, between a `Marker` and a `latitude`, `longitude` point | DistanceToPoint | {
"repo_name": "kkashi01/appinventor-sources",
"path": "appinventor/components/src/com/google/appinventor/components/runtime/Marker.java",
"license": "apache-2.0",
"size": 19120
} | [
"com.google.appinventor.components.annotations.SimpleFunction",
"com.google.appinventor.components.runtime.util.GeometryUtil",
"org.osmdroid.util.GeoPoint"
] | import com.google.appinventor.components.annotations.SimpleFunction; import com.google.appinventor.components.runtime.util.GeometryUtil; import org.osmdroid.util.GeoPoint; | import com.google.appinventor.components.annotations.*; import com.google.appinventor.components.runtime.util.*; import org.osmdroid.util.*; | [
"com.google.appinventor",
"org.osmdroid.util"
] | com.google.appinventor; org.osmdroid.util; | 1,900,725 |
@EventHandler
public void breedHandler(CreatureSpawnEvent event) {
// Only consider bred horses
LivingEntity entity = event.getEntity();
if (entity instanceof Horse && event.getSpawnReason() == CreatureSpawnEvent.SpawnReason.BREEDING) {
plugin.getLogger().info("Breed");
... | void function(CreatureSpawnEvent event) { LivingEntity entity = event.getEntity(); if (entity instanceof Horse && event.getSpawnReason() == CreatureSpawnEvent.SpawnReason.BREEDING) { plugin.getLogger().info("Breed"); } } | /**
* Combine the genetic data of a horse's parents when it results from breeding.
* @param event
*/ | Combine the genetic data of a horse's parents when it results from breeding | breedHandler | {
"repo_name": "rmichela/HorseBreeding",
"path": "src/main/java/com/ryanmichela/horsebreeding/HorseEventHandler.java",
"license": "gpl-3.0",
"size": 1531
} | [
"org.bukkit.entity.Horse",
"org.bukkit.entity.LivingEntity",
"org.bukkit.event.entity.CreatureSpawnEvent"
] | import org.bukkit.entity.Horse; import org.bukkit.entity.LivingEntity; import org.bukkit.event.entity.CreatureSpawnEvent; | import org.bukkit.entity.*; import org.bukkit.event.entity.*; | [
"org.bukkit.entity",
"org.bukkit.event"
] | org.bukkit.entity; org.bukkit.event; | 1,313,442 |
@Test
public void testSingleRow() throws Exception {
try (OperatorFixture fixture = OperatorFixture.standardFixture(dirTestWatcher)) {
BatchSchema schema = SortTestUtilities.nonNullSchema();
SortTestFixture sortTest = new SortTestFixture(fixture);
sortTest.addInput(fixture.rowSetBuilder(schema... | void function() throws Exception { try (OperatorFixture fixture = OperatorFixture.standardFixture(dirTestWatcher)) { BatchSchema schema = SortTestUtilities.nonNullSchema(); SortTestFixture sortTest = new SortTestFixture(fixture); sortTest.addInput(fixture.rowSetBuilder(schema) .addRow(1, "first") .build()); sortTest.ad... | /**
* Degenerate case: single row in single batch.
* @throws Exception
*/ | Degenerate case: single row in single batch | testSingleRow | {
"repo_name": "sohami/drill",
"path": "exec/java-exec/src/test/java/org/apache/drill/exec/physical/impl/xsort/managed/TestSortImpl.java",
"license": "apache-2.0",
"size": 21153
} | [
"org.apache.drill.exec.record.BatchSchema",
"org.apache.drill.test.OperatorFixture"
] | import org.apache.drill.exec.record.BatchSchema; import org.apache.drill.test.OperatorFixture; | import org.apache.drill.exec.record.*; import org.apache.drill.test.*; | [
"org.apache.drill"
] | org.apache.drill; | 2,882,054 |
public void testCancelingSqlFieldsQuery() throws Exception {
runQueryAsync(new SqlFieldsQuery("select * from (select _val, sleep(100) from Value limit 50)"));
Thread.sleep(500);
final GridQueryProcessor qryProc = grid(0).context().query();
Collection<GridRunningQueryInfo> queries ... | void function() throws Exception { runQueryAsync(new SqlFieldsQuery(STR)); Thread.sleep(500); final GridQueryProcessor qryProc = grid(0).context().query(); Collection<GridRunningQueryInfo> queries = qryProc.runningQueries(0); assertEquals(1, queries.size()); final Collection<GridRunningQueryInfo> finalQueries = queries... | /**
* Test collecting info about running.
*
* @throws Exception If failed.
*/ | Test collecting info about running | testCancelingSqlFieldsQuery | {
"repo_name": "endian675/ignite",
"path": "modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/CacheSqlQueryValueCopySelfTest.java",
"license": "apache-2.0",
"size": 11943
} | [
"java.util.Collection",
"java.util.Collections",
"org.apache.ignite.cache.query.SqlFieldsQuery",
"org.apache.ignite.internal.processors.query.GridQueryProcessor",
"org.apache.ignite.internal.processors.query.GridRunningQueryInfo"
] | import java.util.Collection; import java.util.Collections; import org.apache.ignite.cache.query.SqlFieldsQuery; import org.apache.ignite.internal.processors.query.GridQueryProcessor; import org.apache.ignite.internal.processors.query.GridRunningQueryInfo; | import java.util.*; import org.apache.ignite.cache.query.*; import org.apache.ignite.internal.processors.query.*; | [
"java.util",
"org.apache.ignite"
] | java.util; org.apache.ignite; | 899,772 |
void fetch(ResultCursor cursor, ResultHandler handler, int fetchSize) throws SQLException; | void fetch(ResultCursor cursor, ResultHandler handler, int fetchSize) throws SQLException; | /**
* Fetch additional rows from a cursor.
*
* @param cursor the cursor to fetch from
* @param handler the handler to feed results to
* @param fetchSize the preferred number of rows to retrieve before suspending
* @throws SQLException if query execution fails
*/ | Fetch additional rows from a cursor | fetch | {
"repo_name": "schlosna/pgjdbc",
"path": "org/postgresql/core/QueryExecutor.java",
"license": "bsd-3-clause",
"size": 9792
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 968,919 |
public static void processBitEntry(TreeWalkListener listener,
GeneratedYangParser.BitStatementContext ctx) {
// Check for stack to be non empty.
checkStackIsNotEmpty(listener, MISSING_HOLDER, BIT_DATA, ctx.identifier().getText(), ENTRY);
String ident... | static void function(TreeWalkListener listener, GeneratedYangParser.BitStatementContext ctx) { checkStackIsNotEmpty(listener, MISSING_HOLDER, BIT_DATA, ctx.identifier().getText(), ENTRY); String identifier = getValidIdentifier(ctx.identifier().getText(), BIT_DATA, ctx); YangBit bitNode = new YangBit(); bitNode.setBitNa... | /**
* It is called when parser enters grammar rule (bit), it perform
* validations and updates the data model tree.
*
* @param listener listener's object
* @param ctx context object of the grammar rule
*/ | It is called when parser enters grammar rule (bit), it perform validations and updates the data model tree | processBitEntry | {
"repo_name": "paradisecr/ONOS-OXP",
"path": "utils/yangutils/plugin/src/main/java/org/onosproject/yangutils/parser/impl/listeners/BitListener.java",
"license": "apache-2.0",
"size": 9259
} | [
"org.onosproject.yangutils.datamodel.YangBit",
"org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser",
"org.onosproject.yangutils.parser.impl.TreeWalkListener",
"org.onosproject.yangutils.parser.impl.parserutils.ListenerUtil",
"org.onosproject.yangutils.parser.impl.parserutils.ListenerValidatio... | import org.onosproject.yangutils.datamodel.YangBit; import org.onosproject.yangutils.parser.antlrgencode.GeneratedYangParser; import org.onosproject.yangutils.parser.impl.TreeWalkListener; import org.onosproject.yangutils.parser.impl.parserutils.ListenerUtil; import org.onosproject.yangutils.parser.impl.parserutils.Lis... | import org.onosproject.yangutils.datamodel.*; import org.onosproject.yangutils.parser.antlrgencode.*; import org.onosproject.yangutils.parser.impl.*; import org.onosproject.yangutils.parser.impl.parserutils.*; | [
"org.onosproject.yangutils"
] | org.onosproject.yangutils; | 1,891,431 |
public static int getServiceIdentifierFromParcelUuid(ParcelUuid parcelUuid) {
UUID uuid = parcelUuid.getUuid();
long value = (uuid.getMostSignificantBits() & 0x0000FFFF00000000L) >>> 32;
return (int)value;
} | static int function(ParcelUuid parcelUuid) { UUID uuid = parcelUuid.getUuid(); long value = (uuid.getMostSignificantBits() & 0x0000FFFF00000000L) >>> 32; return (int)value; } | /**
* Extract the Service Identifier or the actual uuid from the Parcel Uuid.
* For example, if 0000110B-0000-1000-8000-00805F9B34FB is the parcel Uuid,
* this function will return 110B
* @param parcelUuid
* @return the service identifier.
*/ | Extract the Service Identifier or the actual uuid from the Parcel Uuid. For example, if 0000110B-0000-1000-8000-00805F9B34FB is the parcel Uuid, this function will return 110B | getServiceIdentifierFromParcelUuid | {
"repo_name": "s20121035/rk3288_android5.1_repo",
"path": "frameworks/base/core/java/android/bluetooth/BluetoothUuid.java",
"license": "gpl-3.0",
"size": 11121
} | [
"android.os.ParcelUuid"
] | import android.os.ParcelUuid; | import android.os.*; | [
"android.os"
] | android.os; | 16,378 |
public Vec3d getPositionVector()
{
return new Vec3d(this.posX, this.posY, this.posZ);
} | Vec3d function() { return new Vec3d(this.posX, this.posY, this.posZ); } | /**
* Get the position vector. <b>{@code null} is not allowed!</b> If you are not an entity in the world, return 0.0D,
* 0.0D, 0.0D
*/ | Get the position vector. null is not allowed! If you are not an entity in the world, return 0.0D, 0.0D, 0.0D | getPositionVector | {
"repo_name": "aebert1/BigTransport",
"path": "build/tmp/recompileMc/sources/net/minecraft/entity/Entity.java",
"license": "gpl-3.0",
"size": 111191
} | [
"net.minecraft.util.math.Vec3d"
] | import net.minecraft.util.math.Vec3d; | import net.minecraft.util.math.*; | [
"net.minecraft.util"
] | net.minecraft.util; | 1,137,891 |
public Object encode(Object value) throws EncoderException {
if (value == null) {
return null;
} else if (value instanceof String) {
return encode((String) value);
} else {
throw new EncoderException("Objects of type " +
value.getC... | Object function(Object value) throws EncoderException { if (value == null) { return null; } else if (value instanceof String) { return encode((String) value); } else { throw new EncoderException(STR + value.getClass().getName() + STR); } } | /**
* Encodes an object into its Base64 form using the default charset. Unsafe characters are escaped.
*
* @param value
* object to convert to Base64 form
* @return Base64 object
*
* @throws EncoderException
* thrown if a failure condit... | Encodes an object into its Base64 form using the default charset. Unsafe characters are escaped | encode | {
"repo_name": "narenlog/Shopify4J",
"path": "ShopifyAPI/src/com/apache/commons/codec/net/BCodec.java",
"license": "mit",
"size": 7206
} | [
"com.apache.commons.codec.EncoderException"
] | import com.apache.commons.codec.EncoderException; | import com.apache.commons.codec.*; | [
"com.apache.commons"
] | com.apache.commons; | 2,264,835 |
@Test
public void testReplaceValueNoStoreEntry() throws Exception {
FakeStore fakeStore = new FakeStore(Collections.emptyMap());
this.store = spy(fakeStore);
Ehcache<String, String> ehcache = this.getEhcache();
assertFalse(ehcache.replace("key", "oldValue", "newValue"));
verify(this.store).rep... | void function() throws Exception { FakeStore fakeStore = new FakeStore(Collections.emptyMap()); this.store = spy(fakeStore); Ehcache<String, String> ehcache = this.getEhcache(); assertFalse(ehcache.replace("key", STR, STR)); verify(this.store).replace(eq("key"), eq(STR), eq(STR)); verifyZeroInteractions(this.resilience... | /**
* Tests the effect of a {@link Ehcache#replace(Object, Object, Object)} for
* <ul>
* <li>key not present in {@code Store}</li>
* </ul>
*/ | Tests the effect of a <code>Ehcache#replace(Object, Object, Object)</code> for key not present in Store | testReplaceValueNoStoreEntry | {
"repo_name": "GaryWKeim/ehcache3",
"path": "core/src/test/java/org/ehcache/core/EhcacheBasicReplaceValueTest.java",
"license": "apache-2.0",
"size": 8967
} | [
"java.util.Collections",
"java.util.EnumSet",
"org.ehcache.core.statistics.CacheOperationOutcomes",
"org.hamcrest.CoreMatchers",
"org.junit.Assert",
"org.mockito.ArgumentMatchers",
"org.mockito.Mockito"
] | import java.util.Collections; import java.util.EnumSet; import org.ehcache.core.statistics.CacheOperationOutcomes; import org.hamcrest.CoreMatchers; import org.junit.Assert; import org.mockito.ArgumentMatchers; import org.mockito.Mockito; | import java.util.*; import org.ehcache.core.statistics.*; import org.hamcrest.*; import org.junit.*; import org.mockito.*; | [
"java.util",
"org.ehcache.core",
"org.hamcrest",
"org.junit",
"org.mockito"
] | java.util; org.ehcache.core; org.hamcrest; org.junit; org.mockito; | 45,676 |
private boolean shouldGiveUpVerification() {
return this.stopwatch.elapsed(TimeUnit.MINUTES) >= this.dataVerifTimeoutMinutes;
} | boolean function() { return this.stopwatch.elapsed(TimeUnit.MINUTES) >= this.dataVerifTimeoutMinutes; } | /**
* Data completeness verification of a folder should give up if timed out.
*/ | Data completeness verification of a folder should give up if timed out | shouldGiveUpVerification | {
"repo_name": "jenniferzheng/gobblin",
"path": "gobblin-compaction/src/main/java/org/apache/gobblin/compaction/mapreduce/MRCompactor.java",
"license": "apache-2.0",
"size": 45815
} | [
"java.util.concurrent.TimeUnit"
] | import java.util.concurrent.TimeUnit; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 1,965,806 |
@ServiceMethod(returns = ReturnType.SINGLE)
public WorkloadNetworkDnsServiceInner updateDnsService(
String resourceGroupName,
String privateCloudName,
String dnsServiceId,
WorkloadNetworkDnsServiceInner workloadNetworkDnsService) {
return updateDnsServiceAsync(resourceGro... | @ServiceMethod(returns = ReturnType.SINGLE) WorkloadNetworkDnsServiceInner function( String resourceGroupName, String privateCloudName, String dnsServiceId, WorkloadNetworkDnsServiceInner workloadNetworkDnsService) { return updateDnsServiceAsync(resourceGroupName, privateCloudName, dnsServiceId, workloadNetworkDnsServi... | /**
* Create or update a DNS service by id in a private cloud workload network.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param privateCloudName Name of the private cloud.
* @param dnsServiceId NSX DNS Service identifier. Generally the same as... | Create or update a DNS service by id in a private cloud workload network | updateDnsService | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/implementation/WorkloadNetworksClientImpl.java",
"license": "mit",
"size": 538828
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkDnsServiceInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.avs.fluent.models.WorkloadNetworkDnsServiceInner; | import com.azure.core.annotation.*; import com.azure.resourcemanager.avs.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 1,416,531 |
public static ReduceSinkDesc getReduceSinkDesc(
ArrayList<ExprNodeDesc> keyCols, ArrayList<ExprNodeDesc> valueCols,
List<String> outputColumnNames, boolean includeKeyCols, int tag,
ArrayList<ExprNodeDesc> partitionCols, String order, int numReducers,
AcidUtils.Operation writeType) {
return... | static ReduceSinkDesc function( ArrayList<ExprNodeDesc> keyCols, ArrayList<ExprNodeDesc> valueCols, List<String> outputColumnNames, boolean includeKeyCols, int tag, ArrayList<ExprNodeDesc> partitionCols, String order, int numReducers, AcidUtils.Operation writeType) { return getReduceSinkDesc(keyCols, keyCols.size(), va... | /**
* Create the reduce sink descriptor.
*
* @param keyCols
* The columns to be stored in the key
* @param valueCols
* The columns to be stored in the value
* @param outputColumnNames
* The output columns names
* @param tag
* The tag for this reducesink
... | Create the reduce sink descriptor | getReduceSinkDesc | {
"repo_name": "wangbin83-gmail-com/hive-1.1.0-cdh5.4.8",
"path": "ql/src/java/org/apache/hadoop/hive/ql/plan/PlanUtils.java",
"license": "apache-2.0",
"size": 39511
} | [
"java.util.ArrayList",
"java.util.List",
"org.apache.hadoop.hive.ql.io.AcidUtils"
] | import java.util.ArrayList; import java.util.List; import org.apache.hadoop.hive.ql.io.AcidUtils; | import java.util.*; import org.apache.hadoop.hive.ql.io.*; | [
"java.util",
"org.apache.hadoop"
] | java.util; org.apache.hadoop; | 2,188,218 |
public final synchronized String[] column_names(long stmt) throws SQLException {
String[] names = new String[column_count(stmt)];
for (int i = 0; i < names.length; i++) {
names[i] = column_name(stmt, i);
}
return names;
} | final synchronized String[] function(long stmt) throws SQLException { String[] names = new String[column_count(stmt)]; for (int i = 0; i < names.length; i++) { names[i] = column_name(stmt, i); } return names; } | /**
* Returns an array of column names in the result set of the SELECT statement.
* @param stmt Stmt object.
* @return String array of column names.
* @throws SQLException
*/ | Returns an array of column names in the result set of the SELECT statement | column_names | {
"repo_name": "angelLYK/sqlite-jdbc",
"path": "src/main/java/org/sqlite/core/DB.java",
"license": "apache-2.0",
"size": 39712
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,838,432 |
public static Artifact getCompileOutputTreeArtifact(
RuleContext ruleContext, Artifact sourceTreeArtifact) {
PathFragment objectDir = getObjDirectory(ruleContext.getLabel());
PathFragment rootRelativePath = sourceTreeArtifact.getRootRelativePath();
return ruleContext.getTreeArtifact(
objectD... | static Artifact function( RuleContext ruleContext, Artifact sourceTreeArtifact) { PathFragment objectDir = getObjDirectory(ruleContext.getLabel()); PathFragment rootRelativePath = sourceTreeArtifact.getRootRelativePath(); return ruleContext.getTreeArtifact( objectDir.getRelative(rootRelativePath), sourceTreeArtifact.ge... | /**
* Returns the corresponding compiled TreeArtifact given the source TreeArtifact.
*/ | Returns the corresponding compiled TreeArtifact given the source TreeArtifact | getCompileOutputTreeArtifact | {
"repo_name": "juhalindfors/bazel-patches",
"path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CppHelper.java",
"license": "apache-2.0",
"size": 29659
} | [
"com.google.devtools.build.lib.actions.Artifact",
"com.google.devtools.build.lib.analysis.RuleContext",
"com.google.devtools.build.lib.vfs.PathFragment"
] | import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.analysis.RuleContext; import com.google.devtools.build.lib.vfs.PathFragment; | import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.analysis.*; import com.google.devtools.build.lib.vfs.*; | [
"com.google.devtools"
] | com.google.devtools; | 722,955 |
ViewState createViewState(Flow flow, String id, String viewId); | ViewState createViewState(Flow flow, String id, String viewId); | /**
* Create view state view state.
*
* @param flow the flow
* @param id the id
* @param viewId the view id
* @return the view state
*/ | Create view state view state | createViewState | {
"repo_name": "zawn/cas",
"path": "cas-server-core-webflow/src/main/java/org/apereo/cas/web/flow/CasWebflowConfigurer.java",
"license": "apache-2.0",
"size": 6314
} | [
"org.springframework.webflow.engine.Flow",
"org.springframework.webflow.engine.ViewState"
] | import org.springframework.webflow.engine.Flow; import org.springframework.webflow.engine.ViewState; | import org.springframework.webflow.engine.*; | [
"org.springframework.webflow"
] | org.springframework.webflow; | 1,562,252 |
@ServiceMethod(returns = ReturnType.SINGLE)
AccountKeysInner regenerateKeys(
String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate); | @ServiceMethod(returns = ReturnType.SINGLE) AccountKeysInner regenerateKeys( String resourceGroupName, String accountName, AccountKeyRegenerateRequest regenerate); | /**
* Regenerate specified Key of a Spatial Anchors Account.
*
* @param resourceGroupName Name of an Azure resource group.
* @param accountName Name of an Mixed Reality Account.
* @param regenerate Required information for key regeneration.
* @throws IllegalArgumentException thrown if para... | Regenerate specified Key of a Spatial Anchors Account | regenerateKeys | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/fluent/SpatialAnchorsAccountsClient.java",
"license": "mit",
"size": 12791
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.resourcemanager.mixedreality.fluent.models.AccountKeysInner",
"com.azure.resourcemanager.mixedreality.models.AccountKeyRegenerateRequest"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.mixedreality.fluent.models.AccountKeysInner; import com.azure.resourcemanager.mixedreality.models.AccountKeyRegenerateRequest; | import com.azure.core.annotation.*; import com.azure.resourcemanager.mixedreality.fluent.models.*; import com.azure.resourcemanager.mixedreality.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 1,173,881 |
public static <T extends MethodDescription> ElementMatcher.Junction<T> returnsGeneric(ElementMatcher<? super TypeDescription.Generic> matcher) {
return new MethodReturnTypeMatcher<T>(matcher);
} | static <T extends MethodDescription> ElementMatcher.Junction<T> function(ElementMatcher<? super TypeDescription.Generic> matcher) { return new MethodReturnTypeMatcher<T>(matcher); } | /**
* Matches {@link MethodDescription}s that match a matched method's return type.
*
* @param matcher A matcher to apply onto a matched method's return type.
* @param <T> The type of the matched object.
* @return An element matcher that matches a given return type against another {@code ma... | Matches <code>MethodDescription</code>s that match a matched method's return type | returnsGeneric | {
"repo_name": "DALDEI/byte-buddy",
"path": "byte-buddy-dep/src/main/java/net/bytebuddy/matcher/ElementMatchers.java",
"license": "apache-2.0",
"size": 103880
} | [
"net.bytebuddy.description.method.MethodDescription",
"net.bytebuddy.description.type.TypeDescription"
] | import net.bytebuddy.description.method.MethodDescription; import net.bytebuddy.description.type.TypeDescription; | import net.bytebuddy.description.method.*; import net.bytebuddy.description.type.*; | [
"net.bytebuddy.description"
] | net.bytebuddy.description; | 1,827,806 |
private static long getMaxTTL(Map<byte[], Long> ttlByFamily) {
long maxTTL = 0;
for (Long familyTTL : ttlByFamily.values()) {
maxTTL = Math.max(familyTTL <= 0 ? Long.MAX_VALUE : familyTTL, maxTTL);
}
return maxTTL == 0 ? Long.MAX_VALUE : maxTTL;
} | static long function(Map<byte[], Long> ttlByFamily) { long maxTTL = 0; for (Long familyTTL : ttlByFamily.values()) { maxTTL = Math.max(familyTTL <= 0 ? Long.MAX_VALUE : familyTTL, maxTTL); } return maxTTL == 0 ? Long.MAX_VALUE : maxTTL; } | /**
* Returns the max TTL for the given TTL values. Returns Long.MAX_VALUE if any of the column families has no TTL set.
*/ | Returns the max TTL for the given TTL values. Returns Long.MAX_VALUE if any of the column families has no TTL set | getMaxTTL | {
"repo_name": "cdapio/tephra",
"path": "tephra-core/src/main/java/co/cask/tephra/util/TxUtils.java",
"license": "apache-2.0",
"size": 7344
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,508,278 |
protected void batch(TableName tableName, Collection<List<Row>> allRows) throws IOException {
if (allRows.isEmpty()) {
return;
}
Table table = null;
try {
Connection connection = getConnection();
table = connection.getTable(tableName);
for (List<Row> rows : allRows) {
t... | void function(TableName tableName, Collection<List<Row>> allRows) throws IOException { if (allRows.isEmpty()) { return; } Table table = null; try { Connection connection = getConnection(); table = connection.getTable(tableName); for (List<Row> rows : allRows) { table.batch(rows, null); } } catch (InterruptedException i... | /**
* Do the changes and handle the pool
* @param tableName table to insert into
* @param allRows list of actions
* @throws IOException
*/ | Do the changes and handle the pool | batch | {
"repo_name": "JingchengDu/hbase",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSink.java",
"license": "apache-2.0",
"size": 16817
} | [
"java.io.IOException",
"java.io.InterruptedIOException",
"java.util.Collection",
"java.util.List",
"org.apache.hadoop.hbase.TableName",
"org.apache.hadoop.hbase.client.Connection",
"org.apache.hadoop.hbase.client.Row",
"org.apache.hadoop.hbase.client.Table"
] | import java.io.IOException; import java.io.InterruptedIOException; import java.util.Collection; import java.util.List; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.Connection; import org.apache.hadoop.hbase.client.Row; import org.apache.hadoop.hbase.client.Table; | import java.io.*; import java.util.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 1,077,577 |
public static URI changeScheme(URI bindAddr, String scheme) throws URISyntaxException {
return new URI(scheme, bindAddr.getUserInfo(), bindAddr.getHost(), bindAddr.getPort(), bindAddr.getPath(), bindAddr.getQuery(), bindAddr.getFragment());
} | static URI function(URI bindAddr, String scheme) throws URISyntaxException { return new URI(scheme, bindAddr.getUserInfo(), bindAddr.getHost(), bindAddr.getPort(), bindAddr.getPath(), bindAddr.getQuery(), bindAddr.getFragment()); } | /**
* Given a URI value create and return a new URI that matches the target one but with the scheme value
* supplied to this method.
*
* @param bindAddr The URI whose scheme value should be altered.
* @param scheme The new scheme value to use for the returned URI.
* @return a new URI that is a... | Given a URI value create and return a new URI that matches the target one but with the scheme value supplied to this method | changeScheme | {
"repo_name": "lburgazzoli/apache-activemq-artemis",
"path": "artemis-commons/src/main/java/org/apache/activemq/artemis/utils/uri/URISupport.java",
"license": "apache-2.0",
"size": 20311
} | [
"java.net.URISyntaxException"
] | import java.net.URISyntaxException; | import java.net.*; | [
"java.net"
] | java.net; | 1,354,063 |
// ===========================================================================
public void _resolve(CommandContext ci)
{
gluer.resolve(getIds(ci));
} | void function(CommandContext ci) { gluer.resolve(getIds(ci)); } | /**
* Requests the framework to resolve one or more services.
* It requires 1 parameter:
*
* - a partial class name. All classes matching the given name will be resolved.
*
* @param ci The current context.
*/ | Requests the framework to resolve one or more services. It requires 1 parameter: - a partial class name. All classes matching the given name will be resolved | _resolve | {
"repo_name": "gevaerts/Gluewine",
"path": "imp/src/java/org/gluewine/console/impl/SystemCommandProvider.java",
"license": "apache-2.0",
"size": 27950
} | [
"org.gluewine.console.CommandContext"
] | import org.gluewine.console.CommandContext; | import org.gluewine.console.*; | [
"org.gluewine.console"
] | org.gluewine.console; | 674,529 |
private void setWritingConfiguration() throws CarbonDataWriterException {
// get blocklet size
this.blockletSize = Integer.parseInt(CarbonProperties.getInstance()
.getProperty(CarbonCommonConstants.BLOCKLET_SIZE,
CarbonCommonConstants.BLOCKLET_SIZE_DEFAULT_VAL));
if (version == Columna... | void function() throws CarbonDataWriterException { this.blockletSize = Integer.parseInt(CarbonProperties.getInstance() .getProperty(CarbonCommonConstants.BLOCKLET_SIZE, CarbonCommonConstants.BLOCKLET_SIZE_DEFAULT_VAL)); if (version == ColumnarFormatVersion.V3) { this.blockletSize = Integer.parseInt(CarbonProperties.get... | /**
* Below method will be to configure fact file writing configuration
*
* @throws CarbonDataWriterException
*/ | Below method will be to configure fact file writing configuration | setWritingConfiguration | {
"repo_name": "shivangi1015/incubator-carbondata",
"path": "processing/src/main/java/org/apache/carbondata/processing/store/CarbonFactDataHandlerColumnar.java",
"license": "apache-2.0",
"size": 30826
} | [
"java.util.ArrayList",
"java.util.List",
"org.apache.carbondata.core.constants.CarbonCommonConstants",
"org.apache.carbondata.core.constants.CarbonV3DataFormatConstants",
"org.apache.carbondata.core.datastore.exception.CarbonDataWriterException",
"org.apache.carbondata.core.keygenerator.columnar.impl.Mult... | import java.util.ArrayList; import java.util.List; import org.apache.carbondata.core.constants.CarbonCommonConstants; import org.apache.carbondata.core.constants.CarbonV3DataFormatConstants; import org.apache.carbondata.core.datastore.exception.CarbonDataWriterException; import org.apache.carbondata.core.keygenerator.c... | import java.util.*; import org.apache.carbondata.core.constants.*; import org.apache.carbondata.core.datastore.exception.*; import org.apache.carbondata.core.keygenerator.columnar.impl.*; import org.apache.carbondata.core.metadata.*; import org.apache.carbondata.core.metadata.datatype.*; import org.apache.carbondata.co... | [
"java.util",
"org.apache.carbondata"
] | java.util; org.apache.carbondata; | 936,227 |
@ServiceMethod(returns = ReturnType.SINGLE)
Response<RecommendationActionInner> getWithResponse(
String resourceGroupName, String serverName, String advisorName, String recommendedActionName, Context context); | @ServiceMethod(returns = ReturnType.SINGLE) Response<RecommendationActionInner> getWithResponse( String resourceGroupName, String serverName, String advisorName, String recommendedActionName, Context context); | /**
* Retrieve recommended actions from the advisor.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param serverName The name of the server.
* @param advisorName The advisor name for recommendation action.
* @param recommendedActionName The re... | Retrieve recommended actions from the advisor | getWithResponse | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/mysql/azure-resourcemanager-mysql/src/main/java/com/azure/resourcemanager/mysql/fluent/RecommendedActionsClient.java",
"license": "mit",
"size": 4404
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.core.util.Context",
"com.azure.resourcemanager.mysql.fluent.models.RecommendationActionInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.mysql.fluent.models.RecommendationActionInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.mysql.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,318,003 |
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
| List<Criteria> function() { return oredCriteria; } | /**
* This method was generated by MyBatis Generator. This method corresponds to the database table JSON_USER
* @mbg.generated Thu Aug 29 17:59:18 CST 2019
*/ | This method was generated by MyBatis Generator. This method corresponds to the database table JSON_USER | getOredCriteria | {
"repo_name": "alphatan/workspace_java",
"path": "spring-boot-web-fps-demo/src/main/java/com/at/springboot/mybatis/po/JsonUserExample.java",
"license": "apache-2.0",
"size": 15870
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,262,934 |
public synchronized void setTargetFilePath(@NotNull String filePath, int tabIndex) {
// Throws exception if tabIndex is out of valid range
checkRange(tabIndex, 0, tabsData.size());
tabsData.get(tabIndex).targetFilePath = filePath;
targetPathListeners.forEach(listener -> listener.cha... | synchronized void function(@NotNull String filePath, int tabIndex) { checkRange(tabIndex, 0, tabsData.size()); tabsData.get(tabIndex).targetFilePath = filePath; targetPathListeners.forEach(listener -> listener.changed(filePath, tabIndex)); } | /**
* Sets the target file path in the specified tab.
* <p>
* Notifies all target {@link FilePathChangeListener} listeners of the change.
*
* @param filePath file path to set
* @param tabIndex the index of the tab with target file path to set
*
* @throws IndexOutOfBoundsException... | Sets the target file path in the specified tab. Notifies all target <code>FilePathChangeListener</code> listeners of the change | setTargetFilePath | {
"repo_name": "dmtolpeko/sqlines",
"path": "sqlines-studio-java/src/main/java/com/sqlines/studio/model/tabsdata/ObservableTabsData.java",
"license": "apache-2.0",
"size": 23316
} | [
"org.jetbrains.annotations.NotNull"
] | import org.jetbrains.annotations.NotNull; | import org.jetbrains.annotations.*; | [
"org.jetbrains.annotations"
] | org.jetbrains.annotations; | 1,440 |
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<Void>, Void> beginDelete(
String workspaceName,
String kustoPoolName,
String principalAssignmentName,
String resourceGroupName,
Context context); | @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller<PollResult<Void>, Void> beginDelete( String workspaceName, String kustoPoolName, String principalAssignmentName, String resourceGroupName, Context context); | /**
* Deletes a Kusto pool principalAssignment.
*
* @param workspaceName The name of the workspace.
* @param kustoPoolName The name of the Kusto pool.
* @param principalAssignmentName The name of the Kusto principalAssignment.
* @param resourceGroupName The name of the resource group. The ... | Deletes a Kusto pool principalAssignment | beginDelete | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/KustoPoolPrincipalAssignmentsClient.java",
"license": "mit",
"size": 15731
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.management.polling.PollResult",
"com.azure.core.util.Context",
"com.azure.core.util.polling.SyncPoller"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; | import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.*; import com.azure.core.util.polling.*; | [
"com.azure.core"
] | com.azure.core; | 1,882,319 |
public void testSetScaleGreater() {
String a = "1231212478987482988429808779810457634781384756794987";
int aScale = 18;
int newScale = 28;
BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale);
BigDecimal bNumber = aNumber.setScale(newScale);
assertTrue("incorrect scale", bNumber.scal... | void function() { String a = STR; int aScale = 18; int newScale = 28; BigDecimal aNumber = new BigDecimal(new BigInteger(a), aScale); BigDecimal bNumber = aNumber.setScale(newScale); assertTrue(STR, bNumber.scale() == newScale); assertEquals(STR, 0, bNumber.compareTo(aNumber)); } | /**
* Set a greater new scale.
*/ | Set a greater new scale | testSetScaleGreater | {
"repo_name": "google/j2cl",
"path": "jre/javatests/com/google/gwt/emultest/java/math/BigDecimalScaleOperationsTest.java",
"license": "apache-2.0",
"size": 13490
} | [
"java.math.BigDecimal",
"java.math.BigInteger"
] | import java.math.BigDecimal; import java.math.BigInteger; | import java.math.*; | [
"java.math"
] | java.math; | 1,503,811 |
@Override
@Metadata(description = "Enable usage of global SSL context parameters", label = "security", defaultValue = "false")
public void setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters) {
this.useGlobalSslContextParameters = useGlobalSslContextParameters;
} | @Metadata(description = STR, label = STR, defaultValue = "false") void function(boolean useGlobalSslContextParameters) { this.useGlobalSslContextParameters = useGlobalSslContextParameters; } | /**
* Enable usage of global SSL context parameters
*/ | Enable usage of global SSL context parameters | setUseGlobalSslContextParameters | {
"repo_name": "jonmcewen/camel",
"path": "components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java",
"license": "apache-2.0",
"size": 65878
} | [
"org.apache.camel.spi.Metadata"
] | import org.apache.camel.spi.Metadata; | import org.apache.camel.spi.*; | [
"org.apache.camel"
] | org.apache.camel; | 270,748 |
public static Chart fromDescriptionFile(final File descriptionFile) throws IOException {
final String base = descriptionFile.getName().substring(0, descriptionFile.getName().length() - 4);
final String group = base.substring(0, base.length() - 14);
final String loaderEntry = new String(Files.readAl... | static Chart function(final File descriptionFile) throws IOException { final String base = descriptionFile.getName().substring(0, descriptionFile.getName().length() - 4); final String group = base.substring(0, base.length() - 14); final String loaderEntry = new String(Files.readAllBytes(Paths.get(descriptionFile.toURI(... | /**
* Gets a chart instance based on the given description file. The resulting instance will carry all the needed information but cannot
* be later changed and stored again.
*
* @param descriptionFile
* The description file where to read the chart data from.
* @return A new chart instance ... | Gets a chart instance based on the given description file. The resulting instance will carry all the needed information but cannot be later changed and stored again | fromDescriptionFile | {
"repo_name": "vjuranek/PerfCake",
"path": "perfcake/src/main/java/org/perfcake/reporting/destinations/chart/Chart.java",
"license": "apache-2.0",
"size": 20193
} | [
"java.io.File",
"java.io.IOException",
"java.nio.file.Files",
"java.nio.file.Paths",
"java.util.ArrayList",
"java.util.List",
"org.perfcake.common.PeriodType",
"org.perfcake.util.StringUtil",
"org.perfcake.util.Utils"
] | import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; import org.perfcake.common.PeriodType; import org.perfcake.util.StringUtil; import org.perfcake.util.Utils; | import java.io.*; import java.nio.file.*; import java.util.*; import org.perfcake.common.*; import org.perfcake.util.*; | [
"java.io",
"java.nio",
"java.util",
"org.perfcake.common",
"org.perfcake.util"
] | java.io; java.nio; java.util; org.perfcake.common; org.perfcake.util; | 410,259 |
public void releaseConnection(AS400 connection) {
ObjectHelper.notNull(connection, "connection", this);
connectionPool.returnConnectionToPool(connection);
} | void function(AS400 connection) { ObjectHelper.notNull(connection, STR, this); connectionPool.returnConnectionToPool(connection); } | /**
* Releases a previously obtained {@code AS400} object from use.
*
* @param connection a previously obtained {@code AS400} object to release
*/ | Releases a previously obtained AS400 object from use | releaseConnection | {
"repo_name": "CodeSmell/camel",
"path": "components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400Configuration.java",
"license": "apache-2.0",
"size": 11349
} | [
"org.apache.camel.util.ObjectHelper"
] | import org.apache.camel.util.ObjectHelper; | import org.apache.camel.util.*; | [
"org.apache.camel"
] | org.apache.camel; | 1,655,701 |
void saveAll(AsyncCallback callback); | void saveAll(AsyncCallback callback); | /**
* Saves all opened files whose content have changed since the last save operation
*
* @param callback
*/ | Saves all opened files whose content have changed since the last save operation | saveAll | {
"repo_name": "kaloyan-raev/che",
"path": "ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/editor/EditorAgent.java",
"license": "epl-1.0",
"size": 2954
} | [
"com.google.gwt.user.client.rpc.AsyncCallback"
] | import com.google.gwt.user.client.rpc.AsyncCallback; | import com.google.gwt.user.client.rpc.*; | [
"com.google.gwt"
] | com.google.gwt; | 1,472,368 |
void linksVanished(ConnectPoint connectPoint); | void linksVanished(ConnectPoint connectPoint); | /**
* Signals that infrastructure links associated with the specified
* connect point have vanished.
*
* @param connectPoint connect point
*/ | Signals that infrastructure links associated with the specified connect point have vanished | linksVanished | {
"repo_name": "kuujo/onos",
"path": "drivers/optical/src/main/java/org/onosproject/drivers/optical/OpticalAdjacencyLinkService.java",
"license": "apache-2.0",
"size": 1826
} | [
"org.onosproject.net.ConnectPoint"
] | import org.onosproject.net.ConnectPoint; | import org.onosproject.net.*; | [
"org.onosproject.net"
] | org.onosproject.net; | 2,312,854 |
public void setSegments(X3DNode[] val) {
if ( segments == null ) {
segments = (MFNode)getField( "segments" );
}
segments.setValue( val.length, val );
} | void function(X3DNode[] val) { if ( segments == null ) { segments = (MFNode)getField( STR ); } segments.setValue( val.length, val ); } | /** Set the segments field.
* @param val The X3DNode[] to set. */ | Set the segments field | setSegments | {
"repo_name": "Norkart/NK-VirtualGlobe",
"path": "Xj3D/src/java/org/xj3d/sai/internal/node/hanim/SAIHAnimHumanoid.java",
"license": "gpl-2.0",
"size": 13112
} | [
"org.web3d.x3d.sai.MFNode",
"org.web3d.x3d.sai.X3DNode"
] | import org.web3d.x3d.sai.MFNode; import org.web3d.x3d.sai.X3DNode; | import org.web3d.x3d.sai.*; | [
"org.web3d.x3d"
] | org.web3d.x3d; | 715,520 |
public void setEntryrhsps(final Set<Entryrhsp> entryrhsp) {
this.entryrhsps = entryrhsp;
} | void function(final Set<Entryrhsp> entryrhsp) { this.entryrhsps = entryrhsp; } | /**
* Set the value related to the column: entryrhsp.
* @param entryrhsp the entryrhsp value you wish to set
*/ | Set the value related to the column: entryrhsp | setEntryrhsps | {
"repo_name": "servinglynk/hmis-lynk-open-source",
"path": "hmis-model-v2017/src/main/java/com/servinglynk/hmis/warehouse/model/v2017/Export.java",
"license": "mpl-2.0",
"size": 53361
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 455,235 |
@NotNull PsiReferenceList createReferenceList(@NotNull PsiJavaCodeReferenceElement[] references) throws IncorrectOperationException; | @NotNull PsiReferenceList createReferenceList(@NotNull PsiJavaCodeReferenceElement[] references) throws IncorrectOperationException; | /**
* Creates a reference list element from the specified array of references.
*
* @param references the array of references to include in the list.
* @return the created reference list.
* @throws IncorrectOperationException if some of the references are invalid.
*/ | Creates a reference list element from the specified array of references | createReferenceList | {
"repo_name": "joewalnes/idea-community",
"path": "java/openapi/src/com/intellij/psi/PsiElementFactory.java",
"license": "apache-2.0",
"size": 23064
} | [
"com.intellij.util.IncorrectOperationException",
"org.jetbrains.annotations.NotNull"
] | import com.intellij.util.IncorrectOperationException; import org.jetbrains.annotations.NotNull; | import com.intellij.util.*; import org.jetbrains.annotations.*; | [
"com.intellij.util",
"org.jetbrains.annotations"
] | com.intellij.util; org.jetbrains.annotations; | 1,765,482 |
public String getFlowStats(String startDate, String endDate, String downsample, String flowId, String metric)
throws IntegrationException {
return statsIntegrationService.getStats(startDate, endDate, downsample, null, null, flowId, null, null, null,
null, StatsType.FLOW, metric, ... | String function(String startDate, String endDate, String downsample, String flowId, String metric) throws IntegrationException { return statsIntegrationService.getStats(startDate, endDate, downsample, null, null, flowId, null, null, null, null, StatsType.FLOW, metric, null); } | /**
* Gets the flow stats.
*
* @param startDate
* the start date
* @param endDate
* the end date
* @param downsample
* the downsample
* @param flowId
* the flow id
* @param metric
* the metric
* @retu... | Gets the flow stats | getFlowStats | {
"repo_name": "jonvestal/open-kilda",
"path": "src-gui/src/main/java/org/openkilda/service/StatsService.java",
"license": "apache-2.0",
"size": 17198
} | [
"org.openkilda.constants.OpenTsDb",
"org.openkilda.integration.exception.IntegrationException"
] | import org.openkilda.constants.OpenTsDb; import org.openkilda.integration.exception.IntegrationException; | import org.openkilda.constants.*; import org.openkilda.integration.exception.*; | [
"org.openkilda.constants",
"org.openkilda.integration"
] | org.openkilda.constants; org.openkilda.integration; | 540,789 |
public static void main(String[] args) throws Exception {
if (conf == null) conf = HBaseConfiguration.create();
int ret = ToolRunner.run(conf, new ReplicationSyncUp(), args);
System.exit(ret);
} | static void function(String[] args) throws Exception { if (conf == null) conf = HBaseConfiguration.create(); int ret = ToolRunner.run(conf, new ReplicationSyncUp(), args); System.exit(ret); } | /**
* Main program
* @param args
* @throws Exception
*/ | Main program | main | {
"repo_name": "throughsky/lywebank",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/replication/regionserver/ReplicationSyncUp.java",
"license": "apache-2.0",
"size": 5207
} | [
"org.apache.hadoop.hbase.HBaseConfiguration",
"org.apache.hadoop.util.ToolRunner"
] | import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.util.ToolRunner; | import org.apache.hadoop.hbase.*; import org.apache.hadoop.util.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,147,289 |
IPConnection getIpConnection(); | IPConnection getIpConnection(); | /**
* Returns the value of the '<em><b>Ip Connection</b></em>' attribute.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Ip Connection</em>' attribute isn't clear,
* there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
*
* @retur... | Returns the value of the 'Ip Connection' attribute. If the meaning of the 'Ip Connection' attribute isn't clear, there really should be more of a description here... | getIpConnection | {
"repo_name": "mvolaart/openhab",
"path": "bundles/binding/org.openhab.binding.tinkerforge/src/main/java/org/openhab/binding/tinkerforge/internal/model/MBrickd.java",
"license": "epl-1.0",
"size": 15721
} | [
"com.tinkerforge.IPConnection"
] | import com.tinkerforge.IPConnection; | import com.tinkerforge.*; | [
"com.tinkerforge"
] | com.tinkerforge; | 245,043 |
public static AttributeMetaData createPredictionMetaData(AttributeMetaData labelMetaData) {
AttributeMetaData result = labelMetaData.clone();
result.setName("prediction(" + result.getName() + ")");
result.setRole(Attributes.PREDICTION_NAME);
return result;
}
| static AttributeMetaData function(AttributeMetaData labelMetaData) { AttributeMetaData result = labelMetaData.clone(); result.setName(STR + result.getName() + ")"); result.setRole(Attributes.PREDICTION_NAME); return result; } | /**
* This method returns a AttributeMetaData object for the prediction attribute created on
* applying a model on an exampleset with the given label.
*/ | This method returns a AttributeMetaData object for the prediction attribute created on applying a model on an exampleset with the given label | createPredictionMetaData | {
"repo_name": "aborg0/rapidminer-studio",
"path": "src/main/java/com/rapidminer/operator/ports/metadata/AttributeMetaData.java",
"license": "agpl-3.0",
"size": 20875
} | [
"com.rapidminer.example.Attributes"
] | import com.rapidminer.example.Attributes; | import com.rapidminer.example.*; | [
"com.rapidminer.example"
] | com.rapidminer.example; | 257,109 |
public void deletePage3ById( Page3EO page3EO, Component component )
{
SqlSession sqlSession = ConnectionFactory.getSqlSessionFactory().openSession();
try
{
if(SecUtils.checkAccess( component, accessMgr, GlobalIds.PAGE3_OBJNAME, GlobalIds.DELETE, page3EO.getCustomer() ))
... | void function( Page3EO page3EO, Component component ) { SqlSession sqlSession = ConnectionFactory.getSqlSessionFactory().openSession(); try { if(SecUtils.checkAccess( component, accessMgr, GlobalIds.PAGE3_OBJNAME, GlobalIds.DELETE, page3EO.getCustomer() )) { Page3Dao page3DaoMapper = sqlSession.getMapper( Page3Dao.clas... | /**
* Remove Page3 entity that matches id parameter.
*
* @param page3EO must be populated with {@link Page3EO#getCustomer()} and {@link Page3EO#getId()}.
*/ | Remove Page3 entity that matches id parameter | deletePage3ById | {
"repo_name": "johnpfield/apache-fortress-demo",
"path": "src/main/java/com/mycompany/dao/Page3DaoMgr.java",
"license": "unlicense",
"size": 8598
} | [
"com.mycompany.GlobalIds",
"org.apache.directory.fortress.web.control.SecUtils",
"org.apache.ibatis.session.SqlSession",
"org.apache.wicket.Component"
] | import com.mycompany.GlobalIds; import org.apache.directory.fortress.web.control.SecUtils; import org.apache.ibatis.session.SqlSession; import org.apache.wicket.Component; | import com.mycompany.*; import org.apache.directory.fortress.web.control.*; import org.apache.ibatis.session.*; import org.apache.wicket.*; | [
"com.mycompany",
"org.apache.directory",
"org.apache.ibatis",
"org.apache.wicket"
] | com.mycompany; org.apache.directory; org.apache.ibatis; org.apache.wicket; | 2,514,214 |
public LoadBalancerInner withFrontendIPConfigurations(List<FrontendIPConfigurationInner> frontendIPConfigurations) {
this.frontendIPConfigurations = frontendIPConfigurations;
return this;
} | LoadBalancerInner function(List<FrontendIPConfigurationInner> frontendIPConfigurations) { this.frontendIPConfigurations = frontendIPConfigurations; return this; } | /**
* Set the frontendIPConfigurations value.
*
* @param frontendIPConfigurations the frontendIPConfigurations value to set
* @return the LoadBalancerInner object itself.
*/ | Set the frontendIPConfigurations value | withFrontendIPConfigurations | {
"repo_name": "pomortaz/azure-sdk-for-java",
"path": "azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/LoadBalancerInner.java",
"license": "mit",
"size": 8731
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,599,108 |
void log(String containerId, String msg) throws IOException; | void log(String containerId, String msg) throws IOException; | /**
* Log to app master's log by child container
*
* @param containerId
* @param msg
* @throws IOException
*/ | Log to app master's log by child container | log | {
"repo_name": "ishark/incubator-apex-core",
"path": "engine/src/main/java/com/datatorrent/stram/api/StreamingContainerUmbilicalProtocol.java",
"license": "apache-2.0",
"size": 10253
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 793,160 |
public void updateLocation() {
Beacon closestBeaconOrNearable = getClosestNearableOrBeacon();
Log.d(TAG, "Updating location");
Log.d(TAG, "Pinpointed coordinates: " + pinpointedCoordinates + " building: " +
pinpointedBuildingName + " floor: " + pinpointedFloor);
if ... | void function() { Beacon closestBeaconOrNearable = getClosestNearableOrBeacon(); Log.d(TAG, STR); Log.d(TAG, STR + pinpointedCoordinates + STR + pinpointedBuildingName + STR + pinpointedFloor); if (closestBeaconOrNearable != null) { Log.d(TAG, STR + closestBeaconOrNearable.getName()); } else { Log.d(TAG, STR); } Log.d(... | /**
* Updates location based on most accurate location info available.
*/ | Updates location based on most accurate location info available | updateLocation | {
"repo_name": "IoSL-INav/android",
"path": "app/src/main/java/de/tu_berlin/indoornavigation/singletons/LocationSharingSingleton.java",
"license": "apache-2.0",
"size": 10800
} | [
"android.util.Log",
"de.tu_berlin.indoornavigation.entities.Beacon",
"org.json.JSONException",
"org.json.JSONObject"
] | import android.util.Log; import de.tu_berlin.indoornavigation.entities.Beacon; import org.json.JSONException; import org.json.JSONObject; | import android.util.*; import de.tu_berlin.indoornavigation.entities.*; import org.json.*; | [
"android.util",
"de.tu_berlin.indoornavigation",
"org.json"
] | android.util; de.tu_berlin.indoornavigation; org.json; | 627,024 |
private String getLaf() {
if(laf == null){
return LookAndFeelFactory.DEFAULT_LAF;
}
return laf;
} | String function() { if(laf == null){ return LookAndFeelFactory.DEFAULT_LAF; } return laf; } | /**
* This method is only valid after readConfig() or validateConfig() have been run
* @return Returns the Look And Feel class.
*/ | This method is only valid after readConfig() or validateConfig() have been run | getLaf | {
"repo_name": "neoautus/lucidj",
"path": "extras/AntInstaller/AntInstaller-beta0.8/src_ext/org/tp23/antinstaller/taskdefs/Installer.java",
"license": "apache-2.0",
"size": 12989
} | [
"org.tp23.antinstaller.renderer.swing.plaf.LookAndFeelFactory"
] | import org.tp23.antinstaller.renderer.swing.plaf.LookAndFeelFactory; | import org.tp23.antinstaller.renderer.swing.plaf.*; | [
"org.tp23.antinstaller"
] | org.tp23.antinstaller; | 855,192 |
public void onPrev(Function callback) {
peer.onPrev(callback);
} | void function(Function callback) { peer.onPrev(callback); } | /**
* Invoked after every click on a "Prev" button.
*
* @param callback
*/ | Invoked after every click on a "Prev" button | onPrev | {
"repo_name": "eemi2010/gwt-tour",
"path": "src/main/java/com/eemi/gwt/tour/client/Tour.java",
"license": "apache-2.0",
"size": 7562
} | [
"com.eemi.gwt.tour.client.jso.Function"
] | import com.eemi.gwt.tour.client.jso.Function; | import com.eemi.gwt.tour.client.jso.*; | [
"com.eemi.gwt"
] | com.eemi.gwt; | 1,770,916 |
public boolean displayYesNoMessage(String message, String title) {
boolean retVal;
int dialogResult = JOptionPane.showConfirmDialog(this, message, title,
JOptionPane.YES_NO_OPTION);
if (dialogResult == JOptionPane.YES_OPTION) {
retVal = true;
} else {
retVal = false;
}
return retVal;
... | boolean function(String message, String title) { boolean retVal; int dialogResult = JOptionPane.showConfirmDialog(this, message, title, JOptionPane.YES_NO_OPTION); if (dialogResult == JOptionPane.YES_OPTION) { retVal = true; } else { retVal = false; } return retVal; } | /**
* Display a Yes/No JOption pane to the user
*
* @param message
* Message to be displayed in the main box
* @param title
* Title of the JOptionPane window
* @return boolean true if the user selected yes, false otherwise
*/ | Display a Yes/No JOption pane to the user | displayYesNoMessage | {
"repo_name": "JacobMDavidson/farkle-csc478",
"path": "farkle-csc478/src/main/java/com/lotsofun/farkle/FarkleUI.java",
"license": "mit",
"size": 56050
} | [
"javax.swing.JOptionPane"
] | import javax.swing.JOptionPane; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 404,782 |
@Test
public void testFindAllPathUnderDistance(){
defaultTrainRoutes.addRoute("AB5");
defaultTrainRoutes.addRoute("BC4");
defaultTrainRoutes.addRoute("CD8");
defaultTrainRoutes.addRoute("DC8");
defaultTrainRoutes.addRoute("DE6");
defaultTrainRoutes.addRoute("AD5"... | void function(){ defaultTrainRoutes.addRoute("AB5"); defaultTrainRoutes.addRoute("BC4"); defaultTrainRoutes.addRoute("CD8"); defaultTrainRoutes.addRoute("DC8"); defaultTrainRoutes.addRoute("DE6"); defaultTrainRoutes.addRoute("AD5"); defaultTrainRoutes.addRoute("CE2"); defaultTrainRoutes.addRoute("EB3"); defaultTrainRou... | /**
* ***** findAllPathUnderDistance test Cases ***
*/ | findAllPathUnderDistance test Cases | testFindAllPathUnderDistance | {
"repo_name": "jiwilson/TrainStationPuzzle",
"path": "src/main/test/trainstation/command/DefaultTrainRoutesTest.java",
"license": "apache-2.0",
"size": 6446
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 1,367,955 |
public void saveConfig() {
readRecentURI();
final boolean optionPreview = (preview != null) && preview.isSelected();
final boolean optionShowHiddenFiles = !isFileHidingEnabled();
final String optionCharset = (charsetButton != null) ? getSelectedCharset().name() : null;
File optionCurrentDir = getCurrent... | void function() { readRecentURI(); final boolean optionPreview = (preview != null) && preview.isSelected(); final boolean optionShowHiddenFiles = !isFileHidingEnabled(); final String optionCharset = (charsetButton != null) ? getSelectedCharset().name() : null; File optionCurrentDir = getCurrentDirectory(); final String... | /**
* Saves settings of this file chooser to the default configuration file.
*/ | Saves settings of this file chooser to the default configuration file | saveConfig | {
"repo_name": "stuffer2325/Makagiga",
"path": "src/org/makagiga/commons/swing/MFileChooser.java",
"license": "apache-2.0",
"size": 19584
} | [
"java.io.File",
"org.makagiga.commons.Globals"
] | import java.io.File; import org.makagiga.commons.Globals; | import java.io.*; import org.makagiga.commons.*; | [
"java.io",
"org.makagiga.commons"
] | java.io; org.makagiga.commons; | 1,298,226 |
public void markResourceAsVisitedBy(CmsObject cms, String resourcePath, CmsUser user) throws CmsException {
CmsResource resource = cms.readResource(resourcePath, CmsResourceFilter.ALL);
markResourceAsVisitedBy(cms, resource, user);
} | void function(CmsObject cms, String resourcePath, CmsUser user) throws CmsException { CmsResource resource = cms.readResource(resourcePath, CmsResourceFilter.ALL); markResourceAsVisitedBy(cms, resource, user); } | /**
* Mark the given resource as visited by the user.<p>
*
* @param cms the current users context
* @param resourcePath the name of the resource to mark as visited
* @param user the user that visited the resource
*
* @throws CmsException if something goes wrong
*/ | Mark the given resource as visited by the user | markResourceAsVisitedBy | {
"repo_name": "victos/opencms-core",
"path": "src/org/opencms/db/CmsSubscriptionManager.java",
"license": "lgpl-2.1",
"size": 18365
} | [
"org.opencms.file.CmsObject",
"org.opencms.file.CmsResource",
"org.opencms.file.CmsResourceFilter",
"org.opencms.file.CmsUser",
"org.opencms.main.CmsException"
] | import org.opencms.file.CmsObject; import org.opencms.file.CmsResource; import org.opencms.file.CmsResourceFilter; import org.opencms.file.CmsUser; import org.opencms.main.CmsException; | import org.opencms.file.*; import org.opencms.main.*; | [
"org.opencms.file",
"org.opencms.main"
] | org.opencms.file; org.opencms.main; | 1,766,109 |
@Test(expectedExceptions = IllegalArgumentException.class)
public void testSubSeriesByInstantsBadRange2() {
final InstantObjectTimeSeries<Integer> dts = ImmutableInstantObjectTimeSeries.<Integer>builder()
.put(toInstant(LocalDate.of(2010, 2, 8)), 2)
.put(toInstant(LocalDate.of(2010, 3, 8)), 3)
... | @Test(expectedExceptions = IllegalArgumentException.class) void function() { final InstantObjectTimeSeries<Integer> dts = ImmutableInstantObjectTimeSeries.<Integer>builder() .put(toInstant(LocalDate.of(2010, 2, 8)), 2) .put(toInstant(LocalDate.of(2010, 3, 8)), 3) .put(toInstant(LocalDate.of(2010, 4, 8)), 5) .put(toInst... | /**
* Tests the behaviour when the second instant is before the first.
*/ | Tests the behaviour when the second instant is before the first | testSubSeriesByInstantsBadRange2 | {
"repo_name": "McLeodMoores/starling",
"path": "projects/time-series/src/test/java/com/opengamma/timeseries/precise/instant/ImmutableInstantObjectTimeSeriesTest.java",
"license": "apache-2.0",
"size": 51790
} | [
"org.testng.annotations.Test",
"org.threeten.bp.LocalDate"
] | import org.testng.annotations.Test; import org.threeten.bp.LocalDate; | import org.testng.annotations.*; import org.threeten.bp.*; | [
"org.testng.annotations",
"org.threeten.bp"
] | org.testng.annotations; org.threeten.bp; | 42,313 |
@Override
protected Object doConvert() throws Exception {
SpreadSheet result;
Map map;
Row row;
map = (Map) m_Input;
result = new DefaultSpreadSheet();
// header
row = result.getHeaderRow();
row.addCell("K").setContentAsString("Key");
row.addCell("V").setContentAsStrin... | Object function() throws Exception { SpreadSheet result; Map map; Row row; map = (Map) m_Input; result = new DefaultSpreadSheet(); row = result.getHeaderRow(); row.addCell("K").setContentAsString("Key"); row.addCell("V").setContentAsString("Value"); for (Object key: map.keySet()) { row = result.addRow(); row.addCell("K... | /**
* Performs the actual conversion.
*
* @return the converted data
* @throws Exception if something goes wrong with the conversion
*/ | Performs the actual conversion | doConvert | {
"repo_name": "waikato-datamining/adams-base",
"path": "adams-spreadsheet/src/main/java/adams/data/conversion/MapToSpreadSheet.java",
"license": "gpl-3.0",
"size": 2898
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,136,786 |
@Test
public void testRebalanceWithIndex() throws Exception {
vm0.invoke(() -> createAccessor());
vm1.invoke(() -> createPartitionedRegion());
vm2.invoke(() -> createPartitionedRegion());
vm1.invoke(() -> createIndex(INDEX_NAME, "r.score", SEPARATOR + regionName + " r"));
// Do Puts
vm1.in... | void function() throws Exception { vm0.invoke(() -> createAccessor()); vm1.invoke(() -> createPartitionedRegion()); vm2.invoke(() -> createPartitionedRegion()); vm1.invoke(() -> createIndex(INDEX_NAME, STR, SEPARATOR + regionName + STR)); vm1.invoke(STR, () -> { Region region = cacheRule.getCache().getRegion(regionName... | /**
* 1. Indexes and Buckets are created on several nodes <br>
* 2. Buckets are moved <br>
* 3. Check to make sure we don't have lingering bucket indexes with bucket regions already
* destroyed
*/ | 1. Indexes and Buckets are created on several nodes 2. Buckets are moved 3. Check to make sure we don't have lingering bucket indexes with bucket regions already destroyed | testRebalanceWithIndex | {
"repo_name": "smgoller/geode",
"path": "geode-core/src/distributedTest/java/org/apache/geode/internal/cache/PRWithIndexAfterRebalanceRegressionTest.java",
"license": "apache-2.0",
"size": 6084
} | [
"org.apache.geode.cache.Region"
] | import org.apache.geode.cache.Region; | import org.apache.geode.cache.*; | [
"org.apache.geode"
] | org.apache.geode; | 1,764,060 |
@WebMethod(operationName = "GetRecordingJobConfiguration", action = "http://www.onvif.org/ver10/recording/wsdl/GetRecordingJobConfiguration")
@RequestWrapper(localName = "GetRecordingJobConfiguration", targetNamespace = "http://www.onvif.org/ver10/recording/wsdl", className = "org.onvif.ver10.recording.wsdl.Get... | @WebMethod(operationName = STR, action = "http: @RequestWrapper(localName = STR, targetNamespace = "http: @ResponseWrapper(localName = "GetRecordingJobConfigurationResponseSTRhttp: @WebResult(name = "JobConfigurationSTRhttp: org.onvif.ver10.schema.RecordingJobConfiguration function( @WebParam(name = "JobTokenSTRhttp: j... | /**
* GetRecordingJobConfiguration shall return the current configuration for a
* recording job.
*
*/ | GetRecordingJobConfiguration shall return the current configuration for a recording job | getRecordingJobConfiguration | {
"repo_name": "fpompermaier/onvif",
"path": "onvif-ws-client/src/main/java/org/onvif/ver10/recording/wsdl/RecordingPort.java",
"license": "apache-2.0",
"size": 24757
} | [
"javax.jws.WebMethod",
"javax.jws.WebParam",
"javax.jws.WebResult",
"javax.xml.ws.RequestWrapper",
"javax.xml.ws.ResponseWrapper"
] | import javax.jws.WebMethod; import javax.jws.WebParam; import javax.jws.WebResult; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; | import javax.jws.*; import javax.xml.ws.*; | [
"javax.jws",
"javax.xml"
] | javax.jws; javax.xml; | 2,744,314 |
public static void hasDeclaredPrivateNameOrThrow(ExecutionContext cx, String name) {
for (LexicalEnvironment<?> env = cx.getLexicalEnvironment(); env != null; env = env.getOuter()) {
EnvironmentRecord envRec = env.getEnvRec();
if (!(envRec instanceof DeclarativeEnvironmentRecord)) {
... | static void function(ExecutionContext cx, String name) { for (LexicalEnvironment<?> env = cx.getLexicalEnvironment(); env != null; env = env.getOuter()) { EnvironmentRecord envRec = env.getEnvRec(); if (!(envRec instanceof DeclarativeEnvironmentRecord)) { continue; } DeclarativeEnvironmentRecord declEnvRev = (Declarati... | /**
* Extension: Class Fields
*
* @param cx
* the execution context
* @param name
* the binding name
*/ | Extension: Class Fields | hasDeclaredPrivateNameOrThrow | {
"repo_name": "anba/es6draft",
"path": "src/main/java/com/github/anba/es6draft/runtime/language/DeclarationOperations.java",
"license": "mit",
"size": 8462
} | [
"com.github.anba.es6draft.runtime.DeclarativeEnvironmentRecord",
"com.github.anba.es6draft.runtime.EnvironmentRecord",
"com.github.anba.es6draft.runtime.ExecutionContext",
"com.github.anba.es6draft.runtime.LexicalEnvironment",
"com.github.anba.es6draft.runtime.internal.Errors",
"com.github.anba.es6draft.r... | import com.github.anba.es6draft.runtime.DeclarativeEnvironmentRecord; import com.github.anba.es6draft.runtime.EnvironmentRecord; import com.github.anba.es6draft.runtime.ExecutionContext; import com.github.anba.es6draft.runtime.LexicalEnvironment; import com.github.anba.es6draft.runtime.internal.Errors; import com.githu... | import com.github.anba.es6draft.runtime.*; import com.github.anba.es6draft.runtime.internal.*; | [
"com.github.anba"
] | com.github.anba; | 1,065,113 |
protected void processCommandReports(HeartBeat heartbeat, long now) throws AmbariException {
processCommandReports(heartbeat.getReports(), heartbeat.getHostname(), now);
} | void function(HeartBeat heartbeat, long now) throws AmbariException { processCommandReports(heartbeat.getReports(), heartbeat.getHostname(), now); } | /**
* Process reports of tasks executed on agents
*
* @param heartbeat heartbeat to process
* @param now cached current time
* @throws AmbariException
*/ | Process reports of tasks executed on agents | processCommandReports | {
"repo_name": "sekikn/ambari",
"path": "ambari-server/src/main/java/org/apache/ambari/server/agent/HeartbeatProcessor.java",
"license": "apache-2.0",
"size": 32918
} | [
"org.apache.ambari.server.AmbariException"
] | import org.apache.ambari.server.AmbariException; | import org.apache.ambari.server.*; | [
"org.apache.ambari"
] | org.apache.ambari; | 1,444,046 |
public ImmutableSortedSet<SourcePath> getFiles() {
return files;
} | ImmutableSortedSet<SourcePath> function() { return files; } | /**
* Returns the set of files to copy for this resource rule.
*/ | Returns the set of files to copy for this resource rule | getFiles | {
"repo_name": "mread/buck",
"path": "src/com/facebook/buck/apple/AppleResource.java",
"license": "apache-2.0",
"size": 5478
} | [
"com.facebook.buck.rules.SourcePath",
"com.google.common.collect.ImmutableSortedSet"
] | import com.facebook.buck.rules.SourcePath; import com.google.common.collect.ImmutableSortedSet; | import com.facebook.buck.rules.*; import com.google.common.collect.*; | [
"com.facebook.buck",
"com.google.common"
] | com.facebook.buck; com.google.common; | 496,815 |
private double getCountAllTfDim(final String sbKu,
final String gu,
final Integer wdm,
final GerinneGeschlGemeindeReportDialog.Art art,
final Integer tfFrom,
final Integer tfTill,
final Integer dimFrom,
final Integer dimTill) {
... | double function(final String sbKu, final String gu, final Integer wdm, final GerinneGeschlGemeindeReportDialog.Art art, final Integer tfFrom, final Integer tfTill, final Integer dimFrom, final Integer dimTill) { final List<SbPartObjGeschl> gemList = gemPartMap.get(sbKu); int count = 0; for (final SbPartObjGeschl tmp : ... | /**
* DOCUMENT ME!
*
* @param sbKu DOCUMENT ME!
* @param gu gew DOCUMENT ME!
* @param wdm DOCUMENT ME!
* @param art DOCUMENT ME!
* @param tfFrom DOCUMENT ME!
* @param tfTill DOCUMENT ME!
* @param dimFrom DOCUMENT ME!
* @param dim... | DOCUMENT ME | getCountAllTfDim | {
"repo_name": "cismet/watergis-client",
"path": "src/main/java/de/cismet/watergis/reports/GerinneGSbReport.java",
"license": "lgpl-3.0",
"size": 87145
} | [
"de.cismet.watergis.gui.dialog.GerinneGeschlGemeindeReportDialog",
"de.cismet.watergis.reports.types.SbPartObjGeschl",
"java.util.List"
] | import de.cismet.watergis.gui.dialog.GerinneGeschlGemeindeReportDialog; import de.cismet.watergis.reports.types.SbPartObjGeschl; import java.util.List; | import de.cismet.watergis.gui.dialog.*; import de.cismet.watergis.reports.types.*; import java.util.*; | [
"de.cismet.watergis",
"java.util"
] | de.cismet.watergis; java.util; | 2,254,552 |
void checkReadCaseInstance(CaseExecution caseExecution); | void checkReadCaseInstance(CaseExecution caseExecution); | /**
* Check if it is allowed to read a case instance of the given case execution.
*/ | Check if it is allowed to read a case instance of the given case execution | checkReadCaseInstance | {
"repo_name": "Diaskhan/jetbpm",
"path": "camunda-bpm-platform-master/engine/src/main/java/org/camunda/bpm/engine/impl/cfg/CommandChecker.java",
"license": "apache-2.0",
"size": 9500
} | [
"org.camunda.bpm.engine.runtime.CaseExecution"
] | import org.camunda.bpm.engine.runtime.CaseExecution; | import org.camunda.bpm.engine.runtime.*; | [
"org.camunda.bpm"
] | org.camunda.bpm; | 983,866 |
public AceComponent getSubcomponent(String key) throws IOException {
return new AceComponent(this.getRawSubcomponent(key));
} | AceComponent function(String key) throws IOException { return new AceComponent(this.getRawSubcomponent(key)); } | /**
* Return an AceComponent for the key of this component.
* <p>
* <strong>NOTE:</strong> All base component types use this method to
* return specific objects for their use. Please use those methods
* instead.
* <p>
* Call {@link #getRawSubcomponent} and return the AceComponent for ... | Return an AceComponent for the key of this component. return specific objects for their use. Please use those methods instead. Call <code>#getRawSubcomponent</code> and return the AceComponent for that object | getSubcomponent | {
"repo_name": "MengZhang/ace-core",
"path": "src/main/java/org/agmip/ace/AceComponent.java",
"license": "bsd-3-clause",
"size": 13609
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,366,262 |
@SuppressWarnings("unchecked")
public <T> JsonStringMap<T> createMapDtoFromJson(Reader json, Class<T> dtoInterface) throws IOException {
final DtoProvider<T> dtoProvider = getDtoProvider(dtoInterface);
final Map<String, JsonElement> map;
try {
map = gson.fromJson(json, mapTyp... | @SuppressWarnings(STR) <T> JsonStringMap<T> function(Reader json, Class<T> dtoInterface) throws IOException { final DtoProvider<T> dtoProvider = getDtoProvider(dtoInterface); final Map<String, JsonElement> map; try { map = gson.fromJson(json, mapTypeCache.getUnchecked(JsonElement.class)); } catch (JsonSyntaxException e... | /**
* Parses the JSON data from the specified reader into map of objects of the specified type.
*
* @param json
* JSON data
* @param dtoInterface
* DTO interface
* @return map of DTO
* @throws IllegalArgumentException
* if can't provide any implementa... | Parses the JSON data from the specified reader into map of objects of the specified type | createMapDtoFromJson | {
"repo_name": "slemeur/che",
"path": "core/che-core-api-dto/src/main/java/org/eclipse/che/dto/server/DtoFactory.java",
"license": "epl-1.0",
"size": 15802
} | [
"com.google.gson.JsonElement",
"com.google.gson.JsonSyntaxException",
"java.io.IOException",
"java.io.Reader",
"java.util.LinkedHashMap",
"java.util.Map",
"org.eclipse.che.dto.shared.JsonStringMap"
] | import com.google.gson.JsonElement; import com.google.gson.JsonSyntaxException; import java.io.IOException; import java.io.Reader; import java.util.LinkedHashMap; import java.util.Map; import org.eclipse.che.dto.shared.JsonStringMap; | import com.google.gson.*; import java.io.*; import java.util.*; import org.eclipse.che.dto.shared.*; | [
"com.google.gson",
"java.io",
"java.util",
"org.eclipse.che"
] | com.google.gson; java.io; java.util; org.eclipse.che; | 2,772,789 |
public T getPrev(Cursor<T> c) throws Exception {
DoublyLinkedListCursor<T> dllc = (DoublyLinkedListCursor<T>) c;
if (this.hasPrev(dllc)) {
return dllc.pos.prev.val;
} else {
throw new NoSuchElementException("at beginning of list");
}
} // getPrev(Cursor<T>)
| T function(Cursor<T> c) throws Exception { DoublyLinkedListCursor<T> dllc = (DoublyLinkedListCursor<T>) c; if (this.hasPrev(dllc)) { return dllc.pos.prev.val; } else { throw new NoSuchElementException(STR); } } | /**
* Get the element immediately before the Cursor<T>.
*
* @pre The Cursor<T> is valid and associated with this list The Cursor<T>
* is not at the front of the list
* @throws Exception
* If the preconditions are not met
*/ | Get the element immediately before the Cursor | getPrev | {
"repo_name": "goldstei1/csc207-hw7",
"path": "src/edu/grinnell/csc207/goldstei1/LinkedLists/DoublyLinkedList.java",
"license": "lgpl-3.0",
"size": 15419
} | [
"java.util.NoSuchElementException"
] | import java.util.NoSuchElementException; | import java.util.*; | [
"java.util"
] | java.util; | 1,520,835 |
@Override
public void onNeighborBlockChange(World world, int x, int y, int z, Block block)
{
//super.onNeighborBlockChange(world, x, y, z, block);
this.checkForHarden(world, x, y, z);
}
| void function(World world, int x, int y, int z, Block block) { this.checkForHarden(world, x, y, z); } | /**
* Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are
* their own) Args: x, y, z, neighbor blockID
*/ | Lets the block know when one of its neighbor changes. Doesn't know which neighbor changed (coordinates passed are their own) Args: x, y, z, neighbor blockID | onNeighborBlockChange | {
"repo_name": "lipki/TFCNT",
"path": "src/Common/com/bioxx/tfc/Blocks/Liquids/BlockCustomLiquid.java",
"license": "gpl-3.0",
"size": 9554
} | [
"net.minecraft.block.Block",
"net.minecraft.world.World"
] | import net.minecraft.block.Block; import net.minecraft.world.World; | import net.minecraft.block.*; import net.minecraft.world.*; | [
"net.minecraft.block",
"net.minecraft.world"
] | net.minecraft.block; net.minecraft.world; | 1,504,821 |
public void templateBillingAddress(BillingAddress billingAddress); | void function(BillingAddress billingAddress); | /**
* Sets billing address fields based on the specified Billing Address.
*
* @param billingAddress the specified Billing Address.
*/ | Sets billing address fields based on the specified Billing Address | templateBillingAddress | {
"repo_name": "quikkian-ua-devops/will-financials",
"path": "kfs-purap/src/main/java/org/kuali/kfs/module/purap/document/PurchasingDocument.java",
"license": "agpl-3.0",
"size": 17311
} | [
"org.kuali.kfs.module.purap.businessobject.BillingAddress"
] | import org.kuali.kfs.module.purap.businessobject.BillingAddress; | import org.kuali.kfs.module.purap.businessobject.*; | [
"org.kuali.kfs"
] | org.kuali.kfs; | 1,105,507 |
public boolean removeChangeEventListener(WalletChangeEventListener listener) {
return ListenerRegistration.removeFromList(listener, changeListeners);
} | boolean function(WalletChangeEventListener listener) { return ListenerRegistration.removeFromList(listener, changeListeners); } | /**
* Removes the given event listener object. Returns true if the listener was removed, false if that listener
* was never added.
*/ | Removes the given event listener object. Returns true if the listener was removed, false if that listener was never added | removeChangeEventListener | {
"repo_name": "bitcoinj/bitcoinj",
"path": "core/src/main/java/org/bitcoinj/wallet/Wallet.java",
"license": "apache-2.0",
"size": 267304
} | [
"org.bitcoinj.utils.ListenerRegistration",
"org.bitcoinj.wallet.listeners.WalletChangeEventListener"
] | import org.bitcoinj.utils.ListenerRegistration; import org.bitcoinj.wallet.listeners.WalletChangeEventListener; | import org.bitcoinj.utils.*; import org.bitcoinj.wallet.listeners.*; | [
"org.bitcoinj.utils",
"org.bitcoinj.wallet"
] | org.bitcoinj.utils; org.bitcoinj.wallet; | 2,791,171 |
public void visit(AbstractMethod element)
{
// create XML element for this node
org.w3c.dom.Element elem = createElement(element);
elem.setAttribute("methodimpl.infusion", element.getMethodImpl().getGlobalId().getInfusion());
elem.setAttribute("methodimpl.entity_id", "" + element.getMethodImpl().getGlobalI... | void function(AbstractMethod element) { org.w3c.dom.Element elem = createElement(element); elem.setAttribute(STR, element.getMethodImpl().getGlobalId().getInfusion()); elem.setAttribute(STR, STRmethoddef.infusionSTRmethoddef.entity_idSTR" + element.getMethodDef().getGlobalId().getEntityId()); } | /**
* Creates an XML representation of an AbstractMethod element.
*/ | Creates an XML representation of an AbstractMethod element | visit | {
"repo_name": "RWTH-OS/ostfriesentee",
"path": "infuser/src/org/csiro/darjeeling/infuser/outputphase/HeaderVisitor.java",
"license": "lgpl-3.0",
"size": 9267
} | [
"org.csiro.darjeeling.infuser.structure.Element",
"org.csiro.darjeeling.infuser.structure.elements.AbstractMethod"
] | import org.csiro.darjeeling.infuser.structure.Element; import org.csiro.darjeeling.infuser.structure.elements.AbstractMethod; | import org.csiro.darjeeling.infuser.structure.*; import org.csiro.darjeeling.infuser.structure.elements.*; | [
"org.csiro.darjeeling"
] | org.csiro.darjeeling; | 1,567,189 |
interface WithUserWhitelistedIpRanges {
Update withUserWhitelistedIpRanges(List<String> userWhitelistedIpRanges);
} | interface WithUserWhitelistedIpRanges { Update withUserWhitelistedIpRanges(List<String> userWhitelistedIpRanges); } | /**
* Specifies userWhitelistedIpRanges.
*/ | Specifies userWhitelistedIpRanges | withUserWhitelistedIpRanges | {
"repo_name": "hovsepm/azure-sdk-for-java",
"path": "appservice/resource-manager/v2016_09_01/src/main/java/com/microsoft/azure/management/appservice/v2016_09_01/AppServiceEnvironmentResource.java",
"license": "mit",
"size": 19906
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,060,315 |
public okhttp3.Call deleteNamespacedRoleCall(
String name,
String namespace,
String pretty,
String dryRun,
Integer gracePeriodSeconds,
Boolean orphanDependents,
String propagationPolicy,
V1DeleteOptions body,
final ApiCallback _callback)
throws ApiException ... | okhttp3.Call function( String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; String localVarPath = STR .replaceAll("\\{" + "name... | /**
* Build call for deleteNamespacedRole
*
* @param name name of the Role (required)
* @param namespace object name and auth scope, such as for teams and projects (required)
* @param pretty If 'true', then the output is pretty printed. (optional)
* @param dryRun When present, indicates that m... | Build call for deleteNamespacedRole | deleteNamespacedRoleCall | {
"repo_name": "kubernetes-client/java",
"path": "kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java",
"license": "apache-2.0",
"size": 563123
} | [
"io.kubernetes.client.openapi.ApiCallback",
"io.kubernetes.client.openapi.ApiException",
"io.kubernetes.client.openapi.Pair",
"io.kubernetes.client.openapi.models.V1DeleteOptions",
"java.util.ArrayList",
"java.util.HashMap",
"java.util.List",
"java.util.Map"
] | import io.kubernetes.client.openapi.ApiCallback; import io.kubernetes.client.openapi.ApiException; import io.kubernetes.client.openapi.Pair; import io.kubernetes.client.openapi.models.V1DeleteOptions; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; | import io.kubernetes.client.openapi.*; import io.kubernetes.client.openapi.models.*; import java.util.*; | [
"io.kubernetes.client",
"java.util"
] | io.kubernetes.client; java.util; | 2,509,456 |
public void setFinancialDocumentMonth8LineAmount(KualiInteger financialDocumentMonth8LineAmount) {
this.financialDocumentMonth8LineAmount = financialDocumentMonth8LineAmount;
} | void function(KualiInteger financialDocumentMonth8LineAmount) { this.financialDocumentMonth8LineAmount = financialDocumentMonth8LineAmount; } | /**
* Sets the financialDocumentMonth8LineAmount attribute value.
*
* @param financialDocumentMonth8LineAmount The financialDocumentMonth8LineAmount to set.
*/ | Sets the financialDocumentMonth8LineAmount attribute value | setFinancialDocumentMonth8LineAmount | {
"repo_name": "Ariah-Group/Finance",
"path": "af_webapp/src/main/java/org/kuali/kfs/module/bc/businessobject/BudgetConstructionRequestMove.java",
"license": "apache-2.0",
"size": 18027
} | [
"org.kuali.rice.core.api.util.type.KualiInteger"
] | import org.kuali.rice.core.api.util.type.KualiInteger; | import org.kuali.rice.core.api.util.type.*; | [
"org.kuali.rice"
] | org.kuali.rice; | 671,527 |
@Nonnull
default ThrowableConsumer<U, X> pacceptThrows(T t, char value) {
return (u) -> this.acceptThrows(t, u, value);
} | default ThrowableConsumer<U, X> pacceptThrows(T t, char value) { return (u) -> this.acceptThrows(t, u, value); } | /**
* Applies this consumer partially to some arguments of this one, producing a {@link ThrowableConsumer} as result.
*
* @param t The first argument to this consumer used to partially apply this function
* @param value The third argument to this consumer used to partially apply this function
*... | Applies this consumer partially to some arguments of this one, producing a <code>ThrowableConsumer</code> as result | pacceptThrows | {
"repo_name": "Gridtec/lambda4j",
"path": "lambda4j/src-gen/main/java/at/gridtec/lambda4j/consumer/tri/obj/ThrowableBiObjCharConsumer.java",
"license": "apache-2.0",
"size": 38340
} | [
"at.gridtec.lambda4j.consumer.ThrowableConsumer"
] | import at.gridtec.lambda4j.consumer.ThrowableConsumer; | import at.gridtec.lambda4j.consumer.*; | [
"at.gridtec.lambda4j"
] | at.gridtec.lambda4j; | 1,051,965 |
public void drawItemStack(ItemStack stack, int xPos, int yPos) {
GL11.glTranslatef(0.0F, 0.0F, 32.0F);
this.zLevel = 100.0F;
itemRender.zLevel = 100.0F;
FontRenderer font = null;
if (stack != null)
font = stack.getItem().getFontRenderer(stack);
if (font == null)
font = fontRendererObj;
itemRender.r... | void function(ItemStack stack, int xPos, int yPos) { GL11.glTranslatef(0.0F, 0.0F, 32.0F); this.zLevel = 100.0F; itemRender.zLevel = 100.0F; FontRenderer font = null; if (stack != null) font = stack.getItem().getFontRenderer(stack); if (font == null) font = fontRendererObj; itemRender.renderItemAndEffectIntoGUI(font, t... | /**
* Draws the basic background texture centered on the screen.
*/ | Draws the basic background texture centered on the screen | drawItemStack | {
"repo_name": "bdew/ForestryMC",
"path": "src/main/java/forestry/core/gui/GuiForestry.java",
"license": "gpl-3.0",
"size": 17595
} | [
"net.minecraft.client.gui.FontRenderer",
"net.minecraft.item.ItemStack"
] | import net.minecraft.client.gui.FontRenderer; import net.minecraft.item.ItemStack; | import net.minecraft.client.gui.*; import net.minecraft.item.*; | [
"net.minecraft.client",
"net.minecraft.item"
] | net.minecraft.client; net.minecraft.item; | 2,106,778 |
void expectActualObject(NodeTraversal t, Node n, JSType type, String msg) {
if (!type.isObject()) {
mismatch(t, n, msg, type, OBJECT_TYPE);
}
} | void expectActualObject(NodeTraversal t, Node n, JSType type, String msg) { if (!type.isObject()) { mismatch(t, n, msg, type, OBJECT_TYPE); } } | /**
* Expect the type to be an object. Unlike expectObject, a type convertible
* to object is not acceptable.
*/ | Expect the type to be an object. Unlike expectObject, a type convertible to object is not acceptable | expectActualObject | {
"repo_name": "mprobst/closure-compiler",
"path": "src/com/google/javascript/jscomp/TypeValidator.java",
"license": "apache-2.0",
"size": 44913
} | [
"com.google.javascript.rhino.Node",
"com.google.javascript.rhino.jstype.JSType"
] | import com.google.javascript.rhino.Node; import com.google.javascript.rhino.jstype.JSType; | import com.google.javascript.rhino.*; import com.google.javascript.rhino.jstype.*; | [
"com.google.javascript"
] | com.google.javascript; | 1,461,153 |
@SuppressWarnings("unchecked")
@Override
protected List<SeriesObservation<?>> getSeriesObservationsFor(GetObservationRequest request, Collection<String> features,
Criterion filterCriterion, SosIndeterminateTime sosIndeterminateTime, Session session) throws OwsExceptionReport {
return get... | @SuppressWarnings(STR) List<SeriesObservation<?>> function(GetObservationRequest request, Collection<String> features, Criterion filterCriterion, SosIndeterminateTime sosIndeterminateTime, Session session) throws OwsExceptionReport { return getSeriesObservationCriteriaFor(request, features, filterCriterion, sosIndeterm... | /**
* Query series observations for GetObservation request, features, and
* filter criterion (typically a temporal filter) or an indeterminate time
* (first/latest). This method is private and accepts all possible arguments
* for request-based getSeriesObservationFor. Other public methods overload
... | Query series observations for GetObservation request, features, and filter criterion (typically a temporal filter) or an indeterminate time (first/latest). This method is private and accepts all possible arguments for request-based getSeriesObservationFor. Other public methods overload this method with sensible combina... | getSeriesObservationsFor | {
"repo_name": "ahuarte47/SOS",
"path": "hibernate/common/src/main/java/org/n52/sos/ds/hibernate/dao/observation/series/SeriesObservationDAO.java",
"license": "gpl-2.0",
"size": 8689
} | [
"java.util.Collection",
"java.util.List",
"org.hibernate.Session",
"org.hibernate.criterion.Criterion",
"org.n52.sos.ds.hibernate.entities.observation.series.SeriesObservation",
"org.n52.sos.ogc.ows.OwsExceptionReport",
"org.n52.sos.ogc.sos.SosConstants",
"org.n52.sos.request.GetObservationRequest"
] | import java.util.Collection; import java.util.List; import org.hibernate.Session; import org.hibernate.criterion.Criterion; import org.n52.sos.ds.hibernate.entities.observation.series.SeriesObservation; import org.n52.sos.ogc.ows.OwsExceptionReport; import org.n52.sos.ogc.sos.SosConstants; import org.n52.sos.request.Ge... | import java.util.*; import org.hibernate.*; import org.hibernate.criterion.*; import org.n52.sos.ds.hibernate.entities.observation.series.*; import org.n52.sos.ogc.ows.*; import org.n52.sos.ogc.sos.*; import org.n52.sos.request.*; | [
"java.util",
"org.hibernate",
"org.hibernate.criterion",
"org.n52.sos"
] | java.util; org.hibernate; org.hibernate.criterion; org.n52.sos; | 1,060,543 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.