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
NodeVisitor.VisitControl traverseNodeHierarchy(NodeType nodeTypeFilter, boolean indDepthFirst, NodeVisitor nodeVisitor);
NodeVisitor.VisitControl traverseNodeHierarchy(NodeType nodeTypeFilter, boolean indDepthFirst, NodeVisitor nodeVisitor);
/** * Traverses the Node hierarchy rooted at this ClassificationNode. * * @param nodeTypeFilter NodeType to visit. If null, all NodeType are visited. * @param indDepthFirst Indicates to perform a depth-first traversal instead of * parent-first. * @param nodeVisitor {@link NodeVisitor#visitNode} is c...
Traverses the Node hierarchy rooted at this ClassificationNode
traverseNodeHierarchy
{ "repo_name": "azyva/dragom-api", "path": "src/main/java/org/azyva/dragom/model/ClassificationNode.java", "license": "agpl-3.0", "size": 2002 }
[ "org.azyva.dragom.model.config.NodeType" ]
import org.azyva.dragom.model.config.NodeType;
import org.azyva.dragom.model.config.*;
[ "org.azyva.dragom" ]
org.azyva.dragom;
2,743,143
@PluginFactory public static AbstractJacksonLayout createLayout( // @formatter:off @PluginAttribute(value = "locationInfo", defaultBoolean = false) final boolean locationInfo, @PluginAttribute(value = "properties", defaultBoolean = false) final boolean properties, ...
static AbstractJacksonLayout function( @PluginAttribute(value = STR, defaultBoolean = false) final boolean locationInfo, @PluginAttribute(value = STR, defaultBoolean = false) final boolean properties, @PluginAttribute(value = STR, defaultBoolean = false) final boolean complete, @PluginAttribute(value = STR, defaultBool...
/** * Creates a JSON Layout. * * @param locationInfo * If "true", includes the location information in the generated JSON. * @param properties * If "true", includes the thread context in the generated JSON. * @param complete * If "true", includes the JSON hea...
Creates a JSON Layout
createLayout
{ "repo_name": "SourceStudyNotes/log4j2", "path": "src/main/java/org/apache/logging/log4j/core/layout/JsonLayout.java", "license": "apache-2.0", "size": 27834 }
[ "java.nio.charset.Charset", "org.apache.logging.log4j.core.config.plugins.PluginAttribute" ]
import java.nio.charset.Charset; import org.apache.logging.log4j.core.config.plugins.PluginAttribute;
import java.nio.charset.*; import org.apache.logging.log4j.core.config.plugins.*;
[ "java.nio", "org.apache.logging" ]
java.nio; org.apache.logging;
1,373,749
@Override @NotNull public DecoratorFactory getDecoratorFactory() { return AttributeStatementSetterDecoratorFactory.getInstance(); }
DecoratorFactory function() { return AttributeStatementSetterDecoratorFactory.getInstance(); }
/** * Retrieves the decorator factory. * @return such instance. */
Retrieves the decorator factory
getDecoratorFactory
{ "repo_name": "rydnr/queryj", "path": "queryj-templates-deprecated/src/main/java/org/acmsl/queryj/templates/dao/AttributesStatementSetterTemplateGenerator.java", "license": "gpl-2.0", "size": 2654 }
[ "org.acmsl.queryj.metadata.DecoratorFactory" ]
import org.acmsl.queryj.metadata.DecoratorFactory;
import org.acmsl.queryj.metadata.*;
[ "org.acmsl.queryj" ]
org.acmsl.queryj;
2,578,539
public Artifact j2objcPrunedArchive(Artifact unprunedArchive) { PathFragment prunedSourceArtifactPath = FileSystemUtils.appendWithoutExtension( unprunedArchive.getRootRelativePath(), "_pruned"); return ruleContext.getUniqueDirectoryArtifact( "_j2objc_pruned", prunedSourceArtifactPath, ...
Artifact function(Artifact unprunedArchive) { PathFragment prunedSourceArtifactPath = FileSystemUtils.appendWithoutExtension( unprunedArchive.getRootRelativePath(), STR); return ruleContext.getUniqueDirectoryArtifact( STR, prunedSourceArtifactPath, ruleContext.getBinOrGenfilesDirectory()); }
/** * Returns a static library archive with dead code/objects removed by J2ObjC dead code removal, * given the original unpruned static library containing J2ObjC-translated code. */
Returns a static library archive with dead code/objects removed by J2ObjC dead code removal, given the original unpruned static library containing J2ObjC-translated code
j2objcPrunedArchive
{ "repo_name": "mikelalcon/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/objc/IntermediateArtifacts.java", "license": "apache-2.0", "size": 15694 }
[ "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.vfs.FileSystemUtils", "com.google.devtools.build.lib.vfs.PathFragment" ]
import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.vfs.FileSystemUtils; import com.google.devtools.build.lib.vfs.PathFragment;
import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.vfs.*;
[ "com.google.devtools" ]
com.google.devtools;
1,196,923
public static java.util.Set extractPlanOfCareSet(ims.domain.ILightweightDomainFactory domainFactory, ims.nursing.vo.PlanOfCareLiteVoCollection voCollection) { return extractPlanOfCareSet(domainFactory, voCollection, null, new HashMap()); }
static java.util.Set function(ims.domain.ILightweightDomainFactory domainFactory, ims.nursing.vo.PlanOfCareLiteVoCollection voCollection) { return extractPlanOfCareSet(domainFactory, voCollection, null, new HashMap()); }
/** * Create the ims.nursing.domain.objects.PlanOfCare set from the value object collection. * @param domainFactory - used to create existing (persistent) domain objects. * @param voCollection - the collection of value objects */
Create the ims.nursing.domain.objects.PlanOfCare set from the value object collection
extractPlanOfCareSet
{ "repo_name": "open-health-hub/openMAXIMS", "path": "openmaxims_workspace/ValueObjects/src/ims/nursing/vo/domain/PlanOfCareLiteVoAssembler.java", "license": "agpl-3.0", "size": 18862 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
371,557
public void updateAE(long pk, String title, String host, int port, String cipher, String issuer, String user, String passwd, String fsGroupID, String desc, boolean checkHost) throws Exception { if (checkHost) { try { host = InetAddress.getByNam...
void function(long pk, String title, String host, int port, String cipher, String issuer, String user, String passwd, String fsGroupID, String desc, boolean checkHost) throws Exception { if (checkHost) { try { host = InetAddress.getByName(host).getCanonicalHostName(); } catch (UnknownHostException x) { throw new Illega...
/** * Adds (replace) a new AE Title. * * @param aet * Application Entity Title * @param host * Hostname or IP addr. * @param port * port number * @param cipher * String with cypher(s) to create a secure connection (seperated ...
Adds (replace) a new AE Title
updateAE
{ "repo_name": "medicayun/medicayundicom", "path": "dcm4jboss-all/tags/DCM4CHEE_2_13_0/dcm4jboss-sar/src/java/org/dcm4chex/archive/mbean/AEService.java", "license": "apache-2.0", "size": 13996 }
[ "java.net.InetAddress", "java.net.UnknownHostException", "org.dcm4che2.audit.message.SecurityAlertMessage", "org.dcm4chex.archive.ejb.interfaces.AEManager", "org.dcm4chex.archive.exceptions.UnknownAETException" ]
import java.net.InetAddress; import java.net.UnknownHostException; import org.dcm4che2.audit.message.SecurityAlertMessage; import org.dcm4chex.archive.ejb.interfaces.AEManager; import org.dcm4chex.archive.exceptions.UnknownAETException;
import java.net.*; import org.dcm4che2.audit.message.*; import org.dcm4chex.archive.ejb.interfaces.*; import org.dcm4chex.archive.exceptions.*;
[ "java.net", "org.dcm4che2.audit", "org.dcm4chex.archive" ]
java.net; org.dcm4che2.audit; org.dcm4chex.archive;
1,313,822
File res = getFile(fileID); if(res.isFile()) { return res; } else { return null; } }
File res = getFile(fileID); if(res.isFile()) { return res; } else { return null; } }
/** * Retrieves the file for the given fileID, or returns a null, if no such file exists. * @param fileID The id of the file to retrieve. * @return The requested file, or a null if no such file exists. */
Retrieves the file for the given fileID, or returns a null, if no such file exists
retrieveFile
{ "repo_name": "bitrepository/reference", "path": "bitrepository-reference-pillar/src/main/java/org/bitrepository/pillar/store/filearchive/ArchiveDirectory.java", "license": "lgpl-2.1", "size": 10405 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
831,347
public void testBug15141() throws Exception { try { createTable("testBug15141", "(field1 VARCHAR(32))"); this.stmt.executeUpdate("INSERT INTO testBug15141 VALUES ('abc')"); this.pstmt = this.conn.prepareStatement("select {d '1997-05-24'} FROM testBug15141"); ...
void function() throws Exception { try { createTable(STR, STR); this.stmt.executeUpdate(STR); this.pstmt = this.conn.prepareStatement(STR); this.rs = this.pstmt.executeQuery(); assertTrue(this.rs.next()); assertEquals(STR, this.rs.getString(1)); this.rs.close(); this.rs = null; this.pstmt.close(); this.pstmt = null; th...
/** * PreparedStatement should call EscapeProcessor.escapeSQL? * * @throws Exception * if the test fails */
PreparedStatement should call EscapeProcessor.escapeSQL
testBug15141
{ "repo_name": "seanbright/mysql-connector-j", "path": "src/testsuite/regression/StatementRegressionTest.java", "license": "gpl-2.0", "size": 331459 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet" ]
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,725,844
public static void setOptimalColumnWidth(JTable table, int col) { int width; TableColumn column; JTableHeader header; if ( (col >= 0) && (col < table.getColumnModel().getColumnCount()) ) { width = calcColumnWidth(table, col); if (width >= 0) { header = table.getTableHeader(); ...
static void function(JTable table, int col) { int width; TableColumn column; JTableHeader header; if ( (col >= 0) && (col < table.getColumnModel().getColumnCount()) ) { width = calcColumnWidth(table, col); if (width >= 0) { header = table.getTableHeader(); column = table.getColumnModel().getColumn(col); column.setPrefe...
/** * sets the optimal column width for the given column. * * @param table the table to work on * @param col the column index */
sets the optimal column width for the given column
setOptimalColumnWidth
{ "repo_name": "automenta/adams-core", "path": "src/main/java/adams/gui/core/JTableHelper.java", "license": "gpl-3.0", "size": 8907 }
[ "javax.swing.JTable", "javax.swing.table.JTableHeader", "javax.swing.table.TableColumn" ]
import javax.swing.JTable; import javax.swing.table.JTableHeader; import javax.swing.table.TableColumn;
import javax.swing.*; import javax.swing.table.*;
[ "javax.swing" ]
javax.swing;
1,894,398
public void testOneToManyUniJoin() { NucleusContext nucleusCtx = new PersistenceNucleusContextImpl("JPA", null); ClassLoaderResolver clr = nucleusCtx.getClassLoaderResolver(null); MetaDataManager metaDataMgr = new JPAMetaDataManager(nucleusCtx); PersistenceUnitMetaData pumd ...
void function() { NucleusContext nucleusCtx = new PersistenceNucleusContextImpl("JPA", null); ClassLoaderResolver clr = nucleusCtx.getClassLoaderResolver(null); MetaDataManager metaDataMgr = new JPAMetaDataManager(nucleusCtx); PersistenceUnitMetaData pumd = metaDataMgr.getMetaDataForPersistenceUnit(STR); metaDataMgr.lo...
/** * Test of JPA 1-N unidir JoinTable relation */
Test of JPA 1-N unidir JoinTable relation
testOneToManyUniJoin
{ "repo_name": "hopecee/texsts", "path": "jpa/general/src/test/org/datanucleus/tests/metadata/XMLTest.java", "license": "apache-2.0", "size": 35211 }
[ "org.datanucleus.ClassLoaderResolver", "org.datanucleus.NucleusContext", "org.datanucleus.PersistenceNucleusContextImpl", "org.datanucleus.api.jpa.metadata.JPAMetaDataManager", "org.datanucleus.metadata.AbstractMemberMetaData", "org.datanucleus.metadata.ClassMetaData", "org.datanucleus.metadata.ColumnMe...
import org.datanucleus.ClassLoaderResolver; import org.datanucleus.NucleusContext; import org.datanucleus.PersistenceNucleusContextImpl; import org.datanucleus.api.jpa.metadata.JPAMetaDataManager; import org.datanucleus.metadata.AbstractMemberMetaData; import org.datanucleus.metadata.ClassMetaData; import org.datanucle...
import org.datanucleus.*; import org.datanucleus.api.jpa.metadata.*; import org.datanucleus.metadata.*; import org.jpox.samples.models.company.*;
[ "org.datanucleus", "org.datanucleus.api", "org.datanucleus.metadata", "org.jpox.samples" ]
org.datanucleus; org.datanucleus.api; org.datanucleus.metadata; org.jpox.samples;
1,711,440
public void testOverwriteFormatterConfig() throws Exception { try { String formatterXml = createFormatterConfigXml("plain", "foobarx", true, 100); byte[] formatterBytes = formatterXml.getBytes("UTF-8"); CmsObject cms = getCmsObject(); cms.createResource( ...
void function() throws Exception { try { String formatterXml = createFormatterConfigXml("plain", STR, true, 100); byte[] formatterBytes = formatterXml.getBytes("UTF-8"); CmsObject cms = getCmsObject(); cms.createResource( STR, getTypeId(STR), formatterBytes, new ArrayList<CmsProperty>()); OpenCms.getADEManager().waitFo...
/** * Tests that the formatter cache is updated correctly. * * @throws Exception */
Tests that the formatter cache is updated correctly
testOverwriteFormatterConfig
{ "repo_name": "sbonoc/opencms-core", "path": "test/org/opencms/ade/configuration/formatters/TestFormatterConfiguration.java", "license": "lgpl-2.1", "size": 27775 }
[ "java.util.ArrayList", "java.util.Collection", "org.opencms.file.CmsFile", "org.opencms.file.CmsObject", "org.opencms.file.CmsProperty", "org.opencms.main.OpenCms", "org.opencms.xml.containerpage.CmsFormatterBean" ]
import java.util.ArrayList; import java.util.Collection; import org.opencms.file.CmsFile; import org.opencms.file.CmsObject; import org.opencms.file.CmsProperty; import org.opencms.main.OpenCms; import org.opencms.xml.containerpage.CmsFormatterBean;
import java.util.*; import org.opencms.file.*; import org.opencms.main.*; import org.opencms.xml.containerpage.*;
[ "java.util", "org.opencms.file", "org.opencms.main", "org.opencms.xml" ]
java.util; org.opencms.file; org.opencms.main; org.opencms.xml;
2,912,111
@Deprecated public static <E> Multiset<E> unmodifiableMultiset(ImmutableMultiset<E> multiset) { return checkNotNull(multiset); } static class UnmodifiableMultiset<E> extends ForwardingMultiset<E> implements Serializable { final Multiset<? extends E> delegate; UnmodifiableMultiset(Multiset<? extend...
static <E> Multiset<E> function(ImmutableMultiset<E> multiset) { return checkNotNull(multiset); } static class UnmodifiableMultiset<E> extends ForwardingMultiset<E> implements Serializable { final Multiset<? extends E> delegate; UnmodifiableMultiset(Multiset<? extends E> delegate) { this.delegate = delegate; }
/** * Simply returns its argument. * * @deprecated no need to use this * @since 10.0 */
Simply returns its argument
unmodifiableMultiset
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/guava25/collect/Multisets.java", "license": "mit", "size": 40326 }
[ "com.azure.cosmos.implementation.guava25.base.Preconditions", "java.io.Serializable" ]
import com.azure.cosmos.implementation.guava25.base.Preconditions; import java.io.Serializable;
import com.azure.cosmos.implementation.guava25.base.*; import java.io.*;
[ "com.azure.cosmos", "java.io" ]
com.azure.cosmos; java.io;
1,239,146
private void getList(List<DbxFileInfo> list) { Ebook ebook = new Ebook(); for (DbxFileInfo dfi : list) { if (dfi.isFolder) { try { getList(mDbxFileSystem.listFolder(dfi.path)); } catch (DbxException e) { Log.e(TAG, e.toString()); } } else { String[] s = df...
void function(List<DbxFileInfo> list) { Ebook ebook = new Ebook(); for (DbxFileInfo dfi : list) { if (dfi.isFolder) { try { getList(mDbxFileSystem.listFolder(dfi.path)); } catch (DbxException e) { Log.e(TAG, e.toString()); } } else { String[] s = dfi.path.getName().split("\\."); if (s[s.length - 1].equalsIgnoreCase("ep...
/** * Get the list of all DbxFileInfo with epub extension and saves it to local list * * @param list List of DbxFileInfo on Root Dropbox folder */
Get the list of all DbxFileInfo with epub extension and saves it to local list
getList
{ "repo_name": "dsaiztc/DropboxTest", "path": "src/com/dsaiztc/dropboxtest/MainActivity.java", "license": "mit", "size": 9213 }
[ "android.graphics.drawable.Drawable", "android.util.Log", "com.dropbox.sync.android.DbxException", "com.dropbox.sync.android.DbxFile", "com.dropbox.sync.android.DbxFileInfo", "com.dsaiztc.dropboxtest.model.Ebook", "java.io.IOException", "java.util.List", "javax.xml.parsers.DocumentBuilder", "javax...
import android.graphics.drawable.Drawable; import android.util.Log; import com.dropbox.sync.android.DbxException; import com.dropbox.sync.android.DbxFile; import com.dropbox.sync.android.DbxFileInfo; import com.dsaiztc.dropboxtest.model.Ebook; import java.io.IOException; import java.util.List; import javax.xml.parsers....
import android.graphics.drawable.*; import android.util.*; import com.dropbox.sync.android.*; import com.dsaiztc.dropboxtest.model.*; import java.io.*; import java.util.*; import javax.xml.parsers.*; import org.w3c.dom.*;
[ "android.graphics", "android.util", "com.dropbox.sync", "com.dsaiztc.dropboxtest", "java.io", "java.util", "javax.xml", "org.w3c.dom" ]
android.graphics; android.util; com.dropbox.sync; com.dsaiztc.dropboxtest; java.io; java.util; javax.xml; org.w3c.dom;
2,547,626
private void refill() { if (this.content.isEmpty() && !this.discardDeck.getCards().isEmpty()) { List<Card> tmpList = this.discardDeck.getCards(); Collections.shuffle(tmpList); this.content.addAll(tmpList); this.discardDeck.removeCards(); } }
void function() { if (this.content.isEmpty() && !this.discardDeck.getCards().isEmpty()) { List<Card> tmpList = this.discardDeck.getCards(); Collections.shuffle(tmpList); this.content.addAll(tmpList); this.discardDeck.removeCards(); } }
/** * Refills the sector deck with all the cards of its associated discard deck */
Refills the sector deck with all the cards of its associated discard deck
refill
{ "repo_name": "StateStrategyPOC/Client", "path": "src/main/java/decks/SectorDeck.java", "license": "apache-2.0", "size": 2100 }
[ "java.util.Collections", "java.util.List" ]
import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
722,745
@Test public final void testValueOf() { assertEquals(Language.GROOVY, Language.valueOf("GROOVY")); assertEquals(Language.JAVASCRIPT, Language.valueOf("JAVASCRIPT")); assertEquals(Language.PYTHON, Language.valueOf("PYTHON")); }
final void function() { assertEquals(Language.GROOVY, Language.valueOf(STR)); assertEquals(Language.JAVASCRIPT, Language.valueOf(STR)); assertEquals(Language.PYTHON, Language.valueOf(STR)); }
/** * Test of {@link Language#valueOf(String)}. */
Test of <code>Language#valueOf(String)</code>
testValueOf
{ "repo_name": "toastkidjp/script_runner", "path": "src/test/java/jp/toastkid/script/models/LanguageTest.java", "license": "epl-1.0", "size": 1586 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,903,431
public Adapter createUnaryExprAdapter() { return null; }
Adapter function() { return null; }
/** * Creates a new adapter for an object of class '{@link com.rockwellcollins.atc.agree.agree.UnaryExpr <em>Unary Expr</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway...
Creates a new adapter for an object of class '<code>com.rockwellcollins.atc.agree.agree.UnaryExpr Unary Expr</code>'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
createUnaryExprAdapter
{ "repo_name": "smaccm/smaccm", "path": "fm-workbench/agree/com.rockwellcollins.atc.agree/src-gen/com/rockwellcollins/atc/agree/agree/util/AgreeAdapterFactory.java", "license": "bsd-3-clause", "size": 66651 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
901,378
public static Intent makeIntent(Context context, Uri videoUri) { return new Intent(context, UploadVideoService.class) .setData(videoUri); }
static Intent function(Context context, Uri videoUri) { return new Intent(context, UploadVideoService.class) .setData(videoUri); }
/** * Factory method that makes the explicit intent another Activity * uses to call this Service. * * @param context * @param videoId * @return */
Factory method that makes the explicit intent another Activity uses to call this Service
makeIntent
{ "repo_name": "strawberrysocialist/mobilecloud-15", "path": "assignments/assignment3/video-app/src/vandy/mooc/video/android/model/services/UploadVideoService.java", "license": "apache-2.0", "size": 5491 }
[ "android.content.Context", "android.content.Intent", "android.net.Uri" ]
import android.content.Context; import android.content.Intent; import android.net.Uri;
import android.content.*; import android.net.*;
[ "android.content", "android.net" ]
android.content; android.net;
668,739
EList<Locale> getLocales();
EList<Locale> getLocales();
/** * Returns the value of the '<em><b>Locales</b></em>' attribute list. * The list contents are of type {@link java.util.Locale}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Locales</em>' attribute list isn't clear, there really should be more of a description * here... * <...
Returns the value of the 'Locales' attribute list. The list contents are of type <code>java.util.Locale</code>. If the meaning of the 'Locales' attribute list isn't clear, there really should be more of a description here...
getLocales
{ "repo_name": "sourcepit/b2", "path": "b2-model/gen/main/emf/org/sourcepit/b2/model/module/AbstractModule.java", "license": "apache-2.0", "size": 4807 }
[ "java.util.Locale", "org.eclipse.emf.common.util.EList" ]
import java.util.Locale; import org.eclipse.emf.common.util.EList;
import java.util.*; import org.eclipse.emf.common.util.*;
[ "java.util", "org.eclipse.emf" ]
java.util; org.eclipse.emf;
2,858,822
public void testCustomEntryTtl2() { final String name = this.getUniqueName(); final int timeout = 20; // ms final String key1 = "KEY1"; final String key2 = "KEY2"; final String value = "VALUE"; AttributesFactory factory = new AttributesFactory(getRegionAttributes()); // factory.setEnt...
void function() { final String name = this.getUniqueName(); final int timeout = 20; final String key1 = "KEY1"; final String key2 = "KEY2"; final String value = "VALUE"; AttributesFactory factory = new AttributesFactory(getRegionAttributes()); ExpirationAttributes expire2 = new ExpirationAttributes(timeout, ExpirationA...
/** * Verify that special entries don't expire but other entries in the region do */
Verify that special entries don't expire but other entries in the region do
testCustomEntryTtl2
{ "repo_name": "nchandrappa/incubator-geode", "path": "gemfire-core/src/test/java/com/gemstone/gemfire/cache30/RegionTestCase.java", "license": "apache-2.0", "size": 127762 }
[ "com.gemstone.gemfire.cache.AttributesFactory", "com.gemstone.gemfire.cache.EntryEvent", "com.gemstone.gemfire.cache.ExpirationAction", "com.gemstone.gemfire.cache.ExpirationAttributes" ]
import com.gemstone.gemfire.cache.AttributesFactory; import com.gemstone.gemfire.cache.EntryEvent; import com.gemstone.gemfire.cache.ExpirationAction; import com.gemstone.gemfire.cache.ExpirationAttributes;
import com.gemstone.gemfire.cache.*;
[ "com.gemstone.gemfire" ]
com.gemstone.gemfire;
1,335,943
public void testCycleDateStartTimerEvent() throws Exception { Clock previousClock = processEngineConfiguration.getClock(); Clock testClock = new DefaultClockImpl(); processEngineConfiguration.setClock(testClock); Calendar calendar = Calendar.getInstance(); calendar.set(202...
void function() throws Exception { Clock previousClock = processEngineConfiguration.getClock(); Clock testClock = new DefaultClockImpl(); processEngineConfiguration.setClock(testClock); Calendar calendar = Calendar.getInstance(); calendar.set(2025, Calendar.DECEMBER, 10, 0, 0, 0); testClock.setCurrentTime(calendar.getT...
/** * Timer repetition */
Timer repetition
testCycleDateStartTimerEvent
{ "repo_name": "zwets/flowable-engine", "path": "modules/flowable-engine/src/test/java/org/flowable/engine/test/bpmn/event/timer/StartTimerEventRepeatWithoutEndDateTest.java", "license": "apache-2.0", "size": 8780 }
[ "java.util.Calendar", "java.util.List", "org.flowable.engine.common.api.delegate.event.FlowableEngineEventType", "org.flowable.engine.common.api.delegate.event.FlowableEvent", "org.flowable.engine.common.impl.util.DefaultClockImpl", "org.flowable.engine.common.runtime.Clock", "org.flowable.engine.runtim...
import java.util.Calendar; import java.util.List; import org.flowable.engine.common.api.delegate.event.FlowableEngineEventType; import org.flowable.engine.common.api.delegate.event.FlowableEvent; import org.flowable.engine.common.impl.util.DefaultClockImpl; import org.flowable.engine.common.runtime.Clock; import org.fl...
import java.util.*; import org.flowable.engine.common.api.delegate.event.*; import org.flowable.engine.common.impl.util.*; import org.flowable.engine.common.runtime.*; import org.flowable.engine.runtime.*; import org.flowable.job.api.*;
[ "java.util", "org.flowable.engine", "org.flowable.job" ]
java.util; org.flowable.engine; org.flowable.job;
2,663,429
public void setOwner(final Path f, final String username, final String groupname) throws AccessControlException, UnsupportedFileSystemException, FileNotFoundException, IOException { if ((username == null) && (groupname == null)) { throw new HadoopIllegalArgumentException( "userna...
void function(final Path f, final String username, final String groupname) throws AccessControlException, UnsupportedFileSystemException, FileNotFoundException, IOException { if ((username == null) && (groupname == null)) { throw new HadoopIllegalArgumentException( STR); }
/** * Set owner of a path (i.e. a file or a directory). The parameters username * and groupname cannot both be null. * * @param f The path * @param username If it is null, the original username remains unchanged. * @param groupname If it is null, the original groupname remains unchanged. * * @...
Set owner of a path (i.e. a file or a directory). The parameters username and groupname cannot both be null
setOwner
{ "repo_name": "zhe-thoughts/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java", "license": "apache-2.0", "size": 99793 }
[ "java.io.FileNotFoundException", "java.io.IOException", "org.apache.hadoop.HadoopIllegalArgumentException", "org.apache.hadoop.security.AccessControlException" ]
import java.io.FileNotFoundException; import java.io.IOException; import org.apache.hadoop.HadoopIllegalArgumentException; import org.apache.hadoop.security.AccessControlException;
import java.io.*; import org.apache.hadoop.*; import org.apache.hadoop.security.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,069,973
@Test public void testFailBack() throws Exception { ((SharedStoreSlavePolicy) backupServer.getServer().getHAPolicy()).setRestartBackup(false); createSessionFactory(); ClientSession session = sendAndConsume(sf, true); ClientProducer producer = session.createProducer(ADDRESS); sendMe...
void function() throws Exception { ((SharedStoreSlavePolicy) backupServer.getServer().getHAPolicy()).setRestartBackup(false); createSessionFactory(); ClientSession session = sendAndConsume(sf, true); ClientProducer producer = session.createProducer(ADDRESS); sendMessages(session, producer, NUM_MESSAGES); session.commit...
/** * Basic fail-back test. * * @throws Exception */
Basic fail-back test
testFailBack
{ "repo_name": "franz1981/activemq-artemis", "path": "tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/cluster/failover/FailBackAutoTest.java", "license": "apache-2.0", "size": 11315 }
[ "java.util.concurrent.TimeUnit", "org.apache.activemq.artemis.api.core.client.ClientConsumer", "org.apache.activemq.artemis.api.core.client.ClientProducer", "org.apache.activemq.artemis.api.core.client.ClientSession", "org.apache.activemq.artemis.core.server.cluster.ha.SharedStoreSlavePolicy", "org.apache...
import java.util.concurrent.TimeUnit; import org.apache.activemq.artemis.api.core.client.ClientConsumer; import org.apache.activemq.artemis.api.core.client.ClientProducer; import org.apache.activemq.artemis.api.core.client.ClientSession; import org.apache.activemq.artemis.core.server.cluster.ha.SharedStoreSlavePolicy; ...
import java.util.concurrent.*; import org.apache.activemq.artemis.api.core.client.*; import org.apache.activemq.artemis.core.server.cluster.ha.*; import org.apache.activemq.artemis.tests.util.*;
[ "java.util", "org.apache.activemq" ]
java.util; org.apache.activemq;
813,696
@Exported public Calendar getTimestamp() { GregorianCalendar c = new GregorianCalendar(); c.setTimeInMillis(timestamp); return c; }
Calendar function() { GregorianCalendar c = new GregorianCalendar(); c.setTimeInMillis(timestamp); return c; }
/** * When the build is scheduled. */
When the build is scheduled
getTimestamp
{ "repo_name": "pantheon-systems/jenkins", "path": "core/src/main/java/hudson/model/Run.java", "license": "mit", "size": 67304 }
[ "java.util.Calendar", "java.util.GregorianCalendar" ]
import java.util.Calendar; import java.util.GregorianCalendar;
import java.util.*;
[ "java.util" ]
java.util;
812,829
protected String toString(final List<String> params, final String[] fieldNames) { StringBuilder sb = new StringBuilder(getClass().getSimpleName()); sb.append(':'); if (params != null) { if (params.isEmpty()) { sb.append("(pa empty)"); ...
String function(final List<String> params, final String[] fieldNames) { StringBuilder sb = new StringBuilder(getClass().getSimpleName()); sb.append(':'); if (params != null) { if (params.isEmpty()) { sb.append(STR); } else { int S = params.size(); for (int i = 0; i < S; ++i) { if (i > 0) sb.append(' '); String p = para...
/** * Get a human-readable form of this message after changing parameter values for readability. * Produces same format as {@link #toString()}, optionally with named parameters. * @param params Parameters to include * @param fieldNames Field names, or {@code null} for generic {@code "p="}. * ...
Get a human-readable form of this message after changing parameter values for readability. Produces same format as <code>#toString()</code>, optionally with named parameters
toString
{ "repo_name": "jdmonin/JSettlers2", "path": "src/main/java/soc/message/SOCMessageTemplateMs.java", "license": "gpl-3.0", "size": 8547 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,392,582
public final RequestBuilder finish() { try { assert builder != null : "Call create() first"; doFinish(builder); return builder; } finally { builder = null; } }
final RequestBuilder function() { try { assert builder != null : STR; doFinish(builder); return builder; } finally { builder = null; } }
/** * This method must be called to return the RequestBuilder that the RPC * request will be made with. * <p> * This method will call {@link #doFinish} before returning the current * RequestBuilder. */
This method must be called to return the RequestBuilder that the RPC request will be made with. This method will call <code>#doFinish</code> before returning the current RequestBuilder
finish
{ "repo_name": "alpapad/ahome-titanium", "path": "ahome-titanium/src/com/google/gwt/user/client/rpc/RpcRequestBuilder.java", "license": "apache-2.0", "size": 7212 }
[ "com.google.gwt.http.client.RequestBuilder" ]
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.*;
[ "com.google.gwt" ]
com.google.gwt;
1,500,605
private int getTimeWidth() { Insets insets = getInsets(); return getWidth() - 13 - insets.left - insets.right; }
int function() { Insets insets = getInsets(); return getWidth() - 13 - insets.left - insets.right; }
/** * Get the width (in pixels) of the time portion of the slider. * * @return the width of the time portion of the slider */
Get the width (in pixels) of the time portion of the slider
getTimeWidth
{ "repo_name": "tectronics/rdv", "path": "src/org/rdv/ui/TimeSlider.java", "license": "mit", "size": 34064 }
[ "java.awt.Insets" ]
import java.awt.Insets;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,190,521
List<I_M_ShipmentSchedule> retrieveSchedulesForInOut(org.compiere.model.I_M_InOut inout);
List<I_M_ShipmentSchedule> retrieveSchedulesForInOut(org.compiere.model.I_M_InOut inout);
/** * Retrieve all the schedules of the given InOut, based on the M_ShipmentSchedule_QtyPicked entries * * @param inout * @return the schedules if found, null otherwise. */
Retrieve all the schedules of the given InOut, based on the M_ShipmentSchedule_QtyPicked entries
retrieveSchedulesForInOut
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.swat/de.metas.swat.base/src/main/java/de/metas/inoutcandidate/api/IShipmentScheduleAllocDAO.java", "license": "gpl-2.0", "size": 4014 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,018,274
public void testReadWriteSplitting() throws Exception { if (!this.isSetForFabricTest) { return; } // make sure we start on the master assertEquals(this.masterPort, getPort()); Statement s = this.conn.createStatement(); s.executeUpdate("drop table if exist...
void function() throws Exception { if (!this.isSetForFabricTest) { return; } assertEquals(this.masterPort, getPort()); Statement s = this.conn.createStatement(); s.executeUpdate(STR); s.executeUpdate(STR); s.executeUpdate(STR); this.conn.setReadOnly(true); assertTrue(!this.masterPort.equals(getPort())); Thread.sleep(30...
/** * Test that writes go to the master and reads go to the slave(s). */
Test that writes go to the master and reads go to the slave(s)
testReadWriteSplitting
{ "repo_name": "1fechner/FeatureExtractor", "path": "sources/FeatureExtractor/lib/mysql-connector-java-5.1.38/src/testsuite/fabric/jdbc/TestHABasics.java", "license": "lgpl-2.1", "size": 9922 }
[ "java.sql.ResultSet", "java.sql.Statement" ]
import java.sql.ResultSet; import java.sql.Statement;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,703,309
public int encryptBlock( byte[] in, int inOff, byte[] out, int outOff) throws DataLengthException, IllegalStateException { if ((inOff + blockSize) > in.length) { throw new DataLengthException("input buffer too short");...
int function( byte[] in, int inOff, byte[] out, int outOff) throws DataLengthException, IllegalStateException { if ((inOff + blockSize) > in.length) { throw new DataLengthException(STR); } if ((outOff + blockSize) > out.length) { throw new DataLengthException(STR); } cipher.processBlock(cfbV, 0, cfbOutV, 0); { out[outO...
/** * Do the appropriate processing for CFB mode encryption. * * @param in the array containing the data to be encrypted. * @param inOff offset into the in array the data starts at. * @param out the array the encrypted data will be copied into. * @param outOff the offset into the out array...
Do the appropriate processing for CFB mode encryption
encryptBlock
{ "repo_name": "GaloisInc/hacrypto", "path": "src/Java/BouncyCastle/BouncyCastle-1.50/core/src/main/java/org/bouncycastle/crypto/modes/CFBBlockCipher.java", "license": "bsd-3-clause", "size": 8172 }
[ "org.bouncycastle.crypto.DataLengthException" ]
import org.bouncycastle.crypto.DataLengthException;
import org.bouncycastle.crypto.*;
[ "org.bouncycastle.crypto" ]
org.bouncycastle.crypto;
2,263,018
public VmTemplateDAO getVmTemplateDAO() { return getDAO(VmTemplateDAO.class); }
VmTemplateDAO function() { return getDAO(VmTemplateDAO.class); }
/** * * Returns the singleton instance of {@link VmTemplateDAO}. * * @return the dao */
Returns the singleton instance of <code>VmTemplateDAO</code>
getVmTemplateDAO
{ "repo_name": "derekhiggins/ovirt-engine", "path": "backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/DbFacade.java", "license": "apache-2.0", "size": 28652 }
[ "org.ovirt.engine.core.dao.VmTemplateDAO" ]
import org.ovirt.engine.core.dao.VmTemplateDAO;
import org.ovirt.engine.core.dao.*;
[ "org.ovirt.engine" ]
org.ovirt.engine;
2,636,312
int consume(String connectionFactory, String queue, String selector, String username, String password) throws MBeanException;
int consume(String connectionFactory, String queue, String selector, String username, String password) throws MBeanException;
/** * Consume JMS messages from a given queue. * * @param connectionFactory The JMS connection factory name. * @param queue The JMS queue name. * @param selector A selector to use to consume only certain messages. * @param username The (optional) username to connect to the JMS broker. ...
Consume JMS messages from a given queue
consume
{ "repo_name": "grgrzybek/karaf", "path": "jms/src/main/java/org/apache/karaf/jms/JmsMBean.java", "license": "apache-2.0", "size": 7275 }
[ "javax.management.MBeanException" ]
import javax.management.MBeanException;
import javax.management.*;
[ "javax.management" ]
javax.management;
1,448,572
default boolean postBulkLoadHFile(final ObserverContext<RegionCoprocessorEnvironment> ctx, List<Pair<byte[], String>> stagingFamilyPaths, Map<byte[], List<Path>> finalPaths, boolean hasLoaded) throws IOException { return postBulkLoadHFile(ctx, stagingFamilyPaths, hasLoaded); } /** * Called after b...
default boolean postBulkLoadHFile(final ObserverContext<RegionCoprocessorEnvironment> ctx, List<Pair<byte[], String>> stagingFamilyPaths, Map<byte[], List<Path>> finalPaths, boolean hasLoaded) throws IOException { return postBulkLoadHFile(ctx, stagingFamilyPaths, hasLoaded); } /** * Called after bulkLoadHFile. * * @par...
/** * Called after bulkLoadHFile. * * @param ctx the environment provided by the region server * @param stagingFamilyPaths pairs of { CF, HFile path } submitted for bulk load * @param finalPaths Map of CF to List of file paths for the final loaded files * @param hasLoaded whether the bulkLoad was succ...
Called after bulkLoadHFile
postBulkLoadHFile
{ "repo_name": "gustavoanatoly/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/RegionObserver.java", "license": "apache-2.0", "size": 67737 }
[ "java.io.IOException", "java.util.List", "java.util.Map", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hbase.util.Pair" ]
import java.io.IOException; import java.util.List; import java.util.Map; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.util.Pair;
import java.io.*; import java.util.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hbase.util.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
2,521,573
protected boolean handleCloseEvent(EditorDomEvent<T> event) { if (isCloseEvent(event)) { event.getEditor().cancel(); FocusUtil.setFocus(event.getGrid(), true); return true; } return false; }
boolean function(EditorDomEvent<T> event) { if (isCloseEvent(event)) { event.getEditor().cancel(); FocusUtil.setFocus(event.getGrid(), true); return true; } return false; }
/** * Closes the editor if the received event is a close event. The default * implementation uses {@link #isCloseEvent(EditorDomEvent) isCloseEvent}. * * @param event * the received event * @return true if this method handled the event and nothing else should be * ...
Closes the editor if the received event is a close event. The default implementation uses <code>#isCloseEvent(EditorDomEvent) isCloseEvent</code>
handleCloseEvent
{ "repo_name": "Peppe/vaadin", "path": "client/src/com/vaadin/client/widget/grid/DefaultEditorEventHandler.java", "license": "apache-2.0", "size": 12325 }
[ "com.vaadin.client.ui.FocusUtil", "com.vaadin.client.widgets.Grid" ]
import com.vaadin.client.ui.FocusUtil; import com.vaadin.client.widgets.Grid;
import com.vaadin.client.ui.*; import com.vaadin.client.widgets.*;
[ "com.vaadin.client" ]
com.vaadin.client;
108,863
private boolean isUnconfirmed() { int no = DB.getSQLValue(null, "SELECT COUNT(*) FROM M_InOutLineConfirm WHERE AD_Client_ID=?", Env.getAD_Client_ID(Env.getCtx())); if (no > 0) return true; no = DB.getSQLValue(null, "SELECT COUNT(*) FROM M_MovementLineConfirm WHERE AD_Client_ID=?", Env.getAD_Cli...
boolean function() { int no = DB.getSQLValue(null, STR, Env.getAD_Client_ID(Env.getCtx())); if (no > 0) return true; no = DB.getSQLValue(null, STR, Env.getAD_Client_ID(Env.getCtx())); return no > 0; }
/** * System has Unforfirmed records * @return true if unconfirmed */
System has Unforfirmed records
isUnconfirmed
{ "repo_name": "geneos/adempiere", "path": "zkwebui/WEB-INF/src/org/adempiere/webui/panel/InfoProductPanel.java", "license": "gpl-2.0", "size": 50856 }
[ "org.compiere.util.DB", "org.compiere.util.Env" ]
import org.compiere.util.DB; import org.compiere.util.Env;
import org.compiere.util.*;
[ "org.compiere.util" ]
org.compiere.util;
2,128,465
void setPartitionIds(Collection<Integer> partitionIds);
void setPartitionIds(Collection<Integer> partitionIds);
/** * Sets the partition IDs of this result. * * @param partitionIds the partition IDs to set. */
Sets the partition IDs of this result
setPartitionIds
{ "repo_name": "tufangorel/hazelcast", "path": "hazelcast/src/main/java/com/hazelcast/map/impl/query/Result.java", "license": "apache-2.0", "size": 3395 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,413,497
public void checkRemoteClusterLicenses(final List<String> clusterAliases, final ActionListener<LicenseCheck> listener) { final Iterator<String> clusterAliasesIterator = clusterAliases.iterator(); if (clusterAliasesIterator.hasNext() == false) { listener.onResponse(LicenseCheck.success())...
void function(final List<String> clusterAliases, final ActionListener<LicenseCheck> listener) { final Iterator<String> clusterAliasesIterator = clusterAliases.iterator(); if (clusterAliasesIterator.hasNext() == false) { listener.onResponse(LicenseCheck.success()); return; } final AtomicReference<String> clusterAlias = ...
/** * Checks the specified clusters for license compatibility. The specified callback will be invoked once if all clusters are * license-compatible, otherwise the specified callback will be invoked once on the first cluster that is not license-compatible. * * @param clusterAliases the cluster aliase...
Checks the specified clusters for license compatibility. The specified callback will be invoked once if all clusters are license-compatible, otherwise the specified callback will be invoked once on the first cluster that is not license-compatible
checkRemoteClusterLicenses
{ "repo_name": "robin13/elasticsearch", "path": "x-pack/plugin/core/src/main/java/org/elasticsearch/license/RemoteClusterLicenseChecker.java", "license": "apache-2.0", "size": 12927 }
[ "java.util.Iterator", "java.util.List", "java.util.concurrent.atomic.AtomicReference", "org.elasticsearch.action.ActionListener", "org.elasticsearch.protocol.xpack.XPackInfoResponse" ]
import java.util.Iterator; import java.util.List; import java.util.concurrent.atomic.AtomicReference; import org.elasticsearch.action.ActionListener; import org.elasticsearch.protocol.xpack.XPackInfoResponse;
import java.util.*; import java.util.concurrent.atomic.*; import org.elasticsearch.action.*; import org.elasticsearch.protocol.xpack.*;
[ "java.util", "org.elasticsearch.action", "org.elasticsearch.protocol" ]
java.util; org.elasticsearch.action; org.elasticsearch.protocol;
726,255
public static List<PackageDto> listAllPackages(Channel channel, String startDate, String endDate) { String mode = "all_packages_in_channel"; Map params = new HashMap(); params.put("cid", channel.getId()); if (!StringUtils.isEmpty(startDate)) { params.put("sta...
static List<PackageDto> function(Channel channel, String startDate, String endDate) { String mode = STR; Map params = new HashMap(); params.put("cid", channel.getId()); if (!StringUtils.isEmpty(startDate)) { params.put(STR, startDate); mode = STR; } if (!StringUtils.isEmpty(endDate)) { params.put(STR, endDate); mode = ...
/** * Returns list of packages in channel * @param channel channel whose packages are sought * @param startDate package start date * @param endDate package end date * @return list of packages in channel */
Returns list of packages in channel
listAllPackages
{ "repo_name": "dmacvicar/spacewalk", "path": "java/code/src/com/redhat/rhn/manager/channel/ChannelManager.java", "license": "gpl-2.0", "size": 105505 }
[ "com.redhat.rhn.common.db.datasource.ModeFactory", "com.redhat.rhn.common.db.datasource.SelectMode", "com.redhat.rhn.domain.channel.Channel", "com.redhat.rhn.frontend.dto.PackageDto", "java.util.HashMap", "java.util.List", "java.util.Map", "org.apache.commons.lang.StringUtils" ]
import com.redhat.rhn.common.db.datasource.ModeFactory; import com.redhat.rhn.common.db.datasource.SelectMode; import com.redhat.rhn.domain.channel.Channel; import com.redhat.rhn.frontend.dto.PackageDto; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils;
import com.redhat.rhn.common.db.datasource.*; import com.redhat.rhn.domain.channel.*; import com.redhat.rhn.frontend.dto.*; import java.util.*; import org.apache.commons.lang.*;
[ "com.redhat.rhn", "java.util", "org.apache.commons" ]
com.redhat.rhn; java.util; org.apache.commons;
1,312,000
private boolean isExistingEmulator(IDevice device) { return (device.getAvdName().equalsIgnoreCase(parsedAvd)); }
boolean function(IDevice device) { return (device.getAvdName().equalsIgnoreCase(parsedAvd)); }
/** * Checks whether the given device has the same AVD name as the device which the current command * is related to. <code>true</code> returned if the device AVD names are identical (independent of case) * and <code>false</code> if the device AVD names are different. * * @param device The devic...
Checks whether the given device has the same AVD name as the device which the current command is related to. <code>true</code> returned if the device AVD names are identical (independent of case) and <code>false</code> if the device AVD names are different
isExistingEmulator
{ "repo_name": "kevinsawicki/maven-android-plugin", "path": "src/main/java/com/jayway/maven/plugins/android/AbstractEmulatorMojo.java", "license": "apache-2.0", "size": 18858 }
[ "com.android.ddmlib.IDevice" ]
import com.android.ddmlib.IDevice;
import com.android.ddmlib.*;
[ "com.android.ddmlib" ]
com.android.ddmlib;
1,857,989
public List<CenterDeliverableOutput> findAll();
List<CenterDeliverableOutput> function();
/** * This method gets a list of deliverableOutput that are active * * @return a list from CenterDeliverableOutput null if no exist records */
This method gets a list of deliverableOutput that are active
findAll
{ "repo_name": "CCAFS/MARLO", "path": "marlo-data/src/main/java/org/cgiar/ccafs/marlo/data/dao/ICenterDeliverableOutputDAO.java", "license": "gpl-3.0", "size": 3517 }
[ "java.util.List", "org.cgiar.ccafs.marlo.data.model.CenterDeliverableOutput" ]
import java.util.List; import org.cgiar.ccafs.marlo.data.model.CenterDeliverableOutput;
import java.util.*; import org.cgiar.ccafs.marlo.data.model.*;
[ "java.util", "org.cgiar.ccafs" ]
java.util; org.cgiar.ccafs;
1,571,352
private void removeRecipientNames() throws MessagingException { removeRecipientNames(RecipientType.TO); removeRecipientNames(RecipientType.CC); removeRecipientNames(RecipientType.BCC); }
void function() throws MessagingException { removeRecipientNames(RecipientType.TO); removeRecipientNames(RecipientType.CC); removeRecipientNames(RecipientType.BCC); }
/** * Removes everything but the email destination from all recipient fields, * in order to keep local contact names private. * @throws MessagingException */
Removes everything but the email destination from all recipient fields, in order to keep local contact names private
removeRecipientNames
{ "repo_name": "NoYouShutup/CryptMeme", "path": "CryptMeme/src/java/i2p/bote/email/Email.java", "license": "mit", "size": 44253 }
[ "javax.mail.MessagingException" ]
import javax.mail.MessagingException;
import javax.mail.*;
[ "javax.mail" ]
javax.mail;
220,184
public static List<Server> listConfigEnabledSystems() { return singleton.listObjectsByNamedQuery( "Server.listConfigEnabledSystems", Collections.EMPTY_MAP); }
static List<Server> function() { return singleton.listObjectsByNamedQuery( STR, Collections.EMPTY_MAP); }
/** * Returns a global multi org spanning list of * servers that are config enabled. * Basically used by taskomatic. * @return a list of config enabled systems */
Returns a global multi org spanning list of servers that are config enabled. Basically used by taskomatic
listConfigEnabledSystems
{ "repo_name": "aronparsons/spacewalk", "path": "java/code/src/com/redhat/rhn/domain/server/ServerFactory.java", "license": "gpl-2.0", "size": 33635 }
[ "java.util.Collections", "java.util.List" ]
import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
249,869
public void init(Vec b, int fanIn, Random rand);
void function(Vec b, int fanIn, Random rand);
/** * Performs the initialization of the given vector of bias values * @param b the vector to store the biases in * @param fanIn the number of connections coming into the layer that these * biases are for. * @param rand the source of randomness for initialization */
Performs the initialization of the given vector of bias values
init
{ "repo_name": "ddemarco5/SensorMovementClassification", "path": "jsat/src/main/java/jsat/classifiers/neuralnetwork/initializers/BiastInitializer.java", "license": "mit", "size": 723 }
[ "java.util.Random" ]
import java.util.Random;
import java.util.*;
[ "java.util" ]
java.util;
1,416,652
public MiniHBaseCluster startMiniCluster(final int numMasters, final int numSlaves, final int numDataNodes) throws Exception { return startMiniCluster(numMasters, numSlaves, numDataNodes, null, null, null); } /** * Start up a minicluster of hbase, optionally dfs, and zookeeper. * Modifies Configu...
MiniHBaseCluster function(final int numMasters, final int numSlaves, final int numDataNodes) throws Exception { return startMiniCluster(numMasters, numSlaves, numDataNodes, null, null, null); } /** * Start up a minicluster of hbase, optionally dfs, and zookeeper. * Modifies Configuration. Homes the cluster data directo...
/** * Same as {@link #startMiniCluster(int, int)}, but with custom number of datanodes. * @param numDataNodes Number of data nodes. */
Same as <code>#startMiniCluster(int, int)</code>, but with custom number of datanodes
startMiniCluster
{ "repo_name": "juwi/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java", "license": "apache-2.0", "size": 151512 }
[ "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hbase.master.HMaster", "org.apache.hadoop.hbase.regionserver.HRegionServer", "org.apache.hadoop.hdfs.MiniDFSCluster" ]
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.master.HMaster; import org.apache.hadoop.hbase.regionserver.HRegionServer; import org.apache.hadoop.hdfs.MiniDFSCluster;
import org.apache.hadoop.conf.*; import org.apache.hadoop.hbase.master.*; import org.apache.hadoop.hbase.regionserver.*; import org.apache.hadoop.hdfs.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
95,098
public IUserLayoutNodeDescription addNode( IUserLayoutNodeDescription node, String parentId, String nextSiblingId) throws PortalException;
IUserLayoutNodeDescription function( IUserLayoutNodeDescription node, String parentId, String nextSiblingId) throws PortalException;
/** * Add a new node to a current user layout. * * @param node an <code>UserLayoutNodeDescription</code> value of a node to be added (Id doesn't * have to be set) * @param parentId a <code>String</code> id of a folder to which the new node (channel or * folder) should be added. ...
Add a new node to a current user layout
addNode
{ "repo_name": "jl1955/uPortal5", "path": "uPortal-core/src/main/java/org/apereo/portal/layout/IUserLayoutManager.java", "license": "apache-2.0", "size": 12317 }
[ "org.apereo.portal.PortalException", "org.apereo.portal.layout.node.IUserLayoutNodeDescription" ]
import org.apereo.portal.PortalException; import org.apereo.portal.layout.node.IUserLayoutNodeDescription;
import org.apereo.portal.*; import org.apereo.portal.layout.node.*;
[ "org.apereo.portal" ]
org.apereo.portal;
1,011,947
EClass getTrickyG1();
EClass getTrickyG1();
/** * Returns the meta object for class '{@link org.eclipse.xtext.parsetree.reconstr.complexrewritetest.TrickyG1 <em>Tricky G1</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Tricky G1</em>'. * @see org.eclipse.xtext.parsetree.reconstr.complexrewritetest...
Returns the meta object for class '<code>org.eclipse.xtext.parsetree.reconstr.complexrewritetest.TrickyG1 Tricky G1</code>'.
getTrickyG1
{ "repo_name": "miklossy/xtext-core", "path": "org.eclipse.xtext.tests/src-gen/org/eclipse/xtext/parsetree/reconstr/complexrewritetest/ComplexrewritetestPackage.java", "license": "epl-1.0", "size": 46118 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,505,978
Collection<Suggestion> extract(KiWiResource context, TextContent content, Document gateDoc, Locale language);
Collection<Suggestion> extract(KiWiResource context, TextContent content, Document gateDoc, Locale language);
/** * This method should extract suggestions. * * @param context A content item, may be null. * @param content * @param gateDoc content processed by GATE pipeline for the language of the content. * @param language the langauge of the content. * @return */
This method should extract suggestions
extract
{ "repo_name": "StexX/KiWi-OSE", "path": "src/action/kiwi/api/informationextraction/Extractlet.java", "license": "bsd-3-clause", "size": 3449 }
[ "java.util.Collection", "java.util.Locale", "kiwi.model.content.TextContent", "kiwi.model.informationextraction.Suggestion", "kiwi.model.kbase.KiWiResource" ]
import java.util.Collection; import java.util.Locale; import kiwi.model.content.TextContent; import kiwi.model.informationextraction.Suggestion; import kiwi.model.kbase.KiWiResource;
import java.util.*; import kiwi.model.content.*; import kiwi.model.informationextraction.*; import kiwi.model.kbase.*;
[ "java.util", "kiwi.model.content", "kiwi.model.informationextraction", "kiwi.model.kbase" ]
java.util; kiwi.model.content; kiwi.model.informationextraction; kiwi.model.kbase;
38,978
Composite container = (Composite) super.createDialogArea(parent); container.setLayout(null); Label caseBranchesLabel = new Label(container, SWT.NONE); caseBranchesLabel.setText("Case Branches:"); caseBranchesLabel.setBounds(10, 13, 100, 15); tblCases = new Table...
Composite container = (Composite) super.createDialogArea(parent); container.setLayout(null); Label caseBranchesLabel = new Label(container, SWT.NONE); caseBranchesLabel.setText(STR); caseBranchesLabel.setBounds(10, 13, 100, 15); tblCases = new Table(container, SWT.BORDER SWT.FULL_SELECTION); tblCases.setLinesVisible(tr...
/** * Create contents of the dialog. * * @param parent */
Create contents of the dialog
createDialogArea
{ "repo_name": "prabushi/devstudio-tooling-esb", "path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/custom/configure/ui/ConfigureSwitchMediatorDialog.java", "license": "apache-2.0", "size": 11332 }
[ "org.eclipse.swt.widgets.Composite", "org.eclipse.swt.widgets.Label", "org.eclipse.swt.widgets.Table", "org.eclipse.swt.widgets.TableColumn", "org.wso2.developerstudio.eclipse.gmf.esb.SwitchCaseBranchOutputConnector" ]
import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Table; import org.eclipse.swt.widgets.TableColumn; import org.wso2.developerstudio.eclipse.gmf.esb.SwitchCaseBranchOutputConnector;
import org.eclipse.swt.widgets.*; import org.wso2.developerstudio.eclipse.gmf.esb.*;
[ "org.eclipse.swt", "org.wso2.developerstudio" ]
org.eclipse.swt; org.wso2.developerstudio;
1,158,879
public synchronized void closePath() { // Don't double close path. if ((numSeg != 0) && (types[numSeg - 1] == PathIterator.SEG_CLOSE)) return; // Only close path if the previous command wasn't a moveto if ((numSeg != 0) && (types[numSeg - 1] != PathIterator.SEG_MOVETO)) path.closePath(); makeRoom(...
synchronized void function() { if ((numSeg != 0) && (types[numSeg - 1] == PathIterator.SEG_CLOSE)) return; if ((numSeg != 0) && (types[numSeg - 1] != PathIterator.SEG_MOVETO)) path.closePath(); makeRoom(0); types[numSeg++] = PathIterator.SEG_CLOSE; cx = mx; cy = my; }
/** * Delegates to the enclosed <code>GeneralPath</code>. */
Delegates to the enclosed <code>GeneralPath</code>
closePath
{ "repo_name": "a3rd/jgraphx", "path": "src/com/mxgraph/util/svg/ExtendedGeneralPath.java", "license": "bsd-3-clause", "size": 19899 }
[ "java.awt.geom.PathIterator" ]
import java.awt.geom.PathIterator;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
224,811
@FIXVersion(introduced="4.3") @TagNumRef(tagNum=TagNum.TradeOriginationDate) public Date getTradeOriginationDate() { return tradeOriginationDate; }
@FIXVersion(introduced="4.3") @TagNumRef(tagNum=TagNum.TradeOriginationDate) Date function() { return tradeOriginationDate; }
/** * Message field getter. * @return field value */
Message field getter
getTradeOriginationDate
{ "repo_name": "marvisan/HadesFIX", "path": "Model/src/main/java/net/hades/fix/message/group/SideCrossOrdModGroup.java", "license": "gpl-3.0", "size": 46793 }
[ "java.util.Date", "net.hades.fix.message.anno.FIXVersion", "net.hades.fix.message.anno.TagNumRef", "net.hades.fix.message.type.TagNum" ]
import java.util.Date; import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.TagNum;
import java.util.*; import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*;
[ "java.util", "net.hades.fix" ]
java.util; net.hades.fix;
2,363,649
private void createConnectionFactory() { // create connection factory try { topicConnectionFactory = (TopicConnectionFactory) initContext.lookup("ConnectionFactory"); } catch (NamingException e) { System.out.println("Can not create topic connection factory." + e); ...
void function() { try { topicConnectionFactory = (TopicConnectionFactory) initContext.lookup(STR); } catch (NamingException e) { System.out.println(STR + e); } }
/** * Create Connection factory with initial context */
Create Connection factory with initial context
createConnectionFactory
{ "repo_name": "jsdjayanga/product-cep", "path": "modules/samples/old/samples/src/org/wso2/carbon/cep/sample/jms/JNDIContext.java", "license": "apache-2.0", "size": 2198 }
[ "javax.jms.TopicConnectionFactory", "javax.naming.NamingException" ]
import javax.jms.TopicConnectionFactory; import javax.naming.NamingException;
import javax.jms.*; import javax.naming.*;
[ "javax.jms", "javax.naming" ]
javax.jms; javax.naming;
336,670
public static ims.pathways.domain.objects.PathwayRTTStatus extractPathwayRTTStatus(ims.domain.ILightweightDomainFactory domainFactory, ims.pathways.vo.PathwayRTTCurrentStatusVo valueObject) { return extractPathwayRTTStatus(domainFactory, valueObject, new HashMap()); }
static ims.pathways.domain.objects.PathwayRTTStatus function(ims.domain.ILightweightDomainFactory domainFactory, ims.pathways.vo.PathwayRTTCurrentStatusVo valueObject) { return extractPathwayRTTStatus(domainFactory, valueObject, new HashMap()); }
/** * Create the domain object from the value object. * @param domainFactory - used to create existing (persistent) domain objects. * @param valueObject - extract the domain object fields from this. */
Create the domain object from the value object
extractPathwayRTTStatus
{ "repo_name": "FreudianNM/openMAXIMS", "path": "Source Library/openmaxims_workspace/ValueObjects/src/ims/pathways/vo/domain/PathwayRTTCurrentStatusVoAssembler.java", "license": "agpl-3.0", "size": 18197 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
419,943
@Override public Response intercept(Chain chain) throws IOException { com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); if (!originalResponse.headers("Set-Cookie").isEmpty()) { for (String header : originalResponse.headers("Set-Cookie")) { ...
Response function(Chain chain) throws IOException { com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); if (!originalResponse.headers(STR).isEmpty()) { for (String header : originalResponse.headers(STR)) { String name = header.split("=")[0].trim(); _cookies.put(name, header); } } return orig...
/** * Client interceptor * * @param chain * @return * @throws IOException */
Client interceptor
intercept
{ "repo_name": "codlab/ogame-android-app", "path": "app/src/main/java/com/wikaba/ogapp/agent/ReceivedCookiesInterceptor.java", "license": "gpl-3.0", "size": 2448 }
[ "com.squareup.okhttp.Response", "java.io.IOException" ]
import com.squareup.okhttp.Response; import java.io.IOException;
import com.squareup.okhttp.*; import java.io.*;
[ "com.squareup.okhttp", "java.io" ]
com.squareup.okhttp; java.io;
682,450
public static String getResponsibilityName(BasicNode node) { return getResponsibilityValue(node, 0); }
static String function(BasicNode node) { return getResponsibilityValue(node, 0); }
/** * Returns the responsibility name. * * @param node * the node. * @return the responsibility name. */
Returns the responsibility name
getResponsibilityName
{ "repo_name": "kuriking/testdc2", "path": "net.dependableos.dcase.diagram.editor/src/net/dependableos/dcase/diagram/editor/common/util/ModuleUtil.java", "license": "epl-1.0", "size": 35631 }
[ "net.dependableos.dcase.BasicNode" ]
import net.dependableos.dcase.BasicNode;
import net.dependableos.dcase.*;
[ "net.dependableos.dcase" ]
net.dependableos.dcase;
1,433,873
return null; } /** * Creates and configures a {@link TableSource} based on the given {@link CatalogTable} * instance. * * @param tablePath path of the given {@link CatalogTable}
return null; } /** * Creates and configures a {@link TableSource} based on the given {@link CatalogTable} * instance. * * @param tablePath path of the given {@link CatalogTable}
/** * Creates and configures a {@link TableSource} using the given properties. * * @param properties normalized properties describing a table source. * @return the configured table source. * @deprecated {@link Context} contains more information, and already contains table schema too. * ...
Creates and configures a <code>TableSource</code> using the given properties
createTableSource
{ "repo_name": "tillrohrmann/flink", "path": "flink-table/flink-table-common/src/main/java/org/apache/flink/table/factories/TableSourceFactory.java", "license": "apache-2.0", "size": 3776 }
[ "org.apache.flink.table.catalog.CatalogTable", "org.apache.flink.table.sources.TableSource" ]
import org.apache.flink.table.catalog.CatalogTable; import org.apache.flink.table.sources.TableSource;
import org.apache.flink.table.catalog.*; import org.apache.flink.table.sources.*;
[ "org.apache.flink" ]
org.apache.flink;
2,131,137
public Map<String, SensorStatement> getStatements() { return statements; }
Map<String, SensorStatement> function() { return statements; }
/** * Gets the statements. * * @return the statements */
Gets the statements
getStatements
{ "repo_name": "gauravlall/oneops", "path": "sensor/src/main/java/com/oneops/sensor/domain/ThresholdStatements.java", "license": "apache-2.0", "size": 2709 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,867,662
public static Throwable findException(Object exception) { if (exception == null || !(exception instanceof Throwable)) { return null; } Throwable cur = (Throwable) exception; while (cur != null) { if (cur instanceof RegionMovedException || cur instanceof RegionOpeningException || ...
static Throwable function(Object exception) { if (exception == null !(exception instanceof Throwable)) { return null; } Throwable cur = (Throwable) exception; while (cur != null) { if (cur instanceof RegionMovedException cur instanceof RegionOpeningException cur instanceof RegionTooBusyException) { return cur; } if (cu...
/** * Look for an exception we know in the remote exception: * - hadoop.ipc wrapped exceptions * - nested exceptions * * Looks for: RegionMovedException / RegionOpeningException / RegionTooBusyException * @return null if we didn't find the exception, the exception otherwise. */
Look for an exception we know in the remote exception: - hadoop.ipc wrapped exceptions - nested exceptions Looks for: RegionMovedException / RegionOpeningException / RegionTooBusyException
findException
{ "repo_name": "amyvmiwei/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionManager.java", "license": "apache-2.0", "size": 103248 }
[ "org.apache.hadoop.hbase.RegionTooBusyException", "org.apache.hadoop.hbase.exceptions.RegionMovedException", "org.apache.hadoop.hbase.exceptions.RegionOpeningException", "org.apache.hadoop.ipc.RemoteException" ]
import org.apache.hadoop.hbase.RegionTooBusyException; import org.apache.hadoop.hbase.exceptions.RegionMovedException; import org.apache.hadoop.hbase.exceptions.RegionOpeningException; import org.apache.hadoop.ipc.RemoteException;
import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.exceptions.*; import org.apache.hadoop.ipc.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,120,704
@Override protected void explain() { String html = "<textarea wicket:id=\"text\" rows=\"6\" cols=\"20\">Input comes here</textarea>"; String code = "&nbsp;&nbsp;&nbsp;&nbsp;// add a text area component that uses the model object's 'text' property.\n" + "&nbsp;&nbsp;&nbsp;&nbsp;form.add(new TextArea(\"text\"...
void function() { String html = STRtext\STR6\STR20\STR; String code = STR&nbsp;&nbsp;&nbsp;&nbsp;form.add(new TextArea(\"text\"));"; add(new ExplainPanel(html, code)); }
/** * Override base method to provide an explanation */
Override base method to provide an explanation
explain
{ "repo_name": "astubbs/wicket.get-portals2", "path": "wicket-examples/src/main/java/org/apache/wicket/examples/compref/TextAreaPage.java", "license": "apache-2.0", "size": 2693 }
[ "org.apache.wicket.markup.html.form.TextArea" ]
import org.apache.wicket.markup.html.form.TextArea;
import org.apache.wicket.markup.html.form.*;
[ "org.apache.wicket" ]
org.apache.wicket;
2,096,237
public void startupComponents(FloodlightModuleLoader floodlightModuleLoader) throws FloodlightModuleException { this.moduleLoaderState = ModuleLoaderState.STARTUP; }
void function(FloodlightModuleLoader floodlightModuleLoader) throws FloodlightModuleException { this.moduleLoaderState = ModuleLoaderState.STARTUP; }
/** * Startup all of the controller's components * @param floodlightModuleLoader */
Startup all of the controller's components
startupComponents
{ "repo_name": "rizard/switchvisor", "path": "src/main/java/net/floodlightcontroller/core/internal/Controller.java", "license": "apache-2.0", "size": 17894 }
[ "net.floodlightcontroller.core.module.FloodlightModuleException", "net.floodlightcontroller.core.module.FloodlightModuleLoader" ]
import net.floodlightcontroller.core.module.FloodlightModuleException; import net.floodlightcontroller.core.module.FloodlightModuleLoader;
import net.floodlightcontroller.core.module.*;
[ "net.floodlightcontroller.core" ]
net.floodlightcontroller.core;
1,160,737
@Generated @Selector("text") public native String text();
@Selector("text") native String function();
/** * -text returns the most likely interpretation for a phrase. If there are other * interpretations, -alternativeInterpretations will return an array of them, with * the first being most likely and the last being least likely. */
-text returns the most likely interpretation for a phrase. If there are other interpretations, -alternativeInterpretations will return an array of them, with the first being most likely and the last being least likely
text
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/uikit/UIDictationPhrase.java", "license": "apache-2.0", "size": 5232 }
[ "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
566,952
void removeSelectionListener(SelectionListener listener);
void removeSelectionListener(SelectionListener listener);
/** * Removes a listener for receiving information about selection changes. * * @param listener the listener instance. */
Removes a listener for receiving information about selection changes
removeSelectionListener
{ "repo_name": "liveqmock/platform-tools-idea", "path": "platform/platform-api/src/com/intellij/openapi/editor/SelectionModel.java", "license": "apache-2.0", "size": 8810 }
[ "com.intellij.openapi.editor.event.SelectionListener" ]
import com.intellij.openapi.editor.event.SelectionListener;
import com.intellij.openapi.editor.event.*;
[ "com.intellij.openapi" ]
com.intellij.openapi;
524,165
public static PcepValueType read(ChannelBuffer c) { byte protectionCap = c.readByte(); byte reserved = c.readByte(); return new LinkProtectionTypeSubTlv(protectionCap, reserved); }
static PcepValueType function(ChannelBuffer c) { byte protectionCap = c.readByte(); byte reserved = c.readByte(); return new LinkProtectionTypeSubTlv(protectionCap, reserved); }
/** * Reads the channel buffer and returns object of LinkProtectionTypeTlv. * * @param c input channel buffer * @return object of LinkProtectionTypeTlv */
Reads the channel buffer and returns object of LinkProtectionTypeTlv
read
{ "repo_name": "sdnwiselab/onos", "path": "protocols/pcep/pcepio/src/main/java/org/onosproject/pcepio/types/LinkProtectionTypeSubTlv.java", "license": "apache-2.0", "size": 4145 }
[ "org.jboss.netty.buffer.ChannelBuffer" ]
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.*;
[ "org.jboss.netty" ]
org.jboss.netty;
2,811,845
public ExpressionClause<ProcessorDefinition<Type>> setBody() { ExpressionClause<ProcessorDefinition<Type>> clause = new ExpressionClause<>(this); SetBodyDefinition answer = new SetBodyDefinition(clause); addOutput(answer); return clause; }
ExpressionClause<ProcessorDefinition<Type>> function() { ExpressionClause<ProcessorDefinition<Type>> clause = new ExpressionClause<>(this); SetBodyDefinition answer = new SetBodyDefinition(clause); addOutput(answer); return clause; }
/** * <a href="http://camel.apache.org/message-translator.html">Message Translator EIP:</a> * Adds a processor which sets the body on the IN message * * @return a expression builder clause to set the body */
Adds a processor which sets the body on the IN message
setBody
{ "repo_name": "davidkarlsen/camel", "path": "core/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java", "license": "apache-2.0", "size": 149529 }
[ "org.apache.camel.builder.ExpressionClause" ]
import org.apache.camel.builder.ExpressionClause;
import org.apache.camel.builder.*;
[ "org.apache.camel" ]
org.apache.camel;
1,640,816
protected int sampleForward(BeliefNode node, int[] nodeDomainIndices) { CPF cpf = node.getCPF(); BeliefNode[] domProd = cpf.getDomainProduct(); int[] addr = new int[domProd.length]; // get the addresses of the first two relevant fields and the difference between them for(int i = 1; i < addr.length; i+...
int function(BeliefNode node, int[] nodeDomainIndices) { CPF cpf = node.getCPF(); BeliefNode[] domProd = cpf.getDomainProduct(); int[] addr = new int[domProd.length]; for(int i = 1; i < addr.length; i++) addr[i] = nodeDomainIndices[this.nodeIndices.get(domProd[i])]; addr[0] = 0; int realAddr = cpf.addr2realaddr(addr); ...
/** * samples forward, i.e. samples a value for 'node' given its parents * @param node the node for which to sample a value * @param nodeDomainIndices array of domain indices for all nodes in the network; the values for the parents of 'node' must be set already * @return the index of the domain element o...
samples forward, i.e. samples a value for 'node' given its parents
sampleForward
{ "repo_name": "opcode81/ProbCog", "path": "src/main/java/probcog/bayesnets/inference/Sampler.java", "license": "gpl-3.0", "size": 13901 }
[ "edu.ksu.cis.bnj.ver3.core.BeliefNode" ]
import edu.ksu.cis.bnj.ver3.core.BeliefNode;
import edu.ksu.cis.bnj.ver3.core.*;
[ "edu.ksu.cis" ]
edu.ksu.cis;
511,753
public Schema dumpSchema(String alias) throws IOException { try { if ("@".equals(alias)) { alias = getLastRel(); } LogicalRelationalOperator op = getOperatorForAlias( alias ); LogicalSchema schema = op.getSchema(); boolean pretty =...
Schema function(String alias) throws IOException { try { if ("@".equals(alias)) { alias = getLastRel(); } LogicalRelationalOperator op = getOperatorForAlias( alias ); LogicalSchema schema = op.getSchema(); boolean pretty = "true".equals(pigContext.getProperties() .getProperty(PRETTY_PRINT_SCHEMA_PROPERTY)); if (schema ...
/** * Write the schema for an alias to System.out. * @param alias Alias whose schema will be written out * @return Schema of alias dumped * @throws IOException */
Write the schema for an alias to System.out
dumpSchema
{ "repo_name": "twitter/pig", "path": "src/org/apache/pig/PigServer.java", "license": "apache-2.0", "size": 70320 }
[ "java.io.IOException", "org.apache.pig.impl.logicalLayer.FrontendException", "org.apache.pig.impl.logicalLayer.schema.Schema", "org.apache.pig.newplan.logical.relational.LogicalRelationalOperator", "org.apache.pig.newplan.logical.relational.LogicalSchema" ]
import java.io.IOException; import org.apache.pig.impl.logicalLayer.FrontendException; import org.apache.pig.impl.logicalLayer.schema.Schema; import org.apache.pig.newplan.logical.relational.LogicalRelationalOperator; import org.apache.pig.newplan.logical.relational.LogicalSchema;
import java.io.*; import org.apache.pig.impl.*; import org.apache.pig.newplan.logical.relational.*;
[ "java.io", "org.apache.pig" ]
java.io; org.apache.pig;
1,619,237
public void setAdapter(int fieldId, ArrayAdapter<String> adapter) { Field f = getField(fieldId); ((AutoCompleteTextView)f.getView()).setAdapter(adapter); }
void function(int fieldId, ArrayAdapter<String> adapter) { Field f = getField(fieldId); ((AutoCompleteTextView)f.getView()).setAdapter(adapter); }
/** * Convenience function: For an AutoCompleteTextView, set the adapter * * @param fieldId Layout ID of View * @param adapter Adapter to use */
Convenience function: For an AutoCompleteTextView, set the adapter
setAdapter
{ "repo_name": "bdunogier/Book-Catalogue", "path": "src/com/eleybourn/bookcatalogue/Fields.java", "license": "gpl-3.0", "size": 38592 }
[ "android.widget.ArrayAdapter", "android.widget.AutoCompleteTextView" ]
import android.widget.ArrayAdapter; import android.widget.AutoCompleteTextView;
import android.widget.*;
[ "android.widget" ]
android.widget;
1,980,781
public static byte[] get(final ArrowBuf buffer, final int index, final int byteWidth) { final byte[] dst = new byte[byteWidth]; buffer.getBytes(index * byteWidth, dst, 0, byteWidth); return dst; } /** * Construct a TransferPair comprising of this and and a target vector of * the same type. ...
static byte[] function(final ArrowBuf buffer, final int index, final int byteWidth) { final byte[] dst = new byte[byteWidth]; buffer.getBytes(index * byteWidth, dst, 0, byteWidth); return dst; } /** * Construct a TransferPair comprising of this and and a target vector of * the same type. * * @param ref name of the targ...
/** * Given a data buffer, get the value stored at a particular position * in the vector. * * This method should not be used externally. * * @param buffer data buffer * @param index position of the element. * @return value stored at the index. */
Given a data buffer, get the value stored at a particular position in the vector. This method should not be used externally
get
{ "repo_name": "wagavulin/arrow", "path": "java/vector/src/main/java/org/apache/arrow/vector/FixedSizeBinaryVector.java", "license": "apache-2.0", "size": 12942 }
[ "io.netty.buffer.ArrowBuf", "org.apache.arrow.vector.util.TransferPair" ]
import io.netty.buffer.ArrowBuf; import org.apache.arrow.vector.util.TransferPair;
import io.netty.buffer.*; import org.apache.arrow.vector.util.*;
[ "io.netty.buffer", "org.apache.arrow" ]
io.netty.buffer; org.apache.arrow;
1,269,511
public void close() throws NamingException { writeLock.lock(); try { root.clear(); } finally { writeLock.unlock(); } }
void function() throws NamingException { writeLock.lock(); try { root.clear(); } finally { writeLock.unlock(); } }
/** * Close the store. This will clear all children from the root node. * * @throws NamingException */
Close the store. This will clear all children from the root node
close
{ "repo_name": "xasx/wildfly", "path": "naming/src/main/java/org/jboss/as/naming/InMemoryNamingStore.java", "license": "lgpl-2.1", "size": 22452 }
[ "javax.naming.NamingException" ]
import javax.naming.NamingException;
import javax.naming.*;
[ "javax.naming" ]
javax.naming;
2,484,345
private void decode(byte[] data, int width, int height) { long start = System.currentTimeMillis(); Result rawResult = null; if ( HYControl.$Direction ) { // 竖屏 byte[] rotatedData = new byte[data.length]; for (int y = 0; y < height; y++) { for (int x = 0; x...
void function(byte[] data, int width, int height) { long start = System.currentTimeMillis(); Result rawResult = null; if ( HYControl.$Direction ) { byte[] rotatedData = new byte[data.length]; for (int y = 0; y < height; y++) { for (int x = 0; x < width; x++) rotatedData[x * height + height - y - 1] = data[x + y * width...
/** * Decode the data within the viewfinder rectangle, and time how long it took. For efficiency, * reuse the same reader objects from one decode to the next. * * @param data The YUV preview frame. * @param width The width of the preview frame. * @param height The height of the preview frame. */
Decode the data within the viewfinder rectangle, and time how long it took. For efficiency, reuse the same reader objects from one decode to the next
decode
{ "repo_name": "HY-ZhengWei/hy.common.android", "path": "google-zxing-android/src/main/java/com/google/zxing/client/android/DecodeHandler.java", "license": "gpl-3.0", "size": 4374 }
[ "android.os.Bundle", "android.os.Handler", "android.os.Message", "com.google.zxing.BinaryBitmap", "com.google.zxing.HYControl", "com.google.zxing.PlanarYUVLuminanceSource", "com.google.zxing.ReaderException", "com.google.zxing.Result", "com.google.zxing.common.HybridBinarizer" ]
import android.os.Bundle; import android.os.Handler; import android.os.Message; import com.google.zxing.BinaryBitmap; import com.google.zxing.HYControl; import com.google.zxing.PlanarYUVLuminanceSource; import com.google.zxing.ReaderException; import com.google.zxing.Result; import com.google.zxing.common.HybridBinariz...
import android.os.*; import com.google.zxing.*; import com.google.zxing.common.*;
[ "android.os", "com.google.zxing" ]
android.os; com.google.zxing;
2,259,422
public Observable<ServiceResponse<Page<MachineInner>>> listSinglePageAsync() { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } if (this.client.apiVersion() == null) { ...
Observable<ServiceResponse<Page<MachineInner>>> function() { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (this.client.apiVersion() == null) { throw new IllegalArgumentException(STR); }
/** * Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;MachineInner&gt; object wrapped in {@link Ser...
Lists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines
listSinglePageAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/hybridcompute/mgmt-v2020_08_02/src/main/java/com/microsoft/azure/management/hybridcompute/v2020_08_02/implementation/MachinesInner.java", "license": "mit", "size": 45267 }
[ "com.microsoft.azure.Page", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
73,837
public void testStagesSession() { resetCounter(); try { FixedResolver tr0 = new FixedResolver("127.0.0.1", 54222); FixedTransportManager ftm0 = new FixedTransportManager(tr0); TestMediaManager tmm0 = new TestMediaManager(ftm0); tmm0.setPayloads(getTe...
void function() { resetCounter(); try { FixedResolver tr0 = new FixedResolver(STR, 54222); FixedTransportManager ftm0 = new FixedTransportManager(tr0); TestMediaManager tmm0 = new TestMediaManager(ftm0); tmm0.setPayloads(getTestPayloads1()); List<JingleMediaManager> trl0 = new ArrayList<JingleMediaManager>(); trl0.add(...
/** * This is a simple test where the user_2 rejects the Jingle session. */
This is a simple test where the user_2 rejects the Jingle session
testStagesSession
{ "repo_name": "igniterealtime/Smack", "path": "smack-jingle-old/src/integration-test/java/org/jivesoftware/smackx/jingle/JingleManagerTest.java", "license": "apache-2.0", "size": 38730 }
[ "java.util.ArrayList", "java.util.List", "org.jivesoftware.smackx.jingle.media.JingleMediaManager", "org.jivesoftware.smackx.jingle.mediaimpl.test.TestMediaManager", "org.jivesoftware.smackx.jingle.nat.FixedResolver", "org.jivesoftware.smackx.jingle.nat.FixedTransportManager" ]
import java.util.ArrayList; import java.util.List; import org.jivesoftware.smackx.jingle.media.JingleMediaManager; import org.jivesoftware.smackx.jingle.mediaimpl.test.TestMediaManager; import org.jivesoftware.smackx.jingle.nat.FixedResolver; import org.jivesoftware.smackx.jingle.nat.FixedTransportManager;
import java.util.*; import org.jivesoftware.smackx.jingle.media.*; import org.jivesoftware.smackx.jingle.mediaimpl.test.*; import org.jivesoftware.smackx.jingle.nat.*;
[ "java.util", "org.jivesoftware.smackx" ]
java.util; org.jivesoftware.smackx;
1,326,950
public synchronized Snapshot get(String key) throws IOException { checkNotClosed(); validateKey(key); Entry entry = lruEntries.get(key); if (entry == null) { return null; } if (!entry.readable) { return null; } InputS...
synchronized Snapshot function(String key) throws IOException { checkNotClosed(); validateKey(key); Entry entry = lruEntries.get(key); if (entry == null) { return null; } if (!entry.readable) { return null; } InputStream[] ins = new InputStream[valueCount]; try { for (int i = 0; i < valueCount; i++) { ins[i] = new File...
/** * Returns a snapshot of the entry named {@code key}, or null if it doesn't * exist is not currently readable. If a value is returned, it is moved to * the head of the LRU queue. */
Returns a snapshot of the entry named key, or null if it doesn't exist is not currently readable. If a value is returned, it is moved to the head of the LRU queue
get
{ "repo_name": "minggo620/Pluto-Android", "path": "PlutoAndroidExample/Pluto/src/main/java/com/minggo/pluto/bitmap/DiskLruCache.java", "license": "mit", "size": 33780 }
[ "java.io.FileInputStream", "java.io.FileNotFoundException", "java.io.IOException", "java.io.InputStream" ]
import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,838,036
protected boolean getLastMountedFloppyDiskImageWriteProtectMode( FloppyDriveIdentifier fddIdentifier) { SharedPreferences prefs = getPreferences(); return prefs.getBoolean(getLastFloppyDriveWriteProtectModePrefsKey(fddIdentifier), false); }
boolean function( FloppyDriveIdentifier fddIdentifier) { SharedPreferences prefs = getPreferences(); return prefs.getBoolean(getLastFloppyDriveWriteProtectModePrefsKey(fddIdentifier), false); }
/** * Get last floppy drive write protect mode. * @param fddIdentifier floppy drive identifier * @return <code>true</code> if floppy drive is in write protect mode */
Get last floppy drive write protect mode
getLastMountedFloppyDiskImageWriteProtectMode
{ "repo_name": "3cky/bkemu-android", "path": "app/src/main/java/su/comp/bk/ui/BkEmuActivity.java", "license": "gpl-3.0", "size": 83264 }
[ "android.content.SharedPreferences", "su.comp.bk.arch.io.disk.FloppyController" ]
import android.content.SharedPreferences; import su.comp.bk.arch.io.disk.FloppyController;
import android.content.*; import su.comp.bk.arch.io.disk.*;
[ "android.content", "su.comp.bk" ]
android.content; su.comp.bk;
102,266
public final Aggregator create(Aggregator parent, boolean collectsFromSingleBucket) throws IOException { return createInternal(parent, collectsFromSingleBucket, this.factories.createPipelineAggregators(), this.metaData); }
final Aggregator function(Aggregator parent, boolean collectsFromSingleBucket) throws IOException { return createInternal(parent, collectsFromSingleBucket, this.factories.createPipelineAggregators(), this.metaData); }
/** * Creates the aggregator * * @param parent * The parent aggregator (if this is a top level factory, the * parent will be {@code null}) * @param collectsFromSingleBucket * If true then the created aggregator will only be collected * ...
Creates the aggregator
create
{ "repo_name": "wuranbo/elasticsearch", "path": "core/src/main/java/org/elasticsearch/search/aggregations/AggregatorFactory.java", "license": "apache-2.0", "size": 8848 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
513,441
@SuppressWarnings("unused") private void setWidth(final JSONArray args, final CallbackContext callbackContext) throws JSONException { String id = args.getString(1); float width = (float) args.getDouble(2) * this.density; this.setFloat("setWidth", id, width, callbackContext); }
@SuppressWarnings(STR) void function(final JSONArray args, final CallbackContext callbackContext) throws JSONException { String id = args.getString(1); float width = (float) args.getDouble(2) * this.density; this.setFloat(STR, id, width, callbackContext); }
/** * set width * @param args * @param callbackContext * @throws JSONException */
set width
setWidth
{ "repo_name": "wolf-s/phonegap-googlemaps-plugin", "path": "src/android/plugin/google/maps/PluginPolyline.java", "license": "apache-2.0", "size": 9566 }
[ "org.apache.cordova.CallbackContext", "org.json.JSONArray", "org.json.JSONException" ]
import org.apache.cordova.CallbackContext; import org.json.JSONArray; import org.json.JSONException;
import org.apache.cordova.*; import org.json.*;
[ "org.apache.cordova", "org.json" ]
org.apache.cordova; org.json;
527,128
public Set<String> getIncomingChannels(Plugin plugin);
Set<String> function(Plugin plugin);
/** * Gets a set containing all the incoming plugin channels that the specified plugin is registered for. * * @param plugin Plugin to retrieve channels for. * @return List of all registered incoming plugin channels that the plugin is registered for. * @throws IllegalArgumentException Thrown if ...
Gets a set containing all the incoming plugin channels that the specified plugin is registered for
getIncomingChannels
{ "repo_name": "Irokue/Bukkit", "path": "src/main/java/org/bukkit/plugin/messaging/Messenger.java", "license": "gpl-3.0", "size": 8334 }
[ "java.util.Set", "org.bukkit.plugin.Plugin" ]
import java.util.Set; import org.bukkit.plugin.Plugin;
import java.util.*; import org.bukkit.plugin.*;
[ "java.util", "org.bukkit.plugin" ]
java.util; org.bukkit.plugin;
2,051,582
default String getInsertIntoStatement(String tableName, String[] fieldNames) { String columns = Arrays.stream(fieldNames) .map(this::quoteIdentifier) .collect(Collectors.joining(", ")); String placeholders = Arrays.stream(fieldNames) .map(f -> "?") .collect(Collectors.joining(", ")); return "INSERT...
default String getInsertIntoStatement(String tableName, String[] fieldNames) { String columns = Arrays.stream(fieldNames) .map(this::quoteIdentifier) .collect(Collectors.joining(STR)); String placeholders = Arrays.stream(fieldNames) .map(f -> "?") .collect(Collectors.joining(STR)); return STR + quoteIdentifier(tableNam...
/** * Get insert into statement. */
Get insert into statement
getInsertIntoStatement
{ "repo_name": "shaoxuan-wang/flink", "path": "flink-connectors/flink-jdbc/src/main/java/org/apache/flink/api/java/io/jdbc/dialect/JDBCDialect.java", "license": "apache-2.0", "size": 4232 }
[ "java.util.Arrays", "java.util.stream.Collectors" ]
import java.util.Arrays; import java.util.stream.Collectors;
import java.util.*; import java.util.stream.*;
[ "java.util" ]
java.util;
1,595,552
protected Collection<String> getInitialObjectNames() { if (initialObjectNames == null) { initialObjectNames = new ArrayList<String>(); for (EClassifier eClassifier : tracingannotationsPackage.getEClassifiers()) { if (eClassifier instanceof EClass) { EClass eClass = (EClass)eClassifier; if (!eCl...
Collection<String> function() { if (initialObjectNames == null) { initialObjectNames = new ArrayList<String>(); for (EClassifier eClassifier : tracingannotationsPackage.getEClassifiers()) { if (eClassifier instanceof EClass) { EClass eClass = (EClass)eClassifier; if (!eClass.isAbstract()) { initialObjectNames.add(eClas...
/** * Returns the names of the types that can be created as the root object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Returns the names of the types that can be created as the root object.
getInitialObjectNames
{ "repo_name": "SiriusLab/SiriusAnimator", "path": "trace/generator/plugins/org.eclipse.gemoc.trace.annotations.editor/src/tracingannotations/presentation/TracingannotationsModelWizard.java", "license": "epl-1.0", "size": 18767 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Collections", "org.eclipse.emf.common.CommonPlugin", "org.eclipse.emf.ecore.EClass", "org.eclipse.emf.ecore.EClassifier" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import org.eclipse.emf.common.CommonPlugin; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EClassifier;
import java.util.*; import org.eclipse.emf.common.*; import org.eclipse.emf.ecore.*;
[ "java.util", "org.eclipse.emf" ]
java.util; org.eclipse.emf;
1,775,084
private org.xbill.DNS.Record createDnsCNAMERecord(final CNAMERecord cnameRecord) throws TextParseException { return new org.xbill.DNS.CNAMERecord(Name.fromString(this.zoneUtility.absolutize(cnameRecord.getName())), DClass.IN, cnameRecord.getTimeToLive().longValue(), Name.fromString(this.zon...
org.xbill.DNS.Record function(final CNAMERecord cnameRecord) throws TextParseException { return new org.xbill.DNS.CNAMERecord(Name.fromString(this.zoneUtility.absolutize(cnameRecord.getName())), DClass.IN, cnameRecord.getTimeToLive().longValue(), Name.fromString(this.zoneUtility.absolutize(cnameRecord.getTarget()))); }
/** * Create the DNS CNAME record from the CNAME record. * * @param cnameRecord the CNAME record. * * @return the DNS CNAME record. * * @throws TextParseException if the record name or target is invalid. */
Create the DNS CNAME record from the CNAME record
createDnsCNAMERecord
{ "repo_name": "lazydog-org/jdnsaas-parent", "path": "jdnsaas-service-bind-impl/src/main/java/org/lazydog/jdnsaas/bind/RecordConverter.java", "license": "lgpl-3.0", "size": 22885 }
[ "org.lazydog.jdnsaas.model.CNAMERecord", "org.lazydog.jdnsaas.model.Record", "org.xbill.DNS" ]
import org.lazydog.jdnsaas.model.CNAMERecord; import org.lazydog.jdnsaas.model.Record; import org.xbill.DNS;
import org.lazydog.jdnsaas.model.*; import org.xbill.*;
[ "org.lazydog.jdnsaas", "org.xbill" ]
org.lazydog.jdnsaas; org.xbill;
1,011,501
void resizeEntries(int newCapacity) { this.keys = Arrays.copyOf(keys, newCapacity); this.values = Arrays.copyOf(values, newCapacity); long[] entries = this.entries; int oldCapacity = entries.length; entries = Arrays.copyOf(entries, newCapacity); if (newCapacity > oldCapacity) { Arrays.fi...
void resizeEntries(int newCapacity) { this.keys = Arrays.copyOf(keys, newCapacity); this.values = Arrays.copyOf(values, newCapacity); long[] entries = this.entries; int oldCapacity = entries.length; entries = Arrays.copyOf(entries, newCapacity); if (newCapacity > oldCapacity) { Arrays.fill(entries, oldCapacity, newCapa...
/** * Resizes the internal entries array to the specified capacity, which may be greater or less than * the current capacity. */
Resizes the internal entries array to the specified capacity, which may be greater or less than the current capacity
resizeEntries
{ "repo_name": "berndhopp/guava", "path": "guava/src/com/google/common/collect/CompactHashMap.java", "license": "apache-2.0", "size": 25313 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
1,457,207
public void saveOrUpdateProperties(Properties properties, Locale locale, String bundleName) { String key = calcPropertiesFileKey(locale, bundleName); if (isLogDebugEnabled()) logDebug("saveOrUpdateProperties for key::" + key, null); synchronized (cachedBundles) { // 1) Save file to disk File baseDir = I1...
void function(Properties properties, Locale locale, String bundleName) { String key = calcPropertiesFileKey(locale, bundleName); if (isLogDebugEnabled()) logDebug(STR + key, null); synchronized (cachedBundles) { File baseDir = I18nModule.getPropertyFilesBaseDir(locale, bundleName); if (baseDir == null) { throw new Asse...
/** * Create a new property file or update an existing property file form the given propeties object * * @param properties The properties to persis * @param locale The locale of the properties * @param bundleName The properties bundle */
Create a new property file or update an existing property file form the given propeties object
saveOrUpdateProperties
{ "repo_name": "RLDevOps/Demo", "path": "src/main/java/org/olat/core/util/i18n/I18nManager.java", "license": "apache-2.0", "size": 82947 }
[ "java.io.File", "java.io.FileNotFoundException", "java.io.FileOutputStream", "java.io.IOException", "java.io.OutputStream", "java.util.Collections", "java.util.List", "java.util.Locale", "java.util.Properties", "org.olat.core.logging.AssertException", "org.olat.core.logging.OLATRuntimeException"...
import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Collections; import java.util.List; import java.util.Locale; import java.util.Properties; import org.olat.core.logging.AssertException; import org.olat.co...
import java.io.*; import java.util.*; import org.olat.core.logging.*;
[ "java.io", "java.util", "org.olat.core" ]
java.io; java.util; org.olat.core;
1,884,545
// Check for the correct ServiceRequest and chose the right export function // TODO Integrate all exports here by time if (this.isochroneRequest != null) { throw new ExportException(IsochronesErrorCodes.UNSUPPORTED_EXPORT_FORMAT, this.getClass(), isochroneRequest.getClass(), FORMAT_GEO_JSON)...
if (this.isochroneRequest != null) { throw new ExportException(IsochronesErrorCodes.UNSUPPORTED_EXPORT_FORMAT, this.getClass(), isochroneRequest.getClass(), FORMAT_GEO_JSON); } else if (this.mapMatchingRequest != null) { throw new StatusCodeException(StatusCode.NOT_IMPLEMENTED); } else if (this.matrixRequest != null) {...
/** * The function works as a distribution class that is/will be able to process any kind of request result combination as an input. * If the function doesn't provide a specific Export for a specific {@link ServiceRequest} yet, the {@link JSONObject} will be returned empty. * * @return The method re...
The function works as a distribution class that is/will be able to process any kind of request result combination as an input. If the function doesn't provide a specific Export for a specific <code>ServiceRequest</code> yet, the <code>JSONObject</code> will be returned empty
toGeoJson
{ "repo_name": "GIScience/openrouteservice-core", "path": "openrouteservice/src/main/java/org/heigit/ors/globalresponseprocessor/GlobalResponseProcessor.java", "license": "mit", "size": 9678 }
[ "org.heigit.ors.common.StatusCode", "org.heigit.ors.exceptions.ExportException", "org.heigit.ors.exceptions.StatusCodeException", "org.heigit.ors.globalresponseprocessor.geojson.GeoJsonResponseWriter", "org.heigit.ors.isochrones.IsochronesErrorCodes", "org.heigit.ors.matrix.MatrixErrorCodes", "org.heigi...
import org.heigit.ors.common.StatusCode; import org.heigit.ors.exceptions.ExportException; import org.heigit.ors.exceptions.StatusCodeException; import org.heigit.ors.globalresponseprocessor.geojson.GeoJsonResponseWriter; import org.heigit.ors.isochrones.IsochronesErrorCodes; import org.heigit.ors.matrix.MatrixErrorCod...
import org.heigit.ors.common.*; import org.heigit.ors.exceptions.*; import org.heigit.ors.globalresponseprocessor.geojson.*; import org.heigit.ors.isochrones.*; import org.heigit.ors.matrix.*; import org.heigit.ors.routing.*;
[ "org.heigit.ors" ]
org.heigit.ors;
1,957,836
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { String id = request.getParameter("idProblem...
void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(STR); PrintWriter out = response.getWriter(); try { String id = request.getParameter(STR); if (problematico.deleteProblematico(Integer.parseInt(id))) { out.print(STR); } else { out.prin...
/** * Processes requests for both HTTP * <code>GET</code> and * <code>POST</code> methods. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */
Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods
processRequest
{ "repo_name": "NodoSoftware/Bridge", "path": "BridgeFINAL_Primera_iteracion/src/java/Servlets/eliminarProblematico.java", "license": "mit", "size": 2807 }
[ "java.io.IOException", "java.io.PrintWriter", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse" ]
import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import java.io.*; import javax.servlet.*; import javax.servlet.http.*;
[ "java.io", "javax.servlet" ]
java.io; javax.servlet;
980,484
//------------------------- AUTOGENERATED START ------------------------- ///CLOVER:OFF public static BondTrade.Meta meta() { return BondTrade.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(BondTrade.Meta.INSTANCE); }
static BondTrade.Meta function() { return BondTrade.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(BondTrade.Meta.INSTANCE); }
/** * The meta-bean for {@code BondTrade}. * @return the meta-bean, not null */
The meta-bean for BondTrade
meta
{ "repo_name": "codeaudit/OG-Platform", "path": "sesame/sesame-function/src/main/java/com/opengamma/sesame/trade/BondTrade.java", "license": "apache-2.0", "size": 9060 }
[ "org.joda.beans.JodaBeanUtils" ]
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
503,983
public Date parse(String string) throws ParseException { ParsePosition position = new ParsePosition(0); Date date = parse(string, position); if (position.getIndex() == 0) { throw new ParseException("Unparseable date: \"" + string + "\"", position.getErrorIndex()); } return date; }
Date function(String string) throws ParseException { ParsePosition position = new ParsePosition(0); Date date = parse(string, position); if (position.getIndex() == 0) { throw new ParseException(STRSTR\"", position.getErrorIndex()); } return date; }
/** * Parses a date from the specified string using the rules of this date * format. * * @param string * the string to parse. * @return the {@code Date} resulting from the parsing. * @throws ParseException * if an error occurs during parsing. */
Parses a date from the specified string using the rules of this date format
parse
{ "repo_name": "webos21/xi", "path": "java/jcl/src/java/java/text/DateFormat.java", "license": "apache-2.0", "size": 30755 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,555,846
public void localDeviceRemoved(Registry registry, LocalDevice device);
void function(Registry registry, LocalDevice device);
/** * Called after you remove your own device from the {@link org.fourthline.cling.registry.Registry}. * <p> * This method will not be called when the UPnP stack is shutting down. * </p> * @param registry The Cling registry of all devices and services know to the local UPnP stack. * @param...
Called after you remove your own device from the <code>org.fourthline.cling.registry.Registry</code>. This method will not be called when the UPnP stack is shutting down.
localDeviceRemoved
{ "repo_name": "Saudamini-Jagtap/DLNA-SnapBizz", "path": "app/src/main/java/org/fourthline/cling/registry/RegistryListener.java", "license": "gpl-3.0", "size": 6578 }
[ "org.fourthline.cling.model.meta.LocalDevice" ]
import org.fourthline.cling.model.meta.LocalDevice;
import org.fourthline.cling.model.meta.*;
[ "org.fourthline.cling" ]
org.fourthline.cling;
1,679,702
public void displayText(String text, int type) { Date now = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yyyy H:mm:ss"); String d = formatter.format(now); //previousLines.append(text); StyledDocument document = outputPane.getStyledDocument(); SimpleAttributeSet set = new Si...
void function(String text, int type) { Date now = new Date(); SimpleDateFormat formatter = new SimpleDateFormat(STR); String d = formatter.format(now); StyledDocument document = outputPane.getStyledDocument(); SimpleAttributeSet set = new SimpleAttributeSet(); outputPane.setCharacterAttributes(set, true); String prefix...
/** * Display text in the text pane * @param text text that needs to be displayed * @param type indicates message type */
Display text in the text pane
displayText
{ "repo_name": "farkas-arpad/KROKI-mockup-tool", "path": "KrokiMockupTool/src/kroki/app/gui/console/OutputPanel.java", "license": "mit", "size": 2606 }
[ "java.awt.Color", "java.text.SimpleDateFormat", "java.util.Date", "javax.swing.text.BadLocationException", "javax.swing.text.SimpleAttributeSet", "javax.swing.text.StyleConstants", "javax.swing.text.StyledDocument" ]
import java.awt.Color; import java.text.SimpleDateFormat; import java.util.Date; import javax.swing.text.BadLocationException; import javax.swing.text.SimpleAttributeSet; import javax.swing.text.StyleConstants; import javax.swing.text.StyledDocument;
import java.awt.*; import java.text.*; import java.util.*; import javax.swing.text.*;
[ "java.awt", "java.text", "java.util", "javax.swing" ]
java.awt; java.text; java.util; javax.swing;
721,151
public boolean addConnectBehavior(TransportAddress transportAddress, StubbableTransport.OpenConnectionBehavior connectBehavior) { return transport().addConnectBehavior(transportAddress, connectBehavior); }
boolean function(TransportAddress transportAddress, StubbableTransport.OpenConnectionBehavior connectBehavior) { return transport().addConnectBehavior(transportAddress, connectBehavior); }
/** * Adds a new connect behavior that is used for creating connections with the given delegate address. * * @return {@code true} if no other send behavior was registered for this address before. */
Adds a new connect behavior that is used for creating connections with the given delegate address
addConnectBehavior
{ "repo_name": "strapdata/elassandra", "path": "test/framework/src/main/java/org/elasticsearch/test/transport/MockTransportService.java", "license": "apache-2.0", "size": 29033 }
[ "org.elasticsearch.common.transport.TransportAddress" ]
import org.elasticsearch.common.transport.TransportAddress;
import org.elasticsearch.common.transport.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
160,869
public static Bitmap media_loadBitmapFromInternalStorage(Context context, String fileName) throws Exception{ try{ FileInputStream is = context.openFileInput(fileName); Bitmap b = BitmapFactory.decodeStream(is); return b; } catch (Exception e) { throw new Exception("Error reading data...
static Bitmap function(Context context, String fileName) throws Exception{ try{ FileInputStream is = context.openFileInput(fileName); Bitmap b = BitmapFactory.decodeStream(is); return b; } catch (Exception e) { throw new Exception(STR + fileName + STR+ e.getMessage(),e); } } /*public static Bitmap media_getRoundedCorne...
/** * Loads a Bitmap image form the internal storage. * * @param context * @param fileName * @return * @throws Exception */
Loads a Bitmap image form the internal storage
media_loadBitmapFromInternalStorage
{ "repo_name": "javocsoft/javocsoft-toolbox", "path": "src/es/javocsoft/android/lib/toolbox/ToolBox.java", "license": "gpl-3.0", "size": 316451 }
[ "android.content.Context", "android.graphics.Bitmap", "android.graphics.BitmapFactory", "android.graphics.Canvas", "android.graphics.Paint", "java.io.FileInputStream" ]
import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Paint; import java.io.FileInputStream;
import android.content.*; import android.graphics.*; import java.io.*;
[ "android.content", "android.graphics", "java.io" ]
android.content; android.graphics; java.io;
227,940
System.out.println("Running file..."); try(BufferedReader br = new BufferedReader(new FileReader(INPUT_FILE_NAME)); PrintWriter writer = new PrintWriter(OUTPUT_FILE_NAME);) { //Load head file numTestCases=Integer.parseInt(br.readLine()); //Load tests cases loadTestCases(br, writer); } catch ...
System.out.println(STR); try(BufferedReader br = new BufferedReader(new FileReader(INPUT_FILE_NAME)); PrintWriter writer = new PrintWriter(OUTPUT_FILE_NAME);) { numTestCases=Integer.parseInt(br.readLine()); loadTestCases(br, writer); } catch (FileNotFoundException e) { log.error(STR, e); } catch (IOException e) { log.e...
/** * Execute the file */
Execute the file
executeFile
{ "repo_name": "harold174/cube-summation", "path": "src/main/java/com/summation/SummationImpl.java", "license": "mit", "size": 4820 }
[ "java.io.BufferedReader", "java.io.FileNotFoundException", "java.io.FileReader", "java.io.IOException", "java.io.PrintWriter" ]
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.PrintWriter;
import java.io.*;
[ "java.io" ]
java.io;
2,368,254
public void setSelectionBoxColor(Color selectionBoxColor){ this.selectionBoxColor = new Color(selectionBoxColor.getRed(), selectionBoxColor.getGreen(), selectionBoxColor.getBlue(), 50); }
void function(Color selectionBoxColor){ this.selectionBoxColor = new Color(selectionBoxColor.getRed(), selectionBoxColor.getGreen(), selectionBoxColor.getBlue(), 50); }
/** * Set the color of the selection box. * * @param selectionBoxColor The color */
Set the color of the selection box
setSelectionBoxColor
{ "repo_name": "dstumpff/VortexGameLibrary", "path": "VortexGameEngine/src/vortex/gameentity/textbox/Confirmbox.java", "license": "bsd-3-clause", "size": 10870 }
[ "org.newdawn.slick.Color" ]
import org.newdawn.slick.Color;
import org.newdawn.slick.*;
[ "org.newdawn.slick" ]
org.newdawn.slick;
1,964,173
public FTPFile[] listFiles(String directory, boolean changedir) { //task.log("listing files in directory " + directory, Project.MSG_DEBUG); String currentPath = directory; if (changedir) { try { boolean result = ftp.changeWorkingDirectory(d...
FTPFile[] function(String directory, boolean changedir) { String currentPath = directory; if (changedir) { try { boolean result = ftp.changeWorkingDirectory(directory); if (!result) { return null; } currentPath = ftp.printWorkingDirectory(); } catch (IOException ioe) { throw new BuildException(ioe, task.getLocation());...
/** * list the files present in one directory. * @param directory full path on the remote side * @param changedir if true change to directory directory before listing * @return array of FTPFile */
list the files present in one directory
listFiles
{ "repo_name": "Mayo-WE01051879/mayosapp", "path": "Build/src/main/org/apache/tools/ant/taskdefs/optional/net/FTPTaskMirrorImpl.java", "license": "mit", "size": 78738 }
[ "java.io.IOException", "org.apache.commons.net.ftp.FTPFile", "org.apache.tools.ant.BuildException", "org.apache.tools.ant.Project" ]
import java.io.IOException; import org.apache.commons.net.ftp.FTPFile; import org.apache.tools.ant.BuildException; import org.apache.tools.ant.Project;
import java.io.*; import org.apache.commons.net.ftp.*; import org.apache.tools.ant.*;
[ "java.io", "org.apache.commons", "org.apache.tools" ]
java.io; org.apache.commons; org.apache.tools;
443,358
public Graph load(String filename) { // Use the default (non-validating) parser SAXParserFactory factory = SAXParserFactory.newInstance(); try { // Parse the input SAXParser saxParser = factory.newSAXParser(); saxParser.parse(new File(filename), mFileHand...
Graph function(String filename) { SAXParserFactory factory = SAXParserFactory.newInstance(); try { SAXParser saxParser = factory.newSAXParser(); saxParser.parse(new File(filename), mFileHandler); } catch (Exception e) { throw new FatalException(STR + filename, e); } return mFileHandler.getGraph(); }
/** * Loads a graph from a GraphML file. * @param filename the fully specified file name * @return the constructed graph */
Loads a graph from a GraphML file
load
{ "repo_name": "markus1978/clickwatch", "path": "external/edu.uci.ics.jung/src/edu/uci/ics/jung/io/GraphMLFile.java", "license": "apache-2.0", "size": 10869 }
[ "edu.uci.ics.jung.exceptions.FatalException", "edu.uci.ics.jung.graph.Graph", "java.io.File", "javax.xml.parsers.SAXParser", "javax.xml.parsers.SAXParserFactory" ]
import edu.uci.ics.jung.exceptions.FatalException; import edu.uci.ics.jung.graph.Graph; import java.io.File; import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory;
import edu.uci.ics.jung.exceptions.*; import edu.uci.ics.jung.graph.*; import java.io.*; import javax.xml.parsers.*;
[ "edu.uci.ics", "java.io", "javax.xml" ]
edu.uci.ics; java.io; javax.xml;
42,589
public Team getTeam() { return team; }
Team function() { return team; }
/** * Get the value of team * * @return the value of team */
Get the value of team
getTeam
{ "repo_name": "Heigvd/Wegas", "path": "wegas-core/src/main/java/com/wegas/core/security/rest/PlayerToGameModel.java", "license": "mit", "size": 2275 }
[ "com.wegas.core.persistence.game.Team" ]
import com.wegas.core.persistence.game.Team;
import com.wegas.core.persistence.game.*;
[ "com.wegas.core" ]
com.wegas.core;
190,240
@Contract(pure = true) public static int mod(int a, int b){ if (b <= 0){ return -1; } int div = a / b; return a - div * b; }
@Contract(pure = true) static int function(int a, int b){ if (b <= 0){ return -1; } int div = a / b; return a - div * b; }
/** * Finds the mod of a on b * * Uses simple arithmetic operations to get the modulo result * * @bigo The time complexity of mod is 1 * @attempts 1 attempt(s) made by @user on bigo.Algo.mod * @param a the number with which to mod b by * @param b the number to mod * @return ...
Finds the mod of a on b Uses simple arithmetic operations to get the modulo result
mod
{ "repo_name": "funkeyfreak/GitGood", "path": "Languages/Java/crackingthecodinginterview/bigo/src/main/java/com/gitgood/crackingthecodinginterview/bigo/Algo.java", "license": "apache-2.0", "size": 10175 }
[ "org.jetbrains.annotations.Contract" ]
import org.jetbrains.annotations.Contract;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
2,367,370
private static LinkedHashSet<BreakpointAddress> getUnionizedAddresses( final List<TraceList> traces) { final LinkedHashSet<BreakpointAddress> addresses = new LinkedHashSet<BreakpointAddress>(); for (final Collection<BreakpointAddress> collection : getTraceAddresses(traces)) { addresses.addAll(col...
static LinkedHashSet<BreakpointAddress> function( final List<TraceList> traces) { final LinkedHashSet<BreakpointAddress> addresses = new LinkedHashSet<BreakpointAddress>(); for (final Collection<BreakpointAddress> collection : getTraceAddresses(traces)) { addresses.addAll(collection); } return addresses; }
/** * Calculates the event addresses that appear in any of the traces. * * @param traces The input traces. * * @return The addresses of those events that appear in any of the traces. */
Calculates the event addresses that appear in any of the traces
getUnionizedAddresses
{ "repo_name": "chubbymaggie/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/Gui/Debug/EventLists/Implementations/CTraceCombinationFunctions.java", "license": "apache-2.0", "size": 11091 }
[ "com.google.security.zynamics.binnavi.debug.models.breakpoints.BreakpointAddress", "com.google.security.zynamics.binnavi.debug.models.trace.TraceList", "java.util.Collection", "java.util.LinkedHashSet", "java.util.List" ]
import com.google.security.zynamics.binnavi.debug.models.breakpoints.BreakpointAddress; import com.google.security.zynamics.binnavi.debug.models.trace.TraceList; import java.util.Collection; import java.util.LinkedHashSet; import java.util.List;
import com.google.security.zynamics.binnavi.debug.models.breakpoints.*; import com.google.security.zynamics.binnavi.debug.models.trace.*; import java.util.*;
[ "com.google.security", "java.util" ]
com.google.security; java.util;
769,903
public void setWorkManager(WorkManager wm) { this.workManager = wm; }
void function(WorkManager wm) { this.workManager = wm; }
/** * Set the work manager * @param wm The handle */
Set the work manager
setWorkManager
{ "repo_name": "ironjacamar/ironjacamar", "path": "core/impl/src/main/java/org/jboss/jca/core/bootstrapcontext/BaseCloneableBootstrapContext.java", "license": "lgpl-2.1", "size": 7137 }
[ "org.jboss.jca.core.api.workmanager.WorkManager" ]
import org.jboss.jca.core.api.workmanager.WorkManager;
import org.jboss.jca.core.api.workmanager.*;
[ "org.jboss.jca" ]
org.jboss.jca;
2,114,062
return getTypedAttribute(context, SearchAttributes.class); }
return getTypedAttribute(context, SearchAttributes.class); }
/** * Extracts <code>SearchAttributes</code> object from execution context. * * @param context the execution context. * @return <code>SearchAttributes</code> object from execution context. */
Extracts <code>SearchAttributes</code> object from execution context
getSearchAttributes
{ "repo_name": "leocockroach/JasperServer5.6", "path": "jasperserver-search/src/main/java/com/jaspersoft/jasperserver/search/filter/BaseSearchFilter.java", "license": "gpl-2.0", "size": 2911 }
[ "com.jaspersoft.jasperserver.search.common.SearchAttributes" ]
import com.jaspersoft.jasperserver.search.common.SearchAttributes;
import com.jaspersoft.jasperserver.search.common.*;
[ "com.jaspersoft.jasperserver" ]
com.jaspersoft.jasperserver;
2,205,269
protected String normalizePath(ClientlibRef ref, ClientlibElement clientlib) { if (ref.isCategory()) return "category:" + ref.category; if (!ref.path.startsWith("/")) return ref.path; for (String pathelement : adminResolver.getSearchPath()) { ...
String function(ClientlibRef ref, ClientlibElement clientlib) { if (ref.isCategory()) return STR + ref.category; if (!ref.path.startsWith("/")) return ref.path; for (String pathelement : adminResolver.getSearchPath()) { if (ref.path.startsWith(pathelement)) { String normalizedPath = ref.path.substring(pathelement.lengt...
/** * Returns the path as it would be in a clientlib reference: relative to search path or a category link */
Returns the path as it would be in a clientlib reference: relative to search path or a category link
normalizePath
{ "repo_name": "ist-dresden/composum", "path": "commons/src/main/java/com/composum/sling/clientlibs/servlet/ClientlibDebugConsolePlugin.java", "license": "mit", "size": 21841 }
[ "com.composum.sling.clientlibs.handle.Clientlib", "com.composum.sling.clientlibs.handle.ClientlibElement", "com.composum.sling.clientlibs.handle.ClientlibRef", "com.composum.sling.clientlibs.processor.AbstractClientlibVisitor", "com.composum.sling.clientlibs.service.ClientlibService", "java.io.PrintWriter...
import com.composum.sling.clientlibs.handle.Clientlib; import com.composum.sling.clientlibs.handle.ClientlibElement; import com.composum.sling.clientlibs.handle.ClientlibRef; import com.composum.sling.clientlibs.processor.AbstractClientlibVisitor; import com.composum.sling.clientlibs.service.ClientlibService; import ja...
import com.composum.sling.clientlibs.handle.*; import com.composum.sling.clientlibs.processor.*; import com.composum.sling.clientlibs.service.*; import java.io.*; import java.util.*; import org.apache.sling.api.resource.*;
[ "com.composum.sling", "java.io", "java.util", "org.apache.sling" ]
com.composum.sling; java.io; java.util; org.apache.sling;
1,336,424
public JRPart removePart(JRPart part) { if (part != null) { int idx = partsList.indexOf(part); if (idx >= 0) { partsList.remove(idx); getEventSupport().fireCollectionElementRemovedEvent(PROPERTY_PARTS, part, idx); } } return part; }
JRPart function(JRPart part) { if (part != null) { int idx = partsList.indexOf(part); if (idx >= 0) { partsList.remove(idx); getEventSupport().fireCollectionElementRemovedEvent(PROPERTY_PARTS, part, idx); } } return part; }
/** * Removes a part from the section. * * @param part the part to be removed * @return the part to be removed */
Removes a part from the section
removePart
{ "repo_name": "aleatorio12/ProVentasConnector", "path": "jasperreports-6.2.1-project/jasperreports-6.2.1/src/net/sf/jasperreports/engine/design/JRDesignSection.java", "license": "gpl-3.0", "size": 5812 }
[ "net.sf.jasperreports.engine.JRPart" ]
import net.sf.jasperreports.engine.JRPart;
import net.sf.jasperreports.engine.*;
[ "net.sf.jasperreports" ]
net.sf.jasperreports;
1,820,124
public void removeBlockTileEntity(int par1, int par2, int par3) { Chunk chunk = getChunkFromChunkCoords(par1 >> 4, par3 >> 4); if (chunk != null) { chunk.removeChunkBlockTileEntity(par1 & 15, par2, par3 & 15); } //notify tile changes func_96440_m(par1,...
void function(int par1, int par2, int par3) { Chunk chunk = getChunkFromChunkCoords(par1 >> 4, par3 >> 4); if (chunk != null) { chunk.removeChunkBlockTileEntity(par1 & 15, par2, par3 & 15); } func_96440_m(par1, par2, par3, 0); }
/** * Removes the TileEntity for a given block in X,Y,Z coordinates */
Removes the TileEntity for a given block in X,Y,Z coordinates
removeBlockTileEntity
{ "repo_name": "HATB0T/RuneCraftery", "path": "forge/mcp/src/minecraft/net/minecraft/world/World.java", "license": "lgpl-3.0", "size": 151760 }
[ "net.minecraft.world.chunk.Chunk" ]
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.*;
[ "net.minecraft.world" ]
net.minecraft.world;
282,898