method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public static String getInvocationAwareDataTextualRepresentation(InvocationAwareData invAwareData, RepositoryDefinition repositoryDefinition) { if (invAwareData instanceof SqlStatementData) { SqlStatementData sqlData = (SqlStatementData) invAwareData; return "SQL: " + sqlData.getSql(); } else if (invAwareD...
static String function(InvocationAwareData invAwareData, RepositoryDefinition repositoryDefinition) { if (invAwareData instanceof SqlStatementData) { SqlStatementData sqlData = (SqlStatementData) invAwareData; return STR + sqlData.getSql(); } else if (invAwareData instanceof RegExAggregatedHttpTimerData) { return STR +...
/** * Get the textual representation of objects that will be displayed in the new view. * * @param invAwareData * Invocation aware object to get representation for. * @param repositoryDefinition * Repository definition. Needed for the method name retrival. * @return String. */
Get the textual representation of objects that will be displayed in the new view
getInvocationAwareDataTextualRepresentation
{ "repo_name": "kugelr/inspectIT", "path": "inspectIT/src/info/novatec/inspectit/rcp/formatter/TextFormatter.java", "license": "agpl-3.0", "size": 21778 }
[ "info.novatec.inspectit.cmr.model.MethodIdent", "info.novatec.inspectit.communication.data.ExceptionSensorData", "info.novatec.inspectit.communication.data.HttpTimerData", "info.novatec.inspectit.communication.data.InvocationAwareData", "info.novatec.inspectit.communication.data.SqlStatementData", "info.n...
import info.novatec.inspectit.cmr.model.MethodIdent; import info.novatec.inspectit.communication.data.ExceptionSensorData; import info.novatec.inspectit.communication.data.HttpTimerData; import info.novatec.inspectit.communication.data.InvocationAwareData; import info.novatec.inspectit.communication.data.SqlStatementDa...
import info.novatec.inspectit.cmr.model.*; import info.novatec.inspectit.communication.data.*; import info.novatec.inspectit.rcp.repository.*; import info.novatec.inspectit.rcp.util.data.*;
[ "info.novatec.inspectit" ]
info.novatec.inspectit;
1,683,543
public void addAttribute(QName name, String value) throws JspParseException { if (SELECT.equals(name)) _select = value; else if (VAR.equals(name)) _var = value; else if (SCOPE.equals(name)) _scope = value; else throw error(L.l("'{0}' is an unknown attribute for <{1}>.", ...
void function(QName name, String value) throws JspParseException { if (SELECT.equals(name)) _select = value; else if (VAR.equals(name)) _var = value; else if (SCOPE.equals(name)) _scope = value; else throw error(L.l(STR, name.getName(), getTagName())); }
/** * Adds an attribute. */
Adds an attribute
addAttribute
{ "repo_name": "dlitz/resin", "path": "modules/resin/src/com/caucho/jsp/java/JstlXmlIf.java", "license": "gpl-2.0", "size": 3888 }
[ "com.caucho.jsp.JspParseException", "com.caucho.xml.QName" ]
import com.caucho.jsp.JspParseException; import com.caucho.xml.QName;
import com.caucho.jsp.*; import com.caucho.xml.*;
[ "com.caucho.jsp", "com.caucho.xml" ]
com.caucho.jsp; com.caucho.xml;
1,399,850
@ServiceMethod(returns = ReturnType.SINGLE) public void delete(String resourceGroupName, String applicationGatewayName) { deleteAsync(resourceGroupName, applicationGatewayName).block(); }
@ServiceMethod(returns = ReturnType.SINGLE) void function(String resourceGroupName, String applicationGatewayName) { deleteAsync(resourceGroupName, applicationGatewayName).block(); }
/** * Deletes 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. * @throws ManagementException thro...
Deletes the specified application gateway
delete
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ApplicationGatewaysClientImpl.java", "license": "mit", "size": 190366 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod;
import com.azure.core.annotation.*;
[ "com.azure.core" ]
com.azure.core;
1,798,405
public Resolution view() { final InputStream stream = getContext().getRequest().getSession() .getServletContext().getResourceAsStream(this.resource); final BufferedReader reader = new BufferedReader( new InputStreamReader(stream) );
Resolution function() { final InputStream stream = getContext().getRequest().getSession() .getServletContext().getResourceAsStream(this.resource); final BufferedReader reader = new BufferedReader( new InputStreamReader(stream) );
/** * Handler method which will handle a request for a resource in the web application * and stream it back to the client inside of an HTML preformatted section. */
Handler method which will handle a request for a resource in the web application and stream it back to the client inside of an HTML preformatted section
view
{ "repo_name": "scarcher2/stripes", "path": "examples/src/net/sourceforge/stripes/examples/bugzooky/ViewResourceActionBean.java", "license": "apache-2.0", "size": 3830 }
[ "java.io.BufferedReader", "java.io.InputStream", "java.io.InputStreamReader", "net.sourceforge.stripes.action.Resolution" ]
import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import net.sourceforge.stripes.action.Resolution;
import java.io.*; import net.sourceforge.stripes.action.*;
[ "java.io", "net.sourceforge.stripes" ]
java.io; net.sourceforge.stripes;
1,632,602
public final synchronized Window show(int id) { // get the window corresponding to the id Window cachedWindow = getWindow(id); final Window window; // check cache first if (cachedWindow != null) { window = cachedWindow; } else { window = new Window(this, id); } // alert callbacks and cancel i...
final synchronized Window function(int id) { Window cachedWindow = getWindow(id); final Window window; if (cachedWindow != null) { window = cachedWindow; } else { window = new Window(this, id); } if (onShow(id, window)) { Log.d(TAG, STR + id + STR); return null; } if (window.visibility == Window.VISIBILITY_VISIBLE) { L...
/** * Show or restore a window corresponding to the id. Return the window that * was shown/restored. * * @param id * The id of the window. * @return The window shown. */
Show or restore a window corresponding to the id. Return the window that was shown/restored
show
{ "repo_name": "juoni/StandOut", "path": "library/src/wei/mark/standout/StandOutWindow.java", "license": "mit", "size": 59449 }
[ "android.app.Notification", "android.util.Log", "android.view.animation.Animation" ]
import android.app.Notification; import android.util.Log; import android.view.animation.Animation;
import android.app.*; import android.util.*; import android.view.animation.*;
[ "android.app", "android.util", "android.view" ]
android.app; android.util; android.view;
287,883
@ServiceMethod(returns = ReturnType.SINGLE) AgentPoolInner create( String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool);
@ServiceMethod(returns = ReturnType.SINGLE) AgentPoolInner create( String resourceGroupName, String registryName, String agentPoolName, AgentPoolInner agentPool);
/** * Creates an agent pool for a container registry with the specified parameters. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param registryName The name of the container registry. * @param agentPoolName The name of the agent pool. ...
Creates an agent pool for a container registry with the specified parameters
create
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/AgentPoolsClient.java", "license": "mit", "size": 30427 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.containerregistry.fluent.models.AgentPoolInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.containerregistry.fluent.models.AgentPoolInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.containerregistry.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
746,446
protected Boolean onJustify(Desire des, PlanParameter pp) { if(! (des.getPerception() instanceof Justify)) return false; Justify j = (Justify)des.getPerception(); PlanElement next = nextSafeAction("justification("+ j.getProposition().toString() + ")", pp, des); if(next == null) return false; Subg...
Boolean function(Desire des, PlanParameter pp) { if(! (des.getPerception() instanceof Justify)) return false; Justify j = (Justify)des.getPerception(); PlanElement next = nextSafeAction(STR+ j.getProposition().toString() + ")", pp, des); if(next == null) return false; Subgoal sg = new Subgoal(pp.getAgent(), des); sg.ne...
/** * If a justify request is received this method handles it and calls the knowhow with the correct * start intention * @param des The desire to react to the justify. * @param pp The subgoal generation parameter data structure. * @return True if a safe action was found, false otherwise. */
If a justify request is received this method handles it and calls the knowhow with the correct start intention
onJustify
{ "repo_name": "Angerona/angerona-framework", "path": "knowhow/src/main/java/com/github/angerona/knowhow/asp/KnowhowASP.java", "license": "gpl-3.0", "size": 19968 }
[ "com.github.angerona.fw.Desire", "com.github.angerona.fw.PlanElement", "com.github.angerona.fw.Subgoal", "com.github.angerona.fw.am.secrecy.operators.parameter.PlanParameter", "com.github.angerona.fw.comm.Justify" ]
import com.github.angerona.fw.Desire; import com.github.angerona.fw.PlanElement; import com.github.angerona.fw.Subgoal; import com.github.angerona.fw.am.secrecy.operators.parameter.PlanParameter; import com.github.angerona.fw.comm.Justify;
import com.github.angerona.fw.*; import com.github.angerona.fw.am.secrecy.operators.parameter.*; import com.github.angerona.fw.comm.*;
[ "com.github.angerona" ]
com.github.angerona;
1,746,377
protected SpringApplicationBuilder createSpringApplicationBuilder() { return new SpringApplicationBuilder(); } /** * Called to run a fully configured {@link SpringApplication}. * @param application the application to run * @return the {@link WebApplicationContext}
SpringApplicationBuilder function() { return new SpringApplicationBuilder(); } /** * Called to run a fully configured {@link SpringApplication}. * @param application the application to run * @return the {@link WebApplicationContext}
/** * Returns the {@code SpringApplicationBuilder} that is used to configure and create * the {@link SpringApplication}. The default implementation returns a new * {@code SpringApplicationBuilder} in its default state. * @return the {@code SpringApplicationBuilder}. * @since 1.3.0 */
Returns the SpringApplicationBuilder that is used to configure and create the <code>SpringApplication</code>. The default implementation returns a new SpringApplicationBuilder in its default state
createSpringApplicationBuilder
{ "repo_name": "christian-posta/spring-boot", "path": "spring-boot/src/main/java/org/springframework/boot/context/web/SpringBootServletInitializer.java", "license": "apache-2.0", "size": 6925 }
[ "org.springframework.boot.SpringApplication", "org.springframework.boot.builder.SpringApplicationBuilder", "org.springframework.web.context.WebApplicationContext" ]
import org.springframework.boot.SpringApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.web.context.WebApplicationContext;
import org.springframework.boot.*; import org.springframework.boot.builder.*; import org.springframework.web.context.*;
[ "org.springframework.boot", "org.springframework.web" ]
org.springframework.boot; org.springframework.web;
1,241,508
public java.util.List<TermHLAPI> getSubtermHLAPI() { java.util.List<TermHLAPI> retour = new ArrayList<TermHLAPI>(); for (Term elemnt : getSubterm()) { if (elemnt.getClass().equals(fr.lip6.move.pnml.pthlpng.integers.impl.NumberConstantImpl.class)) { retour.add(new fr.lip6.move.pnml.pthlpng.integers.hlapi....
java.util.List<TermHLAPI> function() { java.util.List<TermHLAPI> retour = new ArrayList<TermHLAPI>(); for (Term elemnt : getSubterm()) { if (elemnt.getClass().equals(fr.lip6.move.pnml.pthlpng.integers.impl.NumberConstantImpl.class)) { retour.add(new fr.lip6.move.pnml.pthlpng.integers.hlapi.NumberConstantHLAPI( (fr.lip6...
/** * This accessor automatically encapsulate all elements of the selected sublist. * WARNING : this can creates a lot of new object in memory. */
This accessor automatically encapsulate all elements of the selected sublist. WARNING : this can creates a lot of new object in memory
getSubtermHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-PT-HLPNG/src/fr/lip6/move/pnml/pthlpng/integers/hlapi/SubtractionHLAPI.java", "license": "epl-1.0", "size": 69869 }
[ "fr.lip6.move.pnml.pthlpng.integers.Subtraction", "fr.lip6.move.pnml.pthlpng.terms.Term", "fr.lip6.move.pnml.pthlpng.terms.hlapi.TermHLAPI", "java.util.ArrayList", "java.util.List" ]
import fr.lip6.move.pnml.pthlpng.integers.Subtraction; import fr.lip6.move.pnml.pthlpng.terms.Term; import fr.lip6.move.pnml.pthlpng.terms.hlapi.TermHLAPI; import java.util.ArrayList; import java.util.List;
import fr.lip6.move.pnml.pthlpng.integers.*; import fr.lip6.move.pnml.pthlpng.terms.*; import fr.lip6.move.pnml.pthlpng.terms.hlapi.*; import java.util.*;
[ "fr.lip6.move", "java.util" ]
fr.lip6.move; java.util;
2,054,488
public static String getAt(CharSequence text, EmptyRange range) { return ""; }
static String function(CharSequence text, EmptyRange range) { return ""; }
/** * Support the range subscript operator for CharSequence or StringBuffer with EmptyRange * * @param text a CharSequence * @param range an EmptyRange * @return the empty String * @since 1.5.0 */
Support the range subscript operator for CharSequence or StringBuffer with EmptyRange
getAt
{ "repo_name": "pledbrook/incubator-groovy", "path": "src/main/org/codehaus/groovy/runtime/StringGroovyMethods.java", "license": "apache-2.0", "size": 142054 }
[ "groovy.lang.EmptyRange" ]
import groovy.lang.EmptyRange;
import groovy.lang.*;
[ "groovy.lang" ]
groovy.lang;
1,893,609
public Map<String, String> getPropertyMap(String property);
Map<String, String> function(String property);
/** * Return property map value. * * @param property */
Return property map value
getPropertyMap
{ "repo_name": "jessealama/exist", "path": "src/org/exist/config/Configuration.java", "license": "lgpl-2.1", "size": 4312 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,441,738
public synchronized int read() throws IOException { if (in == null) { throw new IOException("Stream Closed"); } byte result; if (slack != null && begin < slack.length) { result = slack[begin]; if (++begin == slack.length) { slack =...
synchronized int function() throws IOException { if (in == null) { throw new IOException(STR); } byte result; if (slack != null && begin < slack.length) { result = slack[begin]; if (++begin == slack.length) { slack = null; } } else { byte[] buf = new byte[1]; if (read(buf, 0, 1) <= 0) { return -1; } else { result = buf...
/** * Reads from the <code>Reader</code>, returning the same value. * * @return the value of the next character in the <code>Reader</code>. * * @exception IOException if the original <code>Reader</code> fails to be read */
Reads from the <code>Reader</code>, returning the same value
read
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/drools-master/drools-core/src/main/java/org/drools/core/io/impl/ReaderInputStream.java", "license": "mit", "size": 5939 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,777,565
private String nextTokenAsString() throws XNIException { String tokenStrint = getTokenString(nextToken()); if (tokenStrint == null) { reportError("XPointerProcessingError", null); } return tokenStrint; } } private class Scanne...
String function() throws XNIException { String tokenStrint = getTokenString(nextToken()); if (tokenStrint == null) { reportError(STR, null); } return tokenStrint; } } private class Scanner { private static final byte CHARTYPE_INVALID = 0, CHARTYPE_OTHER = 1, CHARTYPE_WHITESPACE = 2, CHARTYPE_CARRET = 3, CHARTYPE_OPEN_P...
/** * Obtains the token at the current position as a String. * * If there's no current token or if the current token * is not a string token, this method throws * If there's no such next token, this method throws * <tt>new XNIException("XPointerProcessingError");</t...
Obtains the token at the current position as a String. If there's no current token or if the current token is not a string token, this method throws If there's no such next token, this method throws new XNIException("XPointerProcessingError");
nextTokenAsString
{ "repo_name": "haikuowuya/android_system_code", "path": "src/com/sun/org/apache/xerces/internal/xpointer/XPointerHandler.java", "license": "apache-2.0", "size": 46643 }
[ "com.sun.org.apache.xerces.internal.util.SymbolTable", "com.sun.org.apache.xerces.internal.xni.XNIException" ]
import com.sun.org.apache.xerces.internal.util.SymbolTable; import com.sun.org.apache.xerces.internal.xni.XNIException;
import com.sun.org.apache.xerces.internal.util.*; import com.sun.org.apache.xerces.internal.xni.*;
[ "com.sun.org" ]
com.sun.org;
2,861,122
@Test public void testTableFoundPreviousColumnInNextRow() { JXTable table = new JXTable(new TestTableModel()); int row = 0; int firstColumn = 1; String firstSearchText = table.getValueAt(row, firstColumn).toString(); int foundIndex = table.getSearchable().search(firstSear...
void function() { JXTable table = new JXTable(new TestTableModel()); int row = 0; int firstColumn = 1; String firstSearchText = table.getValueAt(row, firstColumn).toString(); int foundIndex = table.getSearchable().search(firstSearchText); assertEquals(STR, row, foundIndex); int foundColumn = ((TableSearchable) table.ge...
/** * test if search loops all columns of next row. * * Hmm... not testable? * Needed to widen access for lastFoundColumn. */
test if search loops all columns of next row. Hmm... not testable? Needed to widen access for lastFoundColumn
testTableFoundPreviousColumnInNextRow
{ "repo_name": "syncer/swingx", "path": "swingx-core/src/test/java/org/jdesktop/swingx/search/FindTest.java", "license": "lgpl-2.1", "size": 31517 }
[ "org.jdesktop.swingx.JXTable" ]
import org.jdesktop.swingx.JXTable;
import org.jdesktop.swingx.*;
[ "org.jdesktop.swingx" ]
org.jdesktop.swingx;
1,729,688
public static FloatMatrix concatHorizontally(FloatMatrix A, FloatMatrix B) { if (A.rows != B.rows) { throw new SizeException("Matrices don't have same number of rows."); } FloatMatrix result = new FloatMatrix(A.rows, A.columns + B.columns); SimpleBlas.copy(A, result); ...
static FloatMatrix function(FloatMatrix A, FloatMatrix B) { if (A.rows != B.rows) { throw new SizeException(STR); } FloatMatrix result = new FloatMatrix(A.rows, A.columns + B.columns); SimpleBlas.copy(A, result); JavaBlas.rcopy(B.length, B.data, 0, 1, result.data, A.length, 1); return result; }
/** * Concatenates two matrices horizontally. Matrices must have identical * numbers of rows. */
Concatenates two matrices horizontally. Matrices must have identical numbers of rows
concatHorizontally
{ "repo_name": "Quantisan/jblas", "path": "src/main/java/org/jblas/FloatMatrix.java", "license": "bsd-3-clause", "size": 105668 }
[ "org.jblas.exceptions.SizeException" ]
import org.jblas.exceptions.SizeException;
import org.jblas.exceptions.*;
[ "org.jblas.exceptions" ]
org.jblas.exceptions;
1,116,194
ServiceCall putSimpleProductWithGroupingAsync(FlattenParameterGroup flattenParameterGroup, final ServiceCallback<SimpleProduct> serviceCallback) throws IllegalArgumentException;
ServiceCall putSimpleProductWithGroupingAsync(FlattenParameterGroup flattenParameterGroup, final ServiceCallback<SimpleProduct> serviceCallback) throws IllegalArgumentException;
/** * Put Simple Product with client flattening true on the model. * * @param flattenParameterGroup Additional parameters for the operation * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if callback is null...
Put Simple Product with client flattening true on the model
putSimpleProductWithGroupingAsync
{ "repo_name": "stankovski/AutoRest", "path": "AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/modelflattening/AutoRestResourceFlatteningTestService.java", "license": "mit", "size": 16224 }
[ "com.microsoft.rest.ServiceCall", "com.microsoft.rest.ServiceCallback" ]
import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,891,780
public String getName() { return name; } /** * The expression that determines whether the roles in this mapping should be applied to any given user. * If the expression * {@link RoleMapperExpression#match(org.elasticsearch.xpack.security.authc.support.mapper.expressiondsl.ExpressionM...
String function() { return name; } /** * The expression that determines whether the roles in this mapping should be applied to any given user. * If the expression * {@link RoleMapperExpression#match(org.elasticsearch.xpack.security.authc.support.mapper.expressiondsl.ExpressionModel) matches} a * org.elasticsearch.xpack...
/** * The name of this mapping. The name exists for the sole purpose of providing a meaningful identifier for each mapping, so that it may * be referred to for update, retrieval or deletion. The name does not affect the set of roles that a mapping provides. */
The name of this mapping. The name exists for the sole purpose of providing a meaningful identifier for each mapping, so that it may be referred to for update, retrieval or deletion. The name does not affect the set of roles that a mapping provides
getName
{ "repo_name": "gfyoung/elasticsearch", "path": "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authc/support/mapper/ExpressionRoleMapping.java", "license": "apache-2.0", "size": 9948 }
[ "org.elasticsearch.xpack.core.security.authc.support.mapper.expressiondsl.RoleMapperExpression" ]
import org.elasticsearch.xpack.core.security.authc.support.mapper.expressiondsl.RoleMapperExpression;
import org.elasticsearch.xpack.core.security.authc.support.mapper.expressiondsl.*;
[ "org.elasticsearch.xpack" ]
org.elasticsearch.xpack;
2,588,294
public List<Constructor> getConstructors() { List<Constructor> constructors = new ArrayList<Constructor>(); for (Meth m : methods) { if (m instanceof Constructor) { constructors.add((Constructor) m); } } return constructors; }
List<Constructor> function() { List<Constructor> constructors = new ArrayList<Constructor>(); for (Meth m : methods) { if (m instanceof Constructor) { constructors.add((Constructor) m); } } return constructors; }
/** * Gets the list of the constructors defined in the class. * @return * The list of the constructors defined in the class. */
Gets the list of the constructors defined in the class
getConstructors
{ "repo_name": "darrivau/GOOL", "path": "src/main/java/gool/ast/core/ClassDef.java", "license": "gpl-3.0", "size": 14814 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,911,918
public void generateDeleteSql(String currentDir, List<String> list) { try { log.info("[PIPELINE] Generating delete SQL statements"); File outfile = new File(currentDir + this.sqlDeleteFile); List<String> outputlist = new ArrayList<String>(); // Add transaction...
void function(String currentDir, List<String> list) { try { log.info(STR); File outfile = new File(currentDir + this.sqlDeleteFile); List<String> outputlist = new ArrayList<String>(); outputlist.add(STR); outputlist.add(STR); for (String pdbName : list) { String str = STR + pdbName + "';\n"; outputlist.add(str); String...
/** * generate sql in delete * * @param currentDir * @param list */
generate sql in delete
generateDeleteSql
{ "repo_name": "cBioPortal/pdb-annotation", "path": "pdb-alignment-pipeline/src/main/java/org/cbioportal/pdb_annotation/scripts/PdbScriptsPipelineMakeSQL.java", "license": "agpl-3.0", "size": 22464 }
[ "java.io.File", "java.util.ArrayList", "java.util.List", "org.apache.commons.io.FileUtils" ]
import java.io.File; import java.util.ArrayList; import java.util.List; import org.apache.commons.io.FileUtils;
import java.io.*; import java.util.*; import org.apache.commons.io.*;
[ "java.io", "java.util", "org.apache.commons" ]
java.io; java.util; org.apache.commons;
1,992,362
public boolean render( InternalContextAdapter context, Writer writer) throws IOException, MethodInvocationException { try { rsvc.getLogContext().pushLogContext(this, uberInfo); SpaceGobbling spaceGobbling = rsvc.getSpaceGobbling(); if (m...
boolean function( InternalContextAdapter context, Writer writer) throws IOException, MethodInvocationException { try { rsvc.getLogContext().pushLogContext(this, uberInfo); SpaceGobbling spaceGobbling = rsvc.getSpaceGobbling(); if (morePrefix.length() > 0 spaceGobbling.compareTo(SpaceGobbling.LINES) < 0) { writer.write(...
/** * puts the value of the RHS into the context under the key of the LHS * @param context * @param writer * @return True if rendering was sucessful. * @throws IOException * @throws MethodInvocationException */
puts the value of the RHS into the context under the key of the LHS
render
{ "repo_name": "apache/velocity-engine", "path": "velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTSetDirective.java", "license": "apache-2.0", "size": 8658 }
[ "java.io.IOException", "java.io.Writer", "org.apache.velocity.app.event.EventHandlerUtil", "org.apache.velocity.context.InternalContextAdapter", "org.apache.velocity.exception.MethodInvocationException", "org.apache.velocity.runtime.RuntimeConstants" ]
import java.io.IOException; import java.io.Writer; import org.apache.velocity.app.event.EventHandlerUtil; import org.apache.velocity.context.InternalContextAdapter; import org.apache.velocity.exception.MethodInvocationException; import org.apache.velocity.runtime.RuntimeConstants;
import java.io.*; import org.apache.velocity.app.event.*; import org.apache.velocity.context.*; import org.apache.velocity.exception.*; import org.apache.velocity.runtime.*;
[ "java.io", "org.apache.velocity" ]
java.io; org.apache.velocity;
2,354,418
buttonGroup1 = new javax.swing.ButtonGroup(); buttonGroup2 = new javax.swing.ButtonGroup(); buttonGroup3 = new javax.swing.ButtonGroup(); buttonGroup4 = new javax.swing.ButtonGroup(); buttonGroup5 = new javax.swing.ButtonGroup(); buttonGroup6 = new javax.swing.ButtonGroup...
buttonGroup1 = new javax.swing.ButtonGroup(); buttonGroup2 = new javax.swing.ButtonGroup(); buttonGroup3 = new javax.swing.ButtonGroup(); buttonGroup4 = new javax.swing.ButtonGroup(); buttonGroup5 = new javax.swing.ButtonGroup(); buttonGroup6 = new javax.swing.ButtonGroup(); buttonGroup7 = new javax.swing.ButtonGroup()...
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. regenerated by the Form Editor
initComponents
{ "repo_name": "Mentz/PPRCarTrade", "path": "PPRCarTrade/src/Apresentacao/TelaBuscarProprietario.java", "license": "gpl-3.0", "size": 15636 }
[ "javax.swing.ButtonGroup" ]
import javax.swing.ButtonGroup;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
866,183
public CTypeInfo bindToType( XSComponent sc, XSComponent referer ) { return _bindToClass(sc,referer,false); } // // some schema components are guaranteed to map to a particular CTypeInfo. // the following versions capture those constraints in the signature // and making the bindToType i...
CTypeInfo function( XSComponent sc, XSComponent referer ) { return _bindToClass(sc,referer,false); } //
/** * Checks if the given component is being mapped to a type. * If so, build that type and return that object. * If it is not being mapped to a type item, return null. */
Checks if the given component is being mapped to a type. If so, build that type and return that object. If it is not being mapped to a type item, return null
bindToType
{ "repo_name": "TheTypoMaster/Scaper", "path": "openjdk/jaxws/drop_included/jaxws_src/src/com/sun/tools/internal/xjc/reader/xmlschema/ClassSelector.java", "license": "gpl-2.0", "size": 17397 }
[ "com.sun.tools.internal.xjc.model.CTypeInfo", "com.sun.xml.internal.xsom.XSComponent" ]
import com.sun.tools.internal.xjc.model.CTypeInfo; import com.sun.xml.internal.xsom.XSComponent;
import com.sun.tools.internal.xjc.model.*; import com.sun.xml.internal.xsom.*;
[ "com.sun.tools", "com.sun.xml" ]
com.sun.tools; com.sun.xml;
852,004
public final List<MoleFraction> getComponents() { return components; } public Mixture(final List<MoleFraction> components) { log.entry(components); double total = 0; for (MoleFraction x: components) { if (x.fraction < 0) { throw new Illegal...
final List<MoleFraction> function() { return components; } public Mixture(final List<MoleFraction> components) { log.entry(components); double total = 0; for (MoleFraction x: components) { if (x.fraction < 0) { throw new IllegalArgumentException(STR + x.fraction + STR + x.compound); } total += x.fraction; } if (total <...
/** * Get all the components in this mixture. * * @return the MoleFractions */
Get all the components in this mixture
getComponents
{ "repo_name": "klamonte/chemescribbles", "path": "src/cheme/compounds/Mixture.java", "license": "mit", "size": 5002 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,542,239
@Test public void test2() { testMethod(getMethod("setNode", Node.class, int.class, Node.class), inputs, node, 1, i2); }
void function() { testMethod(getMethod(STR, Node.class, int.class, Node.class), inputs, node, 1, i2); }
/** * Checks that there are no checkcasts in the compiled version of * {@link Edges#setNode(Node, int, Node)}. */
Checks that there are no checkcasts in the compiled version of <code>Edges#setNode(Node, int, Node)</code>
test2
{ "repo_name": "graalvm/graal-core", "path": "graal/org.graalvm.compiler.replacements.test/src/org/graalvm/compiler/replacements/test/EdgesTest.java", "license": "gpl-2.0", "size": 5283 }
[ "org.graalvm.compiler.graph.Node" ]
import org.graalvm.compiler.graph.Node;
import org.graalvm.compiler.graph.*;
[ "org.graalvm.compiler" ]
org.graalvm.compiler;
992,991
protected void reportWrongNumberArgs() throws WrongNumberArgsException { throw new WrongNumberArgsException(XSLMessages.createXPATHMessage("gtone", null)); }
void function() throws WrongNumberArgsException { throw new WrongNumberArgsException(XSLMessages.createXPATHMessage("gtone", null)); }
/** * Constructs and throws a WrongNumberArgException with the appropriate * message for this function object. * * @throws WrongNumberArgsException */
Constructs and throws a WrongNumberArgException with the appropriate message for this function object
reportWrongNumberArgs
{ "repo_name": "md-5/jdk10", "path": "src/java.xml/share/classes/com/sun/org/apache/xpath/internal/functions/FuncConcat.java", "license": "gpl-2.0", "size": 2800 }
[ "com.sun.org.apache.xalan.internal.res.XSLMessages" ]
import com.sun.org.apache.xalan.internal.res.XSLMessages;
import com.sun.org.apache.xalan.internal.res.*;
[ "com.sun.org" ]
com.sun.org;
1,424,333
Map<Integer, Map<InetAddress, Set<String>>> getNodeIPAddressServiceMap(String rule) throws FilterParseException;
Map<Integer, Map<InetAddress, Set<String>>> getNodeIPAddressServiceMap(String rule) throws FilterParseException;
/** * Retrieve a mapping of IP-services scoped by node that match the given rule. * * @param rule filter rule to evaluate * @return map of IP-services * @throws FilterParseException if the rule is invalid */
Retrieve a mapping of IP-services scoped by node that match the given rule
getNodeIPAddressServiceMap
{ "repo_name": "jeffgdotorg/opennms", "path": "opennms-config-api/src/main/java/org/opennms/netmgt/filter/api/FilterDao.java", "license": "gpl-2.0", "size": 4462 }
[ "java.net.InetAddress", "java.util.Map", "java.util.Set" ]
import java.net.InetAddress; import java.util.Map; import java.util.Set;
import java.net.*; import java.util.*;
[ "java.net", "java.util" ]
java.net; java.util;
1,841,833
void removeMouseListener(MouseAdapter mouseListener);
void removeMouseListener(MouseAdapter mouseListener);
/** * Removes the given mouse listener. * * @param mouseListener the mouse listener that will be removed. * @since 2.4.0 */
Removes the given mouse listener
removeMouseListener
{ "repo_name": "JordanGS/zaproxy", "path": "src/org/zaproxy/zap/extension/script/ScriptUI.java", "license": "apache-2.0", "size": 2344 }
[ "java.awt.event.MouseAdapter" ]
import java.awt.event.MouseAdapter;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
2,317,778
void loadConfiguration(boolean forceReload) throws ConfigurationException, IOException;
void loadConfiguration(boolean forceReload) throws ConfigurationException, IOException;
/** * Explicit loading of configuration. Enables to force reloading of config. */
Explicit loading of configuration. Enables to force reloading of config
loadConfiguration
{ "repo_name": "scmod/nexus-public", "path": "components/nexus-core/src/main/java/org/sonatype/nexus/configuration/application/NexusConfiguration.java", "license": "epl-1.0", "size": 2393 }
[ "java.io.IOException", "org.sonatype.configuration.ConfigurationException" ]
import java.io.IOException; import org.sonatype.configuration.ConfigurationException;
import java.io.*; import org.sonatype.configuration.*;
[ "java.io", "org.sonatype.configuration" ]
java.io; org.sonatype.configuration;
2,349,439
@Override public Map getAvailableDAs() throws RemoteException { return availableDAs; }
Map function() throws RemoteException { return availableDAs; }
/** * Return a Map with all the available DAs in the system. The keys of the Map are the DAs' * ID and the values are the related Capabilities object. * * @return A Map with DA identifiers as key and Capabilities object as value */
Return a Map with all the available DAs in the system. The keys of the Map are the DAs' ID and the values are the related Capabilities object
getAvailableDAs
{ "repo_name": "bratwurzt/ProtocolAdapterManager", "path": "app/src/main/java/eu/fistar/sdcs/pa/PAManagerService.java", "license": "lgpl-3.0", "size": 43173 }
[ "android.os.RemoteException", "java.util.Map" ]
import android.os.RemoteException; import java.util.Map;
import android.os.*; import java.util.*;
[ "android.os", "java.util" ]
android.os; java.util;
1,189,013
public float aggregate(final cern.colt.function.tfloat.FloatFloatFunction aggr, final cern.colt.function.tfloat.FloatFunction f, final IntArrayList indexList) { if (size() == 0) return Float.NaN; final int size = indexList.size(); final int[] indexElements = inde...
float function(final cern.colt.function.tfloat.FloatFloatFunction aggr, final cern.colt.function.tfloat.FloatFunction f, final IntArrayList indexList) { if (size() == 0) return Float.NaN; final int size = indexList.size(); final int[] indexElements = indexList.elements(); float a = 0; int nthreads = ConcurrencyUtils.ge...
/** * * Applies a function to all cells with a given indexes and aggregates the * results. * * @param aggr * an aggregation function taking as first argument the current * aggregation and as second argument the transformed current * cell...
Applies a function to all cells with a given indexes and aggregates the results
aggregate
{ "repo_name": "Shappiro/GEOFRAME", "path": "PROJECTS/oms3.proj.richards1d/src/JAVA/parallelcolt-code/src/cern/colt/matrix/tfloat/FloatMatrix1D.java", "license": "gpl-3.0", "size": 66542 }
[ "edu.emory.mathcs.utils.ConcurrencyUtils", "java.util.concurrent.Callable", "java.util.concurrent.Future" ]
import edu.emory.mathcs.utils.ConcurrencyUtils; import java.util.concurrent.Callable; import java.util.concurrent.Future;
import edu.emory.mathcs.utils.*; import java.util.concurrent.*;
[ "edu.emory.mathcs", "java.util" ]
edu.emory.mathcs; java.util;
2,716,073
public Attributes getCurrentAttributes() { return currentAtts; } private StringBuffer text = new StringBuffer(); private NGCCEventReceiver currentHandler;
Attributes function() { return currentAtts; } private StringBuffer text = new StringBuffer(); private NGCCEventReceiver currentHandler;
/** * Attributes that belong to the current element. * <p> * It's generally not recommended for applications to use * this method. RelaxNGCC internally removes processed attributes, * so this doesn't correctly reflect all the attributes an element * carries. */
Attributes that belong to the current element. It's generally not recommended for applications to use this method. RelaxNGCC internally removes processed attributes, so this doesn't correctly reflect all the attributes an element carries
getCurrentAttributes
{ "repo_name": "universsky/openjdk", "path": "jaxws/src/jdk.xml.bind/share/classes/com/sun/tools/internal/jxc/gen/config/NGCCRuntime.java", "license": "gpl-2.0", "size": 18034 }
[ "org.xml.sax.Attributes" ]
import org.xml.sax.Attributes;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
58,812
interface WithTracks { Update withTracks(List<FilterTrackSelection> tracks); } }
interface WithTracks { Update withTracks(List<FilterTrackSelection> tracks); } }
/** * Specifies tracks. * @param tracks The tracks selection conditions * @return the next update stage */
Specifies tracks
withTracks
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/mediaservices/mgmt-v2019_05_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2019_05_01_preview/AssetFilter.java", "license": "mit", "size": 5918 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
158,325
@Override public int numChildren(Position<T> position) { NAryNode<T> node = treeNode(position); return node.hasChilds() ? node.childs.size() : 0; }
int function(Position<T> position) { NAryNode<T> node = treeNode(position); return node.hasChilds() ? node.childs.size() : 0; }
/** * Number of childs for the given position * * @param position * @return */
Number of childs for the given position
numChildren
{ "repo_name": "pdoro/data-structures-and-algorithms", "path": "src/main/java/com/pdomingo/data_structures/implementations/tree/LinkedTree.java", "license": "mit", "size": 5264 }
[ "com.pdomingo.data_structures.interfaces.Position" ]
import com.pdomingo.data_structures.interfaces.Position;
import com.pdomingo.data_structures.interfaces.*;
[ "com.pdomingo.data_structures" ]
com.pdomingo.data_structures;
748,496
@Override public void paintComponent(Graphics g) { g.drawImage(background, 0, 0, null); // Do not call; destroys background. Components are still painted regardless. // super.paintComponent(g); } private static final class BigWorldButton extends JButton { private static final long serialVersio...
@Override void function(Graphics g) { g.drawImage(background, 0, 0, null); } private static final class BigWorldButton extends JButton { private static final long serialVersionUID = 1L; public BigWorldButton(BufferedImage up, BufferedImage down) { super(); setIcon(new ImageIcon(up) ); setSize(BIG_BUTTON_WIDTH, BIG_BUTT...
/** * * Paint the standard button components for clicking, but everything else can easily just be painted on since they * aren't interactive. * */
Paint the standard button components for clicking, but everything else can easily just be painted on since they aren't interactive
paintComponent
{ "repo_name": "ErikaRedmark/monkey-shines-java-port", "path": "Monkey Shines/src/org/erikaredmark/monkeyshines/menu/SelectAWorld.java", "license": "gpl-3.0", "size": 15072 }
[ "java.awt.Graphics", "java.awt.image.BufferedImage", "javax.swing.ImageIcon", "javax.swing.JButton" ]
import java.awt.Graphics; import java.awt.image.BufferedImage; import javax.swing.ImageIcon; import javax.swing.JButton;
import java.awt.*; import java.awt.image.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
1,960,536
//----------------------------------------------------------------------- private static Date set(final Date date, final int calendarField, final int amount) { validateDateNotNull(date); // getInstance() returns a new object, so this method is thread safe. final Calendar c = Calendar.ge...
static Date function(final Date date, final int calendarField, final int amount) { validateDateNotNull(date); final Calendar c = Calendar.getInstance(); c.setLenient(false); c.setTime(date); c.set(calendarField, amount); return c.getTime(); }
/** * Sets the specified field to a date returning a new object. * This does not use a lenient calendar. * The original {@code Date} is unchanged. * * @param date the date, not null * @param calendarField the {@code Calendar} field to set the amount to * @param amount the amount to ...
Sets the specified field to a date returning a new object. This does not use a lenient calendar. The original Date is unchanged
set
{ "repo_name": "MarkDacek/commons-lang", "path": "src/main/java/org/apache/commons/lang3/time/DateUtils.java", "license": "apache-2.0", "size": 80651 }
[ "java.util.Calendar", "java.util.Date" ]
import java.util.Calendar; import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,449,225
public boolean isChibiPresent() throws TimeoutException, NotConnectedException { ByteBuffer bb = ipcon.createRequestPacket((byte)8, FUNCTION_IS_CHIBI_PRESENT, this); byte[] response = sendRequest(bb.array()); bb = ByteBuffer.wrap(response, 8, response.length - 8); bb.order(ByteOrder.LITTLE_ENDIAN); bool...
boolean function() throws TimeoutException, NotConnectedException { ByteBuffer bb = ipcon.createRequestPacket((byte)8, FUNCTION_IS_CHIBI_PRESENT, this); byte[] response = sendRequest(bb.array()); bb = ByteBuffer.wrap(response, 8, response.length - 8); bb.order(ByteOrder.LITTLE_ENDIAN); boolean present = (bb.get()) != 0...
/** * Returns *true* if a Chibi Extension is available to be used by the Master Brick. * * .. versionadded:: 1.1.0~(Firmware) */
Returns *true* if a Chibi Extension is available to be used by the Master Brick. .. versionadded:: 1.1.0~(Firmware)
isChibiPresent
{ "repo_name": "jaggr2/ch.bfh.fbi.mobiComp.17herz", "path": "com.tinkerforge/src/com/tinkerforge/BrickMaster.java", "license": "apache-2.0", "size": 85810 }
[ "java.nio.ByteBuffer", "java.nio.ByteOrder" ]
import java.nio.ByteBuffer; import java.nio.ByteOrder;
import java.nio.*;
[ "java.nio" ]
java.nio;
2,709,322
private void readData(long absolutePosition, ByteBuffer target, int length) { int remaining = length; while (remaining > 0) { dropDownstreamTo(absolutePosition); int positionInAllocation = (int) (absolutePosition - totalBytesDropped); int toCopy = Math.min(remaining, allocationLength - posit...
void function(long absolutePosition, ByteBuffer target, int length) { int remaining = length; while (remaining > 0) { dropDownstreamTo(absolutePosition); int positionInAllocation = (int) (absolutePosition - totalBytesDropped); int toCopy = Math.min(remaining, allocationLength - positionInAllocation); Allocation allocat...
/** * Reads data from the front of the rolling buffer. * * @param absolutePosition The absolute position from which data should be read. * @param target The buffer into which data should be written. * @param length The number of bytes to read. */
Reads data from the front of the rolling buffer
readData
{ "repo_name": "eriuzo/ExoPlayer", "path": "library/src/main/java/com/google/android/exoplayer/extractor/RollingSampleBuffer.java", "license": "apache-2.0", "size": 24681 }
[ "com.google.android.exoplayer.upstream.Allocation", "java.nio.ByteBuffer" ]
import com.google.android.exoplayer.upstream.Allocation; import java.nio.ByteBuffer;
import com.google.android.exoplayer.upstream.*; import java.nio.*;
[ "com.google.android", "java.nio" ]
com.google.android; java.nio;
568,491
public DeveloperIpPersistence getDeveloperIpPersistence() { return developerIpPersistence; }
DeveloperIpPersistence function() { return developerIpPersistence; }
/** * Returns the developer ip persistence. * * @return the developer ip persistence */
Returns the developer ip persistence
getDeveloperIpPersistence
{ "repo_name": "queza85/edison", "path": "edison-portal-framework/edison-appstore-2016-portlet/docroot/WEB-INF/src/org/kisti/edison/science/service/base/CommonModuleServiceBaseImpl.java", "license": "gpl-3.0", "size": 52478 }
[ "org.kisti.edison.science.service.persistence.DeveloperIpPersistence" ]
import org.kisti.edison.science.service.persistence.DeveloperIpPersistence;
import org.kisti.edison.science.service.persistence.*;
[ "org.kisti.edison" ]
org.kisti.edison;
2,543,282
private List<Value> getSisterValues(Axis axis, Value value) { List<Value> values = axis.getValues(); String motherId = value.getMotherId(); String valueId = value.getPK().getId(); List<Value> sisterValues = new ArrayList<Value>(); Value daughterValue = null; // values which are under the current a...
List<Value> function(Axis axis, Value value) { List<Value> values = axis.getValues(); String motherId = value.getMotherId(); String valueId = value.getPK().getId(); List<Value> sisterValues = new ArrayList<Value>(); Value daughterValue = null; Iterator<Value> it = values.iterator(); while (it.hasNext()) { daughterValue...
/** * Search sisters values of a Value from an axe. * @param axis - A primary or secondary list of axes * @param value - a value of the axe * @return the list of sisters */
Search sisters values of a Value from an axe
getSisterValues
{ "repo_name": "SilverDav/Silverpeas-Core", "path": "core-war/src/main/java/org/silverpeas/web/pdc/servlets/PdcRequestRouter.java", "license": "agpl-3.0", "size": 33290 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.List", "org.silverpeas.core.pdc.pdc.model.Axis", "org.silverpeas.core.pdc.pdc.model.Value" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.silverpeas.core.pdc.pdc.model.Axis; import org.silverpeas.core.pdc.pdc.model.Value;
import java.util.*; import org.silverpeas.core.pdc.pdc.model.*;
[ "java.util", "org.silverpeas.core" ]
java.util; org.silverpeas.core;
574,070
@Idempotent public BatchedEntries<EncryptionZone> listEncryptionZones( long prevId) throws IOException;
BatchedEntries<EncryptionZone> function( long prevId) throws IOException;
/** * Used to implement cursor-based batched listing of {@EncryptionZone}s. * * @param prevId ID of the last item in the previous batch. If there is no * previous batch, a negative value can be used. * @return Batch of encryption zones. */
Used to implement cursor-based batched listing of s
listEncryptionZones
{ "repo_name": "bysslord/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/protocol/ClientProtocol.java", "license": "apache-2.0", "size": 58964 }
[ "java.io.IOException", "org.apache.hadoop.fs.BatchedRemoteIterator" ]
import java.io.IOException; import org.apache.hadoop.fs.BatchedRemoteIterator;
import java.io.*; import org.apache.hadoop.fs.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,063,264
public void readPacketData(PacketBuffer buf) throws IOException { this.entityID = buf.readVarInt(); this.action = (CPacketEntityAction.Action)buf.readEnumValue(CPacketEntityAction.Action.class); this.auxData = buf.readVarInt(); }
void function(PacketBuffer buf) throws IOException { this.entityID = buf.readVarInt(); this.action = (CPacketEntityAction.Action)buf.readEnumValue(CPacketEntityAction.Action.class); this.auxData = buf.readVarInt(); }
/** * Reads the raw packet data from the data stream. */
Reads the raw packet data from the data stream
readPacketData
{ "repo_name": "Severed-Infinity/technium", "path": "build/tmp/recompileMc/sources/net/minecraft/network/play/client/CPacketEntityAction.java", "license": "gpl-3.0", "size": 2214 }
[ "java.io.IOException", "net.minecraft.network.PacketBuffer" ]
import java.io.IOException; import net.minecraft.network.PacketBuffer;
import java.io.*; import net.minecraft.network.*;
[ "java.io", "net.minecraft.network" ]
java.io; net.minecraft.network;
662,736
public float getCurrentSpan() { if (mCurrLen == -1) { final float cvx = mCurrFingerDiffX; final float cvy = mCurrFingerDiffY; mCurrLen = FloatMath.sqrt(cvx*cvx + cvy*cvy); } return mCurrLen; }
float function() { if (mCurrLen == -1) { final float cvx = mCurrFingerDiffX; final float cvy = mCurrFingerDiffY; mCurrLen = FloatMath.sqrt(cvx*cvx + cvy*cvy); } return mCurrLen; }
/** * Return the current distance between the two pointers forming the gesture in progress * * @return Distance between pointers in pixels. */
Return the current distance between the two pointers forming the gesture in progress
getCurrentSpan
{ "repo_name": "alex-ception/deadhal", "path": "src/fr/upem/android/deadhal/utils/TwoFingerGestureDetector.java", "license": "mit", "size": 5102 }
[ "android.util.FloatMath" ]
import android.util.FloatMath;
import android.util.*;
[ "android.util" ]
android.util;
2,187,057
public void addStateListener(ChangeListener l) { if (!stateListeners.contains(l)) stateListeners.add(l); }
void function(ChangeListener l) { if (!stateListeners.contains(l)) stateListeners.add(l); }
/** * Add a listener to be notified when the state changes. * */
Add a listener to be notified when the state changes
addStateListener
{ "repo_name": "mickleness/pumpernickel", "path": "src/main/java/com/pump/job/SampleJobExecutor.java", "license": "mit", "size": 6541 }
[ "javax.swing.event.ChangeListener" ]
import javax.swing.event.ChangeListener;
import javax.swing.event.*;
[ "javax.swing" ]
javax.swing;
1,599,283
public int read(byte b[], int off, int len) throws IOException, CardTerminalException { byte[] data = fileSystem.read(file.getPath(), filePointer, len); if (data == null) return -1; System.arraycopy(data, 0, b, off, data.length); filePointer += data.length; ...
int function(byte b[], int off, int len) throws IOException, CardTerminalException { byte[] data = fileSystem.read(file.getPath(), filePointer, len); if (data == null) return -1; System.arraycopy(data, 0, b, off, data.length); filePointer += data.length; return data.length; }
/** Reads a sub array as a sequence of bytes. * * @param b * the buffer to read the data into * @param off * The start offset in the data buffer * @param len * The number of bytes to read * @return The actual number of bytes read, <tt>-...
Reads a sub array as a sequence of bytes
read
{ "repo_name": "zeroDenial/CNSReader", "path": "ocf/opencard/opt/iso/fs/CardRandomByteAccess.java", "license": "gpl-2.0", "size": 23305 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,202,021
public void setAnnotateColorRGB(int x, int y, float[] value) { int index = getPixMapIndex(x,y); pixmap.put(index, value[0]); pixmap.put(index+1, value[1]); pixmap.put(index+2, value[2]); } // public void setPixmapPosition(int x, int y) { // pixmap.position(3 * ...
void function(int x, int y, float[] value) { int index = getPixMapIndex(x,y); pixmap.put(index, value[0]); pixmap.put(index+1, value[1]); pixmap.put(index+2, value[2]); } protected FloatBuffer grayBuffer;
/** * sets a specific color (rgb float 0-1) of the pixmap * * @param x * @param y * @param value */
sets a specific color (rgb float 0-1) of the pixmap
setAnnotateColorRGB
{ "repo_name": "viktorbahr/jaer", "path": "src/net/sf/jaer/graphics/Chip2DRenderer.java", "license": "lgpl-2.1", "size": 13372 }
[ "java.nio.FloatBuffer" ]
import java.nio.FloatBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
891,001
public List<InstallState> getInstallStates() { return InstallState.all(); }
List<InstallState> function() { return InstallState.all(); }
/** * Gets all the install states */
Gets all the install states
getInstallStates
{ "repo_name": "oleg-nenashev/jenkins", "path": "core/src/main/java/jenkins/install/SetupWizard.java", "license": "mit", "size": 27422 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,444,818
void handleAfterAttributeName() { boolean ws = consumeWhitespace(); int current = currentChar(); if (current == '=') { SourceLocation.Point equalsSignPoint = currentPoint(); advance(); consume(); // eat the '=' consumeWhitespace(); context.setEqualsSignLocat...
void handleAfterAttributeName() { boolean ws = consumeWhitespace(); int current = currentChar(); if (current == '=') { SourceLocation.Point equalsSignPoint = currentPoint(); advance(); consume(); consumeWhitespace(); context.setEqualsSignLocation(equalsSignPoint, currentPointOrEnd()); } else { context.setState( ws ? St...
/** * Handle immediately after an attribute name. * * <p>Look for an '=' sign to signal the presence of an attribute value */
Handle immediately after an attribute name. Look for an '=' sign to signal the presence of an attribute value
handleAfterAttributeName
{ "repo_name": "google/closure-templates", "path": "java/src/com/google/template/soy/soyparse/HtmlRewriter.java", "license": "apache-2.0", "size": 103732 }
[ "com.google.template.soy.base.SourceLocation" ]
import com.google.template.soy.base.SourceLocation;
import com.google.template.soy.base.*;
[ "com.google.template" ]
com.google.template;
1,595,325
public void fillParamValues(CmsWorkplaceSettings settings, HttpServletRequest request) { initSettings(settings, request); fillParamValues(request); }
void function(CmsWorkplaceSettings settings, HttpServletRequest request) { initSettings(settings, request); fillParamValues(request); }
/** * First sets site and project in the workplace settings, then fills all class parameter values from the data * provided in the current request.<p> * * @param settings the workplace settings * @param request the current request */
First sets site and project in the workplace settings, then fills all class parameter values from the data provided in the current request
fillParamValues
{ "repo_name": "alkacon/opencms-core", "path": "src/org/opencms/workplace/CmsWorkplace.java", "license": "lgpl-2.1", "size": 95168 }
[ "javax.servlet.http.HttpServletRequest" ]
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
1,752,494
public OverrideAccountType getType() { return type; }
OverrideAccountType function() { return type; }
/** * Get type * @return type **/
Get type
getType
{ "repo_name": "plaid/plaid-java", "path": "src/main/java/com/plaid/client/model/OverrideAccounts.java", "license": "mit", "size": 13904 }
[ "com.plaid.client.model.OverrideAccountType" ]
import com.plaid.client.model.OverrideAccountType;
import com.plaid.client.model.*;
[ "com.plaid.client" ]
com.plaid.client;
2,443,319
public boolean isEquivalent(FragmentIonAnnotation fragment) { boolean retVal = false; if (this.peptide_id == fragment.peptide_id && this.accession_ion_type.equalsIgnoreCase(fragment.accession_ion_type) && this.fragment_ion_number == fragment.fragment_ion_number &&...
boolean function(FragmentIonAnnotation fragment) { boolean retVal = false; if (this.peptide_id == fragment.peptide_id && this.accession_ion_type.equalsIgnoreCase(fragment.accession_ion_type) && this.fragment_ion_number == fragment.fragment_ion_number && MathUtils.equalValues(this.mz, fragment.mz, 0.0001)) { retVal = tr...
/** * For this purpose two fragment ion annotations are considered equivalent * if they annotate the same peptide, the same m/z value * and are of the same ion type + number. * * @param fragment the FragmentIonAnnotation to check against. * @return true if the provided annotation is ...
For this purpose two fragment ion annotations are considered equivalent if they annotate the same peptide, the same m/z value and are of the same ion type + number
isEquivalent
{ "repo_name": "compomics/pride-asa-pipeline", "path": "pride-asa-pipeline-model/src/main/java/com/compomics/pride_asa_pipeline/model/FragmentIonAnnotation.java", "license": "apache-2.0", "size": 16920 }
[ "com.compomics.pride_asa_pipeline.model.util.MathUtils" ]
import com.compomics.pride_asa_pipeline.model.util.MathUtils;
import com.compomics.pride_asa_pipeline.model.util.*;
[ "com.compomics.pride_asa_pipeline" ]
com.compomics.pride_asa_pipeline;
1,503,303
boolean isSuccessful() throws IOException;
boolean isSuccessful() throws IOException;
/** * Returns a boolean indicating whether the MapReduce job was successful * * @return a boolean indicating whether the MapReduce job was successful * @throws IOException */
Returns a boolean indicating whether the MapReduce job was successful
isSuccessful
{ "repo_name": "kurtwalker/big-data-plugin", "path": "api/mapreduce/src/main/java/org/pentaho/bigdata/api/mapreduce/MapReduceJob.java", "license": "apache-2.0", "size": 2319 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,310,329
public static final Boolean containsMatch(TLFunctionCallContext context, String input, String pattern) { Matcher m = ((TLRegexpCache) context.getCache()).getCachedMatcher(context, pattern).reset(input); return m.find(); }
static final Boolean function(TLFunctionCallContext context, String input, String pattern) { Matcher m = ((TLRegexpCache) context.getCache()).getCachedMatcher(context, pattern).reset(input); return m.find(); }
/** * This function should NOT be annotated. * The code is here so that it can be called from the interpreter and compiler * in CLVFComparison. */
This function should NOT be annotated. The code is here so that it can be called from the interpreter and compiler in CLVFComparison
containsMatch
{ "repo_name": "CloverETL/CloverETL-Engine", "path": "cloveretl.engine/src/org/jetel/ctl/extensions/IntegralLib.java", "license": "lgpl-2.1", "size": 6399 }
[ "java.util.regex.Matcher" ]
import java.util.regex.Matcher;
import java.util.regex.*;
[ "java.util" ]
java.util;
2,746,357
ProcessInstance startProcess(String processId, Map<String, Object> parameters);
ProcessInstance startProcess(String processId, Map<String, Object> parameters);
/** * Start a new process instance. The process (definition) that should * be used is referenced by the given process id. Parameters can be passed * to the process instance (as name-value pairs), and these will be set * as variables of the process instance. * * @param processId the id o...
Start a new process instance. The process (definition) that should be used is referenced by the given process id. Parameters can be passed to the process instance (as name-value pairs), and these will be set as variables of the process instance
startProcess
{ "repo_name": "etirelli/droolsjbpm-knowledge", "path": "kie-api/src/main/java/org/kie/api/runtime/process/ProcessRuntime.java", "license": "apache-2.0", "size": 7625 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,796,433
@Override final AbstractCRS createSameType(final Map<String,?> properties, final CoordinateSystem cs) { return new DefaultTemporalCRS(properties, datum, (TimeCS) cs); }
final AbstractCRS createSameType(final Map<String,?> properties, final CoordinateSystem cs) { return new DefaultTemporalCRS(properties, datum, (TimeCS) cs); }
/** * Returns a coordinate reference system of the same type than this CRS but with different axes. */
Returns a coordinate reference system of the same type than this CRS but with different axes
createSameType
{ "repo_name": "apache/sis", "path": "core/sis-referencing/src/main/java/org/apache/sis/referencing/crs/DefaultTemporalCRS.java", "license": "apache-2.0", "size": 20814 }
[ "java.util.Map", "org.opengis.referencing.cs.CoordinateSystem", "org.opengis.referencing.cs.TimeCS" ]
import java.util.Map; import org.opengis.referencing.cs.CoordinateSystem; import org.opengis.referencing.cs.TimeCS;
import java.util.*; import org.opengis.referencing.cs.*;
[ "java.util", "org.opengis.referencing" ]
java.util; org.opengis.referencing;
1,723,189
@Nonnull public OtrOutputStream writeMacOTR4(final byte[] mac) { requireLengthExactly(MAC_OTR4_LENGTH_BYTES, mac); assert !allZeroBytes(mac) : "Expected OTRv4 MAC to contain non-zero bytes."; this.out.write(mac, 0, MAC_OTR4_LENGTH_BYTES); return this; }
OtrOutputStream function(final byte[] mac) { requireLengthExactly(MAC_OTR4_LENGTH_BYTES, mac); assert !allZeroBytes(mac) : STR; this.out.write(mac, 0, MAC_OTR4_LENGTH_BYTES); return this; }
/** * Write an OTRv4 MAC. * * @param mac 64-byte MAC as used in OTRv4 * @return Returns this instance of OtrOutputStream such that method calls can be chained. */
Write an OTRv4 MAC
writeMacOTR4
{ "repo_name": "otr4j/otr4j", "path": "src/main/java/net/java/otr4j/io/OtrOutputStream.java", "license": "lgpl-3.0", "size": 14060 }
[ "net.java.otr4j.util.ByteArrays" ]
import net.java.otr4j.util.ByteArrays;
import net.java.otr4j.util.*;
[ "net.java.otr4j" ]
net.java.otr4j;
419,957
public static void setLocale( final Locale newLocale ) { final Locale locale; if( newLocale == null ) { locale = Locale.getDefault( ); } else { locale = newLocale; } Locale.setDefault( locale ); PluginsManager.set...
static void function( final Locale newLocale ) { final Locale locale; if( newLocale == null ) { locale = Locale.getDefault( ); } else { locale = newLocale; } Locale.setDefault( locale ); PluginsManager.setLocale( locale ); FreeGuide.log.fine( STR + locale.getDisplayName( ) ); }
/** * Sets the locale language used for translation * * @param newLocale The new locale */
Sets the locale language used for translation
setLocale
{ "repo_name": "andybalaam/freeguide", "path": "src/freeguide/plugins/program/freeguide/FreeGuide.java", "license": "gpl-2.0", "size": 16296 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
1,138,918
List<Object> getColumnNames();
List<Object> getColumnNames();
/** * Returns the columnNames fitting the analysis run. * * @return columnNames for the current analysis run. */
Returns the columnNames fitting the analysis run
getColumnNames
{ "repo_name": "rhilker/ReadXplorer", "path": "readxplorer-tools-transcriptionanalyses/src/main/java/de/cebitec/readxplorer/transcriptionanalyses/differentialexpression/expresstest/ExpressTestI.java", "license": "gpl-3.0", "size": 3002 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,189,673
public static void setContext (Properties ctx, int WindowNo, int TabNo, String context, String value) { if (ctx == null || context == null) return; if (WindowNo != WINDOW_FIND && WindowNo != WINDOW_MLOOKUP) s_log.finest("Context("+WindowNo+","+TabNo+") " + context + "==" + value); // if (value ...
static void function (Properties ctx, int WindowNo, int TabNo, String context, String value) { if (ctx == null context == null) return; if (WindowNo != WINDOW_FIND && WindowNo != WINDOW_MLOOKUP) s_log.finest(STR+WindowNo+","+TabNo+STR + context + "==" + value); if (value == null) if (context.endsWith("_ID")) value = ne...
/** * Set Context for Window & Tab to Value * @param ctx context * @param WindowNo window no * @param TabNo tab no * @param context context key * @param value context value * */
Set Context for Window & Tab to Value
setContext
{ "repo_name": "arthurmelo88/palmetalADP", "path": "adempiereTrunk/base/src/org/compiere/util/Env.java", "license": "gpl-2.0", "size": 50099 }
[ "java.util.Properties" ]
import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
770,689
public void addListener(SystemCaptioningBridgeListener listener) { mListeners.put(listener, null); }
void function(SystemCaptioningBridgeListener listener) { mListeners.put(listener, null); }
/** * Add a listener for changes with the system CaptioningManager. * * @param listener The SystemCaptioningBridgeListener object to add. */
Add a listener for changes with the system CaptioningManager
addListener
{ "repo_name": "TheTypoMaster/chromium-crosswalk", "path": "content/public/android/java/src/org/chromium/content/browser/accessibility/captioning/CaptioningChangeDelegate.java", "license": "bsd-3-clause", "size": 12214 }
[ "org.chromium.content.browser.accessibility.captioning.SystemCaptioningBridge" ]
import org.chromium.content.browser.accessibility.captioning.SystemCaptioningBridge;
import org.chromium.content.browser.accessibility.captioning.*;
[ "org.chromium.content" ]
org.chromium.content;
2,659,238
public List<Occupation> getAllEntities(OccupationSearch search, SortCriteria sort){ return occupationDAO.search( search, sort ); }
List<Occupation> function(OccupationSearch search, SortCriteria sort){ return occupationDAO.search( search, sort ); }
/** * List occupations. * @param search search filter to apply * @param sort sorting criteria * @return the list of all occupations sorted by requested criterion */
List occupations
getAllEntities
{ "repo_name": "autentia/TNTConcept", "path": "tntconcept-core/src/main/java/com/autentia/tnt/manager/activity/OccupationManager.java", "license": "gpl-3.0", "size": 2987 }
[ "com.autentia.tnt.businessobject.Occupation", "com.autentia.tnt.dao.SortCriteria", "com.autentia.tnt.dao.search.OccupationSearch", "java.util.List" ]
import com.autentia.tnt.businessobject.Occupation; import com.autentia.tnt.dao.SortCriteria; import com.autentia.tnt.dao.search.OccupationSearch; import java.util.List;
import com.autentia.tnt.businessobject.*; import com.autentia.tnt.dao.*; import com.autentia.tnt.dao.search.*; import java.util.*;
[ "com.autentia.tnt", "java.util" ]
com.autentia.tnt; java.util;
1,247,087
private ByteString getNextSnapshotChunk(String followerId, ByteString snapshotBytes) throws IOException { FollowerToSnapshot followerToSnapshot = mapFollowerToSnapshot.get(followerId); if (followerToSnapshot == null) { followerToSnapshot = new FollowerToSnapshot(snapshotBytes); ...
ByteString function(String followerId, ByteString snapshotBytes) throws IOException { FollowerToSnapshot followerToSnapshot = mapFollowerToSnapshot.get(followerId); if (followerToSnapshot == null) { followerToSnapshot = new FollowerToSnapshot(snapshotBytes); mapFollowerToSnapshot.put(followerId, followerToSnapshot); } ...
/** * Acccepts snaphot as ByteString, enters into map for future chunks * creates and return a ByteString chunk */
Acccepts snaphot as ByteString, enters into map for future chunks creates and return a ByteString chunk
getNextSnapshotChunk
{ "repo_name": "522986491/controller", "path": "opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/behaviors/AbstractLeader.java", "license": "epl-1.0", "size": 39247 }
[ "com.google.protobuf.ByteString", "java.io.IOException" ]
import com.google.protobuf.ByteString; import java.io.IOException;
import com.google.protobuf.*; import java.io.*;
[ "com.google.protobuf", "java.io" ]
com.google.protobuf; java.io;
225,047
public List<IInstallableUnit> getSelectedIUs(){ List<IInstallableUnit> result = new ArrayList<IInstallableUnit>(); for (Object o : getCheckedElements()) { if (o instanceof IUTreeItem) { IUTreeItem item = (IUTreeItem) o; if (item.parent!=null) result.add(item.iu); } }...
List<IInstallableUnit> function(){ List<IInstallableUnit> result = new ArrayList<IInstallableUnit>(); for (Object o : getCheckedElements()) { if (o instanceof IUTreeItem) { IUTreeItem item = (IUTreeItem) o; if (item.parent!=null) result.add(item.iu); } } return result; }
/** * Returns only the installable units that are features, ignoring feature groups. * * @return */
Returns only the installable units that are features, ignoring feature groups
getSelectedIUs
{ "repo_name": "ChallenHB/droolsjbpm-tools", "path": "drools-eclipse/org.kie.eclipse/src/main/java/org/kie/eclipse/wizard/project/IUTreeViewer.java", "license": "apache-2.0", "size": 10298 }
[ "java.util.ArrayList", "java.util.List", "org.eclipse.equinox.p2.metadata.IInstallableUnit" ]
import java.util.ArrayList; import java.util.List; import org.eclipse.equinox.p2.metadata.IInstallableUnit;
import java.util.*; import org.eclipse.equinox.p2.metadata.*;
[ "java.util", "org.eclipse.equinox" ]
java.util; org.eclipse.equinox;
77,209
public static List<mxPoint> parsePoints(String pts) { List<mxPoint> result = new ArrayList<mxPoint>(); if (pts != null) { int len = pts.length(); String tmp = ""; String x = null; for (int i = 0; i < len; i++) { char c = pts.charAt(i); if (c == ',' || c == ' ') { if (x == nu...
static List<mxPoint> function(String pts) { List<mxPoint> result = new ArrayList<mxPoint>(); if (pts != null) { int len = pts.length(); String tmp = STR"; } else { tmp += c; } } result.add(new mxPoint(Double.parseDouble(x), Double .parseDouble(tmp))); } return result; }
/** * Parses the list of points into an object-oriented representation. * * @param pts String containing a list of points. * @return Returns the points as a list of mxPoints. */
Parses the list of points into an object-oriented representation
parsePoints
{ "repo_name": "md-k-sarker/OWLAx", "path": "src/main/java/com/mxgraph/reader/mxGraphViewReader.java", "license": "bsd-2-clause", "size": 5280 }
[ "com.mxgraph.util.mxPoint", "java.util.ArrayList", "java.util.List" ]
import com.mxgraph.util.mxPoint; import java.util.ArrayList; import java.util.List;
import com.mxgraph.util.*; import java.util.*;
[ "com.mxgraph.util", "java.util" ]
com.mxgraph.util; java.util;
1,312,763
Socket createSocket() throws IOException ;
Socket createSocket() throws IOException ;
/** * Creates a new, unconnected socket. * The socket should subsequently be passed to * {@link #connectSocket connectSocket}. * * @return a new socket * * @throws IOException if an I/O error occurs while creating the socket */
Creates a new, unconnected socket. The socket should subsequently be passed to <code>#connectSocket connectSocket</code>
createSocket
{ "repo_name": "syslover33/ctank", "path": "java/android-sdk-linux_r24.4.1_src/sources/android-23/org/apache/http/conn/scheme/SocketFactory.java", "license": "gpl-3.0", "size": 5664 }
[ "java.io.IOException", "java.net.Socket" ]
import java.io.IOException; import java.net.Socket;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
2,217,054
ServerWebExchange exchange();
ServerWebExchange exchange();
/** * Get the web exchange that this request is based on. * <p>Note: Manipulating the exchange directly (instead of using the methods provided on * {@code ServerRequest} and {@code ServerResponse}) can lead to irregular results. * @since 5.1 */
Get the web exchange that this request is based on. Note: Manipulating the exchange directly (instead of using the methods provided on ServerRequest and ServerResponse) can lead to irregular results
exchange
{ "repo_name": "spring-projects/spring-framework", "path": "spring-webflux/src/main/java/org/springframework/web/reactive/function/server/ServerRequest.java", "license": "apache-2.0", "size": 20521 }
[ "org.springframework.web.server.ServerWebExchange" ]
import org.springframework.web.server.ServerWebExchange;
import org.springframework.web.server.*;
[ "org.springframework.web" ]
org.springframework.web;
476,339
TableRow getCurrent() throws NoSuchElementException;
TableRow getCurrent() throws NoSuchElementException;
/** * Returns the value of the data item that was read by the last {@link #start} or * {@link #advance} call. The returned value must be effectively immutable and remain valid * indefinitely. * * <p>Multiple calls to this method without an intervening call to {@link #advance} should * retu...
Returns the value of the data item that was read by the last <code>#start</code> or <code>#advance</code> call. The returned value must be effectively immutable and remain valid indefinitely. Multiple calls to this method without an intervening call to <code>#advance</code> should return the same result
getCurrent
{ "repo_name": "amitsela/incubator-beam", "path": "sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryServices.java", "license": "apache-2.0", "size": 7334 }
[ "com.google.api.services.bigquery.model.TableRow", "java.util.NoSuchElementException" ]
import com.google.api.services.bigquery.model.TableRow; import java.util.NoSuchElementException;
import com.google.api.services.bigquery.model.*; import java.util.*;
[ "com.google.api", "java.util" ]
com.google.api; java.util;
1,136,265
public void testThenCompose_normalCompletion() { for (ExecutionMode m : ExecutionMode.values()) for (boolean createIncomplete : new boolean[] { true, false }) for (Integer v1 : new Integer[] { 1, null }) { final CompletableFuture<Integer> f = new CompletableFuture<>(); fi...
void function() { for (ExecutionMode m : ExecutionMode.values()) for (boolean createIncomplete : new boolean[] { true, false }) for (Integer v1 : new Integer[] { 1, null }) { final CompletableFuture<Integer> f = new CompletableFuture<>(); final CompletableFutureInc r = new CompletableFutureInc(m); if (!createIncomplete...
/** * thenCompose result completes normally after normal completion of source */
thenCompose result completes normally after normal completion of source
testThenCompose_normalCompletion
{ "repo_name": "google/desugar_jdk_libs", "path": "jdk11/src/libcore/ojluni/src/test/java/util/concurrent/tck/CompletableFutureTest.java", "license": "gpl-2.0", "size": 182910 }
[ "java.util.concurrent.CompletableFuture" ]
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
114,297
public void setQty(BigDecimal qty, int C_UOM_ID) { m_qty = MUOMConversion.convert(C_UOM_ID, m_C_UOM_ID, qty, true); // StdPrecision if (qty != null && m_qty == null) // conversion error { log.error("Conversion error - set to " + qty); m_qty = qty; } else m_C_UOM_ID = C_UOM_ID; } // setQty...
void function(BigDecimal qty, int C_UOM_ID) { m_qty = MUOMConversion.convert(C_UOM_ID, m_C_UOM_ID, qty, true); if (qty != null && m_qty == null) { log.error(STR + qty); m_qty = qty; } else m_C_UOM_ID = C_UOM_ID; } public static final ProductAcctType ACCTTYPE_P_Revenue = ProductAcctType.Revenue; public static final Prod...
/** * Set Quantity in UOM * * @param qty quantity * @param C_UOM_ID UOM */
Set Quantity in UOM
setQty
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.business/src/main/java-legacy/org/compiere/model/ProductCost.java", "license": "gpl-2.0", "size": 10241 }
[ "java.math.BigDecimal", "org.adempiere.acct.api.ProductAcctType" ]
import java.math.BigDecimal; import org.adempiere.acct.api.ProductAcctType;
import java.math.*; import org.adempiere.acct.api.*;
[ "java.math", "org.adempiere.acct" ]
java.math; org.adempiere.acct;
1,880,442
public static DashboardDto transformToDto(Dashboard dashboard) { if (dashboard == null) { throw new WebApplicationException("Null entity object cannot be converted to Dto object.", Status.INTERNAL_SERVER_ERROR); } DashboardDto result = createDtoObject(DashboardDto.class, dashboa...
static DashboardDto function(Dashboard dashboard) { if (dashboard == null) { throw new WebApplicationException(STR, Status.INTERNAL_SERVER_ERROR); } DashboardDto result = createDtoObject(DashboardDto.class, dashboard); result.setOwnerName(dashboard.getOwner().getUserName()); return result; }
/** * Converts alert entity to alertDto. * * @param dashboard The alert object. Cannot be null. * * @return AlertDto object. * * @throws WebApplicationException If an error occurs. */
Converts alert entity to alertDto
transformToDto
{ "repo_name": "rmelick/Argus", "path": "ArgusWebServices/src/main/java/com/salesforce/dva/argus/ws/dto/DashboardDto.java", "license": "bsd-3-clause", "size": 7381 }
[ "com.salesforce.dva.argus.entity.Dashboard", "javax.ws.rs.WebApplicationException", "javax.ws.rs.core.Response" ]
import com.salesforce.dva.argus.entity.Dashboard; import javax.ws.rs.WebApplicationException; import javax.ws.rs.core.Response;
import com.salesforce.dva.argus.entity.*; import javax.ws.rs.*; import javax.ws.rs.core.*;
[ "com.salesforce.dva", "javax.ws" ]
com.salesforce.dva; javax.ws;
1,439,391
void onAllTabsAdded(int index, @NonNull Tab[] tabs, int previousSelectedTabIndex, int selectedTabIndex, boolean selectionChanged, @NonNull Animation animation);
void onAllTabsAdded(int index, @NonNull Tab[] tabs, int previousSelectedTabIndex, int selectedTabIndex, boolean selectionChanged, @NonNull Animation animation);
/** * The method, which is invoked, when multiple tabs have been added to the model. * * @param index * The index of the first tab, which has been added, as an {@link Integer} value * @param tabs * An array, which contains the tabs, which have been a...
The method, which is invoked, when multiple tabs have been added to the model
onAllTabsAdded
{ "repo_name": "michael-rapp/ChromeLikeTabSwitcher", "path": "library/src/main/java/de/mrapp/android/tabswitcher/model/Model.java", "license": "apache-2.0", "size": 56796 }
[ "androidx.annotation.NonNull", "de.mrapp.android.tabswitcher.Animation", "de.mrapp.android.tabswitcher.Tab" ]
import androidx.annotation.NonNull; import de.mrapp.android.tabswitcher.Animation; import de.mrapp.android.tabswitcher.Tab;
import androidx.annotation.*; import de.mrapp.android.tabswitcher.*;
[ "androidx.annotation", "de.mrapp.android" ]
androidx.annotation; de.mrapp.android;
1,966,169
public SearchRequest source(BytesReference source, boolean unsafe) { this.source = source; this.sourceUnsafe = unsafe; return this; }
SearchRequest function(BytesReference source, boolean unsafe) { this.source = source; this.sourceUnsafe = unsafe; return this; }
/** * The search source to execute. */
The search source to execute
source
{ "repo_name": "alexksikes/elasticsearch", "path": "src/main/java/org/elasticsearch/action/search/SearchRequest.java", "license": "apache-2.0", "size": 15671 }
[ "org.elasticsearch.common.bytes.BytesReference" ]
import org.elasticsearch.common.bytes.BytesReference;
import org.elasticsearch.common.bytes.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
25,140
public void createIndex(File dumpDirectory, File index) throws Exception { doIndex(dumpDirectory, index, true); }
void function(File dumpDirectory, File index) throws Exception { doIndex(dumpDirectory, index, true); }
/** * Creates a new index. */
Creates a new index
createIndex
{ "repo_name": "apache/lenya", "path": "src/java/org/apache/lenya/lucene/index/AbstractIndexer.java", "license": "apache-2.0", "size": 12551 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,641,044
void triggerRefresh( @RequestReason int reason, ConsistencyToken token, Consumer<Result<Model>> consumer);
void triggerRefresh( @RequestReason int reason, ConsistencyToken token, Consumer<Result<Model>> consumer);
/** * Issues a request to refresh the entire feed, with the consumer being called back with the * resulting {@link Model}. * * @param reason The reason for this refresh. * @param token Used by the server for consistent data across requests. * @param consumer The consumer called after the r...
Issues a request to refresh the entire feed, with the consumer being called back with the resulting <code>Model</code>
triggerRefresh
{ "repo_name": "endlessm/chromium-browser", "path": "chrome/android/feed/core/java/src/org/chromium/chrome/browser/feed/library/api/internal/requestmanager/FeedRequestManager.java", "license": "bsd-3-clause", "size": 2125 }
[ "org.chromium.base.Consumer", "org.chromium.chrome.browser.feed.library.api.host.logging.RequestReason", "org.chromium.chrome.browser.feed.library.api.internal.common.Model", "org.chromium.chrome.browser.feed.library.common.Result", "org.chromium.components.feed.core.proto.wire.ConsistencyTokenProto" ]
import org.chromium.base.Consumer; import org.chromium.chrome.browser.feed.library.api.host.logging.RequestReason; import org.chromium.chrome.browser.feed.library.api.internal.common.Model; import org.chromium.chrome.browser.feed.library.common.Result; import org.chromium.components.feed.core.proto.wire.ConsistencyToke...
import org.chromium.base.*; import org.chromium.chrome.browser.feed.library.api.host.logging.*; import org.chromium.chrome.browser.feed.library.api.internal.common.*; import org.chromium.chrome.browser.feed.library.common.*; import org.chromium.components.feed.core.proto.wire.*;
[ "org.chromium.base", "org.chromium.chrome", "org.chromium.components" ]
org.chromium.base; org.chromium.chrome; org.chromium.components;
1,425,920
public void testRemoveAllRandomAccess() { Multimap<String, Integer> multimap = create(); multimap.put("foo", 1); multimap.put("foo", 3); assertTrue(multimap.removeAll("foo") instanceof RandomAccess); assertTrue(multimap.removeAll("bar") instanceof RandomAccess); }
void function() { Multimap<String, Integer> multimap = create(); multimap.put("foo", 1); multimap.put("foo", 3); assertTrue(multimap.removeAll("foo") instanceof RandomAccess); assertTrue(multimap.removeAll("bar") instanceof RandomAccess); }
/** * Confirm that removeAll() returns a List that implements RandomAccess, even * though get() doesn't. */
Confirm that removeAll() returns a List that implements RandomAccess, even though get() doesn't
testRemoveAllRandomAccess
{ "repo_name": "lshain-android-source/external-guava", "path": "guava-tests/test/com/google/common/collect/LinkedListMultimapTest.java", "license": "apache-2.0", "size": 16642 }
[ "java.util.RandomAccess" ]
import java.util.RandomAccess;
import java.util.*;
[ "java.util" ]
java.util;
2,438,507
public Set<String> getFields() { return Collections.unmodifiableSet(values.keySet()); }
Set<String> function() { return Collections.unmodifiableSet(values.keySet()); }
/** * Returns a set of the fields of the message * * @return */
Returns a set of the fields of the message
getFields
{ "repo_name": "NetMoc/Yaes", "path": "src/main/java/yaes/framework/agent/GenericMessage.java", "license": "apache-2.0", "size": 2316 }
[ "java.util.Collections", "java.util.Set" ]
import java.util.Collections; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,203,330
public void start() { //log.info("Stream start: {}", publishedName); checkVideoCodec = true; checkAudioCodec = true; firstPacketTime = -1; latestTimeStamp = -1; bytesReceived = 0; IConsumerService consumerManager = (IConsumerService) getScope().getConte...
void function() { checkVideoCodec = true; checkAudioCodec = true; firstPacketTime = -1; latestTimeStamp = -1; bytesReceived = 0; IConsumerService consumerManager = (IConsumerService) getScope().getContext().getBean(IConsumerService.KEY); connMsgOut = consumerManager.getConsumerOutput(this); if (connMsgOut != null && co...
/** * Starts stream, creates pipes, connects */
Starts stream, creates pipes, connects
start
{ "repo_name": "solomax/red5-server-common", "path": "src/main/java/org/red5/server/stream/ClientBroadcastStream.java", "license": "apache-2.0", "size": 39246 }
[ "org.red5.server.api.stream.StreamState" ]
import org.red5.server.api.stream.StreamState;
import org.red5.server.api.stream.*;
[ "org.red5.server" ]
org.red5.server;
1,669,660
public boolean isOnClickListenerDisabled(@NonNull final TItem item, final int positionInAdapter, final int positionInCollection) { return false; }
boolean function(@NonNull final TItem item, final int positionInAdapter, final int positionInCollection) { return false; }
/** * Returns if click listening disabled or not for specific item. * * @param item Item to check click availability; * @param positionInAdapter Position of clicked item in adapter (with headers); * @param positionInCollection Position of clicked item in inner collection; ...
Returns if click listening disabled or not for specific item
isOnClickListenerDisabled
{ "repo_name": "RoboSwag/components", "path": "src/main/java/ru/touchin/roboswag/components/adapters/ObservableCollectionAdapter.java", "license": "apache-2.0", "size": 28866 }
[ "android.support.annotation.NonNull" ]
import android.support.annotation.NonNull;
import android.support.annotation.*;
[ "android.support" ]
android.support;
2,326,293
private void maintainUserRelations() throws PersistenceException { List<Long> userIdList = new ArrayList<Long>(); for (AuthorizationUser user : this.userList) { if (user == null || user.getId() == null) { throw new PersistenceException("AuthorizationUser is not persisten...
void function() throws PersistenceException { List<Long> userIdList = new ArrayList<Long>(); for (AuthorizationUser user : this.userList) { if (user == null user.getId() == null) { throw new PersistenceException(STR); } userIdList.add(user.getId()); } StringBuilder queryString = new StringBuilder(); queryString.append(...
/** * Maintain the User-Permission relations. * * @throws PersistenceException * when the relations cannot be maintained */
Maintain the User-Permission relations
maintainUserRelations
{ "repo_name": "NABUCCO/org.nabucco.framework.common.authorization", "path": "org.nabucco.framework.common.authorization.impl.service/src/main/man/org/nabucco/framework/common/authorization/impl/service/maintain/MaintainAuthorizationPermissionServiceHandlerImpl.java", "license": "epl-1.0", "size": 11890 }
[ "java.util.ArrayList", "java.util.List", "org.nabucco.framework.base.facade.datatype.DatatypeState", "org.nabucco.framework.base.facade.exception.persistence.PersistenceException", "org.nabucco.framework.base.impl.service.maintain.NabuccoQuery", "org.nabucco.framework.common.authorization.facade.datatype....
import java.util.ArrayList; import java.util.List; import org.nabucco.framework.base.facade.datatype.DatatypeState; import org.nabucco.framework.base.facade.exception.persistence.PersistenceException; import org.nabucco.framework.base.impl.service.maintain.NabuccoQuery; import org.nabucco.framework.common.authorization...
import java.util.*; import org.nabucco.framework.base.facade.datatype.*; import org.nabucco.framework.base.facade.exception.persistence.*; import org.nabucco.framework.base.impl.service.maintain.*; import org.nabucco.framework.common.authorization.facade.datatype.*;
[ "java.util", "org.nabucco.framework" ]
java.util; org.nabucco.framework;
1,079,363
public static <T> List<T> toList(Iterator<T> self) { List<T> answer = new ArrayList<T>(); while (self.hasNext()) { answer.add(self.next()); } return answer; }
static <T> List<T> function(Iterator<T> self) { List<T> answer = new ArrayList<T>(); while (self.hasNext()) { answer.add(self.next()); } return answer; }
/** * Convert an iterator to a List. The iterator will become * exhausted of elements after making this conversion. * * @param self an iterator * @return a List * @since 1.5.0 */
Convert an iterator to a List. The iterator will become exhausted of elements after making this conversion
toList
{ "repo_name": "xien777/yajsw", "path": "yajsw/wrapper/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java", "license": "lgpl-2.1", "size": 704150 }
[ "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;
2,415,694
@Override public Var evalVar(Env env) { return eval(env).toVar(); }
Var function(Env env) { return eval(env).toVar(); }
/** * Evaluates the expression. * * @param env the calling environment. * * @return the expression value. */
Evaluates the expression
evalVar
{ "repo_name": "dlitz/resin", "path": "modules/quercus/src/com/caucho/quercus/expr/BinaryCharAtExpr.java", "license": "gpl-2.0", "size": 3190 }
[ "com.caucho.quercus.env.Env", "com.caucho.quercus.env.Var" ]
import com.caucho.quercus.env.Env; import com.caucho.quercus.env.Var;
import com.caucho.quercus.env.*;
[ "com.caucho.quercus" ]
com.caucho.quercus;
768,334
public Strong appendChild(int index, Node child){ if(this == child){ throw new Error("Cannot append a node to itself."); } child.setParent(this); children.add(index, child); return this; }
Strong function(int index, Node child){ if(this == child){ throw new Error(STR); } child.setParent(this); children.add(index, child); return this; }
/** * Appends a child node at the given index * @param index insert point * @param child node to be appended * @return the node */
Appends a child node at the given index
appendChild
{ "repo_name": "esofthead/mycollab", "path": "mycollab-core/src/main/java/com/hp/gagawa/java/elements/Strong.java", "license": "agpl-3.0", "size": 4574 }
[ "com.hp.gagawa.java.Node" ]
import com.hp.gagawa.java.Node;
import com.hp.gagawa.java.*;
[ "com.hp.gagawa" ]
com.hp.gagawa;
2,016,548
String line0 = event.getLine(0); Matcher match = vaultPattern.matcher(line0); // consider only signs with proper formatting if (match.matches()) { String type = match.group(1).toLowerCase(); // default vault is player if (type.isEmpty()) type = "player"; ...
String line0 = event.getLine(0); Matcher match = vaultPattern.matcher(line0); if (match.matches()) { String type = match.group(1).toLowerCase(); if (type.isEmpty()) type = STR; BlockState signBlock = event.getBlock().getState(); if (signBlock instanceof Sign && Util.chestBlock((Sign)signBlock) != null) { VaultCreationE...
/** * Create an account chest by adding a sign marker over it. * * @param event Event data. */
Create an account chest by adding a sign marker over it
createVault
{ "repo_name": "Kongolan/Gringotts", "path": "src/org/gestern/gringotts/event/AccountListener.java", "license": "bsd-2-clause", "size": 1701 }
[ "java.util.regex.Matcher", "org.bukkit.Bukkit", "org.bukkit.block.BlockState", "org.bukkit.block.Sign", "org.gestern.gringotts.Util" ]
import java.util.regex.Matcher; import org.bukkit.Bukkit; import org.bukkit.block.BlockState; import org.bukkit.block.Sign; import org.gestern.gringotts.Util;
import java.util.regex.*; import org.bukkit.*; import org.bukkit.block.*; import org.gestern.gringotts.*;
[ "java.util", "org.bukkit", "org.bukkit.block", "org.gestern.gringotts" ]
java.util; org.bukkit; org.bukkit.block; org.gestern.gringotts;
555,881
public List<DailyWeather> getDailyWeather() { return dailyWeather; }
List<DailyWeather> function() { return dailyWeather; }
/** * Weather Information */
Weather Information
getDailyWeather
{ "repo_name": "be1ive/weather-api", "path": "weather-api-owm/src/main/java/com/belive/weather/owm/api/DailyCityForecast.java", "license": "mit", "size": 1651 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,525,005
@Override protected Observation makeObservation() { return theState.makeObservation(); }
Observation function() { return theState.makeObservation(); }
/** * Turns theState object into an observation. * @return */
Turns theState object into an observation
makeObservation
{ "repo_name": "chaostrigger/rl-library", "path": "projects/environments/mountainCar/src/org/rlcommunity/environments/mountaincar/MountainCar.java", "license": "apache-2.0", "size": 12235 }
[ "org.rlcommunity.rlglue.codec.types.Observation" ]
import org.rlcommunity.rlglue.codec.types.Observation;
import org.rlcommunity.rlglue.codec.types.*;
[ "org.rlcommunity.rlglue" ]
org.rlcommunity.rlglue;
741,432
@ManyToOne @JoinColumn(name="TT_ACTIVITY_ID") public Activity getActivity() { return activity; }
@JoinColumn(name=STR) Activity function() { return activity; }
/** * Gets the activity that the student is being added to. * * @return the activity that the student is being added to. */
Gets the activity that the student is being added to
getActivity
{ "repo_name": "rnicoll/learn_syllabus_plus_sync", "path": "src/main/java/uk/ac/ed/learn9/bb/timetabling/data/EnrolmentChange.java", "license": "mit", "size": 6077 }
[ "javax.persistence.JoinColumn" ]
import javax.persistence.JoinColumn;
import javax.persistence.*;
[ "javax.persistence" ]
javax.persistence;
1,373,903
public SchemaField newField(String fieldName, String fieldType, Map<String,?> options) { String msg = "This IndexSchema is not mutable."; log.error(msg); throw new SolrException(ErrorCode.SERVER_ERROR, msg); }
SchemaField function(String fieldName, String fieldType, Map<String,?> options) { String msg = STR; log.error(msg); throw new SolrException(ErrorCode.SERVER_ERROR, msg); }
/** * Returns a SchemaField if the given fieldName does not already * exist in this schema, and does not match any dynamic fields * in this schema. The resulting SchemaField can be used in a call * to {@link #addField(SchemaField)}. * * @param fieldName the name of the field to add * @param fiel...
Returns a SchemaField if the given fieldName does not already exist in this schema, and does not match any dynamic fields in this schema. The resulting SchemaField can be used in a call to <code>#addField(SchemaField)</code>
newField
{ "repo_name": "pengzong1111/solr4", "path": "solr/core/src/java/org/apache/solr/schema/IndexSchema.java", "license": "apache-2.0", "size": 60164 }
[ "java.util.Map", "org.apache.solr.common.SolrException" ]
import java.util.Map; import org.apache.solr.common.SolrException;
import java.util.*; import org.apache.solr.common.*;
[ "java.util", "org.apache.solr" ]
java.util; org.apache.solr;
2,044,111
public Builder dependsOn(ASMMethod method) { hookedMethods.add(method); return this; }
Builder function(ASMMethod method) { hookedMethods.add(method); return this; }
/** * Hooked method that this hook depends on. * * @param method hooked method * @return this */
Hooked method that this hook depends on
dependsOn
{ "repo_name": "fr1kin/ForgeHax", "path": "src/main/java/com/matt/forgehax/asm/utils/debug/HookReporter.java", "license": "mit", "size": 7044 }
[ "com.matt.forgehax.asm.utils.asmtype.ASMMethod" ]
import com.matt.forgehax.asm.utils.asmtype.ASMMethod;
import com.matt.forgehax.asm.utils.asmtype.*;
[ "com.matt.forgehax" ]
com.matt.forgehax;
2,463,784
public void deOwner(User user) { if (user == null) throw new IllegalArgumentException("Can't remove owner on null user"); setMode("-q " + user.getNick()); }
void function(User user) { if (user == null) throw new IllegalArgumentException(STR); setMode(STR + user.getNick()); }
/** * Removes owner privileges to a user on a channel. * Successful use of this method may require the bot to have owner * status itself. * <p> * <b>Warning:</b> Not all IRC servers support this. Some servers may even use * it to mean something else! * @param chan * @param user */
Removes owner privileges to a user on a channel. Successful use of this method may require the bot to have owner status itself. Warning: Not all IRC servers support this. Some servers may even use it to mean something else
deOwner
{ "repo_name": "AnyBot/AnyBot-Lib", "path": "src/org/pircbotx/output/OutputChannel.java", "license": "gpl-3.0", "size": 19720 }
[ "org.pircbotx.User" ]
import org.pircbotx.User;
import org.pircbotx.*;
[ "org.pircbotx" ]
org.pircbotx;
1,677,458
private ArrayList<Deferred<Object>> getPendingRpcs() { synchronized (this) { if (pending_rpcs != null) { final ArrayList<Deferred<Object>> pending = new ArrayList<Deferred<Object>>(pending_rpcs.size()); for (final HBaseRpc rpc : pending_rpcs) { pending.add(rpc.getDeferred...
ArrayList<Deferred<Object>> function() { synchronized (this) { if (pending_rpcs != null) { final ArrayList<Deferred<Object>> pending = new ArrayList<Deferred<Object>>(pending_rpcs.size()); for (final HBaseRpc rpc : pending_rpcs) { pending.add(rpc.getDeferred()); } return pending; } } return null; }
/** * Returns a possibly {@code null} list of all RPCs that are pending. * <p> * Pending RPCs are those that are scheduled to be sent as soon as we * are connected to the RegionServer and have done version negotiation. */
Returns a possibly null list of all RPCs that are pending. Pending RPCs are those that are scheduled to be sent as soon as we are connected to the RegionServer and have done version negotiation
getPendingRpcs
{ "repo_name": "SteamShon/asynchbase", "path": "src/RegionClient.java", "license": "bsd-3-clause", "size": 88345 }
[ "com.stumbleupon.async.Deferred", "java.util.ArrayList" ]
import com.stumbleupon.async.Deferred; import java.util.ArrayList;
import com.stumbleupon.async.*; import java.util.*;
[ "com.stumbleupon.async", "java.util" ]
com.stumbleupon.async; java.util;
129,537
public void syncBeforeInvoke() { copyTagToPageScope(VariableInfo.NESTED); copyTagToPageScope(VariableInfo.AT_BEGIN); }
void function() { copyTagToPageScope(VariableInfo.NESTED); copyTagToPageScope(VariableInfo.AT_BEGIN); }
/** * Synchronize variables before fragment invocation */
Synchronize variables before fragment invocation
syncBeforeInvoke
{ "repo_name": "SourceStudyNotes/Tomcat8", "path": "src/main/java/org/apache/jasper/runtime/JspContextWrapper.java", "license": "apache-2.0", "size": 19427 }
[ "javax.servlet.jsp.tagext.VariableInfo" ]
import javax.servlet.jsp.tagext.VariableInfo;
import javax.servlet.jsp.tagext.*;
[ "javax.servlet" ]
javax.servlet;
1,130,405
@Override() public java.lang.Class getJavaClass( ) { return org.chocolate_milk.model.ItemNonInventoryAddRs.class; }
@Override() java.lang.Class function( ) { return org.chocolate_milk.model.ItemNonInventoryAddRs.class; }
/** * Method getJavaClass. * * @return the Java class represented by this descriptor. */
Method getJavaClass
getJavaClass
{ "repo_name": "galleon1/chocolate-milk", "path": "src/org/chocolate_milk/model/descriptors/ItemNonInventoryAddRsDescriptor.java", "license": "lgpl-3.0", "size": 3664 }
[ "org.chocolate_milk.model.ItemNonInventoryAddRs" ]
import org.chocolate_milk.model.ItemNonInventoryAddRs;
import org.chocolate_milk.model.*;
[ "org.chocolate_milk.model" ]
org.chocolate_milk.model;
2,822,358
public HTable deleteTableData(byte[] tableName) throws IOException { return deleteTableData(TableName.valueOf(tableName)); }
HTable function(byte[] tableName) throws IOException { return deleteTableData(TableName.valueOf(tableName)); }
/** * Provide an existing table name to truncate. * Scans the table and issues a delete for each row read. * @param tableName existing table * @return HTable to that new table * @throws IOException */
Provide an existing table name to truncate. Scans the table and issues a delete for each row read
deleteTableData
{ "repo_name": "SeekerResource/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java", "license": "apache-2.0", "size": 145665 }
[ "java.io.IOException", "org.apache.hadoop.hbase.client.HTable" ]
import java.io.IOException; import org.apache.hadoop.hbase.client.HTable;
import java.io.*; import org.apache.hadoop.hbase.client.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
16,748
public static String translateQueryParamName(String identifier) { if (identifier.equals(TimeZoneOffset)) { return ""; } if (identifier.equals(EventTime)) { return QueryParamConstants.EVENT_TIME_REST; } if (identifier.equals(RecordTime)) { ...
static String function(String identifier) { if (identifier.equals(TimeZoneOffset)) { return STRunknown"; } public EPCISEvent() {} public EPCISEvent(EPCISEventType event) { initEvent(event); }
/** * Method description * * * @param identifier * * @return */
Method description
translateQueryParamName
{ "repo_name": "Fosstrak/fosstrak-webadapters", "path": "src/main/java/org/fosstrak/webadapters/epcis/model/events/EPCISEvent.java", "license": "gpl-3.0", "size": 28712 }
[ "org.fosstrak.webadapters.epcis.ws.generated.EPCISEventType" ]
import org.fosstrak.webadapters.epcis.ws.generated.EPCISEventType;
import org.fosstrak.webadapters.epcis.ws.generated.*;
[ "org.fosstrak.webadapters" ]
org.fosstrak.webadapters;
1,947,287
private boolean isSessionDataDisplayCorrect() { if (sessionsPage.isElementPresent(By.className("dataTable"))) { int numSessionDataTables = browser.driver.findElements(By.className("dataTable")).size(); for (int i = 0; i < numSessionDataTables; i++) { if (!isSessionTab...
boolean function() { if (sessionsPage.isElementPresent(By.className(STR))) { int numSessionDataTables = browser.driver.findElements(By.className(STR)).size(); for (int i = 0; i < numSessionDataTables; i++) { if (!isSessionTableHeaderCorrect(i)) { return false; } } return true; } sessionsPage.verifyStatus(STR); return t...
/** * This method only checks if the session data tables are displayed correctly * i.e, table headers are correct, and appropriate message is displayed if no * session data is present. * It does not test for the table content */
This method only checks if the session data tables are displayed correctly i.e, table headers are correct, and appropriate message is displayed if no session data is present. It does not test for the table content
isSessionDataDisplayCorrect
{ "repo_name": "karthikaacharya/teammates", "path": "src/test/java/teammates/test/cases/browsertests/AdminSessionsPageUiTest.java", "license": "gpl-2.0", "size": 3466 }
[ "org.openqa.selenium.By" ]
import org.openqa.selenium.By;
import org.openqa.selenium.*;
[ "org.openqa.selenium" ]
org.openqa.selenium;
1,702,787
public Calendar getCalendar() { return calendar; }
Calendar function() { return calendar; }
/** * Returns the calendar associated with this date/time formatter. * @return the calendar associated with this date/time formatter. * @stable ICU 2.0 */
Returns the calendar associated with this date/time formatter
getCalendar
{ "repo_name": "Miracle121/quickdic-dictionary.dictionary", "path": "jars/icu4j-52_1/main/classes/core/src/com/ibm/icu/text/DateFormat.java", "license": "apache-2.0", "size": 83832 }
[ "com.ibm.icu.util.Calendar" ]
import com.ibm.icu.util.Calendar;
import com.ibm.icu.util.*;
[ "com.ibm.icu" ]
com.ibm.icu;
1,227,684
protected EnumSet<FlagTypes> getInputStreamFlags() { return null; }
EnumSet<FlagTypes> function() { return null; }
/** * Override point where subclasses can specify set of flags on input stream * at point it is read or where necessary created. * @return */
Override point where subclasses can specify set of flags on input stream at point it is read or where necessary created
getInputStreamFlags
{ "repo_name": "StefanoSalsano/alien-ofelia-conet-ccnx", "path": "javasrc/src/org/ccnx/ccn/io/content/CCNNetworkObject.java", "license": "lgpl-2.1", "size": 68811 }
[ "java.util.EnumSet", "org.ccnx.ccn.io.CCNAbstractInputStream" ]
import java.util.EnumSet; import org.ccnx.ccn.io.CCNAbstractInputStream;
import java.util.*; import org.ccnx.ccn.io.*;
[ "java.util", "org.ccnx.ccn" ]
java.util; org.ccnx.ccn;
180,295
Response response = get(Response.Status.OK, getPageQueryParams(1, getDefaultPerPage()), "projects", getProjectIdOrPath(projectIdOrPath), "issues", issueIid, "award_emoji"); return response.readEntity(new GenericType<List<AwardEmoji>>() {}); }
Response response = get(Response.Status.OK, getPageQueryParams(1, getDefaultPerPage()), STR, getProjectIdOrPath(projectIdOrPath), STR, issueIid, STR); return response.readEntity(new GenericType<List<AwardEmoji>>() {}); }
/** * Get a list of award emoji for the specified issue. * * <pre><code>GitLab Endpoint: GET /projects/:id/issues/:issue_iid/award_emoji</code></pre> * * @param projectIdOrPath id, path of the project, or a Project instance holding the project ID or path * @param issueIid the issue IID to ...
Get a list of award emoji for the specified issue. <code><code>GitLab Endpoint: GET /projects/:id/issues/:issue_iid/award_emoji</code></code>
getIssueAwardEmojis
{ "repo_name": "gmessner/gitlab4j-api", "path": "src/main/java/org/gitlab4j/api/AwardEmojiApi.java", "license": "mit", "size": 15565 }
[ "java.util.List", "javax.ws.rs.core.GenericType", "javax.ws.rs.core.Response", "org.gitlab4j.api.models.AwardEmoji" ]
import java.util.List; import javax.ws.rs.core.GenericType; import javax.ws.rs.core.Response; import org.gitlab4j.api.models.AwardEmoji;
import java.util.*; import javax.ws.rs.core.*; import org.gitlab4j.api.models.*;
[ "java.util", "javax.ws", "org.gitlab4j.api" ]
java.util; javax.ws; org.gitlab4j.api;
2,687,935
public void initCf(TableMetadataRef metadata, boolean loadSSTables) { ColumnFamilyStore cfs = columnFamilyStores.get(metadata.id); if (cfs == null) { // CFS being created for the first time, either on server startup or new CF being added. // We don't worry about ...
void function(TableMetadataRef metadata, boolean loadSSTables) { ColumnFamilyStore cfs = columnFamilyStores.get(metadata.id); if (cfs == null) { ColumnFamilyStore oldCfs = columnFamilyStores.putIfAbsent(metadata.id, ColumnFamilyStore.createColumnFamilyStore(this, metadata, loadSSTables)); if (oldCfs != null) throw new ...
/** * adds a cf to internal structures, ends up creating disk files). */
adds a cf to internal structures, ends up creating disk files)
initCf
{ "repo_name": "adelapena/cassandra", "path": "src/java/org/apache/cassandra/db/Keyspace.java", "license": "apache-2.0", "size": 32920 }
[ "org.apache.cassandra.schema.TableMetadataRef" ]
import org.apache.cassandra.schema.TableMetadataRef;
import org.apache.cassandra.schema.*;
[ "org.apache.cassandra" ]
org.apache.cassandra;
2,471,489
private MCCConfiguration initMccConfig() throws JAXBException { String configPath = CarbonUtils.getCarbonConfigDirPath() + File.separator + "MobileCountryConfig.xml"; File file = new File(configPath); JAXBContext ctx = JAXBContext.newInstance(MCCConfiguration.class); Unmarshaller um ...
MCCConfiguration function() throws JAXBException { String configPath = CarbonUtils.getCarbonConfigDirPath() + File.separator + STR; File file = new File(configPath); JAXBContext ctx = JAXBContext.newInstance(MCCConfiguration.class); Unmarshaller um = ctx.createUnmarshaller(); return (MCCConfiguration) um.unmarshal(file...
/** * Inits the mcc config. * * @return the MCC configuration * @throws JAXBException the JAXB exception */
Inits the mcc config
initMccConfig
{ "repo_name": "YasithLokuge/core-util", "path": "components/mnc-resolver/src/main/java/com/wso2telco/core/mnc/resolver/ConfigLoader.java", "license": "apache-2.0", "size": 2720 }
[ "java.io.File", "javax.xml.bind.JAXBContext", "javax.xml.bind.JAXBException", "javax.xml.bind.Unmarshaller", "org.wso2.carbon.utils.CarbonUtils" ]
import java.io.File; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; import org.wso2.carbon.utils.CarbonUtils;
import java.io.*; import javax.xml.bind.*; import org.wso2.carbon.utils.*;
[ "java.io", "javax.xml", "org.wso2.carbon" ]
java.io; javax.xml; org.wso2.carbon;
1,279,253
public AbstractFunction getInvoke() { return _invoke; }
AbstractFunction function() { return _invoke; }
/** * Gets the __invoke */
Gets the __invoke
getInvoke
{ "repo_name": "WelcomeHUME/svn-caucho-com-resin", "path": "modules/quercus/src/com/caucho/quercus/env/QuercusClass.java", "license": "gpl-2.0", "size": 70646 }
[ "com.caucho.quercus.function.AbstractFunction" ]
import com.caucho.quercus.function.AbstractFunction;
import com.caucho.quercus.function.*;
[ "com.caucho.quercus" ]
com.caucho.quercus;
1,775,147