method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public boolean isApplicationHidden(@NonNull ComponentName admin, String packageName) { if (mService != null) { try { return mService.isApplicationHidden(admin, packageName); } catch (RemoteException e) { Log.w(TAG, "Failed talking with device policy se...
boolean function(@NonNull ComponentName admin, String packageName) { if (mService != null) { try { return mService.isApplicationHidden(admin, packageName); } catch (RemoteException e) { Log.w(TAG, STR, e); } } return false; }
/** * Called by profile or device owners to determine if a package is hidden. * * @param admin Which {@link DeviceAdminReceiver} this request is associated with. * @param packageName The name of the package to retrieve the hidden status of. * @return boolean {@code true} if the package is hidde...
Called by profile or device owners to determine if a package is hidden
isApplicationHidden
{ "repo_name": "syslover33/ctank", "path": "java/android-sdk-linux_r24.4.1_src/sources/android-23/android/app/admin/DevicePolicyManager.java", "license": "gpl-3.0", "size": 196508 }
[ "android.annotation.NonNull", "android.content.ComponentName", "android.os.RemoteException", "android.util.Log" ]
import android.annotation.NonNull; import android.content.ComponentName; import android.os.RemoteException; import android.util.Log;
import android.annotation.*; import android.content.*; import android.os.*; import android.util.*;
[ "android.annotation", "android.content", "android.os", "android.util" ]
android.annotation; android.content; android.os; android.util;
137,147
public ServiceResponse<Map<String, Long>> getLongValid() throws ErrorException, IOException { return getLongValidAsync().toBlocking().single(); }
ServiceResponse<Map<String, Long>> function() throws ErrorException, IOException { return getLongValidAsync().toBlocking().single(); }
/** * Get integer dictionary value {"0": 1, "1": -1, "2": 3, "3": 300}. * * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @return the Map&lt;String, Long&gt; object wrapped in {@link ServiceResponse} if success...
Get integer dictionary value {"0": 1, "1": -1, "2": 3, "3": 300}
getLongValid
{ "repo_name": "haocs/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodydictionary/implementation/DictionarysImpl.java", "license": "mit", "size": 176746 }
[ "com.microsoft.rest.ServiceResponse", "java.io.IOException", "java.util.Map" ]
import com.microsoft.rest.ServiceResponse; import java.io.IOException; import java.util.Map;
import com.microsoft.rest.*; import java.io.*; import java.util.*;
[ "com.microsoft.rest", "java.io", "java.util" ]
com.microsoft.rest; java.io; java.util;
1,873,456
BindRequest connectAndOutbind(String host, int port, OutbindParameter outbindParam, long timeout) throws IOException;
BindRequest connectAndOutbind(String host, int port, OutbindParameter outbindParam, long timeout) throws IOException;
/** * Open connection and outbind immediately. * * @param host is the ESME host address. * @param port is the ESME listen port. * @param outbindParam is the outbind parameters. * @param timeout is the timeout. * @return the SMSC system id. * @throws IOException if there is a...
Open connection and outbind immediately
connectAndOutbind
{ "repo_name": "amdtelecom/jsmpp", "path": "jsmpp/src/main/java/org/jsmpp/session/OutboundClientSession.java", "license": "apache-2.0", "size": 4593 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
699,524
public static synchronized ColourSpace getColourSpace(String signature, JHOVE2 jhove2) throws JHOVE2Exception { init(jhove2); ColourSpace colourSpace = null; Iterator<ColourSpace> iter = spaces.iterator(); while (iter.hasNext()) { ColourSpace space = it...
static synchronized ColourSpace function(String signature, JHOVE2 jhove2) throws JHOVE2Exception { init(jhove2); ColourSpace colourSpace = null; Iterator<ColourSpace> iter = spaces.iterator(); while (iter.hasNext()) { ColourSpace space = iter.next(); if (space.getSignature().equals(signature)) { colourSpace = space; br...
/** * Get the data colour space for a signature. * @param signature Data colour space signature * @param jhove2 JHOVE2 framework * @return Data colour space, or null if the signature is not a colour space signature * @throws JHOVE2Exception */
Get the data colour space for a signature
getColourSpace
{ "repo_name": "opf-labs/jhove2", "path": "src/main/java/org/jhove2/module/format/icc/field/ColourSpace.java", "license": "bsd-2-clause", "size": 5884 }
[ "java.util.Iterator", "org.jhove2.core.JHOVE2Exception" ]
import java.util.Iterator; import org.jhove2.core.JHOVE2Exception;
import java.util.*; import org.jhove2.core.*;
[ "java.util", "org.jhove2.core" ]
java.util; org.jhove2.core;
1,198,774
public ReferenceList getDataSetReferenceList() { return dataSetReferenceList; }
ReferenceList function() { return dataSetReferenceList; }
/** * Return a ReferenceList containing the DataSet Items ids set by addDataSet() * @return the ReferenceList */
Return a ReferenceList containing the DataSet Items ids set by addDataSet()
getDataSetReferenceList
{ "repo_name": "justincc/intermine", "path": "bio/core/main/src/org/intermine/bio/dataconversion/GFF3RecordHandler.java", "license": "lgpl-2.1", "size": 9843 }
[ "org.intermine.xml.full.ReferenceList" ]
import org.intermine.xml.full.ReferenceList;
import org.intermine.xml.full.*;
[ "org.intermine.xml" ]
org.intermine.xml;
1,762,749
public static synchronized TestArtifactRegistry getInstance() { if (singleton == null) { singleton = new TestArtifactRegistry(); } return singleton; } TestArtifactRegistry() { this(new FileSystemAccess() { }, new EnvironmentAccess() { }); } ...
static synchronized TestArtifactRegistry function() { if (singleton == null) { singleton = new TestArtifactRegistry(); } return singleton; } TestArtifactRegistry() { this(new FileSystemAccess() { }, new EnvironmentAccess() { }); } TestArtifactRegistry(FileSystemAccess fsAccess, EnvironmentAccess envAccess) { this.fsAcc...
/** * Provides a singleton instance of the registry, lazily initializing it on demand. * @return the registry instance */
Provides a singleton instance of the registry, lazily initializing it on demand
getInstance
{ "repo_name": "test-editor/core-fixture", "path": "src/main/java/org/testeditor/fixture/core/artifacts/TestArtifactRegistry.java", "license": "epl-1.0", "size": 5837 }
[ "java.io.IOException", "java.nio.file.Path" ]
import java.io.IOException; import java.nio.file.Path;
import java.io.*; import java.nio.file.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
1,917,181
private void exportContentElementSource(final Path targetFolder, final DOMNode node, final Map<String, Object> configuration, final String content) throws FrameworkException { if (content != null) { // name with uuid or just uuid String name = node.getProperty(AbstractNode.name); if (name != null) { ...
void function(final Path targetFolder, final DOMNode node, final Map<String, Object> configuration, final String content) throws FrameworkException { if (content != null) { String name = node.getProperty(AbstractNode.name); if (name != null) { name += "-" + node.getUuid(); } else { name = node.getUuid(); } final Map<St...
/** * Consolidated export method for Content and Template */
Consolidated export method for Content and Template
exportContentElementSource
{ "repo_name": "ckramp/structr", "path": "structr-ui/src/main/java/org/structr/web/maintenance/DeployCommand.java", "license": "gpl-3.0", "size": 89439 }
[ "java.nio.file.Path", "java.util.Map", "java.util.TreeMap", "org.structr.common.error.FrameworkException", "org.structr.core.entity.AbstractNode", "org.structr.web.entity.dom.DOMNode" ]
import java.nio.file.Path; import java.util.Map; import java.util.TreeMap; import org.structr.common.error.FrameworkException; import org.structr.core.entity.AbstractNode; import org.structr.web.entity.dom.DOMNode;
import java.nio.file.*; import java.util.*; import org.structr.common.error.*; import org.structr.core.entity.*; import org.structr.web.entity.dom.*;
[ "java.nio", "java.util", "org.structr.common", "org.structr.core", "org.structr.web" ]
java.nio; java.util; org.structr.common; org.structr.core; org.structr.web;
1,554,369
return new ArrayList<Edit>(edits); } /** * Adds the given {@link Edit} to the Edits {@link ArrayList}
return new ArrayList<Edit>(edits); } /** * Adds the given {@link Edit} to the Edits {@link ArrayList}
/** * Gets a copy of the {@link ArrayList} of all SkyPrint Edits in this * session * * @return A copy of the {@link ArrayList} of all SkyPrint Edits in this * session */
Gets a copy of the <code>ArrayList</code> of all SkyPrint Edits in this session
getEdits
{ "repo_name": "DziNeIT/skyprint", "path": "src/main/java/pw/ollie/skyprint/edit/EditManager.java", "license": "mit", "size": 1111 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
1,338,712
public void showMembership(String organization, String user) throws IOException { if (organization == null) throw new IllegalArgumentException("Organization cannot be null"); //$NON-NLS-1$ if (organization.length() == 0) throw new IllegalArgumentException("Organization cannot be empty"); //$NON-NLS-1$ ...
void function(String organization, String user) throws IOException { if (organization == null) throw new IllegalArgumentException(STR); if (organization.length() == 0) throw new IllegalArgumentException(STR); if (user == null) throw new IllegalArgumentException(STR); if (user.length() == 0) throw new IllegalArgumentExc...
/** * Publicize membership of given user in given organization * * @param organization * @param user * @throws IOException */
Publicize membership of given user in given organization
showMembership
{ "repo_name": "md440/GitHub_Plugins", "path": "github-api-master/src/main/java/org/eclipse/egit/github/core/service/OrganizationService.java", "license": "gpl-2.0", "size": 10680 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,058,325
// TODO(schmoe): provide a way to use this class with other (possibly arbitrary) // ConcurrentMap implementors. One possibility is to extract most of this class into // an AbstractConcurrentMapMultiset. return new ConcurrentHashMultiset<E>(new ConcurrentHashMap<E, AtomicInteger>()); }
return new ConcurrentHashMultiset<E>(new ConcurrentHashMap<E, AtomicInteger>()); }
/** * Creates a new, empty {@code ConcurrentHashMultiset} using the default * initial capacity, load factor, and concurrency settings. */
Creates a new, empty ConcurrentHashMultiset using the default initial capacity, load factor, and concurrency settings
create
{ "repo_name": "tsyma/pinpoint", "path": "thirdparty/google-guava/src/main/java/com/google/common/collect/ConcurrentHashMultiset.java", "license": "apache-2.0", "size": 21405 }
[ "java.util.concurrent.ConcurrentHashMap", "java.util.concurrent.atomic.AtomicInteger" ]
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.*; import java.util.concurrent.atomic.*;
[ "java.util" ]
java.util;
1,343,462
public short compareDocumentPosition(Node other) throws DOMException { // maybe TODO - new DOM interfaces - Java 5.0 return 0; }
short function(Node other) throws DOMException { return 0; }
/** ? @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node) */
? @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
compareDocumentPosition
{ "repo_name": "kingargyle/exist-1.4.x", "path": "src/org/exist/dom/TextImpl.java", "license": "lgpl-2.1", "size": 8316 }
[ "org.w3c.dom.DOMException", "org.w3c.dom.Node" ]
import org.w3c.dom.DOMException; import org.w3c.dom.Node;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
2,041,180
@Test() public void testGetSlotMentionNames() throws Exception { TextAnnotation ta = testAnnotations.get("-15"); Set<String> expectedNames = new HashSet<String>(); expectedNames.add("entrez_gene_id"); expectedNames.add("processed text"); assertEquals(expectedNames, ta.getClassMention().getPrimitiveSlotMen...
@Test() void function() throws Exception { TextAnnotation ta = testAnnotations.get("-15"); Set<String> expectedNames = new HashSet<String>(); expectedNames.add(STR); expectedNames.add(STR); assertEquals(expectedNames, ta.getClassMention().getPrimitiveSlotMentionNames()); StringSlotMention sm = new DefaultStringSlotMent...
/** * Test that we return all of the slot mention names, and only the unique slot mention names * * @throws Exception */
Test that we return all of the slot mention names, and only the unique slot mention names
testGetSlotMentionNames
{ "repo_name": "UCDenver-ccp/ccp-nlp", "path": "ccp-nlp-core/src/test/java/edu/ucdenver/ccp/nlp/core/mention/ClassMentionTest.java", "license": "bsd-3-clause", "size": 16727 }
[ "edu.ucdenver.ccp.nlp.core.annotation.TextAnnotation", "edu.ucdenver.ccp.nlp.core.mention.impl.DefaultStringSlotMention", "java.util.HashSet", "java.util.Set", "org.junit.Assert", "org.junit.Test" ]
import edu.ucdenver.ccp.nlp.core.annotation.TextAnnotation; import edu.ucdenver.ccp.nlp.core.mention.impl.DefaultStringSlotMention; import java.util.HashSet; import java.util.Set; import org.junit.Assert; import org.junit.Test;
import edu.ucdenver.ccp.nlp.core.annotation.*; import edu.ucdenver.ccp.nlp.core.mention.impl.*; import java.util.*; import org.junit.*;
[ "edu.ucdenver.ccp", "java.util", "org.junit" ]
edu.ucdenver.ccp; java.util; org.junit;
2,332,661
private String createInputFile(String content) throws IOException { File f = File.createTempFile("input", "txt"); FileWriter writer = new FileWriter(f); writer.write(content); writer.close(); return f.getAbsolutePath(); }
String function(String content) throws IOException { File f = File.createTempFile("input", "txt"); FileWriter writer = new FileWriter(f); writer.write(content); writer.close(); return f.getAbsolutePath(); }
/** * Create a file for map input * * @return absolute path of the file. * @throws IOException if any error encountered */
Create a file for map input
createInputFile
{ "repo_name": "cloudera/hcatalog", "path": "core/src/test/java/org/apache/hcatalog/mapreduce/TestMultiOutputFormat.java", "license": "apache-2.0", "size": 13292 }
[ "java.io.File", "java.io.FileWriter", "java.io.IOException" ]
import java.io.File; import java.io.FileWriter; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,471,332
Response<WorkflowRun> getWithResponse( String resourceGroupName, String workflowName, String runName, String operationId, Context context);
Response<WorkflowRun> getWithResponse( String resourceGroupName, String workflowName, String runName, String operationId, Context context);
/** * Gets an operation for a run. * * @param resourceGroupName The resource group name. * @param workflowName The workflow name. * @param runName The workflow run name. * @param operationId The workflow operation id. * @param context The context to associate with this operation. ...
Gets an operation for a run
getWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/WorkflowRunOperations.java", "license": "mit", "size": 1908 }
[ "com.azure.core.http.rest.Response", "com.azure.core.util.Context" ]
import com.azure.core.http.rest.Response; import com.azure.core.util.Context;
import com.azure.core.http.rest.*; import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
1,542,344
public static Collector<Object, StringBuilder, String> collectString() { return StreamUtil.collectString(""); }
static Collector<Object, StringBuilder, String> function() { return StreamUtil.collectString(""); }
/** * Invokes {@link #collectString(String)} with <code>delimiter = ""</code>. * * @return See {@link #collectString(String)}. * @see org.lcmanager.gdb.base.StreamUtil#collectString(java.lang.String) */
Invokes <code>#collectString(String)</code> with <code>delimiter = ""</code>
collectString
{ "repo_name": "lcmanager/gdb", "path": "gdb-base/src/main/java/org/lcmanager/gdb/base/StreamUtil.java", "license": "apache-2.0", "size": 8249 }
[ "java.util.stream.Collector" ]
import java.util.stream.Collector;
import java.util.stream.*;
[ "java.util" ]
java.util;
1,691,932
public Map getStudentGradingData(String assessmentGradingId) { try { GradingService service = new GradingService(); return service.getStudentGradingData(assessmentGradingId); } catch (Exception ex) { throw new GradingServiceException(ex); } }
Map function(String assessmentGradingId) { try { GradingService service = new GradingService(); return service.getStudentGradingData(assessmentGradingId); } catch (Exception ex) { throw new GradingServiceException(ex); } }
/** * Get the grading data for a given submission */
Get the grading data for a given submission
getStudentGradingData
{ "repo_name": "OpenCollabZA/sakai", "path": "samigo/samigo-services/src/java/org/sakaiproject/tool/assessment/shared/impl/grading/GradingServiceImpl.java", "license": "apache-2.0", "size": 10365 }
[ "java.util.Map", "org.sakaiproject.tool.assessment.services.GradingService", "org.sakaiproject.tool.assessment.services.GradingServiceException" ]
import java.util.Map; import org.sakaiproject.tool.assessment.services.GradingService; import org.sakaiproject.tool.assessment.services.GradingServiceException;
import java.util.*; import org.sakaiproject.tool.assessment.services.*;
[ "java.util", "org.sakaiproject.tool" ]
java.util; org.sakaiproject.tool;
2,053,973
protected final void findSubtreeLines(LineSet lines, DetailAST tree, boolean allowNesting) { if (indentCheck.getHandlerFactory().isHandledType(tree.getType())) { return; } final int lineNum = tree.getLineNo(); final Integer colNum = lines.getStartColumn(lineNum);...
final void function(LineSet lines, DetailAST tree, boolean allowNesting) { if (indentCheck.getHandlerFactory().isHandledType(tree.getType())) { return; } final int lineNum = tree.getLineNo(); final Integer colNum = lines.getStartColumn(lineNum); final int thisLineColumn = expandedTabsColumnNo(tree); if (colNum == null ...
/** * Find the set of lines for a given subtree. * * @param lines the set of lines to add to * @param tree the subtree to examine * @param allowNesting whether or not to allow nested subtrees */
Find the set of lines for a given subtree
findSubtreeLines
{ "repo_name": "Bhavik3/checkstyle", "path": "src/main/java/com/puppycrawl/tools/checkstyle/checks/indentation/AbstractExpressionHandler.java", "license": "lgpl-2.1", "size": 20777 }
[ "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;
1,181,300
public static Filter getFilterByName(String name) { return new filterByName(name); } public VTParameterEncoder() { super("parameter"); } public VTParameterEncoder(String name, String defaultValue, String regexpValidator){ super("parameter"); this.setup(name, defaultValue, regexpValidator); }
static Filter function(String name) { return new filterByName(name); } public VTParameterEncoder() { super(STR); } public VTParameterEncoder(String name, String defaultValue, String regexpValidator){ super(STR); this.setup(name, defaultValue, regexpValidator); }
/** * Get a Filter using the VTParameter name * * @param name * @return the filter */
Get a Filter using the VTParameter name
getFilterByName
{ "repo_name": "oscarfonts/geoserver-manager", "path": "src/main/java/it/geosolutions/geoserver/rest/encoder/metadata/virtualtable/VTParameterEncoder.java", "license": "mit", "size": 5787 }
[ "org.jdom.filter.Filter" ]
import org.jdom.filter.Filter;
import org.jdom.filter.*;
[ "org.jdom.filter" ]
org.jdom.filter;
1,865,799
void registerArrayChild(Expression arrayExpressionChild) { arrayExpressionChild.accept(arrayChildVisitor, null); }
void registerArrayChild(Expression arrayExpressionChild) { arrayExpressionChild.accept(arrayChildVisitor, null); }
/** * Registers the given expression as the child of an Array Expression. * Example of usage: Can be used by downstream operators to check if a SubqueryExpression is part of * an {@link ArrayComparisonExpression}. * @param arrayExpressionChild the expression to register */
Registers the given expression as the child of an Array Expression. Example of usage: Can be used by downstream operators to check if a SubqueryExpression is part of an <code>ArrayComparisonExpression</code>
registerArrayChild
{ "repo_name": "EvilMcJerkface/crate", "path": "server/src/main/java/io/crate/analyze/expressions/ExpressionAnalysisContext.java", "license": "apache-2.0", "size": 3315 }
[ "io.crate.sql.tree.Expression" ]
import io.crate.sql.tree.Expression;
import io.crate.sql.tree.*;
[ "io.crate.sql" ]
io.crate.sql;
469,140
void resolveReplacementSubTree(JMeterTreeNode context);
void resolveReplacementSubTree(JMeterTreeNode context);
/** * Compute the replacement tree. * * @param context the starting point of the replacement */
Compute the replacement tree
resolveReplacementSubTree
{ "repo_name": "liwangbest/jmeter", "path": "src/core/org/apache/jmeter/control/ReplaceableController.java", "license": "apache-2.0", "size": 1625 }
[ "org.apache.jmeter.gui.tree.JMeterTreeNode" ]
import org.apache.jmeter.gui.tree.JMeterTreeNode;
import org.apache.jmeter.gui.tree.*;
[ "org.apache.jmeter" ]
org.apache.jmeter;
2,823,953
@SuppressWarnings("unchecked") @NativeSql("billinglocation") public List<Object[]> findBillingLocations(String billRegion) { Query query = entityManager.createNativeQuery("SELECT billinglocation,billinglocation_desc FROM billinglocation WHERE region = ?"); query.setParameter(1, billRegion); ...
@SuppressWarnings(STR) @NativeSql(STR) List<Object[]> function(String billRegion) { Query query = entityManager.createNativeQuery(STR); query.setParameter(1, billRegion); return query.getResultList(); }
/** * Selects billing location and description from the billinglocation table where region matches the one provided */
Selects billing location and description from the billinglocation table where region matches the one provided
findBillingLocations
{ "repo_name": "scoophealth/oscar", "path": "src/main/java/org/oscarehr/common/dao/BillingBCDao.java", "license": "gpl-2.0", "size": 4322 }
[ "java.util.List", "javax.persistence.Query", "org.oscarehr.common.NativeSql" ]
import java.util.List; import javax.persistence.Query; import org.oscarehr.common.NativeSql;
import java.util.*; import javax.persistence.*; import org.oscarehr.common.*;
[ "java.util", "javax.persistence", "org.oscarehr.common" ]
java.util; javax.persistence; org.oscarehr.common;
1,140,410
public void setItemTextSet(Set itemTextSet) { this.itemTextSet = itemTextSet; this.data.setItemTextSet(itemTextSet); }
void function(Set itemTextSet) { this.itemTextSet = itemTextSet; this.data.setItemTextSet(itemTextSet); }
/** * Set item text (question text) in ItemFacade.data * @param itemTextSet */
Set item text (question text) in ItemFacade.data
setItemTextSet
{ "repo_name": "ouit0408/sakai", "path": "samigo/samigo-services/src/java/org/sakaiproject/tool/assessment/facade/ItemFacade.java", "license": "apache-2.0", "size": 33564 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,919,042
public static PageableRowSet cacheRowSet(RowSet rowset, int pageSize) { if (pageSize <= 0) pageSize = DEFAULT_PAGE_SIZE; PageableRowSet prs = new PagedRowSet(rowset, pageSize, true); cachePageableRowSet(prs); return prs; }
static PageableRowSet function(RowSet rowset, int pageSize) { if (pageSize <= 0) pageSize = DEFAULT_PAGE_SIZE; PageableRowSet prs = new PagedRowSet(rowset, pageSize, true); cachePageableRowSet(prs); return prs; }
/** * Converts a RowSet into a PageableRowSet, stores the PageableRowSet * result in the cache and then returns the PageableRowSet. A unique * id will be created for the PagedRowSet. * * @param rowset RowSet to be cached for paged access. * @param pageSize Size of the first page to be sen...
Converts a RowSet into a PageableRowSet, stores the PageableRowSet result in the cache and then returns the PageableRowSet. A unique id will be created for the PagedRowSet
cacheRowSet
{ "repo_name": "apache/flex-blazeds", "path": "remoting/src/main/java/flex/messaging/services/remoting/PageableRowSetCache.java", "license": "apache-2.0", "size": 4544 }
[ "javax.sql.RowSet" ]
import javax.sql.RowSet;
import javax.sql.*;
[ "javax.sql" ]
javax.sql;
2,396,618
@Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(ViewAttribute.class)) { case MetawebdesignPackage.VIEW_ATTRIBUTE__TYPE_PRESENTATION: case MetawebdesignPackage.VIEW_ATTRIBUTE__NAME: case MetawebdesignPackage.VIEW_ATTRIBUTE...
void function(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(ViewAttribute.class)) { case MetawebdesignPackage.VIEW_ATTRIBUTE__TYPE_PRESENTATION: case MetawebdesignPackage.VIEW_ATTRIBUTE__NAME: case MetawebdesignPackage.VIEW_ATTRIBUTE__POSITION_HORIZONTAL: case Metawebdesig...
/** * 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": "MetaWebDesign/Editor", "path": "Editor_MWD.edit/src/Metawebdesign/metawebdesign/provider/ViewAttributeItemProvider.java", "license": "agpl-3.0", "size": 7186 }
[ "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,770,530
public static boolean isValidDecimalValue(BigDecimal value, RelDataType toType) { if (value == null) { return true; } switch (toType.getSqlTypeName()) { case DECIMAL: final int intDigits = value.precision() - value.scale(); final int maxIntDigits = toType.getPrecision() - toType.getS...
static boolean function(BigDecimal value, RelDataType toType) { if (value == null) { return true; } switch (toType.getSqlTypeName()) { case DECIMAL: final int intDigits = value.precision() - value.scale(); final int maxIntDigits = toType.getPrecision() - toType.getScale(); return intDigits <= maxIntDigits; default: ret...
/** * Returns whether the decimal value is valid for the type. For example, 1111.11 is not * valid for DECIMAL(3, 1) since it overflows. * * @param value Value of literal * @param toType Type of the literal * @return whether the value is valid for the type */
Returns whether the decimal value is valid for the type. For example, 1111.11 is not valid for DECIMAL(3, 1) since it overflows
isValidDecimalValue
{ "repo_name": "vlsi/calcite", "path": "core/src/main/java/org/apache/calcite/sql/type/SqlTypeUtil.java", "license": "apache-2.0", "size": 53459 }
[ "java.math.BigDecimal", "org.apache.calcite.rel.type.RelDataType" ]
import java.math.BigDecimal; import org.apache.calcite.rel.type.RelDataType;
import java.math.*; import org.apache.calcite.rel.type.*;
[ "java.math", "org.apache.calcite" ]
java.math; org.apache.calcite;
714,367
@Override public void enterEllipsisParameterDecl(@NotNull Java7Parser.EllipsisParameterDeclContext ctx) { }
@Override public void enterEllipsisParameterDecl(@NotNull Java7Parser.EllipsisParameterDeclContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
exitPrimary
{ "repo_name": "jsteenbeeke/antlr-java-parser", "path": "src/main/java/com/github/antlrjavaparser/Java7ParserBaseListener.java", "license": "lgpl-3.0", "size": 53492 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
1,899,371
void addStructureChangeListener(PropertyChangeListener pcl);
void addStructureChangeListener(PropertyChangeListener pcl);
/** * Adds a structure change listener that will receive events for all * structure changes in this or any contained node. See the class * description for more detail. * * <p>If the event registration lease is not continually renewed, events * will stop flowing to the client * *...
Adds a structure change listener that will receive events for all structure changes in this or any contained node. See the class description for more detail. If the event registration lease is not continually renewed, events will stop flowing to the client
addStructureChangeListener
{ "repo_name": "arturog8m/ocs", "path": "bundle/edu.gemini.pot/src/main/java/edu/gemini/pot/sp/ISPContainerNode.java", "license": "bsd-3-clause", "size": 4629 }
[ "java.beans.PropertyChangeListener" ]
import java.beans.PropertyChangeListener;
import java.beans.*;
[ "java.beans" ]
java.beans;
1,982,578
@Test public void testCreateStackedValueList3b() { DefaultCategoryDataset d = new DefaultCategoryDataset(); d.addValue(0.0, "s0", "c0"); d.addValue(-1.1, "s1", "c0"); MyRenderer r = new MyRenderer(); List l = r.createStackedValueList(d, "c0", new int[] { 0, 1 }, 0.0, ...
void function() { DefaultCategoryDataset d = new DefaultCategoryDataset(); d.addValue(0.0, "s0", "c0"); d.addValue(-1.1, "s1", "c0"); MyRenderer r = new MyRenderer(); List l = r.createStackedValueList(d, "c0", new int[] { 0, 1 }, 0.0, false); assertEquals(3, l.size()); assertEquals(-1.1, ((Object[]) l.get(0))[1]); asse...
/** * A test for the createStackedValueList() method. */
A test for the createStackedValueList() method
testCreateStackedValueList3b
{ "repo_name": "akardapolov/ASH-Viewer", "path": "jfreechart-fse/src/test/java/org/jfree/chart/renderer/category/StackedBarRenderer3DTest.java", "license": "gpl-3.0", "size": 15669 }
[ "java.util.List", "org.jfree.data.category.DefaultCategoryDataset", "org.junit.Assert" ]
import java.util.List; import org.jfree.data.category.DefaultCategoryDataset; import org.junit.Assert;
import java.util.*; import org.jfree.data.category.*; import org.junit.*;
[ "java.util", "org.jfree.data", "org.junit" ]
java.util; org.jfree.data; org.junit;
263,995
AuthFuture authPassword(String username, String password) throws IOException;
AuthFuture authPassword(String username, String password) throws IOException;
/** * Authenticate the session with the given username and password. */
Authenticate the session with the given username and password
authPassword
{ "repo_name": "cagney/mina-sshd-service", "path": "sshd-core/src/main/java/org/apache/sshd/ClientSession.java", "license": "apache-2.0", "size": 5708 }
[ "java.io.IOException", "org.apache.sshd.client.future.AuthFuture" ]
import java.io.IOException; import org.apache.sshd.client.future.AuthFuture;
import java.io.*; import org.apache.sshd.client.future.*;
[ "java.io", "org.apache.sshd" ]
java.io; org.apache.sshd;
1,074,866
public static PS3Eye[] getDevices(){ if(PS3EYE_LIST == null){ Device[] devices = usb.getDevices(PS3Eye.VENDOR_ID, PS3Eye.PRODUCT_ID); PS3EYE_LIST = new PS3Eye[devices.length]; for(int i = 0; i < devices.length; i++){ PS3EYE_LIST[i] = new PS3Eye(devices[i], i); } } return PS...
static PS3Eye[] function(){ if(PS3EYE_LIST == null){ Device[] devices = usb.getDevices(PS3Eye.VENDOR_ID, PS3Eye.PRODUCT_ID); PS3EYE_LIST = new PS3Eye[devices.length]; for(int i = 0; i < devices.length; i++){ PS3EYE_LIST[i] = new PS3Eye(devices[i], i); } } return PS3EYE_LIST; }
/** * get a list of all devices * * @param papplet * @return */
get a list of all devices
getDevices
{ "repo_name": "diwi/PS3Eye", "path": "src/com/thomasdiewald/ps3eye/PS3Eye.java", "license": "mit", "size": 24362 }
[ "org.usb4java.Device" ]
import org.usb4java.Device;
import org.usb4java.*;
[ "org.usb4java" ]
org.usb4java;
1,367,386
public DistributedMember getOwnerForKey(KeyInfo key) { return getMyId(); } /** * @return the wrapped {@link KeyInfo}
DistributedMember function(KeyInfo key) { return getMyId(); } /** * @return the wrapped {@link KeyInfo}
/** * Used to bootstrap txState. * * @return localMember for local and distributedRegions, member with parimary bucket for * partitionedRegions */
Used to bootstrap txState
getOwnerForKey
{ "repo_name": "charliemblack/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java", "license": "apache-2.0", "size": 428144 }
[ "org.apache.geode.distributed.DistributedMember" ]
import org.apache.geode.distributed.DistributedMember;
import org.apache.geode.distributed.*;
[ "org.apache.geode" ]
org.apache.geode;
1,883,753
public static Curve wrapRing( Element element, String srsName ) throws XMLParsingException, GeometryException, UnknownCRSException, InvalidGMLException { srsName = findSrsName( element, srsName ); Element curveElement = (Element) XMLTools.getRequiredNode( element, "g...
static Curve function( Element element, String srsName ) throws XMLParsingException, GeometryException, UnknownCRSException, InvalidGMLException { srsName = findSrsName( element, srsName ); Element curveElement = (Element) XMLTools.getRequiredNode( element, STR, nsContext ); return wrapAbstractCurve( curveElement, srsN...
/** * Parses the given <code>gml:Ring</code> element as a {@link Curve}. * * @param element * <code>gml:Ring</code> element * @param srsName * default SRS for the geometry * @return corresponding Curve instance * @throws XMLParsingException * ...
Parses the given <code>gml:Ring</code> element as a <code>Curve</code>
wrapRing
{ "repo_name": "lat-lon/deegree2-base", "path": "deegree2-core/src/main/java/org/deegree/model/spatialschema/GMLGeometryAdapter.java", "license": "lgpl-2.1", "size": 87327 }
[ "org.deegree.framework.xml.XMLParsingException", "org.deegree.framework.xml.XMLTools", "org.deegree.model.crs.UnknownCRSException", "org.deegree.ogcbase.InvalidGMLException", "org.w3c.dom.Element" ]
import org.deegree.framework.xml.XMLParsingException; import org.deegree.framework.xml.XMLTools; import org.deegree.model.crs.UnknownCRSException; import org.deegree.ogcbase.InvalidGMLException; import org.w3c.dom.Element;
import org.deegree.framework.xml.*; import org.deegree.model.crs.*; import org.deegree.ogcbase.*; import org.w3c.dom.*;
[ "org.deegree.framework", "org.deegree.model", "org.deegree.ogcbase", "org.w3c.dom" ]
org.deegree.framework; org.deegree.model; org.deegree.ogcbase; org.w3c.dom;
1,754,917
public void addBodyLines(int index, Collection<String> lines) { bodyLines.addAll(index, lines); }
void function(int index, Collection<String> lines) { bodyLines.addAll(index, lines); }
/** * Adds the body lines. * * @param index * the index * @param lines * the lines */
Adds the body lines
addBodyLines
{ "repo_name": "hobbitmr/MutiMybatisGenerator", "path": "mybatis-generator-core/src/main/java/org/mybatis/generator/api/dom/java/Method.java", "license": "apache-2.0", "size": 10642 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,855,970
private String getParsedPicture(final String picture) { List < PictureSymbol > result = PictureUtil.parsePicture(picture, '$'); return result.toString(); }
String function(final String picture) { List < PictureSymbol > result = PictureUtil.parsePicture(picture, '$'); return result.toString(); }
/** * Helper to parse a picture string and return the result. * @param picture picture string * @return the stringified list of picture symbols and number of occurrences */
Helper to parse a picture string and return the result
getParsedPicture
{ "repo_name": "raihaan05/legstar-cob2xsd", "path": "src/test/java/com/legstar/cobol/utils/PictureUtilTest.java", "license": "lgpl-2.1", "size": 10004 }
[ "com.legstar.cob2xsd.PictureSymbol", "java.util.List" ]
import com.legstar.cob2xsd.PictureSymbol; import java.util.List;
import com.legstar.cob2xsd.*; import java.util.*;
[ "com.legstar.cob2xsd", "java.util" ]
com.legstar.cob2xsd; java.util;
31,971
Builder addStaticFrameworkImports(Iterable<Artifact> frameworkImports) { this.staticFrameworkImports = Iterables.concat(this.staticFrameworkImports, frameworkImports); return this; }
Builder addStaticFrameworkImports(Iterable<Artifact> frameworkImports) { this.staticFrameworkImports = Iterables.concat(this.staticFrameworkImports, frameworkImports); return this; }
/** * Adds all given artifacts as members of static frameworks. They must be contained in * {@code .frameworks} directories and the binary in that framework should be statically linked. */
Adds all given artifacts as members of static frameworks. They must be contained in .frameworks directories and the binary in that framework should be statically linked
addStaticFrameworkImports
{ "repo_name": "spxtr/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/objc/ObjcCommon.java", "license": "apache-2.0", "size": 32056 }
[ "com.google.common.collect.Iterables", "com.google.devtools.build.lib.actions.Artifact" ]
import com.google.common.collect.Iterables; import com.google.devtools.build.lib.actions.Artifact;
import com.google.common.collect.*; import com.google.devtools.build.lib.actions.*;
[ "com.google.common", "com.google.devtools" ]
com.google.common; com.google.devtools;
1,443,209
public void setOwnProperties(Map<String, CmsClientProperty> properties) { m_ownProperties = properties; }
void function(Map<String, CmsClientProperty> properties) { m_ownProperties = properties; }
/** * Sets the properties for the entry itself.<p> * * @param properties the properties for the entry itself */
Sets the properties for the entry itself
setOwnProperties
{ "repo_name": "sbonoc/opencms-core", "path": "src/org/opencms/ade/sitemap/shared/CmsClientSitemapEntry.java", "license": "lgpl-2.1", "size": 29285 }
[ "java.util.Map", "org.opencms.gwt.shared.property.CmsClientProperty" ]
import java.util.Map; import org.opencms.gwt.shared.property.CmsClientProperty;
import java.util.*; import org.opencms.gwt.shared.property.*;
[ "java.util", "org.opencms.gwt" ]
java.util; org.opencms.gwt;
384,024
@Ignore @Test public void writeReducingProcessingTimeWindowsSnapshot() throws Exception { final int WINDOW_SIZE = 3; TypeInformation<Tuple2<String, Integer>> inputType = TypeInfoParser.parse("Tuple2<String, Integer>"); ReducingStateDescriptor<Tuple2<String, Integer>> stateDesc = new ReducingStateDescriptor...
void function() throws Exception { final int WINDOW_SIZE = 3; TypeInformation<Tuple2<String, Integer>> inputType = TypeInfoParser.parse(STR); ReducingStateDescriptor<Tuple2<String, Integer>> stateDesc = new ReducingStateDescriptor<>(STR, new SumReducer(), inputType.createSerializer(new ExecutionConfig())); WindowOperat...
/** * Manually run this to write binary snapshot data. */
Manually run this to write binary snapshot data
writeReducingProcessingTimeWindowsSnapshot
{ "repo_name": "fanyon/flink", "path": "flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/windowing/WindowOperatorFrom12MigrationTest.java", "license": "apache-2.0", "size": 44512 }
[ "java.util.concurrent.ConcurrentLinkedQueue", "java.util.concurrent.TimeUnit", "org.apache.flink.api.common.ExecutionConfig", "org.apache.flink.api.common.state.ReducingStateDescriptor", "org.apache.flink.api.common.typeinfo.BasicTypeInfo", "org.apache.flink.api.common.typeinfo.TypeInformation", "org.ap...
import java.util.concurrent.ConcurrentLinkedQueue; import java.util.concurrent.TimeUnit; import org.apache.flink.api.common.ExecutionConfig; import org.apache.flink.api.common.state.ReducingStateDescriptor; import org.apache.flink.api.common.typeinfo.BasicTypeInfo; import org.apache.flink.api.common.typeinfo.TypeInform...
import java.util.concurrent.*; import org.apache.flink.api.common.*; import org.apache.flink.api.common.state.*; import org.apache.flink.api.common.typeinfo.*; import org.apache.flink.api.java.tuple.*; import org.apache.flink.api.java.typeutils.*; import org.apache.flink.streaming.api.functions.windowing.*; import org....
[ "java.util", "org.apache.flink" ]
java.util; org.apache.flink;
2,516,824
@Transactional public String clearViewBuilder(ViewBuilder viewBuilder) { try { MetaModel metaModel = viewBuilder.getMetaModel(); String modelName = ""; if (metaModel != null) { inflector = Inflector.getInstance(); modelName = inflector.dasherize(metaModel.getName()); } String actions = cl...
String function(ViewBuilder viewBuilder) { try { MetaModel metaModel = viewBuilder.getMetaModel(); String modelName = STRaction-STR-wkfSTRaction-group-STR-wkfSTRSTRaction-STR-wkfSTRSTRsave,STRSTR,,STR,STRviewBuilder onSave : {}", viewBuilder.getOnSave()); removeWkfStatus(viewBuilder); } catch (Exception e) { return e.t...
/** * Method set 'clearWkf' boolean in ViewBuilder. Also call methods to remove * wkf related buttons, actions and status. Method call when related * workflow deleted. * * @param viewBuilder * ViewBuilder linked with deleted workflow. * @return Error string if issue in setting boolean, else re...
Method set 'clearWkf' boolean in ViewBuilder. Also call methods to remove wkf related buttons, actions and status. Method call when related workflow deleted
clearViewBuilder
{ "repo_name": "jph-axelor/axelor-business-suite", "path": "axelor-studio/src/main/java/com/axelor/studio/service/wkf/WkfService.java", "license": "agpl-3.0", "size": 13857 }
[ "com.axelor.meta.db.MetaModel", "com.axelor.studio.db.ViewBuilder" ]
import com.axelor.meta.db.MetaModel; import com.axelor.studio.db.ViewBuilder;
import com.axelor.meta.db.*; import com.axelor.studio.db.*;
[ "com.axelor.meta", "com.axelor.studio" ]
com.axelor.meta; com.axelor.studio;
186,145
private static short computeSeedHash(long seed) { long[] seedArr = {seed}; short seedHash = (short) ((MurmurHash3.hash(seedArr, 0L)[0]) & 0xFFFFL); if (seedHash == 0) { throw new IllegalArgumentException( "The given seed: " + seed + " produced a seedHash of zero. " + "You must ...
static short function(long seed) { long[] seedArr = {seed}; short seedHash = (short) ((MurmurHash3.hash(seedArr, 0L)[0]) & 0xFFFFL); if (seedHash == 0) { throw new IllegalArgumentException( STR + seed + STR + STR ); } return seedHash; }
/** * Computes and checks the 16-bit seed hash from the given long seed. * The seed hash may not be zero in order to maintain compatibility with older serialized * versions that did not have this concept. * * @param seed the given seed. * * @return the seed hash. */
Computes and checks the 16-bit seed hash from the given long seed. The seed hash may not be zero in order to maintain compatibility with older serialized versions that did not have this concept
computeSeedHash
{ "repo_name": "ivanliu/sketches-core", "path": "src/main/java/com/yahoo/sketches/hll/Preamble.java", "license": "apache-2.0", "size": 6766 }
[ "com.yahoo.sketches.hash.MurmurHash3" ]
import com.yahoo.sketches.hash.MurmurHash3;
import com.yahoo.sketches.hash.*;
[ "com.yahoo.sketches" ]
com.yahoo.sketches;
1,240,729
public static void removeProcessAnnotation(ProcessAnnotation annotation) { if (annotation == null) { throw new IllegalArgumentException("annotation must not be null!"); } WorkflowAnnotations annotations = lookupProcessAnnotations(annotation.getProcess()); if (annotations == null) { return; } annot...
static void function(ProcessAnnotation annotation) { if (annotation == null) { throw new IllegalArgumentException(STR); } WorkflowAnnotations annotations = lookupProcessAnnotations(annotation.getProcess()); if (annotations == null) { return; } annotations.removeAnnotation(annotation); annotation.getProcess().setUserDat...
/** * Removes the given {@link ProcessAnnotation}. * * @param annotation * the annotation to remove */
Removes the given <code>ProcessAnnotation</code>
removeProcessAnnotation
{ "repo_name": "rapidminer/rapidminer-studio", "path": "src/main/java/com/rapidminer/io/process/AnnotationProcessXMLFilter.java", "license": "agpl-3.0", "size": 15128 }
[ "com.rapidminer.gui.flow.processrendering.annotations.model.ProcessAnnotation", "com.rapidminer.gui.flow.processrendering.annotations.model.WorkflowAnnotations" ]
import com.rapidminer.gui.flow.processrendering.annotations.model.ProcessAnnotation; import com.rapidminer.gui.flow.processrendering.annotations.model.WorkflowAnnotations;
import com.rapidminer.gui.flow.processrendering.annotations.model.*;
[ "com.rapidminer.gui" ]
com.rapidminer.gui;
2,815,747
public void testScanRemote() throws Exception { cacheMode = CacheMode.PARTITIONED; backups = 0; commSpiFactory = new TestRemoteCommunicationSpiFactory(); try { Ignite ignite = startGrids(GRID_CNT); IgniteCacheProxy<Integer, Integer> cache = fillCache(ignite)...
void function() throws Exception { cacheMode = CacheMode.PARTITIONED; backups = 0; commSpiFactory = new TestRemoteCommunicationSpiFactory(); try { Ignite ignite = startGrids(GRID_CNT); IgniteCacheProxy<Integer, Integer> cache = fillCache(ignite); IgniteBiTuple<Integer, UUID> tup = remotePartition(cache.context()); int ...
/** * Scan should perform on the remote node. * * @throws Exception If failed. */
Scan should perform on the remote node
testScanRemote
{ "repo_name": "pperalta/ignite", "path": "modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/CacheScanPartitionQueryFallbackSelfTest.java", "license": "apache-2.0", "size": 17194 }
[ "javax.cache.Cache", "org.apache.ignite.Ignite", "org.apache.ignite.cache.CacheMode", "org.apache.ignite.cache.query.QueryCursor", "org.apache.ignite.cache.query.ScanQuery", "org.apache.ignite.lang.IgniteBiTuple" ]
import javax.cache.Cache; import org.apache.ignite.Ignite; import org.apache.ignite.cache.CacheMode; import org.apache.ignite.cache.query.QueryCursor; import org.apache.ignite.cache.query.ScanQuery; import org.apache.ignite.lang.IgniteBiTuple;
import javax.cache.*; import org.apache.ignite.*; import org.apache.ignite.cache.*; import org.apache.ignite.cache.query.*; import org.apache.ignite.lang.*;
[ "javax.cache", "org.apache.ignite" ]
javax.cache; org.apache.ignite;
1,607,914
public void handleDataInitializedEvent() { ClientPresentationModel pm = clientDolphin.getAt(ApplicationConstants.PM_APP); ComboBox<Pair<String, String>> cb = mainView.flightTypeComboBox; cb.getItems().addAll(FXCollections.observableArrayList(pairlistFromString(SharedDolphinFunctions.stringValue(pm.getAt(App...
void function() { ClientPresentationModel pm = clientDolphin.getAt(ApplicationConstants.PM_APP); ComboBox<Pair<String, String>> cb = mainView.flightTypeComboBox; cb.getItems().addAll(FXCollections.observableArrayList(pairlistFromString(SharedDolphinFunctions.stringValue(pm.getAt(ApplicationConstants.ATT_FLIGHT_TYPES)))...
/** * todo: note: two-way binding for widgets would be overkill. That's why the widget's values are initialized here */
todo: note: two-way binding for widgets would be overkill. That's why the widget's values are initialized here
handleDataInitializedEvent
{ "repo_name": "canoo/od_7guis", "path": "03_flight_booker/client/src/main/java/org/opendolphin/demo/sevenguis/flightbooker/MainViewInitializer.java", "license": "apache-2.0", "size": 3121 }
[ "org.opendolphin.core.client.ClientPresentationModel" ]
import org.opendolphin.core.client.ClientPresentationModel;
import org.opendolphin.core.client.*;
[ "org.opendolphin.core" ]
org.opendolphin.core;
1,323,233
static R2DeletableType wrap( final Consumer<JCGLInterfaceGL33Type> c) { return new R2DeletableType() { private final AtomicBoolean deleted = new AtomicBoolean(false);
static R2DeletableType wrap( final Consumer<JCGLInterfaceGL33Type> c) { return new R2DeletableType() { private final AtomicBoolean deleted = new AtomicBoolean(false);
/** * Wrap the given consumer as a deleteable object. * * @param c A consumer * * @return A wrapped consumer */
Wrap the given consumer as a deleteable object
wrap
{ "repo_name": "io7m/r2", "path": "com.io7m.r2.core.api/src/main/java/com/io7m/r2/core/api/deletable/R2DeletableType.java", "license": "isc", "size": 2060 }
[ "com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type", "java.util.concurrent.atomic.AtomicBoolean", "java.util.function.Consumer" ]
import com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type; import java.util.concurrent.atomic.AtomicBoolean; import java.util.function.Consumer;
import com.io7m.jcanephora.core.api.*; import java.util.concurrent.atomic.*; import java.util.function.*;
[ "com.io7m.jcanephora", "java.util" ]
com.io7m.jcanephora; java.util;
294,638
public NestedSet<Artifact> hdrs() { return this.hdrs; }
NestedSet<Artifact> function() { return this.hdrs; }
/** * Returns the headers to be made available for dependents. */
Returns the headers to be made available for dependents
hdrs
{ "repo_name": "dslomov/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/objc/CompilationAttributes.java", "license": "apache-2.0", "size": 16104 }
[ "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.collect.nestedset.NestedSet" ]
import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.collect.nestedset.NestedSet;
import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.collect.nestedset.*;
[ "com.google.devtools" ]
com.google.devtools;
494,919
public PipelineAck.ECN getECN() { return pipelineSupportECN ? PipelineAck.ECN.SUPPORTED : PipelineAck.ECN .DISABLED; } @VisibleForTesting static class ChangedVolumes { List<StorageLocation> newLocations = Lists.newArrayList(); List<StorageLocation> deactivateLocations = Lists.new...
PipelineAck.ECN function() { return pipelineSupportECN ? PipelineAck.ECN.SUPPORTED : PipelineAck.ECN .DISABLED; } static class ChangedVolumes { List<StorageLocation> newLocations = Lists.newArrayList(); List<StorageLocation> deactivateLocations = Lists.newArrayList(); List<StorageLocation> unchangedLocations = Lists.ne...
/** * The ECN bit for the DataNode. The DataNode should return: * <ul> * <li>ECN.DISABLED when ECN is disabled.</li> * <li>ECN.SUPPORTED when ECN is enabled but the DN still has capacity.</li> * <li>ECN.CONGESTED when ECN is enabled and the DN is congested.</li> * </ul> */
The ECN bit for the DataNode. The DataNode should return: ECN.DISABLED when ECN is disabled. ECN.SUPPORTED when ECN is enabled but the DN still has capacity. ECN.CONGESTED when ECN is enabled and the DN is congested.
getECN
{ "repo_name": "zjshen/hadoop-in-docker", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java", "license": "apache-2.0", "size": 119933 }
[ "com.google.common.collect.Lists", "java.util.List", "org.apache.hadoop.hdfs.protocol.datatransfer.PipelineAck" ]
import com.google.common.collect.Lists; import java.util.List; import org.apache.hadoop.hdfs.protocol.datatransfer.PipelineAck;
import com.google.common.collect.*; import java.util.*; import org.apache.hadoop.hdfs.protocol.datatransfer.*;
[ "com.google.common", "java.util", "org.apache.hadoop" ]
com.google.common; java.util; org.apache.hadoop;
881,694
CurrentNotificationEventId getCurrentNotificationEventId();
CurrentNotificationEventId getCurrentNotificationEventId();
/** * Get the last issued notification event id. This is intended for use by the export command * so that users can determine the state of the system at the point of the export, * and determine which notification events happened before or after the export. * @return */
Get the last issued notification event id. This is intended for use by the export command so that users can determine the state of the system at the point of the export, and determine which notification events happened before or after the export
getCurrentNotificationEventId
{ "repo_name": "lirui-apache/hive", "path": "standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/RawStore.java", "license": "apache-2.0", "size": 94780 }
[ "org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId" ]
import org.apache.hadoop.hive.metastore.api.CurrentNotificationEventId;
import org.apache.hadoop.hive.metastore.api.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,483,138
public void unsetLookup(final ILookupWindow inLookup) { lookupMap.remove(inLookup.getType()); LOG.debug("Removing content lookup of type {}.", inLookup.getType()); //$NON-NLS-1$ } /** Returns the lookup window of the specified type. * * @param inType {@link LookupType}
void function(final ILookupWindow inLookup) { lookupMap.remove(inLookup.getType()); LOG.debug(STR, inLookup.getType()); } /** Returns the lookup window of the specified type. * * @param inType {@link LookupType}
/** The service's unbinding method. * * @param inLookup {@link ILookupWindow} */
The service's unbinding method
unsetLookup
{ "repo_name": "aktion-hip/vif", "path": "org.hip.vif.web/src/org/hip/vif/web/controller/LookupManager.java", "license": "gpl-2.0", "size": 2341 }
[ "org.hip.vif.web.interfaces.ILookupWindow", "org.hip.vif.web.util.LinkButtonHelper" ]
import org.hip.vif.web.interfaces.ILookupWindow; import org.hip.vif.web.util.LinkButtonHelper;
import org.hip.vif.web.interfaces.*; import org.hip.vif.web.util.*;
[ "org.hip.vif" ]
org.hip.vif;
2,900,076
public List<Integer> calculateStrict(List<Integer> list, int[] array, int begin, int length) { List<Integer> result = new ArrayList<Integer>(); for(int i = begin; i < list.size() && i < array.length && i < begin + length; i++) { result.add(list.get(i) * array[i]); } return result; }
List<Integer> function(List<Integer> list, int[] array, int begin, int length) { List<Integer> result = new ArrayList<Integer>(); for(int i = begin; i < list.size() && i < array.length && i < begin + length; i++) { result.add(list.get(i) * array[i]); } return result; }
/** * Multiplies the list values by the values within the array between the indices. * Missing data points due to uneven list and array sizes are omitted. * @param List<Integer> list the list * @param int[] array the array * @param int begin beginning index of the subset *...
Multiplies the list values by the values within the array between the indices. Missing data points due to uneven list and array sizes are omitted
calculateStrict
{ "repo_name": "jessemull/MicroFlex", "path": "src/main/java/com/github/jessemull/microflex/integerflex/math/MultiplicationInteger.java", "license": "apache-2.0", "size": 18499 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
757,495
public final boolean findTokenAndAdd(String token, String put, boolean searchOnLast) throws ParseException { Object s = createSpecialStr(token, put, searchOnLast); getTokenSourceSpecialTokensList().add( new Object[] { s, STRATEGY_ADD_AFTER_PREV }); return s instanceof SpecialStr; } ...
final boolean function(String token, String put, boolean searchOnLast) throws ParseException { Object s = createSpecialStr(token, put, searchOnLast); getTokenSourceSpecialTokensList().add( new Object[] { s, STRATEGY_ADD_AFTER_PREV }); return s instanceof SpecialStr; }
/** * This is so that we add the String with the beginLine and beginColumn * * @throws ParseException */
This is so that we add the String with the beginLine and beginColumn
findTokenAndAdd
{ "repo_name": "Spacecraft-Code/SPELL", "path": "src/spel-gui/com.astra.ses.spell.language/src/com/astra/ses/spell/language/common/AbstractGrammar.java", "license": "lgpl-3.0", "size": 14099 }
[ "com.astra.ses.spell.language.ParseException", "com.astra.ses.spell.language.model.SpecialStr" ]
import com.astra.ses.spell.language.ParseException; import com.astra.ses.spell.language.model.SpecialStr;
import com.astra.ses.spell.language.*; import com.astra.ses.spell.language.model.*;
[ "com.astra.ses" ]
com.astra.ses;
204,286
public static ContainerReplicaProto getRandomContainerInfo( long containerId) { return createContainerInfo(containerId, OzoneConsts.GB * 5, random.nextLong(1000), OzoneConsts.GB * random.nextInt(5), random.nextLong(1000), OzoneConsts.GB * random.nextInt(2), ra...
static ContainerReplicaProto function( long containerId) { return createContainerInfo(containerId, OzoneConsts.GB * 5, random.nextLong(1000), OzoneConsts.GB * random.nextInt(5), random.nextLong(1000), OzoneConsts.GB * random.nextInt(2), random.nextLong(1000), OzoneConsts.GB * random.nextInt(5)); }
/** * Generates random ContainerInfo. * * @param containerId container id of the ContainerInfo * * @return ContainerInfo */
Generates random ContainerInfo
getRandomContainerInfo
{ "repo_name": "xiao-chen/hadoop", "path": "hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/TestUtils.java", "license": "apache-2.0", "size": 14183 }
[ "org.apache.hadoop.ozone.OzoneConsts" ]
import org.apache.hadoop.ozone.OzoneConsts;
import org.apache.hadoop.ozone.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,223,957
// //////////////////////////////////////////////////////////////////// public static File checkFolderPath(final String path, final boolean create) { final File file = new File(path); if (!file.exists()) { if (create) { file.mkdir(); } return null; } return file; }
static File function(final String path, final boolean create) { final File file = new File(path); if (!file.exists()) { if (create) { file.mkdir(); } return null; } return file; }
/** * Check folder path. * * @param path the path * @param create the create * @return the file */
Check folder path
checkFolderPath
{ "repo_name": "kiswanij/jk-util", "path": "src/main/java/com/jk/util/JKIOUtil.java", "license": "mit", "size": 21956 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,484,769
Node inline(Reference ref, String fnName, Node fnNode) { checkState(compiler.getLifeCycleStage().isNormalized()); Node result; if (ref.mode == InliningMode.DIRECT) { result = inlineReturnValue(ref, fnNode); } else { result = inlineFunction(ref, fnNode, fnName); } compiler.reportCha...
Node inline(Reference ref, String fnName, Node fnNode) { checkState(compiler.getLifeCycleStage().isNormalized()); Node result; if (ref.mode == InliningMode.DIRECT) { result = inlineReturnValue(ref, fnNode); } else { result = inlineFunction(ref, fnNode, fnName); } compiler.reportChangeToEnclosingScope(result); return re...
/** * Inline a function into the call site. */
Inline a function into the call site
inline
{ "repo_name": "shantanusharma/closure-compiler", "path": "src/com/google/javascript/jscomp/FunctionInjector.java", "license": "apache-2.0", "size": 34959 }
[ "com.google.common.base.Preconditions", "com.google.javascript.rhino.Node" ]
import com.google.common.base.Preconditions; import com.google.javascript.rhino.Node;
import com.google.common.base.*; import com.google.javascript.rhino.*;
[ "com.google.common", "com.google.javascript" ]
com.google.common; com.google.javascript;
349,632
Map<String, ValidationReport> validate(Project project, File projectDir, Props props);
Map<String, ValidationReport> validate(Project project, File projectDir, Props props);
/** * Validate the given project using the registered list of validators. This method returns a map * of {@link ValidationReport} with the key being the validator's name and the value being the * {@link ValidationReport} generated by that validator. */
Validate the given project using the registered list of validators. This method returns a map of <code>ValidationReport</code> with the key being the validator's name and the value being the <code>ValidationReport</code> generated by that validator
validate
{ "repo_name": "HappyRay/azkaban", "path": "azkaban-common/src/main/java/azkaban/project/validator/ValidatorManager.java", "license": "apache-2.0", "size": 1381 }
[ "java.io.File", "java.util.Map" ]
import java.io.File; import java.util.Map;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,020,795
public RadioButton getRadioButtonAt(int index) { if (index < 0 || index >= mRadioButtons.size()) return null; return mRadioButtons.get(index); }
RadioButton function(int index) { if (index < 0 index >= mRadioButtons.size()) return null; return mRadioButtons.get(index); }
/** * Returns the radio button in the specified index. * If the index is out of range returns null. * * @param index the index of the radio button * @return the radio button */
Returns the radio button in the specified index. If the index is out of range returns null
getRadioButtonAt
{ "repo_name": "Gavras/MultiLineRadioGroup", "path": "multilineradiogroup/src/main/java/com/whygraphics/multilineradiogroup/MultiLineRadioGroup.java", "license": "mit", "size": 32776 }
[ "android.widget.RadioButton" ]
import android.widget.RadioButton;
import android.widget.*;
[ "android.widget" ]
android.widget;
296,851
public final void increment() { // Find how many shards are in this counter. int numShards = getShardCount(); // Choose the shard randomly from the available shards. long shardNum = generator.nextInt(numShards); Key shardKey = KeyFactory.createKey(kind, Long.toString(shardNum)); incrementPro...
final void function() { int numShards = getShardCount(); long shardNum = generator.nextInt(numShards); Key shardKey = KeyFactory.createKey(kind, Long.toString(shardNum)); incrementPropertyTx(shardKey, CounterShard.COUNT, 1, 1); mc.increment(kind, 1); }
/** * Increment the value of this sharded counter. */
Increment the value of this sharded counter
increment
{ "repo_name": "hieunguyen/tuongky", "path": "src/com/tuongky/model/datastore/ShardedCounter.java", "license": "mit", "size": 7447 }
[ "com.google.appengine.api.datastore.Key", "com.google.appengine.api.datastore.KeyFactory" ]
import com.google.appengine.api.datastore.Key; import com.google.appengine.api.datastore.KeyFactory;
import com.google.appengine.api.datastore.*;
[ "com.google.appengine" ]
com.google.appengine;
1,705,615
protected void setDateRange(ThisPage instance) { HttpServletRequest req = instance.getRequest(); Date start = buildDate (req.getParameter("START_YEAR"), req.getParameter("START_MONTH"), req.getParameter("START_DAY")); Date end = buildDate (r...
void function(ThisPage instance) { HttpServletRequest req = instance.getRequest(); Date start = buildDate (req.getParameter(STR), req.getParameter(STR), req.getParameter(STR)); Date end = buildDate (req.getParameter(STR), req.getParameter(STR), req.getParameter(STR)); instance.setStartDate(start); instance.setEndDate(e...
/** * Obtain date range from HTTP request. * @see Date * @param instance Object containing information for this HTTP request */
Obtain date range from HTTP request
setDateRange
{ "repo_name": "BradleyRoss/bradleyross-examples", "path": "src/bradleyross/j2ee/servlets/Servlet.java", "license": "lgpl-3.0", "size": 17473 }
[ "java.sql.Date", "javax.servlet.http.HttpServletRequest" ]
import java.sql.Date; import javax.servlet.http.HttpServletRequest;
import java.sql.*; import javax.servlet.http.*;
[ "java.sql", "javax.servlet" ]
java.sql; javax.servlet;
663,770
protected NumericCharacteristic extractResult(InputStream stream) throws IOException, MeasureComputationException { Float value = NumericsExtractor.extractSingleFloat(stream); NumericCharacteristic result = new NumericCharacteristic(NumericCharacteristic.Type.SINGLE_VALUE, value); return result; }
NumericCharacteristic function(InputStream stream) throws IOException, MeasureComputationException { Float value = NumericsExtractor.extractSingleFloat(stream); NumericCharacteristic result = new NumericCharacteristic(NumericCharacteristic.Type.SINGLE_VALUE, value); return result; }
/** * Extracts the result value from the stdout of python script that has been used. * Should be overridden in children if the expected result is more complex than a single float value. * @param stream * @return * @throws IOException * @throws MeasureComputationException */
Extracts the result value from the stdout of python script that has been used. Should be overridden in children if the expected result is more complex than a single float value
extractResult
{ "repo_name": "ispras/NetBlox-plug-ins", "path": "numericCharacteristics/communityMeasuresABL/src/numericCommunitiesMeasuresABL/CommunitiesMeasuresABLComputer.java", "license": "apache-2.0", "size": 7406 }
[ "java.io.IOException", "java.io.InputStream", "ru.ispras.modis.NetBlox" ]
import java.io.IOException; import java.io.InputStream; import ru.ispras.modis.NetBlox;
import java.io.*; import ru.ispras.modis.*;
[ "java.io", "ru.ispras.modis" ]
java.io; ru.ispras.modis;
334,879
public List<ParsedLogEntry> getLogEntries(long start, long end) { Preconditions.checkArgument(0 <= start && end >= start); List<NameValuePair> params = createParamsList("start", "end", Long.toString(start), Long.toString(end)); String response = postInvoker.makeGetRequest(logUrl + GET_ENTRIES, par...
List<ParsedLogEntry> function(long start, long end) { Preconditions.checkArgument(0 <= start && end >= start); List<NameValuePair> params = createParamsList("start", "end", Long.toString(start), Long.toString(end)); String response = postInvoker.makeGetRequest(logUrl + GET_ENTRIES, params); return parseLogEntries(respo...
/** * Retrieve Entries from Log. * @param start 0-based index of first entry to retrieve, in decimal. * @param end 0-based index of last entry to retrieve, in decimal. * @return list of Log's entries. */
Retrieve Entries from Log
getLogEntries
{ "repo_name": "mozmark/tls-observatory", "path": "vendor/github.com/google/certificate-transparency/java/src/org/certificatetransparency/ctlog/comm/HttpLogClient.java", "license": "mpl-2.0", "size": 13681 }
[ "com.google.common.base.Preconditions", "java.util.List", "org.apache.http.NameValuePair", "org.certificatetransparency.ctlog.ParsedLogEntry" ]
import com.google.common.base.Preconditions; import java.util.List; import org.apache.http.NameValuePair; import org.certificatetransparency.ctlog.ParsedLogEntry;
import com.google.common.base.*; import java.util.*; import org.apache.http.*; import org.certificatetransparency.ctlog.*;
[ "com.google.common", "java.util", "org.apache.http", "org.certificatetransparency.ctlog" ]
com.google.common; java.util; org.apache.http; org.certificatetransparency.ctlog;
18,314
public FlinkRelBuilder createRelBuilder(String currentCatalog, String currentDatabase) { RelOptCluster cluster = FlinkRelOptClusterFactory.create(planner, new RexBuilder(typeFactory)); RelOptSchema relOptSchema = createCatalogReader(false, currentCatalog, currentDatabase); Co...
FlinkRelBuilder function(String currentCatalog, String currentDatabase) { RelOptCluster cluster = FlinkRelOptClusterFactory.create(planner, new RexBuilder(typeFactory)); RelOptSchema relOptSchema = createCatalogReader(false, currentCatalog, currentDatabase); Context chain = Contexts.of( context, createFlinkPlanner(curr...
/** * Creates a configured {@link FlinkRelBuilder} for a planning session. * * @param currentCatalog the current default catalog to look for first during planning. * @param currentDatabase the current default database to look for first during planning. * @return configured rel builder */
Creates a configured <code>FlinkRelBuilder</code> for a planning session
createRelBuilder
{ "repo_name": "aljoscha/flink", "path": "flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/PlanningConfigurationBuilder.java", "license": "apache-2.0", "size": 11997 }
[ "org.apache.calcite.plan.Context", "org.apache.calcite.plan.Contexts", "org.apache.calcite.plan.RelOptCluster", "org.apache.calcite.plan.RelOptSchema", "org.apache.calcite.rex.RexBuilder", "org.apache.calcite.tools.RelBuilder", "org.apache.flink.table.calcite.FlinkRelBuilder", "org.apache.flink.table....
import org.apache.calcite.plan.Context; import org.apache.calcite.plan.Contexts; import org.apache.calcite.plan.RelOptCluster; import org.apache.calcite.plan.RelOptSchema; import org.apache.calcite.rex.RexBuilder; import org.apache.calcite.tools.RelBuilder; import org.apache.flink.table.calcite.FlinkRelBuilder; import ...
import org.apache.calcite.plan.*; import org.apache.calcite.rex.*; import org.apache.calcite.tools.*; import org.apache.flink.table.calcite.*;
[ "org.apache.calcite", "org.apache.flink" ]
org.apache.calcite; org.apache.flink;
2,841,581
public Invoker create(Object service, Invoker rootInvoker) { List<Method> timedmethods = new ArrayList<>(); List<Method> meteredmethods = new ArrayList<>(); List<Method> exceptionmeteredmethods = new ArrayList<>(); for (Method m : service.getClass().getMethods()) { if ...
Invoker function(Object service, Invoker rootInvoker) { List<Method> timedmethods = new ArrayList<>(); List<Method> meteredmethods = new ArrayList<>(); List<Method> exceptionmeteredmethods = new ArrayList<>(); for (Method m : service.getClass().getMethods()) { if (m.isAnnotationPresent(Timed.class)) { timedmethods.add(...
/** * Factory method for creating instrumented invoker chain. */
Factory method for creating instrumented invoker chain
create
{ "repo_name": "roskart/dropwizard-jaxws", "path": "dropwizard-jaxws/src/main/java/com/roskart/dropwizard/jaxws/InstrumentedInvokerFactory.java", "license": "apache-2.0", "size": 4847 }
[ "com.codahale.metrics.annotation.ExceptionMetered", "com.codahale.metrics.annotation.Metered", "com.codahale.metrics.annotation.Timed", "java.lang.reflect.Method", "java.util.ArrayList", "java.util.List", "org.apache.cxf.service.invoker.Invoker" ]
import com.codahale.metrics.annotation.ExceptionMetered; import com.codahale.metrics.annotation.Metered; import com.codahale.metrics.annotation.Timed; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; import org.apache.cxf.service.invoker.Invoker;
import com.codahale.metrics.annotation.*; import java.lang.reflect.*; import java.util.*; import org.apache.cxf.service.invoker.*;
[ "com.codahale.metrics", "java.lang", "java.util", "org.apache.cxf" ]
com.codahale.metrics; java.lang; java.util; org.apache.cxf;
2,052,894
private boolean isTimeSelectorNeeded() { return getResolution().getCalendarField() > Resolution.DAY .getCalendarField(); }
boolean function() { return getResolution().getCalendarField() > Resolution.DAY .getCalendarField(); }
/** * Do we need the time selector * * @return True if it is required */
Do we need the time selector
isTimeSelectorNeeded
{ "repo_name": "peterl1084/framework", "path": "compatibility-client/src/main/java/com/vaadin/v7/client/ui/VCalendarPanel.java", "license": "apache-2.0", "size": 75000 }
[ "com.vaadin.v7.shared.ui.datefield.Resolution" ]
import com.vaadin.v7.shared.ui.datefield.Resolution;
import com.vaadin.v7.shared.ui.datefield.*;
[ "com.vaadin.v7" ]
com.vaadin.v7;
548,549
@Nonnull public static IForgeRegistry<BackpackUpgrade> getUpgradeRegistry() { return upgradeRegistry == null ? upgradeRegistry = GameRegistry.findRegistry(BackpackUpgrade.class) : upgradeRegistry; }
static IForgeRegistry<BackpackUpgrade> function() { return upgradeRegistry == null ? upgradeRegistry = GameRegistry.findRegistry(BackpackUpgrade.class) : upgradeRegistry; }
/** * Public facing method for getting the {@link BackpackUpgrade} registry. */
Public facing method for getting the <code>BackpackUpgrade</code> registry
getUpgradeRegistry
{ "repo_name": "gr8pefish/IronBackpacks", "path": "src/main/java/gr8pefish/ironbackpacks/api/IronBackpacksAPI.java", "license": "gpl-3.0", "size": 10651 }
[ "net.minecraftforge.fml.common.registry.GameRegistry", "net.minecraftforge.registries.IForgeRegistry" ]
import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.registries.IForgeRegistry;
import net.minecraftforge.fml.common.registry.*; import net.minecraftforge.registries.*;
[ "net.minecraftforge.fml", "net.minecraftforge.registries" ]
net.minecraftforge.fml; net.minecraftforge.registries;
724,390
public void _write(OutputStream output) { ((org.omg.CORBA_2_3.portable.OutputStream)output).write_value(value); }
void function(OutputStream output) { ((org.omg.CORBA_2_3.portable.OutputStream)output).write_value(value); }
/** * Marshals to {@code output} the value in the Holder. * * @param output the OutputStream which will contain the CDR formatted data */
Marshals to output the value in the Holder
_write
{ "repo_name": "FauxFaux/jdk9-corba", "path": "src/java.corba/share/classes/org/omg/CORBA/ValueBaseHolder.java", "license": "gpl-2.0", "size": 4089 }
[ "org.omg.CORBA" ]
import org.omg.CORBA;
import org.omg.*;
[ "org.omg" ]
org.omg;
1,649,186
public void relocated(final String targetAllocationId, final Consumer<ReplicationTracker.PrimaryContext> consumer) throws IllegalIndexShardStateException, IllegalStateException, InterruptedException { assert shardRouting.primary() : "only primaries can be marked as relocated: " + s...
void function(final String targetAllocationId, final Consumer<ReplicationTracker.PrimaryContext> consumer) throws IllegalIndexShardStateException, IllegalStateException, InterruptedException { assert shardRouting.primary() : STR + shardRouting; try (Releasable forceRefreshes = refreshListeners.forceRefreshes()) { index...
/** * Completes the relocation. Operations are blocked and current operations are drained before changing state to relocated. The provided * {@link Runnable} is executed after all operations are successfully blocked. * * @param consumer a {@link Runnable} that is executed after operations are blocke...
Completes the relocation. Operations are blocked and current operations are drained before changing state to relocated. The provided <code>Runnable</code> is executed after all operations are successfully blocked
relocated
{ "repo_name": "EvilMcJerkface/crate", "path": "server/src/main/java/org/elasticsearch/index/shard/IndexShard.java", "license": "apache-2.0", "size": 163532 }
[ "java.util.concurrent.TimeUnit", "java.util.concurrent.TimeoutException", "java.util.function.Consumer", "org.elasticsearch.common.lease.Releasable", "org.elasticsearch.index.seqno.ReplicationTracker" ]
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import java.util.function.Consumer; import org.elasticsearch.common.lease.Releasable; import org.elasticsearch.index.seqno.ReplicationTracker;
import java.util.concurrent.*; import java.util.function.*; import org.elasticsearch.common.lease.*; import org.elasticsearch.index.seqno.*;
[ "java.util", "org.elasticsearch.common", "org.elasticsearch.index" ]
java.util; org.elasticsearch.common; org.elasticsearch.index;
1,974,165
private static String replaceMacros( String input, IMacroTableProvider macroTableProvider, Set<String> parsedMacros, final boolean insideParse) throws InfiniteLoopException { //if there is no macro in the input, return if(!input.contains("$")){ return input; ...
static String function( String input, IMacroTableProvider macroTableProvider, Set<String> parsedMacros, final boolean insideParse) throws InfiniteLoopException { if(!input.contains("$")){ return input; } StringBuilder stringBuilder = new StringBuilder(); Stack<Integer> stack = new Stack<Integer>(); boolean lockStack = ...
/**Replace macros in String. * @param input the input string to be parsed * @param macroTableProvider the macro table provider * @return * @throws InfiniteLoopException when infinite loop is detected. For example, for a macro table * "a=$(b), b=$(a)", this string "$(a)" will result in infinite ...
Replace macros in String
replaceMacros
{ "repo_name": "fqqb/yamcs-studio", "path": "bundles/org.csstudio.opibuilder/src/org/csstudio/opibuilder/util/MacroUtil.java", "license": "epl-1.0", "size": 6239 }
[ "java.util.EmptyStackException", "java.util.Set", "java.util.Stack" ]
import java.util.EmptyStackException; import java.util.Set; import java.util.Stack;
import java.util.*;
[ "java.util" ]
java.util;
1,762,361
public void setRestoreExpirationTime(Date expiration);
void function(Date expiration);
/** * Sets the expiration date when the Object is scheduled to move to Amazon Glacier. * * @param expiration * The date the object will expire. */
Sets the expiration date when the Object is scheduled to move to Amazon Glacier
setRestoreExpirationTime
{ "repo_name": "priyatransbit/aws-sdk-java", "path": "aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/ObjectRestoreResult.java", "license": "apache-2.0", "size": 1562 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,351,119
private void updateTypeAnswerInfo() { mTypeCorrect = null; String q = mCurrentCard.getQuestion(false); Matcher m = sTypeAnsPat.matcher(q); int clozeIdx = 0; if (!m.find()) { return; } String fld = m.group(1); // if it's a cloze, extract dat...
void function() { mTypeCorrect = null; String q = mCurrentCard.getQuestion(false); Matcher m = sTypeAnsPat.matcher(q); int clozeIdx = 0; if (!m.find()) { return; } String fld = m.group(1); if (fld.startsWith(STR, 0)) { clozeIdx = mCurrentCard.getOrd() + 1; fld = fld.split(":")[1]; } try { JSONArray ja = mCurrentCard.mo...
/** * Extract type answer/cloze text and font/size */
Extract type answer/cloze text and font/size
updateTypeAnswerInfo
{ "repo_name": "zeejan/DeckPicker", "path": "src/com/ichi2/anki/Reviewer.java", "license": "gpl-3.0", "size": 130673 }
[ "java.util.regex.Matcher", "org.json.JSONArray", "org.json.JSONException" ]
import java.util.regex.Matcher; import org.json.JSONArray; import org.json.JSONException;
import java.util.regex.*; import org.json.*;
[ "java.util", "org.json" ]
java.util; org.json;
1,935,069
@Produces @Named public Execution getExecution() { return businessProcess.getExecution(); }
Execution function() { return businessProcess.getExecution(); }
/** * Returns the currently associated execution or 'null' */
Returns the currently associated execution or 'null'
getExecution
{ "repo_name": "tkaefer/camunda-bpm-platform", "path": "engine-cdi/src/main/java/org/camunda/bpm/engine/cdi/CurrentProcessInstance.java", "license": "apache-2.0", "size": 3404 }
[ "org.camunda.bpm.engine.runtime.Execution" ]
import org.camunda.bpm.engine.runtime.Execution;
import org.camunda.bpm.engine.runtime.*;
[ "org.camunda.bpm" ]
org.camunda.bpm;
402,101
@Override public Set<String> getActionNames() { return commands; }
Set<String> function() { return commands; }
/** * Gets the ActionNames attribute of the Start object. * * @return the ActionNames value */
Gets the ActionNames attribute of the Start object
getActionNames
{ "repo_name": "apache/jmeter", "path": "src/core/src/main/java/org/apache/jmeter/gui/action/Start.java", "license": "apache-2.0", "size": 11979 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,092,855
private void clearThumbs() { thumbPanel.removeAll(); for (JPanel l : thumbList) { l = null; } thumbList.clear(); }
void function() { thumbPanel.removeAll(); for (JPanel l : thumbList) { l = null; } thumbList.clear(); }
/** * clear the thumb panels to free the memory */
clear the thumb panels to free the memory
clearThumbs
{ "repo_name": "CognizantQAHub/Cognizant-Intelligent-Test-Scripter", "path": "IDE/src/main/java/com/cognizant/cognizantits/ide/main/explorer/ImageGallery.java", "license": "apache-2.0", "size": 16969 }
[ "javax.swing.JPanel" ]
import javax.swing.JPanel;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,300,020
public Builder setTrackSelector(TrackSelector trackSelector) { Assertions.checkState(!buildCalled); this.trackSelector = trackSelector; return this; }
Builder function(TrackSelector trackSelector) { Assertions.checkState(!buildCalled); this.trackSelector = trackSelector; return this; }
/** * Sets the {@link TrackSelector} that will be used by the player. * * @param trackSelector A {@link TrackSelector}. * @return This builder. * @throws IllegalStateException If {@link #build()} has already been called. */
Sets the <code>TrackSelector</code> that will be used by the player
setTrackSelector
{ "repo_name": "amzn/exoplayer-amazon-port", "path": "library/core/src/main/java/com/google/android/exoplayer2/ExoPlayer.java", "license": "apache-2.0", "size": 30514 }
[ "com.google.android.exoplayer2.trackselection.TrackSelector", "com.google.android.exoplayer2.util.Assertions" ]
import com.google.android.exoplayer2.trackselection.TrackSelector; import com.google.android.exoplayer2.util.Assertions;
import com.google.android.exoplayer2.trackselection.*; import com.google.android.exoplayer2.util.*;
[ "com.google.android" ]
com.google.android;
1,996,928
public static boolean isSorted(final long[] array) { if (array == null || array.length < 2) { return true; } long previous = array[0]; final int n = array.length; for (int i = 1; i < n; i++) { final long current = array[i]; if (NumberUtils...
static boolean function(final long[] array) { if (array == null array.length < 2) { return true; } long previous = array[0]; final int n = array.length; for (int i = 1; i < n; i++) { final long current = array[i]; if (NumberUtils.compare(previous, current) > 0) { return false; } previous = current; } return true; }
/** * This method checks whether the provided array is sorted according to natural ordering. * * @param array the array to check * @return whether the array is sorted according to natural ordering * @since 3.4 */
This method checks whether the provided array is sorted according to natural ordering
isSorted
{ "repo_name": "apache/commons-lang", "path": "src/main/java/org/apache/commons/lang3/ArrayUtils.java", "license": "apache-2.0", "size": 382346 }
[ "org.apache.commons.lang3.math.NumberUtils" ]
import org.apache.commons.lang3.math.NumberUtils;
import org.apache.commons.lang3.math.*;
[ "org.apache.commons" ]
org.apache.commons;
2,298,083
public String getAttributeValue(int index) { //State should be either START_ELEMENT or ATTRIBUTE if (fEventType == XMLEvent.START_ELEMENT || fEventType == XMLEvent.ATTRIBUTE) { return fScanner.getAttributeIterator().getValue(index); } else { throw new java.lang.Illega...
String function(int index) { if (fEventType == XMLEvent.START_ELEMENT fEventType == XMLEvent.ATTRIBUTE) { return fScanner.getAttributeIterator().getValue(index); } else { throw new java.lang.IllegalStateException(STR + getEventTypeString(XMLEvent.START_ELEMENT) + STR + getEventTypeString(XMLEvent.ATTRIBUTE) + STR); } }
/** * Returns the value of the attribute at the index * * @param index the position of the attribute * @return the attribute value * @throws IllegalStateException if this is not a START_ELEMENT or ATTRIBUTE */
Returns the value of the attribute at the index
getAttributeValue
{ "repo_name": "md-5/jdk10", "path": "src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/XMLStreamReaderImpl.java", "license": "gpl-2.0", "size": 59472 }
[ "javax.xml.stream.events.XMLEvent" ]
import javax.xml.stream.events.XMLEvent;
import javax.xml.stream.events.*;
[ "javax.xml" ]
javax.xml;
1,506,559
public void openDriver(SurfaceHolder holder) throws IOException { if (camera == null) { camera = Camera.open(); if (camera == null) { throw new IOException(); } camera.setPreviewDisplay(holder); if (!initialized) { ...
void function(SurfaceHolder holder) throws IOException { if (camera == null) { camera = Camera.open(); if (camera == null) { throw new IOException(); } camera.setPreviewDisplay(holder); if (!initialized) { initialized = true; configManager.initFromCameraParameters(camera); } configManager.setDesiredCameraParameters(cam...
/** * Opens the camera driver and initializes the hardware parameters. * * @param holder The surface object which the camera will draw preview frames into. * @throws IOException Indicates the camera driver failed to open. */
Opens the camera driver and initializes the hardware parameters
openDriver
{ "repo_name": "hymanme/MaterialHome", "path": "app/src/main/java/com/hymane/materialhome/module/zxing/camera/CameraManager.java", "license": "apache-2.0", "size": 13218 }
[ "android.hardware.Camera", "android.view.SurfaceHolder", "java.io.IOException" ]
import android.hardware.Camera; import android.view.SurfaceHolder; import java.io.IOException;
import android.hardware.*; import android.view.*; import java.io.*;
[ "android.hardware", "android.view", "java.io" ]
android.hardware; android.view; java.io;
1,103,781
public static boolean readFile(File file, String find) { ArrayList<String> tmp = readFile(file); for (String i : tmp) { if (i.equals(find)) { return true; } } return false; }
static boolean function(File file, String find) { ArrayList<String> tmp = readFile(file); for (String i : tmp) { if (i.equals(find)) { return true; } } return false; }
/** * See if the line exists in a file * * @param file * the file to be read * @param find * what to look for in the file * @return boolean true if the line exists */
See if the line exists in a file
readFile
{ "repo_name": "jimccartney/jmameui", "path": "src/jmameui/mame/FileIO.java", "license": "gpl-3.0", "size": 16073 }
[ "java.io.File", "java.util.ArrayList" ]
import java.io.File; import java.util.ArrayList;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,416,939
public ClientSession acquireClientSession() throws DatabaseException { return acquireClientSession(getDefaultConnectionPolicy()); }
ClientSession function() throws DatabaseException { return acquireClientSession(getDefaultConnectionPolicy()); }
/** * PUBLIC: * Return a client session for this server session. * Each user/client connected to this server session must acquire there own client session * to communicate to the server through. * This method allows for a client session to be acquired sharing the same login as the server sessio...
Return a client session for this server session. Each user/client connected to this server session must acquire there own client session to communicate to the server through. This method allows for a client session to be acquired sharing the same login as the server session
acquireClientSession
{ "repo_name": "gameduell/eclipselink.runtime", "path": "foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/sessions/server/ServerSession.java", "license": "epl-1.0", "size": 44522 }
[ "org.eclipse.persistence.exceptions.DatabaseException" ]
import org.eclipse.persistence.exceptions.DatabaseException;
import org.eclipse.persistence.exceptions.*;
[ "org.eclipse.persistence" ]
org.eclipse.persistence;
1,004,371
public void setSelectedTimeseries(final CidsBean timeseries) { this.selectedTimeseries = timeseries; changeSupport.fireChange(); }
void function(final CidsBean timeseries) { this.selectedTimeseries = timeseries; changeSupport.fireChange(); }
/** * DOCUMENT ME! * * @param timeseries DOCUMENT ME! */
DOCUMENT ME
setSelectedTimeseries
{ "repo_name": "cismet/cids-custom-sudplan", "path": "src/main/java/de/cismet/cids/custom/sudplan/hydrology/AssignTimeseriesWizardPanelSelectTS.java", "license": "lgpl-3.0", "size": 3414 }
[ "de.cismet.cids.dynamics.CidsBean" ]
import de.cismet.cids.dynamics.CidsBean;
import de.cismet.cids.dynamics.*;
[ "de.cismet.cids" ]
de.cismet.cids;
2,369,041
ShippingConfiguration getShippingConfiguration(MerchantStore store) throws ServiceException;
ShippingConfiguration getShippingConfiguration(MerchantStore store) throws ServiceException;
/** * ShippingType (NATIONAL, INTERNATIONSL) * ShippingBasisType (SHIPPING, BILLING) * ShippingPriceOptionType (ALL, LEAST, HIGHEST) * Packages * Handling * @param store * @return * @throws ServiceException */
ShippingType (NATIONAL, INTERNATIONSL) ShippingBasisType (SHIPPING, BILLING) ShippingPriceOptionType (ALL, LEAST, HIGHEST) Packages Handling
getShippingConfiguration
{ "repo_name": "xyz2410/shopizer", "path": "sm-core/src/main/java/com/salesmanager/core/business/shipping/service/ShippingService.java", "license": "gpl-2.0", "size": 6663 }
[ "com.salesmanager.core.business.generic.exception.ServiceException", "com.salesmanager.core.business.merchant.model.MerchantStore", "com.salesmanager.core.business.shipping.model.ShippingConfiguration" ]
import com.salesmanager.core.business.generic.exception.ServiceException; import com.salesmanager.core.business.merchant.model.MerchantStore; import com.salesmanager.core.business.shipping.model.ShippingConfiguration;
import com.salesmanager.core.business.generic.exception.*; import com.salesmanager.core.business.merchant.model.*; import com.salesmanager.core.business.shipping.model.*;
[ "com.salesmanager.core" ]
com.salesmanager.core;
2,121,287
private void cacheLocation(final TableName tableName, final ServerName source, final HRegionLocation location) { metaCache.cacheLocation(tableName, source, location); } // Map keyed by service name + regionserver to service stub implementation private final ConcurrentHashMap<String, Object> stubs = ...
void function(final TableName tableName, final ServerName source, final HRegionLocation location) { metaCache.cacheLocation(tableName, source, location); } private final ConcurrentHashMap<String, Object> stubs = new ConcurrentHashMap<String, Object>(); private final ConcurrentHashMap<String, String> connectionLock = ne...
/** * Put a newly discovered HRegionLocation into the cache. * @param tableName The table name. * @param source the source of the new location, if it's not coming from meta * @param location the new location */
Put a newly discovered HRegionLocation into the cache
cacheLocation
{ "repo_name": "narendragoyal/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java", "license": "apache-2.0", "size": 80285 }
[ "java.util.concurrent.ConcurrentHashMap", "org.apache.hadoop.hbase.HRegionLocation", "org.apache.hadoop.hbase.ServerName", "org.apache.hadoop.hbase.TableName", "org.apache.hadoop.hbase.protobuf.generated.MasterProtos" ]
import java.util.concurrent.ConcurrentHashMap; import org.apache.hadoop.hbase.HRegionLocation; import org.apache.hadoop.hbase.ServerName; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.protobuf.generated.MasterProtos;
import java.util.concurrent.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.protobuf.generated.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,281,332
public void registerOuterJoinedTids(List<TupleId> tids, TableRef rhsRef) { for (TupleId tid: tids) { globalState_.outerJoinedTupleIds.put(tid, rhsRef); } if (LOG.isTraceEnabled()) { LOG.trace("registerOuterJoinedTids: " + globalState_.outerJoinedTupleIds.toString()); } }
void function(List<TupleId> tids, TableRef rhsRef) { for (TupleId tid: tids) { globalState_.outerJoinedTupleIds.put(tid, rhsRef); } if (LOG.isTraceEnabled()) { LOG.trace(STR + globalState_.outerJoinedTupleIds.toString()); } }
/** * Register tids as being outer-joined by Join clause represented by rhsRef. */
Register tids as being outer-joined by Join clause represented by rhsRef
registerOuterJoinedTids
{ "repo_name": "cloudera/Impala", "path": "fe/src/main/java/org/apache/impala/analysis/Analyzer.java", "license": "apache-2.0", "size": 116695 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,280,520
public Component readDesign(Element componentDesign) { // Create the component. Component component = instantiateComponent(componentDesign); readDesign(componentDesign, component); fireComponentCreatedEvent(componentToLocalId.get(component), component); return component; ...
Component function(Element componentDesign) { Component component = instantiateComponent(componentDesign); readDesign(componentDesign, component); fireComponentCreatedEvent(componentToLocalId.get(component), component); return component; }
/** * Reads the given design node and creates the corresponding component tree * * @param componentDesign * The design element containing the description of the component * to be created. * @return the root component of component tree */
Reads the given design node and creates the corresponding component tree
readDesign
{ "repo_name": "carrchang/vaadin", "path": "server/src/com/vaadin/ui/declarative/DesignContext.java", "license": "apache-2.0", "size": 27543 }
[ "com.vaadin.ui.Component", "org.jsoup.nodes.Element" ]
import com.vaadin.ui.Component; import org.jsoup.nodes.Element;
import com.vaadin.ui.*; import org.jsoup.nodes.*;
[ "com.vaadin.ui", "org.jsoup.nodes" ]
com.vaadin.ui; org.jsoup.nodes;
2,214,439
Intent resultIntent = new Intent(context, MainActivity.class); PendingIntent resultPendingIntent = PendingIntent.getActivity( context, 0, resultIntent, PendingIntent.FLAG_UPDATE_CURRENT ); NotificationManag...
Intent resultIntent = new Intent(context, MainActivity.class); PendingIntent resultPendingIntent = PendingIntent.getActivity( context, 0, resultIntent, PendingIntent.FLAG_UPDATE_CURRENT ); NotificationManager notificationManager; notificationManager = (NotificationManager) context.getSystemService(context.NOTIFICATION_...
/** * Sends a notification to the user when called by an alarm. * * @param context applicationcontext * @param intent the intent to open when called. */
Sends a notification to the user when called by an alarm
onReceive
{ "repo_name": "BakkerTom/happy-news", "path": "android/src/main/java/nl/fhict/happynews/android/receiver/NotificationReceiver.java", "license": "mit", "size": 1792 }
[ "android.app.Notification", "android.app.NotificationManager", "android.app.PendingIntent", "android.content.Intent", "android.support.v7.app.NotificationCompat", "nl.fhict.happynews.android.activity.MainActivity" ]
import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Intent; import android.support.v7.app.NotificationCompat; import nl.fhict.happynews.android.activity.MainActivity;
import android.app.*; import android.content.*; import android.support.v7.app.*; import nl.fhict.happynews.android.activity.*;
[ "android.app", "android.content", "android.support", "nl.fhict.happynews" ]
android.app; android.content; android.support; nl.fhict.happynews;
705,848
public void restartProxies() { for (IgniteCacheProxyImpl<?, ?> proxy : jCacheProxies.values()) { if (proxy == null) continue; GridCacheContext<?, ?> cacheCtx = sharedCtx.cacheContext(CU.cacheId(proxy.getName())); if (cacheCtx == null) con...
void function() { for (IgniteCacheProxyImpl<?, ?> proxy : jCacheProxies.values()) { if (proxy == null) continue; GridCacheContext<?, ?> cacheCtx = sharedCtx.cacheContext(CU.cacheId(proxy.getName())); if (cacheCtx == null) continue; if (proxy.isRestarting()) { caches.get(proxy.getName()).active(true); proxy.onRestarted(...
/** * Restarts proxies of caches if they was marked as restarting. * Requires external synchronization - shouldn't be called concurrently with another caches restart. */
Restarts proxies of caches if they was marked as restarting. Requires external synchronization - shouldn't be called concurrently with another caches restart
restartProxies
{ "repo_name": "endian675/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java", "license": "apache-2.0", "size": 172471 }
[ "org.apache.ignite.internal.util.typedef.internal.CU" ]
import org.apache.ignite.internal.util.typedef.internal.CU;
import org.apache.ignite.internal.util.typedef.internal.*;
[ "org.apache.ignite" ]
org.apache.ignite;
177,692
public boolean copyLink ( String inode, String newFolder ) throws Exception { HttpServletRequest req = WebContextFactory.get().getHttpServletRequest(); User user = getUser( req ); Link link = (Link) InodeFactory.getInode( inode, Link.class ); // gets folder parent Folder p...
boolean function ( String inode, String newFolder ) throws Exception { HttpServletRequest req = WebContextFactory.get().getHttpServletRequest(); User user = getUser( req ); Link link = (Link) InodeFactory.getInode( inode, Link.class ); Folder parent = null; try { parent = APILocator.getFolderAPI().find( newFolder, user...
/** * Copies a given inode Link to a given folder * * @param inode Link inode * @param newFolder This could be the inode of a folder or a host * @return true if success, false otherwise * @throws Exception */
Copies a given inode Link to a given folder
copyLink
{ "repo_name": "zhiqinghuang/core", "path": "src/com/dotmarketing/portlets/browser/ajax/BrowserAjax.java", "license": "gpl-3.0", "size": 86584 }
[ "com.dotcms.repackage.org.directwebremoting.WebContextFactory", "com.dotmarketing.beans.Host", "com.dotmarketing.business.APILocator", "com.dotmarketing.exception.DotRuntimeException", "com.dotmarketing.factories.InodeFactory", "com.dotmarketing.portlets.folders.model.Folder", "com.dotmarketing.portlets...
import com.dotcms.repackage.org.directwebremoting.WebContextFactory; import com.dotmarketing.beans.Host; import com.dotmarketing.business.APILocator; import com.dotmarketing.exception.DotRuntimeException; import com.dotmarketing.factories.InodeFactory; import com.dotmarketing.portlets.folders.model.Folder; import com.d...
import com.dotcms.repackage.org.directwebremoting.*; import com.dotmarketing.beans.*; import com.dotmarketing.business.*; import com.dotmarketing.exception.*; import com.dotmarketing.factories.*; import com.dotmarketing.portlets.folders.model.*; import com.dotmarketing.portlets.links.factories.*; import com.dotmarketin...
[ "com.dotcms.repackage", "com.dotmarketing.beans", "com.dotmarketing.business", "com.dotmarketing.exception", "com.dotmarketing.factories", "com.dotmarketing.portlets", "com.liferay.portal", "javax.servlet" ]
com.dotcms.repackage; com.dotmarketing.beans; com.dotmarketing.business; com.dotmarketing.exception; com.dotmarketing.factories; com.dotmarketing.portlets; com.liferay.portal; javax.servlet;
380,950
protected void introspect() { try { final BeanInfo bi = Introspector.getBeanInfo( obj.getClass() ); props = bi.getPropertyDescriptors(); } catch ( final IntrospectionException ex ) { log.error( "Failed to introspect {0}", obj, ex ); ...
void function() { try { final BeanInfo bi = Introspector.getBeanInfo( obj.getClass() ); props = bi.getPropertyDescriptors(); } catch ( final IntrospectionException ex ) { log.error( STR, obj, ex ); props = new PropertyDescriptor[0]; } }
/** * Uses JavaBeans {@link Introspector}to compute setters of object to be configured. */
Uses JavaBeans <code>Introspector</code>to compute setters of object to be configured
introspect
{ "repo_name": "apache/commons-jcs", "path": "commons-jcs-core/src/main/java/org/apache/commons/jcs3/utils/config/PropertySetter.java", "license": "apache-2.0", "size": 9535 }
[ "java.beans.BeanInfo", "java.beans.IntrospectionException", "java.beans.Introspector", "java.beans.PropertyDescriptor" ]
import java.beans.BeanInfo; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor;
import java.beans.*;
[ "java.beans" ]
java.beans;
2,846,025
private Timestamp normalizeTimeOfDayPart(Timestamp t, Calendar tz) { return new Timestamp(normalizeTimeOfDayPart(t.getTime(), tz.getTimeZone())); }
Timestamp function(Timestamp t, Calendar tz) { return new Timestamp(normalizeTimeOfDayPart(t.getTime(), tz.getTimeZone())); }
/** * Converts the given time * * @param t The time of day. Must be within -24 and + 24 hours of epoc. * @param tz The timezone to normalize to. * @return the Time nomralized to 0 to 24 hours of epoc adjusted with given timezone. */
Converts the given time
normalizeTimeOfDayPart
{ "repo_name": "Gordiychuk/pgjdbc", "path": "pgjdbc/src/test/java/org/postgresql/test/jdbc2/TimezoneTest.java", "license": "bsd-2-clause", "size": 39270 }
[ "java.sql.Timestamp", "java.util.Calendar" ]
import java.sql.Timestamp; import java.util.Calendar;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
1,410,447
@Override protected FileSystemFactory getFtpFileSystem() throws IOException { // simulate a non-root home directory by copying test directory to it final File testDir = new File(getTestDirectory()); final File rootDir = new File(testDir, "homeDirIsRoot"); final File homesDir...
FileSystemFactory function() throws IOException { final File testDir = new File(getTestDirectory()); final File rootDir = new File(testDir, STR); final File homesDir = new File(rootDir, "home"); final File initialDir = new File(homesDir, "test"); FileUtils.deleteDirectory(rootDir); rootDir.mkdir(); FileUtils.copyDirect...
/** * Gets option file system factory for local FTP server. */
Gets option file system factory for local FTP server
getFtpFileSystem
{ "repo_name": "seeburger-ag/commons-vfs", "path": "commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftp/test/FtpProviderUserDirTestCase.java", "license": "apache-2.0", "size": 3079 }
[ "java.io.File", "java.io.IOException", "org.apache.commons.io.FileUtils", "org.apache.ftpserver.ftplet.FileSystemFactory" ]
import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import org.apache.ftpserver.ftplet.FileSystemFactory;
import java.io.*; import org.apache.commons.io.*; import org.apache.ftpserver.ftplet.*;
[ "java.io", "org.apache.commons", "org.apache.ftpserver" ]
java.io; org.apache.commons; org.apache.ftpserver;
2,149,868
Map<String, ExternalIdentityRef> getDeclaredGroupRefs(ExternalIdentityRef ref, String dn) throws ExternalIdentityException { if (!isMyRef(ref)) { return Collections.emptyMap(); } String searchFilter = config.getMemberOfSearchFilter(dn); LdapConnection connection = null; ...
Map<String, ExternalIdentityRef> getDeclaredGroupRefs(ExternalIdentityRef ref, String dn) throws ExternalIdentityException { if (!isMyRef(ref)) { return Collections.emptyMap(); } String searchFilter = config.getMemberOfSearchFilter(dn); LdapConnection connection = null; SearchCursor searchCursor = null; try { SearchReq...
/** * Collects the declared (direct) groups of an identity * @param ref reference to the identity * @return map of identities where the key is the DN of the LDAP entity */
Collects the declared (direct) groups of an identity
getDeclaredGroupRefs
{ "repo_name": "francescomari/jackrabbit-oak", "path": "oak-auth-ldap/src/main/java/org/apache/jackrabbit/oak/security/authentication/ldap/impl/LdapIdentityProvider.java", "license": "apache-2.0", "size": 36241 }
[ "java.io.IOException", "java.util.Collections", "java.util.HashMap", "java.util.Map", "org.apache.directory.api.ldap.model.constants.SchemaConstants", "org.apache.directory.api.ldap.model.cursor.SearchCursor", "org.apache.directory.api.ldap.model.entry.Entry", "org.apache.directory.api.ldap.model.mess...
import java.io.IOException; import java.util.Collections; import java.util.HashMap; import java.util.Map; import org.apache.directory.api.ldap.model.constants.SchemaConstants; import org.apache.directory.api.ldap.model.cursor.SearchCursor; import org.apache.directory.api.ldap.model.entry.Entry; import org.apache.direct...
import java.io.*; import java.util.*; import org.apache.directory.api.ldap.model.constants.*; import org.apache.directory.api.ldap.model.cursor.*; import org.apache.directory.api.ldap.model.entry.*; import org.apache.directory.api.ldap.model.message.*; import org.apache.directory.api.ldap.model.name.*; import org.apach...
[ "java.io", "java.util", "org.apache.directory", "org.apache.jackrabbit" ]
java.io; java.util; org.apache.directory; org.apache.jackrabbit;
154,156
private SecondaryDatabase openSecondaryDataBase(String dbName, boolean create, boolean populate, boolean sortedDuplicates, SecondaryKeyCreator secondaryKeyCreator) throws DatabaseException { SecondaryDatabase db = null; SecondaryConfig secDbConfig = new SecondaryConfig(); secDbConfig.setAllowCreate(create);...
SecondaryDatabase function(String dbName, boolean create, boolean populate, boolean sortedDuplicates, SecondaryKeyCreator secondaryKeyCreator) throws DatabaseException { SecondaryDatabase db = null; SecondaryConfig secDbConfig = new SecondaryConfig(); secDbConfig.setAllowCreate(create); secDbConfig.setSortedDuplicates(...
/** * Open a secondary database of this datastore. * * @param dbName * Full database name * @param create * <code>true</code> if allowed to create a new * secondary database, <code>false</code> otherwise. * @param populate * <code>true</code...
Open a secondary database of this datastore
openSecondaryDataBase
{ "repo_name": "spencerjackson/fred-staging", "path": "src/freenet/store/BerkeleyDBFreenetStore.java", "license": "gpl-2.0", "size": 80644 }
[ "com.sleepycat.je.DatabaseException", "com.sleepycat.je.DatabaseNotFoundException", "com.sleepycat.je.SecondaryConfig", "com.sleepycat.je.SecondaryDatabase", "com.sleepycat.je.SecondaryKeyCreator", "org.tanukisoftware.wrapper.WrapperManager" ]
import com.sleepycat.je.DatabaseException; import com.sleepycat.je.DatabaseNotFoundException; import com.sleepycat.je.SecondaryConfig; import com.sleepycat.je.SecondaryDatabase; import com.sleepycat.je.SecondaryKeyCreator; import org.tanukisoftware.wrapper.WrapperManager;
import com.sleepycat.je.*; import org.tanukisoftware.wrapper.*;
[ "com.sleepycat.je", "org.tanukisoftware.wrapper" ]
com.sleepycat.je; org.tanukisoftware.wrapper;
2,804,243
@Test public void testBeefMonopolistFixedProductionWithStickyPrices() throws ExecutionException, InterruptedException { //this will take a looong time final MersenneTwisterFast random = new MersenneTwisterFast(System.currentTimeMillis()); ArrayList<OneLinkSupplyChainResult> testResults =...
void function() throws ExecutionException, InterruptedException { final MersenneTwisterFast random = new MersenneTwisterFast(System.currentTimeMillis()); ArrayList<OneLinkSupplyChainResult> testResults = new ArrayList<>(5); for(int i=0; i <5; i++) { testResults.add(OneLinkSupplyChainResult.beefMonopolistFixedProduction...
/** * force the beef monopolist to target the right production */
force the beef monopolist to target the right production
testBeefMonopolistFixedProductionWithStickyPrices
{ "repo_name": "CarrKnight/MacroIIDiscrete", "path": "src/test-acceptance/java/model/scenario/OneLinkSupplyChainScenarioRegressionTest.java", "license": "mit", "size": 29489 }
[ "ec.util.MersenneTwisterFast", "java.util.ArrayList", "java.util.concurrent.ExecutionException", "org.junit.Assert" ]
import ec.util.MersenneTwisterFast; import java.util.ArrayList; import java.util.concurrent.ExecutionException; import org.junit.Assert;
import ec.util.*; import java.util.*; import java.util.concurrent.*; import org.junit.*;
[ "ec.util", "java.util", "org.junit" ]
ec.util; java.util; org.junit;
2,000,706
public void deleteKey(KeyArgs args) throws OzoneException { lock.writeLock().lock(); try { byte[] bucketInfo = metadataDB.get(args.getParentName() .getBytes(encoding)); if (bucketInfo == null) { throw ErrorTable.newError(ErrorTable.INVALID_BUCKET_NAME, args); } Bucket...
void function(KeyArgs args) throws OzoneException { lock.writeLock().lock(); try { byte[] bucketInfo = metadataDB.get(args.getParentName() .getBytes(encoding)); if (bucketInfo == null) { throw ErrorTable.newError(ErrorTable.INVALID_BUCKET_NAME, args); } BucketInfo bInfo = BucketInfo.parse(new String(bucketInfo, encodin...
/** * deletes an key from a given bucket. * * @param args - ObjectArgs * @throws OzoneException */
deletes an key from a given bucket
deleteKey
{ "repo_name": "GeLiXin/hadoop", "path": "hadoop-ozone/objectstore-service/src/main/java/org/apache/hadoop/ozone/web/localstorage/OzoneMetadataManager.java", "license": "apache-2.0", "size": 37878 }
[ "java.io.File", "java.io.IOException", "org.apache.commons.codec.digest.DigestUtils", "org.apache.hadoop.ozone.client.rest.OzoneException", "org.apache.hadoop.ozone.web.exceptions.ErrorTable", "org.apache.hadoop.ozone.web.handlers.KeyArgs", "org.apache.hadoop.ozone.web.response.BucketInfo", "org.apach...
import java.io.File; import java.io.IOException; import org.apache.commons.codec.digest.DigestUtils; import org.apache.hadoop.ozone.client.rest.OzoneException; import org.apache.hadoop.ozone.web.exceptions.ErrorTable; import org.apache.hadoop.ozone.web.handlers.KeyArgs; import org.apache.hadoop.ozone.web.response.Bucke...
import java.io.*; import org.apache.commons.codec.digest.*; import org.apache.hadoop.ozone.client.rest.*; import org.apache.hadoop.ozone.web.exceptions.*; import org.apache.hadoop.ozone.web.handlers.*; import org.apache.hadoop.ozone.web.response.*;
[ "java.io", "org.apache.commons", "org.apache.hadoop" ]
java.io; org.apache.commons; org.apache.hadoop;
1,268,265
public static boolean isConnectedWifi(Context context) { NetworkInfo info = ConnectionUtils.getNetworkInfo(context); return (info != null && info.isConnected() && info.getType() == ConnectivityManager.TYPE_WIFI); }
static boolean function(Context context) { NetworkInfo info = ConnectionUtils.getNetworkInfo(context); return (info != null && info.isConnected() && info.getType() == ConnectivityManager.TYPE_WIFI); }
/** * Check if there is any connectivity to a Wifi network * * @param context * @param type * @return */
Check if there is any connectivity to a Wifi network
isConnectedWifi
{ "repo_name": "Caerwent/Coquille", "path": "lib/src/main/java/bzh/caerwent/coquille/utils/ConnectionUtils.java", "license": "apache-2.0", "size": 1426 }
[ "android.content.Context", "android.net.ConnectivityManager", "android.net.NetworkInfo" ]
import android.content.Context; import android.net.ConnectivityManager; import android.net.NetworkInfo;
import android.content.*; import android.net.*;
[ "android.content", "android.net" ]
android.content; android.net;
487,839
public void setDsKey(String dsKey) { if ((this.dsKey == null)) { if ((dsKey == null)) { return; } this.dsKey = new Key(); } this.dsKey.setValue(dsKey); }
void function(String dsKey) { if ((this.dsKey == null)) { if ((dsKey == null)) { return; } this.dsKey = new Key(); } this.dsKey.setValue(dsKey); }
/** * Missing description at method setDsKey. * * @param dsKey the String. */
Missing description at method setDsKey
setDsKey
{ "repo_name": "NABUCCO/org.nabucco.framework.template", "path": "org.nabucco.framework.template.facade.datatype/src/main/gen/org/nabucco/framework/template/facade/datatype/datastructure/KeyValuePair.java", "license": "epl-1.0", "size": 7906 }
[ "org.nabucco.framework.base.facade.datatype.Key" ]
import org.nabucco.framework.base.facade.datatype.Key;
import org.nabucco.framework.base.facade.datatype.*;
[ "org.nabucco.framework" ]
org.nabucco.framework;
76,500
public ServiceResponse<List<Long>> getLongInvalidString() throws ErrorException, IOException { Call<ResponseBody> call = service.getLongInvalidString(); return getLongInvalidStringDelegate(call.execute()); }
ServiceResponse<List<Long>> function() throws ErrorException, IOException { Call<ResponseBody> call = service.getLongInvalidString(); return getLongInvalidStringDelegate(call.execute()); }
/** * Get long array value [1, 'integer', 0]. * * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @return the List&lt;Long&gt; object wrapped in {@link ServiceResponse} if successful. */
Get long array value [1, 'integer', 0]
getLongInvalidString
{ "repo_name": "stankovski/AutoRest", "path": "AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/ArrayOperationsImpl.java", "license": "mit", "size": 167174 }
[ "com.microsoft.rest.ServiceResponse", "java.io.IOException", "java.util.List" ]
import com.microsoft.rest.ServiceResponse; import java.io.IOException; import java.util.List;
import com.microsoft.rest.*; import java.io.*; import java.util.*;
[ "com.microsoft.rest", "java.io", "java.util" ]
com.microsoft.rest; java.io; java.util;
2,041,926
@Override public void createFieldEditors() { Preferences prefs = new Preferences(); Layout fieldEditorParentLayout = getFieldEditorParent().getLayout(); if (fieldEditorParentLayout instanceof GridLayout) { GridLayout layout = (GridLayout) fieldEditorParentLayout; layout.marginRight = 5; } Group bl...
void function() { Preferences prefs = new Preferences(); Layout fieldEditorParentLayout = getFieldEditorParent().getLayout(); if (fieldEditorParentLayout instanceof GridLayout) { GridLayout layout = (GridLayout) fieldEditorParentLayout; layout.marginRight = 5; } Group blockGroup = new Group(getFieldEditorParent(), SWT....
/** * Creates the field editors. Field editors are abstractions of the common GUI blocks needed to manipulate various * types of preferences. Each field editor knows how to save and restore itself. */
Creates the field editors. Field editors are abstractions of the common GUI blocks needed to manipulate various types of preferences. Each field editor knows how to save and restore itself
createFieldEditors
{ "repo_name": "gnodet/wikitext", "path": "org.eclipse.mylyn.wikitext.ui/src/org/eclipse/mylyn/internal/wikitext/ui/editor/preferences/EditorPreferencePage.java", "license": "epl-1.0", "size": 5581 }
[ "java.util.Map", "org.eclipse.jface.layout.GridDataFactory", "org.eclipse.mylyn.internal.wikitext.ui.viewer.CssStyleManager", "org.eclipse.swt.layout.GridLayout", "org.eclipse.swt.widgets.Group", "org.eclipse.swt.widgets.Layout", "org.eclipse.ui.PlatformUI" ]
import java.util.Map; import org.eclipse.jface.layout.GridDataFactory; import org.eclipse.mylyn.internal.wikitext.ui.viewer.CssStyleManager; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Group; import org.eclipse.swt.widgets.Layout; import org.eclipse.ui.PlatformUI;
import java.util.*; import org.eclipse.jface.layout.*; import org.eclipse.mylyn.internal.wikitext.ui.viewer.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; import org.eclipse.ui.*;
[ "java.util", "org.eclipse.jface", "org.eclipse.mylyn", "org.eclipse.swt", "org.eclipse.ui" ]
java.util; org.eclipse.jface; org.eclipse.mylyn; org.eclipse.swt; org.eclipse.ui;
1,667,996
@GwtIncompatible("reflection") public static Method getCreateWithNullKeyUnsupportedMethod() { return Helpers.getMethod(MapCreationTester.class, "testCreateWithNullKeyUnsupported"); }
@GwtIncompatible(STR) static Method function() { return Helpers.getMethod(MapCreationTester.class, STR); }
/** * Returns the {@link Method} instance for {@link * #testCreateWithNullKeyUnsupported()} so that tests can suppress it * with {@code FeatureSpecificTestSuiteBuilder.suppressing()} until <a * href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5045147">Sun * bug 5045147</a> is fixed. */
Returns the <code>Method</code> instance for <code>#testCreateWithNullKeyUnsupported()</code> so that tests can suppress it with FeatureSpecificTestSuiteBuilder.suppressing() until Sun bug 5045147 is fixed
getCreateWithNullKeyUnsupportedMethod
{ "repo_name": "liyazhou/guava", "path": "guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java", "license": "apache-2.0", "size": 5736 }
[ "com.google.common.annotations.GwtIncompatible", "com.google.common.collect.testing.Helpers", "java.lang.reflect.Method" ]
import com.google.common.annotations.GwtIncompatible; import com.google.common.collect.testing.Helpers; import java.lang.reflect.Method;
import com.google.common.annotations.*; import com.google.common.collect.testing.*; import java.lang.reflect.*;
[ "com.google.common", "java.lang" ]
com.google.common; java.lang;
2,595,552
public DocumentReference getDocumentReference() { return this.doc.getDocumentReference(); } /** * @return the {@link DocumentReference} of the document also containing the document {@link Locale}
DocumentReference function() { return this.doc.getDocumentReference(); } /** * @return the {@link DocumentReference} of the document also containing the document {@link Locale}
/** * returns the DocumentReference for the current document * * @return the DocumentReference of the current document * @since 2.3M1 */
returns the DocumentReference for the current document
getDocumentReference
{ "repo_name": "pbondoer/xwiki-platform", "path": "xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/Document.java", "license": "lgpl-2.1", "size": 112264 }
[ "java.util.Locale", "org.xwiki.model.reference.DocumentReference" ]
import java.util.Locale; import org.xwiki.model.reference.DocumentReference;
import java.util.*; import org.xwiki.model.reference.*;
[ "java.util", "org.xwiki.model" ]
java.util; org.xwiki.model;
923,764
static double calcTotalEstSizeForTopic(List<WorkUnit> workUnitsForTopic) { double totalSize = 0; for (WorkUnit w : workUnitsForTopic) { totalSize += getWorkUnitEstSize(w); } return totalSize; }
static double calcTotalEstSizeForTopic(List<WorkUnit> workUnitsForTopic) { double totalSize = 0; for (WorkUnit w : workUnitsForTopic) { totalSize += getWorkUnitEstSize(w); } return totalSize; }
/** * Calculate estimated size for a topic from all {@link WorkUnit}s belong to it. */
Calculate estimated size for a topic from all <code>WorkUnit</code>s belong to it
calcTotalEstSizeForTopic
{ "repo_name": "arjun4084346/gobblin", "path": "gobblin-modules/gobblin-kafka-common/src/main/java/org/apache/gobblin/source/extractor/extract/kafka/workunit/packer/KafkaWorkUnitPacker.java", "license": "apache-2.0", "size": 19465 }
[ "java.util.List", "org.apache.gobblin.source.workunit.WorkUnit" ]
import java.util.List; import org.apache.gobblin.source.workunit.WorkUnit;
import java.util.*; import org.apache.gobblin.source.workunit.*;
[ "java.util", "org.apache.gobblin" ]
java.util; org.apache.gobblin;
1,930,414
void finish(Request request) { // Remove from the set of requests currently being processed. synchronized (mCurrentRequests) { mCurrentRequests.remove(request); } if (request.shouldCache()) { synchronized (mWaitingRequests) { String cacheKey =...
void finish(Request request) { synchronized (mCurrentRequests) { mCurrentRequests.remove(request); } if (request.shouldCache()) { synchronized (mWaitingRequests) { String cacheKey = request.getCacheKey(); Queue<Request> waitingRequests = mWaitingRequests.remove(cacheKey); if (waitingRequests != null) { if (VolleyConfig...
/** * Called from {@link Request#finish(String)}, indicating that processing of the given request * has finished. * * <p>Releases waiting requests for <code>request.getCacheKey()</code> if * <code>request.shouldCache()</code>.</p> */
Called from <code>Request#finish(String)</code>, indicating that processing of the given request has finished. Releases waiting requests for <code>request.getCacheKey()</code> if <code>request.shouldCache()</code>
finish
{ "repo_name": "dim1989/zhangzhoujun.github.io", "path": "MyVolley/app/src/main/java/com/android/myvolley/volley/RequestQueue.java", "license": "epl-1.0", "size": 10640 }
[ "com.android.myvolley.volley.toolbox.VolleyConfig", "java.util.Queue" ]
import com.android.myvolley.volley.toolbox.VolleyConfig; import java.util.Queue;
import com.android.myvolley.volley.toolbox.*; import java.util.*;
[ "com.android.myvolley", "java.util" ]
com.android.myvolley; java.util;
2,028,178
static LabelNode clone(final LabelNode label, final Map<LabelNode, LabelNode> map) { return map.get(label); }
static LabelNode clone(final LabelNode label, final Map<LabelNode, LabelNode> map) { return map.get(label); }
/** * Returns the clone of the given label. * * @param label * a label. * @param map * a map from LabelNodes to cloned LabelNodes. * @return the clone of the given label. */
Returns the clone of the given label
clone
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jdk/src/share/classes/jdk/internal/org/objectweb/asm/tree/AbstractInsnNode.java", "license": "mit", "size": 11850 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,442,238