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
Object result; boolean bc = false; // validate fixed portion of format if ( source != null ) { if (source.length() < 10) throw new NumberFormatException( Messages.getMessage("badDate00")); if (source.charAt(0) == '+...
Object result; boolean bc = false; if ( source != null ) { if (source.length() < 10) throw new NumberFormatException( Messages.getMessage(STR)); if (source.charAt(0) == '+') source = source.substring(1); if (source.charAt(0) == '-') { source = source.substring(1); bc = true; } if (source.charAt(4) != '-' source.charAt(...
/** * The simple deserializer provides most of the stuff. * We just need to override makeValue(). */
The simple deserializer provides most of the stuff. We just need to override makeValue()
makeValue
{ "repo_name": "hugosato/apache-axis", "path": "src/org/apache/axis/encoding/ser/DateDeserializer.java", "license": "apache-2.0", "size": 3455 }
[ "java.util.Calendar", "java.util.Date", "java.util.GregorianCalendar", "org.apache.axis.utils.Messages" ]
import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import org.apache.axis.utils.Messages;
import java.util.*; import org.apache.axis.utils.*;
[ "java.util", "org.apache.axis" ]
java.util; org.apache.axis;
2,857,809
@Override public void mousePressed(MouseEvent e) { if (e.getButton() == MouseEvent.BUTTON1){ left_pressed = true; } if (e.getButton() == MouseEvent.BUTTON2){ middle_pressed = true; } if (e.getButton() == MouseEvent.BUTTON3){ right_pressed = true; } } /** * <i><b>mouseReleased</b></i> * ...
void function(MouseEvent e) { if (e.getButton() == MouseEvent.BUTTON1){ left_pressed = true; } if (e.getButton() == MouseEvent.BUTTON2){ middle_pressed = true; } if (e.getButton() == MouseEvent.BUTTON3){ right_pressed = true; } } /** * <i><b>mouseReleased</b></i> * <pre> public void mouseReleased(MouseEvent e)</pre> * ...
/** * <i><b>mousePressed</b></i> * <pre> public void mousePressed(MouseEvent e)</pre> * <p>This method is called when a mouse is being pressed. This method gets the button that was pressed and sets a respective variable to true.</p> * @param * @return None * **/
mousePressed <code> public void mousePressed(MouseEvent e)</code> This method is called when a mouse is being pressed. This method gets the button that was pressed and sets a respective variable to true
mousePressed
{ "repo_name": "VilePoison/JavaGame", "path": "Game/src/dev/lucas/game/input/MouseManager.java", "license": "gpl-3.0", "size": 5704 }
[ "dev.lucas.game.ui.UIManager", "java.awt.event.MouseEvent" ]
import dev.lucas.game.ui.UIManager; import java.awt.event.MouseEvent;
import dev.lucas.game.ui.*; import java.awt.event.*;
[ "dev.lucas.game", "java.awt" ]
dev.lucas.game; java.awt;
1,332,423
@Override public int update(Uri uri, ContentValues cvs, String selection, String[] selectionArgs) { return mImpl.update(uri, cvs, selection, selectionArgs...
int function(Uri uri, ContentValues cvs, String selection, String[] selectionArgs) { return mImpl.update(uri, cvs, selection, selectionArgs); }
/** * Method called to handle update requests from client * applications. */
Method called to handle update requests from client applications
update
{ "repo_name": "bravenoob/mobilecloud-15", "path": "ex/HobbitContentProvider/src/vandy/mooc/model/HobbitProvider.java", "license": "apache-2.0", "size": 3667 }
[ "android.content.ContentValues", "android.net.Uri" ]
import android.content.ContentValues; import android.net.Uri;
import android.content.*; import android.net.*;
[ "android.content", "android.net" ]
android.content; android.net;
2,837,720
Collection<ProcessInstanceDesc> getProcessInstances(List<Integer> states, String initiator, QueryContext queryContext);
Collection<ProcessInstanceDesc> getProcessInstances(List<Integer> states, String initiator, QueryContext queryContext);
/** * Returns list of process instance descriptions found with given statuses and initiated by <code>initiator</code>. * @param states A list of possible state (int) values that the {@link ProcessInstance} can have. * @param initiator The initiator of the {@link ProcessInstance}. * @param queryConte...
Returns list of process instance descriptions found with given statuses and initiated by <code>initiator</code>
getProcessInstances
{ "repo_name": "sutaakar/jbpm", "path": "jbpm-services/jbpm-services-api/src/main/java/org/jbpm/services/api/RuntimeDataService.java", "license": "apache-2.0", "size": 25543 }
[ "java.util.Collection", "java.util.List", "org.jbpm.services.api.model.ProcessInstanceDesc", "org.kie.api.runtime.query.QueryContext" ]
import java.util.Collection; import java.util.List; import org.jbpm.services.api.model.ProcessInstanceDesc; import org.kie.api.runtime.query.QueryContext;
import java.util.*; import org.jbpm.services.api.model.*; import org.kie.api.runtime.query.*;
[ "java.util", "org.jbpm.services", "org.kie.api" ]
java.util; org.jbpm.services; org.kie.api;
604,083
protected ArrayList<Job> getJobsFunctionalTestsMysql(int numberOfChunks, Requirement requirement, String requirementIdentifier) { ArrayList<Job> jobs = new ArrayList<Job>(); for (int i=0; i<numberOfChunks; i++) { jobs.add(new Job("Func mysql " + requirementIdentifier + " 0" + i, new Bam...
ArrayList<Job> function(int numberOfChunks, Requirement requirement, String requirementIdentifier) { ArrayList<Job> jobs = new ArrayList<Job>(); for (int i=0; i<numberOfChunks; i++) { jobs.add(new Job(STR + requirementIdentifier + STR + i, new BambooKey("FMY" + requirementIdentifier + "0" + i)) .description(STR + requi...
/** * Jobs for mysql based functional tests * * @param int numberOfChunks * @param Requirement requirement * @param String requirementIdentifier */
Jobs for mysql based functional tests
getJobsFunctionalTestsMysql
{ "repo_name": "morinfa/TYPO3.CMS", "path": "Build/bamboo/src/main/java/core/AbstractCoreSpec.java", "license": "gpl-2.0", "size": 33131 }
[ "com.atlassian.bamboo.specs.api.builders.BambooKey", "com.atlassian.bamboo.specs.api.builders.plan.Job", "com.atlassian.bamboo.specs.api.builders.requirement.Requirement", "com.atlassian.bamboo.specs.builders.task.ScriptTask", "com.atlassian.bamboo.specs.builders.task.TestParserTask", "com.atlassian.bambo...
import com.atlassian.bamboo.specs.api.builders.BambooKey; import com.atlassian.bamboo.specs.api.builders.plan.Job; import com.atlassian.bamboo.specs.api.builders.requirement.Requirement; import com.atlassian.bamboo.specs.builders.task.ScriptTask; import com.atlassian.bamboo.specs.builders.task.TestParserTask; import co...
import com.atlassian.bamboo.specs.api.builders.*; import com.atlassian.bamboo.specs.api.builders.plan.*; import com.atlassian.bamboo.specs.api.builders.requirement.*; import com.atlassian.bamboo.specs.builders.task.*; import com.atlassian.bamboo.specs.model.task.*; import java.util.*;
[ "com.atlassian.bamboo", "java.util" ]
com.atlassian.bamboo; java.util;
1,427,258
protected BackgroundProcess getNewBackgroundProcess(String name, ActionInvocation actionInvocation, int threadPriority) { return new BackgroundProcess(name + "BackgroundThread", actionInvocation, threadPriority); }
BackgroundProcess function(String name, ActionInvocation actionInvocation, int threadPriority) { return new BackgroundProcess(name + STR, actionInvocation, threadPriority); }
/** * Creates a new background process * * @param name The process name * @param actionInvocation The action invocation * @param threadPriority The thread priority * @return The new process */
Creates a new background process
getNewBackgroundProcess
{ "repo_name": "TheTypoMaster/struts-2.3.24", "path": "src/core/src/main/java/org/apache/struts2/interceptor/ExecuteAndWaitInterceptor.java", "license": "apache-2.0", "size": 16507 }
[ "com.opensymphony.xwork2.ActionInvocation" ]
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.*;
[ "com.opensymphony.xwork2" ]
com.opensymphony.xwork2;
1,850,114
@Test public void testSimpleLedger() throws Exception { LedgerHandle lh1 = createAndAddEntriesToLedger(); Long ledgerId = lh1.getId(); LOG.debug("Created ledger : " + ledgerId); ledgerList.add(ledgerId); lh1.close(); final CountDownLatch underReplicaLatch = regis...
void function() throws Exception { LedgerHandle lh1 = createAndAddEntriesToLedger(); Long ledgerId = lh1.getId(); LOG.debug(STR + ledgerId); ledgerList.add(ledgerId); lh1.close(); final CountDownLatch underReplicaLatch = registerUrLedgerWatcher(ledgerList .size()); int bkShutdownIndex = bs.size() - 1; String shutdownBo...
/** * Test publishing of under replicated ledgers by the auditor bookie. */
Test publishing of under replicated ledgers by the auditor bookie
testSimpleLedger
{ "repo_name": "ivankelly/bookkeeper", "path": "bookkeeper-server/src/test/java/org/apache/bookkeeper/replication/AuditorLedgerCheckerTest.java", "license": "apache-2.0", "size": 43928 }
[ "java.util.Map", "java.util.concurrent.CountDownLatch", "java.util.concurrent.TimeUnit", "org.apache.bookkeeper.client.LedgerHandle", "org.junit.Assert" ]
import java.util.Map; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import org.apache.bookkeeper.client.LedgerHandle; import org.junit.Assert;
import java.util.*; import java.util.concurrent.*; import org.apache.bookkeeper.client.*; import org.junit.*;
[ "java.util", "org.apache.bookkeeper", "org.junit" ]
java.util; org.apache.bookkeeper; org.junit;
956,625
void startTitleAnimation(Context context) { if (!mShouldRunTitleAnimation) return; mShouldRunTitleAnimation = false; mTitleBar.setVisibility(View.VISIBLE); mTitleBar.setAlpha(0f); float newSizeSp = context.getResources().getDimension(R.dimen.custom_tabs_url_text_size); ...
void startTitleAnimation(Context context) { if (!mShouldRunTitleAnimation) return; mShouldRunTitleAnimation = false; mTitleBar.setVisibility(View.VISIBLE); mTitleBar.setAlpha(0f); float newSizeSp = context.getResources().getDimension(R.dimen.custom_tabs_url_text_size); float oldSizePx = mUrlBar.getTextSize(); mUrlBar.s...
/** * Starts animation for urlbar scaling and title fading-in. If this animation has already run * once, does nothing. */
Starts animation for urlbar scaling and title fading-in. If this animation has already run once, does nothing
startTitleAnimation
{ "repo_name": "hujiajie/chromium-crosswalk", "path": "chrome/android/java/src/org/chromium/chrome/browser/toolbar/CustomTabToolbarAnimationDelegate.java", "license": "bsd-3-clause", "size": 7226 }
[ "android.content.Context", "android.util.TypedValue", "android.view.View" ]
import android.content.Context; import android.util.TypedValue; import android.view.View;
import android.content.*; import android.util.*; import android.view.*;
[ "android.content", "android.util", "android.view" ]
android.content; android.util; android.view;
199,040
private void _processTokenExchangeResponse(AuthorizationResponse authorizationResponse, TokenResponse tokenResponse, Activity activity) { AuthState authState = new AuthState(authorizationResponse, tokenResponse, null); String accessToken = authState.getAccessToken(); if (accessToken == null ...
void function(AuthorizationResponse authorizationResponse, TokenResponse tokenResponse, Activity activity) { AuthState authState = new AuthState(authorizationResponse, tokenResponse, null); String accessToken = authState.getAccessToken(); if (accessToken == null accessToken.isEmpty()) { ErrorDialog.show(activity, R.str...
/** * Process the the exchanged token. * * @param authorizationResponse The authorization response. * @param tokenResponse The response from the token exchange updated into the authentication state * @param activity The current activity. */
Process the the exchanged token
_processTokenExchangeResponse
{ "repo_name": "fkooman/android", "path": "app/src/main/java/nl/eduvpn/app/service/ConnectionService.java", "license": "gpl-3.0", "size": 12026 }
[ "android.app.Activity", "android.widget.Toast", "net.openid.appauth.AuthState", "net.openid.appauth.AuthorizationResponse", "net.openid.appauth.TokenResponse", "nl.eduvpn.app.utils.ErrorDialog" ]
import android.app.Activity; import android.widget.Toast; import net.openid.appauth.AuthState; import net.openid.appauth.AuthorizationResponse; import net.openid.appauth.TokenResponse; import nl.eduvpn.app.utils.ErrorDialog;
import android.app.*; import android.widget.*; import net.openid.appauth.*; import nl.eduvpn.app.utils.*;
[ "android.app", "android.widget", "net.openid.appauth", "nl.eduvpn.app" ]
android.app; android.widget; net.openid.appauth; nl.eduvpn.app;
1,025,035
public void writePacketData(PacketBuffer p_148840_1_) throws IOException { p_148840_1_.writeByte(this.field_148894_a); p_148840_1_.writeShort(this.field_148892_b); p_148840_1_.writeBoolean(this.field_148893_c); }
void function(PacketBuffer p_148840_1_) throws IOException { p_148840_1_.writeByte(this.field_148894_a); p_148840_1_.writeShort(this.field_148892_b); p_148840_1_.writeBoolean(this.field_148893_c); }
/** * Writes the raw packet data to the data stream. */
Writes the raw packet data to the data stream
writePacketData
{ "repo_name": "TheHecticByte/BananaJ1.7.10Beta", "path": "src/net/minecraft/Server1_7_10/network/play/server/S32PacketConfirmTransaction.java", "license": "gpl-3.0", "size": 2099 }
[ "java.io.IOException", "net.minecraft.Server1_7_10" ]
import java.io.IOException; import net.minecraft.Server1_7_10;
import java.io.*; import net.minecraft.*;
[ "java.io", "net.minecraft" ]
java.io; net.minecraft;
372,296
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Void> deleteAsync(String resourceGroupName, String accountName, String name) { return deleteWithResponseAsync(resourceGroupName, accountName, name) .flatMap((Response<Void> res) -> Mono.empty()); }
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Void> function(String resourceGroupName, String accountName, String name) { return deleteWithResponseAsync(resourceGroupName, accountName, name) .flatMap((Response<Void> res) -> Mono.empty()); }
/** * Delete private endpoint connection under video analyzer account. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName The Video Analyzer account name. * @param name Private endpoint connection name. * @throws IllegalArgumentE...
Delete private endpoint connection under video analyzer account
deleteAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/videoanalyzer/azure-resourcemanager-videoanalyzer/src/main/java/com/azure/resourcemanager/videoanalyzer/implementation/PrivateEndpointConnectionsClientImpl.java", "license": "mit", "size": 38301 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*;
[ "com.azure.core" ]
com.azure.core;
2,690,015
@Test(timeout = 30000) public void testEditFailureOnFirstCheckpoint() throws IOException { Configuration conf = new HdfsConfiguration(); SecondaryNameNode secondary = null; MiniDFSCluster cluster = null; FileSystem fs = null; try { cluster = new MiniDFSCluster.Builder(conf).numDataNodes(nu...
@Test(timeout = 30000) void function() throws IOException { Configuration conf = new HdfsConfiguration(); SecondaryNameNode secondary = null; MiniDFSCluster cluster = null; FileSystem fs = null; try { cluster = new MiniDFSCluster.Builder(conf).numDataNodes(numDatanodes) .build(); cluster.waitActive(); fs = cluster.getF...
/** * Test that a fault while downloading edits the first time after the 2NN * starts up does not prevent future checkpointing. */
Test that a fault while downloading edits the first time after the 2NN starts up does not prevent future checkpointing
testEditFailureOnFirstCheckpoint
{ "repo_name": "GeLiXin/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java", "license": "apache-2.0", "size": 88361 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hdfs.HdfsConfiguration", "org.apache.hadoop.hdfs.MiniDFSCluster", "org.apache.hadoop.test.GenericTestUtils", "org.junit.Assert", "org.junit.Test", "org....
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hdfs.HdfsConfiguration; import org.apache.hadoop.hdfs.MiniDFSCluster; import org.apache.hadoop.test.GenericTestUtils; import org.junit.Assert; impor...
import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.test.*; import org.junit.*; import org.mockito.*;
[ "java.io", "org.apache.hadoop", "org.junit", "org.mockito" ]
java.io; org.apache.hadoop; org.junit; org.mockito;
56,976
public Map<String, Entity> reads();
Map<String, Entity> function();
/** * Get the map of {@link Entity} read results keyed by entity identifier. * @return the map of read results by identifier; never null but possibly empty */
Get the map of <code>Entity</code> read results keyed by entity identifier
reads
{ "repo_name": "rhauch/debezium-proto", "path": "debezium/src/main/java/org/debezium/driver/BatchResult.java", "license": "apache-2.0", "size": 3266 }
[ "java.util.Map", "org.debezium.model.Entity" ]
import java.util.Map; import org.debezium.model.Entity;
import java.util.*; import org.debezium.model.*;
[ "java.util", "org.debezium.model" ]
java.util; org.debezium.model;
52,086
Optional<Boolean> isReexportAllHeaderDependencies();
Optional<Boolean> isReexportAllHeaderDependencies();
/** * Controls whether the headers of dependencies in "deps" is re-exported for compiling targets * that depend on this one. */
Controls whether the headers of dependencies in "deps" is re-exported for compiling targets that depend on this one
isReexportAllHeaderDependencies
{ "repo_name": "romanoid/buck", "path": "src/com/facebook/buck/cxx/CxxLibraryDescription.java", "license": "apache-2.0", "size": 18976 }
[ "java.util.Optional" ]
import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
981,676
@Override protected boolean initiateDataSourceConnection(DataSource src) { // TODO Auto-generated method stub return false; }
boolean function(DataSource src) { return false; }
/** * Does nothing. */
Does nothing
initiateDataSourceConnection
{ "repo_name": "robertmuil/devicegui", "path": "src/de/uos/nbp/senhance/devicegui/DeviceGUITestActivity.java", "license": "lgpl-3.0", "size": 1108 }
[ "de.uos.nbp.senhance.datasource.DataSource" ]
import de.uos.nbp.senhance.datasource.DataSource;
import de.uos.nbp.senhance.datasource.*;
[ "de.uos.nbp" ]
de.uos.nbp;
2,752,773
public static Set<String> getCustomFieldTypeResourceBundles() { Set<String> resourceBundleNames = new HashSet<String>(); List<FieldTypeDescriptor> customFieldTypeDescriptors = getCustomFieldTypeDescriptors(); if (customFieldTypeDescriptors!=null) { for (FieldTypeDescriptor fieldTypeDescriptor : customFieldT...
static Set<String> function() { Set<String> resourceBundleNames = new HashSet<String>(); List<FieldTypeDescriptor> customFieldTypeDescriptors = getCustomFieldTypeDescriptors(); if (customFieldTypeDescriptors!=null) { for (FieldTypeDescriptor fieldTypeDescriptor : customFieldTypeDescriptors) { if (fieldTypeDescriptor.ge...
/** * Get the set of resource bundle names from the custom fields * @return */
Get the set of resource bundle names from the custom fields
getCustomFieldTypeResourceBundles
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/fieldType/types/FieldTypeDescriptorUtil.java", "license": "gpl-3.0", "size": 12944 }
[ "com.aurel.track.plugin.FieldTypeDescriptor", "java.util.HashSet", "java.util.List", "java.util.Set" ]
import com.aurel.track.plugin.FieldTypeDescriptor; import java.util.HashSet; import java.util.List; import java.util.Set;
import com.aurel.track.plugin.*; import java.util.*;
[ "com.aurel.track", "java.util" ]
com.aurel.track; java.util;
2,508,514
@Override public void actionPerformed(ActionEvent e) { MessageBoard messageBoard =(MessageBoard)((JButton)e.getSource()).getParent(); sendMessage(messageBoard); }
void function(ActionEvent e) { MessageBoard messageBoard =(MessageBoard)((JButton)e.getSource()).getParent(); sendMessage(messageBoard); }
/** * Send message if SEND button was pressed */
Send message if SEND button was pressed
actionPerformed
{ "repo_name": "ablenesi/ELTEProjectToolsTeam09", "path": "Client/src/main/java/controller/MessageBoardController.java", "license": "mit", "size": 2269 }
[ "java.awt.event.ActionEvent", "javax.swing.JButton" ]
import java.awt.event.ActionEvent; import javax.swing.JButton;
import java.awt.event.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
1,343,550
private int drawLabelStringValign(Graphics g, Label l, String str, int x, int y, int iconStringHGap, int iconHeight, int textSpaceX, int textSpaceW, int fontHeight) { if (str.length() == 0) { return 0; } switch (l.getVerticalAlignment()) { case Component.T...
int function(Graphics g, Label l, String str, int x, int y, int iconStringHGap, int iconHeight, int textSpaceX, int textSpaceW, int fontHeight) { if (str.length() == 0) { return 0; } switch (l.getVerticalAlignment()) { case Component.TOP: return drawLabelString(g, l, str, x, y, textSpaceX, textSpaceW); case Component.C...
/** * Implements the drawString for the text component and adjust the valign * assuming the icon is in one of the sides */
Implements the drawString for the text component and adjust the valign assuming the icon is in one of the sides
drawLabelStringValign
{ "repo_name": "diamonddevgroup/CodenameOne", "path": "CodenameOne/src/com/codename1/ui/plaf/DefaultLookAndFeel.java", "license": "gpl-2.0", "size": 108045 }
[ "com.codename1.ui.Component", "com.codename1.ui.Font", "com.codename1.ui.Graphics", "com.codename1.ui.Label" ]
import com.codename1.ui.Component; import com.codename1.ui.Font; import com.codename1.ui.Graphics; import com.codename1.ui.Label;
import com.codename1.ui.*;
[ "com.codename1.ui" ]
com.codename1.ui;
1,693,781
public Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceGroupName, String routeTableName, String routeName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } if (r...
Observable<ServiceResponse<Void>> function(String resourceGroupName, String routeTableName, String routeName) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (routeTableName == null) { throw new IllegalArgumentException(STR); } if (routeName == null) { throw new IllegalArgumentException...
/** * Deletes the specified route from a route table. * * @param resourceGroupName The name of the resource group. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @throws IllegalArgumentException thrown if parameters fail the validation ...
Deletes the specified route from a route table
deleteWithServiceResponseAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/network/mgmt-v2017_10_01/src/main/java/com/microsoft/azure/management/network/v2017_10_01/implementation/RoutesInner.java", "license": "mit", "size": 43032 }
[ "com.google.common.reflect.TypeToken", "com.microsoft.rest.ServiceResponse" ]
import com.google.common.reflect.TypeToken; import com.microsoft.rest.ServiceResponse;
import com.google.common.reflect.*; import com.microsoft.rest.*;
[ "com.google.common", "com.microsoft.rest" ]
com.google.common; com.microsoft.rest;
2,164,057
public void setUpdated_at(Date updated_at) { this.updated_at = updated_at; }
void function(Date updated_at) { this.updated_at = updated_at; }
/** * This method was generated by MyBatis Generator. * This method sets the value of the database column images.updated_at * * @param updated_at the value for images.updated_at * * @mbggenerated Tue May 26 15:53:09 CST 2015 */
This method was generated by MyBatis Generator. This method sets the value of the database column images.updated_at
setUpdated_at
{ "repo_name": "wolabs/womano", "path": "main/java/com/culabs/unicomportal/model/db/DBImages.java", "license": "apache-2.0", "size": 18235 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,357,083
@Override public Adapter createRouterMediatorInputConnectorAdapter() { if (routerMediatorInputConnectorItemProvider == null) { routerMediatorInputConnectorItemProvider = new RouterMediatorInputConnectorItemProvider(this); } return routerMediatorInputConnectorItemProvider; } protected RouterMediatorOu...
Adapter function() { if (routerMediatorInputConnectorItemProvider == null) { routerMediatorInputConnectorItemProvider = new RouterMediatorInputConnectorItemProvider(this); } return routerMediatorInputConnectorItemProvider; } protected RouterMediatorOutputConnectorItemProvider routerMediatorOutputConnectorItemProvider;
/** * This creates an adapter for a {@link org.wso2.developerstudio.eclipse.gmf.esb.RouterMediatorInputConnector}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This creates an adapter for a <code>org.wso2.developerstudio.eclipse.gmf.esb.RouterMediatorInputConnector</code>.
createRouterMediatorInputConnectorAdapter
{ "repo_name": "nwnpallewela/devstudio-tooling-esb", "path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/EsbItemProviderAdapterFactory.java", "license": "apache-2.0", "size": 304469 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,044,809
public void assertGaugeLt(String name, double expected, BaseSource source);
void function(String name, double expected, BaseSource source);
/** * Assert that a gauge exists and it's value is less than a given value * * @param name The name of the gauge * @param expected Value that the gauge is expected to be less than * @param source The BaseSource{@link BaseSource} that will provide the tags, * gauges, and counters....
Assert that a gauge exists and it's value is less than a given value
assertGaugeLt
{ "repo_name": "francisliu/hbase_namespace", "path": "hbase-hadoop-compat/src/test/java/org/apache/hadoop/hbase/test/MetricsAssertHelper.java", "license": "apache-2.0", "size": 6123 }
[ "org.apache.hadoop.hbase.metrics.BaseSource" ]
import org.apache.hadoop.hbase.metrics.BaseSource;
import org.apache.hadoop.hbase.metrics.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,316,495
public void writePayload(InputStream message) { verifyNotClosed(); boolean compressed = messageCompression && compressor != Codec.Identity.NONE; int written = -1; int messageLength = -2; try { messageLength = getKnownLength(message); if (messageLength != 0 && compressed) { writ...
void function(InputStream message) { verifyNotClosed(); boolean compressed = messageCompression && compressor != Codec.Identity.NONE; int written = -1; int messageLength = -2; try { messageLength = getKnownLength(message); if (messageLength != 0 && compressed) { written = writeCompressed(message, messageLength); } else...
/** * Writes out a payload message. * * @param message contains the message to be written out. It will be completely consumed. */
Writes out a payload message
writePayload
{ "repo_name": "eonezhang/grpc-java", "path": "core/src/main/java/io/grpc/internal/MessageFramer.java", "license": "bsd-3-clause", "size": 13142 }
[ "io.grpc.Codec", "io.grpc.Status", "java.io.IOException", "java.io.InputStream" ]
import io.grpc.Codec; import io.grpc.Status; import java.io.IOException; import java.io.InputStream;
import io.grpc.*; import java.io.*;
[ "io.grpc", "java.io" ]
io.grpc; java.io;
2,576,468
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("Group info [").append(groupName).append("] "); sb.append(getUUID()). append("\n Representation version: ").append(getVersion()). append("\n Change version: ").append(getChangeV...
String function() { StringBuilder sb = new StringBuilder(); sb.append(STR).append(groupName).append(STR); sb.append(getUUID()). append(STR).append(getVersion()). append(STR).append(getChangeVersion()). append(STR).append(getNodeIdSequence()). append("\n"); if (nodesByName != null) { for (Map.Entry<String, RepNodeImpl> ...
/** * Return information to the user, format nicely for ease of reading. */
Return information to the user, format nicely for ease of reading
toString
{ "repo_name": "prat0318/dbms", "path": "mini_dbms/je-5.0.103/src/com/sleepycat/je/rep/impl/RepGroupImpl.java", "license": "mit", "size": 28397 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,764,411
public static FragmentFiles newInstance(Intent intent) { final Bundle args = new Bundle(); for (String ex : EXTRAS_BOOLEAN) if (intent.hasExtra(ex)) args.putBoolean(ex, intent.getBooleanExtra(ex, false)); for (String ex : EXTRAS_INTEGER) if (...
static FragmentFiles function(Intent intent) { final Bundle args = new Bundle(); for (String ex : EXTRAS_BOOLEAN) if (intent.hasExtra(ex)) args.putBoolean(ex, intent.getBooleanExtra(ex, false)); for (String ex : EXTRAS_INTEGER) if (intent.hasExtra(ex)) args.putInt(ex, intent.getIntExtra(ex, 0)); for (String ex : EXTRAS...
/** * Creates new instance. * * @param intent * the intent you got from {@link FileChooserActivity}. * @return the new instance of this fragment. */
Creates new instance
newInstance
{ "repo_name": "red13dotnet/keepass2android", "path": "src/java/android-filechooser/code/src/group/pals/android/lib/ui/filechooser/FragmentFiles.java", "license": "gpl-3.0", "size": 90560 }
[ "android.content.Intent", "android.os.Bundle" ]
import android.content.Intent; import android.os.Bundle;
import android.content.*; import android.os.*;
[ "android.content", "android.os" ]
android.content; android.os;
701,758
public void start() { log.info("Starting spider..."); // Check if seeds are available, otherwise the Spider will start, but will not have any // seeds and will not stop. if (seedList == null || seedList.isEmpty()) { log.warn("No seeds available for the Spider. Cancelling scan..."); notifyListenersS...
void function() { log.info(STR); if (seedList == null seedList.isEmpty()) { log.warn(STR); notifyListenersSpiderComplete(false); notifyListenersSpiderProgress(100, 0, 0); return; } if (scanUser != null) log.info(STR + scanUser.getName()); this.controller.init(); this.stopped = false; this.paused = false; this.initializ...
/** * Starts the Spider crawling. */
Starts the Spider crawling
start
{ "repo_name": "profjrr/zaproxy", "path": "src/org/zaproxy/zap/spider/Spider.java", "license": "apache-2.0", "size": 20698 }
[ "java.util.concurrent.Executors", "org.parosproxy.paros.network.HttpRequestHeader", "org.parosproxy.paros.network.HttpSender" ]
import java.util.concurrent.Executors; import org.parosproxy.paros.network.HttpRequestHeader; import org.parosproxy.paros.network.HttpSender;
import java.util.concurrent.*; import org.parosproxy.paros.network.*;
[ "java.util", "org.parosproxy.paros" ]
java.util; org.parosproxy.paros;
431,859
public static boolean isSigned(final File toSign, final String keystorePath, final String keystorePass, final String alias) { if (toSign == null) { throw new IllegalArgumentException("toSign file must not be null"); // NOI18N } if (LOG.isInfoE...
static boolean function(final File toSign, final String keystorePath, final String keystorePass, final String alias) { if (toSign == null) { throw new IllegalArgumentException(STR); } if (LOG.isInfoEnabled()) { LOG.info(STR + toSign); } if ((keystorePass == null) (keystorePath == null)) { LOG.warn( STR); return false; ...
/** * This method checks every single class of the given jar, but classes only, no other resources. It validates * whether all classes have been signed with a signature, defined via the arguments <code>keystorePath</code> and * <code>alias</code>. * * @param toSign the jar file to veri...
This method checks every single class of the given jar, but classes only, no other resources. It validates whether all classes have been signed with a signature, defined via the arguments <code>keystorePath</code> and <code>alias</code>
isSigned
{ "repo_name": "cismet/cismet-commons", "path": "src/main/java/de/cismet/commons/utils/JarUtils.java", "license": "lgpl-3.0", "size": 8602 }
[ "java.io.BufferedInputStream", "java.io.ByteArrayOutputStream", "java.io.File", "java.io.FileInputStream", "java.security.KeyStore", "java.security.PublicKey", "java.security.cert.Certificate", "java.util.jar.JarEntry", "java.util.jar.JarInputStream" ]
import java.io.BufferedInputStream; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.FileInputStream; import java.security.KeyStore; import java.security.PublicKey; import java.security.cert.Certificate; import java.util.jar.JarEntry; import java.util.jar.JarInputStream;
import java.io.*; import java.security.*; import java.security.cert.*; import java.util.jar.*;
[ "java.io", "java.security", "java.util" ]
java.io; java.security; java.util;
1,734,350
Object parsedValue = parse(value, pattern, locale, (TimeZone)null); return (parsedValue == null ? false : true); }
Object parsedValue = parse(value, pattern, locale, (TimeZone)null); return (parsedValue == null ? false : true); }
/** * <p>Validate using the specified <code>Locale</code>. * * @param value The value validation is being performed on. * @param pattern The pattern used to format the value. * @param locale The locale to use for the Format, defaults to the default * @return <code>true</code> if the value ...
Validate using the specified <code>Locale</code>
isValid
{ "repo_name": "lamsfoundation/lams", "path": "3rdParty_sources/commons-validator/org/apache/commons/validator/routines/AbstractCalendarValidator.java", "license": "gpl-2.0", "size": 16430 }
[ "java.util.TimeZone" ]
import java.util.TimeZone;
import java.util.*;
[ "java.util" ]
java.util;
1,286,343
public boolean execute(List<RawResultIterator> unsortedResultIteratorList, List<RawResultIterator> sortedResultIteratorList) throws Exception { boolean isCompactionSuccess = false; try { initTempStoreLocation(); initSortDataRows(); dataTypes = CarbonDataProcessorUtil.initDataType(carbo...
boolean function(List<RawResultIterator> unsortedResultIteratorList, List<RawResultIterator> sortedResultIteratorList) throws Exception { boolean isCompactionSuccess = false; try { initTempStoreLocation(); initSortDataRows(); dataTypes = CarbonDataProcessorUtil.initDataType(carbonTable, tableName, measureCount); proces...
/** * This method will iterate over the query result and convert it into a format compatible * for data loading * * @param unsortedResultIteratorList * @param sortedResultIteratorList * @return if the compaction is success or not * @throws Exception */
This method will iterate over the query result and convert it into a format compatible for data loading
execute
{ "repo_name": "manishgupta88/carbondata", "path": "processing/src/main/java/org/apache/carbondata/processing/merger/CompactionResultSortProcessor.java", "license": "apache-2.0", "size": 20033 }
[ "java.io.IOException", "java.util.List", "org.apache.carbondata.core.metadata.SegmentFileStore", "org.apache.carbondata.core.scan.result.iterator.RawResultIterator", "org.apache.carbondata.processing.util.CarbonDataProcessorUtil" ]
import java.io.IOException; import java.util.List; import org.apache.carbondata.core.metadata.SegmentFileStore; import org.apache.carbondata.core.scan.result.iterator.RawResultIterator; import org.apache.carbondata.processing.util.CarbonDataProcessorUtil;
import java.io.*; import java.util.*; import org.apache.carbondata.core.metadata.*; import org.apache.carbondata.core.scan.result.iterator.*; import org.apache.carbondata.processing.util.*;
[ "java.io", "java.util", "org.apache.carbondata" ]
java.io; java.util; org.apache.carbondata;
2,698,098
@FIXVersion(introduced = "5.0SP1") @TagNumRef(tagNum = TagNum.DerivativeSecuritySubType) public String getDerivativeSecuritySubType() { return derivativeSecuritySubType; }
@FIXVersion(introduced = STR) @TagNumRef(tagNum = TagNum.DerivativeSecuritySubType) String function() { return derivativeSecuritySubType; }
/** * Message field getter. * @return field value */
Message field getter
getDerivativeSecuritySubType
{ "repo_name": "marvisan/HadesFIX", "path": "Model/src/main/java/net/hades/fix/message/comp/DerivativeInstrument.java", "license": "gpl-3.0", "size": 83551 }
[ "net.hades.fix.message.anno.FIXVersion", "net.hades.fix.message.anno.TagNumRef", "net.hades.fix.message.type.TagNum" ]
import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.TagNum;
import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*;
[ "net.hades.fix" ]
net.hades.fix;
2,057,177
@Override public void initialize(final URI theUri, final Configuration conf) throws IOException { super.initialize(theUri, conf); setConf(conf); config = conf; enableInnerCache = config.getBoolean(CONFIG_VIEWFS_ENABLE_INNER_CACHE, CONFIG_VIEWFS_ENABLE_INNER_CACHE_DEFAULT); FsGetter...
void function(final URI theUri, final Configuration conf) throws IOException { super.initialize(theUri, conf); setConf(conf); config = conf; enableInnerCache = config.getBoolean(CONFIG_VIEWFS_ENABLE_INNER_CACHE, CONFIG_VIEWFS_ENABLE_INNER_CACHE_DEFAULT); FsGetter fsGetter = fsGetter(); cache = new InnerCache(fsGetter);...
/** * Called after a new FileSystem instance is constructed. * @param theUri a uri whose authority section names the host, port, etc. for * this FileSystem * @param conf the configuration */
Called after a new FileSystem instance is constructed
initialize
{ "repo_name": "nandakumar131/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/viewfs/ViewFileSystem.java", "license": "apache-2.0", "size": 64086 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration" ]
import java.io.IOException; import org.apache.hadoop.conf.Configuration;
import java.io.*; import org.apache.hadoop.conf.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,346,385
private void ensureSourceTableSchemaFieldNames() { if (sourceTableSchema != null && sourceTableSchema.getFields() != null) { long nullFields = sourceTableSchema.getFields().stream().filter(field -> StringUtils.isBlank(field.getName())).count(); //if the source fields are all null and...
void function() { if (sourceTableSchema != null && sourceTableSchema.getFields() != null) { long nullFields = sourceTableSchema.getFields().stream().filter(field -> StringUtils.isBlank(field.getName())).count(); if (nullFields == sourceTableSchema.getFields().size() && tableSchema.getFields() != null && tableSchema.get...
/** * ensure the source names are set to some value */
ensure the source names are set to some value
ensureSourceTableSchemaFieldNames
{ "repo_name": "rashidaligee/kylo", "path": "services/feed-manager-service/feed-manager-rest-model/src/main/java/com/thinkbiganalytics/feedmgr/rest/model/schema/TableSetup.java", "license": "apache-2.0", "size": 19992 }
[ "com.thinkbiganalytics.discovery.model.DefaultField", "com.thinkbiganalytics.discovery.schema.Field", "java.util.List", "java.util.stream.Collectors", "org.apache.commons.lang3.StringUtils" ]
import com.thinkbiganalytics.discovery.model.DefaultField; import com.thinkbiganalytics.discovery.schema.Field; import java.util.List; import java.util.stream.Collectors; import org.apache.commons.lang3.StringUtils;
import com.thinkbiganalytics.discovery.model.*; import com.thinkbiganalytics.discovery.schema.*; import java.util.*; import java.util.stream.*; import org.apache.commons.lang3.*;
[ "com.thinkbiganalytics.discovery", "java.util", "org.apache.commons" ]
com.thinkbiganalytics.discovery; java.util; org.apache.commons;
1,054,584
public static Path getSystemDir(Configuration conf) throws IOException { return getSystemDir(conf, true); } /** * Returns the system directory. * @param conf the current configuration * @param resolve {@code true} to resolve the result path, otherwise {@code false}
static Path function(Configuration conf) throws IOException { return getSystemDir(conf, true); } /** * Returns the system directory. * @param conf the current configuration * @param resolve {@code true} to resolve the result path, otherwise {@code false}
/** * Returns the system directory. * @param conf the current configuration * @return the system directory * @throws IOException if I/O error was occurred */
Returns the system directory
getSystemDir
{ "repo_name": "akirakw/asakusafw", "path": "core-project/asakusa-runtime/src/main/java/com/asakusafw/runtime/directio/hadoop/HadoopDataSourceUtil.java", "license": "apache-2.0", "size": 47344 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.Path" ]
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path;
import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,033,980
public static MatrixBlock reshape( MatrixBlock in, MatrixBlock out, int rows, int cols, boolean rowwise ) { int rlen = in.rlen; int clen = in.clen; //check validity if( ((long)rlen)*clen != ((long)rows)*cols ) throw new DMLRuntimeException("Reshape matrix requires consistent numbers of input/output cel...
static MatrixBlock function( MatrixBlock in, MatrixBlock out, int rows, int cols, boolean rowwise ) { int rlen = in.rlen; int clen = in.clen; if( ((long)rlen)*clen != ((long)rows)*cols ) throw new DMLRuntimeException(STR+rlen+":"+clen+STR+rows+":"+cols+")."); if( rlen==rows && clen == cols ) { if( SHALLOW_COPY_REORG ) ...
/** * CP reshape operation (single input, single output matrix) * * NOTE: In contrast to R, the rowwise parameter specifies both * the read and write order, with row-wise being the default, while * R uses always a column-wise read, rowwise specifying the write * order and column-wise being the default. ...
CP reshape operation (single input, single output matrix) the read and write order, with row-wise being the default, while R uses always a column-wise read, rowwise specifying the write order and column-wise being the default
reshape
{ "repo_name": "deroneriksson/incubator-systemml", "path": "src/main/java/org/apache/sysml/runtime/matrix/data/LibMatrixReorg.java", "license": "apache-2.0", "size": 73605 }
[ "org.apache.sysml.runtime.DMLRuntimeException" ]
import org.apache.sysml.runtime.DMLRuntimeException;
import org.apache.sysml.runtime.*;
[ "org.apache.sysml" ]
org.apache.sysml;
1,836,032
protected void drawItemPass0(Graphics2D x_graphics, Rectangle2D x_dataArea, PlotRenderingInfo x_info, XYPlot x_plot, ValueAxis x_domainAxis, Value...
void function(Graphics2D x_graphics, Rectangle2D x_dataArea, PlotRenderingInfo x_info, XYPlot x_plot, ValueAxis x_domainAxis, ValueAxis x_rangeAxis, XYDataset x_dataset, int x_series, int x_item, CrosshairState x_crosshairState) { if (!((0 == x_series) && (0 == x_item))) { return; } boolean b_impliedZeroSubtrahend = (1...
/** * Draws the visual representation of a single data item, first pass. * * @param x_graphics the graphics device. * @param x_dataArea the area within which the data is being drawn. * @param x_info collects information about the drawing. * @param x_plot the plot (can be used to ...
Draws the visual representation of a single data item, first pass
drawItemPass0
{ "repo_name": "SOCR/HTML5_WebSite", "path": "SOCR2.8/src/jfreechart/org/jfree/chart/renderer/xy/XYDifferenceRenderer.java", "license": "lgpl-3.0", "size": 49658 }
[ "java.awt.Graphics2D", "java.awt.geom.Rectangle2D", "java.util.Collections", "java.util.LinkedList", "org.jfree.chart.axis.ValueAxis", "org.jfree.chart.plot.CrosshairState", "org.jfree.chart.plot.PlotRenderingInfo", "org.jfree.chart.plot.XYPlot", "org.jfree.data.xy.XYDataset" ]
import java.awt.Graphics2D; import java.awt.geom.Rectangle2D; import java.util.Collections; import java.util.LinkedList; import org.jfree.chart.axis.ValueAxis; import org.jfree.chart.plot.CrosshairState; import org.jfree.chart.plot.PlotRenderingInfo; import org.jfree.chart.plot.XYPlot; import org.jfree.data.xy.XYDatase...
import java.awt.*; import java.awt.geom.*; import java.util.*; import org.jfree.chart.axis.*; import org.jfree.chart.plot.*; import org.jfree.data.xy.*;
[ "java.awt", "java.util", "org.jfree.chart", "org.jfree.data" ]
java.awt; java.util; org.jfree.chart; org.jfree.data;
454,483
void registerNewConnectionResponse(Supplier<Object> cb);
void registerNewConnectionResponse(Supplier<Object> cb);
/** * Register a response generator to be used to send an initial response when a new client connects. * * @param cb the callback to process the connection. */
Register a response generator to be used to send an initial response when a new client connects
registerNewConnectionResponse
{ "repo_name": "erikdw/storm", "path": "storm-client/src/jvm/org/apache/storm/messaging/IConnection.java", "license": "apache-2.0", "size": 2463 }
[ "java.util.function.Supplier" ]
import java.util.function.Supplier;
import java.util.function.*;
[ "java.util" ]
java.util;
2,134,499
public static java.util.List extractCaseConfMOSStatusList(ims.domain.ILightweightDomainFactory domainFactory, ims.clinical.vo.CaseConfMOSStatusVoCollection voCollection) { return extractCaseConfMOSStatusList(domainFactory, voCollection, null, new HashMap()); }
static java.util.List function(ims.domain.ILightweightDomainFactory domainFactory, ims.clinical.vo.CaseConfMOSStatusVoCollection voCollection) { return extractCaseConfMOSStatusList(domainFactory, voCollection, null, new HashMap()); }
/** * Create the ims.clinical.domain.objects.CaseConfMOSStatus list from the value object collection. * @param domainFactory - used to create existing (persistent) domain objects. * @param voCollection - the collection of value objects */
Create the ims.clinical.domain.objects.CaseConfMOSStatus list from the value object collection
extractCaseConfMOSStatusList
{ "repo_name": "open-health-hub/openMAXIMS", "path": "openmaxims_workspace/ValueObjects/src/ims/clinical/vo/domain/CaseConfMOSStatusVoAssembler.java", "license": "agpl-3.0", "size": 17505 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
2,034,369
private void initializeChannelList() { mChannelList = (GridView) findViewById(R.id.gridview_channellist); mChannelList.setOnItemClickListener(this); }
void function() { mChannelList = (GridView) findViewById(R.id.gridview_channellist); mChannelList.setOnItemClickListener(this); }
/** * Initialize GridView (Channel List) and set click listener to it. * * @throws RemoteException * If connection error happens. */
Initialize GridView (Channel List) and set click listener to it
initializeChannelList
{ "repo_name": "tabletbrick/TEST", "path": "src/com/iwedia/activities/ChannelListDialog.java", "license": "apache-2.0", "size": 3813 }
[ "android.widget.GridView" ]
import android.widget.GridView;
import android.widget.*;
[ "android.widget" ]
android.widget;
1,189,361
public VKShareDialog setUploadedPhotos(VKPhotoArray photos) { mExistingPhotos = photos; return this; }
VKShareDialog function(VKPhotoArray photos) { mExistingPhotos = photos; return this; }
/** * Sets array of already uploaded photos from VK, that will be attached to post * * @param photos Prepared array of {@link VKApiPhoto} objects * @return Returns this dialog for chaining */
Sets array of already uploaded photos from VK, that will be attached to post
setUploadedPhotos
{ "repo_name": "Vittt2008/vk-android-sdk", "path": "vksdk_library/src/main/java/com/vk/sdk/dialogs/VKShareDialog.java", "license": "mit", "size": 18381 }
[ "com.vk.sdk.api.model.VKPhotoArray" ]
import com.vk.sdk.api.model.VKPhotoArray;
import com.vk.sdk.api.model.*;
[ "com.vk.sdk" ]
com.vk.sdk;
923,440
Color c = UIManager.getColor("ToolTip.background"); // Tooltip.background is wrong color on Nimbus (!) boolean isNimbus = isNimbusLookAndFeel(); if (c==null || isNimbus) { c = UIManager.getColor("info"); // Used by Nimbus (and others) if (c==null || (isNimbus && isDerivedColor(c))) { c = Sys...
Color c = UIManager.getColor(STR); boolean isNimbus = isNimbusLookAndFeel(); if (c==null isNimbus) { c = UIManager.getColor("info"); if (c==null (isNimbus && isDerivedColor(c))) { c = SystemColor.info; } } if (c instanceof ColorUIResource) { c = new Color(c.getRGB()); } return c; }
/** * Returns the default background color to use for tool tip windows. * * @return The default background color. */
Returns the default background color to use for tool tip windows
getToolTipBackground
{ "repo_name": "curiosag/ftc", "path": "AutoComplete/src/main/java/org/fife/ui/autocomplete/TipUtil.java", "license": "gpl-3.0", "size": 5376 }
[ "java.awt.Color", "java.awt.SystemColor", "javax.swing.UIManager", "javax.swing.plaf.ColorUIResource" ]
import java.awt.Color; import java.awt.SystemColor; import javax.swing.UIManager; import javax.swing.plaf.ColorUIResource;
import java.awt.*; import javax.swing.*; import javax.swing.plaf.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
700,522
public void doBack() { Wizard w = getWizard(); if (w != null) { w.back(); updateTabToDo(); } }
void function() { Wizard w = getWizard(); if (w != null) { w.back(); updateTabToDo(); } }
/** * The Back button has been pressed, so we do the "back" action. */
The Back button has been pressed, so we do the "back" action
doBack
{ "repo_name": "ckaestne/LEADT", "path": "workspace/argouml_critics/argouml-app/src/org/argouml/cognitive/ui/WizStep.java", "license": "gpl-3.0", "size": 10766 }
[ "org.argouml.cognitive.critics.Wizard" ]
import org.argouml.cognitive.critics.Wizard;
import org.argouml.cognitive.critics.*;
[ "org.argouml.cognitive" ]
org.argouml.cognitive;
2,306,263
public static float getX(MotionEvent event, int pointerIndex) { return IMPL.getX(event, pointerIndex); }
static float function(MotionEvent event, int pointerIndex) { return IMPL.getX(event, pointerIndex); }
/** * Call {@link MotionEvent#getX(int)}. * If running on a pre-{@link android.os.Build.VERSION_CODES#ECLAIR} device, * {@link IndexOutOfBoundsException} is thrown. */
Call <code>MotionEvent#getX(int)</code>. If running on a pre-<code>android.os.Build.VERSION_CODES#ECLAIR</code> device, <code>IndexOutOfBoundsException</code> is thrown
getX
{ "repo_name": "madhavanks26/com.vliesaputra.deviceinformation", "path": "src/com/vliesaputra/cordova/plugins/android/support/v4/src/java/android/support/v4/view/MotionEventCompat.java", "license": "mit", "size": 15261 }
[ "android.view.MotionEvent" ]
import android.view.MotionEvent;
import android.view.*;
[ "android.view" ]
android.view;
1,890,865
public String modelChange(PO po, int type) throws Exception { log.info(po.get_TableName() + " Type: "+type); boolean isChange = (TYPE_AFTER_NEW == type || TYPE_AFTER_CHANGE == type); boolean isNew = (TYPE_NEW == type); boolean isDelete = (TYPE_BEFORE_DELETE == type); // Executa quando uma Invoice é ...
String function(PO po, int type) throws Exception { log.info(po.get_TableName() + STR+type); boolean isChange = (TYPE_AFTER_NEW == type TYPE_AFTER_CHANGE == type); boolean isNew = (TYPE_NEW == type); boolean isDelete = (TYPE_BEFORE_DELETE == type); if (po instanceof MInvoice && (isNew isChange)){ return modelChange((MI...
/** * Model Change of a monitored Table. Called after * PO.beforeSave/PO.beforeDelete when you called addModelChange for the * table * * @param po * persistent object * @param type * TYPE_ * @return error message or null * @exception Exception * if the recipien...
Model Change of a monitored Table. Called after PO.beforeSave/PO.beforeDelete when you called addModelChange for the table
modelChange
{ "repo_name": "mgrigioni/oseb", "path": "base/src/org/adempierelbr/validator/ValidatorInvoice.java", "license": "gpl-2.0", "size": 20033 }
[ "org.compiere.model.MInvoice", "org.compiere.model.MInvoiceLine" ]
import org.compiere.model.MInvoice; import org.compiere.model.MInvoiceLine;
import org.compiere.model.*;
[ "org.compiere.model" ]
org.compiere.model;
750,740
public static PortafolioDTO getInstancia(String cadenaXmlObjetos) throws Exception { try { SAXBuilder builder = new SAXBuilder(); Document documento = builder.build(new StringReader(cadenaXmlObjetos)); return getInstancia(documento); } catch (Exception e) { ...
static PortafolioDTO function(String cadenaXmlObjetos) throws Exception { try { SAXBuilder builder = new SAXBuilder(); Document documento = builder.build(new StringReader(cadenaXmlObjetos)); return getInstancia(documento); } catch (Exception e) { throw new Exception(e); } }
/** * Convierte una cadena que representa un XML en una coleccion de instancias * de * <code>PortafolioDTO</code>. * * @return La colecci�n de instancias de <code>PortafolioDTO</code>. */
Convierte una cadena que representa un XML en una coleccion de instancias de <code>PortafolioDTO</code>
getInstancia
{ "repo_name": "parracuartas/bvcmovil", "path": "3-Desarrollo/Backend/BvcUtil/src/com/bvc/helper/PortafolioHelper.java", "license": "mit", "size": 5734 }
[ "com.bvc.dto.PortafolioDTO", "java.io.StringReader", "org.jdom.Document", "org.jdom.input.SAXBuilder" ]
import com.bvc.dto.PortafolioDTO; import java.io.StringReader; import org.jdom.Document; import org.jdom.input.SAXBuilder;
import com.bvc.dto.*; import java.io.*; import org.jdom.*; import org.jdom.input.*;
[ "com.bvc.dto", "java.io", "org.jdom", "org.jdom.input" ]
com.bvc.dto; java.io; org.jdom; org.jdom.input;
695,616
public void test0210() throws JavaScriptModelException { IJavaScriptUnit sourceUnit = getCompilationUnit("Converter" , "src", "test0210", "Test.js"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ char[] source = sourceUnit.getSource().toCharArray(); ASTNode result = runConversion(sourceUnit, false); ...
void function() throws JavaScriptModelException { IJavaScriptUnit sourceUnit = getCompilationUnit(STR , "src", STR, STR); char[] source = sourceUnit.getSource().toCharArray(); ASTNode result = runConversion(sourceUnit, false); ASTNode node = getASTNode((JavaScriptUnit) result, 0, 0); assertNotNull(STR, node); assertTru...
/** * Check javadoc for VariableDeclarationStatement * @deprecated marking deprecated since using deprecated code */
Check javadoc for VariableDeclarationStatement
test0210
{ "repo_name": "echoes-tech/eclipse.jsdt.core", "path": "org.eclipse.wst.jsdt.core.tests.model/src/org/eclipse/wst/jsdt/core/tests/dom/ASTConverterTest.java", "license": "epl-1.0", "size": 521652 }
[ "org.eclipse.wst.jsdt.core.IJavaScriptUnit", "org.eclipse.wst.jsdt.core.JavaScriptModelException", "org.eclipse.wst.jsdt.core.dom.ASTNode", "org.eclipse.wst.jsdt.core.dom.JSdoc", "org.eclipse.wst.jsdt.core.dom.JavaScriptUnit", "org.eclipse.wst.jsdt.core.dom.VariableDeclarationStatement" ]
import org.eclipse.wst.jsdt.core.IJavaScriptUnit; import org.eclipse.wst.jsdt.core.JavaScriptModelException; import org.eclipse.wst.jsdt.core.dom.ASTNode; import org.eclipse.wst.jsdt.core.dom.JSdoc; import org.eclipse.wst.jsdt.core.dom.JavaScriptUnit; import org.eclipse.wst.jsdt.core.dom.VariableDeclarationStatement;
import org.eclipse.wst.jsdt.core.*; import org.eclipse.wst.jsdt.core.dom.*;
[ "org.eclipse.wst" ]
org.eclipse.wst;
2,129,374
@Override protected FileObject createFile(final AbstractFileName name) throws FileSystemException { // This is only called for files which do not exist in the Tar file return new TarFileObject(name, null, this, false); }
FileObject function(final AbstractFileName name) throws FileSystemException { return new TarFileObject(name, null, this, false); }
/** * Creates a file object. */
Creates a file object
createFile
{ "repo_name": "EsupPortail/commons-vfs2-project-2.0", "path": "core/src/main/java/org/apache/commons/vfs2/provider/tar/TarFileSystem.java", "license": "apache-2.0", "size": 8654 }
[ "org.apache.commons.vfs2.FileObject", "org.apache.commons.vfs2.FileSystemException", "org.apache.commons.vfs2.provider.AbstractFileName" ]
import org.apache.commons.vfs2.FileObject; import org.apache.commons.vfs2.FileSystemException; import org.apache.commons.vfs2.provider.AbstractFileName;
import org.apache.commons.vfs2.*; import org.apache.commons.vfs2.provider.*;
[ "org.apache.commons" ]
org.apache.commons;
1,335,769
public void setAttributeValuesHashFunction( @Nonnull final Function<Collection<IdPAttributeValue<?>>, String> function) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); attributeValuesHashFunction = Constraint.isNotNull(function, "Attribute values hash functio...
void function( @Nonnull final Function<Collection<IdPAttributeValue<?>>, String> function) { ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this); attributeValuesHashFunction = Constraint.isNotNull(function, STR); }
/** * Set the function to create hash of all attribute values. * * @param function function to create hash of all attribute values */
Set the function to create hash of all attribute values
setAttributeValuesHashFunction
{ "repo_name": "cmu-cylab-privacylens/PrivacyLens", "path": "src/main/java/edu/cmu/ece/privacylens/consent/flow/ar/AttributeReleaseFlowDescriptor.java", "license": "bsd-3-clause", "size": 4766 }
[ "com.google.common.base.Function", "java.util.Collection", "javax.annotation.Nonnull", "net.shibboleth.idp.attribute.IdPAttributeValue", "net.shibboleth.utilities.java.support.component.ComponentSupport", "net.shibboleth.utilities.java.support.logic.Constraint" ]
import com.google.common.base.Function; import java.util.Collection; import javax.annotation.Nonnull; import net.shibboleth.idp.attribute.IdPAttributeValue; import net.shibboleth.utilities.java.support.component.ComponentSupport; import net.shibboleth.utilities.java.support.logic.Constraint;
import com.google.common.base.*; import java.util.*; import javax.annotation.*; import net.shibboleth.idp.attribute.*; import net.shibboleth.utilities.java.support.component.*; import net.shibboleth.utilities.java.support.logic.*;
[ "com.google.common", "java.util", "javax.annotation", "net.shibboleth.idp", "net.shibboleth.utilities" ]
com.google.common; java.util; javax.annotation; net.shibboleth.idp; net.shibboleth.utilities;
1,902,315
static private void configPicture(Context context, int appWidgetId, RemoteViews remoteViews, SharedPreferences prefs){ Resources r = context.getResources(); String key = r.getString(R.string.com_ovrhere_picwidget_pref_KEY_DISPLAY_PICTURE); String fileName = r.getString(R.string.com_ovrhere_picwidg...
static void function(Context context, int appWidgetId, RemoteViews remoteViews, SharedPreferences prefs){ Resources r = context.getResources(); String key = r.getString(R.string.com_ovrhere_picwidget_pref_KEY_DISPLAY_PICTURE); String fileName = r.getString(R.string.com_ovrhere_picwidget_filename_imgStub) + appWidgetId;...
/** Configures the picture to display/hide for the widget. * @param context The current context. * @param appWidgetId The id of this widget. * @param remoteViews The remote views to set up the image of. * @param prefs The reference to this widget's preferences */
Configures the picture to display/hide for the widget
configPicture
{ "repo_name": "iamovrhere/PICwidget", "path": "src/com/ovrhere/android/picwidget/ui/provider/PICWidgetProvider.java", "license": "apache-2.0", "size": 14835 }
[ "android.content.Context", "android.content.SharedPreferences", "android.content.res.Resources", "android.graphics.Bitmap", "android.view.View", "android.widget.RemoteViews", "com.ovrhere.android.picwidget.utils.BitmapUtil" ]
import android.content.Context; import android.content.SharedPreferences; import android.content.res.Resources; import android.graphics.Bitmap; import android.view.View; import android.widget.RemoteViews; import com.ovrhere.android.picwidget.utils.BitmapUtil;
import android.content.*; import android.content.res.*; import android.graphics.*; import android.view.*; import android.widget.*; import com.ovrhere.android.picwidget.utils.*;
[ "android.content", "android.graphics", "android.view", "android.widget", "com.ovrhere.android" ]
android.content; android.graphics; android.view; android.widget; com.ovrhere.android;
2,071,848
public void testFetchLargeClobPieceByPieceModified() throws IOException, SQLException { fetchPieceByPiece(true); }
void function() throws IOException, SQLException { fetchPieceByPiece(true); }
/** * Fetches a "large" Clob piece by piece using getSubString. * <p> * The Clob is modified before fetched to create a temporary Clob * representation in memory / on disk. */
Fetches a "large" Clob piece by piece using getSubString. The Clob is modified before fetched to create a temporary Clob representation in memory / on disk
testFetchLargeClobPieceByPieceModified
{ "repo_name": "scnakandala/derby", "path": "java/testing/org/apache/derbyTesting/perf/basic/jdbc/ClobAccessTest.java", "license": "apache-2.0", "size": 24780 }
[ "java.io.IOException", "java.sql.SQLException" ]
import java.io.IOException; import java.sql.SQLException;
import java.io.*; import java.sql.*;
[ "java.io", "java.sql" ]
java.io; java.sql;
82,271
public DBCommandExpr union(DBCommandExpr other) { // give dbms a chance to subclass DBCombinedCmd DBMSHandler dbms = getDatabase().getDbms(); return dbms.createCombinedCommand(this, "UNION", other); }
DBCommandExpr function(DBCommandExpr other) { DBMSHandler dbms = getDatabase().getDbms(); return dbms.createCombinedCommand(this, "UNION", other); }
/** * Constructs a new DBCombinedCmd object with this object, * the key word= "UNION" and the selected DBCommandExpr. * * @see org.apache.empire.db.DBCombinedCmd * @param other the second DBCommandExpr * @return the new DBCombinedCmd object */
Constructs a new DBCombinedCmd object with this object, the key word= "UNION" and the selected DBCommandExpr
union
{ "repo_name": "apache/empire-db", "path": "empire-db/src/main/java/org/apache/empire/db/DBCommandExpr.java", "license": "apache-2.0", "size": 19990 }
[ "org.apache.empire.dbms.DBMSHandler" ]
import org.apache.empire.dbms.DBMSHandler;
import org.apache.empire.dbms.*;
[ "org.apache.empire" ]
org.apache.empire;
38,535
public static DiscoverInfo getDiscoveryInfoByNodeVer(String nodeVer) { DiscoverInfo info = CAPS_CACHE.get(nodeVer); // If it was not in CAPS_CACHE, try to retrieve the information from persistentCache if (info == null && persistentCache != null) { info = persistentCache.lookup(n...
static DiscoverInfo function(String nodeVer) { DiscoverInfo info = CAPS_CACHE.get(nodeVer); if (info == null && persistentCache != null) { info = persistentCache.lookup(nodeVer); if (info != null) { CAPS_CACHE.put(nodeVer, info); } } if (info != null) info = new DiscoverInfo(info); return info; }
/** * Retrieve DiscoverInfo for a specific node. * * @param nodeVer * The node name (e.g. * "http://psi-im.org#q07IKJEyjvHSyhy//CH0CxmKi8w="). * @return The corresponding DiscoverInfo or null if none is known. */
Retrieve DiscoverInfo for a specific node
getDiscoveryInfoByNodeVer
{ "repo_name": "lovely3x/Smack", "path": "smack-extensions/src/main/java/org/jivesoftware/smackx/caps/EntityCapsManager.java", "license": "apache-2.0", "size": 29000 }
[ "org.jivesoftware.smackx.disco.packet.DiscoverInfo" ]
import org.jivesoftware.smackx.disco.packet.DiscoverInfo;
import org.jivesoftware.smackx.disco.packet.*;
[ "org.jivesoftware.smackx" ]
org.jivesoftware.smackx;
1,093,036
public List<CmsUser> getUsers(CmsRequestContext context, CmsOrganizationalUnit orgUnit, boolean recursive) throws CmsException { List<CmsUser> result = null; CmsDbContext dbc = m_dbContextFactory.getDbContext(context); try { result = m_driverManager.getUsers(dbc, orgUnit, re...
List<CmsUser> function(CmsRequestContext context, CmsOrganizationalUnit orgUnit, boolean recursive) throws CmsException { List<CmsUser> result = null; CmsDbContext dbc = m_dbContextFactory.getDbContext(context); try { result = m_driverManager.getUsers(dbc, orgUnit, recursive); } catch (Exception e) { dbc.report(null, M...
/** * Returns all users of the given organizational unit.<p> * * @param context the current request context * @param orgUnit the organizational unit to get the users for * @param recursive if all users of sub-organizational units should be retrieved too * * @return all <code>{@link Cm...
Returns all users of the given organizational unit
getUsers
{ "repo_name": "sbonoc/opencms-core", "path": "src/org/opencms/db/CmsSecurityManager.java", "license": "lgpl-2.1", "size": 287876 }
[ "java.util.List", "org.opencms.file.CmsRequestContext", "org.opencms.file.CmsUser", "org.opencms.main.CmsException", "org.opencms.security.CmsOrganizationalUnit" ]
import java.util.List; import org.opencms.file.CmsRequestContext; import org.opencms.file.CmsUser; import org.opencms.main.CmsException; import org.opencms.security.CmsOrganizationalUnit;
import java.util.*; import org.opencms.file.*; import org.opencms.main.*; import org.opencms.security.*;
[ "java.util", "org.opencms.file", "org.opencms.main", "org.opencms.security" ]
java.util; org.opencms.file; org.opencms.main; org.opencms.security;
2,580,079
public void assertNotLessThan(Description description, BigDecimal actual, BigDecimal expected) { checkNumberIsNotNull(expected); assertNotNull(description, actual); comparables.assertNotLessThan(description, actual, expected); }
void function(Description description, BigDecimal actual, BigDecimal expected) { checkNumberIsNotNull(expected); assertNotNull(description, actual); comparables.assertNotLessThan(description, actual, expected); }
/** * Verifies that the actual value is not less than the expected. * * @param description the description of the <em>actual</em> value. * @param actual the <em>actual</em> value. * @param expected the <em>expected</em> value. */
Verifies that the actual value is not less than the expected
assertNotLessThan
{ "repo_name": "alexruiz/fest-assert-2.x", "path": "src/main/java/org/fest/assertions/internal/BigDecimals.java", "license": "apache-2.0", "size": 5937 }
[ "java.math.BigDecimal", "org.fest.assertions.description.Description", "org.fest.assertions.internal.CommonValidations", "org.fest.assertions.internal.Comparables" ]
import java.math.BigDecimal; import org.fest.assertions.description.Description; import org.fest.assertions.internal.CommonValidations; import org.fest.assertions.internal.Comparables;
import java.math.*; import org.fest.assertions.description.*; import org.fest.assertions.internal.*;
[ "java.math", "org.fest.assertions" ]
java.math; org.fest.assertions;
822,897
@Deprecated @Override public Span log(String eventName, Object payload) { return this; }
Span function(String eventName, Object payload) { return this; }
/** * Don't support logging with payload. */
Don't support logging with payload
log
{ "repo_name": "wu-sheng/sky-walking", "path": "apm-application-toolkit/apm-toolkit-opentracing/src/main/java/org/apache/skywalking/apm/toolkit/opentracing/SkywalkingSpan.java", "license": "apache-2.0", "size": 4006 }
[ "io.opentracing.Span" ]
import io.opentracing.Span;
import io.opentracing.*;
[ "io.opentracing" ]
io.opentracing;
160,716
public ManagedDatabaseUpdate withRestorePointInTime(OffsetDateTime restorePointInTime) { this.restorePointInTime = restorePointInTime; return this; }
ManagedDatabaseUpdate function(OffsetDateTime restorePointInTime) { this.restorePointInTime = restorePointInTime; return this; }
/** * Set the restorePointInTime property: Conditional. If createMode is PointInTimeRestore, this value is required. * Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new * database. * * @param restorePointInTime the restorePointInTime val...
Set the restorePointInTime property: Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point in time (ISO8601 format) of the source database that will be restored to create the new database
withRestorePointInTime
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/models/ManagedDatabaseUpdate.java", "license": "mit", "size": 15425 }
[ "java.time.OffsetDateTime" ]
import java.time.OffsetDateTime;
import java.time.*;
[ "java.time" ]
java.time;
2,532,524
public final void testPKCS8EncodedKeySpec() { byte[] encodedKey = new byte[] { (byte) 1, (byte) 2, (byte) 3, (byte) 4 }; EncodedKeySpec eks = new PKCS8EncodedKeySpec(encodedKey); assertTrue(eks instanceof PKCS8EncodedKeySpec); }
final void function() { byte[] encodedKey = new byte[] { (byte) 1, (byte) 2, (byte) 3, (byte) 4 }; EncodedKeySpec eks = new PKCS8EncodedKeySpec(encodedKey); assertTrue(eks instanceof PKCS8EncodedKeySpec); }
/** * Test for <code>PKCS8EncodedKeySpec</code> constructor<br> * Assertion: constructs new <code>PKCS8EncodedKeySpec</code> * object using valid parameter */
Test for <code>PKCS8EncodedKeySpec</code> constructor Assertion: constructs new <code>PKCS8EncodedKeySpec</code> object using valid parameter
testPKCS8EncodedKeySpec
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/spec/PKCS8EncodedKeySpecTest.java", "license": "gpl-3.0", "size": 4209 }
[ "java.security.spec.EncodedKeySpec", "java.security.spec.PKCS8EncodedKeySpec" ]
import java.security.spec.EncodedKeySpec; import java.security.spec.PKCS8EncodedKeySpec;
import java.security.spec.*;
[ "java.security" ]
java.security;
2,826,964
private void checkForRedundantPublicModifier(DetailAST ast) { final DetailAST astModifiers = ast.findFirstToken(TokenTypes.MODIFIERS); DetailAST astModifier = astModifiers.getFirstChild(); while (astModifier != null) { if (astModifier.getType() == TokenTypes.LITERAL_PUBLIC) { ...
void function(DetailAST ast) { final DetailAST astModifiers = ast.findFirstToken(TokenTypes.MODIFIERS); DetailAST astModifier = astModifiers.getFirstChild(); while (astModifier != null) { if (astModifier.getType() == TokenTypes.LITERAL_PUBLIC) { log(astModifier.getLineNo(), astModifier.getColumnNo(), MSG_KEY, astModifi...
/** * Checks if given ast has redundant public modifier. * @param ast ast */
Checks if given ast has redundant public modifier
checkForRedundantPublicModifier
{ "repo_name": "HubSpot/checkstyle", "path": "src/main/java/com/puppycrawl/tools/checkstyle/checks/modifier/RedundantModifierCheck.java", "license": "lgpl-2.1", "size": 14873 }
[ "com.puppycrawl.tools.checkstyle.api.DetailAST", "com.puppycrawl.tools.checkstyle.api.TokenTypes" ]
import com.puppycrawl.tools.checkstyle.api.DetailAST; import com.puppycrawl.tools.checkstyle.api.TokenTypes;
import com.puppycrawl.tools.checkstyle.api.*;
[ "com.puppycrawl.tools" ]
com.puppycrawl.tools;
1,056,125
static ServletWebContextLoader servletWeb() { return new ServletWebContextLoader(() -> { AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext(); context.setServletContext(new MockServletContext()); return context; }); }
static ServletWebContextLoader servletWeb() { return new ServletWebContextLoader(() -> { AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext(); context.setServletContext(new MockServletContext()); return context; }); }
/** * Creates a {@code ContextLoader} that will load a * {@link AnnotationConfigWebApplicationContext}. * @return the context loader */
Creates a ContextLoader that will load a <code>AnnotationConfigWebApplicationContext</code>
servletWeb
{ "repo_name": "Nowheresly/spring-boot", "path": "spring-boot-test/src/main/java/org/springframework/boot/test/context/ContextLoader.java", "license": "apache-2.0", "size": 7534 }
[ "org.springframework.mock.web.MockServletContext", "org.springframework.web.context.support.AnnotationConfigWebApplicationContext" ]
import org.springframework.mock.web.MockServletContext; import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;
import org.springframework.mock.web.*; import org.springframework.web.context.support.*;
[ "org.springframework.mock", "org.springframework.web" ]
org.springframework.mock; org.springframework.web;
2,658,249
public void render() { if (capturing) { capturing = false; frameBuffer.end(); } Gdx.gl.glDisable(GL20.GL_BLEND); Gdx.gl.glDisable(GL20.GL_DEPTH_TEST); // Gdx.gl.glDepthMask(false); gaussianBlur(); if (blending) { Gdx.gl.glEnable(GL20.GL_BLEND); Gdx.gl.glBlendFunc(...
void function() { if (capturing) { capturing = false; frameBuffer.end(); } Gdx.gl.glDisable(GL20.GL_BLEND); Gdx.gl.glDisable(GL20.GL_DEPTH_TEST); gaussianBlur(); if (blending) { Gdx.gl.glEnable(GL20.GL_BLEND); Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); } pingPongTex1.bind(1); original.bind(0); ...
/** * Call this after scene. Renders the bloomed scene. */
Call this after scene. Renders the bloomed scene
render
{ "repo_name": "fauu/HelixEngine", "path": "core/src/com/github/fauu/helix/graphics/postprocessing/Bloom.java", "license": "gpl-3.0", "size": 11751 }
[ "com.badlogic.gdx.Gdx" ]
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.*;
[ "com.badlogic.gdx" ]
com.badlogic.gdx;
1,698,750
private void doInit(final Configuration config, final boolean persistent) throws IOException, ConfigurationException { discoveryMgr = new LookupDiscoveryManager ...
void function(final Configuration config, final boolean persistent) throws IOException, ConfigurationException { discoveryMgr = new LookupDiscoveryManager (DiscoveryGroupManagement.NO_GROUPS, new LookupLocator[0], null, config); listenerPreparer = (ProxyPreparer)Config.getNonNullEntry (config, COMPONENT_NAME, STR, Prox...
/** Initialization common to all modes in which instances of this service * runs: activatable/persistent, non-activatable/persistent, and * transient (non-activatable /non-persistent). */
Initialization common to all modes in which instances of this service runs: activatable/persistent, non-activatable/persistent, and transient (non-activatable /non-persistent)
doInit
{ "repo_name": "trasukg/river-qa-2.2", "path": "src/com/sun/jini/fiddler/FiddlerImpl.java", "license": "apache-2.0", "size": 419323 }
[ "com.sun.jini.config.Config", "com.sun.jini.reliableLog.ReliableLog", "com.sun.jini.thread.TaskManager", "java.io.IOException", "java.rmi.activation.ActivationID", "java.rmi.activation.ActivationSystem", "java.rmi.server.ExportException", "java.util.ArrayList", "net.jini.activation.ActivationExporte...
import com.sun.jini.config.Config; import com.sun.jini.reliableLog.ReliableLog; import com.sun.jini.thread.TaskManager; import java.io.IOException; import java.rmi.activation.ActivationID; import java.rmi.activation.ActivationSystem; import java.rmi.server.ExportException; import java.util.ArrayList; import net.jini.ac...
import com.sun.jini.*; import com.sun.jini.config.*; import com.sun.jini.thread.*; import java.io.*; import java.rmi.activation.*; import java.rmi.server.*; import java.util.*; import net.jini.activation.*; import net.jini.config.*; import net.jini.core.discovery.*; import net.jini.core.entry.*; import net.jini.core.lo...
[ "com.sun.jini", "java.io", "java.rmi", "java.util", "net.jini.activation", "net.jini.config", "net.jini.core", "net.jini.discovery", "net.jini.export", "net.jini.id", "net.jini.jeri", "net.jini.lookup", "net.jini.security" ]
com.sun.jini; java.io; java.rmi; java.util; net.jini.activation; net.jini.config; net.jini.core; net.jini.discovery; net.jini.export; net.jini.id; net.jini.jeri; net.jini.lookup; net.jini.security;
2,605,634
@Override public void close() throws IOException { // have to use shutdown now to break any latch waiting pool.shutdownNow(); }
void function() throws IOException { pool.shutdownNow(); }
/** * Best effort attempt to close the threadpool via Thread.interrupt. */
Best effort attempt to close the threadpool via Thread.interrupt
close
{ "repo_name": "Guavus/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/procedure/ProcedureMember.java", "license": "apache-2.0", "size": 9283 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,182,091
public GetItemOutcome getItemOutcome(String hashKeyName, Object hashKeyValue, String projectionExpression, Map<String, String> nameMap);
GetItemOutcome function(String hashKeyName, Object hashKeyValue, String projectionExpression, Map<String, String> nameMap);
/** * Retrieves an item and the associated information via the specified hash * key using projection expression. Incurs network access. * * @return the (non-null) result of item retrieval. */
Retrieves an item and the associated information via the specified hash key using projection expression. Incurs network access
getItemOutcome
{ "repo_name": "aws/aws-sdk-java", "path": "aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/api/GetItemApi.java", "license": "apache-2.0", "size": 6888 }
[ "com.amazonaws.services.dynamodbv2.document.GetItemOutcome", "java.util.Map" ]
import com.amazonaws.services.dynamodbv2.document.GetItemOutcome; import java.util.Map;
import com.amazonaws.services.dynamodbv2.document.*; import java.util.*;
[ "com.amazonaws.services", "java.util" ]
com.amazonaws.services; java.util;
724,884
public synchronized List<MonitoredTask> getTasks() { purgeExpiredTasks(); ArrayList<MonitoredTask> ret = Lists.newArrayListWithCapacity(tasks.size()); for (Iterator<TaskAndWeakRefPair> it = tasks.iterator(); it.hasNext();) { TaskAndWeakRefPair pair = it.next(); MonitoredTask t = pair....
synchronized List<MonitoredTask> function() { purgeExpiredTasks(); ArrayList<MonitoredTask> ret = Lists.newArrayListWithCapacity(tasks.size()); for (Iterator<TaskAndWeakRefPair> it = tasks.iterator(); it.hasNext();) { TaskAndWeakRefPair pair = it.next(); MonitoredTask t = pair.get(); ret.add(t.clone()); } return ret; }
/** * Produces a list containing copies of the current state of all non-expired * MonitoredTasks handled by this TaskMonitor. * @return A complete list of MonitoredTasks. */
Produces a list containing copies of the current state of all non-expired MonitoredTasks handled by this TaskMonitor
getTasks
{ "repo_name": "axfcampos/hbase-0.94.19", "path": "src/main/java/org/apache/hadoop/hbase/monitoring/TaskMonitor.java", "license": "apache-2.0", "size": 7104 }
[ "com.google.common.collect.Lists", "java.util.ArrayList", "java.util.Iterator", "java.util.List" ]
import com.google.common.collect.Lists; import java.util.ArrayList; import java.util.Iterator; import java.util.List;
import com.google.common.collect.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
2,244,277
public List<InsObject> getInsObjects() { return this.insObjects; }
List<InsObject> function() { return this.insObjects; }
/** * <p>Getter for the field <code>insObjects</code>.</p> * * @return a {@link java.util.List} object. */
Getter for the field <code>insObjects</code>
getInsObjects
{ "repo_name": "NotFound403/WePay", "path": "src/main/java/cn/felord/wepay/ali/sdk/api/domain/InsPolicy.java", "license": "apache-2.0", "size": 9033 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,390,774
public static String calculateMd5(String input, String encoding) throws NoSuchAlgorithmException, UnsupportedEncodingException { MessageDigest md = MessageDigest.getInstance("MD5"); md.update(input.getBytes(encoding)); byte digest[] = md.digest(); final StringBuilder hexString = new...
static String function(String input, String encoding) throws NoSuchAlgorithmException, UnsupportedEncodingException { MessageDigest md = MessageDigest.getInstance("MD5"); md.update(input.getBytes(encoding)); byte digest[] = md.digest(); final StringBuilder hexString = new StringBuilder(); for (byte element : digest) { ...
/** * Calculates MD5 hash for string. * @param input string which is going to be encoded into MD5 format * @param encoding character encoding of the string which is going to be encoded into MD5 format * @return MD5 representation of the input string * @throws NoSuchAlgorithmException if the MD...
Calculates MD5 hash for string
calculateMd5
{ "repo_name": "Nexmo/nexmo-java", "path": "src/main/java/com/nexmo/client/auth/MD5Util.java", "license": "mit", "size": 3018 }
[ "java.io.UnsupportedEncodingException", "java.security.MessageDigest", "java.security.NoSuchAlgorithmException" ]
import java.io.UnsupportedEncodingException; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException;
import java.io.*; import java.security.*;
[ "java.io", "java.security" ]
java.io; java.security;
277,167
public static Calendar getDate3(final String strDate) { if ((strDate != null) && (strDate.length() == 4)) { return getCalendar(strDate, "yyMM"); } else { return null; } }
static Calendar function(final String strDate) { if ((strDate != null) && (strDate.length() == 4)) { return getCalendar(strDate, "yyMM"); } else { return null; } }
/** * Parses a DATE3 string (accept dates in format YYMM) into a Calendar object. * @param strDate string to parse * @return parsed date or <code>null</code> if the argument did not matched the expected date format */
Parses a DATE3 string (accept dates in format YYMM) into a Calendar object
getDate3
{ "repo_name": "hellonico/wife", "path": "src/com/prowidesoftware/swift/utils/SwiftFormatUtils.java", "license": "epl-1.0", "size": 17575 }
[ "java.util.Calendar" ]
import java.util.Calendar;
import java.util.*;
[ "java.util" ]
java.util;
61,751
Reference load(Long id, Relationship... fetch) throws EntityNotFoundException;
Reference load(Long id, Relationship... fetch) throws EntityNotFoundException;
/** * Loads a reference fetching the specified relationships * @param id Id of the reference to be loaded * @param fetch array of relationships to be fetched * @return The loaded reference * @throws EntityNotFoundException When no such reference exists */
Loads a reference fetching the specified relationships
load
{ "repo_name": "robertoandrade/cyclos", "path": "src/nl/strohalm/cyclos/services/elements/ReferenceService.java", "license": "gpl-2.0", "size": 5902 }
[ "nl.strohalm.cyclos.entities.Relationship", "nl.strohalm.cyclos.entities.exceptions.EntityNotFoundException", "nl.strohalm.cyclos.entities.members.Reference" ]
import nl.strohalm.cyclos.entities.Relationship; import nl.strohalm.cyclos.entities.exceptions.EntityNotFoundException; import nl.strohalm.cyclos.entities.members.Reference;
import nl.strohalm.cyclos.entities.*; import nl.strohalm.cyclos.entities.exceptions.*; import nl.strohalm.cyclos.entities.members.*;
[ "nl.strohalm.cyclos" ]
nl.strohalm.cyclos;
1,693,104
public void readDatabases( JobMeta jobMeta, boolean overWriteShared ) throws KettleException { try { ObjectId[] dbids = repository.getDatabaseIDs( false ); for ( int i = 0; i < dbids.length; i++ ) { DatabaseMeta databaseMeta = repository.loadDatabaseMeta( dbids[i], null ); // reads last versio...
void function( JobMeta jobMeta, boolean overWriteShared ) throws KettleException { try { ObjectId[] dbids = repository.getDatabaseIDs( false ); for ( int i = 0; i < dbids.length; i++ ) { DatabaseMeta databaseMeta = repository.loadDatabaseMeta( dbids[i], null ); databaseMeta.shareVariablesWith( jobMeta ); if ( databaseM...
/** * Read the database connections in the repository and add them to this job if they are not yet present. * * @param jobMeta * the job to put the database connections in * @param overWriteShared * set to true if you want to overwrite shared connections while loading. * @throws K...
Read the database connections in the repository and add them to this job if they are not yet present
readDatabases
{ "repo_name": "nicoben/pentaho-kettle", "path": "engine/src/org/pentaho/di/repository/kdr/delegates/KettleDatabaseRepositoryJobDelegate.java", "license": "apache-2.0", "size": 45329 }
[ "org.pentaho.di.core.database.DatabaseMeta", "org.pentaho.di.core.exception.KettleDatabaseException", "org.pentaho.di.core.exception.KettleException", "org.pentaho.di.i18n.BaseMessages", "org.pentaho.di.job.JobMeta", "org.pentaho.di.repository.ObjectId" ]
import org.pentaho.di.core.database.DatabaseMeta; import org.pentaho.di.core.exception.KettleDatabaseException; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.i18n.BaseMessages; import org.pentaho.di.job.JobMeta; import org.pentaho.di.repository.ObjectId;
import org.pentaho.di.core.database.*; import org.pentaho.di.core.exception.*; import org.pentaho.di.i18n.*; import org.pentaho.di.job.*; import org.pentaho.di.repository.*;
[ "org.pentaho.di" ]
org.pentaho.di;
670,129
public void testGetSupportedCipherSuites2() throws Exception { SSLServerSocketFactory serverSocketFactory = new SSLServerSocketFactoryImpl(JSSETestData.getSSLParameters()); String[] supported = serverSocketFactory.getSupportedCipherSuites(); assertNotNull(supported); supp...
void function() throws Exception { SSLServerSocketFactory serverSocketFactory = new SSLServerSocketFactoryImpl(JSSETestData.getSSLParameters()); String[] supported = serverSocketFactory.getSupportedCipherSuites(); assertNotNull(supported); supported[0] = STR; supported = serverSocketFactory.getSupportedCipherSuites(); ...
/** * SSLServerSocketFactory.getSupportedCipherSuites() method testing. */
SSLServerSocketFactory.getSupportedCipherSuites() method testing
testGetSupportedCipherSuites2
{ "repo_name": "freeVM/freeVM", "path": "enhanced/archive/classlib/java6/modules/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/SSLSocketFactoriesTest.java", "license": "apache-2.0", "size": 18944 }
[ "javax.net.ssl.SSLServerSocketFactory" ]
import javax.net.ssl.SSLServerSocketFactory;
import javax.net.ssl.*;
[ "javax.net" ]
javax.net;
2,612,838
EOperation getConformLoadGroup__IsApplicable_CC__Match_Match();
EOperation getConformLoadGroup__IsApplicable_CC__Match_Match();
/** * Returns the meta object for the '{@link rgse.ttc17.emoflon.tgg.task2.Rules.ConformLoadGroup#isApplicable_CC(org.moflon.tgg.runtime.Match, org.moflon.tgg.runtime.Match) <em>Is Applicable CC</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the '<em>Is Applica...
Returns the meta object for the '<code>rgse.ttc17.emoflon.tgg.task2.Rules.ConformLoadGroup#isApplicable_CC(org.moflon.tgg.runtime.Match, org.moflon.tgg.runtime.Match) Is Applicable CC</code>' operation.
getConformLoadGroup__IsApplicable_CC__Match_Match
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/eMoflon/rgse.ttc17.emoflon.tgg.task2/gen/rgse/ttc17/emoflon/tgg/task2/Rules/RulesPackage.java", "license": "mit", "size": 437406 }
[ "org.eclipse.emf.ecore.EOperation" ]
import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,727,746
private static void checkArguments(final JFrame parent, final IDebugger debugger, final TraceLogger logger) { Preconditions.checkNotNull(parent, "IE01566: Parent argument can not be null"); Preconditions.checkNotNull(debugger, "IE01567: Debugger argument can not be null"); Preconditions.checkNotNull...
static void function(final JFrame parent, final IDebugger debugger, final TraceLogger logger) { Preconditions.checkNotNull(parent, STR); Preconditions.checkNotNull(debugger, STR); Preconditions.checkNotNull(logger, STR); }
/** * Checks arguments for validity. * * @param parent Parent argument to check. * @param debugger Debugger argument to check. * @param logger Logger argument to check. */
Checks arguments for validity
checkArguments
{ "repo_name": "AmesianX/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/Gui/Debug/ToolbarPanel/Implementations/CTraceFunctions.java", "license": "apache-2.0", "size": 8238 }
[ "com.google.common.base.Preconditions", "com.google.security.zynamics.binnavi.debug.debugger.interfaces.IDebugger", "com.google.security.zynamics.binnavi.debug.models.trace.TraceLogger", "javax.swing.JFrame" ]
import com.google.common.base.Preconditions; import com.google.security.zynamics.binnavi.debug.debugger.interfaces.IDebugger; import com.google.security.zynamics.binnavi.debug.models.trace.TraceLogger; import javax.swing.JFrame;
import com.google.common.base.*; import com.google.security.zynamics.binnavi.debug.debugger.interfaces.*; import com.google.security.zynamics.binnavi.debug.models.trace.*; import javax.swing.*;
[ "com.google.common", "com.google.security", "javax.swing" ]
com.google.common; com.google.security; javax.swing;
1,756,302
public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof XYDataItem)) { return false; } XYDataItem that = (XYDataItem) obj; if (!this.x.equals(that.x)) { return false; } i...
boolean function(Object obj) { if (obj == this) { return true; } if (!(obj instanceof XYDataItem)) { return false; } XYDataItem that = (XYDataItem) obj; if (!this.x.equals(that.x)) { return false; } if (!ObjectUtilities.equal(this.y, that.y)) { return false; } return true; }
/** * Tests if this object is equal to another. * * @param obj the object to test against for equality (<code>null</code> * permitted). * * @return A boolean. */
Tests if this object is equal to another
equals
{ "repo_name": "apetresc/JFreeChart", "path": "src/main/java/org/jfree/data/xy/XYDataItem.java", "license": "lgpl-2.1", "size": 7422 }
[ "org.jfree.util.ObjectUtilities" ]
import org.jfree.util.ObjectUtilities;
import org.jfree.util.*;
[ "org.jfree.util" ]
org.jfree.util;
2,291,015
public void testUpdateTimeResolution() throws IOException { File compiledFile = null; try { // // delete any history file that might exist // in the test output directory final String tempDir = System.getProperty("java.io.tmpdir"); File historyFile = new File(tempDir, "history.x...
void function() throws IOException { File compiledFile = null; try { final String tempDir = System.getProperty(STR); File historyFile = new File(tempDir, STR); historyFile.deleteOnExit(); if (historyFile.exists()) { historyFile.delete(); } final TargetHistoryTable table = new TargetHistoryTable(null, new File(tempDir))...
/** * Tests for bug fixed by patch [ 650397 ] Fix: Needless rebuilds on Unix * * @throws IOException */
Tests for bug fixed by patch [ 650397 ] Fix: Needless rebuilds on Unix
testUpdateTimeResolution
{ "repo_name": "dugilos/nar-maven-plugin", "path": "src/test/java/com/github/maven_nar/cpptasks/TestTargetHistoryTable.java", "license": "apache-2.0", "size": 4524 }
[ "java.io.File", "java.io.FileOutputStream", "java.io.IOException" ]
import java.io.File; import java.io.FileOutputStream; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,777,955
@Override public final void run() { String taskID = m_taskRecord.getTaskID(); m_logger.debug("Starting task '{}' in tenant '{}'", taskID, m_tenant); try { TaskManagerService.instance().registerTaskStarted(this); m_lastProgressTimestamp = System.currentTimeMillis()...
final void function() { String taskID = m_taskRecord.getTaskID(); m_logger.debug(STR, taskID, m_tenant); try { TaskManagerService.instance().registerTaskStarted(this); m_lastProgressTimestamp = System.currentTimeMillis(); setTaskStart(); execute(); setTaskFinish(); } catch (Throwable e) { m_logger.error(STR + taskID + ...
/** * Called by the TaskManagerService to begin the execution of the task. */
Called by the TaskManagerService to begin the execution of the task
run
{ "repo_name": "kod3r/Doradus", "path": "doradus-server/src/main/java/com/dell/doradus/service/taskmanager/Task.java", "license": "apache-2.0", "size": 8379 }
[ "com.dell.doradus.common.Utils" ]
import com.dell.doradus.common.Utils;
import com.dell.doradus.common.*;
[ "com.dell.doradus" ]
com.dell.doradus;
1,705,168
private void preencherDados(List<Linha> linhas) { final LinhasAdapter adapter = new LinhasAdapter(this, linhas); final ListView listView = (ListView) findViewById(R.id.linhasListView); if (listView != null) { listView.setAdapter(adapter);
void function(List<Linha> linhas) { final LinhasAdapter adapter = new LinhasAdapter(this, linhas); final ListView listView = (ListView) findViewById(R.id.linhasListView); if (listView != null) { listView.setAdapter(adapter);
/** * Preenche a tela com os dados de linhas * @param linhas que serão exibidas na tela */
Preenche a tela com os dados de linhas
preencherDados
{ "repo_name": "hcordeiro/InthegraApp", "path": "InthegraApp/src/main/java/com/hcordeiro/android/InthegraApp/Activities/Veiculos/VeiculosMenuActivity.java", "license": "mit", "size": 5389 }
[ "android.widget.ListView", "com.equalsp.stransthe.Linha", "com.hcordeiro.android.InthegraApp", "java.util.List" ]
import android.widget.ListView; import com.equalsp.stransthe.Linha; import com.hcordeiro.android.InthegraApp; import java.util.List;
import android.widget.*; import com.equalsp.stransthe.*; import com.hcordeiro.android.*; import java.util.*;
[ "android.widget", "com.equalsp.stransthe", "com.hcordeiro.android", "java.util" ]
android.widget; com.equalsp.stransthe; com.hcordeiro.android; java.util;
1,472,094
public FieldBuilder addField(String name, Type type) { VariableDeclarationFragment vfrag = getAST().newVariableDeclarationFragment(); vfrag.setName(getAST().newSimpleName(name)); FieldDeclaration fdecl = getAST().newFieldDeclaration(vfrag); fdecl.setType(type); m_fields.add(f...
FieldBuilder function(String name, Type type) { VariableDeclarationFragment vfrag = getAST().newVariableDeclarationFragment(); vfrag.setName(getAST().newSimpleName(name)); FieldDeclaration fdecl = getAST().newFieldDeclaration(vfrag); fdecl.setType(type); m_fields.add(fdecl); return new FieldBuilder(this, fdecl); }
/** * Add field declaration. * * @param name field name * @param type field type * @return field builder */
Add field declaration
addField
{ "repo_name": "vkorbut/jibx", "path": "jibx/build/src/org/jibx/schema/codegen/ClassBuilder.java", "license": "bsd-3-clause", "size": 25431 }
[ "org.eclipse.jdt.core.dom.FieldDeclaration", "org.eclipse.jdt.core.dom.Type", "org.eclipse.jdt.core.dom.VariableDeclarationFragment" ]
import org.eclipse.jdt.core.dom.FieldDeclaration; import org.eclipse.jdt.core.dom.Type; import org.eclipse.jdt.core.dom.VariableDeclarationFragment;
import org.eclipse.jdt.core.dom.*;
[ "org.eclipse.jdt" ]
org.eclipse.jdt;
2,251,110
public Iterator sortedKeys() { return new TreeSet(this.map.keySet()).iterator(); }
Iterator function() { return new TreeSet(this.map.keySet()).iterator(); }
/** * Get an enumeration of the keys of the JSONObject. * The keys will be sorted alphabetically. * * @return An iterator of the keys. */
Get an enumeration of the keys of the JSONObject. The keys will be sorted alphabetically
sortedKeys
{ "repo_name": "wesen/rw-patchmanager", "path": "src/org/json/JSONObject.java", "license": "bsd-3-clause", "size": 53174 }
[ "java.util.Iterator", "java.util.TreeSet" ]
import java.util.Iterator; import java.util.TreeSet;
import java.util.*;
[ "java.util" ]
java.util;
1,069,654
public static final Cursor makeSongCursor(final Context context) { final StringBuilder mSelection = new StringBuilder(); mSelection.append(AudioColumns.IS_MUSIC + "=1"); mSelection.append(" AND " + AudioColumns.TITLE + " != ''"); //$NON-NLS-2$ return context.getContentResolver()....
static final Cursor function(final Context context) { final StringBuilder mSelection = new StringBuilder(); mSelection.append(AudioColumns.IS_MUSIC + "=1"); mSelection.append(STR + AudioColumns.TITLE + STR); return context.getContentResolver().query(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, new String[] { BaseColumn...
/** * Creates the {@link Cursor} used to run the query. * * @param context The {@link Context} to use. * @return The {@link Cursor} used to run the song query. */
Creates the <code>Cursor</code> used to run the query
makeSongCursor
{ "repo_name": "micromacer/Player-by-TweekProject", "path": "src/com/andrew/apollo/loaders/SongLoader.java", "license": "gpl-3.0", "size": 3826 }
[ "android.content.Context", "android.database.Cursor", "android.provider.BaseColumns", "android.provider.MediaStore", "com.andrew.apollo.utils.PreferenceUtils" ]
import android.content.Context; import android.database.Cursor; import android.provider.BaseColumns; import android.provider.MediaStore; import com.andrew.apollo.utils.PreferenceUtils;
import android.content.*; import android.database.*; import android.provider.*; import com.andrew.apollo.utils.*;
[ "android.content", "android.database", "android.provider", "com.andrew.apollo" ]
android.content; android.database; android.provider; com.andrew.apollo;
2,129,602
@Override public void deleteAsset(String assetId) { DBCollection coll = getAssetCollection(); DBObject query = new BasicDBObject(ID, new ObjectId(assetId)); coll.remove(query); }
void function(String assetId) { DBCollection coll = getAssetCollection(); DBObject query = new BasicDBObject(ID, new ObjectId(assetId)); coll.remove(query); }
/** * Delete the asset with the specified id. */
Delete the asset with the specified id
deleteAsset
{ "repo_name": "idlewis/tool.lars", "path": "server/src/main/java/com/ibm/ws/lars/rest/PersistenceBean.java", "license": "apache-2.0", "size": 19519 }
[ "com.mongodb.BasicDBObject", "com.mongodb.DBCollection", "com.mongodb.DBObject", "org.bson.types.ObjectId" ]
import com.mongodb.BasicDBObject; import com.mongodb.DBCollection; import com.mongodb.DBObject; import org.bson.types.ObjectId;
import com.mongodb.*; import org.bson.types.*;
[ "com.mongodb", "org.bson.types" ]
com.mongodb; org.bson.types;
1,069,027
synchronized int setAllocActionpointRequest( IProgressMonitor progressMonitor, AllocEventActionPoint eventActionPoint) throws ServiceException, IOException { synchronized (lock) { init(null); try { monitor....
synchronized int setAllocActionpointRequest( IProgressMonitor progressMonitor, AllocEventActionPoint eventActionPoint) throws ServiceException, IOException { synchronized (lock) { init(null); try { monitor.setAllocActionpointRequest( eventActionPoint.getState(), eventActionPoint.getFromScopeType(), eventActionPoint.get...
/** * Request for setting an alloc event action point. * * @param progressMonitor the progress monitor used for cancellation. * @param eventActionPoint the alloc event action point to be set. * @return the id of the alloc event action point set. * @throws IOException if an ...
Request for setting an alloc event action point
setAllocActionpointRequest
{ "repo_name": "debabratahazra/OptimaLA", "path": "Optima/com.ose.system/src/com/ose/system/Target.java", "license": "epl-1.0", "size": 501290 }
[ "java.io.IOException", "org.eclipse.core.runtime.IProgressMonitor" ]
import java.io.IOException; import org.eclipse.core.runtime.IProgressMonitor;
import java.io.*; import org.eclipse.core.runtime.*;
[ "java.io", "org.eclipse.core" ]
java.io; org.eclipse.core;
598,831
PagedIterable<PolicyState> listQueryResultsForResourceGroupLevelPolicyAssignment( PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName, String policyAssignmentName);
PagedIterable<PolicyState> listQueryResultsForResourceGroupLevelPolicyAssignment( PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName, String policyAssignmentName);
/** * Queries policy states for the resource group level policy assignment. * * @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time range, * 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s). * @pa...
Queries policy states for the resource group level policy assignment
listQueryResultsForResourceGroupLevelPolicyAssignment
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/models/PolicyStates.java", "license": "mit", "size": 43705 }
[ "com.azure.core.http.rest.PagedIterable" ]
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.*;
[ "com.azure.core" ]
com.azure.core;
2,096,587
//@E2A public static void endCommitmentControl(AS400 system) throws AS400Exception, AS400SecurityException, InterruptedException, IOException { if (system == null) throw new NullPointerException("system"); system.signon(false); // system.connectService(AS400.REC...
static void function(AS400 system) throws AS400Exception, AS400SecurityException, InterruptedException, IOException { if (system == null) throw new NullPointerException(STR); system.signon(false); AS400FileImpl impl = (AS400FileImpl)system.loadImpl3(STR, STR, STR); impl.doIt(STR, new Class[] { AS400Impl.class }, new Ob...
/** *Ends commitment control for the specified connection. *If commitment control has not been started for the connection, no action *is taken. *@param system The system for which commitment control should be ended. * *@exception AS400Exception If the system returns an error message. ...
Ends commitment control for the specified connection. If commitment control has not been started for the connection, no action is taken
endCommitmentControl
{ "repo_name": "devjunix/libjt400-java", "path": "src/com/ibm/as400/access/AS400File.java", "license": "epl-1.0", "size": 107145 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
972,988
public boolean getProxySupport() { return config.getBoolean(Key.PROXY_SUPPORT); }
boolean function() { return config.getBoolean(Key.PROXY_SUPPORT); }
/** * Get whether parsing of data provided by a proxy is enabled. * * @return True if a proxy is providing data to use. */
Get whether parsing of data provided by a proxy is enabled
getProxySupport
{ "repo_name": "GlowstoneMC/GlowstonePlusPlus", "path": "src/main/java/net/glowstone/GlowServer.java", "license": "mit", "size": 97817 }
[ "net.glowstone.util.config.ServerConfig" ]
import net.glowstone.util.config.ServerConfig;
import net.glowstone.util.config.*;
[ "net.glowstone.util" ]
net.glowstone.util;
1,587,443
void onMessage(final int typeId, final MutableDirectBuffer buffer, final int offset, final int length); } /** * Spy on messages in ring buffer up to a limit of number of messages. Does not block. * * @param handler to call for all spied messages * @param buffer to copy messages into...
void onMessage(final int typeId, final MutableDirectBuffer buffer, final int offset, final int length); } /** * Spy on messages in ring buffer up to a limit of number of messages. Does not block. * * @param handler to call for all spied messages * @param buffer to copy messages into and return in {@link SpyHandler#onMe...
/** * Message spied on in a ring buffer. * * @param typeId of the message * @param buffer of the message * @param offset within the buffer where the message starts * @param length of the message in bytes */
Message spied on in a ring buffer
onMessage
{ "repo_name": "jessefugitt/nuklei", "path": "core/src/main/java/org/kaazing/nuklei/concurrent/ringbuffer/RingBufferSpy.java", "license": "apache-2.0", "size": 1815 }
[ "uk.co.real_logic.agrona.MutableDirectBuffer" ]
import uk.co.real_logic.agrona.MutableDirectBuffer;
import uk.co.real_logic.agrona.*;
[ "uk.co.real_logic" ]
uk.co.real_logic;
711,701
@FIXVersion(introduced="4.3") @TagNumRef(tagNum=TagNum.Designation) public void setDesignation(String designation) { this.designation = designation; }
@FIXVersion(introduced="4.3") @TagNumRef(tagNum=TagNum.Designation) void function(String designation) { this.designation = designation; }
/** * Message field setter. * @param designation field value */
Message field setter
setDesignation
{ "repo_name": "marvisan/HadesFIX", "path": "Model/src/main/java/net/hades/fix/message/NewOrderCrossMsg.java", "license": "gpl-3.0", "size": 84522 }
[ "net.hades.fix.message.anno.FIXVersion", "net.hades.fix.message.anno.TagNumRef", "net.hades.fix.message.type.TagNum" ]
import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.TagNum;
import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*;
[ "net.hades.fix" ]
net.hades.fix;
2,468,193
public void testGetInstanceStringString01() throws NoSuchAlgorithmException, IllegalArgumentException, NoSuchProviderException { if (!DEFSupported) { fail(NotSupportMsg); return; } try { KeyAgreement.getInstance(null, defaultProvide...
void function() throws NoSuchAlgorithmException, IllegalArgumentException, NoSuchProviderException { if (!DEFSupported) { fail(NotSupportMsg); return; } try { KeyAgreement.getInstance(null, defaultProviderName); fail(STR); } catch (NullPointerException e) { } catch (NoSuchAlgorithmException e) { } for (int i = 0; i < i...
/** * Test for <code> getInstance(String algorithm, String provider)</code> * method Assertions: throws NullPointerException when algorithm is null * throws NoSuchAlgorithmException when algorithm is not available */
Test for <code> getInstance(String algorithm, String provider)</code> method Assertions: throws NullPointerException when algorithm is null throws NoSuchAlgorithmException when algorithm is not available
testGetInstanceStringString01
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/KeyAgreementTest.java", "license": "gpl-3.0", "size": 20041 }
[ "java.security.NoSuchAlgorithmException", "java.security.NoSuchProviderException", "javax.crypto.KeyAgreement" ]
import java.security.NoSuchAlgorithmException; import java.security.NoSuchProviderException; import javax.crypto.KeyAgreement;
import java.security.*; import javax.crypto.*;
[ "java.security", "javax.crypto" ]
java.security; javax.crypto;
1,086,959
public void addPropertyChangeListener(PropertyChangeListener listener);
void function(PropertyChangeListener listener);
/** * Add a property change listener to this component. * * @param listener The listener to add */
Add a property change listener to this component
addPropertyChangeListener
{ "repo_name": "devjin24/howtomcatworks", "path": "bookrefer/jakarta-tomcat-5.0.18-src/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/DefaultContext.java", "license": "apache-2.0", "size": 17854 }
[ "java.beans.PropertyChangeListener" ]
import java.beans.PropertyChangeListener;
import java.beans.*;
[ "java.beans" ]
java.beans;
1,921,094
ExposurePointFeature createExposurePointFeature( @NonNull CameraProperties cameraProperties, @NonNull SensorOrientationFeature sensorOrientationFeature);
ExposurePointFeature createExposurePointFeature( @NonNull CameraProperties cameraProperties, @NonNull SensorOrientationFeature sensorOrientationFeature);
/** * Creates a new instance of the exposure point feature. * * @param cameraProperties instance of the CameraProperties class containing information about the * cameras features. * @param sensorOrientationFeature instance of the SensorOrientationFeature class containing * information about th...
Creates a new instance of the exposure point feature
createExposurePointFeature
{ "repo_name": "tvolkert/plugins", "path": "packages/camera/camera/android/src/main/java/io/flutter/plugins/camera/features/CameraFeatureFactory.java", "license": "bsd-3-clause", "size": 6508 }
[ "androidx.annotation.NonNull", "io.flutter.plugins.camera.CameraProperties", "io.flutter.plugins.camera.features.exposurepoint.ExposurePointFeature", "io.flutter.plugins.camera.features.sensororientation.SensorOrientationFeature" ]
import androidx.annotation.NonNull; import io.flutter.plugins.camera.CameraProperties; import io.flutter.plugins.camera.features.exposurepoint.ExposurePointFeature; import io.flutter.plugins.camera.features.sensororientation.SensorOrientationFeature;
import androidx.annotation.*; import io.flutter.plugins.camera.*; import io.flutter.plugins.camera.features.exposurepoint.*; import io.flutter.plugins.camera.features.sensororientation.*;
[ "androidx.annotation", "io.flutter.plugins" ]
androidx.annotation; io.flutter.plugins;
1,826,486
public static Object findPropertyAndRemove( String uuid, String propertyName, Multimap<String, PersistedSPOProperty> persistedProperties) { for (PersistedSPOProperty property : persistedProperties.get(uuid)) { if (property.getPropertyName().equals(propertyName)) { Object newValue = property.getNe...
static Object function( String uuid, String propertyName, Multimap<String, PersistedSPOProperty> persistedProperties) { for (PersistedSPOProperty property : persistedProperties.get(uuid)) { if (property.getPropertyName().equals(propertyName)) { Object newValue = property.getNewValue(); persistedProperties.remove(uuid, ...
/** * Finds and removes a property from a {@link Multimap} of persisted * properties of a given {@link SPObject}. * * @param uuid * The UUID of the {@link SPObject} to find and remove the * property from. * @param propertyName * The JavaBean property name. * @param pe...
Finds and removes a property from a <code>Multimap</code> of persisted properties of a given <code>SPObject</code>
findPropertyAndRemove
{ "repo_name": "SQLPower/sqlpower-library", "path": "src/main/java/ca/sqlpower/dao/helper/AbstractSPPersisterHelper.java", "license": "gpl-3.0", "size": 4812 }
[ "ca.sqlpower.dao.PersistedSPOProperty", "com.google.common.collect.Multimap" ]
import ca.sqlpower.dao.PersistedSPOProperty; import com.google.common.collect.Multimap;
import ca.sqlpower.dao.*; import com.google.common.collect.*;
[ "ca.sqlpower.dao", "com.google.common" ]
ca.sqlpower.dao; com.google.common;
1,149,560
public void setFont(String family, Set<FontStyle> style, float size) throws IOException { if (family == null) { family = this.fontFamily; } else { family = family.toLowerCase(); } if ("arial".equals(family)) { family = "helvetica"; } else if ("symbol".equals(family) || "zapfdingbats".equals...
void function(String family, Set<FontStyle> style, float size) throws IOException { if (family == null) { family = this.fontFamily; } else { family = family.toLowerCase(); } if ("arial".equals(family)) { family = STR; } else if (STR.equals(family) STR.equals(family)) { style = null; } if ((style != null) && style.conta...
/** * Select a font; size given in points. * * @param family * the font family * @param style * the font style * @param size * the font size in points * @throws IOException * if the font family is invalid. */
Select a font; size given in points
setFont
{ "repo_name": "nkiraly/Java-FPDF", "path": "src/main/java/com/koadweb/javafpdf/FPDF.java", "license": "bsd-2-clause", "size": 84979 }
[ "java.io.IOException", "java.util.Locale", "java.util.Set" ]
import java.io.IOException; import java.util.Locale; import java.util.Set;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,548,973
BigInteger getBigInt(BigInteger defaultValue); /** * Returns the value as {@code double}. * * @return the value as {@code double}
BigInteger getBigInt(BigInteger defaultValue); /** * Returns the value as {@code double}. * * @return the value as {@code double}
/** * Returns the value as {@code BigInteger}. * * @param defaultValue the default value to return if the value is not a {@code BigInteger} and can't be converted to it * @return the value as {@code BigInteger} or {@code defaultValue} if the value is not a {@code BigInteger} and can't...
Returns the value as BigInteger
getBigInt
{ "repo_name": "craftfire/CraftCommons", "path": "src/main/java/com/craftfire/commons/util/ValueHolder.java", "license": "lgpl-3.0", "size": 7385 }
[ "java.math.BigInteger" ]
import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
1,618,325
control = createControl(); addTearDown(() -> control.verify()); }
control = createControl(); addTearDown(() -> control.verify()); }
/** * Creates an EasyMock {@link #control} for tests to use that will be automatically * {@link IMocksControl#verify() verified} on tear down. */
Creates an EasyMock <code>#control</code> for tests to use that will be automatically <code>IMocksControl#verify() verified</code> on tear down
setupEasyMock
{ "repo_name": "protochron/aurora", "path": "commons/src/main/java/org/apache/aurora/common/testing/easymock/EasyMockTest.java", "license": "apache-2.0", "size": 3928 }
[ "org.easymock.EasyMock" ]
import org.easymock.EasyMock;
import org.easymock.*;
[ "org.easymock" ]
org.easymock;
693,075
public TriggerListener getTriggerListener(String name) { return sched.getTriggerListener(name); }
TriggerListener function(String name) { return sched.getTriggerListener(name); }
/** * <p> * Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>. * </p> */
Calls the equivalent method on the 'proxied' <code>QuartzScheduler</code>.
getTriggerListener
{ "repo_name": "feigeai/opensymphony-quartz-backup", "path": "trunk/src/java/org/quartz/impl/StdScheduler.java", "license": "apache-2.0", "size": 24746 }
[ "org.quartz.TriggerListener" ]
import org.quartz.TriggerListener;
import org.quartz.*;
[ "org.quartz" ]
org.quartz;
2,465,557
public static String readFile(String file) { try (InputStream in = getResourceAsStream(file)) { return IOUtils.toString(in); } catch (IOException e) { fail("Could not read file: " + file, e); } return null; }
static String function(String file) { try (InputStream in = getResourceAsStream(file)) { return IOUtils.toString(in); } catch (IOException e) { fail(STR + file, e); } return null; }
/** * Read a file on the classpath that is relative to the current class into a string. * * @param file * path to the file. * @return Contents of the file as a string. */
Read a file on the classpath that is relative to the current class into a string
readFile
{ "repo_name": "SirmaITT/conservation-space-1.7.0", "path": "docker/sirma-platform/platform/seip-parent/platform/test-module/src/test/java/com/sirma/itt/seip/testutil/io/FileTestUtils.java", "license": "lgpl-3.0", "size": 4199 }
[ "java.io.IOException", "java.io.InputStream", "org.apache.commons.io.IOUtils", "org.testng.Assert" ]
import java.io.IOException; import java.io.InputStream; import org.apache.commons.io.IOUtils; import org.testng.Assert;
import java.io.*; import org.apache.commons.io.*; import org.testng.*;
[ "java.io", "org.apache.commons", "org.testng" ]
java.io; org.apache.commons; org.testng;
1,686,851
public static Route createFromLocation(Location<?> location, ZonedDateTime time) { return new Route().setFrom(location).setTo(location).setDistanceMeters(0).setDurationSeconds(0) .setStartTime(time).setEndTime(time); }
static Route function(Location<?> location, ZonedDateTime time) { return new Route().setFrom(location).setTo(location).setDistanceMeters(0).setDurationSeconds(0) .setStartTime(time).setEndTime(time); }
/** * Create a route only consisting of a single location, i.e. start and end * point of the route are the same */
Create a route only consisting of a single location, i.e. start and end point of the route are the same
createFromLocation
{ "repo_name": "dts-ait/sproute-json-route-format", "path": "src/main/java/at/ac/ait/ariadne/routeformat/Route.java", "license": "cc0-1.0", "size": 15187 }
[ "at.ac.ait.ariadne.routeformat.location.Location", "java.time.ZonedDateTime" ]
import at.ac.ait.ariadne.routeformat.location.Location; import java.time.ZonedDateTime;
import at.ac.ait.ariadne.routeformat.location.*; import java.time.*;
[ "at.ac.ait", "java.time" ]
at.ac.ait; java.time;
588,695
MarkerField[] getInitialVisible() { return generatorDescriptor.getInitialVisible(); }
MarkerField[] getInitialVisible() { return generatorDescriptor.getInitialVisible(); }
/** * Get the list of initially visible fields * * @return {@link MarkerField}[] */
Get the list of initially visible fields
getInitialVisible
{ "repo_name": "elucash/eclipse-oxygen", "path": "org.eclipse.ui.ide/src/org/eclipse/ui/internal/views/markers/MarkerContentGenerator.java", "license": "epl-1.0", "size": 32099 }
[ "org.eclipse.ui.views.markers.MarkerField" ]
import org.eclipse.ui.views.markers.MarkerField;
import org.eclipse.ui.views.markers.*;
[ "org.eclipse.ui" ]
org.eclipse.ui;
357,433
public void onNotificationReceived(Intent in_intent) { LocalNotification receivedNotification = new LocalNotification(in_intent); LocalNotification storedNotification = m_notificationStore.getNotificationWithIntentId(receivedNotification.getIntentId()); if (storedNotification != null) { m_notification...
void function(Intent in_intent) { LocalNotification receivedNotification = new LocalNotification(in_intent); LocalNotification storedNotification = m_notificationStore.getNotificationWithIntentId(receivedNotification.getIntentId()); if (storedNotification != null) { m_notificationStore.remove(storedNotification); Map<S...
/** * Called when a new notification intent is received. This can be called from * the UI thread. * * @author Ian Copland * * @param The received intent. */
Called when a new notification intent is received. This can be called from the UI thread
onNotificationReceived
{ "repo_name": "fjpavm/ChilliSource", "path": "Source/CSBackend/Platform/Android/Main/Java/com/chilliworks/chillisource/core/LocalNotificationNativeInterface.java", "license": "mit", "size": 8987 }
[ "android.content.Intent", "java.util.Map" ]
import android.content.Intent; import java.util.Map;
import android.content.*; import java.util.*;
[ "android.content", "java.util" ]
android.content; java.util;
2,382,696
protected Collection<? extends CRL> getCRLs(String crlf) throws IOException, CRLException, CertificateException { File crlFile = new File(crlf); if( !crlFile.isAbsolute() ) { crlFile = new File( System.getProperty(Constants.CATALINA_BASE_PROP), crlf); ...
Collection<? extends CRL> function(String crlf) throws IOException, CRLException, CertificateException { File crlFile = new File(crlf); if( !crlFile.isAbsolute() ) { crlFile = new File( System.getProperty(Constants.CATALINA_BASE_PROP), crlf); } Collection<? extends CRL> crls = null; InputStream is = null; try { Certifi...
/** * Load the collection of CRLs. * */
Load the collection of CRLs
getCRLs
{ "repo_name": "deathspeeder/class-guard", "path": "apache-tomcat-7.0.53-src/java/org/apache/tomcat/util/net/jsse/JSSESocketFactory.java", "license": "gpl-2.0", "size": 28829 }
[ "java.io.File", "java.io.FileInputStream", "java.io.IOException", "java.io.InputStream", "java.security.cert.CRLException", "java.security.cert.CertificateException", "java.security.cert.CertificateFactory", "java.util.Collection", "org.apache.tomcat.util.net.Constants" ]
import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.security.cert.CRLException; import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; import java.util.Collection; import org.apache.tomcat.util.net.Constants;
import java.io.*; import java.security.cert.*; import java.util.*; import org.apache.tomcat.util.net.*;
[ "java.io", "java.security", "java.util", "org.apache.tomcat" ]
java.io; java.security; java.util; org.apache.tomcat;
1,409,172
public void display(PrintStream out, boolean xml) { if (xml) { displayXml(out); } else { displayAst(out); } } // package-only visible API Grammar.Rule[] rules; // package visible because parser udtAddAstRecord() needs to access them Gramma...
void function(PrintStream out, boolean xml) { if (xml) { displayXml(out); } else { displayAst(out); } } Grammar.Rule[] rules; Grammar.Udt[] udts; Ast(Parser parser, Grammar grammar) { this.parser = parser; stack = new Stack<Record>(); treeDepthStack = new Stack<Record>(); ruleCount = grammar.getRuleCount(); rules = new...
/** * Display the AST in native APG format or XML format. * * @param out PrintStream to display the AST on. * @param xml if <code>true</code>, format is XML, if <code>false</code>, * format is native APG. */
Display the AST in native APG format or XML format
display
{ "repo_name": "ldthomas/apg-java", "path": "src/apg/Ast.java", "license": "gpl-2.0", "size": 22027 }
[ "java.io.PrintStream", "java.util.Stack" ]
import java.io.PrintStream; import java.util.Stack;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,452,823
public void testCheckForGlobalAchievements() throws FileNotFoundException { AchievementHandler achievementHandler = new AchievementHandler(); Player player = GameHelper.createPlayerWithWins(); List<Achievement> achievementList = getAchievementList(); List<Achievement> playerAchievementList = achievementHandl...
void function() throws FileNotFoundException { AchievementHandler achievementHandler = new AchievementHandler(); Player player = GameHelper.createPlayerWithWins(); List<Achievement> achievementList = getAchievementList(); List<Achievement> playerAchievementList = achievementHandler.checkForGlobalAchievements(player, ac...
/** * Tests to see if a Player has any Global achievements. */
Tests to see if a Player has any Global achievements
testCheckForGlobalAchievements
{ "repo_name": "KAllan357/Achievement-System-Challenge", "path": "AchievementChallenge/src/test/java/kda/achievement/logic/tests/AchievementHandlerTest.java", "license": "gpl-3.0", "size": 3606 }
[ "java.io.FileNotFoundException", "java.util.List", "org.junit.Assert" ]
import java.io.FileNotFoundException; import java.util.List; import org.junit.Assert;
import java.io.*; import java.util.*; import org.junit.*;
[ "java.io", "java.util", "org.junit" ]
java.io; java.util; org.junit;
294,921