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 void addButtonToFront(Widget w) { m_buttonPanel.insert(w, 0); if (CmsCoreProvider.get().isIe7()) { m_buttonPanel.getElement().getStyle().setWidth(m_buttonPanel.getWidgetCount() * 22, Unit.PX); } }
void function(Widget w) { m_buttonPanel.insert(w, 0); if (CmsCoreProvider.get().isIe7()) { m_buttonPanel.getElement().getStyle().setWidth(m_buttonPanel.getWidgetCount() * 22, Unit.PX); } }
/** * Adds a widget to the front of the button panel.<p> * * @param w the widget to add */
Adds a widget to the front of the button panel
addButtonToFront
{ "repo_name": "sbonoc/opencms-core", "path": "src-gwt/org/opencms/gwt/client/ui/CmsListItemWidget.java", "license": "lgpl-2.1", "size": 37503 }
[ "com.google.gwt.dom.client.Style", "com.google.gwt.user.client.ui.Widget", "org.opencms.gwt.client.CmsCoreProvider" ]
import com.google.gwt.dom.client.Style; import com.google.gwt.user.client.ui.Widget; import org.opencms.gwt.client.CmsCoreProvider;
import com.google.gwt.dom.client.*; import com.google.gwt.user.client.ui.*; import org.opencms.gwt.client.*;
[ "com.google.gwt", "org.opencms.gwt" ]
com.google.gwt; org.opencms.gwt;
2,643,689
private Page getCurrentPage(Object adaptable) { ComponentContext context = getComponentContext(adaptable); return (context != null) ? context.getPage() : null; }
Page function(Object adaptable) { ComponentContext context = getComponentContext(adaptable); return (context != null) ? context.getPage() : null; }
/** * Get the current page. * * @param adaptable a SlingHttpServletRequest * @return the current Page if the adaptable was a SlingHttpServletRequest, null otherwise */
Get the current page
getCurrentPage
{ "repo_name": "badvision/acs-aem-commons", "path": "bundle/src/main/java/com/adobe/acs/commons/models/injectors/impl/AemObjectInjector.java", "license": "apache-2.0", "size": 11152 }
[ "com.day.cq.wcm.api.Page", "com.day.cq.wcm.api.components.ComponentContext" ]
import com.day.cq.wcm.api.Page; import com.day.cq.wcm.api.components.ComponentContext;
import com.day.cq.wcm.api.*; import com.day.cq.wcm.api.components.*;
[ "com.day.cq" ]
com.day.cq;
748,079
public void setEffect(EffectType effect);
void function(EffectType effect);
/** * sets the effect of the player * * @author xize * @param effect - the effects, null to disable the scheduler */
sets the effect of the player
setEffect
{ "repo_name": "xEssentials/xEssentials", "path": "src/tv/mineinthebox/essentials/interfaces/XPlayer.java", "license": "gpl-3.0", "size": 17624 }
[ "tv.mineinthebox.essentials.helpers.EffectType" ]
import tv.mineinthebox.essentials.helpers.EffectType;
import tv.mineinthebox.essentials.helpers.*;
[ "tv.mineinthebox.essentials" ]
tv.mineinthebox.essentials;
946,741
void addRole(String name, List<String> rolePermissions, String description);
void addRole(String name, List<String> rolePermissions, String description);
/** * Method to add a new role. * * @param name * Name of role. * @param rolePermissions * Permissions of role in string-form. * @param description * Description of the role. */
Method to add a new role
addRole
{ "repo_name": "andy32323/inspectIT", "path": "CommonsCS/src/info/novatec/inspectit/cmr/service/ISecurityService.java", "license": "agpl-3.0", "size": 5666 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
661,365
List<String> getCommand();
List<String> getCommand();
/** * Returns the command to run in the dockerimage component instead of the default one provided in * the image. It is optional, if missing then empty list is returned and command which is defined * in the image will be used. Applicable only for 'dockerimage' component type. */
Returns the command to run in the dockerimage component instead of the default one provided in the image. It is optional, if missing then empty list is returned and command which is defined in the image will be used. Applicable only for 'dockerimage' component type
getCommand
{ "repo_name": "codenvy/che", "path": "core/che-core-api-model/src/main/java/org/eclipse/che/api/core/model/workspace/devfile/Component.java", "license": "epl-1.0", "size": 5382 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,045,819
static protected SftpClient getSftpClient(MuleContext muleContext, String endpointName) throws IOException { ImmutableEndpoint endpoint = getImmutableEndpoint(muleContext, endpointName); try { SftpClient sftpClient = SftpConnectionFactory.createClient(endpoint); return sftpClient; } catch (Exce...
static SftpClient function(MuleContext muleContext, String endpointName) throws IOException { ImmutableEndpoint endpoint = getImmutableEndpoint(muleContext, endpointName); try { SftpClient sftpClient = SftpConnectionFactory.createClient(endpoint); return sftpClient; } catch (Exception e) { throw new RuntimeException(ST...
/** * Returns a SftpClient that is logged in to the sftp server that the * endpoint is configured against. * * @param muleContext * @param endpointName * @return * @throws IOException */
Returns a SftpClient that is logged in to the sftp server that the endpoint is configured against
getSftpClient
{ "repo_name": "soi-toolkit/soi-toolkit-mule", "path": "commons/components/commons-mule/src/main/java/org/soitoolkit/commons/mule/sftp/SftpUtil.java", "license": "apache-2.0", "size": 10090 }
[ "java.io.IOException", "org.mule.api.MuleContext", "org.mule.api.endpoint.ImmutableEndpoint", "org.mule.transport.sftp.SftpClient", "org.mule.transport.sftp.SftpConnectionFactory", "org.soitoolkit.commons.mule.util.MuleUtil" ]
import java.io.IOException; import org.mule.api.MuleContext; import org.mule.api.endpoint.ImmutableEndpoint; import org.mule.transport.sftp.SftpClient; import org.mule.transport.sftp.SftpConnectionFactory; import org.soitoolkit.commons.mule.util.MuleUtil;
import java.io.*; import org.mule.api.*; import org.mule.api.endpoint.*; import org.mule.transport.sftp.*; import org.soitoolkit.commons.mule.util.*;
[ "java.io", "org.mule.api", "org.mule.transport", "org.soitoolkit.commons" ]
java.io; org.mule.api; org.mule.transport; org.soitoolkit.commons;
388,641
@Test public void testScheduleWithDelayCancellation() { final ManuallyTriggeredScheduledExecutor scheduledExecutor = new ManuallyTriggeredScheduledExecutor(); final Runnable noOpRunnable = () -> {}; CompletableFuture<Void> completableFuture = FutureUtils.scheduleWithDelay( noOpRunnable, TestingUtils.in...
void function() { final ManuallyTriggeredScheduledExecutor scheduledExecutor = new ManuallyTriggeredScheduledExecutor(); final Runnable noOpRunnable = () -> {}; CompletableFuture<Void> completableFuture = FutureUtils.scheduleWithDelay( noOpRunnable, TestingUtils.infiniteTime(), scheduledExecutor); final ScheduledFuture...
/** * Tests that a scheduled task is canceled if the scheduled future is being cancelled. */
Tests that a scheduled task is canceled if the scheduled future is being cancelled
testScheduleWithDelayCancellation
{ "repo_name": "gyfora/flink", "path": "flink-runtime/src/test/java/org/apache/flink/runtime/concurrent/FutureUtilsTest.java", "license": "apache-2.0", "size": 27265 }
[ "java.util.concurrent.CompletableFuture", "java.util.concurrent.ScheduledFuture", "org.apache.flink.runtime.testingUtils.TestingUtils", "org.junit.Assert" ]
import java.util.concurrent.CompletableFuture; import java.util.concurrent.ScheduledFuture; import org.apache.flink.runtime.testingUtils.TestingUtils; import org.junit.Assert;
import java.util.concurrent.*; import org.apache.flink.runtime.*; import org.junit.*;
[ "java.util", "org.apache.flink", "org.junit" ]
java.util; org.apache.flink; org.junit;
1,311,856
@Test @SuppressWarnings("PMD.JUnitTestsShouldIncludeAssert") public void registerThirdPlayer() { Player p1 = mock(Player.class); Player p2 = mock(Player.class); Player p3 = mock(Player.class); level.registerPlayer(p1); level.registerPlayer(p2); level.registerPlayer(p3); verify(p3).occupy(square1); }
@SuppressWarnings(STR) void function() { Player p1 = mock(Player.class); Player p2 = mock(Player.class); Player p3 = mock(Player.class); level.registerPlayer(p1); level.registerPlayer(p2); level.registerPlayer(p3); verify(p3).occupy(square1); }
/** * Verifies registering a third player puts the player on the correct * starting square. */
Verifies registering a third player puts the player on the correct starting square
registerThirdPlayer
{ "repo_name": "Krunsh07/jpacman-framework", "path": "src/test/java/nl/tudelft/jpacman/level/LevelTest.java", "license": "apache-2.0", "size": 3991 }
[ "org.mockito.Mockito" ]
import org.mockito.Mockito;
import org.mockito.*;
[ "org.mockito" ]
org.mockito;
1,170,639
public List<EarnCodeSecurity> getEarnCodeSecurityList(String dept, String salGroup, String earnCode, String employee, String approver, String payrollProcessor, String active, LocalDate effdt, String groupKeyCode ); //public List<EarnCodeSecurity> get...
List<EarnCodeSecurity> function(String dept, String salGroup, String earnCode, String employee, String approver, String payrollProcessor, String active, LocalDate effdt, String groupKeyCode );
/** * Retrive list of active earnCodeSecurity with given parameters * allows wild card on department and salGroup * @param dept * @param salGroup * @param earnCode * @param employee * @param approver * @param payrollProcessor * @param active * @param effdt * @param groupKeyCode * ...
Retrive list of active earnCodeSecurity with given parameters allows wild card on department and salGroup
getEarnCodeSecurityList
{ "repo_name": "kuali/kpme", "path": "core/api/src/main/java/org/kuali/kpme/core/api/earncode/security/service/EarnCodeSecurityService.java", "license": "apache-2.0", "size": 4083 }
[ "java.util.List", "org.joda.time.LocalDate", "org.kuali.kpme.core.api.earncode.security.EarnCodeSecurity" ]
import java.util.List; import org.joda.time.LocalDate; import org.kuali.kpme.core.api.earncode.security.EarnCodeSecurity;
import java.util.*; import org.joda.time.*; import org.kuali.kpme.core.api.earncode.security.*;
[ "java.util", "org.joda.time", "org.kuali.kpme" ]
java.util; org.joda.time; org.kuali.kpme;
872,862
private void sendInitPackets (int updateNum) { if (initQueue.isEmpty()) { return; } ClanSettingsEventContext.Member[] entries; String[] banEntries; ClanSettingsEventContext.Variable[] varEntries; synchronized (this) { for (SocialUser u : initQueue) { if (u.getAffinedClanHash() == clanHash) {...
void function (int updateNum) { if (initQueue.isEmpty()) { return; } ClanSettingsEventContext.Member[] entries; String[] banEntries; ClanSettingsEventContext.Variable[] varEntries; synchronized (this) { for (SocialUser u : initQueue) { if (u.getAffinedClanHash() == clanHash) { onlineMembers.add(u); } else { onlineGuest...
/** * Sends any queued initialisation packets */
Sends any queued initialisation packets
sendInitPackets
{ "repo_name": "itsgreco/VirtueRS3", "path": "src/org/virtue/game/content/clans/ClanSettings.java", "license": "mit", "size": 21080 }
[ "java.util.Map", "org.virtue.game.content.chat.SocialUser", "org.virtue.network.event.context.impl.out.ClanSettingsEventContext" ]
import java.util.Map; import org.virtue.game.content.chat.SocialUser; import org.virtue.network.event.context.impl.out.ClanSettingsEventContext;
import java.util.*; import org.virtue.game.content.chat.*; import org.virtue.network.event.context.impl.out.*;
[ "java.util", "org.virtue.game", "org.virtue.network" ]
java.util; org.virtue.game; org.virtue.network;
2,691,128
public DateTime observationPeriodStart() { return this.observationPeriodStart; }
DateTime function() { return this.observationPeriodStart; }
/** * Get the observation period start (ISO8601 format). * * @return the observationPeriodStart value */
Get the observation period start (ISO8601 format)
observationPeriodStart
{ "repo_name": "hovsepm/azure-sdk-for-java", "path": "sql/resource-manager/v2014_04_01/src/main/java/com/microsoft/azure/management/sql/v2014_04_01/implementation/ServiceTierAdvisorInner.java", "license": "mit", "size": 10833 }
[ "org.joda.time.DateTime" ]
import org.joda.time.DateTime;
import org.joda.time.*;
[ "org.joda.time" ]
org.joda.time;
1,515,455
@Property(LINE_NUMBER) int getLineNumber();
@Property(LINE_NUMBER) int getLineNumber();
/** * Get the line number at which this {@link FileLocationModel} should appear in the designated {@link FileModel}. */
Get the line number at which this <code>FileLocationModel</code> should appear in the designated <code>FileModel</code>
getLineNumber
{ "repo_name": "lincolnthree/windup", "path": "rules-base/api/src/main/java/org/jboss/windup/rules/files/model/FileLocationModel.java", "license": "epl-1.0", "size": 2596 }
[ "com.tinkerpop.frames.Property" ]
import com.tinkerpop.frames.Property;
import com.tinkerpop.frames.*;
[ "com.tinkerpop.frames" ]
com.tinkerpop.frames;
890,525
public void firstSet(HashSet<QName> set) { _item.firstSet(set); }
void function(HashSet<QName> set) { _item.firstSet(set); }
/** * Returns the first set, the set of element names possible. */
Returns the first set, the set of element names possible
firstSet
{ "repo_name": "dlitz/resin", "path": "modules/kernel/src/com/caucho/relaxng/program/ZeroOrMoreItem.java", "license": "gpl-2.0", "size": 4126 }
[ "com.caucho.xml.QName", "java.util.HashSet" ]
import com.caucho.xml.QName; import java.util.HashSet;
import com.caucho.xml.*; import java.util.*;
[ "com.caucho.xml", "java.util" ]
com.caucho.xml; java.util;
701,733
@Test public void testA6_C3N3() { test_id = getTestId("A6", "C3N3", "54"); launchComponentName ="Root Component"; List<NonRootModelElement> src = selectA("A6"); NonRootModelElement dest = selectCN("C3N3","A6",src); A_CN_Action(dest); assertTrue("Sys_compPk...
void function() { test_id = getTestId("A6", "C3N3", "54"); launchComponentName =STR; List<NonRootModelElement> src = selectA("A6"); NonRootModelElement dest = selectCN("C3N3","A6",src); A_CN_Action(dest); assertTrue(STR, checkResult_Sys_compPkg_Comp_Comp_EEPkg_EE_Brdg()); }
/** * Perform the test for the given matrix column (A6) and row (C3N3). * */
Perform the test for the given matrix column (A6) and row (C3N3)
testA6_C3N3
{ "repo_name": "jason-rhodes/bridgepoint", "path": "src/org.xtuml.bp.debug.ui.test/src/org/xtuml/bp/debug/ui/test/runtimemsg/TestVerifierRunTimeErrorMsgs_0.java", "license": "apache-2.0", "size": 9061 }
[ "java.util.List", "org.xtuml.bp.core.common.NonRootModelElement" ]
import java.util.List; import org.xtuml.bp.core.common.NonRootModelElement;
import java.util.*; import org.xtuml.bp.core.common.*;
[ "java.util", "org.xtuml.bp" ]
java.util; org.xtuml.bp;
1,936,756
protected void setStatusLineErrorMessage(String msg) { IEditorStatusLine statusLine = (IEditorStatusLine) getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); }
void function(String msg) { IEditorStatusLine statusLine = (IEditorStatusLine) getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); }
/** * Sets the given message as error message to this * editor's status line. * * @param msg message to be set */
Sets the given message as error message to this editor's status line
setStatusLineErrorMessage
{ "repo_name": "rohitmohan96/ceylon-ide-eclipse", "path": "plugins/com.redhat.ceylon.eclipse.ui/src/com/redhat/ceylon/eclipse/code/editor/CeylonEditor.java", "license": "epl-1.0", "size": 82516 }
[ "org.eclipse.ui.texteditor.IEditorStatusLine" ]
import org.eclipse.ui.texteditor.IEditorStatusLine;
import org.eclipse.ui.texteditor.*;
[ "org.eclipse.ui" ]
org.eclipse.ui;
1,556,591
private void showSearchWidget() { fSearchWidget = new SearchWidget(fParentComposite, fSearchFilter); fSearchWidget.moveAbove(fTreeViewer.getControl()); fParentComposite.layout(); fSearchWidget.setFocus(); }
void function() { fSearchWidget = new SearchWidget(fParentComposite, fSearchFilter); fSearchWidget.moveAbove(fTreeViewer.getControl()); fParentComposite.layout(); fSearchWidget.setFocus(); }
/** * Show the Search Widget */
Show the Search Widget
showSearchWidget
{ "repo_name": "archimatetool/archi", "path": "com.archimatetool.editor/src/com/archimatetool/editor/views/tree/TreeModelView.java", "license": "mit", "size": 31990 }
[ "com.archimatetool.editor.views.tree.search.SearchWidget" ]
import com.archimatetool.editor.views.tree.search.SearchWidget;
import com.archimatetool.editor.views.tree.search.*;
[ "com.archimatetool.editor" ]
com.archimatetool.editor;
1,299,301
@Test public void testSaveUser() throws Exception { // Save user: System.out.println("saveUser"); String userName = "ChrisTest"; String authToken = "te8t9se9tst7etzts8"; User user = new User(userName, authToken); File tempFile = testFolder.newFile...
void function() throws Exception { System.out.println(STR); String userName = STR; String authToken = STR; User user = new User(userName, authToken); File tempFile = testFolder.newFile(this._selectedHost + this._filePostfix); this._dirName = testFolder.getRoot().getPath(); this._fileReader = new FileReader(testFolder.g...
/** * Test of saveUser method, of class UserRepository. * @throws java.lang.Exception */
Test of saveUser method, of class UserRepository
testSaveUser
{ "repo_name": "Chris2011/Github-Repository-Viewer", "path": "RepositoryViewer/test/unit/src/org/chrisle/netbeans/modules/gitrepoviewer/repositories/UserRepositoryTest.java", "license": "mit", "size": 4453 }
[ "java.io.File", "java.io.FileReader", "org.chrisle.netbeans.modules.gitrepoviewer.beans.User", "org.junit.Assert", "org.mockito.Mockito" ]
import java.io.File; import java.io.FileReader; import org.chrisle.netbeans.modules.gitrepoviewer.beans.User; import org.junit.Assert; import org.mockito.Mockito;
import java.io.*; import org.chrisle.netbeans.modules.gitrepoviewer.beans.*; import org.junit.*; import org.mockito.*;
[ "java.io", "org.chrisle.netbeans", "org.junit", "org.mockito" ]
java.io; org.chrisle.netbeans; org.junit; org.mockito;
1,483,204
@ServiceMethod(returns = ReturnType.SINGLE) void deleteAtResource(String resourceId, String attestationName);
@ServiceMethod(returns = ReturnType.SINGLE) void deleteAtResource(String resourceId, String attestationName);
/** * Deletes an existing attestation at individual resource scope. * * @param resourceId Resource ID. * @param attestationName The name of the attestation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.Management...
Deletes an existing attestation at individual resource scope
deleteAtResource
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/AttestationsClient.java", "license": "mit", "size": 23213 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod;
import com.azure.core.annotation.*;
[ "com.azure.core" ]
com.azure.core;
2,171,238
void enterHavingCondition(@NotNull CQLParser.HavingConditionContext ctx); void exitHavingCondition(@NotNull CQLParser.HavingConditionContext ctx);
void enterHavingCondition(@NotNull CQLParser.HavingConditionContext ctx); void exitHavingCondition(@NotNull CQLParser.HavingConditionContext ctx);
/** * Exit a parse tree produced by {@link CQLParser#havingCondition}. * @param ctx the parse tree */
Exit a parse tree produced by <code>CQLParser#havingCondition</code>
exitHavingCondition
{ "repo_name": "jack6215/StreamCQL", "path": "cql/src/main/java/com/huawei/streaming/cql/semanticanalyzer/parser/CQLParserListener.java", "license": "apache-2.0", "size": 62500 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
2,115,557
public void addAxis(int axisDim, ILazyDataset axisData) { if (allAxes[axisDim] == null) { allAxes[axisDim] = new ArrayList<ILazyDataset>(); } allAxes[axisDim].add(sanitizeAxisData(axisDim, axisData)); }
void function(int axisDim, ILazyDataset axisData) { if (allAxes[axisDim] == null) { allAxes[axisDim] = new ArrayList<ILazyDataset>(); } allAxes[axisDim].add(sanitizeAxisData(axisDim, axisData)); }
/** * Add axis data to given dimension. This dataset must be one dimensional or match rank * with the associating dataset * @param axisDim dimension (n.b. this is zero-based) * @param axisData dataset for axis */
Add axis data to given dimension. This dataset must be one dimensional or match rank with the associating dataset
addAxis
{ "repo_name": "willrogers/dawnsci", "path": "org.eclipse.dawnsci.analysis.dataset/src/org/eclipse/dawnsci/analysis/dataset/metadata/AxesMetadataImpl.java", "license": "epl-1.0", "size": 3451 }
[ "java.util.ArrayList", "org.eclipse.dawnsci.analysis.api.dataset.ILazyDataset" ]
import java.util.ArrayList; import org.eclipse.dawnsci.analysis.api.dataset.ILazyDataset;
import java.util.*; import org.eclipse.dawnsci.analysis.api.dataset.*;
[ "java.util", "org.eclipse.dawnsci" ]
java.util; org.eclipse.dawnsci;
1,530,773
private WeightedObservedPoint[] getInterpolationPointsForY(WeightedObservedPoint[] points, int startIdx, int idxStep, ...
WeightedObservedPoint[] function(WeightedObservedPoint[] points, int startIdx, int idxStep, double y) throws OutOfRangeException { if (idxStep == 0) { throw new ZeroException(); } for (int i = startIdx; idxStep < 0 ? i + idxStep >= 0 : i + idxStep < points.length; i += idxStep) { final WeightedObservedPoint p1 = points...
/** * Gets the two bounding interpolation points from the specified points * suitable for determining X at the specified Y. * * @param points Points to use for interpolation. * @param startIdx Index within points from which to startToggle search for * interpolation ...
Gets the two bounding interpolation points from the specified points suitable for determining X at the specified Y
getInterpolationPointsForY
{ "repo_name": "najibghadri/NeuralNetworkSimulator", "path": "src/org/apache/commons/math3/fitting/GaussianCurveFitter.java", "license": "mit", "size": 17088 }
[ "org.apache.commons.math3.exception.OutOfRangeException", "org.apache.commons.math3.exception.ZeroException" ]
import org.apache.commons.math3.exception.OutOfRangeException; import org.apache.commons.math3.exception.ZeroException;
import org.apache.commons.math3.exception.*;
[ "org.apache.commons" ]
org.apache.commons;
2,583,263
private boolean needsToBePruned( String uri ) { if( uri.equals(schemaLanguage) ) return false; if( uri.equals(Const.JAXB_NSURI) ) return false; if( uri.equals(Const.XJC_EXTENSION_URI) ) return false; // we don't want validator to see extensions tha...
boolean function( String uri ) { if( uri.equals(schemaLanguage) ) return false; if( uri.equals(Const.JAXB_NSURI) ) return false; if( uri.equals(Const.XJC_EXTENSION_URI) ) return false; return enabledExtensions.contains(uri); }
/** * Returns true if the elements with the given namespace URI * should be blocked by this filter. */
Returns true if the elements with the given namespace URI should be blocked by this filter
needsToBePruned
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jaxws/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/dtd/bindinfo/DTDExtensionBindingChecker.java", "license": "mit", "size": 3295 }
[ "com.sun.tools.internal.xjc.reader.Const" ]
import com.sun.tools.internal.xjc.reader.Const;
import com.sun.tools.internal.xjc.reader.*;
[ "com.sun.tools" ]
com.sun.tools;
1,171,688
public void setLocale(Locale locale) { assert hasLock(); this.locale = locale; }
void function(Locale locale) { assert hasLock(); this.locale = locale; }
/** * Sets the default locale for this session. * * By default this is the preferred locale of the user using the * application. In most cases it is read from the browser defaults. * * @param locale * the Locale object. * */
Sets the default locale for this session. By default this is the preferred locale of the user using the application. In most cases it is read from the browser defaults
setLocale
{ "repo_name": "Darsstar/framework", "path": "server/src/main/java/com/vaadin/server/VaadinSession.java", "license": "apache-2.0", "size": 51298 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
2,025,084
public void close() throws IOException { if (is == null) return; is.close(); is = null; buf = null; } // ------------------------------------------------------ Protected Methods
void function() throws IOException { if (is == null) return; is.close(); is = null; buf = null; }
/** * Close the input stream. */
Close the input stream
close
{ "repo_name": "keostei/how_tomcat_works", "path": "src/main/java/com/keosimage/train/ch03/connector/http/SocketInputStream.java", "license": "apache-2.0", "size": 11345 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
911,055
private void checkLocalityRelaxationConflict(Long allocationReqId, Priority priority, Collection<String> locations, boolean relaxLocality) { // Locality relaxation will be set to relaxLocality for all implicitly // requested racks. Make sure that existing rack requests match this. RemoteRequestsTab...
void function(Long allocationReqId, Priority priority, Collection<String> locations, boolean relaxLocality) { RemoteRequestsTable<T> remoteRequestsTable = getTable(allocationReqId); if (remoteRequestsTable != null) { @SuppressWarnings(STR) List<ResourceRequestInfo> allCapabilityMaps = remoteRequestsTable.getAllResource...
/** * ContainerRequests with locality relaxation cannot be made at the same * priority as ContainerRequests without locality relaxation. */
ContainerRequests with locality relaxation cannot be made at the same priority as ContainerRequests without locality relaxation
checkLocalityRelaxationConflict
{ "repo_name": "xiao-chen/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/impl/AMRMClientImpl.java", "license": "apache-2.0", "size": 43370 }
[ "java.util.Collection", "java.util.List", "org.apache.hadoop.yarn.api.records.Priority", "org.apache.hadoop.yarn.api.records.ResourceRequest", "org.apache.hadoop.yarn.client.api.InvalidContainerRequestException" ]
import java.util.Collection; import java.util.List; import org.apache.hadoop.yarn.api.records.Priority; import org.apache.hadoop.yarn.api.records.ResourceRequest; import org.apache.hadoop.yarn.client.api.InvalidContainerRequestException;
import java.util.*; import org.apache.hadoop.yarn.api.records.*; import org.apache.hadoop.yarn.client.api.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
1,848,297
public void setContent(Component content);
void function(Component content);
/** * Setzt den anzuzeigenden Inhalt. Dies sollte eine Page, ein Tab oder ein * Dialog sein. * * @param content * der Inhalt, der angezeigt werden soll */
Setzt den anzuzeigenden Inhalt. Dies sollte eine Page, ein Tab oder ein Dialog sein
setContent
{ "repo_name": "Union-Investment/Crud2Go", "path": "eai-portal-webapp-administration/src/main/java/de/unioninvestment/eai/portal/portlet/crud/mvp/views/PanelView.java", "license": "apache-2.0", "size": 1713 }
[ "com.vaadin.ui.Component" ]
import com.vaadin.ui.Component;
import com.vaadin.ui.*;
[ "com.vaadin.ui" ]
com.vaadin.ui;
2,362,330
Object[] batch(final List<Row> actions) throws IOException, InterruptedException;
Object[] batch(final List<Row> actions) throws IOException, InterruptedException;
/** * Same as {@link #batch(List, Object[])}, but returns an array of * results instead of using a results parameter reference. * * @param actions list of Get, Put, Delete objects * @return the results from the actions. A null in the return array means that * the call for that action failed, e...
Same as <code>#batch(List, Object[])</code>, but returns an array of results instead of using a results parameter reference
batch
{ "repo_name": "bcopeland/hbase-thrift", "path": "src/main/java/org/apache/hadoop/hbase/client/HTableInterface.java", "license": "apache-2.0", "size": 17752 }
[ "java.io.IOException", "java.util.List" ]
import java.io.IOException; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,493,372
public void onEachReplicaSet(Consumer<ReplicaSet> function) { this.replicaSetsByName.values().forEach(function); this.nonReplicaSets.forEach(function); }
void function(Consumer<ReplicaSet> function) { this.replicaSetsByName.values().forEach(function); this.nonReplicaSets.forEach(function); }
/** * Perform the supplied function on each of the replica sets * * @param function the consumer function; may not be null */
Perform the supplied function on each of the replica sets
onEachReplicaSet
{ "repo_name": "adsr/debezium", "path": "debezium-connector-mongodb/src/main/java/io/debezium/connector/mongodb/ReplicaSets.java", "license": "apache-2.0", "size": 7781 }
[ "java.util.function.Consumer" ]
import java.util.function.Consumer;
import java.util.function.*;
[ "java.util" ]
java.util;
1,876,366
@Override public ResourceLocator getResourceLocator() { return RequirementPlugin.INSTANCE; }
ResourceLocator function() { return RequirementPlugin.INSTANCE; }
/** * Return the resource locator for this item provider's resources. <!-- begin-user-doc --> <!-- end-user-doc --> * * @generated NOT */
Return the resource locator for this item provider's resources.
getResourceLocator
{ "repo_name": "pgaufillet/topcased-req", "path": "plugins/org.topcased.requirement/src/org/topcased/requirement/provider/DefaultAttributeValueItemProvider.java", "license": "epl-1.0", "size": 4667 }
[ "org.eclipse.emf.common.util.ResourceLocator", "org.topcased.requirement.RequirementPlugin" ]
import org.eclipse.emf.common.util.ResourceLocator; import org.topcased.requirement.RequirementPlugin;
import org.eclipse.emf.common.util.*; import org.topcased.requirement.*;
[ "org.eclipse.emf", "org.topcased.requirement" ]
org.eclipse.emf; org.topcased.requirement;
830,986
public Map getNamespaceMap() { return nsMap; }
Map function() { return nsMap; }
/** * Returns a map of namespace prefixes. Each key is a namespace prefix * <code>String</code> that maps to a corresponding namespace URI * <code>String</code>. * <p> * This implementation returns an {@link Collections#unmodifiableMap * unmodifiable map}. * * @return a <code>Map...
Returns a map of namespace prefixes. Each key is a namespace prefix <code>String</code> that maps to a corresponding namespace URI <code>String</code>. This implementation returns an <code>Collections#unmodifiableMap unmodifiable map</code>
getNamespaceMap
{ "repo_name": "wwahmed/ews-java-api", "path": "src/main/java/javax/xml/crypto/dsig/spec/XPathFilterParameterSpec.java", "license": "mit", "size": 3652 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
67,899
static long getXid(InstanceConfig instanceConfig) { String xid = instanceConfig.getRecord().getSimpleField(XID_STR); return xid == null ? DEFAULT_XID : Long.valueOf(xid); }
static long getXid(InstanceConfig instanceConfig) { String xid = instanceConfig.getRecord().getSimpleField(XID_STR); return xid == null ? DEFAULT_XID : Long.valueOf(xid); }
/** * Get the xid associated with this instance. The xid is like a timestamp or a change number, so if it is absent, * a value representing the earliest point in time is returned. * @param instanceConfig the {@link InstanceConfig} associated with the interested instance. * @return the xid associated with th...
Get the xid associated with this instance. The xid is like a timestamp or a change number, so if it is absent, a value representing the earliest point in time is returned
getXid
{ "repo_name": "pnarayanan/ambry", "path": "ambry-clustermap/src/main/java/com.github.ambry.clustermap/ClusterMapUtils.java", "license": "apache-2.0", "size": 18922 }
[ "org.apache.helix.model.InstanceConfig" ]
import org.apache.helix.model.InstanceConfig;
import org.apache.helix.model.*;
[ "org.apache.helix" ]
org.apache.helix;
857,553
public OmemoFingerprint getFingerprint(OmemoDevice userDevice) throws CorruptedOmemoKeyException, IOException { T_IdKeyPair keyPair = loadOmemoIdentityKeyPair(userDevice); if (keyPair == null) { return null; } return keyUtil().getFingerprintOfIdentityKey(key...
OmemoFingerprint function(OmemoDevice userDevice) throws CorruptedOmemoKeyException, IOException { T_IdKeyPair keyPair = loadOmemoIdentityKeyPair(userDevice); if (keyPair == null) { return null; } return keyUtil().getFingerprintOfIdentityKey(keyUtil().identityKeyFromPair(keyPair)); }
/** * Return our identityKeys fingerprint. * * @param userDevice our OmemoDevice. * @return fingerprint of our identityKeyPair * * @throws CorruptedOmemoKeyException if the identityKey of userDevice is corrupted. * @throws IOException if an I/O error occurred. */
Return our identityKeys fingerprint
getFingerprint
{ "repo_name": "igniterealtime/Smack", "path": "smack-omemo/src/main/java/org/jivesoftware/smackx/omemo/OmemoStore.java", "license": "apache-2.0", "size": 28331 }
[ "java.io.IOException", "org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException", "org.jivesoftware.smackx.omemo.internal.OmemoDevice", "org.jivesoftware.smackx.omemo.trust.OmemoFingerprint" ]
import java.io.IOException; import org.jivesoftware.smackx.omemo.exceptions.CorruptedOmemoKeyException; import org.jivesoftware.smackx.omemo.internal.OmemoDevice; import org.jivesoftware.smackx.omemo.trust.OmemoFingerprint;
import java.io.*; import org.jivesoftware.smackx.omemo.exceptions.*; import org.jivesoftware.smackx.omemo.internal.*; import org.jivesoftware.smackx.omemo.trust.*;
[ "java.io", "org.jivesoftware.smackx" ]
java.io; org.jivesoftware.smackx;
1,895,636
//----------------------------------------------------------------------- public DoubleMatrix getShifts() { return shifts; }
DoubleMatrix function() { return shifts; }
/** * Gets the shift to apply to the rates. * <p> * There is one row in the matrix for each scenario and one column for each parameter in the data. * Node indices are found using {@code nodeIndices}. * @return the value of the property, not null */
Gets the shift to apply to the rates. There is one row in the matrix for each scenario and one column for each parameter in the data. Node indices are found using nodeIndices
getShifts
{ "repo_name": "OpenGamma/Strata", "path": "modules/market/src/main/java/com/opengamma/strata/market/param/PointShifts.java", "license": "apache-2.0", "size": 15303 }
[ "com.opengamma.strata.collect.array.DoubleMatrix" ]
import com.opengamma.strata.collect.array.DoubleMatrix;
import com.opengamma.strata.collect.array.*;
[ "com.opengamma.strata" ]
com.opengamma.strata;
1,330,566
public ResourceMappingBuilder spellCheck(SpellCheck spellCheck) { mapping.setSpellCheck(spellCheck); return this; }
ResourceMappingBuilder function(SpellCheck spellCheck) { mapping.setSpellCheck(spellCheck); return this; }
/** * Sets the spell check mode that will be used for this resource mapping (and for all the * internal mappings that do not explicitly set their own spell check mode). If not set * will use the global spell check setting. */
Sets the spell check mode that will be used for this resource mapping (and for all the internal mappings that do not explicitly set their own spell check mode). If not set will use the global spell check setting
spellCheck
{ "repo_name": "unkascrack/compass-fork", "path": "compass-core/src/main/java/org/compass/core/mapping/rsem/builder/ResourceMappingBuilder.java", "license": "apache-2.0", "size": 4946 }
[ "org.compass.core.mapping.SpellCheck" ]
import org.compass.core.mapping.SpellCheck;
import org.compass.core.mapping.*;
[ "org.compass.core" ]
org.compass.core;
2,268,635
public ThresholdBundlingForwarder<BundlingContext<RequestT, ResponseT>> getForwarder( String partitionKey) { ThresholdBundlingForwarder<BundlingContext<RequestT, ResponseT>> forwarder = forwarders.get(partitionKey); if (forwarder == null) { synchronized (lock) { forwarder = forward...
ThresholdBundlingForwarder<BundlingContext<RequestT, ResponseT>> function( String partitionKey) { ThresholdBundlingForwarder<BundlingContext<RequestT, ResponseT>> forwarder = forwarders.get(partitionKey); if (forwarder == null) { synchronized (lock) { forwarder = forwarders.get(partitionKey); if (forwarder == null) { f...
/** * Provides the ThresholdBundlingForwarder corresponding to the given partitionKey, or constructs * one if it doesn't exist yet. The implementation is thread-safe. */
Provides the ThresholdBundlingForwarder corresponding to the given partitionKey, or constructs one if it doesn't exist yet. The implementation is thread-safe
getForwarder
{ "repo_name": "shinfan/gax-java", "path": "src/main/java/com/google/api/gax/grpc/BundlerFactory.java", "license": "bsd-3-clause", "size": 6465 }
[ "com.google.api.gax.bundling.ThresholdBundlingForwarder" ]
import com.google.api.gax.bundling.ThresholdBundlingForwarder;
import com.google.api.gax.bundling.*;
[ "com.google.api" ]
com.google.api;
2,528,271
public RedisTransaction hkeys(String key, Handler<AsyncResult<String>> handler) { delegate.hkeys(key, handler); return this; }
RedisTransaction function(String key, Handler<AsyncResult<String>> handler) { delegate.hkeys(key, handler); return this; }
/** * Get all the fields in a hash * @param key Key string * @param handler Handler for the result of this call. * @return */
Get all the fields in a hash
hkeys
{ "repo_name": "brianjcj/vertx-redis-client", "path": "src/main/generated/io/vertx/rxjava/redis/RedisTransaction.java", "license": "apache-2.0", "size": 184983 }
[ "io.vertx.core.AsyncResult", "io.vertx.core.Handler" ]
import io.vertx.core.AsyncResult; import io.vertx.core.Handler;
import io.vertx.core.*;
[ "io.vertx.core" ]
io.vertx.core;
638,563
private ProfileGWTActionAsync getService() { String endpointURL = GWT.getModuleBaseURL() + "../../seam/resource/gwt"; ProfileGWTActionAsync svc = GWT.create(ProfileGWTAction.class); ((ServiceDefTarget) svc).setServiceEntryPoint(endpointURL); return svc; }
ProfileGWTActionAsync function() { String endpointURL = GWT.getModuleBaseURL() + STR; ProfileGWTActionAsync svc = GWT.create(ProfileGWTAction.class); ((ServiceDefTarget) svc).setServiceEntryPoint(endpointURL); return svc; }
/** * Instantiate the ProfileGWTAction backend service * @return */
Instantiate the ProfileGWTAction backend service
getService
{ "repo_name": "StexX/KiWi-OSE", "path": "src/view/kiwi/view/dashboard/profile/client/Profile.java", "license": "bsd-3-clause", "size": 5852 }
[ "com.google.gwt.core.client.GWT", "com.google.gwt.user.client.rpc.ServiceDefTarget" ]
import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.core.client.*; import com.google.gwt.user.client.rpc.*;
[ "com.google.gwt" ]
com.google.gwt;
101,294
public boolean isOpen() throws IOException { return source.isOpen(); }
boolean function() throws IOException { return source.isOpen(); }
/** * Determines whether the cursor is still open. The cursor is * considered open if there are still bytes to read. If there is * still bytes buffered and the underlying transport is closed * then the cursor is still considered open. * * @return true if there is nothing more to be read from t...
Determines whether the cursor is still open. The cursor is considered open if there are still bytes to read. If there is still bytes buffered and the underlying transport is closed then the cursor is still considered open
isOpen
{ "repo_name": "TehSomeLuigi/SomeLuigisPeripherals2", "path": "src_simpleframework/trs/org/simpleframework/transport/TransportCursor.java", "license": "gpl-3.0", "size": 8525 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,647,528
public RecoveryStats recoveryStats() { return recoveryStats; }
RecoveryStats function() { return recoveryStats; }
/** * returns stats about ongoing recoveries, both source and target */
returns stats about ongoing recoveries, both source and target
recoveryStats
{ "repo_name": "cwurm/elasticsearch", "path": "core/src/main/java/org/elasticsearch/index/shard/IndexShard.java", "license": "apache-2.0", "size": 76962 }
[ "org.elasticsearch.index.recovery.RecoveryStats" ]
import org.elasticsearch.index.recovery.RecoveryStats;
import org.elasticsearch.index.recovery.*;
[ "org.elasticsearch.index" ]
org.elasticsearch.index;
584,059
public Observable<ServiceResponse<ThroughputSettingsGetResultsInner>> beginMigrateSqlDatabaseToAutoscaleWithServiceResponseAsync(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.cli...
Observable<ServiceResponse<ThroughputSettingsGetResultsInner>> function(String resourceGroupName, String accountName, String databaseName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (accountName ...
/** * Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param databaseName Cosmos DB database name. * @throws Illeg...
Migrate an Azure Cosmos DB SQL database from manual throughput to autoscale
beginMigrateSqlDatabaseToAutoscaleWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/cosmos/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_04_01/implementation/SqlResourcesInner.java", "license": "mit", "size": 310922 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,449,198
public long getCorruptBlocksCount() throws IOException { return dfs.getCorruptBlocksCount(); }
long function() throws IOException { return dfs.getCorruptBlocksCount(); }
/** * Returns count of blocks with at least one replica marked corrupt. * * @throws IOException */
Returns count of blocks with at least one replica marked corrupt
getCorruptBlocksCount
{ "repo_name": "soumabrata-chakraborty/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java", "license": "apache-2.0", "size": 105290 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,866,090
List<MeasureShareDTO> searchForAdminWithFilter(String searchText, int startIndex, int numResults, int filter);
List<MeasureShareDTO> searchForAdminWithFilter(String searchText, int startIndex, int numResults, int filter);
/** * Search for admin with filter. * * @param searchText * - {@link String}. * @param startIndex * - {@link Integer}. * @param numResults * - {@link Integer}. * @param filter * - {@link Integer}. * @return {@link List} of {@link MeasureShareDTO}. * *...
Search for admin with filter
searchForAdminWithFilter
{ "repo_name": "JaLandry/MeasureAuthoringTool_LatestSprint", "path": "mat/src/mat/server/service/MeasurePackageService.java", "license": "apache-2.0", "size": 8198 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,684,648
@Override protected Enumeration<int[]> getRowSetEnumeration() { return new SimpleRowSetIterator(m_Datasets); } public static class SimpleRowSetIterator implements Enumeration<int[]> { private int m_NextRow = 0; private int m_RowCount; private int m_DatasetCount; p...
Enumeration<int[]> function() { return new SimpleRowSetIterator(m_Datasets); } public static class SimpleRowSetIterator implements Enumeration<int[]> { private int m_NextRow = 0; private int m_RowCount; private int m_DatasetCount; private SimpleRowSetIterator(Instances[] datasets) { m_RowCount = datasets[0].numInstance...
/** * Allows specific merge methods to specify the order in which rows are placed * into the merged dataset, and which rows from the source datasets are used * for the source data. * * @return An enumeration of the source rows, one row for each dataset. */
Allows specific merge methods to specify the order in which rows are placed into the merged dataset, and which rows from the source datasets are used for the source data
getRowSetEnumeration
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-weka/src/main/java/adams/flow/transformer/wekadatasetsmerge/Simple.java", "license": "gpl-3.0", "size": 6122 }
[ "java.util.Enumeration" ]
import java.util.Enumeration;
import java.util.*;
[ "java.util" ]
java.util;
582,980
@Override public void removeAlias(String alias) { alias = alias.toLowerCase(Locale.ENGLISH); synchronized (aliasesLock) { // Make sure this alias is currently present int n = -1; for (int i = 0; i < aliases.length; i++) { if (aliases[i].equa...
void function(String alias) { alias = alias.toLowerCase(Locale.ENGLISH); synchronized (aliasesLock) { int n = -1; for (int i = 0; i < aliases.length; i++) { if (aliases[i].equals(alias)) { n = i; break; } } if (n < 0) return; int j = 0; String results[] = new String[aliases.length - 1]; for (int i = 0; i < aliases.leng...
/** * Remove the specified alias name from the aliases for this Host. * * @param alias Alias name to be removed */
Remove the specified alias name from the aliases for this Host
removeAlias
{ "repo_name": "sdw2330976/apache-tomcat-7.0.57", "path": "target/classes/org/apache/catalina/core/StandardHost.java", "license": "apache-2.0", "size": 22483 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
2,253,194
public static final void addNew(Collection<LevelSceneMovement> collection) { //For each member of the collection, add it to the list for(LevelSceneMovement levelSceneMovement : collection) { addNew(levelSceneMovement); } }
static final void function(Collection<LevelSceneMovement> collection) { for(LevelSceneMovement levelSceneMovement : collection) { addNew(levelSceneMovement); } }
/** * Adds the members of the given Collection to {@link #population}. * @param collection - Collection containing {@link LevelSceneMovement}s to add to the list. * @see #addNew(LevelSceneMovement) */
Adds the members of the given Collection to <code>#population</code>
addNew
{ "repo_name": "kbarrett/third-year-project", "path": "src/ch/idsia/agents/controllers/kbarrett/third/LevelSceneMovementPopulationStorer.java", "license": "bsd-3-clause", "size": 6424 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,834,713
public void setLocale(Locale locale) throws SAXException { //REVISIT:this methods is not part of SAX2 interfaces, we should throw exception //if any application uses SAX2 and sets locale also. -nb fConfiguration.setLocale(locale); } // setLocale(Locale) /** * Allow an applicat...
void function(Locale locale) throws SAXException { fConfiguration.setLocale(locale); } /** * Allow an application to register a DTD event handler. * <p> * If the application does not register a DTD handler, all DTD * events reported by the SAX parser will be silently ignored. * <p> * Applications may register a new or ...
/** * Set the locale to use for messages. * * @param locale The locale object to use for localization of messages. * * @exception SAXException An exception thrown if the parser does not * support the specified locale. * * @see org.xml.sax.Parser */
Set the locale to use for messages
setLocale
{ "repo_name": "BIORIMP/biorimp", "path": "BIO-RIMP/test_data/code/xerces/src/org/apache/xerces/parsers/AbstractSAXParser.java", "license": "gpl-2.0", "size": 91799 }
[ "java.util.Locale", "org.xml.sax.SAXException" ]
import java.util.Locale; import org.xml.sax.SAXException;
import java.util.*; import org.xml.sax.*;
[ "java.util", "org.xml.sax" ]
java.util; org.xml.sax;
852,042
@Override protected void showHistory() { log.info(""); Integer M_Product_ID = getSelectedRowKey(); if (M_Product_ID == null) return; KeyNamePair kn = (KeyNamePair)pickWarehouse.getSelectedItem(); int M_Warehouse_ID = kn.getKey(); int M_AttributeSetInstance_ID = m_M_AttributeSetInstance_ID; if (m_M...
void function() { log.info(""); Integer M_Product_ID = getSelectedRowKey(); if (M_Product_ID == null) return; KeyNamePair kn = (KeyNamePair)pickWarehouse.getSelectedItem(); int M_Warehouse_ID = kn.getKey(); int M_AttributeSetInstance_ID = m_M_AttributeSetInstance_ID; if (m_M_AttributeSetInstance_ID < -1) M_AttributeSet...
/** * Show History */
Show History
showHistory
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.adempiere.adempiere/client/src/main/java-legacy/org/compiere/apps/search/InfoProduct.java", "license": "gpl-2.0", "size": 47785 }
[ "org.compiere.apps.search.history.IInvoiceHistoryTabHandler", "org.compiere.apps.search.history.impl.InvoiceHistory", "org.compiere.apps.search.history.impl.InvoiceHistoryContext", "org.compiere.util.KeyNamePair" ]
import org.compiere.apps.search.history.IInvoiceHistoryTabHandler; import org.compiere.apps.search.history.impl.InvoiceHistory; import org.compiere.apps.search.history.impl.InvoiceHistoryContext; import org.compiere.util.KeyNamePair;
import org.compiere.apps.search.history.*; import org.compiere.apps.search.history.impl.*; import org.compiere.util.*;
[ "org.compiere.apps", "org.compiere.util" ]
org.compiere.apps; org.compiere.util;
2,083,468
public SubnetInner subnet() { return this.subnet; }
SubnetInner function() { return this.subnet; }
/** * Get the reference to the subnet resource. * * @return the subnet value */
Get the reference to the subnet resource
subnet
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/network/v2019_11_01/PrivateLinkServiceIpConfiguration.java", "license": "mit", "size": 6757 }
[ "com.microsoft.azure.management.network.v2019_11_01.implementation.SubnetInner" ]
import com.microsoft.azure.management.network.v2019_11_01.implementation.SubnetInner;
import com.microsoft.azure.management.network.v2019_11_01.implementation.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
1,746,110
private void cleanUpDatabase() throws XMLDBException { //Remove old documents: //Delegate to DocumentCleanup. DocumentCleanup cleanup = new DocumentCleanup(deployedXMLDocuments); cleanup.cleanup(); if (cleanup.getCleanupCount() > 0) { System.out.println("Removed " + cleanup.getCleanupCount() + " old XML...
void function() throws XMLDBException { DocumentCleanup cleanup = new DocumentCleanup(deployedXMLDocuments); cleanup.cleanup(); if (cleanup.getCleanupCount() > 0) { System.out.println(STR + cleanup.getCleanupCount() + STR); } }
/** * Discrete step to clean up the database of deleted XML documents and * broken references. */
Discrete step to clean up the database of deleted XML documents and broken references
cleanUpDatabase
{ "repo_name": "ProjectMoon/ringmud", "path": "src/ring/deployer/DeployModule.java", "license": "lgpl-3.0", "size": 6767 }
[ "org.xmldb.api.base.XMLDBException" ]
import org.xmldb.api.base.XMLDBException;
import org.xmldb.api.base.*;
[ "org.xmldb.api" ]
org.xmldb.api;
2,876,493
void handleStatistics(SPacketStatistics packetIn);
void handleStatistics(SPacketStatistics packetIn);
/** * Updates the players statistics or achievements */
Updates the players statistics or achievements
handleStatistics
{ "repo_name": "SuperUnitato/UnLonely", "path": "build/tmp/recompileMc/sources/net/minecraft/network/play/INetHandlerPlayClient.java", "license": "lgpl-2.1", "size": 15976 }
[ "net.minecraft.network.play.server.SPacketStatistics" ]
import net.minecraft.network.play.server.SPacketStatistics;
import net.minecraft.network.play.server.*;
[ "net.minecraft.network" ]
net.minecraft.network;
1,867,254
public List<SimpleEntry<T, Double>> getDecreasingStrengthList() { List<SimpleEntry<T, Double>> list = new ArrayList<>(); for (T t : getParticipants()) { list.add(new SimpleEntry<>(t, value(t))); } Comparator<SimpleEntry<T, Double>> comp = new SimpleEntryComparator<>(...
List<SimpleEntry<T, Double>> function() { List<SimpleEntry<T, Double>> list = new ArrayList<>(); for (T t : getParticipants()) { list.add(new SimpleEntry<>(t, value(t))); } Comparator<SimpleEntry<T, Double>> comp = new SimpleEntryComparator<>(); comp = Collections.reverseOrder(comp); Collections.sort(list, comp); retur...
/** * Returns a list of the entries in the decreasing order * * @return */
Returns a list of the entries in the decreasing order
getDecreasingStrengthList
{ "repo_name": "Xapagy/Xapagy", "path": "src/main/java/org/xapagy/set/WeightedSet.java", "license": "agpl-3.0", "size": 6562 }
[ "java.util.AbstractMap", "java.util.ArrayList", "java.util.Collections", "java.util.Comparator", "java.util.List", "org.xapagy.util.SimpleEntryComparator" ]
import java.util.AbstractMap; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import org.xapagy.util.SimpleEntryComparator;
import java.util.*; import org.xapagy.util.*;
[ "java.util", "org.xapagy.util" ]
java.util; org.xapagy.util;
1,470,319
public ServiceCall<Void> beginPost202Retry200Async(final ServiceCallback<Void> serviceCallback) { return ServiceCall.createWithHeaders(beginPost202Retry200WithServiceResponseAsync(), serviceCallback); }
ServiceCall<Void> function(final ServiceCallback<Void> serviceCallback) { return ServiceCall.createWithHeaders(beginPost202Retry200WithServiceResponseAsync(), serviceCallback); }
/** * x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for all requests. Long running post request, service returns a 202 to the initial request, with 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success. * * @param serviceCal...
x-ms-client-request-id = 9C4D50EE-2D56-4CD3-8152-34347DC9F2B0 is required message header for all requests. Long running post request, service returns a 202 to the initial request, with 'Location' and 'Retry-After' headers, Polls return a 200 with a response body after success
beginPost202Retry200Async
{ "repo_name": "tbombach/autorest", "path": "src/generator/AutoRest.Java.Azure.Fluent.Tests/src/main/java/fixtures/lro/implementation/LROsCustomHeadersInner.java", "license": "mit", "size": 65028 }
[ "com.microsoft.rest.ServiceCall", "com.microsoft.rest.ServiceCallback" ]
import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,871,035
@Test() public void testEqualsExtended() throws Exception { final JSONNull n1 = new JSONNull(); final JSONNull n2 = new JSONNull(); assertTrue(n1.equals(n1, true, true, true)); assertTrue(n1.equals(n1, false, false, false)); assertTrue(n1.equals(n2, true, true, true)); assertTrue...
@Test() void function() throws Exception { final JSONNull n1 = new JSONNull(); final JSONNull n2 = new JSONNull(); assertTrue(n1.equals(n1, true, true, true)); assertTrue(n1.equals(n1, false, false, false)); assertTrue(n1.equals(n2, true, true, true)); assertTrue(n1.equals(n2, false, false, false)); }
/** * Tests the {@code equals} method that takes an extended set of arguments. * * @throws Exception If an unexpected problem occurs. */
Tests the equals method that takes an extended set of arguments
testEqualsExtended
{ "repo_name": "UnboundID/ldapsdk", "path": "tests/unit/src/com/unboundid/util/json/JSONNullTestCase.java", "license": "gpl-2.0", "size": 6101 }
[ "org.testng.annotations.Test" ]
import org.testng.annotations.Test;
import org.testng.annotations.*;
[ "org.testng.annotations" ]
org.testng.annotations;
1,474,745
public static List<File> getFiles(String inputPath) { File file = new File(inputPath); if (!inputPath.contains("*")) { List<File> res = new ArrayList<>(); if (file.exists()) { res.add(file); } return res; } else { String prefix = inputPath.substring(0, inputPath.index...
static List<File> function(String inputPath) { File file = new File(inputPath); if (!inputPath.contains("*")) { List<File> res = new ArrayList<>(); if (file.exists()) { res.add(file); } return res; } else { String prefix = inputPath.substring(0, inputPath.indexOf(AlluxioURI.WILDCARD) + 1); String parent = new File(pref...
/** * Gets the files (on the local filesystem) that match the given input path. * If the path is a regular path, the returned list only contains the corresponding file; * Else if the path contains wildcards, the returned list contains all the matched Files. * * @param inputPath The input file path (could...
Gets the files (on the local filesystem) that match the given input path. If the path is a regular path, the returned list only contains the corresponding file; Else if the path contains wildcards, the returned list contains all the matched Files
getFiles
{ "repo_name": "madanadit/alluxio", "path": "shell/src/main/java/alluxio/cli/fs/FileSystemShellUtils.java", "license": "apache-2.0", "size": 12421 }
[ "java.io.File", "java.util.ArrayList", "java.util.List" ]
import java.io.File; import java.util.ArrayList; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,824,999
@FIXVersion(introduced="4.3") public void clearOrderQtyData() { throw new UnsupportedOperationException(getUnsupportedTagMessage()); }
@FIXVersion(introduced="4.3") void function() { throw new UnsupportedOperationException(getUnsupportedTagMessage()); }
/** * Sets the OrderQtyData component to null. */
Sets the OrderQtyData component to null
clearOrderQtyData
{ "repo_name": "marvisan/HadesFIX", "path": "Model/src/main/java/net/hades/fix/message/group/SideCrossOrdModGroup.java", "license": "gpl-3.0", "size": 46793 }
[ "net.hades.fix.message.anno.FIXVersion" ]
import net.hades.fix.message.anno.FIXVersion;
import net.hades.fix.message.anno.*;
[ "net.hades.fix" ]
net.hades.fix;
2,363,677
public void waitExpectedTextIntoConsole(String expectedText, int definedTimeout) { new WebDriverWait(seleniumWebDriver, definedTimeout) .until(textToBePresentInElement(consoleContainer, expectedText)); }
void function(String expectedText, int definedTimeout) { new WebDriverWait(seleniumWebDriver, definedTimeout) .until(textToBePresentInElement(consoleContainer, expectedText)); }
/** * wait expected text into 'Command console' * * @param expectedText expected messaje in concole * @param definedTimeout timeout in seconds defined with user */
wait expected text into 'Command console'
waitExpectedTextIntoConsole
{ "repo_name": "jonahkichwacoders/che", "path": "selenium/che-selenium-test/src/main/java/org/eclipse/che/selenium/pageobject/Consoles.java", "license": "epl-1.0", "size": 11924 }
[ "org.openqa.selenium.support.ui.WebDriverWait" ]
import org.openqa.selenium.support.ui.WebDriverWait;
import org.openqa.selenium.support.ui.*;
[ "org.openqa.selenium" ]
org.openqa.selenium;
1,473,876
private FTPFile parseLine(String line) throws FTPListParseException { // According to Extensions to FTP RFC 3659, the file name in a MLSD list response line come after the first space in the line : https://tools.ietf.org/html/rfc3659 // List line format is <FACTS WITH NO SPACES SEPARATED WITH SEMICOLON> <SPAC...
FTPFile function(String line) throws FTPListParseException { int nameIndex = line.indexOf(" "); if (nameIndex == -1) { throw new FTPListParseException(); } String name = line.substring(nameIndex + 1); String factsLine = line.substring(0, nameIndex); ArrayList list = new ArrayList(); StringTokenizer st = new StringToken...
/** * Parses a line ad a MLSD response element. * * @param line * The line. * @return The file, or null if the line has to be ignored. * @throws FTPListParseException * If the line is not a valid MLSD entry. */
Parses a line ad a MLSD response element
parseLine
{ "repo_name": "asbachb/ftp4j", "path": "src/main/java/it/sauronsoftware/ftp4j/listparsers/MLSDListParser.java", "license": "lgpl-2.1", "size": 5557 }
[ "it.sauronsoftware.ftp4j.FTPFile", "it.sauronsoftware.ftp4j.FTPListParseException", "java.text.ParseException", "java.util.ArrayList", "java.util.Date", "java.util.Iterator", "java.util.Properties", "java.util.StringTokenizer" ]
import it.sauronsoftware.ftp4j.FTPFile; import it.sauronsoftware.ftp4j.FTPListParseException; import java.text.ParseException; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import java.util.Properties; import java.util.StringTokenizer;
import it.sauronsoftware.ftp4j.*; import java.text.*; import java.util.*;
[ "it.sauronsoftware.ftp4j", "java.text", "java.util" ]
it.sauronsoftware.ftp4j; java.text; java.util;
2,327,593
public boolean remove() { Entry e = flushedEntry; if (e == null) { clearNioBuffers(); return false; } Object msg = e.msg; ChannelPromise promise = e.promise; int size = e.pendingSize; removeEntry(e); if (!e.cancelled) { ...
boolean function() { Entry e = flushedEntry; if (e == null) { clearNioBuffers(); return false; } Object msg = e.msg; ChannelPromise promise = e.promise; int size = e.pendingSize; removeEntry(e); if (!e.cancelled) { ReferenceCountUtil.safeRelease(msg); safeSuccess(promise); decrementPendingOutboundBytes(size, false, tru...
/** * Will remove the current message, mark its {@link ChannelPromise} as success and return {@code true}. If no * flushed message exists at the time this method is called it will return {@code false} to signal that no more * messages are ready to be handled. */
Will remove the current message, mark its <code>ChannelPromise</code> as success and return true. If no flushed message exists at the time this method is called it will return false to signal that no more messages are ready to be handled
remove
{ "repo_name": "bryce-anderson/netty", "path": "transport/src/main/java/io/netty/channel/ChannelOutboundBuffer.java", "license": "apache-2.0", "size": 31472 }
[ "io.netty.util.ReferenceCountUtil" ]
import io.netty.util.ReferenceCountUtil;
import io.netty.util.*;
[ "io.netty.util" ]
io.netty.util;
2,837,727
public void serialize(OutputStream out) throws IOException { this.reads.serialize(out); }
void function(OutputStream out) throws IOException { this.reads.serialize(out); }
/** * Serialize this instance. * * @param out output * @throws IOException if an error occurs */
Serialize this instance
serialize
{ "repo_name": "tempbottle/jsimpledb", "path": "src/java/org/jsimpledb/kv/mvcc/Reads.java", "license": "apache-2.0", "size": 5448 }
[ "java.io.IOException", "java.io.OutputStream" ]
import java.io.IOException; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
348,326
private boolean canSmelt() { if (this.inventory[0] == null || this.inventory[1] == null) { return false; } else { ItemStack itemstack = this.getToolResult(inventory[0], inventory[1]); if (itemstack == null) return false; if ...
boolean function() { if (this.inventory[0] == null this.inventory[1] == null) { return false; } else { ItemStack itemstack = this.getToolResult(inventory[0], inventory[1]); if (itemstack == null) return false; if (this.inventory[2] == null) return true; if (this.inventory[2] !=null) return false; return false; } }
/** * Returns true if the furnace can smelt an item, i.e. has a source item, destination stack isn't full, etc. */
Returns true if the furnace can smelt an item, i.e. has a source item, destination stack isn't full, etc
canSmelt
{ "repo_name": "Sudwood/AdvancedUtilities", "path": "java/com/sudwood/advancedutilities/tileentity/TileEntityToolForge.java", "license": "mit", "size": 27821 }
[ "net.minecraft.item.ItemStack" ]
import net.minecraft.item.ItemStack;
import net.minecraft.item.*;
[ "net.minecraft.item" ]
net.minecraft.item;
169,938
private String checkImportStatements(String className) { String illegalType = null; // import statements for (FullIdent importLineText : imports) { String importArg = importLineText.getText(); if (importArg.endsWith(".*")) { importArg = importArg.subst...
String function(String className) { String illegalType = null; for (FullIdent importLineText : imports) { String importArg = importLineText.getText(); if (importArg.endsWith(".*")) { importArg = importArg.substring(0, importArg.length() - 1) + className; } if (CommonUtils.baseClassName(importArg).equals(className) && i...
/** * Check import statements. * @param className name of the class * @return value of illegal instantiated type */
Check import statements
checkImportStatements
{ "repo_name": "sabaka/checkstyle", "path": "src/main/java/com/puppycrawl/tools/checkstyle/checks/coding/IllegalInstantiationCheck.java", "license": "lgpl-2.1", "size": 12020 }
[ "com.puppycrawl.tools.checkstyle.api.FullIdent", "com.puppycrawl.tools.checkstyle.utils.CommonUtils" ]
import com.puppycrawl.tools.checkstyle.api.FullIdent; import com.puppycrawl.tools.checkstyle.utils.CommonUtils;
import com.puppycrawl.tools.checkstyle.api.*; import com.puppycrawl.tools.checkstyle.utils.*;
[ "com.puppycrawl.tools" ]
com.puppycrawl.tools;
2,785,507
@Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(CorePackage.Literals.INTERACTION_FLOW__PARAMETER_BINDING_GROUP); } return childrenFeatures; }
Collection<? extends EStructuralFeature> function(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(CorePackage.Literals.INTERACTION_FLOW__PARAMETER_BINDING_GROUP); } return childrenFeatures; }
/** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. * <!-- begin-user-...
This specifies how to implement <code>#getChildren</code> and is used to deduce an appropriate feature for an <code>org.eclipse.emf.edit.command.AddCommand</code>, <code>org.eclipse.emf.edit.command.RemoveCommand</code> or <code>org.eclipse.emf.edit.command.MoveCommand</code> in <code>#createCommand</code>.
getChildrenFeatures
{ "repo_name": "ifml/ifml-editor", "path": "plugins/IFMLEditor.edit/src/IFML/Core/provider/InteractionFlowItemProvider.java", "license": "mit", "size": 5326 }
[ "java.util.Collection", "org.eclipse.emf.ecore.EStructuralFeature" ]
import java.util.Collection; import org.eclipse.emf.ecore.EStructuralFeature;
import java.util.*; import org.eclipse.emf.ecore.*;
[ "java.util", "org.eclipse.emf" ]
java.util; org.eclipse.emf;
2,401,650
public static void join(GridWorker w) throws IgniteInterruptedCheckedException { try { if (w != null) w.join(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new IgniteInterruptedCheckedException(e); ...
static void function(GridWorker w) throws IgniteInterruptedCheckedException { try { if (w != null) w.join(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new IgniteInterruptedCheckedException(e); } }
/** * Joins worker. * * @param w Worker. * @throws IgniteInterruptedCheckedException Wrapped {@link InterruptedException}. */
Joins worker
join
{ "repo_name": "shurun19851206/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java", "license": "apache-2.0", "size": 289056 }
[ "org.apache.ignite.internal.IgniteInterruptedCheckedException", "org.apache.ignite.internal.util.worker.GridWorker" ]
import org.apache.ignite.internal.IgniteInterruptedCheckedException; import org.apache.ignite.internal.util.worker.GridWorker;
import org.apache.ignite.internal.*; import org.apache.ignite.internal.util.worker.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,743,077
public boolean isNative() { return functionType == FunctionType.BUILTIN || functionType == FunctionType.PERSISTENT; } /** * Internal table functions cannot be used in the language. * {@link WindowingTableFunction}
boolean function() { return functionType == FunctionType.BUILTIN functionType == FunctionType.PERSISTENT; } /** * Internal table functions cannot be used in the language. * {@link WindowingTableFunction}
/** * Native functions cannot be unregistered. */
Native functions cannot be unregistered
isNative
{ "repo_name": "vergilchiu/hive", "path": "ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionInfo.java", "license": "apache-2.0", "size": 8331 }
[ "org.apache.hadoop.hive.ql.udf.ptf.WindowingTableFunction" ]
import org.apache.hadoop.hive.ql.udf.ptf.WindowingTableFunction;
import org.apache.hadoop.hive.ql.udf.ptf.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
836,135
protected void setPatient(CrmsFile crmsFile, Patient p,HttpServletRequest request ){ if(crmsFile!=null && p!=null){ crmsFile.setPidn(p.getId()); crmsFile.setPatient(p); } }
void function(CrmsFile crmsFile, Patient p,HttpServletRequest request ){ if(crmsFile!=null && p!=null){ crmsFile.setPidn(p.getId()); crmsFile.setPatient(p); } }
/** * Set the linked patient. * @param crmsFile * @param p * @param request */
Set the linked patient
setPatient
{ "repo_name": "UCSFMemoryAndAging/lava", "path": "lava-crms/src/edu/ucsf/lava/crms/file/controller/BaseCrmsFileHandler.java", "license": "bsd-2-clause", "size": 10952 }
[ "edu.ucsf.lava.crms.file.model.CrmsFile", "edu.ucsf.lava.crms.people.model.Patient", "javax.servlet.http.HttpServletRequest" ]
import edu.ucsf.lava.crms.file.model.CrmsFile; import edu.ucsf.lava.crms.people.model.Patient; import javax.servlet.http.HttpServletRequest;
import edu.ucsf.lava.crms.file.model.*; import edu.ucsf.lava.crms.people.model.*; import javax.servlet.http.*;
[ "edu.ucsf.lava", "javax.servlet" ]
edu.ucsf.lava; javax.servlet;
898,957
public static ProjectComponent[] diffProjectsMd5(Map<ProjectComponent,String> project1,Map<ProjectComponent,String> project2){ HashSet<ProjectComponent> set = new HashSet<ProjectComponent>(); Iterator<ProjectComponent> proj1Iter = project1.keySet().iterator(); while (proj1Iter.hasNext()){ ProjectComponent...
static ProjectComponent[] function(Map<ProjectComponent,String> project1,Map<ProjectComponent,String> project2){ HashSet<ProjectComponent> set = new HashSet<ProjectComponent>(); Iterator<ProjectComponent> proj1Iter = project1.keySet().iterator(); while (proj1Iter.hasNext()){ ProjectComponent componentString = proj1Iter...
/** * Compares the md5 of two projects and returns and array of the components * which are different between two projects. */
Compares the md5 of two projects and returns and array of the components which are different between two projects
diffProjectsMd5
{ "repo_name": "Top-Q/jsystem", "path": "jsystem-core-projects/jsystemAgent/src/main/java/jsystem/runner/projectsync/MD5Calculator.java", "license": "apache-2.0", "size": 6653 }
[ "java.util.HashSet", "java.util.Iterator", "java.util.Map" ]
import java.util.HashSet; import java.util.Iterator; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
377,778
public void replaceObjectLabels(Map<ObjectLabel, ObjectLabel> m) { maybe_summarized = Renaming.apply(m, maybe_summarized); definitely_summarized = Renaming.apply(m, definitely_summarized); }
void function(Map<ObjectLabel, ObjectLabel> m) { maybe_summarized = Renaming.apply(m, maybe_summarized); definitely_summarized = Renaming.apply(m, definitely_summarized); }
/** * Replaces all object labels according to the given map. */
Replaces all object labels according to the given map
replaceObjectLabels
{ "repo_name": "cursem/ScriptCompressor", "path": "ScriptCompressor1.0/src/dk/brics/tajs/lattice/Summarized.java", "license": "apache-2.0", "size": 5069 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,060,138
void setStatus(ItemStatus status);
void setStatus(ItemStatus status);
/** * The importer found the status of the specification item * * @param status * the status */
The importer found the status of the specification item
setStatus
{ "repo_name": "hamstercommunity/openfasttrack", "path": "api/src/main/java/org/itsallcode/openfasttrace/api/importer/ImportEventListener.java", "license": "gpl-3.0", "size": 4347 }
[ "org.itsallcode.openfasttrace.api.core.ItemStatus" ]
import org.itsallcode.openfasttrace.api.core.ItemStatus;
import org.itsallcode.openfasttrace.api.core.*;
[ "org.itsallcode.openfasttrace" ]
org.itsallcode.openfasttrace;
1,018,369
@Nonnull public final SourceLocation getSourceLocation() { return this.sourceLocation; }
final SourceLocation function() { return this.sourceLocation; }
/** * Gets the source location of this assembly step location. * * @return the source location */
Gets the source location of this assembly step location
getSourceLocation
{ "repo_name": "reasm/reasm-core", "path": "src/main/java/org/reasm/AssemblyStepLocation.java", "license": "mit", "size": 6093 }
[ "org.reasm.source.SourceLocation" ]
import org.reasm.source.SourceLocation;
import org.reasm.source.*;
[ "org.reasm.source" ]
org.reasm.source;
693,383
public static boolean stop(@Nullable String name, boolean cancel, boolean stopNotStarted, long timeoutMs) { final ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
static boolean function(@Nullable String name, boolean cancel, boolean stopNotStarted, long timeoutMs) { final ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
/** * Behavior of the method is the almost same as {@link IgnitionEx#stop(String, boolean, boolean)}. * If node stopping process will not be finished within {@code timeoutMs} whole JVM will be killed. * * @param timeoutMs Timeout to wait graceful stopping. */
Behavior of the method is the almost same as <code>IgnitionEx#stop(String, boolean, boolean)</code>. If node stopping process will not be finished within timeoutMs whole JVM will be killed
stop
{ "repo_name": "alexzaitzev/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/IgnitionEx.java", "license": "apache-2.0", "size": 121504 }
[ "java.util.concurrent.Executors", "java.util.concurrent.ScheduledExecutorService", "org.jetbrains.annotations.Nullable" ]
import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import org.jetbrains.annotations.Nullable;
import java.util.concurrent.*; import org.jetbrains.annotations.*;
[ "java.util", "org.jetbrains.annotations" ]
java.util; org.jetbrains.annotations;
323,294
public static StatisticalTestResult performAnalysis(List<String> drawingCommands,String varName, String expectedMethodName) { if (drawingCommands.isEmpty()) throw new IllegalArgumentException("no command to perform statistical analysis"); StatisticalTestResult STR=new StatisticalTestResult(); for(St...
static StatisticalTestResult function(List<String> drawingCommands,String varName, String expectedMethodName) { if (drawingCommands.isEmpty()) throw new IllegalArgumentException(STR); StatisticalTestResult STR=new StatisticalTestResult(); for(String cmd:drawingCommands) eval(cmd,STR+cmd); STR.statistic=valueAsDouble(en...
/** Using a supplied list of commands, obtains a result. * * @param drawingCommand commands to run, the outcome of the last one is reported. * @param varName the variable used to assign the outcome in the commands executed. * @param expectedMethodName When computing a result, R reports the name of the met...
Using a supplied list of commands, obtains a result
performAnalysis
{ "repo_name": "kirilluk/statechum", "path": "src/statechum/analysis/learning/DrawGraphs.java", "license": "gpl-3.0", "size": 41412 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,366,680
public byte[] getImage(String path) throws Exception { URL url = new URL(path); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setConnectTimeout(5 * 1000); conn.setRequestMethod("GET"); InputStream inStream = conn.getInputStream(); if (conn.ge...
byte[] function(String path) throws Exception { URL url = new URL(path); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setConnectTimeout(5 * 1000); conn.setRequestMethod("GET"); InputStream inStream = conn.getInputStream(); if (conn.getResponseCode() == HttpURLConnection.HTTP_OK) { return read...
/** * Get image from newwork * * @param path The path of image * @return byte[] * @throws Exception */
Get image from newwork
getImage
{ "repo_name": "coderJohnZhang/TvLauncher", "path": "src/com/gotech/tv/launcher/util/FileUtils.java", "license": "apache-2.0", "size": 19896 }
[ "java.io.InputStream", "java.net.HttpURLConnection" ]
import java.io.InputStream; import java.net.HttpURLConnection;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
2,266,413
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<Response<PublicIpAddressInner>> updateTagsWithResponseAsync( String resourceGroupName, String publicIpAddressName, TagsObject parameters) { if (this.client.getEndpoint() == null) { return Mono .error( ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<PublicIpAddressInner>> function( String resourceGroupName, String publicIpAddressName, TagsObject parameters) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (resourceGroupName == null) { return Mono .erro...
/** * Updates public IP address tags. * * @param resourceGroupName The name of the resource group. * @param publicIpAddressName The name of the public IP address. * @param parameters Parameters supplied to update public IP address tags. * @throws IllegalArgumentException thrown if paramete...
Updates public IP address tags
updateTagsWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/PublicIpAddressesClientImpl.java", "license": "mit", "size": 177318 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.network.fluent.models.PublicIpAddressInner", "com.azure.resourcemanager.network.models.TagsObject" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.models.PublicIpAddressInner; import com.azure.resourcemanager.network.models.TagsObject;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.network.fluent.models.*; import com.azure.resourcemanager.network.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,220,350
public static void addToZip(ZipOutputStream zos, File file, String path, String comment, boolean recursive) throws IOException { if (!file.exists()) { throw new FileNotFoundException(file.toString()); } if (path == null) { path = file.getName(); } while (path.length() != 0 && path.charAt(0) == '/')...
static void function(ZipOutputStream zos, File file, String path, String comment, boolean recursive) throws IOException { if (!file.exists()) { throw new FileNotFoundException(file.toString()); } if (path == null) { path = file.getName(); } while (path.length() != 0 && path.charAt(0) == '/') { path = path.substring(1);...
/** * Adds single entry to ZIP output stream. * * @param zos zip output stream * @param file file or folder to add * @param path relative path of file entry; if <code>null</code> files name will be used instead * @param comment optional comment * @param recursive when set to <code>true</code> content of a...
Adds single entry to ZIP output stream
addToZip
{ "repo_name": "vilmospapp/jodd", "path": "jodd-core/src/main/java/jodd/io/ZipUtil.java", "license": "bsd-2-clause", "size": 11076 }
[ "java.io.File", "java.io.FileInputStream", "java.io.FileNotFoundException", "java.io.IOException", "java.io.InputStream", "java.util.zip.ZipEntry", "java.util.zip.ZipOutputStream" ]
import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipOutputStream;
import java.io.*; import java.util.zip.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,689,021
private double validateAndGetBloomFilterFpp(IndexSchema dmSchema) throws MalformedIndexCommandException { String bloomFilterFppStr = dmSchema.getProperties().get(BLOOM_FPP); if (StringUtils.isBlank(bloomFilterFppStr)) { LOGGER.warn( String.format("Bloom filter FPP is not configured for i...
double function(IndexSchema dmSchema) throws MalformedIndexCommandException { String bloomFilterFppStr = dmSchema.getProperties().get(BLOOM_FPP); if (StringUtils.isBlank(bloomFilterFppStr)) { LOGGER.warn( String.format(STR, indexName, DEFAULT_BLOOM_FILTER_FPP)); return DEFAULT_BLOOM_FILTER_FPP; } double bloomFilterFpp;...
/** * validate bloom Index BLOOM_FPP * 1. BLOOM_FPP property is optional, 0.00001 will be the default value. * 2. BLOOM_FPP should be (0, 1) */
validate bloom Index BLOOM_FPP 1. BLOOM_FPP property is optional, 0.00001 will be the default value. 2. BLOOM_FPP should be (0, 1)
validateAndGetBloomFilterFpp
{ "repo_name": "zzcclp/carbondata", "path": "index/bloom/src/main/java/org/apache/carbondata/index/bloom/BloomCoarseGrainIndexFactory.java", "license": "apache-2.0", "size": 18638 }
[ "org.apache.carbondata.common.exceptions.sql.MalformedIndexCommandException", "org.apache.carbondata.core.metadata.schema.table.IndexSchema", "org.apache.commons.lang3.StringUtils" ]
import org.apache.carbondata.common.exceptions.sql.MalformedIndexCommandException; import org.apache.carbondata.core.metadata.schema.table.IndexSchema; import org.apache.commons.lang3.StringUtils;
import org.apache.carbondata.common.exceptions.sql.*; import org.apache.carbondata.core.metadata.schema.table.*; import org.apache.commons.lang3.*;
[ "org.apache.carbondata", "org.apache.commons" ]
org.apache.carbondata; org.apache.commons;
2,440,499
public int getRunStart(Set<? extends Attribute> attributes);
int function(Set<? extends Attribute> attributes);
/** * Returns the index of the first character in the run that has the same * attribute values for the attributes in the set as the current character. * * @param attributes * the set of attributes which the run is based on. * @return the index of the last character of the current run. */
Returns the index of the first character in the run that has the same attribute values for the attributes in the set as the current character
getRunStart
{ "repo_name": "webos21/xi", "path": "java/jcl/src/java/java/text/AttributedCharacterIterator.java", "license": "apache-2.0", "size": 7544 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,722,539
public String[] getOptions() { Vector<String> options = new Vector<String>(); if (getDebug()) options.add("-D"); options.add("-reader"); options.add(OptionUtils.getCommandLine(m_Reader)); options.add("-conversion"); options.add(OptionUtils.getCommandLine(m_Conversion)); r...
String[] function() { Vector<String> options = new Vector<String>(); if (getDebug()) options.add("-D"); options.add(STR); options.add(OptionUtils.getCommandLine(m_Reader)); options.add(STR); options.add(OptionUtils.getCommandLine(m_Conversion)); return (String[]) options.toArray(new String[options.size()]); }
/** * Gets the setting * * @return the current setting */
Gets the setting
getOptions
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-weka/src/main/java/weka/core/converters/SpreadSheetLoader.java", "license": "gpl-3.0", "size": 13287 }
[ "java.util.Vector" ]
import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
601,220
public ComponentUI[] getUIs() { return MultiLookAndFeel.uisToArray(uis); }
ComponentUI[] function() { return MultiLookAndFeel.uisToArray(uis); }
/** * Returns an array containing the UI delegates managed by this * <code>MultiMenuBarUI</code>. The first item in the array is always * the UI delegate from the installed default look and feel. * * @return An array of UI delegates. */
Returns an array containing the UI delegates managed by this <code>MultiMenuBarUI</code>. The first item in the array is always the UI delegate from the installed default look and feel
getUIs
{ "repo_name": "shaotuanchen/sunflower_exp", "path": "tools/source/gcc-4.2.4/libjava/classpath/javax/swing/plaf/multi/MultiMenuBarUI.java", "license": "bsd-3-clause", "size": 11190 }
[ "javax.swing.plaf.ComponentUI" ]
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.*;
[ "javax.swing" ]
javax.swing;
809,182
private void completeBlock(BlockInfo curBlock, INodesInPath iip, boolean force) throws IOException { if (curBlock.isComplete()) { return; } int numNodes = curBlock.numNodes(); if (!force && !hasMinStorage(curBlock, numNodes)) { throw new IOException("Cannot complete block: " ...
void function(BlockInfo curBlock, INodesInPath iip, boolean force) throws IOException { if (curBlock.isComplete()) { return; } int numNodes = curBlock.numNodes(); if (!force && !hasMinStorage(curBlock, numNodes)) { throw new IOException(STR + STR); } if (!force && curBlock.getBlockUCState() != BlockUCState.COMMITTED) {...
/** * Convert a specified block of the file to a complete block. * @param curBlock - block to be completed * @param iip - INodes in path to file containing curBlock; if null, * this will be resolved internally * @param force - force completion of the block * @throws IOException if the blo...
Convert a specified block of the file to a complete block
completeBlock
{ "repo_name": "dierobotsdie/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java", "license": "apache-2.0", "size": 194556 }
[ "java.io.IOException", "org.apache.hadoop.hdfs.server.common.HdfsServerConstants", "org.apache.hadoop.hdfs.server.namenode.INodesInPath" ]
import java.io.IOException; import org.apache.hadoop.hdfs.server.common.HdfsServerConstants; import org.apache.hadoop.hdfs.server.namenode.INodesInPath;
import java.io.*; import org.apache.hadoop.hdfs.server.common.*; import org.apache.hadoop.hdfs.server.namenode.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,519,343
protected void addNewAccountToItemList(List<PurchasingAccountsPayableLineAssetAccount> newAccountList) { PurchasingAccountsPayableItemAsset lineItem = null; for (PurchasingAccountsPayableLineAssetAccount newAccount : newAccountList) { lineItem = newAccount.getPurchasingAccountsPayable...
void function(List<PurchasingAccountsPayableLineAssetAccount> newAccountList) { PurchasingAccountsPayableItemAsset lineItem = null; for (PurchasingAccountsPayableLineAssetAccount newAccount : newAccountList) { lineItem = newAccount.getPurchasingAccountsPayableItemAsset(); if (ObjectUtils.isNotNull(lineItem) && ObjectUt...
/** * update account list for each line item * * @param updatedAccountList */
update account list for each line item
addNewAccountToItemList
{ "repo_name": "ua-eas/ua-kfs-5.3", "path": "work/src/org/kuali/kfs/module/cab/document/service/impl/PurApLineServiceImpl.java", "license": "agpl-3.0", "size": 69120 }
[ "java.util.List", "org.kuali.kfs.module.cab.businessobject.PurchasingAccountsPayableItemAsset", "org.kuali.kfs.module.cab.businessobject.PurchasingAccountsPayableLineAssetAccount", "org.kuali.rice.krad.util.ObjectUtils" ]
import java.util.List; import org.kuali.kfs.module.cab.businessobject.PurchasingAccountsPayableItemAsset; import org.kuali.kfs.module.cab.businessobject.PurchasingAccountsPayableLineAssetAccount; import org.kuali.rice.krad.util.ObjectUtils;
import java.util.*; import org.kuali.kfs.module.cab.businessobject.*; import org.kuali.rice.krad.util.*;
[ "java.util", "org.kuali.kfs", "org.kuali.rice" ]
java.util; org.kuali.kfs; org.kuali.rice;
46,460
public File getBuildDir() { // we use the null check variant so that people can write true unit tests with a mock ItemParent // and without a JenkinsRule. Such tests are of limited utility as there is a high risk of hitting // some code that needs the singleton, but for persistence migration...
File function() { Jenkins j = Jenkins.getInstanceOrNull(); if (j == null) { return new File(getRootDir(), STR); } return j.getBuildDirFor(this); }
/** * Directory for storing {@link Run} records. * <p> * Some {@link Job}s may not have backing data store for {@link Run}s, but * those {@link Job}s that use file system for storing data should use this * directory for consistency. * * @see RunMap */
Directory for storing <code>Run</code> records. Some <code>Job</code>s may not have backing data store for <code>Run</code>s, but those <code>Job</code>s that use file system for storing data should use this directory for consistency
getBuildDir
{ "repo_name": "lilyJi/jenkins", "path": "core/src/main/java/hudson/model/Job.java", "license": "mit", "size": 53225 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,158,529
public void run() { GUIUtils.setAnimatedFrameIgnoreRepaint(true); // animated frames are updated by this thread so no need to repaint long sleepTime = delayTime; while(animationThread==Thread.currentThread()) { long currentTime = System.currentTimeMillis(); for(int i = 0; i<stepsPerDisplay; i+...
void function() { GUIUtils.setAnimatedFrameIgnoreRepaint(true); long sleepTime = delayTime; while(animationThread==Thread.currentThread()) { long currentTime = System.currentTimeMillis(); for(int i = 0; i<stepsPerDisplay; i++) { doStep(); stepCounter++; if(animationThread!=Thread.currentThread()) { break; } Thread.yiel...
/** * Implementation of Runnable interface. DO NOT access this method directly. */
Implementation of Runnable interface. DO NOT access this method directly
run
{ "repo_name": "dobrown/tracker-mvn", "path": "src/main/java/org/opensourcephysics/controls/AbstractSimulation.java", "license": "gpl-3.0", "size": 12581 }
[ "org.opensourcephysics.display.GUIUtils" ]
import org.opensourcephysics.display.GUIUtils;
import org.opensourcephysics.display.*;
[ "org.opensourcephysics.display" ]
org.opensourcephysics.display;
71,966
public void shrinkSelectionOnRange(double x, double y, MouseEvent selectionEvent) { Plot p = this.chart.getPlot(); if (p instanceof XYPlot) { XYPlot plot = (XYPlot) p; Selection selectionObject = new Selection(); for (int i = 0; i < plot.getRangeAxisCount(); i++) { ValueAxis domain = plot.getRangeAx...
void function(double x, double y, MouseEvent selectionEvent) { Plot p = this.chart.getPlot(); if (p instanceof XYPlot) { XYPlot plot = (XYPlot) p; Selection selectionObject = new Selection(); for (int i = 0; i < plot.getRangeAxisCount(); i++) { ValueAxis domain = plot.getRangeAxis(i); double zoomFactor = getZoomInFacto...
/** * Decreases the length of the range axis, centered about the given coordinate on the screen. The length of the * range axis is reduced by the value of {@link #getZoomInFactor()}. * * @param x * the x-coordinate (in screen coordinates). * @param y * the y coordinate (in screen co...
Decreases the length of the range axis, centered about the given coordinate on the screen. The length of the range axis is reduced by the value of <code>#getZoomInFactor()</code>
shrinkSelectionOnRange
{ "repo_name": "aborg0/RapidMiner-Unuk", "path": "src/com/rapidminer/gui/plotter/charts/AbstractChartPanel.java", "license": "agpl-3.0", "size": 82675 }
[ "java.awt.event.MouseEvent", "org.jfree.chart.axis.ValueAxis", "org.jfree.chart.plot.Plot", "org.jfree.chart.plot.XYPlot" ]
import java.awt.event.MouseEvent; import org.jfree.chart.axis.ValueAxis; import org.jfree.chart.plot.Plot; import org.jfree.chart.plot.XYPlot;
import java.awt.event.*; import org.jfree.chart.axis.*; import org.jfree.chart.plot.*;
[ "java.awt", "org.jfree.chart" ]
java.awt; org.jfree.chart;
808,500
void writeRoot(DataOutput out) throws IOException { for (int i = 0; i < blockKeys.size(); ++i) { out.writeLong(blockOffsets.get(i)); out.writeInt(onDiskDataSizes.get(i)); Bytes.writeByteArray(out, blockKeys.get(i)); } }
void writeRoot(DataOutput out) throws IOException { for (int i = 0; i < blockKeys.size(); ++i) { out.writeLong(blockOffsets.get(i)); out.writeInt(onDiskDataSizes.get(i)); Bytes.writeByteArray(out, blockKeys.get(i)); } }
/** * Writes this chunk into the given output stream in the root block index * format. This format is similar to the {@link HFile} version 1 block * index format, except that we store on-disk size of the block instead of * its uncompressed size. * * @param out the data output stream to wri...
Writes this chunk into the given output stream in the root block index format. This format is similar to the <code>HFile</code> version 1 block index format, except that we store on-disk size of the block instead of its uncompressed size
writeRoot
{ "repo_name": "lifeng5042/RStore", "path": "src/org/apache/hadoop/hbase/io/hfile/HFileBlockIndex.java", "license": "gpl-2.0", "size": 49025 }
[ "java.io.DataOutput", "java.io.IOException", "org.apache.hadoop.hbase.util.Bytes" ]
import java.io.DataOutput; import java.io.IOException; import org.apache.hadoop.hbase.util.Bytes;
import java.io.*; import org.apache.hadoop.hbase.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
725,463
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<SpatialAnchorsAccountInner>> updateWithResponseAsync( String resourceGroupName, String accountName, SpatialAnchorsAccountInner spatialAnchorsAccount) { if (this.client.getEndpoint() == null) { return Mono ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<SpatialAnchorsAccountInner>> function( String resourceGroupName, String accountName, SpatialAnchorsAccountInner spatialAnchorsAccount) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (this.client.getSubscr...
/** * Updating a Spatial Anchors Account. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Name of an Mixed Reality Account. * @param spatialAnchorsAccount Spatial Anchors Account parameter. * @throws IllegalArgumentException thrown if parameters fail the ...
Updating a Spatial Anchors Account
updateWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/mixedreality/azure-resourcemanager-mixedreality/src/main/java/com/azure/resourcemanager/mixedreality/implementation/SpatialAnchorsAccountsClientImpl.java", "license": "mit", "size": 75985 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.mixedreality.fluent.models.SpatialAnchorsAccountInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.mixedreality.fluent.models.SpatialAnchorsAccountInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.mixedreality.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,404,142
@Override public void abortJob(int jobID) throws RemoteException { DataNode localNode = (DataNode) node; localNode.abortJob(jobID); }
void function(int jobID) throws RemoteException { DataNode localNode = (DataNode) node; localNode.abortJob(jobID); }
/** * abortJob: Abort a job on this DataNode * @param jobID: jobID of the job to be aborted * @throws RemoteException */
abortJob: Abort a job on this DataNode
abortJob
{ "repo_name": "swapnil-pimpale/Map-Reduce-Engine", "path": "framework-src/Communicator.java", "license": "gpl-2.0", "size": 21736 }
[ "java.rmi.RemoteException" ]
import java.rmi.RemoteException;
import java.rmi.*;
[ "java.rmi" ]
java.rmi;
2,054,665
private TaskStatus runSinglePhaseParallel(TaskToolbox toolbox) throws Exception { final ParallelIndexTaskRunner<SinglePhaseSubTask, PushedSegmentsReport> runner = createRunner( toolbox, this::createSinglePhaseTaskRunner ); final TaskState state = runNextPhase(runner); if (state.isSu...
TaskStatus function(TaskToolbox toolbox) throws Exception { final ParallelIndexTaskRunner<SinglePhaseSubTask, PushedSegmentsReport> runner = createRunner( toolbox, this::createSinglePhaseTaskRunner ); final TaskState state = runNextPhase(runner); if (state.isSuccess()) { publishSegments(toolbox, runner.getReports()); }...
/** * Run the single phase parallel indexing for best-effort rollup. In this mode, each sub task created by * the supervisor task reads data and generates segments individually. */
Run the single phase parallel indexing for best-effort rollup. In this mode, each sub task created by the supervisor task reads data and generates segments individually
runSinglePhaseParallel
{ "repo_name": "Fokko/druid", "path": "indexing-service/src/main/java/org/apache/druid/indexing/common/task/batch/parallel/ParallelIndexSupervisorTask.java", "license": "apache-2.0", "size": 47214 }
[ "org.apache.druid.indexer.TaskState", "org.apache.druid.indexer.TaskStatus", "org.apache.druid.indexing.common.TaskToolbox" ]
import org.apache.druid.indexer.TaskState; import org.apache.druid.indexer.TaskStatus; import org.apache.druid.indexing.common.TaskToolbox;
import org.apache.druid.indexer.*; import org.apache.druid.indexing.common.*;
[ "org.apache.druid" ]
org.apache.druid;
157,891
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<ExpressRoutePortsLocationInner> getAsync(String locationName) { return getWithResponseAsync(locationName) .flatMap( (Response<ExpressRoutePortsLocationInner> res) -> { if (res.getValue() != null) { ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<ExpressRoutePortsLocationInner> function(String locationName) { return getWithResponseAsync(locationName) .flatMap( (Response<ExpressRoutePortsLocationInner> res) -> { if (res.getValue() != null) { return Mono.just(res.getValue()); } else { return Mono.empty(); } }); }
/** * Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at * said peering location. * * @param locationName Name of the requested ExpressRoutePort peering location. * @throws IllegalArgumentException thrown if parameters fail the validati...
Retrieves a single ExpressRoutePort peering location, including the list of available bandwidths available at said peering location
getAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsLocationsClientImpl.java", "license": "mit", "size": 22071 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.resourcemanager.network.fluent.models.ExpressRoutePortsLocationInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.resourcemanager.network.fluent.models.ExpressRoutePortsLocationInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.network.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,029,377
private void populateHeaderAndAttachmentsFromResponse(AttachmentMessage inOrOut, SoapMessage soapMessage) { if (soapMessage.getSoapHeader() != null && getEndpoint().getConfiguration().isAllowResponseHeaderOverride()) { populateMessageHeaderFromResponse(inOrOut, soapMessage.getSoapHeader()); ...
void function(AttachmentMessage inOrOut, SoapMessage soapMessage) { if (soapMessage.getSoapHeader() != null && getEndpoint().getConfiguration().isAllowResponseHeaderOverride()) { populateMessageHeaderFromResponse(inOrOut, soapMessage.getSoapHeader()); } if (soapMessage.getAttachments() != null && getEndpoint().getConfi...
/** * Populates soap message headers and attachments from soap response */
Populates soap message headers and attachments from soap response
populateHeaderAndAttachmentsFromResponse
{ "repo_name": "DariusX/camel", "path": "components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceProducer.java", "license": "apache-2.0", "size": 16315 }
[ "org.apache.camel.attachment.AttachmentMessage", "org.springframework.ws.soap.SoapMessage" ]
import org.apache.camel.attachment.AttachmentMessage; import org.springframework.ws.soap.SoapMessage;
import org.apache.camel.attachment.*; import org.springframework.ws.soap.*;
[ "org.apache.camel", "org.springframework.ws" ]
org.apache.camel; org.springframework.ws;
828,429
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<VirtualMachineScaleSetSkuInner>> listSkusNextSinglePageAsync( String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot b...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PagedResponse<VirtualMachineScaleSetSkuInner>> function( String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException(STR)); } if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); ...
/** * Get the next page of items. * * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ApiErrorException thrown if the request is rejected by server....
Get the next page of items
listSkusNextSinglePageAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/VirtualMachineScaleSetsClientImpl.java", "license": "mit", "size": 352067 }
[ "com.azure.core.annotation.Get", "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.Context", "com.azure.resourcemanager.compute.fluent.models.VirtualMachineScaleS...
import com.azure.core.annotation.Get; 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.Context; import com.azure.resourcemanager.compute.fluent.models....
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.compute.fluent.models.*; import com.azure.resourcemanager.compute.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,864,558
public static void rename(Environment eEnv) { eEnv.setPnf(new PrettyNameFactory()); // 1. We rename (with pretty names) the semantic labels for (int i = 0; i < eEnv.getSemlabels().size(); i++) { String slabel = eEnv.getSemlabels().get(i); if (slabel != null) ...
static void function(Environment eEnv) { eEnv.setPnf(new PrettyNameFactory()); for (int i = 0; i < eEnv.getSemlabels().size(); i++) { String slabel = eEnv.getSemlabels().get(i); if (slabel != null) eEnv.bind(slabel, new Value(Value.Kind.VAL, "!" + eEnv.getPnf().getName(slabel))); } List<Value> bounded = new LinkedList<...
/** * Method used to set up the variable and semantic label renaming * * NB1: variables bound to constants (ie values) are not pretty renamed * NB2: free variables are not in the environment and thus cannot be pretty * renamed */
Method used to set up the variable and semantic label renaming NB1: variables bound to constants (ie values) are not pretty renamed NB2: free variables are not in the environment and thus cannot be pretty renamed
rename
{ "repo_name": "spetitjean/TuLiPA-frames", "path": "src/de/tuebingen/tag/Environment.java", "license": "gpl-3.0", "size": 7864 }
[ "de.duesseldorf.frames.Value", "de.tuebingen.derive.PrettyNameFactory", "java.util.Iterator", "java.util.LinkedList", "java.util.List", "java.util.Set" ]
import de.duesseldorf.frames.Value; import de.tuebingen.derive.PrettyNameFactory; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Set;
import de.duesseldorf.frames.*; import de.tuebingen.derive.*; import java.util.*;
[ "de.duesseldorf.frames", "de.tuebingen.derive", "java.util" ]
de.duesseldorf.frames; de.tuebingen.derive; java.util;
398,072
@Override public void coloredTextAvailable(String text, Key attributes) { textAvailable(text, attributes); notifyColoredListeners(text, attributes); }
void function(String text, Key attributes) { textAvailable(text, attributes); notifyColoredListeners(text, attributes); }
/** * Override this method to handle colored text lines. * Overrides should call super.coloredTextAvailable() if they want to pass lines to registered listeners * To receive chunks of data instead of fragments inherit your class from ColoredChunksAcceptor interface and * override coloredChunksAvailable meth...
Override this method to handle colored text lines. Overrides should call super.coloredTextAvailable() if they want to pass lines to registered listeners To receive chunks of data instead of fragments inherit your class from ColoredChunksAcceptor interface and override coloredChunksAvailable method
coloredTextAvailable
{ "repo_name": "akosyakov/intellij-community", "path": "platform/platform-api/src/com/intellij/execution/process/ColoredProcessHandler.java", "license": "apache-2.0", "size": 3637 }
[ "com.intellij.openapi.util.Key" ]
import com.intellij.openapi.util.Key;
import com.intellij.openapi.util.*;
[ "com.intellij.openapi" ]
com.intellij.openapi;
2,298,791
public long getAllIdleTimeInMillis() { return TimeUnit.NANOSECONDS.toMillis(allIdleTimeNanos); }
long function() { return TimeUnit.NANOSECONDS.toMillis(allIdleTimeNanos); }
/** * Return the allIdleTime that was given when instance this class in milliseconds. * */
Return the allIdleTime that was given when instance this class in milliseconds
getAllIdleTimeInMillis
{ "repo_name": "drowning/netty", "path": "handler/src/main/java/io/netty/handler/timeout/IdleStateHandler.java", "license": "apache-2.0", "size": 16703 }
[ "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,373,676
public File getLogFile() { return new File(job.getRootDir(),"scm-polling.log"); } @Extension @Symbol("pollSCM") public static class DescriptorImpl extends TriggerDescriptor implements PersistentDescriptor {
File function() { return new File(job.getRootDir(),STR); } @Extension @Symbol(STR) public static class DescriptorImpl extends TriggerDescriptor implements PersistentDescriptor {
/** * Returns the file that records the last/current polling activity. */
Returns the file that records the last/current polling activity
getLogFile
{ "repo_name": "rsandell/jenkins", "path": "core/src/main/java/hudson/triggers/SCMTrigger.java", "license": "mit", "size": 26516 }
[ "hudson.model.PersistentDescriptor", "java.io.File", "org.jenkinsci.Symbol" ]
import hudson.model.PersistentDescriptor; import java.io.File; import org.jenkinsci.Symbol;
import hudson.model.*; import java.io.*; import org.jenkinsci.*;
[ "hudson.model", "java.io", "org.jenkinsci" ]
hudson.model; java.io; org.jenkinsci;
2,852,868
List<Long> getDurationList(String path, TimeUnit unit);
List<Long> getDurationList(String path, TimeUnit unit);
/** * Gets a list, converting each value in the list to a duration, using the * same rules as {@link #getDuration(String, TimeUnit)}. * * @since 1.1 * @param path * a path expression * @param unit * time units of the returned values * @return list of du...
Gets a list, converting each value in the list to a duration, using the same rules as <code>#getDuration(String, TimeUnit)</code>
getDurationList
{ "repo_name": "deephacks/confit", "path": "core/src/main/java/org/deephacks/confit/internal/core/property/typesafe/Config.java", "license": "apache-2.0", "size": 24261 }
[ "java.util.List", "java.util.concurrent.TimeUnit" ]
import java.util.List; import java.util.concurrent.TimeUnit;
import java.util.*; import java.util.concurrent.*;
[ "java.util" ]
java.util;
31,393
@SuppressWarnings("unchecked") @Override public List<GroupDO> getAllGroups() { try { List<GroupDO> list = hibernateTemplate.find("from GroupDO t"); if (list != null) { list = (List<GroupDO>) selectUnique(list); } return list; } catch (final Exception ex) { log.fatal...
@SuppressWarnings(STR) List<GroupDO> function() { try { List<GroupDO> list = hibernateTemplate.find(STR); if (list != null) { list = (List<GroupDO>) selectUnique(list); } return list; } catch (final Exception ex) { log.fatal( STR + ex.getMessage(), ex); return new ArrayList<GroupDO>(); } }
/** * The assigned users are fetched. * @see org.projectforge.user.LoginHandler#getAllGroups() */
The assigned users are fetched
getAllGroups
{ "repo_name": "developerleo/ProjectForge-2nd", "path": "src/main/java/org/projectforge/user/LoginDefaultHandler.java", "license": "gpl-3.0", "size": 8640 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,787,725
Contact addContact(KuorumUser kuorumUser, Contact contact);
Contact addContact(KuorumUser kuorumUser, Contact contact);
/** * Adds a single contact without any notification. * If the contacts already exists, it will be updated * @param kuorumUser * @param contact */
Adds a single contact without any notification. If the contacts already exists, it will be updated
addContact
{ "repo_name": "Kuorum/kuorumServices", "path": "serviceContact/src/main/java/org/kuorum/service/contact/ContactService.java", "license": "gpl-3.0", "size": 5589 }
[ "org.kuorum.provider.mongo.model.kuorumUser.KuorumUser", "org.kuorum.provider.mysql.model.contact.Contact" ]
import org.kuorum.provider.mongo.model.kuorumUser.KuorumUser; import org.kuorum.provider.mysql.model.contact.Contact;
import org.kuorum.provider.mongo.model.*; import org.kuorum.provider.mysql.model.contact.*;
[ "org.kuorum.provider" ]
org.kuorum.provider;
1,479,264
private void cleanQueue() { Date now = new Date(); Calendar cal = Calendar.getInstance(); cal.setTime(now); cal.add(Calendar.MILLISECOND, -queueTTL); if (this.queueTTL > 0) { QueryObject o; while ((o = (QueryObject) offlineQueue.getQueue().peek()) != null) { if (o.getTimestamp...
void function() { Date now = new Date(); Calendar cal = Calendar.getInstance(); cal.setTime(now); cal.add(Calendar.MILLISECOND, -queueTTL); if (this.queueTTL > 0) { QueryObject o; while ((o = (QueryObject) offlineQueue.getQueue().peek()) != null) { if (o.getTimestamp().before(cal.getTime())) { offlineQueue.getQueue().p...
/** * Clean up the queue, ensuring the queryTTL and queryMaxSize properties are respected */
Clean up the queue, ensuring the queryTTL and queryMaxSize properties are respected
cleanQueue
{ "repo_name": "kuzzleio/sdk-android", "path": "src/main/java/io/kuzzle/sdk/core/Kuzzle.java", "license": "apache-2.0", "size": 81564 }
[ "io.kuzzle.sdk.util.QueryObject", "java.util.Calendar", "java.util.Date" ]
import io.kuzzle.sdk.util.QueryObject; import java.util.Calendar; import java.util.Date;
import io.kuzzle.sdk.util.*; import java.util.*;
[ "io.kuzzle.sdk", "java.util" ]
io.kuzzle.sdk; java.util;
1,498,187
public StepInterface getStep(StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta, Trans trans);
StepInterface function(StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta, Trans trans);
/** * Get the executing step, needed by Trans to launch a step. * @param stepMeta The step info * @param stepDataInterface the step data interface linked to this step. Here the step can store temporary data, database connections, etc. * @param copyNr The copy nr to get * @param transMeta The transformation i...
Get the executing step, needed by Trans to launch a step
getStep
{ "repo_name": "ontometrics/ontokettle", "path": "src/be/ibridge/kettle/trans/step/StepMetaInterface.java", "license": "lgpl-2.1", "size": 9698 }
[ "be.ibridge.kettle.trans.Trans", "be.ibridge.kettle.trans.TransMeta" ]
import be.ibridge.kettle.trans.Trans; import be.ibridge.kettle.trans.TransMeta;
import be.ibridge.kettle.trans.*;
[ "be.ibridge.kettle" ]
be.ibridge.kettle;
578,560
public static void processBinaryMeta(GridKernalContext ctx, QueryEntity qryEntity, QueryTypeDescriptorImpl d) throws IgniteCheckedException { Set<String> keyFields = qryEntity.getKeyFields(); Set<String> notNulls = qryEntity.getNotNullFields(); Map<String, Object> dlftVals = qryEntit...
static void function(GridKernalContext ctx, QueryEntity qryEntity, QueryTypeDescriptorImpl d) throws IgniteCheckedException { Set<String> keyFields = qryEntity.getKeyFields(); Set<String> notNulls = qryEntity.getNotNullFields(); Map<String, Object> dlftVals = qryEntity.getDefaultFieldValues(); boolean hasKeyFields = (k...
/** * Processes declarative metadata for binary object. * * @param ctx Kernal context. * @param qryEntity Declared metadata. * @param d Type descriptor. * @throws IgniteCheckedException If failed. */
Processes declarative metadata for binary object
processBinaryMeta
{ "repo_name": "vladisav/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/query/QueryUtils.java", "license": "apache-2.0", "size": 49135 }
[ "java.util.Map", "java.util.Set", "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.cache.QueryEntity", "org.apache.ignite.internal.GridKernalContext", "org.apache.ignite.internal.processors.query.property.QueryBinaryProperty", "org.apache.ignite.internal.util.typedef.internal.U" ]
import java.util.Map; import java.util.Set; import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.cache.QueryEntity; import org.apache.ignite.internal.GridKernalContext; import org.apache.ignite.internal.processors.query.property.QueryBinaryProperty; import org.apache.ignite.internal.util.typedef.in...
import java.util.*; import org.apache.ignite.*; import org.apache.ignite.cache.*; import org.apache.ignite.internal.*; import org.apache.ignite.internal.processors.query.property.*; import org.apache.ignite.internal.util.typedef.internal.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
1,098,819