method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public static String serializeDigestResponse(Map<String, String> paramMap) { StringBuilder sb = new StringBuilder("Digest "); boolean prefixComma = false; for (Map.Entry<String, String> entry : paramMap.entrySet()) { if (!prefixComma) { prefixComma = true; ...
static String function(Map<String, String> paramMap) { StringBuilder sb = new StringBuilder(STR); boolean prefixComma = false; for (Map.Entry<String, String> entry : paramMap.entrySet()) { if (!prefixComma) { prefixComma = true; } else { sb.append(STR); } sb.append(entry.getKey()); sb.append("="); sb.append(entry.getVa...
/** * Serialize a parameter map into a digest response. This is used * as the "Authorization" header in the request. All parameters in * the supplied map will be added to the header. */
Serialize a parameter map into a digest response. This is used as the "Authorization" header in the request. All parameters in the supplied map will be added to the header
serializeDigestResponse
{ "repo_name": "richardgutkowski/ansible-roles", "path": "stash/files/mysql-connector-java-5.1.35/src/com/mysql/fabric/proto/xmlrpc/DigestAuthentication.java", "license": "mit", "size": 8053 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,898,143
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.JLabel(); lblName = new javax.swing.JLabel(); lblNationality = new javax.swing.JLabel(); jLabel2...
@SuppressWarnings(STR) void function() { jLabel1 = new javax.swing.JLabel(); lblName = new javax.swing.JLabel(); lblNationality = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); txtAptNo = new javax.swing.JTextField(); txtName = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); txtAptName ...
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. regenerated by the Form Editor
initComponents
{ "repo_name": "abhishek-nandgaonkar/HealTech", "path": "src/userInterface/government/CreateNewCitizenPanel.java", "license": "apache-2.0", "size": 33803 }
[ "javax.swing.JComboBox" ]
import javax.swing.JComboBox;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,613,279
@Override public long skip(long bytes) throws IOException { skipExactly(bytes); return bytes; }
long function(long bytes) throws IOException { skipExactly(bytes); return bytes; }
/** * Note: bytes can be negative iff seekableIn != null. */
Note: bytes can be negative iff seekableIn != null
skip
{ "repo_name": "shakamunyi/hadoop-20", "path": "src/contrib/seekablecompression/src/java/org/apache/hadoop/io/simpleseekableformat/InterleavedInputStream.java", "license": "apache-2.0", "size": 9436 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,611,829
public CmsGallerySearchResultList getResult(CmsGallerySearchParameters params) throws CmsException { CmsGallerySearchResultList result = null; if ((m_cms == null) || (m_index == null)) { throw new CmsException(Messages.get().container(Messages.ERR_SEARCH_NOT_INITIALIZED_0)); } ...
CmsGallerySearchResultList function(CmsGallerySearchParameters params) throws CmsException { CmsGallerySearchResultList result = null; if ((m_cms == null) (m_index == null)) { throw new CmsException(Messages.get().container(Messages.ERR_SEARCH_NOT_INITIALIZED_0)); } result = m_index.gallerySearch(m_cms, params); if (re...
/** * Returns the gallery search result list.<p> * * @param params the gallery search parameters * * @return the gallery search result list * * @throws CmsException if the search failed */
Returns the gallery search result list
getResult
{ "repo_name": "alkacon/opencms-core", "path": "src/org/opencms/search/galleries/CmsGallerySearch.java", "license": "lgpl-2.1", "size": 7895 }
[ "org.opencms.main.CmsException", "org.opencms.search.Messages" ]
import org.opencms.main.CmsException; import org.opencms.search.Messages;
import org.opencms.main.*; import org.opencms.search.*;
[ "org.opencms.main", "org.opencms.search" ]
org.opencms.main; org.opencms.search;
2,548,076
@Test public void apiBlockFormatSerialization(@All(API_BLOCK_FORMAT) Map.Entry<ApiBlockFormat, String> expectedValue) throws JsonProcessingException { // Given ApiBlock ApiBlock = new ApiBlock(); ApiBlock.setFormat(expectedValue.getKey()); // When String apiV...
void function(@All(API_BLOCK_FORMAT) Map.Entry<ApiBlockFormat, String> expectedValue) throws JsonProcessingException { ApiBlock ApiBlock = new ApiBlock(); ApiBlock.setFormat(expectedValue.getKey()); String apiValue = objectMapper.writeValueAsString(ApiBlock.getFormat()); assertNotNull(STR, apiValue); assertEquals(STR, ...
/** * Same as {@link #apiBlockTypeSerialization()} for the 'ApiBlockFormat' enumeration. */
Same as <code>#apiBlockTypeSerialization()</code> for the 'ApiBlockFormat' enumeration
apiBlockFormatSerialization
{ "repo_name": "stori-es/stori_es", "path": "dashboard/src/test/java/org/consumersunion/stories/common/shared/dto/BlockConstantsApiSerializationTest.java", "license": "apache-2.0", "size": 6628 }
[ "com.fasterxml.jackson.core.JsonProcessingException", "java.util.Map", "org.consumersunion.stories.common.shared.dto.blocks.BlockConstants", "org.jukito.All", "org.junit.Assert" ]
import com.fasterxml.jackson.core.JsonProcessingException; import java.util.Map; import org.consumersunion.stories.common.shared.dto.blocks.BlockConstants; import org.jukito.All; import org.junit.Assert;
import com.fasterxml.jackson.core.*; import java.util.*; import org.consumersunion.stories.common.shared.dto.blocks.*; import org.jukito.*; import org.junit.*;
[ "com.fasterxml.jackson", "java.util", "org.consumersunion.stories", "org.jukito", "org.junit" ]
com.fasterxml.jackson; java.util; org.consumersunion.stories; org.jukito; org.junit;
2,219,320
public synchronized void forceRelease() { try { if (store != null) { store.close(); } } catch (IOException e) { LOG.warn("Error closing timeline store", e); } store = null; // reset offsets so next time logs are re-parsed for (LogInfo log : appLogs.getDetailLogs()) { ...
synchronized void function() { try { if (store != null) { store.close(); } } catch (IOException e) { LOG.warn(STR, e); } store = null; for (LogInfo log : appLogs.getDetailLogs()) { if (log.getFilename().contains(groupId.toString())) { log.setOffset(0); } } LOG.debug(STR, groupId); }
/** * Force releasing the cache item for the given group id, even though there * may be active references. */
Force releasing the cache item for the given group id, even though there may be active references
forceRelease
{ "repo_name": "dennishuo/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timeline-pluginstorage/src/main/java/org/apache/hadoop/yarn/server/timeline/EntityCacheItem.java", "license": "apache-2.0", "size": 5548 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,916,896
protected boolean useSeparateTask() { final int separateTaskFlags = Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_NEW_DOCUMENT; return (getIntent().getFlags() & separateTaskFlags) != 0; }
boolean function() { final int separateTaskFlags = Intent.FLAG_ACTIVITY_NEW_TASK Intent.FLAG_ACTIVITY_NEW_DOCUMENT; return (getIntent().getFlags() & separateTaskFlags) != 0; }
/** * Return true when the activity has been launched in a separate task. The default behavior is * to reuse the same task and put the activity on top of the previous one (i.e hiding it). A * separate task creates a new entry in the Android recent screen. */
Return true when the activity has been launched in a separate task. The default behavior is to reuse the same task and put the activity on top of the previous one (i.e hiding it). A separate task creates a new entry in the Android recent screen
useSeparateTask
{ "repo_name": "endlessm/chromium-browser", "path": "chrome/android/java/src/org/chromium/chrome/browser/customtabs/BaseCustomTabActivity.java", "license": "bsd-3-clause", "size": 20829 }
[ "android.content.Intent" ]
import android.content.Intent;
import android.content.*;
[ "android.content" ]
android.content;
2,481,522
public Builder blockedStartsWithFilters(Set<String> blockedStartsWithFilters) { if (blockedStartsWithFilters == null) { this.blockedStartsWithFilters = Collections.emptySet(); } else { this.blockedStartsWithFilters = blockedStartsWithFilters; }...
Builder function(Set<String> blockedStartsWithFilters) { if (blockedStartsWithFilters == null) { this.blockedStartsWithFilters = Collections.emptySet(); } else { this.blockedStartsWithFilters = blockedStartsWithFilters; } return this; }
/** * Sets the blacklist filters to be applied to metric names. These filters can include the * {@link net.centro.rtb.monitoringcenter.util.MetricNamingUtil#SEPARATOR} and multiple wildcards denoted as * <tt>*</tt>. * * @param blockedStartsWithFilters blacklist filters to be...
Sets the blacklist filters to be applied to metric names. These filters can include the <code>net.centro.rtb.monitoringcenter.util.MetricNamingUtil#SEPARATOR</code> and multiple wildcards denoted as *
blockedStartsWithFilters
{ "repo_name": "centro/monitoring-center", "path": "src/main/java/net/centro/rtb/monitoringcenter/config/GraphiteReporterConfig.java", "license": "apache-2.0", "size": 12366 }
[ "java.util.Collections", "java.util.Set" ]
import java.util.Collections; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,512,347
@Nonnull public static <K, V> BooleanBinding mapToBooleanThenReduce(@Nonnull final ObservableMap<K, V> items, @Nonnull final Supplier<Boolean> supplier, @Nonnull final Function<? super V, Boolean> mapper, @Nonnull final BinaryOperator<Boolean> reducer) { requireNonNull(items, ERROR_ITEMS_NULL); ...
static <K, V> BooleanBinding function(@Nonnull final ObservableMap<K, V> items, @Nonnull final Supplier<Boolean> supplier, @Nonnull final Function<? super V, Boolean> mapper, @Nonnull final BinaryOperator<Boolean> reducer) { requireNonNull(items, ERROR_ITEMS_NULL); requireNonNull(reducer, ERROR_REDUCER_NULL); requireNo...
/** * Returns a boolean binding whose value is the reduction of all values in the map. The mapper function is applied to each value before reduction. * * @param items the observable map. * @param supplier a {@code Supplier} whose result is returned if no value is present. * @param mapper a...
Returns a boolean binding whose value is the reduction of all values in the map. The mapper function is applied to each value before reduction
mapToBooleanThenReduce
{ "repo_name": "griffon/griffon", "path": "subprojects/griffon-javafx/src/main/java/griffon/javafx/beans/binding/ReducingBindings.java", "license": "apache-2.0", "size": 249342 }
[ "java.util.Objects", "java.util.function.BinaryOperator", "java.util.function.Function", "java.util.function.Supplier" ]
import java.util.Objects; import java.util.function.BinaryOperator; import java.util.function.Function; import java.util.function.Supplier;
import java.util.*; import java.util.function.*;
[ "java.util" ]
java.util;
509,736
public OutOfMemoryError getOutOfMemoryError() { Assertions.checkState(type == TYPE_OUT_OF_MEMORY); return (OutOfMemoryError) Assertions.checkNotNull(cause); }
OutOfMemoryError function() { Assertions.checkState(type == TYPE_OUT_OF_MEMORY); return (OutOfMemoryError) Assertions.checkNotNull(cause); }
/** * Retrieves the underlying error when {@link #type} is {@link #TYPE_OUT_OF_MEMORY}. * * @throws IllegalStateException If {@link #type} is not {@link #TYPE_OUT_OF_MEMORY}. */
Retrieves the underlying error when <code>#type</code> is <code>#TYPE_OUT_OF_MEMORY</code>
getOutOfMemoryError
{ "repo_name": "superbderrick/ExoPlayer", "path": "library/core/src/main/java/com/google/android/exoplayer2/ExoPlaybackException.java", "license": "apache-2.0", "size": 8129 }
[ "com.google.android.exoplayer2.util.Assertions" ]
import com.google.android.exoplayer2.util.Assertions;
import com.google.android.exoplayer2.util.*;
[ "com.google.android" ]
com.google.android;
2,224,991
private Syntax toMacroSyntax(Syntax originalSyntax) { Syntax result; if (Syntax.XHTML_1_0.equals(originalSyntax)) { result = new Syntax(new SyntaxType("xhtmlmacro", "XHTML Macro"), "1.0"); } else { SyntaxType type = originalSyntax.getType(); result = ...
Syntax function(Syntax originalSyntax) { Syntax result; if (Syntax.XHTML_1_0.equals(originalSyntax)) { result = new Syntax(new SyntaxType(STR, STR), "1.0"); } else { SyntaxType type = originalSyntax.getType(); result = new Syntax(new SyntaxType(PREFIX_SYNTAX + type.getId(), STR + type.getName()), originalSyntax.getVers...
/** * Transforms the given Syntax into a corresponding HTML macro syntax. * <p> * For the xhtml/1.0 syntax the special "xhtmlmacro" syntax is returned for compatibility reasons, all other * syntaxes have the "htmlmacro+" prefix added to their id. * * @param originalSyntax The syntax to tra...
Transforms the given Syntax into a corresponding HTML macro syntax. For the xhtml/1.0 syntax the special "xhtmlmacro" syntax is returned for compatibility reasons, all other syntaxes have the "htmlmacro+" prefix added to their id
toMacroSyntax
{ "repo_name": "xwiki/xwiki-rendering", "path": "xwiki-rendering-macros/xwiki-rendering-macro-html/src/main/java/org/xwiki/rendering/internal/macro/html/HTMLMacroXHTMLRendererFactory.java", "license": "lgpl-2.1", "size": 4555 }
[ "org.xwiki.rendering.syntax.Syntax", "org.xwiki.rendering.syntax.SyntaxType" ]
import org.xwiki.rendering.syntax.Syntax; import org.xwiki.rendering.syntax.SyntaxType;
import org.xwiki.rendering.syntax.*;
[ "org.xwiki.rendering" ]
org.xwiki.rendering;
1,834,805
public IOException[] getExceptions() { return exceptions.toArray(new IOException[exceptions.size()]); }
IOException[] function() { return exceptions.toArray(new IOException[exceptions.size()]); }
/** * Returns the exceptions. * @return an array with one element for each exception. */
Returns the exceptions
getExceptions
{ "repo_name": "interdroid/ibis-ipl", "path": "src/ibis/ipl/impl/CollectedWriteException.java", "license": "bsd-3-clause", "size": 2810 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
686,107
ArtifactVersion getNewestUpdate( ArtifactVersion currentVersion, UpdateScope updateScope );
ArtifactVersion getNewestUpdate( ArtifactVersion currentVersion, UpdateScope updateScope );
/** * Returns the newest version newer than the specified current version, but within the the specified update scope or * <code>null</code> if no such version exists. * * @param currentVersion the lower bound or <code>null</code> if the lower limit is unbounded. * @param updateScope the update ...
Returns the newest version newer than the specified current version, but within the the specified update scope or <code>null</code> if no such version exists
getNewestUpdate
{ "repo_name": "prostagma/versions-maven-plugin", "path": "src/main/java/org/codehaus/mojo/versions/api/VersionDetails.java", "license": "apache-2.0", "size": 28383 }
[ "org.apache.maven.artifact.versioning.ArtifactVersion" ]
import org.apache.maven.artifact.versioning.ArtifactVersion;
import org.apache.maven.artifact.versioning.*;
[ "org.apache.maven" ]
org.apache.maven;
878,178
public void finished() { // remove myself from listener list removeKeyListener(this); removeMouseListener(this); removeMouseMotionListener(this); removeMouseWheelListener(this); } public JPanel getLeftHalf() { return leftHalf; }
void function() { removeKeyListener(this); removeMouseListener(this); removeMouseMotionListener(this); removeMouseWheelListener(this); } public JPanel getLeftHalf() { return leftHalf; }
/** * Method to get rid of this Panel. */
Method to get rid of this Panel
finished
{ "repo_name": "imr/Electric8", "path": "com/sun/electric/tool/user/waveform/Panel.java", "license": "gpl-3.0", "size": 95388 }
[ "javax.swing.JPanel" ]
import javax.swing.JPanel;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,949,480
private void launchUrlFromExternalApp(String url, String appId, boolean createNewTab) throws InterruptedException { final Intent intent = new Intent(Intent.ACTION_VIEW); if (appId != null) { intent.putExtra(Browser.EXTRA_APPLICATION_ID, appId); } if (createNew...
void function(String url, String appId, boolean createNewTab) throws InterruptedException { final Intent intent = new Intent(Intent.ACTION_VIEW); if (appId != null) { intent.putExtra(Browser.EXTRA_APPLICATION_ID, appId); } if (createNewTab) { intent.putExtra(Browser.EXTRA_CREATE_NEW_TAB, true); } intent.setData(Uri.par...
/** * Launch the specified URL as if it was triggered by an external application with id appId. * Returns when the URL has been navigated to. * @throws InterruptedException */
Launch the specified URL as if it was triggered by an external application with id appId. Returns when the URL has been navigated to
launchUrlFromExternalApp
{ "repo_name": "Just-D/chromium-1", "path": "chrome/android/javatests/src/org/chromium/chrome/browser/TabsOpenedFromExternalAppTest.java", "license": "bsd-3-clause", "size": 19063 }
[ "android.content.Intent", "android.net.Uri", "android.provider.Browser" ]
import android.content.Intent; import android.net.Uri; import android.provider.Browser;
import android.content.*; import android.net.*; import android.provider.*;
[ "android.content", "android.net", "android.provider" ]
android.content; android.net; android.provider;
2,049,420
public void setFile(File file) { this.file = file; // update configuration as well getConfiguration().setDirectory(FileUtil.isAbsolute(file) ? file.getAbsolutePath() : file.getPath()); }
void function(File file) { this.file = file; getConfiguration().setDirectory(FileUtil.isAbsolute(file) ? file.getAbsolutePath() : file.getPath()); }
/** * The starting directory */
The starting directory
setFile
{ "repo_name": "grgrzybek/camel", "path": "camel-core/src/main/java/org/apache/camel/component/file/FileEndpoint.java", "license": "apache-2.0", "size": 8110 }
[ "java.io.File", "org.apache.camel.util.FileUtil" ]
import java.io.File; import org.apache.camel.util.FileUtil;
import java.io.*; import org.apache.camel.util.*;
[ "java.io", "org.apache.camel" ]
java.io; org.apache.camel;
2,486,894
Future<ServiceBusNamespaceDescriptionResponse> getNamespaceDescriptionAsync(String namespaceName);
Future<ServiceBusNamespaceDescriptionResponse> getNamespaceDescriptionAsync(String namespaceName);
/** * The namespace description is an XML AtomPub document that defines the * desired semantics for a service namespace. The namespace description * contains the following properties. (see * http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx for * more information) * * @para...
The namespace description is an XML AtomPub document that defines the desired semantics for a service namespace. The namespace description contains the following properties. (see HREF for more information)
getNamespaceDescriptionAsync
{ "repo_name": "flydream2046/azure-sdk-for-java", "path": "service-management/azure-svc-mgmt-servicebus/src/main/java/com/microsoft/windowsazure/management/servicebus/NamespaceOperations.java", "license": "apache-2.0", "size": 20584 }
[ "com.microsoft.windowsazure.management.servicebus.models.ServiceBusNamespaceDescriptionResponse", "java.util.concurrent.Future" ]
import com.microsoft.windowsazure.management.servicebus.models.ServiceBusNamespaceDescriptionResponse; import java.util.concurrent.Future;
import com.microsoft.windowsazure.management.servicebus.models.*; import java.util.concurrent.*;
[ "com.microsoft.windowsazure", "java.util" ]
com.microsoft.windowsazure; java.util;
2,759,069
public void process(InputStream sourceStream, OutputStream targetStream) { XMLEvent event = null; QName qName = null; Object obj = null; String uri = null; String localPart = null; String prefix = null; try { // ...
void function(InputStream sourceStream, OutputStream targetStream) { XMLEvent event = null; QName qName = null; Object obj = null; String uri = null; String localPart = null; String prefix = null; try { XMLInputFactory sourceFactory = XMLInputFactory .newInstance(); XMLOutputFactory targetFactory = XMLOutputFactory.new...
/** Opens the input and out file streams, and renames * the namespace prefixes in the file according to the -p options. * @param sourceStream stream for input (file) * @param targetStream stream for output (file) */
Opens the input and out file streams, and renames the namespace prefixes in the file according to the -p options
process
{ "repo_name": "gfis/xtool", "path": "src/main/java/org/teherba/xtool/XPathLink.java", "license": "apache-2.0", "size": 9425 }
[ "java.io.InputStream", "java.io.OutputStream", "javax.xml.namespace.QName", "javax.xml.stream.XMLInputFactory", "javax.xml.stream.XMLOutputFactory", "javax.xml.stream.XMLStreamConstants", "javax.xml.stream.events.StartDocument", "javax.xml.stream.events.XMLEvent" ]
import java.io.InputStream; import java.io.OutputStream; import javax.xml.namespace.QName; import javax.xml.stream.XMLInputFactory; import javax.xml.stream.XMLOutputFactory; import javax.xml.stream.XMLStreamConstants; import javax.xml.stream.events.StartDocument; import javax.xml.stream.events.XMLEvent;
import java.io.*; import javax.xml.namespace.*; import javax.xml.stream.*; import javax.xml.stream.events.*;
[ "java.io", "javax.xml" ]
java.io; javax.xml;
300,079
// F86406 public void introspect(IntrospectionWriter writer) { writer.begin("HomeOfHomes Dump ---> " + this.toString()); writer.begin("homesByName keys : "); List<String> j2eeNameStrings = new ArrayList<String>(); // 619922.1 for (Enumeration<HomeRecord> en = homesByName.ele...
void function(IntrospectionWriter writer) { writer.begin(STR + this.toString()); writer.begin(STR); List<String> j2eeNameStrings = new ArrayList<String>(); for (Enumeration<HomeRecord> en = homesByName.elements(); en.hasMoreElements();) { HomeRecord hr = en.nextElement(); j2eeNameStrings.add(hr.getJ2EEName().toString()...
/** * Writes the important state data of this class, in a readable format, * to the specified output writer. <p> * * @param writer output resource for the introspection data */
Writes the important state data of this class, in a readable format, to the specified output writer.
introspect
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.ejbcontainer.core/src/com/ibm/ejs/container/HomeOfHomes.java", "license": "epl-1.0", "size": 66288 }
[ "com.ibm.ejs.container.activator.ActivationStrategy", "com.ibm.ejs.container.activator.Activator", "com.ibm.ejs.util.FastHashtable", "com.ibm.websphere.csi.J2EEName", "com.ibm.websphere.ras.Tr", "com.ibm.websphere.ras.TraceComponent", "com.ibm.ws.ejbcontainer.diagnostics.IntrospectionWriter", "java.ut...
import com.ibm.ejs.container.activator.ActivationStrategy; import com.ibm.ejs.container.activator.Activator; import com.ibm.ejs.util.FastHashtable; import com.ibm.websphere.csi.J2EEName; import com.ibm.websphere.ras.Tr; import com.ibm.websphere.ras.TraceComponent; import com.ibm.ws.ejbcontainer.diagnostics.Introspectio...
import com.ibm.ejs.container.activator.*; import com.ibm.ejs.util.*; import com.ibm.websphere.csi.*; import com.ibm.websphere.ras.*; import com.ibm.ws.ejbcontainer.diagnostics.*; import java.util.*; import java.util.concurrent.*;
[ "com.ibm.ejs", "com.ibm.websphere", "com.ibm.ws", "java.util" ]
com.ibm.ejs; com.ibm.websphere; com.ibm.ws; java.util;
1,732,659
private BTreeNode findLastLeafNode(IndexKey key, BTreeNode node) { int childNodeIndex; int low = 0; int high = node.nodeSize() - 1; int mid = 0; int compareRes = -1; IndexKey[] nodeKeys = node.getNodeKeys(); // while (low <= high) { mid = (low + high) >>> 1; // compare the ...
BTreeNode function(IndexKey key, BTreeNode node) { int childNodeIndex; int low = 0; int high = node.nodeSize() - 1; int mid = 0; int compareRes = -1; IndexKey[] nodeKeys = node.getNodeKeys(); mid = (low + high) >>> 1; compareRes = compareIndexes(key, nodeKeys[mid]); if (compareRes < 0) { high = mid - 1; } else if (comp...
/** * Binary search used to get the last tentative block of the btree based on * search key * * @param key search key * @param node root node of btree * @return first tentative block */
Binary search used to get the last tentative block of the btree based on search key
findLastLeafNode
{ "repo_name": "Sephiroth-Lin/incubator-carbondata", "path": "core/src/main/java/org/apache/carbondata/core/datastore/impl/btree/BTreeDataRefNodeFinder.java", "license": "apache-2.0", "size": 9511 }
[ "org.apache.carbondata.core.datastore.IndexKey" ]
import org.apache.carbondata.core.datastore.IndexKey;
import org.apache.carbondata.core.datastore.*;
[ "org.apache.carbondata" ]
org.apache.carbondata;
1,526,115
@Test(expected=NullPointerException.class) public void test_getSelectedPropertyIsNull() { CheckBoxTreeCell<Object> cell = new CheckBoxTreeCell<>(null); cell.updateItem("TEST", false); }
@Test(expected=NullPointerException.class) void function() { CheckBoxTreeCell<Object> cell = new CheckBoxTreeCell<>(null); cell.updateItem("TEST", false); }
/************************************************************************** * * updateItem tests * **************************************************************************/
updateItem tests
test_getSelectedPropertyIsNull
{ "repo_name": "teamfx/openjfx-8u-dev-rt", "path": "modules/controls/src/test/java/javafx/scene/control/cell/CheckBoxTreeCellTest.java", "license": "gpl-2.0", "size": 15536 }
[ "org.junit.Test" ]
import org.junit.Test;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,179,966
private void addHeaderItems(HttpGet getter) { getter.addHeader(X_LIBMODE, "sync"); getter.addHeader(X_LIBPLAT, JAVA); getter.addHeader(X_LIBVER, Version.getVersion()); getter.addHeader(new String( Base64.decodeBase64("WC1DbGFja3MtT3ZlcmhlYWQ="), Charse...
void function(HttpGet getter) { getter.addHeader(X_LIBMODE, "sync"); getter.addHeader(X_LIBPLAT, JAVA); getter.addHeader(X_LIBVER, Version.getVersion()); getter.addHeader(new String( Base64.decodeBase64(STR), Charset.forName("UTF-8")), new String( Base64.decodeBase64(STR), Charset.forName("UTF-8"))); }
/** * Adds some header info, like library version etc. This information is * currently primarily added to the GET URL, which is UNBELIEVABLY annoying * to me personally, so I am ALSO adding it to the HTTP headers, where they * SHOULD be, in the hope we can utilize this in future. * * @par...
Adds some header info, like library version etc. This information is currently primarily added to the GET URL, which is UNBELIEVABLY annoying to me personally, so I am ALSO adding it to the HTTP headers, where they SHOULD be, in the hope we can utilize this in future
addHeaderItems
{ "repo_name": "AfriGIS-South-Africa/afrigis-services-java", "path": "core/src/main/java/com/afrigis/services/internal/saas/api2/SaasClient.java", "license": "gpl-2.0", "size": 20341 }
[ "com.afrigis.services.util.Version", "java.nio.charset.Charset", "org.apache.commons.codec.binary.Base64", "org.apache.http.client.methods.HttpGet" ]
import com.afrigis.services.util.Version; import java.nio.charset.Charset; import org.apache.commons.codec.binary.Base64; import org.apache.http.client.methods.HttpGet;
import com.afrigis.services.util.*; import java.nio.charset.*; import org.apache.commons.codec.binary.*; import org.apache.http.client.methods.*;
[ "com.afrigis.services", "java.nio", "org.apache.commons", "org.apache.http" ]
com.afrigis.services; java.nio; org.apache.commons; org.apache.http;
2,388,249
public Pool getPool() { return pool; }
Pool function() { return pool; }
/** * Get the pool. * @return the pool */
Get the pool
getPool
{ "repo_name": "ironjacamar/ironjacamar", "path": "core/impl/src/main/java/org/jboss/jca/core/connectionmanager/AbstractConnectionManager.java", "license": "lgpl-2.1", "size": 30747 }
[ "org.jboss.jca.core.connectionmanager.pool.api.Pool" ]
import org.jboss.jca.core.connectionmanager.pool.api.Pool;
import org.jboss.jca.core.connectionmanager.pool.api.*;
[ "org.jboss.jca" ]
org.jboss.jca;
2,427,900
@ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable<SBAuthorizationRuleInner> listAuthorizationRules( String resourceGroupName, String namespaceName, String alias);
@ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable<SBAuthorizationRuleInner> listAuthorizationRules( String resourceGroupName, String namespaceName, String alias);
/** * Gets the authorization rules for a namespace. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name. * @param alias The Disaster Recovery configuration name. * @throws IllegalArgumentException thrown if parame...
Gets the authorization rules for a namespace
listAuthorizationRules
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-servicebus/src/main/java/com/azure/resourcemanager/servicebus/fluent/DisasterRecoveryConfigsClient.java", "license": "mit", "size": 35020 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedIterable", "com.azure.resourcemanager.servicebus.fluent.models.SBAuthorizationRuleInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.resourcemanager.servicebus.fluent.models.SBAuthorizationRuleInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.servicebus.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,117,535
public List<SQLColumn> getSqlInputs() { return this.sqlInputs; }
List<SQLColumn> function() { return this.sqlInputs; }
/** * Get the SQL input parameters. * * @return The SQL input parameters. */
Get the SQL input parameters
getSqlInputs
{ "repo_name": "Koekiebox-PTY-LTD/Fluid", "path": "fluid-api/src/main/java/com/fluidbpm/program/api/vo/sqlutil/sqlnative/NativeSQLQuery.java", "license": "gpl-3.0", "size": 7162 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,181,080
public AbstractObjectWriter getWriterForFile(File file) { return writerForFile(file); }
AbstractObjectWriter function(File file) { return writerForFile(file); }
/** * Returns the writer for the specified file. * * @param file the file to determine a reader for * @return the writer, null if none found */
Returns the writer for the specified file
getWriterForFile
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-core/src/main/java/adams/gui/chooser/ObjectFileChooser.java", "license": "gpl-3.0", "size": 10733 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
347,906
@ServiceMethod(returns = ReturnType.SINGLE) public PollerFlux<PollResult<Void>, Void> beginDeleteAsync(String resourceGroupName, String diskEncryptionSetName) { Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, diskEncryptionSetName); return this .cli...
@ServiceMethod(returns = ReturnType.SINGLE) PollerFlux<PollResult<Void>, Void> function(String resourceGroupName, String diskEncryptionSetName) { Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, diskEncryptionSetName); return this .client .<Void, Void>getLroResult(mono, this.client.get...
/** * Deletes a disk encryption set. * * @param resourceGroupName The name of the resource group. * @param diskEncryptionSetName The name of the disk encryption set that is being created. The name can't be changed * after the disk encryption set is created. Supported characters for the name...
Deletes a disk encryption set
beginDeleteAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/DiskEncryptionSetsClientImpl.java", "license": "mit", "size": 81126 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.management.polling.PollResult", "com.azure.core.util.Context", "com.azure.core.util.polling.PollerFlux", "java.nio.ByteBuffer" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.PollerFlux; import java.nio.ByteBuffer;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.management.polling.*; import com.azure.core.util.*; import com.azure.core.util.polling.*; import java.nio.*;
[ "com.azure.core", "java.nio" ]
com.azure.core; java.nio;
2,747,625
private Object getValueFromBase(IDBStoreAccessor accessor, CDOID id, int branchID, int index) { IStoreChunkReader chunkReader = createBaseChunkReader(accessor, id, branchID); chunkReader.addSimpleChunk(index); List<Chunk> chunks = chunkReader.executeRead(); return chunks.get(0).get(0); }
Object function(IDBStoreAccessor accessor, CDOID id, int branchID, int index) { IStoreChunkReader chunkReader = createBaseChunkReader(accessor, id, branchID); chunkReader.addSimpleChunk(index); List<Chunk> chunks = chunkReader.executeRead(); return chunks.get(0).get(0); }
/** * Read a single value (at a given index) from the base revision * * @param accessor * the DBStoreAccessor * @param id * the ID of the revision * @param branchID * the ID of the current (child) branch * @param index * the index to read the value from ...
Read a single value (at a given index) from the base revision
getValueFromBase
{ "repo_name": "IHTSDO/snow-owl", "path": "dependencies/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/horizontal/BranchingListTableMappingWithRanges.java", "license": "apache-2.0", "size": 48206 }
[ "java.util.List", "org.eclipse.emf.cdo.server.IStoreChunkReader", "org.eclipse.emf.cdo.server.db.IDBStoreAccessor" ]
import java.util.List; import org.eclipse.emf.cdo.server.IStoreChunkReader; import org.eclipse.emf.cdo.server.db.IDBStoreAccessor;
import java.util.*; import org.eclipse.emf.cdo.server.*; import org.eclipse.emf.cdo.server.db.*;
[ "java.util", "org.eclipse.emf" ]
java.util; org.eclipse.emf;
2,859,161
ArgumentTokenizer argsTokenizer = new ArgumentTokenizer(PREFIX_EMAIL, PREFIX_PASSWORD); argsTokenizer.tokenize(args); try { return new SetCommand( argsTokenizer.getValue(PREFIX_EMAIL), argsTokenizer.getValue(PREFIX_PASSWORD) ...
ArgumentTokenizer argsTokenizer = new ArgumentTokenizer(PREFIX_EMAIL, PREFIX_PASSWORD); argsTokenizer.tokenize(args); try { return new SetCommand( argsTokenizer.getValue(PREFIX_EMAIL), argsTokenizer.getValue(PREFIX_PASSWORD) ); } catch (NoSuchElementException nsee) { return new IncorrectCommand(String.format(MESSAGE_IN...
/** * Parses the given {@code String} of arguments in the context of the AddCommand * and returns an AddCommand object for execution. */
Parses the given String of arguments in the context of the AddCommand and returns an AddCommand object for execution
parse
{ "repo_name": "CS2103JAN2017-F11-B1/main", "path": "src/main/java/seedu/jobs/logic/parser/SetCommandParser.java", "license": "mit", "size": 1344 }
[ "java.util.NoSuchElementException" ]
import java.util.NoSuchElementException;
import java.util.*;
[ "java.util" ]
java.util;
2,263,440
public boolean write(long position, byte[] data) throws IOException { if (position == this.lastWritePosition) { int bufferPosition = (int) (this.lastWritePosition - this.bufferStartPosition); if (bufferPosition + data.length <= this.buffer.length) { System.arraycopy(data, 0, this.buffer, bufferPosition, ...
boolean function(long position, byte[] data) throws IOException { if (position == this.lastWritePosition) { int bufferPosition = (int) (this.lastWritePosition - this.bufferStartPosition); if (bufferPosition + data.length <= this.buffer.length) { System.arraycopy(data, 0, this.buffer, bufferPosition, data.length); this....
/** * Writes the given bytes to the given file position. * * @return true iff any attempt was made to interrupt the thread using {@link Thread#interrupt()}. The write * succeeds regardless of the return value. * @throws IOException if unable to perform the write */
Writes the given bytes to the given file position
write
{ "repo_name": "elucash/eclipse-oxygen", "path": "org.eclipse.jdt.core/src/org/eclipse/jdt/internal/core/nd/db/ChunkWriter.java", "license": "epl-1.0", "size": 5626 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,527,200
public void addQueueToThread(String storageQueueName, String destination) throws AndesException { getStorageQueueNameToDestinationMap().put(storageQueueName, destination); messageFlusher.prepareForDelivery(destination); }
void function(String storageQueueName, String destination) throws AndesException { getStorageQueueNameToDestinationMap().put(storageQueueName, destination); messageFlusher.prepareForDelivery(destination); }
/** * Add a queue to queue list of this SlotDeliveryWorkerThread * * @param storageQueueName queue name of the newly added queue */
Add a queue to queue list of this SlotDeliveryWorkerThread
addQueueToThread
{ "repo_name": "ThilankaBowala/andes", "path": "modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/slot/SlotDeliveryWorker.java", "license": "apache-2.0", "size": 23509 }
[ "org.wso2.andes.kernel.AndesException" ]
import org.wso2.andes.kernel.AndesException;
import org.wso2.andes.kernel.*;
[ "org.wso2.andes" ]
org.wso2.andes;
1,969,162
static CoberturaBuildAction getPreviousResult(Run<?, ?> start) { Run<?, ?> b = start; while (true) { b = BuildUtils.getPreviousNotFailedCompletedBuild(b); if (b == null) { return null; } assert b.getResult() != Result.FAILURE : "We...
static CoberturaBuildAction getPreviousResult(Run<?, ?> start) { Run<?, ?> b = start; while (true) { b = BuildUtils.getPreviousNotFailedCompletedBuild(b); if (b == null) { return null; } assert b.getResult() != Result.FAILURE : STR; CoberturaBuildAction r = b.getAction(CoberturaBuildAction.class); if (r != null && r.in...
/** * Gets the previous {@link CoberturaBuildAction} of the given build. */
Gets the previous <code>CoberturaBuildAction</code> of the given build
getPreviousResult
{ "repo_name": "jenkinsci/cobertura-plugin", "path": "src/main/java/hudson/plugins/cobertura/CoberturaBuildAction.java", "license": "mit", "size": 10771 }
[ "hudson.model.Result", "hudson.model.Run" ]
import hudson.model.Result; import hudson.model.Run;
import hudson.model.*;
[ "hudson.model" ]
hudson.model;
2,613,365
public void setDialogFactory(@NonNull MediaRouteDialogFactory factory) { if (factory == null) { throw new IllegalArgumentException("factory must not be null"); } if (mDialogFactory != factory) { mDialogFactory = factory; if (mButton != null) { mButton.setDialogFactory(factory);...
void function(@NonNull MediaRouteDialogFactory factory) { if (factory == null) { throw new IllegalArgumentException(STR); } if (mDialogFactory != factory) { mDialogFactory = factory; if (mButton != null) { mButton.setDialogFactory(factory); } } }
/** * Sets the media route dialog factory to use when showing the route chooser * or controller dialog. * * @param factory The dialog factory, must not be null. */
Sets the media route dialog factory to use when showing the route chooser or controller dialog
setDialogFactory
{ "repo_name": "commonsguy/cwac-mediarouter", "path": "mediarouter/src/com/commonsware/cwac/mediarouter/app/MediaRouteActionProvider.java", "license": "apache-2.0", "size": 11290 }
[ "android.support.annotation.NonNull" ]
import android.support.annotation.NonNull;
import android.support.annotation.*;
[ "android.support" ]
android.support;
1,794,734
private IgniteCache<Integer, Person> createCache(String cacheName) { CacheConfiguration<Integer, Person> cacheConfiguration = new CacheConfiguration<Integer, Person>(cacheName) .setIndexedTypes(Integer.class, Person.class); return grid.createCache(cacheConfiguration); }
IgniteCache<Integer, Person> function(String cacheName) { CacheConfiguration<Integer, Person> cacheConfiguration = new CacheConfiguration<Integer, Person>(cacheName) .setIndexedTypes(Integer.class, Person.class); return grid.createCache(cacheConfiguration); }
/** * Creates a test cache with the given name. */
Creates a test cache with the given name
createCache
{ "repo_name": "ascherbakoff/ignite", "path": "modules/indexing/src/test/java/org/apache/ignite/internal/metric/AbstractIndexPageMetricsTest.java", "license": "apache-2.0", "size": 6519 }
[ "org.apache.ignite.IgniteCache", "org.apache.ignite.client.Person", "org.apache.ignite.configuration.CacheConfiguration" ]
import org.apache.ignite.IgniteCache; import org.apache.ignite.client.Person; import org.apache.ignite.configuration.CacheConfiguration;
import org.apache.ignite.*; import org.apache.ignite.client.*; import org.apache.ignite.configuration.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,072,598
private static int sumEqNe(double value, double[] bv, BinaryOperator bOp) throws DMLRuntimeException { int ix = Arrays.binarySearch(bv, value); int cnt = 0; if( ix >= 0 ){ //match, scan to next val while( ix > 0 && value==bv[ix-1]) --ix; while( ix<bv.length && value==bv[ix]) { ix++; cnt++; ...
static int function(double value, double[] bv, BinaryOperator bOp) throws DMLRuntimeException { int ix = Arrays.binarySearch(bv, value); int cnt = 0; if( ix >= 0 ){ while( ix > 0 && value==bv[ix-1]) --ix; while( ix<bv.length && value==bv[ix]) { ix++; cnt++; } } if (bOp.fn instanceof NotEquals) cnt = bv.length - cnt; re...
/** * Calculates the sum of number for Equal and NotEqual operators * * @param value * @param bv * @param bOp * @throws DMLRuntimeException */
Calculates the sum of number for Equal and NotEqual operators
sumEqNe
{ "repo_name": "dusenberrymw/systemml_old", "path": "system-ml/src/main/java/com/ibm/bi/dml/runtime/matrix/data/LibMatrixOuterAgg.java", "license": "apache-2.0", "size": 13760 }
[ "com.ibm.bi.dml.runtime.DMLRuntimeException", "com.ibm.bi.dml.runtime.functionobjects.NotEquals", "com.ibm.bi.dml.runtime.matrix.operators.BinaryOperator", "java.util.Arrays" ]
import com.ibm.bi.dml.runtime.DMLRuntimeException; import com.ibm.bi.dml.runtime.functionobjects.NotEquals; import com.ibm.bi.dml.runtime.matrix.operators.BinaryOperator; import java.util.Arrays;
import com.ibm.bi.dml.runtime.*; import com.ibm.bi.dml.runtime.functionobjects.*; import com.ibm.bi.dml.runtime.matrix.operators.*; import java.util.*;
[ "com.ibm.bi", "java.util" ]
com.ibm.bi; java.util;
1,304,562
void refresh(JobTreeElement refresh) { refreshes.add(refresh); }
void refresh(JobTreeElement refresh) { refreshes.add(refresh); }
/** * Add a refresh update * * @param refresh */
Add a refresh update
refresh
{ "repo_name": "CohesionForce/eclipse4-parts", "path": "org.eclipse.e4.ui.part/src/org/eclipse/e4/ui/internal/progress/ProgressViewUpdater.java", "license": "epl-1.0", "size": 10706 }
[ "org.eclipse.e4.ui.internal.progress.JobTreeElement" ]
import org.eclipse.e4.ui.internal.progress.JobTreeElement;
import org.eclipse.e4.ui.internal.progress.*;
[ "org.eclipse.e4" ]
org.eclipse.e4;
768,242
private int _nextRevIvl(Card card, int ease) { try { long delay = _daysLate(card); int interval = 0; JSONObject conf = _revConf(card); double fct = card.getFactor() / 1000.0; int ivl2 = _constrainedIvl((int)((card.getIvl() + delay/4) * 1.2), c...
int function(Card card, int ease) { try { long delay = _daysLate(card); int interval = 0; JSONObject conf = _revConf(card); double fct = card.getFactor() / 1000.0; int ivl2 = _constrainedIvl((int)((card.getIvl() + delay/4) * 1.2), conf, card.getIvl()); int ivl3 = _constrainedIvl((int)((card.getIvl() + delay/2) * fct), ...
/** * Ideal next interval for CARD, given EASE. */
Ideal next interval for CARD, given EASE
_nextRevIvl
{ "repo_name": "masoud2v/Anki-Android", "path": "src/com/ichi2/libanki/Sched.java", "license": "gpl-3.0", "size": 91077 }
[ "org.json.JSONException", "org.json.JSONObject" ]
import org.json.JSONException; import org.json.JSONObject;
import org.json.*;
[ "org.json" ]
org.json;
1,138,497
Set<MetaConstraint<?>> getConstraints();
Set<MetaConstraint<?>> getConstraints();
/** * Returns a set containing the constraints specified for this constrained * element. * * @return A set with this constrained element's constraints. May be empty, * but never <code>null</code>. */
Returns a set containing the constraints specified for this constrained element
getConstraints
{ "repo_name": "gastaldi/hibernate-validator", "path": "hibernate-validator/src/main/java/org/hibernate/validator/metadata/raw/ConstrainedElement.java", "license": "apache-2.0", "size": 3598 }
[ "java.util.Set", "org.hibernate.validator.metadata.core.MetaConstraint" ]
import java.util.Set; import org.hibernate.validator.metadata.core.MetaConstraint;
import java.util.*; import org.hibernate.validator.metadata.core.*;
[ "java.util", "org.hibernate.validator" ]
java.util; org.hibernate.validator;
2,903,247
List<MqMessage> getAllMessages(String queueName) throws MqException;
List<MqMessage> getAllMessages(String queueName) throws MqException;
/** * Retrieves all queue messages. * @param queueName * @return */
Retrieves all queue messages
getAllMessages
{ "repo_name": "nebulent/netflexity-qflex-commons", "path": "netflexity-commons-mq/src/main/java/org/netflexity/api/mq/MqQueueBrowser.java", "license": "gpl-3.0", "size": 2905 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,299,124
// TODO: (CDAP-5651) change usages of above three deprecated methods to use this void addOutput(Output output);
void addOutput(Output output);
/** * Updates the output configuration of this MapReduce job to use the specified {@link Output}. * @param output the output to be used */
Updates the output configuration of this MapReduce job to use the specified <code>Output</code>
addOutput
{ "repo_name": "caskdata/cdap", "path": "cdap-api/src/main/java/co/cask/cdap/api/mapreduce/MapReduceContext.java", "license": "apache-2.0", "size": 8029 }
[ "co.cask.cdap.api.data.batch.Output" ]
import co.cask.cdap.api.data.batch.Output;
import co.cask.cdap.api.data.batch.*;
[ "co.cask.cdap" ]
co.cask.cdap;
577,071
@Test(groups = { "unit" }, timeOut = TIMEOUT) public void shouldRetryWithPartitionIsMigratingException() { RxDocumentServiceRequest request = RxDocumentServiceRequest.create( mockDiagnosticsClientContext(), OperationType.Read, ResourceType.Document); GoneAndRe...
@Test(groups = { "unit" }, timeOut = TIMEOUT) void function() { RxDocumentServiceRequest request = RxDocumentServiceRequest.create( mockDiagnosticsClientContext(), OperationType.Read, ResourceType.Document); GoneAndRetryWithRetryPolicy goneAndRetryWithRetryPolicy = new GoneAndRetryWithRetryPolicy(request, 30); Mono<IRe...
/** * Retry with PartitionIsMigratingException */
Retry with PartitionIsMigratingException
shouldRetryWithPartitionIsMigratingException
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/cosmos/azure-cosmos/src/test/java/com/azure/cosmos/implementation/directconnectivity/GoneAndRetryWithRetryPolicyTest.java", "license": "mit", "size": 14056 }
[ "com.azure.cosmos.implementation.IRetryPolicy", "com.azure.cosmos.implementation.OperationType", "com.azure.cosmos.implementation.PartitionIsMigratingException", "com.azure.cosmos.implementation.ResourceType", "com.azure.cosmos.implementation.RxDocumentServiceRequest", "com.azure.cosmos.implementation.Tes...
import com.azure.cosmos.implementation.IRetryPolicy; import com.azure.cosmos.implementation.OperationType; import com.azure.cosmos.implementation.PartitionIsMigratingException; import com.azure.cosmos.implementation.ResourceType; import com.azure.cosmos.implementation.RxDocumentServiceRequest; import com.azure.cosmos.i...
import com.azure.cosmos.implementation.*; import org.assertj.core.api.*; import org.testng.annotations.*;
[ "com.azure.cosmos", "org.assertj.core", "org.testng.annotations" ]
com.azure.cosmos; org.assertj.core; org.testng.annotations;
2,337,670
protected void close(Connection connection, String task) { try { if (connection != null && !connection.isClosed()) { connection.close(); } } catch (SQLException e) { logger.error("Failed to close connection after " + task, e); } }
void function(Connection connection, String task) { try { if (connection != null && !connection.isClosed()) { connection.close(); } } catch (SQLException e) { logger.error(STR + task, e); } }
/** * Closes the provided connection. on failure log the error; * * @param connection Connection * @param task task that was done before closing */
Closes the provided connection. on failure log the error
close
{ "repo_name": "sdkottegoda/andes", "path": "modules/andes-core/broker/src/main/java/org/wso2/andes/store/rdbms/RDBMSAndesContextStoreImpl.java", "license": "apache-2.0", "size": 113075 }
[ "java.sql.Connection", "java.sql.SQLException" ]
import java.sql.Connection; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,278,081
public Item getItemDropped(IBlockState state, Random rand, int fortune) { return Item.getItemFromBlock(Blocks.FURNACE); }
Item function(IBlockState state, Random rand, int fortune) { return Item.getItemFromBlock(Blocks.FURNACE); }
/** * Get the Item that this Block should drop when harvested. */
Get the Item that this Block should drop when harvested
getItemDropped
{ "repo_name": "InverMN/MinecraftForgeReference", "path": "MinecraftBlocks/BlockFurnace.java", "license": "unlicense", "size": 11513 }
[ "java.util.Random", "net.minecraft.block.state.IBlockState", "net.minecraft.init.Blocks", "net.minecraft.item.Item" ]
import java.util.Random; import net.minecraft.block.state.IBlockState; import net.minecraft.init.Blocks; import net.minecraft.item.Item;
import java.util.*; import net.minecraft.block.state.*; import net.minecraft.init.*; import net.minecraft.item.*;
[ "java.util", "net.minecraft.block", "net.minecraft.init", "net.minecraft.item" ]
java.util; net.minecraft.block; net.minecraft.init; net.minecraft.item;
2,099,300
public void loadConfig(Document configurationDocument) throws Exception { parseConfigDocument(configurationDocument); }
void function(Document configurationDocument) throws Exception { parseConfigDocument(configurationDocument); }
/** * Loads the SPARQL queries from the given configuration Document. * * @param configurationDocument * XML Document holding a Mutu configuration. * @throws Exception * if Mutu config can not be loaded or parsed properly. */
Loads the SPARQL queries from the given configuration Document
loadConfig
{ "repo_name": "NatLibFi/mutu", "path": "src/fi/nationallibrary/mutu/Mutu.java", "license": "apache-2.0", "size": 36627 }
[ "org.w3c.dom.Document" ]
import org.w3c.dom.Document;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
419,607
public void testLoginContextStringSubjectCallbackHandler() { // The exceptions to be thrown are LoginExceptions and not NPEs // Must not accept null as Subject, CallbackHandler, name try { new LoginContext(CONFIG_NAME, (Subject) null, new TestCallbackHandler(...
void function() { try { new LoginContext(CONFIG_NAME, (Subject) null, new TestCallbackHandler()); fail(STR); } catch (LoginException _) { } try { new LoginContext(CONFIG_NAME, new Subject(), null); fail(STR); } catch (LoginException _) { } try { new LoginContext(null, new Subject(), new TestCallbackHandler()); fail(STR...
/** * Tests LoginContext(String, Subject, CallbackHandler) */
Tests LoginContext(String, Subject, CallbackHandler)
testLoginContextStringSubjectCallbackHandler
{ "repo_name": "rex-xxx/mt6572_x201", "path": "external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/login/LoginContext1Test.java", "license": "gpl-2.0", "size": 75897 }
[ "javax.security.auth.Subject", "javax.security.auth.login.LoginContext", "javax.security.auth.login.LoginException" ]
import javax.security.auth.Subject; import javax.security.auth.login.LoginContext; import javax.security.auth.login.LoginException;
import javax.security.auth.*; import javax.security.auth.login.*;
[ "javax.security" ]
javax.security;
100,738
protected void firePropertySetChange() { if (propertySetEventListeners != null && !propertySetEventListeners.isEmpty()) { final Container.PropertySetChangeEvent event = new PropertySetChangeEvent( this); final Object[] listeners = propertySetEventL...
void function() { if (propertySetEventListeners != null && !propertySetEventListeners.isEmpty()) { final Container.PropertySetChangeEvent event = new PropertySetChangeEvent( this); final Object[] listeners = propertySetEventListeners.toArray(); for (int i = 0; i < listeners.length; i++) { ((Container.PropertySetChangeL...
/** * Fires the property set change event. */
Fires the property set change event
firePropertySetChange
{ "repo_name": "oalles/vaadin", "path": "server/src/com/vaadin/ui/AbstractSelect.java", "license": "apache-2.0", "size": 76884 }
[ "com.vaadin.data.Container" ]
import com.vaadin.data.Container;
import com.vaadin.data.*;
[ "com.vaadin.data" ]
com.vaadin.data;
2,059,917
List<MetadataExtractor> metadataExtractors(); /** * Selects, configures and returns a new instance of the {@link Segmenter} that was configured in the current instance of {@link ExtractionContextProvider}. * * @return {@link Segmenter} that was configured in the current instance of {@link ExtractionContex...
List<MetadataExtractor> metadataExtractors(); /** * Selects, configures and returns a new instance of the {@link Segmenter} that was configured in the current instance of {@link ExtractionContextProvider}. * * @return {@link Segmenter} that was configured in the current instance of {@link ExtractionContextProvider}
/** * Returns a list of metadata extractor classes that should be invoked during extraction. MetadataExtractor's usually read some metadata from a file. * * @return List of named exporters. */
Returns a list of metadata extractor classes that should be invoked during extraction. MetadataExtractor's usually read some metadata from a file
metadataExtractors
{ "repo_name": "dbisUnibas/cineast", "path": "cineast-core/src/main/java/org/vitrivr/cineast/core/extraction/ExtractionContextProvider.java", "license": "mit", "size": 5409 }
[ "java.util.List", "org.vitrivr.cineast.core.extraction.metadata.MetadataExtractor", "org.vitrivr.cineast.core.extraction.segmenter.general.Segmenter" ]
import java.util.List; import org.vitrivr.cineast.core.extraction.metadata.MetadataExtractor; import org.vitrivr.cineast.core.extraction.segmenter.general.Segmenter;
import java.util.*; import org.vitrivr.cineast.core.extraction.metadata.*; import org.vitrivr.cineast.core.extraction.segmenter.general.*;
[ "java.util", "org.vitrivr.cineast" ]
java.util; org.vitrivr.cineast;
331,032
public static Ticker adaptTicker(BitbayTicker bitbayTicker, CurrencyPair currencyPair) { BigDecimal ask = bitbayTicker.getAsk(); BigDecimal bid = bitbayTicker.getBid(); BigDecimal high = bitbayTicker.getMax(); BigDecimal low = bitbayTicker.getMin(); BigDecimal volume = bitbayTicker.getVolume(); ...
static Ticker function(BitbayTicker bitbayTicker, CurrencyPair currencyPair) { BigDecimal ask = bitbayTicker.getAsk(); BigDecimal bid = bitbayTicker.getBid(); BigDecimal high = bitbayTicker.getMax(); BigDecimal low = bitbayTicker.getMin(); BigDecimal volume = bitbayTicker.getVolume(); BigDecimal last = bitbayTicker.get...
/** * Adapts a BitbayTicker to a Ticker Object * * @param bitbayTicker The exchange specific ticker * @param currencyPair (e.g. BTC/USD) * @return The ticker */
Adapts a BitbayTicker to a Ticker Object
adaptTicker
{ "repo_name": "mmithril/XChange", "path": "xchange-bitbay/src/main/java/org/knowm/xchange/bitbay/BitbayAdapters.java", "license": "mit", "size": 2958 }
[ "java.math.BigDecimal", "org.knowm.xchange.bitbay.dto.marketdata.BitbayTicker", "org.knowm.xchange.currency.CurrencyPair", "org.knowm.xchange.dto.marketdata.Ticker" ]
import java.math.BigDecimal; import org.knowm.xchange.bitbay.dto.marketdata.BitbayTicker; import org.knowm.xchange.currency.CurrencyPair; import org.knowm.xchange.dto.marketdata.Ticker;
import java.math.*; import org.knowm.xchange.bitbay.dto.marketdata.*; import org.knowm.xchange.currency.*; import org.knowm.xchange.dto.marketdata.*;
[ "java.math", "org.knowm.xchange" ]
java.math; org.knowm.xchange;
378,894
static byte[] compile(Class<?> iface, String name, String source, CompilerSettings settings, Printer debugStream) { if (source.length() > MAXIMUM_SOURCE_LENGTH) { throw new IllegalArgumentException("Scripts may be no longer than " + MAXIMUM_SOURCE_LENGTH + " characters. The pass...
static byte[] compile(Class<?> iface, String name, String source, CompilerSettings settings, Printer debugStream) { if (source.length() > MAXIMUM_SOURCE_LENGTH) { throw new IllegalArgumentException(STR + MAXIMUM_SOURCE_LENGTH + STR + source.length() + STR + STR); } Definition definition = Definition.BUILTINS; ScriptInt...
/** * Runs the two-pass compiler to generate a Painless script. (Used by the debugger.) * @param iface Interface the compiled script should implement * @param source The source code for the script. * @param settings The CompilerSettings to be used during the compilation. * @return The bytes fo...
Runs the two-pass compiler to generate a Painless script. (Used by the debugger.)
compile
{ "repo_name": "strapdata/elassandra5-rc", "path": "modules/lang-painless/src/main/java/org/elasticsearch/painless/Compiler.java", "license": "apache-2.0", "size": 7087 }
[ "org.elasticsearch.painless.antlr.Walker", "org.elasticsearch.painless.node.SSource", "org.objectweb.asm.util.Printer" ]
import org.elasticsearch.painless.antlr.Walker; import org.elasticsearch.painless.node.SSource; import org.objectweb.asm.util.Printer;
import org.elasticsearch.painless.antlr.*; import org.elasticsearch.painless.node.*; import org.objectweb.asm.util.*;
[ "org.elasticsearch.painless", "org.objectweb.asm" ]
org.elasticsearch.painless; org.objectweb.asm;
2,081,982
public static ImmutableZonedDateTimeDoubleTimeSeries of(final long[] instants, final double[] values, final ZoneId zone) { validate(instants, values); Objects.requireNonNull(zone); final long[] timesArray = instants.clone(); final double[] valuesArray = values.clone(); return new ImmutableZonedDat...
static ImmutableZonedDateTimeDoubleTimeSeries function(final long[] instants, final double[] values, final ZoneId zone) { validate(instants, values); Objects.requireNonNull(zone); final long[] timesArray = instants.clone(); final double[] valuesArray = values.clone(); return new ImmutableZonedDateTimeDoubleTimeSeries(t...
/** * Obtains a time-series from matching arrays of instants and values. * * @param instants the instant array, not null * @param values the value array, not null * @param zone the time-zone, not null * @return the time-series, not null * @throws IllegalArgumentException if the arrays are of dif...
Obtains a time-series from matching arrays of instants and values
of
{ "repo_name": "McLeodMoores/starling", "path": "projects/time-series/src/main/java/com/opengamma/timeseries/precise/zdt/ImmutableZonedDateTimeDoubleTimeSeries.java", "license": "apache-2.0", "size": 17703 }
[ "java.util.Objects", "org.threeten.bp.ZoneId" ]
import java.util.Objects; import org.threeten.bp.ZoneId;
import java.util.*; import org.threeten.bp.*;
[ "java.util", "org.threeten.bp" ]
java.util; org.threeten.bp;
1,604,668
private boolean copyFolder(File oldFile, File newFile) { boolean res = true; if (oldFile.isDirectory()) { // if directory not exists, create it if (!newFile.exists()) { newFile.mkdir(); // System.out.println("Directory copied from " + src + " to " + dest); } // list all the dire...
boolean function(File oldFile, File newFile) { boolean res = true; if (oldFile.isDirectory()) { if (!newFile.exists()) { newFile.mkdir(); } String[] files = oldFile.list(); for (String file : files) { File srcFile = new File(oldFile, file); File destFile = new File(newFile, file); res &= copyFolder(srcFile, destFile); ...
/** * Recursively copy a folder. * @param oldFile Folder to copy. * @param newFile The dir to be created. * @return Was copy successful? */
Recursively copy a folder
copyFolder
{ "repo_name": "blitzfeng/IceMFi", "path": "FileManager/src/com/og/filemanager/util/CopyHelper.java", "license": "apache-2.0", "size": 6945 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,439,167
this.searcher = searcher; List<Node> rootNodes = newArrayList(); for (Project project : appContext.getProjects()) { rootNodes.add(nodeFactory.newContainerNode(project, settingsProvider.getSettings())); } view.setStructure(rootNodes); view.showDialog(); }
this.searcher = searcher; List<Node> rootNodes = newArrayList(); for (Project project : appContext.getProjects()) { rootNodes.add(nodeFactory.newContainerNode(project, settingsProvider.getSettings())); } view.setStructure(rootNodes); view.showDialog(); }
/** * Show tree view with all root nodes of the workspace. * * @param searcher delegate from the root widget of the full-text-search mechanism */
Show tree view with all root nodes of the workspace
show
{ "repo_name": "akervern/che", "path": "ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/search/selectpath/SelectPathPresenter.java", "license": "epl-1.0", "size": 2311 }
[ "com.google.common.collect.Lists", "java.util.List", "org.eclipse.che.ide.api.resources.Project", "org.eclipse.che.ide.ui.smartTree.data.Node" ]
import com.google.common.collect.Lists; import java.util.List; import org.eclipse.che.ide.api.resources.Project; import org.eclipse.che.ide.ui.smartTree.data.Node;
import com.google.common.collect.*; import java.util.*; import org.eclipse.che.ide.api.resources.*; import org.eclipse.che.ide.ui.*;
[ "com.google.common", "java.util", "org.eclipse.che" ]
com.google.common; java.util; org.eclipse.che;
914,004
@Override public void removeBufferListener(Listener<ReusableByteBuffer> listener) { mByteBufferAssembler.removeBufferListener(listener); }
void function(Listener<ReusableByteBuffer> listener) { mByteBufferAssembler.removeBufferListener(listener); }
/** * Implements the IByteBufferProvider interface - delegates to the byte buffer assembler */
Implements the IByteBufferProvider interface - delegates to the byte buffer assembler
removeBufferListener
{ "repo_name": "ImagoTrigger/sdrtrunk", "path": "src/main/java/io/github/dsheirer/module/decode/p25/phase1/P25P1Decoder.java", "license": "gpl-3.0", "size": 7031 }
[ "io.github.dsheirer.sample.Listener", "io.github.dsheirer.sample.buffer.ReusableByteBuffer" ]
import io.github.dsheirer.sample.Listener; import io.github.dsheirer.sample.buffer.ReusableByteBuffer;
import io.github.dsheirer.sample.*; import io.github.dsheirer.sample.buffer.*;
[ "io.github.dsheirer" ]
io.github.dsheirer;
336,412
public boolean register(SerializationSurrogate surrogate, short typeHandle,short subHandle, String cacheContext, boolean portable) throws CacheArgumentException;
boolean function(SerializationSurrogate surrogate, short typeHandle,short subHandle, String cacheContext, boolean portable) throws CacheArgumentException;
/** * Registers the specified <tt>SerializationSurrogate<tt/> with the given type handle. * Gives more control over the way type handles are generated by the system and allows the * user to supply *HARD* handles for better interoperability among applications. * * @param surrogate specified surr...
Registers the specified SerializationSurrogate with the given type handle. Gives more control over the way type handles are generated by the system and allows the user to supply *HARD* handles for better interoperability among applications
register
{ "repo_name": "joseananio/TayzGrid", "path": "src/tgserialization/src/com/alachisoft/tayzgrid/serialization/core/io/TypeSurrogateSelector.java", "license": "apache-2.0", "size": 6037 }
[ "com.alachisoft.tayzgrid.serialization.core.io.surrogates.CacheArgumentException", "com.alachisoft.tayzgrid.serialization.core.io.surrogates.SerializationSurrogate" ]
import com.alachisoft.tayzgrid.serialization.core.io.surrogates.CacheArgumentException; import com.alachisoft.tayzgrid.serialization.core.io.surrogates.SerializationSurrogate;
import com.alachisoft.tayzgrid.serialization.core.io.surrogates.*;
[ "com.alachisoft.tayzgrid" ]
com.alachisoft.tayzgrid;
906,885
public boolean addElements(List elements) { int nElements= elements.size(); if (nElements > 0) { // filter duplicated ArrayList elementsToAdd= new ArrayList(nElements); for (int i= 0; i < nElements; i++) { Object elem= elements.get(i); if (!fElements.contains(elem)) { elementsToAdd.add(el...
boolean function(List elements) { int nElements= elements.size(); if (nElements > 0) { ArrayList elementsToAdd= new ArrayList(nElements); for (int i= 0; i < nElements; i++) { Object elem= elements.get(i); if (!fElements.contains(elem)) { elementsToAdd.add(elem); } } if (!elementsToAdd.isEmpty()) { fElements.addAll(elem...
/** * Adds elements at the end of the tree list. */
Adds elements at the end of the tree list
addElements
{ "repo_name": "boniatillo-com/PhaserEditor", "path": "source/thirdparty/jsdt/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/wizards/dialogfields/TreeListDialogField.java", "license": "epl-1.0", "size": 23150 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,654,685
private synchronized void actualUnsetAudioInCall() { if(!prefs.getBoolean("isSavedAudioState", false) || !isSetAudioMode) { return; } Log.d(THIS_FILE, "Unset Audio In call"); int inCallStream = Compatibility.getInCallStream(); if(bluetoothWrapper != null) { //This fixes the BT activation but... ...
synchronized void function() { if(!prefs.getBoolean(STR, false) !isSetAudioMode) { return; } Log.d(THIS_FILE, STR); int inCallStream = Compatibility.getInCallStream(); if(bluetoothWrapper != null) { Log.d(THIS_FILE, STR); bluetoothWrapper.setBluetoothOn(false); } audioManager.setMicrophoneMute(false); if(doFocusAudio) ...
/** * Reset the audio mode */
Reset the audio mode
actualUnsetAudioInCall
{ "repo_name": "hongbinz/csipsimple", "path": "src/com/csipsimple/service/MediaManager.java", "license": "lgpl-3.0", "size": 27979 }
[ "com.csipsimple.utils.Compatibility", "com.csipsimple.utils.Log" ]
import com.csipsimple.utils.Compatibility; import com.csipsimple.utils.Log;
import com.csipsimple.utils.*;
[ "com.csipsimple.utils" ]
com.csipsimple.utils;
24,982
public static ims.RefMan.vo.TltSummaryNoteLiteVo insert(DomainObjectMap map, ims.RefMan.vo.TltSummaryNoteLiteVo valueObject, ims.RefMan.domain.objects.TltSummaryNote domainObject) { if (null == domainObject) { return valueObject; } if (null == map) { map = new DomainObjectMap(); } valu...
static ims.RefMan.vo.TltSummaryNoteLiteVo function(DomainObjectMap map, ims.RefMan.vo.TltSummaryNoteLiteVo valueObject, ims.RefMan.domain.objects.TltSummaryNote domainObject) { if (null == domainObject) { return valueObject; } if (null == map) { map = new DomainObjectMap(); } valueObject.setID_TltSummaryNote(domainObje...
/** * Update the ValueObject with the Domain Object. * @param map DomainObjectMap of DomainObjects to already created ValueObjects. * @param valueObject to be updated * @param domainObject ims.RefMan.domain.objects.TltSummaryNote */
Update the ValueObject with the Domain Object
insert
{ "repo_name": "open-health-hub/openMAXIMS", "path": "openmaxims_workspace/ValueObjects/src/ims/RefMan/vo/domain/TltSummaryNoteLiteVoAssembler.java", "license": "agpl-3.0", "size": 16113 }
[ "org.hibernate.proxy.HibernateProxy" ]
import org.hibernate.proxy.HibernateProxy;
import org.hibernate.proxy.*;
[ "org.hibernate.proxy" ]
org.hibernate.proxy;
966,195
protected void publishInternal(final RegisteredService service, final ApplicationEvent event) { if (event instanceof CasRegisteredServiceDeletedEvent) { handleCasRegisteredServiceDeletedEvent(service, event); return; } if (event instanceof CasRegisteredServiceSavedEv...
void function(final RegisteredService service, final ApplicationEvent event) { if (event instanceof CasRegisteredServiceDeletedEvent) { handleCasRegisteredServiceDeletedEvent(service, event); return; } if (event instanceof CasRegisteredServiceSavedEvent event instanceof CasRegisteredServiceLoadedEvent) { handleCasRegis...
/** * Publish internal. * * @param service the service * @param event the event */
Publish internal
publishInternal
{ "repo_name": "prigaux/cas", "path": "support/cas-server-support-service-registry-stream/src/main/java/org/apereo/cas/services/publisher/BaseCasRegisteredServiceStreamPublisher.java", "license": "apache-2.0", "size": 2568 }
[ "org.apereo.cas.services.RegisteredService", "org.apereo.cas.support.events.service.CasRegisteredServiceDeletedEvent", "org.apereo.cas.support.events.service.CasRegisteredServiceLoadedEvent", "org.apereo.cas.support.events.service.CasRegisteredServiceSavedEvent", "org.springframework.context.ApplicationEven...
import org.apereo.cas.services.RegisteredService; import org.apereo.cas.support.events.service.CasRegisteredServiceDeletedEvent; import org.apereo.cas.support.events.service.CasRegisteredServiceLoadedEvent; import org.apereo.cas.support.events.service.CasRegisteredServiceSavedEvent; import org.springframework.context.A...
import org.apereo.cas.services.*; import org.apereo.cas.support.events.service.*; import org.springframework.context.*;
[ "org.apereo.cas", "org.springframework.context" ]
org.apereo.cas; org.springframework.context;
2,581,458
@Override public void check(OsmPrimitive p) { errors.addAll(getErrorsForPrimitive(p, ValidatorPreference.PREF_OTHER.get())); }
void function(OsmPrimitive p) { errors.addAll(getErrorsForPrimitive(p, ValidatorPreference.PREF_OTHER.get())); }
/** * Visiting call for primitives. * * @param p The primitive to inspect. */
Visiting call for primitives
check
{ "repo_name": "CURocketry/Ground_Station_GUI", "path": "src/org/openstreetmap/josm/data/validation/tests/MapCSSTagChecker.java", "license": "gpl-3.0", "size": 19827 }
[ "org.openstreetmap.josm.data.osm.OsmPrimitive", "org.openstreetmap.josm.gui.preferences.validator.ValidatorPreference" ]
import org.openstreetmap.josm.data.osm.OsmPrimitive; import org.openstreetmap.josm.gui.preferences.validator.ValidatorPreference;
import org.openstreetmap.josm.data.osm.*; import org.openstreetmap.josm.gui.preferences.validator.*;
[ "org.openstreetmap.josm" ]
org.openstreetmap.josm;
31,933
private HighLowSequence getSequence(String sequenceName) { HighLowSequence result = null; // now lookup the sequence map for calling DB Map mapForDB = (Map) sequencesDBMap.get(getBrokerForClass() .serviceConnectionManager().getConnectionDescriptor().getJcdAlias()); ...
HighLowSequence function(String sequenceName) { HighLowSequence result = null; Map mapForDB = (Map) sequencesDBMap.get(getBrokerForClass() .serviceConnectionManager().getConnectionDescriptor().getJcdAlias()); if(mapForDB != null) { result = (HighLowSequence) mapForDB.get(sequenceName); } return result; }
/** * Returns last used sequence object or <code>null</code> if no sequence * was add for given sequence name. * * @param sequenceName Name of the sequence. * @return Sequence object or <code>null</code> */
Returns last used sequence object or <code>null</code> if no sequence was add for given sequence name
getSequence
{ "repo_name": "kuali/ojb-1.0.4", "path": "src/java/org/apache/ojb/broker/util/sequence/SequenceManagerHighLowImpl.java", "license": "apache-2.0", "size": 14403 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
323,634
protected ConfiguredTarget getConfiguredTarget(String label) throws NoSuchPackageException, NoSuchTargetException, LabelSyntaxException, InterruptedException { return getConfiguredTarget(label, targetConfig); }
ConfiguredTarget function(String label) throws NoSuchPackageException, NoSuchTargetException, LabelSyntaxException, InterruptedException { return getConfiguredTarget(label, targetConfig); }
/** * Returns the ConfiguredTarget for the specified label, configured for the * "build" (aka "target") configuration. */
Returns the ConfiguredTarget for the specified label, configured for the "build" (aka "target") configuration
getConfiguredTarget
{ "repo_name": "hhclam/bazel", "path": "src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java", "license": "apache-2.0", "size": 70580 }
[ "com.google.devtools.build.lib.analysis.ConfiguredTarget", "com.google.devtools.build.lib.cmdline.LabelSyntaxException", "com.google.devtools.build.lib.packages.NoSuchPackageException", "com.google.devtools.build.lib.packages.NoSuchTargetException" ]
import com.google.devtools.build.lib.analysis.ConfiguredTarget; import com.google.devtools.build.lib.cmdline.LabelSyntaxException; import com.google.devtools.build.lib.packages.NoSuchPackageException; import com.google.devtools.build.lib.packages.NoSuchTargetException;
import com.google.devtools.build.lib.analysis.*; import com.google.devtools.build.lib.cmdline.*; import com.google.devtools.build.lib.packages.*;
[ "com.google.devtools" ]
com.google.devtools;
14,819
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jSplitPane1 = new javax.swing.JSplitPane(); LeftPanel = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); Loca...
@SuppressWarnings(STR) void function() { jSplitPane1 = new javax.swing.JSplitPane(); LeftPanel = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); LocalPlayersSlider = new javax.swing.JSlider(); jSeparator1 = new javax.swing.JSeparator(); gameSliders1 = new deliquescence.panel.GameSliders(); doneButton = ne...
/** * This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. always regenerated by the Form Editor
initComponents
{ "repo_name": "Deliquescence/ChainReactionClone", "path": "src/deliquescence/network/NetworkSetupPanel.java", "license": "bsd-3-clause", "size": 8539 }
[ "java.awt.Dimension" ]
import java.awt.Dimension;
import java.awt.*;
[ "java.awt" ]
java.awt;
922,465
public static Mutator current() { return Scheduler.currentMutator(); }
static Mutator function() { return Scheduler.currentMutator(); }
/** * Get the currently executing mutator. * @return the currently executing mutator. */
Get the currently executing mutator
current
{ "repo_name": "CodeOffloading/JikesRVM-CCO", "path": "jikesrvm-3.1.3/MMTk/harness/src/org/mmtk/harness/Mutator.java", "license": "epl-1.0", "size": 13746 }
[ "org.mmtk.harness.scheduler.Scheduler" ]
import org.mmtk.harness.scheduler.Scheduler;
import org.mmtk.harness.scheduler.*;
[ "org.mmtk.harness" ]
org.mmtk.harness;
901,502
@Override protected void onDestroy() { super.onDestroy(); if (mPreview != null) { mPreview.release(); } } /** * Callback for the result from requesting permissions. This method * is invoked for every call on {@link #requestPermissions(String[], int)}. ...
void function() { super.onDestroy(); if (mPreview != null) { mPreview.release(); } } /** * Callback for the result from requesting permissions. This method * is invoked for every call on {@link #requestPermissions(String[], int)}. * <p> * <strong>Note:</strong> It is possible that the permissions request interaction * ...
/** * Releases the resources associated with the camera source, the associated detectors, and the * rest of the processing pipeline. */
Releases the resources associated with the camera source, the associated detectors, and the rest of the processing pipeline
onDestroy
{ "repo_name": "OlayinkaPeter/Toodoo", "path": "app/src/main/java/com/olayinkapeter/toodoo/toodooOptions/ToodooCamera.java", "license": "apache-2.0", "size": 16885 }
[ "android.content.pm.PackageManager" ]
import android.content.pm.PackageManager;
import android.content.pm.*;
[ "android.content" ]
android.content;
2,795,784
protected File createLocalFile(final File saveDir, final RemoteDevice rd, final ObjectIdentifier fileOid) { return new File(saveDir, "device-" + targetDeviceId + "-file-" + fileOid.getInstanceNumber()); }
File function(final File saveDir, final RemoteDevice rd, final ObjectIdentifier fileOid) { return new File(saveDir, STR + targetDeviceId + STR + fileOid.getInstanceNumber()); }
/** * Override this method to provide customized backup file names. * * @param saveDir * @param rd * @param fileOid * @return */
Override this method to provide customized backup file names
createLocalFile
{ "repo_name": "infiniteautomation/BACnet4J", "path": "src/main/java/com/serotonin/bacnet4j/util/BackupClient.java", "license": "gpl-3.0", "size": 13908 }
[ "com.serotonin.bacnet4j.RemoteDevice", "com.serotonin.bacnet4j.type.primitive.ObjectIdentifier", "java.io.File" ]
import com.serotonin.bacnet4j.RemoteDevice; import com.serotonin.bacnet4j.type.primitive.ObjectIdentifier; import java.io.File;
import com.serotonin.bacnet4j.*; import com.serotonin.bacnet4j.type.primitive.*; import java.io.*;
[ "com.serotonin.bacnet4j", "java.io" ]
com.serotonin.bacnet4j; java.io;
329,113
@Test void testJoinPlan2() { final String sql = "SELECT v1.deptno, v2.deptno\n" + "FROM dept v1 LEFT JOIN emp v2 ON v1.deptno = v2.deptno\n" + "WHERE v2.job LIKE 'PRESIDENT'"; final String expected = "SELECT \"DEPT\".\"DEPTNO\"," + " \"EMP\".\"DEPTNO\" AS \"DEPTNO0\"\n" + "FROM...
@Test void testJoinPlan2() { final String sql = STR + STR + STR; final String expected = STRDEPT\".\STR," + STREMP\".\"DEPTNO\STRDEPTNO0\"\n" + STRSCOTT\".\"DEPT\"\n" + STRSCOTT\".\"EMP\STR ON \"DEPT\".\STR = \"EMP\".\STR\nSTRWHERE \"EMP\".\"JOB\" LIKE 'PRESIDENT'STRSELECT DEPT.DEPTNO, EMP.DEPTNO AS DEPTNO0\nSTRFROM SC...
/** Test case for * <a href="https://issues.apache.org/jira/browse/CALCITE-1372">[CALCITE-1372] * JDBC adapter generates SQL with wrong field names</a>. */
Test case for [CALCITE-1372]
testJoinPlan2
{ "repo_name": "jcamachor/calcite", "path": "core/src/test/java/org/apache/calcite/rel/rel2sql/RelToSqlConverterTest.java", "license": "apache-2.0", "size": 255920 }
[ "org.apache.calcite.test.CalciteAssert", "org.junit.jupiter.api.Test" ]
import org.apache.calcite.test.CalciteAssert; import org.junit.jupiter.api.Test;
import org.apache.calcite.test.*; import org.junit.jupiter.api.*;
[ "org.apache.calcite", "org.junit.jupiter" ]
org.apache.calcite; org.junit.jupiter;
2,548,317
public static String id() { try { return type().id(); } catch (BadKind ex) { // Should never happen under correct work. throw new Error("Please report this bug.", ex); } }
static String function() { try { return type().id(); } catch (BadKind ex) { throw new Error(STR, ex); } }
/** * Returns the agreed Id, delegating functionality to * the {@link #type()}.id(). */
Returns the agreed Id, delegating functionality to the <code>#type()</code>.id()
id
{ "repo_name": "SanDisk-Open-Source/SSD_Dashboard", "path": "uefi/gcc/gcc-4.6.3/libjava/classpath/org/omg/CORBA/LongSeqHelper.java", "license": "gpl-2.0", "size": 4532 }
[ "org.omg.CORBA" ]
import org.omg.CORBA;
import org.omg.*;
[ "org.omg" ]
org.omg;
2,642,759
public void test0117() throws JavaScriptModelException { IJavaScriptUnit sourceUnit = getCompilationUnit("Converter" , "src", "test0117", "Test.js"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ char[] source = sourceUnit.getSource().toCharArray(); ASTNode result = runConversion(sourceUnit, false); ...
void function() throws JavaScriptModelException { IJavaScriptUnit sourceUnit = getCompilationUnit(STR , "src", STR, STR); char[] source = sourceUnit.getSource().toCharArray(); ASTNode result = runConversion(sourceUnit, false); ASTNode node = getASTNode((JavaScriptUnit) result, 0, 0, 0); assertNotNull(STR, node); ThrowS...
/** * ThrowStatement ==> ThrowStatement */
ThrowStatement ==> ThrowStatement
test0117
{ "repo_name": "echoes-tech/eclipse.jsdt.core", "path": "org.eclipse.wst.jsdt.core.tests.model/src/org/eclipse/wst/jsdt/core/tests/dom/ASTConverterTest.java", "license": "epl-1.0", "size": 521652 }
[ "org.eclipse.wst.jsdt.core.IJavaScriptUnit", "org.eclipse.wst.jsdt.core.JavaScriptModelException", "org.eclipse.wst.jsdt.core.dom.ASTMatcher", "org.eclipse.wst.jsdt.core.dom.ASTNode", "org.eclipse.wst.jsdt.core.dom.JavaScriptUnit", "org.eclipse.wst.jsdt.core.dom.ThrowStatement" ]
import org.eclipse.wst.jsdt.core.IJavaScriptUnit; import org.eclipse.wst.jsdt.core.JavaScriptModelException; import org.eclipse.wst.jsdt.core.dom.ASTMatcher; import org.eclipse.wst.jsdt.core.dom.ASTNode; import org.eclipse.wst.jsdt.core.dom.JavaScriptUnit; import org.eclipse.wst.jsdt.core.dom.ThrowStatement;
import org.eclipse.wst.jsdt.core.*; import org.eclipse.wst.jsdt.core.dom.*;
[ "org.eclipse.wst" ]
org.eclipse.wst;
2,129,339
private int determineTaxAcct (int C_AcctSchema_ID, int C_Tax_ID) { int invoiceAcct =0; String sqlb = "SELECT T_Expense_Acct FROM C_Tax_Acct WHERE C_AcctSchema_ID=? and C_Tax_ID=?"; invoiceAcct = DB.getSQLValue(get_TrxName(),sqlb,C_AcctSchema_ID,C_Tax_ID); return invoiceAcct; }
int function (int C_AcctSchema_ID, int C_Tax_ID) { int invoiceAcct =0; String sqlb = STR; invoiceAcct = DB.getSQLValue(get_TrxName(),sqlb,C_AcctSchema_ID,C_Tax_ID); return invoiceAcct; }
/** * Get tax posting accounts for invoice. * * */
Get tax posting accounts for invoice
determineTaxAcct
{ "repo_name": "geneos/adempiere", "path": "base/src/org/compiere/FA/CreateInvoicedAsset.java", "license": "gpl-2.0", "size": 30493 }
[ "org.compiere.util.DB" ]
import org.compiere.util.DB;
import org.compiere.util.*;
[ "org.compiere.util" ]
org.compiere.util;
1,125,294
public static final class Albums implements BaseColumns, AlbumColumns { public static Uri getContentUri(String volumeName) { return Uri.parse(CONTENT_AUTHORITY_SLASH + volumeName + "/audio/albums"); } public s...
static final class Albums implements BaseColumns, AlbumColumns { public static Uri function(String volumeName) { return Uri.parse(CONTENT_AUTHORITY_SLASH + volumeName + STR); } static final Uri INTERNAL_CONTENT_URI = function(STR); static final Uri EXTERNAL_CONTENT_URI = function(STR); public static final String CONTEN...
/** * Get the content:// style URI for the albums table on the * given volume. * * @param volumeName the name of the volume to get the URI for * @return the URI to the audio albums table on the given volume */
Get the content:// style URI for the albums table on the given volume
getContentUri
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "frameworks/base/core/java/android/provider/MediaStore.java", "license": "gpl-3.0", "size": 90776 }
[ "android.net.Uri" ]
import android.net.Uri;
import android.net.*;
[ "android.net" ]
android.net;
661,326
private void createIndexHTML(String siteRoot) throws CmsIllegalArgumentException, CmsException { if (!m_cms.existsResource(siteRoot + INDEX_HTML)) { //Create index.html I_CmsResourceType containerType = OpenCms.getResourceManager().getResourceType( org.opencms.file.t...
void function(String siteRoot) throws CmsIllegalArgumentException, CmsException { if (!m_cms.existsResource(siteRoot + INDEX_HTML)) { I_CmsResourceType containerType = OpenCms.getResourceManager().getResourceType( org.opencms.file.types.CmsResourceTypeXmlContainerPage.RESOURCE_TYPE_NAME); m_cms.createResource(siteRoot ...
/** * Creates new index html if no one was found.<p> * * @param siteRoot of new site * @throws CmsIllegalArgumentException exception * @throws CmsException exception */
Creates new index html if no one was found
createIndexHTML
{ "repo_name": "alkacon/opencms-core", "path": "src/org/opencms/ui/apps/sitemanager/CmsCreateSiteThread.java", "license": "lgpl-2.1", "size": 24285 }
[ "org.opencms.main.CmsException", "org.opencms.main.CmsIllegalArgumentException", "org.opencms.main.OpenCms" ]
import org.opencms.main.CmsException; import org.opencms.main.CmsIllegalArgumentException; import org.opencms.main.OpenCms;
import org.opencms.main.*;
[ "org.opencms.main" ]
org.opencms.main;
463,784
@WebMethod @WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v201311") @RequestWrapper(localName = "updateActivityGroup", targetNamespace = "https://www.google.com/apis/ads/publisher/v201311", className = "com.google.api.ads.dfp.jaxws.v201311.ActivityGroupServiceInterfac...
@WebResult(name = "rval", targetNamespace = STRupdateActivityGroupSTRhttps: @ResponseWrapper(localName = "updateActivityGroupResponseSTRhttps: ActivityGroup function( @WebParam(name = "activityGroupSTRhttps: ActivityGroup activityGroup) throws ApiException_Exception ;
/** * * Updates the specified {@link ActivityGroup}. * * @param activityGroup the activity group to update. * @return the updated activity group. * * * @param activityGroup * @return * returns com.google.api.ads.dfp.jaxws.v2...
Updates the specified <code>ActivityGroup</code>
updateActivityGroup
{ "repo_name": "nafae/developer", "path": "modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201311/ActivityGroupServiceInterface.java", "license": "apache-2.0", "size": 9812 }
[ "javax.jws.WebParam", "javax.jws.WebResult", "javax.xml.ws.ResponseWrapper" ]
import javax.jws.WebParam; import javax.jws.WebResult; import javax.xml.ws.ResponseWrapper;
import javax.jws.*; import javax.xml.ws.*;
[ "javax.jws", "javax.xml" ]
javax.jws; javax.xml;
63,121
public static List<ColumnFamilyDescriptor> generateColumnDescriptors(final String prefix) { List<ColumnFamilyDescriptor> columnFamilyDescriptors = new ArrayList<>(); long familyId = 0; for (Compression.Algorithm compressionType: getSupportedCompressionAlgorithms()) { for (DataBlockEncoding encodingT...
static List<ColumnFamilyDescriptor> function(final String prefix) { List<ColumnFamilyDescriptor> columnFamilyDescriptors = new ArrayList<>(); long familyId = 0; for (Compression.Algorithm compressionType: getSupportedCompressionAlgorithms()) { for (DataBlockEncoding encodingType: DataBlockEncoding.values()) { for (Bloo...
/** * Create a set of column descriptors with the combination of compression, * encoding, bloom codecs available. * @param prefix family names prefix * @return the list of column descriptors */
Create a set of column descriptors with the combination of compression, encoding, bloom codecs available
generateColumnDescriptors
{ "repo_name": "apurtell/hbase", "path": "hbase-testing-util/src/main/java/org/apache/hadoop/hbase/HBaseTestingUtility.java", "license": "apache-2.0", "size": 169342 }
[ "java.util.ArrayList", "java.util.List", "org.apache.hadoop.hbase.client.ColumnFamilyDescriptor", "org.apache.hadoop.hbase.client.ColumnFamilyDescriptorBuilder", "org.apache.hadoop.hbase.io.compress.Compression", "org.apache.hadoop.hbase.io.encoding.DataBlockEncoding", "org.apache.hadoop.hbase.regionser...
import java.util.ArrayList; import java.util.List; import org.apache.hadoop.hbase.client.ColumnFamilyDescriptor; import org.apache.hadoop.hbase.client.ColumnFamilyDescriptorBuilder; import org.apache.hadoop.hbase.io.compress.Compression; import org.apache.hadoop.hbase.io.encoding.DataBlockEncoding; import org.apache.ha...
import java.util.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.io.compress.*; import org.apache.hadoop.hbase.io.encoding.*; import org.apache.hadoop.hbase.regionserver.*; import org.apache.hadoop.hbase.util.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,074,942
public void executeQuery(Connection con, String query) throws SQLException { Statement statement = null; ResultSet resultSet = null; try { statement = con.createStatement(); resultSet = statement.executeQuery(query); ResultSetMetaData metaData = re...
void function(Connection con, String query) throws SQLException { Statement statement = null; ResultSet resultSet = null; try { statement = con.createStatement(); resultSet = statement.executeQuery(query); ResultSetMetaData metaData = resultSet.getMetaData(); int columnCount = metaData.getColumnCount(); if (columnCount...
/** * Populates the dataset by executing the supplied query against the * existing database connection. If no connection exists then no action * is taken. * <p> * The results from the query are extracted and cached locally, thus * applying an upper limit on how many rows can be retr...
Populates the dataset by executing the supplied query against the existing database connection. If no connection exists then no action is taken. The results from the query are extracted and cached locally, thus applying an upper limit on how many rows can be retrieved successfully
executeQuery
{ "repo_name": "apetresc/JFreeChart", "path": "src/main/java/org/jfree/data/jdbc/JDBCCategoryDataset.java", "license": "lgpl-2.1", "size": 12321 }
[ "java.sql.Connection", "java.sql.Date", "java.sql.ResultSet", "java.sql.ResultSetMetaData", "java.sql.SQLException", "java.sql.Statement", "java.sql.Types" ]
import java.sql.Connection; import java.sql.Date; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; import java.sql.Types;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,756,480
private static BitMatrix extractPureBits(BitMatrix image) throws NotFoundException { int[] leftTopBlack = image.getTopLeftOnBit(); int[] rightBottomBlack = image.getBottomRightOnBit(); if (leftTopBlack == null || rightBottomBlack == null) { throw NotFoundException.getNotFoundInstance(); } ...
static BitMatrix function(BitMatrix image) throws NotFoundException { int[] leftTopBlack = image.getTopLeftOnBit(); int[] rightBottomBlack = image.getBottomRightOnBit(); if (leftTopBlack == null rightBottomBlack == null) { throw NotFoundException.getNotFoundInstance(); } int moduleSize = moduleSize(leftTopBlack, image)...
/** * This method detects a code in a "pure" image -- that is, pure monochrome image * which contains only an unrotated, unskewed, image of a code, with some white border * around it. This is a specialized method that works exceptionally fast in this special * case. * * @see com.google.zxing.pdf417.PD...
This method detects a code in a "pure" image -- that is, pure monochrome image which contains only an unrotated, unskewed, image of a code, with some white border around it. This is a specialized method that works exceptionally fast in this special case
extractPureBits
{ "repo_name": "laboratoryyingong/BARLESS", "path": "plugins/phonegap-plugin-barcodescanner/src/android/LibraryProject/src/com/google/zxing/datamatrix/DataMatrixReader.java", "license": "mit", "size": 5579 }
[ "com.google.zxing.NotFoundException", "com.google.zxing.common.BitMatrix" ]
import com.google.zxing.NotFoundException; import com.google.zxing.common.BitMatrix;
import com.google.zxing.*; import com.google.zxing.common.*;
[ "com.google.zxing" ]
com.google.zxing;
2,790,126
public ActionForward unselectAllSubFunds(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { OrganizationReportSelectionForm organizationReportSelectionForm = (OrganizationReportSelectionForm) form; for (BudgetConstructionSubFundPick b...
ActionForward function(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { OrganizationReportSelectionForm organizationReportSelectionForm = (OrganizationReportSelectionForm) form; for (BudgetConstructionSubFundPick budgetConstructionSubFundPick : organiz...
/** * Unselects all sub-fund codes. */
Unselects all sub-fund codes
unselectAllSubFunds
{ "repo_name": "Ariah-Group/Finance", "path": "af_webapp/src/main/java/org/kuali/kfs/module/bc/document/web/struts/OrganizationReportSelectionAction.java", "license": "apache-2.0", "size": 31032 }
[ "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.apache.struts.action.ActionForm", "org.apache.struts.action.ActionForward", "org.apache.struts.action.ActionMapping", "org.kuali.kfs.module.bc.businessobject.BudgetConstructionSubFundPick", "org.kuali.kfs.sys.KFSCons...
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.kuali.kfs.module.bc.businessobject.BudgetConstructionSubFundPick; import org.k...
import javax.servlet.http.*; import org.apache.struts.action.*; import org.kuali.kfs.module.bc.businessobject.*; import org.kuali.kfs.sys.*;
[ "javax.servlet", "org.apache.struts", "org.kuali.kfs" ]
javax.servlet; org.apache.struts; org.kuali.kfs;
2,748,507
protected DatabaseUser addDatabaseUser(PreparedStatement statement, DatabaseUser user, String qualifiedUsername, RSSInstance rssInstance) throws RSSManagerException, RSSDAOException, RSSDatabaseConnectionException { boolean isExist = this.isDatabaseUserExist(user.getRssIn...
DatabaseUser function(PreparedStatement statement, DatabaseUser user, String qualifiedUsername, RSSInstance rssInstance) throws RSSManagerException, RSSDAOException, RSSDatabaseConnectionException { boolean isExist = this.isDatabaseUserExist(user.getRssInstanceName(), qualifiedUsername, rssInstance.getInstanceType()); ...
/** * Add database user * * @param statement Atomic boolean value for the distributed transaction * @param user database user properties * @param qualifiedUsername fully qualified username * @param rssInstance name of the rss instance * @return DatabaseUser * @throws RSSManage...
Add database user
addDatabaseUser
{ "repo_name": "lankavitharana/carbon-storage-management", "path": "components/rss-manager/org.wso2.carbon.rssmanager.core/src/main/java/org/wso2/carbon/rssmanager/core/manager/SystemRSSManager.java", "license": "apache-2.0", "size": 15759 }
[ "java.sql.PreparedStatement", "java.util.HashSet", "java.util.Set", "org.wso2.carbon.rssmanager.core.dao.exception.RSSDAOException", "org.wso2.carbon.rssmanager.core.dao.exception.RSSDatabaseConnectionException", "org.wso2.carbon.rssmanager.core.dto.restricted.DatabaseUser", "org.wso2.carbon.rssmanager....
import java.sql.PreparedStatement; import java.util.HashSet; import java.util.Set; import org.wso2.carbon.rssmanager.core.dao.exception.RSSDAOException; import org.wso2.carbon.rssmanager.core.dao.exception.RSSDatabaseConnectionException; import org.wso2.carbon.rssmanager.core.dto.restricted.DatabaseUser; import org.wso...
import java.sql.*; import java.util.*; import org.wso2.carbon.rssmanager.core.dao.exception.*; import org.wso2.carbon.rssmanager.core.dto.restricted.*; import org.wso2.carbon.rssmanager.core.environment.*; import org.wso2.carbon.rssmanager.core.environment.dao.*; import org.wso2.carbon.rssmanager.core.exception.*; impo...
[ "java.sql", "java.util", "org.wso2.carbon" ]
java.sql; java.util; org.wso2.carbon;
1,120,011
public int getPort() { if (port != 0) { return port; } else { final Connector connector = connectorHolder.get(); if (connector != null) { Preconditions.checkState(connector.getLocalPort() > 0, "no port was set and the connector is not y...
int function() { if (port != 0) { return port; } else { final Connector connector = connectorHolder.get(); if (connector != null) { Preconditions.checkState(connector.getLocalPort() > 0, STR); return connector.getLocalPort(); } else { return 0; } } }
/** * Returns the system port for this connector. */
Returns the system port for this connector
getPort
{ "repo_name": "NessComputing/components-ness-httpserver", "path": "src/main/java/com/nesscomputing/httpserver/HttpConnector.java", "license": "apache-2.0", "size": 3827 }
[ "com.google.common.base.Preconditions", "org.eclipse.jetty.server.Connector" ]
import com.google.common.base.Preconditions; import org.eclipse.jetty.server.Connector;
import com.google.common.base.*; import org.eclipse.jetty.server.*;
[ "com.google.common", "org.eclipse.jetty" ]
com.google.common; org.eclipse.jetty;
351,575
public void doMeasure(int widthMeasureSpec, int heightMeasureSpec) { //Log.i("@@@@", "onMeasure(" + MeasureSpec.toString(widthMeasureSpec) + ", " // + MeasureSpec.toString(heightMeasureSpec) + ")"); if (mVideoRotationDegree == 90 || mVideoRotationDegree == 270) { int tempS...
void function(int widthMeasureSpec, int heightMeasureSpec) { if (mVideoRotationDegree == 90 mVideoRotationDegree == 270) { int tempSpec = widthMeasureSpec; widthMeasureSpec = heightMeasureSpec; heightMeasureSpec = tempSpec; } int width = View.getDefaultSize(mVideoWidth, widthMeasureSpec); int height = View.getDefaultSi...
/** * Must be called by View.onMeasure(int, int) * * @param widthMeasureSpec * @param heightMeasureSpec */
Must be called by View.onMeasure(int, int)
doMeasure
{ "repo_name": "lisnstatic/live_master", "path": "ijkplayer/src/main/java/tcking/github/com/ijkplayer/MeasureHelper.java", "license": "apache-2.0", "size": 10544 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
243,581
public void testInspectSslAfterConnect() throws Exception { TestSSLContext testSSLContext = TestSSLContext.create(); server.useHttps(testSSLContext.serverContext.getSocketFactory(), false); server.enqueue(new MockResponse()); server.play(); HttpsURLConnection connection = (H...
void function() throws Exception { TestSSLContext testSSLContext = TestSSLContext.create(); server.useHttps(testSSLContext.serverContext.getSocketFactory(), false); server.enqueue(new MockResponse()); server.play(); HttpsURLConnection connection = (HttpsURLConnection) server.getUrl("/").openConnection(); connection.set...
/** * Test that we can inspect the SSL session after connect(). * http://code.google.com/p/android/issues/detail?id=24431 */
Test that we can inspect the SSL session after connect(). HREF
testInspectSslAfterConnect
{ "repo_name": "rex-xxx/mt6572_x201", "path": "mediatek/frameworks/base/tests/net/tests/src/mediatek/net/libcore/URLConnectionTest.java", "license": "gpl-2.0", "size": 105754 }
[ "com.mediatek.mockwebserver.MockResponse", "javax.net.ssl.HttpsURLConnection" ]
import com.mediatek.mockwebserver.MockResponse; import javax.net.ssl.HttpsURLConnection;
import com.mediatek.mockwebserver.*; import javax.net.ssl.*;
[ "com.mediatek.mockwebserver", "javax.net" ]
com.mediatek.mockwebserver; javax.net;
2,349,512
Map getMetadata();
Map getMetadata();
/** * A generic bag of extra information that implementations can use to carry vendor parameters * <p> * This property is not part of the standard model but an extension. * </p> * * @model */
A generic bag of extra information that implementations can use to carry vendor parameters This property is not part of the standard model but an extension.
getMetadata
{ "repo_name": "geotools/geotools", "path": "modules/ogc/net.opengis.wfs/src/net/opengis/wfs20/GetFeatureType.java", "license": "lgpl-2.1", "size": 18472 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
297,465
public ConsolePreferencePage toggleShowConsoleErrorWrite(boolean checked) { new CheckBox(this, SHOW_ON_ERROR).toggle(checked); return this; }
ConsolePreferencePage function(boolean checked) { new CheckBox(this, SHOW_ON_ERROR).toggle(checked); return this; }
/** * Toggles a check box for showing a console on standard error. * * @param checked */
Toggles a check box for showing a console on standard error
toggleShowConsoleErrorWrite
{ "repo_name": "djelinek/reddeer", "path": "plugins/org.eclipse.reddeer.eclipse/src/org/eclipse/reddeer/eclipse/debug/ui/preferences/ConsolePreferencePage.java", "license": "epl-1.0", "size": 3565 }
[ "org.eclipse.reddeer.swt.impl.button.CheckBox" ]
import org.eclipse.reddeer.swt.impl.button.CheckBox;
import org.eclipse.reddeer.swt.impl.button.*;
[ "org.eclipse.reddeer" ]
org.eclipse.reddeer;
1,782,744
public static boolean isNetworkAvailable(Context context) { boolean connected = false; ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); if (cm != null) { NetworkInfo ni = cm.getActiveNetworkInfo(); if (ni != null) ...
static boolean function(Context context) { boolean connected = false; ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); if (cm != null) { NetworkInfo ni = cm.getActiveNetworkInfo(); if (ni != null) { connected = ni.isConnected(); } } return connected; }
/** * Check if a network available */
Check if a network available
isNetworkAvailable
{ "repo_name": "systembugtj/AutoUpdate", "path": "android-update-apk/src/main/java/com/artwl/update/UpdateChecker.java", "license": "apache-2.0", "size": 14435 }
[ "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;
1,711,742
public Date getFechaRegistro() { return fechaRegistro; }
Date function() { return fechaRegistro; }
/** * Provee acceso de lectura al atributo <code>fechaRegistro</code> * * @return fechaRegistro */
Provee acceso de lectura al atributo <code>fechaRegistro</code>
getFechaRegistro
{ "repo_name": "cancervero/atzintli", "path": "applicacion/app/engine/ventas/ventas-das/src/main/java/mx/com/cct/atzintli/ds/entity/negocio/Cliente.java", "license": "apache-2.0", "size": 5030 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
112,794
public List<CoreDescriptor> getCoreDescriptors() { return solrCores.getCoreDescriptors(); }
List<CoreDescriptor> function() { return solrCores.getCoreDescriptors(); }
/** * Get the CoreDescriptors for all cores managed by this container * @return a List of CoreDescriptors */
Get the CoreDescriptors for all cores managed by this container
getCoreDescriptors
{ "repo_name": "cscorley/solr-only-mirror", "path": "core/src/java/org/apache/solr/core/CoreContainer.java", "license": "apache-2.0", "size": 30849 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
291,419
private void checkValidInterval(Duration pollingInterval, int retries, long timeSleptMillis) { long highSum = 0; long lowSum = 0; for (int i = 0; i < retries; i++) { double currentInterval = pollingInterval.getMillis() * Math.pow(DataflowPipelineJob.DEFAULT_BACKOFF_EXPONENT, ...
void function(Duration pollingInterval, int retries, long timeSleptMillis) { long highSum = 0; long lowSum = 0; for (int i = 0; i < retries; i++) { double currentInterval = pollingInterval.getMillis() * Math.pow(DataflowPipelineJob.DEFAULT_BACKOFF_EXPONENT, i); double randomOffset = 0.5 * currentInterval; highSum += Ma...
/** * Validates that a given time is valid for the total time slept by a * BackOff given the number of retries and * an initial polling interval. * * @param pollingInterval The initial polling interval given. * @param retries The number of retries made * @param timeSleptMillis The amount of time sl...
Validates that a given time is valid for the total time slept by a BackOff given the number of retries and an initial polling interval
checkValidInterval
{ "repo_name": "tgroh/incubator-beam", "path": "runners/google-cloud-dataflow-java/src/test/java/org/apache/beam/runners/dataflow/DataflowPipelineJobTest.java", "license": "apache-2.0", "size": 22330 }
[ "org.hamcrest.MatcherAssert", "org.hamcrest.Matchers", "org.joda.time.Duration" ]
import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.joda.time.Duration;
import org.hamcrest.*; import org.joda.time.*;
[ "org.hamcrest", "org.joda.time" ]
org.hamcrest; org.joda.time;
2,295,431
public SnowflakeExportCopyCommand setAdditionalFormatOptions(Map<String, Object> additionalFormatOptions) { this.additionalFormatOptions = additionalFormatOptions; return this; }
SnowflakeExportCopyCommand function(Map<String, Object> additionalFormatOptions) { this.additionalFormatOptions = additionalFormatOptions; return this; }
/** * Set the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command. * Type: key value pairs (value should be string type) (or Expression with resultType object). Example: * "additionalFormatOptions": { "OVERWRITE": "TRUE", "MAX_FILE_SIZE": "'FALSE'" }. ...
Set the additionalFormatOptions property: Additional format options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: "additionalFormatOptions": { "OVERWRITE": "TRUE", "MAX_FILE_SIZE": "'FALSE'" }
setAdditionalFormatOptions
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/synapse/azure-analytics-synapse-artifacts/src/main/java/com/azure/analytics/synapse/artifacts/models/SnowflakeExportCopyCommand.java", "license": "mit", "size": 3873 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,724,050
private JPanel createTitledPanel(String title, int top, int left, int bottom, int right) { JPanel panel; ThickTitledBorder titledBorder; Border insetsBorder; panel = new JPanel(); titledBorder = new ThickTitledBorder(title, PANEL_TITLE_HEIGHT, PANEL_TITLE_BACK...
JPanel function(String title, int top, int left, int bottom, int right) { JPanel panel; ThickTitledBorder titledBorder; Border insetsBorder; panel = new JPanel(); titledBorder = new ThickTitledBorder(title, PANEL_TITLE_HEIGHT, PANEL_TITLE_BACKGROUND_COLOR, PANEL_TITLE_FONT_COLOR); insetsBorder = BorderFactory.createEmp...
/** * Create a panel with a thick titled border and an invisible border. * @param title the title of the panel * @param top the top invisible space * @param left the left intivisle space * @param bottom the bottom invisible space * @param right the right invisible space * @return the ...
Create a panel with a thick titled border and an invisible border
createTitledPanel
{ "repo_name": "XavierCollBagur/ZombieInvasion--Prepare-yourself-", "path": "ZombieInvasion/src/GUI/Components/Specific/ConfigurationPane.java", "license": "gpl-3.0", "size": 77196 }
[ "javax.swing.BorderFactory", "javax.swing.JPanel", "javax.swing.border.Border" ]
import javax.swing.BorderFactory; import javax.swing.JPanel; import javax.swing.border.Border;
import javax.swing.*; import javax.swing.border.*;
[ "javax.swing" ]
javax.swing;
717,744
ByteBuf serializeEvpn(EvpnChoice evpn, ByteBuf buffer);
ByteBuf serializeEvpn(EvpnChoice evpn, ByteBuf buffer);
/** * Serialize Evpn. * * @param evpn Evpn * @param buffer Encode common Evpn parts to output buffer * @return Encode Evpn to output buffer */
Serialize Evpn
serializeEvpn
{ "repo_name": "opendaylight/bgpcep", "path": "bgp/extensions/evpn/src/main/java/org/opendaylight/protocol/bgp/evpn/spi/EvpnSerializer.java", "license": "epl-1.0", "size": 1272 }
[ "io.netty.buffer.ByteBuf", "org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.evpn.rev200120.evpn.EvpnChoice" ]
import io.netty.buffer.ByteBuf; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.evpn.rev200120.evpn.EvpnChoice;
import io.netty.buffer.*; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.evpn.rev200120.evpn.*;
[ "io.netty.buffer", "org.opendaylight.yang" ]
io.netty.buffer; org.opendaylight.yang;
1,748,222
boolean onExchangeFailed(Exchange exchange);
boolean onExchangeFailed(Exchange exchange);
/** * Callback for {@link Exchange} lifecycle * * @param exchange the exchange * @return <tt>true</tt> to allow continue evaluating, <tt>false</tt> to stop immediately */
Callback for <code>Exchange</code> lifecycle
onExchangeFailed
{ "repo_name": "aaronwalker/camel", "path": "camel-core/src/main/java/org/apache/camel/builder/NotifyBuilder.java", "license": "apache-2.0", "size": 53335 }
[ "org.apache.camel.Exchange" ]
import org.apache.camel.Exchange;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
974,861
@Override public void enterSrepos(@NotNull PoCoParser.SreposContext ctx) { }
@Override public void enterSrepos(@NotNull PoCoParser.SreposContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
exitQid
{ "repo_name": "Corjuh/PoCo-Compiler", "path": "src/com/poco/PoCoParser/PoCoParserBaseListener.java", "license": "lgpl-2.1", "size": 18510 }
[ "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,869,418
protected void updateActionBarTitleAndHomeButton(OCFile chosenFile) { super.updateActionBarTitleAndHomeButton(chosenFile); // set home button properties if (mDrawerToggle != null && chosenFile != null) { mDrawerToggle.setDrawerIndicatorEnabled(isRoot(chosenFile)); } else...
void function(OCFile chosenFile) { super.updateActionBarTitleAndHomeButton(chosenFile); if (mDrawerToggle != null && chosenFile != null) { mDrawerToggle.setDrawerIndicatorEnabled(isRoot(chosenFile)); } else if (mDrawerToggle != null){ mDrawerToggle.setDrawerIndicatorEnabled(false); } if (mDrawerToggle != null) { Drawer...
/** * Updates title bar and home buttons (state and icon). * <p/> * Assumes that navigation drawer is NOT visible. */
Updates title bar and home buttons (state and icon). Assumes that navigation drawer is NOT visible
updateActionBarTitleAndHomeButton
{ "repo_name": "SpryServers/sprycloud-android", "path": "src/main/java/com/owncloud/android/ui/activity/DrawerActivity.java", "license": "gpl-2.0", "size": 63325 }
[ "android.graphics.PorterDuff", "androidx.appcompat.graphics.drawable.DrawerArrowDrawable", "com.owncloud.android.datamodel.OCFile", "com.owncloud.android.utils.ThemeUtils" ]
import android.graphics.PorterDuff; import androidx.appcompat.graphics.drawable.DrawerArrowDrawable; import com.owncloud.android.datamodel.OCFile; import com.owncloud.android.utils.ThemeUtils;
import android.graphics.*; import androidx.appcompat.graphics.drawable.*; import com.owncloud.android.datamodel.*; import com.owncloud.android.utils.*;
[ "android.graphics", "androidx.appcompat", "com.owncloud.android" ]
android.graphics; androidx.appcompat; com.owncloud.android;
1,313,260
public Date getModifytime() { return modifytime; }
Date function() { return modifytime; }
/** * This method was generated by MyBatis Generator. * This method returns the value of the database column g_authority.modifytime * * @return the value of g_authority.modifytime * * @mbg.generated Sun Nov 27 01:44:02 CST 2016 */
This method was generated by MyBatis Generator. This method returns the value of the database column g_authority.modifytime
getModifytime
{ "repo_name": "csycurry/cloud.group", "path": "cloud.group.api/src/main/java/com/csy/model/Authority.java", "license": "gpl-3.0", "size": 16152 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
786,346
@Test public void testThreeArgConstructorSuccess() { String str = "17C"; String str2 = "17F"; String str3 = "10$"; Triple instance = new Triple(str,str2,str3); assertEquals(str, instance.getValue1()); assertEquals(str2, instance.getValue2()); assertEquals...
void function() { String str = "17C"; String str2 = "17F"; String str3 = "10$"; Triple instance = new Triple(str,str2,str3); assertEquals(str, instance.getValue1()); assertEquals(str2, instance.getValue2()); assertEquals(str3, instance.getValue3()); }
/** * Test of three argument constructor, of class Triple. * Test case: successfull initialization. */
Test of three argument constructor, of class Triple. Test case: successfull initialization
testThreeArgConstructorSuccess
{ "repo_name": "bojantomic/jeff", "path": "src/test/java/org/goodoldai/jeff/explanation/data/TripleTest.java", "license": "lgpl-3.0", "size": 5011 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
171,962
void unsetSwitchManagerService(ISwitchManager s) { log.trace("Unbind from SwitchManagerService."); if (switchManager == s) { switchManager = null; } }
void unsetSwitchManagerService(ISwitchManager s) { log.trace(STR); if (switchManager == s) { switchManager = null; } }
/** * Unbind from SwitchManagerService */
Unbind from SwitchManagerService
unsetSwitchManagerService
{ "repo_name": "duerrfk/sdn-mq", "path": "jms-bundle/src/main/java/org/sdnmq/jms/PacketForwarder.java", "license": "epl-1.0", "size": 9832 }
[ "org.opendaylight.controller.switchmanager.ISwitchManager" ]
import org.opendaylight.controller.switchmanager.ISwitchManager;
import org.opendaylight.controller.switchmanager.*;
[ "org.opendaylight.controller" ]
org.opendaylight.controller;
1,571,170
@IgniteSpiConfiguration(optional = true) public void setClientReconnectDisabled(boolean clientReconnectDisabled) { this.clientReconnectDisabled = clientReconnectDisabled; }
@IgniteSpiConfiguration(optional = true) void function(boolean clientReconnectDisabled) { this.clientReconnectDisabled = clientReconnectDisabled; }
/** * Sets client reconnect disabled flag. * <p> * If {@code true} client does not try to reconnect after * server detected client node failure. * * @param clientReconnectDisabled Client reconnect disabled flag. */
Sets client reconnect disabled flag. If true client does not try to reconnect after server detected client node failure
setClientReconnectDisabled
{ "repo_name": "vadopolski/ignite", "path": "modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpi.java", "license": "apache-2.0", "size": 76666 }
[ "org.apache.ignite.spi.IgniteSpiConfiguration" ]
import org.apache.ignite.spi.IgniteSpiConfiguration;
import org.apache.ignite.spi.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,260,277
public GetFiltersResponse getFilter(GetFiltersRequest request, RequestOptions options) throws IOException { return restHighLevelClient.performRequestAndParseEntity(request, MLRequestConverters::getFilter, options, GetFiltersResponse::fromXContent, Collections....
GetFiltersResponse function(GetFiltersRequest request, RequestOptions options) throws IOException { return restHighLevelClient.performRequestAndParseEntity(request, MLRequestConverters::getFilter, options, GetFiltersResponse::fromXContent, Collections.emptySet()); }
/** * Gets Machine Learning Filters * <p> * For additional info * see <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-filter.html">ML GET Filter documentation</a> * * @param request The request * @param options Additional request options (e.g. headers),...
Gets Machine Learning Filters For additional info see ML GET Filter documentation
getFilter
{ "repo_name": "uschindler/elasticsearch", "path": "client/rest-high-level/src/main/java/org/elasticsearch/client/MachineLearningClient.java", "license": "apache-2.0", "size": 130429 }
[ "java.io.IOException", "java.util.Collections", "org.elasticsearch.client.ml.GetFiltersRequest", "org.elasticsearch.client.ml.GetFiltersResponse" ]
import java.io.IOException; import java.util.Collections; import org.elasticsearch.client.ml.GetFiltersRequest; import org.elasticsearch.client.ml.GetFiltersResponse;
import java.io.*; import java.util.*; import org.elasticsearch.client.ml.*;
[ "java.io", "java.util", "org.elasticsearch.client" ]
java.io; java.util; org.elasticsearch.client;
293,414
@Exported public @CheckForNull String getRequiredCoreVersion() { String v = manifest.getMainAttributes().getValue("Jenkins-Version"); if (v!= null) return v; v = manifest.getMainAttributes().getValue("Hudson-Version"); if (v!= null) return v; return null; }
@CheckForNull String function() { String v = manifest.getMainAttributes().getValue(STR); if (v!= null) return v; v = manifest.getMainAttributes().getValue(STR); if (v!= null) return v; return null; }
/** * Returns the required Jenkins core version of this plugin. * @return the required Jenkins core version of this plugin. * @since 2.16 */
Returns the required Jenkins core version of this plugin
getRequiredCoreVersion
{ "repo_name": "recena/jenkins", "path": "core/src/main/java/hudson/PluginWrapper.java", "license": "mit", "size": 45597 }
[ "javax.annotation.CheckForNull" ]
import javax.annotation.CheckForNull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
2,189,113
public ECPoint decodePoint(byte[] encoded) { ECPoint p = null; switch(encoded[0]) { // infinity case 0x00: if(encoded.length > 1) { throw new RuntimeException("Invalid point encoding"); } p = getInfinity(); break; // compressed case 0x02: case 0x03: ...
ECPoint function(byte[] encoded) { ECPoint p = null; switch(encoded[0]) { case 0x00: if(encoded.length > 1) { throw new RuntimeException(STR); } p = getInfinity(); break; case 0x02: case 0x03: int ytilde = encoded[0] & 1; byte[] i = new byte[encoded.length - 1]; System.arraycopy(encoded, 1, i, 0, i.length); ECFieldElem...
/** * Decode a point on this curve from its ASN.1 encoding. The different * encodings are taken account of, including point compression for * <code>F<sub>p</sub></code> (X9.62 s 4.2.1 pg 17). * * @return The decoded point. */
Decode a point on this curve from its ASN.1 encoding. The different encodings are taken account of, including point compression for <code>Fp</code> (X9.62 s 4.2.1 pg 17)
decodePoint
{ "repo_name": "SafetyCulture/DroidText", "path": "app/src/main/java/bouncycastle/repack/org/bouncycastle/math/ec/ECCurve.java", "license": "lgpl-3.0", "size": 17274 }
[ "java.math.BigInteger" ]
import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
2,596,333
//=== Worm regulatory network === public static String createWormRegulatoryNetworkInXGMML( Set<CytoscapeNetworkNodeData> interactionNodeSet, Set<CytoscapeNetworkEdgeData> interactionEdgeSet) { if ("".equals(wormNetworkXGMML)) { StringBuffer sb = new StringBuffer(); ...
static String function( Set<CytoscapeNetworkNodeData> interactionNodeSet, Set<CytoscapeNetworkEdgeData> interactionEdgeSet) { if ("".equals(wormNetworkXGMML)) { StringBuffer sb = new StringBuffer(); sb = addHeaderToWormRegulatoryNetworkInXGMML(sb); sb = addNodesToWormRegulatoryNetworkInXGMML(sb, interactionNodeSet); sb...
/** * Convert a set of CytoscapeNetworkData to String in XGMML format. * Use StringBuffer instead of DOM or SAX. * * @param interactionEdgeSet a set of CytoscapeNetworkEdgeData objects * @param interactionNodeSet a set of CytoscapeNetworkNodeData objects * @return the network in XGMML form...
Convert a set of CytoscapeNetworkData to String in XGMML format. Use StringBuffer instead of DOM or SAX
createWormRegulatoryNetworkInXGMML
{ "repo_name": "julie-sullivan/phytomine", "path": "modmine/webapp/src/org/modmine/web/logic/RegulatoryNetworkDataFormatUtil.java", "license": "lgpl-2.1", "size": 30409 }
[ "java.util.Set", "org.intermine.bio.web.model.CytoscapeNetworkEdgeData", "org.intermine.bio.web.model.CytoscapeNetworkNodeData" ]
import java.util.Set; import org.intermine.bio.web.model.CytoscapeNetworkEdgeData; import org.intermine.bio.web.model.CytoscapeNetworkNodeData;
import java.util.*; import org.intermine.bio.web.model.*;
[ "java.util", "org.intermine.bio" ]
java.util; org.intermine.bio;
2,729,397