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
//@pda jdbc40 public RowId getRowId(String columnName) throws SQLException { return getRowId(findColumn (columnName)); }
RowId function(String columnName) throws SQLException { return getRowId(findColumn (columnName)); }
/** * Retrieves the value of the designated column in the current row of this * <code>ResultSet</code> object as a <code>java.sql.RowId</code> object in the Java * programming language. * * @param columnName the name of the column * @return the column value ; if the value is a SQL <code>N...
Retrieves the value of the designated column in the current row of this <code>ResultSet</code> object as a <code>java.sql.RowId</code> object in the Java programming language
getRowId
{ "repo_name": "piguangming/jt400", "path": "cvsroot/jdbc40/com/ibm/as400/access/AS400JDBCResultSet.java", "license": "epl-1.0", "size": 288211 }
[ "java.sql.RowId", "java.sql.SQLException" ]
import java.sql.RowId; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,117,298
@Override public String toString(){ String newline = System.getProperty("line.separator"); StringBuilder str = new StringBuilder(); str.append("structure "); str.append(name); str.append(" "); str.append(pdb_id); str.append(" "); if ( nrModels()>1 ){ str.append( " models: "); str.append(nrMod...
String function(){ String newline = System.getProperty(STR); StringBuilder str = new StringBuilder(); str.append(STR); str.append(name); str.append(" "); str.append(pdb_id); str.append(" "); if ( nrModels()>1 ){ str.append( STR); str.append(nrModels()); str.append(newline) ; } str.append(pdbHeader); str.append(newline)...
/** String representation. * */
String representation
toString
{ "repo_name": "andreasprlic/biojava", "path": "biojava-structure/src/main/java/org/biojava/nbio/structure/StructureImpl.java", "license": "lgpl-2.1", "size": 26286 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,910,512
public boolean canOverdrive () throws OneWireIOException, OneWireException { try { synchronized(conn) { // send beginExclusive command conn.output.writeByte(CMD_CANOVERDRIVE); conn.output.flush(); // check return value for succes...
boolean function () throws OneWireIOException, OneWireException { try { synchronized(conn) { conn.output.writeByte(CMD_CANOVERDRIVE); conn.output.flush(); checkReturnValue(conn); return conn.input.readBoolean(); } } catch(IOException ioe) { throw new OneWireException(COMM_FAILED + ioe.getMessage()); } }
/** * Returns whether adapter can physically support overdrive mode. * * @return <code>true</code> if this port adapter can do OverDrive, * <code>false</code> otherwise. * * @throws OneWireIOException on a 1-Wire communication error with the adapter * @throws OneWireException on a setup err...
Returns whether adapter can physically support overdrive mode
canOverdrive
{ "repo_name": "marcass/dz-1", "path": "dz3-owapi/src/main/java/com/dalsemi/onewire/adapter/NetAdapter.java", "license": "gpl-3.0", "size": 63815 }
[ "com.dalsemi.onewire.OneWireException", "java.io.IOException" ]
import com.dalsemi.onewire.OneWireException; import java.io.IOException;
import com.dalsemi.onewire.*; import java.io.*;
[ "com.dalsemi.onewire", "java.io" ]
com.dalsemi.onewire; java.io;
688,093
protected Prel convertToPrel(RelNode drel, RelDataType validatedRowType) throws RelConversionException, SqlUnsupportedException { Preconditions.checkArgument(drel.getConvention() == DrillRel.DRILL_LOGICAL); final RelTraitSet traits = drel.getTraitSet().plus(Prel.DRILL_PHYSICAL).plus(DrillDistributionTrait.SI...
Prel function(RelNode drel, RelDataType validatedRowType) throws RelConversionException, SqlUnsupportedException { Preconditions.checkArgument(drel.getConvention() == DrillRel.DRILL_LOGICAL); final RelTraitSet traits = drel.getTraitSet().plus(Prel.DRILL_PHYSICAL).plus(DrillDistributionTrait.SINGLETON); Prel phyRelNode;...
/** * Applies physical rules and certain transformations to convert drill relational node into physical one. * * @param drel relational node * @param validatedRowType final output row type * @return physical relational node * @throws RelConversionException * @throws SqlUnsupportedException */
Applies physical rules and certain transformations to convert drill relational node into physical one
convertToPrel
{ "repo_name": "KulykRoman/drill", "path": "exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/handlers/DefaultSqlHandler.java", "license": "apache-2.0", "size": 30876 }
[ "com.google.common.base.Preconditions", "com.google.common.base.Stopwatch", "java.util.ArrayList", "org.apache.calcite.plan.RelOptPlanner", "org.apache.calcite.plan.RelTraitSet", "org.apache.calcite.rel.RelNode", "org.apache.calcite.rel.type.RelDataType", "org.apache.calcite.tools.RelConversionExcepti...
import com.google.common.base.Preconditions; import com.google.common.base.Stopwatch; import java.util.ArrayList; import org.apache.calcite.plan.RelOptPlanner; import org.apache.calcite.plan.RelTraitSet; import org.apache.calcite.rel.RelNode; import org.apache.calcite.rel.type.RelDataType; import org.apache.calcite.too...
import com.google.common.base.*; import java.util.*; import org.apache.calcite.plan.*; import org.apache.calcite.rel.*; import org.apache.calcite.rel.type.*; import org.apache.calcite.tools.*; import org.apache.drill.exec.physical.impl.join.*; import org.apache.drill.exec.planner.*; import org.apache.drill.exec.planner...
[ "com.google.common", "java.util", "org.apache.calcite", "org.apache.drill" ]
com.google.common; java.util; org.apache.calcite; org.apache.drill;
421,807
private void registerSessionDestructionCallback(String name, Runnable callback) { HttpSession session = getSession(true); session.setAttribute(DESTRUCTION_CALLBACK_NAME_PREFIX + name, new DestructionCallbackBindingListener(callback)); }
void function(String name, Runnable callback) { HttpSession session = getSession(true); session.setAttribute(DESTRUCTION_CALLBACK_NAME_PREFIX + name, new DestructionCallbackBindingListener(callback)); }
/** * Register the given callback as to be executed after session termination. * @param name the name of the attribute to register the callback for * @param callback the callback to be executed for destruction */
Register the given callback as to be executed after session termination
registerSessionDestructionCallback
{ "repo_name": "besom/bbossgroups-mvn", "path": "bboss_mvc/src/main/java/org/frameworkset/web/servlet/context/ServletRequestAttributes.java", "license": "apache-2.0", "size": 10142 }
[ "javax.servlet.http.HttpSession" ]
import javax.servlet.http.HttpSession;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
2,866,530
@Override protected List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList( new MainReactPackage(), new RNSpinkitPackage(), new VectorIconsPackage(), new CodePush(null, this, BuildConfig.DEBUG), new VectorIconsPackage(), ...
List<ReactPackage> function() { return Arrays.<ReactPackage>asList( new MainReactPackage(), new RNSpinkitPackage(), new VectorIconsPackage(), new CodePush(null, this, BuildConfig.DEBUG), new VectorIconsPackage(), new CodePush(null, this, BuildConfig.DEBUG) ); }
/** * A list of packages used by the app. If the app uses additional views * or modules besides the default ones, add more packages here. */
A list of packages used by the app. If the app uses additional views or modules besides the default ones, add more packages here
getPackages
{ "repo_name": "crod93/googlePlacesEx-react-native", "path": "android/app/src/main/java/com/nativestarterkit/MainActivity.java", "license": "mit", "size": 1511 }
[ "com.facebook.react.ReactPackage", "com.facebook.react.shell.MainReactPackage", "com.microsoft.codepush.react.CodePush", "com.oblador.vectoricons.VectorIconsPackage", "com.react.rnspinkit.RNSpinkitPackage", "java.util.Arrays", "java.util.List" ]
import com.facebook.react.ReactPackage; import com.facebook.react.shell.MainReactPackage; import com.microsoft.codepush.react.CodePush; import com.oblador.vectoricons.VectorIconsPackage; import com.react.rnspinkit.RNSpinkitPackage; import java.util.Arrays; import java.util.List;
import com.facebook.react.*; import com.facebook.react.shell.*; import com.microsoft.codepush.react.*; import com.oblador.vectoricons.*; import com.react.rnspinkit.*; import java.util.*;
[ "com.facebook.react", "com.microsoft.codepush", "com.oblador.vectoricons", "com.react.rnspinkit", "java.util" ]
com.facebook.react; com.microsoft.codepush; com.oblador.vectoricons; com.react.rnspinkit; java.util;
1,190,704
public void testBug41730() throws Exception { Connection conn2 = null; PreparedStatement pstmt2 = null; try { conn2 = getConnectionWithProps("characterEncoding=sjis"); pstmt2 = conn2.prepareStatement("select ?"); pstmt2.setString(1, "\u00A5'"); // this will throw an exception with a syntax error if...
void function() throws Exception { Connection conn2 = null; PreparedStatement pstmt2 = null; try { conn2 = getConnectionWithProps(STR); pstmt2 = conn2.prepareStatement(STR); pstmt2.setString(1, STR); pstmt2.executeQuery(); } finally { try { if(pstmt2 != null) pstmt2.close(); } catch(SQLException ex) {} try { if(conn2 !...
/** * Bug #41730 - SQL Injection when using U+00A5 and SJIS/Windows-31J */
Bug #41730 - SQL Injection when using U+00A5 and SJIS/Windows-31J
testBug41730
{ "repo_name": "yyuu/libmysql-java", "path": "src/testsuite/regression/StatementRegressionTest.java", "license": "gpl-2.0", "size": 180583 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.SQLException" ]
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,841,801
private PrimitiveTypeInfo deriveResultTypeInfo() throws UDFArgumentException { PrimitiveTypeInfo left = (PrimitiveTypeInfo) TypeInfoUtils.getTypeInfoFromObjectInspector(leftOI); PrimitiveTypeInfo right = (PrimitiveTypeInfo) TypeInfoUtils.getTypeInfoFromObjectInspector(rightOI); if (!FunctionRegistry.isNum...
PrimitiveTypeInfo function() throws UDFArgumentException { PrimitiveTypeInfo left = (PrimitiveTypeInfo) TypeInfoUtils.getTypeInfoFromObjectInspector(leftOI); PrimitiveTypeInfo right = (PrimitiveTypeInfo) TypeInfoUtils.getTypeInfoFromObjectInspector(rightOI); if (!FunctionRegistry.isNumericType(left) !FunctionRegistry.i...
/** * Default implementation for deriving typeinfo instance for the operator result. * * @param leftOI TypeInfo instance of the left operand * @param rightOI TypeInfo instance of the right operand * @return * @throws UDFArgumentException */
Default implementation for deriving typeinfo instance for the operator result
deriveResultTypeInfo
{ "repo_name": "cschenyuan/hive-hack", "path": "ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFBaseNumeric.java", "license": "apache-2.0", "size": 13722 }
[ "java.util.ArrayList", "java.util.List", "org.apache.hadoop.hive.ql.exec.FunctionRegistry", "org.apache.hadoop.hive.ql.exec.NoMatchingMethodException", "org.apache.hadoop.hive.ql.exec.UDFArgumentException", "org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo", "org.apache.hadoop.hive.serde2.typein...
import java.util.ArrayList; import java.util.List; import org.apache.hadoop.hive.ql.exec.FunctionRegistry; import org.apache.hadoop.hive.ql.exec.NoMatchingMethodException; import org.apache.hadoop.hive.ql.exec.UDFArgumentException; import org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo; import org.apache.hadoo...
import java.util.*; import org.apache.hadoop.hive.ql.exec.*; import org.apache.hadoop.hive.serde2.typeinfo.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,072,918
public RedeliveryPolicyDefinition retriesExhaustedLogLevel(LoggingLevel retriesExhaustedLogLevel) { setRetriesExhaustedLogLevel(retriesExhaustedLogLevel); return this; }
RedeliveryPolicyDefinition function(LoggingLevel retriesExhaustedLogLevel) { setRetriesExhaustedLogLevel(retriesExhaustedLogLevel); return this; }
/** * Sets the logging level to use when retries has exhausted * * @param retriesExhaustedLogLevel the logging level * @return the builder */
Sets the logging level to use when retries has exhausted
retriesExhaustedLogLevel
{ "repo_name": "Fabryprog/camel", "path": "core/camel-core/src/main/java/org/apache/camel/model/RedeliveryPolicyDefinition.java", "license": "apache-2.0", "size": 24141 }
[ "org.apache.camel.LoggingLevel" ]
import org.apache.camel.LoggingLevel;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
1,140,364
@Nullable BareSimpleNameable getFromPort();
BareSimpleNameable getFromPort();
/** * Returns the from-port. * * If this is {@code null} and the from-module has only a single port allowing an outgoing connection, then it * is implicitly assumed to be the from-port of this connection. * * @return the from-port */
Returns the from-port. If this is null and the from-module has only a single port allowing an outgoing connection, then it is implicitly assumed to be the from-port of this connection
getFromPort
{ "repo_name": "priimak/cloudkeeper", "path": "cloudkeeper-core/cloudkeeper-model/src/main/java/com/svbio/cloudkeeper/model/bare/element/module/BareConnection.java", "license": "apache-2.0", "size": 2690 }
[ "com.svbio.cloudkeeper.model.bare.element.BareSimpleNameable" ]
import com.svbio.cloudkeeper.model.bare.element.BareSimpleNameable;
import com.svbio.cloudkeeper.model.bare.element.*;
[ "com.svbio.cloudkeeper" ]
com.svbio.cloudkeeper;
143,969
Dataset rand = Random.rand(0, 100, new int[]{1024, 1024}); Dataset error = Random.rand(0, 1, new int[]{1024, 1024}); rand.setError(error); // The error now stays with the data and can be retrieved, however: rand.idivide(10); error = rand.getError(); // Error is not carried through calculati...
Dataset rand = Random.rand(0, 100, new int[]{1024, 1024}); Dataset error = Random.rand(0, 1, new int[]{1024, 1024}); rand.setError(error); rand.idivide(10); error = rand.getError(); System.out.println(error.max()); }
/** * Set the error on some data. */
Set the error on some data
setErrorSimple
{ "repo_name": "SmithRWORNL/january", "path": "org.eclipse.january.examples/src/org/eclipse/january/examples/dataset/ErrorExamples.java", "license": "epl-1.0", "size": 1334 }
[ "org.eclipse.january.dataset.Dataset", "org.eclipse.january.dataset.Random" ]
import org.eclipse.january.dataset.Dataset; import org.eclipse.january.dataset.Random;
import org.eclipse.january.dataset.*;
[ "org.eclipse.january" ]
org.eclipse.january;
103,188
public void addDocument(ProjectDocument doc) { documents.add(doc); doc.addPropertyChangeListener(this); //modified = true; change.firePropertyChange("addDocument", "", doc); doc.setProject(this, 0); doc.afterAdd(); }
void function(ProjectDocument doc) { documents.add(doc); doc.addPropertyChangeListener(this); change.firePropertyChange(STR, "", doc); doc.setProject(this, 0); doc.afterAdd(); }
/** * Inserta un documento. * * @param doc * Documento */
Inserta un documento
addDocument
{ "repo_name": "iCarto/siga", "path": "appgvSIG/src/com/iver/cit/gvsig/project/Project.java", "license": "gpl-3.0", "size": 62151 }
[ "com.iver.cit.gvsig.project.documents.ProjectDocument" ]
import com.iver.cit.gvsig.project.documents.ProjectDocument;
import com.iver.cit.gvsig.project.documents.*;
[ "com.iver.cit" ]
com.iver.cit;
2,785,260
public static PsiElement findSymbolInPsiTree(PsiElement root, String name) { try { visitSymbols( root, (elementName, psiElement) -> { if (name.equals(elementName)) { throw new FoundSymbol(psiElement); } }); return null; } catch (F...
static PsiElement function(PsiElement root, String name) { try { visitSymbols( root, (elementName, psiElement) -> { if (name.equals(elementName)) { throw new FoundSymbol(psiElement); } }); return null; } catch (FoundSymbol e) { return e.element; } }
/** * Returns a mapping from function definitions that start with the given prefix to their target * elements. */
Returns a mapping from function definitions that start with the given prefix to their target elements
findSymbolInPsiTree
{ "repo_name": "brettwooldridge/buck", "path": "tools/ideabuck/src/com/facebook/buck/intellij/ideabuck/lang/psi/BuckPsiUtils.java", "license": "apache-2.0", "size": 12929 }
[ "com.intellij.psi.PsiElement" ]
import com.intellij.psi.PsiElement;
import com.intellij.psi.*;
[ "com.intellij.psi" ]
com.intellij.psi;
537,861
public String remove(String key) throws DictionaryReadOnlyException, DictionaryException { try { PreparedStatement sql = rdb.prepareStatement( "DELETE FROM "+annotator.getAnnotatorId()+"_wordform" +" WHERE wordform = ? AND supplemental = 1"); try { sql.setString(1, key); ...
String function(String key) throws DictionaryReadOnlyException, DictionaryException { try { PreparedStatement sql = rdb.prepareStatement( STR+annotator.getAnnotatorId()+STR +STR); try { sql.setString(1, key); if (sql.executeUpdate() == 0) { throw new DictionaryReadOnlyException( this, STR + key); } } finally { sql.clos...
/** * {@link Dictionary} method - Removes a key from the dictionary. * @param key * @return the ID for the entry in the dictionary, if appropriate * @throws DictionaryReadOnlyException */
<code>Dictionary</code> method - Removes a key from the dictionary
remove
{ "repo_name": "nzilbb/ag", "path": "annotator/cmudict/src/main/java/nzilbb/annotator/cmudict/CMUDictionary.java", "license": "gpl-3.0", "size": 20385 }
[ "java.sql.PreparedStatement", "java.sql.SQLException" ]
import java.sql.PreparedStatement; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
761,798
public boolean teleport(final StendhalRPZone zone, final int x, final int y, final Direction dir, final Player teleporter) { if (StendhalRPAction.placeat(zone, this, x, y)) { if (dir != null) { this.setDirection(dir); } notifyWorldAboutChanges(); return true; } else { final String text = "P...
boolean function(final StendhalRPZone zone, final int x, final int y, final Direction dir, final Player teleporter) { if (StendhalRPAction.placeat(zone, this, x, y)) { if (dir != null) { this.setDirection(dir); } notifyWorldAboutChanges(); return true; } else { final String text = STR + x + "," + y + STR; if (teleporte...
/** * Teleports this player to the given destination. * * @param zone * The zone where this player should be teleported to. * @param x * The destination's x coordinate * @param y * The destination's y coordinate * @param dir * The direction in which the pl...
Teleports this player to the given destination
teleport
{ "repo_name": "acsid/stendhal", "path": "src/games/stendhal/server/entity/player/Player.java", "license": "gpl-2.0", "size": 68122 }
[ "games.stendhal.common.Direction", "games.stendhal.server.core.engine.StendhalRPZone", "games.stendhal.server.core.rp.StendhalRPAction" ]
import games.stendhal.common.Direction; import games.stendhal.server.core.engine.StendhalRPZone; import games.stendhal.server.core.rp.StendhalRPAction;
import games.stendhal.common.*; import games.stendhal.server.core.engine.*; import games.stendhal.server.core.rp.*;
[ "games.stendhal.common", "games.stendhal.server" ]
games.stendhal.common; games.stendhal.server;
776,129
public Path getClasspath() { return compileClasspath; }
Path function() { return compileClasspath; }
/** * Gets the classpath to be used for this compilation. * * @return the class path */
Gets the classpath to be used for this compilation
getClasspath
{ "repo_name": "avafanasiev/groovy", "path": "subprojects/groovy-ant/src/main/java/org/codehaus/groovy/ant/Groovyc.java", "license": "apache-2.0", "size": 46635 }
[ "org.apache.tools.ant.types.Path" ]
import org.apache.tools.ant.types.Path;
import org.apache.tools.ant.types.*;
[ "org.apache.tools" ]
org.apache.tools;
2,559,957
private void validateArgs(String args[]) { if (args.length == 3) { String str; str = args[0]; String newstr = args[1]; File input = new File(str); FileProcessor_outputfile = new FileProcessor(newstr); try { BufferedReader brpref = new BufferedReader(new FileReader(input)); FileProcessor_i...
void function(String args[]) { if (args.length == 3) { String str; str = args[0]; String newstr = args[1]; File input = new File(str); FileProcessor_outputfile = new FileProcessor(newstr); try { BufferedReader brpref = new BufferedReader(new FileReader(input)); FileProcessor_input = new FileProcessor(brpref); } catch (...
/** * validates the command line arguments * @param args command line arguments */
validates the command line arguments
validateArgs
{ "repo_name": "Himanshu-Singh-1/Design-Patterns-Projects", "path": "Singh_Himanshu_assign_5/genericSerDeser/src/genericSerDeser/driver/Driver.java", "license": "apache-2.0", "size": 2339 }
[ "java.io.BufferedReader", "java.io.File", "java.io.FileNotFoundException", "java.io.FileReader", "java.lang.IllegalArgumentException" ]
import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader; import java.lang.IllegalArgumentException;
import java.io.*; import java.lang.*;
[ "java.io", "java.lang" ]
java.io; java.lang;
2,898,277
private FetchPlan getFetchPlan() { JDOPersistenceManager pm = (JDOPersistenceManager)pmf.getPersistenceManager(); ExecutionContext ec = pm.getExecutionContext(); return new FetchPlan(ec, ec.getClassLoaderResolver()); }
FetchPlan function() { JDOPersistenceManager pm = (JDOPersistenceManager)pmf.getPersistenceManager(); ExecutionContext ec = pm.getExecutionContext(); return new FetchPlan(ec, ec.getClassLoaderResolver()); }
/** * Convenience accessor for a new FetchPlan. * @return The FetchPlan */
Convenience accessor for a new FetchPlan
getFetchPlan
{ "repo_name": "hopecee/texsts", "path": "jdo/general/src/test/org/datanucleus/tests/FetchPlanTest.java", "license": "apache-2.0", "size": 77039 }
[ "org.datanucleus.ExecutionContext", "org.datanucleus.FetchPlan", "org.datanucleus.api.jdo.JDOPersistenceManager" ]
import org.datanucleus.ExecutionContext; import org.datanucleus.FetchPlan; import org.datanucleus.api.jdo.JDOPersistenceManager;
import org.datanucleus.*; import org.datanucleus.api.jdo.*;
[ "org.datanucleus", "org.datanucleus.api" ]
org.datanucleus; org.datanucleus.api;
2,854,693
public ServerBuilder annotatedService(Object service) { return annotatedService("/", service, Function.identity(), ImmutableList.of()); } /** * Binds the specified annotated service object under the path prefix {@code "/"}. * * @param exceptionHandlersAndConverters instances of {@lin...
ServerBuilder function(Object service) { return annotatedService("/", service, Function.identity(), ImmutableList.of()); } /** * Binds the specified annotated service object under the path prefix {@code "/"}. * * @param exceptionHandlersAndConverters instances of {@link ExceptionHandlerFunction}, * {@link RequestConver...
/** * Binds the specified annotated service object under the path prefix {@code "/"}. */
Binds the specified annotated service object under the path prefix "/"
annotatedService
{ "repo_name": "jmostella/armeria", "path": "core/src/main/java/com/linecorp/armeria/server/ServerBuilder.java", "license": "apache-2.0", "size": 48086 }
[ "com.google.common.collect.ImmutableList", "com.linecorp.armeria.server.annotation.ExceptionHandlerFunction", "com.linecorp.armeria.server.annotation.RequestConverterFunction", "com.linecorp.armeria.server.annotation.ResponseConverterFunction", "java.util.function.Function" ]
import com.google.common.collect.ImmutableList; import com.linecorp.armeria.server.annotation.ExceptionHandlerFunction; import com.linecorp.armeria.server.annotation.RequestConverterFunction; import com.linecorp.armeria.server.annotation.ResponseConverterFunction; import java.util.function.Function;
import com.google.common.collect.*; import com.linecorp.armeria.server.annotation.*; import java.util.function.*;
[ "com.google.common", "com.linecorp.armeria", "java.util" ]
com.google.common; com.linecorp.armeria; java.util;
2,111,769
@Test public void testGetTokensPartialStringMultipleWordsBeginningEndInMiddle() throws BadLocationException { Mockument mockument = new Mockument(TEST_STRING); List<WordToken> tokens = this.toList(new DefaultTokenizer().tokenize(mockument, 11, 5)); assertThat(tokens.size(), is(2)); WordToken firs...
void function() throws BadLocationException { Mockument mockument = new Mockument(TEST_STRING); List<WordToken> tokens = this.toList(new DefaultTokenizer().tokenize(mockument, 11, 5)); assertThat(tokens.size(), is(2)); WordToken firstToken = tokens.get(0); assertThat(firstToken.getToken(), is("der")); assertThat(firstT...
/** * "er ha" * @throws BadLocationException */
"er ha"
testGetTokensPartialStringMultipleWordsBeginningEndInMiddle
{ "repo_name": "thomas-joiner/literumilo", "path": "src/test/java/com/atlascopco/literumilo/DefaultTokenizerTest.java", "license": "apache-2.0", "size": 7459 }
[ "com.atlascopco.literumilo.tokenizer.DefaultTokenizer", "com.atlascopco.literumilo.tokenizer.WordToken", "java.util.List", "javax.swing.text.BadLocationException", "org.hamcrest.CoreMatchers", "org.junit.Assert" ]
import com.atlascopco.literumilo.tokenizer.DefaultTokenizer; import com.atlascopco.literumilo.tokenizer.WordToken; import java.util.List; import javax.swing.text.BadLocationException; import org.hamcrest.CoreMatchers; import org.junit.Assert;
import com.atlascopco.literumilo.tokenizer.*; import java.util.*; import javax.swing.text.*; import org.hamcrest.*; import org.junit.*;
[ "com.atlascopco.literumilo", "java.util", "javax.swing", "org.hamcrest", "org.junit" ]
com.atlascopco.literumilo; java.util; javax.swing; org.hamcrest; org.junit;
1,381,778
public void load(ArrowRecordBatch recordBatch) { Iterator<ArrowBuf> buffers = recordBatch.getBuffers().iterator(); Iterator<ArrowFieldNode> nodes = recordBatch.getNodes().iterator(); CompressionUtil.CodecType codecType = CompressionUtil.CodecType.fromCompressionType(recordBatch.getBodyCompression(...
void function(ArrowRecordBatch recordBatch) { Iterator<ArrowBuf> buffers = recordBatch.getBuffers().iterator(); Iterator<ArrowFieldNode> nodes = recordBatch.getNodes().iterator(); CompressionUtil.CodecType codecType = CompressionUtil.CodecType.fromCompressionType(recordBatch.getBodyCompression().getCodec()); decompress...
/** * Loads the record batch in the vectors. * will not close the record batch * * @param recordBatch the batch to load */
Loads the record batch in the vectors. will not close the record batch
load
{ "repo_name": "cpcloud/arrow", "path": "java/vector/src/main/java/org/apache/arrow/vector/VectorLoader.java", "license": "apache-2.0", "size": 5376 }
[ "java.util.Iterator", "org.apache.arrow.memory.ArrowBuf", "org.apache.arrow.util.Collections2", "org.apache.arrow.vector.compression.CompressionCodec", "org.apache.arrow.vector.compression.CompressionUtil", "org.apache.arrow.vector.compression.NoCompressionCodec", "org.apache.arrow.vector.ipc.message.Ar...
import java.util.Iterator; import org.apache.arrow.memory.ArrowBuf; import org.apache.arrow.util.Collections2; import org.apache.arrow.vector.compression.CompressionCodec; import org.apache.arrow.vector.compression.CompressionUtil; import org.apache.arrow.vector.compression.NoCompressionCodec; import org.apache.arrow.v...
import java.util.*; import org.apache.arrow.memory.*; import org.apache.arrow.util.*; import org.apache.arrow.vector.compression.*; import org.apache.arrow.vector.ipc.message.*;
[ "java.util", "org.apache.arrow" ]
java.util; org.apache.arrow;
164,961
public static CommentGenerator createCommentGenerator(Context context) { CommentGeneratorConfiguration config = context .getCommentGeneratorConfiguration(); CommentGenerator answer; String type; if (config == null || config.getConfigurationType() == null) { ...
static CommentGenerator function(Context context) { CommentGeneratorConfiguration config = context .getCommentGeneratorConfiguration(); CommentGenerator answer; String type; if (config == null config.getConfigurationType() == null) { type = DefaultCommentGenerator.class.getName(); } else { type = config.getConfiguratio...
/** * Creates a new Object object. * * @param context * the context * @return the comment generator */
Creates a new Object object
createCommentGenerator
{ "repo_name": "victzero/ezjs-generator", "path": "generator/src/main/java/me/ezjs/generator/mybatis/internal/ObjectFactory.java", "license": "apache-2.0", "size": 14331 }
[ "me.ezjs.generator.mybatis.api.CommentGenerator", "me.ezjs.generator.mybatis.config.CommentGeneratorConfiguration", "me.ezjs.generator.mybatis.config.Context" ]
import me.ezjs.generator.mybatis.api.CommentGenerator; import me.ezjs.generator.mybatis.config.CommentGeneratorConfiguration; import me.ezjs.generator.mybatis.config.Context;
import me.ezjs.generator.mybatis.api.*; import me.ezjs.generator.mybatis.config.*;
[ "me.ezjs.generator" ]
me.ezjs.generator;
954,312
EClass getVariable();
EClass getVariable();
/** * Returns the meta object for class '{@link ucm.scenario.Variable <em>Variable</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Variable</em>'. * @see ucm.scenario.Variable * @generated */
Returns the meta object for class '<code>ucm.scenario.Variable Variable</code>'.
getVariable
{ "repo_name": "McGill-DP-Group/seg.jUCMNav", "path": "src/ucm/scenario/ScenarioPackage.java", "license": "epl-1.0", "size": 41212 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,864,728
@Override public void registerController() { new DatabaseSettingsController(this); }
void function() { new DatabaseSettingsController(this); }
/** * Register controller. */
Register controller
registerController
{ "repo_name": "uncertweb/SOS-database-client", "path": "src/main/java/org/uncertweb/sos_db_client/view/DatabaseSettingsView.java", "license": "gpl-3.0", "size": 9797 }
[ "org.uncertweb.sos_db_client.controller.DatabaseSettingsController" ]
import org.uncertweb.sos_db_client.controller.DatabaseSettingsController;
import org.uncertweb.sos_db_client.controller.*;
[ "org.uncertweb.sos_db_client" ]
org.uncertweb.sos_db_client;
746,846
@Override public String toString() { Formatter formatter = new Formatter(); formatter.format("%s:%s:%s", systemId, startLine, startColumn); return formatter.toString(); }
String function() { Formatter formatter = new Formatter(); formatter.format(STR, systemId, startLine, startColumn); return formatter.toString(); }
/** * Stringifies the location data. Really only useful for debugging. * * @return a mostly-useless string. */
Stringifies the location data. Really only useful for debugging
toString
{ "repo_name": "ubermichael/isetools", "path": "src/main/java/ca/nines/ise/util/LocationData.java", "license": "gpl-2.0", "size": 2981 }
[ "java.util.Formatter" ]
import java.util.Formatter;
import java.util.*;
[ "java.util" ]
java.util;
520,488
public static void connect(String dbUrl, Properties config) throws PersistenceException { synchronized (monitor) { if (!connectedToRegistry) { try { if (concreteClass == null) { switch (config.getProperty(ConfigProperties.REGISTRY_TYPE...
static void function(String dbUrl, Properties config) throws PersistenceException { synchronized (monitor) { if (!connectedToRegistry) { try { if (concreteClass == null) { switch (config.getProperty(ConfigProperties.REGISTRY_TYPE, RegistryDescriptor.TYPE_GAIAN)) { case RegistryDescriptor.TYPE_DISTRIBUTED: concreteClass...
/** * Connects to a local Fabric Registry database node using JDBC. Only one connection is established per Fabric JVM. * * @param dbUrl * @throws PersistenceException */
Connects to a local Fabric Registry database node using JDBC. Only one connection is established per Fabric JVM
connect
{ "repo_name": "acshea/edgware", "path": "fabric.lib/src/fabric/registry/persistence/PersistenceManager.java", "license": "epl-1.0", "size": 4745 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
1,683,076
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<Response<Flux<ByteBuffer>>> restartWithResponseAsync( String roleInstanceName, String resourceGroupName, String cloudServiceName) { if (this.client.getEndpoint() == null) { return Mono .error( ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Flux<ByteBuffer>>> function( String roleInstanceName, String resourceGroupName, String cloudServiceName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (roleInstanceName == null) { return Mono .error(new ...
/** * The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service. * * @param roleInstanceName Name of the role instance. * @param resourceGroupName The resourceGroupName parameter. * @param cloudServiceName The cloudServiceName parameter. * @t...
The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud service
restartWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/CloudServiceRoleInstancesClientImpl.java", "license": "mit", "size": 109969 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.FluxUtil", "java.nio.ByteBuffer" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import java.nio.ByteBuffer;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import java.nio.*;
[ "com.azure.core", "java.nio" ]
com.azure.core; java.nio;
430,126
public static String[] delimitedListToStringArray(String str, String delimiter, String charsToDelete) { if (str == null) { return EMPTY_ARRAY; } if (delimiter == null) { return new String[]{str}; } List<String> result = new ArrayList<>(); if ("...
static String[] function(String str, String delimiter, String charsToDelete) { if (str == null) { return EMPTY_ARRAY; } if (delimiter == null) { return new String[]{str}; } List<String> result = new ArrayList<>(); if ("".equals(delimiter)) { for (int i = 0; i < str.length(); i++) { result.add(deleteAny(str.substring(i,...
/** * Take a String which is a delimited list and convert it to a String array. * <p>A single delimiter can consists of more than one character: It will still * be considered as single delimiter string, rather than as bunch of potential * delimiter characters - in contrast to <code>tokenizeToStringA...
Take a String which is a delimited list and convert it to a String array. A single delimiter can consists of more than one character: It will still be considered as single delimiter string, rather than as bunch of potential delimiter characters - in contrast to <code>tokenizeToStringArray</code>
delimitedListToStringArray
{ "repo_name": "qwerty4030/elasticsearch", "path": "server/src/main/java/org/elasticsearch/common/Strings.java", "license": "apache-2.0", "size": 30929 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,130,320
private void trace(Level level, String changeType, BIN theBin, LN ln, int lnIndex, long oldLsn, long newLsn) { Logger logger = database.getDbEnvironment().getLogger(); ...
void function(Level level, String changeType, BIN theBin, LN ln, int lnIndex, long oldLsn, long newLsn) { Logger logger = database.getDbEnvironment().getLogger(); if (logger.isLoggable(level)) { StringBuffer sb = new StringBuffer(); sb.append(changeType); sb.append(STR); sb.append(theBin.getNodeId()); sb.append(STR); s...
/** * Send trace messages to the java.util.logger. Don't rely on the logger * alone to conditionalize whether we send this message, we don't even want * to construct the message if the level is not enabled. */
Send trace messages to the java.util.logger. Don't rely on the logger alone to conditionalize whether we send this message, we don't even want to construct the message if the level is not enabled
trace
{ "repo_name": "nologic/nabs", "path": "client/trunk/shared/libraries/je-3.2.44/src/com/sleepycat/je/dbi/CursorImpl.java", "license": "gpl-2.0", "size": 87861 }
[ "com.sleepycat.je.utilint.DbLsn", "java.util.logging.Level", "java.util.logging.Logger" ]
import com.sleepycat.je.utilint.DbLsn; import java.util.logging.Level; import java.util.logging.Logger;
import com.sleepycat.je.utilint.*; import java.util.logging.*;
[ "com.sleepycat.je", "java.util" ]
com.sleepycat.je; java.util;
263,912
@Override public ImmutableCollection<Path> filterInputsToCompareToOutput( Iterable<? extends SourcePath> sources) { // Currently, the only implementation of SourcePath that should be included in the Iterable // returned by getInputsToCompareToOutput() is FileSourcePath, so it is safe to filter by that...
ImmutableCollection<Path> function( Iterable<? extends SourcePath> sources) { return FluentIterable.from(sources) .filter(PathSourcePath.class) .transform(PathSourcePath::getRelativePath) .toList(); }
/** * Takes an {@link Iterable} of {@link SourcePath} objects and filters those that represent {@link * Path}s. */
Takes an <code>Iterable</code> of <code>SourcePath</code> objects and filters those that represent <code>Path</code>s
filterInputsToCompareToOutput
{ "repo_name": "facebook/buck", "path": "src/com/facebook/buck/core/sourcepath/resolver/impl/AbstractSourcePathResolver.java", "license": "apache-2.0", "size": 14258 }
[ "com.facebook.buck.core.sourcepath.PathSourcePath", "com.facebook.buck.core.sourcepath.SourcePath", "com.google.common.collect.FluentIterable", "com.google.common.collect.ImmutableCollection", "java.nio.file.Path" ]
import com.facebook.buck.core.sourcepath.PathSourcePath; import com.facebook.buck.core.sourcepath.SourcePath; import com.google.common.collect.FluentIterable; import com.google.common.collect.ImmutableCollection; import java.nio.file.Path;
import com.facebook.buck.core.sourcepath.*; import com.google.common.collect.*; import java.nio.file.*;
[ "com.facebook.buck", "com.google.common", "java.nio" ]
com.facebook.buck; com.google.common; java.nio;
191,757
public void setPageDown(Clickable down) { hookFocusListener(down);
void function(Clickable down) { hookFocusListener(down);
/** * Sets the pagedown button to the passed Clickable. The pagedown button is the figure between the down arrow button * and the ScrollBar's thumb figure. * * @param down * the page down figure * @since 2.0 */
Sets the pagedown button to the passed Clickable. The pagedown button is the figure between the down arrow button and the ScrollBar's thumb figure
setPageDown
{ "repo_name": "fqqb/yamcs-studio", "path": "bundles/org.csstudio.swt.widgets/src/org/csstudio/swt/widgets/figures/ScrollbarFigure.java", "license": "epl-1.0", "size": 24304 }
[ "org.eclipse.draw2d.Clickable" ]
import org.eclipse.draw2d.Clickable;
import org.eclipse.draw2d.*;
[ "org.eclipse.draw2d" ]
org.eclipse.draw2d;
395,491
public DateTime lastModified() { if (this.lastModified == null) { return null; } return this.lastModified.dateTime(); }
DateTime function() { if (this.lastModified == null) { return null; } return this.lastModified.dateTime(); }
/** * Get the time at which the resource was last modified. * * @return the lastModified value */
Get the time at which the resource was last modified
lastModified
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/batch/microsoft-azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/JobScheduleUpdateHeaders.java", "license": "mit", "size": 6292 }
[ "org.joda.time.DateTime" ]
import org.joda.time.DateTime;
import org.joda.time.*;
[ "org.joda.time" ]
org.joda.time;
734,805
public Rectangle2D getBounds2D() { return new Rectangle2D.Float(bounds.x, bounds.y, bounds.width, bounds.height); }
Rectangle2D function() { return new Rectangle2D.Float(bounds.x, bounds.y, bounds.width, bounds.height); }
/** * Returns the bounds of the glyph. This is the bounding box of the glyph outline. * Because of rasterization and pixel alignment effects, it does not necessarily * enclose the pixels that are affected when rendering the glyph. * @return a {@link Rectangle2D} that is the bounds of the glyph. ...
Returns the bounds of the glyph. This is the bounding box of the glyph outline. Because of rasterization and pixel alignment effects, it does not necessarily enclose the pixels that are affected when rendering the glyph
getBounds2D
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk/jdk/src/share/classes/java/awt/font/GlyphMetrics.java", "license": "mit", "size": 11785 }
[ "java.awt.geom.Rectangle2D" ]
import java.awt.geom.Rectangle2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
2,425,294
public String lookupNamespace(String prefix) { final Stack stack = (Stack) m_namespaces.get(prefix); return stack != null && !stack.isEmpty() ? ((MappingRecord) stack.peek()).m_uri : null; }
String function(String prefix) { final Stack stack = (Stack) m_namespaces.get(prefix); return stack != null && !stack.isEmpty() ? ((MappingRecord) stack.peek()).m_uri : null; }
/** * Use a namespace prefix to lookup a namespace URI. * * @param prefix String the prefix of the namespace * @return the URI corresponding to the prefix */
Use a namespace prefix to lookup a namespace URI
lookupNamespace
{ "repo_name": "TheTypoMaster/Scaper", "path": "openjdk/jaxp/drop_included/jaxp_src/src/com/sun/org/apache/xml/internal/serializer/NamespaceMappings.java", "license": "gpl-2.0", "size": 10375 }
[ "java.util.Stack" ]
import java.util.Stack;
import java.util.*;
[ "java.util" ]
java.util;
833,356
return on(ExpressionParser.parseExpression(timeField)); }
return on(ExpressionParser.parseExpression(timeField)); }
/** * Specifies the time attribute on which rows are grouped. * * <p>For streaming tables you can specify grouping by a event-time or processing-time * attribute. * * <p>For batch tables you can specify grouping on a timestamp or long attribute. * * @param timeField time attribut...
Specifies the time attribute on which rows are grouped. For streaming tables you can specify grouping by a event-time or processing-time attribute. For batch tables you can specify grouping on a timestamp or long attribute
on
{ "repo_name": "rmetzger/flink", "path": "flink-table/flink-table-api-java/src/main/java/org/apache/flink/table/api/SessionWithGap.java", "license": "apache-2.0", "size": 2682 }
[ "org.apache.flink.table.expressions.ExpressionParser" ]
import org.apache.flink.table.expressions.ExpressionParser;
import org.apache.flink.table.expressions.*;
[ "org.apache.flink" ]
org.apache.flink;
1,685,967
public static AnimatablePaintValue createURINonePaintValue (AnimationTarget target, String uri) { AnimatablePaintValue v = new AnimatablePaintValue(target); v.uri = uri; v.paintType = PAINT_URI_NONE; return v; }
static AnimatablePaintValue function (AnimationTarget target, String uri) { AnimatablePaintValue v = new AnimatablePaintValue(target); v.uri = uri; v.paintType = PAINT_URI_NONE; return v; }
/** * Creates a new AnimatablePaintValue for a URI reference with a * 'none' fallback. */
Creates a new AnimatablePaintValue for a URI reference with a 'none' fallback
createURINonePaintValue
{ "repo_name": "Squeegee/batik", "path": "sources/org/apache/batik/anim/values/AnimatablePaintValue.java", "license": "apache-2.0", "size": 8932 }
[ "org.apache.batik.dom.anim.AnimationTarget" ]
import org.apache.batik.dom.anim.AnimationTarget;
import org.apache.batik.dom.anim.*;
[ "org.apache.batik" ]
org.apache.batik;
448,083
@NotAuditable WebDavService getWebDavService();
WebDavService getWebDavService();
/** * Get the webdav service / helper bean. * @return the webdav service / helper bean * @deprecated This method has been deprecated as it would return a service that is not part of the public API. * The service itself is not deprecated, but access to it via the ServiceRegistry will be removed ...
Get the webdav service / helper bean
getWebDavService
{ "repo_name": "Alfresco/alfresco-repository", "path": "src/main/java/org/alfresco/service/ServiceRegistry.java", "license": "lgpl-3.0", "size": 28439 }
[ "org.alfresco.service.cmr.webdav.WebDavService" ]
import org.alfresco.service.cmr.webdav.WebDavService;
import org.alfresco.service.cmr.webdav.*;
[ "org.alfresco.service" ]
org.alfresco.service;
201,986
public static <V extends PrismValue> PrismValueDeltaSetTriple<V> diffPrismValueDeltaSetTriple(Collection<V> valuesOld, Collection<V> valuesNew, PrismContext prismContext) { PrismValueDeltaSetTriple<V> triple = prismContext.deltaFactory().createPrismValueDeltaSetTriple(); diff(valuesOld, valuesNew, t...
static <V extends PrismValue> PrismValueDeltaSetTriple<V> function(Collection<V> valuesOld, Collection<V> valuesNew, PrismContext prismContext) { PrismValueDeltaSetTriple<V> triple = prismContext.deltaFactory().createPrismValueDeltaSetTriple(); diff(valuesOld, valuesNew, triple); return triple; }
/** * Compares two (unordered) collections and creates a triple describing the differences. */
Compares two (unordered) collections and creates a triple describing the differences
diffPrismValueDeltaSetTriple
{ "repo_name": "bshp/midPoint", "path": "infra/prism-api/src/main/java/com/evolveum/midpoint/prism/delta/DeltaSetTripleUtil.java", "license": "apache-2.0", "size": 2502 }
[ "com.evolveum.midpoint.prism.PrismContext", "com.evolveum.midpoint.prism.PrismValue", "java.util.Collection" ]
import com.evolveum.midpoint.prism.PrismContext; import com.evolveum.midpoint.prism.PrismValue; import java.util.Collection;
import com.evolveum.midpoint.prism.*; import java.util.*;
[ "com.evolveum.midpoint", "java.util" ]
com.evolveum.midpoint; java.util;
2,198,884
private BlockInStream getBlockInStream(long blockId) throws IOException { Protocol.OpenUfsBlockOptions openUfsBlockOptions = null; boolean readFromUfs = mStatus.isPersisted(); if (readFromUfs) { long blockStart = BlockId.getSequenceNumber(blockId) * mBlockSize; openUfsBlockOptions = ...
BlockInStream function(long blockId) throws IOException { Protocol.OpenUfsBlockOptions openUfsBlockOptions = null; boolean readFromUfs = mStatus.isPersisted(); if (readFromUfs) { long blockStart = BlockId.getSequenceNumber(blockId) * mBlockSize; openUfsBlockOptions = Protocol.OpenUfsBlockOptions.newBuilder().setUfsPath...
/** * Gets the block in stream corresponding a block ID. * * @param blockId the block ID * @return the block in stream */
Gets the block in stream corresponding a block ID
getBlockInStream
{ "repo_name": "jswudi/alluxio", "path": "core/client/fs/src/main/java/alluxio/client/file/FileInStream.java", "license": "apache-2.0", "size": 32820 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,007,037
static Patch newPatch(byte aSysex[], int aOffset) { Patch oNewPatch = newPatch(); System.arraycopy(aSysex, aOffset, oNewPatch.sysex, HEADER_SIZE-1, PATCH_SIZE); return oNewPatch; } // Don't override editPatch() without implementing. // public JSLFrame editPatch(Patch p) // { // return null; // }
static Patch newPatch(byte aSysex[], int aOffset) { Patch oNewPatch = newPatch(); System.arraycopy(aSysex, aOffset, oNewPatch.sysex, HEADER_SIZE-1, PATCH_SIZE); return oNewPatch; }
/** * Create individual patch from the sysex. * * @param aOffset offset in the sysex * @return the patch */
Create individual patch from the sysex
newPatch
{ "repo_name": "jpcaruana/jsynthlib", "path": "src/main/java/org/jsynthlib/drivers/ensoniq/vfx/EnsoniqVFXSingleDriver.java", "license": "gpl-2.0", "size": 5068 }
[ "org.jsynthlib.core.Patch" ]
import org.jsynthlib.core.Patch;
import org.jsynthlib.core.*;
[ "org.jsynthlib.core" ]
org.jsynthlib.core;
2,800,134
public void offline(){ if(ONLINE){ if(this.getCharEID()>0){//FIXME Character leave properly: more work on the closing process Character me = Server.Base.Game.getCharacter(getCharEID()); if(me!=null){ if(me.getInGame()){ if(me.getMatch().getPhaseMain() == 0 || me.getMatch().getPhaseMain() == 3...
void function(){ if(ONLINE){ if(this.getCharEID()>0){ Character me = Server.Base.Game.getCharacter(getCharEID()); if(me!=null){ if(me.getInGame()){ if(me.getMatch().getPhaseMain() == 0 me.getMatch().getPhaseMain() == 3){ me.leave(); } else{ } } else{ me.getLobby().removeCharacter(me); } Server.Base.Console.fine(me.getN...
/** * Sets Client as offline and removes Character from Game */
Sets Client as offline and removes Character from Game
offline
{ "repo_name": "apocist/eMafiaServer", "path": "src/com/inverseinnovations/eMafiaServer/includes/classes/Server/SocketClient.java", "license": "gpl-3.0", "size": 6427 }
[ "com.inverseinnovations.eMafiaServer.includes.classes.GameObjects" ]
import com.inverseinnovations.eMafiaServer.includes.classes.GameObjects;
import com.inverseinnovations.*;
[ "com.inverseinnovations" ]
com.inverseinnovations;
2,570,404
private void sendMultipacketResponse(int par1, String par2Str) throws IOException { int j = par2Str.length(); do { int k = 4096 <= j ? 4096 : j; this.sendResponse(par1, 0, par2Str.substring(0, k)); par2Str = par2Str.substring(k); j = par2S...
void function(int par1, String par2Str) throws IOException { int j = par2Str.length(); do { int k = 4096 <= j ? 4096 : j; this.sendResponse(par1, 0, par2Str.substring(0, k)); par2Str = par2Str.substring(k); j = par2Str.length(); } while (0 != j); }
/** * Splits the response message into individual packets and sends each one */
Splits the response message into individual packets and sends each one
sendMultipacketResponse
{ "repo_name": "HATB0T/RuneCraftery", "path": "forge/mcp/src/minecraft/net/minecraft/network/rcon/RConThreadClient.java", "license": "lgpl-3.0", "size": 5969 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
14,269
public void closeTablePool(final String tableName) throws IOException { Collection<HTableInterface> tables = this.tables.values(tableName); if (tables != null) { for (HTableInterface table : tables) { this.tableFactory.releaseHTableInterface(table); } } this.tables.remove(tableName...
void function(final String tableName) throws IOException { Collection<HTableInterface> tables = this.tables.values(tableName); if (tables != null) { for (HTableInterface table : tables) { this.tableFactory.releaseHTableInterface(table); } } this.tables.remove(tableName); }
/** * Closes all the HTable instances , belonging to the given table, in the * table pool. * <p> * Note: this is a 'shutdown' of the given table pool and different from * {@link #putTable(HTableInterface)}, that is used to return the table * instance to the pool for future re-use. * * @param ta...
Closes all the HTable instances , belonging to the given table, in the table pool. Note: this is a 'shutdown' of the given table pool and different from <code>#putTable(HTableInterface)</code>, that is used to return the table instance to the pool for future re-use
closeTablePool
{ "repo_name": "lifeng5042/RStore", "path": "src/org/apache/hadoop/hbase/client/HTablePool.java", "license": "gpl-2.0", "size": 15509 }
[ "java.io.IOException", "java.util.Collection" ]
import java.io.IOException; import java.util.Collection;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,199,884
protectedObject invokeMethodAndReturnResult() { Object result = null; try { result = doInvokeMethodAndReturnResult(); } catch (NoSuchMethodException e) { throw new WrongReflectionOperationException(e); } catch (IllegalAccessException e) { throw new WrongReflectionOperationException(e); }...
protectedObject invokeMethodAndReturnResult() { Object result = null; try { result = doInvokeMethodAndReturnResult(); } catch (NoSuchMethodException e) { throw new WrongReflectionOperationException(e); } catch (IllegalAccessException e) { throw new WrongReflectionOperationException(e); } catch (InvocationTargetExceptio...
/** * inner api, should not be used by clients. invokes the method defined by * this object and returns the result of the method. * * @return */
inner api, should not be used by clients. invokes the method defined by this object and returns the result of the method
invokeMethodAndReturnResult
{ "repo_name": "gfouquet/refloker", "path": "src/main/java/fr/armida/refloker/MethodInvocation.java", "license": "gpl-3.0", "size": 5371 }
[ "java.lang.reflect.InvocationTargetException" ]
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,748,099
private static void processClass(RDFSNamedClass cls) { if (cls.isSystem()) return; String mCName = (String) cls.getBrowserText(); try { Set<String> testTerms = termMap.keySet(); Iterator iter = testTerms.iterator(); while(iter.hasNext()){ // TermObject term = termMap.get(iter); // RDFProperty te...
static void function(RDFSNamedClass cls) { if (cls.isSystem()) return; String mCName = (String) cls.getBrowserText(); try { Set<String> testTerms = termMap.keySet(); Iterator iter = testTerms.iterator(); while(iter.hasNext()){ TermObject term = termMap.get(iter.next()); RDFProperty testProp = (RDFProperty)_sourceKB.get...
/** * Process a single class: * - change the value for FULL_SYN * - remove duplicate values from FULL_SYN and remove those values that are identical to the class name * - change the value for Definition * * @param cls */
Process a single class: - change the value for FULL_SYN - remove duplicate values from FULL_SYN and remove those values that are identical to the class name - change the value for Definition
processClass
{ "repo_name": "rwynne/ops-data-conversion", "path": "NCBO_NCItProcessor/src/NCITProcessor.java", "license": "bsd-3-clause", "size": 12268 }
[ "edu.stanford.smi.protegex.owl.model.RDFProperty", "edu.stanford.smi.protegex.owl.model.RDFSNamedClass", "java.util.Iterator", "java.util.Set" ]
import edu.stanford.smi.protegex.owl.model.RDFProperty; import edu.stanford.smi.protegex.owl.model.RDFSNamedClass; import java.util.Iterator; import java.util.Set;
import edu.stanford.smi.protegex.owl.model.*; import java.util.*;
[ "edu.stanford.smi", "java.util" ]
edu.stanford.smi; java.util;
747,776
protected String getJsonProperty(JsonNode jsonNode, String name) { if (jsonNode.has(name) && !jsonNode.get(name).isNull()) { String s = jsonNode.get(name).asText(); if(s != null && !s.isEmpty()) return s; else return null; } return n...
String function(JsonNode jsonNode, String name) { if (jsonNode.has(name) && !jsonNode.get(name).isNull()) { String s = jsonNode.get(name).asText(); if(s != null && !s.isEmpty()) return s; else return null; } return null; }
/** * Get JSON property as text. JSON numbers and booleans are converted to text. Empty string is converted to null. * * @param jsonNode to get property from * @param name of property to get * @return string value of the property or null. */
Get JSON property as text. JSON numbers and booleans are converted to text. Empty string is converted to null
getJsonProperty
{ "repo_name": "anaerobic/keycloak", "path": "broker/oidc/src/main/java/org/keycloak/broker/oidc/AbstractOAuth2IdentityProvider.java", "license": "apache-2.0", "size": 10061 }
[ "org.codehaus.jackson.JsonNode" ]
import org.codehaus.jackson.JsonNode;
import org.codehaus.jackson.*;
[ "org.codehaus.jackson" ]
org.codehaus.jackson;
61,454
@RequestMapping(method = RequestMethod.POST) public String editPad(@Valid final Pad pad, final BindingResult bindingResult) { if (bindingResult.hasErrors()) { return "pad/edit"; } service.savePad(pad); return String.format("redirect:%s", buildEditedPadUri(pad.getId(...
@RequestMapping(method = RequestMethod.POST) String function(@Valid final Pad pad, final BindingResult bindingResult) { if (bindingResult.hasErrors()) { return STR; } service.savePad(pad); return String.format(STR, buildEditedPadUri(pad.getId())); }
/** * Shows the form for creating a pad. * * @param pad * the Pad * @param bindingResult * The validation result. * @return The view */
Shows the form for creating a pad
editPad
{ "repo_name": "Andrey9kin/notejam-spring", "path": "src/main/java/net/notejam/spring/pad/controller/EditPadController.java", "license": "mit", "size": 2677 }
[ "javax.validation.Valid", "net.notejam.spring.pad.Pad", "org.springframework.validation.BindingResult", "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.bind.annotation.RequestMethod" ]
import javax.validation.Valid; import net.notejam.spring.pad.Pad; import org.springframework.validation.BindingResult; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod;
import javax.validation.*; import net.notejam.spring.pad.*; import org.springframework.validation.*; import org.springframework.web.bind.annotation.*;
[ "javax.validation", "net.notejam.spring", "org.springframework.validation", "org.springframework.web" ]
javax.validation; net.notejam.spring; org.springframework.validation; org.springframework.web;
101,009
@Response(text = SUCCESS, field = RETURN_CODE, value = RETURN_CODE_SUCCESS, matchType = MatchType.COMPARE_EQUAL), @Response(text = FAILURE, field = RETURN_CODE, value = RETURN_CODE_FAILURE, matchType = MatchType.COMPARE_EQUAL, isOnFail = true, isDefault = true) }) public Map<String, ...
@Response(text = SUCCESS, field = RETURN_CODE, value = RETURN_CODE_SUCCESS, matchType = MatchType.COMPARE_EQUAL), @Response(text = FAILURE, field = RETURN_CODE, value = RETURN_CODE_FAILURE, matchType = MatchType.COMPARE_EQUAL, isOnFail = true, isDefault = true) }) Map<String, String> function(@Param(value = SUBLIST, re...
/** * This method checks to see if a list contains every element in another list. * * @param sublist The contained list. * @param container The containing list. * @param delimiter A delimiter separating elements in the two lists. Default is a comma. * @param ignoreCase If set ...
This method checks to see if a list contains every element in another list
containsElement
{ "repo_name": "CloudSlang/cs-actions", "path": "cs-lists/src/main/java/io/cloudslang/content/actions/ListContainsAction.java", "license": "apache-2.0", "size": 5191 }
[ "com.hp.oo.sdk.content.annotations.Param", "com.hp.oo.sdk.content.annotations.Response", "com.hp.oo.sdk.content.plugin.ActionMetadata", "io.cloudslang.content.utils.Constants", "io.cloudslang.content.utils.InputsUtils", "io.cloudslang.content.utils.ListProcessor", "java.util.HashMap", "java.util.Map",...
import com.hp.oo.sdk.content.annotations.Param; import com.hp.oo.sdk.content.annotations.Response; import com.hp.oo.sdk.content.plugin.ActionMetadata; import io.cloudslang.content.utils.Constants; import io.cloudslang.content.utils.InputsUtils; import io.cloudslang.content.utils.ListProcessor; import java.util.HashMap;...
import com.hp.oo.sdk.content.annotations.*; import com.hp.oo.sdk.content.plugin.*; import io.cloudslang.content.utils.*; import java.util.*; import org.apache.commons.lang3.*;
[ "com.hp.oo", "io.cloudslang.content", "java.util", "org.apache.commons" ]
com.hp.oo; io.cloudslang.content; java.util; org.apache.commons;
156,029
@Nonnull public TimeOffRequestRequest buildRequest(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) { return new com.microsoft.graph.requests.TimeOffRequestRequest(getRequestUrl(), getClient(), requestOptions); }
TimeOffRequestRequest function(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) { return new com.microsoft.graph.requests.TimeOffRequestRequest(getRequestUrl(), getClient(), requestOptions); }
/** * Creates the request with specific requestOptions instead of the existing requestOptions * * @param requestOptions the options for this request * @return the TimeOffRequestRequest instance */
Creates the request with specific requestOptions instead of the existing requestOptions
buildRequest
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/TimeOffRequestRequestBuilder.java", "license": "mit", "size": 3443 }
[ "javax.annotation.Nonnull" ]
import javax.annotation.Nonnull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
580,242
protected static JButton buildButton(final String actionCommand, final String toolTip, final String pathIconDefault, final String pathIconDisabled, final String p...
static JButton function(final String actionCommand, final String toolTip, final String pathIconDefault, final String pathIconDisabled, final String pathIconRollover, final ActionListener listener) { ImageIcon IconDefault = createImageIcon(pathIconDefault); ImageIcon IconDisabled = createImageIcon(pathIconDisabled); Ima...
/** * Build a Button. * @param actionCommand * @param toolTip * @param pathIconDefault * @param pathIconDisabled * @param pathIconRollover * @param listener * @return the Button that was built. */
Build a Button
buildButton
{ "repo_name": "roboidstudio/embedded", "path": "org.roboid.audio/src/org/xiph/speex/player/Player.java", "license": "lgpl-2.1", "size": 20266 }
[ "java.awt.Color", "java.awt.Dimension", "java.awt.event.ActionListener", "javax.swing.ImageIcon", "javax.swing.JButton" ]
import java.awt.Color; import java.awt.Dimension; import java.awt.event.ActionListener; import javax.swing.ImageIcon; import javax.swing.JButton;
import java.awt.*; import java.awt.event.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
16,521
System.out.println("Combo"); // step 1: creation of a document-object Document document = new Document(PageSize.A4); try { // step 2: PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("combo.pdf")); ...
System.out.println("Combo"); Document document = new Document(PageSize.A4); try { PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(STR)); document.open(); PdfContentByte cb = writer.getDirectContent(); cb.moveTo(0, 0); String options[] = {"Red", "Green", "Blue"}; PdfFormField field = PdfFormField...
/** * Generates an Acroform with a Combobox * @param args no arguments needed here */
Generates an Acroform with a Combobox
main
{ "repo_name": "yogthos/itext", "path": "www/examples/com/lowagie/examples/forms/FormCombo.java", "license": "lgpl-3.0", "size": 2297 }
[ "com.lowagie.text.Document", "com.lowagie.text.DocumentException", "com.lowagie.text.PageSize", "com.lowagie.text.Rectangle", "com.lowagie.text.pdf.PdfAnnotation", "com.lowagie.text.pdf.PdfContentByte", "com.lowagie.text.pdf.PdfFormField", "com.lowagie.text.pdf.PdfWriter", "java.io.FileOutputStream"...
import com.lowagie.text.Document; import com.lowagie.text.DocumentException; import com.lowagie.text.PageSize; import com.lowagie.text.Rectangle; import com.lowagie.text.pdf.PdfAnnotation; import com.lowagie.text.pdf.PdfContentByte; import com.lowagie.text.pdf.PdfFormField; import com.lowagie.text.pdf.PdfWriter; import...
import com.lowagie.text.*; import com.lowagie.text.pdf.*; import java.io.*;
[ "com.lowagie.text", "java.io" ]
com.lowagie.text; java.io;
73,072
public int scheduleSyncDelayedTask(Plugin plugin, Runnable task); /** * @deprecated Use {@link BukkitRunnable#runTask(Plugin)}
int function(Plugin plugin, Runnable task); /** * @deprecated Use {@link BukkitRunnable#runTask(Plugin)}
/** * Schedules a once off task to occur as soon as possible. * <p> * This task will be executed by the main server thread. * * @param plugin Plugin that owns the task * @param task Task to be executed * @return Task id number (-1 if scheduling failed) */
Schedules a once off task to occur as soon as possible. This task will be executed by the main server thread
scheduleSyncDelayedTask
{ "repo_name": "Techcable/Bukkit", "path": "src/main/java/org/bukkit/scheduler/BukkitScheduler.java", "license": "gpl-3.0", "size": 12155 }
[ "org.bukkit.plugin.Plugin" ]
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.*;
[ "org.bukkit.plugin" ]
org.bukkit.plugin;
2,326,909
public Builder applyToAllUnaryMethods( ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; }
Builder function( ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; }
/** * Applies the given settings updater function to all of the unary API methods in this service. * * <p>Note: This method does not support applying settings to streaming methods. */
Applies the given settings updater function to all of the unary API methods in this service. Note: This method does not support applying settings to streaming methods
applyToAllUnaryMethods
{ "repo_name": "googleapis/java-compute", "path": "google-cloud-compute/src/main/java/com/google/cloud/compute/v1/AutoscalersSettings.java", "license": "apache-2.0", "size": 12198 }
[ "com.google.api.core.ApiFunction", "com.google.api.gax.rpc.UnaryCallSettings" ]
import com.google.api.core.ApiFunction; import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.core.*; import com.google.api.gax.rpc.*;
[ "com.google.api" ]
com.google.api;
419,639
@Override public synchronized void doBuild() throws TorqueException { if ( isBuilt() ) { return; } dbMap = Torque.getDatabaseMap("track"); dbMap.addTable("CLUSTERNODE"); TableMap tMap = dbMap.getTable("CLUSTERNODE"); tMap.setJavaName("TClusterNode...
synchronized void function() throws TorqueException { if ( isBuilt() ) { return; } dbMap = Torque.getDatabaseMap("track"); dbMap.addTable(STR); TableMap tMap = dbMap.getTable(STR); tMap.setJavaName(STR); tMap.setOMClass( com.aurel.track.persist.TClusterNode.class ); tMap.setPeerClass( com.aurel.track.persist.TClusterNo...
/** * The doBuild() method builds the DatabaseMap * * @throws TorqueException */
The doBuild() method builds the DatabaseMap
doBuild
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/persist/map/TClusterNodeMapBuilder.java", "license": "gpl-3.0", "size": 7055 }
[ "org.apache.torque.Torque", "org.apache.torque.TorqueException", "org.apache.torque.map.ColumnMap", "org.apache.torque.map.TableMap" ]
import org.apache.torque.Torque; import org.apache.torque.TorqueException; import org.apache.torque.map.ColumnMap; import org.apache.torque.map.TableMap;
import org.apache.torque.*; import org.apache.torque.map.*;
[ "org.apache.torque" ]
org.apache.torque;
2,025,943
List<Integer> list = new ArrayList<>(); Arrays.stream(array).map(Arrays::stream).forEach(x -> x.forEach(list::add)); return list; }
List<Integer> list = new ArrayList<>(); Arrays.stream(array).map(Arrays::stream).forEach(x -> x.forEach(list::add)); return list; }
/** * The method converts a two-dimensional array to a list. * @param array - source array. * @return - list result. */
The method converts a two-dimensional array to a list
toList
{ "repo_name": "AlSidorenko/Junior", "path": "chapter_004/src/main/java/ru/job4j/streamapi/task001/list/ConvertMatrix2List.java", "license": "apache-2.0", "size": 638 }
[ "java.util.ArrayList", "java.util.Arrays", "java.util.List" ]
import java.util.ArrayList; import java.util.Arrays; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,540,918
public static void setConfiguration(final Map<String, Object> iConfig) { for (Entry<String, Object> config : iConfig.entrySet()) { for (OGlobalConfiguration v : values()) { if (v.getKey().equals(config.getKey())) { v.setValue(config.getValue()); break; } else if (v....
static void function(final Map<String, Object> iConfig) { for (Entry<String, Object> config : iConfig.entrySet()) { for (OGlobalConfiguration v : values()) { if (v.getKey().equals(config.getKey())) { v.setValue(config.getValue()); break; } else if (v.name().equals(config.getKey())) { v.setValue(config.getValue()); brea...
/** * Changes the configuration values in one shot by passing a Map of values. Keys can be the Java ENUM names or the string * representation of configuration values */
Changes the configuration values in one shot by passing a Map of values. Keys can be the Java ENUM names or the string representation of configuration values
setConfiguration
{ "repo_name": "nengxu/OrientDB", "path": "core/src/main/java/com/orientechnologies/orient/core/config/OGlobalConfiguration.java", "license": "apache-2.0", "size": 23888 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
102,900
public List<String> listNamespaces() throws IOException { checkInitialized(); List<String> namespaces = new ArrayList<>(); if (cpHost != null) { cpHost.preListNamespaces(namespaces); } for (NamespaceDescriptor namespace : clusterSchemaService.getNamespaces()) { namespaces.add(namespace...
List<String> function() throws IOException { checkInitialized(); List<String> namespaces = new ArrayList<>(); if (cpHost != null) { cpHost.preListNamespaces(namespaces); } for (NamespaceDescriptor namespace : clusterSchemaService.getNamespaces()) { namespaces.add(namespace.getName()); } if (cpHost != null) { cpHost.pos...
/** * List namespace names * @return All namespace names */
List namespace names
listNamespaces
{ "repo_name": "ultratendency/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java", "license": "apache-2.0", "size": 161689 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "org.apache.hadoop.hbase.NamespaceDescriptor" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.hadoop.hbase.NamespaceDescriptor;
import java.io.*; import java.util.*; import org.apache.hadoop.hbase.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
1,673,161
public ServerAction putParam(String name, Object value) { if (actionParams.get(0) == null) { actionParams.add(0, Maps.newHashMap(new HashMap<String, Object>())); } actionParams.get(0).put(name, value); return this; }
ServerAction function(String name, Object value) { if (actionParams.get(0) == null) { actionParams.add(0, Maps.newHashMap(new HashMap<String, Object>())); } actionParams.get(0).put(name, value); return this; }
/** * Will insert the given key-value pair as a parameter in the first entry of the action parameters list. * Corresponds with the first entry in the qualified names list. * * @param name Description of parameter * @param value Object of action parameter * @return R...
Will insert the given key-value pair as a parameter in the first entry of the action parameters list. Corresponds with the first entry in the qualified names list
putParam
{ "repo_name": "madmax983/aura", "path": "aura-integration-test/src/test/java/org/auraframework/integration/test/util/AuraHttpTestCase.java", "license": "apache-2.0", "size": 31163 }
[ "com.google.common.collect.Maps", "java.util.HashMap" ]
import com.google.common.collect.Maps; import java.util.HashMap;
import com.google.common.collect.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
429,040
// ---------------------------------------------------------- private static float sqdist(PointF a, PointF b) { float dx = b.x - a.x; float dy = b.y - a.y; return dx * dx + dy * dy; }
static float function(PointF a, PointF b) { float dx = b.x - a.x; float dy = b.y - a.y; return dx * dx + dy * dy; }
/** * Gets the squared distance between two points. * * @param a the first point * @param b the second point * @return the squared distance between the two points */
Gets the squared distance between two points
sqdist
{ "repo_name": "web-cat/sofia-graphics", "path": "src/sofia/graphics/internal/BayazitDecomposer.java", "license": "apache-2.0", "size": 13649 }
[ "android.graphics.PointF" ]
import android.graphics.PointF;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
1,883,247
public static List<Method> findMethodsWithAnnotation(Class<?> type, Class<? extends Annotation> annotationType) { return findMethodsWithAnnotation(type, annotationType, false); }
static List<Method> function(Class<?> type, Class<? extends Annotation> annotationType) { return findMethodsWithAnnotation(type, annotationType, false); }
/** * Returns a list of methods which are annotated with the given annotation * * @param type the type to reflect on * @param annotationType the annotation type * @return a list of the methods found */
Returns a list of methods which are annotated with the given annotation
findMethodsWithAnnotation
{ "repo_name": "kingargyle/turmeric-bot", "path": "camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java", "license": "apache-2.0", "size": 46980 }
[ "java.lang.annotation.Annotation", "java.lang.reflect.Method", "java.util.List" ]
import java.lang.annotation.Annotation; import java.lang.reflect.Method; import java.util.List;
import java.lang.annotation.*; import java.lang.reflect.*; import java.util.*;
[ "java.lang", "java.util" ]
java.lang; java.util;
1,634,325
public void testGetEnd() { Locale saved = Locale.getDefault(); Locale.setDefault(Locale.ITALY); Calendar cal = Calendar.getInstance(Locale.ITALY); cal.set(1900, Calendar.JANUARY, 1, 23, 59, 59); cal.set(Calendar.MILLISECOND, 999); Day d = new Day(1, 1, 1900); ...
void function() { Locale saved = Locale.getDefault(); Locale.setDefault(Locale.ITALY); Calendar cal = Calendar.getInstance(Locale.ITALY); cal.set(1900, Calendar.JANUARY, 1, 23, 59, 59); cal.set(Calendar.MILLISECOND, 999); Day d = new Day(1, 1, 1900); assertEquals(cal.getTime(), d.getEnd()); Locale.setDefault(saved); }
/** * Some checks for the getEnd() method. */
Some checks for the getEnd() method
testGetEnd
{ "repo_name": "apetresc/JFreeChart", "path": "src/test/java/org/jfree/data/time/junit/DayTests.java", "license": "lgpl-2.1", "size": 13254 }
[ "java.util.Calendar", "java.util.Locale", "org.jfree.data.time.Day" ]
import java.util.Calendar; import java.util.Locale; import org.jfree.data.time.Day;
import java.util.*; import org.jfree.data.time.*;
[ "java.util", "org.jfree.data" ]
java.util; org.jfree.data;
353,377
public static DateTime toDateTime(String dateTime, String timeZoneId) { return dateTimesHelper.toDateTime(dateTime, timeZoneId); }
static DateTime function(String dateTime, String timeZoneId) { return dateTimesHelper.toDateTime(dateTime, timeZoneId); }
/** * Converts a string in the form of {@code yyyy-MM-dd'T'HH:mm:ss} to an API date time in the time * zone supplied. */
zone supplied
toDateTime
{ "repo_name": "googleads/googleads-java-lib", "path": "modules/dfp_appengine/src/main/java/com/google/api/ads/admanager/jaxws/utils/v202108/DateTimes.java", "license": "apache-2.0", "size": 5862 }
[ "com.google.api.ads.admanager.jaxws.v202108.DateTime" ]
import com.google.api.ads.admanager.jaxws.v202108.DateTime;
import com.google.api.ads.admanager.jaxws.v202108.*;
[ "com.google.api" ]
com.google.api;
2,462,437
List<ComponentConfiguration> candidateComponents = new ArrayList<ComponentConfiguration>(); List<File> currentArchives; try { currentArchives = determineArchivesInSystemCodebase(); } catch (CodebaseUnscanableException e) { logger.warn("Could not scan codebase at " + codebase, e); return candidateCompon...
List<ComponentConfiguration> candidateComponents = new ArrayList<ComponentConfiguration>(); List<File> currentArchives; try { currentArchives = determineArchivesInSystemCodebase(); } catch (CodebaseUnscanableException e) { logger.warn(STR + codebase, e); return candidateComponents; } deblacklistRemovedArchives(currentA...
/** * Checks if any new archives have been dropped into the * systemcodebase. If this is the case, this method extracts * the configurations either from annotations or configuration files * and returns them to the caller. * * @return a <code>List</code> of <code>ComponentConfigurations</code> */
Checks if any new archives have been dropped into the systemcodebase. If this is the case, this method extracts the configurations either from annotations or configuration files and returns them to the caller
update
{ "repo_name": "herculeshssj/unirio-ppgi-goalservice", "path": "GoalService/core/src/main/ie/deri/wsmx/core/codebase/Codebase.java", "license": "lgpl-2.1", "size": 11900 }
[ "ie.deri.wsmx.core.configuration.ComponentConfiguration", "java.io.File", "java.util.ArrayList", "java.util.List" ]
import ie.deri.wsmx.core.configuration.ComponentConfiguration; import java.io.File; import java.util.ArrayList; import java.util.List;
import ie.deri.wsmx.core.configuration.*; import java.io.*; import java.util.*;
[ "ie.deri.wsmx", "java.io", "java.util" ]
ie.deri.wsmx; java.io; java.util;
2,648,219
@ApiModelProperty(example = "null", value = "") public String getTimezoneName() { return timezoneName; }
@ApiModelProperty(example = "null", value = "") String function() { return timezoneName; }
/** * Get timezoneName * @return timezoneName **/
Get timezoneName
getTimezoneName
{ "repo_name": "PitneyBowes/LocationIntelligenceSDK-Java", "path": "src/main/java/pb/locationintelligence/model/TimezoneLocation.java", "license": "apache-2.0", "size": 5618 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
586,011
public AgentProperties agentConfiguration() { return this.agentConfiguration; }
AgentProperties function() { return this.agentConfiguration; }
/** * Get the machine configuration of the run agent. * * @return the agentConfiguration value */
Get the machine configuration of the run agent
agentConfiguration
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/containerregistry/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/containerregistry/v2019_04_01/implementation/RunInner.java", "license": "mit", "size": 15216 }
[ "com.microsoft.azure.management.containerregistry.v2019_04_01.AgentProperties" ]
import com.microsoft.azure.management.containerregistry.v2019_04_01.AgentProperties;
import com.microsoft.azure.management.containerregistry.v2019_04_01.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
1,354,148
public Observable<ServiceResponse<Void>> beginStartWithServiceResponseAsync(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (applica...
Observable<ServiceResponse<Void>> function(String resourceGroupName, String applicationGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (applicationGatewayName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionId() == null) { throw new Illegal...
/** * Starts the specified application gateway. * * @param resourceGroupName The name of the resource group. * @param applicationGatewayName The name of the application gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceResponse...
Starts the specified application gateway
beginStartWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/ApplicationGatewaysInner.java", "license": "mit", "size": 174118 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,067,575
public void addNestedComponentArray(Component[][] component, JPanel panel) { for(Component[] comp : component) { for(Component c : comp) panel.add(c); } }
void function(Component[][] component, JPanel panel) { for(Component[] comp : component) { for(Component c : comp) panel.add(c); } }
/** * Adding the components (JLabel, JButton etc.) to the GUI * @param component - The array to add (double array) * @param panel - The panel to add to */
Adding the components (JLabel, JButton etc.) to the GUI
addNestedComponentArray
{ "repo_name": "bl4ckscor3/bl4ckb0tGUI", "path": "src/bl4ckscor3/bot/bl4ckb0tGUI/util/Utilities.java", "license": "gpl-3.0", "size": 6352 }
[ "java.awt.Component", "javax.swing.JPanel" ]
import java.awt.Component; import javax.swing.JPanel;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
1,273,572
public static String getString(String key) { try { return bundle.getString(key); } catch (MissingResourceException e) { return key; } }
static String function(String key) { try { return bundle.getString(key); } catch (MissingResourceException e) { return key; } }
/** * Returns the resource object with the given key in JFace's resource * bundle. If there isn't any value under the given key, the key is * returned. * * @param key * the resource name * @return the string */
Returns the resource object with the given key in JFace's resource bundle. If there isn't any value under the given key, the key is returned
getString
{ "repo_name": "css-iter/org.csstudio.iter", "path": "plugins/org.eclipse.jface/src/org/eclipse/jface/resource/JFaceResources.java", "license": "epl-1.0", "size": 16652 }
[ "java.util.MissingResourceException" ]
import java.util.MissingResourceException;
import java.util.*;
[ "java.util" ]
java.util;
2,141,639
public void blurPixelsWithAlpha(int[] img, int[] offSreenBuffer, Dimension dim) { //blur image in horizontal direction then vertical direction horizontalBlurTransp(img, offSreenBuffer, dim); verticalBlurTransp(offSreenBuffer, img, dim); //repeat for another time for bet...
void function(int[] img, int[] offSreenBuffer, Dimension dim) { horizontalBlurTransp(img, offSreenBuffer, dim); verticalBlurTransp(offSreenBuffer, img, dim); horizontalBlurTransp(img, offSreenBuffer, dim); verticalBlurTransp(offSreenBuffer, img, dim); }
/** * Perform the box blur. * * @param img Image raster. * @param offsSreenBuffer Buffer for off-screen processing. * @param dim Dimension object. */
Perform the box blur
blurPixelsWithAlpha
{ "repo_name": "datapoet/hubminer", "path": "src/main/java/draw/basic/BoxBlur.java", "license": "gpl-3.0", "size": 15056 }
[ "java.awt.Dimension" ]
import java.awt.Dimension;
import java.awt.*;
[ "java.awt" ]
java.awt;
72,048
private int readLittleEndianBase128Number(ByteBuffer bb) { int i = 0; this.tempbytesread = 0; byte b = bb.get(); tempbytesread++; // get the lower 7 bits of b into i i = b & 0x7F; while ((b & 0x80) > 0) { // while the top bit of b is set (the "mor...
int function(ByteBuffer bb) { int i = 0; this.tempbytesread = 0; byte b = bb.get(); tempbytesread++; i = b & 0x7F; while ((b & 0x80) > 0) { b = bb.get(); tempbytesread++; i = ((b & 0x7F) << (7 * (tempbytesread - 1))) i; } return i; }
/** * gets a Little Endian Base 128 number from the Byte Buffer. This is a form of variable length * encoded int value. * * @param bb the ByteBuffer containing the data * @return an integer value */
gets a Little Endian Base 128 number from the Byte Buffer. This is a form of variable length encoded int value
readLittleEndianBase128Number
{ "repo_name": "veggiespam/zap-extensions", "path": "addOns/ascanrulesBeta/src/main/java/org/zaproxy/zap/extension/ascanrulesBeta/GitMetadata.java", "license": "apache-2.0", "size": 68908 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
1,250,798
@Test public void testHasChildEmptyWithNull() { final boolean expected = false; final boolean actual = root.hasChild(null); Assert.assertEquals(expected, actual); }
void function() { final boolean expected = false; final boolean actual = root.hasChild(null); Assert.assertEquals(expected, actual); }
/** * Tests {@link TreeNode#hasChild(Object)} on an empty TreeNode with null. */
Tests <code>TreeNode#hasChild(Object)</code> on an empty TreeNode with null
testHasChildEmptyWithNull
{ "repo_name": "cosmocode/cosmocode-commons", "path": "src/test/java/de/cosmocode/collections/tree/TreeNodeTest.java", "license": "apache-2.0", "size": 39298 }
[ "junit.framework.Assert" ]
import junit.framework.Assert;
import junit.framework.*;
[ "junit.framework" ]
junit.framework;
787,213
private boolean isAfterOrEqualTo(Date actual, Date other) { return comparisonStrategy.isGreaterThanOrEqualTo(actual, other); }
boolean function(Date actual, Date other) { return comparisonStrategy.isGreaterThanOrEqualTo(actual, other); }
/** * Returns <code>true</code> if the actual {@code Date} is after or equal to the given one according to underlying * {@link #comparisonStrategy}, false otherwise. * @param actual the actual date - must not be null. * @param other the given Date. * @return <code>true</code> if the actual {@code Date} i...
Returns <code>true</code> if the actual Date is after or equal to the given one according to underlying <code>#comparisonStrategy</code>, false otherwise
isAfterOrEqualTo
{ "repo_name": "AlexBischof/assertj-core", "path": "src/main/java/org/assertj/core/internal/Dates.java", "license": "apache-2.0", "size": 39187 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,609,624
@Override protected void render( Graphics2D gc, int centerX, int centerY, int width, int height, double angleRadians ) { render( gc, svgGraphicsNode, svgGraphicsSize, centerX, centerY, width, height, angleRadians ); }
void function( Graphics2D gc, int centerX, int centerY, int width, int height, double angleRadians ) { render( gc, svgGraphicsNode, svgGraphicsSize, centerX, centerY, width, height, angleRadians ); }
/** * Draw SVG image to Graphics2D. */
Draw SVG image to Graphics2D
render
{ "repo_name": "tkafalas/pentaho-kettle", "path": "core/src/main/java/org/pentaho/di/core/SwingUniversalImageSvg.java", "license": "apache-2.0", "size": 3341 }
[ "java.awt.Graphics2D" ]
import java.awt.Graphics2D;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,427,293
private static MemoryManager createMemoryManager( TaskManagerServicesConfiguration taskManagerServicesConfiguration) throws Exception { // computing the amount of memory to use depends on how much memory is available // it strictly needs to happen AFTER the network stack has been initialized // check if a ...
static MemoryManager function( TaskManagerServicesConfiguration taskManagerServicesConfiguration) throws Exception { long configuredMemory = taskManagerServicesConfiguration.getConfiguredMemory(); MemoryType memType = taskManagerServicesConfiguration.getMemoryType(); final long memorySize; boolean preAllocateMemory = t...
/** * Creates a {@link MemoryManager} from the given {@link TaskManagerServicesConfiguration}. * * @param taskManagerServicesConfiguration to create the memory manager from * @return Memory manager * @throws Exception */
Creates a <code>MemoryManager</code> from the given <code>TaskManagerServicesConfiguration</code>
createMemoryManager
{ "repo_name": "mbode/flink", "path": "flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskManagerServices.java", "license": "apache-2.0", "size": 21456 }
[ "org.apache.flink.core.memory.MemoryType", "org.apache.flink.runtime.memory.MemoryManager" ]
import org.apache.flink.core.memory.MemoryType; import org.apache.flink.runtime.memory.MemoryManager;
import org.apache.flink.core.memory.*; import org.apache.flink.runtime.memory.*;
[ "org.apache.flink" ]
org.apache.flink;
2,059,806
public synchronized void stop() { if (m_worker == null) throw new IllegalStateException("The fiber has never been started"); m_status = STOP_PENDING; m_worker.interrupt(); m_runner.stop(); LogUtils.debugf(this, "stop: scheduler stopped"); }
synchronized void function() { if (m_worker == null) throw new IllegalStateException(STR); m_status = STOP_PENDING; m_worker.interrupt(); m_runner.stop(); LogUtils.debugf(this, STR); }
/** * Stops the fiber. If the fiber has never been run then an exception is * generated. * * @throws java.lang.IllegalStateException * Throws if the fiber has never been started. */
Stops the fiber. If the fiber has never been run then an exception is generated
stop
{ "repo_name": "vishwaAbhinav/OpenNMS", "path": "opennms-services/src/main/java/org/opennms/netmgt/linkd/scheduler/Scheduler.java", "license": "gpl-2.0", "size": 21386 }
[ "org.opennms.core.utils.LogUtils" ]
import org.opennms.core.utils.LogUtils;
import org.opennms.core.utils.*;
[ "org.opennms.core" ]
org.opennms.core;
1,350,875
void addBlock(BlockInfo newblock) { if (this.blocks == null) { this.setBlocks(new BlockInfo[]{newblock}); } else { int size = this.blocks.length; BlockInfo[] newlist = new BlockInfo[size + 1]; System.arraycopy(this.blocks, 0, newlist, 0, size); newlist[size] = newblock; thi...
void addBlock(BlockInfo newblock) { if (this.blocks == null) { this.setBlocks(new BlockInfo[]{newblock}); } else { int size = this.blocks.length; BlockInfo[] newlist = new BlockInfo[size + 1]; System.arraycopy(this.blocks, 0, newlist, 0, size); newlist[size] = newblock; this.setBlocks(newlist); } }
/** * add a block to the block list */
add a block to the block list
addBlock
{ "repo_name": "intel-hadoop/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeFile.java", "license": "apache-2.0", "size": 30343 }
[ "org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo" ]
import org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo;
import org.apache.hadoop.hdfs.server.blockmanagement.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,861,527
protected void removeOldest(ConcurrentHashMap<String,QueryStats> queries) { ArrayList<QueryStats> list = new ArrayList<QueryStats>(queries.values()); Collections.sort(list, queryStatsComparator); int removeIndex = 0; while (queries.size() > maxQueries) { String sql = list...
void function(ConcurrentHashMap<String,QueryStats> queries) { ArrayList<QueryStats> list = new ArrayList<QueryStats>(queries.values()); Collections.sort(list, queryStatsComparator); int removeIndex = 0; while (queries.size() > maxQueries) { String sql = list.get(removeIndex).getQuery(); queries.remove(sql); if (log.isD...
/** * Sort QueryStats by last invocation time * @param queries */
Sort QueryStats by last invocation time
removeOldest
{ "repo_name": "wenzhucjy/tomcat_source", "path": "tomcat-7.0.63-sourcecode/modules/jdbc-pool/src/main/java/org/apache/tomcat/jdbc/pool/interceptor/SlowQueryReport.java", "license": "apache-2.0", "size": 15723 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.concurrent.ConcurrentHashMap" ]
import java.util.ArrayList; import java.util.Collections; import java.util.concurrent.ConcurrentHashMap;
import java.util.*; import java.util.concurrent.*;
[ "java.util" ]
java.util;
85,858
public void updateProgress(int progress) { if (getView() != null) { ProgressBar listProgress = (ProgressBar) getView().findViewById( R.id.severity_list_progress); listProgress.setProgress(progress); } }
void function(int progress) { if (getView() != null) { ProgressBar listProgress = (ProgressBar) getView().findViewById( R.id.severity_list_progress); listProgress.setProgress(progress); } }
/** * Updates the progress of the progress bar. * * @param progress * current progress */
Updates the progress of the progress bar
updateProgress
{ "repo_name": "inovex/zax", "path": "src/main/java/com/inovex/zabbixmobile/activities/fragments/BaseSeverityFilterListFragment.java", "license": "gpl-3.0", "size": 6954 }
[ "android.widget.ProgressBar" ]
import android.widget.ProgressBar;
import android.widget.*;
[ "android.widget" ]
android.widget;
1,520,636
public List getPossibleCommands(ICommandSender par1ICommandSender) { ArrayList var2 = new ArrayList(); Iterator var3 = this.commandSet.iterator(); while (var3.hasNext()) { ICommand var4 = (ICommand)var3.next(); if (var4.canCommandSenderUseCommand(par1ICo...
List function(ICommandSender par1ICommandSender) { ArrayList var2 = new ArrayList(); Iterator var3 = this.commandSet.iterator(); while (var3.hasNext()) { ICommand var4 = (ICommand)var3.next(); if (var4.canCommandSenderUseCommand(par1ICommandSender)) { var2.add(var4); } } return var2; }
/** * returns all commands that the commandSender can use */
returns all commands that the commandSender can use
getPossibleCommands
{ "repo_name": "herpingdo/Hakkit", "path": "net/minecraft/src/CommandHandler.java", "license": "gpl-3.0", "size": 7787 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.List" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,894,232
@Override public boolean interactFirst(EntityPlayer par1EntityPlayer) { if (this.riddenByEntity != null && this.riddenByEntity instanceof EntityPlayer && this.riddenByEntity != par1EntityPlayer) { return true; } else { if (!this.worldObj.isRemote) { par1EntityPlayer.mountEntity(this); } ...
boolean function(EntityPlayer par1EntityPlayer) { if (this.riddenByEntity != null && this.riddenByEntity instanceof EntityPlayer && this.riddenByEntity != par1EntityPlayer) { return true; } else { if (!this.worldObj.isRemote) { par1EntityPlayer.mountEntity(this); } return true; } }
/** * First layer of player interaction */
First layer of player interaction
interactFirst
{ "repo_name": "KILLER-CHIEF/Halocraft-KCWM", "path": "java/net/killerchief/halocraft/entities/vehicles/EntityPassengerSeat.java", "license": "gpl-2.0", "size": 5355 }
[ "net.minecraft.entity.player.EntityPlayer" ]
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.*;
[ "net.minecraft.entity" ]
net.minecraft.entity;
1,011,194
public String getDomain() { return domain; } /** * * Register a control object as an MBean. * * {@inheritDoc} * * The MBean is registered within the domain returned by {@link #getDomain()} * and an `ObjectName` with these keys: * <UL> * <LI>type</LI> {@code type} * <LI>interface<...
String function() { return domain; } /** * * Register a control object as an MBean. * * {@inheritDoc} * * The MBean is registered within the domain returned by {@link #getDomain()} * and an `ObjectName` with these keys: * <UL> * <LI>type</LI> {@code type} * <LI>interface</LI> {@code controlInterface.getName()} * <LI>id...
/** * Get the JMX domain being used by this control service. * @return JMX domain being used by this control service. */
Get the JMX domain being used by this control service
getDomain
{ "repo_name": "queeniema/incubator-edgent", "path": "runtime/jmxcontrol/src/main/java/org/apache/edgent/runtime/jmxcontrol/JMXControlService.java", "license": "apache-2.0", "size": 6174 }
[ "javax.management.ObjectName" ]
import javax.management.ObjectName;
import javax.management.*;
[ "javax.management" ]
javax.management;
1,331,659
public String formatDateTimeMedium(Date d) { return d.toString(); }
String function(Date d) { return d.toString(); }
/** * Formats a date and a time in a default form e.g. 1/1/2011 10:00AM * @param d the date * @return the date and time */
Formats a date and a time in a default form e.g. 1/1/2011 10:00AM
formatDateTimeMedium
{ "repo_name": "skyHALud/codenameone", "path": "CodenameOne/src/com/codename1/l10n/L10NManager.java", "license": "gpl-2.0", "size": 6516 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,698,173
public void forEach(@NotNull ScannerHandler handler) throws IgniteCheckedException { try (WALIterator it = iterSupplier.get()) { while (it.hasNext()) handler.handle(it.next()); } finally { handler.finish(); } ...
void function(@NotNull ScannerHandler handler) throws IgniteCheckedException { try (WALIterator it = iterSupplier.get()) { while (it.hasNext()) handler.handle(it.next()); } finally { handler.finish(); } } }
/** * Execute given handler on each record. * * @param handler Single record handler. * @throws IgniteCheckedException If iteration was failed. */
Execute given handler on each record
forEach
{ "repo_name": "ilantukh/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/wal/scanner/WalScanner.java", "license": "apache-2.0", "size": 7223 }
[ "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.internal.pagemem.wal.WALIterator", "org.jetbrains.annotations.NotNull" ]
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.internal.pagemem.wal.WALIterator; import org.jetbrains.annotations.NotNull;
import org.apache.ignite.*; import org.apache.ignite.internal.pagemem.wal.*; import org.jetbrains.annotations.*;
[ "org.apache.ignite", "org.jetbrains.annotations" ]
org.apache.ignite; org.jetbrains.annotations;
1,376,027
public static String replaceEmailDomainBack(String input) { if (input != null && input.contains(APIConstants.EMAIL_DOMAIN_SEPARATOR_REPLACEMENT)) { input = input.replace(APIConstants.EMAIL_DOMAIN_SEPARATOR_REPLACEMENT, APIConstants.EMAIL_DOMAIN_SEPARATOR); } ...
static String function(String input) { if (input != null && input.contains(APIConstants.EMAIL_DOMAIN_SEPARATOR_REPLACEMENT)) { input = input.replace(APIConstants.EMAIL_DOMAIN_SEPARATOR_REPLACEMENT, APIConstants.EMAIL_DOMAIN_SEPARATOR); } return input; }
/** * When an input is having '-AT-',replace it with @ [This is required to persist API data between registry and database] * * @param input inputString * @return String modifiedString */
When an input is having '-AT-',replace it with @ [This is required to persist API data between registry and database]
replaceEmailDomainBack
{ "repo_name": "tharikaGitHub/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java", "license": "apache-2.0", "size": 563590 }
[ "org.wso2.carbon.apimgt.impl.APIConstants" ]
import org.wso2.carbon.apimgt.impl.APIConstants;
import org.wso2.carbon.apimgt.impl.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
1,323,727
GL createGL() { GL gl = mEglContext.getGL(); GLSurfaceViewAPI18 view = mGLSurfaceViewWeakRef.get(); if (view != null) { if (view.mGLWrapper != null) { gl = view.mGLWrapper.wrap(gl); } if ((view.mDebugFlags ...
GL createGL() { GL gl = mEglContext.getGL(); GLSurfaceViewAPI18 view = mGLSurfaceViewWeakRef.get(); if (view != null) { if (view.mGLWrapper != null) { gl = view.mGLWrapper.wrap(gl); } if ((view.mDebugFlags & (DEBUG_CHECK_GL_ERROR DEBUG_LOG_GL_CALLS)) != 0) { int configFlags = 0; Writer log = null; if ((view.mDebugFlags...
/** * Create a GL object for the current EGL context. */
Create a GL object for the current EGL context
createGL
{ "repo_name": "GreenLightning/libgdx", "path": "backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/surfaceview/GLSurfaceViewAPI18.java", "license": "apache-2.0", "size": 79432 }
[ "android.opengl.GLDebugHelper", "java.io.Writer" ]
import android.opengl.GLDebugHelper; import java.io.Writer;
import android.opengl.*; import java.io.*;
[ "android.opengl", "java.io" ]
android.opengl; java.io;
55,141
protected boolean checkEngineCharSet(final Properties props) { final String databaseName = props.getProperty(DBNAME); DBMSUserMgr mgr = null; try { String itUsername = props.getProperty(DBUSERNAME); String itPassword = props.getProperty(DBPWD); ...
boolean function(final Properties props) { final String databaseName = props.getProperty(DBNAME); DBMSUserMgr mgr = null; try { String itUsername = props.getProperty(DBUSERNAME); String itPassword = props.getProperty(DBPWD); String hostName = props.getProperty(HOSTNAME); if (!DBConnection.getInstance().isEmbedded()) { ...
/** * Check the engine and charset. * @param props the props * @return true if it exists */
Check the engine and charset
checkEngineCharSet
{ "repo_name": "specify/specify6", "path": "src/edu/ku/brc/specify/config/init/secwiz/DatabasePanel.java", "license": "gpl-2.0", "size": 35589 }
[ "edu.ku.brc.dbsupport.DBConnection", "edu.ku.brc.dbsupport.DBMSUserMgr", "edu.ku.brc.ui.UIRegistry", "java.util.Properties", "javax.swing.JOptionPane" ]
import edu.ku.brc.dbsupport.DBConnection; import edu.ku.brc.dbsupport.DBMSUserMgr; import edu.ku.brc.ui.UIRegistry; import java.util.Properties; import javax.swing.JOptionPane;
import edu.ku.brc.dbsupport.*; import edu.ku.brc.ui.*; import java.util.*; import javax.swing.*;
[ "edu.ku.brc", "java.util", "javax.swing" ]
edu.ku.brc; java.util; javax.swing;
2,320,546
@NotNull PsiDocComment createDocCommentFromText(@NotNull String docCommentText) throws IncorrectOperationException;
PsiDocComment createDocCommentFromText(@NotNull String docCommentText) throws IncorrectOperationException;
/** * Creates a JavaDoc comment from the specified text. * * @param docCommentText the text of the JavaDoc comment. * @return the created comment. * @throws IncorrectOperationException if the text of the comment is not valid. */
Creates a JavaDoc comment from the specified text
createDocCommentFromText
{ "repo_name": "ThiagoGarciaAlves/intellij-community", "path": "java/java-psi-api/src/com/intellij/psi/PsiJavaParserFacade.java", "license": "apache-2.0", "size": 11036 }
[ "com.intellij.psi.javadoc.PsiDocComment", "com.intellij.util.IncorrectOperationException", "org.jetbrains.annotations.NotNull" ]
import com.intellij.psi.javadoc.PsiDocComment; import com.intellij.util.IncorrectOperationException; import org.jetbrains.annotations.NotNull;
import com.intellij.psi.javadoc.*; import com.intellij.util.*; import org.jetbrains.annotations.*;
[ "com.intellij.psi", "com.intellij.util", "org.jetbrains.annotations" ]
com.intellij.psi; com.intellij.util; org.jetbrains.annotations;
957,082
TreeNodeState state = new TreeNodeState(markers, triggerTransitions, triggersSequence); return state; }
TreeNodeState state = new TreeNodeState(markers, triggerTransitions, triggersSequence); return state; }
/** * Cria um novo estado * * @param markers * @param triggerTransitions * @param triggersSequence * @return */
Cria um novo estado
createState
{ "repo_name": "gabrieltavaresmelo/jPetriNetsSim", "path": "src/main/java/br/com/pn/controller/SimulationController.java", "license": "gpl-2.0", "size": 4787 }
[ "br.com.pn.business.simulator.TreeNodeState" ]
import br.com.pn.business.simulator.TreeNodeState;
import br.com.pn.business.simulator.*;
[ "br.com.pn" ]
br.com.pn;
1,698,537
public static <T extends ThrottleConditionDTO> T updateFieldsFromConditionToDTO(Condition condition, T dto) { dto.setInvertCondition(condition.isInvertCondition()); return dto; }
static <T extends ThrottleConditionDTO> T function(Condition condition, T dto) { dto.setInvertCondition(condition.isInvertCondition()); return dto; }
/** * Updates common fields of Throttle Condition DTO object using the Condition model object * Fields update: conditionEnabled, invertCondition * * @param condition Condition model object * @param dto Throttle Condition DTO object * @param <T> The type of Condition DTO object ...
Updates common fields of Throttle Condition DTO object using the Condition model object Fields update: conditionEnabled, invertCondition
updateFieldsFromConditionToDTO
{ "repo_name": "sambaheerathan/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.rest.api.admin/src/main/java/org/wso2/carbon/apimgt/rest/api/admin/mappings/CommonThrottleMappingUtil.java", "license": "apache-2.0", "size": 30435 }
[ "org.wso2.carbon.apimgt.core.models.policy.Condition", "org.wso2.carbon.apimgt.rest.api.admin.dto.ThrottleConditionDTO" ]
import org.wso2.carbon.apimgt.core.models.policy.Condition; import org.wso2.carbon.apimgt.rest.api.admin.dto.ThrottleConditionDTO;
import org.wso2.carbon.apimgt.core.models.policy.*; import org.wso2.carbon.apimgt.rest.api.admin.dto.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
1,182,677
public static void checkState( boolean b, @Nullable String errorMessageTemplate, long p1, char p2) { if (!b) { throw new IllegalStateException(format(errorMessageTemplate, p1, p2)); } }
static void function( boolean b, @Nullable String errorMessageTemplate, long p1, char p2) { if (!b) { throw new IllegalStateException(format(errorMessageTemplate, p1, p2)); } }
/** * Ensures the truth of an expression involving the state of the calling instance, but not * involving any parameters to the calling method. * <p/> * <p>See {@link #checkState(boolean, String, Object...)} for details. */
Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method. See <code>#checkState(boolean, String, Object...)</code> for details
checkState
{ "repo_name": "cymcsg/UltimateAndroid", "path": "UltimateAndroid/ultimateandroid/src/main/java/com/marshalchen/ua/common/commonUtils/basicUtils/Preconditions.java", "license": "apache-2.0", "size": 52256 }
[ "android.support.annotation.Nullable" ]
import android.support.annotation.Nullable;
import android.support.annotation.*;
[ "android.support" ]
android.support;
1,040,384
protected void write(byte[] b, int off, int len) throws IOException { if (isClosed()) { throw new SocketException("Socket is closed"); } if (isOutputShutdown()) { throw new IOException("Socket output is shutdown"); } if (!isConnected()) {...
void function(byte[] b, int off, int len) throws IOException { if (isClosed()) { throw new SocketException(STR); } if (isOutputShutdown()) { throw new IOException(STR); } if (!isConnected()) { throw new SocketException(STR); } int totalBytes = 0; while (totalBytes < len) { synchronized (_resetLock) { while (_reset) { t...
/** * Writes <code>len</code> bytes from the specified byte array * starting at offset <code>off</code> as data segments and * queues them for immediate transmission. * * @param b the data. * @param off the start offset in the data. * @param len the number of bytes to wr...
Writes <code>len</code> bytes from the specified byte array starting at offset <code>off</code> as data segments and queues them for immediate transmission
write
{ "repo_name": "CiNC0/Cartier", "path": "cartier-rudp/src/main/java/xyz/vopen/cartier/net/rudp/ReliableSocket.java", "license": "apache-2.0", "size": 67440 }
[ "java.io.IOException", "java.net.SocketException", "xyz.vopen.cartier.net.rudp.impl.DATSegment", "xyz.vopen.cartier.net.rudp.impl.Segment" ]
import java.io.IOException; import java.net.SocketException; import xyz.vopen.cartier.net.rudp.impl.DATSegment; import xyz.vopen.cartier.net.rudp.impl.Segment;
import java.io.*; import java.net.*; import xyz.vopen.cartier.net.rudp.impl.*;
[ "java.io", "java.net", "xyz.vopen.cartier" ]
java.io; java.net; xyz.vopen.cartier;
2,113,134
public static java.util.List extractOcsOrderSessionList(ims.domain.ILightweightDomainFactory domainFactory, ims.ocrr.vo.OcsOrderWebServiceVoCollection voCollection) { return extractOcsOrderSessionList(domainFactory, voCollection, null, new HashMap()); }
static java.util.List function(ims.domain.ILightweightDomainFactory domainFactory, ims.ocrr.vo.OcsOrderWebServiceVoCollection voCollection) { return extractOcsOrderSessionList(domainFactory, voCollection, null, new HashMap()); }
/** * Create the ims.ocrr.orderingresults.domain.objects.OcsOrderSession list from the value object collection. * @param domainFactory - used to create existing (persistent) domain objects. * @param voCollection - the collection of value objects */
Create the ims.ocrr.orderingresults.domain.objects.OcsOrderSession list from the value object collection
extractOcsOrderSessionList
{ "repo_name": "IMS-MAXIMS/openMAXIMS", "path": "Source Library/openmaxims_workspace/ValueObjects/src/ims/ocrr/vo/domain/OcsOrderWebServiceVoAssembler.java", "license": "agpl-3.0", "size": 22317 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,361,853
static MonetaryAmount min(MonetaryAmount a, MonetaryAmount b) { MoneyUtils.checkAmountParameter(Objects.requireNonNull(a), Objects.requireNonNull(b.getCurrency())); return a.isLessThan(b) ? a : b; }
static MonetaryAmount min(MonetaryAmount a, MonetaryAmount b) { MoneyUtils.checkAmountParameter(Objects.requireNonNull(a), Objects.requireNonNull(b.getCurrency())); return a.isLessThan(b) ? a : b; }
/** * Returns the smaller of two {@code MonetaryAmount} values. If the arguments * have the same value, the result is that same value. * @param a an argument. * @param b another argument. * @return the smaller of {@code a} and {@code b}. */
Returns the smaller of two MonetaryAmount values. If the arguments have the same value, the result is that same value
min
{ "repo_name": "JavaMoney/jsr354-ri-bp", "path": "src/main/java/org/javamoney/moneta/function/MonetaryFunctions.java", "license": "apache-2.0", "size": 7202 }
[ "java.util.Objects", "javax.money.MonetaryAmount", "org.javamoney.moneta.spi.MoneyUtils" ]
import java.util.Objects; import javax.money.MonetaryAmount; import org.javamoney.moneta.spi.MoneyUtils;
import java.util.*; import javax.money.*; import org.javamoney.moneta.spi.*;
[ "java.util", "javax.money", "org.javamoney.moneta" ]
java.util; javax.money; org.javamoney.moneta;
1,439,072
public static <T> List<T> parseListFrom(final InputStream in, final Schema<T> schema) throws IOException { int size = in.read(); if (size == -1) return Collections.emptyList(); if (size > 0x7f) size = CodedInput.readRawVarint32(in, size); ...
static <T> List<T> function(final InputStream in, final Schema<T> schema) throws IOException { int size = in.read(); if (size == -1) return Collections.emptyList(); if (size > 0x7f) size = CodedInput.readRawVarint32(in, size); final ArrayList<T> list = new ArrayList<T>(size); final CodedInput input = new CodedInput(in,...
/** * Parses the {@code messages} (delimited) from the {@link InputStream} using the given {@code schema}. * * @return the list containing the messages. */
Parses the messages (delimited) from the <code>InputStream</code> using the given schema
parseListFrom
{ "repo_name": "Shvid/protostuff", "path": "protostuff-core/src/main/java/io/protostuff/ProtostuffIOUtil.java", "license": "apache-2.0", "size": 14859 }
[ "java.io.IOException", "java.io.InputStream", "java.util.ArrayList", "java.util.Collections", "java.util.List" ]
import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.Collections; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
96,100
@Override public Bundle persistChanges() { model.setProgress(binding.diaCurrentProgress.getProgressCurrent()); model.setRepeat(binding.diaCurrentRewatch.getProgressCurrent()); model.setScore(binding.diaCurrentScore.getScoreCurrent()); model.setStartedAt(binding.diaCurrentStarte...
Bundle function() { model.setProgress(binding.diaCurrentProgress.getProgressCurrent()); model.setRepeat(binding.diaCurrentRewatch.getProgressCurrent()); model.setScore(binding.diaCurrentScore.getScoreCurrent()); model.setStartedAt(binding.diaCurrentStartedAt.getDate()); model.setCompletedAt(binding.diaCurrentCompletedA...
/** * Saves the current views states into the model * and returns a bundle of the params * * @see MediaListUtil */
Saves the current views states into the model and returns a bundle of the params
persistChanges
{ "repo_name": "wax911/AniTrendApp", "path": "app/src/main/java/com/mxt/anitrend/base/custom/view/widget/CustomSeriesAnimeManage.java", "license": "lgpl-3.0", "size": 5565 }
[ "android.os.Bundle", "com.mxt.anitrend.util.KeyUtil", "com.mxt.anitrend.util.media.MediaListUtil" ]
import android.os.Bundle; import com.mxt.anitrend.util.KeyUtil; import com.mxt.anitrend.util.media.MediaListUtil;
import android.os.*; import com.mxt.anitrend.util.*; import com.mxt.anitrend.util.media.*;
[ "android.os", "com.mxt.anitrend" ]
android.os; com.mxt.anitrend;
2,218,895
@VisibleForTesting protected static boolean impliesURI(String policy, String request) { try { URI policyURI = new URI(new StrSubstitutor(System.getProperties()).replace(policy)); URI requestURI = new URI(request); if(policyURI.getScheme() == null || policyURI.getPath() == null) { LOGGE...
static boolean function(String policy, String request) { try { URI policyURI = new URI(new StrSubstitutor(System.getProperties()).replace(policy)); URI requestURI = new URI(request); if(policyURI.getScheme() == null policyURI.getPath() == null) { LOGGER.warn(STR + policy + STR); return false; } if(requestURI.getScheme(...
/** * URI is a a special case. For URI's, /a implies /a/b. * Therefore the test is "/a/b".startsWith("/a"); */
URI is a a special case. For URI's, /a implies /a/b. Therefore the test is "/a/b".startsWith("/a")
impliesURI
{ "repo_name": "andybab/Impala", "path": "thirdparty/sentry-1.1.0-SNAPSHOT/sentry-provider/sentry-provider-file/src/main/java/org/apache/sentry/provider/file/WildcardPermission.java", "license": "apache-2.0", "size": 6687 }
[ "com.google.common.base.Strings", "java.net.URISyntaxException", "org.apache.commons.lang.text.StrSubstitutor" ]
import com.google.common.base.Strings; import java.net.URISyntaxException; import org.apache.commons.lang.text.StrSubstitutor;
import com.google.common.base.*; import java.net.*; import org.apache.commons.lang.text.*;
[ "com.google.common", "java.net", "org.apache.commons" ]
com.google.common; java.net; org.apache.commons;
2,214,383
String generateSignature(String data, OAuthToken token) { byte[] byteHMAC = null; try { Mac mac = Mac.getInstance(HMAC_SHA1); SecretKeySpec spec; if (null == token) { String oauthSignature = encode(consumerSecret) + "&"; spec = new...
String generateSignature(String data, OAuthToken token) { byte[] byteHMAC = null; try { Mac mac = Mac.getInstance(HMAC_SHA1); SecretKeySpec spec; if (null == token) { String oauthSignature = encode(consumerSecret) + "&"; spec = new SecretKeySpec(oauthSignature.getBytes(), HMAC_SHA1); } else { if (null == token.getSecre...
/** * Computes RFC 2104-compliant HMAC signature. * * @param data the data to be signed * @return signature * @see <a href="http://oauth.net/core/1.0/#rfc.section.9.2.1">OAuth Core - 9.2.1. Generating Signature</a> */
Computes RFC 2104-compliant HMAC signature
generateSignature
{ "repo_name": "linker2008/sina-weibo-lv", "path": "src/weibo4android/http/OAuth.java", "license": "bsd-3-clause", "size": 16031 }
[ "java.security.InvalidKeyException", "java.security.NoSuchAlgorithmException", "javax.crypto.Mac", "javax.crypto.spec.SecretKeySpec" ]
import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import javax.crypto.Mac; import javax.crypto.spec.SecretKeySpec;
import java.security.*; import javax.crypto.*; import javax.crypto.spec.*;
[ "java.security", "javax.crypto" ]
java.security; javax.crypto;
294,325
@As(MenuItem.class) public StringMenuOwner<MenuItem> asMenuOwner() { if (menuOwner == null) { menuOwner = new StringMenuOwnerImpl(this, this.as(Parent.class, Menu.class)); } return menuOwner; } private Collapsible collapsible = null;
@As(MenuItem.class) StringMenuOwner<MenuItem> function() { if (menuOwner == null) { menuOwner = new StringMenuOwnerImpl(this, this.as(Parent.class, Menu.class)); } return menuOwner; } private Collapsible collapsible = null;
/** * Allows to perform simple push and selection operations on the menu. * * @return */
Allows to perform simple push and selection operations on the menu
asMenuOwner
{ "repo_name": "teamfx/openjfx-8u-dev-tests", "path": "tools/Jemmy/JemmyFX/src/org/jemmy/fx/control/MenuBarWrap.java", "license": "gpl-2.0", "size": 4937 }
[ "org.jemmy.control.As", "org.jemmy.input.StringMenuOwner", "org.jemmy.interfaces.Collapsible", "org.jemmy.interfaces.Parent" ]
import org.jemmy.control.As; import org.jemmy.input.StringMenuOwner; import org.jemmy.interfaces.Collapsible; import org.jemmy.interfaces.Parent;
import org.jemmy.control.*; import org.jemmy.input.*; import org.jemmy.interfaces.*;
[ "org.jemmy.control", "org.jemmy.input", "org.jemmy.interfaces" ]
org.jemmy.control; org.jemmy.input; org.jemmy.interfaces;
2,627,121
MongoDatabase withReadConcern(ReadConcern readConcern);
MongoDatabase withReadConcern(ReadConcern readConcern);
/** * Create a new MongoDatabase instance with a different read concern. * * @param readConcern the new {@link ReadConcern} for the collection * @return a new MongoDatabase instance with the different ReadConcern * @since 1.2 * @mongodb.server.release 3.2 */
Create a new MongoDatabase instance with a different read concern
withReadConcern
{ "repo_name": "rozza/mongo-java-driver-reactivestreams", "path": "driver/src/main/com/mongodb/reactivestreams/client/MongoDatabase.java", "license": "apache-2.0", "size": 22823 }
[ "com.mongodb.ReadConcern" ]
import com.mongodb.ReadConcern;
import com.mongodb.*;
[ "com.mongodb" ]
com.mongodb;
2,553,909
public Object clone() { LanskyClinicalEvalCriteria myClone = null; myClone = (LanskyClinicalEvalCriteria) super.clone(); if(lanskyClinicalEvalDE!=null) { myClone.lanskyClinicalEvalDE = (LanskyClinicalEvalDE) lanskyClinicalEvalDE.clone(); } return myClone; }
Object function() { LanskyClinicalEvalCriteria myClone = null; myClone = (LanskyClinicalEvalCriteria) super.clone(); if(lanskyClinicalEvalDE!=null) { myClone.lanskyClinicalEvalDE = (LanskyClinicalEvalDE) lanskyClinicalEvalDE.clone(); } return myClone; }
/** * Overrides the protected Object.clone() method exposing it as public. * It performs a 2 tier copy, that is, it does a memcopy of the instance * and then sets all the non-primitive data fields to clones of themselves. * * @return -A minimum 2 deep copy of this object. */
Overrides the protected Object.clone() method exposing it as public. It performs a 2 tier copy, that is, it does a memcopy of the instance and then sets all the non-primitive data fields to clones of themselves
clone
{ "repo_name": "NCIP/stats-analysis", "path": "src/gov/nih/nci/caintegrator/dto/critieria/LanskyClinicalEvalCriteria.java", "license": "bsd-3-clause", "size": 2452 }
[ "gov.nih.nci.caintegrator.dto.de.LanskyClinicalEvalDE" ]
import gov.nih.nci.caintegrator.dto.de.LanskyClinicalEvalDE;
import gov.nih.nci.caintegrator.dto.de.*;
[ "gov.nih.nci" ]
gov.nih.nci;
2,123,421