method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public void setApiName(Olingo2ApiName apiName) { this.apiName = apiName; }
void function(Olingo2ApiName apiName) { this.apiName = apiName; }
/** * What kind of operation to perform */
What kind of operation to perform
setApiName
{ "repo_name": "punkhorn/camel-upstream", "path": "components/camel-olingo2/camel-olingo2-component/src/main/java/org/apache/camel/component/olingo2/Olingo2Configuration.java", "license": "apache-2.0", "size": 8066 }
[ "org.apache.camel.component.olingo2.internal.Olingo2ApiName" ]
import org.apache.camel.component.olingo2.internal.Olingo2ApiName;
import org.apache.camel.component.olingo2.internal.*;
[ "org.apache.camel" ]
org.apache.camel;
2,748,908
static void generateBgpExportPolicy( LeafBgpPeerGroup lpg, long localAs, String vrfName, boolean ipv4, Configuration c) { RoutingPolicy.Builder exportPolicy = RoutingPolicy.builder() .setOwner(c) .setName(generatedBgpPeerExportPolicyName(vrfName, lpg.getName())); if (lpg....
static void generateBgpExportPolicy( LeafBgpPeerGroup lpg, long localAs, String vrfName, boolean ipv4, Configuration c) { RoutingPolicy.Builder exportPolicy = RoutingPolicy.builder() .setOwner(c) .setName(generatedBgpPeerExportPolicyName(vrfName, lpg.getName())); if (lpg.getNextHopSelf() != null && lpg.getNextHopSelf()...
/** * Creates a {@link RoutingPolicy} to be used as the BGP export policy for the given {@link * LeafBgpPeerGroup}. The generated policy is added to the given configuration's routing policies. */
Creates a <code>RoutingPolicy</code> to be used as the BGP export policy for the given <code>LeafBgpPeerGroup</code>. The generated policy is added to the given configuration's routing policies
generateBgpExportPolicy
{ "repo_name": "arifogel/batfish", "path": "projects/batfish/src/main/java/org/batfish/representation/cisco_xr/CiscoXrConversions.java", "license": "apache-2.0", "size": 103466 }
[ "com.google.common.collect.ImmutableList", "java.util.ArrayList", "java.util.Collections", "java.util.List", "java.util.Objects", "org.batfish.datamodel.Configuration", "org.batfish.datamodel.routing_policy.RoutingPolicy", "org.batfish.datamodel.routing_policy.expr.BooleanExpr", "org.batfish.datamod...
import com.google.common.collect.ImmutableList; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Objects; import org.batfish.datamodel.Configuration; import org.batfish.datamodel.routing_policy.RoutingPolicy; import org.batfish.datamodel.routing_policy.expr.BooleanExpr; ...
import com.google.common.collect.*; import java.util.*; import org.batfish.datamodel.*; import org.batfish.datamodel.routing_policy.*; import org.batfish.datamodel.routing_policy.expr.*; import org.batfish.datamodel.routing_policy.statement.*;
[ "com.google.common", "java.util", "org.batfish.datamodel" ]
com.google.common; java.util; org.batfish.datamodel;
2,118,772
@RequestMapping(value = "/{eventId}/content", method = RequestMethod.POST) public ResponseEntity<ContentDto> createContent(@PathVariable Long eventId, @RequestBody ContentDto content) { LOGGER.debug("[{}] Create content for event {} : {}", getUserConnected(), eventId, content); final ContentDto ...
@RequestMapping(value = STR, method = RequestMethod.POST) ResponseEntity<ContentDto> function(@PathVariable Long eventId, @RequestBody ContentDto content) { LOGGER.debug(STR, getUserConnected(), eventId, content); final ContentDto contentCreated = eventService.createContent(content, eventId, getUserConnectedId()); retu...
/** * Create content. */
Create content
createContent
{ "repo_name": "aguillem/festival-manager", "path": "festival-manager-core/src/main/java/com/aguillem/festival/manager/core/rest/controller/EventController.java", "license": "gpl-3.0", "size": 23803 }
[ "com.aguillem.festival.manager.core.dto.ContentDto", "org.springframework.http.ResponseEntity", "org.springframework.web.bind.annotation.PathVariable", "org.springframework.web.bind.annotation.RequestBody", "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.bind.annotation....
import com.aguillem.festival.manager.core.dto.ContentDto; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web...
import com.aguillem.festival.manager.core.dto.*; import org.springframework.http.*; import org.springframework.web.bind.annotation.*;
[ "com.aguillem.festival", "org.springframework.http", "org.springframework.web" ]
com.aguillem.festival; org.springframework.http; org.springframework.web;
2,523,347
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(BuyPremium.class.getName()).log(Level.SEVERE,...
void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { processRequest(request, response); } catch (SQLException ex) { Logger.getLogger(BuyPremium.class.getName()).log(Level.SEVERE, null, ex); } }
/** * Handles the HTTP <code>POST</code> method. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */
Handles the HTTP <code>POST</code> method
doPost
{ "repo_name": "chin8628/Usami", "path": "src/java/controller/BuyPremium.java", "license": "mit", "size": 5067 }
[ "java.io.IOException", "java.sql.SQLException", "java.util.logging.Level", "java.util.logging.Logger", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse" ]
import java.io.IOException; import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import java.io.*; import java.sql.*; import java.util.logging.*; import javax.servlet.*; import javax.servlet.http.*;
[ "java.io", "java.sql", "java.util", "javax.servlet" ]
java.io; java.sql; java.util; javax.servlet;
1,301,580
public void setMinSeparation(@Dimension float minSeparation) { this.minSeparation = minSeparation; separationUnit = UNIT_PX; setSeparationUnit(separationUnit); }
void function(@Dimension float minSeparation) { this.minSeparation = minSeparation; separationUnit = UNIT_PX; setSeparationUnit(separationUnit); }
/** * Sets the minimum separation between two thumbs * * @see #getMinSeparation() * @attr ref com.google.android.material.R.styleable#RangeSlider_minSeparation * @throws IllegalStateException if used in conjunction with {@link #setStepSize(float)}, use * {@link #setMinSeparationValue(float)} inste...
Sets the minimum separation between two thumbs
setMinSeparation
{ "repo_name": "material-components/material-components-android", "path": "lib/java/com/google/android/material/slider/RangeSlider.java", "license": "apache-2.0", "size": 8085 }
[ "androidx.annotation.Dimension" ]
import androidx.annotation.Dimension;
import androidx.annotation.*;
[ "androidx.annotation" ]
androidx.annotation;
680,473
void enterCursor_definition(@NotNull PLSQLParser.Cursor_definitionContext ctx); void exitCursor_definition(@NotNull PLSQLParser.Cursor_definitionContext ctx);
void enterCursor_definition(@NotNull PLSQLParser.Cursor_definitionContext ctx); void exitCursor_definition(@NotNull PLSQLParser.Cursor_definitionContext ctx);
/** * Exit a parse tree produced by {@link PLSQLParser#cursor_definition}. * @param ctx the parse tree */
Exit a parse tree produced by <code>PLSQLParser#cursor_definition</code>
exitCursor_definition
{ "repo_name": "developeron29/PLSQLParser", "path": "PLSQLListener.java", "license": "mit", "size": 45486 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
1,662,952
@Override public boolean equals(Object obj) { // if both references are equal if (obj == this) { // the objects are equal return true; } // other obj must be of this type if (!(obj instanceof ImageKey)) { return false; } // check content ImageKey other = (ImageKey) obj; // start with di...
boolean function(Object obj) { if (obj == this) { return true; } if (!(obj instanceof ImageKey)) { return false; } ImageKey other = (ImageKey) obj; if (!ObjectUtils.equals(this.dim, other.dim)) { return false; } File file1 = this.img.getMetadata().getPath(); File file2 = other.img.getMetadata().getPath(); if (!ObjectUt...
/** * check if this this and another key is equal. * * @see java.lang.Object#equals(java.lang.Object) */
check if this this and another key is equal
equals
{ "repo_name": "HerbertJordan/JimCat", "path": "src/org/jimcat/services/imagemanager/ImageKey.java", "license": "gpl-2.0", "size": 3154 }
[ "java.io.File", "org.apache.commons.lang.ObjectUtils" ]
import java.io.File; import org.apache.commons.lang.ObjectUtils;
import java.io.*; import org.apache.commons.lang.*;
[ "java.io", "org.apache.commons" ]
java.io; org.apache.commons;
966,961
public JSError makeError(Node n, CheckLevel level, DiagnosticType type, String... arguments) { return JSError.make(n, level, type, arguments); }
JSError function(Node n, CheckLevel level, DiagnosticType type, String... arguments) { return JSError.make(n, level, type, arguments); }
/** * Creates a JSError during NodeTraversal. * * @param n Determines the line and char position within the source file name * @param type The DiagnosticType * @param arguments Arguments to be incorporated into the message */
Creates a JSError during NodeTraversal
makeError
{ "repo_name": "dushmis/closure-compiler", "path": "src/com/google/javascript/jscomp/NodeTraversal.java", "license": "apache-2.0", "size": 23847 }
[ "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
1,437,732
public Document getDc() { return dc; }
Document function() { return dc; }
/** * Returns DC for this page * @return parsed DC metadata */
Returns DC for this page
getDc
{ "repo_name": "ceskaexpedice/kramerius", "path": "shared/common/src/main/java/cz/incad/kramerius/document/model/AbstractPage.java", "license": "gpl-3.0", "size": 2261 }
[ "org.w3c.dom.Document" ]
import org.w3c.dom.Document;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
147,324
@Override public void draw(Canvas canvas) { Barcode barcode = mBarcode; if (barcode == null) { return; } // Draws the bounding box around the barcode. RectF rect = new RectF(barcode.getBoundingBox()); rect.left = translateX(rect.left); rect.to...
void function(Canvas canvas) { Barcode barcode = mBarcode; if (barcode == null) { return; } RectF rect = new RectF(barcode.getBoundingBox()); rect.left = translateX(rect.left); rect.top = translateY(rect.top); rect.right = translateX(rect.right); rect.bottom = translateY(rect.bottom); canvas.drawRect(rect, mRectPaint);...
/** * Draws the barcode annotations for position, size, and raw value on the supplied canvas. */
Draws the barcode annotations for position, size, and raw value on the supplied canvas
draw
{ "repo_name": "joaobiriba/android-vision", "path": "visionSamples/multi-tracker/app/src/main/java/com/google/android/gms/samples/vision/face/multitracker/BarcodeTrackerFactory.java", "license": "apache-2.0", "size": 3708 }
[ "android.graphics.Canvas", "android.graphics.RectF", "com.google.android.gms.vision.barcode.Barcode" ]
import android.graphics.Canvas; import android.graphics.RectF; import com.google.android.gms.vision.barcode.Barcode;
import android.graphics.*; import com.google.android.gms.vision.barcode.*;
[ "android.graphics", "com.google.android" ]
android.graphics; com.google.android;
1,152,593
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { if(getPresenter() != null && isFilterable && GraphUtil.INSTANCE.isKeyFilter(key)) { showLoading(); if(mAdapter != null) mAdapter.clearDataSet(); onRefres...
void function(SharedPreferences sharedPreferences, String key) { if(getPresenter() != null && isFilterable && GraphUtil.INSTANCE.isKeyFilter(key)) { showLoading(); if(mAdapter != null) mAdapter.clearDataSet(); onRefresh(); } }
/** * Called when a shared preference is changed, added, or removed. This * may be called even if a preference is set to its existing value. * <p> * <p>This callback will be run on your main_menu thread. * * @param sharedPreferences The {@link SharedPreferences} that received * ...
Called when a shared preference is changed, added, or removed. This may be called even if a preference is set to its existing value. This callback will be run on your main_menu thread
onSharedPreferenceChanged
{ "repo_name": "wax911/AniTrendApp", "path": "app/src/main/java/com/mxt/anitrend/base/custom/fragment/FragmentBaseList.java", "license": "lgpl-3.0", "size": 14481 }
[ "android.content.SharedPreferences", "com.mxt.anitrend.util.graphql.GraphUtil" ]
import android.content.SharedPreferences; import com.mxt.anitrend.util.graphql.GraphUtil;
import android.content.*; import com.mxt.anitrend.util.graphql.*;
[ "android.content", "com.mxt.anitrend" ]
android.content; com.mxt.anitrend;
1,853,515
//------------------------------------------------------------------------- public CurrencyAmount presentValue( ResolvedSwaption swaption, RatesProvider ratesProvider, SwaptionVolatilities swaptionVolatilities) { validate(swaption, ratesProvider, swaptionVolatilities); double expiry = sw...
CurrencyAmount function( ResolvedSwaption swaption, RatesProvider ratesProvider, SwaptionVolatilities swaptionVolatilities) { validate(swaption, ratesProvider, swaptionVolatilities); double expiry = swaptionVolatilities.relativeTime(swaption.getExpiry()); ResolvedSwap underlying = swaption.getUnderlying(); ResolvedSwap...
/** * Calculates the present value of the swaption. * <p> * The result is expressed using the currency of the swaption. * * @param swaption the swaption * @param ratesProvider the rates provider * @param swaptionVolatilities the volatilities * @return the present value */
Calculates the present value of the swaption. The result is expressed using the currency of the swaption
presentValue
{ "repo_name": "OpenGamma/Strata", "path": "modules/pricer/src/main/java/com/opengamma/strata/pricer/swaption/VolatilitySwaptionPhysicalProductPricer.java", "license": "apache-2.0", "size": 18550 }
[ "com.opengamma.strata.basics.currency.CurrencyAmount", "com.opengamma.strata.pricer.rate.RatesProvider", "com.opengamma.strata.product.common.PutCall", "com.opengamma.strata.product.swap.ResolvedSwap", "com.opengamma.strata.product.swap.ResolvedSwapLeg", "com.opengamma.strata.product.swaption.ResolvedSwap...
import com.opengamma.strata.basics.currency.CurrencyAmount; import com.opengamma.strata.pricer.rate.RatesProvider; import com.opengamma.strata.product.common.PutCall; import com.opengamma.strata.product.swap.ResolvedSwap; import com.opengamma.strata.product.swap.ResolvedSwapLeg; import com.opengamma.strata.product.swap...
import com.opengamma.strata.basics.currency.*; import com.opengamma.strata.pricer.rate.*; import com.opengamma.strata.product.common.*; import com.opengamma.strata.product.swap.*; import com.opengamma.strata.product.swaption.*;
[ "com.opengamma.strata" ]
com.opengamma.strata;
90,401
public Set<byte[]> familySet() { return this.familyMap.keySet(); }
Set<byte[]> function() { return this.familyMap.keySet(); }
/** * Method for retrieving the keys in the familyMap * @return keys in the current familyMap */
Method for retrieving the keys in the familyMap
familySet
{ "repo_name": "vincentpoon/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/Get.java", "license": "apache-2.0", "size": 17271 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,596,168
public static List<RefXidRecord> normalize_refs( Element element ) { List<RefXidRecord> table = build_normalization_table(element); normalize_refs(table); return table; } // normalize_ref()
static List<RefXidRecord> function( Element element ) { List<RefXidRecord> table = build_normalization_table(element); normalize_refs(table); return table; }
/** * Rips off the inclusion-by-xid expansion and identification information * @return de/normalization table */
Rips off the inclusion-by-xid expansion and identification information
normalize_refs
{ "repo_name": "jani-hautamaki/xml-snippets", "path": "src/xmlsnippets/core/Normalization.java", "license": "gpl-3.0", "size": 12057 }
[ "java.util.List", "org.jdom.Element" ]
import java.util.List; import org.jdom.Element;
import java.util.*; import org.jdom.*;
[ "java.util", "org.jdom" ]
java.util; org.jdom;
352,085
@Metadata(description = "Allows to configure a custom value of the request buffer size on the Jetty connectors.") public void setRequestBufferSize(Integer requestBufferSize) { this.requestBufferSize = requestBufferSize; }
@Metadata(description = STR) void function(Integer requestBufferSize) { this.requestBufferSize = requestBufferSize; }
/** * Allows to configure a custom value of the request buffer size on the Jetty connectors. */
Allows to configure a custom value of the request buffer size on the Jetty connectors
setRequestBufferSize
{ "repo_name": "yuruki/camel", "path": "components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java", "license": "apache-2.0", "size": 63394 }
[ "org.apache.camel.spi.Metadata" ]
import org.apache.camel.spi.Metadata;
import org.apache.camel.spi.*;
[ "org.apache.camel" ]
org.apache.camel;
2,858,046
@Override public Adapter createLine_spacingAdapter() { if (line_spacingItemProvider == null) { line_spacingItemProvider = new Line_spacingItemProvider(this); } return line_spacingItemProvider; } protected Overhead_lineItemProvider overhead_lineItemProvider;
Adapter function() { if (line_spacingItemProvider == null) { line_spacingItemProvider = new Line_spacingItemProvider(this); } return line_spacingItemProvider; } protected Overhead_lineItemProvider overhead_lineItemProvider;
/** * This creates an adapter for a {@link visGrid.Line_spacing}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This creates an adapter for a <code>visGrid.Line_spacing</code>.
createLine_spacingAdapter
{ "repo_name": "mikesligo/visGrid", "path": "ie.tcd.gmf.visGrid.edit/src/visGrid/provider/VisGridItemProviderAdapterFactory.java", "license": "gpl-3.0", "size": 57143 }
[ "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;
241,046
private static boolean codecNeedsSosFlushWorkaround(String name) { return Util.SDK_INT == 29 && "c2.android.aac.decoder".equals(name); } /** * Returns whether the decoder is known to handle the propagation of the {@link * MediaCodec#BUFFER_FLAG_END_OF_STREAM} flag incorrectly on the host device. * ...
static boolean function(String name) { return Util.SDK_INT == 29 && STR.equals(name); } /** * Returns whether the decoder is known to handle the propagation of the { * MediaCodec#BUFFER_FLAG_END_OF_STREAM} flag incorrectly on the host device. * * <p>If true is returned, the renderer will work around the issue by approx...
/** * Returns whether the decoder is known to behave incorrectly if flushed prior to having output a * {@link MediaFormat}. * * <p>If true is returned, the renderer will work around the issue by instantiating a new decoder * when this case occurs. * * <p>See [Internal: b/141097367]. * * @para...
Returns whether the decoder is known to behave incorrectly if flushed prior to having output a <code>MediaFormat</code>. If true is returned, the renderer will work around the issue by instantiating a new decoder when this case occurs. See [Internal: b/141097367]
codecNeedsSosFlushWorkaround
{ "repo_name": "amzn/exoplayer-amazon-port", "path": "library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java", "license": "apache-2.0", "size": 99597 }
[ "android.media.MediaCodec", "com.google.android.exoplayer2.util.Util" ]
import android.media.MediaCodec; import com.google.android.exoplayer2.util.Util;
import android.media.*; import com.google.android.exoplayer2.util.*;
[ "android.media", "com.google.android" ]
android.media; com.google.android;
1,390,871
public void Move_Function_017(Pokemon d, Pokemon a, int damage){ d.setHp(d.getHp()-damage); d.setBurn(1); d.setFreeze((r.nextInt(5)+1)); d.setParalyze((r.nextInt(5)+1)); }
void function(Pokemon d, Pokemon a, int damage){ d.setHp(d.getHp()-damage); d.setBurn(1); d.setFreeze((r.nextInt(5)+1)); d.setParalyze((r.nextInt(5)+1)); }
/** * Function code: 017. * Burns, freezes or paralyzes the target. * */
Function code: 017. Burns, freezes or paralyzes the target
Move_Function_017
{ "repo_name": "Adiss/ProgTechPokemon", "path": "src/main/java/hu/experiment_team/Move_Functions.java", "license": "apache-2.0", "size": 12961 }
[ "hu.experiment_team.models.Pokemon" ]
import hu.experiment_team.models.Pokemon;
import hu.experiment_team.models.*;
[ "hu.experiment_team.models" ]
hu.experiment_team.models;
1,406,799
@Test public void rendersValidPages() throws Exception { final String[] pages = { "/robots.txt", "/xsl/layout.xsl", "/xsl/home.xsl", "/css/style.css", }; final Request request = new JdkRequest(TkHomeITCase.HOME); for (final String p...
void function() throws Exception { final String[] pages = { STR, STR, STR, STR, }; final Request request = new JdkRequest(TkHomeITCase.HOME); for (final String page : pages) { request.uri().path(page).back() .method(Request.GET) .fetch() .as(RestResponse.class) .assertStatus(HttpURLConnection.HTTP_OK); } }
/** * IndexRs can render valid pages. * @throws Exception If some problem inside */
IndexRs can render valid pages
rendersValidPages
{ "repo_name": "joansmith/rultor", "path": "src/test/java/com/rultor/web/TkHomeITCase.java", "license": "bsd-3-clause", "size": 4363 }
[ "com.jcabi.http.Request", "com.jcabi.http.request.JdkRequest", "com.jcabi.http.response.RestResponse", "java.net.HttpURLConnection" ]
import com.jcabi.http.Request; import com.jcabi.http.request.JdkRequest; import com.jcabi.http.response.RestResponse; import java.net.HttpURLConnection;
import com.jcabi.http.*; import com.jcabi.http.request.*; import com.jcabi.http.response.*; import java.net.*;
[ "com.jcabi.http", "java.net" ]
com.jcabi.http; java.net;
793,135
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PolicyDefinitionInner> getBuiltInAsync(String policyDefinitionName);
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PolicyDefinitionInner> getBuiltInAsync(String policyDefinitionName);
/** * Gets the built in policy definition. * * @param policyDefinitionName The name of the built in policy definition to get. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is r...
Gets the built in policy definition
getBuiltInAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluent/PolicyDefinitionsClient.java", "license": "mit", "size": 26040 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.resources.fluent.models.PolicyDefinitionInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.resources.fluent.models.PolicyDefinitionInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.resources.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,510,730
public String getMessage(String code, Locale locale) throws NoSuchMessageException { return this.messageSource.getMessage(code, null, locale); }
String function(String code, Locale locale) throws NoSuchMessageException { return this.messageSource.getMessage(code, null, locale); }
/** * Retrieve the message for the given code and the given Locale. * @param code the code of the message * @param locale the Locale in which to do lookup * @return the message * @throws org.springframework.context.NoSuchMessageException if not found */
Retrieve the message for the given code and the given Locale
getMessage
{ "repo_name": "spring-projects/spring-framework", "path": "spring-context/src/main/java/org/springframework/context/support/MessageSourceAccessor.java", "license": "apache-2.0", "size": 7364 }
[ "java.util.Locale", "org.springframework.context.NoSuchMessageException" ]
import java.util.Locale; import org.springframework.context.NoSuchMessageException;
import java.util.*; import org.springframework.context.*;
[ "java.util", "org.springframework.context" ]
java.util; org.springframework.context;
253,391
@Override public void onSaveInstanceState(final Bundle outState) { super.onSaveInstanceState(outState); outState.putByteArray(CALC_STATE, SerializationUtils.serialize(getCurrentState())); }
void function(final Bundle outState) { super.onSaveInstanceState(outState); outState.putByteArray(CALC_STATE, SerializationUtils.serialize(getCurrentState())); }
/** * Save the current state of the calculator such that it can be restored after screen rotation (or similar) */
Save the current state of the calculator such that it can be restored after screen rotation (or similar)
onSaveInstanceState
{ "repo_name": "pstorch/cgeo", "path": "main/src/cgeo/geocaching/ui/dialog/CoordinatesCalculateDialog.java", "license": "apache-2.0", "size": 52806 }
[ "android.os.Bundle", "org.apache.commons.lang3.SerializationUtils" ]
import android.os.Bundle; import org.apache.commons.lang3.SerializationUtils;
import android.os.*; import org.apache.commons.lang3.*;
[ "android.os", "org.apache.commons" ]
android.os; org.apache.commons;
124,269
boolean setAttributeWithoutCheck(PerunSession sess, Facility facility, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException;
boolean setAttributeWithoutCheck(PerunSession sess, Facility facility, Attribute attribute) throws WrongAttributeAssignmentException, WrongAttributeValueException;
/** * Just store the particular attribute associated with the facility, doesn't preform any value check. Core attributes can't be set this way. * * @param sess perun session * @param facility facility to set on * @param attribute attribute to set * * @throws InternalErrorException if an exception raise in...
Just store the particular attribute associated with the facility, doesn't preform any value check. Core attributes can't be set this way
setAttributeWithoutCheck
{ "repo_name": "zlamalp/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/bl/AttributesManagerBl.java", "license": "bsd-2-clause", "size": 244560 }
[ "cz.metacentrum.perun.core.api.Attribute", "cz.metacentrum.perun.core.api.Facility", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.exceptions.WrongAttributeAssignmentException", "cz.metacentrum.perun.core.api.exceptions.WrongAttributeValueException" ]
import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.Facility; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.exceptions.WrongAttributeAssignmentException; import cz.metacentrum.perun.core.api.exceptions.WrongAttributeValueException;
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*;
[ "cz.metacentrum.perun" ]
cz.metacentrum.perun;
1,813,940
interface WithStorageLimitExceededBehavior { WithCreate withStorageLimitExceededBehavior(StorageLimitExceededBehavior storageLimitExceededBehavior); } interface WithCreate extends Creatable<EnvironmentResource>, Resource.DefinitionWithTags<WithCreate>, Definiti...
interface WithStorageLimitExceededBehavior { WithCreate withStorageLimitExceededBehavior(StorageLimitExceededBehavior storageLimitExceededBehavior); } interface WithCreate extends Creatable<EnvironmentResource>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithPartitionKeyProperties, DefinitionStages.WithS...
/** * Specifies storageLimitExceededBehavior. * @param storageLimitExceededBehavior The behavior the Time Series Insights service should take when the environment's capacity has been exceeded. If "PauseIngress" is specified, new events will not be read from the event source. If "PurgeOldData" ...
Specifies storageLimitExceededBehavior
withStorageLimitExceededBehavior
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/timeseriesinsights/mgmt-v2017_11_15/src/main/java/com/microsoft/azure/management/timeseriesinsights/v2017_11_15/EnvironmentResource.java", "license": "mit", "size": 8772 }
[ "com.microsoft.azure.arm.model.Appliable", "com.microsoft.azure.arm.model.Creatable", "com.microsoft.azure.arm.resources.models.Resource" ]
import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; import com.microsoft.azure.arm.resources.models.Resource;
import com.microsoft.azure.arm.model.*; import com.microsoft.azure.arm.resources.models.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
1,743,645
private boolean bootstrap(final Collection<Token> tokens) { isBootstrapMode = true; SystemKeyspace.updateTokens(tokens); // DON'T use setToken, that makes us part of the ring locally which is incorrect until we are done bootstrapping if (!replacing) { // if not an exi...
boolean function(final Collection<Token> tokens) { isBootstrapMode = true; SystemKeyspace.updateTokens(tokens); if (!replacing) { List<Pair<ApplicationState, VersionedValue>> states = new ArrayList<>(); states.add(Pair.create(ApplicationState.TOKENS, valueFactory.tokens(tokens))); states.add(Pair.create(ApplicationStat...
/** * Bootstrap node by fetching data from other nodes. * If node is bootstrapping as a new node, then this also announces bootstrapping to the cluster. * * This blocks until streaming is done. * * @param tokens bootstrapping tokens * @return true if bootstrap succeeds. */
Bootstrap node by fetching data from other nodes. If node is bootstrapping as a new node, then this also announces bootstrapping to the cluster. This blocks until streaming is done
bootstrap
{ "repo_name": "tjake/cassandra", "path": "src/java/org/apache/cassandra/service/StorageService.java", "license": "apache-2.0", "size": 199183 }
[ "com.google.common.util.concurrent.Uninterruptibles", "java.util.ArrayList", "java.util.Collection", "java.util.List", "java.util.concurrent.TimeUnit", "org.apache.cassandra.config.DatabaseDescriptor", "org.apache.cassandra.db.SystemKeyspace", "org.apache.cassandra.dht.Token", "org.apache.cassandra....
import com.google.common.util.concurrent.Uninterruptibles; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.concurrent.TimeUnit; import org.apache.cassandra.config.DatabaseDescriptor; import org.apache.cassandra.db.SystemKeyspace; import org.apache.cassandra.dht.Token; im...
import com.google.common.util.concurrent.*; import java.util.*; import java.util.concurrent.*; import org.apache.cassandra.config.*; import org.apache.cassandra.db.*; import org.apache.cassandra.dht.*; import org.apache.cassandra.gms.*; import org.apache.cassandra.utils.*;
[ "com.google.common", "java.util", "org.apache.cassandra" ]
com.google.common; java.util; org.apache.cassandra;
736,328
void registerAsUnsafeAccessed(Field field); /** * Registers a callback that is invoked once {@link Feature#duringAnalysis during analysis}
void registerAsUnsafeAccessed(Field field); /** * Registers a callback that is invoked once {@link Feature#duringAnalysis during analysis}
/** * Registers the provided field as written or read by {@link sun.misc.Unsafe}, i.e., the * static analysis merges together all values of unsafe accessed fields of a specific type. * <p> * This implies that the field is also marked as {@link #registerAsAccessed accessed}. ...
Registers the provided field as written or read by <code>sun.misc.Unsafe</code>, i.e., the static analysis merges together all values of unsafe accessed fields of a specific type. This implies that the field is also marked as <code>#registerAsAccessed accessed</code>
registerAsUnsafeAccessed
{ "repo_name": "smarr/Truffle", "path": "sdk/src/org.graalvm.nativeimage/src/org/graalvm/nativeimage/hosted/Feature.java", "license": "gpl-2.0", "size": 21168 }
[ "java.lang.reflect.Field" ]
import java.lang.reflect.Field;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,994,490
public void showElementsInDiagram( Set<?> nodesToShow ) { for (Object elem : nodesToShow) { if ( elem instanceof MClass ) { showClass( (MClass) elem ); } else if ( elem instanceof EnumType ) { showEnum( (EnumType) elem ); } } }
void function( Set<?> nodesToShow ) { for (Object elem : nodesToShow) { if ( elem instanceof MClass ) { showClass( (MClass) elem ); } else if ( elem instanceof EnumType ) { showEnum( (EnumType) elem ); } } }
/** * Hides the given elements in this diagram. * @param nodesToHide A set of {@link MClassifier} ({@link MClass} or {@link EnumType}) to hide */
Hides the given elements in this diagram
showElementsInDiagram
{ "repo_name": "classicwuhao/maxuse", "path": "src/gui/org/tzi/use/gui/views/diagrams/classdiagram/ClassDiagram.java", "license": "gpl-2.0", "size": 57937 }
[ "java.util.Set", "org.tzi.use.uml.mm.MClass", "org.tzi.use.uml.ocl.type.EnumType" ]
import java.util.Set; import org.tzi.use.uml.mm.MClass; import org.tzi.use.uml.ocl.type.EnumType;
import java.util.*; import org.tzi.use.uml.mm.*; import org.tzi.use.uml.ocl.type.*;
[ "java.util", "org.tzi.use" ]
java.util; org.tzi.use;
2,385,674
@Path("testLDAPConnection") @POST @NoCache @Consumes(MediaType.APPLICATION_JSON) public Response testLDAPConnection(TestLdapConnectionRepresentation config) { boolean result = LDAPServerCapabilitiesManager.testLDAP(config, session, realm); return result ? Response.noContent().build()...
@Path(STR) @Consumes(MediaType.APPLICATION_JSON) Response function(TestLdapConnectionRepresentation config) { boolean result = LDAPServerCapabilitiesManager.testLDAP(config, session, realm); return result ? Response.noContent().build() : ErrorResponse.error(STR, Response.Status.BAD_REQUEST); }
/** * Test LDAP connection * @return */
Test LDAP connection
testLDAPConnection
{ "repo_name": "keycloak/keycloak", "path": "services/src/main/java/org/keycloak/services/resources/admin/RealmAdminResource.java", "license": "apache-2.0", "size": 45553 }
[ "javax.ws.rs.Consumes", "javax.ws.rs.Path", "javax.ws.rs.core.MediaType", "javax.ws.rs.core.Response", "org.keycloak.representations.idm.TestLdapConnectionRepresentation", "org.keycloak.services.ErrorResponse", "org.keycloak.services.managers.LDAPServerCapabilitiesManager" ]
import javax.ws.rs.Consumes; import javax.ws.rs.Path; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import org.keycloak.representations.idm.TestLdapConnectionRepresentation; import org.keycloak.services.ErrorResponse; import org.keycloak.services.managers.LDAPServerCapabilitiesManager;
import javax.ws.rs.*; import javax.ws.rs.core.*; import org.keycloak.representations.idm.*; import org.keycloak.services.*; import org.keycloak.services.managers.*;
[ "javax.ws", "org.keycloak.representations", "org.keycloak.services" ]
javax.ws; org.keycloak.representations; org.keycloak.services;
2,235,127
String clazzName = LoginModuleConfigurationUtils.OS_PRINCIPAL_CLASS_NAME; @SuppressWarnings("unchecked") Class<? extends Principal> clazz = (Class<? extends Principal>) ClassLoader .getSystemClassLoader().loadClass(clazzName); Subject subject = new Subject(); // login, add OS user into subject,...
String clazzName = LoginModuleConfigurationUtils.OS_PRINCIPAL_CLASS_NAME; @SuppressWarnings(STR) Class<? extends Principal> clazz = (Class<? extends Principal>) ClassLoader .getSystemClassLoader().loadClass(clazzName); Subject subject = new Subject(); LoginContext loginContext = new LoginContext(STR, subject, null, new...
/** * This test verifies whether the simple login works in JAAS framework. * Simple mode login get the OS user and convert to Alluxio user. */
This test verifies whether the simple login works in JAAS framework. Simple mode login get the OS user and convert to Alluxio user
simpleLogin
{ "repo_name": "bf8086/alluxio", "path": "core/common/src/test/java/alluxio/security/login/LoginModuleTest.java", "license": "apache-2.0", "size": 3748 }
[ "java.security.Principal", "javax.security.auth.Subject", "javax.security.auth.login.LoginContext", "org.junit.Assert" ]
import java.security.Principal; import javax.security.auth.Subject; import javax.security.auth.login.LoginContext; import org.junit.Assert;
import java.security.*; import javax.security.auth.*; import javax.security.auth.login.*; import org.junit.*;
[ "java.security", "javax.security", "org.junit" ]
java.security; javax.security; org.junit;
634,602
public void testPostNewDeploymentZipFile() throws Exception { try { // Upload a valid BPMN-file using multipart-data HttpPost httpPost = new HttpPost(SERVER_URL_PREFIX + AppRestUrls.createRelativeResourceUrl(AppRestUrls.URL_DEPLOYMENT_COLLECTION)); httpPost.setEntity(Http...
void function() throws Exception { try { HttpPost httpPost = new HttpPost(SERVER_URL_PREFIX + AppRestUrls.createRelativeResourceUrl(AppRestUrls.URL_DEPLOYMENT_COLLECTION)); httpPost.setEntity(HttpMultipartHelper.getMultiPartEntity(STR, STR, ReflectUtil.getResourceAsStream(STR), null)); CloseableHttpResponse response = ...
/** * Test deploying singe zip file. POST app-repository/deployments */
Test deploying singe zip file. POST app-repository/deployments
testPostNewDeploymentZipFile
{ "repo_name": "yvoswillens/flowable-engine", "path": "modules/flowable-app-engine-rest/src/test/java/org/flowable/app/rest/service/api/repository/DeploymentResourceTest.java", "license": "apache-2.0", "size": 10950 }
[ "com.fasterxml.jackson.databind.JsonNode", "java.util.List", "org.apache.http.HttpStatus", "org.apache.http.client.methods.CloseableHttpResponse", "org.apache.http.client.methods.HttpPost", "org.flowable.app.api.repository.AppDeployment", "org.flowable.app.rest.AppRestUrls", "org.flowable.app.rest.ser...
import com.fasterxml.jackson.databind.JsonNode; import java.util.List; import org.apache.http.HttpStatus; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpPost; import org.flowable.app.api.repository.AppDeployment; import org.flowable.app.rest.AppRestUrls; import or...
import com.fasterxml.jackson.databind.*; import java.util.*; import org.apache.http.*; import org.apache.http.client.methods.*; import org.flowable.app.api.repository.*; import org.flowable.app.rest.*; import org.flowable.app.rest.service.*; import org.flowable.common.engine.impl.util.*;
[ "com.fasterxml.jackson", "java.util", "org.apache.http", "org.flowable.app", "org.flowable.common" ]
com.fasterxml.jackson; java.util; org.apache.http; org.flowable.app; org.flowable.common;
2,543,670
@Override public void setReadOnly( boolean readOnly ) throws SQLException { realConnection.setReadOnly( readOnly ); }
void function( boolean readOnly ) throws SQLException { realConnection.setReadOnly( readOnly ); }
/** * Puts this connection in read-only mode as a hint to the driver to enable * database optimizations. * <p/> * <P><B>Note:</B> This method cannot be called during a transaction. * * @param readOnly <code>true</code> enables read-only mode; * <code>false</code> disables it * @t...
Puts this connection in read-only mode as a hint to the driver to enable database optimizations. Note: This method cannot be called during a transaction
setReadOnly
{ "repo_name": "mattyb149/pdi-presto-jdbc", "path": "src/main/java/org/pentaho/community/di/plugins/database/presto/delegate/DelegateConnection.java", "license": "apache-2.0", "size": 77271 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,354,394
default void preListReplicationPeers(final ObserverContext<MasterCoprocessorEnvironment> ctx, String regex) throws IOException {}
default void preListReplicationPeers(final ObserverContext<MasterCoprocessorEnvironment> ctx, String regex) throws IOException {}
/** * Called before list replication peers. * @param ctx the environment to interact with the framework and master * @param regex The regular expression to match peer id */
Called before list replication peers
preListReplicationPeers
{ "repo_name": "apurtell/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/MasterObserver.java", "license": "apache-2.0", "size": 74501 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
923,160
public SVGTransform initialize(SVGTransform newItem) throws DOMException, SVGException { return (SVGTransform) initializeImpl(newItem); }
SVGTransform function(SVGTransform newItem) throws DOMException, SVGException { return (SVGTransform) initializeImpl(newItem); }
/** * <b>DOM</b>: Implements {@link SVGTransformList#initialize(SVGTransform)}. */
DOM: Implements <code>SVGTransformList#initialize(SVGTransform)</code>
initialize
{ "repo_name": "Squeegee/batik", "path": "sources/org/apache/batik/dom/svg/AbstractSVGTransformList.java", "license": "apache-2.0", "size": 20836 }
[ "org.w3c.dom.DOMException", "org.w3c.dom.svg.SVGException", "org.w3c.dom.svg.SVGTransform" ]
import org.w3c.dom.DOMException; import org.w3c.dom.svg.SVGException; import org.w3c.dom.svg.SVGTransform;
import org.w3c.dom.*; import org.w3c.dom.svg.*;
[ "org.w3c.dom" ]
org.w3c.dom;
1,146,954
public Map<ExtensionType, Object> readAll() throws CryptException { final Map<ExtensionType, Object> map = new HashMap<ExtensionType, Object>( ExtensionType.values().length); for (ExtensionType type : ExtensionType.values()) { logger.debug("Reading {}", type); final Object extension = read(type); i...
Map<ExtensionType, Object> function() throws CryptException { final Map<ExtensionType, Object> map = new HashMap<ExtensionType, Object>( ExtensionType.values().length); for (ExtensionType type : ExtensionType.values()) { logger.debug(STR, type); final Object extension = read(type); if (extension != null) { map.put(type...
/** * Attempts to read all extensions defined in section 4.2 of RFC 2459 and * returns a map of all extensions defined on the certificate. * * @return Map of extension types to extension data. * * @throws CryptException * On errors reading encoded certificate extension field data. */
Attempts to read all extensions defined in section 4.2 of RFC 2459 and returns a map of all extensions defined on the certificate
readAll
{ "repo_name": "shivam091/Java-Security", "path": "crypt/src/main/java/org/security/crypt/x509/ExtensionReader.java", "license": "mit", "size": 9992 }
[ "java.util.HashMap", "java.util.Map", "org.security.crypt.CryptException" ]
import java.util.HashMap; import java.util.Map; import org.security.crypt.CryptException;
import java.util.*; import org.security.crypt.*;
[ "java.util", "org.security.crypt" ]
java.util; org.security.crypt;
1,898,547
@Override public boolean isPersisted(Entity<? extends Serializable> entity) { if (entity == null || entity.getId() == null) { return false; } return isIdPersisted(entity.getId()); }
boolean function(Entity<? extends Serializable> entity) { if (entity == null entity.getId() == null) { return false; } return isIdPersisted(entity.getId()); }
/** * Checks if the given entity has been persisted. * * @param <S> * the ID type * @param entity * the entity * @return <code>true</code>, if is persisted and <code>false</code> if not yet. */
Checks if the given entity has been persisted
isPersisted
{ "repo_name": "SirmaITT/conservation-space-1.7.0", "path": "docker/sirma-platform/platform/seip-parent/platform/db/db-core/src/main/java/com/sirma/itt/seip/db/SequenceEntityGenerator.java", "license": "lgpl-3.0", "size": 12031 }
[ "com.sirma.itt.seip.Entity", "java.io.Serializable" ]
import com.sirma.itt.seip.Entity; import java.io.Serializable;
import com.sirma.itt.seip.*; import java.io.*;
[ "com.sirma.itt", "java.io" ]
com.sirma.itt; java.io;
833,675
val authnAttributes = convertAttributeValuesToMultiValuedObjects(model.getAttributes()); val authnMethod = (Collection) authnAttributes.get(RememberMeCredential.AUTHENTICATION_ATTRIBUTE_REMEMBER_ME); return authnMethod != null && authnMethod.contains(Boolean.TRUE) && assertion.isFromNewLogin(); }
val authnAttributes = convertAttributeValuesToMultiValuedObjects(model.getAttributes()); val authnMethod = (Collection) authnAttributes.get(RememberMeCredential.AUTHENTICATION_ATTRIBUTE_REMEMBER_ME); return authnMethod != null && authnMethod.contains(Boolean.TRUE) && assertion.isFromNewLogin(); }
/** * Is remember me authentication? * looks at the authentication object to find {@link RememberMeCredential#AUTHENTICATION_ATTRIBUTE_REMEMBER_ME} * and expects the assertion to also note a new login session. * * @param model the model * @param assertion the assertion * @return t...
Is remember me authentication? looks at the authentication object to find <code>RememberMeCredential#AUTHENTICATION_ATTRIBUTE_REMEMBER_ME</code> and expects the assertion to also note a new login session
isRememberMeAuthentication
{ "repo_name": "tduehr/cas", "path": "core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/CoreAuthenticationUtils.java", "license": "apache-2.0", "size": 7517 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,104,374
@Override public String getText(Object object) { String label = ((QuestionnaireInner)object).getName(); return label == null || label.length() == 0 ? getString("_UI_QuestionnaireInner_type") : getString("_UI_QuestionnaireInner_type") + " " + label; }
String function(Object object) { String label = ((QuestionnaireInner)object).getName(); return label == null label.length() == 0 ? getString(STR) : getString(STR) + " " + label; }
/** * This returns the label text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This returns the label text for the adapted class.
getText
{ "repo_name": "netuh/DecodePlatformPlugin", "path": "br.edu.ufpe.ines.decode.model.edit/src/br/edu/ufpe/ines/decode/artifacts/provider/QuestionnaireInnerItemProvider.java", "license": "gpl-3.0", "size": 6742 }
[ "br.edu.ufpe.ines.decode.artifacts.QuestionnaireInner" ]
import br.edu.ufpe.ines.decode.artifacts.QuestionnaireInner;
import br.edu.ufpe.ines.decode.artifacts.*;
[ "br.edu.ufpe" ]
br.edu.ufpe;
500,284
public boolean isRadioButtonChecked(String text) { return checker.isButtonChecked(RadioButton.class, text); }
boolean function(String text) { return checker.isButtonChecked(RadioButton.class, text); }
/** * Checks if a RadioButton with a given text is checked. * * @param text the text that the {@link RadioButton} shows * @return {@code true} if a {@link RadioButton} with the given text is checked and {@code false} if it is not checked * */
Checks if a RadioButton with a given text is checked
isRadioButtonChecked
{ "repo_name": "bghtrbb/robotium", "path": "robotium-solo/src/main/java/com/jayway/android/robotium/solo/Solo.java", "license": "apache-2.0", "size": 58591 }
[ "android.widget.RadioButton" ]
import android.widget.RadioButton;
import android.widget.*;
[ "android.widget" ]
android.widget;
557,249
public void setIconImage(Image iconImage) { this._iconImage = iconImage; }
void function(Image iconImage) { this._iconImage = iconImage; }
/** * Sets the iconImage. * * @param iconImage * The iconImage to set */
Sets the iconImage
setIconImage
{ "repo_name": "idega/platform2", "path": "src/com/idega/block/login/presentation/Login.java", "license": "gpl-3.0", "size": 48055 }
[ "com.idega.presentation.Image" ]
import com.idega.presentation.Image;
import com.idega.presentation.*;
[ "com.idega.presentation" ]
com.idega.presentation;
66,888
@JsonProperty("from") @ApiModelProperty(value = "") public String getFrom() { return from; }
@JsonProperty("from") @ApiModelProperty(value = "") String function() { return from; }
/** * Get from * @return from **/
Get from
getFrom
{ "repo_name": "gengstrand/clojure-news-feed", "path": "server/feed3/src/main/java/info/glennengstrand/api/Outbound.java", "license": "epl-1.0", "size": 4357 }
[ "com.fasterxml.jackson.annotation.JsonProperty", "io.swagger.annotations.ApiModelProperty" ]
import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.*; import io.swagger.annotations.*;
[ "com.fasterxml.jackson", "io.swagger.annotations" ]
com.fasterxml.jackson; io.swagger.annotations;
252,392
long a = doubleToRawLongBits(x); long b = doubleToRawLongBits(y); if (a < b) { final long t = a; a = b; b = t; } final boolean equal; if ((a ^ b) < 0) { // a and b have opposite sign. final long diffPositive = a - POSITIVE_ZERO_BITS; final long diffNegative = b - NEGATIVE_ZERO_BITS; equal = dif...
long a = doubleToRawLongBits(x); long b = doubleToRawLongBits(y); if (a < b) { final long t = a; a = b; b = t; } final boolean equal; if ((a ^ b) < 0) { final long diffPositive = a - POSITIVE_ZERO_BITS; final long diffNegative = b - NEGATIVE_ZERO_BITS; equal = diffPositive <= ulps && diffNegative <= (ulps - diffPositiv...
/** * Returns {@code true} if the given {@code double} values are equal within * the range of allowed ULP error (inclusive). The values are considered * equal if there are maximal {@code (ulps - 1)} {@code double} values * between them. * * @param x first value to compare * @param y second value to compar...
Returns true if the given double values are equal within the range of allowed ULP error (inclusive). The values are considered equal if there are maximal (ulps - 1) double values between them
equal
{ "repo_name": "jenetics/jpx", "path": "jpx/src/main/java/io/jenetics/jpx/geom/MathUtils.java", "license": "apache-2.0", "size": 2287 }
[ "java.lang.Double" ]
import java.lang.Double;
import java.lang.*;
[ "java.lang" ]
java.lang;
729,563
private Connect.IMRequest getIMRequest(String priKey, String pubKey, ByteString bytes) { String index = ParamManager.getInstance().getString(ParamManager.GENERATE_TOKEN_SALT); if(TextUtils.isEmpty(index)){ HttpRecBean.sendHttpRecMsg(HttpRecBean.HttpRecType.SALTEXPIRE); Toast....
Connect.IMRequest function(String priKey, String pubKey, ByteString bytes) { String index = ParamManager.getInstance().getString(ParamManager.GENERATE_TOKEN_SALT); if(TextUtils.isEmpty(index)){ HttpRecBean.sendHttpRecMsg(HttpRecBean.HttpRecType.SALTEXPIRE); Toast.makeText(BaseApplication.getInstance(), R.string.ErrorCo...
/** * encrypt param * @param priKey * @param pubKey * @param bytes * @return */
encrypt param
getIMRequest
{ "repo_name": "connectim/Android", "path": "app/src/main/java/connect/utils/okhttp/OkHttpUtil.java", "license": "mit", "size": 4931 }
[ "android.text.TextUtils", "android.widget.Toast", "com.google.protobuf.ByteString" ]
import android.text.TextUtils; import android.widget.Toast; import com.google.protobuf.ByteString;
import android.text.*; import android.widget.*; import com.google.protobuf.*;
[ "android.text", "android.widget", "com.google.protobuf" ]
android.text; android.widget; com.google.protobuf;
1,294,546
public static void syncConfigDefaults() { // By adding a property order list we are defining the order that the properties will appear both in the config file and on the GUIs. // Property order lists are defined per-ConfigCategory. List<String> propOrder = new ArrayList<String>(); ...
static void function() { List<String> propOrder = new ArrayList<String>(); config.setCategoryComment(STR, STR) .setCategoryRequiresWorldRestart(STR, true); Property temp = config.get(STR, STR, true); temp.setComment(STR); temp.setLanguageKey(STR); overridesEnabled = temp.getBoolean(true); propOrder.add(STR); temp = con...
/** * Synchronizes the local fields with the values in the Configuration object. */
Synchronizes the local fields with the values in the Configuration object
syncConfigDefaults
{ "repo_name": "danielyc/test-1.9.4", "path": "build/tmp/recompileMc/sources/net/minecraftforge/common/ForgeChunkManager.java", "license": "gpl-3.0", "size": 43454 }
[ "java.util.ArrayList", "java.util.List", "net.minecraftforge.common.config.Property", "net.minecraftforge.fml.common.FMLLog" ]
import java.util.ArrayList; import java.util.List; import net.minecraftforge.common.config.Property; import net.minecraftforge.fml.common.FMLLog;
import java.util.*; import net.minecraftforge.common.config.*; import net.minecraftforge.fml.common.*;
[ "java.util", "net.minecraftforge.common", "net.minecraftforge.fml" ]
java.util; net.minecraftforge.common; net.minecraftforge.fml;
548,084
EClass getMetamodel();
EClass getMetamodel();
/** * Returns the meta object for class '{@link fr.inria.diverse.melange.metamodel.melange.Metamodel <em>Metamodel</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Metamodel</em>'. * @see fr.inria.diverse.melange.metamodel.melange.Metamodel * @generated */
Returns the meta object for class '<code>fr.inria.diverse.melange.metamodel.melange.Metamodel Metamodel</code>'.
getMetamodel
{ "repo_name": "diverse-project/melange", "path": "plugins/fr.inria.diverse.melange.metamodel/src/main/java/fr/inria/diverse/melange/metamodel/melange/MelangePackage.java", "license": "epl-1.0", "size": 113615 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
359,526
public Observable<ServiceResponse<ExpressRouteConnectionInner>> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String expressRouteGatewayName, String connectionName, ExpressRouteConnectionInner putExpressRouteConnectionParameters) { if (resourceGroupName == null) { throw n...
Observable<ServiceResponse<ExpressRouteConnectionInner>> function(String resourceGroupName, String expressRouteGatewayName, String connectionName, ExpressRouteConnectionInner putExpressRouteConnectionParameters) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (expressRouteGatewayName ==...
/** * Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit. * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param connectionName The name of the connection subresource. * @par...
Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit
beginCreateOrUpdateWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2019_06_01/src/main/java/com/microsoft/azure/management/network/v2019_06_01/implementation/ExpressRouteConnectionsInner.java", "license": "mit", "size": 39006 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,410,506
@InterfaceAudience.Private boolean isShowQuotabyType() { return showQuotabyType; }
@InterfaceAudience.Private boolean isShowQuotabyType() { return showQuotabyType; }
/** * should print quota by storage types * @return true if enables quota by storage types */
should print quota by storage types
isShowQuotabyType
{ "repo_name": "laxman-ch/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/Count.java", "license": "apache-2.0", "size": 6303 }
[ "org.apache.hadoop.classification.InterfaceAudience" ]
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.classification.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,582,576
private boolean valuesAreSet( ImmutableMultimap<String, String> nativeFlagSettings, Map<Label, String> userDefinedFlagSettings, Iterable<Label> constraintValues, RuleErrorConsumer errors) { if (nativeFlagSettings.isEmpty() && userDefinedFlagSettings.isEmpty() && Iterables.i...
boolean function( ImmutableMultimap<String, String> nativeFlagSettings, Map<Label, String> userDefinedFlagSettings, Iterable<Label> constraintValues, RuleErrorConsumer errors) { if (nativeFlagSettings.isEmpty() && userDefinedFlagSettings.isEmpty() && Iterables.isEmpty(constraintValues)) { errors.ruleError( String.forma...
/** * Check to make sure this config_setting contains and sets least one of {values, define_values, * flag_value or constraint_values}. */
Check to make sure this config_setting contains and sets least one of {values, define_values, flag_value or constraint_values}
valuesAreSet
{ "repo_name": "davidzchen/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/config/ConfigSetting.java", "license": "apache-2.0", "size": 27034 }
[ "com.google.common.collect.ImmutableMultimap", "com.google.common.collect.Iterables", "com.google.devtools.build.lib.analysis.RuleErrorConsumer", "com.google.devtools.build.lib.cmdline.Label", "com.google.devtools.build.lib.rules.config.ConfigRuleClasses", "java.util.Map" ]
import com.google.common.collect.ImmutableMultimap; import com.google.common.collect.Iterables; import com.google.devtools.build.lib.analysis.RuleErrorConsumer; import com.google.devtools.build.lib.cmdline.Label; import com.google.devtools.build.lib.rules.config.ConfigRuleClasses; import java.util.Map;
import com.google.common.collect.*; import com.google.devtools.build.lib.analysis.*; import com.google.devtools.build.lib.cmdline.*; import com.google.devtools.build.lib.rules.config.*; import java.util.*;
[ "com.google.common", "com.google.devtools", "java.util" ]
com.google.common; com.google.devtools; java.util;
2,442,010
void endAttribute( String namespaceURI, String localName, String qName, AttributeExp type ) throws SAXException;
void endAttribute( String namespaceURI, String localName, String qName, AttributeExp type ) throws SAXException;
/** * receives notification of the end of an attribute. * * @param type * assigned type. */
receives notification of the end of an attribute
endAttribute
{ "repo_name": "league/rngzip", "path": "libs/msv/com/sun/msv/verifier/psvi/TypedContentHandler.java", "license": "gpl-2.0", "size": 3831 }
[ "com.sun.msv.grammar.AttributeExp", "org.xml.sax.SAXException" ]
import com.sun.msv.grammar.AttributeExp; import org.xml.sax.SAXException;
import com.sun.msv.grammar.*; import org.xml.sax.*;
[ "com.sun.msv", "org.xml.sax" ]
com.sun.msv; org.xml.sax;
172,728
private boolean deferredSnippetingRequested(Uri uri) { String deferredSnippeting = getQueryParameter(uri, SearchSnippets.DEFERRED_SNIPPETING_KEY); return !TextUtils.isEmpty(deferredSnippeting) && deferredSnippeting.equals("1"); }
boolean function(Uri uri) { String deferredSnippeting = getQueryParameter(uri, SearchSnippets.DEFERRED_SNIPPETING_KEY); return !TextUtils.isEmpty(deferredSnippeting) && deferredSnippeting.equals("1"); }
/** * Checks the URI for a deferred snippeting request * @return a boolean indicating if a deferred snippeting request is in the RI */
Checks the URI for a deferred snippeting request
deferredSnippetingRequested
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "packages/providers/ContactsProvider/src/com/android/providers/contacts/ContactsProvider2.java", "license": "gpl-3.0", "size": 411112 }
[ "android.net.Uri", "android.provider.ContactsContract", "android.text.TextUtils" ]
import android.net.Uri; import android.provider.ContactsContract; import android.text.TextUtils;
import android.net.*; import android.provider.*; import android.text.*;
[ "android.net", "android.provider", "android.text" ]
android.net; android.provider; android.text;
2,525,482
@Test public void TestVersion() { if (!UCharacter.getUnicodeVersion().equals(VERSION_)) errln("FAIL expected: " + VERSION_ + " got: " + UCharacter.getUnicodeVersion()); }
void function() { if (!UCharacter.getUnicodeVersion().equals(VERSION_)) errln(STR + VERSION_ + STR + UCharacter.getUnicodeVersion()); }
/** * Tests for version */
Tests for version
TestVersion
{ "repo_name": "mirego/j2objc", "path": "jre_emul/android/platform/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/UCharacterTest.java", "license": "apache-2.0", "size": 159837 }
[ "android.icu.lang.UCharacter" ]
import android.icu.lang.UCharacter;
import android.icu.lang.*;
[ "android.icu" ]
android.icu;
2,291,054
public static void displayIOException( IOException e, TaskListener listener ) { String msg = getWin32ErrorMessage(e); if(msg!=null) listener.getLogger().println(msg); }
static void function( IOException e, TaskListener listener ) { String msg = getWin32ErrorMessage(e); if(msg!=null) listener.getLogger().println(msg); }
/** * On Windows, error messages for IOException aren't very helpful. * This method generates additional user-friendly error message to the listener */
On Windows, error messages for IOException aren't very helpful. This method generates additional user-friendly error message to the listener
displayIOException
{ "repo_name": "stefanbrausch/hudson-main", "path": "core/src/main/java/hudson/Util.java", "license": "mit", "size": 42243 }
[ "hudson.model.TaskListener", "java.io.IOException" ]
import hudson.model.TaskListener; import java.io.IOException;
import hudson.model.*; import java.io.*;
[ "hudson.model", "java.io" ]
hudson.model; java.io;
2,593,435
public static <T extends Diffable<T>> MapDiff<Integer, T, ImmutableOpenIntMap<T>> diff(ImmutableOpenIntMap<T> before, ImmutableOpenIntMap<T> after, KeySerializer<Integer> keySerializer) { assert after != null && before != null; return new ImmutableOpenIntMapDiff<>(before, after, keySerial...
static <T extends Diffable<T>> MapDiff<Integer, T, ImmutableOpenIntMap<T>> function(ImmutableOpenIntMap<T> before, ImmutableOpenIntMap<T> after, KeySerializer<Integer> keySerializer) { assert after != null && before != null; return new ImmutableOpenIntMapDiff<>(before, after, keySerializer, DiffableValueSerializer.getW...
/** * Calculates diff between two ImmutableOpenIntMaps of Diffable objects */
Calculates diff between two ImmutableOpenIntMaps of Diffable objects
diff
{ "repo_name": "robin13/elasticsearch", "path": "server/src/main/java/org/elasticsearch/cluster/DiffableUtils.java", "license": "apache-2.0", "size": 27712 }
[ "org.elasticsearch.common.collect.ImmutableOpenIntMap" ]
import org.elasticsearch.common.collect.ImmutableOpenIntMap;
import org.elasticsearch.common.collect.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
1,008,424
public Object readSqlResultRecord(ResultSet result) { try { String id = result.getString(1); String title = result.getString(2); String type = result.getString(3); String shortDesc = result.getString(4); String description = includeDescription ? result.getString(5) : ""; String icon...
Object function(ResultSet result) { try { String id = result.getString(1); String title = result.getString(2); String type = result.getString(3); String shortDesc = result.getString(4); String description = includeDescription ? result.getString(5) : STR1STR1STR1STR1STR1STR1STRreadSqlResultRecord: " + e); return null; }...
/** * Read result set one record at a time, optionally retrieving long description, based on includeDescription; */
Read result set one record at a time, optionally retrieving long description, based on includeDescription
readSqlResultRecord
{ "repo_name": "eemirtekin/Sakai-10.6-TR", "path": "kernel/kernel-impl/src/main/java/org/sakaiproject/site/impl/DbSiteService.java", "license": "apache-2.0", "size": 75661 }
[ "java.sql.ResultSet" ]
import java.sql.ResultSet;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,660,460
public Node predecessor() { if (getSmaller() != null) { return getSmaller().maximum(); } Node node = this; while (node.isSmaller()) { node = node.getParent(); } return node.getParent(); } } ...
Node function() { if (getSmaller() != null) { return getSmaller().maximum(); } Node node = this; while (node.isSmaller()) { node = node.getParent(); } return node.getParent(); } } private final class ValueIterator implements AosIterator { private Node _current;
/** * Obtains the node with the next smallest value starting from this. * * @return The predecessor; or <code>null</code>. */
Obtains the node with the next smallest value starting from this
predecessor
{ "repo_name": "echalkpad/t4f-data", "path": "structure/core/src/main/java/io/datalayer/data/set/TreeSet.java", "license": "apache-2.0", "size": 10956 }
[ "io.datalayer.data.iterator.AosIterator" ]
import io.datalayer.data.iterator.AosIterator;
import io.datalayer.data.iterator.*;
[ "io.datalayer.data" ]
io.datalayer.data;
204,744
public void removeObserverFrame(AbstractFrame af) { obsFrames.remove(af); }
void function(AbstractFrame af) { obsFrames.remove(af); }
/** * Removes the given frame as observer from the worker. * * @param af * the frame */
Removes the given frame as observer from the worker
removeObserverFrame
{ "repo_name": "googol42/revager", "path": "src/org/revager/gui/workers/AutoSaveWorker.java", "license": "gpl-3.0", "size": 3192 }
[ "org.revager.gui.AbstractFrame" ]
import org.revager.gui.AbstractFrame;
import org.revager.gui.*;
[ "org.revager.gui" ]
org.revager.gui;
451,704
public boolean addPacket(RelayServer relayServer, DatagramPacket packet);
boolean function(RelayServer relayServer, DatagramPacket packet);
/** * Schedule a packet for distribution to other relay servers * * @param relayServer * the relay server from which the packet was received * @param packet * the packet * @return true when the packet was scheduled for distribution, false otherwise */
Schedule a packet for distribution to other relay servers
addPacket
{ "repo_name": "AHR-Project/pudUplinkServer", "path": "src/main/java/nl/mindef/c2sc/nbs/olsr/pud/uplink/server/cluster/RelayClusterSender.java", "license": "gpl-2.0", "size": 1365 }
[ "java.net.DatagramPacket", "nl.mindef.c2sc.nbs.olsr.pud.uplink.server.dao.domainmodel.RelayServer" ]
import java.net.DatagramPacket; import nl.mindef.c2sc.nbs.olsr.pud.uplink.server.dao.domainmodel.RelayServer;
import java.net.*; import nl.mindef.c2sc.nbs.olsr.pud.uplink.server.dao.domainmodel.*;
[ "java.net", "nl.mindef.c2sc" ]
java.net; nl.mindef.c2sc;
748,720
public static String buildJavaScripts() { String jqueryJS = URI.addSubPath(Config.GET_RESOURCES_URL(), "/javascript/jquery.js"); String json2JS = URI.addSubPath(Config.GET_RESOURCES_URL(), "/javascript/json2.js"); String restfulsupportJS = URI.addSubPath(Config.GET_RESOURCES...
static String function() { String jqueryJS = URI.addSubPath(Config.GET_RESOURCES_URL(), STR); String json2JS = URI.addSubPath(Config.GET_RESOURCES_URL(), STR); String restfulsupportJS = URI.addSubPath(Config.GET_RESOURCES_URL(), STR); String jqueryminJS = URI.addSubPath(Config.GET_RESOURCES_URL(), STR); String beautyOf...
/** * Build a HTML String: JavaScript libraries references in HTML * * * @return */
Build a HTML String: JavaScript libraries references in HTML
buildJavaScripts
{ "repo_name": "Fosstrak/fosstrak-webadapters", "path": "src/main/java/org/fosstrak/webadapters/epcis/representation/HTMLStringBuilder.java", "license": "gpl-3.0", "size": 31000 }
[ "org.fosstrak.webadapters.epcis.config.Config", "org.fosstrak.webadapters.epcis.util.URI" ]
import org.fosstrak.webadapters.epcis.config.Config; import org.fosstrak.webadapters.epcis.util.URI;
import org.fosstrak.webadapters.epcis.config.*; import org.fosstrak.webadapters.epcis.util.*;
[ "org.fosstrak.webadapters" ]
org.fosstrak.webadapters;
1,334,732
private static ArrayList<Cell> breakDownValues(final ArrayList<KeyValue> row, final int estimated_nvalues) { final ArrayList<Cell> cells = new ArrayList<Cell>(estimated_nvalues); for (final KeyValue kv : row) { final byte[] qual = kv.qualifier(); fi...
static ArrayList<Cell> function(final ArrayList<KeyValue> row, final int estimated_nvalues) { final ArrayList<Cell> cells = new ArrayList<Cell>(estimated_nvalues); for (final KeyValue kv : row) { final byte[] qual = kv.qualifier(); final int len = qual.length; final byte[] val = kv.value(); if (len == 2) { final byte[]...
/** * Breaks down all the values in a row into individual {@link Cell}s. * @param row The row to compact. Assumed to have 2 elements or more. * @param estimated_nvalues Estimate of the number of values to compact. * Used to pre-allocate a collection of the right size, so it's better to * overshoot a bit...
Breaks down all the values in a row into individual <code>Cell</code>s
breakDownValues
{ "repo_name": "rmarshasatx/opentsdb", "path": "src/core/CompactionQueue.java", "license": "gpl-3.0", "size": 39143 }
[ "com.stumbleupon.async.Callback", "java.util.ArrayList", "java.util.Arrays", "org.hbase.async.KeyValue" ]
import com.stumbleupon.async.Callback; import java.util.ArrayList; import java.util.Arrays; import org.hbase.async.KeyValue;
import com.stumbleupon.async.*; import java.util.*; import org.hbase.async.*;
[ "com.stumbleupon.async", "java.util", "org.hbase.async" ]
com.stumbleupon.async; java.util; org.hbase.async;
246,789
private void removeLinkFromMap() { Iterator iterator = toRemove.iterator(); while (iterator.hasNext()) { String key = (String) iterator.next(); removeLinkInformationMap(key); } }
void function() { Iterator iterator = toRemove.iterator(); while (iterator.hasNext()) { String key = (String) iterator.next(); removeLinkInformationMap(key); } }
/** * Removes link information from Map. */
Removes link information from Map
removeLinkFromMap
{ "repo_name": "donNewtonAlpha/onos", "path": "protocols/ospf/ctl/src/main/java/org/onosproject/ospf/controller/impl/TopologyForDeviceAndLinkImpl.java", "license": "apache-2.0", "size": 29510 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,237,569
public EncryptionProperty encryption() { return this.innerProperties() == null ? null : this.innerProperties().encryption(); }
EncryptionProperty function() { return this.innerProperties() == null ? null : this.innerProperties().encryption(); }
/** * Get the encryption property: The encryption settings of container registry. * * @return the encryption value. */
Get the encryption property: The encryption settings of container registry
encryption
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-containerregistry/src/main/java/com/azure/resourcemanager/containerregistry/fluent/models/RegistryInner.java", "license": "mit", "size": 13355 }
[ "com.azure.resourcemanager.containerregistry.models.EncryptionProperty" ]
import com.azure.resourcemanager.containerregistry.models.EncryptionProperty;
import com.azure.resourcemanager.containerregistry.models.*;
[ "com.azure.resourcemanager" ]
com.azure.resourcemanager;
11,583
public ThreadFactoryBuilder setThreadFactory( ThreadFactory backingThreadFactory) { this.backingThreadFactory = checkNotNull(backingThreadFactory); return this; } /** * Returns a new thread factory using the options supplied during the building * process. After building, it is still possible ...
ThreadFactoryBuilder function( ThreadFactory backingThreadFactory) { this.backingThreadFactory = checkNotNull(backingThreadFactory); return this; } /** * Returns a new thread factory using the options supplied during the building * process. After building, it is still possible to change the options used to * build the ...
/** * Sets the backing {@link ThreadFactory} for new threads created with this * ThreadFactory. Threads will be created by invoking #newThread(Runnable) on * this backing {@link ThreadFactory}. * * @param backingThreadFactory the backing {@link ThreadFactory} which will * be delegated to during th...
Sets the backing <code>ThreadFactory</code> for new threads created with this ThreadFactory. Threads will be created by invoking #newThread(Runnable) on this backing <code>ThreadFactory</code>
setThreadFactory
{ "repo_name": "10xEngineer/My-Wallet-Android", "path": "src/com/google/common/util/concurrent/ThreadFactoryBuilder.java", "license": "gpl-3.0", "size": 6462 }
[ "com.google.common.base.Preconditions", "java.util.concurrent.ThreadFactory" ]
import com.google.common.base.Preconditions; import java.util.concurrent.ThreadFactory;
import com.google.common.base.*; import java.util.concurrent.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
1,517,965
@Override public void setContainer(Container container) { Container oldContainer = this.container; this.container = container; support.firePropertyChange("container", oldContainer, this.container); }
void function(Container container) { Container oldContainer = this.container; this.container = container; support.firePropertyChange(STR, oldContainer, this.container); }
/** * Set the Container associated with our Cluster * * @param container * The Container to use */
Set the Container associated with our Cluster
setContainer
{ "repo_name": "plumer/codana", "path": "tomcat_files/8.0.22/SimpleTcpCluster.java", "license": "mit", "size": 28515 }
[ "org.apache.catalina.Container" ]
import org.apache.catalina.Container;
import org.apache.catalina.*;
[ "org.apache.catalina" ]
org.apache.catalina;
1,622,154
public void findTableElement() { super.findElement(); rows = findHtmlElements(By.tagName("tr")); columns = getColumnsInternal(); }
void function() { super.findElement(); rows = findHtmlElements(By.tagName("tr")); columns = getColumnsInternal(); }
/** * Get rows and columns * rows correspond to <tr> html elements * columns correspond to <th> elements if they exist, or the <td> elements of the first row */
Get rows and columns rows correspond to html elements columns correspond to elements if they exist, or the elements of the first row
findTableElement
{ "repo_name": "bhecquet/seleniumRobot", "path": "core/src/main/java/com/seleniumtests/uipage/htmlelements/Table.java", "license": "apache-2.0", "size": 9085 }
[ "org.openqa.selenium.By" ]
import org.openqa.selenium.By;
import org.openqa.selenium.*;
[ "org.openqa.selenium" ]
org.openqa.selenium;
1,968,584
public MUCLightRoomInfo getFullInfo() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { return getFullInfo(null); }
MUCLightRoomInfo function() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { return getFullInfo(null); }
/** * Get the MUC Light info. * * @return the room info * @throws NoResponseException if there was no response from the remote entity. * @throws XMPPErrorException if there was an XMPP error returned. * @throws NotConnectedException if the XMPP connection is not connected. * @throws I...
Get the MUC Light info
getFullInfo
{ "repo_name": "igniterealtime/Smack", "path": "smack-experimental/src/main/java/org/jivesoftware/smackx/muclight/MultiUserChatLight.java", "license": "apache-2.0", "size": 22262 }
[ "org.jivesoftware.smack.SmackException", "org.jivesoftware.smack.XMPPException" ]
import org.jivesoftware.smack.SmackException; import org.jivesoftware.smack.XMPPException;
import org.jivesoftware.smack.*;
[ "org.jivesoftware.smack" ]
org.jivesoftware.smack;
368,838
public Jar getJarFromName(String name, String from) { File file = new File(name); if (!file.isAbsolute()) file = new File(getBase(), name); if (file.exists()) try { Jar jar = new Jar(file); addClose(jar); return jar; } catch (Exception e) { error("Exception in parsing jar file for %s:...
Jar function(String name, String from) { File file = new File(name); if (!file.isAbsolute()) file = new File(getBase(), name); if (file.exists()) try { Jar jar = new Jar(file); addClose(jar); return jar; } catch (Exception e) { error(STR, from, name, e); } try { URL url = new URL(name); URLConnection connection = url.o...
/** * Try to get a Jar from a file name/path or a url, or in last resort from * the classpath name part of their files. * * @param name URL or filename relative to the base * @param from Message identifying the caller for errors * @return null or a Jar with the contents for the name */
Try to get a Jar from a file name/path or a url, or in last resort from the classpath name part of their files
getJarFromName
{ "repo_name": "lostiniceland/bnd", "path": "biz.aQute.bndlib/src/aQute/bnd/osgi/Processor.java", "license": "apache-2.0", "size": 70777 }
[ "java.io.File", "java.io.IOException", "java.io.InputStream", "java.net.URLConnection" ]
import java.io.File; import java.io.IOException; import java.io.InputStream; import java.net.URLConnection;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
1,398,595
private SchematronProcessor getProcessor(final String schematron, final URIResolver clientResolver) { TransformerFactory factory = new TransformerFactoryImpl(); factory.setURIResolver(new ClassPathURIResolver(Constants.SCHEMATRON_TEMPLATES_ROOT_DIR, clientResolver)); Templates rules ...
SchematronProcessor function(final String schematron, final URIResolver clientResolver) { TransformerFactory factory = new TransformerFactoryImpl(); factory.setURIResolver(new ClassPathURIResolver(Constants.SCHEMATRON_TEMPLATES_ROOT_DIR, clientResolver)); Templates rules = TemplatesFactory.newInstance().getTemplates(Cl...
/** * Returns schematron processor * * @param schematron * @param clientResolver * @return */
Returns schematron processor
getProcessor
{ "repo_name": "christophd/camel", "path": "components/camel-schematron/src/test/java/org/apache/camel/component/schematron/processor/SchematronProcessorTest.java", "license": "apache-2.0", "size": 4785 }
[ "javax.xml.transform.Templates", "javax.xml.transform.TransformerFactory", "javax.xml.transform.URIResolver", "net.sf.saxon.TransformerFactoryImpl", "org.apache.camel.component.schematron.constant.Constants" ]
import javax.xml.transform.Templates; import javax.xml.transform.TransformerFactory; import javax.xml.transform.URIResolver; import net.sf.saxon.TransformerFactoryImpl; import org.apache.camel.component.schematron.constant.Constants;
import javax.xml.transform.*; import net.sf.saxon.*; import org.apache.camel.component.schematron.constant.*;
[ "javax.xml", "net.sf.saxon", "org.apache.camel" ]
javax.xml; net.sf.saxon; org.apache.camel;
1,129,406
public CodeElementExtractor.ElementDescription getMemberDescription() { return this.member; }
CodeElementExtractor.ElementDescription function() { return this.member; }
/** Replies the member description. * * @return the member description. */
Replies the member description
getMemberDescription
{ "repo_name": "sarl/sarl", "path": "main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/codebuilder/fragments/ExpressionBuilderFragment.java", "license": "apache-2.0", "size": 55031 }
[ "io.sarl.lang.mwe2.codebuilder.extractor.CodeElementExtractor" ]
import io.sarl.lang.mwe2.codebuilder.extractor.CodeElementExtractor;
import io.sarl.lang.mwe2.codebuilder.extractor.*;
[ "io.sarl.lang" ]
io.sarl.lang;
459,140
public void setPreferenceScreen(PreferenceScreen preferenceScreen) { if (PreferenceManagerCompat.setPreferences(mPreferenceManager, preferenceScreen) && preferenceScreen != null) { mHavePrefs = true; if (mInitDone) { postBindPreferences(); } } ...
void function(PreferenceScreen preferenceScreen) { if (PreferenceManagerCompat.setPreferences(mPreferenceManager, preferenceScreen) && preferenceScreen != null) { mHavePrefs = true; if (mInitDone) { postBindPreferences(); } } }
/** * Sets the root of the preference hierarchy that this fragment is showing. * * @param preferenceScreen The root {@link PreferenceScreen} of the preference hierarchy. */
Sets the root of the preference hierarchy that this fragment is showing
setPreferenceScreen
{ "repo_name": "tsdl2013/COCOFramework", "path": "framework/src/main/java/com/cocosw/framework/preference/PreferenceFragment.java", "license": "apache-2.0", "size": 13084 }
[ "android.preference.PreferenceScreen" ]
import android.preference.PreferenceScreen;
import android.preference.*;
[ "android.preference" ]
android.preference;
1,009,241
public static Predicate<LivingEntity> hasPotionEffect(Effect effect) { return e -> e.isPotionActive(effect); }
static Predicate<LivingEntity> function(Effect effect) { return e -> e.isPotionActive(effect); }
/** * Returns {@linkplain Predicate} which returns true if * {@linkplain LivingEntity} has active potion effect. * * @param effect potion effect to test. * * @return {@linkplain Predicate} which returns true if * {@linkplain LivingEntity} has active potion effect. */
Returns Predicate which returns true if LivingEntity has active potion effect
hasPotionEffect
{ "repo_name": "athrane/bassebombecraft", "path": "src/main/java/bassebombecraft/util/function/Predicates.java", "license": "gpl-3.0", "size": 4390 }
[ "java.util.function.Predicate", "net.minecraft.entity.LivingEntity", "net.minecraft.potion.Effect" ]
import java.util.function.Predicate; import net.minecraft.entity.LivingEntity; import net.minecraft.potion.Effect;
import java.util.function.*; import net.minecraft.entity.*; import net.minecraft.potion.*;
[ "java.util", "net.minecraft.entity", "net.minecraft.potion" ]
java.util; net.minecraft.entity; net.minecraft.potion;
791,720
public getMultiple_args setTable(byte[] table) { setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); return this; }
getMultiple_args function(byte[] table) { setTable(table == null ? (ByteBuffer)null : ByteBuffer.wrap(table)); return this; }
/** * the table to get from */
the table to get from
setTable
{ "repo_name": "bcopeland/hbase-thrift", "path": "src/main/java/org/apache/hadoop/hbase/thrift2/generated/THBaseService.java", "license": "apache-2.0", "size": 405696 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
784,589
final public <T extends Throwable> T halt(final T cause) { halt = true; final boolean isFirstCause = firstCause.compareAndSet( null, cause); if (log.isEnabledFor(Level.WARN)) try { if (!InnerCause.isInnerCause(cause, InterruptedExce...
final <T extends Throwable> T function(final T cause) { halt = true; final boolean isFirstCause = firstCause.compareAndSet( null, cause); if (log.isEnabledFor(Level.WARN)) try { if (!InnerCause.isInnerCause(cause, InterruptedException.class) && !InnerCause.isInnerCause(cause, CancellationException.class) && !InnerCause...
/** * Indicate that processing should halt. This method is written defensively * and will not throw anything. * * <strong>The caller is responsible for throwing the cause out of their own * context.</strong> * * @param cause * The cause. * * @ret...
Indicate that processing should halt. This method is written defensively and will not throw anything. The caller is responsible for throwing the cause out of their own context
halt
{ "repo_name": "smalyshev/blazegraph", "path": "bigdata/src/java/com/bigdata/util/concurrent/AbstractHaltableProcess.java", "license": "gpl-2.0", "size": 4476 }
[ "com.bigdata.relation.accesspath.BufferClosedException", "com.bigdata.util.InnerCause", "java.nio.channels.ClosedByInterruptException", "java.util.concurrent.CancellationException", "java.util.concurrent.RejectedExecutionException", "org.apache.log4j.Level" ]
import com.bigdata.relation.accesspath.BufferClosedException; import com.bigdata.util.InnerCause; import java.nio.channels.ClosedByInterruptException; import java.util.concurrent.CancellationException; import java.util.concurrent.RejectedExecutionException; import org.apache.log4j.Level;
import com.bigdata.relation.accesspath.*; import com.bigdata.util.*; import java.nio.channels.*; import java.util.concurrent.*; import org.apache.log4j.*;
[ "com.bigdata.relation", "com.bigdata.util", "java.nio", "java.util", "org.apache.log4j" ]
com.bigdata.relation; com.bigdata.util; java.nio; java.util; org.apache.log4j;
2,684,949
when(this.request.getRequestDispatcher("/WEB-INF/view/UpdateClientPet.jsp")).thenReturn(this.dispatcher); when(this.request.getParameter("name")).thenReturn("Vasya"); when(this.clinicService.getClientPet("Vasya")).thenReturn(new Cat("Murka", new DummyOutput())); new UpdateClientPet(this.clinicS...
when(this.request.getRequestDispatcher(STR)).thenReturn(this.dispatcher); when(this.request.getParameter("name")).thenReturn("Vasya"); when(this.clinicService.getClientPet("Vasya")).thenReturn(new Cat("Murka", new DummyOutput())); new UpdateClientPet(this.clinicService, this.roleService).doGet(this.request, this.respon...
/** * Test correctness of <code>doGet</code> method. */
Test correctness of <code>doGet</code> method
whenDoGetThenResult
{ "repo_name": "lightstar/jobj4-clinic-web", "path": "src/test/java/ru/lightstar/clinic/servlet/UpdateClientPetTest.java", "license": "gpl-3.0", "size": 5194 }
[ "ru.lightstar.clinic.io.DummyOutput", "ru.lightstar.clinic.pet.Cat" ]
import ru.lightstar.clinic.io.DummyOutput; import ru.lightstar.clinic.pet.Cat;
import ru.lightstar.clinic.io.*; import ru.lightstar.clinic.pet.*;
[ "ru.lightstar.clinic" ]
ru.lightstar.clinic;
2,356,492
public static Tuple testTuple(List<Object> values, MkTupleParam param) { String stream = param.getStream(); if (stream == null) { stream = Utils.DEFAULT_STREAM_ID; } String component = param.getComponent(); if (component == null) { component =...
static Tuple function(List<Object> values, MkTupleParam param) { String stream = param.getStream(); if (stream == null) { stream = Utils.DEFAULT_STREAM_ID; } String component = param.getComponent(); if (component == null) { component = STR; } int task = 1; List<String> fields = param.getFields(); if (fields == null) { ...
/** * Create a {@link org.apache.storm.tuple.Tuple} for use with testing * @param values the values to appear in the tuple * @param param parametrs describing more details about the tuple */
Create a <code>org.apache.storm.tuple.Tuple</code> for use with testing
testTuple
{ "repo_name": "dke-knu/i2am", "path": "rdma-based-storm/storm-core/src/jvm/org/apache/storm/Testing.java", "license": "apache-2.0", "size": 26829 }
[ "java.util.ArrayList", "java.util.HashMap", "java.util.List", "java.util.Map", "java.util.concurrent.atomic.AtomicBoolean", "org.apache.storm.task.TopologyContext", "org.apache.storm.testing.MkTupleParam", "org.apache.storm.tuple.Fields", "org.apache.storm.tuple.Tuple", "org.apache.storm.tuple.Tup...
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.atomic.AtomicBoolean; import org.apache.storm.task.TopologyContext; import org.apache.storm.testing.MkTupleParam; import org.apache.storm.tuple.Fields; import org.apache.storm.tuple.Tuple; impo...
import java.util.*; import java.util.concurrent.atomic.*; import org.apache.storm.task.*; import org.apache.storm.testing.*; import org.apache.storm.tuple.*; import org.apache.storm.utils.*;
[ "java.util", "org.apache.storm" ]
java.util; org.apache.storm;
176,217
public FePath withFirst(FeLabel label) { throw new PasseException(); }
FePath function(FeLabel label) { throw new PasseException(); }
/** * Append it to the beginning of the path * @deprecated */
Append it to the beginning of the path
withFirst
{ "repo_name": "jonesd/udanax-gold2java", "path": "abora-gold/src/generated-sources/translator/info/dgjones/abora/gold/nlinks/FePath.java", "license": "mit", "size": 9031 }
[ "info.dgjones.abora.gold.java.exception.PasseException", "info.dgjones.abora.gold.nkernel.FeLabel", "info.dgjones.abora.gold.nlinks.FePath" ]
import info.dgjones.abora.gold.java.exception.PasseException; import info.dgjones.abora.gold.nkernel.FeLabel; import info.dgjones.abora.gold.nlinks.FePath;
import info.dgjones.abora.gold.java.exception.*; import info.dgjones.abora.gold.nkernel.*; import info.dgjones.abora.gold.nlinks.*;
[ "info.dgjones.abora" ]
info.dgjones.abora;
1,152,718
private void setInterface() { TableRow rowHeader = new TableRow(getApplicationContext()); for (int col = 0; col < data.getColumnCount(); col++) { TextView editText = EditTextCreator.getEditTextModel(this, data.getElement(currentIndex++)); if (col != 0) { // manage do...
void function() { TableRow rowHeader = new TableRow(getApplicationContext()); for (int col = 0; col < data.getColumnCount(); col++) { TextView editText = EditTextCreator.getEditTextModel(this, data.getElement(currentIndex++)); if (col != 0) { int tmp = col; editText.setOnTouchListener((v, event) -> { toProject = tmp; r...
/** * Set interface, creating rows and edit texts */
Set interface, creating rows and edit texts
setInterface
{ "repo_name": "XxSenatorxX/MPACHRSOR", "path": "app/src/main/java/fr/umlv/ir2/spreadsheet/SpreadSheetActivity.java", "license": "apache-2.0", "size": 13344 }
[ "android.util.Log", "android.widget.EditText", "android.widget.TableRow", "android.widget.TextView", "fr.umlv.ir2.spreadsheet.util.EditTextCreator" ]
import android.util.Log; import android.widget.EditText; import android.widget.TableRow; import android.widget.TextView; import fr.umlv.ir2.spreadsheet.util.EditTextCreator;
import android.util.*; import android.widget.*; import fr.umlv.ir2.spreadsheet.util.*;
[ "android.util", "android.widget", "fr.umlv.ir2" ]
android.util; android.widget; fr.umlv.ir2;
535,779
public boolean supports(@SuppressWarnings("rawtypes") Class clazz) { return RegistrationForm.class.equals(clazz); }
boolean function(@SuppressWarnings(STR) Class clazz) { return RegistrationForm.class.equals(clazz); }
/** * This Validator validates just Person instances */
This Validator validates just Person instances
supports
{ "repo_name": "johnma/webshiro", "path": "src/main/java/com/iware/webshiro/validator/RegistrationValidator.java", "license": "bsd-3-clause", "size": 2800 }
[ "com.iware.webshiro.form.RegistrationForm" ]
import com.iware.webshiro.form.RegistrationForm;
import com.iware.webshiro.form.*;
[ "com.iware.webshiro" ]
com.iware.webshiro;
2,449,323
public static List<String> getGlobsAfterBraceExpansion(String pattern) throws InvalidPatternException { return getGlobsAfterBraceExpansion(pattern, false, PhraseTreatment.NOT_A_SPECIAL_CHAR, PhraseTreatment.NOT_A_SPECIAL_CHAR); } public enum PhraseTreatment { NOT_A_SPECIAL_CHA...
static List<String> function(String pattern) throws InvalidPatternException { return getGlobsAfterBraceExpansion(pattern, false, PhraseTreatment.NOT_A_SPECIAL_CHAR, PhraseTreatment.NOT_A_SPECIAL_CHAR); } public enum PhraseTreatment { NOT_A_SPECIAL_CHAR, INTERIOR_EXPANDABLE, INTERIOR_NOT_EXPANDABLE }; protected static c...
/** returns a list with no curly braces in any entries, * and guaranteeing order such that any {..,X,..,Y,..} will result in X being before Y in the resulting list; * e.g. given a{,b,c} gives a ab and ac; no special treatment of numeric ranges, quotes, or parentheses * (see SpecialistGlobExpander for th...
returns a list with no curly braces in any entries, and guaranteeing order such that any {..,X,..,Y,..} will result in X being before Y in the resulting list; e.g. given a{,b,c} gives a ab and ac; no special treatment of numeric ranges, quotes, or parentheses
getGlobsAfterBraceExpansion
{ "repo_name": "azharhashmi/brooklyn", "path": "utils/common/src/main/java/brooklyn/util/text/WildcardGlobs.java", "license": "apache-2.0", "size": 18229 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,036,330
@SuppressWarnings("deprecation") private boolean allow(Method method, Handler target) { boolean result = false; if (target != null) { if (method.equals(Method.GET)) { result = target.allowGet(); } else if (method.equals(Method.POST)) { res...
@SuppressWarnings(STR) boolean function(Method method, Handler target) { boolean result = false; if (target != null) { if (method.equals(Method.GET)) { result = target.allowGet(); } else if (method.equals(Method.POST)) { result = target.allowPost(); } else if (method.equals(Method.PUT)) { result = target.allowPut(); } ...
/** * Indicates if a method is allowed on a target handler. * * @param method * The method to test. * @param target * The target handler. * @return True if a method is allowed on a target handler. */
Indicates if a method is allowed on a target handler
allow
{ "repo_name": "pecko/debrief", "path": "org.mwc.asset.comms/docs/restlet_src/org.restlet/org/restlet/resource/Finder.java", "license": "epl-1.0", "size": 20815 }
[ "org.restlet.data.Method" ]
import org.restlet.data.Method;
import org.restlet.data.*;
[ "org.restlet.data" ]
org.restlet.data;
2,814,723
private void activateGameOver() { gameOver = true; if (Sound.musicHappyGoLucky.isPlaying()) { Sound.musicHappyGoLucky.stop(); } Sound.soundSquirrelDie.play(); updateLeaderboard(); }
void function() { gameOver = true; if (Sound.musicHappyGoLucky.isPlaying()) { Sound.musicHappyGoLucky.stop(); } Sound.soundSquirrelDie.play(); updateLeaderboard(); }
/** * Activates game over screen. */
Activates game over screen
activateGameOver
{ "repo_name": "antionio/Dodge-The-Cars", "path": "dodgethecars-desktop/src/com/sturdyhelmetgames/dodgethecars/screen/GameScreen.java", "license": "apache-2.0", "size": 18057 }
[ "com.sturdyhelmetgames.dodgethecars.assets.Sound" ]
import com.sturdyhelmetgames.dodgethecars.assets.Sound;
import com.sturdyhelmetgames.dodgethecars.assets.*;
[ "com.sturdyhelmetgames.dodgethecars" ]
com.sturdyhelmetgames.dodgethecars;
412,451
ServiceCall<Void> put204Async(final ServiceCallback<Void> serviceCallback);
ServiceCall<Void> put204Async(final ServiceCallback<Void> serviceCallback);
/** * Put true Boolean value in request returns 204 (no content). * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @return the {@link ServiceCall} object */
Put true Boolean value in request returns 204 (no content)
put204Async
{ "repo_name": "tbombach/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/http/HttpSuccess.java", "license": "mit", "size": 36703 }
[ "com.microsoft.rest.ServiceCall", "com.microsoft.rest.ServiceCallback" ]
import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
2,443,462
void configureDigester(IDigester digester);
void configureDigester(IDigester digester);
/** * Configures an XML digester by adding the rules required to parse * component XML fragments. * * @param digester the digester to configure */
Configures an XML digester by adding the rules required to parse component XML fragments
configureDigester
{ "repo_name": "OpenSoftwareSolutions/PDFReporter", "path": "pdfreporter-core/src/org/oss/pdfreporter/engine/component/XmlDigesterConfigurer.java", "license": "lgpl-3.0", "size": 1703 }
[ "org.oss.pdfreporter.uses.org.apache.digester.IDigester" ]
import org.oss.pdfreporter.uses.org.apache.digester.IDigester;
import org.oss.pdfreporter.uses.org.apache.digester.*;
[ "org.oss.pdfreporter" ]
org.oss.pdfreporter;
343,202
@VisibleForTesting( ) public Builder overrideShouldInvalidateCacheForOptionDiffForTesting( OptionsDiffPredicate shouldInvalidateCacheForOptionDiff) { this.shouldInvalidateCacheForOptionDiff = OptionsDiffPredicate.ALWAYS_INVALIDATE; return this.setShouldInvalidateCacheForOptionDiff(shouldInva...
@VisibleForTesting( ) Builder function( OptionsDiffPredicate shouldInvalidateCacheForOptionDiff) { this.shouldInvalidateCacheForOptionDiff = OptionsDiffPredicate.ALWAYS_INVALIDATE; return this.setShouldInvalidateCacheForOptionDiff(shouldInvalidateCacheForOptionDiff); }
/** * Overrides the predicate which determines whether the analysis cache should be invalidated for * the given options diff. */
Overrides the predicate which determines whether the analysis cache should be invalidated for the given options diff
overrideShouldInvalidateCacheForOptionDiffForTesting
{ "repo_name": "akira-baruah/bazel", "path": "src/main/java/com/google/devtools/build/lib/analysis/ConfiguredRuleClassProvider.java", "license": "apache-2.0", "size": 34995 }
[ "com.google.common.annotations.VisibleForTesting" ]
import com.google.common.annotations.VisibleForTesting;
import com.google.common.annotations.*;
[ "com.google.common" ]
com.google.common;
228,540
public Date getMaximumDate() { Date result = null; Range range = getRange(); if (range instanceof DateRange) { DateRange r = (DateRange) range; result = r.getUpperDate(); } else { result = new Date((long) range.getUpperBound()); ...
Date function() { Date result = null; Range range = getRange(); if (range instanceof DateRange) { DateRange r = (DateRange) range; result = r.getUpperDate(); } else { result = new Date((long) range.getUpperBound()); } return result; }
/** * Returns the latest date visible on the axis. * * @return The date. * * @see #setMaximumDate(Date) * @see #getMinimumDate() */
Returns the latest date visible on the axis
getMaximumDate
{ "repo_name": "SOCR/HTML5_WebSite", "path": "SOCR2.8/src/jfreechart/org/jfree/chart/axis/DateAxis.java", "license": "lgpl-3.0", "size": 70762 }
[ "java.util.Date", "org.jfree.data.Range", "org.jfree.data.time.DateRange" ]
import java.util.Date; import org.jfree.data.Range; import org.jfree.data.time.DateRange;
import java.util.*; import org.jfree.data.*; import org.jfree.data.time.*;
[ "java.util", "org.jfree.data" ]
java.util; org.jfree.data;
2,383,357
public List getCompletionsBackwards(IDocument document, CharSequence prefix, int firstPosition) throws BadLocationException { ArrayList res= new ArrayList(); for (Iterator it= getBackwardIterator(document, prefix, firstPosition); it.hasNext();) { res.add(it.next()); } return res; }
List function(IDocument document, CharSequence prefix, int firstPosition) throws BadLocationException { ArrayList res= new ArrayList(); for (Iterator it= getBackwardIterator(document, prefix, firstPosition); it.hasNext();) { res.add(it.next()); } return res; }
/** * Search for possible completions in the backward direction. If there * is a possible completion that begins before <code>firstPosition</code> * but ends after that position, it will not be included in the results. * * @param document the document to be scanned * @param prefix the completion prefi...
Search for possible completions in the backward direction. If there is a possible completion that begins before <code>firstPosition</code> but ends after that position, it will not be included in the results
getCompletionsBackwards
{ "repo_name": "xiaguangme/simon_ide_tools", "path": "02.eclipse_enhance/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/internal/texteditor/HippieCompletionEngine.java", "license": "apache-2.0", "size": 26768 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.List", "org.eclipse.jface.text.BadLocationException", "org.eclipse.jface.text.IDocument" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IDocument;
import java.util.*; import org.eclipse.jface.text.*;
[ "java.util", "org.eclipse.jface" ]
java.util; org.eclipse.jface;
903,745
protected @Nullable RetryManager getRetryManager() { return mRetryManager; }
RetryManager function() { return mRetryManager; }
/** * Gets retry manager. */
Gets retry manager
getRetryManager
{ "repo_name": "biezhihua/FrescoStudy", "path": "drawee/src/main/java/com/facebook/drawee/controller/AbstractDraweeController.java", "license": "bsd-3-clause", "size": 24920 }
[ "com.facebook.drawee.components.RetryManager" ]
import com.facebook.drawee.components.RetryManager;
import com.facebook.drawee.components.*;
[ "com.facebook.drawee" ]
com.facebook.drawee;
2,585,175
private void changeBlocking(boolean blocked) { if (SwingUtilities.isEventDispatchThread()) { getGlassPane().setVisible(blocked); } else { try { SwingUtilities.invokeAndWait(() -> getGlassPane().setVisible(blocked)); } catch (InvocationTargetExcepti...
void function(boolean blocked) { if (SwingUtilities.isEventDispatchThread()) { getGlassPane().setVisible(blocked); } else { try { SwingUtilities.invokeAndWait(() -> getGlassPane().setVisible(blocked)); } catch (InvocationTargetException InterruptedException e) { LOGGER.error(STR + (blocked ? STRunSTRblocking UI", e); }...
/** * Do the actual blocking/unblocking * * @param blocked true if input should be blocked */
Do the actual blocking/unblocking
changeBlocking
{ "repo_name": "shitikanth/jabref", "path": "src/main/java/org/jabref/gui/JabRefFrame.java", "license": "mit", "size": 104340 }
[ "java.lang.reflect.InvocationTargetException", "javax.swing.SwingUtilities" ]
import java.lang.reflect.InvocationTargetException; import javax.swing.SwingUtilities;
import java.lang.reflect.*; import javax.swing.*;
[ "java.lang", "javax.swing" ]
java.lang; javax.swing;
2,204,077
public void setPmdClasspath(FileCollection pmdClasspath) { this.pmdClasspath = pmdClasspath; }
void function(FileCollection pmdClasspath) { this.pmdClasspath = pmdClasspath; }
/** * The class path containing the PMD library to be used. */
The class path containing the PMD library to be used
setPmdClasspath
{ "repo_name": "gstevey/gradle", "path": "subprojects/code-quality/src/main/groovy/org/gradle/api/plugins/quality/Pmd.java", "license": "apache-2.0", "size": 9961 }
[ "org.gradle.api.file.FileCollection" ]
import org.gradle.api.file.FileCollection;
import org.gradle.api.file.*;
[ "org.gradle.api" ]
org.gradle.api;
2,896,491
public static Artifact launcherArtifactForTarget(JavaSemantics semantics, RuleContext ruleContext) { String launcher = filterLauncherForTarget(semantics, ruleContext); return (launcher == null) ? null : ruleContext.getPrerequisiteArtifact(launcher, Mode.TARGET); }
static Artifact function(JavaSemantics semantics, RuleContext ruleContext) { String launcher = filterLauncherForTarget(semantics, ruleContext); return (launcher == null) ? null : ruleContext.getPrerequisiteArtifact(launcher, Mode.TARGET); }
/** * Returns the java launcher artifact for the given target, if any. * A null return value means "use the JDK launcher". */
Returns the java launcher artifact for the given target, if any. A null return value means "use the JDK launcher"
launcherArtifactForTarget
{ "repo_name": "anupcshan/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/java/JavaHelper.java", "license": "apache-2.0", "size": 5836 }
[ "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.analysis.RuleConfiguredTarget", "com.google.devtools.build.lib.analysis.RuleContext" ]
import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.analysis.RuleConfiguredTarget; import com.google.devtools.build.lib.analysis.RuleContext;
import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.analysis.*;
[ "com.google.devtools" ]
com.google.devtools;
2,376,758
public MetadataProvider getMetadataProvider() { if (_oMetadataProvider != null) return _oMetadataProvider; try { initMetadataProvider(); } catch (OAException oae) { _logger.warn("Exception occurred when establishing MetadataProvider for requestor '"+_sID+"': "+oae.getMessage()...
MetadataProvider function() { if (_oMetadataProvider != null) return _oMetadataProvider; try { initMetadataProvider(); } catch (OAException oae) { _logger.warn(STR+_sID+STR+oae.getMessage()); return null; } return _oMetadataProvider; }
/** * Returns the requestor specific MetadataProvider * * @return the MetadataProvider or <code>null</code> if no provider was available */
Returns the requestor specific MetadataProvider
getMetadataProvider
{ "repo_name": "GluuFederation/gluu-Asimba", "path": "asimba-saml2-utility/src/main/java/com/alfaariss/oa/util/saml2/SAML2Requestor.java", "license": "agpl-3.0", "size": 20908 }
[ "com.alfaariss.oa.OAException", "org.opensaml.saml2.metadata.provider.MetadataProvider" ]
import com.alfaariss.oa.OAException; import org.opensaml.saml2.metadata.provider.MetadataProvider;
import com.alfaariss.oa.*; import org.opensaml.saml2.metadata.provider.*;
[ "com.alfaariss.oa", "org.opensaml.saml2" ]
com.alfaariss.oa; org.opensaml.saml2;
1,345,396
Map<String, Map<String, String>> getRefsMap(List<String> skus) throws ServiceException;
Map<String, Map<String, String>> getRefsMap(List<String> skus) throws ServiceException;
/** * Retrieve the URL Path, Name, and 50x50 image for a list of products. * * @param array * $skus Array of SKUs. * @return array Associative array containing url_path, name, image_50x50, * shop_id. */
Retrieve the URL Path, Name, and 50x50 image for a list of products
getRefsMap
{ "repo_name": "zambrovski/magja", "path": "src/main/java/com/google/code/magja/service/product/ProductRemoteService.java", "license": "gpl-3.0", "size": 8844 }
[ "com.google.code.magja.service.ServiceException", "java.util.List", "java.util.Map" ]
import com.google.code.magja.service.ServiceException; import java.util.List; import java.util.Map;
import com.google.code.magja.service.*; import java.util.*;
[ "com.google.code", "java.util" ]
com.google.code; java.util;
290,781
public static File getFile(URL resourceUrl, String description) throws FileNotFoundException { Assert.notNull(resourceUrl, "Resource URL must not be null"); if (!URL_PROTOCOL_FILE.equals(resourceUrl.getProtocol())) { throw new FileNotFoundException( description + " cannot be resolved to absolute file pat...
static File function(URL resourceUrl, String description) throws FileNotFoundException { Assert.notNull(resourceUrl, STR); if (!URL_PROTOCOL_FILE.equals(resourceUrl.getProtocol())) { throw new FileNotFoundException( description + STR + STR + resourceUrl); } try { return new File(toURI(resourceUrl).getSchemeSpecificPart...
/** * Resolve the given resource URL to a {@code java.io.File}, * i.e. to a file in the file system. * @param resourceUrl the resource URL to resolve * @param description a description of the original resource that * the URL was created for (for example, a class path location) * @return a corresponding File...
Resolve the given resource URL to a java.io.File, i.e. to a file in the file system
getFile
{ "repo_name": "lamsfoundation/lams", "path": "3rdParty_sources/spring/org/springframework/util/ResourceUtils.java", "license": "gpl-2.0", "size": 14657 }
[ "java.io.File", "java.io.FileNotFoundException", "java.net.URISyntaxException" ]
import java.io.File; import java.io.FileNotFoundException; import java.net.URISyntaxException;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
895,349
private static IData getScope(BizDocEnvelope bizdoc, IData attributes, IData scope) throws ServiceException { if (scope == null) { scope = IDataFactory.create(); } else { scope = IDataHelper.duplicate(scope); } if (bizdoc != null && attributes != null) { ...
static IData function(BizDocEnvelope bizdoc, IData attributes, IData scope) throws ServiceException { if (scope == null) { scope = IDataFactory.create(); } else { scope = IDataHelper.duplicate(scope); } if (bizdoc != null && attributes != null) { IDataCursor cursor = attributes.getCursor(); try { while (cursor.next()) ...
/** * Returns the scope required for merging attributes into a BizDocEnvelope. * * @param bizdoc The BizDocEnvelope to merge the given attributes into. * @param attributes The attributes to be merged. * @param scope The scope against which variable substitution is ...
Returns the scope required for merging attributes into a BizDocEnvelope
getScope
{ "repo_name": "Permafrost/TundraTN.java", "path": "src/main/java/permafrost/tundra/tn/document/BizDocAttributeHelper.java", "license": "mit", "size": 14352 }
[ "com.wm.app.b2b.server.ServiceException", "com.wm.app.tn.doc.BizDocEnvelope", "com.wm.data.IData", "com.wm.data.IDataCursor", "com.wm.data.IDataFactory" ]
import com.wm.app.b2b.server.ServiceException; import com.wm.app.tn.doc.BizDocEnvelope; import com.wm.data.IData; import com.wm.data.IDataCursor; import com.wm.data.IDataFactory;
import com.wm.app.b2b.server.*; import com.wm.app.tn.doc.*; import com.wm.data.*;
[ "com.wm.app", "com.wm.data" ]
com.wm.app; com.wm.data;
591,698
public String getQuotedSchemaTableCombination( String schemaName, String tableName ) { if ( Utils.isEmpty( schemaName ) ) { if ( Utils.isEmpty( getPreferredSchemaName() ) ) { return quoteField( environmentSubstitute( tableName ) ); // no need to look further } else { return databaseInt...
String function( String schemaName, String tableName ) { if ( Utils.isEmpty( schemaName ) ) { if ( Utils.isEmpty( getPreferredSchemaName() ) ) { return quoteField( environmentSubstitute( tableName ) ); } else { return databaseInterface.getSchemaTableCombination( quoteField( environmentSubstitute( getPreferredSchemaName...
/** * Calculate the schema-table combination, usually this is the schema and table separated with a dot. (schema.table) * * @param schemaName * the schema-name or null if no schema is used. * @param tableName * the table name * @return the schemaname-tablename combination */
Calculate the schema-table combination, usually this is the schema and table separated with a dot. (schema.table)
getQuotedSchemaTableCombination
{ "repo_name": "pedrofvteixeira/pentaho-kettle", "path": "core/src/main/java/org/pentaho/di/core/database/DatabaseMeta.java", "license": "apache-2.0", "size": 97145 }
[ "org.pentaho.di.core.util.Utils" ]
import org.pentaho.di.core.util.Utils;
import org.pentaho.di.core.util.*;
[ "org.pentaho.di" ]
org.pentaho.di;
1,536,290
void appendedLocalEdgeComment(INaviEdge edge, IComment comment);
void appendedLocalEdgeComment(INaviEdge edge, IComment comment);
/** * Invoked after a local edge comment has been appended to an edge. * * @param edge The edge where the comment has been appended. * @param comment The comment which has been appended. */
Invoked after a local edge comment has been appended to an edge
appendedLocalEdgeComment
{ "repo_name": "mayl8822/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/disassembly/INaviEdgeCommentListener.java", "license": "apache-2.0", "size": 3260 }
[ "com.google.security.zynamics.binnavi.Gui" ]
import com.google.security.zynamics.binnavi.Gui;
import com.google.security.zynamics.binnavi.*;
[ "com.google.security" ]
com.google.security;
497,258
@FIXVersion(introduced="4.3") @TagNumRef(tagNum=TagNum.CustOrderCapacity) public void setCustOrderCapacity(CustOrderCapacity custOrderCapacity) { this.custOrderCapacity = custOrderCapacity; }
@FIXVersion(introduced="4.3") @TagNumRef(tagNum=TagNum.CustOrderCapacity) void function(CustOrderCapacity custOrderCapacity) { this.custOrderCapacity = custOrderCapacity; }
/** * Message field setter. * @param custOrderCapacity field value */
Message field setter
setCustOrderCapacity
{ "repo_name": "marvisan/HadesFIX", "path": "Model/src/main/java/net/hades/fix/message/OrderModificationRequestMsg.java", "license": "gpl-3.0", "size": 149491 }
[ "net.hades.fix.message.anno.FIXVersion", "net.hades.fix.message.anno.TagNumRef", "net.hades.fix.message.type.CustOrderCapacity", "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.CustOrderCapacity; 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;
1,390,272
public MediaType getMediaType();
MediaType function();
/** * Gets the current MediaType * * @return a MediaType specification that represents the current MediaType */
Gets the current MediaType
getMediaType
{ "repo_name": "KurentoLegacy/kc-mscontrol", "path": "src/main/java/com/kurento/mscontrol/commons/MediaStream.java", "license": "lgpl-2.1", "size": 1452 }
[ "com.kurento.mediaspec.MediaType" ]
import com.kurento.mediaspec.MediaType;
import com.kurento.mediaspec.*;
[ "com.kurento.mediaspec" ]
com.kurento.mediaspec;
2,805,688
@Override @SuppressWarnings("unused") public final void endElement(final String parUri, final String parLocalName, final String parQualifiedName) throws SAXException { if (parQualifiedName.equals("Session")) { return; } if (!(parQualifiedName.equ...
@SuppressWarnings(STR) final void function(final String parUri, final String parLocalName, final String parQualifiedName) throws SAXException { if (parQualifiedName.equals(STR)) { return; } if (!(parQualifiedName.equals(STR) parQualifiedName .equals(STR))) { LOGGER.log(Level.SEVERE, STR + parUri + STR + parLocalName + ...
/** * Receive notification of the end of an element. * * @param parUri The Namespace URI, or the empty string if the element has * no Namespace URI or if Namespace processing is not being * performed. * @param parLocalName The local name (without prefix), or the empt...
Receive notification of the end of an element
endElement
{ "repo_name": "walter-weinmann/repsi-tool", "path": "REPSI_Tool_02.00_Development/src/edu/ou/weinmann/repsi/model/database/Database.java", "license": "apache-2.0", "size": 28193 }
[ "java.util.logging.Level", "org.xml.sax.SAXException" ]
import java.util.logging.Level; import org.xml.sax.SAXException;
import java.util.logging.*; import org.xml.sax.*;
[ "java.util", "org.xml.sax" ]
java.util; org.xml.sax;
1,135,098
public NavigableMap<byte[], NavigableMap<byte[], NavigableMap<Long, byte[]>>> getMap() { if (this.familyMap != null) { return this.familyMap; } if(isEmpty()) { return null; } this.familyMap = new TreeMap<>(Bytes.BYTES_COMPARATOR); for(Cell kv : this.cells) { byte [] family = ...
NavigableMap<byte[], NavigableMap<byte[], NavigableMap<Long, byte[]>>> function() { if (this.familyMap != null) { return this.familyMap; } if(isEmpty()) { return null; } this.familyMap = new TreeMap<>(Bytes.BYTES_COMPARATOR); for(Cell kv : this.cells) { byte [] family = CellUtil.cloneFamily(kv); NavigableMap<byte[], Na...
/** * Map of families to all versions of its qualifiers and values. * <p> * Returns a three level Map of the form: * <code>Map&amp;family,Map&lt;qualifier,Map&lt;timestamp,value&gt;&gt;&gt;</code> * <p> * Note: All other map returning methods make use of this map internally. * @return map from fami...
Map of families to all versions of its qualifiers and values. Returns a three level Map of the form: <code>Map&amp;family,Map&lt;qualifier,Map&lt;timestamp,value&gt;&gt;&gt;</code> Note: All other map returning methods make use of this map internally
getMap
{ "repo_name": "vincentpoon/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java", "license": "apache-2.0", "size": 33617 }
[ "java.util.NavigableMap", "java.util.TreeMap", "org.apache.hadoop.hbase.Cell", "org.apache.hadoop.hbase.CellUtil", "org.apache.hadoop.hbase.util.Bytes" ]
import java.util.NavigableMap; import java.util.TreeMap; import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.CellUtil; import org.apache.hadoop.hbase.util.Bytes;
import java.util.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.util.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
1,618,499
public void setUserNameGenerator(UserNameGenerator userNameGenerator) { this.usernameGenerator = userNameGenerator; }
void function(UserNameGenerator userNameGenerator) { this.usernameGenerator = userNameGenerator; }
/** * Set the user name generator service * * @param userNameGenerator the user name generator */
Set the user name generator service
setUserNameGenerator
{ "repo_name": "nguyentienlong/community-edition", "path": "projects/repository/source/java/org/alfresco/repo/jscript/People.java", "license": "lgpl-3.0", "size": 49376 }
[ "org.alfresco.repo.security.authentication.UserNameGenerator" ]
import org.alfresco.repo.security.authentication.UserNameGenerator;
import org.alfresco.repo.security.authentication.*;
[ "org.alfresco.repo" ]
org.alfresco.repo;
301,034
@Test public void testSimple() throws Exception { long totalMemory = 64 * 1024; int size = 1024; BufferPool pool = new BufferPool(totalMemory, size, metrics, time, metricGroup); ByteBuffer buffer = pool.allocate(size, maxBlockTimeMs); assertEquals("Buffer size should equa...
void function() throws Exception { long totalMemory = 64 * 1024; int size = 1024; BufferPool pool = new BufferPool(totalMemory, size, metrics, time, metricGroup); ByteBuffer buffer = pool.allocate(size, maxBlockTimeMs); assertEquals(STR, size, buffer.limit()); assertEquals(STR, totalMemory - size, pool.unallocatedMemor...
/** * Test the simple non-blocking allocation paths */
Test the simple non-blocking allocation paths
testSimple
{ "repo_name": "Mszak/kafka", "path": "clients/src/test/java/org/apache/kafka/clients/producer/internals/BufferPoolTest.java", "license": "apache-2.0", "size": 8299 }
[ "java.nio.ByteBuffer", "org.junit.Assert" ]
import java.nio.ByteBuffer; import org.junit.Assert;
import java.nio.*; import org.junit.*;
[ "java.nio", "org.junit" ]
java.nio; org.junit;
2,333,288