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
JavaInfo createJavaInfo( Artifact outputJar, Artifact compileJar, @Nullable Artifact sourceJar, Boolean neverlink, Sequence<JavaInfo> compileTimeDeps, Sequence<JavaInfo> runtimeDeps, Sequence<JavaInfo> exports, @Nullable Artifact jdeps, Location location) { co...
JavaInfo createJavaInfo( Artifact outputJar, Artifact compileJar, @Nullable Artifact sourceJar, Boolean neverlink, Sequence<JavaInfo> compileTimeDeps, Sequence<JavaInfo> runtimeDeps, Sequence<JavaInfo> exports, @Nullable Artifact jdeps, Location location) { compileJar = compileJar != null ? compileJar : outputJar; Immu...
/** * Creates JavaInfo instance from outputJar. * * @param outputJar the jar that was created as a result of a compilation (e.g. javac, scalac, * etc) * @param compileJar Jar added as a compile-time dependency to other rules. Typically produced by * ijar. * @param sourceJar the source jar t...
Creates JavaInfo instance from outputJar
createJavaInfo
{ "repo_name": "werkt/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/java/JavaInfoBuildHelper.java", "license": "apache-2.0", "size": 18623 }
[ "com.google.common.collect.ImmutableList", "com.google.common.collect.Iterables", "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.rules.java.JavaCompilationArgsProvider", "com.google.devtools.build.lib.rules.java.JavaInfo", "com.google.devtools.build.lib.syntax.Location", ...
import com.google.common.collect.ImmutableList; import com.google.common.collect.Iterables; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.rules.java.JavaCompilationArgsProvider; import com.google.devtools.build.lib.rules.java.JavaInfo; import com.google.devtools.build.lib.s...
import com.google.common.collect.*; import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.rules.java.*; import com.google.devtools.build.lib.syntax.*; import java.util.stream.*; import javax.annotation.*;
[ "com.google.common", "com.google.devtools", "java.util", "javax.annotation" ]
com.google.common; com.google.devtools; java.util; javax.annotation;
757,369
public UriBuilder getRequestUriBuilder() { return UriBuilder.fromUri(getRequestUri()); }
UriBuilder function() { return UriBuilder.fromUri(getRequestUri()); }
/** * Get the absolute request URI in the form of a UriBuilder. * * @return a UriBuilder initialized with the absolute request URI. * @see UriInfo#getRequestUriBuilder() */
Get the absolute request URI in the form of a UriBuilder
getRequestUriBuilder
{ "repo_name": "alastrina123/debrief", "path": "org.mwc.asset.comms/docs/restlet_src/org.restlet.ext.jaxrs/org/restlet/ext/jaxrs/internal/core/CallContext.java", "license": "epl-1.0", "size": 46359 }
[ "javax.ws.rs.core.UriBuilder" ]
import javax.ws.rs.core.UriBuilder;
import javax.ws.rs.core.*;
[ "javax.ws" ]
javax.ws;
2,832,997
public synchronized void setCloudApplication(CloudApplication cloudApplication) { this.application = cloudApplication; if (application != null) { // Update the deployment info so that it reflects the actual // deployed // application. Note that Eclipse-specific properties are retained // from...
synchronized void function(CloudApplication cloudApplication) { this.application = cloudApplication; if (application != null) { ApplicationDeploymentInfo cloudApplicationInfo = resolveDeployedApplicationInformation(); if (cloudApplicationInfo != null) { internalSetDeploymentInfo(cloudApplicationInfo); } } }
/** * Maps the application module to an actual deployed application in a CF * server. It replaces any existing deployment info with one generated from * the cloud application. The existing deployment descriptor remains * unchanged if removing the cloud application mapping (i.e. setting to * null) * ...
Maps the application module to an actual deployed application in a CF server. It replaces any existing deployment info with one generated from the cloud application. The existing deployment descriptor remains unchanged if removing the cloud application mapping (i.e. setting to null)
setCloudApplication
{ "repo_name": "osswangxining/dockerfoundry", "path": "cn.dockerfoundry.ide.eclipse.server.core/src/cn/dockerfoundry/ide/eclipse/server/core/internal/client/DockerFoundryApplicationModule.java", "license": "apache-2.0", "size": 22471 }
[ "cn.dockerfoundry.ide.eclipse.server.core.ApplicationDeploymentInfo", "org.cloudfoundry.client.lib.domain.CloudApplication" ]
import cn.dockerfoundry.ide.eclipse.server.core.ApplicationDeploymentInfo; import org.cloudfoundry.client.lib.domain.CloudApplication;
import cn.dockerfoundry.ide.eclipse.server.core.*; import org.cloudfoundry.client.lib.domain.*;
[ "cn.dockerfoundry.ide", "org.cloudfoundry.client" ]
cn.dockerfoundry.ide; org.cloudfoundry.client;
1,616,402
public static void deleteGroupsById(Long[] groupids) throws MoodleRestGroupException, UnsupportedEncodingException, MoodleRestException { final StringBuilder data = new StringBuilder(); final String functionCall = MoodleCallRestWebService.isLegacy() ? MoodleServices.MOODLE_GROUP_DELETE_GROUPS.name() : ...
static void function(Long[] groupids) throws MoodleRestGroupException, UnsupportedEncodingException, MoodleRestException { final StringBuilder data = new StringBuilder(); final String functionCall = MoodleCallRestWebService.isLegacy() ? MoodleServices.MOODLE_GROUP_DELETE_GROUPS.name() : MoodleServices.CORE_GROUP_DELETE...
/** * <p> * Method to delete groups from Moodle given the ids of the groups. * </p> * * @param groupids * long[] * @throws MoodleRestGroupException * @throws UnsupportedEncodingException * @throws MoodleRestException */
Method to delete groups from Moodle given the ids of the groups.
deleteGroupsById
{ "repo_name": "firetrap/MoodyRest", "path": "src/restPackage/MoodleRestGroup.java", "license": "gpl-2.0", "size": 34218 }
[ "java.io.UnsupportedEncodingException", "java.net.URLEncoder" ]
import java.io.UnsupportedEncodingException; import java.net.URLEncoder;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
1,259,458
public static Object load(URL digesterRules, ClassLoader classLoader, URL fileURL) throws IOException, SAXException, DigesterLoadingException { return load(digesterRules, classLoader, fileURL.openStream()); }
static Object function(URL digesterRules, ClassLoader classLoader, URL fileURL) throws IOException, SAXException, DigesterLoadingException { return load(digesterRules, classLoader, fileURL.openStream()); }
/** * Given the digester rules XML file, a class loader, and an XML input file, * this method parses the input file into Java objects. The class loader * is used by the digester to create the Java objects. * @param digesterRules URL to the XML document defining the digester rules * @param class...
Given the digester rules XML file, a class loader, and an XML input file, this method parses the input file into Java objects. The class loader is used by the digester to create the Java objects
load
{ "repo_name": "lamsfoundation/lams", "path": "3rdParty_sources/commons-digester/org/apache/commons/digester/xmlrules/DigesterLoader.java", "license": "gpl-2.0", "size": 11367 }
[ "java.io.IOException", "org.xml.sax.SAXException" ]
import java.io.IOException; import org.xml.sax.SAXException;
import java.io.*; import org.xml.sax.*;
[ "java.io", "org.xml.sax" ]
java.io; org.xml.sax;
2,385,787
if (subject == null || "".equals(subject)) { // Reset the trail this.clear(); } else { int index = this.indexOf(subject); if (index > -1) { ListIterator li = this.listIterator(index); // Skip this matching item li.next(); // Remove the rest while (li.h...
if (subject == null "".equals(subject)) { this.clear(); } else { int index = this.indexOf(subject); if (index > -1) { ListIterator li = this.listIterator(index); li.next(); while (li.hasNext()) { String n = (String) li.next(); li.remove(); } } else { this.add(subject); } } }
/** * Adds a unique set of parameters, no duplicates and nothing after a duplicate * * @param subject */
Adds a unique set of parameters, no duplicates and nothing after a duplicate
addItem
{ "repo_name": "yukoff/concourse-connect", "path": "src/main/java/com/concursive/connect/web/utils/TrailMap.java", "license": "agpl-3.0", "size": 4754 }
[ "java.util.ListIterator" ]
import java.util.ListIterator;
import java.util.*;
[ "java.util" ]
java.util;
1,316,798
@Override protected boolean checkKKTSolutionAccuracy(DoubleMatrix1D v, DoubleMatrix1D w) { log.debug("checkKKTSolutionAccuracy"); DoubleMatrix2D KKT = null; DoubleMatrix1D x = null; DoubleMatrix1D b = null; if (this.A != null) { if(h!=null){ //H.v + [A]T.w = -g //A.v = -h Doub...
boolean function(DoubleMatrix1D v, DoubleMatrix1D w) { log.debug(STR); DoubleMatrix2D KKT = null; DoubleMatrix1D x = null; DoubleMatrix1D b = null; if (this.A != null) { if(h!=null){ DoubleMatrix2D[][] parts = { { H, this.AT }, { this.A, null } }; if(A instanceof SparseDoubleMatrix2D){ KKT = DoubleFactory2D.sparse.comp...
/** * Check the solution of the system * * KKT.x = b * * against the scaled residual * * beta < gamma, * * where gamma is a parameter chosen by the user and beta is * the scaled residual, * * beta = ||KKT.x-b||_oo/( ||KKT||_oo . ||x||_oo + ||b||_oo ), * with ||x||_oo = m...
Check the solution of the system KKT.x = b against the scaled residual beta < gamma, where gamma is a parameter chosen by the user and beta is the scaled residual, beta = ||KKT.x-b||_oo/( ||KKT||_oo . ||x||_oo + ||b||_oo ), with ||x||_oo = max(||x[i]||)
checkKKTSolutionAccuracy
{ "repo_name": "chaoluond/EVCloudComputingPlatform", "path": "src/com/joptimizer/solvers/DiagonalHKKTSolver.java", "license": "gpl-3.0", "size": 8937 }
[ "com.joptimizer.util.ColtUtils", "com.joptimizer.util.Utils" ]
import com.joptimizer.util.ColtUtils; import com.joptimizer.util.Utils;
import com.joptimizer.util.*;
[ "com.joptimizer.util" ]
com.joptimizer.util;
2,281,215
Map<String, BlobMetaData> listBlobs() throws IOException;
Map<String, BlobMetaData> listBlobs() throws IOException;
/** * Lists all blobs in the container */
Lists all blobs in the container
listBlobs
{ "repo_name": "Kakakakakku/elasticsearch", "path": "core/src/main/java/org/elasticsearch/common/blobstore/BlobContainer.java", "license": "apache-2.0", "size": 2194 }
[ "java.io.IOException", "java.util.Map" ]
import java.io.IOException; import java.util.Map;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,909,873
IdmTreeTypeDto createTreeType(String code);
IdmTreeTypeDto createTreeType(String code);
/** * Creates tree type with given name = code * * @param code * @return */
Creates tree type with given name = code
createTreeType
{ "repo_name": "bcvsolutions/CzechIdMng", "path": "Realization/backend/core/core-test-api/src/main/java/eu/bcvsolutions/idm/test/api/TestHelper.java", "license": "mit", "size": 30086 }
[ "eu.bcvsolutions.idm.core.api.dto.IdmTreeTypeDto" ]
import eu.bcvsolutions.idm.core.api.dto.IdmTreeTypeDto;
import eu.bcvsolutions.idm.core.api.dto.*;
[ "eu.bcvsolutions.idm" ]
eu.bcvsolutions.idm;
2,227,988
public TexelCoord getTexelCoordinate(Point3D hitPoint, int xRes, int yRes);
TexelCoord function(Point3D hitPoint, int xRes, int yRes);
/** * return a texture coordinate based on the point3d and the size of the * image. * * @param hitPoint * @param xRes * @param yRes * @return */
return a texture coordinate based on the point3d and the size of the image
getTexelCoordinate
{ "repo_name": "MatrixPeckham/Ray-Tracer-Ground-Up-Java", "path": "RayTracer-Core/src/com/matrixpeckham/raytracer/textures/image/Mapping.java", "license": "gpl-2.0", "size": 1385 }
[ "com.matrixpeckham.raytracer.util.Point3D" ]
import com.matrixpeckham.raytracer.util.Point3D;
import com.matrixpeckham.raytracer.util.*;
[ "com.matrixpeckham.raytracer" ]
com.matrixpeckham.raytracer;
2,361,105
private class TabPaneListener implements ChangeListener { public void stateChanged(ChangeEvent e) { // Need to do this because we don't update all the tabs when they're not // visible, so they are not informed of new colors when they're hidden. AbstractColorChooserPanel comp = (Abstra...
class TabPaneListener implements ChangeListener { public void function(ChangeEvent e) { AbstractColorChooserPanel comp = (AbstractColorChooserPanel) pane .getSelectedComponent(); comp.updateChooser(); } } protected AbstractColorChooserPanel[] defaultChoosers; protected ChangeListener previewListener; protected Property...
/** * This method is called whenever a different tab is selected in the * JTabbedPane. * * @param e The ChangeEvent. */
This method is called whenever a different tab is selected in the JTabbedPane
stateChanged
{ "repo_name": "shaotuanchen/sunflower_exp", "path": "tools/source/gcc-4.2.4/libjava/classpath/javax/swing/plaf/basic/BasicColorChooserUI.java", "license": "bsd-3-clause", "size": 9955 }
[ "java.awt.Container", "java.beans.PropertyChangeListener", "javax.swing.JColorChooser", "javax.swing.JTabbedPane", "javax.swing.colorchooser.AbstractColorChooserPanel", "javax.swing.event.ChangeEvent", "javax.swing.event.ChangeListener" ]
import java.awt.Container; import java.beans.PropertyChangeListener; import javax.swing.JColorChooser; import javax.swing.JTabbedPane; import javax.swing.colorchooser.AbstractColorChooserPanel; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener;
import java.awt.*; import java.beans.*; import javax.swing.*; import javax.swing.colorchooser.*; import javax.swing.event.*;
[ "java.awt", "java.beans", "javax.swing" ]
java.awt; java.beans; javax.swing;
2,583,903
public T dequeue() { if (items.size()== 0) throw new NoSuchElementException() ; return items.removeFirst(); }
T function() { if (items.size()== 0) throw new NoSuchElementException() ; return items.removeFirst(); }
/** * Remove first element. * @throws NoSuchElementException if size is 0 * @return first element */
Remove first element
dequeue
{ "repo_name": "leokdawson/di-geva", "path": "GEVA/src/Util/Structures/Queue.java", "license": "gpl-3.0", "size": 2199 }
[ "java.util.NoSuchElementException" ]
import java.util.NoSuchElementException;
import java.util.*;
[ "java.util" ]
java.util;
1,301,815
void marshalPrimaryKey(TupleOutput keyOutput);
void marshalPrimaryKey(TupleOutput keyOutput);
/** * Extracts the entity's primary key and writes it to the key output. */
Extracts the entity's primary key and writes it to the key output
marshalPrimaryKey
{ "repo_name": "djsedulous/namecoind", "path": "libs/db-4.7.25.NC/examples_java/src/collections/ship/marshal/MarshalledEnt.java", "license": "mit", "size": 1352 }
[ "com.sleepycat.bind.tuple.TupleOutput" ]
import com.sleepycat.bind.tuple.TupleOutput;
import com.sleepycat.bind.tuple.*;
[ "com.sleepycat.bind" ]
com.sleepycat.bind;
1,407,555
@Nullable public MdmWindowsInformationProtectionPolicy get() throws ClientException { return send(HttpMethod.GET, null); }
MdmWindowsInformationProtectionPolicy function() throws ClientException { return send(HttpMethod.GET, null); }
/** * Gets the MdmWindowsInformationProtectionPolicy from the service * * @return the MdmWindowsInformationProtectionPolicy from the request * @throws ClientException this exception occurs if the request was unable to complete for any reason */
Gets the MdmWindowsInformationProtectionPolicy from the service
get
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/MdmWindowsInformationProtectionPolicyRequest.java", "license": "mit", "size": 7272 }
[ "com.microsoft.graph.core.ClientException", "com.microsoft.graph.http.HttpMethod", "com.microsoft.graph.models.MdmWindowsInformationProtectionPolicy" ]
import com.microsoft.graph.core.ClientException; import com.microsoft.graph.http.HttpMethod; import com.microsoft.graph.models.MdmWindowsInformationProtectionPolicy;
import com.microsoft.graph.core.*; import com.microsoft.graph.http.*; import com.microsoft.graph.models.*;
[ "com.microsoft.graph" ]
com.microsoft.graph;
448,721
@Bean(name = "ComQparkEipCoreSpringStatisticsLoggingDao") public StatisticsListener getStatisticsLoggingDao() { final StatisticsListener bean = new StatisticsLoggingDao(); return bean; }
@Bean(name = STR) StatisticsListener function() { final StatisticsListener bean = new StatisticsLoggingDao(); return bean; }
/** * Get the {@link StatisticsLoggingDao} bean. * * @return the {@link StatisticsLoggingDao} bean. */
Get the <code>StatisticsLoggingDao</code> bean
getStatisticsLoggingDao
{ "repo_name": "QPark/EIP", "path": "qp-enterprise-integration-platform-impl/eip-core-spring-statistics/src/main/java/com/qpark/eip/core/spring/statistics/config/EipStatisticsDBListenerConfig.java", "license": "epl-1.0", "size": 2248 }
[ "com.qpark.eip.core.spring.statistics.StatisticsListener", "com.qpark.eip.core.spring.statistics.dao.StatisticsLoggingDao", "org.springframework.context.annotation.Bean" ]
import com.qpark.eip.core.spring.statistics.StatisticsListener; import com.qpark.eip.core.spring.statistics.dao.StatisticsLoggingDao; import org.springframework.context.annotation.Bean;
import com.qpark.eip.core.spring.statistics.*; import com.qpark.eip.core.spring.statistics.dao.*; import org.springframework.context.annotation.*;
[ "com.qpark.eip", "org.springframework.context" ]
com.qpark.eip; org.springframework.context;
1,180,782
public Optional<TransactionInfo> find(String id) { LOG.debug("loading transaction info: {}", id); try { return Optional.ofNullable(getEditor().get(id)); } catch (IOException e) { throw new CommandExecutionException(MessageFormat.format( "error occu...
Optional<TransactionInfo> function(String id) { LOG.debug(STR, id); try { return Optional.ofNullable(getEditor().get(id)); } catch (IOException e) { throw new CommandExecutionException(MessageFormat.format( STR, id), e); } }
/** * Returns a transaction. * @param id the transaction ID * @return the corresponded transaction information */
Returns a transaction
find
{ "repo_name": "asakusafw/asakusafw", "path": "operation-project/directio/src/main/java/com/asakusafw/operation/tools/directio/transaction/TransactionEditorParameter.java", "license": "apache-2.0", "size": 3270 }
[ "com.asakusafw.runtime.directio.hadoop.DirectIoTransactionEditor", "com.asakusafw.utils.jcommander.CommandExecutionException", "java.io.IOException", "java.text.MessageFormat", "java.util.Optional" ]
import com.asakusafw.runtime.directio.hadoop.DirectIoTransactionEditor; import com.asakusafw.utils.jcommander.CommandExecutionException; import java.io.IOException; import java.text.MessageFormat; import java.util.Optional;
import com.asakusafw.runtime.directio.hadoop.*; import com.asakusafw.utils.jcommander.*; import java.io.*; import java.text.*; import java.util.*;
[ "com.asakusafw.runtime", "com.asakusafw.utils", "java.io", "java.text", "java.util" ]
com.asakusafw.runtime; com.asakusafw.utils; java.io; java.text; java.util;
810,415
public void writeString (String value) throws KryoException { if (value == null) { writeByte(0x80); // 0 means null, bit 8 means UTF8. return; } int charCount = value.length(); if (charCount == 0) { writeByte(1 | 0x80); // 1 means empty string, bit 8 means UTF8. return; } // Detect ...
void function (String value) throws KryoException { if (value == null) { writeByte(0x80); return; } int charCount = value.length(); if (charCount == 0) { writeByte(1 0x80); return; } boolean ascii = false; if (charCount > 1 && charCount < 64) { ascii = true; for (int i = 0; i < charCount; i++) { int c = value.charAt(i)...
/** Writes the length and string, or null. Short strings are checked and if ASCII they are written more efficiently, else they * are written as UTF8. If a string is known to be ASCII, {@link #writeAscii(String)} may be used. The string can be read using * {@link Input#readString()} or {@link Input#readStringBuild...
Writes the length and string, or null. Short strings are checked and if ASCII they are written more efficiently, else they are written as UTF8. If a string is known to be ASCII, <code>#writeAscii(String)</code> may be used. The string can be read using <code>Input#readString()</code> or <code>Input#readStringBuilder()<...
writeString
{ "repo_name": "romix/kryo", "path": "src/com/esotericsoftware/kryo/io/Output.java", "license": "bsd-3-clause", "size": 26005 }
[ "com.esotericsoftware.kryo.KryoException" ]
import com.esotericsoftware.kryo.KryoException;
import com.esotericsoftware.kryo.*;
[ "com.esotericsoftware.kryo" ]
com.esotericsoftware.kryo;
2,465,178
public void certificateExpired(SharkCertificate sharkCertificate);
void function(SharkCertificate sharkCertificate);
/** * Called when certificate expired * @param sharkCertificate */
Called when certificate expired
certificateExpired
{ "repo_name": "RaananW/SharkFW", "path": "src/java/core/net/sharkfw/security/pki/storage/SharkPkiStorageListener.java", "license": "lgpl-3.0", "size": 841 }
[ "net.sharkfw.pki.SharkCertificate" ]
import net.sharkfw.pki.SharkCertificate;
import net.sharkfw.pki.*;
[ "net.sharkfw.pki" ]
net.sharkfw.pki;
2,796,147
public static MapPoint parsePoint(String text) { Coordinate returnVal; float alt, f1, f2; double lat, lon; String l1, l2, name, token; StringTokenizer tokenizer; //init returnVal = null; lat = 0; lon...
static MapPoint function(String text) { Coordinate returnVal; float alt, f1, f2; double lat, lon; String l1, l2, name, token; StringTokenizer tokenizer; returnVal = null; lat = 0; lon = 0; alt = 0; name = STR; if (text.contains("N") text.contains("S") text.contains("E") text.contains("W") ) { SmartTokenizer st = new Sm...
/** * Tries to parse a coordinate from plain text. * Returns null if it fails. * * @param text * @return */
Tries to parse a coordinate from plain text. Returns null if it fails
parsePoint
{ "repo_name": "alecdhuse/Folding-Map", "path": "FoldingMap/src/co/foldingmap/actions/PasteText.java", "license": "gpl-3.0", "size": 9203 }
[ "co.foldingmap.dataStructures.SmartTokenizer", "co.foldingmap.map.vector.Coordinate", "co.foldingmap.map.vector.MapPoint", "java.util.StringTokenizer" ]
import co.foldingmap.dataStructures.SmartTokenizer; import co.foldingmap.map.vector.Coordinate; import co.foldingmap.map.vector.MapPoint; import java.util.StringTokenizer;
import co.foldingmap.*; import co.foldingmap.map.vector.*; import java.util.*;
[ "co.foldingmap", "co.foldingmap.map", "java.util" ]
co.foldingmap; co.foldingmap.map; java.util;
1,951,998
EAttribute getFunctionMemberAttributes_IsFriend();
EAttribute getFunctionMemberAttributes_IsFriend();
/** * Returns the meta object for the attribute '{@link org.xtext.example.delphi.astm.FunctionMemberAttributes#isIsFriend <em>Is Friend</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Is Friend</em>'. * @see org.xtext.example.delphi.astm.FunctionMembe...
Returns the meta object for the attribute '<code>org.xtext.example.delphi.astm.FunctionMemberAttributes#isIsFriend Is Friend</code>'.
getFunctionMemberAttributes_IsFriend
{ "repo_name": "adolfosbh/cs2as", "path": "org.xtext.example.delphi/emf-gen/org/xtext/example/delphi/astm/AstmPackage.java", "license": "epl-1.0", "size": 670467 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,037,248
protected void checkManageQueuesAuthorization() throws AuthenticationRequiredException, AuthorizationRequiredException { if ( !isAuthenticated() ) { throw new AuthenticationRequiredException( "Authentication required" ); } checkAuthorization( ContinuumRoleCon...
void function() throws AuthenticationRequiredException, AuthorizationRequiredException { if ( !isAuthenticated() ) { throw new AuthenticationRequiredException( STR ); } checkAuthorization( ContinuumRoleConstants.CONTINUUM_MANAGE_QUEUES ); }
/** * Check if the current user is authorized to manage queues * * @throws AuthenticationRequiredException if the user isn't authenticated * @throws AuthorizationRequiredException if the user isn't authorized */
Check if the current user is authorized to manage queues
checkManageQueuesAuthorization
{ "repo_name": "apache/continuum", "path": "continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/ContinuumActionSupport.java", "license": "apache-2.0", "size": 21240 }
[ "org.apache.maven.continuum.security.ContinuumRoleConstants", "org.apache.maven.continuum.web.exception.AuthenticationRequiredException", "org.apache.maven.continuum.web.exception.AuthorizationRequiredException" ]
import org.apache.maven.continuum.security.ContinuumRoleConstants; import org.apache.maven.continuum.web.exception.AuthenticationRequiredException; import org.apache.maven.continuum.web.exception.AuthorizationRequiredException;
import org.apache.maven.continuum.security.*; import org.apache.maven.continuum.web.exception.*;
[ "org.apache.maven" ]
org.apache.maven;
1,552,933
private String sendNoGuaranteeMail (int A_Asset_ID, int R_MailText_ID, String trxName) { MAsset asset = new MAsset (getCtx(), A_Asset_ID, trxName); if (asset.getAD_User_ID() == 0) return "** No Asset User"; MUser user = new MUser (getCtx(), asset.getAD_User_ID(), get_TrxName()); if (user.getEMail()...
String function (int A_Asset_ID, int R_MailText_ID, String trxName) { MAsset asset = new MAsset (getCtx(), A_Asset_ID, trxName); if (asset.getAD_User_ID() == 0) return STR; MUser user = new MUser (getCtx(), asset.getAD_User_ID(), get_TrxName()); if (user.getEMail() == null user.getEMail().length() == 0) return STR; if ...
/** * Send No Guarantee EMail * @param A_Asset_ID asset * @param R_MailText_ID mail to send * @return message - delivery errors start with ** */
Send No Guarantee EMail
sendNoGuaranteeMail
{ "repo_name": "arthurmelo88/palmetalADP", "path": "adempiereTrunk/base/src/org/compiere/process/AssetDelivery.java", "license": "gpl-2.0", "size": 10386 }
[ "org.compiere.model.MAsset", "org.compiere.model.MMailText", "org.compiere.model.MUser", "org.compiere.model.MUserMail", "org.compiere.util.EMail" ]
import org.compiere.model.MAsset; import org.compiere.model.MMailText; import org.compiere.model.MUser; import org.compiere.model.MUserMail; import org.compiere.util.EMail;
import org.compiere.model.*; import org.compiere.util.*;
[ "org.compiere.model", "org.compiere.util" ]
org.compiere.model; org.compiere.util;
1,748,270
if (x == null) { throw new IllegalArgumentException("null given as x for linear regression."); } if (y == null) { throw new IllegalArgumentException("null given as y for linear regression."); } if (x.size() != y.size()) { throw new IllegalArgum...
if (x == null) { throw new IllegalArgumentException(STR); } if (y == null) { throw new IllegalArgumentException(STR); } if (x.size() != y.size()) { throw new IllegalArgumentException(STR); } int n = x.size(); if (n <= 1) { throw new IllegalArgumentException(STR + n + "."); } Double sumXY = 0.0; Double sumX = 0.0; Doubl...
/** * Returns a simple linear regression. Note: r calculation is not * implemented. * * @param x the x series * @param y the y series * * @return a simple linear regression */
Returns a simple linear regression. Note: r calculation is not implemented
getLinearRegression
{ "repo_name": "compomics/compomics-utilities", "path": "src/main/java/com/compomics/util/math/statistics/linear_regression/regressions/SimpleLinearRegression.java", "license": "apache-2.0", "size": 3360 }
[ "com.compomics.util.math.BasicMathFunctions", "com.compomics.util.math.statistics.linear_regression.RegressionStatistics", "java.util.ArrayList" ]
import com.compomics.util.math.BasicMathFunctions; import com.compomics.util.math.statistics.linear_regression.RegressionStatistics; import java.util.ArrayList;
import com.compomics.util.math.*; import com.compomics.util.math.statistics.linear_regression.*; import java.util.*;
[ "com.compomics.util", "java.util" ]
com.compomics.util; java.util;
2,278,698
IConfigManager getConfigManager(ItemStack is);
IConfigManager getConfigManager(ItemStack is);
/** * Return the config manager for the wireless terminal. * * @param is wireless terminal * @return config manager of wireless terminal */
Return the config manager for the wireless terminal
getConfigManager
{ "repo_name": "mezz/EnderIO", "path": "src/api/java/appeng/api/features/IWirelessTermHandler.java", "license": "unlicense", "size": 2346 }
[ "net.minecraft.item.ItemStack" ]
import net.minecraft.item.ItemStack;
import net.minecraft.item.*;
[ "net.minecraft.item" ]
net.minecraft.item;
13,348
private IHashVector collectLogExpectedFeatures() { final IHashVector feats = HashVectorFactory.create(); for (int len = sentenceLength - 1; len >= 0; len--) { for (int begin = 0; begin < sentenceLength - len; begin++) { final Iterator<Cell<MR>> i = getSpanIterator(begin, begin + len); while (i.hasNext...
IHashVector function() { final IHashVector feats = HashVectorFactory.create(); for (int len = sentenceLength - 1; len >= 0; len--) { for (int begin = 0; begin < sentenceLength - len; begin++) { final Iterator<Cell<MR>> i = getSpanIterator(begin, begin + len); while (i.hasNext()) { final Cell<MR> c = i.next(); c.collect...
/** * Iterates over the chart and collects log expected feature values. Assumes * log outside scores were computed. */
Iterates over the chart and collects log expected feature values. Assumes log outside scores were computed
collectLogExpectedFeatures
{ "repo_name": "PriyankaKhante/nlp_spf", "path": "parser.ccg.cky/src/edu/uw/cs/lil/tiny/parser/ccg/cky/chart/Chart.java", "license": "gpl-2.0", "size": 20332 }
[ "edu.uw.cs.lil.tiny.base.hashvector.HashVectorFactory", "edu.uw.cs.lil.tiny.base.hashvector.IHashVector", "java.util.Iterator" ]
import edu.uw.cs.lil.tiny.base.hashvector.HashVectorFactory; import edu.uw.cs.lil.tiny.base.hashvector.IHashVector; import java.util.Iterator;
import edu.uw.cs.lil.tiny.base.hashvector.*; import java.util.*;
[ "edu.uw.cs", "java.util" ]
edu.uw.cs; java.util;
1,853,162
@Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); }
void function(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); }
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds <code>org.eclipse.emf.edit.command.CommandParameter</code>s describing the children that can be created under this object.
collectNewChildDescriptors
{ "repo_name": "albertfdp/petrinet", "path": "src/dk.dtu.se2.appearance.edit/src/appearance/provider/AObjectItemProvider.java", "license": "mit", "size": 6218 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
400,422
// edge only transformation "g04:A { a : 3000L } [(:A { a : 3000L, b : 3 })-[:a { a : 3L, a__1 : 3000L, b : 3 }]" + "->(:B { a: 3000L, c : 23 })]" + "g14:A { a : 3000L } [(:A { a : 3000L, b : 3 })-[:a { a : 3L, b : 3 }]" + "->(:B { a: 3000L, c : 23 })]" + "g24:A { a : 3000L } [(:A { a : 3...
STR + STR + STR + STR + STR + STR + STR + STR + STR + STR; static PropertyTransformationFunction DIVISION = new DivideBy(1000L); public void function() throws Exception { FlinkAsciiGraphLoader loader = getLoaderFromString(TEST_GRAPH); LogicalGraph original = loader.getLogicalGraphByVariable("g0"); LogicalGraph expected...
/** * Executes a property transformation on graphHeads, vertices and edges and checks if the result * is correct. * * @throws Exception If the execution fails. */
Executes a property transformation on graphHeads, vertices and edges and checks if the result is correct
testAllTransformationFunctions
{ "repo_name": "niklasteichmann/gradoop", "path": "gradoop-data-integration/src/test/java/org/gradoop/dataintegration/transformation/impl/PropertyTransformationTest.java", "license": "apache-2.0", "size": 12100 }
[ "org.gradoop.dataintegration.transformation.api.PropertyTransformationFunction", "org.gradoop.dataintegration.transformation.impl.functions.DivideBy", "org.gradoop.flink.model.impl.epgm.LogicalGraph", "org.gradoop.flink.util.FlinkAsciiGraphLoader" ]
import org.gradoop.dataintegration.transformation.api.PropertyTransformationFunction; import org.gradoop.dataintegration.transformation.impl.functions.DivideBy; import org.gradoop.flink.model.impl.epgm.LogicalGraph; import org.gradoop.flink.util.FlinkAsciiGraphLoader;
import org.gradoop.dataintegration.transformation.api.*; import org.gradoop.dataintegration.transformation.impl.functions.*; import org.gradoop.flink.model.impl.epgm.*; import org.gradoop.flink.util.*;
[ "org.gradoop.dataintegration", "org.gradoop.flink" ]
org.gradoop.dataintegration; org.gradoop.flink;
1,412,420
protected long createNodeVersion(long nodeId) throws GroundException { return this.factories.getNodeVersionFactory().create(new HashMap<>(), -1, null, new HashMap<>(), nodeId, new ArrayList<>()).getId(); }
long function(long nodeId) throws GroundException { return this.factories.getNodeVersionFactory().create(new HashMap<>(), -1, null, new HashMap<>(), nodeId, new ArrayList<>()).getId(); }
/** * Because we don't have simple versions, we're masking the creation of RichVersions by creating * empty NodeVersions. This is a bad hack that requires us creating a Node for each NodeVersion, * but tests right now are small. Eventually, if we mock a database, we can avoid this. * * @return A new, ran...
Because we don't have simple versions, we're masking the creation of RichVersions by creating empty NodeVersions. This is a bad hack that requires us creating a Node for each NodeVersion, but tests right now are small. Eventually, if we mock a database, we can avoid this
createNodeVersion
{ "repo_name": "ramach/ground", "path": "ground-core/src/test/java/edu/berkeley/ground/api/Neo4jTest.java", "license": "apache-2.0", "size": 2799 }
[ "edu.berkeley.ground.exceptions.GroundException", "java.util.ArrayList", "java.util.HashMap" ]
import edu.berkeley.ground.exceptions.GroundException; import java.util.ArrayList; import java.util.HashMap;
import edu.berkeley.ground.exceptions.*; import java.util.*;
[ "edu.berkeley.ground", "java.util" ]
edu.berkeley.ground; java.util;
2,176,207
public boolean isInRole(Role role) { synchronized (roles) { return (roles.contains(role)); } }
boolean function(Role role) { synchronized (roles) { return (roles.contains(role)); } }
/** * Is this user specifically assigned the specified {@link Role}? This * method does <strong>NOT</strong> check for roles inherited based on * {@link Group} membership. * * @param role The role to check */
Is this user specifically assigned the specified <code>Role</code>? This method does NOT check for roles inherited based on <code>Group</code> membership
isInRole
{ "repo_name": "NorthFacing/step-by-Java", "path": "fra-tomcat/fra-tomcat-analysis/source/book01/HowTomcatWorks/src/org/apache/catalina/users/MemoryUser.java", "license": "gpl-2.0", "size": 8504 }
[ "org.apache.catalina.Role" ]
import org.apache.catalina.Role;
import org.apache.catalina.*;
[ "org.apache.catalina" ]
org.apache.catalina;
957,861
protected void checkImage(String image) { Map<String, String> configMap = Maps.newHashMap(); configMap.put(IMAGE.unwrap().getConfigKey(), image); Configured configuration = new SimpleConfiguration(configMap); validator.checkImage(configuration, accumulator, localizationContext); }
void function(String image) { Map<String, String> configMap = Maps.newHashMap(); configMap.put(IMAGE.unwrap().getConfigKey(), image); Configured configuration = new SimpleConfiguration(configMap); validator.checkImage(configuration, accumulator, localizationContext); }
/** * Invokes checkImage with the specified configuration. * * @param image the image name */
Invokes checkImage with the specified configuration
checkImage
{ "repo_name": "cloudera/director-google-plugin", "path": "tests/src/test/java/com/cloudera/director/google/compute/GoogleComputeInstanceTemplateConfigurationValidatorTest.java", "license": "apache-2.0", "size": 33967 }
[ "com.cloudera.director.google.compute.GoogleComputeInstanceTemplateConfigurationProperty", "com.cloudera.director.spi.v1.model.Configured", "com.cloudera.director.spi.v1.model.util.SimpleConfiguration", "java.util.Map", "org.assertj.core.util.Maps" ]
import com.cloudera.director.google.compute.GoogleComputeInstanceTemplateConfigurationProperty; import com.cloudera.director.spi.v1.model.Configured; import com.cloudera.director.spi.v1.model.util.SimpleConfiguration; import java.util.Map; import org.assertj.core.util.Maps;
import com.cloudera.director.google.compute.*; import com.cloudera.director.spi.v1.model.*; import com.cloudera.director.spi.v1.model.util.*; import java.util.*; import org.assertj.core.util.*;
[ "com.cloudera.director", "java.util", "org.assertj.core" ]
com.cloudera.director; java.util; org.assertj.core;
286,572
public File getFile() { return vpkFile; }
File function() { return vpkFile; }
/** * Returns the VPK archive file for this entry. * * @return VPK archive file */
Returns the VPK archive file for this entry
getFile
{ "repo_name": "pingzing/dota2-sound-editor", "path": "jvpklib-master/src/info/ata4/vpk/VPKEntry.java", "license": "mit", "size": 8295 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,244,730
Optional<PhysicalSlot> allocateAvailableSlot( @Nonnull SlotRequestId slotRequestId, @Nonnull AllocationID allocationID);
Optional<PhysicalSlot> allocateAvailableSlot( @Nonnull SlotRequestId slotRequestId, @Nonnull AllocationID allocationID);
/** * Allocates the available slot with the given allocation id under the given request id. This method returns * {@code null} if no slot with the given allocation id is available. * * @param slotRequestId identifying the requested slot * @param allocationID the allocation id of the requested available slot ...
Allocates the available slot with the given allocation id under the given request id. This method returns null if no slot with the given allocation id is available
allocateAvailableSlot
{ "repo_name": "fhueske/flink", "path": "flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/slotpool/SlotPool.java", "license": "apache-2.0", "size": 7804 }
[ "java.util.Optional", "javax.annotation.Nonnull", "org.apache.flink.runtime.clusterframework.types.AllocationID", "org.apache.flink.runtime.jobmaster.SlotRequestId" ]
import java.util.Optional; import javax.annotation.Nonnull; import org.apache.flink.runtime.clusterframework.types.AllocationID; import org.apache.flink.runtime.jobmaster.SlotRequestId;
import java.util.*; import javax.annotation.*; import org.apache.flink.runtime.clusterframework.types.*; import org.apache.flink.runtime.jobmaster.*;
[ "java.util", "javax.annotation", "org.apache.flink" ]
java.util; javax.annotation; org.apache.flink;
1,517,420
public static List<RenderableDataItem> parseJSONObject(iWidget context, JSONObject json, boolean tabular) throws IOException { DataItemJSONParser p = new DataItemJSONParser(); DataItemParserHandler ph = new DataItemParserHandler(context); p.parse(context, json, ph); return ph.getListEx...
static List<RenderableDataItem> function(iWidget context, JSONObject json, boolean tabular) throws IOException { DataItemJSONParser p = new DataItemJSONParser(); DataItemParserHandler ph = new DataItemParserHandler(context); p.parse(context, json, ph); return ph.getListEx(); }
/** * Parses a JSON objects that contains rows of data items. The object contains * an array field "_rows" that is the array of rows and optionally an array * field called "_columns" if the data is tabular * * @param context * the context * @param json * the json object * @r...
Parses a JSON objects that contains rows of data items. The object contains an array field "_rows" that is the array of rows and optionally an array field called "_columns" if the data is tabular
parseJSONObject
{ "repo_name": "appnativa/rare", "path": "source/rare/core/com/appnativa/rare/scripting/Functions.java", "license": "gpl-3.0", "size": 107843 }
[ "com.appnativa.rare.ui.RenderableDataItem", "com.appnativa.rare.util.DataItemJSONParser", "com.appnativa.rare.util.DataItemParserHandler", "com.appnativa.util.json.JSONObject", "java.io.IOException", "java.util.List" ]
import com.appnativa.rare.ui.RenderableDataItem; import com.appnativa.rare.util.DataItemJSONParser; import com.appnativa.rare.util.DataItemParserHandler; import com.appnativa.util.json.JSONObject; import java.io.IOException; import java.util.List;
import com.appnativa.rare.ui.*; import com.appnativa.rare.util.*; import com.appnativa.util.json.*; import java.io.*; import java.util.*;
[ "com.appnativa.rare", "com.appnativa.util", "java.io", "java.util" ]
com.appnativa.rare; com.appnativa.util; java.io; java.util;
2,073,834
@Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(Patient.class)) { case ApplicationPackage.PATIENT__WEIGHT: case ApplicationPackage.PATIENT__MED_REC_NUM: case ApplicationPackage.PATIENT__STUDY_ID: ...
void function(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(Patient.class)) { case ApplicationPackage.PATIENT__WEIGHT: case ApplicationPackage.PATIENT__MED_REC_NUM: case ApplicationPackage.PATIENT__STUDY_ID: case ApplicationPackage.PATIENT__BIRTHDATE: case ApplicationPacka...
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This handles model notifications by calling <code>#updateChildren</code> to update any cached children and by creating a viewer notification, which it passes to <code>#fireNotifyChanged</code>.
notifyChanged
{ "repo_name": "mdean77/Model-Driven-Decision-Support", "path": "edu.utah.dcc.e4.application.xcore.model/src/application/provider/PatientItemProvider.java", "license": "epl-1.0", "size": 11233 }
[ "org.eclipse.emf.common.notify.Notification", "org.eclipse.emf.edit.provider.ViewerNotification" ]
import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.edit.provider.ViewerNotification;
import org.eclipse.emf.common.notify.*; import org.eclipse.emf.edit.provider.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,780,569
public static ImageDescriptor getImageDescriptor(String path) { return imageDescriptorFromPlugin(PLUGIN_ID, path); }
static ImageDescriptor function(String path) { return imageDescriptorFromPlugin(PLUGIN_ID, path); }
/** * Returns an image descriptor for the image file at the given * plug-in relative path * * @param path the path * @return the image descriptor */
Returns an image descriptor for the image file at the given plug-in relative path
getImageDescriptor
{ "repo_name": "dbeaver/dbeaver", "path": "plugins/org.jkiss.dbeaver.ext.wmi/src/org/jkiss/dbeaver/ext/wmi/Activator.java", "license": "apache-2.0", "size": 2121 }
[ "org.eclipse.jface.resource.ImageDescriptor" ]
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.*;
[ "org.eclipse.jface" ]
org.eclipse.jface;
1,103,221
private synchronized ResultScannerWrapper removeScanner(int id) { return scannerMap.remove(id); } protected ThriftHBaseServiceHandler(final Configuration c, final UserProvider userProvider) throws IOException { super(c, userProvider); scannerMap = new HashMap<>(); this.coalescer = new Incre...
synchronized ResultScannerWrapper function(int id) { return scannerMap.remove(id); } protected ThriftHBaseServiceHandler(final Configuration c, final UserProvider userProvider) throws IOException { super(c, userProvider); scannerMap = new HashMap<>(); this.coalescer = new IncrementCoalescer(this); }
/** * Removes the scanner associated with the specified ID from the internal * id-&gt;scanner hash-map. * * @param id the ID of the scanner to remove * @return a Scanner, or null if ID was invalid. */
Removes the scanner associated with the specified ID from the internal id-&gt;scanner hash-map
removeScanner
{ "repo_name": "Eshcar/hbase", "path": "hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift/ThriftHBaseServiceHandler.java", "license": "apache-2.0", "size": 45058 }
[ "java.io.IOException", "java.util.HashMap", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hbase.security.UserProvider" ]
import java.io.IOException; import java.util.HashMap; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.security.UserProvider;
import java.io.*; import java.util.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hbase.security.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
2,592,831
public void update(List<Event> events) { eventsTableModel.getEvents().clear(); eventsTableModel.setEvents(events); eventsTableModel.fireTableDataChanged(); checkButtonsState(); }
void function(List<Event> events) { eventsTableModel.getEvents().clear(); eventsTableModel.setEvents(events); eventsTableModel.fireTableDataChanged(); checkButtonsState(); }
/** * Set the events as the events of the table model. * * @param events to be used. */
Set the events as the events of the table model
update
{ "repo_name": "LogisticsImpactModel/LIMO", "path": "view/src/main/java/nl/fontys/sofa/limo/view/custom/panel/EventsPanel.java", "license": "apache-2.0", "size": 8183 }
[ "java.util.List", "nl.fontys.sofa.limo.domain.component.event.Event" ]
import java.util.List; import nl.fontys.sofa.limo.domain.component.event.Event;
import java.util.*; import nl.fontys.sofa.limo.domain.component.event.*;
[ "java.util", "nl.fontys.sofa" ]
java.util; nl.fontys.sofa;
1,636,775
String getLocalName() { if (!locale_set) { setLocale(Locale.getDefault()); } String key = this.getTypeName(); return BundleHandler.getString(hnd_local_names, key); }
String getLocalName() { if (!locale_set) { setLocale(Locale.getDefault()); } String key = this.getTypeName(); return BundleHandler.getString(hnd_local_names, key); }
/** * Retrieves a localized representation of the type's name, for human * consumption only. <p> * * @return a localized representation of the type's name */
Retrieves a localized representation of the type's name, for human consumption only.
getLocalName
{ "repo_name": "kumarrus/voltdb", "path": "src/hsqldb19b3/org/hsqldb_voltpatches/dbinfo/DITypeInfo.java", "license": "agpl-3.0", "size": 40019 }
[ "java.util.Locale", "org.hsqldb_voltpatches.resources.BundleHandler" ]
import java.util.Locale; import org.hsqldb_voltpatches.resources.BundleHandler;
import java.util.*; import org.hsqldb_voltpatches.resources.*;
[ "java.util", "org.hsqldb_voltpatches.resources" ]
java.util; org.hsqldb_voltpatches.resources;
473,016
public boolean isValidStartContextForContentKindLoose(ContentKind contentKind) { switch (contentKind) { case URI: // Allow contextual templates directly call URI templates, even if we technically need to // do HTML-escaping for correct output. Supported browsers recover gracefully when ...
boolean function(ContentKind contentKind) { switch (contentKind) { case URI: return state == State.URI; default: return isValidStartContextForContentKind(contentKind); } } private static final ImmutableMap<State, ContentKind> STATE_TO_CONTENT_KIND; static { Map<State, ContentKind> stateToContextKind = new EnumMap<>(Sta...
/** * Determines whether a particular context is allowed for contextual to strict calls. * * <p>This is slightly more relaxed, and used to help piecemeal transition of templates from * contextual to strict. */
Determines whether a particular context is allowed for contextual to strict calls. This is slightly more relaxed, and used to help piecemeal transition of templates from contextual to strict
isValidStartContextForContentKindLoose
{ "repo_name": "atul-bhouraskar/closure-templates", "path": "java/src/com/google/template/soy/parsepasses/contextautoesc/Context.java", "license": "apache-2.0", "size": 54126 }
[ "com.google.common.collect.ImmutableMap", "com.google.template.soy.data.SanitizedContent", "java.util.EnumMap", "java.util.Map" ]
import com.google.common.collect.ImmutableMap; import com.google.template.soy.data.SanitizedContent; import java.util.EnumMap; import java.util.Map;
import com.google.common.collect.*; import com.google.template.soy.data.*; import java.util.*;
[ "com.google.common", "com.google.template", "java.util" ]
com.google.common; com.google.template; java.util;
54,006
public void loaded(int startIndex, List<T> data, int totalRows, boolean cacheData) { lastScrollTop = tableBody.scrollTop(); setTotalRows(totalRows); setVisibleRange(startIndex, loaderSize); if (cacheData) { dataCache.addCache(startIndex, data); } super.lo...
void function(int startIndex, List<T> data, int totalRows, boolean cacheData) { lastScrollTop = tableBody.scrollTop(); setTotalRows(totalRows); setVisibleRange(startIndex, loaderSize); if (cacheData) { dataCache.addCache(startIndex, data); } super.loaded(startIndex, data); loading = false; if (forceScroll) { forceScrol...
/** * With infinite data loading it is often required to * change the total rows, upon loading of new data. * See {@link #loaded(int, List)} for standard use. * * @param startIndex the new start index * @param data the new list of data loaded * @param totalRows the new total ro...
With infinite data loading it is often required to change the total rows, upon loading of new data. See <code>#loaded(int, List)</code> for standard use
loaded
{ "repo_name": "GwtMaterialDesign/gwt-material-table", "path": "src/main/java/gwt/material/design/client/data/infinite/InfiniteDataView.java", "license": "apache-2.0", "size": 18557 }
[ "com.google.gwt.dom.client.Element", "java.util.List" ]
import com.google.gwt.dom.client.Element; import java.util.List;
import com.google.gwt.dom.client.*; import java.util.*;
[ "com.google.gwt", "java.util" ]
com.google.gwt; java.util;
2,022,194
public void visit(ImageSet node) { if (node == null) return; //if (node.containsImages()) { JComponent desktop = node.getInternalDesktop(); Component[] comps = desktop.getComponents(); if (comps != null) { Component c; ImageNode n; Object ho; WellSampleDat...
void function(ImageSet node) { if (node == null) return; JComponent desktop = node.getInternalDesktop(); Component[] comps = desktop.getComponents(); if (comps != null) { Component c; ImageNode n; Object ho; WellSampleData wsd; for (int i = 0; i < comps.length; i++) { c = comps[i]; if (c instanceof ImageNode) { n = (Im...
/** * Implemented as specified by {@link ImageDisplayVisitor}. * @see ImageDisplayVisitor#visit(ImageSet) */
Implemented as specified by <code>ImageDisplayVisitor</code>
visit
{ "repo_name": "stelfrich/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/dataBrowser/browser/ImageFinder.java", "license": "gpl-2.0", "size": 5139 }
[ "java.awt.Component", "javax.swing.JComponent" ]
import java.awt.Component; import javax.swing.JComponent;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
2,105,776
public Marker bitmap(final Bitmap aBitmap) { bitmap = aBitmap; return this; }
Marker function(final Bitmap aBitmap) { bitmap = aBitmap; return this; }
/** * Bitmap of marker. If null then use {@link #icon}. * This method returns the marker for convenient method chaining. */
Bitmap of marker. If null then use <code>#icon</code>. This method returns the marker for convenient method chaining
bitmap
{ "repo_name": "petercpg/MozStumbler", "path": "android/src/main/java/org/mozilla/osmdroid/api/Marker.java", "license": "mpl-2.0", "size": 2228 }
[ "android.graphics.Bitmap" ]
import android.graphics.Bitmap;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
1,624,189
void saveFSImage(SaveNamespaceContext context, StorageDirectory sd, NameNodeFile dstType) throws IOException { long txid = context.getTxId(); File newFile = NNStorage.getStorageFile(sd, NameNodeFile.IMAGE_NEW, txid); File dstFile = NNStorage.getStorageFile(sd, dstType, txid); FSImageFormatP...
void saveFSImage(SaveNamespaceContext context, StorageDirectory sd, NameNodeFile dstType) throws IOException { long txid = context.getTxId(); File newFile = NNStorage.getStorageFile(sd, NameNodeFile.IMAGE_NEW, txid); File dstFile = NNStorage.getStorageFile(sd, dstType, txid); FSImageFormatProtobuf.Saver saver = new FSI...
/** * Save the contents of the FS image to the file. */
Save the contents of the FS image to the file
saveFSImage
{ "repo_name": "myeoje/PhillyYarn", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java", "license": "apache-2.0", "size": 56473 }
[ "java.io.File", "java.io.IOException", "org.apache.hadoop.hdfs.server.common.Storage", "org.apache.hadoop.hdfs.server.namenode.NNStorage", "org.apache.hadoop.hdfs.util.MD5FileUtils", "org.apache.hadoop.util.Time" ]
import java.io.File; import java.io.IOException; import org.apache.hadoop.hdfs.server.common.Storage; import org.apache.hadoop.hdfs.server.namenode.NNStorage; import org.apache.hadoop.hdfs.util.MD5FileUtils; import org.apache.hadoop.util.Time;
import java.io.*; import org.apache.hadoop.hdfs.server.common.*; import org.apache.hadoop.hdfs.server.namenode.*; import org.apache.hadoop.hdfs.util.*; import org.apache.hadoop.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,540,008
public void setWriteOptions(final WriteOptions writeOptions) { assert(isOwningHandle()); setWriteOptions(nativeHandle_, writeOptions.nativeHandle_); } /** * If this key was previously fetched in this transaction using * {@link #getForUpdate(ReadOptions, ColumnFamilyHandle, byte[], boolean)}/ * {...
void function(final WriteOptions writeOptions) { assert(isOwningHandle()); setWriteOptions(nativeHandle_, writeOptions.nativeHandle_); } /** * If this key was previously fetched in this transaction using * {@link #getForUpdate(ReadOptions, ColumnFamilyHandle, byte[], boolean)}/ * {@link #multiGetForUpdate(ReadOptions, ...
/** * Reset the WriteOptions that will be used during {@link #commit()}. * * @param writeOptions The new WriteOptions */
Reset the WriteOptions that will be used during <code>#commit()</code>
setWriteOptions
{ "repo_name": "fceller/arangodb", "path": "3rdParty/rocksdb/6.2/java/src/main/java/org/rocksdb/Transaction.java", "license": "apache-2.0", "size": 75466 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,463,399
public void waitUntilElementIsVisible(WebElement parentElement, final By locator) { waitUntilElementsAreVisible(parentElement, new By[] {locator}, true); }
void function(WebElement parentElement, final By locator) { waitUntilElementsAreVisible(parentElement, new By[] {locator}, true); }
/** * Wait until the element specified by the locator is displayed. Give up after timeout seconds. * * @param parentElement where to look for the specified element, {@code null} to look everywhere * @param locator the locator for the element to look for * @since 7.2 */
Wait until the element specified by the locator is displayed. Give up after timeout seconds
waitUntilElementIsVisible
{ "repo_name": "pbondoer/xwiki-platform", "path": "xwiki-platform-core/xwiki-platform-test/xwiki-platform-test-ui/src/main/java/org/xwiki/test/ui/XWikiWebDriver.java", "license": "lgpl-2.1", "size": 28802 }
[ "org.openqa.selenium.By", "org.openqa.selenium.WebElement" ]
import org.openqa.selenium.By; import org.openqa.selenium.WebElement;
import org.openqa.selenium.*;
[ "org.openqa.selenium" ]
org.openqa.selenium;
868,328
private static boolean isObjectParam(AST firstChild) { final AST modifiers = firstChild.getFirstChild(); final AST type = modifiers.getNextSibling(); switch (type.getFirstChild().getType()) { case TokenTypes.LITERAL_BOOLEAN: case TokenTypes.LITERAL_BYTE: c...
static boolean function(AST firstChild) { final AST modifiers = firstChild.getFirstChild(); final AST type = modifiers.getNextSibling(); switch (type.getFirstChild().getType()) { case TokenTypes.LITERAL_BOOLEAN: case TokenTypes.LITERAL_BYTE: case TokenTypes.LITERAL_CHAR: case TokenTypes.LITERAL_DOUBLE: case TokenTypes....
/** * Determines if an AST is a formal param of type Object (or subclass). * @param firstChild the AST to check * @return true iff firstChild is a parameter of an Object type. */
Determines if an AST is a formal param of type Object (or subclass)
isObjectParam
{ "repo_name": "HubSpot/checkstyle", "path": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/EqualsHashCodeCheck.java", "license": "lgpl-2.1", "size": 5445 }
[ "com.puppycrawl.tools.checkstyle.api.TokenTypes" ]
import com.puppycrawl.tools.checkstyle.api.TokenTypes;
import com.puppycrawl.tools.checkstyle.api.*;
[ "com.puppycrawl.tools" ]
com.puppycrawl.tools;
2,726,892
public static Project getProject() { return project; }
static Project function() { return project; }
/** * Returns the project. * * @return the project */
Returns the project
getProject
{ "repo_name": "WestCoastInformatics/UMLS-Terminology-Server", "path": "integration-test/src/test/java/com/wci/umls/server/test/algo/AlgoIntegrationTestSupport.java", "license": "apache-2.0", "size": 2592 }
[ "com.wci.umls.server.Project" ]
import com.wci.umls.server.Project;
import com.wci.umls.server.*;
[ "com.wci.umls" ]
com.wci.umls;
1,257,215
private FileObserver createFileObserver(final String path) { return new FileObserver(path, FileObserver.CREATE | FileObserver.DELETE | FileObserver.MOVED_FROM | FileObserver.MOVED_TO) {
FileObserver function(final String path) { return new FileObserver(path, FileObserver.CREATE FileObserver.DELETE FileObserver.MOVED_FROM FileObserver.MOVED_TO) {
/** * Sets up a FileObserver to watch the current directory. */
Sets up a FileObserver to watch the current directory
createFileObserver
{ "repo_name": "passy/Android-DirectoryChooser", "path": "library/src/main/java/net/rdrei/android/dirchooser/DirectoryChooserFragment.java", "license": "apache-2.0", "size": 20058 }
[ "android.os.FileObserver" ]
import android.os.FileObserver;
import android.os.*;
[ "android.os" ]
android.os;
1,641,168
public boolean hasBeenModifiedSince(long lastModifiedTime){ Long modified = (Long) get(MODIFIED_IN_SECS); return modified != null && modified > TimeUnit.MILLISECONDS.toSeconds(lastModifiedTime); }
boolean function(long lastModifiedTime){ Long modified = (Long) get(MODIFIED_IN_SECS); return modified != null && modified > TimeUnit.MILLISECONDS.toSeconds(lastModifiedTime); }
/** * Checks if this document has been modified after the given lastModifiedTime * * @param lastModifiedTime time to compare against in millis * @return <tt>true</tt> if this document was modified after the given * lastModifiedTime */
Checks if this document has been modified after the given lastModifiedTime
hasBeenModifiedSince
{ "repo_name": "joansmith/jackrabbit-oak", "path": "oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/NodeDocument.java", "license": "apache-2.0", "size": 87655 }
[ "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,170,013
@Test public void testFindRangeBounds() { StackedBarRenderer3D r = new StackedBarRenderer3D(); assertNull(r.findRangeBounds(null)); // an empty dataset should return a null range DefaultCategoryDataset dataset = new DefaultCategoryDataset(); assertNull(r.findRangeBounds(...
void function() { StackedBarRenderer3D r = new StackedBarRenderer3D(); assertNull(r.findRangeBounds(null)); DefaultCategoryDataset dataset = new DefaultCategoryDataset(); assertNull(r.findRangeBounds(dataset)); dataset.addValue(1.0, "R1", "C1"); assertEquals(new Range(0.0, 1.0), r.findRangeBounds(dataset)); dataset.add...
/** * Some checks for the findRangeBounds() method. */
Some checks for the findRangeBounds() method
testFindRangeBounds
{ "repo_name": "akardapolov/ASH-Viewer", "path": "jfreechart-fse/src/test/java/org/jfree/chart/renderer/category/StackedBarRenderer3DTest.java", "license": "gpl-3.0", "size": 15669 }
[ "org.jfree.data.Range", "org.jfree.data.category.DefaultCategoryDataset", "org.junit.Assert" ]
import org.jfree.data.Range; import org.jfree.data.category.DefaultCategoryDataset; import org.junit.Assert;
import org.jfree.data.*; import org.jfree.data.category.*; import org.junit.*;
[ "org.jfree.data", "org.junit" ]
org.jfree.data; org.junit;
263,976
return defaultPrimitiveValue.get(type); } private static final Map<Class,Object> defaultPrimitiveValue = new HashMap<>(); static { defaultPrimitiveValue.put(boolean.class,false); defaultPrimitiveValue.put(int.class,0); defaultPrimitiveValue.put(long.class,0L); }
return defaultPrimitiveValue.get(type); } private static final Map<Class,Object> defaultPrimitiveValue = new HashMap<>(); static { defaultPrimitiveValue.put(boolean.class,false); defaultPrimitiveValue.put(int.class,0); defaultPrimitiveValue.put(long.class,0L); }
/** * Given the primitive type, returns the VM default value for that type in a boxed form. * For reference types, return null. */
Given the primitive type, returns the VM default value for that type in a boxed form. For reference types, return null
getVmDefaultValueFor
{ "repo_name": "stapler/stapler", "path": "core/src/main/java/org/kohsuke/stapler/ReflectionUtils.java", "license": "bsd-2-clause", "size": 3093 }
[ "java.util.HashMap", "java.util.Map" ]
import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
193,902
private List<List<RowExpression>> eliminateCommonPredicates(List<List<RowExpression>> groupedClauses) { if (groupedClauses.size() < 2) { return groupedClauses; } // initialize to self int[] reduceTo = IntStream.range(0, groupedClauses.size()).toArray(); for (i...
List<List<RowExpression>> function(List<List<RowExpression>> groupedClauses) { if (groupedClauses.size() < 2) { return groupedClauses; } int[] reduceTo = IntStream.range(0, groupedClauses.size()).toArray(); for (int i = 0; i < groupedClauses.size(); i++) { if (groupedClauses.get(i).stream().allMatch(determinismEvaluato...
/** * Eliminate a sub predicate if its sub predicates contain its peer. * For example: (a || b) && a = a, (a && b) || b = b */
Eliminate a sub predicate if its sub predicates contain its peer. For example: (a || b) && a = a, (a && b) || b = b
eliminateCommonPredicates
{ "repo_name": "prestodb/presto", "path": "presto-expressions/src/main/java/com/facebook/presto/expressions/LogicalRowExpressions.java", "license": "apache-2.0", "size": 33231 }
[ "com.facebook.presto.spi.relation.RowExpression", "java.lang.Math", "java.util.Arrays", "java.util.Collections", "java.util.List", "java.util.stream.IntStream" ]
import com.facebook.presto.spi.relation.RowExpression; import java.lang.Math; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.stream.IntStream;
import com.facebook.presto.spi.relation.*; import java.lang.*; import java.util.*; import java.util.stream.*;
[ "com.facebook.presto", "java.lang", "java.util" ]
com.facebook.presto; java.lang; java.util;
2,388,689
public void setIncludeDefaultAttachments(boolean value) { this.includeDefaultAttachments = value; } /** * Gets the value of the attachments property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make ...
void function(boolean value) { this.includeDefaultAttachments = value; } /** * Gets the value of the attachments property. * * <p> * This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the JAXB object. * This is w...
/** * Sets the value of the includeDefaultAttachments property. * */
Sets the value of the includeDefaultAttachments property
setIncludeDefaultAttachments
{ "repo_name": "contactlab/soap-api-java-client-next", "path": "src/main/java/com/contactlab/api/ws/SendImmediateMessageSidCidCA.java", "license": "apache-2.0", "size": 5828 }
[ "com.contactlab.api.ws.domain.Attachment" ]
import com.contactlab.api.ws.domain.Attachment;
import com.contactlab.api.ws.domain.*;
[ "com.contactlab.api" ]
com.contactlab.api;
345,734
public static Map<String, String> getIndexConnectionParams(Configuration conf) { String confValue = conf.get(INDEX_CONNECTION_PARAMS_CONF_KEY); if (confValue == null) { LOG.warn("No connection parameters found in configuration"); return ImmutableMap.of(); } r...
static Map<String, String> function(Configuration conf) { String confValue = conf.get(INDEX_CONNECTION_PARAMS_CONF_KEY); if (confValue == null) { LOG.warn(STR); return ImmutableMap.of(); } return Splitter.on(CONF_VALUE_SEPARATOR).withKeyValueSeparator(CONF_KEYVALUE_SEPARATOR).split(confValue); }
/** * Retrieve index connection parameters from a Configuration. * * @param conf configuration containing index connection parameters * @return index connection parameters */
Retrieve index connection parameters from a Configuration
getIndexConnectionParams
{ "repo_name": "jayfans3/hbase-indexer", "path": "hbase-indexer-mr/src/main/java/com/ngdata/hbaseindexer/mr/HBaseIndexerMapper.java", "license": "apache-2.0", "size": 14134 }
[ "com.google.common.base.Splitter", "com.google.common.collect.ImmutableMap", "java.util.Map", "org.apache.hadoop.conf.Configuration" ]
import com.google.common.base.Splitter; import com.google.common.collect.ImmutableMap; import java.util.Map; import org.apache.hadoop.conf.Configuration;
import com.google.common.base.*; import com.google.common.collect.*; import java.util.*; import org.apache.hadoop.conf.*;
[ "com.google.common", "java.util", "org.apache.hadoop" ]
com.google.common; java.util; org.apache.hadoop;
722,829
public Object loadObject(XMLControl control, Object obj) { final DarkGhostFilter filter = (DarkGhostFilter) obj; if(control.getPropertyNames().contains("fade")) { //$NON-NLS-1$ filter.setFade(control.getDouble("fade")); //$NON-NLS-1$ } filter.inspectorX = control.getInt("inspect...
Object function(XMLControl control, Object obj) { final DarkGhostFilter filter = (DarkGhostFilter) obj; if(control.getPropertyNames().contains("fade")) { filter.setFade(control.getDouble("fade")); } filter.inspectorX = control.getInt(STR); filter.inspectorY = control.getInt(STR); return obj; } } } /* * Open Source Phys...
/** * Loads a filter with data from an XMLControl. * * @param control the control * @param obj the filter * @return the loaded object */
Loads a filter with data from an XMLControl
loadObject
{ "repo_name": "dobrown/tracker-mvn", "path": "src/main/java/org/opensourcephysics/media/core/DarkGhostFilter.java", "license": "gpl-3.0", "size": 13457 }
[ "org.opensourcephysics.controls.XMLControl" ]
import org.opensourcephysics.controls.XMLControl;
import org.opensourcephysics.controls.*;
[ "org.opensourcephysics.controls" ]
org.opensourcephysics.controls;
1,846,844
public void stackOnViewerPane(Node node) { if (node == null) { return; } if (this.viewerPane != null && (!this.viewerPane.getChildren().isEmpty())) { if (this.stackedsOnViewer == null) { this.stackedsOnViewer = new ArrayList<Node>(); ...
void function(Node node) { if (node == null) { return; } if (this.viewerPane != null && (!this.viewerPane.getChildren().isEmpty())) { if (this.stackedsOnViewer == null) { this.stackedsOnViewer = new ArrayList<Node>(); } this.stackedsOnViewer.add(node); this.viewerPane.getChildren().add(node); } }
/** * stack node on viewerPane. * @param node */
stack node on viewerPane
stackOnViewerPane
{ "repo_name": "BURAI-team/burai", "path": "src/burai/app/project/QEFXProjectController.java", "license": "apache-2.0", "size": 24932 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
884,265
public void acceptRequest(long durationSeconds, PermissionRequest request) { if (request.state != PermissionRequest.State.WAITING) { throw new IllegalArgumentException("request is in invalid state! " + "The state must be 'WAITING'; it actually was " + request.state); } plugin.getLogger().info(req...
void function(long durationSeconds, PermissionRequest request) { if (request.state != PermissionRequest.State.WAITING) { throw new IllegalArgumentException(STR + STR + request.state); } plugin.getLogger().info(request.playerName + STR); plugin.getLogger().info(STR + durationSeconds + STR); plugin.getLogger().info(STR +...
/** * Accepts the given permission request. * * @param durationSeconds * @param request * @param plugin */
Accepts the given permission request
acceptRequest
{ "repo_name": "Pokechu22/WorldDownloader-Serverside-Companion", "path": "src/main/java/wdl/request/RequestManager.java", "license": "mit", "size": 7808 }
[ "java.util.Map", "org.bukkit.Bukkit", "org.bukkit.entity.Player" ]
import java.util.Map; import org.bukkit.Bukkit; import org.bukkit.entity.Player;
import java.util.*; import org.bukkit.*; import org.bukkit.entity.*;
[ "java.util", "org.bukkit", "org.bukkit.entity" ]
java.util; org.bukkit; org.bukkit.entity;
795,653
void updateAllocationConfigs(AllocationConfigs AllocationConfigs, String projectId) throws WifInvalidInputException, WifInvalidConfigException;
void updateAllocationConfigs(AllocationConfigs AllocationConfigs, String projectId) throws WifInvalidInputException, WifInvalidConfigException;
/** * Update AllocationConfigs. * * @param AllocationConfigs * the AllocationConfigs * @param projectId * the project id * @throws WifInvalidInputException * the wif invalid input exception * @throws WifInvalidConfigException * the wif invalid config e...
Update AllocationConfigs
updateAllocationConfigs
{ "repo_name": "AURIN/online-whatif", "path": "src/main/java/au/org/aurin/wif/svc/allocation/AllocationConfigsService.java", "license": "mit", "size": 2962 }
[ "au.org.aurin.wif.exception.config.WifInvalidConfigException", "au.org.aurin.wif.exception.validate.WifInvalidInputException", "au.org.aurin.wif.model.allocation.AllocationConfigs" ]
import au.org.aurin.wif.exception.config.WifInvalidConfigException; import au.org.aurin.wif.exception.validate.WifInvalidInputException; import au.org.aurin.wif.model.allocation.AllocationConfigs;
import au.org.aurin.wif.exception.config.*; import au.org.aurin.wif.exception.validate.*; import au.org.aurin.wif.model.allocation.*;
[ "au.org.aurin" ]
au.org.aurin;
2,640,181
private void sort(List processSubtree) { for (Iterator i=processSubtree.iterator(); i.hasNext();) { Process p = (Process)i.next(); Collections.sort(p.childList); sort(p.childList); } }
void function(List processSubtree) { for (Iterator i=processSubtree.iterator(); i.hasNext();) { Process p = (Process)i.next(); Collections.sort(p.childList); sort(p.childList); } }
/** * Sort process tree. * * @param processSubtree the process tree to sort */
Sort process tree
sort
{ "repo_name": "steed717/bootchart-0.9", "path": "src/org/bootchart/common/ProcessTree.java", "license": "gpl-2.0", "size": 19033 }
[ "java.util.Collections", "java.util.Iterator", "java.util.List" ]
import java.util.Collections; import java.util.Iterator; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,948,791
public RouteSession getRouteSession();
RouteSession function();
/** * Returns the <CODE>RouteSession</CODE> associated with this event. * <p> * @return The RouteSession associated with this event. */
Returns the <code>RouteSession</code> associated with this event.
getRouteSession
{ "repo_name": "kerr-huang/openss7", "path": "src/java/javax/telephony/callcenter/events/RouteSessionEvent.java", "license": "agpl-3.0", "size": 2242 }
[ "javax.telephony.callcenter.RouteSession" ]
import javax.telephony.callcenter.RouteSession;
import javax.telephony.callcenter.*;
[ "javax.telephony" ]
javax.telephony;
1,237,322
RegionEntry basicPutEntry(final EntryEventImpl event, final long lastModified) throws TimeoutException, CacheWriterException { discoverJTA(); TXStateInterface tx = getTXState(); // Note we are doing a load or netsearch result so it seems like we should set ifNew to true. // The entry should no...
RegionEntry basicPutEntry(final EntryEventImpl event, final long lastModified) throws TimeoutException, CacheWriterException { discoverJTA(); TXStateInterface tx = getTXState(); final boolean ifNew = false; if (isTX()) { tx.txPutEntry(event, ifNew, false, false, null); return null; } if (DistTXState.internalBeforeNonTX...
/** * Allows null as new value to accommodate create with a null value. * * @param event the event object for this operation, with the exception that the oldValue * parameter is not yet filled in. The oldValue will be filled in by this operation. * @param lastModified the lastModified time to set ...
Allows null as new value to accommodate create with a null value
basicPutEntry
{ "repo_name": "smgoller/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java", "license": "apache-2.0", "size": 395944 }
[ "org.apache.geode.cache.CacheWriterException", "org.apache.geode.cache.TimeoutException" ]
import org.apache.geode.cache.CacheWriterException; import org.apache.geode.cache.TimeoutException;
import org.apache.geode.cache.*;
[ "org.apache.geode" ]
org.apache.geode;
970,388
private void initData(Context context) { scroller = new WheelScroller(getContext(), scrollingListener); }
void function(Context context) { scroller = new WheelScroller(getContext(), scrollingListener); }
/** * Initializes class data * * @param context * the context */
Initializes class data
initData
{ "repo_name": "yndongyong/fast-dev-library", "path": "fastdev-library/src/main/java/org/yndongyong/fastandroid/view/wheel/city/WheelView.java", "license": "mit", "size": 21135 }
[ "android.content.Context" ]
import android.content.Context;
import android.content.*;
[ "android.content" ]
android.content;
2,895,458
private boolean validateArtifacts(Entry entry, Action action, Iterable<Artifact> actionInputs, MetadataHandler metadataHandler, boolean checkOutput) { Iterable<Artifact> artifacts = checkOutput ? Iterables.concat(action.getOutputs(), actionInputs) : actionInputs; Map<String, Metadata> md...
boolean function(Entry entry, Action action, Iterable<Artifact> actionInputs, MetadataHandler metadataHandler, boolean checkOutput) { Iterable<Artifact> artifacts = checkOutput ? Iterables.concat(action.getOutputs(), actionInputs) : actionInputs; Map<String, Metadata> mdMap = new HashMap<>(); for (Artifact artifact : a...
/** * Validate metadata state for action input or output artifacts. * * @param entry cached action information. * @param action action to be validated. * @param actionInputs the inputs of the action. Normally just the result of action.getInputs(), * but if this action doesn't yet know its inputs, we c...
Validate metadata state for action input or output artifacts
validateArtifacts
{ "repo_name": "vt09/bazel", "path": "src/main/java/com/google/devtools/build/lib/actions/ActionCacheChecker.java", "license": "apache-2.0", "size": 15445 }
[ "com.google.common.collect.Iterables", "com.google.devtools.build.lib.actions.cache.ActionCache", "com.google.devtools.build.lib.actions.cache.Digest", "com.google.devtools.build.lib.actions.cache.Metadata", "com.google.devtools.build.lib.actions.cache.MetadataHandler", "java.util.HashMap", "java.util.M...
import com.google.common.collect.Iterables; import com.google.devtools.build.lib.actions.cache.ActionCache; import com.google.devtools.build.lib.actions.cache.Digest; import com.google.devtools.build.lib.actions.cache.Metadata; import com.google.devtools.build.lib.actions.cache.MetadataHandler; import java.util.HashMap...
import com.google.common.collect.*; import com.google.devtools.build.lib.actions.cache.*; import java.util.*;
[ "com.google.common", "com.google.devtools", "java.util" ]
com.google.common; com.google.devtools; java.util;
299,202
public SessionContext getSessionContext(boolean forceCreate) { SessionContext context = sessionContexts.get(); if (null == context && forceCreate) { lazyStartSessionContext(true); context = sessionContexts.get(); } return context; }
SessionContext function(boolean forceCreate) { SessionContext context = sessionContexts.get(); if (null == context && forceCreate) { lazyStartSessionContext(true); context = sessionContexts.get(); } return context; }
/** * Get current session ctx or lazily create one. * @return session context * @param forceCreate if {@code true} we will force creating a session if not yet exists. * if {@code false} we will only create a SessionContext if a HttpSession already exists */
Get current session ctx or lazily create one
getSessionContext
{ "repo_name": "apache/openwebbeans", "path": "webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java", "license": "apache-2.0", "size": 29235 }
[ "org.apache.webbeans.context.SessionContext" ]
import org.apache.webbeans.context.SessionContext;
import org.apache.webbeans.context.*;
[ "org.apache.webbeans" ]
org.apache.webbeans;
756,605
@Test public final void testRemoveDevice16BitIn64BitExists() { // Setup the resources for the test. List<RemoteXBeeDevice> list = new ArrayList<RemoteXBeeDevice>(0); for (int i = 0; i < 3; i++) list.add(new RemoteXBeeDevice(deviceMock, new XBee64BitAddress("0013A20040A9E78"+i), new XBee16BitAdd...
final void function() { List<RemoteXBeeDevice> list = new ArrayList<RemoteXBeeDevice>(0); for (int i = 0; i < 3; i++) list.add(new RemoteXBeeDevice(deviceMock, new XBee64BitAddress(STR+i), new XBee16BitAddress("012" + i), "id"+i)); network.addRemoteDevices(list); RemoteRaw802Device deviceExists = Mockito.mock(RemoteRaw...
/** * Test method for {@link com.digi.xbee.api.XBeeNetwork#removeRemoteDevice(RemoteXBeeDevice)}. * * <p>Remove a 16-bit only remote 802.15.4 device that exists in the network. Network has 64-bit + 16-bit devices.</p> */
Test method for <code>com.digi.xbee.api.XBeeNetwork#removeRemoteDevice(RemoteXBeeDevice)</code>. Remove a 16-bit only remote 802.15.4 device that exists in the network. Network has 64-bit + 16-bit devices
testRemoveDevice16BitIn64BitExists
{ "repo_name": "digidotcom/XBeeJavaLibrary", "path": "library/src/test/java/com/digi/xbee/api/XBeeNetworkConfigurationTest.java", "license": "mpl-2.0", "size": 39388 }
[ "com.digi.xbee.api.models.XBee16BitAddress", "com.digi.xbee.api.models.XBee64BitAddress", "com.digi.xbee.api.models.XBeeProtocol", "java.util.ArrayList", "java.util.List", "java.util.Map", "org.hamcrest.core.Is", "org.junit.Assert", "org.mockito.Mockito", "org.powermock.reflect.Whitebox" ]
import com.digi.xbee.api.models.XBee16BitAddress; import com.digi.xbee.api.models.XBee64BitAddress; import com.digi.xbee.api.models.XBeeProtocol; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.hamcrest.core.Is; import org.junit.Assert; import org.mockito.Mockito; import org.powermoc...
import com.digi.xbee.api.models.*; import java.util.*; import org.hamcrest.core.*; import org.junit.*; import org.mockito.*; import org.powermock.reflect.*;
[ "com.digi.xbee", "java.util", "org.hamcrest.core", "org.junit", "org.mockito", "org.powermock.reflect" ]
com.digi.xbee; java.util; org.hamcrest.core; org.junit; org.mockito; org.powermock.reflect;
2,342,571
public static ByteBuf unmodifiableBuffer(ByteBuf buffer) { ByteOrder endianness = buffer.order(); if (endianness == BIG_ENDIAN) { return new ReadOnlyByteBuf(buffer); } return new ReadOnlyByteBuf(buffer.order(BIG_ENDIAN)).order(LITTLE_ENDIAN); }
static ByteBuf function(ByteBuf buffer) { ByteOrder endianness = buffer.order(); if (endianness == BIG_ENDIAN) { return new ReadOnlyByteBuf(buffer); } return new ReadOnlyByteBuf(buffer.order(BIG_ENDIAN)).order(LITTLE_ENDIAN); }
/** * Creates a read-only buffer which disallows any modification operations * on the specified {@code buffer}. The new buffer has the same * {@code readerIndex} and {@code writerIndex} with the specified * {@code buffer}. */
Creates a read-only buffer which disallows any modification operations on the specified buffer. The new buffer has the same readerIndex and writerIndex with the specified buffer
unmodifiableBuffer
{ "repo_name": "jongyeol/netty", "path": "buffer/src/main/java/io/netty/buffer/Unpooled.java", "license": "apache-2.0", "size": 30606 }
[ "java.nio.ByteOrder" ]
import java.nio.ByteOrder;
import java.nio.*;
[ "java.nio" ]
java.nio;
1,099,002
@POST @Path("dataspace/{spaceName:[a-zA-Z][a-zA-Z_0-9]*}{filePath:.*}") @Consumes(MediaType.MULTIPART_FORM_DATA) @Produces("application/json") boolean pushFile(@HeaderParam("sessionid") String sessionId, @PathParam("spaceName") String spaceName, @PathParam("filePath") String filePath, Mu...
@Path(STR) @Consumes(MediaType.MULTIPART_FORM_DATA) @Produces(STR) boolean pushFile(@HeaderParam(STR) String sessionId, @PathParam(STR) String spaceName, @PathParam(STR) String filePath, MultipartFormDataInput multipart) throws IOException, NotConnectedRestException, PermissionRestException;
/** * Pushes a file from the local file system into the given DataSpace * * @param sessionId * a valid session id * @param spaceName * the name of the DataSpace * @param filePath * the path inside the DataSpace where to put the file e.g. * ...
Pushes a file from the local file system into the given DataSpace
pushFile
{ "repo_name": "zeineb/scheduling", "path": "rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/SchedulerRestInterface.java", "license": "agpl-3.0", "size": 79398 }
[ "java.io.IOException", "javax.ws.rs.Consumes", "javax.ws.rs.HeaderParam", "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.Produces", "javax.ws.rs.core.MediaType", "org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput", "org.ow2.proactive_grid_cloud_portal.scheduler.excepti...
import java.io.IOException; import javax.ws.rs.Consumes; import javax.ws.rs.HeaderParam; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput; import org.ow2.proactive_grid_clou...
import java.io.*; import javax.ws.rs.*; import javax.ws.rs.core.*; import org.jboss.resteasy.plugins.providers.multipart.*; import org.ow2.proactive_grid_cloud_portal.scheduler.exception.*;
[ "java.io", "javax.ws", "org.jboss.resteasy", "org.ow2.proactive_grid_cloud_portal" ]
java.io; javax.ws; org.jboss.resteasy; org.ow2.proactive_grid_cloud_portal;
1,736,534
public void flushBuffer() throws IOException { this.response.flushBuffer(); }
void function() throws IOException { this.response.flushBuffer(); }
/** * The default behavior of this method is to call flushBuffer() * on the wrapped response object. */
The default behavior of this method is to call flushBuffer() on the wrapped response object
flushBuffer
{ "repo_name": "syntelos/gap-data", "path": "gae/lib/servlet/src/javax/servlet/ServletResponseWrapper.java", "license": "lgpl-3.0", "size": 6722 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,757,217
public void updateByXml(Source source) throws IOException { checkPermission(CONFIGURE); StringWriter out = new StringWriter(); try { // this allows us to use UTF-8 for storing data, // plus it checks any well-formedness issue in the submitted // data ...
void function(Source source) throws IOException { checkPermission(CONFIGURE); StringWriter out = new StringWriter(); try { XMLUtils.safeTransform(source, new StreamResult(out)); out.close(); } catch (TransformerException SAXException e) { throw new IOException(STR, e); } try (InputStream in = new BufferedInputStream(ne...
/** * Updates the View with the new XML definition. * @param source source of the Item's new definition. * The source should be either a <code>StreamSource</code> or <code>SAXSource</code>, other sources * may not be handled. */
Updates the View with the new XML definition
updateByXml
{ "repo_name": "ErikVerheul/jenkins", "path": "core/src/main/java/hudson/model/View.java", "license": "mit", "size": 51121 }
[ "com.thoughtworks.xstream.converters.ConversionException", "com.thoughtworks.xstream.io.StreamException", "hudson.util.XStream2", "java.io.BufferedInputStream", "java.io.ByteArrayInputStream", "java.io.IOException", "java.io.InputStream", "java.io.StringWriter", "javax.xml.transform.Source", "java...
import com.thoughtworks.xstream.converters.ConversionException; import com.thoughtworks.xstream.io.StreamException; import hudson.util.XStream2; import java.io.BufferedInputStream; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; import java.io.StringWriter; import javax.xml....
import com.thoughtworks.xstream.converters.*; import com.thoughtworks.xstream.io.*; import hudson.util.*; import java.io.*; import javax.xml.transform.*; import javax.xml.transform.stream.*; import org.xml.sax.*;
[ "com.thoughtworks.xstream", "hudson.util", "java.io", "javax.xml", "org.xml.sax" ]
com.thoughtworks.xstream; hudson.util; java.io; javax.xml; org.xml.sax;
1,402,010
private void updateConfig(WatchService watchService) throws InterruptedException { int attempts = 10; while (--attempts >= 0) { WatchKey key = watchService.poll(100, TimeUnit.MILLISECONDS); if (key != null) { Optional<Path> configFilePath = key.pollEvents().stream() .map((event) -> (Path) event....
void function(WatchService watchService) throws InterruptedException { int attempts = 10; while (--attempts >= 0) { WatchKey key = watchService.poll(100, TimeUnit.MILLISECONDS); if (key != null) { Optional<Path> configFilePath = key.pollEvents().stream() .map((event) -> (Path) event.context()) .filter((path) -> ENV_FIL...
/** * Wait until a PubSub emulator configuration file is updated. * Fail if the file does not update after 1 second. * @param watchService the watch-service to poll * @throws InterruptedException which should interrupt the peaceful slumber and bubble up * to fail the test. */
Wait until a PubSub emulator configuration file is updated. Fail if the file does not update after 1 second
updateConfig
{ "repo_name": "spring-cloud/spring-cloud-gcp", "path": "spring-cloud-gcp-pubsub-stream-binder/src/test/java/org/springframework/cloud/gcp/stream/binder/pubsub/PubSubEmulator.java", "license": "apache-2.0", "size": 8779 }
[ "java.nio.file.Path", "java.nio.file.WatchKey", "java.nio.file.WatchService", "java.util.Optional", "java.util.concurrent.TimeUnit", "org.junit.Assert" ]
import java.nio.file.Path; import java.nio.file.WatchKey; import java.nio.file.WatchService; import java.util.Optional; import java.util.concurrent.TimeUnit; import org.junit.Assert;
import java.nio.file.*; import java.util.*; import java.util.concurrent.*; import org.junit.*;
[ "java.nio", "java.util", "org.junit" ]
java.nio; java.util; org.junit;
657,066
public List<Integer> getErrorValue() { List<Integer> errorValue = new LinkedList<>(); if (llerrorObjList != null) { ListIterator<PcepErrorObject> errObjListIterator = llerrorObjList.listIterator(); int error; PcepErrorObject errorObj; while (errObjList...
List<Integer> function() { List<Integer> errorValue = new LinkedList<>(); if (llerrorObjList != null) { ListIterator<PcepErrorObject> errObjListIterator = llerrorObjList.listIterator(); int error; PcepErrorObject errorObj; while (errObjListIterator.hasNext()) { errorObj = errObjListIterator.next(); error = errorObj.get...
/** * Return list of Error Values. * * @return error values list */
Return list of Error Values
getErrorValue
{ "repo_name": "sonu283304/onos", "path": "protocols/pcep/pcepio/src/main/java/org/onosproject/pcepio/types/ErrorObjListWithOpen.java", "license": "apache-2.0", "size": 5207 }
[ "java.util.LinkedList", "java.util.List", "java.util.ListIterator", "org.onosproject.pcepio.protocol.PcepErrorObject" ]
import java.util.LinkedList; import java.util.List; import java.util.ListIterator; import org.onosproject.pcepio.protocol.PcepErrorObject;
import java.util.*; import org.onosproject.pcepio.protocol.*;
[ "java.util", "org.onosproject.pcepio" ]
java.util; org.onosproject.pcepio;
1,849,444
public static Path normalize(Path path) { if (!EMPTY_PATH.equals(path)) { path = path.normalize(); } return path; } /** * Creates a symlink at * {@code projectFilesystem.getRootPath().resolve(pathToDesiredLinkUnderProjectRoot)} that * points to {@code projectFilesystem.getRootPath().re...
static Path function(Path path) { if (!EMPTY_PATH.equals(path)) { path = path.normalize(); } return path; } /** * Creates a symlink at * {@code projectFilesystem.getRootPath().resolve(pathToDesiredLinkUnderProjectRoot)} that * points to {@code projectFilesystem.getRootPath().resolve(pathToExistingFileUnderProjectRoot)}
/** * Get a path without unnecessary path parts. * * This method is a workaround for JDK-8037945 (Paths.get("").normalize() throws * ArrayIndexOutOfBoundsException). */
Get a path without unnecessary path parts. This method is a workaround for JDK-8037945 (Paths.get("").normalize() throws ArrayIndexOutOfBoundsException)
normalize
{ "repo_name": "hgl888/buck", "path": "src/com/facebook/buck/io/MorePaths.java", "license": "apache-2.0", "size": 11084 }
[ "java.nio.file.Path" ]
import java.nio.file.Path;
import java.nio.file.*;
[ "java.nio" ]
java.nio;
987,054
public static double[][] readDoubleMatrix(DataInputStream bw) throws IOException { int rows = bw.readInt(); double[][] matrix = new double[rows][]; for (int i = 0; i < rows; i++) { matrix[i] = readDoubleVector(bw); } return matrix; }
static double[][] function(DataInputStream bw) throws IOException { int rows = bw.readInt(); double[][] matrix = new double[rows][]; for (int i = 0; i < rows; i++) { matrix[i] = readDoubleVector(bw); } return matrix; }
/** * Read matrix from file. * * @param bw * @return * @throws IOException */
Read matrix from file
readDoubleMatrix
{ "repo_name": "hmetaxa/MixLDA", "path": "src/org/knowceans/util/ArrayIo.java", "license": "epl-1.0", "size": 20262 }
[ "java.io.DataInputStream", "java.io.IOException" ]
import java.io.DataInputStream; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,037,128
private void processReview(CatalogueDBAdapter db, Bundle review) { long grId = review.getLong(ListReviewsFieldNames.GR_BOOK_ID); // Find the books in our database - NOTE: may be more than one! // First look by goodreads book ID BooksCursor c = db.fetchBooksByGoodreadsBookId(grId); try { boolean ...
void function(CatalogueDBAdapter db, Bundle review) { long grId = review.getLong(ListReviewsFieldNames.GR_BOOK_ID); BooksCursor c = db.fetchBooksByGoodreadsBookId(grId); try { boolean found = c.moveToFirst(); if (!found) { c.close(); c = null; ArrayList<String> isbns = extractIsbns(review); if (isbns != null && isbns.s...
/** * Process one review (book). * * @param db * @param review */
Process one review (book)
processReview
{ "repo_name": "Imkal/Book-Catalogue", "path": "src/com/eleybourn/bookcatalogue/goodreads/ImportAllTask.java", "license": "gpl-3.0", "size": 21245 }
[ "android.os.Bundle", "com.eleybourn.bookcatalogue.BooksCursor", "com.eleybourn.bookcatalogue.BooksRowView", "com.eleybourn.bookcatalogue.CatalogueDBAdapter", "com.eleybourn.bookcatalogue.goodreads.api.ListReviewsApiHandler", "java.util.ArrayList" ]
import android.os.Bundle; import com.eleybourn.bookcatalogue.BooksCursor; import com.eleybourn.bookcatalogue.BooksRowView; import com.eleybourn.bookcatalogue.CatalogueDBAdapter; import com.eleybourn.bookcatalogue.goodreads.api.ListReviewsApiHandler; import java.util.ArrayList;
import android.os.*; import com.eleybourn.bookcatalogue.*; import com.eleybourn.bookcatalogue.goodreads.api.*; import java.util.*;
[ "android.os", "com.eleybourn.bookcatalogue", "java.util" ]
android.os; com.eleybourn.bookcatalogue; java.util;
2,472,829
protected void leaveAST(DetailAST aAST) { }
void function(DetailAST aAST) { }
/** * Called when exiting an AST. A no-op by default, extending classes * may choose to override this to augment their processing. * @param aAST the AST we are departing. Guaranteed to not be PACKAGE_DEF, * CLASS_DEF, or IMPORT */
Called when exiting an AST. A no-op by default, extending classes may choose to override this to augment their processing
leaveAST
{ "repo_name": "jdoyle65/checkstyle", "path": "src/checkstyle/com/puppycrawl/tools/checkstyle/checks/AbstractTypeAwareCheck.java", "license": "lgpl-2.1", "size": 19146 }
[ "com.puppycrawl.tools.checkstyle.api.DetailAST" ]
import com.puppycrawl.tools.checkstyle.api.DetailAST;
import com.puppycrawl.tools.checkstyle.api.*;
[ "com.puppycrawl.tools" ]
com.puppycrawl.tools;
2,245,926
PsiFile addFileToProject(@NotNull String relativePath, @NotNull String fileText);
PsiFile addFileToProject(@NotNull String relativePath, @NotNull String fileText);
/** * Creates a file with the specified path and contents in the test project directory. * * @param relativePath the path for the file to create, relative to the test project source root. * @param fileText the text to put into the created file. * @return the PSI file for the created file. */
Creates a file with the specified path and contents in the test project directory
addFileToProject
{ "repo_name": "MER-GROUP/intellij-community", "path": "platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightTestFixture.java", "license": "apache-2.0", "size": 22076 }
[ "com.intellij.psi.PsiFile", "org.jetbrains.annotations.NotNull" ]
import com.intellij.psi.PsiFile; import org.jetbrains.annotations.NotNull;
import com.intellij.psi.*; import org.jetbrains.annotations.*;
[ "com.intellij.psi", "org.jetbrains.annotations" ]
com.intellij.psi; org.jetbrains.annotations;
1,509,466
@SuppressLint("DefaultLocale") public static String getBrush(String extension) { if (TextUtils.isEmpty(extension)) { return null; } extension = extension.toLowerCase(); for (String map[]: mapping) { for (int i = 1; i < map.length; i++) { if (extension.equals(map[i])) { return map[0]; } ...
@SuppressLint(STR) static String function(String extension) { if (TextUtils.isEmpty(extension)) { return null; } extension = extension.toLowerCase(); for (String map[]: mapping) { for (int i = 1; i < map.length; i++) { if (extension.equals(map[i])) { return map[0]; } } } return null; }
/** * Get brush name based on extension. * * @param extension * @return null if no mapping found */
Get brush name based on extension
getBrush
{ "repo_name": "andrewromanenco/git.android", "path": "src/com/romanenco/gitt/syntax/SyntaxHelper.java", "license": "gpl-3.0", "size": 5696 }
[ "android.annotation.SuppressLint", "android.text.TextUtils" ]
import android.annotation.SuppressLint; import android.text.TextUtils;
import android.annotation.*; import android.text.*;
[ "android.annotation", "android.text" ]
android.annotation; android.text;
776,238
private Map<Integer, String> convertTEXT(boolean returnMapItemIDWord, Charset charset) throws IOException { // This map will be used to store mapping from item id (key) to words (value). // It is used only if returnMapItemIDValue is set to true. This is used by the GUI of SPMF // which need to keep this in...
Map<Integer, String> function(boolean returnMapItemIDWord, Charset charset) throws IOException { Map<Integer, String> mapItemsIDToWords = null; if(returnMapItemIDWord){ mapItemsIDToWords = new HashMap<Integer, String>(); } Map<String, Integer> mapWordsToItemIDs = new HashMap<String,Integer>();; BufferedWriter writer = ...
/** * This method convert a file from the TEXT format to the SPMF format. * * @param returnMapItemIDWord * @param charset the charset (encoding) of the input file(e.g "UTF-8") * or null if you want to use the default text encoding. * @throws IOException exception if error while reading/writing fil...
This method convert a file from the TEXT format to the SPMF format
convertTEXT
{ "repo_name": "qualitified/qualitified-crm", "path": "qualitified-crm-core/src/main/java/ca/pfv/spmf/tools/dataset_converter/SequenceDatabaseConverter.java", "license": "gpl-3.0", "size": 20575 }
[ "java.io.BufferedReader", "java.io.BufferedWriter", "java.io.File", "java.io.FileInputStream", "java.io.FileOutputStream", "java.io.IOException", "java.io.InputStreamReader", "java.io.OutputStreamWriter", "java.nio.charset.Charset", "java.util.HashMap", "java.util.Map" ]
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.nio.charset.Charset; import java.util.HashMap; import java.util...
import java.io.*; import java.nio.charset.*; import java.util.*;
[ "java.io", "java.nio", "java.util" ]
java.io; java.nio; java.util;
1,213,843
@Override public boolean condition(Food product) { boolean condition = false; if (product.getPercentExpiryDate() > percentWarehouse & product.getPercentExpiryDate() <= percentShop) { condition = true; } else if (product.getPercentExpiryDate() > percentShop & product.getPercen...
boolean function(Food product) { boolean condition = false; if (product.getPercentExpiryDate() > percentWarehouse & product.getPercentExpiryDate() <= percentShop) { condition = true; } else if (product.getPercentExpiryDate() > percentShop & product.getPercentExpiryDate() < percentTrash) { condition = true; product.setD...
/** * Condition to add the product. * @param product product. * @return boolean. */
Condition to add the product
condition
{ "repo_name": "Apeksi1990/asemenov", "path": "chapter_004/src/main/java/ru/asemenov/FoodStorage/Storage/Shop.java", "license": "apache-2.0", "size": 1567 }
[ "ru.asemenov.FoodStorage" ]
import ru.asemenov.FoodStorage;
import ru.asemenov.*;
[ "ru.asemenov" ]
ru.asemenov;
2,847,538
public static <K, V> void writeMapToBundle(Map<K, V> map, Bundle bundle, Class<K> keyClass, Class<V> valueClass, String bundleKe...
static <K, V> void function(Map<K, V> map, Bundle bundle, Class<K> keyClass, Class<V> valueClass, String bundleKey) { ArrayList<K> keys = new ArrayList<>(map.size()); ArrayList<V> values = new ArrayList<>(map.size()); for (Map.Entry<K, V> entry : map.entrySet()) { keys.add(entry.getKey()); values.add(entry.getValue());...
/** * Write the given map to bundle, using the given {@code bundleKey} to identify it. * * @param map The Map to write. * @param bundle The Bundle to which the Map will be written. * @param keyClass The class representing the type for the map keys. * @param valueClass The class representin...
Write the given map to bundle, using the given bundleKey to identify it
writeMapToBundle
{ "repo_name": "aurae/postman", "path": "postman/src/main/java/com/workday/postman/parceler/MapBundler.java", "license": "mit", "size": 4358 }
[ "android.os.Bundle", "java.util.ArrayList", "java.util.Map" ]
import android.os.Bundle; import java.util.ArrayList; import java.util.Map;
import android.os.*; import java.util.*;
[ "android.os", "java.util" ]
android.os; java.util;
680,894
public boolean scrollUp(){ waiter.waitForViews(AbsListView.class, ScrollView.class); return scroller.scroll(Scroller.UP); }
boolean function(){ waiter.waitForViews(AbsListView.class, ScrollView.class); return scroller.scroll(Scroller.UP); }
/** * Scrolls up the screen. * * @return {@code true} if more scrolling can be done and {@code false} if it is at the top of * the screen * */
Scrolls up the screen
scrollUp
{ "repo_name": "moizjv/robotium", "path": "robotium-solo/src/main/java/com/jayway/android/robotium/solo/Solo.java", "license": "apache-2.0", "size": 59557 }
[ "android.widget.AbsListView", "android.widget.ScrollView" ]
import android.widget.AbsListView; import android.widget.ScrollView;
import android.widget.*;
[ "android.widget" ]
android.widget;
1,458,776
public void setHost(Host host) { this.host = host; }
void function(Host host) { this.host = host; }
/** * Sets the current host - all future webapps will * be added to this host. When tomcat starts, the * host will be the default host. * * @param host */
Sets the current host - all future webapps will be added to this host. When tomcat starts, the host will be the default host
setHost
{ "repo_name": "thanple/tomcatsrc", "path": "java/org/apache/catalina/startup/Tomcat.java", "license": "apache-2.0", "size": 42760 }
[ "org.apache.catalina.Host" ]
import org.apache.catalina.Host;
import org.apache.catalina.*;
[ "org.apache.catalina" ]
org.apache.catalina;
2,494,628
public boolean has(String name, Scriptable start) { boolean ret_val = false; if(propertyNames.contains(name)) ret_val = true; else ret_val = super.has(name, start); return ret_val; }
boolean function(String name, Scriptable start) { boolean ret_val = false; if(propertyNames.contains(name)) ret_val = true; else ret_val = super.has(name, start); return ret_val; }
/** * Check for the named property presence. * * @return true if it is a defined eventOut or field */
Check for the named property presence
has
{ "repo_name": "Norkart/NK-VirtualGlobe", "path": "Xj3D/src/java/org/web3d/vrml/scripting/ecmascript/builtin/MFVec3f.java", "license": "gpl-2.0", "size": 14488 }
[ "org.mozilla.javascript.Scriptable" ]
import org.mozilla.javascript.Scriptable;
import org.mozilla.javascript.*;
[ "org.mozilla.javascript" ]
org.mozilla.javascript;
576,201
private void geography(ILCDProcess process, ES1Dataset dataset) { // #> geography ES1Geography eGeography = new ES1Geography(); dataset.geography = eGeography; if (process.geography != null) { // @ location, text eGeography.location = process.geography.location; eGeography.text = LangString.getFir...
void function(ILCDProcess process, ES1Dataset dataset) { ES1Geography eGeography = new ES1Geography(); dataset.geography = eGeography; if (process.geography != null) { eGeography.location = process.geography.location; eGeography.text = LangString.getFirstValue( process.geography.getDescription(), "en"); } }
/** * Creates the geography element. */
Creates the geography element
geography
{ "repo_name": "GreenDelta/olca-converter", "path": "src/main/java/org/openlca/olcatdb/conversion/ILCDToES1Conversion.java", "license": "mpl-2.0", "size": 32113 }
[ "org.openlca.olcatdb.datatypes.LangString", "org.openlca.olcatdb.ecospold1.ES1Dataset", "org.openlca.olcatdb.ecospold1.ES1Geography", "org.openlca.olcatdb.ilcd.ILCDProcess" ]
import org.openlca.olcatdb.datatypes.LangString; import org.openlca.olcatdb.ecospold1.ES1Dataset; import org.openlca.olcatdb.ecospold1.ES1Geography; import org.openlca.olcatdb.ilcd.ILCDProcess;
import org.openlca.olcatdb.datatypes.*; import org.openlca.olcatdb.ecospold1.*; import org.openlca.olcatdb.ilcd.*;
[ "org.openlca.olcatdb" ]
org.openlca.olcatdb;
133,263
public int getForegroundGravity() { return mForegroundGravity; } /** * Describes how the foreground is positioned. Defaults to START and TOP. * * @param foregroundGravity See {@link android.view.Gravity}
int function() { return mForegroundGravity; } /** * Describes how the foreground is positioned. Defaults to START and TOP. * * @param foregroundGravity See {@link android.view.Gravity}
/** * Describes how the foreground is positioned. * * @return foreground gravity. * * @see #setForegroundGravity(int) * * @attr ref android.R.styleable#FrameLayout_foregroundGravity */
Describes how the foreground is positioned
getForegroundGravity
{ "repo_name": "skyacer/android-open-project-demo", "path": "circular-reveal-demo/sample/src/main/java/com/toaker/circularreveal/sample/widget/FrameLayoutCompat.java", "license": "apache-2.0", "size": 26244 }
[ "android.view.Gravity" ]
import android.view.Gravity;
import android.view.*;
[ "android.view" ]
android.view;
1,036,553
private static PrintStream getLogStream(final Logger logger, final Method method) { return new PrintStream(new ByteArrayOutputStream() { private int scan = 0;
static PrintStream function(final Logger logger, final Method method) { return new PrintStream(new ByteArrayOutputStream() { private int scan = 0;
/** * Returns a stream that, when written to, adds log lines. */
Returns a stream that, when written to, adds log lines
getLogStream
{ "repo_name": "Haixing-Hu/commons", "path": "src/main/java/com/github/haixing_hu/io/LogUtils.java", "license": "apache-2.0", "size": 3084 }
[ "java.io.ByteArrayOutputStream", "java.io.PrintStream", "java.lang.reflect.Method", "org.slf4j.Logger" ]
import java.io.ByteArrayOutputStream; import java.io.PrintStream; import java.lang.reflect.Method; import org.slf4j.Logger;
import java.io.*; import java.lang.reflect.*; import org.slf4j.*;
[ "java.io", "java.lang", "org.slf4j" ]
java.io; java.lang; org.slf4j;
2,255,053
public static Mutation getMutationOperator(String name, HashMap parameters) throws JMException{ if (name.equalsIgnoreCase("PolynomialMutation")) return new PolynomialMutation(parameters); else if (name.equalsIgnoreCase("BitFlipMutation")) return new BitFlipMutation(parameters); else if...
static Mutation function(String name, HashMap parameters) throws JMException{ if (name.equalsIgnoreCase(STR)) return new PolynomialMutation(parameters); else if (name.equalsIgnoreCase(STR)) return new BitFlipMutation(parameters); else if (name.equalsIgnoreCase(STR)) return new SwapMutation(parameters); else { Configura...
/** * Gets a crossover operator through its name. * @param name of the operator * @return the operator * @throws JMException */
Gets a crossover operator through its name
getMutationOperator
{ "repo_name": "vpillac/vroom", "path": "Libraries/jmetal-4.0/src/jmetal/operators/mutation/MutationFactory.java", "license": "gpl-3.0", "size": 2122 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,652,067
public void join(MutationState newMutationState) throws SQLException { if (this == newMutationState) { // Doesn't make sense return; } phoenixTransactionContext.join(newMutationState.getPhoenixTransactionContext()); this.sizeOffset += newMutationState.sizeOffset; ...
void function(MutationState newMutationState) throws SQLException { if (this == newMutationState) { return; } phoenixTransactionContext.join(newMutationState.getPhoenixTransactionContext()); this.sizeOffset += newMutationState.sizeOffset; joinMutationState(newMutationState.mutations, this.mutations); if (!newMutationSt...
/** * Combine a newer mutation with this one, where in the event of overlaps, the newer one will take precedence. * Combine any metrics collected for the newer mutation. * * @param newMutationState * the newer mutation state */
Combine a newer mutation with this one, where in the event of overlaps, the newer one will take precedence. Combine any metrics collected for the newer mutation
join
{ "repo_name": "ohadshacham/phoenix", "path": "phoenix-core/src/main/java/org/apache/phoenix/execute/MutationState.java", "license": "apache-2.0", "size": 74600 }
[ "com.google.common.collect.Maps", "java.sql.SQLException" ]
import com.google.common.collect.Maps; import java.sql.SQLException;
import com.google.common.collect.*; import java.sql.*;
[ "com.google.common", "java.sql" ]
com.google.common; java.sql;
1,623,513
@Override() public java.lang.Class getJavaClass( ) { return org.chocolate_milk.model.SalesOrderModRsType.class; }
@Override() java.lang.Class function( ) { return org.chocolate_milk.model.SalesOrderModRsType.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/SalesOrderModRsTypeDescriptor.java", "license": "lgpl-3.0", "size": 13405 }
[ "org.chocolate_milk.model.SalesOrderModRsType" ]
import org.chocolate_milk.model.SalesOrderModRsType;
import org.chocolate_milk.model.*;
[ "org.chocolate_milk.model" ]
org.chocolate_milk.model;
241,300
@Predicate(name = "stdlib_datetime_to_string") public static Set<List<ConstantTerm<String>>> datetimeToString(int year, int month, int day, int hours, int minutes, int seconds, String format) { LocalDateTime datetime = LocalDateTime.of(year, month, day, hours, minutes, seconds); DateTimeFormatter formatter = Da...
@Predicate(name = STR) static Set<List<ConstantTerm<String>>> function(int year, int month, int day, int hours, int minutes, int seconds, String format) { LocalDateTime datetime = LocalDateTime.of(year, month, day, hours, minutes, seconds); DateTimeFormatter formatter = DateTimeFormatter.ofPattern(format); return Colle...
/** * Formats a datetime value represented using six integers as a string according * to the given pattern. Valid format trings are those accepted by * {@link DateTimeFormatter.ofPattern}. * * @param year * @param month * @param day * @param hours * @param minutes * @param seconds * @param format...
Formats a datetime value represented using six integers as a string according to the given pattern. Valid format trings are those accepted by <code>DateTimeFormatter.ofPattern</code>
datetimeToString
{ "repo_name": "AntoniusW/Alpha", "path": "src/main/java/at/ac/tuwien/kr/alpha/api/externals/stdlib/AspStandardLibrary.java", "license": "bsd-2-clause", "size": 9342 }
[ "at.ac.tuwien.kr.alpha.api.externals.Predicate", "at.ac.tuwien.kr.alpha.common.terms.ConstantTerm", "at.ac.tuwien.kr.alpha.common.terms.Terms", "java.time.LocalDateTime", "java.time.format.DateTimeFormatter", "java.util.Collections", "java.util.List", "java.util.Set" ]
import at.ac.tuwien.kr.alpha.api.externals.Predicate; import at.ac.tuwien.kr.alpha.common.terms.ConstantTerm; import at.ac.tuwien.kr.alpha.common.terms.Terms; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.Collections; import java.util.List; import java.util.Set;
import at.ac.tuwien.kr.alpha.api.externals.*; import at.ac.tuwien.kr.alpha.common.terms.*; import java.time.*; import java.time.format.*; import java.util.*;
[ "at.ac.tuwien", "java.time", "java.util" ]
at.ac.tuwien; java.time; java.util;
1,196,626
protected void processContainerAddChild(Container parent, Container child) { if (log.isDebugEnabled()) log.debug("Process addChild[parent=" + parent + ",child=" + child + "]"); try { if (child instanceof Context) { ...
void function(Container parent, Container child) { if (log.isDebugEnabled()) log.debug(STR + parent + STR + child + "]"); try { if (child instanceof Context) { createMBeans((Context) child); } else if (child instanceof Engine) { createMBeans((Engine) child); } else if (child instanceof Host) { createMBeans((Host) child...
/** * Process the addition of a new child Container to a parent Container. * * @param parent Parent container * @param child Child container */
Process the addition of a new child Container to a parent Container
processContainerAddChild
{ "repo_name": "plumer/codana", "path": "tomcat_files/7.0.0/ServerLifecycleListener.java", "license": "mit", "size": 41715 }
[ "javax.management.MBeanException", "org.apache.catalina.Container", "org.apache.catalina.Context", "org.apache.catalina.Engine", "org.apache.catalina.Host" ]
import javax.management.MBeanException; import org.apache.catalina.Container; import org.apache.catalina.Context; import org.apache.catalina.Engine; import org.apache.catalina.Host;
import javax.management.*; import org.apache.catalina.*;
[ "javax.management", "org.apache.catalina" ]
javax.management; org.apache.catalina;
269,243
public ByteBuffer buffer() throws TlvException;
ByteBuffer function() throws TlvException;
/** * Calculate and return TLV bytes. * * @return tlv bytes * @throws TlvException TLV contains wrong values */
Calculate and return TLV bytes
buffer
{ "repo_name": "fchienvuhoang/smppclient", "path": "src/main/java/org/bulatnig/smpp/pdu/tlv/Tlv.java", "license": "bsd-3-clause", "size": 1804 }
[ "org.bulatnig.smpp.util.ByteBuffer" ]
import org.bulatnig.smpp.util.ByteBuffer;
import org.bulatnig.smpp.util.*;
[ "org.bulatnig.smpp" ]
org.bulatnig.smpp;
1,612,979
void send(List<PairValueDTO<String>> params, IMessageComposer composer);
void send(List<PairValueDTO<String>> params, IMessageComposer composer);
/** * Send the message from the given list of template parameters * and {@link IMessageComposer} instance. * * @param params the given list of template parameters. * @param composer the given {@link IMessageComposer} instance. */
Send the message from the given list of template parameters and <code>IMessageComposer</code> instance
send
{ "repo_name": "inetcloud/iMail", "path": "source/com.inet.mail/src/com/inet/mail/service/MailSynchronizeSL.java", "license": "gpl-2.0", "size": 2560 }
[ "com.inet.mail.data.PairValueDTO", "com.inet.mail.parser.IMessageComposer", "java.util.List" ]
import com.inet.mail.data.PairValueDTO; import com.inet.mail.parser.IMessageComposer; import java.util.List;
import com.inet.mail.data.*; import com.inet.mail.parser.*; import java.util.*;
[ "com.inet.mail", "java.util" ]
com.inet.mail; java.util;
761,543
public BufferedImage readImage(InputStream in, JPEG2000CodecOptions options) throws IOException, ServiceException;
BufferedImage function(InputStream in, JPEG2000CodecOptions options) throws IOException, ServiceException;
/** * Reads an image using JAI Image I/O using the JPEG 2000 codec. * @param in Target input stream. * @param options Options for the JPEG 2000 codec. * @return An AWT buffered image. * @throws IOException Thrown if there is an error reading from or writing * to one of the target streams / buffers. ...
Reads an image using JAI Image I/O using the JPEG 2000 codec
readImage
{ "repo_name": "imunro/bioformats", "path": "components/formats-bsd/src/loci/formats/services/JAIIIOService.java", "license": "gpl-2.0", "size": 4882 }
[ "java.awt.image.BufferedImage", "java.io.IOException", "java.io.InputStream" ]
import java.awt.image.BufferedImage; import java.io.IOException; import java.io.InputStream;
import java.awt.image.*; import java.io.*;
[ "java.awt", "java.io" ]
java.awt; java.io;
187,114
//----------------------------------------------------------------------- public ValueRequirement getValueRequirement() { return _valueRequirement; }
ValueRequirement function() { return _valueRequirement; }
/** * Gets the valueRequirement. * @return the value of the property */
Gets the valueRequirement
getValueRequirement
{ "repo_name": "McLeodMoores/starling", "path": "projects/financial-rest-client/src/main/java/com/opengamma/financial/livedata/rest/AddValueRequest.java", "license": "apache-2.0", "size": 9505 }
[ "com.opengamma.engine.value.ValueRequirement" ]
import com.opengamma.engine.value.ValueRequirement;
import com.opengamma.engine.value.*;
[ "com.opengamma.engine" ]
com.opengamma.engine;
1,329,479
private void assignDocumentId(List<SubAwardAttachments> attachments, final Map<String, Integer> typeToDocNumber) { for (SubAwardAttachments attachment : attachments) { if (attachment.isNew()) { final Integer nextDocNumber = SubAwardAttachmentFormBean.createNex...
void function(List<SubAwardAttachments> attachments, final Map<String, Integer> typeToDocNumber) { for (SubAwardAttachments attachment : attachments) { if (attachment.isNew()) { final Integer nextDocNumber = SubAwardAttachmentFormBean.createNextDocNumber(typeToDocNumber.get(attachment.getSubAwardAttachmentTypeCode()));...
/** * assigns a document id to all attachments in the passed in collection based on the passed in type to doc number map. * * @param <T> the type of attachments * @param attachments the collection of attachments that require doc number assignment * @param typeToDocNumber the map that contain...
assigns a document id to all attachments in the passed in collection based on the passed in type to doc number map
assignDocumentId
{ "repo_name": "rashikpolus/MIT_KC", "path": "coeus-impl/src/main/java/org/kuali/kra/subaward/templateAttachments/SubAwardAttachmentFormBean.java", "license": "agpl-3.0", "size": 11003 }
[ "java.util.List", "java.util.Map", "org.kuali.kra.subaward.bo.SubAwardAttachments" ]
import java.util.List; import java.util.Map; import org.kuali.kra.subaward.bo.SubAwardAttachments;
import java.util.*; import org.kuali.kra.subaward.bo.*;
[ "java.util", "org.kuali.kra" ]
java.util; org.kuali.kra;
1,166,184
public Paint getPaint() { if (realPaint != null) { return realPaint; } else { return paint; } }
Paint function() { if (realPaint != null) { return realPaint; } else { return paint; } }
/** * Method contributed by Alexej Suchov * @see Graphics2D#getPaint() */
Method contributed by Alexej Suchov
getPaint
{ "repo_name": "AlehGalo/jasper-themes-ext", "path": "src/main/java/PDFGraphics2D_.java", "license": "mit", "size": 56357 }
[ "java.awt.Paint" ]
import java.awt.Paint;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,060,416
public final <E extends Event> void register(int opcode, EventDecoder<E> decoder) { if (opcode < 0 || opcode >= decoders.length) { throw new IndexOutOfBoundsException("opcode is out of bounds"); } decoders[opcode] = decoder; }
final <E extends Event> void function(int opcode, EventDecoder<E> decoder) { if (opcode < 0 opcode >= decoders.length) { throw new IndexOutOfBoundsException(STR); } decoders[opcode] = decoder; }
/** * Registers a {@link EventDecoder} for the specified opcode. * * @param opcode The opcode, between 0 and 255 inclusive. * @param decoder The {@link EventDecoder}. */
Registers a <code>EventDecoder</code> for the specified opcode
register
{ "repo_name": "DealerNextDoor/ApolloDev", "path": "src/org/apollo/net/release/Release.java", "license": "isc", "size": 2967 }
[ "org.apollo.game.event.Event" ]
import org.apollo.game.event.Event;
import org.apollo.game.event.*;
[ "org.apollo.game" ]
org.apollo.game;
1,492,141
HandlerRegistration addDragStartHandler(DragStartHandler handler);
HandlerRegistration addDragStartHandler(DragStartHandler handler);
/** * Adds a {@link DragStartEvent} handler. * * @param handler the drag start handler * @return {@link HandlerRegistration} used to remove this handler */
Adds a <code>DragStartEvent</code> handler
addDragStartHandler
{ "repo_name": "gwtproject/gwt-event-dom", "path": "gwt-event-dom/src/main/java/org/gwtproject/event/dom/client/HasDragStartHandlers.java", "license": "apache-2.0", "size": 1302 }
[ "org.gwtproject.event.shared.HandlerRegistration" ]
import org.gwtproject.event.shared.HandlerRegistration;
import org.gwtproject.event.shared.*;
[ "org.gwtproject.event" ]
org.gwtproject.event;
2,121,043
@Property(TRANSFORMATION_ID) void setTransformationID(String transformationID);
@Property(TRANSFORMATION_ID) void setTransformationID(String transformationID);
/** * Contains the ID of the class that will implement this translation. */
Contains the ID of the class that will implement this translation
setTransformationID
{ "repo_name": "jsight/windup", "path": "reporting/api/src/main/java/org/jboss/windup/reporting/model/TransformationQuickfixModel.java", "license": "epl-1.0", "size": 1383 }
[ "org.jboss.windup.graph.Property" ]
import org.jboss.windup.graph.Property;
import org.jboss.windup.graph.*;
[ "org.jboss.windup" ]
org.jboss.windup;
2,450,065