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 Builder setSubject(final RyaURI subject) { this.subject = subject; return this; }
Builder function(final RyaURI subject) { this.subject = subject; return this; }
/** * Sets the {@link RyaURI} subject. * @param subject - The subject to key on the event. */
Sets the <code>RyaURI</code> subject
setSubject
{ "repo_name": "pujav65/incubator-rya", "path": "extras/rya.geoindexing/src/main/java/org/apache/rya/indexing/geotemporal/model/Event.java", "license": "apache-2.0", "size": 6887 }
[ "org.apache.rya.api.domain.RyaURI" ]
import org.apache.rya.api.domain.RyaURI;
import org.apache.rya.api.domain.*;
[ "org.apache.rya" ]
org.apache.rya;
515,587
@Test public void testIntToBinary() { assertArrayEquals( new boolean[]{}, Conversion.intToBinary(0x00000000, 0, new boolean[]{}, 0, 0)); assertArrayEquals( new boolean[]{}, Conversion.intToBinary(0x00000000, 100, new boolean[]{}, 0, 0)); assertArrayEquals( ...
void function() { assertArrayEquals( new boolean[]{}, Conversion.intToBinary(0x00000000, 0, new boolean[]{}, 0, 0)); assertArrayEquals( new boolean[]{}, Conversion.intToBinary(0x00000000, 100, new boolean[]{}, 0, 0)); assertArrayEquals( new boolean[]{}, Conversion.intToBinary(0x00000000, 0, new boolean[]{}, 100, 0)); a...
/** * Tests {@link Conversion#intToBinary(int, int, boolean[], int, int)}. */
Tests <code>Conversion#intToBinary(int, int, boolean[], int, int)</code>
testIntToBinary
{ "repo_name": "apache/commons-lang", "path": "src/test/java/org/apache/commons/lang3/ConversionTest.java", "license": "apache-2.0", "size": 98680 }
[ "org.junit.jupiter.api.Assertions" ]
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.*;
[ "org.junit.jupiter" ]
org.junit.jupiter;
108,946
private static Set<String> parseQueryChromsToWarp(String toWarp) { if (toWarp == null) return null; Set<String> retval = new HashSet<>(); for (String token : toWarp.split(",")) { retval.add(token.trim()); } return retval; }
static Set<String> function(String toWarp) { if (toWarp == null) return null; Set<String> retval = new HashSet<>(); for (String token : toWarp.split(",")) { retval.add(token.trim()); } return retval; }
/** * Returns a set of all query chromosomes to attempt to warp. * * @param toWarp a comma-separated string of query chromosomes to warp, or null if all should be warped * @return a Set of chromosomes to warp, or null if all should be warped */
Returns a set of all query chromosomes to attempt to warp
parseQueryChromsToWarp
{ "repo_name": "verilylifesciences/genomewarp", "path": "src/main/java/com/verily/genomewarp/GenomeWarpSerial.java", "license": "apache-2.0", "size": 31229 }
[ "java.util.HashSet", "java.util.Set" ]
import java.util.HashSet; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
702,549
@RefreshScope @Bean public List radiusTokenServers() { final List<JRadiusServerImpl> list = new ArrayList<>(); final RadiusClientFactory factory = new RadiusClientFactory(); factory.setAccountingPort(casProperties.getAuthn().getMfa().getRadius().getClient().getAccountingPort()); ...
List function() { final List<JRadiusServerImpl> list = new ArrayList<>(); final RadiusClientFactory factory = new RadiusClientFactory(); factory.setAccountingPort(casProperties.getAuthn().getMfa().getRadius().getClient().getAccountingPort()); factory.setAuthenticationPort(casProperties.getAuthn().getMfa().getRadius().g...
/** * Radius servers list. * * @return the list */
Radius servers list
radiusTokenServers
{ "repo_name": "zhoffice/cas", "path": "cas-server-support-radius-mfa/src/main/java/org/apereo/cas/config/RadiusMultifactorConfiguration.java", "license": "apache-2.0", "size": 9840 }
[ "java.util.ArrayList", "java.util.List", "org.apereo.cas.adaptors.radius.JRadiusServerImpl", "org.apereo.cas.adaptors.radius.RadiusClientFactory", "org.apereo.cas.adaptors.radius.RadiusProtocol" ]
import java.util.ArrayList; import java.util.List; import org.apereo.cas.adaptors.radius.JRadiusServerImpl; import org.apereo.cas.adaptors.radius.RadiusClientFactory; import org.apereo.cas.adaptors.radius.RadiusProtocol;
import java.util.*; import org.apereo.cas.adaptors.radius.*;
[ "java.util", "org.apereo.cas" ]
java.util; org.apereo.cas;
2,038,333
protected void updateExplicitVersion(IgniteTxEntry txEntry, GridCacheEntryEx entry) throws GridCacheEntryRemovedException { if (!entry.context().isDht()) { // All put operations must wait for async locks to complete, // so it is safe to get acquired locks. GridCac...
void function(IgniteTxEntry txEntry, GridCacheEntryEx entry) throws GridCacheEntryRemovedException { if (!entry.context().isDht()) { GridCacheMvccCandidate explicitCand = entry.localOwner(); if (explicitCand != null) { GridCacheVersion explicitVer = explicitCand.version(); boolean locCand = false; if (explicitCand.near...
/** * Updates explicit version for tx entry based on current entry lock owner. * * @param txEntry Tx entry to update. * @param entry Entry. * @throws GridCacheEntryRemovedException If entry was concurrently removed. */
Updates explicit version for tx entry based on current entry lock owner
updateExplicitVersion
{ "repo_name": "dmagda/incubator-ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxLocalAdapter.java", "license": "apache-2.0", "size": 154672 }
[ "org.apache.ignite.internal.processors.cache.GridCacheEntryEx", "org.apache.ignite.internal.processors.cache.GridCacheEntryRemovedException", "org.apache.ignite.internal.processors.cache.GridCacheMvccCandidate", "org.apache.ignite.internal.processors.cache.version.GridCacheVersion" ]
import org.apache.ignite.internal.processors.cache.GridCacheEntryEx; import org.apache.ignite.internal.processors.cache.GridCacheEntryRemovedException; import org.apache.ignite.internal.processors.cache.GridCacheMvccCandidate; import org.apache.ignite.internal.processors.cache.version.GridCacheVersion;
import org.apache.ignite.internal.processors.cache.*; import org.apache.ignite.internal.processors.cache.version.*;
[ "org.apache.ignite" ]
org.apache.ignite;
613,829
private boolean isFontSuitable(int availHeight, Graphics2D g2D) { FontMetrics fm = g2D.getFontMetrics(font); int maxH = fm.getMaxAscent()+fm.getMaxDescent(); return (maxH <= availHeight); }
boolean function(int availHeight, Graphics2D g2D) { FontMetrics fm = g2D.getFontMetrics(font); int maxH = fm.getMaxAscent()+fm.getMaxDescent(); return (maxH <= availHeight); }
/** * Tells if the current {@link #font} will fit into the specified height. * That is, if the maximum height that text rendered in the current * {@link #font} on the given graphics context would occupy is less or * equal to <code>availHeight</code>. * * @param availHeight The available h...
Tells if the current <code>#font</code> will fit into the specified height. That is, if the maximum height that text rendered in the current <code>#font</code> on the given graphics context would occupy is less or equal to <code>availHeight</code>
isFontSuitable
{ "repo_name": "simleo/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/util/ui/tdialog/TitlePainter.java", "license": "gpl-2.0", "size": 9721 }
[ "java.awt.FontMetrics", "java.awt.Graphics2D" ]
import java.awt.FontMetrics; import java.awt.Graphics2D;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,476,750
public static byte[] getResizedImageData(int width, int height, int widthLimit, int heightLimit, int byteLimit, Uri uri, Context context) { int outWidth = width; int outHeight = height; float scaleFactor = 1.F; while ((outWidth * scaleFactor > widthLimit) || (outHeight *...
static byte[] function(int width, int height, int widthLimit, int heightLimit, int byteLimit, Uri uri, Context context) { int outWidth = width; int outHeight = height; float scaleFactor = 1.F; while ((outWidth * scaleFactor > widthLimit) (outHeight * scaleFactor > heightLimit)) { scaleFactor *= .75F; } int orientation ...
/** * Resize and recompress the image such that it fits the given limits. The resulting byte * array contains an image in JPEG format, regardless of the original image's content type. * @param widthLimit The width limit, in pixels * @param heightLimit The height limit, in pixels * @param byteLi...
Resize and recompress the image such that it fits the given limits. The resulting byte array contains an image in JPEG format, regardless of the original image's content type
getResizedImageData
{ "repo_name": "AdeebNqo/Thula", "path": "Thula/src/main/java/com/adeebnqo/Thula/common/google/UriImage.java", "license": "gpl-3.0", "size": 22834 }
[ "android.content.Context", "android.graphics.Bitmap", "android.graphics.BitmapFactory", "android.net.Uri", "android.util.Log", "com.adeebnqo.Thula", "java.io.ByteArrayOutputStream", "java.io.FileNotFoundException", "java.io.IOException", "java.io.InputStream" ]
import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.util.Log; import com.adeebnqo.Thula; import java.io.ByteArrayOutputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream;
import android.content.*; import android.graphics.*; import android.net.*; import android.util.*; import com.adeebnqo.*; import java.io.*;
[ "android.content", "android.graphics", "android.net", "android.util", "com.adeebnqo", "java.io" ]
android.content; android.graphics; android.net; android.util; com.adeebnqo; java.io;
349,146
public DTMAxisIterator getNthDescendant(int type, int n, boolean includeself) { DTMAxisIterator source = (DTMAxisIterator) new TypedDescendantIterator(type); return new NthDescendantIterator(n); }
DTMAxisIterator function(int type, int n, boolean includeself) { DTMAxisIterator source = (DTMAxisIterator) new TypedDescendantIterator(type); return new NthDescendantIterator(n); }
/** * Returns the nth descendant of a node */
Returns the nth descendant of a node
getNthDescendant
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/dom/SAXImpl.java", "license": "mit", "size": 61748 }
[ "com.sun.org.apache.xml.internal.dtm.DTMAxisIterator" ]
import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator;
import com.sun.org.apache.xml.internal.dtm.*;
[ "com.sun.org" ]
com.sun.org;
2,128,897
PagedIterable<Workspace> list();
PagedIterable<Workspace> list();
/** * Lists all the available machine learning workspaces under the specified subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent...
Lists all the available machine learning workspaces under the specified subscription
list
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/machinelearningservices/azure-resourcemanager-machinelearningservices/src/main/java/com/azure/resourcemanager/machinelearningservices/models/Workspaces.java", "license": "mit", "size": 12838 }
[ "com.azure.core.http.rest.PagedIterable" ]
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.*;
[ "com.azure.core" ]
com.azure.core;
473,266
public DatabaseBuilderParameters setUpDefaultParameters() { return new Parameters().database().setDataSource(getDatasource()) .setTable(TABLE).setKeyColumn(COL_KEY) .setValueColumn(COL_VALUE).setAutoCommit(isAutoCommit()); }
DatabaseBuilderParameters function() { return new Parameters().database().setDataSource(getDatasource()) .setTable(TABLE).setKeyColumn(COL_KEY) .setValueColumn(COL_VALUE).setAutoCommit(isAutoCommit()); }
/** * Returns a parameters object with default settings. * * @return the parameters object */
Returns a parameters object with default settings
setUpDefaultParameters
{ "repo_name": "mohanaraosv/commons-configuration", "path": "src/test/java/org/apache/commons/configuration2/DatabaseConfigurationTestHelper.java", "license": "apache-2.0", "size": 10065 }
[ "org.apache.commons.configuration2.builder.fluent.DatabaseBuilderParameters", "org.apache.commons.configuration2.builder.fluent.Parameters" ]
import org.apache.commons.configuration2.builder.fluent.DatabaseBuilderParameters; import org.apache.commons.configuration2.builder.fluent.Parameters;
import org.apache.commons.configuration2.builder.fluent.*;
[ "org.apache.commons" ]
org.apache.commons;
2,264,024
Logger getLogger();
Logger getLogger();
/** * Gets the <code>Logger</code> to which log output will be sent. UIMA components should use this * facility rather than writing to their own log files (or to stdout). * * @return an instance of a logger for use by this annotator. */
Gets the <code>Logger</code> to which log output will be sent. UIMA components should use this facility rather than writing to their own log files (or to stdout)
getLogger
{ "repo_name": "apache/uima-uimaj", "path": "uimaj-core/src/main/java/org/apache/uima/UimaContext.java", "license": "apache-2.0", "size": 26249 }
[ "org.apache.uima.util.Logger" ]
import org.apache.uima.util.Logger;
import org.apache.uima.util.*;
[ "org.apache.uima" ]
org.apache.uima;
2,903,742
public String terminate(ProtocolForm protocolForm) throws Exception;
String function(ProtocolForm protocolForm) throws Exception;
/** * This method is to termnate a protocol * @param protocolForm * @return * @throws Exception */
This method is to termnate a protocol
terminate
{ "repo_name": "vivantech/kc_fixes", "path": "src/main/java/org/kuali/kra/irb/actions/IrbProtocolActionRequestService.java", "license": "apache-2.0", "size": 17752 }
[ "org.kuali.kra.irb.ProtocolForm" ]
import org.kuali.kra.irb.ProtocolForm;
import org.kuali.kra.irb.*;
[ "org.kuali.kra" ]
org.kuali.kra;
2,654,129
private CanonicalFile extractDependencyAssemblies() throws ConQATException { if (dependencyScope == null) { return null; } CanonicalFile tempDirectory = getProcessorInfo().getTempFile( TEMP_FILE_PREFIX, "Dependencies"); tempDirectory.mkdir(); extractAssemblies(dependencyScope, tempDirectory, false...
CanonicalFile function() throws ConQATException { if (dependencyScope == null) { return null; } CanonicalFile tempDirectory = getProcessorInfo().getTempFile( TEMP_FILE_PREFIX, STR); tempDirectory.mkdir(); extractAssemblies(dependencyScope, tempDirectory, false); return tempDirectory; }
/** * Extracts the dependency assemblies from the dependency scope to a * temporary directory. Returns null if no dependency scope defined. */
Extracts the dependency assemblies from the dependency scope to a temporary directory. Returns null if no dependency scope defined
extractDependencyAssemblies
{ "repo_name": "vimaier/conqat", "path": "org.conqat.engine.dotnet/src/org/conqat/engine/dotnet/fxcop/FxCopExecutor.java", "license": "apache-2.0", "size": 15454 }
[ "org.conqat.engine.core.core.ConQATException", "org.conqat.lib.commons.filesystem.CanonicalFile" ]
import org.conqat.engine.core.core.ConQATException; import org.conqat.lib.commons.filesystem.CanonicalFile;
import org.conqat.engine.core.core.*; import org.conqat.lib.commons.filesystem.*;
[ "org.conqat.engine", "org.conqat.lib" ]
org.conqat.engine; org.conqat.lib;
150,648
@Test public final void testGetBeforeDate_Java() { final Integer readCount; readCount = getBeforeDateJavaQuery().getResultList().size(); // Reads the expected number of entities Assertions.assertEquals(2, readCount); }
final void function() { final Integer readCount; readCount = getBeforeDateJavaQuery().getResultList().size(); Assertions.assertEquals(2, readCount); }
/** * Tests that retrieving all the entities before a date gives the correct * number of them when using a Java {@code Date} for the date. */
Tests that retrieving all the entities before a date gives the correct number of them when using a Java Date for the date
testGetBeforeDate_Java
{ "repo_name": "Bernardo-MG/jpa-example", "path": "src/test/java/com/bernardomg/example/jpa/test/integration/temporal/date/ITDateEntityQueryJpql.java", "license": "mit", "size": 11746 }
[ "org.junit.jupiter.api.Assertions" ]
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.*;
[ "org.junit.jupiter" ]
org.junit.jupiter;
2,891,187
public HubVirtualNetworkConnectionInner withRemoteVirtualNetwork(SubResource remoteVirtualNetwork) { this.remoteVirtualNetwork = remoteVirtualNetwork; return this; }
HubVirtualNetworkConnectionInner function(SubResource remoteVirtualNetwork) { this.remoteVirtualNetwork = remoteVirtualNetwork; return this; }
/** * Set reference to the remote virtual network. * * @param remoteVirtualNetwork the remoteVirtualNetwork value to set * @return the HubVirtualNetworkConnectionInner object itself. */
Set reference to the remote virtual network
withRemoteVirtualNetwork
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/network/mgmt-v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/HubVirtualNetworkConnectionInner.java", "license": "mit", "size": 6306 }
[ "com.microsoft.azure.SubResource" ]
import com.microsoft.azure.SubResource;
import com.microsoft.azure.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
2,564,476
EReference getPUPF_BlkValV();
EReference getPUPF_BlkValV();
/** * Returns the meta object for the reference '{@link gluemodel.substationStandard.LNNodes.LNGroupP.PUPF#getBlkValV <em>Blk Val V</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the reference '<em>Blk Val V</em>'. * @see gluemodel.substationStandard.LNNodes.LNGroupP.P...
Returns the meta object for the reference '<code>gluemodel.substationStandard.LNNodes.LNGroupP.PUPF#getBlkValV Blk Val V</code>'.
getPUPF_BlkValV
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/substationStandard/LNNodes/LNGroupP/LNGroupPPackage.java", "license": "mit", "size": 291175 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
555,274
public void consumeAsync(List<Purchase> purchases, OnConsumeMultiFinishedListener listener) { checkNotDisposed(); checkSetupDone("consume"); consumeAsyncInternal(purchases, null, listener); }
void function(List<Purchase> purchases, OnConsumeMultiFinishedListener listener) { checkNotDisposed(); checkSetupDone(STR); consumeAsyncInternal(purchases, null, listener); }
/** * Same as {@link consumeAsync}, but for multiple items at once. * @param purchases The list of PurchaseInfo objects representing the purchases to consume. * @param listener The listener to notify when the consumption operation finishes. */
Same as <code>consumeAsync</code>, but for multiple items at once
consumeAsync
{ "repo_name": "links234/MPACK", "path": "src/com/PukApp/MPACK/IabHelper.java", "license": "apache-2.0", "size": 44320 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,629,757
ServiceDiscovery newInstance(CamelContext camelContext) throws Exception;
ServiceDiscovery newInstance(CamelContext camelContext) throws Exception;
/** * Creates an instance of a ServiceDiscovery. */
Creates an instance of a ServiceDiscovery
newInstance
{ "repo_name": "jkorab/camel", "path": "camel-core/src/main/java/org/apache/camel/cloud/ServiceDiscoveryFactory.java", "license": "apache-2.0", "size": 1142 }
[ "org.apache.camel.CamelContext" ]
import org.apache.camel.CamelContext;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
968,836
public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { this.extraParams = new HashMap<>(); } this.extraParams.put(key, value); return this; }
Builder function(String key, Object value) { if (this.extraParams == null) { this.extraParams = new HashMap<>(); } this.extraParams.put(key, value); return this; }
/** * Add a key/value pair to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original * map. See {@link * SetupIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions#extraParams} ...
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See <code>SetupIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions#extraParams</code> for the field documentation
putExtraParam
{ "repo_name": "stripe/stripe-java", "path": "src/main/java/com/stripe/param/SetupIntentCreateParams.java", "license": "mit", "size": 58491 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,787,475
public void initialize(ViewGroup parentView) { mParentView = parentView; mParentView.getViewTreeObserver().addOnGlobalFocusChangeListener(mOnFocusChangeListener); mNativeContextualSearchManagerPtr = nativeInit(); listenForHideNotifications(); mTabRedirectHandler = new TabRedi...
void function(ViewGroup parentView) { mParentView = parentView; mParentView.getViewTreeObserver().addOnGlobalFocusChangeListener(mOnFocusChangeListener); mNativeContextualSearchManagerPtr = nativeInit(); listenForHideNotifications(); mTabRedirectHandler = new TabRedirectHandler(mActivity); mIsShowingPromo = false; mDid...
/** * Initializes this manager. Must be called before {@link #getContextualSearchControl()}. * @param parentView The parent view to attach Contextual Search UX to. */
Initializes this manager. Must be called before <code>#getContextualSearchControl()</code>
initialize
{ "repo_name": "Bysmyyr/chromium-crosswalk", "path": "chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java", "license": "bsd-3-clause", "size": 58014 }
[ "android.view.ViewGroup", "org.chromium.chrome.browser.tab.TabRedirectHandler" ]
import android.view.ViewGroup; import org.chromium.chrome.browser.tab.TabRedirectHandler;
import android.view.*; import org.chromium.chrome.browser.tab.*;
[ "android.view", "org.chromium.chrome" ]
android.view; org.chromium.chrome;
284,737
private static MDLSection getSimulinkModelSection(MDLSection simulinkFile) throws SimulinkModelBuildingException { List<MDLSection> namedBlocks = simulinkFile .getSubSections(SECTION_Model); if (namedBlocks.isEmpty()) { namedBlocks = simulinkFile.getSubSections(SECTION_Library); } if (namedBlocks...
static MDLSection function(MDLSection simulinkFile) throws SimulinkModelBuildingException { List<MDLSection> namedBlocks = simulinkFile .getSubSections(SECTION_Model); if (namedBlocks.isEmpty()) { namedBlocks = simulinkFile.getSubSections(SECTION_Library); } if (namedBlocks.isEmpty() namedBlocks.size() > 1) { throw new...
/** * Determine the section that holds the Simulink model. This may be * {@link SimulinkConstants#SECTION_Model} or * {@link SimulinkConstants#SECTION_Library}</code>. * * @param simulinkFile * the Simulink file * @throws SimulinkModelBuildingException * if no or multiple {@link ...
Determine the section that holds the Simulink model. This may be <code>SimulinkConstants#SECTION_Model</code> or <code>SimulinkConstants#SECTION_Library</code></code>
getSimulinkModelSection
{ "repo_name": "vimaier/conqat", "path": "org.conqat.engine.simulink/external/simulink-src/org/conqat/lib/simulink/builder/SimulinkModelBuilder.java", "license": "apache-2.0", "size": 7462 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,299,977
public InputStream asStream() { if(streamConsumed){ throw new IllegalStateException("Stream has already been consumed."); } return is; }
InputStream function() { if(streamConsumed){ throw new IllegalStateException(STR); } return is; }
/** * Returns the response stream.<br> * This method cannot be called after calling asString() or asDcoument()<br> * It is suggested to call disconnect() after consuming the stream. * * Disconnects the internal HttpURLConnection silently. * @return response body stream * @throws TBlog...
Returns the response stream. This method cannot be called after calling asString() or asDcoument() It is suggested to call disconnect() after consuming the stream. Disconnects the internal HttpURLConnection silently
asStream
{ "repo_name": "VysakhV/eeplat-social-api", "path": "source/163/t4j/http/Response.java", "license": "mit", "size": 7895 }
[ "java.io.InputStream" ]
import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
172,527
public String efetuarPagamento() { try { Conta conta = super.getContaUsuarioLogin(); bancoEngine.pagarConta(conta, valorOperacao); FacesUtil.addFacesMessage("Pagamento efetuado com sucesso.", null, FacesMessage.SEVERITY_INFO); } catch (Exception e) { FacesUtil.addFacesMessage("Erro ao efe...
String function() { try { Conta conta = super.getContaUsuarioLogin(); bancoEngine.pagarConta(conta, valorOperacao); FacesUtil.addFacesMessage(STR, null, FacesMessage.SEVERITY_INFO); } catch (Exception e) { FacesUtil.addFacesMessage(STR, e.getLocalizedMessage(), FacesMessage.SEVERITY_ERROR); } return goToBanco(); }
/** * Efetua um pagamento na conta. * @return String com o nome do destino (target) * do redirecionamento da action. */
Efetua um pagamento na conta
efetuarPagamento
{ "repo_name": "robsonsmartins/fiap-mba-java-projects", "path": "source/tcc.fiap.jboss7/BancoSeguro/src/banco/web/controller/BancoMB.java", "license": "gpl-3.0", "size": 5296 }
[ "com.robsonmartins.fiap.tcc.util.FacesUtil", "javax.faces.application.FacesMessage" ]
import com.robsonmartins.fiap.tcc.util.FacesUtil; import javax.faces.application.FacesMessage;
import com.robsonmartins.fiap.tcc.util.*; import javax.faces.application.*;
[ "com.robsonmartins.fiap", "javax.faces" ]
com.robsonmartins.fiap; javax.faces;
541,775
@Deprecated public B fromGroupOffsets() { this.startupMode = StartupMode.GROUP_OFFSETS; this.specificStartupOffsets = null; return builder(); }
B function() { this.startupMode = StartupMode.GROUP_OFFSETS; this.specificStartupOffsets = null; return builder(); }
/** * Configures the TableSource to start reading from any committed group offsets found in Zookeeper / Kafka brokers. * * @see FlinkKafkaConsumerBase#setStartFromGroupOffsets() * @deprecated Use table descriptors instead of implementation-specific builders. */
Configures the TableSource to start reading from any committed group offsets found in Zookeeper / Kafka brokers
fromGroupOffsets
{ "repo_name": "xiaokuangkuang/kuangjingxiangmu", "path": "flink-connectors/flink-connector-kafka-base/src/main/java/org/apache/flink/streaming/connectors/kafka/KafkaTableSourceBase.java", "license": "apache-2.0", "size": 26071 }
[ "org.apache.flink.streaming.connectors.kafka.config.StartupMode" ]
import org.apache.flink.streaming.connectors.kafka.config.StartupMode;
import org.apache.flink.streaming.connectors.kafka.config.*;
[ "org.apache.flink" ]
org.apache.flink;
1,687,144
@Override Collection<? extends JobflowReference> getBlockers();
Collection<? extends JobflowReference> getBlockers();
/** * Returns jobflows which must be executed before this jobflow. * @return the blocker jobflows */
Returns jobflows which must be executed before this jobflow
getBlockers
{ "repo_name": "akirakw/asakusafw-compiler", "path": "compiler-project/api/src/main/java/com/asakusafw/lang/compiler/api/reference/JobflowReference.java", "license": "apache-2.0", "size": 1428 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,776,558
public void sent() { User user = this.userSession.getUser(); this.result.include("privateMessages", this.repository.getFromSentBox(user)); this.result.include("sentbox", true); result.of(this).messages(); }
void function() { User user = this.userSession.getUser(); this.result.include(STR, this.repository.getFromSentBox(user)); this.result.include(STR, true); result.of(this).messages(); }
/** * Shows the page to sent messages */
Shows the page to sent messages
sent
{ "repo_name": "ippxie/jforum3", "path": "src/main/java/net/jforum/controllers/PrivateMessageController.java", "license": "lgpl-2.1", "size": 7925 }
[ "net.jforum.entities.User" ]
import net.jforum.entities.User;
import net.jforum.entities.*;
[ "net.jforum.entities" ]
net.jforum.entities;
2,698,489
public SearchSourceBuilder postFilter(Map postFilter) { try { XContentBuilder builder = XContentFactory.contentBuilder(Requests.CONTENT_TYPE); builder.map(postFilter); return postFilter(builder); } catch (IOException e) { throw new ElasticsearchGenerat...
SearchSourceBuilder function(Map postFilter) { try { XContentBuilder builder = XContentFactory.contentBuilder(Requests.CONTENT_TYPE); builder.map(postFilter); return postFilter(builder); } catch (IOException e) { throw new ElasticsearchGenerationException(STR + postFilter + "]", e); } }
/** * Constructs a new search source builder with a query from a map. */
Constructs a new search source builder with a query from a map
postFilter
{ "repo_name": "xinec/elasticsearch-innerhits-1.4.0", "path": "src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java", "license": "apache-2.0", "size": 34237 }
[ "java.io.IOException", "java.util.Map", "org.elasticsearch.ElasticsearchGenerationException", "org.elasticsearch.client.Requests", "org.elasticsearch.common.xcontent.XContentBuilder", "org.elasticsearch.common.xcontent.XContentFactory" ]
import java.io.IOException; import java.util.Map; import org.elasticsearch.ElasticsearchGenerationException; import org.elasticsearch.client.Requests; import org.elasticsearch.common.xcontent.XContentBuilder; import org.elasticsearch.common.xcontent.XContentFactory;
import java.io.*; import java.util.*; import org.elasticsearch.*; import org.elasticsearch.client.*; import org.elasticsearch.common.xcontent.*;
[ "java.io", "java.util", "org.elasticsearch", "org.elasticsearch.client", "org.elasticsearch.common" ]
java.io; java.util; org.elasticsearch; org.elasticsearch.client; org.elasticsearch.common;
2,625,835
public DcmElement putOB(int tag, ByteBuffer value) { return put(value != null ? ValueElement.createOB(tag, value) : ValueElement.createOB(tag)); }
DcmElement function(int tag, ByteBuffer value) { return put(value != null ? ValueElement.createOB(tag, value) : ValueElement.createOB(tag)); }
/** * Description of the Method * * @param tag * Description of the Parameter * @param value * Description of the Parameter * @return Description of the Return Value */
Description of the Method
putOB
{ "repo_name": "medicayun/medicayundicom", "path": "dcm4che14/branches/DCM4CHE_2_14_22_BRANCHA/src/java/org/dcm4cheri/data/DcmObjectImpl.java", "license": "apache-2.0", "size": 86392 }
[ "java.nio.ByteBuffer", "org.dcm4che.data.DcmElement" ]
import java.nio.ByteBuffer; import org.dcm4che.data.DcmElement;
import java.nio.*; import org.dcm4che.data.*;
[ "java.nio", "org.dcm4che.data" ]
java.nio; org.dcm4che.data;
2,695,315
List<Map<String,Object>> getPrioritizedAus( Collection<PrioritizedAuId> pendingAuIds) { List<Map<String,Object>> rows = new ArrayList<Map<String,Object>>(); PluginManager pluginMgr = metadataMgr.getDaemon().getPluginManager(); for (PrioritizedAuId pendingAuId : pendingAuIds) { ArchivalUnit au ...
List<Map<String,Object>> getPrioritizedAus( Collection<PrioritizedAuId> pendingAuIds) { List<Map<String,Object>> rows = new ArrayList<Map<String,Object>>(); PluginManager pluginMgr = metadataMgr.getDaemon().getPluginManager(); for (PrioritizedAuId pendingAuId : pendingAuIds) { ArchivalUnit au = pluginMgr.getAuFromId(pe...
/** * Get status rows for pending AUs. * @param pendingAuIds the pending AU ids. * @return list of rows */
Get status rows for pending AUs
getPrioritizedAus
{ "repo_name": "lockss/lockss-daemon", "path": "src/org/lockss/metadata/MetadataManagerStatusAccessor.java", "license": "bsd-3-clause", "size": 22661 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.HashMap", "java.util.List", "java.util.Map", "org.lockss.daemon.status.StatusTable", "org.lockss.metadata.MetadataManager", "org.lockss.plugin.ArchivalUnit", "org.lockss.plugin.PluginManager", "org.lockss.state.ArchivalUnitStatus" ]
import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import org.lockss.daemon.status.StatusTable; import org.lockss.metadata.MetadataManager; import org.lockss.plugin.ArchivalUnit; import org.lockss.plugin.PluginManager; import org.lockss.state....
import java.util.*; import org.lockss.daemon.status.*; import org.lockss.metadata.*; import org.lockss.plugin.*; import org.lockss.state.*;
[ "java.util", "org.lockss.daemon", "org.lockss.metadata", "org.lockss.plugin", "org.lockss.state" ]
java.util; org.lockss.daemon; org.lockss.metadata; org.lockss.plugin; org.lockss.state;
1,925,241
protected String build_instructor_view_students_assignment_context(VelocityPortlet portlet, Context context, RunData data, SessionState state) { // cleaning from view attribute state.removeAttribute(FROM_VIEW); String contextString = (String) state.getAttribute(STATE_CONTEXT_STRING); initViewSubmission...
String function(VelocityPortlet portlet, Context context, RunData data, SessionState state) { state.removeAttribute(FROM_VIEW); String contextString = (String) state.getAttribute(STATE_CONTEXT_STRING); initViewSubmissionListOption(state); String allOrOneGroup = (String) state.getAttribute(VIEW_SUBMISSION_LIST_OPTION); ...
/** * build the instructor view to view the list of students for an assignment */
build the instructor view to view the list of students for an assignment
build_instructor_view_students_assignment_context
{ "repo_name": "rodriguezdevera/sakai", "path": "assignment/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java", "license": "apache-2.0", "size": 685575 }
[ "java.util.ArrayList", "java.util.HashSet", "java.util.Iterator", "java.util.List", "java.util.Set", "org.sakaiproject.assignment.api.Assignment", "org.sakaiproject.assignment.cover.AssignmentService", "org.sakaiproject.cheftool.Context", "org.sakaiproject.cheftool.RunData", "org.sakaiproject.chef...
import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; import org.sakaiproject.assignment.api.Assignment; import org.sakaiproject.assignment.cover.AssignmentService; import org.sakaiproject.cheftool.Context; import org.sakaiproject.cheftool.RunData;...
import java.util.*; import org.sakaiproject.assignment.api.*; import org.sakaiproject.assignment.cover.*; import org.sakaiproject.cheftool.*; import org.sakaiproject.event.api.*; import org.sakaiproject.user.api.*; import org.sakaiproject.user.cover.*; import org.sakaiproject.util.*;
[ "java.util", "org.sakaiproject.assignment", "org.sakaiproject.cheftool", "org.sakaiproject.event", "org.sakaiproject.user", "org.sakaiproject.util" ]
java.util; org.sakaiproject.assignment; org.sakaiproject.cheftool; org.sakaiproject.event; org.sakaiproject.user; org.sakaiproject.util;
1,051,768
private void grantRole(Node node, String role, String property) throws ValueFormatException, PathNotFoundException, javax.jcr.RepositoryException { Value[] actualRoles = node.getProperty(property).getValues(); List<String> newRoles = new ArrayList<String>(); for (int i = 0; i < actualRoles.length; i++) {...
void function(Node node, String role, String property) throws ValueFormatException, PathNotFoundException, javax.jcr.RepositoryException { Value[] actualRoles = node.getProperty(property).getValues(); List<String> newRoles = new ArrayList<String>(); for (int i = 0; i < actualRoles.length; i++) { newRoles.add(actualRole...
/** * Grant role */
Grant role
grantRole
{ "repo_name": "papamas/DMS-KANGREG-XI-MANADO", "path": "src/main/java/com/openkm/module/jcr/JcrAuthModule.java", "license": "gpl-3.0", "size": 29465 }
[ "com.openkm.core.AccessDeniedException", "com.openkm.core.PathNotFoundException", "com.openkm.core.RepositoryException", "com.openkm.module.jcr.stuff.JCRUtils", "java.util.ArrayList", "java.util.List", "javax.jcr.Node", "javax.jcr.Value", "javax.jcr.ValueFormatException" ]
import com.openkm.core.AccessDeniedException; import com.openkm.core.PathNotFoundException; import com.openkm.core.RepositoryException; import com.openkm.module.jcr.stuff.JCRUtils; import java.util.ArrayList; import java.util.List; import javax.jcr.Node; import javax.jcr.Value; import javax.jcr.ValueFormatException;
import com.openkm.core.*; import com.openkm.module.jcr.stuff.*; import java.util.*; import javax.jcr.*;
[ "com.openkm.core", "com.openkm.module", "java.util", "javax.jcr" ]
com.openkm.core; com.openkm.module; java.util; javax.jcr;
905,581
private int getIDForGivenRecord(String measuredMethodName, String generatorName, String generatorArguments) throws SQLException { Statement stmt = conn.createStatement(); String query = "SELECT id " + "FROM measurement_information" + " WHERE (measured_method = '" + me...
int function(String measuredMethodName, String generatorName, String generatorArguments) throws SQLException { Statement stmt = conn.createStatement(); String query = STR + STR + STR + measuredMethodName + "'" + STR + generatorName + "'" + STR + generatorArguments + "')"; ResultSet rs = stmt.executeQuery(query); if (!r...
/** * Returns the unique ID for the row measuredMethodName by given arguments. * * @param measuredMethodName * @param generatorName * @param generatorArguments * @return * @throws SQLException if there's no such record in database */
Returns the unique ID for the row measuredMethodName by given arguments
getIDForGivenRecord
{ "repo_name": "arahusky/performance_javadoc", "path": "src/java-server/cz/cuni/mff/d3s/tools/perfdoc/server/cache/ResultDatabaseCache.java", "license": "gpl-3.0", "size": 25157 }
[ "java.sql.ResultSet", "java.sql.SQLException", "java.sql.Statement" ]
import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,110,563
public static int getInt(Context context, String key, int defaultValue) { SharedPreferences settings = context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE); return settings.getInt(key, defaultValue); }
static int function(Context context, String key, int defaultValue) { SharedPreferences settings = context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE); return settings.getInt(key, defaultValue); }
/** * get int preferences * * @param context * @param key The name of the preference to retrieve * @param defaultValue Value to return if this preference does not exist * @return The preference value if it exists, or defValue. Throws ClassCastException if there is a preference wit...
get int preferences
getInt
{ "repo_name": "harrylefit/EazyBaseMVP", "path": "code/base/src/main/java/vn/eazy/base/mvp/utils/PreferencesUtils.java", "license": "apache-2.0", "size": 10031 }
[ "android.content.Context", "android.content.SharedPreferences" ]
import android.content.Context; import android.content.SharedPreferences;
import android.content.*;
[ "android.content" ]
android.content;
779,049
public RelDataType deriveType(SqlValidator validator) { String name = typeName.getSimple(); // for now we only support builtin datatypes if (SqlTypeName.get(name) == null) { throw validator.newValidationError(this, RESOURCE.unknownDatatypeName(name)); } if (null != collectionsTyp...
RelDataType function(SqlValidator validator) { String name = typeName.getSimple(); if (SqlTypeName.get(name) == null) { throw validator.newValidationError(this, RESOURCE.unknownDatatypeName(name)); } if (null != collectionsTypeName) { final String collectionName = collectionsTypeName.getSimple(); if (SqlTypeName.get(co...
/** * Throws an error if the type is not built-in. */
Throws an error if the type is not built-in
deriveType
{ "repo_name": "YrAuYong/incubator-calcite", "path": "core/src/main/java/org/apache/calcite/sql/SqlDataTypeSpec.java", "license": "apache-2.0", "size": 11307 }
[ "org.apache.calcite.rel.type.RelDataType", "org.apache.calcite.rel.type.RelDataTypeFactory", "org.apache.calcite.sql.type.SqlTypeName", "org.apache.calcite.sql.validate.SqlValidator", "org.apache.calcite.util.Static" ]
import org.apache.calcite.rel.type.RelDataType; import org.apache.calcite.rel.type.RelDataTypeFactory; import org.apache.calcite.sql.type.SqlTypeName; import org.apache.calcite.sql.validate.SqlValidator; import org.apache.calcite.util.Static;
import org.apache.calcite.rel.type.*; import org.apache.calcite.sql.type.*; import org.apache.calcite.sql.validate.*; import org.apache.calcite.util.*;
[ "org.apache.calcite" ]
org.apache.calcite;
1,517,763
@Override public boolean takeInput() { String s; try{ System.out.println("Welcome to the Flight Reservation System!"); System.out.println("-----------------------------------------"); System.out.println("-----------------------------------------"); ...
boolean function() { String s; try{ System.out.println(STR); System.out.println(STR); System.out.println(STR); System.out.println(STR); s=reader.readLine(); if(manageFlight != null) { LocalDate departureDate = LocalDate.parse(s,manageFlight.getDtf()); System.out.println(STR); String city = reader.readLine().trim().toUp...
/** * Takes input from the user Console * @return true if a input is successful */
Takes input from the user Console
takeInput
{ "repo_name": "NilanjanDaw/piedPiper", "path": "src/DisplayCLI.java", "license": "gpl-2.0", "size": 5052 }
[ "java.io.IOException", "java.time.LocalDate" ]
import java.io.IOException; import java.time.LocalDate;
import java.io.*; import java.time.*;
[ "java.io", "java.time" ]
java.io; java.time;
2,752,441
public static <T extends AggregateRoot> AggregateAnnotationCommandHandler subscribe( Class<T> aggregateType, Repository<T> repository, CommandBus commandBus, CommandTargetResolver commandTargetResolver) { AggregateAnnotationCommandHandler<T> adapter = new AggregateAnnotationCommandHa...
static <T extends AggregateRoot> AggregateAnnotationCommandHandler function( Class<T> aggregateType, Repository<T> repository, CommandBus commandBus, CommandTargetResolver commandTargetResolver) { AggregateAnnotationCommandHandler<T> adapter = new AggregateAnnotationCommandHandler<T>( aggregateType, repository, command...
/** * Subscribe a handler for the given aggregate type to the given command bus. * * @param aggregateType The type of aggregate * @param repository The repository providing access to aggregate instances * @param commandBus The command bus to register command handle...
Subscribe a handler for the given aggregate type to the given command bus
subscribe
{ "repo_name": "oiavorskyi/AxonFramework", "path": "core/src/main/java/org/axonframework/commandhandling/annotation/AggregateAnnotationCommandHandler.java", "license": "apache-2.0", "size": 16445 }
[ "org.axonframework.commandhandling.CommandBus", "org.axonframework.commandhandling.CommandTargetResolver", "org.axonframework.domain.AggregateRoot", "org.axonframework.repository.Repository" ]
import org.axonframework.commandhandling.CommandBus; import org.axonframework.commandhandling.CommandTargetResolver; import org.axonframework.domain.AggregateRoot; import org.axonframework.repository.Repository;
import org.axonframework.commandhandling.*; import org.axonframework.domain.*; import org.axonframework.repository.*;
[ "org.axonframework.commandhandling", "org.axonframework.domain", "org.axonframework.repository" ]
org.axonframework.commandhandling; org.axonframework.domain; org.axonframework.repository;
503,986
public static GetVideoResponse mapFromVideotoVideoResponse(Video v) { return GetVideoResponse.newBuilder() .setAddedDate(dateToTimestamp(v.getAddedDate())) .setDescription(v.getDescription()) .setLocation(v.getLocation()) .setLocationType(Video...
static GetVideoResponse function(Video v) { return GetVideoResponse.newBuilder() .setAddedDate(dateToTimestamp(v.getAddedDate())) .setDescription(v.getDescription()) .setLocation(v.getLocation()) .setLocationType(VideoLocationType.forNumber(v.getLocationType())) .setName(v.getName()) .setUserId(uuidToUuid(v.getUserid()...
/** * Mapping to generated GPRC beans (Full detailed) */
Mapping to generated GPRC beans (Full detailed)
mapFromVideotoVideoResponse
{ "repo_name": "KillrVideo/killrvideo-java", "path": "killrvideo-service-videocatalog/src/main/java/com/killrvideo/service/video/grpc/VideoCatalogServiceGrpcMapper.java", "license": "apache-2.0", "size": 4699 }
[ "com.killrvideo.dse.dto.Video" ]
import com.killrvideo.dse.dto.Video;
import com.killrvideo.dse.dto.*;
[ "com.killrvideo.dse" ]
com.killrvideo.dse;
571,695
EReference getMMCADeployment_DeploymentAlternatives();
EReference getMMCADeployment_DeploymentAlternatives();
/** * Returns the meta object for the containment reference list '{@link es.uah.aut.srg.micobs.mclev.mclevmcad.MMCADeployment#getDeploymentAlternatives <em>DeploymentAlternatives</em>}'. * @return the meta object for the containment reference list '<em>DeploymentAlternatives</em>'. * @see es.uah.aut.srg.micobs.mc...
Returns the meta object for the containment reference list '<code>es.uah.aut.srg.micobs.mclev.mclevmcad.MMCADeployment#getDeploymentAlternatives DeploymentAlternatives</code>'
getMMCADeployment_DeploymentAlternatives
{ "repo_name": "parraman/micobs", "path": "mclev/es.uah.aut.srg.micobs.mclev/src/es/uah/aut/srg/micobs/mclev/mclevmcad/mclevmcadPackage.java", "license": "epl-1.0", "size": 59510 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
116,623
@Override protected void processMouseEvent(final MouseEvent e) { if (e.getID() != MouseEvent.MOUSE_PRESSED) { return; } this.lastX = e.getX(); this.lastY = e.getY(); }
void function(final MouseEvent e) { if (e.getID() != MouseEvent.MOUSE_PRESSED) { return; } this.lastX = e.getX(); this.lastY = e.getY(); }
/** * Process messages. * * @param e * The event. */
Process messages
processMouseEvent
{ "repo_name": "automenta/java_dann", "path": "example/example/neural/gui/ocr/Entry.java", "license": "agpl-3.0", "size": 8345 }
[ "java.awt.event.MouseEvent" ]
import java.awt.event.MouseEvent;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
133,290
ResourceBundle getResourceBundle(Locale locale);
ResourceBundle getResourceBundle(Locale locale);
/** * Returns a resource bundle for the given locale. * * @param locale A locale, for which a resource bundle shall be retrieved. Must * not be null. * * @return A resource bundle for the given locale. May be null, if no such * bundle exists. */
Returns a resource bundle for the given locale
getResourceBundle
{ "repo_name": "porcelli-forks/dashbuilder", "path": "dashbuilder-shared/dashbuilder-hibernate-validator/src/main/java/org/hibernate/validator/resourceloading/ResourceBundleLocator.java", "license": "apache-2.0", "size": 1919 }
[ "java.util.Locale", "java.util.ResourceBundle" ]
import java.util.Locale; import java.util.ResourceBundle;
import java.util.*;
[ "java.util" ]
java.util;
1,129,506
public void loadNamespaceDestinations(NamespaceBundle bundle) { executor.submit(() -> { LOG.info("Loading all topics on bundle: {}", bundle); NamespaceName nsName = bundle.getNamespaceObject(); List<CompletableFuture<Topic>> persistentTopics = Lists.newArrayList(); ...
void function(NamespaceBundle bundle) { executor.submit(() -> { LOG.info(STR, bundle); NamespaceName nsName = bundle.getNamespaceObject(); List<CompletableFuture<Topic>> persistentTopics = Lists.newArrayList(); long topicLoadStart = System.nanoTime(); for (String topic : getNamespaceService().getListOfDestinations(nsNa...
/** * Load all the destination contained in a namespace * * @param bundle * <code>NamespaceBundle</code> to identify the service unit * @throws Exception */
Load all the destination contained in a namespace
loadNamespaceDestinations
{ "repo_name": "bradtm/pulsar", "path": "pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java", "license": "apache-2.0", "size": 25675 }
[ "com.google.common.collect.Lists", "java.util.List", "java.util.concurrent.CompletableFuture", "java.util.concurrent.TimeUnit", "org.apache.pulsar.broker.service.Topic", "org.apache.pulsar.client.util.FutureUtil", "org.apache.pulsar.common.naming.DestinationName", "org.apache.pulsar.common.naming.Name...
import com.google.common.collect.Lists; import java.util.List; import java.util.concurrent.CompletableFuture; import java.util.concurrent.TimeUnit; import org.apache.pulsar.broker.service.Topic; import org.apache.pulsar.client.util.FutureUtil; import org.apache.pulsar.common.naming.DestinationName; import org.apache.pu...
import com.google.common.collect.*; import java.util.*; import java.util.concurrent.*; import org.apache.pulsar.broker.service.*; import org.apache.pulsar.client.util.*; import org.apache.pulsar.common.naming.*;
[ "com.google.common", "java.util", "org.apache.pulsar" ]
com.google.common; java.util; org.apache.pulsar;
1,732,298
FileHandleResults getAttachmentFileHandles(UserInfo user, WikiPageKey wikiPageKey, Long version) throws NotFoundException;
FileHandleResults getAttachmentFileHandles(UserInfo user, WikiPageKey wikiPageKey, Long version) throws NotFoundException;
/** * Get the attachment file handles for a give wiki page. * @param user * @param wikiPageKey * @param version TODO * @return * @throws NotFoundException */
Get the attachment file handles for a give wiki page
getAttachmentFileHandles
{ "repo_name": "xschildw/Synapse-Repository-Services", "path": "services/repository-managers/src/main/java/org/sagebionetworks/repo/manager/wiki/V2WikiManager.java", "license": "apache-2.0", "size": 5306 }
[ "org.sagebionetworks.repo.model.UserInfo", "org.sagebionetworks.repo.model.dao.WikiPageKey", "org.sagebionetworks.repo.model.file.FileHandleResults", "org.sagebionetworks.repo.web.NotFoundException" ]
import org.sagebionetworks.repo.model.UserInfo; import org.sagebionetworks.repo.model.dao.WikiPageKey; import org.sagebionetworks.repo.model.file.FileHandleResults; import org.sagebionetworks.repo.web.NotFoundException;
import org.sagebionetworks.repo.model.*; import org.sagebionetworks.repo.model.dao.*; import org.sagebionetworks.repo.model.file.*; import org.sagebionetworks.repo.web.*;
[ "org.sagebionetworks.repo" ]
org.sagebionetworks.repo;
2,007,057
public BigDecimal getTaxBaseCosts() { BigDecimal totalCosts = new BigDecimal(0); if (costs != null) { for (OfferCost offerCost : costs) { if (offerCost.getUnits() != null && offerCost.getCost() != null && offerCost.getIva() != null && offerCost.isBillable()) { // product of number of hours an...
BigDecimal function() { BigDecimal totalCosts = new BigDecimal(0); if (costs != null) { for (OfferCost offerCost : costs) { if (offerCost.getUnits() != null && offerCost.getCost() != null && offerCost.getIva() != null && offerCost.isBillable()) { BigDecimal unitsPerCostPerUnit = offerCost.getUnits().multiply(offerCost....
/** * Devuelve la base imponible de los costes de la oferta */
Devuelve la base imponible de los costes de la oferta
getTaxBaseCosts
{ "repo_name": "autentia/TNTConcept", "path": "tntconcept-core/src/main/java/com/autentia/tnt/businessobject/Offer.java", "license": "gpl-3.0", "size": 10320 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
1,115,193
public static Date parse(Date self, String format, String input) throws ParseException { return new SimpleDateFormat(format).parse(input); }
static Date function(Date self, String format, String input) throws ParseException { return new SimpleDateFormat(format).parse(input); }
/** * Parse a String into a Date instance using the given pattern. * This convenience method acts as a wrapper for {@link java.text.SimpleDateFormat}. * <p> * Note that a new SimpleDateFormat instance is created for every * invocation of this method (for thread safety). * * @param self placeholder varia...
Parse a String into a Date instance using the given pattern. This convenience method acts as a wrapper for <code>java.text.SimpleDateFormat</code>. Note that a new SimpleDateFormat instance is created for every invocation of this method (for thread safety)
parse
{ "repo_name": "dinix2008/quasar-groovy", "path": "src/main/java/org/codehaus/groovy/runtime/DefaultGroovyStaticMethods.java", "license": "apache-2.0", "size": 11826 }
[ "java.text.ParseException", "java.text.SimpleDateFormat", "java.util.Date" ]
import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date;
import java.text.*; import java.util.*;
[ "java.text", "java.util" ]
java.text; java.util;
1,925,155
Event getBatchEvent(String batchID, Integer roundTripNumber, String eventID, boolean includeDetails) throws NotFoundException, ...
Event getBatchEvent(String batchID, Integer roundTripNumber, String eventID, boolean includeDetails) throws NotFoundException, NotWorkingProperlyException;
/** * Get information about the specific event on the specific batch * * @param batchID the batch id * @param roundTripNumber the round trip number of the specific batch * @param eventID the event id * @param includeDetails should the field "details" be set on the event. ...
Get information about the specific event on the specific batch
getBatchEvent
{ "repo_name": "statsbiblioteket/newspaper-batch-event-framework", "path": "process-monitor/process-monitor-datasource/process-monitor-datasource-interfaces/src/main/java/dk/statsbiblioteket/medieplatform/autonomous/processmonitor/datasources/DataSource.java", "license": "apache-2.0", "size": 2993 }
[ "dk.statsbiblioteket.medieplatform.autonomous.Event", "dk.statsbiblioteket.medieplatform.autonomous.NotFoundException" ]
import dk.statsbiblioteket.medieplatform.autonomous.Event; import dk.statsbiblioteket.medieplatform.autonomous.NotFoundException;
import dk.statsbiblioteket.medieplatform.autonomous.*;
[ "dk.statsbiblioteket.medieplatform" ]
dk.statsbiblioteket.medieplatform;
2,360,111
public static void main(String[] args) { String host; int port; char[] passphrase; System.out.println("InstallCert - Install CA certificate to Java Keystore"); System.out.println("====================================================="); final BufferedReader reader = new BufferedReader(new InputStreamRe...
static void function(String[] args) { String host; int port; char[] passphrase; System.out.println(STR); System.out.println(STR); final BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); try { if ((args.length == 1) (args.length == 2)) { String[] c = args[0].split(":"); host = c[0]; port = (c...
/** * The main - whole logic of Install Cert Tool. * * @param args * @throws Exception */
The main - whole logic of Install Cert Tool
main
{ "repo_name": "shitalm/jsignpdf2", "path": "src/main/java/net/sf/jsignpdf/InstallCert.java", "license": "gpl-2.0", "size": 10394 }
[ "java.io.BufferedReader", "java.io.File", "java.io.InputStreamReader", "java.security.KeyStore", "org.apache.commons.lang3.StringUtils" ]
import java.io.BufferedReader; import java.io.File; import java.io.InputStreamReader; import java.security.KeyStore; import org.apache.commons.lang3.StringUtils;
import java.io.*; import java.security.*; import org.apache.commons.lang3.*;
[ "java.io", "java.security", "org.apache.commons" ]
java.io; java.security; org.apache.commons;
236,644
public void startDocument() throws SAXException { super.startDocument(); _nsIndex.put(new Integer(0), new Integer(_uriCount++)); definePrefixAndUri(XML_PREFIX, XML_URI); }
void function() throws SAXException { super.startDocument(); _nsIndex.put(new Integer(0), new Integer(_uriCount++)); definePrefixAndUri(XML_PREFIX, XML_URI); }
/** * SAX2: Receive notification of the beginning of a document. */
SAX2: Receive notification of the beginning of a document
startDocument
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/dom/SAXImpl.java", "license": "mit", "size": 61748 }
[ "org.xml.sax.SAXException" ]
import org.xml.sax.SAXException;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
2,128,879
public Builder email(String email) { this.email = email; return this; }
Builder function(String email) { this.email = email; return this; }
/** * Email address for the customer. */
Email address for the customer
email
{ "repo_name": "cailingxiao/wire", "path": "wire-runtime/src/test/java/com/squareup/wire/protos/person/Person.java", "license": "apache-2.0", "size": 6327 }
[ "java.lang.String" ]
import java.lang.String;
import java.lang.*;
[ "java.lang" ]
java.lang;
2,753,130
private static Pair<ActionGraph, SortedMap<PathFragment, Artifact>> constructActionGraphAndPathMap( Iterable<ActionLookupValue> values, ConcurrentMap<ActionAnalysisMetadata, ConflictException> badActionMap) throws InterruptedException { MutableActionGraph actionGraph = new MapBased...
static Pair<ActionGraph, SortedMap<PathFragment, Artifact>> function( Iterable<ActionLookupValue> values, ConcurrentMap<ActionAnalysisMetadata, ConflictException> badActionMap) throws InterruptedException { MutableActionGraph actionGraph = new MapBasedActionGraph(); ConcurrentNavigableMap<PathFragment, Artifact> artifa...
/** * Simultaneously construct an action graph for all the actions in Skyframe and a map from * {@link PathFragment}s to their respective {@link Artifact}s. We do this in a threadpool to save * around 1.5 seconds on a mid-sized build versus a single-threaded operation. */
Simultaneously construct an action graph for all the actions in Skyframe and a map from <code>PathFragment</code>s to their respective <code>Artifact</code>s. We do this in a threadpool to save around 1.5 seconds on a mid-sized build versus a single-threaded operation
constructActionGraphAndPathMap
{ "repo_name": "Asana/bazel", "path": "src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java", "license": "apache-2.0", "size": 51234 }
[ "com.google.common.base.Throwables", "com.google.common.util.concurrent.ThreadFactoryBuilder", "com.google.devtools.build.lib.actions.ActionAnalysisMetadata", "com.google.devtools.build.lib.actions.ActionGraph", "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.actions.MapBa...
import com.google.common.base.Throwables; import com.google.common.util.concurrent.ThreadFactoryBuilder; import com.google.devtools.build.lib.actions.ActionAnalysisMetadata; import com.google.devtools.build.lib.actions.ActionGraph; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build....
import com.google.common.base.*; import com.google.common.util.concurrent.*; import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.concurrent.*; import com.google.devtools.build.lib.util.*; import com.google.devtools.build.lib.vfs.*; import java.util.*; import java.util.concurrent.*;
[ "com.google.common", "com.google.devtools", "java.util" ]
com.google.common; com.google.devtools; java.util;
1,801,465
public Optional<QueryBuilder> parseInnerQueryBuilder() throws IOException { // move to START object XContentParser.Token token; if (parser.currentToken() != XContentParser.Token.START_OBJECT) { token = parser.nextToken(); if (token != XContentParser.Token.START_OBJECT...
Optional<QueryBuilder> function() throws IOException { XContentParser.Token token; if (parser.currentToken() != XContentParser.Token.START_OBJECT) { token = parser.nextToken(); if (token != XContentParser.Token.START_OBJECT) { throw new ParsingException(parser.getTokenLocation(), STR); } } token = parser.nextToken(); i...
/** * Parses a query excluding the query element that wraps it */
Parses a query excluding the query element that wraps it
parseInnerQueryBuilder
{ "repo_name": "danielmitterdorfer/elasticsearch", "path": "core/src/main/java/org/elasticsearch/index/query/QueryParseContext.java", "license": "apache-2.0", "size": 6068 }
[ "java.io.IOException", "java.util.Optional", "org.elasticsearch.common.ParsingException", "org.elasticsearch.common.xcontent.XContentParser" ]
import java.io.IOException; import java.util.Optional; import org.elasticsearch.common.ParsingException; import org.elasticsearch.common.xcontent.XContentParser;
import java.io.*; import java.util.*; import org.elasticsearch.common.*; import org.elasticsearch.common.xcontent.*;
[ "java.io", "java.util", "org.elasticsearch.common" ]
java.io; java.util; org.elasticsearch.common;
1,413,629
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<NetworkInterfaceIpConfigurationInner>> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PagedResponse<NetworkInterfaceIpConfigurationInner>> function(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException(STR)); } if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } final Stri...
/** * Get the next page of items. * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked excepti...
Get the next page of items
listNextSinglePageAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceIpConfigurationsClientImpl.java", "license": "mit", "size": 26685 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedResponse", "com.azure.core.http.rest.PagedResponseBase", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.network.fluent.models.NetworkInterfaceIpConfigurationInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.models.NetworkInterfaceIpConfigurationInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.network.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,313,123
public MetaProperty<Integer> numberOfSteps() { return numberOfSteps; }
MetaProperty<Integer> function() { return numberOfSteps; }
/** * The meta-property for the {@code numberOfSteps} property. * @return the meta-property, not null */
The meta-property for the numberOfSteps property
numberOfSteps
{ "repo_name": "ChinaQuants/Strata", "path": "modules/pricer/src/main/java/com/opengamma/strata/pricer/impl/tree/ConstantContinuousSingleBarrierKnockoutFunction.java", "license": "apache-2.0", "size": 20079 }
[ "org.joda.beans.MetaProperty" ]
import org.joda.beans.MetaProperty;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
2,795,811
public List<Map<String, String>> getProjectCaseStudiesHistory(int projectID);
List<Map<String, String>> function(int projectID);
/** * This method returns the last five changes (only the user, date, action and justification) made in the interface of * project case studies to the project identified by the value received by parameter. * * @param projectID - Project identifier * @return a list of maps with the information */
This method returns the last five changes (only the user, date, action and justification) made in the interface of project case studies to the project identified by the value received by parameter
getProjectCaseStudiesHistory
{ "repo_name": "CCAFS/ccafs-ap", "path": "impactPathways/src/main/java/org/cgiar/ccafs/ap/data/dao/HistoryDAO.java", "license": "gpl-3.0", "size": 7064 }
[ "java.util.List", "java.util.Map" ]
import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
897,756
synchronized void openForWrite() throws IOException { Preconditions.checkState(state == State.BETWEEN_LOG_SEGMENTS, "Bad state: %s", state); //在上一个transactionid的基础上+1,这个Id是一个SegmetnId long segmentTxId = getLastWrittenTxId() + 1; // Safety check: we should never start a segment if there are ...
synchronized void openForWrite() throws IOException { Preconditions.checkState(state == State.BETWEEN_LOG_SEGMENTS, STR, state); long segmentTxId = getLastWrittenTxId() + 1; List<EditLogInputStream> streams = new ArrayList<EditLogInputStream>(); journalSet.selectInputStreams(streams, segmentTxId, true); if (!streams.is...
/** * Initialize the output stream for logging, opening the first * log segment. */
Initialize the output stream for logging, opening the first log segment
openForWrite
{ "repo_name": "VicoWu/hadoop-2.7.3", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLog.java", "license": "apache-2.0", "size": 60488 }
[ "com.google.common.base.Preconditions", "java.io.IOException", "java.util.ArrayList", "java.util.List", "org.apache.hadoop.io.IOUtils" ]
import com.google.common.base.Preconditions; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.hadoop.io.IOUtils;
import com.google.common.base.*; import java.io.*; import java.util.*; import org.apache.hadoop.io.*;
[ "com.google.common", "java.io", "java.util", "org.apache.hadoop" ]
com.google.common; java.io; java.util; org.apache.hadoop;
2,822,606
public RestOperationParamDefinition allowableValues(List<String> allowableValues) { setAllowableValues(allowableValues); return this; }
RestOperationParamDefinition function(List<String> allowableValues) { setAllowableValues(allowableValues); return this; }
/** * Allowed values of the parameter when its an enum type */
Allowed values of the parameter when its an enum type
allowableValues
{ "repo_name": "NetNow/camel", "path": "camel-core/src/main/java/org/apache/camel/model/rest/RestOperationParamDefinition.java", "license": "apache-2.0", "size": 7494 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,807,610
public Iterator<RNATemplateElement> rnaIterator() { return new RNAIterator(); }
Iterator<RNATemplateElement> function() { return new RNAIterator(); }
/** * Iterates over the elements of the template, in the sequence order. * Helixes will be given twice. * Only one connected component will be iterated on. * Note that if there is a cycle, the iterator may return a infinite * number of elements. */
Iterates over the elements of the template, in the sequence order. Helixes will be given twice. Only one connected component will be iterated on. Note that if there is a cycle, the iterator may return a infinite number of elements
rnaIterator
{ "repo_name": "ingolfured/StatAlign", "path": "src/fr/orsay/lri/varna/models/templates/RNATemplate.java", "license": "gpl-3.0", "size": 57262 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,400,989
public static URL[] getFileUrls(URL contextUrl, String[] fileUrls) throws MalformedURLException { if (fileUrls == null) { return null; } URL[] resultFileUrls = new URL[fileUrls.length]; for (int i = 0; i < fileUrls.length; i++) { resultFileUrls[i] = getFileURL(contextUrl, fileUrls[i]); } return re...
static URL[] function(URL contextUrl, String[] fileUrls) throws MalformedURLException { if (fileUrls == null) { return null; } URL[] resultFileUrls = new URL[fileUrls.length]; for (int i = 0; i < fileUrls.length; i++) { resultFileUrls[i] = getFileURL(contextUrl, fileUrls[i]); } return resultFileUrls; }
/** * Converts a list of file URLs to URL objects by calling {@link #getFileURL(URL, String)}. * * @param contextUrl URL context for converting relative paths to absolute ones * @param fileUrls array of string file URLs * * @return an array of file URL objects * * @throws Malform...
Converts a list of file URLs to URL objects by calling <code>#getFileURL(URL, String)</code>
getFileUrls
{ "repo_name": "CloverETL/CloverETL-Engine", "path": "cloveretl.engine/src/org/jetel/util/file/FileUtils.java", "license": "lgpl-2.1", "size": 97871 }
[ "java.net.MalformedURLException" ]
import java.net.MalformedURLException;
import java.net.*;
[ "java.net" ]
java.net;
2,720,260
public Element handle(FreeColServer server, Player player, Connection connection) { final ServerPlayer serverPlayer = server.getPlayer(connection); Unit unit; try { unit = player.getOurFreeColGameObject(unitId, Unit.class); } catch (Exception e)...
Element function(FreeColServer server, Player player, Connection connection) { final ServerPlayer serverPlayer = server.getPlayer(connection); Unit unit; try { unit = player.getOurFreeColGameObject(unitId, Unit.class); } catch (Exception e) { return DOMMessage.clientError(e.getMessage()); } return server.getInGameContr...
/** * Handle a "clearSpeciality"-message. * * @param server The <code>FreeColServer</code> handling the message. * @param player The <code>Player</code> the message applies to. * @param connection The <code>Connection</code> message was received on. * @return An update containing the clear...
Handle a "clearSpeciality"-message
handle
{ "repo_name": "edijman/SOEN_6431_Colonization_Game", "path": "src/net/sf/freecol/common/networking/ClearSpecialityMessage.java", "license": "gpl-2.0", "size": 3344 }
[ "net.sf.freecol.common.model.Player", "net.sf.freecol.common.model.Unit", "net.sf.freecol.server.FreeColServer", "net.sf.freecol.server.model.ServerPlayer", "org.w3c.dom.Element" ]
import net.sf.freecol.common.model.Player; import net.sf.freecol.common.model.Unit; import net.sf.freecol.server.FreeColServer; import net.sf.freecol.server.model.ServerPlayer; import org.w3c.dom.Element;
import net.sf.freecol.common.model.*; import net.sf.freecol.server.*; import net.sf.freecol.server.model.*; import org.w3c.dom.*;
[ "net.sf.freecol", "org.w3c.dom" ]
net.sf.freecol; org.w3c.dom;
897,570
public Map<String, String> getCustomer() { return customer; }
Map<String, String> function() { return customer; }
/** * Gets the customer attribute. * @return Returns the customer. */
Gets the customer attribute
getCustomer
{ "repo_name": "ua-eas/kfs-devops-automation-fork", "path": "kfs-ar/src/main/java/org/kuali/kfs/module/ar/report/util/CustomerStatementReportDataHolder.java", "license": "agpl-3.0", "size": 4961 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
289,946
private void setSlot(int i, DataCursor cursor) { keys[i] = KeyRange.getByteArray(cursor.getKeyThang()); if (keys != priKeys) { priKeys[i] = KeyRange.getByteArray (cursor.getPrimaryKeyThang()); } values[i] = KeyRange.getByteArray(cursor.getValueThang());...
void function(int i, DataCursor cursor) { keys[i] = KeyRange.getByteArray(cursor.getKeyThang()); if (keys != priKeys) { priKeys[i] = KeyRange.getByteArray (cursor.getPrimaryKeyThang()); } values[i] = KeyRange.getByteArray(cursor.getValueThang()); }
/** * Sets a given slot using the data in the given cursor. */
Sets a given slot using the data in the given cursor
setSlot
{ "repo_name": "prat0318/dbms", "path": "mini_dbms/je-5.0.103/src/com/sleepycat/collections/BlockIterator.java", "license": "mit", "size": 26059 }
[ "com.sleepycat.util.keyrange.KeyRange" ]
import com.sleepycat.util.keyrange.KeyRange;
import com.sleepycat.util.keyrange.*;
[ "com.sleepycat.util" ]
com.sleepycat.util;
69,187
public String getColorProfile() throws DOMException { return colorProfile; }
String function() throws DOMException { return colorProfile; }
/** * Returns the color name. */
Returns the color name
getColorProfile
{ "repo_name": "apache/batik", "path": "batik-css/src/main/java/org/apache/batik/css/engine/value/svg12/ICCNamedColor.java", "license": "apache-2.0", "size": 2437 }
[ "org.w3c.dom.DOMException" ]
import org.w3c.dom.DOMException;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
877,920
@Test public void testBooleanFlag() { Flags flags = new Flags() .loadOpts(FlagsBooleanFlag.class) .parse(new String[] {"--boolean", "--Boolean"}); assertEquals(true, FlagsBooleanFlag.bool); assertEquals(true, FlagsBooleanFlag.bool2); flags.parse(new String[]...
void function() { Flags flags = new Flags() .loadOpts(FlagsBooleanFlag.class) .parse(new String[] {STR, STR}); assertEquals(true, FlagsBooleanFlag.bool); assertEquals(true, FlagsBooleanFlag.bool2); flags.parse(new String[] {STR, "false", STR}); assertEquals(false, FlagsBooleanFlag.bool); assertEquals(false, FlagsBoolea...
/** * Boolean flags should be set to true if no parameter is set, or parameter is set to true. * False otherwise. */
Boolean flags should be set to true if no parameter is set, or parameter is set to true. False otherwise
testBooleanFlag
{ "repo_name": "Cloudname/cloudname", "path": "flags/src/test/java/org/cloudname/flags/FlagsTest.java", "license": "apache-2.0", "size": 17621 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,877,619
public CapitalAssetSystem retrieveCapitalAssetSystemForOneSystem(Integer poId);
CapitalAssetSystem function(Integer poId);
/** * Return a CapitalAssetSystem which provides the capital asset information such as asset numbers and asset type. * * @param poId Purchase Order ID used to retrieve the asset information for the current PO * @return CapitalAssetSystem */
Return a CapitalAssetSystem which provides the capital asset information such as asset numbers and asset type
retrieveCapitalAssetSystemForOneSystem
{ "repo_name": "Ariah-Group/Finance", "path": "af_webapp/src/main/java/org/kuali/kfs/module/purap/document/service/PurchaseOrderService.java", "license": "apache-2.0", "size": 21955 }
[ "org.kuali.kfs.integration.purap.CapitalAssetSystem" ]
import org.kuali.kfs.integration.purap.CapitalAssetSystem;
import org.kuali.kfs.integration.purap.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
2,048,817
public static String uploadFile(boolean binaryTransfer, File localFile, String ftpServer, String ftpServerPort, String ftpServerUserName, String ftpServerPassword, String ftpServerRemotePath) { String remote = null; boolean uploadComplete = false; try { connect(ftpServer, ftpServerPort, ftpServerUserName, f...
static String function(boolean binaryTransfer, File localFile, String ftpServer, String ftpServerPort, String ftpServerUserName, String ftpServerPassword, String ftpServerRemotePath) { String remote = null; boolean uploadComplete = false; try { connect(ftpServer, ftpServerPort, ftpServerUserName, ftpServerPassword); lo...
/** * Uploads a given file to the connected FTP Server * * @param binaryTransfer * @param localFile * @return remote FTP location of the file */
Uploads a given file to the connected FTP Server
uploadFile
{ "repo_name": "FreekDB/transmartApp", "path": "src/java/com/recomdata/transmart/data/export/util/FTPUtil.java", "license": "gpl-3.0", "size": 8445 }
[ "com.recomdata.transmart.data.export.exception.FTPAuthenticationException", "com.recomdata.transmart.data.export.exception.InvalidFTPParamsException", "java.io.File", "java.io.FileInputStream", "java.io.FileNotFoundException", "java.io.IOException", "java.io.InputStream" ]
import com.recomdata.transmart.data.export.exception.FTPAuthenticationException; import com.recomdata.transmart.data.export.exception.InvalidFTPParamsException; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream;
import com.recomdata.transmart.data.export.exception.*; import java.io.*;
[ "com.recomdata.transmart", "java.io" ]
com.recomdata.transmart; java.io;
1,762,623
@Test(expectedExceptions = Exception.class) public final void testRead_Reader_Closed_ThrowsException() { Reader reader = null; // Stubbed reader try { reader = new InputStreamReader(new PipedInputStream()); reader.close(); } catch (final Exception e) { ...
@Test(expectedExceptions = Exception.class) final void function() { Reader reader = null; try { reader = new InputStreamReader(new PipedInputStream()); reader.close(); } catch (final Exception e) { Assert.fail(e.getMessage()); } parser.parse(reader); }
/** * Tests an {@code Exception} is thrown when reading from a closed * {@code Reader}. */
Tests an Exception is thrown when reading from a closed Reader
testRead_Reader_Closed_ThrowsException
{ "repo_name": "Bernardo-MG/java-patterns-files", "path": "src/test/java/com/wandrell/pattern/testing/util/test/unit/parser/xml/exception/AbstractUnitExceptionParseXMLReaderParser.java", "license": "mit", "size": 3539 }
[ "java.io.InputStreamReader", "java.io.PipedInputStream", "java.io.Reader", "org.testng.Assert", "org.testng.annotations.Test" ]
import java.io.InputStreamReader; import java.io.PipedInputStream; import java.io.Reader; import org.testng.Assert; import org.testng.annotations.Test;
import java.io.*; import org.testng.*; import org.testng.annotations.*;
[ "java.io", "org.testng", "org.testng.annotations" ]
java.io; org.testng; org.testng.annotations;
1,380,776
@JsonProperty(required = true) public String getMethod() { return method; }
@JsonProperty(required = true) String function() { return method; }
/** * Get the JSON-RPC method name. * * @return */
Get the JSON-RPC method name
getMethod
{ "repo_name": "beyama/android-a2r-client", "path": "src/eu/addicted2random/a2rclient/jsonrpc/Request.java", "license": "bsd-3-clause", "size": 4863 }
[ "com.fasterxml.jackson.annotation.JsonProperty" ]
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.*;
[ "com.fasterxml.jackson" ]
com.fasterxml.jackson;
1,847,679
public static boolean createSite(WebDrone drone, final String siteName, String desc, String siteVisibility, boolean handleDuplicateSite) { if (siteName == null || siteName.isEmpty()) { throw new IllegalArgumentException("site name is required"); } boolean siteCr...
static boolean function(WebDrone drone, final String siteName, String desc, String siteVisibility, boolean handleDuplicateSite) { if (siteName == null siteName.isEmpty()) { throw new IllegalArgumentException(STR); } boolean siteCreated = false; DashBoardPage dashBoard; SharePage site = null; try { SharePage page = dron...
/** * Create a new site or handle exception if site already exists. * * @param drone * @param siteName * @param desc * @param siteVisibility * @param handleDuplicateSite * @return */
Create a new site or handle exception if site already exists
createSite
{ "repo_name": "loftuxab/community-edition-old", "path": "projects/qa-share/src/main/java/org/alfresco/share/util/SiteUtil.java", "license": "lgpl-3.0", "size": 18535 }
[ "org.alfresco.po.share.DashBoardPage", "org.alfresco.po.share.SharePage", "org.alfresco.po.share.site.CreateSitePage", "org.alfresco.webdrone.WebDrone", "org.openqa.selenium.NoSuchElementException" ]
import org.alfresco.po.share.DashBoardPage; import org.alfresco.po.share.SharePage; import org.alfresco.po.share.site.CreateSitePage; import org.alfresco.webdrone.WebDrone; import org.openqa.selenium.NoSuchElementException;
import org.alfresco.po.share.*; import org.alfresco.po.share.site.*; import org.alfresco.webdrone.*; import org.openqa.selenium.*;
[ "org.alfresco.po", "org.alfresco.webdrone", "org.openqa.selenium" ]
org.alfresco.po; org.alfresco.webdrone; org.openqa.selenium;
992,239
@Generated(hash = 713229351) public void update() { if (myDao == null) { throw new DaoException("Entity is detached from DAO context"); } myDao.update(this); }
@Generated(hash = 713229351) void function() { if (myDao == null) { throw new DaoException(STR); } myDao.update(this); }
/** * Convenient call for {@link org.greenrobot.greendao.AbstractDao#update(Object)}. * Entity must attached to an entity context. */
Convenient call for <code>org.greenrobot.greendao.AbstractDao#update(Object)</code>. Entity must attached to an entity context
update
{ "repo_name": "sladomic/literacyapp-android", "path": "contentprovider/src/main/java/org/literacyapp/contentprovider/model/content/Number.java", "license": "apache-2.0", "size": 5984 }
[ "org.greenrobot.greendao.DaoException", "org.greenrobot.greendao.annotation.Generated" ]
import org.greenrobot.greendao.DaoException; import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.*; import org.greenrobot.greendao.annotation.*;
[ "org.greenrobot.greendao" ]
org.greenrobot.greendao;
1,974,453
String toJsonString(CryptoMode mode) { return mode == CryptoMode.EncryptionOnly && !usesKMSKey() ? toJsonStringEO() : toJsonString(); }
String toJsonString(CryptoMode mode) { return mode == CryptoMode.EncryptionOnly && !usesKMSKey() ? toJsonStringEO() : toJsonString(); }
/** * Returns the json string in backward compatibility (old) format, so it can * be read by older version of the Amazon Web Services SDK. */
Returns the json string in backward compatibility (old) format, so it can be read by older version of the Amazon Web Services SDK
toJsonString
{ "repo_name": "aws/aws-sdk-java", "path": "aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/v1/ContentCryptoMaterial.java", "license": "apache-2.0", "size": 47199 }
[ "com.amazonaws.services.s3.model.CryptoMode" ]
import com.amazonaws.services.s3.model.CryptoMode;
import com.amazonaws.services.s3.model.*;
[ "com.amazonaws.services" ]
com.amazonaws.services;
2,236,449
public static void truncateBlocking(String keyspace, String cfname) throws UnavailableException, TimeoutException { logger.debug("Starting a blocking truncate operation on keyspace {}, CF {}", keyspace, cfname); if (isAnyStorageHostDown()) { logger.info("Cannot perform trunca...
static void function(String keyspace, String cfname) throws UnavailableException, TimeoutException { logger.debug(STR, keyspace, cfname); if (isAnyStorageHostDown()) { logger.info(STR); int liveMembers = Gossiper.instance.getLiveMembers().size(); throw UnavailableException.create(ConsistencyLevel.ALL, liveMembers + Gos...
/** * Performs the truncate operatoin, which effectively deletes all data from * the column family cfname * @param keyspace * @param cfname * @throws UnavailableException If some of the hosts in the ring are down. * @throws TimeoutException */
Performs the truncate operatoin, which effectively deletes all data from the column family cfname
truncateBlocking
{ "repo_name": "aholmberg/cassandra", "path": "src/java/org/apache/cassandra/service/StorageProxy.java", "license": "apache-2.0", "size": 126273 }
[ "java.util.Set", "java.util.concurrent.TimeoutException", "org.apache.cassandra.db.ConsistencyLevel", "org.apache.cassandra.db.TruncateRequest", "org.apache.cassandra.exceptions.UnavailableException", "org.apache.cassandra.gms.Gossiper", "org.apache.cassandra.locator.InetAddressAndPort", "org.apache.c...
import java.util.Set; import java.util.concurrent.TimeoutException; import org.apache.cassandra.db.ConsistencyLevel; import org.apache.cassandra.db.TruncateRequest; import org.apache.cassandra.exceptions.UnavailableException; import org.apache.cassandra.gms.Gossiper; import org.apache.cassandra.locator.InetAddressAndPo...
import java.util.*; import java.util.concurrent.*; import org.apache.cassandra.db.*; import org.apache.cassandra.exceptions.*; import org.apache.cassandra.gms.*; import org.apache.cassandra.locator.*; import org.apache.cassandra.net.*; import org.apache.cassandra.tracing.*;
[ "java.util", "org.apache.cassandra" ]
java.util; org.apache.cassandra;
853,589
public Date getSelection() { return hasSelection() ? selection[0] : null; }
Date function() { return hasSelection() ? selection[0] : null; }
/** * Get the current selection of this CDateTime widget, or null if there is * no selection. * * @return the current selection */
Get the current selection of this CDateTime widget, or null if there is no selection
getSelection
{ "repo_name": "debrief/debrief", "path": "org.eclipse.nebula.widgets.cdatetime/src/org/eclipse/nebula/widgets/cdatetime/CDateTime.java", "license": "epl-1.0", "size": 61447 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,070,586
@RequestMapping(method = RequestMethod.GET, value = "/getName") public String getName() { LOG.debug("Account details Request came to AccountRestController.getName....."); return "name"; }
@RequestMapping(method = RequestMethod.GET, value = STR) String function() { LOG.debug(STR); return "name"; }
/** * Fetch the account details of the account holder name passed. * * @param accountName * @return accountHolderOutput */
Fetch the account details of the account holder name passed
getName
{ "repo_name": "parthiban-samykutti/soapRestWebService", "path": "springRestWsSecurity/src/main/java/com/parthi/spring/ws/rest/controller/AccountRestController.java", "license": "gpl-3.0", "size": 2690 }
[ "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.bind.annotation.RequestMethod" ]
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.*;
[ "org.springframework.web" ]
org.springframework.web;
631,022
public void onCoreAudioOutput(double timestamp, Set<AudioLet> outputLets);
void function(double timestamp, Set<AudioLet> outputLets);
/** * This callback is called when new audio output is required. * @param timestamp The time in samples at the beginning of the block. * @param outputLets The set of output AudioLets with which Core Audio was initialized. */
This callback is called when new audio output is required
onCoreAudioOutput
{ "repo_name": "section6/JCoreAudio", "path": "src/ch/section6/jcoreaudio/CoreAudioListener.java", "license": "gpl-3.0", "size": 1530 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,715,185
public Path getWorkingDir() { return Paths.get(context.getEnvironmentVariables().get(ENV_TEST_BASE_DIR), "file"); }
Path function() { return Paths.get(context.getEnvironmentVariables().get(ENV_TEST_BASE_DIR), "file"); }
/** * Returns the working directory. * @return the working directory */
Returns the working directory
getWorkingDir
{ "repo_name": "akirakw/asakusafw", "path": "windgate-project/asakusa-windgate-test-inprocess/src/test/java/com/asakusafw/testdriver/windgate/inprocess/InProcessWindGateTaskExecutorTestRoot.java", "license": "apache-2.0", "size": 4553 }
[ "java.nio.file.Path", "java.nio.file.Paths" ]
import java.nio.file.Path; import java.nio.file.Paths;
import java.nio.file.*;
[ "java.nio" ]
java.nio;
2,321,623
@Test public void testEverythingWithDefaultLoader() throws Exception { System.out.println("\nStarting ClassPathLoaderTest#testEverythingWithDefaultLoader"); // create DCL such that parent cannot find anything ClassPathLoader dcl = ClassPathLoader.createWithDefaults(true); ClassLoader cl = Thread.c...
void function() throws Exception { System.out.println(STR); ClassPathLoader dcl = ClassPathLoader.createWithDefaults(true); ClassLoader cl = Thread.currentThread().getContextClassLoader(); try { Thread.currentThread().setContextClassLoader(new BrokenClassLoader()); String classToLoad = STR; Class<?> clazz = dcl.forName...
/** * Verifies that the class classloader or system classloader will find the class or resource. * Parent is a {@link NullClassLoader} while the TCCL is an excluded {@link BrokenClassLoader}. */
Verifies that the class classloader or system classloader will find the class or resource. Parent is a <code>NullClassLoader</code> while the TCCL is an excluded <code>BrokenClassLoader</code>
testEverythingWithDefaultLoader
{ "repo_name": "charliemblack/geode", "path": "geode-core/src/test/java/org/apache/geode/internal/ClassPathLoaderTest.java", "license": "apache-2.0", "size": 21201 }
[ "java.io.InputStream", "org.assertj.core.api.Assertions" ]
import java.io.InputStream; import org.assertj.core.api.Assertions;
import java.io.*; import org.assertj.core.api.*;
[ "java.io", "org.assertj.core" ]
java.io; org.assertj.core;
1,512,892
if (inode == null) { throw new FileNotFoundException("File does not exist: " + path); } if (!(inode instanceof INodeFile)) { throw new FileNotFoundException("Path is not a file: " + path); } return (INodeFile) inode; } //Number of bits for Block size static final short BLOCKBITS = 48;...
if (inode == null) { throw new FileNotFoundException(STR + path); } if (!(inode instanceof INodeFile)) { throw new FileNotFoundException(STR + path); } return (INodeFile) inode; } static final short BLOCKBITS = 48; static final long HEADERMASK = 0xffffL << BLOCKBITS; private long header; private int generationStamp = (...
/** * Cast INode to INodeFile. */
Cast INode to INodeFile
valueOf
{ "repo_name": "srijeyanthan/hops", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeFile.java", "license": "apache-2.0", "size": 11616 }
[ "io.hops.exception.StorageException", "io.hops.exception.TransactionContextException", "java.io.FileNotFoundException", "org.apache.hadoop.fs.permission.PermissionStatus", "org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo", "org.apache.hadoop.hdfs.server.common.GenerationStamp" ]
import io.hops.exception.StorageException; import io.hops.exception.TransactionContextException; import java.io.FileNotFoundException; import org.apache.hadoop.fs.permission.PermissionStatus; import org.apache.hadoop.hdfs.server.blockmanagement.BlockInfo; import org.apache.hadoop.hdfs.server.common.GenerationStamp;
import io.hops.exception.*; import java.io.*; import org.apache.hadoop.fs.permission.*; import org.apache.hadoop.hdfs.server.blockmanagement.*; import org.apache.hadoop.hdfs.server.common.*;
[ "io.hops.exception", "java.io", "org.apache.hadoop" ]
io.hops.exception; java.io; org.apache.hadoop;
2,798,033
public boolean canContain(LaborOriginEntry laborOriginEntry) { return this.hasSameKey(laborOriginEntry); }
boolean function(LaborOriginEntry laborOriginEntry) { return this.hasSameKey(laborOriginEntry); }
/** * Determine if the given origin entry belongs to the current unit of work * * @param laborOriginEntry the given origin entry * @return true if the given origin entry belongs to the current unit of work; otherwise, false */
Determine if the given origin entry belongs to the current unit of work
canContain
{ "repo_name": "bhutchinson/kfs", "path": "kfs-ld/src/main/java/org/kuali/kfs/module/ld/util/LaborLedgerUnitOfWork.java", "license": "agpl-3.0", "size": 7489 }
[ "org.kuali.kfs.module.ld.businessobject.LaborOriginEntry" ]
import org.kuali.kfs.module.ld.businessobject.LaborOriginEntry;
import org.kuali.kfs.module.ld.businessobject.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
41,050
public GroupBy getGroupBy() { return groupBy; }
GroupBy function() { return groupBy; }
/** * getter method for property groupBy * * @return the groupBy */
getter method for property groupBy
getGroupBy
{ "repo_name": "sdgdsffdsfff/bi-platform", "path": "queryrouter/src/main/java/com/baidu/rigel/biplatform/queryrouter/query/vo/QueryRequest.java", "license": "apache-2.0", "size": 11938 }
[ "com.baidu.rigel.biplatform.queryrouter.query.vo.sql.GroupBy" ]
import com.baidu.rigel.biplatform.queryrouter.query.vo.sql.GroupBy;
import com.baidu.rigel.biplatform.queryrouter.query.vo.sql.*;
[ "com.baidu.rigel" ]
com.baidu.rigel;
1,675,814
public List<BBBEPubNavigationNode> getChildren() { return children; }
List<BBBEPubNavigationNode> function() { return children; }
/** * Returns a list of this navigation nodes child elements * * @return */
Returns a list of this navigation nodes child elements
getChildren
{ "repo_name": "blinkboxbooks/android-ePub-Library", "path": "src/main/java/com/blinkbox/java/book/model/BBBEPubNavigationNode.java", "license": "mit", "size": 1383 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,563,732
static boolean isTransferToLocalEnabled() { GlobalMediaRouter globalMediaRouter = getGlobalRouter(); return globalMediaRouter == null ? false : globalMediaRouter.isTransferToLocalEnabled(); } public static class RouteInfo { private final ProviderInfo mProvider; final St...
static boolean isTransferToLocalEnabled() { GlobalMediaRouter globalMediaRouter = getGlobalRouter(); return globalMediaRouter == null ? false : globalMediaRouter.isTransferToLocalEnabled(); } public static class RouteInfo { private final ProviderInfo mProvider; final String mDescriptorId; final String mUniqueId; privat...
/** * Returns whether transferring media from remote to local is enabled. */
Returns whether transferring media from remote to local is enabled
isTransferToLocalEnabled
{ "repo_name": "AndroidX/androidx", "path": "mediarouter/mediarouter/src/main/java/androidx/mediarouter/media/MediaRouter.java", "license": "apache-2.0", "size": 169014 }
[ "android.content.IntentFilter", "android.content.IntentSender", "android.net.Uri", "android.os.Bundle", "android.view.Display", "androidx.annotation.IntDef", "androidx.annotation.RestrictTo", "androidx.mediarouter.media.MediaRouteProvider", "java.lang.annotation.Retention", "java.lang.annotation.R...
import android.content.IntentFilter; import android.content.IntentSender; import android.net.Uri; import android.os.Bundle; import android.view.Display; import androidx.annotation.IntDef; import androidx.annotation.RestrictTo; import androidx.mediarouter.media.MediaRouteProvider; import java.lang.annotation.Retention; ...
import android.content.*; import android.net.*; import android.os.*; import android.view.*; import androidx.annotation.*; import androidx.mediarouter.media.*; import java.lang.annotation.*; import java.util.*;
[ "android.content", "android.net", "android.os", "android.view", "androidx.annotation", "androidx.mediarouter", "java.lang", "java.util" ]
android.content; android.net; android.os; android.view; androidx.annotation; androidx.mediarouter; java.lang; java.util;
1,125,191
public Observable<ServiceResponse<String>> vpnDeviceConfigurationScriptWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGro...
Observable<ServiceResponse<String>> function(String resourceGroupName, String virtualNetworkGatewayConnectionName, VpnDeviceScriptParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (virtualNetworkGatewayConnectionName == null) { throw new IllegalArgumentException(STR...
/** * Gets a xml format representation for vpn device configuration script. * * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway connection for which the configuration script is generated. * @param para...
Gets a xml format representation for vpn device configuration script
vpnDeviceConfigurationScriptWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/VirtualNetworkGatewaysInner.java", "license": "mit", "size": 231307 }
[ "com.microsoft.azure.management.network.v2019_04_01.VpnDeviceScriptParameters", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.management.network.v2019_04_01.VpnDeviceScriptParameters; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.management.network.v2019_04_01.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
2,113,976
public static void computeNormalizedScore(ClusterSet clusters) throws Exception { logger.info("------ compute Sum ------"); for (String name : clusters) { Cluster cluster = clusters.getCluster(name); cluster.computeNormalizedScore(); logger.fine("Cluster: " + name); cluster.debugSpeakerName(); } ...
static void function(ClusterSet clusters) throws Exception { logger.info(STR); for (String name : clusters) { Cluster cluster = clusters.getCluster(name); cluster.computeNormalizedScore(); logger.fine(STR + name); cluster.debugSpeakerName(); } }
/** * Compute normalized score. * * @param clusters the clusters * @throws Exception the exception */
Compute normalized score
computeNormalizedScore
{ "repo_name": "Adirockzz95/GenderDetect", "path": "src/src/fr/lium/experimental/spkDiarization/programs/SpeakerIdenificationDecision9.java", "license": "gpl-3.0", "size": 41469 }
[ "fr.lium.spkDiarization.libClusteringData.Cluster", "fr.lium.spkDiarization.libClusteringData.ClusterSet" ]
import fr.lium.spkDiarization.libClusteringData.Cluster; import fr.lium.spkDiarization.libClusteringData.ClusterSet;
import fr.lium.*;
[ "fr.lium" ]
fr.lium;
1,756,284
public void assertEmpty(AssertionInfo info, CharSequence actual) { assertNotNull(info, actual); if (hasContent(actual)) throw failures.failure(info, shouldBeEmpty(actual)); }
void function(AssertionInfo info, CharSequence actual) { assertNotNull(info, actual); if (hasContent(actual)) throw failures.failure(info, shouldBeEmpty(actual)); }
/** * Asserts that the given {@code CharSequence} is empty. * * @param info contains information about the assertion. * @param actual the given {@code CharSequence}. * @throws AssertionError if the given {@code CharSequence} is {@code null}. * @throws AssertionError if the given {@code CharSequence} i...
Asserts that the given CharSequence is empty
assertEmpty
{ "repo_name": "xasx/assertj-core", "path": "src/main/java/org/assertj/core/internal/Strings.java", "license": "apache-2.0", "size": 53576 }
[ "org.assertj.core.api.AssertionInfo", "org.assertj.core.error.ShouldBeEmpty" ]
import org.assertj.core.api.AssertionInfo; import org.assertj.core.error.ShouldBeEmpty;
import org.assertj.core.api.*; import org.assertj.core.error.*;
[ "org.assertj.core" ]
org.assertj.core;
2,731,721
public void setFontName(String fontName) { m_FontName = fontName; StyleConstants.setFontFamily(DEFAULT_NORMAL, fontName); StyleConstants.setFontFamily(DEFAULT_STRING, fontName); StyleConstants.setFontFamily(DEFAULT_COMMENT, fontName); }
void function(String fontName) { m_FontName = fontName; StyleConstants.setFontFamily(DEFAULT_NORMAL, fontName); StyleConstants.setFontFamily(DEFAULT_STRING, fontName); StyleConstants.setFontFamily(DEFAULT_COMMENT, fontName); }
/** * sets the current font family (affects all built-in styles). * * @param fontName * the font name */
sets the current font family (affects all built-in styles)
setFontName
{ "repo_name": "automenta/adams-core", "path": "src/main/java/adams/gui/scripting/SyntaxDocument.java", "license": "gpl-3.0", "size": 36185 }
[ "javax.swing.text.StyleConstants" ]
import javax.swing.text.StyleConstants;
import javax.swing.text.*;
[ "javax.swing" ]
javax.swing;
2,007,948
@Override public final <T> FluentIterable<T> map(Function<? super E, T> function) { List<T> temporaryList = new ArrayList<>(); Iterator<E> iterator = iterator(); while (iterator.hasNext()) { temporaryList.add(function.apply(iterator.next())); } return from(temporaryList); }
final <T> FluentIterable<T> function(Function<? super E, T> function) { List<T> temporaryList = new ArrayList<>(); Iterator<E> iterator = iterator(); while (iterator.hasNext()) { temporaryList.add(function.apply(iterator.next())); } return from(temporaryList); }
/** * Transforms this FluentIterable into a new one containing objects of the type T. * * @param function a function that transforms an instance of E into an instance of T * @param <T> the target type of the transformation * @return a new FluentIterable of the new type */
Transforms this FluentIterable into a new one containing objects of the type T
map
{ "repo_name": "italoag/java-design-patterns", "path": "fluentinterface/src/main/java/com/iluwatar/fluentinterface/fluentiterable/simple/SimpleFluentIterable.java", "license": "mit", "size": 6893 }
[ "com.iluwatar.fluentinterface.fluentiterable.FluentIterable", "java.util.ArrayList", "java.util.Iterator", "java.util.List", "java.util.function.Function" ]
import com.iluwatar.fluentinterface.fluentiterable.FluentIterable; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.function.Function;
import com.iluwatar.fluentinterface.fluentiterable.*; import java.util.*; import java.util.function.*;
[ "com.iluwatar.fluentinterface", "java.util" ]
com.iluwatar.fluentinterface; java.util;
1,360,313
public void Rename(ResponseCallback cb, String src, String dst) { try { if (mVerbose) log.info("Renaming "+ src +" -> "+ dst); mFilesystem.rename(new Path(src), new Path(dst)); } catch (IOException e) { mMetricsHandler.incrementErrorCount(...
void function(ResponseCallback cb, String src, String dst) { try { if (mVerbose) log.info(STR+ src +STR+ dst); mFilesystem.rename(new Path(src), new Path(dst)); } catch (IOException e) { mMetricsHandler.incrementErrorCount(); log.severe(STR+ src + STR+ dst +STR + e.toString()); cb.error(Error.DFSBROKER_IO_ERROR, e.toSt...
/** * Do the rename */
Do the rename
Rename
{ "repo_name": "amyvmiwei/miwei_temp", "path": "java/hypertable-apache2/src/main/java/org/hypertable/FsBroker/hadoop/HadoopBroker.java", "license": "gpl-3.0", "size": 38381 }
[ "java.io.IOException", "org.apache.hadoop.fs.Path", "org.hypertable.AsyncComm", "org.hypertable.Common" ]
import java.io.IOException; import org.apache.hadoop.fs.Path; import org.hypertable.AsyncComm; import org.hypertable.Common;
import java.io.*; import org.apache.hadoop.fs.*; import org.hypertable.*;
[ "java.io", "org.apache.hadoop", "org.hypertable" ]
java.io; org.apache.hadoop; org.hypertable;
1,824,104
public Vector getMediaDescriptions(boolean create) throws SdpException;
Vector function(boolean create) throws SdpException;
/** Adds a MediaDescription to the session description. These correspond to the m= * fields of the SDP data. * @param create boolean to set * @throws SdpException * @return media - the field to add. */
Adds a MediaDescription to the session description. These correspond to the m= fields of the SDP data
getMediaDescriptions
{ "repo_name": "adamfisk/littleshoot-client", "path": "common/sdp/src/main/java/org/lastbamboo/common/sdp/api/SessionDescription.java", "license": "gpl-2.0", "size": 11152 }
[ "java.util.Vector" ]
import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
491,745
private static boolean compare(List vector1, List vector2) { return vector1.size() == vector2.size() && vector1.containsAll(vector2); }
static boolean function(List vector1, List vector2) { return vector1.size() == vector2.size() && vector1.containsAll(vector2); }
/** * compares two vectors regardless of the order of their elements */
compares two vectors regardless of the order of their elements
compare
{ "repo_name": "nightauer/quickdic-dictionary.dictionary", "path": "jars/icu4j-52_1/main/tests/core/src/com/ibm/icu/dev/test/format/IntlTestDecimalFormatAPIC.java", "license": "apache-2.0", "size": 19527 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,719,418
private void open() throws DatabaseException { StoreConfig config = new StoreConfig(); config.setAllowCreate(envConfig.getAllowCreate()); config.setTransactional(envConfig.getTransactional()); store = new EntityStore(env, "test", config); primary = store.getPrimary...
void function() throws DatabaseException { StoreConfig config = new StoreConfig(); config.setAllowCreate(envConfig.getAllowCreate()); config.setTransactional(envConfig.getTransactional()); store = new EntityStore(env, "test", config); primary = store.getPrimaryIndex(Integer.class, MyEntity.class); oneToOne = store.getS...
/** * Opens the store. */
Opens the store
open
{ "repo_name": "genehallman/node-berkeleydb", "path": "deps/db-18.1.40/test/java/compat/src/com/sleepycat/persist/test/IndexTest.java", "license": "mit", "size": 29694 }
[ "com.sleepycat.db.DatabaseException", "com.sleepycat.persist.EntityStore", "com.sleepycat.persist.StoreConfig", "com.sleepycat.persist.raw.RawStore", "org.junit.Assert" ]
import com.sleepycat.db.DatabaseException; import com.sleepycat.persist.EntityStore; import com.sleepycat.persist.StoreConfig; import com.sleepycat.persist.raw.RawStore; import org.junit.Assert;
import com.sleepycat.db.*; import com.sleepycat.persist.*; import com.sleepycat.persist.raw.*; import org.junit.*;
[ "com.sleepycat.db", "com.sleepycat.persist", "org.junit" ]
com.sleepycat.db; com.sleepycat.persist; org.junit;
728,933
@Message(id = 20, value = "%s annotations must provide a %s.") IllegalArgumentException annotationAttributeMissing(String annotation, String attribute);
@Message(id = 20, value = STR) IllegalArgumentException annotationAttributeMissing(String annotation, String attribute);
/** * Creates an exception indicating the annotation must provide the attribute. * * @param annotation the annotation. * @param attribute the attribute. * * @return an {@link IllegalArgumentException} for the exception. */
Creates an exception indicating the annotation must provide the attribute
annotationAttributeMissing
{ "repo_name": "tomazzupan/wildfly", "path": "ee/src/main/java/org/jboss/as/ee/logging/EeLogger.java", "license": "lgpl-2.1", "size": 48634 }
[ "org.jboss.logging.annotations.Message" ]
import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.*;
[ "org.jboss.logging" ]
org.jboss.logging;
638,250
public Connections getConnectionsForCurrentUser(Set<ProfileField> profileFields, int start, int count, Date modificationDate, ConnectionModificationType modificationType);
Connections function(Set<ProfileField> profileFields, int start, int count, Date modificationDate, ConnectionModificationType modificationType);
/** * Gets the connections for current user. * For details see <a href="http://developer.linkedin.com/docs/DOC-1004">http://developer.linkedin.com/docs/DOC-1004</a> * * @param profileFields the profile fields * @param start the start * @param count the count * * @return the con...
Gets the connections for current user. For details see HREF
getConnectionsForCurrentUser
{ "repo_name": "shisoft/LinkedIn-J", "path": "core/src/main/java/com/google/code/linkedinapi/client/PeopleApiClient.java", "license": "apache-2.0", "size": 26516 }
[ "com.google.code.linkedinapi.client.enumeration.ConnectionModificationType", "com.google.code.linkedinapi.client.enumeration.ProfileField", "com.google.code.linkedinapi.schema.Connections", "java.util.Date", "java.util.Set" ]
import com.google.code.linkedinapi.client.enumeration.ConnectionModificationType; import com.google.code.linkedinapi.client.enumeration.ProfileField; import com.google.code.linkedinapi.schema.Connections; import java.util.Date; import java.util.Set;
import com.google.code.linkedinapi.client.enumeration.*; import com.google.code.linkedinapi.schema.*; import java.util.*;
[ "com.google.code", "java.util" ]
com.google.code; java.util;
2,249,969
protected boolean indexExists(String index) { IndicesExistsResponse actionGet = client().admin().indices().prepareExists(index).execute().actionGet(); return actionGet.isExists(); }
boolean function(String index) { IndicesExistsResponse actionGet = client().admin().indices().prepareExists(index).execute().actionGet(); return actionGet.isExists(); }
/** * Returns <code>true</code> iff the given index exists otherwise <code>false</code> */
Returns <code>true</code> iff the given index exists otherwise <code>false</code>
indexExists
{ "repo_name": "palecur/elasticsearch", "path": "test/framework/src/main/java/org/elasticsearch/test/ESIntegTestCase.java", "license": "apache-2.0", "size": 98171 }
[ "org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsResponse" ]
import org.elasticsearch.action.admin.indices.exists.indices.IndicesExistsResponse;
import org.elasticsearch.action.admin.indices.exists.indices.*;
[ "org.elasticsearch.action" ]
org.elasticsearch.action;
103,383
public static void removeCategory(Session session, Node node, String catId) throws ValueFormatException, javax.jcr.PathNotFoundException, javax.jcr.RepositoryException { log.debug("removeCategory({}, {}, {})", new Object[] { session, node, catId }); boolean removed = false; synchronized (node) { Value...
static void function(Session session, Node node, String catId) throws ValueFormatException, javax.jcr.PathNotFoundException, javax.jcr.RepositoryException { log.debug(STR, new Object[] { session, node, catId }); boolean removed = false; synchronized (node) { Value[] property = node.getProperty(Property.CATEGORIES).getV...
/** * Remove category */
Remove category
removeCategory
{ "repo_name": "papamas/DMS-KANGREG-XI-MANADO", "path": "src/main/java/com/openkm/module/jcr/base/BasePropertyModule.java", "license": "gpl-3.0", "size": 5042 }
[ "com.openkm.bean.Property", "java.util.ArrayList", "javax.jcr.Node", "javax.jcr.PropertyType", "javax.jcr.Session", "javax.jcr.Value", "javax.jcr.ValueFormatException" ]
import com.openkm.bean.Property; import java.util.ArrayList; import javax.jcr.Node; import javax.jcr.PropertyType; import javax.jcr.Session; import javax.jcr.Value; import javax.jcr.ValueFormatException;
import com.openkm.bean.*; import java.util.*; import javax.jcr.*;
[ "com.openkm.bean", "java.util", "javax.jcr" ]
com.openkm.bean; java.util; javax.jcr;
1,414,380
public ServiceFuture<ManagedClusterInner> beginCreateOrUpdateAsync(String resourceGroupName, String resourceName, ManagedClusterInner parameters, final ServiceCallback<ManagedClusterInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, res...
ServiceFuture<ManagedClusterInner> function(String resourceGroupName, String resourceName, ManagedClusterInner parameters, final ServiceCallback<ManagedClusterInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, resourceName, parameters), serviceCall...
/** * Creates or updates a managed cluster. * Creates or updates a managed cluster with the specified configuration for agents and Kubernetes version. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param param...
Creates or updates a managed cluster. Creates or updates a managed cluster with the specified configuration for agents and Kubernetes version
beginCreateOrUpdateAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/containerservice/mgmt-v2019_06_01/src/main/java/com/microsoft/azure/management/containerservice/v2019_06_01/implementation/ManagedClustersInner.java", "license": "mit", "size": 126956 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
214,197
public static int findLiveItemsUpperBound(XYDataset dataset, int series, double xLow, double xHigh) { if (dataset == null) { throw new IllegalArgumentException("Null 'dataset' argument."); } if (xLow >= xHigh) { throw new IllegalArgumentException("Requires...
static int function(XYDataset dataset, int series, double xLow, double xHigh) { if (dataset == null) { throw new IllegalArgumentException(STR); } if (xLow >= xHigh) { throw new IllegalArgumentException(STR); } int itemCount = dataset.getItemCount(series); if (itemCount <= 1) { return 0; } if (dataset.getDomainOrder() =...
/** * Finds the upper index of the range of live items in the specified data * series. * * @param dataset the dataset (<code>null</code> not permitted). * @param series the series index. * @param xLow the lowest x-value in the live range. * @param xHigh the highest x-value in the ...
Finds the upper index of the range of live items in the specified data series
findLiveItemsUpperBound
{ "repo_name": "JSansalone/JFreeChart", "path": "source/org/jfree/chart/renderer/RendererUtilities.java", "license": "lgpl-2.1", "size": 9691 }
[ "org.jfree.data.DomainOrder", "org.jfree.data.xy.XYDataset" ]
import org.jfree.data.DomainOrder; import org.jfree.data.xy.XYDataset;
import org.jfree.data.*; import org.jfree.data.xy.*;
[ "org.jfree.data" ]
org.jfree.data;
1,737,571
public void processErasureCodingTasks(Collection<BlockECRecoveryInfo> ecTasks) { for (BlockECRecoveryInfo recoveryInfo : ecTasks) { try { STRIPED_BLK_RECOVERY_THREAD_POOL .submit(new ReconstructAndTransferBlock(recoveryInfo)); } catch (Throwable e) { LOG.warn("Failed to rec...
void function(Collection<BlockECRecoveryInfo> ecTasks) { for (BlockECRecoveryInfo recoveryInfo : ecTasks) { try { STRIPED_BLK_RECOVERY_THREAD_POOL .submit(new ReconstructAndTransferBlock(recoveryInfo)); } catch (Throwable e) { LOG.warn(STR + recoveryInfo.getExtendedBlock().getLocalBlock(), e); } } } private class Recon...
/** * Handles the Erasure Coding recovery work commands. * * @param ecTasks * BlockECRecoveryInfo */
Handles the Erasure Coding recovery work commands
processErasureCodingTasks
{ "repo_name": "anjuncc/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/erasurecode/ErasureCodingWorker.java", "license": "apache-2.0", "size": 38288 }
[ "com.google.common.base.Preconditions", "java.io.DataInputStream", "java.io.DataOutputStream", "java.net.Socket", "java.nio.ByteBuffer", "java.util.ArrayList", "java.util.Collection", "java.util.HashMap", "java.util.List", "java.util.Map", "java.util.concurrent.CompletionService", "java.util.c...
import com.google.common.base.Preconditions; import java.io.DataInputStream; import java.io.DataOutputStream; import java.net.Socket; import java.nio.ByteBuffer; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.Co...
import com.google.common.base.*; import java.io.*; import java.net.*; import java.nio.*; import java.util.*; import java.util.concurrent.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.hadoop.hdfs.server.datanode.*; import org.apache.hadoop.hdfs.server.protocol.*; import or...
[ "com.google.common", "java.io", "java.net", "java.nio", "java.util", "org.apache.hadoop" ]
com.google.common; java.io; java.net; java.nio; java.util; org.apache.hadoop;
1,115,616
@Test void programmingRightsWhenNoContextDocumentIsSet() throws XWikiException { // Setup an XWikiPreferences document granting programming rights to XWiki.Programmer XWikiDocument prefs = new XWikiDocument(new DocumentReference(this.context.getMainXWiki(), "XWiki", "XWikiPrefere...
void programmingRightsWhenNoContextDocumentIsSet() throws XWikiException { XWikiDocument prefs = new XWikiDocument(new DocumentReference(this.context.getMainXWiki(), "XWiki", STR)); BaseObject globalRightObj = mock(BaseObject.class); when(globalRightObj.getStringValue(STR)).thenReturn(STR); when(globalRightObj.getStrin...
/** * Test that programming rights are checked on the context user when no context document is set. */
Test that programming rights are checked on the context user when no context document is set
programmingRightsWhenNoContextDocumentIsSet
{ "repo_name": "xwiki/xwiki-platform", "path": "xwiki-platform-core/xwiki-platform-oldcore/src/test/java/com/xpn/xwiki/user/impl/xwiki/XWikiRightServiceImplTest.java", "license": "lgpl-2.1", "size": 35300 }
[ "com.xpn.xwiki.XWiki", "com.xpn.xwiki.XWikiException", "com.xpn.xwiki.doc.XWikiDocument", "com.xpn.xwiki.objects.BaseObject", "com.xpn.xwiki.user.api.XWikiRightService", "org.junit.jupiter.api.Assertions", "org.mockito.Mockito", "org.xwiki.model.reference.DocumentReference" ]
import com.xpn.xwiki.XWiki; import com.xpn.xwiki.XWikiException; import com.xpn.xwiki.doc.XWikiDocument; import com.xpn.xwiki.objects.BaseObject; import com.xpn.xwiki.user.api.XWikiRightService; import org.junit.jupiter.api.Assertions; import org.mockito.Mockito; import org.xwiki.model.reference.DocumentReference;
import com.xpn.xwiki.*; import com.xpn.xwiki.doc.*; import com.xpn.xwiki.objects.*; import com.xpn.xwiki.user.api.*; import org.junit.jupiter.api.*; import org.mockito.*; import org.xwiki.model.reference.*;
[ "com.xpn.xwiki", "org.junit.jupiter", "org.mockito", "org.xwiki.model" ]
com.xpn.xwiki; org.junit.jupiter; org.mockito; org.xwiki.model;
2,238,400
public void onAffinityChangeMessage(final ClusterNode node, final CacheAffinityChangeMessage msg) { assert exchId.equals(msg.exchangeId()) : msg;
void function(final ClusterNode node, final CacheAffinityChangeMessage msg) { assert exchId.equals(msg.exchangeId()) : msg;
/** * Affinity change message callback, processed from the same thread as {@link #onNodeLeft}. * * @param node Message sender node. * @param msg Message. */
Affinity change message callback, processed from the same thread as <code>#onNodeLeft</code>
onAffinityChangeMessage
{ "repo_name": "StalkXT/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/preloader/GridDhtPartitionsExchangeFuture.java", "license": "apache-2.0", "size": 142871 }
[ "org.apache.ignite.cluster.ClusterNode", "org.apache.ignite.internal.processors.cache.CacheAffinityChangeMessage" ]
import org.apache.ignite.cluster.ClusterNode; import org.apache.ignite.internal.processors.cache.CacheAffinityChangeMessage;
import org.apache.ignite.cluster.*; import org.apache.ignite.internal.processors.cache.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,748,888
public void setOnInfoListener(IMediaPlayer.OnInfoListener l) { mOnInfoListener = l; }
void function(IMediaPlayer.OnInfoListener l) { mOnInfoListener = l; }
/** * Register a callback to be invoked when an informational event * occurs during playback or setup. * * @param l The callback that will be run */
Register a callback to be invoked when an informational event occurs during playback or setup
setOnInfoListener
{ "repo_name": "WeDevelopTeam/HeroVideo-master", "path": "app/src/main/java/com/github/bigexcalibur/herovideo/mediaplayer/MediaPlayerView.java", "license": "apache-2.0", "size": 35206 }
[ "tv.danmaku.ijk.media.player.IMediaPlayer" ]
import tv.danmaku.ijk.media.player.IMediaPlayer;
import tv.danmaku.ijk.media.player.*;
[ "tv.danmaku.ijk" ]
tv.danmaku.ijk;
2,024,653
public String getCommentTable() { StringBuffer html = new StringBuffer(); StringBuffer table = new StringBuffer(); // Display the table of comments if ((patch != null) && (patch.getCommentList() != null) && (patch.getCommentList().size() > 0)) { table.append("<table bor...
String function() { StringBuffer html = new StringBuffer(); StringBuffer table = new StringBuffer(); if ((patch != null) && (patch.getCommentList() != null) && (patch.getCommentList().size() > 0)) { table.append(STR100%\">\n"); table.append(STR + patch.getCommentList().size() + STR); table.append(getHeader()); int visi...
/** * Render the build data form. */
Render the build data form
getCommentTable
{ "repo_name": "ModelN/build-management", "path": "mn-build-webapp/src/main/java/com/modeln/build/ctrl/forms/CMnPatchCommentForm.java", "license": "mit", "size": 8218 }
[ "com.modeln.build.common.data.product.CMnPatchComment", "com.modeln.build.common.enums.CMnServicePatch", "java.util.Enumeration" ]
import com.modeln.build.common.data.product.CMnPatchComment; import com.modeln.build.common.enums.CMnServicePatch; import java.util.Enumeration;
import com.modeln.build.common.data.product.*; import com.modeln.build.common.enums.*; import java.util.*;
[ "com.modeln.build", "java.util" ]
com.modeln.build; java.util;
1,841,504