method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public static Font getFont(String name, int style, int size) {
int key = (name.hashCode()<<8)+(size<<2)+style;
Font f = null;
if ( (f=(Font)fontMap.get(key)) == null ) {
f = new Font(name, style, size);
fontMap.put(key, f);
misses++;
}
look... | static Font function(String name, int style, int size) { int key = (name.hashCode()<<8)+(size<<2)+style; Font f = null; if ( (f=(Font)fontMap.get(key)) == null ) { f = new Font(name, style, size); fontMap.put(key, f); misses++; } lookups++; return f; } | /**
* Get a Font instance with the given font family name, style, and size
* @param name the font name. Any font installed on your system should
* be valid. Common examples include "Arial", "Verdana", "Tahoma",
* "Times New Roman", "Georgia", and "Courier New".
* @param style the font style, su... | Get a Font instance with the given font family name, style, and size | getFont | {
"repo_name": "jchildress/Prefux",
"path": "src/main/java/pv/render/awt/Fonts.java",
"license": "bsd-3-clause",
"size": 3928
} | [
"java.awt.Font"
] | import java.awt.Font; | import java.awt.*; | [
"java.awt"
] | java.awt; | 1,616,823 |
public void testEchoStringWSGEN2_xmlchars() {
TestLogger.logger.debug("------------------------------");
TestLogger.logger.debug("Test : " + getName());
try{
String request = XMLCHARS;
DocLitWrap proxy = getProxy();
Stri... | void function() { TestLogger.logger.debug(STR); TestLogger.logger.debug(STR + getName()); try{ String request = XMLCHARS; DocLitWrap proxy = getProxy(); String response = proxy.echoStringWSGEN2(request); assertTrue(response.equals(request)); response = proxy.echoStringWSGEN2(request); assertTrue(response.equals(request... | /**
* This is a test of a doc/lit method that passes the
* response in a header. This can only be reproduced via
* annotations and WSGEN. WSImport will not allow this.
*/ | This is a test of a doc/lit method that passes the response in a header. This can only be reproduced via annotations and WSGEN. WSImport will not allow this | testEchoStringWSGEN2_xmlchars | {
"repo_name": "intalio/axis2",
"path": "modules/jaxws-integration/test/org/apache/axis2/jaxws/sample/WrapTests.java",
"license": "apache-2.0",
"size": 20731
} | [
"org.apache.axis2.jaxws.TestLogger",
"org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrap"
] | import org.apache.axis2.jaxws.TestLogger; import org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrap; | import org.apache.axis2.jaxws.*; import org.apache.axis2.jaxws.sample.wrap.sei.*; | [
"org.apache.axis2"
] | org.apache.axis2; | 586,717 |
String getPermissionProperty(EntityPlayer player, String permissionNode); | String getPermissionProperty(EntityPlayer player, String permissionNode); | /**
* Gets a permission-property for a player
*
* @param player
* @param permissionNode
* @return property, if it exists, null otherwise
*/ | Gets a permission-property for a player | getPermissionProperty | {
"repo_name": "planetguy32/ForgeEssentials",
"path": "src/main/java/com/forgeessentials/api/permissions/IPermissionsHelper.java",
"license": "epl-1.0",
"size": 12536
} | [
"net.minecraft.entity.player.EntityPlayer"
] | import net.minecraft.entity.player.EntityPlayer; | import net.minecraft.entity.player.*; | [
"net.minecraft.entity"
] | net.minecraft.entity; | 1,834,339 |
@Override
public Locale getLocale() {
return origResponse.getLocale();
} | Locale function() { return origResponse.getLocale(); } | /**
* Return the Locale assigned to this response.
*/ | Return the Locale assigned to this response | getLocale | {
"repo_name": "tootedom/tomcat-memcached-response-filter",
"path": "src/main/java/org/greencheek/web/filter/memcached/response/BufferedResponseWrapper.java",
"license": "apache-2.0",
"size": 4426
} | [
"java.util.Locale"
] | import java.util.Locale; | import java.util.*; | [
"java.util"
] | java.util; | 779,512 |
public GamePiece getPiece() {
if (c == null && pieceDefinition != null) {
final AddPiece comm =
(AddPiece) GameModule.getGameModule().decode(pieceDefinition);
if (comm == null) {
System.err.println("Couldn't build piece " + pieceDefinition);
pieceDefinition = null;
}
... | GamePiece function() { if (c == null && pieceDefinition != null) { final AddPiece comm = (AddPiece) GameModule.getGameModule().decode(pieceDefinition); if (comm == null) { System.err.println(STR + pieceDefinition); pieceDefinition = null; } else { c = comm.getTarget(); c.setState(comm.getState()); final Dimension size ... | /**
* Return defined GamePiece with prototypes unexpanded.
*
* @return unexpanded piece
*/ | Return defined GamePiece with prototypes unexpanded | getPiece | {
"repo_name": "rzymek/vassal-src",
"path": "src/VASSAL/build/widget/PieceSlot.java",
"license": "lgpl-2.1",
"size": 14886
} | [
"java.awt.Dimension",
"java.awt.Point"
] | import java.awt.Dimension; import java.awt.Point; | import java.awt.*; | [
"java.awt"
] | java.awt; | 601,401 |
public static CorrelationSet[] getVisibleCorrelationSets(EObject target) {
Map<String, CorrelationSet> name2CorrelationSet = new HashMap<String, CorrelationSet>();
addVisibleCorrelationSets(name2CorrelationSet, target);
if (name2CorrelationSet.isEmpty()) return EMPTY_CORRELATIONSET_ARRAY;
CorrelationSet[] re... | static CorrelationSet[] function(EObject target) { Map<String, CorrelationSet> name2CorrelationSet = new HashMap<String, CorrelationSet>(); addVisibleCorrelationSets(name2CorrelationSet, target); if (name2CorrelationSet.isEmpty()) return EMPTY_CORRELATIONSET_ARRAY; CorrelationSet[] result = new CorrelationSet[name2Corr... | /**
* Look up the PartnerLinks visible to a certain context activity (or the whole process).
* When local PartnerLinks are added to the spec, they will follow lexical scoping rules
* just like variables.
*
* The returned PartnerLinks are in no particular order.
*/ | Look up the PartnerLinks visible to a certain context activity (or the whole process). When local PartnerLinks are added to the spec, they will follow lexical scoping rules just like variables. The returned PartnerLinks are in no particular order | getVisibleCorrelationSets | {
"repo_name": "Drifftr/devstudio-tooling-bps",
"path": "plugins/org.eclipse.bpel.ui.noEmbeddedEditors/src/org/eclipse/bpel/ui/util/BPELUtil.java",
"license": "apache-2.0",
"size": 65415
} | [
"java.util.HashMap",
"java.util.Map",
"org.eclipse.bpel.model.CorrelationSet",
"org.eclipse.emf.ecore.EObject"
] | import java.util.HashMap; import java.util.Map; import org.eclipse.bpel.model.CorrelationSet; import org.eclipse.emf.ecore.EObject; | import java.util.*; import org.eclipse.bpel.model.*; import org.eclipse.emf.ecore.*; | [
"java.util",
"org.eclipse.bpel",
"org.eclipse.emf"
] | java.util; org.eclipse.bpel; org.eclipse.emf; | 1,043,982 |
private CalciteAssert.AssertQuery checkThatMaterialize(String materialize,
String query, String name, boolean existing, String model,
Function<ResultSet, Void> explainChecker, final RuleSet rules) {
try (final TryThreadLocal.Memo ignored = Prepare.THREAD_TRIM.push(true)) {
MaterializationService... | CalciteAssert.AssertQuery function(String materialize, String query, String name, boolean existing, String model, Function<ResultSet, Void> explainChecker, final RuleSet rules) { try (final TryThreadLocal.Memo ignored = Prepare.THREAD_TRIM.push(true)) { MaterializationService.setThreadLocal(); CalciteAssert.AssertQuery... | /** Checks that a given query can use a materialized view with a given
* definition. */ | Checks that a given query can use a materialized view with a given | checkThatMaterialize | {
"repo_name": "b-slim/calcite",
"path": "core/src/test/java/org/apache/calcite/test/MaterializationTest.java",
"license": "apache-2.0",
"size": 104701
} | [
"com.google.common.base.Function",
"java.sql.ResultSet",
"org.apache.calcite.materialize.MaterializationService",
"org.apache.calcite.prepare.Prepare",
"org.apache.calcite.tools.RuleSet",
"org.apache.calcite.util.TryThreadLocal"
] | import com.google.common.base.Function; import java.sql.ResultSet; import org.apache.calcite.materialize.MaterializationService; import org.apache.calcite.prepare.Prepare; import org.apache.calcite.tools.RuleSet; import org.apache.calcite.util.TryThreadLocal; | import com.google.common.base.*; import java.sql.*; import org.apache.calcite.materialize.*; import org.apache.calcite.prepare.*; import org.apache.calcite.tools.*; import org.apache.calcite.util.*; | [
"com.google.common",
"java.sql",
"org.apache.calcite"
] | com.google.common; java.sql; org.apache.calcite; | 241,778 |
public void recordDownload(String title, String url) {
Connection c = null;
try {
c = getConnection();
CallableStatement stmt = c.prepareCall(RECORD_DOWNLOAD_SQL);
stmt.setString(1, title);
stmt.setString(2, url);
stmt.executeUpdate();
stmt.close();
c.commit();
log.debug("Recorded dow... | void function(String title, String url) { Connection c = null; try { c = getConnection(); CallableStatement stmt = c.prepareCall(RECORD_DOWNLOAD_SQL); stmt.setString(1, title); stmt.setString(2, url); stmt.executeUpdate(); stmt.close(); c.commit(); log.debug(STR + title + STR + url); } catch (SQLException e1) { log.err... | /**
* record the fact that we have downloaded a specific matching episode
*/ | record the fact that we have downloaded a specific matching episode | recordDownload | {
"repo_name": "ilopmar/tvtorrentrss",
"path": "src/eu/bseboy/tvrss/dao/DownloadedDAOImpl.java",
"license": "apache-2.0",
"size": 4115
} | [
"java.sql.CallableStatement",
"java.sql.Connection",
"java.sql.SQLException"
] | import java.sql.CallableStatement; import java.sql.Connection; import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 756,644 |
public void onClick (View view)
{
} | void function (View view) { } | /***********************************************************************************************
* Method: onClick
* Description: Called when a click has been captured.
*
* Parameters: view - the view that has been clicked
* Returned: N/A
**********************************... | Method: onClick Description: Called when a click has been captured. Parameters: view - the view that has been clicked Returned: N/A | onClick | {
"repo_name": "eheydemann/PaperOrPlastic",
"path": "PaperOrPlasticApp/app/src/main/java/edu/pacificu/cs493f15_1/paperorplasticapp/nutrition/NutritionSettingsActivity.java",
"license": "mit",
"size": 2784
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 2,678,693 |
void sanityCheck() throws IOException {
buf.rewind();
sanityCheckAssertion(BlockType.read(buf), blockType);
sanityCheckAssertion(buf.getInt(), onDiskSizeWithoutHeader,
"onDiskSizeWithoutHeader");
sanityCheckAssertion(buf.getInt(), uncompressedSizeWithoutHeader,
"uncompressedSizeWith... | void sanityCheck() throws IOException { buf.rewind(); sanityCheckAssertion(BlockType.read(buf), blockType); sanityCheckAssertion(buf.getInt(), onDiskSizeWithoutHeader, STR); sanityCheckAssertion(buf.getInt(), uncompressedSizeWithoutHeader, STR); sanityCheckAssertion(buf.getLong(), prevBlockOffset, STR); if (this.fileCo... | /**
* Checks if the block is internally consistent, i.e. the first
* {@link HConstants#HFILEBLOCK_HEADER_SIZE} bytes of the buffer contain a
* valid header consistent with the fields. Assumes a packed block structure.
* This function is primary for testing and debugging, and is not
* thread-safe, because... | Checks if the block is internally consistent, i.e. the first <code>HConstants#HFILEBLOCK_HEADER_SIZE</code> bytes of the buffer contain a valid header consistent with the fields. Assumes a packed block structure. This function is primary for testing and debugging, and is not thread-safe, because it alters the internal ... | sanityCheck | {
"repo_name": "amyvmiwei/hbase",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java",
"license": "apache-2.0",
"size": 75136
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,138,410 |
public Message getChatRoomMessageById(
final int roomId,
final int messageId) {
final UUID locationId = UUID.fromString("7d11c820-4bdc-4bca-8957-9d74e32cdd20"); //$NON-NLS-1$
final ApiResourceVersion apiVersion = new ApiResourceVersion("3.1-preview.1"); //$NON-NLS-1$
fina... | Message function( final int roomId, final int messageId) { final UUID locationId = UUID.fromString(STR); final ApiResourceVersion apiVersion = new ApiResourceVersion(STR); final Map<String, Object> routeValues = new HashMap<String, Object>(); routeValues.put(STR, roomId); routeValues.put(STR, messageId); final VssRestR... | /**
* [Preview API 3.1-preview.1] Retrieve information on a single chat message
*
* @param roomId
* Id of the room
* @param messageId
* Id of the message to retrieve
* @return Message
*/ | [Preview API 3.1-preview.1] Retrieve information on a single chat message | getChatRoomMessageById | {
"repo_name": "Microsoft/vso-httpclient-java",
"path": "Rest/alm-tfs-client/src/main/generated/com/microsoft/alm/teamfoundation/chat/webapi/ChatHttpClientBase.java",
"license": "mit",
"size": 18876
} | [
"com.microsoft.alm.client.HttpMethod",
"com.microsoft.alm.client.VssMediaTypes",
"com.microsoft.alm.client.VssRestRequest",
"com.microsoft.alm.teamfoundation.chat.webapi.Message",
"com.microsoft.alm.visualstudio.services.webapi.ApiResourceVersion",
"java.util.HashMap",
"java.util.Map",
"java.util.UUID... | import com.microsoft.alm.client.HttpMethod; import com.microsoft.alm.client.VssMediaTypes; import com.microsoft.alm.client.VssRestRequest; import com.microsoft.alm.teamfoundation.chat.webapi.Message; import com.microsoft.alm.visualstudio.services.webapi.ApiResourceVersion; import java.util.HashMap; import java.util.Map... | import com.microsoft.alm.client.*; import com.microsoft.alm.teamfoundation.chat.webapi.*; import com.microsoft.alm.visualstudio.services.webapi.*; import java.util.*; | [
"com.microsoft.alm",
"java.util"
] | com.microsoft.alm; java.util; | 2,835,686 |
//Writable:
public void readFields(final DataInput in) throws IOException {
mRowKey = Serialization.readByteArray(in);
mSerializedCells = ByteBuffer.wrap(Serialization.readByteArray(in));
mSerializedCells.mark();
mReader.reset(mSerializedCells);
} | void function(final DataInput in) throws IOException { mRowKey = Serialization.readByteArray(in); mSerializedCells = ByteBuffer.wrap(Serialization.readByteArray(in)); mSerializedCells.mark(); mReader.reset(mSerializedCells); } | /**
* Reads the values of each field.
*
* @param in The input to read from.
* @throws IOException When reading the input fails.
*/ | Reads the values of each field | readFields | {
"repo_name": "amyvmiwei/miwei_temp",
"path": "java/hypertable-common/src/main/java/org/hypertable/hadoop/util/Row.java",
"license": "gpl-3.0",
"size": 8286
} | [
"java.io.DataInput",
"java.io.IOException",
"java.nio.ByteBuffer",
"org.hypertable.hadoop.util.Serialization"
] | import java.io.DataInput; import java.io.IOException; import java.nio.ByteBuffer; import org.hypertable.hadoop.util.Serialization; | import java.io.*; import java.nio.*; import org.hypertable.hadoop.util.*; | [
"java.io",
"java.nio",
"org.hypertable.hadoop"
] | java.io; java.nio; org.hypertable.hadoop; | 657,770 |
public PrintStream getStream() {
return new PrintStream(new DelayedOutputStream());
}
} | PrintStream function() { return new PrintStream(new DelayedOutputStream()); } } | /**
* Gets the print stream configured by this option. If no file is configured, the print
* stream will output to HotSpot's {@link HotSpotJVMCIRuntime#getLogStream() log} stream.
*/ | Gets the print stream configured by this option. If no file is configured, the print stream will output to HotSpot's <code>HotSpotJVMCIRuntime#getLogStream() log</code> stream | getStream | {
"repo_name": "md-5/jdk10",
"path": "src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot/src/org/graalvm/compiler/hotspot/HotSpotTTYStreamProvider.java",
"license": "gpl-2.0",
"size": 8643
} | [
"java.io.PrintStream"
] | import java.io.PrintStream; | import java.io.*; | [
"java.io"
] | java.io; | 909,243 |
@Test
public void deltasSentWrapsFromMaxIntegerToNegativeValue() {
statistics.incInt(deltasSentId, Integer.MAX_VALUE);
cachePerfStats.incDeltasSent();
assertThat(cachePerfStats.getDeltasSent()).isNegative();
} | void function() { statistics.incInt(deltasSentId, Integer.MAX_VALUE); cachePerfStats.incDeltasSent(); assertThat(cachePerfStats.getDeltasSent()).isNegative(); } | /**
* Characterization test: {@code deltasSent} currently wraps to negative from max integer value.
*/ | Characterization test: deltasSent currently wraps to negative from max integer value | deltasSentWrapsFromMaxIntegerToNegativeValue | {
"repo_name": "davebarnes97/geode",
"path": "geode-core/src/test/java/org/apache/geode/internal/cache/CachePerfStatsTest.java",
"license": "apache-2.0",
"size": 34945
} | [
"org.assertj.core.api.Assertions"
] | import org.assertj.core.api.Assertions; | import org.assertj.core.api.*; | [
"org.assertj.core"
] | org.assertj.core; | 996,720 |
if (edgesToCapacities == null)
throw new IllegalArgumentException("Graph is NULL.");
final Map<Graph.Vertex<T>, Vertex> vertexMap = new TreeMap<Graph.Vertex<T>, Vertex>();
for (Graph.Edge<T> edge : edgesToCapacities.keySet()) {
vertexMap.put(edge.getFromVertex(), new Vertex());
... | if (edgesToCapacities == null) throw new IllegalArgumentException(STR); final Map<Graph.Vertex<T>, Vertex> vertexMap = new TreeMap<Graph.Vertex<T>, Vertex>(); for (Graph.Edge<T> edge : edgesToCapacities.keySet()) { vertexMap.put(edge.getFromVertex(), new Vertex()); vertexMap.put(edge.getToVertex(), new Vertex()); } fin... | /**
* Computes maximum flow in flow network, using push-relabel algorithm with O(V^3) complexity.
*
* @param edgesToCapacities represents edges of network with capacities
* @param source source of network
* @param sink sink of network
* @param <T> para... | Computes maximum flow in flow network, using push-relabel algorithm with O(V^3) complexity | getMaximumFlow | {
"repo_name": "mciancia/java-algorithms-implementation",
"path": "src/com/jwetherell/algorithms/graph/PushRelabel.java",
"license": "apache-2.0",
"size": 7903
} | [
"com.jwetherell.algorithms.data_structures.Graph",
"java.util.Collection",
"java.util.Map",
"java.util.TreeMap"
] | import com.jwetherell.algorithms.data_structures.Graph; import java.util.Collection; import java.util.Map; import java.util.TreeMap; | import com.jwetherell.algorithms.data_structures.*; import java.util.*; | [
"com.jwetherell.algorithms",
"java.util"
] | com.jwetherell.algorithms; java.util; | 1,172,479 |
private static final String[] EMPTY_TASK_DIAGNOSTICS = new String[0];
public synchronized String[] getTaskDiagnostics(TaskAttemptID taskId)
throws IOException {
// Check for JobTracker operational state
checkJobTrackerState();
List<String> taskDiagnosticInfo = null;
JobID jobId = taskId.... | static final String[] EMPTY_TASK_DIAGNOSTICS = new String[0]; public synchronized String[] function(TaskAttemptID taskId) throws IOException { checkJobTrackerState(); List<String> taskDiagnosticInfo = null; JobID jobId = taskId.getJobID(); TaskID tipId = taskId.getTaskID(); JobInProgress job = jobs.get(jobId); if (job ... | /**
* Get the diagnostics for a given task
* @param taskId the id of the task
* @return an array of the diagnostic messages
*/ | Get the diagnostics for a given task | getTaskDiagnostics | {
"repo_name": "williamsentosa/hadoop-modified",
"path": "src/mapred/org/apache/hadoop/mapred/JobTracker.java",
"license": "apache-2.0",
"size": 192030
} | [
"java.io.IOException",
"java.util.List",
"org.apache.hadoop.security.UserGroupInformation"
] | import java.io.IOException; import java.util.List; import org.apache.hadoop.security.UserGroupInformation; | import java.io.*; import java.util.*; import org.apache.hadoop.security.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 10,024 |
private Response<Output> execute() {
if (executionContext == null) {
throw new SdkClientException(
"Internal SDK Error: No execution context parameter specified.");
}
try {
return executeWithTimer();
} catch ... | Response<Output> function() { if (executionContext == null) { throw new SdkClientException( STR); } try { return executeWithTimer(); } catch (InterruptedException ie) { throw handleInterruptedException(ie); } catch (AbortedException ae) { throw handleAbortedException(ae); } } | /**
* Executes the request and returns the result.
*/ | Executes the request and returns the result | execute | {
"repo_name": "jentfoo/aws-sdk-java",
"path": "aws-java-sdk-core/src/main/java/com/amazonaws/http/AmazonHttpClient.java",
"license": "apache-2.0",
"size": 87825
} | [
"com.amazonaws.AbortedException",
"com.amazonaws.Response",
"com.amazonaws.SdkClientException"
] | import com.amazonaws.AbortedException; import com.amazonaws.Response; import com.amazonaws.SdkClientException; | import com.amazonaws.*; | [
"com.amazonaws"
] | com.amazonaws; | 337,080 |
System.out.println(" +-----------------------------------------+");
System.out.println(" | XBee Java Library Reset Module Sample |");
System.out.println(" +-----------------------------------------+\n");
XBeeDevice myDevice = new XBeeDevice(PORT, BAUD_RATE);
try {
myDevice.open();
myDevice.r... | System.out.println(STR); System.out.println(STR); System.out.println(STR); XBeeDevice myDevice = new XBeeDevice(PORT, BAUD_RATE); try { myDevice.open(); myDevice.reset(); System.out.println(STR); } catch (XBeeException e) { e.printStackTrace(); System.exit(1); } finally { myDevice.close(); } } | /**
* Application main method.
*
* @param args Command line arguments.
*/ | Application main method | main | {
"repo_name": "brucetsao/XBeeJavaLibrary",
"path": "examples/configuration/ResetModuleSample/src/com/digi/xbee/api/resetmodule/MainApp.java",
"license": "mpl-2.0",
"size": 1747
} | [
"com.digi.xbee.api.XBeeDevice",
"com.digi.xbee.api.exceptions.XBeeException"
] | import com.digi.xbee.api.XBeeDevice; import com.digi.xbee.api.exceptions.XBeeException; | import com.digi.xbee.api.*; import com.digi.xbee.api.exceptions.*; | [
"com.digi.xbee"
] | com.digi.xbee; | 501,279 |
public List<EntityResource<T>> readEntriesFromFeed(Feed rootFeed) {
if (rootFeed == null || rootFeed.getEntries() == null || rootFeed.getEntries().isEmpty()) {
return Collections.emptyList();
}
List<org.apache.abdera.model.Entry> entries = rootFeed.getEntries();
ArrayList<EntityResource<T>> resu... | List<EntityResource<T>> function(Feed rootFeed) { if (rootFeed == null rootFeed.getEntries() == null rootFeed.getEntries().isEmpty()) { return Collections.emptyList(); } List<org.apache.abdera.model.Entry> entries = rootFeed.getEntries(); ArrayList<EntityResource<T>> result = new ArrayList<EntityResource<T>>(entries.si... | /**
* De-serialize the entries from the feed provided.
* @param rootFeed The feed to fetch the entries for
* @return Return the object instances for the entries of the feed.
*/ | De-serialize the entries from the feed provided | readEntriesFromFeed | {
"repo_name": "SmartITEngineering/smart-util",
"path": "rest/atom/src/main/java/com/smartitengineering/util/rest/atom/FeedEntryReader.java",
"license": "lgpl-3.0",
"size": 7279
} | [
"com.smartitengineering.util.rest.client.EntityResource",
"java.util.ArrayList",
"java.util.Collections",
"java.util.List",
"java.util.Map",
"org.apache.abdera.model.Feed"
] | import com.smartitengineering.util.rest.client.EntityResource; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import org.apache.abdera.model.Feed; | import com.smartitengineering.util.rest.client.*; import java.util.*; import org.apache.abdera.model.*; | [
"com.smartitengineering.util",
"java.util",
"org.apache.abdera"
] | com.smartitengineering.util; java.util; org.apache.abdera; | 1,659,358 |
public int size( )
{
return ByteNode.listLength(top);
} | int function( ) { return ByteNode.listLength(top); } | /**
* Accessor method to determine the number of items in this stack.
* @param - none
* @return
* the number of items in this stack
**/ | Accessor method to determine the number of items in this stack | size | {
"repo_name": "eocrawford/UW-CS-materials",
"path": "CS_211/ByteLinkedStack.java",
"license": "unlicense",
"size": 4851
} | [
"edu.colorado.nodes.ByteNode"
] | import edu.colorado.nodes.ByteNode; | import edu.colorado.nodes.*; | [
"edu.colorado.nodes"
] | edu.colorado.nodes; | 2,318,518 |
@Override
public final void sendError(int sc, String msg) throws IOException {
doOnResponseCommitted();
super.sendError(sc, msg);
} | final void function(int sc, String msg) throws IOException { doOnResponseCommitted(); super.sendError(sc, msg); } | /**
* Makes sure {@link OnCommittedResponseWrapper#onResponseCommitted()} is invoked
* before calling the superclass <code>sendError()</code>.
* @param sc the error status code
*/ | Makes sure <code>OnCommittedResponseWrapper#onResponseCommitted()</code> is invoked before calling the superclass <code>sendError()</code> | sendError | {
"repo_name": "zhaojunfei/lemon",
"path": "src/main/java/org/springframework/session/web/http/OnCommittedResponseWrapper.java",
"license": "apache-2.0",
"size": 14607
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,040,909 |
public static aCCCompiler getInstance() {
return instance;
}
private String identifier;
private File[] includePath;
private aCCCompiler(final String command, final String[] sourceExtensions, final String[] headerExtensions,
final boolean newEnvironment, final Environment env) {
super(comman... | static aCCCompiler function() { return instance; } private String identifier; private File[] includePath; private aCCCompiler(final String command, final String[] sourceExtensions, final String[] headerExtensions, final boolean newEnvironment, final Environment env) { super(command, "-help", sourceExtensions, headerExt... | /**
* Gets singleton instance of this class
*/ | Gets singleton instance of this class | getInstance | {
"repo_name": "diyessi/nar-maven-plugin",
"path": "src/main/java/com/github/maven_nar/cpptasks/hp/aCCCompiler.java",
"license": "apache-2.0",
"size": 3862
} | [
"java.io.File",
"org.apache.tools.ant.types.Environment"
] | import java.io.File; import org.apache.tools.ant.types.Environment; | import java.io.*; import org.apache.tools.ant.types.*; | [
"java.io",
"org.apache.tools"
] | java.io; org.apache.tools; | 1,698,191 |
public DataNode setTiming(IDataset timing); | DataNode function(IDataset timing); | /**
* kicker timing as defined by ``description`` attribute
* <p>
* <b>Type:</b> NX_FLOAT
* <b>Units:</b> NX_TIME
* </p>
*
* @param timing the timing
*/ | kicker timing as defined by ``description`` attribute Type: NX_FLOAT Units: NX_TIME | setTiming | {
"repo_name": "jamesmudd/dawnsci",
"path": "org.eclipse.dawnsci.nexus/autogen/org/eclipse/dawnsci/nexus/NXmagnetic_kicker.java",
"license": "epl-1.0",
"size": 5999
} | [
"org.eclipse.dawnsci.analysis.api.tree.DataNode",
"org.eclipse.january.dataset.IDataset"
] | import org.eclipse.dawnsci.analysis.api.tree.DataNode; import org.eclipse.january.dataset.IDataset; | import org.eclipse.dawnsci.analysis.api.tree.*; import org.eclipse.january.dataset.*; | [
"org.eclipse.dawnsci",
"org.eclipse.january"
] | org.eclipse.dawnsci; org.eclipse.january; | 175,470 |
public Entry getTarget() {
return this.target;
} | Entry function() { return this.target; } | /**
* <p>Getter for the field <code>target</code>.</p>
*
* @return Returns the target.
*/ | Getter for the field <code>target</code> | getTarget | {
"repo_name": "bjagg/BookmarksPortlet",
"path": "src/main/java/edu/wisc/my/portlets/bookmarks/domain/support/IdPathInfo.java",
"license": "apache-2.0",
"size": 3679
} | [
"edu.wisc.my.portlets.bookmarks.domain.Entry"
] | import edu.wisc.my.portlets.bookmarks.domain.Entry; | import edu.wisc.my.portlets.bookmarks.domain.*; | [
"edu.wisc.my"
] | edu.wisc.my; | 308,055 |
public void setExecutable(Path executable) {
mExecutable = TaskHelper.checkSinglePath("executable", executable);
} | void function(Path executable) { mExecutable = TaskHelper.checkSinglePath(STR, executable); } | /**
* Sets the value of the "executable" attribute.
* @param executable the value.
*/ | Sets the value of the "executable" attribute | setExecutable | {
"repo_name": "rex-xxx/mt6572_x201",
"path": "sdk/anttasks/src/com/android/ant/DexExecTask.java",
"license": "gpl-2.0",
"size": 7087
} | [
"org.apache.tools.ant.types.Path"
] | import org.apache.tools.ant.types.Path; | import org.apache.tools.ant.types.*; | [
"org.apache.tools"
] | org.apache.tools; | 2,100,983 |
protected final void acceptAnnotations(final MethodVisitor mv) {
int n = visibleTypeAnnotations == null ? 0 : visibleTypeAnnotations
.size();
for (int i = 0; i < n; ++i) {
TypeAnnotationNode an = visibleTypeAnnotations.get(i);
an.accept(mv.visitInsnAnnotation(... | final void function(final MethodVisitor mv) { int n = visibleTypeAnnotations == null ? 0 : visibleTypeAnnotations .size(); for (int i = 0; i < n; ++i) { TypeAnnotationNode an = visibleTypeAnnotations.get(i); an.accept(mv.visitInsnAnnotation(an.typeRef, an.typePath, an.desc, true)); } n = invisibleTypeAnnotations == nul... | /**
* Makes the given visitor visit the annotations of this instruction.
*
* @param mv
* a method visitor.
*/ | Makes the given visitor visit the annotations of this instruction | acceptAnnotations | {
"repo_name": "Jezza/ExperiJ",
"path": "src/main/java/com/experij/repackage/org/objectweb/asm/tree/AbstractInsnNode.java",
"license": "lgpl-3.0",
"size": 10448
} | [
"com.experij.repackage.org.objectweb.asm.MethodVisitor"
] | import com.experij.repackage.org.objectweb.asm.MethodVisitor; | import com.experij.repackage.org.objectweb.asm.*; | [
"com.experij.repackage"
] | com.experij.repackage; | 1,613,849 |
public Properties getAgentProperties() {
try {
pushCl();
return (Properties)invoke(delegate, null, "getAgentProperties");
} finally {
popCl();
}
}
| Properties function() { try { pushCl(); return (Properties)invoke(delegate, null, STR); } finally { popCl(); } } | /**
* Returns the current agent properties in the target virtual machine.
* @return The agent properties
*/ | Returns the current agent properties in the target virtual machine | getAgentProperties | {
"repo_name": "nickman/jmxlocal",
"path": "src/main/java/com/heliosapm/shorthand/attach/vm/VirtualMachine.java",
"license": "apache-2.0",
"size": 12879
} | [
"java.util.Properties"
] | import java.util.Properties; | import java.util.*; | [
"java.util"
] | java.util; | 138,691 |
public static CipherSuitePredicate matchLevel(SecurityLevel... levels) {
levels = withoutNulls(levels);
return levels == null || levels.length == 0 ? matchFalse() : levels.length == SecurityLevel.fullSize ? matchTrue() : new LevelCipherSuitePredicate(EnumSet.of(levels[0], levels));
} | static CipherSuitePredicate function(SecurityLevel... levels) { levels = withoutNulls(levels); return levels == null levels.length == 0 ? matchFalse() : levels.length == SecurityLevel.fullSize ? matchTrue() : new LevelCipherSuitePredicate(EnumSet.of(levels[0], levels)); } | /**
* Return a predicate which matches any of the given security levels.
*
* @param levels the security levels
* @return the predicate
*/ | Return a predicate which matches any of the given security levels | matchLevel | {
"repo_name": "girirajsharma/wildfly-elytron",
"path": "src/main/java/org/wildfly/security/ssl/CipherSuitePredicate.java",
"license": "apache-2.0",
"size": 16436
} | [
"java.util.EnumSet"
] | import java.util.EnumSet; | import java.util.*; | [
"java.util"
] | java.util; | 2,293,176 |
public IFraction mul(BigInteger other) {
if (other.bitLength() <= 31) {
int oint = other.intValue();
if (oint == 1)
return this;
if (oint == -1)
return this.negate();
long newnum = (long) fNumerator * oint;
return valueOf(newnum, fDenominator);
}
if (this.isO... | IFraction function(BigInteger other) { if (other.bitLength() <= 31) { int oint = other.intValue(); if (oint == 1) return this; if (oint == -1) return this.negate(); long newnum = (long) fNumerator * oint; return valueOf(newnum, fDenominator); } if (this.isOne()) { return valueOf(other, BigInteger.ONE); } if (this.isMin... | /**
* Return a new rational representing <code>this * other</code>.
*
* @param other big integer to multiply.
* @return Product of <code>this</code> and <code>other</code>.
*/ | Return a new rational representing <code>this * other</code> | mul | {
"repo_name": "axkr/symja_android_library",
"path": "symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/FractionSym.java",
"license": "gpl-3.0",
"size": 19007
} | [
"java.math.BigInteger",
"org.matheclipse.core.interfaces.IFraction"
] | import java.math.BigInteger; import org.matheclipse.core.interfaces.IFraction; | import java.math.*; import org.matheclipse.core.interfaces.*; | [
"java.math",
"org.matheclipse.core"
] | java.math; org.matheclipse.core; | 484,945 |
public ServiceFuture<Void> deleteAsync(String resourceGroupName, String circuitName, final ServiceCallback<Void> serviceCallback) {
return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, circuitName), serviceCallback);
} | ServiceFuture<Void> function(String resourceGroupName, String circuitName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(deleteWithServiceResponseAsync(resourceGroupName, circuitName), serviceCallback); } | /**
* Deletes the specified express route circuit.
*
* @param resourceGroupName The name of the resource group.
* @param circuitName The name of the express route circuit.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumen... | Deletes the specified express route circuit | deleteAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2019_06_01/src/main/java/com/microsoft/azure/management/network/v2019_06_01/implementation/ExpressRouteCircuitsInner.java",
"license": "mit",
"size": 125492
} | [
"com.microsoft.rest.ServiceCallback",
"com.microsoft.rest.ServiceFuture"
] | import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 257,972 |
void get(String lessonSlug, Action<Lesson> success, Action<String> failure); | void get(String lessonSlug, Action<Lesson> success, Action<String> failure); | /**
* Gets a lesson by slug
*
* @param lessonSlug
* @param success
* @param failure
*/ | Gets a lesson by slug | get | {
"repo_name": "rails-school/tiramisu",
"path": "app/src/main/java/org/railsschool/tiramisu/models/bll/interfaces/ILessonBusiness.java",
"license": "mit",
"size": 1976
} | [
"com.coshx.chocolatine.utils.actions.Action",
"org.railsschool.tiramisu.models.beans.Lesson"
] | import com.coshx.chocolatine.utils.actions.Action; import org.railsschool.tiramisu.models.beans.Lesson; | import com.coshx.chocolatine.utils.actions.*; import org.railsschool.tiramisu.models.beans.*; | [
"com.coshx.chocolatine",
"org.railsschool.tiramisu"
] | com.coshx.chocolatine; org.railsschool.tiramisu; | 2,567,850 |
private static String encode(final String text) throws UnsupportedEncodingException {
return URLEncoder.encode(text, "UTF-8");
}
public static class Graph {
private final String name;
private final Set<Plotter> plotters = new LinkedHashSet<Plotter>();
... | static String function(final String text) throws UnsupportedEncodingException { return URLEncoder.encode(text, "UTF-8"); } public static class Graph { private final String name; private final Set<Plotter> plotters = new LinkedHashSet<Plotter>(); private Graph(final String name) { this.name = name; } | /**
* Encode text as UTF-8
*
* @param text the text to encode
* @return the encoded text, as UTF-8
*/ | Encode text as UTF-8 | encode | {
"repo_name": "smaltby/ZArena",
"path": "src/main/java/com/github/zarena/utils/Metrics.java",
"license": "mit",
"size": 23498
} | [
"java.io.UnsupportedEncodingException",
"java.net.URLEncoder",
"java.util.LinkedHashSet",
"java.util.Set"
] | import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.LinkedHashSet; import java.util.Set; | import java.io.*; import java.net.*; import java.util.*; | [
"java.io",
"java.net",
"java.util"
] | java.io; java.net; java.util; | 619,287 |
public Rectangle getBounds( )
{
//Maybe delete in the future
return getFigure( ).getBounds( );
}
| Rectangle function( ) { return getFigure( ).getBounds( ); } | /**
* Gets the edit part bounds
*
* @return the edit part bounds
*/ | Gets the edit part bounds | getBounds | {
"repo_name": "Charling-Huang/birt",
"path": "UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/editors/schematic/editparts/AbstractCellEditPart.java",
"license": "epl-1.0",
"size": 3848
} | [
"org.eclipse.draw2d.geometry.Rectangle"
] | import org.eclipse.draw2d.geometry.Rectangle; | import org.eclipse.draw2d.geometry.*; | [
"org.eclipse.draw2d"
] | org.eclipse.draw2d; | 2,220,947 |
public void addBatchClassField() {
controller.getEventBus().fireEvent(new AddBatchClassFieldEvent());
} | void function() { controller.getEventBus().fireEvent(new AddBatchClassFieldEvent()); } | /**
* Adds the batch class field.
*/ | Adds the batch class field | addBatchClassField | {
"repo_name": "ungerik/ephesoft",
"path": "Ephesoft_Community_Release_4.0.2.0/source/gxt/gxt-admin/src/main/java/com/ephesoft/gxt/admin/client/presenter/batchclassfield/BatchClassFieldMenuPresenter.java",
"license": "agpl-3.0",
"size": 4251
} | [
"com.ephesoft.gxt.admin.client.event.AddBatchClassFieldEvent"
] | import com.ephesoft.gxt.admin.client.event.AddBatchClassFieldEvent; | import com.ephesoft.gxt.admin.client.event.*; | [
"com.ephesoft.gxt"
] | com.ephesoft.gxt; | 326,846 |
public static void waitForDebugger() {
if (!VMDebug.isDebuggingEnabled()) {
//System.out.println("debugging not enabled, not waiting");
return;
}
if (isDebuggerConnected())
return;
// if DDMS is listening, inform them of our plight
System.... | static void function() { if (!VMDebug.isDebuggingEnabled()) { return; } if (isDebuggerConnected()) return; System.out.println(STR); byte[] data = new byte[] { 0 }; Chunk waitChunk = new Chunk(ChunkHandler.type("WAIT"), data, 0, 1); DdmServer.sendChunk(waitChunk); mWaiting = true; while (!isDebuggerConnected()) { try { ... | /**
* Wait until a debugger attaches. As soon as the debugger attaches,
* this returns, so you will need to place a breakpoint after the
* waitForDebugger() call if you want to start tracing immediately.
*/ | Wait until a debugger attaches. As soon as the debugger attaches, this returns, so you will need to place a breakpoint after the waitForDebugger() call if you want to start tracing immediately | waitForDebugger | {
"repo_name": "OmniEvo/android_frameworks_base",
"path": "core/java/android/os/Debug.java",
"license": "gpl-3.0",
"size": 81574
} | [
"org.apache.harmony.dalvik.ddmc.Chunk",
"org.apache.harmony.dalvik.ddmc.ChunkHandler",
"org.apache.harmony.dalvik.ddmc.DdmServer"
] | import org.apache.harmony.dalvik.ddmc.Chunk; import org.apache.harmony.dalvik.ddmc.ChunkHandler; import org.apache.harmony.dalvik.ddmc.DdmServer; | import org.apache.harmony.dalvik.ddmc.*; | [
"org.apache.harmony"
] | org.apache.harmony; | 878,868 |
protected Predicate createPredicate(RouteContext routeContext) {
return definition.getExpression().createPredicate(routeContext);
} | Predicate function(RouteContext routeContext) { return definition.getExpression().createPredicate(routeContext); } | /**
* Creates the {@link Predicate} from the expression node.
*
* @param routeContext the route context
* @return the created predicate
*/ | Creates the <code>Predicate</code> from the expression node | createPredicate | {
"repo_name": "punkhorn/camel-upstream",
"path": "core/camel-core/src/main/java/org/apache/camel/reifier/ExpressionReifier.java",
"license": "apache-2.0",
"size": 2058
} | [
"org.apache.camel.Predicate",
"org.apache.camel.spi.RouteContext"
] | import org.apache.camel.Predicate; import org.apache.camel.spi.RouteContext; | import org.apache.camel.*; import org.apache.camel.spi.*; | [
"org.apache.camel"
] | org.apache.camel; | 2,387,346 |
public static <T> T createNewClassInstance(Class<T> cls, Class<?>[] ctorClassArgs,
Object[] ctorArgs) {
try {
if (ctorClassArgs == null) {
return cls.newInstance();
}
Constructor<T> ctor = cls.getConstructor(ctorClassArgs);
return ctor.newInstance(ctorArgs);
} catch (Invo... | static <T> T function(Class<T> cls, Class<?>[] ctorClassArgs, Object[] ctorArgs) { try { if (ctorClassArgs == null) { return cls.newInstance(); } Constructor<T> ctor = cls.getConstructor(ctorClassArgs); return ctor.newInstance(ctorArgs); } catch (InvocationTargetException e) { throw new RuntimeException(e.getCause()); ... | /**
* Creates new instance of a class by calling a constructor that receives ctorClassArgs arguments.
*
* @param <T> type of the object
* @param cls the class to create
* @param ctorClassArgs parameters type list of the constructor to initiate, if null default
* constructor will be called
* ... | Creates new instance of a class by calling a constructor that receives ctorClassArgs arguments | createNewClassInstance | {
"repo_name": "maboelhassan/alluxio",
"path": "core/common/src/main/java/alluxio/util/CommonUtils.java",
"license": "apache-2.0",
"size": 21994
} | [
"java.lang.reflect.Constructor",
"java.lang.reflect.InvocationTargetException"
] | import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 2,338,867 |
public void removeInternebestellungEinesMandanten(
boolean bNurHilfsstuecklisten, TheClientDto theClientDto)
throws EJBExceptionLP {
Session session = null;
// try {
SessionFactory factory = FLRSessionFactory.getFactory();
session = factory.openSession();
Criteria c = session.createCriteria(FLRIntern... | void function( boolean bNurHilfsstuecklisten, TheClientDto theClientDto) throws EJBExceptionLP { Session session = null; SessionFactory factory = FLRSessionFactory.getFactory(); session = factory.openSession(); Criteria c = session.createCriteria(FLRInternebestellung.class); c.add(Restrictions.eq(FertigungFac.FLR_INTER... | /**
* Alle Eintraege in der internen Bestellung fuer einen Mandanten loeschen.
*
* @param theClientDto
* String
* @throws EJBExceptionLP
*/ | Alle Eintraege in der internen Bestellung fuer einen Mandanten loeschen | removeInternebestellungEinesMandanten | {
"repo_name": "erdincay/ejb",
"path": "src/com/lp/server/fertigung/ejbfac/InternebestellungFacBean.java",
"license": "agpl-3.0",
"size": 81982
} | [
"com.lp.server.fertigung.ejb.Internebestellung",
"com.lp.server.fertigung.fastlanereader.generated.FLRInternebestellung",
"com.lp.server.fertigung.service.FertigungFac",
"com.lp.server.stueckliste.service.StuecklisteFac",
"com.lp.server.system.service.TheClientDto",
"com.lp.server.util.fastlanereader.FLRS... | import com.lp.server.fertigung.ejb.Internebestellung; import com.lp.server.fertigung.fastlanereader.generated.FLRInternebestellung; import com.lp.server.fertigung.service.FertigungFac; import com.lp.server.stueckliste.service.StuecklisteFac; import com.lp.server.system.service.TheClientDto; import com.lp.server.util.fa... | import com.lp.server.fertigung.ejb.*; import com.lp.server.fertigung.fastlanereader.generated.*; import com.lp.server.fertigung.service.*; import com.lp.server.stueckliste.service.*; import com.lp.server.system.service.*; import com.lp.server.util.fastlanereader.*; import com.lp.util.*; import java.util.*; import javax... | [
"com.lp.server",
"com.lp.util",
"java.util",
"javax.persistence",
"org.hibernate",
"org.hibernate.criterion"
] | com.lp.server; com.lp.util; java.util; javax.persistence; org.hibernate; org.hibernate.criterion; | 1,361,846 |
// List<Tproject> loadMyPickerProjects(Integer personID);
List<Tproject> loadCustomReportProjects(FilterUpperTO filterSelectsTO); | List<Tproject> loadCustomReportProjects(FilterUpperTO filterSelectsTO); | /**
* Get the projectBeans filtered by the FilterSelectsTO
*
* @param filterSelectsTO
* @return
*/ | Get the projectBeans filtered by the FilterSelectsTO | loadCustomReportProjects | {
"repo_name": "trackplus/Genji",
"path": "src/main/java/com/trackplus/dao/ProjectDAO.java",
"license": "gpl-3.0",
"size": 12200
} | [
"com.aurel.track.admin.customize.category.filter.tree.design.FilterUpperTO",
"com.trackplus.model.Tproject",
"java.util.List"
] | import com.aurel.track.admin.customize.category.filter.tree.design.FilterUpperTO; import com.trackplus.model.Tproject; import java.util.List; | import com.aurel.track.admin.customize.category.filter.tree.design.*; import com.trackplus.model.*; import java.util.*; | [
"com.aurel.track",
"com.trackplus.model",
"java.util"
] | com.aurel.track; com.trackplus.model; java.util; | 912,768 |
public SchemaGroupProperties withGroupProperties(Map<String, String> groupProperties) {
this.groupProperties = groupProperties;
return this;
} | SchemaGroupProperties function(Map<String, String> groupProperties) { this.groupProperties = groupProperties; return this; } | /**
* Set the groupProperties property: dictionary object for SchemaGroup group properties.
*
* @param groupProperties the groupProperties value to set.
* @return the SchemaGroupProperties object itself.
*/ | Set the groupProperties property: dictionary object for SchemaGroup group properties | withGroupProperties | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-eventhubs/src/main/java/com/azure/resourcemanager/eventhubs/fluent/models/SchemaGroupProperties.java",
"license": "mit",
"size": 4552
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 113,932 |
final void writeExt(byte[] buffer, int offset, int length) throws IOException {
try { // Only catch null pointer in case IO is null from being closed
_io.putExt(buffer, offset, length);
} catch(NullPointerException e) { }
} | final void writeExt(byte[] buffer, int offset, int length) throws IOException { try { _io.putExt(buffer, offset, length); } catch(NullPointerException e) { } } | /**
* Writes the specified data to the channel's extended data output stream.
*
* @param buffer data to write
* @param offset
* @param length
* @throws IOException if any errors occur
*/ | Writes the specified data to the channel's extended data output stream | writeExt | {
"repo_name": "joval/vngx-jsch",
"path": "src/main/java/org/vngx/jsch/Channel.java",
"license": "bsd-3-clause",
"size": 27617
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 450,427 |
@Test()
public void testConstructor10()
throws Exception
{
if (! isDirectoryInstanceAvailable())
{
return;
}
LDAPConnection conn =
new LDAPConnection(new LDAPConnectionOptions(), getTestHost(),
getTestPort(), getTestBindDN(),
... | @Test() void function() throws Exception { if (! isDirectoryInstanceAvailable()) { return; } LDAPConnection conn = new LDAPConnection(new LDAPConnectionOptions(), getTestHost(), getTestPort(), getTestBindDN(), getTestBindPassword()); assertTrue(conn.isConnected()); assertNotNull(conn.getConnectedAddress()); assertNotNu... | /**
* Tests the tenth constructor, which takes a set of connection options and
* a directory server host, port, bind DN, and password.
* <BR><BR>
* Access to a Directory Server instance is required for complete processing.
*
* @throws Exception If an unexpected problem occurs.
*/ | Tests the tenth constructor, which takes a set of connection options and a directory server host, port, bind DN, and password. Access to a Directory Server instance is required for complete processing | testConstructor10 | {
"repo_name": "UnboundID/ldapsdk",
"path": "tests/unit/src/com/unboundid/ldap/sdk/LDAPConnectionTestCase.java",
"license": "gpl-2.0",
"size": 157011
} | [
"org.testng.annotations.Test"
] | import org.testng.annotations.Test; | import org.testng.annotations.*; | [
"org.testng.annotations"
] | org.testng.annotations; | 2,454,862 |
public MakeEnvironment.Builder getMakeEnvironment() {
return pkgBuilder.getMakeEnvironment();
}
}
private final ClassObject nativeModule; | MakeEnvironment.Builder function() { return pkgBuilder.getMakeEnvironment(); } } private final ClassObject nativeModule; | /**
* Returns the MakeEnvironment Builder of this Package.
*/ | Returns the MakeEnvironment Builder of this Package | getMakeEnvironment | {
"repo_name": "rhuss/bazel",
"path": "src/main/java/com/google/devtools/build/lib/packages/PackageFactory.java",
"license": "apache-2.0",
"size": 57850
} | [
"com.google.devtools.build.lib.syntax.ClassObject"
] | import com.google.devtools.build.lib.syntax.ClassObject; | import com.google.devtools.build.lib.syntax.*; | [
"com.google.devtools"
] | com.google.devtools; | 1,246,155 |
void onSaveCookie(URI uri, HttpCookie cookie); | void onSaveCookie(URI uri, HttpCookie cookie); | /**
* When saving a Cookie callback.
*
* @param uri cookie corresponding uri.
* @param cookie {@link HttpCookie}.
*/ | When saving a Cookie callback | onSaveCookie | {
"repo_name": "yanzhenjie/NoHttp",
"path": "nohttp/src/main/java/com/yanzhenjie/nohttp/cookie/DBCookieStore.java",
"license": "apache-2.0",
"size": 9153
} | [
"java.net.HttpCookie"
] | import java.net.HttpCookie; | import java.net.*; | [
"java.net"
] | java.net; | 2,313,955 |
public void moveTo(Location newLocation)
{
if (grid == null)
throw new IllegalStateException("This actor is not in a grid.");
if (grid.get(location) != this)
throw new IllegalStateException(
"The grid contains a different actor at location "
... | void function(Location newLocation) { if (grid == null) throw new IllegalStateException(STR); if (grid.get(location) != this) throw new IllegalStateException( STR + location + "."); if (!grid.isValid(newLocation)) throw new IllegalArgumentException(STR + newLocation + STR); if (newLocation.equals(location)) return; gri... | /**
* Moves this actor to a new location. If there is another actor at the
* given location, it is removed. <br />
* Precondition: (1) This actor is contained in a grid (2)
* <code>newLocation</code> is valid in the grid of this actor
* @param newLocation the new location
*/ | Moves this actor to a new location. If there is another actor at the given location, it is removed. Precondition: (1) This actor is contained in a grid (2) <code>newLocation</code> is valid in the grid of this actor | moveTo | {
"repo_name": "CBSkarmory/AWGW",
"path": "src/main/java/info/gridworld/actor/Actor.java",
"license": "gpl-3.0",
"size": 5721
} | [
"info.gridworld.grid.Location"
] | import info.gridworld.grid.Location; | import info.gridworld.grid.*; | [
"info.gridworld.grid"
] | info.gridworld.grid; | 767,968 |
@JsonIgnore
@Override
public InputStream getInputStream() throws IOException {
return new ByteArrayInputStream(bytes);
} | InputStream function() throws IOException { return new ByteArrayInputStream(bytes); } | /**
* Open and retrieve an InputStream from the source
*
* @return An InputStream
* @throws IOException
*/ | Open and retrieve an InputStream from the source | getInputStream | {
"repo_name": "escidoc-ng/escidoc-ng",
"path": "escidocng-common/src/main/java/de/escidocng/model/source/ByteArraySource.java",
"license": "apache-2.0",
"size": 2526
} | [
"java.io.ByteArrayInputStream",
"java.io.IOException",
"java.io.InputStream"
] | import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; | import java.io.*; | [
"java.io"
] | java.io; | 1,393,051 |
public void write(byte[] buffer) {
try {
mmOutStream.write(buffer);
// Share the sent message back to the UI Activity
mHandler.obtainMessage(BluetoothChat.MESSAGE_WRITE, -1, -1, buffer)
.sendToTarget();
} catch (IOException e) {
Lo... | void function(byte[] buffer) { try { mmOutStream.write(buffer); mHandler.obtainMessage(BluetoothChat.MESSAGE_WRITE, -1, -1, buffer) .sendToTarget(); } catch (IOException e) { Log.e(TAG, STR, e); } } | /**
* Write to the connected OutStream.
* @param buffer The bytes to write
*/ | Write to the connected OutStream | write | {
"repo_name": "Technicus/Bluetooth",
"path": "Reference/GhostScanner_Delux-master/Ghost Scanner/src/main/java/heck/pinball/ghostscanner/BluetoothService.java",
"license": "gpl-3.0",
"size": 16421
} | [
"android.util.Log",
"java.io.IOException"
] | import android.util.Log; import java.io.IOException; | import android.util.*; import java.io.*; | [
"android.util",
"java.io"
] | android.util; java.io; | 252,562 |
public synchronized void release()
throws CacheException
{
if( LOG.isTraceEnabled() )
LOG.trace("Release "+getVarName());
long t0 = DMLScript.STATISTICS ? System.nanoTime() : 0;
boolean write = false;
if ( isModify() )
{
//set flags for write
write = true;
setDirty(true);
//update... | synchronized void function() throws CacheException { if( LOG.isTraceEnabled() ) LOG.trace(STR+getVarName()); long t0 = DMLScript.STATISTICS ? System.nanoTime() : 0; boolean write = false; if ( isModify() ) { write = true; setDirty(true); refreshMetaData(); } _data.compactEmptyBlock(); release(_isAcquireFromEmpty && !_r... | /**
* Releases the shared ("read-only") or exclusive ("write") lock. Updates
* size information, last-access time, metadata, etc.
*
* Synchronized because there might be parallel threads (parfor local) that
* access the same object (in case it was created before the loop).
*
* In-Status: READ, MODIFY;... | Releases the shared ("read-only") or exclusive ("write") lock. Updates size information, last-access time, metadata, etc. Synchronized because there might be parallel threads (parfor local) that access the same object (in case it was created before the loop). In-Status: READ, MODIFY; Out-Status: READ(-1), EVICTABLE, EM... | release | {
"repo_name": "asurve/arvind-sysml",
"path": "src/main/java/org/apache/sysml/runtime/controlprogram/caching/CacheableData.java",
"license": "apache-2.0",
"size": 42801
} | [
"org.apache.sysml.api.DMLScript"
] | import org.apache.sysml.api.DMLScript; | import org.apache.sysml.api.*; | [
"org.apache.sysml"
] | org.apache.sysml; | 1,222,008 |
public Timeout getSoTimeout() {
return soTimeout;
}
/**
* Determines the default value of the {@link java.net.SocketOptions#SO_REUSEADDR} parameter
* for newly created sockets.
* <p>
* Default: {@code false} | Timeout function() { return soTimeout; } /** * Determines the default value of the {@link java.net.SocketOptions#SO_REUSEADDR} parameter * for newly created sockets. * <p> * Default: {@code false} | /**
* Determines the default socket timeout value for non-blocking I/O operations.
* <p>
* Default: {@code 0} (no timeout)
* </p>
*
* @see java.net.SocketOptions#SO_TIMEOUT
*/ | Determines the default socket timeout value for non-blocking I/O operations. Default: 0 (no timeout) | getSoTimeout | {
"repo_name": "ok2c/httpcore",
"path": "httpcore5/src/main/java/org/apache/hc/core5/reactor/IOReactorConfig.java",
"license": "apache-2.0",
"size": 14023
} | [
"org.apache.hc.core5.util.Timeout"
] | import org.apache.hc.core5.util.Timeout; | import org.apache.hc.core5.util.*; | [
"org.apache.hc"
] | org.apache.hc; | 431,101 |
void registerTimer(TimerResponse timerChannel, Date timeToFire); | void registerTimer(TimerResponse timerChannel, Date timeToFire); | /**
* Registers a timer for future notification.
* @param timerChannel channel for timer notification
* @param timeToFire future time to fire timer notification
*/ | Registers a timer for future notification | registerTimer | {
"repo_name": "Subasinghe/ode",
"path": "bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/BpelRuntimeContext.java",
"license": "apache-2.0",
"size": 10543
} | [
"java.util.Date",
"org.apache.ode.bpel.runtime.channels.TimerResponse"
] | import java.util.Date; import org.apache.ode.bpel.runtime.channels.TimerResponse; | import java.util.*; import org.apache.ode.bpel.runtime.channels.*; | [
"java.util",
"org.apache.ode"
] | java.util; org.apache.ode; | 190,710 |
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// If this page have the parameter logout that mean the user connected and
// print a little information about his action.
try {
if (request.getPa... | void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { if (request.getParameter(STR).equals("true")) { Logger.getLogger(LoginServlet.class.getName()).log(Level.INFO, STR); request.setAttribute(STR, new Integer(1)); } } catch (Exception ex) { } request.setAtt... | /**
* Handles the HTTP <code>GET</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>GET</code> method | doGet | {
"repo_name": "laurent-girod/Teaching-HEIGVD-AMT-2015-Project",
"path": "Gamy/src/main/java/ch/heigvd/amt/gamy/web/controllers/HomeServlet.java",
"license": "mit",
"size": 2038
} | [
"java.io.IOException",
"java.util.logging.Level",
"java.util.logging.Logger",
"javax.servlet.ServletException",
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpServletResponse"
] | import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; | import java.io.*; import java.util.logging.*; import javax.servlet.*; import javax.servlet.http.*; | [
"java.io",
"java.util",
"javax.servlet"
] | java.io; java.util; javax.servlet; | 443,383 |
public static String getFileNamePrefix(ServiceModel serviceModel) {
return String.format("%s-%s", serviceModel.getMetadata().getEndpointPrefix(), serviceModel.getMetadata().getApiVersion());
} | static String function(ServiceModel serviceModel) { return String.format("%s-%s", serviceModel.getMetadata().getEndpointPrefix(), serviceModel.getMetadata().getApiVersion()); } | /**
* * @param serviceModel Service model to get prefix for.
* * @return Prefix to use when writing model files (service and intermediate).
*/ | @param serviceModel Service model to get prefix for. @return Prefix to use when writing model files (service and intermediate) | getFileNamePrefix | {
"repo_name": "dagnir/aws-sdk-java",
"path": "aws-java-sdk-code-generator/src/main/java/com/amazonaws/codegen/internal/Utils.java",
"license": "apache-2.0",
"size": 10404
} | [
"com.amazonaws.codegen.model.service.ServiceModel"
] | import com.amazonaws.codegen.model.service.ServiceModel; | import com.amazonaws.codegen.model.service.*; | [
"com.amazonaws.codegen"
] | com.amazonaws.codegen; | 1,482,193 |
public static StereoSGBM create(int minDisparity, int numDisparities) {
return StereoSGBM.__fromPtr__(create_9(minDisparity, numDisparities));
} | static StereoSGBM function(int minDisparity, int numDisparities) { return StereoSGBM.__fromPtr__(create_9(minDisparity, numDisparities)); } | /**
* Creates StereoSGBM object
*
* @param minDisparity Minimum possible disparity value. Normally, it is zero but sometimes
* rectification algorithms can shift images, so this parameter needs to be adjusted accordingly.
* @param numDisparities Maximum disparity minus minimum dispa... | Creates StereoSGBM object | create | {
"repo_name": "HuTianQi/QQ",
"path": "openCVLibrary411/src/main/java/org/opencv/calib3d/StereoSGBM.java",
"license": "mit",
"size": 40594
} | [
"org.opencv.calib3d.StereoSGBM"
] | import org.opencv.calib3d.StereoSGBM; | import org.opencv.calib3d.*; | [
"org.opencv.calib3d"
] | org.opencv.calib3d; | 1,048,226 |
@NoInline
@Entrypoint
@NoSubArchCompile
public static void athrow(Throwable exceptionObject) {
boolean forSubArch = VM_Magic.runningOnSubArch();
VM_Registers registers = !forSubArch ? new ArchitectureSpecific.VM_Registers() : new SubordinateArchitecture.VM_Registers();
VM.disableGC(); //... | static void function(Throwable exceptionObject) { boolean forSubArch = VM_Magic.runningOnSubArch(); VM_Registers registers = !forSubArch ? new ArchitectureSpecific.VM_Registers() : new SubordinateArchitecture.VM_Registers(); VM.disableGC(); VM_Magic.saveThreadState(registers); registers.inuse = true; deliverException(e... | /**
* Deliver a software exception to current java thread.
* @param exceptionObject exception object to deliver
* (null --> deliver NullPointerException).
* does not return
* (stack is unwound and execution resumes in a catch block)
*
* This method is public so that it can be invoked by java.lang.V... | Deliver a software exception to current java thread | athrow | {
"repo_name": "rmcilroy/HeraJVM",
"path": "rvm/src/org/jikesrvm/runtime/VM_Runtime.java",
"license": "epl-1.0",
"size": 43390
} | [
"org.jikesrvm.ArchitectureSpecific",
"org.jikesrvm.SubordinateArchitecture",
"org.jikesrvm.VM"
] | import org.jikesrvm.ArchitectureSpecific; import org.jikesrvm.SubordinateArchitecture; import org.jikesrvm.VM; | import org.jikesrvm.*; | [
"org.jikesrvm"
] | org.jikesrvm; | 1,542,463 |
public EventSortOrder getEventSortOrder() {
EventSortOrder order = getState(false).eventSortOrder;
if (order == null) {
return EventSortOrder.DURATION_DESC;
} else {
return order;
}
} | EventSortOrder function() { EventSortOrder order = getState(false).eventSortOrder; if (order == null) { return EventSortOrder.DURATION_DESC; } else { return order; } } | /**
* Returns sort order for events.
*
* @return currently active sort strategy
*/ | Returns sort order for events | getEventSortOrder | {
"repo_name": "peterl1084/framework",
"path": "compatibility-server/src/main/java/com/vaadin/v7/ui/Calendar.java",
"license": "apache-2.0",
"size": 72487
} | [
"com.vaadin.v7.shared.ui.calendar.CalendarState"
] | import com.vaadin.v7.shared.ui.calendar.CalendarState; | import com.vaadin.v7.shared.ui.calendar.*; | [
"com.vaadin.v7"
] | com.vaadin.v7; | 653,154 |
public void setSoftware(@Nonnull String software) {
this.software = software;
} | void function(@Nonnull String software) { this.software = software; } | /**
* Sets the software embedded in this image.
* @param software the software embedded in this image
* @deprecated Use the static factory methods
*/ | Sets the software embedded in this image | setSoftware | {
"repo_name": "maksimov/dasein-cloud-core",
"path": "src/main/java/org/dasein/cloud/compute/MachineImage.java",
"license": "apache-2.0",
"size": 29226
} | [
"javax.annotation.Nonnull"
] | import javax.annotation.Nonnull; | import javax.annotation.*; | [
"javax.annotation"
] | javax.annotation; | 2,077,590 |
public PythonConfig getConfig() {
return config;
} | PythonConfig function() { return config; } | /**
* Returns the {@link PythonConfig}.
* */ | Returns the <code>PythonConfig</code> | getConfig | {
"repo_name": "darionyaphet/flink",
"path": "flink-python/src/main/java/org/apache/flink/streaming/api/operators/python/AbstractPythonFunctionOperatorBase.java",
"license": "apache-2.0",
"size": 11997
} | [
"org.apache.flink.python.PythonConfig"
] | import org.apache.flink.python.PythonConfig; | import org.apache.flink.python.*; | [
"org.apache.flink"
] | org.apache.flink; | 1,270,620 |
@Override
public void produceEvent(ClientEvent ce, ObjectContainer container, ClientContext context) {
if(container != null)
container.activate(listeners, 1);
for (Enumeration<ClientEventListener> e = listeners.elements() ;
e.hasMoreElements();) {
try {
ClientEventListen... | void function(ClientEvent ce, ObjectContainer container, ClientContext context) { if(container != null) container.activate(listeners, 1); for (Enumeration<ClientEventListener> e = listeners.elements() ; e.hasMoreElements();) { try { ClientEventListener cel = e.nextElement(); if(container != null) container.activate(cel... | /**
* Sends the ClientEvent to all registered listeners of this object.
**/ | Sends the ClientEvent to all registered listeners of this object | produceEvent | {
"repo_name": "NiteshBharadwaj/android-staging",
"path": "src/freenet/client/events/SimpleEventProducer.java",
"license": "gpl-2.0",
"size": 3224
} | [
"com.db4o.ObjectContainer",
"java.util.Enumeration",
"java.util.NoSuchElementException"
] | import com.db4o.ObjectContainer; import java.util.Enumeration; import java.util.NoSuchElementException; | import com.db4o.*; import java.util.*; | [
"com.db4o",
"java.util"
] | com.db4o; java.util; | 1,852,165 |
void handleImage(Image image, Element imageElement,
SVGGeneratorContext generatorContext); | void handleImage(Image image, Element imageElement, SVGGeneratorContext generatorContext); | /**
* The handler should set the xlink:href tag and the width and
* height attributes.
*/ | The handler should set the xlink:href tag and the width and height attributes | handleImage | {
"repo_name": "sflyphotobooks/crp-batik",
"path": "sources/org/apache/batik/svggen/ImageHandler.java",
"license": "apache-2.0",
"size": 2325
} | [
"java.awt.Image",
"org.w3c.dom.Element"
] | import java.awt.Image; import org.w3c.dom.Element; | import java.awt.*; import org.w3c.dom.*; | [
"java.awt",
"org.w3c.dom"
] | java.awt; org.w3c.dom; | 699,720 |
public LdapUserState login(String username, String password, boolean consent, String chosenEmail) throws
LoginException {
LdapUserDTO userDTO = null;
try {
userDTO = ldapRealm.findAndBind(username, password);// login user
} catch (EJBException | NamingException ee) {
LOGGER.log(Level.WAR... | LdapUserState function(String username, String password, boolean consent, String chosenEmail) throws LoginException { LdapUserDTO userDTO = null; try { userDTO = ldapRealm.findAndBind(username, password); } catch (EJBException NamingException ee) { LOGGER.log(Level.WARNING, STR, ee.getMessage()); throw new LoginExcepti... | /**
* Try to login ldap user.
* @param username
* @param password
* @param consent
* @param chosenEmail
* @return
* @throws LoginException
*/ | Try to login ldap user | login | {
"repo_name": "FilotasSiskos/hopsworks",
"path": "hopsworks-common/src/main/java/io/hops/hopsworks/common/user/ldap/LdapUserController.java",
"license": "agpl-3.0",
"size": 5389
} | [
"io.hops.hopsworks.common.dao.user.ldap.LdapUser",
"io.hops.hopsworks.common.dao.user.ldap.LdapUserDTO",
"java.util.logging.Level",
"javax.ejb.EJBException",
"javax.naming.NamingException",
"javax.security.auth.login.LoginException"
] | import io.hops.hopsworks.common.dao.user.ldap.LdapUser; import io.hops.hopsworks.common.dao.user.ldap.LdapUserDTO; import java.util.logging.Level; import javax.ejb.EJBException; import javax.naming.NamingException; import javax.security.auth.login.LoginException; | import io.hops.hopsworks.common.dao.user.ldap.*; import java.util.logging.*; import javax.ejb.*; import javax.naming.*; import javax.security.auth.login.*; | [
"io.hops.hopsworks",
"java.util",
"javax.ejb",
"javax.naming",
"javax.security"
] | io.hops.hopsworks; java.util; javax.ejb; javax.naming; javax.security; | 651,768 |
public Map<Tenor, CurveInstrumentProvider> getFRANodeIds() {
if (_fraNodeIds != null) {
return Collections.unmodifiableMap(_fraNodeIds);
}
return null;
} | Map<Tenor, CurveInstrumentProvider> function() { if (_fraNodeIds != null) { return Collections.unmodifiableMap(_fraNodeIds); } return null; } | /**
* Gets the FRA node ids.
* @return The FRA node ids
*/ | Gets the FRA node ids | getFRANodeIds | {
"repo_name": "ChinaQuants/OG-Platform",
"path": "projects/OG-Financial/src/main/java/com/opengamma/financial/analytics/curve/CurveNodeIdMapper.java",
"license": "apache-2.0",
"size": 64618
} | [
"com.opengamma.financial.analytics.ircurve.CurveInstrumentProvider",
"com.opengamma.util.time.Tenor",
"java.util.Collections",
"java.util.Map"
] | import com.opengamma.financial.analytics.ircurve.CurveInstrumentProvider; import com.opengamma.util.time.Tenor; import java.util.Collections; import java.util.Map; | import com.opengamma.financial.analytics.ircurve.*; import com.opengamma.util.time.*; import java.util.*; | [
"com.opengamma.financial",
"com.opengamma.util",
"java.util"
] | com.opengamma.financial; com.opengamma.util; java.util; | 2,499,863 |
public static void copy(URL src, File dst) throws IOException {
InputStream in = null;
OutputStream out = null;
try {
in = src.openStream();
out = new FileOutputStream(dst);
dst.mkdirs();
copy(in, out);
}
finally {
t... | static void function(URL src, File dst) throws IOException { InputStream in = null; OutputStream out = null; try { in = src.openStream(); out = new FileOutputStream(dst); dst.mkdirs(); copy(in, out); } finally { try { if (in != null) { in.close(); } } catch (IOException e) { } try { if (out != null) { out.close(); } } ... | /**
* Copies the contents at <CODE>src</CODE> to <CODE>dst</CODE>.
*/ | Copies the contents at <code>src</code> to <code>dst</code> | copy | {
"repo_name": "surevine/openfire-bespoke",
"path": "src/java/org/jivesoftware/util/WebManager.java",
"license": "gpl-2.0",
"size": 13213
} | [
"java.io.File",
"java.io.FileOutputStream",
"java.io.IOException",
"java.io.InputStream",
"java.io.OutputStream"
] | import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 870,353 |
public static void main(String[] args) {
try {
final AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
final TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
... | static void function(String[] args) { try { final AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); final TokenCredential credential = new DefaultAzureCredentialBuilder() .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint()) .build(); AzureResourceManager azureResourceManager = AzureResou... | /**
* Main entry point.
* @param args the parameters
*/ | Main entry point | main | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-samples/src/main/java/com/azure/resourcemanager/sql/samples/ManageSqlDatabaseInElasticPool.java",
"license": "mit",
"size": 11397
} | [
"com.azure.core.credential.TokenCredential",
"com.azure.core.http.policy.HttpLogDetailLevel",
"com.azure.core.management.AzureEnvironment",
"com.azure.core.management.profile.AzureProfile",
"com.azure.identity.DefaultAzureCredentialBuilder",
"com.azure.resourcemanager.AzureResourceManager"
] | import com.azure.core.credential.TokenCredential; import com.azure.core.http.policy.HttpLogDetailLevel; import com.azure.core.management.AzureEnvironment; import com.azure.core.management.profile.AzureProfile; import com.azure.identity.DefaultAzureCredentialBuilder; import com.azure.resourcemanager.AzureResourceManager... | import com.azure.core.credential.*; import com.azure.core.http.policy.*; import com.azure.core.management.*; import com.azure.core.management.profile.*; import com.azure.identity.*; import com.azure.resourcemanager.*; | [
"com.azure.core",
"com.azure.identity",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.identity; com.azure.resourcemanager; | 1,325,066 |
String inputFolder = ResourceLoader.getResourcePath(NonPowerAware.class, "workload/planetlab");
String outputFolder = "output";
String workload = "20110303"; // PlanetLab workload
String vmAllocationPolicy = "thr"; // Static Threshold (THR) VM allocation policy
String vmSelectionPolicy = "mmt"; // Minimum Mig... | String inputFolder = ResourceLoader.getResourcePath(NonPowerAware.class, STR); String outputFolder = STR; String workload = STR; String vmAllocationPolicy = "thr"; String vmSelectionPolicy = "mmt"; double staticUtilizationThreshold = 0.8; new PlanetLabRunner( true, false, inputFolder, outputFolder, workload, vmAllocati... | /**
* The main method.
*
* @param args the arguments
* @throws IOException Signals that an I/O exception has occurred.
*/ | The main method | main | {
"repo_name": "RaysaOliveira/cloudsim-plus",
"path": "cloudsim-plus-examples/src/main/java/org/cloudbus/cloudsim/examples/power/planetlab/ThrMmt.java",
"license": "gpl-3.0",
"size": 1911
} | [
"org.cloudbus.cloudsim.examples.power.util.PlanetLabRunner",
"org.cloudbus.cloudsim.util.ResourceLoader"
] | import org.cloudbus.cloudsim.examples.power.util.PlanetLabRunner; import org.cloudbus.cloudsim.util.ResourceLoader; | import org.cloudbus.cloudsim.examples.power.util.*; import org.cloudbus.cloudsim.util.*; | [
"org.cloudbus.cloudsim"
] | org.cloudbus.cloudsim; | 131,765 |
public void setObject (String name, Object object) {
setObject(name, object.position, object.angle, object.scale, object.pivot, object.alpha, object.ref);
} | void function (String name, Object object) { setObject(name, object.position, object.angle, object.scale, object.pivot, object.alpha, object.ref); } | /**
* Sets the values of the object with the given name to the values of the given object.
* @param name the name of the object
* @param object the object with the new values
* @throws SpriterException if no object exists of the given name
*/ | Sets the values of the object with the given name to the values of the given object | setObject | {
"repo_name": "piotr-j/VisEditor",
"path": "plugins/vis-runtime-spriter/src/main/java/com/brashmonkey/spriter/Player.java",
"license": "apache-2.0",
"size": 38708
} | [
"com.brashmonkey.spriter.Timeline"
] | import com.brashmonkey.spriter.Timeline; | import com.brashmonkey.spriter.*; | [
"com.brashmonkey.spriter"
] | com.brashmonkey.spriter; | 304,813 |
static Memory wrap(byte[] array, int offsetBytes, int lengthBytes, ByteOrder byteOrder) {
Objects.requireNonNull(array, "array must be non-null");
Objects.requireNonNull(byteOrder, "byteOrder must be non-null");
negativeCheck(offsetBytes, "offsetBytes");
negativeCheck(lengthBytes, "lengthBytes");
... | static Memory wrap(byte[] array, int offsetBytes, int lengthBytes, ByteOrder byteOrder) { Objects.requireNonNull(array, STR); Objects.requireNonNull(byteOrder, STR); negativeCheck(offsetBytes, STR); negativeCheck(lengthBytes, STR); UnsafeUtil.checkBounds(offsetBytes, lengthBytes, array.length); return BaseWritableMemor... | /**
* Wraps the given primitive array for read operations with the given byte order.
* @param array the given primitive array.
* @param offsetBytes the byte offset into the given array
* @param lengthBytes the number of bytes to include from the given array
* @param byteOrder the byte order to be used
... | Wraps the given primitive array for read operations with the given byte order | wrap | {
"repo_name": "DataSketches/memory",
"path": "datasketches-memory-java8/src/main/java/org/apache/datasketches/memory/Memory.java",
"license": "apache-2.0",
"size": 21404
} | [
"java.nio.ByteOrder",
"java.util.Objects",
"org.apache.datasketches.memory.internal.BaseWritableMemoryImpl",
"org.apache.datasketches.memory.internal.UnsafeUtil",
"org.apache.datasketches.memory.internal.Util"
] | import java.nio.ByteOrder; import java.util.Objects; import org.apache.datasketches.memory.internal.BaseWritableMemoryImpl; import org.apache.datasketches.memory.internal.UnsafeUtil; import org.apache.datasketches.memory.internal.Util; | import java.nio.*; import java.util.*; import org.apache.datasketches.memory.internal.*; | [
"java.nio",
"java.util",
"org.apache.datasketches"
] | java.nio; java.util; org.apache.datasketches; | 464,884 |
public static void registerOffset(Query q, int start, DatabaseSchema schema, Database db,
Object value, Map<Object, String> bagTableNames) {
LOG.debug("registerOffset() called with offset: " + start);
try {
if (value.getClass().equals(Boolean.class)) {
return... | static void function(Query q, int start, DatabaseSchema schema, Database db, Object value, Map<Object, String> bagTableNames) { LOG.debug(STR + start); try { if (value.getClass().equals(Boolean.class)) { return; } QueryOrderable firstOrderByO = null; firstOrderByO = (QueryOrderable) q.getEffectiveOrderBy().iterator().n... | /**
* Registers an offset for a given query. This is used later on to speed up queries that use
* big offsets.
*
* @param q the Query
* @param start the offset
* @param schema the DatabaseSchema in which to look up metadata
* @param db the Database that the ObjectStore uses
* @pa... | Registers an offset for a given query. This is used later on to speed up queries that use big offsets | registerOffset | {
"repo_name": "elsiklab/intermine",
"path": "intermine/objectstore/main/src/org/intermine/objectstore/intermine/SqlGenerator.java",
"license": "lgpl-2.1",
"size": 140034
} | [
"java.util.Map",
"java.util.NoSuchElementException",
"java.util.SortedMap",
"org.intermine.model.InterMineObject",
"org.intermine.objectstore.ObjectStoreException",
"org.intermine.objectstore.query.Constraint",
"org.intermine.objectstore.query.Query",
"org.intermine.objectstore.query.QueryClass",
"o... | import java.util.Map; import java.util.NoSuchElementException; import java.util.SortedMap; import org.intermine.model.InterMineObject; import org.intermine.objectstore.ObjectStoreException; import org.intermine.objectstore.query.Constraint; import org.intermine.objectstore.query.Query; import org.intermine.objectstore.... | import java.util.*; import org.intermine.model.*; import org.intermine.objectstore.*; import org.intermine.objectstore.query.*; import org.intermine.sql.*; | [
"java.util",
"org.intermine.model",
"org.intermine.objectstore",
"org.intermine.sql"
] | java.util; org.intermine.model; org.intermine.objectstore; org.intermine.sql; | 1,754,080 |
public Configuration getGeneralConf() {
return _generalConf;
} | Configuration function() { return _generalConf; } | /**
* Get the general configuration object.
*
* @return the genral configuration object.
*/ | Get the general configuration object | getGeneralConf | {
"repo_name": "nntnag17/dr-elephant-1",
"path": "app/com/linkedin/drelephant/ElephantContext.java",
"license": "apache-2.0",
"size": 17134
} | [
"org.apache.hadoop.conf.Configuration"
] | import org.apache.hadoop.conf.Configuration; | import org.apache.hadoop.conf.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 2,295,653 |
public void testEmptyPatch() {
DiffStyler styler = new DiffStyler(getContext().getResources());
CommitFile file = new CommitFile();
file.setFilename("file.txt");
styler.setFiles(Collections.singletonList(file));
assertTrue(styler.get("file.txt").isEmpty());
file.setPa... | void function() { DiffStyler styler = new DiffStyler(getContext().getResources()); CommitFile file = new CommitFile(); file.setFilename(STR); styler.setFiles(Collections.singletonList(file)); assertTrue(styler.get(STR).isEmpty()); file.setPatch(""); assertTrue(styler.get(STR).isEmpty()); } | /**
* Test styler with empty patch
*/ | Test styler with empty patch | testEmptyPatch | {
"repo_name": "DeLaSalleUniversity-Manila/ForkHub-macexcel",
"path": "app/src/androidTest/java/com/github/zion/tests/commit/DiffStylerTest.java",
"license": "apache-2.0",
"size": 4185
} | [
"com.github.zion.ui.commit.DiffStyler",
"java.util.Collections",
"org.eclipse.egit.github.core.CommitFile"
] | import com.github.zion.ui.commit.DiffStyler; import java.util.Collections; import org.eclipse.egit.github.core.CommitFile; | import com.github.zion.ui.commit.*; import java.util.*; import org.eclipse.egit.github.core.*; | [
"com.github.zion",
"java.util",
"org.eclipse.egit"
] | com.github.zion; java.util; org.eclipse.egit; | 1,935,868 |
return new Iterator<Integer>() {
private Iterator<Integer> current = it.next(); | return new Iterator<Integer>() { private Iterator<Integer> current = it.next(); | /**
* metod convert.
* @param it - incoming Iterator.
* @return iterator.
*/ | metod convert | convert | {
"repo_name": "EvgeniyUlanov/eulanov",
"path": "chapter_004/src/main/java/ru/job4j/iterator/Converter.java",
"license": "apache-2.0",
"size": 1427
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 307,068 |
private void createField (ResultSet rs)
{
// Create Field
GridFieldVO voF = GridFieldVO.createParameter(Env.getCtx(), m_WindowNo, rs);
GridField mField = new GridField (voF);
m_mFields.add(mField); // add to Fields
// Label Preparation
gbc.gridy = m_line++;
g... | void function (ResultSet rs) { GridFieldVO voF = GridFieldVO.createParameter(Env.getCtx(), m_WindowNo, rs); GridField mField = new GridField (voF); m_mFields.add(mField); gbc.gridy = m_line++; gbc.gridwidth = 1; gbc.fill = GridBagConstraints.HORIZONTAL; gbc.gridx = 0; gbc.weightx = 0; JLabel label = VEditorFactory.getL... | /**
* Create Field.
* - creates Fields and adds it to m_mFields list
* - creates Editor and adds it to m_vEditors list
* Handles Ranges by adding additional mField/vEditor.
* <p>
* mFields are used for default value and mandatory checking;
* vEditors are used to retrieve the value (no d... | Create Field. - creates Fields and adds it to m_mFields list - creates Editor and adds it to m_vEditors list Handles Ranges by adding additional mField/vEditor. mFields are used for default value and mandatory checking; vEditors are used to retrieve the value (no data binding) | createField | {
"repo_name": "armenrz/adempiere",
"path": "client/src/org/compiere/apps/ProcessParameterPanel.java",
"license": "gpl-2.0",
"size": 24421
} | [
"java.awt.Component",
"java.awt.GridBagConstraints",
"java.sql.ResultSet",
"javax.swing.Box",
"javax.swing.JLabel",
"org.compiere.grid.ed.VEditor",
"org.compiere.grid.ed.VEditorFactory",
"org.compiere.model.GridField",
"org.compiere.model.GridFieldVO",
"org.compiere.util.Env"
] | import java.awt.Component; import java.awt.GridBagConstraints; import java.sql.ResultSet; import javax.swing.Box; import javax.swing.JLabel; import org.compiere.grid.ed.VEditor; import org.compiere.grid.ed.VEditorFactory; import org.compiere.model.GridField; import org.compiere.model.GridFieldVO; import org.compiere.ut... | import java.awt.*; import java.sql.*; import javax.swing.*; import org.compiere.grid.ed.*; import org.compiere.model.*; import org.compiere.util.*; | [
"java.awt",
"java.sql",
"javax.swing",
"org.compiere.grid",
"org.compiere.model",
"org.compiere.util"
] | java.awt; java.sql; javax.swing; org.compiere.grid; org.compiere.model; org.compiere.util; | 1,705,450 |
FixtureScript getRefDataSetupFixture(); | FixtureScript getRefDataSetupFixture(); | /**
* Optionally each module can define a {@link FixtureScript} which holds immutable "reference data".
* These are automatically executed whenever running integration tests (but are ignored when bootstrapping the
* runtime as a webapp).
*/ | Optionally each module can define a <code>FixtureScript</code> which holds immutable "reference data". These are automatically executed whenever running integration tests (but are ignored when bootstrapping the runtime as a webapp) | getRefDataSetupFixture | {
"repo_name": "incodehq/isis",
"path": "core/applib/src/main/java/org/apache/isis/applib/Module.java",
"license": "apache-2.0",
"size": 10156
} | [
"org.apache.isis.applib.fixturescripts.FixtureScript"
] | import org.apache.isis.applib.fixturescripts.FixtureScript; | import org.apache.isis.applib.fixturescripts.*; | [
"org.apache.isis"
] | org.apache.isis; | 2,583,459 |
public InTheCircleOfFriendsNamesMatch newMatch(final String pS1Name, final String pSomeoneName) {
return InTheCircleOfFriendsNamesMatch.newMatch(pS1Name, pSomeoneName);
} | InTheCircleOfFriendsNamesMatch function(final String pS1Name, final String pSomeoneName) { return InTheCircleOfFriendsNamesMatch.newMatch(pS1Name, pSomeoneName); } | /**
* Returns a new (partial) match.
* This can be used e.g. to call the matcher with a partial match.
* <p>The returned match will be immutable. Use {@link #newEmptyMatch()} to obtain a mutable match object.
* @param pS1Name the fixed value of pattern parameter S1Name, or null if not bound.
* @param pSo... | Returns a new (partial) match. This can be used e.g. to call the matcher with a partial match. The returned match will be immutable. Use <code>#newEmptyMatch()</code> to obtain a mutable match object | newMatch | {
"repo_name": "FTSRG/mondo-collab-framework",
"path": "archive/mondo-property-based-locking/org.mondo.collaboration.client/src-gen/org/mondo/collaboration/client/incquery/InTheCircleOfFriendsNamesMatcher.java",
"license": "epl-1.0",
"size": 13748
} | [
"org.mondo.collaboration.client.incquery.InTheCircleOfFriendsNamesMatch"
] | import org.mondo.collaboration.client.incquery.InTheCircleOfFriendsNamesMatch; | import org.mondo.collaboration.client.incquery.*; | [
"org.mondo.collaboration"
] | org.mondo.collaboration; | 1,712,977 |
public void getNewAuthTokenFromForeground(Account account, String authToken,
String authTokenType, GetAuthTokenCallback callback) {
invalidateAuthToken(authToken);
AtomicInteger numTries = new AtomicInteger(0);
AtomicBoolean errorEncountered = new AtomicBoolean(false);
... | void function(Account account, String authToken, String authTokenType, GetAuthTokenCallback callback) { invalidateAuthToken(authToken); AtomicInteger numTries = new AtomicInteger(0); AtomicBoolean errorEncountered = new AtomicBoolean(false); getAuthTokenAsynchronously( null, account, authTokenType, callback, numTries, ... | /**
* Invalidates the old token (if non-null/non-empty) and asynchronously generates a new one.
*
* - Assumes that the account is a valid account.
*/ | Invalidates the old token (if non-null/non-empty) and asynchronously generates a new one. - Assumes that the account is a valid account | getNewAuthTokenFromForeground | {
"repo_name": "Pluto-tv/chromium-crosswalk",
"path": "sync/android/java/src/org/chromium/sync/signin/AccountManagerHelper.java",
"license": "bsd-3-clause",
"size": 15088
} | [
"android.accounts.Account",
"java.util.concurrent.atomic.AtomicBoolean",
"java.util.concurrent.atomic.AtomicInteger"
] | import android.accounts.Account; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; | import android.accounts.*; import java.util.concurrent.atomic.*; | [
"android.accounts",
"java.util"
] | android.accounts; java.util; | 1,536,666 |
protected final int shiftKeys( int pos ) {
// Shift entries with the same hash.
int last, slot;
for(;;) {
pos = ( ( last = pos ) + 1 ) & mask;
while( used[ pos ] ) {
slot = (int)it.unimi.dsi.fastutil.HashCommon.murmurHash3(key[ pos ]) & mask;
if ( last <= pos ? last >= slot || slot > pos : ... | final int function( int pos ) { int last, slot; for(;;) { pos = ( ( last = pos ) + 1 ) & mask; while( used[ pos ] ) { slot = (int)it.unimi.dsi.fastutil.HashCommon.murmurHash3(key[ pos ]) & mask; if ( last <= pos ? last >= slot slot > pos : last >= slot && slot > pos ) break; pos = ( pos + 1 ) & mask; } if ( ! used[ pos... | /** Shifts left entries with the specified hash code, starting at the specified position,
* and empties the resulting free entry. If any entry wraps around the table, instantiates
* lazily {@link #wrapped} and stores the entry key.
*
* @param pos a starting position.
* @return the position cleared by the... | Shifts left entries with the specified hash code, starting at the specified position, and empties the resulting free entry. If any entry wraps around the table, instantiates lazily <code>#wrapped</code> and stores the entry key | shiftKeys | {
"repo_name": "karussell/fastutil",
"path": "src/it/unimi/dsi/fastutil/longs/Long2ReferenceOpenHashMap.java",
"license": "apache-2.0",
"size": 27416
} | [
"it.unimi.dsi.fastutil.HashCommon"
] | import it.unimi.dsi.fastutil.HashCommon; | import it.unimi.dsi.fastutil.*; | [
"it.unimi.dsi"
] | it.unimi.dsi; | 146,807 |
@Override
public List<APIVersionLastAccessTimeDTO> getProviderAPIVersionUserLastAccess(String providerName, String fromDate,
String toDate, int limit) throws APIMgtUsageQueryServiceClientException {
Collection<APIAccessTime> accessTimes = getLastAccessData(
APIUsageStatistic... | List<APIVersionLastAccessTimeDTO> function(String providerName, String fromDate, String toDate, int limit) throws APIMgtUsageQueryServiceClientException { Collection<APIAccessTime> accessTimes = getLastAccessData( APIUsageStatisticsClientConstants.API_VERSION_KEY_LAST_ACCESS_SUMMARY, providerName); if (providerName.sta... | /**
* Returns a list of APIVersionLastAccessTimeDTO objects for all the APIs belonging to the
* specified provider. Last access times are calculated without taking API versions into
* account. That is all the versions of an API are treated as one.
*
* @param providerName Name of the API provide... | Returns a list of APIVersionLastAccessTimeDTO objects for all the APIs belonging to the specified provider. Last access times are calculated without taking API versions into account. That is all the versions of an API are treated as one | getProviderAPIVersionUserLastAccess | {
"repo_name": "pubudu538/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.usage/org.wso2.carbon.apimgt.usage.client/src/main/java/org/wso2/carbon/apimgt/usage/client/impl/APIUsageStatisticsRdbmsClientImpl.java",
"license": "apache-2.0",
"size": 165547
} | [
"java.util.ArrayList",
"java.util.Collection",
"java.util.List",
"org.wso2.carbon.apimgt.usage.client.APIUsageStatisticsClientConstants",
"org.wso2.carbon.apimgt.usage.client.dto.APIVersionLastAccessTimeDTO",
"org.wso2.carbon.apimgt.usage.client.exception.APIMgtUsageQueryServiceClientException",
"org.ws... | import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.wso2.carbon.apimgt.usage.client.APIUsageStatisticsClientConstants; import org.wso2.carbon.apimgt.usage.client.dto.APIVersionLastAccessTimeDTO; import org.wso2.carbon.apimgt.usage.client.exception.APIMgtUsageQueryServiceClientExce... | import java.util.*; import org.wso2.carbon.apimgt.usage.client.*; import org.wso2.carbon.apimgt.usage.client.dto.*; import org.wso2.carbon.apimgt.usage.client.exception.*; import org.wso2.carbon.apimgt.usage.client.pojo.*; | [
"java.util",
"org.wso2.carbon"
] | java.util; org.wso2.carbon; | 769,113 |
protected boolean isDeletable(Dataset data) {
if(data==null) {
return false;
}
// commented out by D Brown Mar 2011 so all columns are deletable
// if(!userEditable&&(data instanceof DataColumn)) {
// DataColumn column = (DataColumn) data;
// if(!column.deletable) {
// return fal... | boolean function(Dataset data) { if(data==null) { return false; } return true; } | /**
* Determines if a dataset is deletable.
*
* @param data the dataset
* @return true if deletable
*/ | Determines if a dataset is deletable | isDeletable | {
"repo_name": "fschuett/osp",
"path": "src/org/opensourcephysics/tools/DataToolTab.java",
"license": "gpl-3.0",
"size": 163748
} | [
"org.opensourcephysics.display.Dataset"
] | import org.opensourcephysics.display.Dataset; | import org.opensourcephysics.display.*; | [
"org.opensourcephysics.display"
] | org.opensourcephysics.display; | 1,138,943 |
public void testInvalidChart() throws Exception {
final int testingYearAsInt = Integer.parseInt(testingYear);
final String previousTestingYear = new Integer(testingYearAsInt - 1).toString();
String[] inputTransactions = {testingYear + "XX1031420-----4110---ACEX07DI EUINVALCHAR 00000NOV... | void function() throws Exception { final int testingYearAsInt = Integer.parseInt(testingYear); final String previousTestingYear = new Integer(testingYearAsInt - 1).toString(); String[] inputTransactions = {testingYear + STR + previousTestingYear + STR, testingYear + STR + previousTestingYear + STR}; EntryHolder[] outpu... | /**
* Tests that the scrubber considers invalid charts to be errors
*
* @throws Exception thrown if any exception is encountered for any reason
*/ | Tests that the scrubber considers invalid charts to be errors | testInvalidChart | {
"repo_name": "quikkian-ua-devops/will-financials",
"path": "kfs-core/src/test/java/org/kuali/kfs/gl/service/ScrubberServiceTest.java",
"license": "agpl-3.0",
"size": 285144
} | [
"org.kuali.kfs.gl.GeneralLedgerConstants"
] | import org.kuali.kfs.gl.GeneralLedgerConstants; | import org.kuali.kfs.gl.*; | [
"org.kuali.kfs"
] | org.kuali.kfs; | 2,506,305 |
@Override
public List<IItemPropertyDescriptor> getPropertyDescriptors(Object object) {
if (itemPropertyDescriptors == null) {
super.getPropertyDescriptors(object);
addDirectionPropertyDescriptor(object);
addDefaultValuePropertyDescriptor(object);
addTypePropertyDescriptor(object);
}
return itemPr... | List<IItemPropertyDescriptor> function(Object object) { if (itemPropertyDescriptors == null) { super.getPropertyDescriptors(object); addDirectionPropertyDescriptor(object); addDefaultValuePropertyDescriptor(object); addTypePropertyDescriptor(object); } return itemPropertyDescriptors; } | /**
* This returns the property descriptors for the adapted class.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This returns the property descriptors for the adapted class. | getPropertyDescriptors | {
"repo_name": "ifml/ifml-editor",
"path": "plugins/IFMLEditor.edit/src/IFML/Extensions/provider/IFMLSlotItemProvider.java",
"license": "mit",
"size": 6859
} | [
"java.util.List",
"org.eclipse.emf.edit.provider.IItemPropertyDescriptor"
] | import java.util.List; import org.eclipse.emf.edit.provider.IItemPropertyDescriptor; | import java.util.*; import org.eclipse.emf.edit.provider.*; | [
"java.util",
"org.eclipse.emf"
] | java.util; org.eclipse.emf; | 2,413,722 |
public UaObjectNodeBuilder setTypeDefinition(NodeId typeDefinition) {
Objects.requireNonNull(nodeId, "NodeId cannot be null");
references.add(new Reference(
nodeId,
Identifiers.HasTypeDefinition,
new ExpandedNodeId(typeDefiniti... | UaObjectNodeBuilder function(NodeId typeDefinition) { Objects.requireNonNull(nodeId, STR); references.add(new Reference( nodeId, Identifiers.HasTypeDefinition, new ExpandedNodeId(typeDefinition), NodeClass.ObjectType, true )); return this; } } | /**
* Convenience method for adding the required HasTypeDefinition reference.
* <p>
* {@link #setNodeId(NodeId)} must have already been called before invoking this method.
*
* @param typeDefinition The {@link NodeId} of the TypeDefinition.
* @return this {@link UaOb... | Convenience method for adding the required HasTypeDefinition reference. <code>#setNodeId(NodeId)</code> must have already been called before invoking this method | setTypeDefinition | {
"repo_name": "bencaldwell/ua-server-sdk",
"path": "ua-server/src/main/java/com/digitalpetri/opcua/sdk/server/model/UaObjectNode.java",
"license": "agpl-3.0",
"size": 13673
} | [
"com.digitalpetri.opcua.sdk.core.Reference",
"com.digitalpetri.opcua.stack.core.Identifiers",
"com.digitalpetri.opcua.stack.core.types.builtin.ExpandedNodeId",
"com.digitalpetri.opcua.stack.core.types.builtin.NodeId",
"com.digitalpetri.opcua.stack.core.types.enumerated.NodeClass",
"java.util.Objects"
] | import com.digitalpetri.opcua.sdk.core.Reference; import com.digitalpetri.opcua.stack.core.Identifiers; import com.digitalpetri.opcua.stack.core.types.builtin.ExpandedNodeId; import com.digitalpetri.opcua.stack.core.types.builtin.NodeId; import com.digitalpetri.opcua.stack.core.types.enumerated.NodeClass; import java.u... | import com.digitalpetri.opcua.sdk.core.*; import com.digitalpetri.opcua.stack.core.*; import com.digitalpetri.opcua.stack.core.types.builtin.*; import com.digitalpetri.opcua.stack.core.types.enumerated.*; import java.util.*; | [
"com.digitalpetri.opcua",
"java.util"
] | com.digitalpetri.opcua; java.util; | 1,203,555 |
default void preBulkLoadHFile(final ObserverContext<RegionCoprocessorEnvironment> ctx,
List<Pair<byte[], String>> familyPaths) throws IOException {}
/**
* Called before moving bulk loaded hfile to region directory.
*
* @param ctx the environment provided by the region server
* @param family column ... | default void preBulkLoadHFile(final ObserverContext<RegionCoprocessorEnvironment> ctx, List<Pair<byte[], String>> familyPaths) throws IOException {} /** * Called before moving bulk loaded hfile to region directory. * * @param ctx the environment provided by the region server * @param family column family * @param pairs... | /**
* Called before bulkLoadHFile. Users can create a StoreFile instance to
* access the contents of a HFile.
*
* @param ctx the environment provided by the region server
* @param familyPaths pairs of { CF, HFile path } submitted for bulk load. Adding
* or removing from this list will add or remove HF... | Called before bulkLoadHFile. Users can create a StoreFile instance to access the contents of a HFile | preBulkLoadHFile | {
"repo_name": "gustavoanatoly/hbase",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/RegionObserver.java",
"license": "apache-2.0",
"size": 67737
} | [
"java.io.IOException",
"java.util.List",
"org.apache.hadoop.hbase.util.Pair"
] | import java.io.IOException; import java.util.List; import org.apache.hadoop.hbase.util.Pair; | import java.io.*; import java.util.*; import org.apache.hadoop.hbase.util.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 2,521,571 |
public void initialize( final int par_max_ptcs ) {
Log.fi();
if (mUserinterfacePtr == -1) {
mUserinterfacePtr = do_init( par_max_ptcs );
mEventDispatcher = new EventDispatcher();
new Thread( mEventDispatcher ).start();
}
// otherwise Main Controller has been already initialized, nothing to do
Log.... | void function( final int par_max_ptcs ) { Log.fi(); if (mUserinterfacePtr == -1) { mUserinterfacePtr = do_init( par_max_ptcs ); mEventDispatcher = new EventDispatcher(); new Thread( mEventDispatcher ).start(); } Log.fo(); } | /**
* Initialize the Main Controller.
*
* @param par_max_ptcs the maximum number of PTCs this Main Controller will be allowed to handle at a time.
*/ | Initialize the Main Controller | initialize | {
"repo_name": "BenceJanosSzabo/titan.core",
"path": "titan_executor_api/TITAN_Executor_API/src/org/eclipse/titan/executor/jni/JNIMiddleWare.java",
"license": "epl-1.0",
"size": 23227
} | [
"org.eclipse.titan.executorapi.util.Log"
] | import org.eclipse.titan.executorapi.util.Log; | import org.eclipse.titan.executorapi.util.*; | [
"org.eclipse.titan"
] | org.eclipse.titan; | 1,439,497 |
public static AttributeCall fromValue(ConfigAdapter config)
throws ConfigurationException {
// ugly form of downcasting... but XML-RPC doesn't give us a List<String>
List<String> keys = config.getDataPoints();
AttributeCall call =
new AttributeCall(config.getOjectName(),
... | static AttributeCall function(ConfigAdapter config) throws ConfigurationException { List<String> keys = config.getDataPoints(); AttributeCall call = new AttributeCall(config.getOjectName(), config.getAttributeName(), keys, config.getAttributePath()); call.setDeviceId(config.getDevice()); call.setDataSourceId(config.get... | /**
* Creates a MultiValueAttributeCall from the configuration provided
*/ | Creates a MultiValueAttributeCall from the configuration provided | fromValue | {
"repo_name": "krull/docker-zenoss4",
"path": "init_fs/usr/local/zenoss/ZenPacks/ZenPacks.zenoss.ZenJMX-3.12.1.egg/ZenPacks/zenoss/ZenJMX/src/main/java/com/zenoss/zenpacks/zenjmx/call/AttributeCall.java",
"license": "gpl-3.0",
"size": 3969
} | [
"com.zenoss.zenpacks.zenjmx.ConfigAdapter",
"java.util.List"
] | import com.zenoss.zenpacks.zenjmx.ConfigAdapter; import java.util.List; | import com.zenoss.zenpacks.zenjmx.*; import java.util.*; | [
"com.zenoss.zenpacks",
"java.util"
] | com.zenoss.zenpacks; java.util; | 233,063 |
public void setCreditLimit (BigDecimal CreditLimit); | void function (BigDecimal CreditLimit); | /** Set Credit limit.
* Amount of Credit allowed
*/ | Set Credit limit. Amount of Credit allowed | setCreditLimit | {
"repo_name": "armenrz/adempiere",
"path": "base/src/org/compiere/model/I_C_BankAccount.java",
"license": "gpl-2.0",
"size": 7225
} | [
"java.math.BigDecimal"
] | import java.math.BigDecimal; | import java.math.*; | [
"java.math"
] | java.math; | 296,684 |
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<RouteFilterInner> getByResourceGroupAsync(String resourceGroupName, String routeFilterName) {
final String expand = null;
return getByResourceGroupWithResponseAsync(resourceGroupName, routeFilterName, expand)
.flatMap(
... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<RouteFilterInner> function(String resourceGroupName, String routeFilterName) { final String expand = null; return getByResourceGroupWithResponseAsync(resourceGroupName, routeFilterName, expand) .flatMap( (Response<RouteFilterInner> res) -> { if (res.getValue() != null) {... | /**
* Gets the specified route filter.
*
* @param resourceGroupName The name of the resource group.
* @param routeFilterName The name of the route filter.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rej... | Gets the specified route filter | getByResourceGroupAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RouteFiltersClientImpl.java",
"license": "mit",
"size": 68272
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.resourcemanager.network.fluent.models.RouteFilterInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.resourcemanager.network.fluent.models.RouteFilterInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.network.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 1,220,212 |
private void buildSubJobBatchWorkUnits() {
List<Flow> flows = this.split.getFlows();
parallelBatchWorkUnits = new ArrayList<BatchFlowInSplitWorkUnit>();
// Build all sub jobs from flows in split
synchronized (subJobs) {
for (Flow flow : flows) {
subJobs.add(PartitionedStepBuilder.buildFlowInSplitSu... | void function() { List<Flow> flows = this.split.getFlows(); parallelBatchWorkUnits = new ArrayList<BatchFlowInSplitWorkUnit>(); synchronized (subJobs) { for (Flow flow : flows) { subJobs.add(PartitionedStepBuilder.buildFlowInSplitSubJob(jobContext, this.split, flow)); } for (JSLJob job : subJobs) { int count = batchKer... | /**
* Note we restart all flows. There is no concept of "the flow completed". It is only steps
* within the flows that may have already completed and so may not have needed to be rerun.
*
*/ | Note we restart all flows. There is no concept of "the flow completed". It is only steps within the flows that may have already completed and so may not have needed to be rerun | buildSubJobBatchWorkUnits | {
"repo_name": "WASdev/standards.jsr352.jbatch",
"path": "com.ibm.jbatch.container/src/main/java/com/ibm/jbatch/container/impl/SplitControllerImpl.java",
"license": "apache-2.0",
"size": 12800
} | [
"com.ibm.jbatch.container.util.BatchFlowInSplitWorkUnit",
"com.ibm.jbatch.container.util.FlowInSplitBuilderConfig",
"com.ibm.jbatch.jsl.model.Flow",
"com.ibm.jbatch.jsl.model.JSLJob",
"java.util.ArrayList",
"java.util.List"
] | import com.ibm.jbatch.container.util.BatchFlowInSplitWorkUnit; import com.ibm.jbatch.container.util.FlowInSplitBuilderConfig; import com.ibm.jbatch.jsl.model.Flow; import com.ibm.jbatch.jsl.model.JSLJob; import java.util.ArrayList; import java.util.List; | import com.ibm.jbatch.container.util.*; import com.ibm.jbatch.jsl.model.*; import java.util.*; | [
"com.ibm.jbatch",
"java.util"
] | com.ibm.jbatch; java.util; | 208,998 |
private void initiateUserScreenSettings() {
displayMetrics = this.getResources().getDisplayMetrics();
WindowManager windowManager = (WindowManager) getSystemService(WINDOW_SERVICE);
rawDisplayMetrics = new DisplayMetrics();
Display disp = windowManager.getDefaultDisplay();
di... | void function() { displayMetrics = this.getResources().getDisplayMetrics(); WindowManager windowManager = (WindowManager) getSystemService(WINDOW_SERVICE); rawDisplayMetrics = new DisplayMetrics(); Display disp = windowManager.getDefaultDisplay(); disp.getRealMetrics(rawDisplayMetrics); } | /**
* Runs the initialization logic related to the user screen, taking measurements so the ocr will scan the right
* areas.
*/ | Runs the initialization logic related to the user screen, taking measurements so the ocr will scan the right areas | initiateUserScreenSettings | {
"repo_name": "rhari991/GoIV",
"path": "app/src/main/java/com/kamron/pogoiv/MainActivity.java",
"license": "gpl-3.0",
"size": 23617
} | [
"android.util.DisplayMetrics",
"android.view.Display",
"android.view.WindowManager"
] | import android.util.DisplayMetrics; import android.view.Display; import android.view.WindowManager; | import android.util.*; import android.view.*; | [
"android.util",
"android.view"
] | android.util; android.view; | 1,195,774 |
public Task retrieveWlbEvacuateRecommendationsAsync(Connection c) throws
BadServerResponse,
XenAPIException,
XmlRpcException {
String method_call = "Async.host.retrieve_wlb_evacuate_recommendations";
String session = c.getSessionReference();
Object[] method_params = {Mar... | Task function(Connection c) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = STR; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref)}; Map response = c.dispatch(method_call, method_params); Object result = re... | /**
* Retrieves recommended host migrations to perform when evacuating the host from the wlb server. If a VM cannot be migrated from the host the reason is listed instead of a recommendation.
*
* @return Task
*/ | Retrieves recommended host migrations to perform when evacuating the host from the wlb server. If a VM cannot be migrated from the host the reason is listed instead of a recommendation | retrieveWlbEvacuateRecommendationsAsync | {
"repo_name": "cinderella/incubator-cloudstack",
"path": "deps/XenServerJava/com/xensource/xenapi/Host.java",
"license": "apache-2.0",
"size": 105838
} | [
"com.xensource.xenapi.Types",
"java.util.Map",
"org.apache.xmlrpc.XmlRpcException"
] | import com.xensource.xenapi.Types; import java.util.Map; import org.apache.xmlrpc.XmlRpcException; | import com.xensource.xenapi.*; import java.util.*; import org.apache.xmlrpc.*; | [
"com.xensource.xenapi",
"java.util",
"org.apache.xmlrpc"
] | com.xensource.xenapi; java.util; org.apache.xmlrpc; | 625,290 |
@ApiModelProperty(value = "")
public LocalDateTime getCreated() {
return created;
} | @ApiModelProperty(value = "") LocalDateTime function() { return created; } | /**
* Get created
* @return created
**/ | Get created | getCreated | {
"repo_name": "LogSentinel/logsentinel-java-client",
"path": "src/main/java/com/logsentinel/model/GDPRRegisterRecordDto.java",
"license": "mit",
"size": 37550
} | [
"io.swagger.annotations.ApiModelProperty",
"java.time.LocalDateTime"
] | import io.swagger.annotations.ApiModelProperty; import java.time.LocalDateTime; | import io.swagger.annotations.*; import java.time.*; | [
"io.swagger.annotations",
"java.time"
] | io.swagger.annotations; java.time; | 32,835 |
public BufferedReader getReader() throws IOException;
| BufferedReader function() throws IOException; | /**
* Retrieves the body of the request as character data using a
* <code>BufferedReader</code>. The reader translates the character data
* according to the character encoding used on the body. Either this method
* or {@link #getInputStream} may be called to read the body, not both.
*
... | Retrieves the body of the request as character data using a <code>BufferedReader</code>. The reader translates the character data according to the character encoding used on the body. Either this method or <code>#getInputStream</code> may be called to read the body, not both | getReader | {
"repo_name": "IAMTJW/Tomcat-8.5.20",
"path": "tomcat-8.5.20/java/javax/servlet/ServletRequest.java",
"license": "apache-2.0",
"size": 21015
} | [
"java.io.BufferedReader",
"java.io.IOException"
] | import java.io.BufferedReader; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,979,035 |
public ItemReference injectVcsStatus(ItemReference itemReference)
throws ServerException, NotFoundException {
Optional<VcsStatusProvider> optional = getVcsStatusProvider(itemReference);
if (optional.isPresent()) {
Map<String, String> attributes = new HashMap<>(itemReference.getAttributes());
... | ItemReference function(ItemReference itemReference) throws ServerException, NotFoundException { Optional<VcsStatusProvider> optional = getVcsStatusProvider(itemReference); if (optional.isPresent()) { Map<String, String> attributes = new HashMap<>(itemReference.getAttributes()); attributes.put(STR, optional.get().getSta... | /**
* Find related VCS provider and set VCS status of {@link ItemReference} file to it's attributes
* if VCS provider is present.
*
* @param itemReference file to update
*/ | Find related VCS provider and set VCS status of <code>ItemReference</code> file to it's attributes if VCS provider is present | injectVcsStatus | {
"repo_name": "akervern/che",
"path": "wsagent/che-core-api-project/src/main/java/org/eclipse/che/api/project/server/impl/ProjectServiceVcsStatusInjector.java",
"license": "epl-1.0",
"size": 7140
} | [
"java.util.HashMap",
"java.util.Map",
"java.util.Optional",
"org.eclipse.che.api.core.NotFoundException",
"org.eclipse.che.api.core.ServerException",
"org.eclipse.che.api.project.server.VcsStatusProvider",
"org.eclipse.che.api.project.shared.dto.ItemReference"
] | import java.util.HashMap; import java.util.Map; import java.util.Optional; import org.eclipse.che.api.core.NotFoundException; import org.eclipse.che.api.core.ServerException; import org.eclipse.che.api.project.server.VcsStatusProvider; import org.eclipse.che.api.project.shared.dto.ItemReference; | import java.util.*; import org.eclipse.che.api.core.*; import org.eclipse.che.api.project.server.*; import org.eclipse.che.api.project.shared.dto.*; | [
"java.util",
"org.eclipse.che"
] | java.util; org.eclipse.che; | 1,199,215 |
public synchronized boolean isRVVGCDominatedBy(RegionVersionVector<T> other) {
if (other.singleMember) {
// do the diff for only a single member. This is typically a member that
// recently crashed.
Map.Entry<T,RegionVersionHolder<T>> entry
= other.memberToVersion.entryS... | synchronized boolean function(RegionVersionVector<T> other) { if (other.singleMember) { Map.Entry<T,RegionVersionHolder<T>> entry = other.memberToVersion.entrySet().iterator().next(); Long gcVersion = this.memberToGCVersion.get(entry.getKey()); return isGCVersionDominatedByHolder(gcVersion, entry.getValue()); } boolean... | /**
* Test to see if this vector's rvvgc has updates that has not seen.
*/ | Test to see if this vector's rvvgc has updates that has not seen | isRVVGCDominatedBy | {
"repo_name": "ameybarve15/incubator-geode",
"path": "gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/versions/RegionVersionVector.java",
"license": "apache-2.0",
"size": 54508
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,235,448 |
private void writeProperty(String resourcePath, String propertyName, String propertyValue) throws CmsException {
if (CmsStringUtil.isEmpty(propertyValue)) {
propertyValue = CmsProperty.DELETE_VALUE;
}
CmsProperty newProp = new CmsProperty();
newProp.setName(propertyName... | void function(String resourcePath, String propertyName, String propertyValue) throws CmsException { if (CmsStringUtil.isEmpty(propertyValue)) { propertyValue = CmsProperty.DELETE_VALUE; } CmsProperty newProp = new CmsProperty(); newProp.setName(propertyName); CmsProperty oldProp = getCmsObject().readPropertyObject(reso... | /**
* Writes a property value for a resource.<p>
*
* @param resourcePath the path of the resource
* @param propertyName the name of the property
* @param propertyValue the new value of the property
*
* @throws CmsException if something goes wrong
*/ | Writes a property value for a resource | writeProperty | {
"repo_name": "mediaworx/opencms-core",
"path": "src/org/opencms/gwt/CmsCoreService.java",
"license": "lgpl-2.1",
"size": 62161
} | [
"org.opencms.file.CmsProperty",
"org.opencms.main.CmsException",
"org.opencms.main.OpenCms",
"org.opencms.util.CmsStringUtil"
] | import org.opencms.file.CmsProperty; import org.opencms.main.CmsException; import org.opencms.main.OpenCms; import org.opencms.util.CmsStringUtil; | import org.opencms.file.*; import org.opencms.main.*; import org.opencms.util.*; | [
"org.opencms.file",
"org.opencms.main",
"org.opencms.util"
] | org.opencms.file; org.opencms.main; org.opencms.util; | 502,767 |
@Test
public void push3CustomTransformersByTransactionAndMakeTransformation() throws FileNotFoundException {
List<String> addTransformers = new ArrayList<>();
addTransformers.add("PreProcessingStep");
addTransformers.add("ProcessingStep");
addTransformers.add("PostProcessingStep");
ChappyClientTrans... | void function() throws FileNotFoundException { List<String> addTransformers = new ArrayList<>(); addTransformers.add(STR); addTransformers.add(STR); addTransformers.add(STR); ChappyClientTransactionHolder transaction = RESTUtilsRequests.chappyLogin(port); RESTUtilsRequests.chppyAddCustomTransformersAndValidate(addTrans... | /**
* test chappy:
* - login in chappy using REST
* - add 3 transformer steps and validate using REST
* - run a flow with those steps using REST
* - validate the return data
* - logout from chappy using REST
* @throws FileNotFoundException
*/ | test chappy: - login in chappy using REST - add 3 transformer steps and validate using REST - run a flow with those steps using REST - validate the return data - logout from chappy using REST | push3CustomTransformersByTransactionAndMakeTransformation | {
"repo_name": "gdimitriu/chappy",
"path": "chappy-tests/src/test/java/chappy/tests/clients/RestClientTrasactionFlowTransformationsTest.java",
"license": "gpl-3.0",
"size": 18012
} | [
"java.io.FileNotFoundException",
"java.util.ArrayList",
"java.util.List",
"javax.ws.rs.core.Response",
"org.junit.Assert"
] | import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.List; import javax.ws.rs.core.Response; import org.junit.Assert; | import java.io.*; import java.util.*; import javax.ws.rs.core.*; import org.junit.*; | [
"java.io",
"java.util",
"javax.ws",
"org.junit"
] | java.io; java.util; javax.ws; org.junit; | 1,303,772 |
public void addPropertyChangeListenerIndirection(String propertyName, PropertyChangeListener listener)
{
super.addPropertyChangeListener(propertyName, listener);
} | void function(String propertyName, PropertyChangeListener listener) { super.addPropertyChangeListener(propertyName, listener); } | /**
* Allows calling {@link Component#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)}.
*/ | Allows calling <code>Component#addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener)</code> | addPropertyChangeListenerIndirection | {
"repo_name": "wesen/nmedit",
"path": "libs/jtheme/src/net/sf/nmedit/jtheme/component/JTBaseComponent.java",
"license": "gpl-2.0",
"size": 9423
} | [
"java.beans.PropertyChangeListener"
] | import java.beans.PropertyChangeListener; | import java.beans.*; | [
"java.beans"
] | java.beans; | 2,465,200 |
@SuppressWarnings("unused")
public void mouseExited(MouseEvent e) {
// do nothing
} | @SuppressWarnings(STR) void function(MouseEvent e) { } | /**
* does nothing, just to implement interface
*
* @see java.awt.event.MouseListener#mouseExited(java.awt.event.MouseEvent)
*/ | does nothing, just to implement interface | mouseExited | {
"repo_name": "HerbertJordan/JimCat",
"path": "src/org/jimcat/gui/rating/RatingEditor.java",
"license": "gpl-2.0",
"size": 5250
} | [
"java.awt.event.MouseEvent"
] | import java.awt.event.MouseEvent; | import java.awt.event.*; | [
"java.awt"
] | java.awt; | 64,705 |
public Date getLastMoveAttempt() {
return lastMoveAttempt;
} | Date function() { return lastMoveAttempt; } | /**
* To improve management of all {@link Moveable}'s, each attempt to move
* the data should log an appropriate time stamp. Only the time of the latest
* attempt is relevant.
*
* @return The date and time this object was last attempted to be transmitted.
*/ | To improve management of all <code>Moveable</code>'s, each attempt to move the data should log an appropriate time stamp. Only the time of the latest attempt is relevant | getLastMoveAttempt | {
"repo_name": "Lambeaux/evoke",
"path": "evoke-core/src/main/java/Evoke/Core/MoveableResult.java",
"license": "apache-2.0",
"size": 1314
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 2,003,766 |
@Override
public void onGanador(Ficha ganador) {
if(ganador == Ficha.VACIA)
JOptionPane.showMessageDialog(this,"Partida en tablas", "No gano nadie", JOptionPane.INFORMATION_MESSAGE);
else
JOptionPane.showMessageDialog(this,"Ganan las "+ ganador.toString(), "Has Ganado!!", JOptionPane.INFORMATION_MESSAGE);
} | void function(Ficha ganador) { if(ganador == Ficha.VACIA) JOptionPane.showMessageDialog(this,STR, STR, JOptionPane.INFORMATION_MESSAGE); else JOptionPane.showMessageDialog(this,STR+ ganador.toString(), STR, JOptionPane.INFORMATION_MESSAGE); } | /**
* Lanza un optionPane infromando de que la partida ha termina en tablas, no ha ganado nadie o ha ganado alguien
*/ | Lanza un optionPane infromando de que la partida ha termina en tablas, no ha ganado nadie o ha ganado alguien | onGanador | {
"repo_name": "juanmont/4enRaya",
"path": "src/tp/pr4/vista/Ventana.java",
"license": "epl-1.0",
"size": 3817
} | [
"javax.swing.JOptionPane"
] | import javax.swing.JOptionPane; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 1,460,102 |
public String getLastFocusedElementId()
{
WebRequest request = (WebRequest)RequestCycle.get().getRequest();
String id = request.getHeader("Wicket-FocusedElementId");
return Strings.isEmpty(id) ? null : id;
} | String function() { WebRequest request = (WebRequest)RequestCycle.get().getRequest(); String id = request.getHeader(STR); return Strings.isEmpty(id) ? null : id; } | /**
* Returns the HTML id of the last focused element.
*
* @return markup id of last focused element, <code>null</code> if none
*/ | Returns the HTML id of the last focused element | getLastFocusedElementId | {
"repo_name": "afiantara/apache-wicket-1.5.7",
"path": "src/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxRequestTarget.java",
"license": "apache-2.0",
"size": 38122
} | [
"org.apache.wicket.request.cycle.RequestCycle",
"org.apache.wicket.request.http.WebRequest",
"org.apache.wicket.util.string.Strings"
] | import org.apache.wicket.request.cycle.RequestCycle; import org.apache.wicket.request.http.WebRequest; import org.apache.wicket.util.string.Strings; | import org.apache.wicket.request.cycle.*; import org.apache.wicket.request.http.*; import org.apache.wicket.util.string.*; | [
"org.apache.wicket"
] | org.apache.wicket; | 65,237 |
private Result pTypeArguments(final int yyStart) throws IOException {
JavaFiveParserColumn yyColumn = (JavaFiveParserColumn)column(yyStart);
if (null == yyColumn.chunk3) yyColumn.chunk3 = new Chunk3();
if (null == yyColumn.chunk3.fTypeArguments)
yyColumn.chunk3.fTypeArguments = pTypeArguments$1(yyS... | Result function(final int yyStart) throws IOException { JavaFiveParserColumn yyColumn = (JavaFiveParserColumn)column(yyStart); if (null == yyColumn.chunk3) yyColumn.chunk3 = new Chunk3(); if (null == yyColumn.chunk3.fTypeArguments) yyColumn.chunk3.fTypeArguments = pTypeArguments$1(yyStart); return yyColumn.chunk3.fType... | /**
* Parse nonterminal xtc.lang.JavaFiveType.TypeArguments.
*
* @param yyStart The index.
* @return The result.
* @throws IOException Signals an I/O error.
*/ | Parse nonterminal xtc.lang.JavaFiveType.TypeArguments | pTypeArguments | {
"repo_name": "wandoulabs/xtc-rats",
"path": "xtc-core/src/main/java/xtc/lang/JavaFiveParser.java",
"license": "lgpl-2.1",
"size": 313913
} | [
"java.io.IOException",
"xtc.parser.Result"
] | import java.io.IOException; import xtc.parser.Result; | import java.io.*; import xtc.parser.*; | [
"java.io",
"xtc.parser"
] | java.io; xtc.parser; | 2,746,319 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.