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
@Test public void testAuthenticateUser () { createUser ("test-user", "test", false); final Authentication authentication = authenticate ("test-user", "test"); assertAuthority (authentication, "ROLE_USER"); assertNotAuthority (authentication, "ROLE_SUPERUSER"); assertNotAuthority (authenticat...
void function () { createUser (STR, "test", false); final Authentication authentication = authenticate (STR, "test"); assertAuthority (authentication, STR); assertNotAuthority (authentication, STR); assertNotAuthority (authentication, STR); assertNotAuthority (authentication, STR); assertNotAuthority (authentication, S...
/** * Test whether a normal can authenticate and has the correct roles. */
Test whether a normal can authenticate and has the correct roles
testAuthenticateUser
{ "repo_name": "CDS-VRN/InSpider", "path": "managerDB/src/test/java/nl/ipo/cds/dao/ManagerDaoAuthenticationProviderTest.java", "license": "gpl-3.0", "size": 7224 }
[ "org.springframework.security.core.Authentication" ]
import org.springframework.security.core.Authentication;
import org.springframework.security.core.*;
[ "org.springframework.security" ]
org.springframework.security;
1,303,890
BandwidthMeter getBandwidthMeter();
BandwidthMeter getBandwidthMeter();
/** * Returns a {@link BandwidthMeter} whose estimate should be displayed, or null. */
Returns a <code>BandwidthMeter</code> whose estimate should be displayed, or null
getBandwidthMeter
{ "repo_name": "Plumzi/ExoPlayer", "path": "library/src/main/java/com/google/android/pzexoplayer/util/DebugTextViewHelper.java", "license": "apache-2.0", "size": 3633 }
[ "com.google.android.pzexoplayer.upstream.BandwidthMeter" ]
import com.google.android.pzexoplayer.upstream.BandwidthMeter;
import com.google.android.pzexoplayer.upstream.*;
[ "com.google.android" ]
com.google.android;
2,883,619
ApiResponse<Boolean> removeUserFromChannel(String channelId, String userId);
ApiResponse<Boolean> removeUserFromChannel(String channelId, String userId);
/** * will delete the channel member object for a user, effectively removing the user from a channel. */
will delete the channel member object for a user, effectively removing the user from a channel
removeUserFromChannel
{ "repo_name": "maruTA-bis5/mattermost4j", "path": "mattermost4j-core/src/main/java/net/bis5/mattermost/client4/api/ChannelApi.java", "license": "apache-2.0", "size": 10269 }
[ "net.bis5.mattermost.client4.ApiResponse" ]
import net.bis5.mattermost.client4.ApiResponse;
import net.bis5.mattermost.client4.*;
[ "net.bis5.mattermost" ]
net.bis5.mattermost;
2,625,801
default Optional<String> getMessage() { return Optional.empty(); }
default Optional<String> getMessage() { return Optional.empty(); }
/** * Returns any feedback the command wants to provide for logging. This message should be appropriate to expose to the user after the * command has been applied */
Returns any feedback the command wants to provide for logging. This message should be appropriate to expose to the user after the command has been applied
getMessage
{ "repo_name": "nknize/elasticsearch", "path": "server/src/main/java/org/elasticsearch/cluster/routing/allocation/command/AllocationCommand.java", "license": "apache-2.0", "size": 2163 }
[ "java.util.Optional" ]
import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
686,710
public boolean isGroupingExpr(SqlNode operand) { return lookupGroupingExpr(operand) >= 0; }
boolean function(SqlNode operand) { return lookupGroupingExpr(operand) >= 0; }
/** Returns whether a given expression is equal to one of the grouping * expressions. Determines whether it is valid as an operand to GROUPING. */
Returns whether a given expression is equal to one of the grouping
isGroupingExpr
{ "repo_name": "YrAuYong/incubator-calcite", "path": "core/src/main/java/org/apache/calcite/sql/validate/AggregatingSelectScope.java", "license": "apache-2.0", "size": 9823 }
[ "org.apache.calcite.sql.SqlNode" ]
import org.apache.calcite.sql.SqlNode;
import org.apache.calcite.sql.*;
[ "org.apache.calcite" ]
org.apache.calcite;
2,279,092
public static String getQualifiedPath(HiveConf conf, Path path) throws HiveException { FileSystem fs; if (path == null) { return null; } try { fs = path.getFileSystem(conf); return fs.makeQualified(path).toString(); } catch (IOException e) { throw new HiveException(e);...
static String function(HiveConf conf, Path path) throws HiveException { FileSystem fs; if (path == null) { return null; } try { fs = path.getFileSystem(conf); return fs.makeQualified(path).toString(); } catch (IOException e) { throw new HiveException(e); } }
/** * Convert path to qualified path. * * @param conf * Hive configuration. * @param path * Path to convert. * @return Qualified path */
Convert path to qualified path
getQualifiedPath
{ "repo_name": "BUPTAnderson/apache-hive-2.1.1-src", "path": "ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java", "license": "apache-2.0", "size": 136880 }
[ "java.io.IOException", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hive.conf.HiveConf", "org.apache.hadoop.hive.ql.metadata.HiveException" ]
import java.io.IOException; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.ql.metadata.HiveException;
import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hive.conf.*; import org.apache.hadoop.hive.ql.metadata.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
108,277
@Nonnull public static DTSSRequestData extractDTSRequestData (final IRequestWebScopeWithoutResponse aRequestScope) { // Read input parameters and ensure non negativeness final int nDraw = aRequestScope.params ().getAsInt (DRAW); final int nDisplayStart = Math.max (aRequestScope.params ().getAsInt (STA...
static DTSSRequestData function (final IRequestWebScopeWithoutResponse aRequestScope) { final int nDraw = aRequestScope.params ().getAsInt (DRAW); final int nDisplayStart = Math.max (aRequestScope.params ().getAsInt (START, 0), 0); final int nDisplayLength = aRequestScope.params ().getAsInt (LENGTH, DataTablesLengthMen...
/** * Extract the DataTables request data and convert them to a structured * {@link DTSSRequestData}. * * @param aRequestScope * The current request scope. May not be <code>null</code>. * @return The created request data. Never <code>null</code>. * @since 8.1.3 */
Extract the DataTables request data and convert them to a structured <code>DTSSRequestData</code>
extractDTSRequestData
{ "repo_name": "phax/ph-oton", "path": "ph-oton-datatables/src/main/java/com/helger/photon/uictrls/datatables/ajax/AjaxExecutorDataTables.java", "license": "apache-2.0", "size": 17230 }
[ "com.helger.commons.collection.impl.CommonsArrayList", "com.helger.commons.collection.impl.ICommonsList", "com.helger.commons.compare.ESortOrder", "com.helger.commons.string.StringParser", "com.helger.commons.typeconvert.TypeConverter", "com.helger.photon.uictrls.datatables.DataTablesLengthMenu", "com.h...
import com.helger.commons.collection.impl.CommonsArrayList; import com.helger.commons.collection.impl.ICommonsList; import com.helger.commons.compare.ESortOrder; import com.helger.commons.string.StringParser; import com.helger.commons.typeconvert.TypeConverter; import com.helger.photon.uictrls.datatables.DataTablesLeng...
import com.helger.commons.collection.impl.*; import com.helger.commons.compare.*; import com.helger.commons.string.*; import com.helger.commons.typeconvert.*; import com.helger.photon.uictrls.datatables.*; import com.helger.servlet.request.*; import com.helger.web.scope.*;
[ "com.helger.commons", "com.helger.photon", "com.helger.servlet", "com.helger.web" ]
com.helger.commons; com.helger.photon; com.helger.servlet; com.helger.web;
1,990,800
static boolean isNotRNullRList(Object value) { return value != RNull.instance && !(value instanceof RList); }
static boolean isNotRNullRList(Object value) { return value != RNull.instance && !(value instanceof RList); }
/** * {@link RNull} and lists have special handling when they are RHS of update. Nulls delete the * field and lists can cause cycles. */
<code>RNull</code> and lists have special handling when they are RHS of update. Nulls delete the field and lists can cause cycles
isNotRNullRList
{ "repo_name": "akunft/fastr", "path": "com.oracle.truffle.r.nodes.builtin/src/com/oracle/truffle/r/nodes/builtin/base/infix/UpdateField.java", "license": "gpl-2.0", "size": 5609 }
[ "com.oracle.truffle.r.runtime.data.RList", "com.oracle.truffle.r.runtime.data.RNull" ]
import com.oracle.truffle.r.runtime.data.RList; import com.oracle.truffle.r.runtime.data.RNull;
import com.oracle.truffle.r.runtime.data.*;
[ "com.oracle.truffle" ]
com.oracle.truffle;
2,897,891
public void setCamelRouteController(CamelRouteControllerDefinition camelRouteController) { this.camelRouteController = camelRouteController; }
void function(CamelRouteControllerDefinition camelRouteController) { this.camelRouteController = camelRouteController; }
/** * Configuration of route controller. */
Configuration of route controller
setCamelRouteController
{ "repo_name": "adessaigne/camel", "path": "components/camel-spring/src/main/java/org/apache/camel/spring/CamelContextFactoryBean.java", "license": "apache-2.0", "size": 49808 }
[ "org.apache.camel.core.xml.CamelRouteControllerDefinition" ]
import org.apache.camel.core.xml.CamelRouteControllerDefinition;
import org.apache.camel.core.xml.*;
[ "org.apache.camel" ]
org.apache.camel;
2,695,776
@Generated @Selector("batteryState") @NInt public native long batteryState();
@Selector(STR) native long function();
/** * A battery state for controller, defaults to GCControllerBatteryStateUnknown * <p> * [@note] This property might be useful if you display the information about currently connected controller for player's convenience */
A battery state for controller, defaults to GCControllerBatteryStateUnknown [@note] This property might be useful if you display the information about currently connected controller for player's convenience
batteryState
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/gamecontroller/GCDeviceBattery.java", "license": "apache-2.0", "size": 4937 }
[ "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
2,706,111
@Override public int count(final byte[] termHash) { final Integer cachedCount = this.countCache.get(termHash); if (cachedCount != null) return cachedCount.intValue(); int countFile = 0; // read fresh values from file try { countFile = this.array.count...
int function(final byte[] termHash) { final Integer cachedCount = this.countCache.get(termHash); if (cachedCount != null) return cachedCount.intValue(); int countFile = 0; try { countFile = this.array.count(termHash); } catch (final Throwable e) { ConcurrentLog.logException(e); } assert countFile >= 0; final ReferenceC...
/** * count number of references for a given term * this method may cause strong IO load if called too frequently. */
count number of references for a given term this method may cause strong IO load if called too frequently
count
{ "repo_name": "automenta/kelondro", "path": "src/main/java/yacy/kelondro/rwi/IndexCell.java", "license": "lgpl-2.1", "size": 28569 }
[ "net.yacy.cora.storage.HandleSet", "net.yacy.cora.util.ConcurrentLog", "net.yacy.kelondro.util.MemoryControl" ]
import net.yacy.cora.storage.HandleSet; import net.yacy.cora.util.ConcurrentLog; import net.yacy.kelondro.util.MemoryControl;
import net.yacy.cora.storage.*; import net.yacy.cora.util.*; import net.yacy.kelondro.util.*;
[ "net.yacy.cora", "net.yacy.kelondro" ]
net.yacy.cora; net.yacy.kelondro;
881,287
EAttribute getModelFilterSet_Description();
EAttribute getModelFilterSet_Description();
/** * Returns the meta object for the attribute '{@link com.openMap1.mapper.ModelFilterSet#getDescription <em>Description</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Description</em>'. * @see com.openMap1.mapper.ModelFilterSet#getDescription(...
Returns the meta object for the attribute '<code>com.openMap1.mapper.ModelFilterSet#getDescription Description</code>'.
getModelFilterSet_Description
{ "repo_name": "openmapsoftware/mappingtools", "path": "openmap-mapper-lib/src/main/java/com/openMap1/mapper/MapperPackage.java", "license": "epl-1.0", "size": 172715 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,184,760
private String getExtraTemperatureText( CityDailyWeatherForecast cityDailyWeatherForecast) { CityDailyWeatherForecast weatherForecast = (CityDailyWeatherForecast) cityDailyWeatherForecast; Temperature temperature = weatherForecast.getTemperature(); TemperatureScale temperatureScale = getTemperatureScale()...
String function( CityDailyWeatherForecast cityDailyWeatherForecast) { CityDailyWeatherForecast weatherForecast = (CityDailyWeatherForecast) cityDailyWeatherForecast; Temperature temperature = weatherForecast.getTemperature(); TemperatureScale temperatureScale = getTemperatureScale(); String temperatureScaleDegree = res...
/** * Obtains a text to be displayed in the extraTemperaturesTextView. * * @param cityDailyWeatherForecast * Java object, corresponding to the Open Weather Map JSON * weather forecast data for one day * @return the night, morning, and evening temperatures */
Obtains a text to be displayed in the extraTemperaturesTextView
getExtraTemperatureText
{ "repo_name": "Kestutis-Z/UK-Weather-repo", "path": "UKWeather/src/com/haringeymobile/ukweather/WeatherDailyWeatherForecastChildFragment.java", "license": "apache-2.0", "size": 4177 }
[ "com.haringeymobile.ukweather.data.objects.CityDailyWeatherForecast", "com.haringeymobile.ukweather.data.objects.Temperature", "com.haringeymobile.ukweather.data.objects.TemperatureScale", "com.haringeymobile.ukweather.utils.MiscMethods" ]
import com.haringeymobile.ukweather.data.objects.CityDailyWeatherForecast; import com.haringeymobile.ukweather.data.objects.Temperature; import com.haringeymobile.ukweather.data.objects.TemperatureScale; import com.haringeymobile.ukweather.utils.MiscMethods;
import com.haringeymobile.ukweather.data.objects.*; import com.haringeymobile.ukweather.utils.*;
[ "com.haringeymobile.ukweather" ]
com.haringeymobile.ukweather;
1,363,460
private static boolean pathSegmentMatchesPattern(String patternSegment, String segment) { return CharOperation.pathMatch(patternSegment.toCharArray(), segment.toCharArray(), false, File.separatorChar); }
static boolean function(String patternSegment, String segment) { return CharOperation.pathMatch(patternSegment.toCharArray(), segment.toCharArray(), false, File.separatorChar); }
/** * <p>A convenience method for checking the matching of one segment from a pattern path with * one segment from a path.</p> *Bug 334922 - CharOperation#match does not work as expected when isCaseSensitive is passed as false * @param patternSegment check if this pattern segment is a match with the given path ...
A convenience method for checking the matching of one segment from a pattern path with one segment from a path. Bug 334922 - CharOperation#match does not work as expected when isCaseSensitive is passed as false
pathSegmentMatchesPattern
{ "repo_name": "ttimbul/eclipse.wst", "path": "bundles/org.eclipse.wst.jsdt.web.core/src/org/eclipse/wst/jsdt/web/core/internal/PathUtils.java", "license": "epl-1.0", "size": 5626 }
[ "java.io.File", "org.eclipse.wst.jsdt.core.compiler.CharOperation" ]
import java.io.File; import org.eclipse.wst.jsdt.core.compiler.CharOperation;
import java.io.*; import org.eclipse.wst.jsdt.core.compiler.*;
[ "java.io", "org.eclipse.wst" ]
java.io; org.eclipse.wst;
2,552,106
protected ActivityURL createActivityURL(Activity activity) throws LearningDesignProcessorException { if (activity == null) { String error = "Cannot create activity progress for this activity as the activity is null."; log.error(error); throw new LearningDesignProcessorException(error); } ActivityU...
ActivityURL function(Activity activity) throws LearningDesignProcessorException { if (activity == null) { String error = STR; log.error(error); throw new LearningDesignProcessorException(error); } ActivityURL activityURL = activityMapping.getActivityURL(progress, activity, false, isFloating); if (activityURL.getStatus(...
/** * Creates a progress object with properties activityId, activityName, activityDescription and progress status. * * @param activity * @return a progress object * @throws ProgressException */
Creates a progress object with properties activityId, activityName, activityDescription and progress status
createActivityURL
{ "repo_name": "lamsfoundation/lams", "path": "lams_learning/src/java/org/lamsfoundation/lams/learning/progress/ProgressBuilder.java", "license": "gpl-2.0", "size": 7857 }
[ "org.lamsfoundation.lams.learningdesign.Activity", "org.lamsfoundation.lams.learningdesign.ToolBranchingActivity", "org.lamsfoundation.lams.learningdesign.dto.ActivityURL", "org.lamsfoundation.lams.learningdesign.exception.LearningDesignProcessorException", "org.lamsfoundation.lams.lesson.LearnerProgress" ]
import org.lamsfoundation.lams.learningdesign.Activity; import org.lamsfoundation.lams.learningdesign.ToolBranchingActivity; import org.lamsfoundation.lams.learningdesign.dto.ActivityURL; import org.lamsfoundation.lams.learningdesign.exception.LearningDesignProcessorException; import org.lamsfoundation.lams.lesson.Lear...
import org.lamsfoundation.lams.learningdesign.*; import org.lamsfoundation.lams.learningdesign.dto.*; import org.lamsfoundation.lams.learningdesign.exception.*; import org.lamsfoundation.lams.lesson.*;
[ "org.lamsfoundation.lams" ]
org.lamsfoundation.lams;
1,892,109
public static InputStreamReader getResourceReader(String location) { return new InputStreamReader(getResourceInputStream(location), StandardCharsets.UTF_8); }
static InputStreamReader function(String location) { return new InputStreamReader(getResourceInputStream(location), StandardCharsets.UTF_8); }
/** * Returns the input stream reader of a resource on the classpath using UTF-8 charset. * * @param location String indicating the location of resource on the classpath. * @return InputStreamReader of the resource. */
Returns the input stream reader of a resource on the classpath using UTF-8 charset
getResourceReader
{ "repo_name": "openaire/iis", "path": "iis-common/src/main/java/eu/dnetlib/iis/common/ClassPathResourceProvider.java", "license": "apache-2.0", "size": 2807 }
[ "java.io.InputStreamReader", "java.nio.charset.StandardCharsets" ]
import java.io.InputStreamReader; import java.nio.charset.StandardCharsets;
import java.io.*; import java.nio.charset.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
620,247
public void setSeriesVisibleInLegend(int series, Boolean visible, boolean notify) { this.seriesVisibleInLegendList.setBoolean(series, visible); if (notify) { notifyListeners(new RendererChangeEvent(this)); } }
void function(int series, Boolean visible, boolean notify) { this.seriesVisibleInLegendList.setBoolean(series, visible); if (notify) { notifyListeners(new RendererChangeEvent(this)); } }
/** * Sets the flag that controls whether a series is visible in the legend * and, if requested, sends a {@link RendererChangeEvent} to all registered * listeners. * * @param series the series index. * @param visible the flag (<code>null</code> permitted). * @param notify notify ...
Sets the flag that controls whether a series is visible in the legend and, if requested, sends a <code>RendererChangeEvent</code> to all registered listeners
setSeriesVisibleInLegend
{ "repo_name": "opensim-org/opensim-gui", "path": "Gui/opensim/jfreechart/src/org/jfree/chart/renderer/AbstractRenderer.java", "license": "apache-2.0", "size": 98153 }
[ "org.jfree.chart.event.RendererChangeEvent" ]
import org.jfree.chart.event.RendererChangeEvent;
import org.jfree.chart.event.*;
[ "org.jfree.chart" ]
org.jfree.chart;
1,950,183
public Collection<BasicBlock> getSuccessors() { return successors; }
Collection<BasicBlock> function() { return successors; }
/** * Returns the successors of this block. */
Returns the successors of this block
getSuccessors
{ "repo_name": "cs-au-dk/TAJS", "path": "src/dk/brics/tajs/flowgraph/BasicBlock.java", "license": "apache-2.0", "size": 13298 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,786,322
public Iterable<InfoItem> getInfoItems() { return ImmutableList.of(); }
Iterable<InfoItem> function() { return ImmutableList.of(); }
/** * Returns the additional information this module provides to "blaze info". * * <p>This method will be called at the beginning of each "blaze info" command (after * #beforeCommand). */
Returns the additional information this module provides to "blaze info". This method will be called at the beginning of each "blaze info" command (after #beforeCommand)
getInfoItems
{ "repo_name": "kamalmarhubi/bazel", "path": "src/main/java/com/google/devtools/build/lib/runtime/BlazeModule.java", "license": "apache-2.0", "size": 15213 }
[ "com.google.common.collect.ImmutableList" ]
import com.google.common.collect.ImmutableList;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
979,080
J2ObjcMappingFileProvider.Builder builder = new J2ObjcMappingFileProvider.Builder(); for (J2ObjcMappingFileProvider provider : providers) { builder.addTransitive(provider); } return builder.build(); } public J2ObjcMappingFileProvider(NestedSet<Artifact> headerMappingFiles, NestedSet<Art...
J2ObjcMappingFileProvider.Builder builder = new J2ObjcMappingFileProvider.Builder(); for (J2ObjcMappingFileProvider provider : providers) { builder.addTransitive(provider); } return builder.build(); } public J2ObjcMappingFileProvider(NestedSet<Artifact> headerMappingFiles, NestedSet<Artifact> classMappingFiles, NestedS...
/** * Returns a {@link J2ObjcMappingFileProvider} which combines all input * {@link J2ObjcMappingFileProvider}s. All mapping files present in any of the input providers * will be present in the output provider. */
Returns a <code>J2ObjcMappingFileProvider</code> which combines all input <code>J2ObjcMappingFileProvider</code>s. All mapping files present in any of the input providers will be present in the output provider
union
{ "repo_name": "davidzchen/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/objc/J2ObjcMappingFileProvider.java", "license": "apache-2.0", "size": 6164 }
[ "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.collect.nestedset.NestedSet" ]
import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.collect.nestedset.NestedSet;
import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.collect.nestedset.*;
[ "com.google.devtools" ]
com.google.devtools;
64,275
return false; } /** * Override to show extended description on mouse clicks on a link or expand action. * This method is only called if {@link #handleLink(String, com.intellij.openapi.editor.Editor)}
return false; } /** * Override to show extended description on mouse clicks on a link or expand action. * This method is only called if {@link #handleLink(String, com.intellij.openapi.editor.Editor)}
/** * Override to handle mouse clicks on a link. * * @param refSuffix part of link's href attribute after registered prefix. * @param editor an editor in which tooltip with a link was shown. * @return {@code true} if a link was handled. */
Override to handle mouse clicks on a link
handleLink
{ "repo_name": "consulo/consulo", "path": "modules/base/platform-api/src/main/java/com/intellij/codeInsight/highlighting/TooltipLinkHandler.java", "license": "apache-2.0", "size": 2261 }
[ "com.intellij.openapi.editor.Editor" ]
import com.intellij.openapi.editor.Editor;
import com.intellij.openapi.editor.*;
[ "com.intellij.openapi" ]
com.intellij.openapi;
564,195
private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); SerialUtils.writePaint(this.errorIndicatorPaint, stream); SerialUtils.writeStroke(this.errorIndicatorStroke, stream); }
void function(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); SerialUtils.writePaint(this.errorIndicatorPaint, stream); SerialUtils.writeStroke(this.errorIndicatorStroke, stream); }
/** * Provides serialization support. * * @param stream the output stream. * * @throws IOException if there is an I/O error. */
Provides serialization support
writeObject
{ "repo_name": "jfree/jfreechart", "path": "src/main/java/org/jfree/chart/renderer/category/StatisticalBarRenderer.java", "license": "lgpl-2.1", "size": 21004 }
[ "java.io.IOException", "java.io.ObjectOutputStream", "org.jfree.chart.internal.SerialUtils" ]
import java.io.IOException; import java.io.ObjectOutputStream; import org.jfree.chart.internal.SerialUtils;
import java.io.*; import org.jfree.chart.internal.*;
[ "java.io", "org.jfree.chart" ]
java.io; org.jfree.chart;
1,590,761
MavenArchiveConfiguration getArchive();
MavenArchiveConfiguration getArchive();
/** * The maven archive configuration to use. * * @return the maven archive configuration */
The maven archive configuration to use
getArchive
{ "repo_name": "mcculls/maven-plugins", "path": "maven-war-plugin/src/main/java/org/apache/maven/plugins/war/packaging/WarPackagingContext.java", "license": "apache-2.0", "size": 6083 }
[ "org.apache.maven.archiver.MavenArchiveConfiguration" ]
import org.apache.maven.archiver.MavenArchiveConfiguration;
import org.apache.maven.archiver.*;
[ "org.apache.maven" ]
org.apache.maven;
1,596,735
public Builder add(@CompileTimeConstant String value) { return addObjectInternal(value); }
Builder function(@CompileTimeConstant String value) { return addObjectInternal(value); }
/** * Adds a constant-value string. * * <p>Prefer this over its dynamic cousin, as using static strings saves memory. */
Adds a constant-value string. Prefer this over its dynamic cousin, as using static strings saves memory
add
{ "repo_name": "davidzchen/bazel", "path": "src/main/java/com/google/devtools/build/lib/analysis/actions/CustomCommandLine.java", "license": "apache-2.0", "size": 49300 }
[ "com.google.errorprone.annotations.CompileTimeConstant" ]
import com.google.errorprone.annotations.CompileTimeConstant;
import com.google.errorprone.annotations.*;
[ "com.google.errorprone" ]
com.google.errorprone;
420,280
public static ParserInputSource create(String content, PathFragment path) { return create(content.toCharArray(), path); }
static ParserInputSource function(String content, PathFragment path) { return create(content.toCharArray(), path); }
/** * Create an input source from the given content, and associate path with * this source. Path will be used in error messages etc. but we will *never* * attempt to read the content from path. */
Create an input source from the given content, and associate path with this source. Path will be used in error messages etc. but we will *never attempt to read the content from path
create
{ "repo_name": "juhalindfors/bazel-patches", "path": "src/main/java/com/google/devtools/build/lib/syntax/ParserInputSource.java", "license": "apache-2.0", "size": 2842 }
[ "com.google.devtools.build.lib.vfs.PathFragment" ]
import com.google.devtools.build.lib.vfs.PathFragment;
import com.google.devtools.build.lib.vfs.*;
[ "com.google.devtools" ]
com.google.devtools;
123,130
@Deprecated // See https://groups.google.com/d/msg/jenkinsci-dev/kRobm-cxFw8/6V66uhibAwAJ public boolean isPinningForcingOldVersion() { return false; } @Extension public final static PluginWrapperAdministrativeMonitor NOTICE = new PluginWrapperAdministrativeMonitor(); public stati...
@Deprecated boolean function() { return false; } public final static PluginWrapperAdministrativeMonitor NOTICE = new PluginWrapperAdministrativeMonitor(); public static final class PluginWrapperAdministrativeMonitor extends AdministrativeMonitor { private final Map<String, PluginWrapper> plugins = new HashMap<>();
/** * Checks if this plugin is pinned and that's forcing us to use an older version than the bundled one. */
Checks if this plugin is pinned and that's forcing us to use an older version than the bundled one
isPinningForcingOldVersion
{ "repo_name": "patbos/jenkins", "path": "core/src/main/java/hudson/PluginWrapper.java", "license": "mit", "size": 46479 }
[ "hudson.model.AdministrativeMonitor", "java.util.HashMap", "java.util.Map" ]
import hudson.model.AdministrativeMonitor; import java.util.HashMap; import java.util.Map;
import hudson.model.*; import java.util.*;
[ "hudson.model", "java.util" ]
hudson.model; java.util;
1,183,666
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<PrivateZoneInner> createOrUpdateAsync( String resourceGroupName, String privateZoneName, PrivateZoneInner parameters, String ifMatch, String ifNoneMatch, Context context) { return beginCreateOrUpdate...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PrivateZoneInner> function( String resourceGroupName, String privateZoneName, PrivateZoneInner parameters, String ifMatch, String ifNoneMatch, Context context) { return beginCreateOrUpdateAsync(resourceGroupName, privateZoneName, parameters, ifMatch, ifNoneMatch, context...
/** * Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records within the zone. * * @param resourceGroupName The name of the resource group. * @param privateZoneName The name of the Private DNS zone (without a terminating dot). * @param parameters Describe...
Creates or updates a Private DNS zone. Does not modify Links to virtual networks or DNS records within the zone
createOrUpdateAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-privatedns/src/main/java/com/azure/resourcemanager/privatedns/implementation/PrivateZonesClientImpl.java", "license": "mit", "size": 94762 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.util.Context", "com.azure.resourcemanager.privatedns.fluent.models.PrivateZoneInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.util.Context; import com.azure.resourcemanager.privatedns.fluent.models.PrivateZoneInner;
import com.azure.core.annotation.*; import com.azure.core.util.*; import com.azure.resourcemanager.privatedns.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,493,418
public ScriptNode aquireContainer(final String componentId) { return this.aquireContainer(componentId, null, null); }
ScriptNode function(final String componentId) { return this.aquireContainer(componentId, null, null); }
/** * Gets and if missing, creates a new site container. The Site container is created in a new readwrite txn. * * @param componentId component id * @return ScriptNode the created container */
Gets and if missing, creates a new site container. The Site container is created in a new readwrite txn
aquireContainer
{ "repo_name": "nguyentienlong/community-edition", "path": "projects/repository/source/java/org/alfresco/repo/site/script/Site.java", "license": "lgpl-3.0", "size": 39399 }
[ "org.alfresco.repo.jscript.ScriptNode" ]
import org.alfresco.repo.jscript.ScriptNode;
import org.alfresco.repo.jscript.*;
[ "org.alfresco.repo" ]
org.alfresco.repo;
1,902,999
public OneResponse release() { return action("release"); }
OneResponse function() { return action(STR); }
/** * Releases a virtual machine from hold state. * @return If an error occurs the error message contains the reason. */
Releases a virtual machine from hold state
release
{ "repo_name": "Terradue/one", "path": "src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java", "license": "apache-2.0", "size": 38638 }
[ "org.opennebula.client.OneResponse" ]
import org.opennebula.client.OneResponse;
import org.opennebula.client.*;
[ "org.opennebula.client" ]
org.opennebula.client;
2,424,496
public Node next() { return nextNode(); }
Node function() { return nextNode(); }
/** * Returns the next node. */
Returns the next node
next
{ "repo_name": "dwango/quercus", "path": "src/main/java/com/caucho/xpath/pattern/NodeListIterator.java", "license": "gpl-2.0", "size": 2180 }
[ "org.w3c.dom.Node" ]
import org.w3c.dom.Node;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
1,802,359
protected void emit_CurveTo_CKeyword_0_0_or_CKeyword_0_1(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
void function(EObject semanticObject, ISynNavigable transition, List<INode> nodes) { acceptNodes(transition, nodes); }
/** * Syntax: * 'c' | 'C' */
Syntax: 'c' | 'C'
emit_CurveTo_CKeyword_0_0_or_CKeyword_0_1
{ "repo_name": "niksavis/mm-dsl", "path": "org.xtext.nv.dsl/src-gen/org/xtext/nv/dsl/serializer/MMDSLSyntacticSequencer.java", "license": "epl-1.0", "size": 16434 }
[ "java.util.List", "org.eclipse.emf.ecore.EObject", "org.eclipse.xtext.nodemodel.INode", "org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider" ]
import java.util.List; import org.eclipse.emf.ecore.EObject; import org.eclipse.xtext.nodemodel.INode; import org.eclipse.xtext.serializer.analysis.ISyntacticSequencerPDAProvider;
import java.util.*; import org.eclipse.emf.ecore.*; import org.eclipse.xtext.nodemodel.*; import org.eclipse.xtext.serializer.analysis.*;
[ "java.util", "org.eclipse.emf", "org.eclipse.xtext" ]
java.util; org.eclipse.emf; org.eclipse.xtext;
2,282,327
public SequenceGenerator<Entity<T>> getOrCreateSequenceGenerator() { Node node = childNode.getOrCreate("sequence-generator"); SequenceGenerator<Entity<T>> sequenceGenerator = new SequenceGeneratorImpl<Entity<T>>(this, "sequence-generator", childNode, node); return sequenceGenerator; }
SequenceGenerator<Entity<T>> function() { Node node = childNode.getOrCreate(STR); SequenceGenerator<Entity<T>> sequenceGenerator = new SequenceGeneratorImpl<Entity<T>>(this, STR, childNode, node); return sequenceGenerator; }
/** * If not already created, a new <code>sequence-generator</code> element with the given value will be created. * Otherwise, the existing <code>sequence-generator</code> element will be returned. * @return a new or existing instance of <code>SequenceGenerator<Entity<T>></code> */
If not already created, a new <code>sequence-generator</code> element with the given value will be created. Otherwise, the existing <code>sequence-generator</code> element will be returned
getOrCreateSequenceGenerator
{ "repo_name": "forge/javaee-descriptors", "path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/orm20/EntityImpl.java", "license": "epl-1.0", "size": 48316 }
[ "org.jboss.shrinkwrap.descriptor.api.orm20.Entity", "org.jboss.shrinkwrap.descriptor.api.orm20.SequenceGenerator", "org.jboss.shrinkwrap.descriptor.spi.node.Node" ]
import org.jboss.shrinkwrap.descriptor.api.orm20.Entity; import org.jboss.shrinkwrap.descriptor.api.orm20.SequenceGenerator; import org.jboss.shrinkwrap.descriptor.spi.node.Node;
import org.jboss.shrinkwrap.descriptor.api.orm20.*; import org.jboss.shrinkwrap.descriptor.spi.node.*;
[ "org.jboss.shrinkwrap" ]
org.jboss.shrinkwrap;
2,411,452
public void setStructParent(int key) { getCOSStream().setInt(COSName.STRUCT_PARENT, key); } /** * {@inheritDoc}
void function(int key) { getCOSStream().setInt(COSName.STRUCT_PARENT, key); } /** * {@inheritDoc}
/** * Sets the key of this XObject in the structural parent tree. * @param key the new key for this XObject */
Sets the key of this XObject in the structural parent tree
setStructParent
{ "repo_name": "benmccann/pdfbox", "path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/image/PDImageXObject.java", "license": "apache-2.0", "size": 20092 }
[ "org.apache.pdfbox.cos.COSName" ]
import org.apache.pdfbox.cos.COSName;
import org.apache.pdfbox.cos.*;
[ "org.apache.pdfbox" ]
org.apache.pdfbox;
499,369
public static void closeMessageConsumer(MessageConsumer consumer) { if (consumer != null) { // Clear interruptions to ensure that the consumer closes successfully... // (working around misbehaving JMS providers such as ActiveMQ) boolean wasInterrupted = Thread.interrupted(); try { consumer.close();...
static void function(MessageConsumer consumer) { if (consumer != null) { boolean wasInterrupted = Thread.interrupted(); try { consumer.close(); } catch (JMSException ex) { logger.trace(STR, ex); } catch (Throwable ex) { logger.trace(STR, ex); } finally { if (wasInterrupted) { Thread.currentThread().interrupt(); } } } }
/** * Close the given JMS MessageConsumer and ignore any thrown exception. * This is useful for typical <code>finally</code> blocks in manual JMS code. * @param consumer the JMS MessageConsumer to close (may be <code>null</code>) */
Close the given JMS MessageConsumer and ignore any thrown exception. This is useful for typical <code>finally</code> blocks in manual JMS code
closeMessageConsumer
{ "repo_name": "cbeams-archive/spring-framework-2.5.x", "path": "src/org/springframework/jms/support/JmsUtils.java", "license": "apache-2.0", "size": 11089 }
[ "javax.jms.JMSException", "javax.jms.MessageConsumer" ]
import javax.jms.JMSException; import javax.jms.MessageConsumer;
import javax.jms.*;
[ "javax.jms" ]
javax.jms;
1,971,513
private static boolean checkNonBlankUsername(final Context context, final String username) { if (StringUtils.isBlank(username)) { ActivityMixin.showToast(context, R.string.warn_no_username); return false; } return true; }
static boolean function(final Context context, final String username) { if (StringUtils.isBlank(username)) { ActivityMixin.showToast(context, R.string.warn_no_username); return false; } return true; }
/** * Check if a given username is valid (non blank), and show a toast if it isn't. * * @param context an activity * @param username the username to check * @return <tt>true</tt> if the username is not blank, <tt>false</tt> otherwise */
Check if a given username is valid (non blank), and show a toast if it isn't
checkNonBlankUsername
{ "repo_name": "tobiasge/cgeo", "path": "main/src/cgeo/geocaching/CacheListActivity.java", "license": "apache-2.0", "size": 92799 }
[ "android.content.Context", "org.apache.commons.lang3.StringUtils" ]
import android.content.Context; import org.apache.commons.lang3.StringUtils;
import android.content.*; import org.apache.commons.lang3.*;
[ "android.content", "org.apache.commons" ]
android.content; org.apache.commons;
1,106,305
@Override public FileVisitResult preVisitDirectory(Path path, BasicFileAttributes attributes) throws IOException { logger.info("filename: " + path.toFile().getName()); boolean accept = fileFilter.accept(path.toFile()); if (accept) { if (logger.isDebugEnabled()) { ...
FileVisitResult function(Path path, BasicFileAttributes attributes) throws IOException { logger.info(STR + path.toFile().getName()); boolean accept = fileFilter.accept(path.toFile()); if (accept) { if (logger.isDebugEnabled()) { logger.debug(STR + path); } return FileVisitResult.CONTINUE; } else { if (logger.isDebugEna...
/** * FileVisitor method that determines if we should visit the directory or not via the fileFilter. */
FileVisitor method that determines if we should visit the directory or not via the fileFilter
preVisitDirectory
{ "repo_name": "paxtonhare/marklogic-data-hub", "path": "marklogic-data-hub/src/main/java/com/marklogic/hub/RestAssetLoader.java", "license": "apache-2.0", "size": 6307 }
[ "java.io.IOException", "java.nio.file.FileVisitResult", "java.nio.file.Path", "java.nio.file.attribute.BasicFileAttributes" ]
import java.io.IOException; import java.nio.file.FileVisitResult; import java.nio.file.Path; import java.nio.file.attribute.BasicFileAttributes;
import java.io.*; import java.nio.file.*; import java.nio.file.attribute.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
1,135,123
private static void writeRows(Table table) throws IOException { final byte[] family = Bytes.toBytes(COL_FAM); final byte[] value = Bytes.toBytes("abcd"); final byte[] col1 = Bytes.toBytes(COL1); final byte[] col2 = Bytes.toBytes(COL2); final byte[] col3 = Bytes.toBytes(COMPOSITE_COLUMN); ...
static void function(Table table) throws IOException { final byte[] family = Bytes.toBytes(COL_FAM); final byte[] value = Bytes.toBytes("abcd"); final byte[] col1 = Bytes.toBytes(COL1); final byte[] col2 = Bytes.toBytes(COL2); final byte[] col3 = Bytes.toBytes(COMPOSITE_COLUMN); ArrayList<Put> rowsUpdate = new ArrayLis...
/** * Writes TOTAL_ROWS number of distinct rows in to the table. Few rows have * two columns, Few have one. * * @param table * @throws IOException */
Writes TOTAL_ROWS number of distinct rows in to the table. Few rows have two columns, Few have one
writeRows
{ "repo_name": "ZhangXFeng/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/mapreduce/TestRowCounter.java", "license": "apache-2.0", "size": 10274 }
[ "java.io.IOException", "java.util.ArrayList", "org.apache.hadoop.hbase.client.Put", "org.apache.hadoop.hbase.client.Table", "org.apache.hadoop.hbase.util.Bytes" ]
import java.io.IOException; import java.util.ArrayList; import org.apache.hadoop.hbase.client.Put; import org.apache.hadoop.hbase.client.Table; import org.apache.hadoop.hbase.util.Bytes;
import java.io.*; import java.util.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.util.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
2,094,232
public static ErrorStatus range(String errorInfo) { return new ErrorStatus("Error.range", errorInfo); } //------------------------------------------------------------------------- private ErrorStatus(String errorKey, String errorInfo) { this.errorKey = Objects.requireNonNull(errorK...
static ErrorStatus function(String errorInfo) { return new ErrorStatus(STR, errorInfo); } private ErrorStatus(String errorKey, String errorInfo) { this.errorKey = Objects.requireNonNull(errorKey, STR); this.errorInfo = Objects.requireNonNull(errorInfo, STR); }
/** * Creates an error status for range errors. * * @param errorInfo the additional information for display, not null * @return the result, not null */
Creates an error status for range errors
range
{ "repo_name": "JodaOrg/joda-beans-ui", "path": "src/main/java/org/joda/beans/ui/swing/component/ErrorStatus.java", "license": "apache-2.0", "size": 3934 }
[ "java.util.Objects" ]
import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
354,328
public UpdateRequestBuilder setDoc(Map<String, Object> source) { request.doc(source); return this; }
UpdateRequestBuilder function(Map<String, Object> source) { request.doc(source); return this; }
/** * Sets the doc to use for updates when a script is not specified. */
Sets the doc to use for updates when a script is not specified
setDoc
{ "repo_name": "ern/elasticsearch", "path": "server/src/main/java/org/elasticsearch/action/update/UpdateRequestBuilder.java", "license": "apache-2.0", "size": 12164 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,365,671
private void checkErrorStatus(SassLibrary.Sass_Context context) throws CompilationException { int status = SASS.sass_context_get_error_status(context); if (status != 0) { String file = SASS.sass_context_get_error_file(context); String message = SASS.sass_context_get_error_me...
void function(SassLibrary.Sass_Context context) throws CompilationException { int status = SASS.sass_context_get_error_status(context); if (status != 0) { String file = SASS.sass_context_get_error_file(context); String message = SASS.sass_context_get_error_message(context); throw new CompilationException(status, file +...
/** * Check the error status. * * @param context The sass context. * @throws CompilationException If the error status is not <em>0</em>. */
Check the error status
checkErrorStatus
{ "repo_name": "uhees/jsass", "path": "src/main/java/de/bit3/jsass/Compiler.java", "license": "mit", "size": 7115 }
[ "de.bit3.jsass.context.Context" ]
import de.bit3.jsass.context.Context;
import de.bit3.jsass.context.*;
[ "de.bit3.jsass" ]
de.bit3.jsass;
2,092,324
public Builder add(String key, String value) { if (result.applicationStats == null) { result.applicationStats = new HashMap<String, String>(); } result.applicationStats.put(key, value); return this; }
Builder function(String key, String value) { if (result.applicationStats == null) { result.applicationStats = new HashMap<String, String>(); } result.applicationStats.put(key, value); return this; }
/** * Add any application specific status data. */
Add any application specific status data
add
{ "repo_name": "Muktesh01/eureka", "path": "eureka-core/src/main/java/com/netflix/eureka/util/StatusInfo.java", "license": "apache-2.0", "size": 4435 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
429,563
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) { _savedSubject = subject; super.initialize(subject, callbackHandler, sharedState, options); // Check for unauthenticatedIdentity option. String name = (...
void function(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) { _savedSubject = subject; super.initialize(subject, callbackHandler, sharedState, options); String name = (String) options.get(STR); if( name != null ) { try { _unauthenticatedIdentity = createIdentity(name); logger.debug(STR...
/** * Initialize this LoginModule . * Save the received Subject to change it when commit() gets invoked. * * @param subject the Subject to be authenticated. * * @param callbackHandler a CallbackHandler for communicating * with the end user (prompting for user names and ...
Initialize this LoginModule . Save the received Subject to change it when commit() gets invoked
initialize
{ "repo_name": "atricore/josso1", "path": "agents/josso-jboss32-agent/src/main/java/org/josso/jb32/agent/JBossSSOGatewayLoginModule.java", "license": "lgpl-2.1", "size": 6857 }
[ "java.util.Map", "javax.security.auth.Subject", "javax.security.auth.callback.CallbackHandler" ]
import java.util.Map; import javax.security.auth.Subject; import javax.security.auth.callback.CallbackHandler;
import java.util.*; import javax.security.auth.*; import javax.security.auth.callback.*;
[ "java.util", "javax.security" ]
java.util; javax.security;
2,808,774
public static ImportContextBuilder crearContextoTipoExcel(ConfigurationFactory configurationFactory, String nombreEstrategia, String nombre, Integer[] numerosPaginas) { return createImportContextBuilder(configurationFactory, DefaultFileTypes.TIPO_EXCEL_97, nombreEstrategia, nombre, numerosPaginas); } privat...
static ImportContextBuilder function(ConfigurationFactory configurationFactory, String nombreEstrategia, String nombre, Integer[] numerosPaginas) { return createImportContextBuilder(configurationFactory, DefaultFileTypes.TIPO_EXCEL_97, nombreEstrategia, nombre, numerosPaginas); } private ConfigurationFactory configurat...
/** * Crea un contexto para la importacion de datos mediante un archivo de tipo excel {@link DefaultFileTypes#TIPO_EXCEL_97}. * Esta instancia se crea a partir del nombre de la estrategia, el nombre (o descripcion) de la importacion, y el numero * de paginas a procesar del excel. * * @param nombreEstrat...
Crea un contexto para la importacion de datos mediante un archivo de tipo excel <code>DefaultFileTypes#TIPO_EXCEL_97</code>. Esta instancia se crea a partir del nombre de la estrategia, el nombre (o descripcion) de la importacion, y el numero de paginas a procesar del excel
crearContextoTipoExcel
{ "repo_name": "salazarguille/odra-publics", "path": "odra-data-manager/src/main/java/ar/com/odra/data/builder/ImportContextBuilder.java", "license": "gpl-2.0", "size": 8123 }
[ "ar.com.odra.data.factory.ConfigurationFactory", "ar.com.odra.data.utils.DefaultFileTypes", "ar.com.odra.data.utils.FileTypeSupportable", "java.util.ArrayList", "java.util.List" ]
import ar.com.odra.data.factory.ConfigurationFactory; import ar.com.odra.data.utils.DefaultFileTypes; import ar.com.odra.data.utils.FileTypeSupportable; import java.util.ArrayList; import java.util.List;
import ar.com.odra.data.factory.*; import ar.com.odra.data.utils.*; import java.util.*;
[ "ar.com.odra", "java.util" ]
ar.com.odra; java.util;
2,604,439
private Status testUARTSystemDefined() { Status result = Status.passed("OK"); start("Checking possibility to create all UART devices from config and register with system defined ID"); int i = 0; Config initialConfig; Iterator<Config> devicesList = UARTDevices.iterator(); ...
Status function() { Status result = Status.passed("OK"); start(STR); int i = 0; Config initialConfig; Iterator<Config> devicesList = UARTDevices.iterator(); ArrayList<Integer> registeredDevices = new ArrayList<>(); int newID; while (devicesList.hasNext()) { initialConfig = devicesList.next(); UARTConfig devCfg = initia...
/** * Testcase to verify possibility to create all UART devices from config and register with system defined ID * @return Status passed/failed */
Testcase to verify possibility to create all UART devices from config and register with system defined ID
testUARTSystemDefined
{ "repo_name": "cdealti/kura", "path": "target-platform/jdk.dio-parent/src/dev/test/jdk/dio/uart/UARTRegisterTest.java", "license": "epl-1.0", "size": 9286 }
[ "com.sun.javatest.Status", "java.io.IOException", "java.util.ArrayList", "java.util.Iterator" ]
import com.sun.javatest.Status; import java.io.IOException; import java.util.ArrayList; import java.util.Iterator;
import com.sun.javatest.*; import java.io.*; import java.util.*;
[ "com.sun.javatest", "java.io", "java.util" ]
com.sun.javatest; java.io; java.util;
821,468
public void sendSignalShort(int dataId, short signalValue){ outputStream.println("Sending short integer signal. ID: " + dataId + " Value: " + signalValue); node.send(dataId, (new SCSShort(signalValue)).getData()); }
void function(int dataId, short signalValue){ outputStream.println(STR + dataId + STR + signalValue); node.send(dataId, (new SCSShort(signalValue)).getData()); }
/** * Send a SDP message with a short integer. * @param dataId AGA signal ID number * @param signalValue value */
Send a SDP message with a short integer
sendSignalShort
{ "repo_name": "caran/AGAAdapter", "path": "src/test/java/com/caran/agaadapter/AGAMockBase.java", "license": "bsd-3-clause", "size": 10255 }
[ "android.swedspot.scs.data.SCSShort" ]
import android.swedspot.scs.data.SCSShort;
import android.swedspot.scs.data.*;
[ "android.swedspot" ]
android.swedspot;
1,627,727
public FileUploaderBinder getFileUploaderBinder();
FileUploaderBinder function();
/** * To be invoked when the parent activity is fully created to get a reference * to the FileUploader service API. */
To be invoked when the parent activity is fully created to get a reference to the FileUploader service API
getFileUploaderBinder
{ "repo_name": "LukeOwncloud/android", "path": "src/com/owncloud/android/ui/activity/ComponentsGetter.java", "license": "gpl-2.0", "size": 1915 }
[ "com.owncloud.android.files.services.FileUploader" ]
import com.owncloud.android.files.services.FileUploader;
import com.owncloud.android.files.services.*;
[ "com.owncloud.android" ]
com.owncloud.android;
1,168,493
public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), getName()); }
KeyNamePair function() { return new KeyNamePair(get_ID(), getName()); }
/** Get Record ID/ColumnName @return ID/ColumnName pair */
Get Record ID/ColumnName
getKeyNamePair
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/X_M_CostType.java", "license": "gpl-2.0", "size": 4280 }
[ "org.compiere.util.KeyNamePair" ]
import org.compiere.util.KeyNamePair;
import org.compiere.util.*;
[ "org.compiere.util" ]
org.compiere.util;
2,169,436
public static String getKeyString(Query query, Result result, Entry<String, Object> values, List<String> typeNames) { StringBuilder sb = new StringBuilder(); addClassName(result, sb); sb.append("."); addTypeName(query, result, typeNames, sb); addKeyString(result, values, sb); return sb.toString(); }
static String function(Query query, Result result, Entry<String, Object> values, List<String> typeNames) { StringBuilder sb = new StringBuilder(); addClassName(result, sb); sb.append("."); addTypeName(query, result, typeNames, sb); addKeyString(result, values, sb); return sb.toString(); }
/** * Gets the key string, without rootPrefix nor Alias * * @param query * the query * @param result * the result * @param values * the values * @param typeNames * the type names * @return the key string */
Gets the key string, without rootPrefix nor Alias
getKeyString
{ "repo_name": "airbnb/jmxtrans", "path": "src/com/googlecode/jmxtrans/util/JmxUtils.java", "license": "mit", "size": 28684 }
[ "com.googlecode.jmxtrans.model.Query", "com.googlecode.jmxtrans.model.Result", "java.util.List", "java.util.Map" ]
import com.googlecode.jmxtrans.model.Query; import com.googlecode.jmxtrans.model.Result; import java.util.List; import java.util.Map;
import com.googlecode.jmxtrans.model.*; import java.util.*;
[ "com.googlecode.jmxtrans", "java.util" ]
com.googlecode.jmxtrans; java.util;
2,193,661
Long installServer42FlowRttInputFlow(DatapathId dpid, int server42Port, int customerPort, MacAddress server42MacAddress) throws SwitchOperationException;
Long installServer42FlowRttInputFlow(DatapathId dpid, int server42Port, int customerPort, MacAddress server42MacAddress) throws SwitchOperationException;
/** * Install Server 42 input rule which will send Ping packet into pre ingress table. * * @param dpid datapathId of the switch * @param server42Port server 42 port * @param customerPort rule marks Ping packet by metadata to emulate that packet was received from customer port * @param serv...
Install Server 42 input rule which will send Ping packet into pre ingress table
installServer42FlowRttInputFlow
{ "repo_name": "telstra/open-kilda", "path": "src-java/floodlight-service/floodlight-modules/src/main/java/org/openkilda/floodlight/switchmanager/ISwitchManager.java", "license": "apache-2.0", "size": 28894 }
[ "org.openkilda.floodlight.error.SwitchOperationException", "org.openkilda.model.MacAddress", "org.projectfloodlight.openflow.types.DatapathId" ]
import org.openkilda.floodlight.error.SwitchOperationException; import org.openkilda.model.MacAddress; import org.projectfloodlight.openflow.types.DatapathId;
import org.openkilda.floodlight.error.*; import org.openkilda.model.*; import org.projectfloodlight.openflow.types.*;
[ "org.openkilda.floodlight", "org.openkilda.model", "org.projectfloodlight.openflow" ]
org.openkilda.floodlight; org.openkilda.model; org.projectfloodlight.openflow;
1,562,277
public void init( RuntimeServices rs ) throws Exception;
void function( RuntimeServices rs ) throws Exception;
/** * Initializes this LogSystem. * @param rs * @throws Exception */
Initializes this LogSystem
init
{ "repo_name": "stefanofornari/velocity", "path": "src/java/org/apache/velocity/runtime/log/LogSystem.java", "license": "apache-2.0", "size": 2049 }
[ "org.apache.velocity.runtime.RuntimeServices" ]
import org.apache.velocity.runtime.RuntimeServices;
import org.apache.velocity.runtime.*;
[ "org.apache.velocity" ]
org.apache.velocity;
2,512,400
public ConfiguredRuleClassProvider getRuleClassProvider() { return ruleClassProvider; }
ConfiguredRuleClassProvider function() { return ruleClassProvider; }
/** * Returns the rule class provider. */
Returns the rule class provider
getRuleClassProvider
{ "repo_name": "whuwxl/bazel", "path": "src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java", "license": "apache-2.0", "size": 51481 }
[ "com.google.devtools.build.lib.analysis.ConfiguredRuleClassProvider" ]
import com.google.devtools.build.lib.analysis.ConfiguredRuleClassProvider;
import com.google.devtools.build.lib.analysis.*;
[ "com.google.devtools" ]
com.google.devtools;
1,226,525
public void loadCanteen() { AsyncGETRequester get = new AsyncGETRequester(new AsyncGETRequester.PostExecuteJob() {
void function() { AsyncGETRequester get = new AsyncGETRequester(new AsyncGETRequester.PostExecuteJob() {
/** * Loads the canteen information from the canteen resource which * is identified via the url. */
Loads the canteen information from the canteen resource which is identified via the url
loadCanteen
{ "repo_name": "QULab/MoCCha-Android", "path": "Moccha-Android/src/de/tel/moccha/activities/fragments/canteen/CanteenFragment.java", "license": "apache-2.0", "size": 5065 }
[ "de.zell.android.util.async.AsyncGETRequester" ]
import de.zell.android.util.async.AsyncGETRequester;
import de.zell.android.util.async.*;
[ "de.zell.android" ]
de.zell.android;
2,428,316
@ManagedAttribute public boolean isClosed() {return state == State.CLOSED;}
@ManagedAttribute public boolean isClosed() {return state == State.CLOSED;}
/** * Determines whether the channel is in the connecting state; this means {@link Channel#connect(String)} has been * called, but hasn't returned yet * @return true if the channel is in the connecting state, false otherwise */
Determines whether the channel is in the connecting state; this means <code>Channel#connect(String)</code> has been called, but hasn't returned yet
isConnecting
{ "repo_name": "tekcomms/JGroups", "path": "src/org/jgroups/Channel.java", "license": "apache-2.0", "size": 20599 }
[ "org.jgroups.annotations.ManagedAttribute" ]
import org.jgroups.annotations.ManagedAttribute;
import org.jgroups.annotations.*;
[ "org.jgroups.annotations" ]
org.jgroups.annotations;
2,244,023
private void createWindowsMenuItems(JMenu menu) { Set viewers = TreeViewerFactory.getViewers(); Iterator i = viewers.iterator(); menu.removeAll(); while (i.hasNext()) menu.add(new JMenuItem( new ActivationAction((TreeViewer) i.next()))); }
void function(JMenu menu) { Set viewers = TreeViewerFactory.getViewers(); Iterator i = viewers.iterator(); menu.removeAll(); while (i.hasNext()) menu.add(new JMenuItem( new ActivationAction((TreeViewer) i.next()))); }
/** * Creates the windowsMenuItems. * * @param menu The menu to handle. */
Creates the windowsMenuItems
createWindowsMenuItems
{ "repo_name": "tp81/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerControl.java", "license": "gpl-2.0", "size": 59385 }
[ "java.util.Iterator", "java.util.Set", "javax.swing.JMenu", "javax.swing.JMenuItem", "org.openmicroscopy.shoola.agents.treeviewer.actions.ActivationAction" ]
import java.util.Iterator; import java.util.Set; import javax.swing.JMenu; import javax.swing.JMenuItem; import org.openmicroscopy.shoola.agents.treeviewer.actions.ActivationAction;
import java.util.*; import javax.swing.*; import org.openmicroscopy.shoola.agents.treeviewer.actions.*;
[ "java.util", "javax.swing", "org.openmicroscopy.shoola" ]
java.util; javax.swing; org.openmicroscopy.shoola;
7,410
@Generated @Selector("alternativeSubstrings") public native NSArray<String> alternativeSubstrings();
@Selector(STR) native NSArray<String> function();
/** * Other possible interpretations of this segment */
Other possible interpretations of this segment
alternativeSubstrings
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/speech/SFTranscriptionSegment.java", "license": "apache-2.0", "size": 6734 }
[ "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
1,794,509
public Texts getTexts() { return texts; }
Texts function() { return texts; }
/** * Returns the texts resources for the dialog. * * @return the {@link Texts} resources. */
Returns the texts resources for the dialog
getTexts
{ "repo_name": "devent/prefdialog", "path": "prefdialog-dialog/src/main/java/com/anrisoftware/prefdialog/simpledialog/SimpleDialog.java", "license": "gpl-3.0", "size": 24685 }
[ "com.anrisoftware.resources.texts.api.Texts" ]
import com.anrisoftware.resources.texts.api.Texts;
import com.anrisoftware.resources.texts.api.*;
[ "com.anrisoftware.resources" ]
com.anrisoftware.resources;
466,674
protected void beforeSending() { // Store access info in HTTP headers Access.getAccess(context, headers); }
void function() { Access.getAccess(context, headers); }
/** * This is executed before executing a request. * By default it loads the stored access info into the HTTP headers. */
This is executed before executing a request. By default it loads the stored access info into the HTTP headers
beforeSending
{ "repo_name": "ChasingPictures/front-end", "path": "ChasingPictures/app/src/main/java/de/fu_berlin/cdv/chasingpictures/api/ApiRequest.java", "license": "mit", "size": 5032 }
[ "de.fu_berlin.cdv.chasingpictures.security.Access" ]
import de.fu_berlin.cdv.chasingpictures.security.Access;
import de.fu_berlin.cdv.chasingpictures.security.*;
[ "de.fu_berlin.cdv" ]
de.fu_berlin.cdv;
1,133,638
void setCurrentFocusElement(final SVGElement svgElement) { this._currentFocusedElement = svgElement; }
void setCurrentFocusElement(final SVGElement svgElement) { this._currentFocusedElement = svgElement; }
/** * Sets the currently focused element * * @param svgElement * The SVGElement for which to set the focus */
Sets the currently focused element
setCurrentFocusElement
{ "repo_name": "blackberry/JDE-Samples", "path": "com/rim/samples/device/svg/svgformsdemo/SVGPanel.java", "license": "apache-2.0", "size": 5519 }
[ "org.w3c.dom.svg.SVGElement" ]
import org.w3c.dom.svg.SVGElement;
import org.w3c.dom.svg.*;
[ "org.w3c.dom" ]
org.w3c.dom;
2,541,525
public static ServiceType checkService( URL serviceURL ) { return checkService(serviceURL, null, null); }
static ServiceType function( URL serviceURL ) { return checkService(serviceURL, null, null); }
/** * checks the service type. * * @param serviceURL the service url * @return the type of service; null if failed */
checks the service type
checkService
{ "repo_name": "Intevation/downloadclient", "path": "src/main/java/de/bayern/gdi/utils/ServiceChecker.java", "license": "apache-2.0", "size": 10261 }
[ "de.bayern.gdi.services.ServiceType" ]
import de.bayern.gdi.services.ServiceType;
import de.bayern.gdi.services.*;
[ "de.bayern.gdi" ]
de.bayern.gdi;
1,257,927
@Test public void testCustomFactoryInvalidPropertyName() { final PlatformJavaObjectFactoryProxy proxy = proxyForCustom(NO_DFLT_CTOR_FACTORY_CLS_NAME, Collections.singletonMap("invalid", (Object)1));
void function() { final PlatformJavaObjectFactoryProxy proxy = proxyForCustom(NO_DFLT_CTOR_FACTORY_CLS_NAME, Collections.singletonMap(STR, (Object)1));
/** * Test object creation with invalid property name. */
Test object creation with invalid property name
testCustomFactoryInvalidPropertyName
{ "repo_name": "NSAmelchev/ignite", "path": "modules/core/src/test/java/org/apache/ignite/platform/PlatformJavaObjectFactoryProxySelfTest.java", "license": "apache-2.0", "size": 8052 }
[ "java.util.Collections", "org.apache.ignite.internal.processors.platform.PlatformJavaObjectFactoryProxy" ]
import java.util.Collections; import org.apache.ignite.internal.processors.platform.PlatformJavaObjectFactoryProxy;
import java.util.*; import org.apache.ignite.internal.processors.platform.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
98,572
public static Fetchino fromConfig(InputStream configInputStream) { return fromConfig(Document.fromInputStream(configInputStream)); }
static Fetchino function(InputStream configInputStream) { return fromConfig(Document.fromInputStream(configInputStream)); }
/** * Creates a {@code Fetchino} instance from a configuration file. * * @param configInputStream The input stream of the configuration file. * @return A new {@code Fetchino} instance. */
Creates a Fetchino instance from a configuration file
fromConfig
{ "repo_name": "barkbeetle/Fetchino", "path": "src/main/java/fetchino/main/Fetchino.java", "license": "apache-2.0", "size": 4733 }
[ "java.io.InputStream" ]
import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
707,024
public Set<FileArtifact> selectByName(String name) { List<FileArtifact> result = new ArrayList<FileArtifact>(); Pattern pattern; try { pattern = Pattern.compile(name); } catch (PatternSyntaxException e) { pattern = null; } selectByName(pattern,...
Set<FileArtifact> function(String name) { List<FileArtifact> result = new ArrayList<FileArtifact>(); Pattern pattern; try { pattern = Pattern.compile(name); } catch (PatternSyntaxException e) { pattern = null; } selectByName(pattern, name, result); return new ListSet<FileArtifact>(result, FileArtifact.class); }
/** * Does name selection of artifacts. * * @param name the regular name pattern for artifact selection * @return the selected artifacts */
Does name selection of artifacts
selectByName
{ "repo_name": "SSEHUB/EASyProducer", "path": "Plugins/Instantiation/de.uni_hildesheim.sse.easy.instantiatorCore/src/net/ssehub/easy/instantiation/core/model/artifactModel/ArtifactModel.java", "license": "apache-2.0", "size": 21106 }
[ "java.util.ArrayList", "java.util.List", "java.util.regex.Pattern", "java.util.regex.PatternSyntaxException", "net.ssehub.easy.instantiation.core.model.vilTypes.ListSet", "net.ssehub.easy.instantiation.core.model.vilTypes.Set" ]
import java.util.ArrayList; import java.util.List; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; import net.ssehub.easy.instantiation.core.model.vilTypes.ListSet; import net.ssehub.easy.instantiation.core.model.vilTypes.Set;
import java.util.*; import java.util.regex.*; import net.ssehub.easy.instantiation.core.model.*;
[ "java.util", "net.ssehub.easy" ]
java.util; net.ssehub.easy;
1,068,413
public static PathMatcher matchOnlyRegularFilesAnd(final PathMatcher condition) { return new RestrictToRegularFiles(condition); } private final PathMatcher condition; private final ImmutableList.Builder<Path> found; private FindFiles(final PathMatcher condition) { found = ImmutableList.builder(); ...
static PathMatcher function(final PathMatcher condition) { return new RestrictToRegularFiles(condition); } private final PathMatcher condition; private final ImmutableList.Builder<Path> found; private FindFiles(final PathMatcher condition) { found = ImmutableList.builder(); this.condition = condition; }
/** * Create a composite path matcher with the given condition. The result will match only if the * input is a {@link Files#isRegularFile(Path, LinkOption...) regular files} <strong>and</strong> * matches the supplied delegate condition. * * @param condition other match condition * @return composite m...
Create a composite path matcher with the given condition. The result will match only if the input is a <code>Files#isRegularFile(Path, LinkOption...) regular files</code> and matches the supplied delegate condition
matchOnlyRegularFilesAnd
{ "repo_name": "pyranja/asio", "path": "common/src/main/java/at/ac/univie/isc/asio/tool/FindFiles.java", "license": "apache-2.0", "size": 3519 }
[ "com.google.common.collect.ImmutableList", "java.nio.file.Path", "java.nio.file.PathMatcher" ]
import com.google.common.collect.ImmutableList; import java.nio.file.Path; import java.nio.file.PathMatcher;
import com.google.common.collect.*; import java.nio.file.*;
[ "com.google.common", "java.nio" ]
com.google.common; java.nio;
225,634
public static String getStackTraceString(Throwable throwable, Locale locale) { return getStackTraceString(null, throwable, locale); }
static String function(Throwable throwable, Locale locale) { return getStackTraceString(null, throwable, locale); }
/** * Returns the message string in the specified locale containing the * supplied throwable and its stack trace. * * @param throwable * the throwable whose stack trace is to be printed * @param locale * the local to use for printing * * @retur...
Returns the message string in the specified locale containing the supplied throwable and its stack trace
getStackTraceString
{ "repo_name": "ivanpribela/svetovid-lib", "path": "src/org/svetovid/SvetovidException.java", "license": "apache-2.0", "size": 16386 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
2,615,219
@SuppressWarnings("overloads") public synchronized Topology addSource(final AutoOffsetReset offsetReset, final String name, final TimestampExtractor timestampExtractor, final Deserial...
@SuppressWarnings(STR) synchronized Topology function(final AutoOffsetReset offsetReset, final String name, final TimestampExtractor timestampExtractor, final Deserializer<?> keyDeserializer, final Deserializer<?> valueDeserializer, final String... topics) { internalTopologyBuilder.addSource(offsetReset, name, timestam...
/** * Add a new source that consumes the named topics and forwards the records to child processor and/or sink nodes. * The source will use the specified key and value deserializers. * * @param offsetReset the auto offset reset policy to use for this stream if no committed offsets found; ...
Add a new source that consumes the named topics and forwards the records to child processor and/or sink nodes. The source will use the specified key and value deserializers
addSource
{ "repo_name": "Chasego/kafka", "path": "streams/src/main/java/org/apache/kafka/streams/Topology.java", "license": "apache-2.0", "size": 60372 }
[ "org.apache.kafka.common.serialization.Deserializer", "org.apache.kafka.streams.processor.TimestampExtractor" ]
import org.apache.kafka.common.serialization.Deserializer; import org.apache.kafka.streams.processor.TimestampExtractor;
import org.apache.kafka.common.serialization.*; import org.apache.kafka.streams.processor.*;
[ "org.apache.kafka" ]
org.apache.kafka;
561,870
protected static void writeRecord(ARCWriter writer, String url, String type, int len, ByteArrayInputStream bais) throws IOException { writer.write(url, type, "192.168.1.1", (new Date()).getTime(), len, bais, false); }
static void function(ARCWriter writer, String url, String type, int len, ByteArrayInputStream bais) throws IOException { writer.write(url, type, STR, (new Date()).getTime(), len, bais, false); }
/** * Writes a record, suppressing normal length-checks (so that * intentionally malformed records may be written). */
Writes a record, suppressing normal length-checks (so that intentionally malformed records may be written)
writeRecord
{ "repo_name": "iipc/webarchive-commons", "path": "src/test/java/org/archive/io/arc/ARCWriterTest.java", "license": "apache-2.0", "size": 25199 }
[ "java.io.ByteArrayInputStream", "java.io.IOException", "java.util.Date" ]
import java.io.ByteArrayInputStream; import java.io.IOException; import java.util.Date;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
875,445
public void recoverUserIdentityWithEmail(String userName) throws IdentityMgtServiceException { int tenantId; try { tenantId = Utils.getTenantId(MultitenantUtils.getTenantDomain(userName)); UserStoreManager userStoreManager = IdentityMgtServiceComponent.get...
void function(String userName) throws IdentityMgtServiceException { int tenantId; try { tenantId = Utils.getTenantId(MultitenantUtils.getTenantDomain(userName)); UserStoreManager userStoreManager = IdentityMgtServiceComponent.getRealmService() .getTenantUserRealm(tenantId) .getUserStoreManager(); char[] tempPassword = ...
/** * Recovers the account with user email * TODO : what if the user name is invalid, send the error code over mail. TODO : store the temp in metadata, DONOT update. * * @param userName * @throws IdentityMgtServiceException */
Recovers the account with user email TODO : what if the user name is invalid, send the error code over mail. TODO : store the temp in metadata, DONOT update
recoverUserIdentityWithEmail
{ "repo_name": "pulasthi7/carbon-identity", "path": "components/identity-mgt/org.wso2.carbon.identity.mgt/src/main/java/org/wso2/carbon/identity/mgt/services/UserIdentityManagementService.java", "license": "apache-2.0", "size": 20853 }
[ "org.wso2.carbon.identity.base.IdentityException", "org.wso2.carbon.identity.mgt.IdentityMgtConfig", "org.wso2.carbon.identity.mgt.IdentityMgtServiceException", "org.wso2.carbon.identity.mgt.beans.UserIdentityMgtBean", "org.wso2.carbon.identity.mgt.internal.IdentityMgtServiceComponent", "org.wso2.carbon.i...
import org.wso2.carbon.identity.base.IdentityException; import org.wso2.carbon.identity.mgt.IdentityMgtConfig; import org.wso2.carbon.identity.mgt.IdentityMgtServiceException; import org.wso2.carbon.identity.mgt.beans.UserIdentityMgtBean; import org.wso2.carbon.identity.mgt.internal.IdentityMgtServiceComponent; import ...
import org.wso2.carbon.identity.base.*; import org.wso2.carbon.identity.mgt.*; import org.wso2.carbon.identity.mgt.beans.*; import org.wso2.carbon.identity.mgt.internal.*; import org.wso2.carbon.identity.mgt.util.*; import org.wso2.carbon.user.api.*; import org.wso2.carbon.utils.multitenancy.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
1,921,656
@org.junit.Test public void testAES256ElementRSAKWCipherUsingKEK() throws Exception { Document d = document(); // source Document ed = null; Document dd = null; Element e = (Element) d.getElementsByTagName(element()).item(index()); Element ee = null; String sour...
@org.junit.Test void function() throws Exception { Document d = document(); Document ed = null; Document dd = null; Element e = (Element) d.getElementsByTagName(element()).item(index()); Element ee = null; String source = null; String target = null; if (haveISOPadding) { source = toString(d); KeyPairGenerator rsaKeygen...
/** * Test encryption using a generated AES 256 bit key that is * encrypted using an RSA key. Reverse using KEK */
Test encryption using a generated AES 256 bit key that is encrypted using an RSA key. Reverse using KEK
testAES256ElementRSAKWCipherUsingKEK
{ "repo_name": "Legostaev/xmlsec-gost", "path": "src/test/java/org/apache/xml/security/test/dom/encryption/XMLCipherTest.java", "license": "apache-2.0", "size": 38995 }
[ "java.security.Key", "java.security.KeyPair", "java.security.KeyPairGenerator", "java.security.PrivateKey", "java.security.PublicKey", "javax.crypto.KeyGenerator", "org.apache.xml.security.encryption.EncryptedData", "org.apache.xml.security.encryption.EncryptedKey", "org.apache.xml.security.encrypti...
import java.security.Key; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.PrivateKey; import java.security.PublicKey; import javax.crypto.KeyGenerator; import org.apache.xml.security.encryption.EncryptedData; import org.apache.xml.security.encryption.EncryptedKey; import org.ap...
import java.security.*; import javax.crypto.*; import org.apache.xml.security.encryption.*; import org.apache.xml.security.keys.*; import org.w3c.dom.*;
[ "java.security", "javax.crypto", "org.apache.xml", "org.w3c.dom" ]
java.security; javax.crypto; org.apache.xml; org.w3c.dom;
1,858,212
@Test() public void testConstructorAllNotNullMultipleWraps() throws Exception { IntermediateClientRequestValue innerDownstreamRequest = new IntermediateClientRequestValue(null, null, false, null, "browser", null, null); innerDownstreamRequest ...
@Test() void function() throws Exception { IntermediateClientRequestValue innerDownstreamRequest = new IntermediateClientRequestValue(null, null, false, null, STR, null, null); innerDownstreamRequest = IntermediateClientRequestValue.decode(innerDownstreamRequest.encode()); assertNotNull(innerDownstreamRequest); assertN...
/** * Tests the constructor with all elements set to non-{@code null} values and * multiple levels of wrapping. * * @throws Exception If an unexpected problem occurs. */
Tests the constructor with all elements set to non-null values and multiple levels of wrapping
testConstructorAllNotNullMultipleWraps
{ "repo_name": "UnboundID/ldapsdk", "path": "tests/unit/src/com/unboundid/ldap/sdk/unboundidds/controls/IntermediateClientRequestValueTestCase.java", "license": "gpl-2.0", "size": 17102 }
[ "org.testng.annotations.Test" ]
import org.testng.annotations.Test;
import org.testng.annotations.*;
[ "org.testng.annotations" ]
org.testng.annotations;
1,371,788
protected Event getEvent() { return event; }
Event function() { return event; }
/** * Returns the event * * @return the event */
Returns the event
getEvent
{ "repo_name": "knopflerfish/knopflerfish.org", "path": "osgi/bundles/event/src/org/knopflerfish/bundle/event/InternalAdminEvent.java", "license": "bsd-3-clause", "size": 8275 }
[ "org.osgi.service.event.Event" ]
import org.osgi.service.event.Event;
import org.osgi.service.event.*;
[ "org.osgi.service" ]
org.osgi.service;
540,501
public void testHashcode() { YIntervalRenderer r1 = new YIntervalRenderer(); YIntervalRenderer r2 = new YIntervalRenderer(); assertTrue(r1.equals(r2)); int h1 = r1.hashCode(); int h2 = r2.hashCode(); assertEquals(h1, h2); }
void function() { YIntervalRenderer r1 = new YIntervalRenderer(); YIntervalRenderer r2 = new YIntervalRenderer(); assertTrue(r1.equals(r2)); int h1 = r1.hashCode(); int h2 = r2.hashCode(); assertEquals(h1, h2); }
/** * Two objects that are equal are required to return the same hashCode. */
Two objects that are equal are required to return the same hashCode
testHashcode
{ "repo_name": "SpoonLabs/astor", "path": "examples/chart_11/tests/org/jfree/chart/renderer/xy/junit/YIntervalRendererTests.java", "license": "gpl-2.0", "size": 10187 }
[ "org.jfree.chart.renderer.xy.YIntervalRenderer" ]
import org.jfree.chart.renderer.xy.YIntervalRenderer;
import org.jfree.chart.renderer.xy.*;
[ "org.jfree.chart" ]
org.jfree.chart;
1,221,841
public Iterator<Order> getOrders() { Optional<URL> ordersUrl = getJSON().get(KEY_ORDERS).optional().map(Value::asURL); if (!ordersUrl.isPresent()) { // Let's Encrypt does not provide this field at the moment although it's required. // See https://github.com/letsencrypt/boulde...
Iterator<Order> function() { Optional<URL> ordersUrl = getJSON().get(KEY_ORDERS).optional().map(Value::asURL); if (!ordersUrl.isPresent()) { throw new AcmeProtocolException(STR); } return new ResourceIterator<>(getLogin(), KEY_ORDERS, ordersUrl.get(), Login::bindOrder); }
/** * Returns an {@link Iterator} of all {@link Order} belonging to this {@link Account}. * <p> * Using the iterator will initiate one or more requests to the ACME server. * * @return {@link Iterator} instance that returns {@link Order} objects in no specific * order. {@link Iterat...
Returns an <code>Iterator</code> of all <code>Order</code> belonging to this <code>Account</code>. Using the iterator will initiate one or more requests to the ACME server
getOrders
{ "repo_name": "shred/acme4j", "path": "acme4j-client/src/main/java/org/shredzone/acme4j/Account.java", "license": "apache-2.0", "size": 12544 }
[ "java.util.Iterator", "java.util.Optional", "org.shredzone.acme4j.connector.ResourceIterator", "org.shredzone.acme4j.exception.AcmeProtocolException", "org.shredzone.acme4j.toolbox.JSON" ]
import java.util.Iterator; import java.util.Optional; import org.shredzone.acme4j.connector.ResourceIterator; import org.shredzone.acme4j.exception.AcmeProtocolException; import org.shredzone.acme4j.toolbox.JSON;
import java.util.*; import org.shredzone.acme4j.connector.*; import org.shredzone.acme4j.exception.*; import org.shredzone.acme4j.toolbox.*;
[ "java.util", "org.shredzone.acme4j" ]
java.util; org.shredzone.acme4j;
2,093,054
public List<List<HashMap<String, String>>> parse(JSONObject jObject) { List<List<HashMap<String, String>>> routes = new ArrayList<List<HashMap<String, String>>>(); JSONArray jRoutes = null; JSONArray jLegs = null; JSONArray jSteps = null; try { jRoutes = jObjec...
List<List<HashMap<String, String>>> function(JSONObject jObject) { List<List<HashMap<String, String>>> routes = new ArrayList<List<HashMap<String, String>>>(); JSONArray jRoutes = null; JSONArray jLegs = null; JSONArray jSteps = null; try { jRoutes = jObject.getJSONArray(STR); for (int i = 0; i < jRoutes.length(); i++)...
/** * Receives a JSONObject and returns a list of lists containing latitude and longitude */
Receives a JSONObject and returns a list of lists containing latitude and longitude
parse
{ "repo_name": "rpahade3011/What-sNearby", "path": "app/src/main/java/com/nearby/whatsnearby/places/DirectionsJSONParser.java", "license": "apache-2.0", "size": 3299 }
[ "com.google.android.gms.maps.model.LatLng", "java.util.ArrayList", "java.util.HashMap", "java.util.List", "org.json.JSONArray", "org.json.JSONException", "org.json.JSONObject" ]
import com.google.android.gms.maps.model.LatLng; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject;
import com.google.android.gms.maps.model.*; import java.util.*; import org.json.*;
[ "com.google.android", "java.util", "org.json" ]
com.google.android; java.util; org.json;
1,675,442
public int queryScalar(String query) throws SQLException { return queryScalar(query, true); }
int function(String query) throws SQLException { return queryScalar(query, true); }
/** * Convenience method for querying the database for a single integer result. * * @param query The raw SQL query to use. * @return The integer result of the query. */
Convenience method for querying the database for a single integer result
queryScalar
{ "repo_name": "banxi1988/Anki-Android", "path": "src/com/ichi2/anki/AnkiDb.java", "license": "gpl-3.0", "size": 11700 }
[ "android.database.SQLException" ]
import android.database.SQLException;
import android.database.*;
[ "android.database" ]
android.database;
797,374
public int read (byte[] bytes) throws KryoException { return read(bytes, 0, bytes.length); }
int function (byte[] bytes) throws KryoException { return read(bytes, 0, bytes.length); }
/** Reads bytes.length bytes or less and writes them to the specified byte[], starting at 0, and returns the number of bytes * read. */
Reads bytes.length bytes or less and writes them to the specified byte[], starting at 0, and returns the number of bytes
read
{ "repo_name": "hepin1989/kryo", "path": "src/com/esotericsoftware/kryo/io/Input.java", "license": "bsd-3-clause", "size": 28241 }
[ "com.esotericsoftware.kryo.KryoException" ]
import com.esotericsoftware.kryo.KryoException;
import com.esotericsoftware.kryo.*;
[ "com.esotericsoftware.kryo" ]
com.esotericsoftware.kryo;
889,746
public void setIndeterminateProgress(final String label, final int completed, final int total) { SwingUtilities.invokeLater(new Runnable() {
void function(final String label, final int completed, final int total) { SwingUtilities.invokeLater(new Runnable() {
/** * Sets the progress in the status bar using intermediate mode. Executed on the EDT. * * @param label * @param completed * @param total */
Sets the progress in the status bar using intermediate mode. Executed on the EDT
setIndeterminateProgress
{ "repo_name": "rapidminer/rapidminer-studio", "path": "src/main/java/com/rapidminer/gui/tools/StatusBar.java", "license": "agpl-3.0", "size": 11398 }
[ "javax.swing.SwingUtilities" ]
import javax.swing.SwingUtilities;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,797,926
static boolean isControlStructure(Node n) { switch (n.getType()) { case Token.FOR: case Token.DO: case Token.WHILE: case Token.WITH: case Token.IF: case Token.LABEL: case Token.TRY: case Token.CATCH: case Token.SWITCH: case Token.CASE: case Token.D...
static boolean isControlStructure(Node n) { switch (n.getType()) { case Token.FOR: case Token.DO: case Token.WHILE: case Token.WITH: case Token.IF: case Token.LABEL: case Token.TRY: case Token.CATCH: case Token.SWITCH: case Token.CASE: case Token.DEFAULT: return true; default: return false; } }
/** * Determines whether the given node is a FOR, DO, WHILE, WITH, or IF node. */
Determines whether the given node is a FOR, DO, WHILE, WITH, or IF node
isControlStructure
{ "repo_name": "ehsan/js-symbolic-executor", "path": "closure-compiler/src/com/google/javascript/jscomp/NodeUtil.java", "license": "apache-2.0", "size": 63706 }
[ "com.google.javascript.rhino.Node", "com.google.javascript.rhino.Token" ]
import com.google.javascript.rhino.Node; import com.google.javascript.rhino.Token;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
1,183,257
public GenericValue create(GenericValue value) throws GenericEntityException;
GenericValue function(GenericValue value) throws GenericEntityException;
/** Creates a Entity in the form of a GenericValue and write it to the database *@return GenericValue instance containing the new instance */
Creates a Entity in the form of a GenericValue and write it to the database
create
{ "repo_name": "yuri0x7c1/ofbiz-explorer", "path": "src/test/resources/apache-ofbiz-17.12.04/framework/entity/src/main/java/org/apache/ofbiz/entity/datasource/GenericHelper.java", "license": "apache-2.0", "size": 7763 }
[ "org.apache.ofbiz.entity.GenericEntityException", "org.apache.ofbiz.entity.GenericValue" ]
import org.apache.ofbiz.entity.GenericEntityException; import org.apache.ofbiz.entity.GenericValue;
import org.apache.ofbiz.entity.*;
[ "org.apache.ofbiz" ]
org.apache.ofbiz;
523,294
public static File getResDir(File aarDir) { return new File(aarDir, SdkConstants.FD_RES); }
static File function(File aarDir) { return new File(aarDir, SdkConstants.FD_RES); }
/** * Returns path to the resource folder in aarDir. It's not guaranteed the jar exists, so caller * need to check the existence of aarDir and resource folder. */
Returns path to the resource folder in aarDir. It's not guaranteed the jar exists, so caller need to check the existence of aarDir and resource folder
getResDir
{ "repo_name": "bazelbuild/intellij", "path": "aswb/src/com/google/idea/blaze/android/libraries/UnpackedAarUtils.java", "license": "apache-2.0", "size": 3872 }
[ "com.android.SdkConstants", "java.io.File" ]
import com.android.SdkConstants; import java.io.File;
import com.android.*; import java.io.*;
[ "com.android", "java.io" ]
com.android; java.io;
1,913,076
public GenericXmlElementHandler getHandler(XMLStreamReader xmlReader, TextSource<?> source, Class<? extends GenericXmlCapableDef> currentDefinition, String tag, boolean isInte...
GenericXmlElementHandler function(XMLStreamReader xmlReader, TextSource<?> source, Class<? extends GenericXmlCapableDef> currentDefinition, String tag, boolean isInternalNamespace) { GenericXmlValidator validator = getValidator(currentDefinition, tag, isInternalNamespace); return validator == null ? null : new GenericX...
/** * Given a parentTag and the element name, returns a handler to handle the eleemnt and any children * * @return a handler or null if unable to handle the tag. */
Given a parentTag and the element name, returns a handler to handle the eleemnt and any children
getHandler
{ "repo_name": "madmax983/aura", "path": "aura-impl/src/main/java/org/auraframework/impl/root/parser/handler/genericxml/GenericXmlElementHandlerProvider.java", "license": "apache-2.0", "size": 4188 }
[ "javax.xml.stream.XMLStreamReader", "org.auraframework.def.genericxml.GenericXmlCapableDef", "org.auraframework.def.genericxml.GenericXmlValidator", "org.auraframework.system.TextSource" ]
import javax.xml.stream.XMLStreamReader; import org.auraframework.def.genericxml.GenericXmlCapableDef; import org.auraframework.def.genericxml.GenericXmlValidator; import org.auraframework.system.TextSource;
import javax.xml.stream.*; import org.auraframework.def.genericxml.*; import org.auraframework.system.*;
[ "javax.xml", "org.auraframework.def", "org.auraframework.system" ]
javax.xml; org.auraframework.def; org.auraframework.system;
2,010,343
public static PcepLabelDbVerTlv read(ChannelBuffer c) { return PcepLabelDbVerTlv.of(c.readLong()); }
static PcepLabelDbVerTlv function(ChannelBuffer c) { return PcepLabelDbVerTlv.of(c.readLong()); }
/** * Reads the channel buffer and returns object of PcepLabelDbVerTlv. * * @param c input channel buffer * @return object of PcepLabelDbVerTlv */
Reads the channel buffer and returns object of PcepLabelDbVerTlv
read
{ "repo_name": "chinghanyu/onos", "path": "pcep/pcepio/src/main/java/org/onosproject/pcepio/types/PcepLabelDbVerTlv.java", "license": "apache-2.0", "size": 3428 }
[ "org.jboss.netty.buffer.ChannelBuffer" ]
import org.jboss.netty.buffer.ChannelBuffer;
import org.jboss.netty.buffer.*;
[ "org.jboss.netty" ]
org.jboss.netty;
934,534
static boolean isUnlimitedStrengthJurisdictionPolicyInstalled() throws NoSuchAlgorithmException { return Cipher.getMaxAllowedKeyLength("AES") == Integer.MAX_VALUE; }
static boolean isUnlimitedStrengthJurisdictionPolicyInstalled() throws NoSuchAlgorithmException { return Cipher.getMaxAllowedKeyLength("AES") == Integer.MAX_VALUE; }
/** * Checks whether Oracle Unlimited Strength Jurisdiction Policy is installed * Based on http://stackoverflow.com/a/8607735 * * @return {@code true} if Unlimited Strength Jurisdiction Policy is installed * @throws NoSuchAlgorithmException */
Checks whether Oracle Unlimited Strength Jurisdiction Policy is installed Based on HREF
isUnlimitedStrengthJurisdictionPolicyInstalled
{ "repo_name": "dashorst/wicket", "path": "wicket-util/src/test/java/org/apache/wicket/util/crypt/SunJceCryptTest.java", "license": "apache-2.0", "size": 2735 }
[ "java.security.NoSuchAlgorithmException", "javax.crypto.Cipher" ]
import java.security.NoSuchAlgorithmException; import javax.crypto.Cipher;
import java.security.*; import javax.crypto.*;
[ "java.security", "javax.crypto" ]
java.security; javax.crypto;
2,170,780
if (this.isEntityInvulnerable()) { return false; } else if ("fireball".equals(par1DamageSource.getDamageType()) && par1DamageSource.getEntity() instanceof EntityPlayer) { super.attackEntityFrom(par1DamageSource, 1000.0F); ((EntityPlayer) par1DamageSource.getEntity()).triggerA...
if (this.isEntityInvulnerable()) { return false; } else if (STR.equals(par1DamageSource.getDamageType()) && par1DamageSource.getEntity() instanceof EntityPlayer) { super.attackEntityFrom(par1DamageSource, 1000.0F); ((EntityPlayer) par1DamageSource.getEntity()).triggerAchievement(AchievementList.ghast); return true; } e...
/** * Called when the entity is attacked. */
Called when the entity is attacked
attackEntityFrom
{ "repo_name": "DirectCodeGraveyard/Minetweak", "path": "src/main/java/net/minecraft/entity/EntityGhast.java", "license": "lgpl-3.0", "size": 9198 }
[ "net.minecraft.player.achievement.AchievementList", "net.minecraft.src.DamageSource" ]
import net.minecraft.player.achievement.AchievementList; import net.minecraft.src.DamageSource;
import net.minecraft.player.achievement.*; import net.minecraft.src.*;
[ "net.minecraft.player", "net.minecraft.src" ]
net.minecraft.player; net.minecraft.src;
357,855
private boolean isTypeNotSpecified(TypeLiteral typeLiteral, ConfigurationException ce) { Collection<Message> messages = ce.getErrorMessages(); if (messages.size() == 1) { Message msg = Iterables.getOnlyElement( new Errors().keyNotFullySpecified(typeLiteral).getMessages()); return msg.get...
boolean function(TypeLiteral typeLiteral, ConfigurationException ce) { Collection<Message> messages = ce.getErrorMessages(); if (messages.size() == 1) { Message msg = Iterables.getOnlyElement( new Errors().keyNotFullySpecified(typeLiteral).getMessages()); return msg.getMessage().equals(Iterables.getOnlyElement(messages...
/** * Returns true if the ConfigurationException is due to an error of TypeLiteral not being fully * specified. */
Returns true if the ConfigurationException is due to an error of TypeLiteral not being fully specified
isTypeNotSpecified
{ "repo_name": "fizzy33/guice3", "path": "extensions/assistedinject/src/com/google/inject/assistedinject/FactoryProvider2.java", "license": "apache-2.0", "size": 27073 }
[ "com.google.inject.ConfigurationException", "com.google.inject.TypeLiteral", "com.google.inject.internal.Errors", "com.google.inject.internal.util.Iterables", "com.google.inject.spi.Message", "java.util.Collection" ]
import com.google.inject.ConfigurationException; import com.google.inject.TypeLiteral; import com.google.inject.internal.Errors; import com.google.inject.internal.util.Iterables; import com.google.inject.spi.Message; import java.util.Collection;
import com.google.inject.*; import com.google.inject.internal.*; import com.google.inject.internal.util.*; import com.google.inject.spi.*; import java.util.*;
[ "com.google.inject", "java.util" ]
com.google.inject; java.util;
906,160
ContextTag contextTag = FrameworkUtils.getContextTag(pageContext); if (contextTag == null) throw new JspTagException("<tolog:query> must be nested directly or" + " indirectly within a <tolog:context> tag, but no" + " <tolog:context> tag was found."); contextTag.getContextMana...
ContextTag contextTag = FrameworkUtils.getContextTag(pageContext); if (contextTag == null) throw new JspTagException(STR + STR + STR); contextTag.getContextManager().pushScope(); if (name == null) throw new JspTagException(STR + STR); return EVAL_BODY_BUFFERED; }
/** * Process the start tag for this instance. */
Process the start tag for this instance
doStartTag
{ "repo_name": "ontopia/ontopia", "path": "ontopia-navigator/src/main/java/net/ontopia/topicmaps/nav2/taglibs/tolog/QueryTag.java", "license": "apache-2.0", "size": 3978 }
[ "javax.servlet.jsp.JspTagException", "net.ontopia.topicmaps.nav2.taglibs.logic.ContextTag", "net.ontopia.topicmaps.nav2.utils.FrameworkUtils" ]
import javax.servlet.jsp.JspTagException; import net.ontopia.topicmaps.nav2.taglibs.logic.ContextTag; import net.ontopia.topicmaps.nav2.utils.FrameworkUtils;
import javax.servlet.jsp.*; import net.ontopia.topicmaps.nav2.taglibs.logic.*; import net.ontopia.topicmaps.nav2.utils.*;
[ "javax.servlet", "net.ontopia.topicmaps" ]
javax.servlet; net.ontopia.topicmaps;
1,130,726
protected int pickRandomVertex(AdjacencyList list) { ArrayList<Integer> verticesList = new ArrayList<>(list.getVertices().keySet()); return verticesList.get(random.nextInt(verticesList.size())); }
int function(AdjacencyList list) { ArrayList<Integer> verticesList = new ArrayList<>(list.getVertices().keySet()); return verticesList.get(random.nextInt(verticesList.size())); }
/** * Pick a vertex randomly * @param list * @return */
Pick a vertex randomly
pickRandomVertex
{ "repo_name": "franciscoy/algorithms", "path": "src/main/java/algorithm/graph/KargerMinCut.java", "license": "apache-2.0", "size": 3806 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
253,479
public boolean execSPARQLAsk(String query){ QueryExecution qexec = QueryExecutionFactory.create( query, getModel() ); boolean result = false; try{ result = qexec.execAsk(); } finally { qexec.close(); } return result; }
boolean function(String query){ QueryExecution qexec = QueryExecutionFactory.create( query, getModel() ); boolean result = false; try{ result = qexec.execAsk(); } finally { qexec.close(); } return result; }
/** * Executes an Ask SPARQL Query. * * @param query The query to execute. * * @return The resulting snapshot. */
Executes an Ask SPARQL Query
execSPARQLAsk
{ "repo_name": "ox-it/gaboto", "path": "src/main/java/net/sf/gaboto/GabotoSnapshot.java", "license": "bsd-3-clause", "size": 15861 }
[ "com.hp.hpl.jena.query.QueryExecution", "com.hp.hpl.jena.query.QueryExecutionFactory" ]
import com.hp.hpl.jena.query.QueryExecution; import com.hp.hpl.jena.query.QueryExecutionFactory;
import com.hp.hpl.jena.query.*;
[ "com.hp.hpl" ]
com.hp.hpl;
2,245,785
public ExpressRouteServiceProviderInner withBandwidthsOffered(List<ExpressRouteServiceProviderBandwidthsOffered> bandwidthsOffered) { this.bandwidthsOffered = bandwidthsOffered; return this; }
ExpressRouteServiceProviderInner function(List<ExpressRouteServiceProviderBandwidthsOffered> bandwidthsOffered) { this.bandwidthsOffered = bandwidthsOffered; return this; }
/** * Set a list of bandwidths offered. * * @param bandwidthsOffered the bandwidthsOffered value to set * @return the ExpressRouteServiceProviderInner object itself. */
Set a list of bandwidths offered
withBandwidthsOffered
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/network/v2020_06_01/implementation/ExpressRouteServiceProviderInner.java", "license": "mit", "size": 3547 }
[ "com.microsoft.azure.management.network.v2020_06_01.ExpressRouteServiceProviderBandwidthsOffered", "java.util.List" ]
import com.microsoft.azure.management.network.v2020_06_01.ExpressRouteServiceProviderBandwidthsOffered; import java.util.List;
import com.microsoft.azure.management.network.v2020_06_01.*; import java.util.*;
[ "com.microsoft.azure", "java.util" ]
com.microsoft.azure; java.util;
352,885
EAttribute getLanguage_Xtext();
EAttribute getLanguage_Xtext();
/** * Returns the meta object for the attribute list '{@link fr.inria.diverse.melange.metamodel.melange.Language#getXtext <em>Xtext</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute list '<em>Xtext</em>'. * @see fr.inria.diverse.melange.metamodel.melange.Lan...
Returns the meta object for the attribute list '<code>fr.inria.diverse.melange.metamodel.melange.Language#getXtext Xtext</code>'.
getLanguage_Xtext
{ "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.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
359,592
@Test public void internalDetach() throws IOException { tester.startPage(MockPageWithFormAndUploadField.class); File tmp = null; try { // Write out a large text file. We need to make this file reasonably sizable, // because things get handled using input streams, and we want to check to make // s...
void function() throws IOException { tester.startPage(MockPageWithFormAndUploadField.class); File tmp = null; try { tmp = writeTestFile(1000); FormTester formtester = tester.newFormTester("form"); formtester.setFile(STR, tmp, STR); formtester.submit(); MockPageWithFormAndUploadField page = (MockPageWithFormAndUploadFie...
/** * Test that detach closes the streams * * @throws IOException * ' */
Test that detach closes the streams
internalDetach
{ "repo_name": "afiantara/apache-wicket-1.5.7", "path": "src/wicket-core/src/test/java/org/apache/wicket/markup/html/form/upload/FileUploadFieldTest.java", "license": "apache-2.0", "size": 6298 }
[ "java.io.IOException", "java.io.InputStream", "org.apache.wicket.util.file.File", "org.apache.wicket.util.tester.FormTester" ]
import java.io.IOException; import java.io.InputStream; import org.apache.wicket.util.file.File; import org.apache.wicket.util.tester.FormTester;
import java.io.*; import org.apache.wicket.util.file.*; import org.apache.wicket.util.tester.*;
[ "java.io", "org.apache.wicket" ]
java.io; org.apache.wicket;
597,398
@Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) { if (list != null && list.size() > position) onItemClick(list.get(position)); }
void function(AdapterView<?> parent, View view, int position, long id) { if (list != null && list.size() > position) onItemClick(list.get(position)); }
/** * Callback method to be invoked when an item in this AdapterView has * been clicked. * <p/> * Implementers can call getItemAtPosition(position) if they need * to access the data associated with the selected item. * * @param parent The AdapterView where the click happened. *...
Callback method to be invoked when an item in this AdapterView has been clicked. Implementers can call getItemAtPosition(position) if they need to access the data associated with the selected item
onItemClick
{ "repo_name": "pvarry/intra42", "path": "app/src/main/java/com/paulvarry/intra42/ui/BasicFragmentCallRecycler.java", "license": "apache-2.0", "size": 8040 }
[ "android.view.View", "android.widget.AdapterView" ]
import android.view.View; import android.widget.AdapterView;
import android.view.*; import android.widget.*;
[ "android.view", "android.widget" ]
android.view; android.widget;
940,738
protected XMLSignatureInput enginePerformTransform(XMLSignatureInput input, Transform _transformObject) throws TransformationException { CachedXPathAPIHolder.setDoc(_transformObject.getElement().getOwnerDocument()); try { List<NodeList> unionNodes=new ArrayList<NodeList>(); ...
XMLSignatureInput function(XMLSignatureInput input, Transform _transformObject) throws TransformationException { CachedXPathAPIHolder.setDoc(_transformObject.getElement().getOwnerDocument()); try { List<NodeList> unionNodes=new ArrayList<NodeList>(); List<NodeList> substractNodes=new ArrayList<NodeList>(); List<NodeLis...
/** * Method enginePerformTransform * @inheritDoc * @param input * * @throws TransformationException */
Method enginePerformTransform
enginePerformTransform
{ "repo_name": "karianna/jdk8_tl", "path": "jdk/src/share/classes/com/sun/org/apache/xml/internal/security/transforms/implementations/TransformXPath2Filter.java", "license": "gpl-2.0", "size": 10872 }
[ "com.sun.org.apache.xml.internal.security.c14n.CanonicalizationException", "com.sun.org.apache.xml.internal.security.c14n.InvalidCanonicalizerException", "com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException", "com.sun.org.apache.xml.internal.security.signature.NodeFilter", "com.sun.org....
import com.sun.org.apache.xml.internal.security.c14n.CanonicalizationException; import com.sun.org.apache.xml.internal.security.c14n.InvalidCanonicalizerException; import com.sun.org.apache.xml.internal.security.exceptions.XMLSecurityException; import com.sun.org.apache.xml.internal.security.signature.NodeFilter; impor...
import com.sun.org.apache.xml.internal.security.c14n.*; import com.sun.org.apache.xml.internal.security.exceptions.*; import com.sun.org.apache.xml.internal.security.signature.*; import com.sun.org.apache.xml.internal.security.transforms.*; import com.sun.org.apache.xml.internal.security.transforms.params.*; import com...
[ "com.sun.org", "java.io", "java.util", "javax.xml", "org.w3c.dom", "org.xml.sax" ]
com.sun.org; java.io; java.util; javax.xml; org.w3c.dom; org.xml.sax;
482,816
private void removeArcs(Integer n1, Integer n2, boolean directed) { if (n1 == null || n2 == null) return; Iterator<Arc> it; if (directed) it = getOutputArcsIterator(n1); else it = getUndirectedNeighbourEdgesIterator(n1); if (it == null || !this.contains(n2)) // is null if !this.contain(n1) ret...
void function(Integer n1, Integer n2, boolean directed) { if (n1 == null n2 == null) return; Iterator<Arc> it; if (directed) it = getOutputArcsIterator(n1); else it = getUndirectedNeighbourEdgesIterator(n1); if (it == null !this.contains(n2)) return; while (it.hasNext()) { Arc a = it.next(); if ((directed && a.getOutpu...
/** * Remove every link between nodes n1 and n2. Remove directed arcs if * directed is True, undirected if not. Do nothing if n1 or n2 does not * belong to this. <br/> * * @param n1 * @param n2 * @param directed * @throws NodeNotContainedException * If n1 or n2 does not belong to this. ...
Remove every link between nodes n1 and n2. Remove directed arcs if directed is True, undirected if not. Do nothing if n1 or n2 does not belong to this.
removeArcs
{ "repo_name": "noormoha/DCCast", "path": "dccast/graphTheory/graph/Graph.java", "license": "mit", "size": 64339 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,258,657
@Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(TexturedsurfacePackage.Literals.TEXTURED_SURFACE_TYPE__APPEARANCE); } return childrenFeatures; }
Collection<? extends EStructuralFeature> function(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(TexturedsurfacePackage.Literals.TEXTURED_SURFACE_TYPE__APPEARANCE); } return childrenFeatures; }
/** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. * <!-- begin-user-...
This specifies how to implement <code>#getChildren</code> and is used to deduce an appropriate feature for an <code>org.eclipse.emf.edit.command.AddCommand</code>, <code>org.eclipse.emf.edit.command.RemoveCommand</code> or <code>org.eclipse.emf.edit.command.MoveCommand</code> in <code>#createCommand</code>.
getChildrenFeatures
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore.edit/src/net/opengis/citygml/texturedsurface/provider/TexturedSurfaceTypeItemProvider.java", "license": "apache-2.0", "size": 7108 }
[ "java.util.Collection", "net.opengis.citygml.texturedsurface.TexturedsurfacePackage", "org.eclipse.emf.ecore.EStructuralFeature" ]
import java.util.Collection; import net.opengis.citygml.texturedsurface.TexturedsurfacePackage; import org.eclipse.emf.ecore.EStructuralFeature;
import java.util.*; import net.opengis.citygml.texturedsurface.*; import org.eclipse.emf.ecore.*;
[ "java.util", "net.opengis.citygml", "org.eclipse.emf" ]
java.util; net.opengis.citygml; org.eclipse.emf;
1,599,912
public static Apcomplex[] allRoots(Apcomplex z, int n) throws ArithmeticException, ApfloatRuntimeException { if (n == 0) { throw new ArithmeticException("Zeroth root"); } else if (n == 1) { return new Apcomplex[] { z }; } ...
static Apcomplex[] function(Apcomplex z, int n) throws ArithmeticException, ApfloatRuntimeException { if (n == 0) { throw new ArithmeticException(STR); } else if (n == 1) { return new Apcomplex[] { z }; } else if (n == 0x80000000) { throw new ApfloatRuntimeException(STR); } else if (z.real().signum() == 0 && z.imag().s...
/** * All values of the positive integer root.<p> * * Returns all of the <code>n</code> values of the root, in the order * of the angle, starting from the smallest angle and same sign of * imaginary part as <code>z</code>. * * @param z The argument. * @param n Which root ...
All values of the positive integer root. Returns all of the <code>n</code> values of the root, in the order of the angle, starting from the smallest angle and same sign of imaginary part as <code>z</code>
allRoots
{ "repo_name": "mtommila/apfloat", "path": "apfloat/src/main/java/org/apfloat/ApcomplexMath.java", "license": "lgpl-2.1", "size": 64561 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
2,304,170
public boolean checkArgs(String[] args) { Validator.validateNotNull(args, "args"); if (NEEDED_ARGUMENTS >= 0 && args.length != NEEDED_ARGUMENTS) { return false; } if (NEEDED_ARGUMENTS <= 0 && FIXED_ARGUMENTS.length > args.length) { return false; } for (int i = 0; i < FIXED_ARGUMENTS.length; i++) { ...
boolean function(String[] args) { Validator.validateNotNull(args, "args"); if (NEEDED_ARGUMENTS >= 0 && args.length != NEEDED_ARGUMENTS) { return false; } if (NEEDED_ARGUMENTS <= 0 && FIXED_ARGUMENTS.length > args.length) { return false; } for (int i = 0; i < FIXED_ARGUMENTS.length; i++) { if (!args[i].equalsIgnoreCase...
/** * Checks if the argument should be called. * <p> * This method is intern required and can be ignored. * * @param args The string array with all the arguments. * @return <code>true</code> if should be called, else false. */
Checks if the argument should be called. This method is intern required and can be ignored
checkArgs
{ "repo_name": "BtoBastian/EpicSpleef", "path": "src/main/java/de/oppermann/bastian/spleef/util/command/AbstractArgument.java", "license": "lgpl-3.0", "size": 4446 }
[ "de.oppermann.bastian.spleef.util.Validator" ]
import de.oppermann.bastian.spleef.util.Validator;
import de.oppermann.bastian.spleef.util.*;
[ "de.oppermann.bastian" ]
de.oppermann.bastian;
1,121,467
@Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this.processRequest(request, response); }
void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this.processRequest(request, response); }
/** * 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": "afnogueira/Cerberus", "path": "source/src/main/java/org/cerberus/servlet/test/DeleteTest.java", "license": "gpl-3.0", "size": 6052 }
[ "java.io.IOException", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse" ]
import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import java.io.*; import javax.servlet.*; import javax.servlet.http.*;
[ "java.io", "javax.servlet" ]
java.io; javax.servlet;
400,794
public void setSources(final Collection<? extends Source> newValues) { sources = writeCollection(newValues, sources, Source.class); }
void function(final Collection<? extends Source> newValues) { sources = writeCollection(newValues, sources, Source.class); }
/** * Sets information about the source data used in creating the data specified by the scope. * * @param newValues The new sources. */
Sets information about the source data used in creating the data specified by the scope
setSources
{ "repo_name": "desruisseaux/sis", "path": "core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/lineage/DefaultLineage.java", "license": "apache-2.0", "size": 9790 }
[ "java.util.Collection", "org.opengis.metadata.lineage.Source" ]
import java.util.Collection; import org.opengis.metadata.lineage.Source;
import java.util.*; import org.opengis.metadata.lineage.*;
[ "java.util", "org.opengis.metadata" ]
java.util; org.opengis.metadata;
893,909
public static void writeTags(OutputStream out, Cell cell, int tagsLength) throws IOException { if (cell instanceof ByteBufferExtendedCell) { ByteBufferUtils.copyBufferToStream(out, ((ByteBufferExtendedCell) cell).getTagsByteBuffer(), ((ByteBufferExtendedCell) cell).getTagsPosition(), tagsLength); ...
static void function(OutputStream out, Cell cell, int tagsLength) throws IOException { if (cell instanceof ByteBufferExtendedCell) { ByteBufferUtils.copyBufferToStream(out, ((ByteBufferExtendedCell) cell).getTagsByteBuffer(), ((ByteBufferExtendedCell) cell).getTagsPosition(), tagsLength); } else { out.write(cell.getTag...
/** * Writes the tag from the given cell to the output stream * @param out The outputstream to which the data has to be written * @param cell The cell whose contents has to be written * @param tagsLength the tag length * @throws IOException */
Writes the tag from the given cell to the output stream
writeTags
{ "repo_name": "ChinmaySKulkarni/hbase", "path": "hbase-common/src/main/java/org/apache/hadoop/hbase/PrivateCellUtil.java", "license": "apache-2.0", "size": 99961 }
[ "java.io.IOException", "java.io.OutputStream", "org.apache.hadoop.hbase.util.ByteBufferUtils" ]
import java.io.IOException; import java.io.OutputStream; import org.apache.hadoop.hbase.util.ByteBufferUtils;
import java.io.*; import org.apache.hadoop.hbase.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
848,751
private HLog setupWALAndReplication() throws IOException { final Path oldLogDir = new Path(rootDir, HConstants.HREGION_OLDLOGDIR_NAME); Path logdir = new Path(rootDir, HLog.getHLogDirectoryName(this.serverNameFromMasterPOV.toString())); if (LOG.isDebugEnabled()) LOG.debug("logdir=" + logdir); if...
HLog function() throws IOException { final Path oldLogDir = new Path(rootDir, HConstants.HREGION_OLDLOGDIR_NAME); Path logdir = new Path(rootDir, HLog.getHLogDirectoryName(this.serverNameFromMasterPOV.toString())); if (LOG.isDebugEnabled()) LOG.debug(STR + logdir); if (this.fs.exists(logdir)) { throw new RegionServerRu...
/** * Setup WAL log and replication if enabled. * Replication setup is done in here because it wants to be hooked up to WAL. * @return A WAL instance. * @throws IOException */
Setup WAL log and replication if enabled. Replication setup is done in here because it wants to be hooked up to WAL
setupWALAndReplication
{ "repo_name": "indi60/hbase-pmc", "path": "target/hbase-0.94.1/hbase-0.94.1/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java", "license": "apache-2.0", "size": 131335 }
[ "java.io.IOException", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hbase.HConstants", "org.apache.hadoop.hbase.regionserver.wal.HLog" ]
import java.io.IOException; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.HConstants; import org.apache.hadoop.hbase.regionserver.wal.HLog;
import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.regionserver.wal.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,388,924