method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public AccountingPeriod getUniversityFiscalPeriod() {
return universityFiscalPeriod;
} | AccountingPeriod function() { return universityFiscalPeriod; } | /**
* Gets the universityFiscalPeriod attribute.
*
* @return Returns the universityFiscalPeriod
*/ | Gets the universityFiscalPeriod attribute | getUniversityFiscalPeriod | {
"repo_name": "Ariah-Group/Finance",
"path": "af_webapp/src/main/java/org/kuali/kfs/module/ar/document/CashControlDocument.java",
"license": "apache-2.0",
"size": 27714
} | [
"org.kuali.kfs.coa.businessobject.AccountingPeriod"
] | import org.kuali.kfs.coa.businessobject.AccountingPeriod; | import org.kuali.kfs.coa.businessobject.*; | [
"org.kuali.kfs"
] | org.kuali.kfs; | 119,001 |
@Override
public void serverStopping() {
// If the system is configured to quiesce connections..
long timeout = chfw.getDefaultChainQuiesceTimeout();
if (timeout > 0) {
ChainData[] runningChains = chfw.getRunningChains();
// build list of chain names to pass to s... | void function() { long timeout = chfw.getDefaultChainQuiesceTimeout(); if (timeout > 0) { ChainData[] runningChains = chfw.getRunningChains(); List<String> names = new ArrayList<String>(); for (int i = 0; i < runningChains.length; i++) { if (FlowType.INBOUND.equals(runningChains[i].getType())) { names.add(runningChains... | /**
* When notified that the server is going to stop, pre-quiesce all chains in the runtime.
* This will be called before services start getting torn down..
*
* @see com.ibm.wsspi.kernel.service.utils.ServerQuiesceListener#serverStopping()
*/ | When notified that the server is going to stop, pre-quiesce all chains in the runtime. This will be called before services start getting torn down. | serverStopping | {
"repo_name": "kgibm/open-liberty",
"path": "dev/com.ibm.ws.channelfw/src/com/ibm/websphere/channelfw/osgi/CHFWBundle.java",
"license": "epl-1.0",
"size": 22042
} | [
"com.ibm.websphere.channelfw.ChainData",
"com.ibm.websphere.channelfw.ChannelUtils",
"com.ibm.websphere.channelfw.FlowType",
"java.util.ArrayList",
"java.util.List"
] | import com.ibm.websphere.channelfw.ChainData; import com.ibm.websphere.channelfw.ChannelUtils; import com.ibm.websphere.channelfw.FlowType; import java.util.ArrayList; import java.util.List; | import com.ibm.websphere.channelfw.*; import java.util.*; | [
"com.ibm.websphere",
"java.util"
] | com.ibm.websphere; java.util; | 1,074,037 |
public static <U1,U2,U3,U4,U5,R> Function<AnyM<U1>,Function<AnyM<U2>,Function<AnyM<U3>,Function<AnyM<U4>,Function<AnyM<U5>,AnyM<R>>>>>> liftM5(Function<U1,Function<U2,Function<U3,Function<U4,Function<U5,R>>>>> fn){
return u1 ->u2 ->u3 ->u4 ->u5 -> u1.bind( input1 ->
u2.bind(input2 ->
... | static <U1,U2,U3,U4,U5,R> Function<AnyM<U1>,Function<AnyM<U2>,Function<AnyM<U3>,Function<AnyM<U4>,Function<AnyM<U5>,AnyM<R>>>>>> function(Function<U1,Function<U2,Function<U3,Function<U4,Function<U5,R>>>>> fn){ return u1 ->u2 ->u3 ->u4 ->u5 -> u1.bind( input1 -> u2.bind(input2 -> u3.bind(input3-> u4.bind(input4-> u5.map... | /**
* Lift a Curried Function {@code (5 levels a->b->c->d->e->fn.apply(a,b,c,d,e) ) }into Monadic form
*
* @param fn Function to lift
* @return Lifted function
*/ | Lift a Curried Function (5 levels a->b->c->d->e->fn.apply(a,b,c,d,e) ) into Monadic form | liftM5 | {
"repo_name": "sjfloat/cyclops",
"path": "cyclops-functions/src/main/java/com/aol/cyclops/functions/LiftMFunctions.java",
"license": "mit",
"size": 5705
} | [
"com.aol.cyclops.lambda.monads.AnyM",
"java.util.function.Function"
] | import com.aol.cyclops.lambda.monads.AnyM; import java.util.function.Function; | import com.aol.cyclops.lambda.monads.*; import java.util.function.*; | [
"com.aol.cyclops",
"java.util"
] | com.aol.cyclops; java.util; | 2,333,797 |
void broadcastPacket(Message packet); | void broadcastPacket(Message packet); | /**
* Brodcasts the specified message to all local client sessions of each cluster node.
* The current cluster node is not going to be included.
*
* @param packet the message to broadcast.
*/ | Brodcasts the specified message to all local client sessions of each cluster node. The current cluster node is not going to be included | broadcastPacket | {
"repo_name": "wudingli/openfire",
"path": "src/java/org/jivesoftware/openfire/RemotePacketRouter.java",
"license": "apache-2.0",
"size": 1656
} | [
"org.xmpp.packet.Message"
] | import org.xmpp.packet.Message; | import org.xmpp.packet.*; | [
"org.xmpp.packet"
] | org.xmpp.packet; | 2,408,470 |
@Override
@Transactional
public void update(String[] ids, IConceptCollection collection,
String username) throws QuadrigaStorageException {
for (String id : ids) {
if ((id != null && !id.isEmpty())) {
edu.asu.spring.quadriga.conceptpower.IConcept cpConcept = c... | void function(String[] ids, IConceptCollection collection, String username) throws QuadrigaStorageException { for (String id : ids) { if ((id != null && !id.isEmpty())) { edu.asu.spring.quadriga.conceptpower.IConcept cpConcept = cpCache.getConceptByUri(id); if (cpConcept != null) { IConcept concept = conceptFactory.cre... | /**
* This method updates the items associated to the concept collection
*
* @param id
* [] - array of items associated with the collection
* @param collection
* - concept collection object
* @param username
* - logged in user
* @throws Quad... | This method updates the items associated to the concept collection | update | {
"repo_name": "diging/quadriga",
"path": "Quadriga/src/main/java/edu/asu/spring/quadriga/service/conceptcollection/impl/ConceptCollectionManager.java",
"license": "gpl-2.0",
"size": 11608
} | [
"edu.asu.spring.quadriga.domain.conceptcollection.IConcept",
"edu.asu.spring.quadriga.domain.conceptcollection.IConceptCollection",
"edu.asu.spring.quadriga.exceptions.QuadrigaStorageException"
] | import edu.asu.spring.quadriga.domain.conceptcollection.IConcept; import edu.asu.spring.quadriga.domain.conceptcollection.IConceptCollection; import edu.asu.spring.quadriga.exceptions.QuadrigaStorageException; | import edu.asu.spring.quadriga.domain.conceptcollection.*; import edu.asu.spring.quadriga.exceptions.*; | [
"edu.asu.spring"
] | edu.asu.spring; | 2,595,864 |
public boolean next() {
this.prevOffset = this.curOffset;
if (null == dataInputBuf) {
// We need to set up the iterator; this is the first use.
if (null == recordLenBytes) {
return false; // We don't have any records?
}
this.dataInputBuf = new DataInputBuffer()... | boolean function() { this.prevOffset = this.curOffset; if (null == dataInputBuf) { if (null == recordLenBytes) { return false; } this.dataInputBuf = new DataInputBuffer(); this.dataInputBuf.reset(recordLenBytes.getBytes(), 0, recordLenBytes.getLength()); this.curOffset = this.tableEntry.getFirstIndexOffset(); this.prev... | /**
* Aligns the iteration capability to return info about the next
* record in the IndexSegment. Must be called before the first
* record.
* @return true if there is another record described in this IndexSegment.
*/ | Aligns the iteration capability to return info about the next record in the IndexSegment. Must be called before the first record | next | {
"repo_name": "hirohanin/sqoop-1.1.0hadoop21",
"path": "src/java/com/cloudera/sqoop/io/LobFile.java",
"license": "apache-2.0",
"size": 60820
} | [
"java.io.IOException",
"org.apache.hadoop.io.DataInputBuffer",
"org.apache.hadoop.io.WritableUtils"
] | import java.io.IOException; import org.apache.hadoop.io.DataInputBuffer; import org.apache.hadoop.io.WritableUtils; | import java.io.*; import org.apache.hadoop.io.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 2,633,920 |
public List<ConnectivityStatusContract> connectivityStatus() {
return this.connectivityStatus;
} | List<ConnectivityStatusContract> function() { return this.connectivityStatus; } | /**
* Get the connectivityStatus property: Gets the list of Connectivity Status to the Resources on which the service
* depends upon.
*
* @return the connectivityStatus value.
*/ | Get the connectivityStatus property: Gets the list of Connectivity Status to the Resources on which the service depends upon | connectivityStatus | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/apimanagement/azure-resourcemanager-apimanagement/src/main/java/com/azure/resourcemanager/apimanagement/fluent/models/NetworkStatusContractInner.java",
"license": "mit",
"size": 3308
} | [
"com.azure.resourcemanager.apimanagement.models.ConnectivityStatusContract",
"java.util.List"
] | import com.azure.resourcemanager.apimanagement.models.ConnectivityStatusContract; import java.util.List; | import com.azure.resourcemanager.apimanagement.models.*; import java.util.*; | [
"com.azure.resourcemanager",
"java.util"
] | com.azure.resourcemanager; java.util; | 2,916,138 |
// -------------------------------------------------------------------------
public static List<DatabaseServer> getSecondaryDatabaseServersProperties() {
if (secondaryDatabaseServers == null) {
Utils.readPropertiesFileIntoSystem(TestRunner.getPropertiesFile(), false);
seconda... | static List<DatabaseServer> function() { if (secondaryDatabaseServers == null) { Utils.readPropertiesFileIntoSystem(TestRunner.getPropertiesFile(), false); secondaryDatabaseServers = new ArrayList<DatabaseServer>(); checkAndAddDatabaseServer(secondaryDatabaseServers, STR, STR, STR, STR, STR); checkAndAddDatabaseServer(... | /**
* Look for secondary database servers.
*/ | Look for secondary database servers | getSecondaryDatabaseServersProperties | {
"repo_name": "thomasmaurel/ensj-healthcheck",
"path": "src/org/ensembl/healthcheck/util/DBUtils.java",
"license": "apache-2.0",
"size": 66673
} | [
"java.util.ArrayList",
"java.util.List",
"org.ensembl.healthcheck.DatabaseServer",
"org.ensembl.healthcheck.TestRunner"
] | import java.util.ArrayList; import java.util.List; import org.ensembl.healthcheck.DatabaseServer; import org.ensembl.healthcheck.TestRunner; | import java.util.*; import org.ensembl.healthcheck.*; | [
"java.util",
"org.ensembl.healthcheck"
] | java.util; org.ensembl.healthcheck; | 2,425,892 |
// ! Incoming edges of the node.
public List<InstructionGraphEdge> getIncomingEdges() {
return new ArrayList<InstructionGraphEdge>(incomingEdges);
} | List<InstructionGraphEdge> function() { return new ArrayList<InstructionGraphEdge>(incomingEdges); } | /**
* Returns the incoming edges of the node.
*
* @return The incoming edges of the node.
*/ | Returns the incoming edges of the node | getIncomingEdges | {
"repo_name": "AmesianX/binnavi",
"path": "src/main/java/com/google/security/zynamics/binnavi/API/reil/mono/InstructionGraphNode.java",
"license": "apache-2.0",
"size": 5043
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,410,732 |
private void sendRequestHeader(MessageType type, int size) throws IOException {
ByteBuffer buf = ByteBuffer.allocate(8);
buf.order(ByteOrder.BIG_ENDIAN);
buf.put((byte) 'L');
buf.put((byte) '1');
buf.put(type.getValue());
buf.put((byte) 0); // request
buf.putInt(size);
buf.flip();
... | void function(MessageType type, int size) throws IOException { ByteBuffer buf = ByteBuffer.allocate(8); buf.order(ByteOrder.BIG_ENDIAN); buf.put((byte) 'L'); buf.put((byte) '1'); buf.put(type.getValue()); buf.put((byte) 0); buf.putInt(size); buf.flip(); logger.finest(STR + (0) + STR + ((int) type.getValue()) + STR + si... | /**
* Send the 8 byte header before a Opera Launcher message body (payload).
*
* @param type the payload type to be sent after
* @param size size of the payload following the header
* @throws IOException if socket send error or protocol parse error
*/ | Send the 8 byte header before a Opera Launcher message body (payload) | sendRequestHeader | {
"repo_name": "operasoftware/operaprestodriver",
"path": "src/com/opera/core/systems/runner/launcher/OperaLauncherProtocol.java",
"license": "apache-2.0",
"size": 7929
} | [
"java.io.IOException",
"java.nio.ByteBuffer",
"java.nio.ByteOrder"
] | import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; | import java.io.*; import java.nio.*; | [
"java.io",
"java.nio"
] | java.io; java.nio; | 2,051,050 |
public CmsMacroResolver setAdditionalMacros(Map<String, String> additionalMacros) {
m_additionalMacros = additionalMacros;
return this;
} | CmsMacroResolver function(Map<String, String> additionalMacros) { m_additionalMacros = additionalMacros; return this; } | /**
* Provides a set of additional macros to this macro resolver.<p>
*
* Macros added with {@link #addMacro(String, String)} are added to the same set
*
* @param additionalMacros the additional macros to add
*
* @return this instance of the macro resolver
*/ | Provides a set of additional macros to this macro resolver. Macros added with <code>#addMacro(String, String)</code> are added to the same set | setAdditionalMacros | {
"repo_name": "alkacon/opencms-core",
"path": "src/org/opencms/util/CmsMacroResolver.java",
"license": "lgpl-2.1",
"size": 53351
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 951,244 |
public static boolean fromJson(File file, Message.Builder builder, int flags) {
try (Reader reader = Files.newBufferedReader(file.toPath())) {
return fromJson(reader, builder, flags);
} catch (final IOException ex) {
logReadError(flags, ex);
}
return false;
} | static boolean function(File file, Message.Builder builder, int flags) { try (Reader reader = Files.newBufferedReader(file.toPath())) { return fromJson(reader, builder, flags); } catch (final IOException ex) { logReadError(flags, ex); } return false; } | /**
* Read the message from a JSON string in a file.
*
* @param file the file
* @param builder the builder
* @param flags the flags
* @return true, if successful
*/ | Read the message from a JSON string in a file | fromJson | {
"repo_name": "aherbert/GDSC-SMLM",
"path": "src/main/java/uk/ac/sussex/gdsc/smlm/ij/settings/SettingsManager.java",
"license": "gpl-3.0",
"size": 46108
} | [
"com.google.protobuf.Message",
"java.io.File",
"java.io.IOException",
"java.io.Reader",
"java.nio.file.Files"
] | import com.google.protobuf.Message; import java.io.File; import java.io.IOException; import java.io.Reader; import java.nio.file.Files; | import com.google.protobuf.*; import java.io.*; import java.nio.file.*; | [
"com.google.protobuf",
"java.io",
"java.nio"
] | com.google.protobuf; java.io; java.nio; | 1,638,310 |
public Message[] getMessages() {
return messages;
} | Message[] function() { return messages; } | /**
* Returns all messages.
*
* @return all messages
*/ | Returns all messages | getMessages | {
"repo_name": "rfellows/pentaho-kettle",
"path": "engine/src/org/pentaho/di/job/entries/getpop/MailConnection.java",
"license": "apache-2.0",
"size": 40631
} | [
"javax.mail.Message"
] | import javax.mail.Message; | import javax.mail.*; | [
"javax.mail"
] | javax.mail; | 1,299,954 |
public void setposition(Point point)
{
this.point=point;
}
| void function(Point point) { this.point=point; } | /***
* Beschreibung: Position setzen
*/ | Beschreibung: Position setzen | setposition | {
"repo_name": "MichaelJ2/big-buum-man",
"path": "source/big-buum-man-server/src/main/java/at/big_buum_man/server/gui/objects/Player.java",
"license": "gpl-3.0",
"size": 5925
} | [
"at.big_buum_man.server.gui.helper.Point"
] | import at.big_buum_man.server.gui.helper.Point; | import at.big_buum_man.server.gui.helper.*; | [
"at.big_buum_man.server"
] | at.big_buum_man.server; | 2,506,126 |
HiveConf hconf = new HiveConf();
assertTrue("default value of hive server2 doAs should be true",
hconf.getBoolVar(ConfVars.HIVE_SERVER2_ENABLE_DOAS));
CLIService cliService = new CLIService(null);
cliService.init(hconf);
ThriftCLIService tcliService = new ThriftBinaryCLIService(cliService)... | HiveConf hconf = new HiveConf(); assertTrue(STR, hconf.getBoolVar(ConfVars.HIVE_SERVER2_ENABLE_DOAS)); CLIService cliService = new CLIService(null); cliService.init(hconf); ThriftCLIService tcliService = new ThriftBinaryCLIService(cliService); tcliService.init(hconf); TProcessorFactory procFactory = PlainSaslHelper.get... | /**
* Test setting {@link HiveConf.ConfVars}} config parameter
* HIVE_SERVER2_ENABLE_DOAS for unsecure mode
*/ | Test setting <code>HiveConf.ConfVars</code>} config parameter HIVE_SERVER2_ENABLE_DOAS for unsecure mode | testDoAsSetting | {
"repo_name": "WANdisco/amplab-hive",
"path": "service/src/test/org/apache/hive/service/auth/TestPlainSaslHelper.java",
"license": "apache-2.0",
"size": 1999
} | [
"org.apache.hadoop.hive.conf.HiveConf",
"org.apache.hive.service.cli.CLIService",
"org.apache.hive.service.cli.thrift.ThriftBinaryCLIService",
"org.apache.hive.service.cli.thrift.ThriftCLIService",
"org.apache.thrift.TProcessorFactory"
] | import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hive.service.cli.CLIService; import org.apache.hive.service.cli.thrift.ThriftBinaryCLIService; import org.apache.hive.service.cli.thrift.ThriftCLIService; import org.apache.thrift.TProcessorFactory; | import org.apache.hadoop.hive.conf.*; import org.apache.hive.service.cli.*; import org.apache.hive.service.cli.thrift.*; import org.apache.thrift.*; | [
"org.apache.hadoop",
"org.apache.hive",
"org.apache.thrift"
] | org.apache.hadoop; org.apache.hive; org.apache.thrift; | 29,925 |
public static void sqlRequest(Workbook wb) {
System.out.println("Save used sql requests");
Sheet s = wb.createSheet();
Row r = null;
Cell c = null;
wb.setSheetName(shettCount, "SQL");
shettCount++;
int index = 1;
Row header = null;
Cell headerCell = null;
CellStyle c... | static void function(Workbook wb) { System.out.println(STR); Sheet s = wb.createSheet(); Row r = null; Cell c = null; wb.setSheetName(shettCount, "SQL"); shettCount++; int index = 1; Row header = null; Cell headerCell = null; CellStyle cs = wb.createCellStyle(); Font f = wb.createFont(); f.setBoldweight(Font.BOLDWEIGHT... | /**
* Sql requests
*
* @param wb
*/ | Sql requests | sqlRequest | {
"repo_name": "kgobunov/Java",
"path": "GetResultLoadApp/src/main/java/ru/aplana/app/Main.java",
"license": "gpl-2.0",
"size": 18560
} | [
"org.apache.poi.ss.usermodel.Cell",
"org.apache.poi.ss.usermodel.CellStyle",
"org.apache.poi.ss.usermodel.Font",
"org.apache.poi.ss.usermodel.Row",
"org.apache.poi.ss.usermodel.Sheet",
"org.apache.poi.ss.usermodel.Workbook"
] | import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellStyle; import org.apache.poi.ss.usermodel.Font; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; | import org.apache.poi.ss.usermodel.*; | [
"org.apache.poi"
] | org.apache.poi; | 959,943 |
public Attr createAttributeNS(String namespaceURI, String qualifiedName)
throws DOMException {
return new AttrNSImpl(this, namespaceURI, qualifiedName);
} | Attr function(String namespaceURI, String qualifiedName) throws DOMException { return new AttrNSImpl(this, namespaceURI, qualifiedName); } | /**
* Introduced in DOM Level 2. <p>
* Creates an attribute of the given qualified name and namespace URI.
* If the given namespaceURI is null or an empty string and the
* qualifiedName has a prefix that is "xml", the created element
* is bound to the predefined namespace
* "http://www.w3.... | Introduced in DOM Level 2. Creates an attribute of the given qualified name and namespace URI. If the given namespaceURI is null or an empty string and the qualifiedName has a prefix that is "xml", the created element is bound to the predefined namespace "HREF" [Namespaces] | createAttributeNS | {
"repo_name": "openjdk/jdk8u",
"path": "jaxp/src/com/sun/org/apache/xerces/internal/dom/CoreDocumentImpl.java",
"license": "gpl-2.0",
"size": 105220
} | [
"org.w3c.dom.Attr",
"org.w3c.dom.DOMException"
] | import org.w3c.dom.Attr; import org.w3c.dom.DOMException; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 1,147,746 |
public Window getOwner() {
return owner;
}
/**
* Get the printing attribute class which is to be used as the "category"
* for this printing attribute value.
* <p>
* For class {@code DialogOwner}, the category is class
* {@code DialogOwner} itself.
*
* @return prin... | Window function() { return owner; } /** * Get the printing attribute class which is to be used as the STR * for this printing attribute value. * <p> * For class {@code DialogOwner}, the category is class * {@code DialogOwner} itself. * * @return printing attribute class (category), an instance of class * {@link Class j... | /**
* Returns a {@code Window owner}, if one was specified,
* otherwise {@code null}.
* @return an owner window.
*/ | Returns a Window owner, if one was specified, otherwise null | getOwner | {
"repo_name": "md-5/jdk10",
"path": "src/java.desktop/share/classes/javax/print/attribute/standard/DialogOwner.java",
"license": "gpl-2.0",
"size": 4796
} | [
"java.awt.Window"
] | import java.awt.Window; | import java.awt.*; | [
"java.awt"
] | java.awt; | 2,821,655 |
public String getCredentials(String method, String requestUri, HttpHeader header, String authenticateHeaderName) throws WebSocketException;
public void init(WebSocket websocket, Credentials credentials);
| String getCredentials(String method, String requestUri, HttpHeader header, String authenticateHeaderName) throws WebSocketException; public void function(WebSocket websocket, Credentials credentials); | /**
* inits authenticator
*
* @param websocket the websocket
* @param credentials the credentials
*/ | inits authenticator | init | {
"repo_name": "exercisecode/alidayu_demo",
"path": "alidayu/src/main/java/com/taobao/api/internal/toplink/embedded/websocket/auth/Authenticator.java",
"license": "apache-2.0",
"size": 2469
} | [
"com.taobao.api.internal.toplink.embedded.websocket.HttpHeader",
"com.taobao.api.internal.toplink.embedded.websocket.WebSocket",
"com.taobao.api.internal.toplink.embedded.websocket.exception.WebSocketException"
] | import com.taobao.api.internal.toplink.embedded.websocket.HttpHeader; import com.taobao.api.internal.toplink.embedded.websocket.WebSocket; import com.taobao.api.internal.toplink.embedded.websocket.exception.WebSocketException; | import com.taobao.api.internal.toplink.embedded.websocket.*; import com.taobao.api.internal.toplink.embedded.websocket.exception.*; | [
"com.taobao.api"
] | com.taobao.api; | 1,296,073 |
private void indexThis() {
this.INDEXING_PROGBAR.setIndeterminate(true);
currentDb = this.toIndex.getHashSetName();
this.CURRENTDB_LABEL.setText("(" + currentDb + ")");
this.length = 1;
this.CURRENTLYON_LABEL.setText(
NbBundle.getMessage(this.getClass(), "Moda... | void function() { this.INDEXING_PROGBAR.setIndeterminate(true); currentDb = this.toIndex.getHashSetName(); this.CURRENTDB_LABEL.setText("(" + currentDb + ")"); this.length = 1; this.CURRENTLYON_LABEL.setText( NbBundle.getMessage(this.getClass(), STR)); if (!this.toIndex.isIndexing()) { this.toIndex.addPropertyChangeLis... | /**
* Takes the singular HashDB and indexes it, setting various text labels
* along the way.
*/ | Takes the singular HashDB and indexes it, setting various text labels along the way | indexThis | {
"repo_name": "millmanorama/autopsy",
"path": "Core/src/org/sleuthkit/autopsy/modules/hashdatabase/ModalNoButtons.java",
"license": "apache-2.0",
"size": 12729
} | [
"org.openide.util.NbBundle"
] | import org.openide.util.NbBundle; | import org.openide.util.*; | [
"org.openide.util"
] | org.openide.util; | 398,354 |
public Rectangle2D.Double getBoundsP() {
return new Rectangle2D.Double(porigin_.x, porigin_.y,
psize_.width, psize_.height);
} | Rectangle2D.Double function() { return new Rectangle2D.Double(porigin_.x, porigin_.y, psize_.width, psize_.height); } | /**
* Get the bounding rectangle for the key in physical
* coordinates.
*
* @return bounding rectangle
*/ | Get the bounding rectangle for the key in physical coordinates | getBoundsP | {
"repo_name": "kernsuite-debian/lofar",
"path": "JAVA/GUI/Plotter/src/gov/noaa/pmel/sgt/ColorKey.java",
"license": "gpl-3.0",
"size": 19599
} | [
"gov.noaa.pmel.util.Rectangle2D",
"java.awt.geom.Rectangle2D"
] | import gov.noaa.pmel.util.Rectangle2D; import java.awt.geom.Rectangle2D; | import gov.noaa.pmel.util.*; import java.awt.geom.*; | [
"gov.noaa.pmel",
"java.awt"
] | gov.noaa.pmel; java.awt; | 977,512 |
// TODO: Rename and change types and number of parameters
public static GalleryFragment newInstance(String param1, String param2) {
GalleryFragment fragment = new GalleryFragment();
Bundle args = new Bundle();
args.putString(ARG_PARAM1, param1);
args.putString(ARG_PARAM2, param2)... | static GalleryFragment function(String param1, String param2) { GalleryFragment fragment = new GalleryFragment(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; } | /**
* Use this factory method to create a new instance of
* this fragment using the provided parameters.
*
* @param param1 Parameter 1.
* @param param2 Parameter 2.
* @return A new instance of fragment GalleryFragment.
*/ | Use this factory method to create a new instance of this fragment using the provided parameters | newInstance | {
"repo_name": "FilipeAlbuquerque/EletroFisio",
"path": "app/src/main/java/eletrofisio/com/teste11/fragments/GalleryFragment.java",
"license": "apache-2.0",
"size": 2098
} | [
"android.os.Bundle"
] | import android.os.Bundle; | import android.os.*; | [
"android.os"
] | android.os; | 2,196,581 |
void setFinishTime(long finishTime) {
if(this.getStartTime() > 0 && finishTime > 0) {
this.finishTime = finishTime;
} else {
//Using String utils to get the stack trace.
LOG.error("Trying to set finish time for task " + taskid +
" when no start time is set, stackTrace is : " +
... | void setFinishTime(long finishTime) { if(this.getStartTime() > 0 && finishTime > 0) { this.finishTime = finishTime; } else { LOG.error(STR + taskid + STR + StringUtils.stringifyException(new Exception())); } } | /**
* Sets finishTime for the task status if and only if the
* start time is set and passed finish time is greater than
* zero.
*
* @param finishTime finish time of task.
*/ | Sets finishTime for the task status if and only if the start time is set and passed finish time is greater than zero | setFinishTime | {
"repo_name": "mammothcm/mammoth",
"path": "src/org/apache/hadoop/mapred/TaskStatus.java",
"license": "apache-2.0",
"size": 15230
} | [
"org.apache.hadoop.util.StringUtils"
] | import org.apache.hadoop.util.StringUtils; | import org.apache.hadoop.util.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,784,766 |
public void addPropertyChangeListener(PropertyChangeListener listener); | void function(PropertyChangeListener listener); | /**
* Add a property change listener to this component.
*
* @param listener The listener to add
*/ | Add a property change listener to this component | addPropertyChangeListener | {
"repo_name": "nrgaway/qubes-tools",
"path": "experimental/tomcat/apache-tomcat-8.0.15-src/java/org/apache/catalina/Realm.java",
"license": "gpl-2.0",
"size": 7449
} | [
"java.beans.PropertyChangeListener"
] | import java.beans.PropertyChangeListener; | import java.beans.*; | [
"java.beans"
] | java.beans; | 773,627 |
public TileFactory getTileFactory() {
return factory;
}
| TileFactory function() { return factory; } | /**
* Get the current factory
*
* @return the current property value
*/ | Get the current factory | getTileFactory | {
"repo_name": "meteoinfo/meteoinfolib",
"path": "src/org/meteoinfo/layer/WebMapLayer.java",
"license": "lgpl-3.0",
"size": 30473
} | [
"org.meteoinfo.data.mapdata.webmap.TileFactory"
] | import org.meteoinfo.data.mapdata.webmap.TileFactory; | import org.meteoinfo.data.mapdata.webmap.*; | [
"org.meteoinfo.data"
] | org.meteoinfo.data; | 827,234 |
public static JmeterKeyStore getInstance(String type) throws KeyStoreException {
return getInstance(type, 0, -1, DEFAULT_ALIAS_VAR_NAME);
} | static JmeterKeyStore function(String type) throws KeyStoreException { return getInstance(type, 0, -1, DEFAULT_ALIAS_VAR_NAME); } | /**
* Create a keystore which returns the first alias only.
*
* @param type of the store e.g. JKS
* @return the keystore
* @throws KeyStoreException when the type of the store is not supported
*/ | Create a keystore which returns the first alias only | getInstance | {
"repo_name": "etnetera/jmeter",
"path": "src/core/src/main/java/org/apache/jmeter/util/keystore/JmeterKeyStore.java",
"license": "apache-2.0",
"size": 12351
} | [
"java.security.KeyStoreException"
] | import java.security.KeyStoreException; | import java.security.*; | [
"java.security"
] | java.security; | 2,189,982 |
public List<Host> fetchHosts(int groupId) {
List<Host> hostlist = new ArrayList<Host>();
try {
Class.forName("org.sqlite.JDBC");
connection = DriverManager.getConnection("jdbc:sqlite:"
+ databaseFile);
statement = connection.createStatement();
statement.executeUpdate("PRAGMA foreign_keys=ON");
... | List<Host> function(int groupId) { List<Host> hostlist = new ArrayList<Host>(); try { Class.forName(STR); connection = DriverManager.getConnection(STR + databaseFile); statement = connection.createStatement(); statement.executeUpdate(STR); pstmt = connection .prepareStatement(STR); pstmt.setInt(1, groupId); resultSet =... | /**
* Fetches the hosts assigned to the group from the db.
*
* @param groupId
* @return
*/ | Fetches the hosts assigned to the group from the db | fetchHosts | {
"repo_name": "sneJ-/networkboot",
"path": "frontend/src/main/java/uk/ac/lsbu/networkboot/frontend/Database.java",
"license": "gpl-2.0",
"size": 64971
} | [
"java.sql.DriverManager",
"java.util.ArrayList",
"java.util.List"
] | import java.sql.DriverManager; import java.util.ArrayList; import java.util.List; | import java.sql.*; import java.util.*; | [
"java.sql",
"java.util"
] | java.sql; java.util; | 1,245,004 |
public synchronized Map<String, String> getOuterJoinGroups() throws PathException {
List<String> problems = verifyQuery();
if (problems.isEmpty() || Arrays.asList(NO_VIEW_ERROR).equals(problems)) {
return Collections.unmodifiableMap(new LinkedHashMap<String, String>(outerJoinGroups));
... | synchronized Map<String, String> function() throws PathException { List<String> problems = verifyQuery(); if (problems.isEmpty() Arrays.asList(NO_VIEW_ERROR).equals(problems)) { return Collections.unmodifiableMap(new LinkedHashMap<String, String>(outerJoinGroups)); } throw new PathException(STR + problems, null); } | /**
* Returns the outer join groups map for this query, if the query verifies correctly. This is a
* Map from all the class paths in the query to the outer join group, represented by the path of
* the root of the group.
*
* @return a Map from path String to the outer join group it is in
* ... | Returns the outer join groups map for this query, if the query verifies correctly. This is a Map from all the class paths in the query to the outer join group, represented by the path of the root of the group | getOuterJoinGroups | {
"repo_name": "julie-sullivan/phytomine",
"path": "intermine/pathquery/main/src/org/intermine/pathquery/PathQuery.java",
"license": "lgpl-2.1",
"size": 109645
} | [
"java.util.Arrays",
"java.util.Collections",
"java.util.LinkedHashMap",
"java.util.List",
"java.util.Map"
] | import java.util.Arrays; import java.util.Collections; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,708,710 |
public void deleteEntityListView(String entityListFullName, String viewName) throws Exception
{
MozuClient client = com.mozu.api.clients.platform.entitylists.ListViewClient.deleteEntityListViewClient( entityListFullName, viewName);
client.setContext(_apiContext);
client.executeRequest();
client.cleanu... | void function(String entityListFullName, String viewName) throws Exception { MozuClient client = com.mozu.api.clients.platform.entitylists.ListViewClient.deleteEntityListViewClient( entityListFullName, viewName); client.setContext(_apiContext); client.executeRequest(); client.cleanupHttpConnection(); } | /**
*
* <p><pre><code>
* ListView listview = new ListView();
* listview.deleteEntityListView( entityListFullName, viewName);
* </code></pre></p>
* @param entityListFullName The full name of the EntityList including namespace in name@nameSpace format
* @param viewName The name for a view. Views ar... | <code><code> ListView listview = new ListView(); listview.deleteEntityListView( entityListFullName, viewName); </code></code> | deleteEntityListView | {
"repo_name": "Mozu/mozu-java",
"path": "mozu-javaasync-core/src/main/java/com/mozu/api/resources/platform/entitylists/ListViewResource.java",
"license": "mit",
"size": 44274
} | [
"com.mozu.api.MozuClient"
] | import com.mozu.api.MozuClient; | import com.mozu.api.*; | [
"com.mozu.api"
] | com.mozu.api; | 409,484 |
private static void overwriteMembersIfPresent(
List<MemberDefinition> list, List<MemberDefinition> newMembers) {
for (MemberDefinition newMember : newMembers) {
for (MemberDefinition member : list) {
if (member.name.getString().equals(newMember.name.getString())) {
list.remove(member... | static void function( List<MemberDefinition> list, List<MemberDefinition> newMembers) { for (MemberDefinition newMember : newMembers) { for (MemberDefinition member : list) { if (member.name.getString().equals(newMember.name.getString())) { list.remove(member); break; } } list.add(newMember); } } | /**
* Appends a list of new MemberDefinitions to the end of a list and removes any previous
* MemberDefinition in the list which has the same name as the new member.
*/ | Appends a list of new MemberDefinitions to the end of a list and removes any previous MemberDefinition in the list which has the same name as the new member | overwriteMembersIfPresent | {
"repo_name": "brad4d/closure-compiler",
"path": "src/com/google/javascript/jscomp/PolymerClassDefinition.java",
"license": "apache-2.0",
"size": 6303
} | [
"com.google.javascript.jscomp.PolymerPass",
"java.util.List"
] | import com.google.javascript.jscomp.PolymerPass; import java.util.List; | import com.google.javascript.jscomp.*; import java.util.*; | [
"com.google.javascript",
"java.util"
] | com.google.javascript; java.util; | 2,305,472 |
public SplitDataProperties<T> splitsGroupedBy(String groupFields) {
if (groupFields == null) {
throw new InvalidProgramException("GroupFields may not be null.");
}
String[] groupKeysA = groupFields.split(";");
if (groupKeysA.length == 0) {
throw new InvalidProgramException("GroupFields may not be emp... | SplitDataProperties<T> function(String groupFields) { if (groupFields == null) { throw new InvalidProgramException(STR); } String[] groupKeysA = groupFields.split(";"); if (groupKeysA.length == 0) { throw new InvalidProgramException(STR); } if (this.splitOrdering != null) { throw new InvalidProgramException(STR); } thi... | /**
* Defines that the data within an input split is grouped on the fields defined by the field expressions.
* Multiple field expressions must be separated by the semicolon ';' character.
* All records sharing the same key (combination) must be subsequently emitted by the input
* format for each input split.
... | Defines that the data within an input split is grouped on the fields defined by the field expressions. Multiple field expressions must be separated by the semicolon ';' character. All records sharing the same key (combination) must be subsequently emitted by the input format for each input split. | splitsGroupedBy | {
"repo_name": "hequn8128/flink",
"path": "flink-java/src/main/java/org/apache/flink/api/java/io/SplitDataProperties.java",
"license": "apache-2.0",
"size": 15248
} | [
"org.apache.flink.api.common.InvalidProgramException"
] | import org.apache.flink.api.common.InvalidProgramException; | import org.apache.flink.api.common.*; | [
"org.apache.flink"
] | org.apache.flink; | 2,005,339 |
public void resetAllDefaultValues() {
Uri uri = SipConfigManager.RAZ_URI;
resolver.update(uri, new ContentValues(), null, null);
} | void function() { Uri uri = SipConfigManager.RAZ_URI; resolver.update(uri, new ContentValues(), null, null); } | /**
* Set all values to default
*/ | Set all values to default | resetAllDefaultValues | {
"repo_name": "voxofon/CSipSimple",
"path": "src/com/csipsimple/utils/PreferencesProviderWrapper.java",
"license": "lgpl-3.0",
"size": 21675
} | [
"android.content.ContentValues",
"android.net.Uri",
"com.csipsimple.api.SipConfigManager"
] | import android.content.ContentValues; import android.net.Uri; import com.csipsimple.api.SipConfigManager; | import android.content.*; import android.net.*; import com.csipsimple.api.*; | [
"android.content",
"android.net",
"com.csipsimple.api"
] | android.content; android.net; com.csipsimple.api; | 1,534,105 |
@Test
public void successNazcaMonkey() {
Vector2[] vertices = this.load(EarClippingTest.class.getResourceAsStream("/org/dyn4j/data/nazca_monkey.dat"));
// decompose the poly
List<Convex> result = this.algo.decompose(vertices);
// the result should have less than or equal to n - 2 convex shapes
TestC... | void function() { Vector2[] vertices = this.load(EarClippingTest.class.getResourceAsStream(STR)); List<Convex> result = this.algo.decompose(vertices); TestCase.assertTrue(result.size() <= vertices.length - 2); } | /**
* Tests the implementation against the nazca_monkey data file.
*/ | Tests the implementation against the nazca_monkey data file | successNazcaMonkey | {
"repo_name": "dmitrykolesnikovich/dyn4j",
"path": "junit/org/dyn4j/geometry/EarClippingTest.java",
"license": "bsd-3-clause",
"size": 21225
} | [
"java.util.List",
"junit.framework.TestCase"
] | import java.util.List; import junit.framework.TestCase; | import java.util.*; import junit.framework.*; | [
"java.util",
"junit.framework"
] | java.util; junit.framework; | 2,896,638 |
public int maWidgetInsertChild(int parentHandle, int childHandle, int index)
{
if( parentHandle == childHandle )
{
Log.e( "MoSync", "maWidgetInsertChild: Child and parent are the same." );
return IX_WIDGET.MAW_RES_ERROR;
}
Widget parent = m_widgetTable.get( parentHandle );
Widget child = m_widgetTa... | int function(int parentHandle, int childHandle, int index) { if( parentHandle == childHandle ) { Log.e( STR, STR ); return IX_WIDGET.MAW_RES_ERROR; } Widget parent = m_widgetTable.get( parentHandle ); Widget child = m_widgetTable.get( childHandle ); if( child == null ) { Log.e( STR, STR + childHandle ); return IX_WIDGE... | /**
* Internal function for the maWidgetInsertChild system call.
* Inserts a child at a specific position in the given parent, the parent
* must be of type Layout.
*
* Note: Should only be called on the UI thread.
*/ | Internal function for the maWidgetInsertChild system call. Inserts a child at a specific position in the given parent, the parent must be of type Layout. Note: Should only be called on the UI thread | maWidgetInsertChild | {
"repo_name": "MoSync/MoSync",
"path": "runtimes/java/platforms/androidJNI/AndroidProject/src/com/mosync/nativeui/core/NativeUI.java",
"license": "gpl-2.0",
"size": 26235
} | [
"android.util.Log",
"com.mosync.nativeui.ui.widgets.Widget"
] | import android.util.Log; import com.mosync.nativeui.ui.widgets.Widget; | import android.util.*; import com.mosync.nativeui.ui.widgets.*; | [
"android.util",
"com.mosync.nativeui"
] | android.util; com.mosync.nativeui; | 886,804 |
public static void requestApplyInsets(View view) {
IMPL.requestApplyInsets(view);
} | static void function(View view) { IMPL.requestApplyInsets(view); } | /**
* Ask that a new dispatch of {@code View.onApplyWindowInsets(WindowInsets)} be performed. This
* falls back to {@code View.requestFitSystemWindows()} where available.
*/ | Ask that a new dispatch of View.onApplyWindowInsets(WindowInsets) be performed. This falls back to View.requestFitSystemWindows() where available | requestApplyInsets | {
"repo_name": "rytina/dukecon_appsgenerator",
"path": "org.applause.lang.generator.android/sdk/extras/android/support/v4/src/java/android/support/v4/view/ViewCompat.java",
"license": "epl-1.0",
"size": 120271
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 1,471,464 |
parent.setLayout(new GridLayout(1, true));
createHeadline(parent);
browser = new Browser(parent, SWT.None);
browser.setLayoutData(new GridData(GridData.FILL_BOTH));
} | parent.setLayout(new GridLayout(1, true)); createHeadline(parent); browser = new Browser(parent, SWT.None); browser.setLayoutData(new GridData(GridData.FILL_BOTH)); } | /**
* Constructs the UI.
*
* @param parent
* of the UI WIndow.
*/ | Constructs the UI | createUi | {
"repo_name": "franzbecker/test-editor",
"path": "ui/org.testeditor.ui/src/org/testeditor/ui/parts/testhistory/TestExecutionResultViewPart.java",
"license": "epl-1.0",
"size": 2315
} | [
"org.eclipse.swt.browser.Browser",
"org.eclipse.swt.layout.GridData",
"org.eclipse.swt.layout.GridLayout"
] | import org.eclipse.swt.browser.Browser; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; | import org.eclipse.swt.browser.*; import org.eclipse.swt.layout.*; | [
"org.eclipse.swt"
] | org.eclipse.swt; | 612,826 |
private void handlePointOnMap() {
Log.message("Enter");
if (isGoogleServiceAvailabe()) {
if(!getCurrentLocation()) {
mLocation = new LatLng(0, 0);
}
Intent mapIntent = new Intent(getActivity(), MapActivity.class);
mapIntent.putExtra(Co... | void function() { Log.message("Enter"); if (isGoogleServiceAvailabe()) { if(!getCurrentLocation()) { mLocation = new LatLng(0, 0); } Intent mapIntent = new Intent(getActivity(), MapActivity.class); mapIntent.putExtra(Constants.TIMEZONE, mTimeZone); mapIntent.putExtra(Constants.CALENDAR, mCalendar); mapIntent.putExtra(C... | /**
* Handles point of map selection
*/ | Handles point of map selection | handlePointOnMap | {
"repo_name": "yankovskiy/PhotoTools",
"path": "photoTools/src/main/java/ru/neverdark/phototools/fragments/SunsetFragment.java",
"license": "gpl-3.0",
"size": 26770
} | [
"android.content.Intent",
"com.google.android.gms.maps.model.LatLng",
"ru.neverdark.phototools.MapActivity",
"ru.neverdark.phototools.utils.Constants",
"ru.neverdark.phototools.utils.Log"
] | import android.content.Intent; import com.google.android.gms.maps.model.LatLng; import ru.neverdark.phototools.MapActivity; import ru.neverdark.phototools.utils.Constants; import ru.neverdark.phototools.utils.Log; | import android.content.*; import com.google.android.gms.maps.model.*; import ru.neverdark.phototools.*; import ru.neverdark.phototools.utils.*; | [
"android.content",
"com.google.android",
"ru.neverdark.phototools"
] | android.content; com.google.android; ru.neverdark.phototools; | 2,284,895 |
public boolean isCheckBoxChecked(int index)
{
if(config.commandLogging){
Log.d(config.commandLoggingTag, "isCheckBoxChecked("+index+")");
}
return checker.isButtonChecked(CheckBox.class, index);
} | boolean function(int index) { if(config.commandLogging){ Log.d(config.commandLoggingTag, STR+index+")"); } return checker.isButtonChecked(CheckBox.class, index); } | /**
* Checks if a CheckBox matching the specified index is checked.
*
* @param index of the {@link CheckBox} to check. {@code 0} if only one is available
* @return {@code true} if {@link CheckBox} is checked and {@code false} if it is not checked
*/ | Checks if a CheckBox matching the specified index is checked | isCheckBoxChecked | {
"repo_name": "IfengAutomation/test_agent_android",
"path": "app/src/androidTest/java/com/robotium/solo/Solo.java",
"license": "apache-2.0",
"size": 134036
} | [
"android.util.Log",
"android.widget.CheckBox"
] | import android.util.Log; import android.widget.CheckBox; | import android.util.*; import android.widget.*; | [
"android.util",
"android.widget"
] | android.util; android.widget; | 1,675,962 |
public List<JobStateAuditRecord> stateAuditRecords() {
return this.stateAuditRecords;
} | List<JobStateAuditRecord> function() { return this.stateAuditRecords; } | /**
* Get the stateAuditRecords value.
*
* @return the stateAuditRecords value
*/ | Get the stateAuditRecords value | stateAuditRecords | {
"repo_name": "herveyw/azure-sdk-for-java",
"path": "azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/models/JobInformation.java",
"license": "mit",
"size": 8461
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,651,648 |
public static RhnSetDecl setForChannelErrata(Channel chan) {
return make("errata_clone_list" + chan.getId(), SetCleanup.ILLEGAL_ERRATA);
} | static RhnSetDecl function(Channel chan) { return make(STR + chan.getId(), SetCleanup.ILLEGAL_ERRATA); } | /**
* get the set for Channel Errata cloning
* @param chan the Channel passed in
* @return the Set decl
*/ | get the set for Channel Errata cloning | setForChannelErrata | {
"repo_name": "hustodemon/spacewalk",
"path": "java/code/src/com/redhat/rhn/manager/rhnset/RhnSetDecl.java",
"license": "gpl-2.0",
"size": 20480
} | [
"com.redhat.rhn.domain.channel.Channel",
"com.redhat.rhn.domain.rhnset.SetCleanup"
] | import com.redhat.rhn.domain.channel.Channel; import com.redhat.rhn.domain.rhnset.SetCleanup; | import com.redhat.rhn.domain.channel.*; import com.redhat.rhn.domain.rhnset.*; | [
"com.redhat.rhn"
] | com.redhat.rhn; | 744,512 |
public void setGlowColor(final Color GLOW_COLOR) {
glowColor = GLOW_COLOR;
fireStateChanged();
} | void function(final Color GLOW_COLOR) { glowColor = GLOW_COLOR; fireStateChanged(); } | /**
* Sets the color that will be used for the glow indicator
* @param GLOW_COLOR
*/ | Sets the color that will be used for the glow indicator | setGlowColor | {
"repo_name": "mucar89/SteelSeries-Swing",
"path": "src/main/java/eu/hansolo/steelseries/tools/Model.java",
"license": "bsd-3-clause",
"size": 98660
} | [
"java.awt.Color"
] | import java.awt.Color; | import java.awt.*; | [
"java.awt"
] | java.awt; | 2,440,833 |
public String getAdditional() {
return additional;
}
}
private class StackNode {
private final int ancestorMask;
private final String name; // null if not HTML
private final String role;
private final String activeDescendant;
private final... | String function() { return additional; } } private class StackNode { private final int ancestorMask; private final String name; private final String role; private final String activeDescendant; private final String forAttr; private Set<Locator> imagesLackingAlt = new HashSet<>(); private Locator nonEmptyOption = null; ... | /**
* Returns the additional.
*
* @return the additional
*/ | Returns the additional | getAdditional | {
"repo_name": "tripu/validator",
"path": "src/nu/validator/checker/schematronequiv/Assertions.java",
"license": "mit",
"size": 135371
} | [
"java.util.HashSet",
"java.util.Set",
"org.xml.sax.Locator"
] | import java.util.HashSet; import java.util.Set; import org.xml.sax.Locator; | import java.util.*; import org.xml.sax.*; | [
"java.util",
"org.xml.sax"
] | java.util; org.xml.sax; | 524,590 |
private void checkFrameActionProps(JInternalFrameOperator internalFrameOperator,
boolean propertyStatus) {
internalFrameOperator.waitStateOnQueue(comp
-> ((JInternalFrame)comp).isClosable() == propertyStatus);
internalFrameOperator.waitStateOnQueue(comp
->... | void function(JInternalFrameOperator internalFrameOperator, boolean propertyStatus) { internalFrameOperator.waitStateOnQueue(comp -> ((JInternalFrame)comp).isClosable() == propertyStatus); internalFrameOperator.waitStateOnQueue(comp -> ((JInternalFrame)comp).isIconifiable() == propertyStatus); internalFrameOperator.wai... | /**
* Verifying internal frame action status
*
* @param internalFrameOperator : internal frame operator
* @param propertyStatus : status to check
*/ | Verifying internal frame action status | checkFrameActionProps | {
"repo_name": "md-5/jdk10",
"path": "test/jdk/sanity/client/SwingSet/src/InternalFrameDemoTest.java",
"license": "gpl-2.0",
"size": 17931
} | [
"javax.swing.JInternalFrame",
"org.netbeans.jemmy.operators.JInternalFrameOperator"
] | import javax.swing.JInternalFrame; import org.netbeans.jemmy.operators.JInternalFrameOperator; | import javax.swing.*; import org.netbeans.jemmy.operators.*; | [
"javax.swing",
"org.netbeans.jemmy"
] | javax.swing; org.netbeans.jemmy; | 350,682 |
public com.iucn.whp.dbservice.model.negative_factors_trend updatenegative_factors_trend(
com.iucn.whp.dbservice.model.negative_factors_trend negative_factors_trend)
throws com.liferay.portal.kernel.exception.SystemException; | com.iucn.whp.dbservice.model.negative_factors_trend function( com.iucn.whp.dbservice.model.negative_factors_trend negative_factors_trend) throws com.liferay.portal.kernel.exception.SystemException; | /**
* Updates the negative_factors_trend in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* @param negative_factors_trend the negative_factors_trend
* @return the negative_factors_trend that was updated
* @throws SystemException if a system exception occurred
*... | Updates the negative_factors_trend in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners | updatenegative_factors_trend | {
"repo_name": "iucn-whp/world-heritage-outlook",
"path": "portlets/iucn-dbservice-portlet/docroot/WEB-INF/service/com/iucn/whp/dbservice/service/negative_factors_trendLocalService.java",
"license": "gpl-2.0",
"size": 11747
} | [
"com.liferay.portal.kernel.exception.SystemException"
] | import com.liferay.portal.kernel.exception.SystemException; | import com.liferay.portal.kernel.exception.*; | [
"com.liferay.portal"
] | com.liferay.portal; | 493,840 |
@RequestMapping( method = RequestMethod.POST )
@ResponseBody
public VideoType createAction(
@RequestBody
@Valid
VideoType videoType,
HttpServletResponse response
) {
//- Try to create new type of video -//
try {
//- Set HTTP status -//
... | @RequestMapping( method = RequestMethod.POST ) VideoType function( VideoType videoType, HttpServletResponse response ) { try { response.setStatus( HttpStatus.CREATED.value() ); return this.videoTypeService.create( videoType ); } catch ( DataIntegrityViolationException e ) { response.setStatus( HttpServletResponse.SC_CO... | /**
* Create a new video type.
*
* @param videoType Type of video for create
* @param response Used for set HTTP status
*
* @return Created type of video
*/ | Create a new video type | createAction | {
"repo_name": "coffeine-009/Virtuoso",
"path": "src/main/java/com/thecoffeine/virtuoso/music/controller/VideoTypeController.java",
"license": "mit",
"size": 6164
} | [
"com.thecoffeine.virtuoso.music.model.entity.VideoType",
"javax.servlet.http.HttpServletResponse",
"org.springframework.dao.DataIntegrityViolationException",
"org.springframework.http.HttpStatus",
"org.springframework.web.bind.annotation.RequestMapping",
"org.springframework.web.bind.annotation.RequestMet... | import com.thecoffeine.virtuoso.music.model.entity.VideoType; import javax.servlet.http.HttpServletResponse; import org.springframework.dao.DataIntegrityViolationException; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.anno... | import com.thecoffeine.virtuoso.music.model.entity.*; import javax.servlet.http.*; import org.springframework.dao.*; import org.springframework.http.*; import org.springframework.web.bind.annotation.*; | [
"com.thecoffeine.virtuoso",
"javax.servlet",
"org.springframework.dao",
"org.springframework.http",
"org.springframework.web"
] | com.thecoffeine.virtuoso; javax.servlet; org.springframework.dao; org.springframework.http; org.springframework.web; | 130,607 |
private void startCameraSource() throws SecurityException {
// check that the device has play services available.
int code = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(
getApplicationContext());
if (code != ConnectionResult.SUCCESS) {
Dialog... | void function() throws SecurityException { int code = GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable( getApplicationContext()); if (code != ConnectionResult.SUCCESS) { Dialog dlg = GoogleApiAvailability.getInstance().getErrorDialog(this, code, RC_HANDLE_GMS); dlg.show(); } if (mCameraSource != null) ... | /**
* Starts or restarts the camera source, if it exists. If the camera source doesn't exist yet
* (e.g., because onResume was called before the camera source was created), this will be called
* again when the camera source is created.
*/ | Starts or restarts the camera source, if it exists. If the camera source doesn't exist yet (e.g., because onResume was called before the camera source was created), this will be called again when the camera source is created | startCameraSource | {
"repo_name": "chapter-sf/bluefruit-android",
"path": "app/src/main/java/com/adafruit/bluefruit/le/connect/app/settings/MqttUartSettingsCodeReaderActivity.java",
"license": "mit",
"size": 14972
} | [
"android.app.Dialog",
"android.util.Log",
"android.view.ScaleGestureDetector",
"com.google.android.gms.common.ConnectionResult",
"com.google.android.gms.common.GoogleApiAvailability",
"java.io.IOException"
] | import android.app.Dialog; import android.util.Log; import android.view.ScaleGestureDetector; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.GoogleApiAvailability; import java.io.IOException; | import android.app.*; import android.util.*; import android.view.*; import com.google.android.gms.common.*; import java.io.*; | [
"android.app",
"android.util",
"android.view",
"com.google.android",
"java.io"
] | android.app; android.util; android.view; com.google.android; java.io; | 2,341,342 |
public ValueList appendBinarySet(byte[] ... val) {
super.append(new LinkedHashSet<byte[]>(Arrays.asList(val)));
return this;
} | ValueList function(byte[] ... val) { super.append(new LinkedHashSet<byte[]>(Arrays.asList(val))); return this; } | /**
* Appends the given values to this list as a set of byte arrays.
*/ | Appends the given values to this list as a set of byte arrays | appendBinarySet | {
"repo_name": "dagnir/aws-sdk-java",
"path": "aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/utils/ValueList.java",
"license": "apache-2.0",
"size": 5549
} | [
"java.util.Arrays",
"java.util.LinkedHashSet"
] | import java.util.Arrays; import java.util.LinkedHashSet; | import java.util.*; | [
"java.util"
] | java.util; | 1,634,240 |
public void mouseClicked(MouseEvent e)
{
// popup menu
if (SwingUtilities.isRightMouseButton(e))
adaptee.popupMenu.show((Component)e.getSource(), e.getX(), e.getY());
} // mouse Clicked
} // VTaxes_mouseAdapter
public VTaxes(String columnName, boolean mandatory, boolean isReadOnly, boolean isUp... | void function(MouseEvent e) { if (SwingUtilities.isRightMouseButton(e)) adaptee.popupMenu.show((Component)e.getSource(), e.getX(), e.getY()); } } public VTaxes(String columnName, boolean mandatory, boolean isReadOnly, boolean isUpdateable, MLBRTaxesLookup mTax) { super(); super.setName(columnName); m_columnName = colum... | /**
* Mouse Listener
* @param e MouseEvent
*/ | Mouse Listener | mouseClicked | {
"repo_name": "mgrigioni/oseb",
"path": "client/src/org/adempierelbr/grid/ed/VTaxes.java",
"license": "gpl-2.0",
"size": 9517
} | [
"java.awt.BorderLayout",
"java.awt.Component",
"java.awt.Dimension",
"java.awt.Insets",
"java.awt.event.MouseEvent",
"javax.swing.SwingUtilities",
"org.adempiere.plaf.AdempierePLAF",
"org.adempierelbr.model.MLBRTaxesLookup",
"org.compiere.util.Env"
] | import java.awt.BorderLayout; import java.awt.Component; import java.awt.Dimension; import java.awt.Insets; import java.awt.event.MouseEvent; import javax.swing.SwingUtilities; import org.adempiere.plaf.AdempierePLAF; import org.adempierelbr.model.MLBRTaxesLookup; import org.compiere.util.Env; | import java.awt.*; import java.awt.event.*; import javax.swing.*; import org.adempiere.plaf.*; import org.adempierelbr.model.*; import org.compiere.util.*; | [
"java.awt",
"javax.swing",
"org.adempiere.plaf",
"org.adempierelbr.model",
"org.compiere.util"
] | java.awt; javax.swing; org.adempiere.plaf; org.adempierelbr.model; org.compiere.util; | 778,767 |
void setNullFlavor(NullFlavor value);
| void setNullFlavor(NullFlavor value); | /**
* Sets the value of the '{@link org.openhealthtools.mdht.uml.cda.Authenticator#getNullFlavor <em>Null Flavor</em>}' attribute.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Null Flavor</em>' attribute.
* @see org.openhealthtools.mdht.uml.hl7.vocab.NullFlav... | Sets the value of the '<code>org.openhealthtools.mdht.uml.cda.Authenticator#getNullFlavor Null Flavor</code>' attribute. | setNullFlavor | {
"repo_name": "drbgfc/mdht",
"path": "cda/plugins/org.openhealthtools.mdht.uml.cda/src/org/openhealthtools/mdht/uml/cda/Authenticator.java",
"license": "epl-1.0",
"size": 13942
} | [
"org.openhealthtools.mdht.uml.hl7.vocab.NullFlavor"
] | import org.openhealthtools.mdht.uml.hl7.vocab.NullFlavor; | import org.openhealthtools.mdht.uml.hl7.vocab.*; | [
"org.openhealthtools.mdht"
] | org.openhealthtools.mdht; | 1,589,651 |
public Item getItemDropped(IBlockState state, Random rand, int fortune)
{
return null;
} | Item function(IBlockState state, Random rand, int fortune) { return null; } | /**
* Get the Item that this Block should drop when harvested.
*/ | Get the Item that this Block should drop when harvested | getItemDropped | {
"repo_name": "seblund/Dissolvable",
"path": "build/tmp/recompileMc/sources/net/minecraft/block/BlockChorusFlower.java",
"license": "gpl-3.0",
"size": 10935
} | [
"java.util.Random",
"net.minecraft.block.state.IBlockState",
"net.minecraft.item.Item"
] | import java.util.Random; import net.minecraft.block.state.IBlockState; import net.minecraft.item.Item; | import java.util.*; import net.minecraft.block.state.*; import net.minecraft.item.*; | [
"java.util",
"net.minecraft.block",
"net.minecraft.item"
] | java.util; net.minecraft.block; net.minecraft.item; | 1,791,236 |
@Generated
@Selector("resolveLevel")
@NUInt
public native long resolveLevel(); | @Selector(STR) native long function(); | /**
* [@property] resolveLevel
* <p>
* The mipmap level of the resolve texture to be used for multisample resolve. Defaults to zero.
*/ | [@property] resolveLevel The mipmap level of the resolve texture to be used for multisample resolve. Defaults to zero | resolveLevel | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/metal/MTLRenderPassAttachmentDescriptor.java",
"license": "apache-2.0",
"size": 11342
} | [
"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; | 1,330,360 |
private void removeRule(Device device, PacketRequest request) {
if (!device.type().equals(Device.Type.SWITCH)) {
return;
} | void function(Device device, PacketRequest request) { if (!device.type().equals(Device.Type.SWITCH)) { return; } | /**
* Removes packet intercept flow rules from the device.
*
* @param device the device to remove the rules deom
* @param request the packet request
*/ | Removes packet intercept flow rules from the device | removeRule | {
"repo_name": "LorenzReinhart/ONOSnew",
"path": "core/net/src/main/java/org/onosproject/net/packet/impl/PacketManager.java",
"license": "apache-2.0",
"size": 18129
} | [
"org.onosproject.net.Device",
"org.onosproject.net.packet.PacketRequest"
] | import org.onosproject.net.Device; import org.onosproject.net.packet.PacketRequest; | import org.onosproject.net.*; import org.onosproject.net.packet.*; | [
"org.onosproject.net"
] | org.onosproject.net; | 124,497 |
public S3BucketLoggingStatus getBucketLoggingStatus(String bucketName) throws S3ServiceException {
return getBucketLoggingStatusImpl(bucketName);
} | S3BucketLoggingStatus function(String bucketName) throws S3ServiceException { return getBucketLoggingStatusImpl(bucketName); } | /**
* Retrieves the logging status settings of a bucket. Only the owner of a bucket may retrieve
* its logging status.
*
* @param bucketName
* the name of the bucket whose logging status settings will be returned.
* @return
* the Logging Status settings of the bucket.
* @throws ... | Retrieves the logging status settings of a bucket. Only the owner of a bucket may retrieve its logging status | getBucketLoggingStatus | {
"repo_name": "fajoy/jets3t",
"path": "src/org/jets3t/service/S3Service.java",
"license": "apache-2.0",
"size": 110491
} | [
"org.jets3t.service.model.S3BucketLoggingStatus"
] | import org.jets3t.service.model.S3BucketLoggingStatus; | import org.jets3t.service.model.*; | [
"org.jets3t.service"
] | org.jets3t.service; | 1,797,417 |
protected void encodeOutputText(final FacesContext context)
throws IOException {
if (isReadonly()) {
if (getValue() == null) {
getOutputText().setValue(getNoReadonlyLabel());
} else {
final ELContext elContext = context.getELContext();
... | void function(final FacesContext context) throws IOException { if (isReadonly()) { if (getValue() == null) { getOutputText().setValue(getNoReadonlyLabel()); } else { final ELContext elContext = context.getELContext(); elContext.getELResolver().setValue(elContext, null, "item", getValue()); ValueExpression ve = getItemL... | /**
* Render the beginning of the outputText to the response contained in the
* specified FacesContext.
*
* @param context
* the context.
* @throws IOException
* exception.
*/ | Render the beginning of the outputText to the response contained in the specified FacesContext | encodeOutputText | {
"repo_name": "qjafcunuas/jbromo",
"path": "jbromo-webapp/jbromo-webapp-jsf/jbromo-webapp-jsf-lib/src/main/java/org/jbromo/webapp/jsf/faces/composite/util/AbstractUIOutputSelectOne.java",
"license": "apache-2.0",
"size": 5769
} | [
"java.io.IOException",
"javax.el.ELContext",
"javax.el.ValueExpression",
"javax.faces.context.FacesContext"
] | import java.io.IOException; import javax.el.ELContext; import javax.el.ValueExpression; import javax.faces.context.FacesContext; | import java.io.*; import javax.el.*; import javax.faces.context.*; | [
"java.io",
"javax.el",
"javax.faces"
] | java.io; javax.el; javax.faces; | 1,196,257 |
protected void tearDown() throws Exception {
if (networkServerController != null) {
boolean running = false;
try {
networkServerController.ping();
running = true;
} catch (Exception e) {
}
Throwable failedShu... | void function() throws Exception { if (networkServerController != null) { boolean running = false; try { networkServerController.ping(); running = true; } catch (Exception e) { } Throwable failedShutdown = null; if (running) { try { networkServerController.shutdown(); } catch (Throwable t) { failedShutdown = t; } } if ... | /**
* Stop the network server if it still
* appears to be running.
*/ | Stop the network server if it still appears to be running | tearDown | {
"repo_name": "viaper/DBPlus",
"path": "DerbyHodgepodge/java/testing/org/apache/derbyTesting/junit/NetworkServerTestSetup.java",
"license": "apache-2.0",
"size": 27769
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,068,132 |
public ReferenceBinding[] getThrownUncaughtExceptions() {
ReferenceBinding[] result = new ReferenceBinding[this.thrownExceptions.elementSize];
this.thrownExceptions.asArray(result);
return result;
}
| ReferenceBinding[] function() { ReferenceBinding[] result = new ReferenceBinding[this.thrownExceptions.elementSize]; this.thrownExceptions.asArray(result); return result; } | /**
* Returns all the thrown exceptions minus the ones that are already caught in previous catch blocks
* (of the same try), found by the call to
* {@link ThrownExceptionFinder#processThrownExceptions(TryStatement, BlockScope)}.
* @return Returns an array of thrown exceptions that are still not caught in any c... | Returns all the thrown exceptions minus the ones that are already caught in previous catch blocks (of the same try), found by the call to <code>ThrownExceptionFinder#processThrownExceptions(TryStatement, BlockScope)</code> | getThrownUncaughtExceptions | {
"repo_name": "Niky4000/UsefulUtils",
"path": "projects/others/eclipse-platform-parent/eclipse.jdt.core-master/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/ThrownExceptionFinder.java",
"license": "gpl-3.0",
"size": 9516
} | [
"org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding"
] | import org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding; | import org.eclipse.jdt.internal.compiler.lookup.*; | [
"org.eclipse.jdt"
] | org.eclipse.jdt; | 1,741,065 |
public String getProductCode() {
return Build.DEVICE;
} | String function() { return Build.DEVICE; } | /**
* Returns the device's non-unique product code (usually numeric and zero-padded on the left)
*/ | Returns the device's non-unique product code (usually numeric and zero-padded on the left) | getProductCode | {
"repo_name": "ma1co/OpenMemories-Framework",
"path": "framework/src/main/java/com/github/ma1co/openmemories/framework/DeviceInfo.java",
"license": "mit",
"size": 5531
} | [
"android.os.Build"
] | import android.os.Build; | import android.os.*; | [
"android.os"
] | android.os; | 2,061,389 |
public List<Identifier> interfaces() {
return this.interfaces;
}
| List<Identifier> function() { return this.interfaces; } | /**
* List of interfaces that this type implements / extends
*/ | List of interfaces that this type implements / extends | interfaces | {
"repo_name": "nwnpallewela/developer-studio",
"path": "jaggery/plugins/org.eclipse.php.core/src/org/eclipse/php/internal/core/ast/nodes/TypeDeclaration.java",
"license": "apache-2.0",
"size": 4640
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,149,238 |
public ValidationStatus validateFormatted(String value)
{
ValidationStatus status = layout.validate(value);
return status;
} | ValidationStatus function(String value) { ValidationStatus status = layout.validate(value); return status; } | /**
* Validates a formatted value.
*
* @param value the value to validate
* @return the status of the validation
*/ | Validates a formatted value | validateFormatted | {
"repo_name": "rsharipov/izpack",
"path": "izpack-panel/src/main/java/com/izforge/izpack/panels/userinput/field/rule/RuleField.java",
"license": "apache-2.0",
"size": 8992
} | [
"com.izforge.izpack.panels.userinput.field.ValidationStatus"
] | import com.izforge.izpack.panels.userinput.field.ValidationStatus; | import com.izforge.izpack.panels.userinput.field.*; | [
"com.izforge.izpack"
] | com.izforge.izpack; | 1,828,526 |
protected void addFailure(Throwable exception) {
this.notifier.fireTestFailure(new Failure(this.description, exception));
}
private class RunBeforesThenTestThenAfters implements Runnable {
| void function(Throwable exception) { this.notifier.fireTestFailure(new Failure(this.description, exception)); } private class RunBeforesThenTestThenAfters implements Runnable { | /**
* Fire a failure for the supplied <code>exception</code> with the
* {@link RunNotifier}.
* @param exception the exception upon which to base the failure
*/ | Fire a failure for the supplied <code>exception</code> with the <code>RunNotifier</code> | addFailure | {
"repo_name": "codeApeFromChina/resource",
"path": "frame_packages/java_libs/spring-2.5.6-src/tiger/mock/org/springframework/test/context/junit4/SpringMethodRoadie.java",
"license": "unlicense",
"size": 11459
} | [
"org.junit.runner.notification.Failure"
] | import org.junit.runner.notification.Failure; | import org.junit.runner.notification.*; | [
"org.junit.runner"
] | org.junit.runner; | 720,548 |
private Router partitionAndCreateRouter() {
Map<String, ActorRef> kids = new HashMap<>();
java.util.List<Routee> routees = new ArrayList<Routee>();
int chunk = Constants.PRODUCT_IDS.length / NUM_KIDS;
for (int i = 0, j = Constants.PRODUCT_IDS.length; i < j; i += chunk) {
String[] temparray ... | Router function() { Map<String, ActorRef> kids = new HashMap<>(); java.util.List<Routee> routees = new ArrayList<Routee>(); int chunk = Constants.PRODUCT_IDS.length / NUM_KIDS; for (int i = 0, j = Constants.PRODUCT_IDS.length; i < j; i += chunk) { String[] temparray = Arrays.copyOfRange(Constants.PRODUCT_IDS, i, i + ch... | /** partitions the market by product ID and creates an actor encapsulating an engine, per
* partition. returns a router containing all the kids together with the suitable logic
* to route to the correct engine. */ | partitions the market by product ID and creates an actor encapsulating an engine, per partition. returns a router containing all the kids together with the suitable logic | partitionAndCreateRouter | {
"repo_name": "maxant/akkaTrader",
"path": "src/main/java/akkabased/Main.java",
"license": "mit",
"size": 9705
} | [
"ch.maxant.tradingengine.model.Constants",
"ch.maxant.tradingengine.model.PurchaseOrder",
"ch.maxant.tradingengine.model.SalesOrder",
"ch.maxant.tradingengine.model.TradingEngine",
"java.util.ArrayList",
"java.util.Arrays",
"java.util.HashMap",
"java.util.Map"
] | import ch.maxant.tradingengine.model.Constants; import ch.maxant.tradingengine.model.PurchaseOrder; import ch.maxant.tradingengine.model.SalesOrder; import ch.maxant.tradingengine.model.TradingEngine; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.Map; | import ch.maxant.tradingengine.model.*; import java.util.*; | [
"ch.maxant.tradingengine",
"java.util"
] | ch.maxant.tradingengine; java.util; | 1,688,420 |
public void endDTD()
throws SAXException
{
m_lexicalHandler.endDTD();
} | void function() throws SAXException { m_lexicalHandler.endDTD(); } | /**
* Report the end of DTD declarations.
*/ | Report the end of DTD declarations | endDTD | {
"repo_name": "eva-xuyen/excalibur",
"path": "components/xmlutil/src/main/java/org/apache/excalibur/xml/sax/XMLConsumerProxy.java",
"license": "apache-2.0",
"size": 4699
} | [
"org.xml.sax.SAXException"
] | import org.xml.sax.SAXException; | import org.xml.sax.*; | [
"org.xml.sax"
] | org.xml.sax; | 1,069,011 |
@Override
public Resource createResource(URI uri) {
XMLResource result = new MessageResourceImpl(uri);
result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE);
... | Resource function(URI uri) { XMLResource result = new MessageResourceImpl(uri); result.getDefaultSaveOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); result.getDefaultLoadOptions().put(XMLResource.OPTION_EXTENDED_META_DATA, Boolean.TRUE); result.getDefaultSaveOptions().put(XMLResource.OPTION_SCHEMA_L... | /**
* Creates an instance of the resource. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @generated
*/ | Creates an instance of the resource. | createResource | {
"repo_name": "oisin/Message-Owl",
"path": "org.fusesource.tools.core.message/src/org/fusesource/tools/core/message/util/MessageResourceFactoryImpl.java",
"license": "epl-1.0",
"size": 2157
} | [
"org.eclipse.emf.ecore.resource.Resource",
"org.eclipse.emf.ecore.xmi.XMLResource"
] | import org.eclipse.emf.ecore.resource.Resource; import org.eclipse.emf.ecore.xmi.XMLResource; | import org.eclipse.emf.ecore.resource.*; import org.eclipse.emf.ecore.xmi.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,373,239 |
public void verifyDirectoryNonexistent(Path clusterDirectory) throws
IOException,
SliderException {
if (fileSystem.exists(clusterDirectory)) {
log.error("Dir {} exists: {}",
clusterDirectory,
listFSDir(clusterDirectory));
throw new SliderException... | void function(Path clusterDirectory) throws IOException, SliderException { if (fileSystem.exists(clusterDirectory)) { log.error(STR, clusterDirectory, listFSDir(clusterDirectory)); throw new SliderException(SliderExitCodes.EXIT_INSTANCE_EXISTS, ErrorStrings.PRINTF_E_INSTANCE_DIR_ALREADY_EXISTS, clusterDirectory); } } | /**
* Verify that the given directory is not present
*
* @param clusterDirectory actual directory to look for
* @throws IOException trouble with FS
* @throws SliderException If the directory exists
*/ | Verify that the given directory is not present | verifyDirectoryNonexistent | {
"repo_name": "JingchengDu/hadoop",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-services/hadoop-yarn-services-core/src/main/java/org/apache/hadoop/yarn/service/utils/CoreFileSystem.java",
"license": "apache-2.0",
"size": 19805
} | [
"java.io.IOException",
"org.apache.hadoop.fs.Path",
"org.apache.hadoop.yarn.service.conf.SliderExitCodes",
"org.apache.hadoop.yarn.service.exceptions.ErrorStrings",
"org.apache.hadoop.yarn.service.exceptions.SliderException"
] | import java.io.IOException; import org.apache.hadoop.fs.Path; import org.apache.hadoop.yarn.service.conf.SliderExitCodes; import org.apache.hadoop.yarn.service.exceptions.ErrorStrings; import org.apache.hadoop.yarn.service.exceptions.SliderException; | import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.yarn.service.conf.*; import org.apache.hadoop.yarn.service.exceptions.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 472,803 |
public void refreshReviews(final List<Review> reviews) {
if (reviews == null) {
Log.d(LOG_TAG, "No reviews has been found");
mReviewNoItemsTextView.setVisibility(View.VISIBLE);
return;
} | void function(final List<Review> reviews) { if (reviews == null) { Log.d(LOG_TAG, STR); mReviewNoItemsTextView.setVisibility(View.VISIBLE); return; } | /**
* Refreshs the UI with the movie's reviews
*
* @param reviews list
*/ | Refreshs the UI with the movie's reviews | refreshReviews | {
"repo_name": "pedrolopesme/cinepedia",
"path": "app/src/main/java/com/pedrolopesme/android/cinepedia/activities/MovieDetailActivity.java",
"license": "mit",
"size": 13132
} | [
"android.util.Log",
"android.view.View",
"com.pedrolopesme.android.cinepedia.domain.Review",
"java.util.List"
] | import android.util.Log; import android.view.View; import com.pedrolopesme.android.cinepedia.domain.Review; import java.util.List; | import android.util.*; import android.view.*; import com.pedrolopesme.android.cinepedia.domain.*; import java.util.*; | [
"android.util",
"android.view",
"com.pedrolopesme.android",
"java.util"
] | android.util; android.view; com.pedrolopesme.android; java.util; | 1,127,830 |
public default String put(Path filePath) throws IOException {
return put(Files.readAllBytes(filePath));
}
/**
* Retrieves the contents of a blob
* @param key the key for the blob, as returned by {@code put(...)} | default String function(Path filePath) throws IOException { return put(Files.readAllBytes(filePath)); } /** * Retrieves the contents of a blob * @param key the key for the blob, as returned by {@code put(...)} | /**
* Reads the bytes in the file and stores them as a blob
* @param filePath the path to the file to store
* @return the key for the blob
*/ | Reads the bytes in the file and stores them as a blob | put | {
"repo_name": "bugminer/bugminer",
"path": "bugminer-server/src/main/java/de/unistuttgart/iste/rss/bugminer/storage/BlobStorage.java",
"license": "mit",
"size": 2830
} | [
"java.io.IOException",
"java.nio.file.Files",
"java.nio.file.Path"
] | import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; | import java.io.*; import java.nio.file.*; | [
"java.io",
"java.nio"
] | java.io; java.nio; | 2,394,191 |
private void processMaybeSilence(ByteBuffer inputBuffer) {
int limit = inputBuffer.limit();
int noisePosition = findNoisePosition(inputBuffer);
int maybeSilenceInputSize = noisePosition - inputBuffer.position();
int maybeSilenceBufferRemaining = maybeSilenceBuffer.length - maybeSilenceBufferSize;
... | void function(ByteBuffer inputBuffer) { int limit = inputBuffer.limit(); int noisePosition = findNoisePosition(inputBuffer); int maybeSilenceInputSize = noisePosition - inputBuffer.position(); int maybeSilenceBufferRemaining = maybeSilenceBuffer.length - maybeSilenceBufferSize; if (noisePosition < limit && maybeSilence... | /**
* Incrementally processes new input from {@code inputBuffer} while in {@link
* #STATE_MAYBE_SILENT}, updating the state if needed.
*/ | Incrementally processes new input from inputBuffer while in <code>#STATE_MAYBE_SILENT</code>, updating the state if needed | processMaybeSilence | {
"repo_name": "saki4510t/ExoPlayer",
"path": "library/core/src/main/java/com/google/android/exoplayer2/audio/SilenceSkippingAudioProcessor.java",
"license": "apache-2.0",
"size": 12477
} | [
"java.nio.ByteBuffer"
] | import java.nio.ByteBuffer; | import java.nio.*; | [
"java.nio"
] | java.nio; | 2,312,206 |
public void responseEnum(String scenario) throws ServiceException {
if (scenario == null) {
throw new ServiceException(
new IllegalArgumentException("Parameter scenario is required and cannot be null."));
}
try {
Call<ResponseBody> call = service.respo... | void function(String scenario) throws ServiceException { if (scenario == null) { throw new ServiceException( new IllegalArgumentException(STR)); } try { Call<ResponseBody> call = service.responseEnum(scenario); ServiceResponse<Void> response = responseEnumDelegate(call.execute(), null); response.getBody(); } catch (Ser... | /**
* Get a response with header values "GREY" or null
*
* @param scenario Send a post request with header values "scenario": "valid" or "null" or "empty"
* @throws ServiceException the exception wrapped in ServiceException if failed.
*/ | Get a response with header values "GREY" or null | responseEnum | {
"repo_name": "BretJohnson/autorest",
"path": "AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/header/HeaderOperationsImpl.java",
"license": "mit",
"size": 75565
} | [
"com.microsoft.rest.ServiceException",
"com.microsoft.rest.ServiceResponse",
"com.squareup.okhttp.ResponseBody"
] | import com.microsoft.rest.ServiceException; import com.microsoft.rest.ServiceResponse; import com.squareup.okhttp.ResponseBody; | import com.microsoft.rest.*; import com.squareup.okhttp.*; | [
"com.microsoft.rest",
"com.squareup.okhttp"
] | com.microsoft.rest; com.squareup.okhttp; | 1,633,235 |
@IgniteInstanceResource
protected void injectResources(Ignite ignite) {
this.ignite = ignite;
if (ignite != null)
igniteInstanceName = ignite.name();
} | void function(Ignite ignite) { this.ignite = ignite; if (ignite != null) igniteInstanceName = ignite.name(); } | /**
* Inject ignite instance.
*
* @param ignite Ignite instance.
*/ | Inject ignite instance | injectResources | {
"repo_name": "psadusumilli/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/spi/IgniteSpiAdapter.java",
"license": "apache-2.0",
"size": 33500
} | [
"org.apache.ignite.Ignite"
] | import org.apache.ignite.Ignite; | import org.apache.ignite.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 839,583 |
public Map<String,String> toQueryStringMap(Collection<SearchQueryPart> searchQueryParts){
Map<String,String> queryString = new TreeMap<String, String>();
int currField=1;
int currFieldValue=1;
for(SearchQueryPart sqp: searchQueryParts){
queryString.put(currField+"_"+PARAM_TYPE_FIELD,Integer.toString(sqp.g... | Map<String,String> function(Collection<SearchQueryPart> searchQueryParts){ Map<String,String> queryString = new TreeMap<String, String>(); int currField=1; int currFieldValue=1; for(SearchQueryPart sqp: searchQueryParts){ queryString.put(currField+"_"+PARAM_TYPE_FIELD,Integer.toString(sqp.getSearchableField().getSearch... | /**
* Inverse function of parse(Map<String,String[]>
* Takes SearchQueryPart collection and turn it back to Map<String,String> so it can be used as query string.
* The main usage is when some SearchQueryPart are added dynamically and we need to adjust the query string.
* @param searchQueryParts
* @return
*/ | Inverse function of parse(Map Takes SearchQueryPart collection and turn it back to Map so it can be used as query string. The main usage is when some SearchQueryPart are added dynamically and we need to adjust the query string | toQueryStringMap | {
"repo_name": "WingLongitude/explorer",
"path": "src/main/java/net/canadensys/dataportal/occurrence/search/parameter/parser/SearchParamParser.java",
"license": "mit",
"size": 12324
} | [
"java.util.Collection",
"java.util.Map",
"java.util.TreeMap",
"net.canadensys.query.SearchQueryPart"
] | import java.util.Collection; import java.util.Map; import java.util.TreeMap; import net.canadensys.query.SearchQueryPart; | import java.util.*; import net.canadensys.query.*; | [
"java.util",
"net.canadensys.query"
] | java.util; net.canadensys.query; | 455,574 |
public void join() {
// Revert in a reverse order to undo the detachment.
while (!detachPointList.isEmpty()) {
DettachPoint entry = detachPointList.remove(detachPointList.size() - 1);
entry.reattach();
}
}
private static class DettachPoint {
// The place holder to remember where t... | void function() { while (!detachPointList.isEmpty()) { DettachPoint entry = detachPointList.remove(detachPointList.size() - 1); entry.reattach(); } } private static class DettachPoint { private Node placeHolder; private Node before; private Node original; private DettachPoint(Node placeHolder, Node before, Node orginal... | /**
* Reverse the splitting done by {@link #split()}.
*/ | Reverse the splitting done by <code>#split()</code> | join | {
"repo_name": "jayli/kissy",
"path": "tools/module-compiler/src/com/google/javascript/jscomp/AstParallelizer.java",
"license": "mit",
"size": 7469
} | [
"com.google.javascript.rhino.Node"
] | import com.google.javascript.rhino.Node; | import com.google.javascript.rhino.*; | [
"com.google.javascript"
] | com.google.javascript; | 2,670,041 |
public Class defineClass() {
byte[] bytes;
try {
ByteArrayOutputStream bout = new ByteArrayOutputStream();
writeTo(bout);
bytes = bout.toByteArray();
} catch (IOException e) {
InternalError ie = new InternalError(e.toString());
... | Class function() { byte[] bytes; try { ByteArrayOutputStream bout = new ByteArrayOutputStream(); writeTo(bout); bytes = bout.toByteArray(); } catch (IOException e) { InternalError ie = new InternalError(e.toString()); ie.initCause(e); throw ie; } if (DEBUG) { File file = new File(getClassName().replace('.', '/') + STR)... | /**
* Finishes the class definition.
*/ | Finishes the class definition | defineClass | {
"repo_name": "zkmake520/Android_Search",
"path": "indextank-engine-master/cojen-2.2.1-sources/org/cojen/classfile/RuntimeClassFile.java",
"license": "mit",
"size": 13796
} | [
"java.io.ByteArrayOutputStream",
"java.io.File",
"java.io.FileOutputStream",
"java.io.IOException",
"java.io.OutputStream"
] | import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 1,747,249 |
public void waitTableDisabled(byte[] table, long timeoutMillis)
throws InterruptedException, IOException {
waitTableDisabled(TableName.valueOf(table), timeoutMillis);
} | void function(byte[] table, long timeoutMillis) throws InterruptedException, IOException { waitTableDisabled(TableName.valueOf(table), timeoutMillis); } | /**
* Waits for a table to be 'disabled'. Disabled means that table is set as 'disabled'
* @param table Table to wait on.
* @param timeoutMillis Time to wait on it being marked disabled.
* @throws InterruptedException
* @throws IOException
*/ | Waits for a table to be 'disabled'. Disabled means that table is set as 'disabled' | waitTableDisabled | {
"repo_name": "HubSpot/hbase",
"path": "hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java",
"license": "apache-2.0",
"size": 173926
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,069,475 |
private void processPackageDef(DetailAST ast) {
final DetailAST packageNameAST = ast.getLastChild()
.getPreviousSibling();
final FullIdent packageIdent =
FullIdent.createFullIdent(packageNameAST);
pkgName = packageIdent.getText();
} | void function(DetailAST ast) { final DetailAST packageNameAST = ast.getLastChild() .getPreviousSibling(); final FullIdent packageIdent = FullIdent.createFullIdent(packageNameAST); pkgName = packageIdent.getText(); } | /**
* Perform processing for an package token.
* @param ast the package token
*/ | Perform processing for an package token | processPackageDef | {
"repo_name": "ilanKeshet/checkstyle",
"path": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/IllegalInstantiationCheck.java",
"license": "lgpl-2.1",
"size": 11957
} | [
"com.puppycrawl.tools.checkstyle.api.DetailAST",
"com.puppycrawl.tools.checkstyle.api.FullIdent"
] | import com.puppycrawl.tools.checkstyle.api.DetailAST; import com.puppycrawl.tools.checkstyle.api.FullIdent; | import com.puppycrawl.tools.checkstyle.api.*; | [
"com.puppycrawl.tools"
] | com.puppycrawl.tools; | 2,455,241 |
public Query getDefaultQuery() {
return QueryBundleUtils.getDefaultQuery(tableId, isCurrentVersion, tableVersionNumber);
}
| Query function() { return QueryBundleUtils.getDefaultQuery(tableId, isCurrentVersion, tableVersionNumber); } | /**
* Build the default query based on the current table data.
*
* @return
*/ | Build the default query based on the current table data | getDefaultQuery | {
"repo_name": "Sage-Bionetworks/SynapseWebClient",
"path": "src/main/java/org/sagebionetworks/web/client/widget/table/explore/TableEntityPlotsWidget.java",
"license": "apache-2.0",
"size": 25038
} | [
"org.sagebionetworks.repo.model.table.Query",
"org.sagebionetworks.web.client.widget.table.v2.results.QueryBundleUtils"
] | import org.sagebionetworks.repo.model.table.Query; import org.sagebionetworks.web.client.widget.table.v2.results.QueryBundleUtils; | import org.sagebionetworks.repo.model.table.*; import org.sagebionetworks.web.client.widget.table.v2.results.*; | [
"org.sagebionetworks.repo",
"org.sagebionetworks.web"
] | org.sagebionetworks.repo; org.sagebionetworks.web; | 2,570,863 |
private void attemptLogin() {
if (!intentAwaiting) {
boolean cancel = false;
View focusView = null;
mPhoneView.setError(null);
currentPhone = mPhoneView.getUnmaskedText();
// Check for a valid phone.
if (TextUtils.isEmpty(currentPhone)) {
mPhoneView.setError(getString(R.string.error_field_r... | void function() { if (!intentAwaiting) { boolean cancel = false; View focusView = null; mPhoneView.setError(null); currentPhone = mPhoneView.getUnmaskedText(); if (TextUtils.isEmpty(currentPhone)) { mPhoneView.setError(getString(R.string.error_field_required)); focusView = mPhoneView; cancel = true; } else if (!isPhone... | /**
* Attempts to sign in account specified by the login form.
* If there are form errors (invalid phone, missing fields, etc.), the
* errors are presented and no actual login attempt is made.
*/ | Attempts to sign in account specified by the login form. If there are form errors (invalid phone, missing fields, etc.), the errors are presented and no actual login attempt is made | attemptLogin | {
"repo_name": "martinkomitsky/CallBack-Pal",
"path": "app/src/main/java/ru/mail/tp/callbackpal/LoginActivity.java",
"license": "gpl-3.0",
"size": 13414
} | [
"android.text.TextUtils",
"android.view.View"
] | import android.text.TextUtils; import android.view.View; | import android.text.*; import android.view.*; | [
"android.text",
"android.view"
] | android.text; android.view; | 948,833 |
public final MLink createLinkEx(MAssociation association, MObject[] connectedObjects) throws UseApiException {
Value[][] qualifierValues = new Value[0][];
return createLinkEx(association, connectedObjects, qualifierValues);
}
| final MLink function(MAssociation association, MObject[] connectedObjects) throws UseApiException { Value[][] qualifierValues = new Value[0][]; return createLinkEx(association, connectedObjects, qualifierValues); } | /**
* Creates a new link for the association <code>association</code>.
* The participating objects are provided by the array <code>connectedObjects</code>.
* The order of the participating objects must correspond to the order of the
* association ends.
* @param association The association to c... | Creates a new link for the association <code>association</code>. The participating objects are provided by the array <code>connectedObjects</code>. The order of the participating objects must correspond to the order of the association ends | createLinkEx | {
"repo_name": "vnu-dse/rtl",
"path": "src/main/org/tzi/use/api/UseSystemApi.java",
"license": "gpl-2.0",
"size": 27632
} | [
"org.tzi.use.uml.mm.MAssociation",
"org.tzi.use.uml.ocl.value.Value",
"org.tzi.use.uml.sys.MLink",
"org.tzi.use.uml.sys.MObject"
] | import org.tzi.use.uml.mm.MAssociation; import org.tzi.use.uml.ocl.value.Value; import org.tzi.use.uml.sys.MLink; import org.tzi.use.uml.sys.MObject; | import org.tzi.use.uml.mm.*; import org.tzi.use.uml.ocl.value.*; import org.tzi.use.uml.sys.*; | [
"org.tzi.use"
] | org.tzi.use; | 1,857,419 |
boolean isLiteral() throws RepositoryException; | boolean isLiteral() throws RepositoryException; | /**
* Returns whether this class is a rdfs:Literal.
* @return Returns true iff this class is rdfs:Literal or a subclass of it.
*/ | Returns whether this class is a rdfs:Literal | isLiteral | {
"repo_name": "anno4j/anno4j",
"path": "anno4j-core/src/main/java/com/github/anno4j/schema_parsing/model/BuildableRDFSClazz.java",
"license": "apache-2.0",
"size": 3824
} | [
"org.openrdf.repository.RepositoryException"
] | import org.openrdf.repository.RepositoryException; | import org.openrdf.repository.*; | [
"org.openrdf.repository"
] | org.openrdf.repository; | 1,158,144 |
public TravelAuthorizationService getTravelAuthorizationService() {
return travelAuthorizationService;
} | TravelAuthorizationService function() { return travelAuthorizationService; } | /**
* Gets the travelAuthorizationService attribute.
* @return Returns the travelAuthorizationService.
*/ | Gets the travelAuthorizationService attribute | getTravelAuthorizationService | {
"repo_name": "kuali/kfs",
"path": "kfs-tem/src/main/java/org/kuali/kfs/module/tem/batch/service/impl/ExpenseImportByTripServiceImpl.java",
"license": "agpl-3.0",
"size": 44771
} | [
"org.kuali.kfs.module.tem.document.service.TravelAuthorizationService"
] | import org.kuali.kfs.module.tem.document.service.TravelAuthorizationService; | import org.kuali.kfs.module.tem.document.service.*; | [
"org.kuali.kfs"
] | org.kuali.kfs; | 2,391,841 |
public String toString()
{
if (SanityManager.DEBUG)
{
return super.toString() +
"dropBehavior: " + "\n" + dropBehavior + "\n";
}
else
{
return "";
}
} | String function() { if (SanityManager.DEBUG) { return super.toString() + STR + "\n" + dropBehavior + "\n"; } else { return ""; } } | /**
* Convert this object to a String. See comments in QueryTreeNode.java
* for how this should be done for tree printing.
*
* @return This object as a String
*/ | Convert this object to a String. See comments in QueryTreeNode.java for how this should be done for tree printing | toString | {
"repo_name": "lpxz/grail-derby104",
"path": "java/engine/org/apache/derby/impl/sql/compile/DropSchemaNode.java",
"license": "apache-2.0",
"size": 3549
} | [
"org.apache.derby.iapi.services.sanity.SanityManager"
] | import org.apache.derby.iapi.services.sanity.SanityManager; | import org.apache.derby.iapi.services.sanity.*; | [
"org.apache.derby"
] | org.apache.derby; | 1,770,577 |
public void addTypeSchemeMapping(Pattern types[], Pattern schemes[])
{
this.resourcePatterns.add(new ResourceMappingPatterns(this, types, schemes, null, null,
ActionMenuConstants.SELECTION_DONT_CARE));
} | void function(Pattern types[], Pattern schemes[]) { this.resourcePatterns.add(new ResourceMappingPatterns(this, types, schemes, null, null, ActionMenuConstants.SELECTION_DONT_CARE)); } | /**
* Add Resource Mapping for the specified Resource Types and schemes. If the
* Resource is equal to on of the specified Types and has one of the
* specified schemes, this menu mapping will be activated.
*
*/ | Add Resource Mapping for the specified Resource Types and schemes. If the Resource is equal to on of the specified Types and has one of the specified schemes, this menu mapping will be activated | addTypeSchemeMapping | {
"repo_name": "NLeSC/vbrowser",
"path": "source/nl.esciencecenter.vlet.gui.vbrowser/src/nl/esciencecenter/vlet/actions/ActionMenuMapping.java",
"license": "apache-2.0",
"size": 15022
} | [
"java.util.regex.Pattern"
] | import java.util.regex.Pattern; | import java.util.regex.*; | [
"java.util"
] | java.util; | 1,797,787 |
@Test
public void testMoveScreenWithReagent() throws Exception {
String perms = "rw----";
EventContext ctx = newUserAndGroup(perms);
ExperimenterGroup g = newGroupAddUser(perms, ctx.userId);
iAdmin.getEventContext(); // Refresh
Screen s = mmFactory.simpleScreenData().asS... | void function() throws Exception { String perms = STR; EventContext ctx = newUserAndGroup(perms); ExperimenterGroup g = newGroupAddUser(perms, ctx.userId); iAdmin.getEventContext(); Screen s = mmFactory.simpleScreenData().asScreen(); Reagent r = mmFactory.createReagent(); s.addReagent(r); Plate p = mmFactory.createPlat... | /**
* Tests to move screen with a plate and a reagent.
*
* @throws Exception
* Thrown if an error occurred.
*/ | Tests to move screen with a plate and a reagent | testMoveScreenWithReagent | {
"repo_name": "dpwrussell/openmicroscopy",
"path": "components/tools/OmeroJava/test/integration/chgrp/HierarchyMoveTest.java",
"license": "gpl-2.0",
"size": 46935
} | [
"org.testng.Assert"
] | import org.testng.Assert; | import org.testng.*; | [
"org.testng"
] | org.testng; | 1,844,272 |
EClass getErrorEventDefinition(); | EClass getErrorEventDefinition(); | /**
* Returns the meta object for class '{@link org.eclipse.bpmn2.ErrorEventDefinition <em>Error Event Definition</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Error Event Definition</em>'.
* @see org.eclipse.bpmn2.ErrorEventDefinition
* @generated
*/ | Returns the meta object for class '<code>org.eclipse.bpmn2.ErrorEventDefinition Error Event Definition</code>'. | getErrorEventDefinition | {
"repo_name": "Rikkola/kie-wb-common",
"path": "kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-emf/src/main/java/org/eclipse/bpmn2/Bpmn2Package.java",
"license": "apache-2.0",
"size": 929298
} | [
"org.eclipse.emf.ecore.EClass"
] | import org.eclipse.emf.ecore.EClass; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,124,241 |
public ByteArray getHMACSHA1Internal(final ByteArray key, final ByteArray data) {
NotNull.exceptIfNull(key, "key");
NotNull.exceptIfNull(data, "data");
try {
SecretKeySpec signingKey = new SecretKeySpec(key.getData(), "HmacSHA1");
Mac mac = Mac.getInstance("HmacSHA1");
mac.init(signingKey);
mac.upd... | ByteArray function(final ByteArray key, final ByteArray data) { NotNull.exceptIfNull(key, "key"); NotNull.exceptIfNull(data, "data"); try { SecretKeySpec signingKey = new SecretKeySpec(key.getData(), STR); Mac mac = Mac.getInstance(STR); mac.init(signingKey); mac.update(data.getData()); byte[] Hmac = mac.doFinal(); ret... | /**
* Computes the HMACSHA1 hash computation.
* @param key NotNull. Key is used for initializing MAC object.
* @param data NotNull.
* @return ByteArray containing the HMACSHA1 Hash.
*/ | Computes the HMACSHA1 hash computation | getHMACSHA1Internal | {
"repo_name": "swift/stroke",
"path": "src/com/isode/stroke/crypto/JavaCryptoProvider.java",
"license": "gpl-3.0",
"size": 3617
} | [
"com.isode.stroke.base.ByteArray",
"com.isode.stroke.base.NotNull",
"java.security.InvalidKeyException",
"java.security.NoSuchAlgorithmException",
"javax.crypto.Mac",
"javax.crypto.spec.SecretKeySpec"
] | import com.isode.stroke.base.ByteArray; import com.isode.stroke.base.NotNull; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec; | import com.isode.stroke.base.*; import java.security.*; import javax.crypto.*; import javax.crypto.spec.*; | [
"com.isode.stroke",
"java.security",
"javax.crypto"
] | com.isode.stroke; java.security; javax.crypto; | 2,233,455 |
@SubscribeEvent
public void onPlayerInteract(PlayerInteractEvent e)
{
if (!allowSignCommands || !e.action.equals(Action.RIGHT_CLICK_BLOCK)){ return;}
TileEntity te = e.entityPlayer.worldObj.getTileEntity(e.x, e.y, e.z);
if (te != null)
{
if (te instanceof TileEnt... | void function(PlayerInteractEvent e) { if (!allowSignCommands !e.action.equals(Action.RIGHT_CLICK_BLOCK)){ return;} TileEntity te = e.entityPlayer.worldObj.getTileEntity(e.x, e.y, e.z); if (te != null) { if (te instanceof TileEntitySign) { String[] signText = ((TileEntitySign) te).signText; if (!signText[0].equals(STR)... | /**
* how to use:
* First line of the sign MUST BE [command]
* Second line is the command you want to run
* Third and fourth lines are arguments to the command.
*/ | how to use: First line of the sign MUST BE [command] Second line is the command you want to run Third and fourth lines are arguments to the command | onPlayerInteract | {
"repo_name": "aschmois/ForgeEssentialsMain",
"path": "src/main/java/com/forgeessentials/signtools/SignToolsModule.java",
"license": "epl-1.0",
"size": 3513
} | [
"net.minecraft.server.MinecraftServer",
"net.minecraft.tileentity.TileEntity",
"net.minecraft.tileentity.TileEntitySign",
"net.minecraftforge.event.entity.player.PlayerInteractEvent"
] | import net.minecraft.server.MinecraftServer; import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntitySign; import net.minecraftforge.event.entity.player.PlayerInteractEvent; | import net.minecraft.server.*; import net.minecraft.tileentity.*; import net.minecraftforge.event.entity.player.*; | [
"net.minecraft.server",
"net.minecraft.tileentity",
"net.minecraftforge.event"
] | net.minecraft.server; net.minecraft.tileentity; net.minecraftforge.event; | 1,451,425 |
public WorkflowAction findEntryAction(Contentlet contentlet, User user) throws DotDataException, DotSecurityException; | WorkflowAction function(Contentlet contentlet, User user) throws DotDataException, DotSecurityException; | /**
* This method will return the entry action of a scheme based on the content's structure.
*
* @param Contentlet
* @param User
* @return WorkflowAction
* @throws DotDataException, DotSecurityException
*/ | This method will return the entry action of a scheme based on the content's structure | findEntryAction | {
"repo_name": "dotCMS/core",
"path": "dotCMS/src/main/java/com/dotmarketing/portlets/workflows/business/WorkflowAPI.java",
"license": "gpl-3.0",
"size": 45694
} | [
"com.dotmarketing.exception.DotDataException",
"com.dotmarketing.exception.DotSecurityException",
"com.dotmarketing.portlets.contentlet.model.Contentlet",
"com.dotmarketing.portlets.workflows.model.WorkflowAction",
"com.liferay.portal.model.User"
] | import com.dotmarketing.exception.DotDataException; import com.dotmarketing.exception.DotSecurityException; import com.dotmarketing.portlets.contentlet.model.Contentlet; import com.dotmarketing.portlets.workflows.model.WorkflowAction; import com.liferay.portal.model.User; | import com.dotmarketing.exception.*; import com.dotmarketing.portlets.contentlet.model.*; import com.dotmarketing.portlets.workflows.model.*; import com.liferay.portal.model.*; | [
"com.dotmarketing.exception",
"com.dotmarketing.portlets",
"com.liferay.portal"
] | com.dotmarketing.exception; com.dotmarketing.portlets; com.liferay.portal; | 964,764 |
public String getUrlPath() {
try {
return resource.getURL().toString();
} catch (IOException e) {
e.printStackTrace();
return "ERROR";
}
} | String function() { try { return resource.getURL().toString(); } catch (IOException e) { e.printStackTrace(); return "ERROR"; } } | /**
* Get a string representing the url to the resource
*
* @return
*/ | Get a string representing the url to the resource | getUrlPath | {
"repo_name": "tamerman/mobile-starting-framework",
"path": "maps/impl/src/test/java/org/kuali/mobility/maps/service/helper/URLHelper.java",
"license": "mit",
"size": 1910
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,195,417 |
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable<NetAppAccountInner> list(Context context) {
return new PagedIterable<>(listAsync(context));
} | @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable<NetAppAccountInner> function(Context context) { return new PagedIterable<>(listAsync(context)); } | /**
* List and describe all NetApp accounts in the subscription.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throw... | List and describe all NetApp accounts in the subscription | list | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java",
"license": "mit",
"size": 75086
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedIterable",
"com.azure.core.util.Context",
"com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.netapp.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 1,807,777 |
private MWClassHandle getDeclaringTypeHandleForTopLink() {
return (this.declaringTypeHandle.getType() == null) ? null : this.declaringTypeHandle;
}
| MWClassHandle function() { return (this.declaringTypeHandle.getType() == null) ? null : this.declaringTypeHandle; } | /**
* check for null
*/ | check for null | getDeclaringTypeHandleForTopLink | {
"repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs",
"path": "utils/eclipselink.utils.workbench/mappingsmodel/source/org/eclipse/persistence/tools/workbench/mappingsmodel/meta/MWClass.java",
"license": "epl-1.0",
"size": 110145
} | [
"org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWClassHandle"
] | import org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWClassHandle; | import org.eclipse.persistence.tools.workbench.mappingsmodel.handles.*; | [
"org.eclipse.persistence"
] | org.eclipse.persistence; | 2,842,492 |
public boolean Checkdb(String in) throws SQLException {
String sql = "SELECT * FROM recipes WHERE recipe='" + in + "';";
ArrayList<Recipes> myList = SQLCall(sql);
return myList.isEmpty();
} | boolean function(String in) throws SQLException { String sql = STR + in + "';"; ArrayList<Recipes> myList = SQLCall(sql); return myList.isEmpty(); } | /**
* Checks to see if the recipe is in the database.
* @param in
* @return
* @throws SQLException
*/ | Checks to see if the recipe is in the database | Checkdb | {
"repo_name": "cmo1992/RecipeMixCalc",
"path": "RecConv/src/DbAccessObj/RecipesDAO.java",
"license": "gpl-2.0",
"size": 3826
} | [
"java.sql.SQLException",
"java.util.ArrayList"
] | import java.sql.SQLException; import java.util.ArrayList; | import java.sql.*; import java.util.*; | [
"java.sql",
"java.util"
] | java.sql; java.util; | 1,791,948 |
public CallbackPropModelViewModel_ onClickListener(
@Nullable final OnModelClickListener<CallbackPropModelViewModel_, CallbackPropModelView> onClickListener) {
onMutation();
if (onClickListener == null) {
this.onClickListener_OnClickListener = null;
}
else {
this.onClickListener_OnCl... | CallbackPropModelViewModel_ function( @Nullable final OnModelClickListener<CallbackPropModelViewModel_, CallbackPropModelView> onClickListener) { onMutation(); if (onClickListener == null) { this.onClickListener_OnClickListener = null; } else { this.onClickListener_OnClickListener = new WrappedEpoxyModelClickListener(o... | /**
* Set a click listener that will provide the parent view, model, and adapter position of the clicked view. This will clear the normal View.OnClickListener if one has been set
*/ | Set a click listener that will provide the parent view, model, and adapter position of the clicked view. This will clear the normal View.OnClickListener if one has been set | onClickListener | {
"repo_name": "airbnb/epoxy",
"path": "epoxy-modelfactorytest/src/test/resources/CallbackPropModelViewModel_.java",
"license": "apache-2.0",
"size": 11367
} | [
"androidx.annotation.Nullable"
] | import androidx.annotation.Nullable; | import androidx.annotation.*; | [
"androidx.annotation"
] | androidx.annotation; | 1,063,800 |
final String REGEX = "[0-9]*\\.?[0-9]*";
Pattern p = Pattern.compile(REGEX);
Matcher m = p.matcher(test);
boolean result = m.matches();
return result;
} | final String REGEX = STR; Pattern p = Pattern.compile(REGEX); Matcher m = p.matcher(test); boolean result = m.matches(); return result; } | /**
* Determines if a given input is numeric or not
* @param test A String that is being matched.
* @return A boolean value equating to True if the String is numerical/decimal.
*/ | Determines if a given input is numeric or not | IsNumeric | {
"repo_name": "KostyaIliouk/GradeTracker",
"path": "src/com/validation/Validation.java",
"license": "gpl-3.0",
"size": 572
} | [
"java.util.regex.Matcher",
"java.util.regex.Pattern"
] | import java.util.regex.Matcher; import java.util.regex.Pattern; | import java.util.regex.*; | [
"java.util"
] | java.util; | 1,301,894 |
private ModelMBeanInfo getMBeanInfo(Object managedBean, String beanKey) throws JMException {
ModelMBeanInfo info = this.assembler.getMBeanInfo(managedBean, beanKey);
if (logger.isWarnEnabled() && ObjectUtils.isEmpty(info.getAttributes()) &&
ObjectUtils.isEmpty(info.getOperations())) {
logger.warn("Bean wi... | ModelMBeanInfo function(Object managedBean, String beanKey) throws JMException { ModelMBeanInfo info = this.assembler.getMBeanInfo(managedBean, beanKey); if (logger.isWarnEnabled() && ObjectUtils.isEmpty(info.getAttributes()) && ObjectUtils.isEmpty(info.getOperations())) { logger.warn(STR + beanKey + STR); } return inf... | /**
* Gets the {@code ModelMBeanInfo} for the bean with the supplied key
* and of the supplied type.
*/ | Gets the ModelMBeanInfo for the bean with the supplied key and of the supplied type | getMBeanInfo | {
"repo_name": "sunpy1106/SpringBeanLifeCycle",
"path": "src/main/java/org/springframework/jmx/export/MBeanExporter.java",
"license": "apache-2.0",
"size": 44173
} | [
"javax.management.JMException",
"javax.management.modelmbean.ModelMBeanInfo",
"org.springframework.util.ObjectUtils"
] | import javax.management.JMException; import javax.management.modelmbean.ModelMBeanInfo; import org.springframework.util.ObjectUtils; | import javax.management.*; import javax.management.modelmbean.*; import org.springframework.util.*; | [
"javax.management",
"org.springframework.util"
] | javax.management; org.springframework.util; | 756,063 |
public void addAgent(Agent value) {
Base.add(this.model, this.getResource(), AGENT, value);
} | void function(Agent value) { Base.add(this.model, this.getResource(), AGENT, value); } | /**
* Adds a value to property Agent from an instance of Agent [Generated from
* RDFReactor template rule #add4dynamic]
*/ | Adds a value to property Agent from an instance of Agent [Generated from RDFReactor template rule #add4dynamic] | addAgent | {
"repo_name": "m0ep/master-thesis",
"path": "source/apis/rdf2go/rdf2go-w3-wacl/src/main/java/org/w3/ns/auth/acl/Authorization.java",
"license": "mit",
"size": 78044
} | [
"com.xmlns.foaf.Agent",
"org.ontoware.rdfreactor.runtime.Base"
] | import com.xmlns.foaf.Agent; import org.ontoware.rdfreactor.runtime.Base; | import com.xmlns.foaf.*; import org.ontoware.rdfreactor.runtime.*; | [
"com.xmlns.foaf",
"org.ontoware.rdfreactor"
] | com.xmlns.foaf; org.ontoware.rdfreactor; | 675,111 |
public void paint(ThingleGraphics g, int width, int height) {
if (dirty) {
// layout(width,height);
dirty = false;
}
setRectangle(content, "bounds", 0, 0, width, height);
g.setFont(font);
cacheGradients();
paint(g, 0, 0, width, height, content, isEnabled());
}
| void function(ThingleGraphics g, int width, int height) { if (dirty) { dirty = false; } setRectangle(content, STR, 0, 0, width, height); g.setFont(font); cacheGradients(); paint(g, 0, 0, width, height, content, isEnabled()); } | /**
* Paints the components inside the ThinletGraphics clip area
*/ | Paints the components inside the ThinletGraphics clip area | paint | {
"repo_name": "SenshiSentou/SourceFight",
"path": "slick_dev/trunk/thingle/src/org/newdawn/slick/thingle/internal/Thinlet.java",
"license": "bsd-2-clause",
"size": 256587
} | [
"org.newdawn.slick.thingle.spi.ThingleGraphics"
] | import org.newdawn.slick.thingle.spi.ThingleGraphics; | import org.newdawn.slick.thingle.spi.*; | [
"org.newdawn.slick"
] | org.newdawn.slick; | 2,040,904 |
public boolean getUseAudio(HttpServletRequest request) {
if (request != null && request.getParameter("audio") != null) {
String audioStr = request.getParameter("audio");
return Boolean.parseBoolean(audioStr);
}
Element layoutE = getUniqueDescendant(config.getFirstChild(), "layout");
Element audioE = g... | boolean function(HttpServletRequest request) { if (request != null && request.getParameter("audio") != null) { String audioStr = request.getParameter("audio"); return Boolean.parseBoolean(audioStr); } Element layoutE = getUniqueDescendant(config.getFirstChild(), STR); Element audioE = getUniqueDescendant(layoutE, "audi... | /**
* Determines whether or not the AjaxGUI is going to embed the AudioApplet.
* The audio applet allows the user to listen and speak to interact with the
* application.
*/ | Determines whether or not the AjaxGUI is going to embed the AudioApplet. The audio applet allows the user to listen and speak to interact with the application | getUseAudio | {
"repo_name": "ananthvelu/wami",
"path": "src/edu/mit/csail/sls/wami/WamiConfig.java",
"license": "mit",
"size": 39472
} | [
"javax.servlet.http.HttpServletRequest",
"org.w3c.dom.Element"
] | import javax.servlet.http.HttpServletRequest; import org.w3c.dom.Element; | import javax.servlet.http.*; import org.w3c.dom.*; | [
"javax.servlet",
"org.w3c.dom"
] | javax.servlet; org.w3c.dom; | 2,102,437 |
public CountDownLatch changeOrderUserIdAsync(String orderId, String responseFields, AsyncCallback<com.mozu.api.contracts.commerceruntime.orders.Order> callback) throws Exception
{
MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client = com.mozu.api.clients.commerce.OrderClient.changeOrderUserIdCl... | CountDownLatch function(String orderId, String responseFields, AsyncCallback<com.mozu.api.contracts.commerceruntime.orders.Order> callback) throws Exception { MozuClient<com.mozu.api.contracts.commerceruntime.orders.Order> client = com.mozu.api.clients.commerce.OrderClient.changeOrderUserIdClient( orderId, responseFiel... | /**
* Updates the user ID of the shopper who placed the order to the current user.
* <p><pre><code>
* Order order = new Order();
* CountDownLatch latch = order.changeOrderUserId( orderId, responseFields, callback );
* latch.await() * </code></pre></p>
* @param orderId Unique identifier of the order.
* @... | Updates the user ID of the shopper who placed the order to the current user. <code><code> Order order = new Order(); CountDownLatch latch = order.changeOrderUserId( orderId, responseFields, callback ); latch.await() * </code></code> | changeOrderUserIdAsync | {
"repo_name": "lakshmi-nair/mozu-java",
"path": "mozu-javaasync-core/src/main/java/com/mozu/api/resources/commerce/OrderResource.java",
"license": "mit",
"size": 51787
} | [
"com.mozu.api.AsyncCallback",
"com.mozu.api.MozuClient",
"java.util.concurrent.CountDownLatch"
] | import com.mozu.api.AsyncCallback; import com.mozu.api.MozuClient; import java.util.concurrent.CountDownLatch; | import com.mozu.api.*; import java.util.concurrent.*; | [
"com.mozu.api",
"java.util"
] | com.mozu.api; java.util; | 744,388 |
return newInstance(new Pair<>(unitController, serviceType));
} | return newInstance(new Pair<>(unitController, serviceType)); } | /**
* Instantiate a new service simulator compatible to the given config pair.
*
* @return the simulator
* @throws InstantiationException is thrown if any error occurs during the instantiation.
* @throws InterruptedException is thrown if the current thread was externally interrupted.
*/ | Instantiate a new service simulator compatible to the given config pair | newInstance | {
"repo_name": "DivineCooperation/bco.dal",
"path": "lib/src/main/java/org/openbase/bco/dal/lib/simulation/service/ServiceSimulatorFactory.java",
"license": "gpl-3.0",
"size": 4043
} | [
"org.openbase.jul.pattern.Pair"
] | import org.openbase.jul.pattern.Pair; | import org.openbase.jul.pattern.*; | [
"org.openbase.jul"
] | org.openbase.jul; | 1,078,096 |
public void put(InputStream in, long length, String localFile,
String remoteFile, FileTransferProgress progress)
throws SshException, ChannelOpenException {
ScpEngineIO scp = new ScpEngineIO("scp -t "
+ remoteFile, ssh.openSessionChannel());
try {
scp.waitForResponse();
if (progress != null) ... | void function(InputStream in, long length, String localFile, String remoteFile, FileTransferProgress progress) throws SshException, ChannelOpenException { ScpEngineIO scp = new ScpEngineIO(STR + remoteFile, ssh.openSessionChannel()); try { scp.waitForResponse(); if (progress != null) { progress.started(length, remoteFi... | /**
* <p>
* Uploads a <code>java.io.InputStream</code> to a remote server as a file.
* You <strong>must</strong> supply the correct number of bytes that will be
* written.
* </p>
*
* @param in
* stream providing file
* @param length
* number of bytes that will be written
* @... | Uploads a <code>java.io.InputStream</code> to a remote server as a file. You must supply the correct number of bytes that will be written. | put | {
"repo_name": "sshtools/j2ssh-maverick",
"path": "j2ssh-maverick/src/main/java/com/sshtools/scp/ScpClientIO.java",
"license": "lgpl-3.0",
"size": 13912
} | [
"com.sshtools.sftp.FileTransferProgress",
"com.sshtools.ssh.ChannelOpenException",
"com.sshtools.ssh.SshException",
"java.io.IOException",
"java.io.InputStream"
] | import com.sshtools.sftp.FileTransferProgress; import com.sshtools.ssh.ChannelOpenException; import com.sshtools.ssh.SshException; import java.io.IOException; import java.io.InputStream; | import com.sshtools.sftp.*; import com.sshtools.ssh.*; import java.io.*; | [
"com.sshtools.sftp",
"com.sshtools.ssh",
"java.io"
] | com.sshtools.sftp; com.sshtools.ssh; java.io; | 173,352 |
public static <T> T withWriter(File file, Closure<T> closure) throws IOException {
return withWriter(newWriter(file), closure);
} | static <T> T function(File file, Closure<T> closure) throws IOException { return withWriter(newWriter(file), closure); } | /**
* Creates a new BufferedWriter for this file, passes it to the closure, and
* ensures the stream is flushed and closed after the closure returns.
*
* @param file a File
* @param closure a closure
* @return the value returned by the closure
* @throws IOException if an IOExceptio... | Creates a new BufferedWriter for this file, passes it to the closure, and ensures the stream is flushed and closed after the closure returns | withWriter | {
"repo_name": "mv2a/yajsw",
"path": "src/groovy-patch/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java",
"license": "apache-2.0",
"size": 704164
} | [
"groovy.lang.Closure",
"java.io.File",
"java.io.IOException"
] | import groovy.lang.Closure; import java.io.File; import java.io.IOException; | import groovy.lang.*; import java.io.*; | [
"groovy.lang",
"java.io"
] | groovy.lang; java.io; | 1,565,855 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.