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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
protected String getExistingUserId()
{
String existingUserId = null;
ApplicationUser applicationUser = getExistingUser();
if (applicationUser != null)
{
existingUserId = applicationUser.getUserId();
}
return existingUserId;
} | String function() { String existingUserId = null; ApplicationUser applicationUser = getExistingUser(); if (applicationUser != null) { existingUserId = applicationUser.getUserId(); } return existingUserId; } | /**
* Gets the existing user Id.
*
* @return the existing user Id, session Id, or null if no existing user is present.
*/ | Gets the existing user Id | getExistingUserId | {
"repo_name": "seoj/herd",
"path": "herd-code/herd-app/src/main/java/org/finra/herd/app/security/HttpHeaderAuthenticationFilter.java",
"license": "apache-2.0",
"size": 13889
} | [
"org.finra.herd.model.dto.ApplicationUser"
] | import org.finra.herd.model.dto.ApplicationUser; | import org.finra.herd.model.dto.*; | [
"org.finra.herd"
] | org.finra.herd; | 2,840,853 |
private static void removeAdminEmailsFromDataBundle(DataBundle dataBundle) {
dataBundle.adminEmails = new HashMap<>();
} | static void function(DataBundle dataBundle) { dataBundle.adminEmails = new HashMap<>(); } | /**
* Replaces {@link DataBundle#adminEmails} from {@code dataBundle} with an empty map.
* Using {@link BackDoor} to remove and persist admin emails
* may affect normal functioning of Admin Emails and remove non-testing data.
*/ | Replaces <code>DataBundle#adminEmails</code> from dataBundle with an empty map. Using <code>BackDoor</code> to remove and persist admin emails may affect normal functioning of Admin Emails and remove non-testing data | removeAdminEmailsFromDataBundle | {
"repo_name": "LiHaoTan/teammates",
"path": "src/test/java/teammates/test/driver/BackDoor.java",
"license": "gpl-2.0",
"size": 25576
} | [
"java.util.HashMap"
] | import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 568,852 |
public static long importCSV(final File file, final Connection conn, final String insertSQL,
final JdbcUtil.BiParametersSetter<? super PreparedStatement, ? super String[]> stmtSetter) throws UncheckedSQLException, UncheckedIOException {
return importCSV(file, 0, Long.MAX_VALUE, conn, insertSQL... | static long function(final File file, final Connection conn, final String insertSQL, final JdbcUtil.BiParametersSetter<? super PreparedStatement, ? super String[]> stmtSetter) throws UncheckedSQLException, UncheckedIOException { return importCSV(file, 0, Long.MAX_VALUE, conn, insertSQL, 200, 0, stmtSetter); } | /**
* Imports the data from CSV to database.
*
* @param file
* @param conn
* @param insertSQL the column order in the sql should be consistent with the column order in the CSV file.
* @param stmtSetter
* @return
*/ | Imports the data from CSV to database | importCSV | {
"repo_name": "landawn/AbacusUtil",
"path": "src/com/landawn/abacus/util/CSVUtil.java",
"license": "apache-2.0",
"size": 71674
} | [
"com.landawn.abacus.exception.UncheckedIOException",
"com.landawn.abacus.exception.UncheckedSQLException",
"java.io.File",
"java.sql.Connection",
"java.sql.PreparedStatement"
] | import com.landawn.abacus.exception.UncheckedIOException; import com.landawn.abacus.exception.UncheckedSQLException; import java.io.File; import java.sql.Connection; import java.sql.PreparedStatement; | import com.landawn.abacus.exception.*; import java.io.*; import java.sql.*; | [
"com.landawn.abacus",
"java.io",
"java.sql"
] | com.landawn.abacus; java.io; java.sql; | 204,535 |
public boolean contains(Material material, int amount); | boolean function(Material material, int amount); | /**
* Check if the inventory contains any ItemStacks with the given material and at least the minimum amount specified
*
* @param material The material to check for
* @return If any ItemStacks were found
*/ | Check if the inventory contains any ItemStacks with the given material and at least the minimum amount specified | contains | {
"repo_name": "14mRh4X0r/Bukkit",
"path": "src/main/java/org/bukkit/inventory/Inventory.java",
"license": "gpl-3.0",
"size": 6457
} | [
"org.bukkit.Material"
] | import org.bukkit.Material; | import org.bukkit.*; | [
"org.bukkit"
] | org.bukkit; | 2,772,333 |
protected Change createChange() throws CoreException {
return new NullChange();
} | Change function() throws CoreException { return new NullChange(); } | /**
* Creates the change for this proposal. This method is only called once and only when no change
* has been passed in {@link #ChangeCorrectionProposal(String, Change, int, Image)}.
*
* <p>Subclasses may override.
*
* @return the created change
* @throws CoreException if the creation of the chang... | Creates the change for this proposal. This method is only called once and only when no change has been passed in <code>#ChangeCorrectionProposal(String, Change, int, Image)</code>. Subclasses may override | createChange | {
"repo_name": "TypeFox/che",
"path": "plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/ui/text/java/correction/ChangeCorrectionProposal.java",
"license": "epl-1.0",
"size": 15227
} | [
"org.eclipse.core.runtime.CoreException",
"org.eclipse.ltk.core.refactoring.Change",
"org.eclipse.ltk.core.refactoring.NullChange"
] | import org.eclipse.core.runtime.CoreException; import org.eclipse.ltk.core.refactoring.Change; import org.eclipse.ltk.core.refactoring.NullChange; | import org.eclipse.core.runtime.*; import org.eclipse.ltk.core.refactoring.*; | [
"org.eclipse.core",
"org.eclipse.ltk"
] | org.eclipse.core; org.eclipse.ltk; | 947,946 |
public Map<String, Long> getTagCountsByTagName(Set<Long> eventIDsWithTags) {
return repo.getTagCountsByTagName(eventIDsWithTags);
} | Map<String, Long> function(Set<Long> eventIDsWithTags) { return repo.getTagCountsByTagName(eventIDsWithTags); } | /**
* get a count of tagnames applied to the given event ids as a map from
* tagname displayname to count of tag applications
*
* @param eventIDsWithTags the event ids to get the tag counts map for
*
* @return a map from tagname displayname to count of applications
*/ | get a count of tagnames applied to the given event ids as a map from tagname displayname to count of tag applications | getTagCountsByTagName | {
"repo_name": "narfindustries/autopsy",
"path": "Core/src/org/sleuthkit/autopsy/timeline/datamodel/FilteredEventsModel.java",
"license": "apache-2.0",
"size": 21435
} | [
"java.util.Map",
"java.util.Set"
] | import java.util.Map; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 2,848,182 |
public com.iucn.whp.dbservice.model.whp_sites_indigenous_communities addwhp_sites_indigenous_communities(
com.iucn.whp.dbservice.model.whp_sites_indigenous_communities whp_sites_indigenous_communities)
throws com.liferay.portal.kernel.exception.SystemException; | com.iucn.whp.dbservice.model.whp_sites_indigenous_communities function( com.iucn.whp.dbservice.model.whp_sites_indigenous_communities whp_sites_indigenous_communities) throws com.liferay.portal.kernel.exception.SystemException; | /**
* Adds the whp_sites_indigenous_communities to the database. Also notifies the appropriate model listeners.
*
* @param whp_sites_indigenous_communities the whp_sites_indigenous_communities
* @return the whp_sites_indigenous_communities that was added
* @throws SystemException if a system exception occurred
*/ | Adds the whp_sites_indigenous_communities to the database. Also notifies the appropriate model listeners | addwhp_sites_indigenous_communities | {
"repo_name": "iucn-whp/world-heritage-outlook",
"path": "portlets/iucn-dbservice-portlet/docroot/WEB-INF/service/com/iucn/whp/dbservice/service/whp_sites_indigenous_communitiesLocalService.java",
"license": "gpl-2.0",
"size": 12644
} | [
"com.liferay.portal.kernel.exception.SystemException"
] | import com.liferay.portal.kernel.exception.SystemException; | import com.liferay.portal.kernel.exception.*; | [
"com.liferay.portal"
] | com.liferay.portal; | 188,311 |
@Test
public void addsNewDomain() throws Exception {
final String name = "foo";
final String urn = "urn:test:19";
final Request req = new RqWithAuth(
urn,
new RqFake(
"GET",
String.format(
"/d/%s?command=domain+a... | void function() throws Exception { final String name = "foo"; final String urn = STR; final Request req = new RqWithAuth( urn, new RqFake( "GET", String.format( STR, name ) ) ); final Base base = new FkBase(); final Decks decks = base.user(urn).decks(); decks.add(name); new FkDeck(STR/deck/domains[count(domain)=1]STR/d... | /**
* TkCommand can add new domain.
* @throws Exception If something goes wrong.
*/ | TkCommand can add new domain | addsNewDomain | {
"repo_name": "pecko/thindeck",
"path": "src/test/java/com/thindeck/cockpit/deck/TkCommandTest.java",
"license": "bsd-3-clause",
"size": 7703
} | [
"com.thindeck.api.Base",
"com.thindeck.api.Decks",
"com.thindeck.fakes.FkBase",
"org.takes.Request",
"org.takes.facets.auth.RqWithAuth",
"org.takes.rq.RqFake"
] | import com.thindeck.api.Base; import com.thindeck.api.Decks; import com.thindeck.fakes.FkBase; import org.takes.Request; import org.takes.facets.auth.RqWithAuth; import org.takes.rq.RqFake; | import com.thindeck.api.*; import com.thindeck.fakes.*; import org.takes.*; import org.takes.facets.auth.*; import org.takes.rq.*; | [
"com.thindeck.api",
"com.thindeck.fakes",
"org.takes",
"org.takes.facets",
"org.takes.rq"
] | com.thindeck.api; com.thindeck.fakes; org.takes; org.takes.facets; org.takes.rq; | 1,570,267 |
private String convertToStringValue(Object value, Type sdoType, QName xsdType) {
if (value.getClass() == ClassConstants.CALENDAR) {
if (sdoType.equals(SDOConstants.SDO_DATETIME)) {
return toDateTime((Calendar) value);
} else if (sdoType.equals(SDOConstants.SDO_TIM... | String function(Object value, Type sdoType, QName xsdType) { if (value.getClass() == ClassConstants.CALENDAR) { if (sdoType.equals(SDOConstants.SDO_DATETIME)) { return toDateTime((Calendar) value); } else if (sdoType.equals(SDOConstants.SDO_TIME)) { return toTime((Calendar) value); } else if (sdoType.equals(SDOConstant... | /**
* Convert to a String value based to the SDO type.
*
* @param value The value to convert.
* @param sdoType the SDO type
* @return the original value converted to a String based on the SDO type
* specified.
*/ | Convert to a String value based to the SDO type | convertToStringValue | {
"repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs",
"path": "sdo/org.eclipse.persistence.sdo/src/org/eclipse/persistence/sdo/helper/SDODataHelper.java",
"license": "epl-1.0",
"size": 33600
} | [
"java.util.Calendar",
"java.util.Date",
"javax.xml.namespace.QName",
"org.eclipse.persistence.internal.core.sessions.CoreAbstractSession",
"org.eclipse.persistence.internal.helper.ClassConstants",
"org.eclipse.persistence.internal.security.PrivilegedAccessHelper",
"org.eclipse.persistence.sdo.SDOConstan... | import java.util.Calendar; import java.util.Date; import javax.xml.namespace.QName; import org.eclipse.persistence.internal.core.sessions.CoreAbstractSession; import org.eclipse.persistence.internal.helper.ClassConstants; import org.eclipse.persistence.internal.security.PrivilegedAccessHelper; import org.eclipse.persis... | import java.util.*; import javax.xml.namespace.*; import org.eclipse.persistence.internal.core.sessions.*; import org.eclipse.persistence.internal.helper.*; import org.eclipse.persistence.internal.security.*; import org.eclipse.persistence.sdo.*; | [
"java.util",
"javax.xml",
"org.eclipse.persistence"
] | java.util; javax.xml; org.eclipse.persistence; | 1,029,640 |
public Boolean edit(User user); | Boolean function(User user); | /**
* Edit an existing user
*
* @param user the existing user
* @return true if successful
*/ | Edit an existing user | edit | {
"repo_name": "auntaru/rokya-spring",
"path": "spring-jquery-jqgrid-krams/src/main/java/org/krams/tutorial/service/IUserService.java",
"license": "gpl-2.0",
"size": 780
} | [
"org.krams.tutorial.domain.User"
] | import org.krams.tutorial.domain.User; | import org.krams.tutorial.domain.*; | [
"org.krams.tutorial"
] | org.krams.tutorial; | 234,083 |
private void updateAttributeTypeButton(@NonNull final TextView button, @NonNull final SparseIntArray attrCount, AttributeType... types) {
if (0 == types.length) return;
int count = 0;
for (AttributeType type : types) count += attrCount.get(type.getCode(), 0);
button.setText(format(... | void function(@NonNull final TextView button, @NonNull final SparseIntArray attrCount, AttributeType... types) { if (0 == types.length) return; int count = 0; for (AttributeType type : types) count += attrCount.get(type.getCode(), 0); button.setText(format(STR, StringHelper.capitalizeString(types[0].getDisplayName()), ... | /**
* Update the text of a given attribute type button based on the given SparseIntArray and relevant type(s)
*
* @param button Button whose text to update
* @param attrCount Entry count in every attribute type (key = attribute type code; value = count)
* @param types Type(s) to fetch th... | Update the text of a given attribute type button based on the given SparseIntArray and relevant type(s) | updateAttributeTypeButton | {
"repo_name": "AVnetWS/Hentoid",
"path": "app/src/main/java/me/devsaki/hentoid/activities/SearchActivity.java",
"license": "apache-2.0",
"size": 11121
} | [
"android.util.SparseIntArray",
"android.widget.TextView",
"androidx.annotation.NonNull",
"me.devsaki.hentoid.enums.AttributeType",
"me.devsaki.hentoid.util.StringHelper"
] | import android.util.SparseIntArray; import android.widget.TextView; import androidx.annotation.NonNull; import me.devsaki.hentoid.enums.AttributeType; import me.devsaki.hentoid.util.StringHelper; | import android.util.*; import android.widget.*; import androidx.annotation.*; import me.devsaki.hentoid.enums.*; import me.devsaki.hentoid.util.*; | [
"android.util",
"android.widget",
"androidx.annotation",
"me.devsaki.hentoid"
] | android.util; android.widget; androidx.annotation; me.devsaki.hentoid; | 2,125,488 |
private void animatePropertyBy(int constantName, float startValue, float byValue) {
// First, cancel any existing animations on this property
if (mAnimatorMap.size() > 0) {
Animator animatorToCancel = null;
Set<Animator> animatorSet = mAnimatorMap.keySet();
for (A... | void function(int constantName, float startValue, float byValue) { if (mAnimatorMap.size() > 0) { Animator animatorToCancel = null; Set<Animator> animatorSet = mAnimatorMap.keySet(); for (Animator runningAnim : animatorSet) { PropertyBundle bundle = mAnimatorMap.get(runningAnim); if (bundle.cancel(constantName)) { if (... | /**
* Utility function, called by animateProperty() and animatePropertyBy(), which handles the
* details of adding a pending animation and posting the request to start the animation.
*
* @param constantName The specifier for the property being animated
* @param startValue The starting value o... | Utility function, called by animateProperty() and animatePropertyBy(), which handles the details of adding a pending animation and posting the request to start the animation | animatePropertyBy | {
"repo_name": "Catherine22/MobileManager",
"path": "app/src/main/java/com/itheima/mobilesafe/ui/view_helper/ViewPropertyAnimatorPreHC.java",
"license": "apache-2.0",
"size": 27664
} | [
"android.animation.Animator",
"android.view.View",
"java.util.Set"
] | import android.animation.Animator; import android.view.View; import java.util.Set; | import android.animation.*; import android.view.*; import java.util.*; | [
"android.animation",
"android.view",
"java.util"
] | android.animation; android.view; java.util; | 176,322 |
@Override
public RowIdLifetime getRowIdLifetime() {
debugCodeCall("getRowIdLifetime");
return RowIdLifetime.ROWID_UNSUPPORTED;
} | RowIdLifetime function() { debugCodeCall(STR); return RowIdLifetime.ROWID_UNSUPPORTED; } | /**
* Get the lifetime of a rowid.
*
* @return ROWID_UNSUPPORTED
*/ | Get the lifetime of a rowid | getRowIdLifetime | {
"repo_name": "paulnguyen/data",
"path": "sqldbs/h2java/src/main/org/h2/jdbc/JdbcDatabaseMetaData.java",
"license": "apache-2.0",
"size": 102972
} | [
"java.sql.RowIdLifetime"
] | import java.sql.RowIdLifetime; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,604,796 |
@Override
void close() throws IOException;
enum SeekMode {
ENQUIRE,
START,
CURRENT,
END
}
enum SeekRWMode {
LAST,
READ,
WRITE
}
enum ReadLineWarning {
EMBEDDED_NUL,
INCOMPLETE_LAST_LINE; | void close() throws IOException; enum SeekMode { ENQUIRE, START, CURRENT, END } enum SeekRWMode { LAST, READ, WRITE } enum ReadLineWarning { EMBEDDED_NUL, INCOMPLETE_LAST_LINE; | /**
* Closes the internal state of the stream, but does not set the connection state to "closed",
* i.e., allowing it to be re-opened.
*/ | Closes the internal state of the stream, but does not set the connection state to "closed", i.e., allowing it to be re-opened | close | {
"repo_name": "graalvm/fastr",
"path": "com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/conn/RConnection.java",
"license": "gpl-2.0",
"size": 8136
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 633,266 |
public Date getCreateday() {
return createday;
} | Date function() { return createday; } | /**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column player.createday
*
* @return the value of player.createday
*
* @mbggenerated Fri Oct 23 10:39:49 CST 2015
*/ | This method was generated by MyBatis Generator. This method returns the value of the database column player.createday | getCreateday | {
"repo_name": "live106/Mars",
"path": "Mars-Game/src/main/java/com/live106/mars/game/db/model/Player.java",
"license": "apache-2.0",
"size": 3567
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 1,940,326 |
public void init() throws ServletException {
// Put your code here
} | void function() throws ServletException { } | /**
* Initialization of the servlet. <br>
*
* @throws ServletException if an error occurs
*/ | Initialization of the servlet. | init | {
"repo_name": "ld851/Student-Management",
"path": "src/Student/servlet/DeleteServlet.java",
"license": "epl-1.0",
"size": 2654
} | [
"javax.servlet.ServletException"
] | import javax.servlet.ServletException; | import javax.servlet.*; | [
"javax.servlet"
] | javax.servlet; | 2,169,269 |
private void reportException(Kind kind, Element element, Throwable t) {
StringWriter buf = new StringWriter();
t.printStackTrace(new PrintWriter(buf));
buf.toString();
message(kind, element, "Exception thrown during processing: %s", buf.toString());
} | void function(Kind kind, Element element, Throwable t) { StringWriter buf = new StringWriter(); t.printStackTrace(new PrintWriter(buf)); buf.toString(); message(kind, element, STR, buf.toString()); } | /**
* Bugs in an annotation processor can cause silent failure so try to report any exception
* throws as errors.
*/ | Bugs in an annotation processor can cause silent failure so try to report any exception throws as errors | reportException | {
"repo_name": "entlicher/truffle",
"path": "truffle/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/verify/VerifyTruffleProcessor.java",
"license": "gpl-2.0",
"size": 6974
} | [
"java.io.PrintWriter",
"java.io.StringWriter",
"javax.lang.model.element.Element",
"javax.tools.Diagnostic"
] | import java.io.PrintWriter; import java.io.StringWriter; import javax.lang.model.element.Element; import javax.tools.Diagnostic; | import java.io.*; import javax.lang.model.element.*; import javax.tools.*; | [
"java.io",
"javax.lang",
"javax.tools"
] | java.io; javax.lang; javax.tools; | 2,737,152 |
protected void removeChildVisual(EditPart childEditPart) {
TreeEditPart treeEditPart = (TreeEditPart) childEditPart;
treeEditPart.getWidget().dispose();
treeEditPart.setWidget(null);
} | void function(EditPart childEditPart) { TreeEditPart treeEditPart = (TreeEditPart) childEditPart; treeEditPart.getWidget().dispose(); treeEditPart.setWidget(null); } | /**
* Disposes the child's <code>widget</code> and sets it to <code>null</code>
* .
*
* @see AbstractEditPart#removeChildVisual(EditPart)
*/ | Disposes the child's <code>widget</code> and sets it to <code>null</code> | removeChildVisual | {
"repo_name": "ghillairet/gef-gwt",
"path": "src/main/java/org/eclipse/gef/editparts/AbstractTreeEditPart.java",
"license": "epl-1.0",
"size": 6489
} | [
"org.eclipse.gef.EditPart",
"org.eclipse.gef.TreeEditPart"
] | import org.eclipse.gef.EditPart; import org.eclipse.gef.TreeEditPart; | import org.eclipse.gef.*; | [
"org.eclipse.gef"
] | org.eclipse.gef; | 383,626 |
@ObjectiveCName("favouriteChatCommandWithPeer:")
public Command<Void> favouriteChat(Peer peer) {
return callback -> modules.getMessagesModule().favoriteChat(peer)
.then(v -> callback.onResult(v))
.failure(e -> callback.onError(e));
} | @ObjectiveCName(STR) Command<Void> function(Peer peer) { return callback -> modules.getMessagesModule().favoriteChat(peer) .then(v -> callback.onResult(v)) .failure(e -> callback.onError(e)); } | /**
* Favouriting chat
*
* @param peer destination peer
* @return Command for execution
*/ | Favouriting chat | favouriteChat | {
"repo_name": "EaglesoftZJ/actor-platform",
"path": "actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java",
"license": "agpl-3.0",
"size": 86315
} | [
"com.google.j2objc.annotations.ObjectiveCName",
"im.actor.core.entity.Peer",
"im.actor.core.viewmodel.Command",
"im.actor.runtime.actors.messages.Void"
] | import com.google.j2objc.annotations.ObjectiveCName; import im.actor.core.entity.Peer; import im.actor.core.viewmodel.Command; import im.actor.runtime.actors.messages.Void; | import com.google.j2objc.annotations.*; import im.actor.core.entity.*; import im.actor.core.viewmodel.*; import im.actor.runtime.actors.messages.*; | [
"com.google.j2objc",
"im.actor.core",
"im.actor.runtime"
] | com.google.j2objc; im.actor.core; im.actor.runtime; | 1,247,289 |
public static Collection<VisorGridEvent> collectEvents(Ignite ignite, String evtOrderKey, String evtThrottleCntrKey,
boolean all, IgniteClosure<Event, VisorGridEvent> evtMapper) {
int[] evtTypes = all ? VISOR_ALL_EVTS : VISOR_NON_TASK_EVTS;
// Collect discovery events for Web Console.
... | static Collection<VisorGridEvent> function(Ignite ignite, String evtOrderKey, String evtThrottleCntrKey, boolean all, IgniteClosure<Event, VisorGridEvent> evtMapper) { int[] evtTypes = all ? VISOR_ALL_EVTS : VISOR_NON_TASK_EVTS; if (evtOrderKey.startsWith(STR)) evtTypes = concat(evtTypes, EVTS_DISCOVERY); return collec... | /**
* Grabs local events and detects if events was lost since last poll.
*
* @param ignite Target grid.
* @param evtOrderKey Unique key to take last order key from node local map.
* @param evtThrottleCntrKey Unique key to take throttle count from node local map.
* @param all If {@code true... | Grabs local events and detects if events was lost since last poll | collectEvents | {
"repo_name": "nivanov/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/visor/util/VisorTaskUtils.java",
"license": "apache-2.0",
"size": 34685
} | [
"java.util.Collection",
"org.apache.ignite.Ignite",
"org.apache.ignite.events.Event",
"org.apache.ignite.internal.visor.event.VisorGridEvent",
"org.apache.ignite.lang.IgniteClosure"
] | import java.util.Collection; import org.apache.ignite.Ignite; import org.apache.ignite.events.Event; import org.apache.ignite.internal.visor.event.VisorGridEvent; import org.apache.ignite.lang.IgniteClosure; | import java.util.*; import org.apache.ignite.*; import org.apache.ignite.events.*; import org.apache.ignite.internal.visor.event.*; import org.apache.ignite.lang.*; | [
"java.util",
"org.apache.ignite"
] | java.util; org.apache.ignite; | 288,766 |
private PerlCompletionProvider getProvider() {
if (provider==null) {
provider = new PerlCompletionProvider();
}
return provider;
}
| PerlCompletionProvider function() { if (provider==null) { provider = new PerlCompletionProvider(); } return provider; } | /**
* Lazily creates the shared completion provider instance for Perl.
*
* @return The completion provider.
*/ | Lazily creates the shared completion provider instance for Perl | getProvider | {
"repo_name": "ZenHarbinger/RSTALanguageSupport",
"path": "src/main/java/org/fife/rsta/ac/perl/PerlLanguageSupport.java",
"license": "bsd-3-clause",
"size": 9729
} | [
"org.fife.rsta.ac.perl.PerlCompletionProvider"
] | import org.fife.rsta.ac.perl.PerlCompletionProvider; | import org.fife.rsta.ac.perl.*; | [
"org.fife.rsta"
] | org.fife.rsta; | 373,317 |
public RIDResponseObject getRIDDocument( RIDRequestObject reqVO ) {
log.info( "RIDdelegate.getRIDDocument called");
RIDResponseObject resp = null;
try {
Object o = server.invoke(ridServiceName,
"getRIDDocument",
new Object[] { reqVO },
new String[] { ... | RIDResponseObject function( RIDRequestObject reqVO ) { log.info( STR); RIDResponseObject resp = null; try { Object o = server.invoke(ridServiceName, STR, new Object[] { reqVO }, new String[] { RIDRequestObject.class.getName() } ); resp = (RIDResponseObject) o; } catch ( Exception x ) { log.error( STR+x.getMessage(), x ... | /**
* Makes the MBean call to Retrieve Document for Display.
*
* @param reqVO The RID request (Retrieve Document for Display).
*
* @return The WADO response object.
*/ | Makes the MBean call to Retrieve Document for Display | getRIDDocument | {
"repo_name": "medicayun/medicayundicom",
"path": "dcm4jboss-all/tags/DCM4JBOSS_2_4_5/dcm4jboss-wado/src/java/org/dcm4chex/wado/web/RIDServiceDelegate.java",
"license": "apache-2.0",
"size": 2889
} | [
"org.dcm4chex.wado.common.RIDRequestObject",
"org.dcm4chex.wado.common.RIDResponseObject"
] | import org.dcm4chex.wado.common.RIDRequestObject; import org.dcm4chex.wado.common.RIDResponseObject; | import org.dcm4chex.wado.common.*; | [
"org.dcm4chex.wado"
] | org.dcm4chex.wado; | 2,505,286 |
public static ComponentUI createUI(final JComponent c)
{
return new BasicCheckBoxMenuItemUI();
} | static ComponentUI function(final JComponent c) { return new BasicCheckBoxMenuItemUI(); } | /**
* Factory method to create a BasicCheckBoxMenuItemUI for the given {@link
* JComponent}, which should be a JCheckBoxMenuItem
*
* @param c The {@link JComponent} a UI is being created for.
*
* @return A BasicCheckBoxMenuItemUI for the {@link JComponent}.
*/ | Factory method to create a BasicCheckBoxMenuItemUI for the given <code>JComponent</code>, which should be a JCheckBoxMenuItem | createUI | {
"repo_name": "aosm/gcc_40",
"path": "libjava/javax/swing/plaf/basic/BasicCheckBoxMenuItemUI.java",
"license": "gpl-2.0",
"size": 3327
} | [
"javax.swing.JComponent",
"javax.swing.plaf.ComponentUI"
] | import javax.swing.JComponent; import javax.swing.plaf.ComponentUI; | import javax.swing.*; import javax.swing.plaf.*; | [
"javax.swing"
] | javax.swing; | 897,672 |
public CountDownLatch getLocationAsync(String locationCode, String responseFields, AsyncCallback<com.mozu.api.contracts.location.Location> callback) throws Exception
{
MozuClient<com.mozu.api.contracts.location.Location> client = com.mozu.api.clients.commerce.admin.LocationClient.getLocationClient( locationCode... | CountDownLatch function(String locationCode, String responseFields, AsyncCallback<com.mozu.api.contracts.location.Location> callback) throws Exception { MozuClient<com.mozu.api.contracts.location.Location> client = com.mozu.api.clients.commerce.admin.LocationClient.getLocationClient( locationCode, responseFields); clie... | /**
*
* <p><pre><code>
* Location location = new Location();
* CountDownLatch latch = location.getLocation( locationCode, responseFields, callback );
* latch.await() * </code></pre></p>
* @param locationCode The unique, user-defined code that identifies a location.
* @param responseFields Filte... | <code><code> Location location = new Location(); CountDownLatch latch = location.getLocation( locationCode, responseFields, callback ); latch.await() * </code></code> | getLocationAsync | {
"repo_name": "Mozu/mozu-java",
"path": "mozu-javaasync-core/src/main/java/com/mozu/api/resources/commerce/admin/LocationResource.java",
"license": "mit",
"size": 19072
} | [
"com.mozu.api.AsyncCallback",
"com.mozu.api.MozuClient",
"java.util.concurrent.CountDownLatch"
] | import com.mozu.api.AsyncCallback; import com.mozu.api.MozuClient; import java.util.concurrent.CountDownLatch; | import com.mozu.api.*; import java.util.concurrent.*; | [
"com.mozu.api",
"java.util"
] | com.mozu.api; java.util; | 150,024 |
public MenuItem getItem(int index)
{
return null;
} // getItem | MenuItem function(int index) { return null; } | /**
* Access one sub-items of the item. Note: if !isContainer(), there will be no sub-items (will return null).
*
* @param index
* The index position (0 based) for the sub-item to get.
* @return The sub-item of the item.
*/ | Access one sub-items of the item. Note: if !isContainer(), there will be no sub-items (will return null) | getItem | {
"repo_name": "OpenCollabZA/sakai",
"path": "velocity/tool/src/java/org/sakaiproject/cheftool/menu/MenuField.java",
"license": "apache-2.0",
"size": 6000
} | [
"org.sakaiproject.cheftool.api.MenuItem"
] | import org.sakaiproject.cheftool.api.MenuItem; | import org.sakaiproject.cheftool.api.*; | [
"org.sakaiproject.cheftool"
] | org.sakaiproject.cheftool; | 973,890 |
@SuppressWarnings("Duplicates")
@NotNull
@Contract(pure = true)
public static synchronized String leaveQueue(String playername) {
for(Player player : queue1k) {
if(player.getName().equalsIgnoreCase(playername)) {
queue1k.remove(player);
String r... | @SuppressWarnings(STR) @Contract(pure = true) static synchronized String function(String playername) { for(Player player : queue1k) { if(player.getName().equalsIgnoreCase(playername)) { queue1k.remove(player); String ret = player.getName() + STR; for(Player p : queue1k) { if(RankedCvCServer.getInstance().getFromWaiting... | /**
* Makes a player leave from the queue.
* @param playername Name of player to leave the queue.
* @return A message for the player leaving to confirm input passed up the call stack.
*/ | Makes a player leave from the queue | leaveQueue | {
"repo_name": "Notoh/RankedCvC",
"path": "server/src/main/java/io/notoh/rankedcvc/server/matchmaking/QueueManager.java",
"license": "apache-2.0",
"size": 11437
} | [
"io.notoh.rankedcvc.server.main.CvCSocket",
"io.notoh.rankedcvc.server.main.RankedCvCServer",
"org.jetbrains.annotations.Contract"
] | import io.notoh.rankedcvc.server.main.CvCSocket; import io.notoh.rankedcvc.server.main.RankedCvCServer; import org.jetbrains.annotations.Contract; | import io.notoh.rankedcvc.server.main.*; import org.jetbrains.annotations.*; | [
"io.notoh.rankedcvc",
"org.jetbrains.annotations"
] | io.notoh.rankedcvc; org.jetbrains.annotations; | 747,668 |
void cleanupTempDir() throws IOException {
deleteDir(getTempDir());
} | void cleanupTempDir() throws IOException { deleteDir(getTempDir()); } | /**
* Clean up any temp detritus that may have been left around from previous operation attempts.
*/ | Clean up any temp detritus that may have been left around from previous operation attempts | cleanupTempDir | {
"repo_name": "intel-hadoop/hbase-rhino",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionFileSystem.java",
"license": "apache-2.0",
"size": 41756
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 119,294 |
public void setLabelConstraints(GridBagConstraints v)
{this.labelConstraints = v;}
String label;
public String getLabel() {return label;} | void function(GridBagConstraints v) {this.labelConstraints = v;} String label; public String getLabel() {return label;} | /**
* Set the value of labelConstraints.
* @param v Value to assign to labelConstraints.
*/ | Set the value of labelConstraints | setLabelConstraints | {
"repo_name": "hulmen/SQLAdmin",
"path": "src/fredy/generate/TreeObject.java",
"license": "mit",
"size": 5015
} | [
"java.awt.GridBagConstraints"
] | import java.awt.GridBagConstraints; | import java.awt.*; | [
"java.awt"
] | java.awt; | 2,322,741 |
private void registerMXBean() {
MBeans.register("NodeManager", "NodeManager", this);
} | void function() { MBeans.register(STR, STR, this); } | /**
* Register NodeManagerMXBean.
*/ | Register NodeManagerMXBean | registerMXBean | {
"repo_name": "GeLiXin/hadoop",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/NodeManager.java",
"license": "apache-2.0",
"size": 36227
} | [
"org.apache.hadoop.metrics2.util.MBeans"
] | import org.apache.hadoop.metrics2.util.MBeans; | import org.apache.hadoop.metrics2.util.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,278,998 |
public void testConcreteIndicesWildcardNoMatch() {
for (int i = 0; i < 10; i++) {
IndicesOptions indicesOptions = IndicesOptions.fromOptions(randomBoolean(), randomBoolean(), randomBoolean(), randomBoolean());
MetaData.Builder mdBuilder = MetaData.builder()
.put(i... | void function() { for (int i = 0; i < 10; i++) { IndicesOptions indicesOptions = IndicesOptions.fromOptions(randomBoolean(), randomBoolean(), randomBoolean(), randomBoolean()); MetaData.Builder mdBuilder = MetaData.builder() .put(indexBuilder("aaa").state(State.OPEN).putAlias(AliasMetaData.builder(STR))) .put(indexBuil... | /**
* test resolving wildcard pattern that matches no index of alias for random IndicesOptions
*/ | test resolving wildcard pattern that matches no index of alias for random IndicesOptions | testConcreteIndicesWildcardNoMatch | {
"repo_name": "fuchao01/elasticsearch",
"path": "core/src/test/java/org/elasticsearch/cluster/metadata/IndexNameExpressionResolverTests.java",
"license": "apache-2.0",
"size": 65592
} | [
"org.elasticsearch.action.support.IndicesOptions",
"org.elasticsearch.cluster.ClusterName",
"org.elasticsearch.cluster.ClusterState",
"org.elasticsearch.cluster.metadata.IndexMetaData",
"org.elasticsearch.index.IndexNotFoundException",
"org.hamcrest.Matchers"
] | import org.elasticsearch.action.support.IndicesOptions; import org.elasticsearch.cluster.ClusterName; import org.elasticsearch.cluster.ClusterState; import org.elasticsearch.cluster.metadata.IndexMetaData; import org.elasticsearch.index.IndexNotFoundException; import org.hamcrest.Matchers; | import org.elasticsearch.action.support.*; import org.elasticsearch.cluster.*; import org.elasticsearch.cluster.metadata.*; import org.elasticsearch.index.*; import org.hamcrest.*; | [
"org.elasticsearch.action",
"org.elasticsearch.cluster",
"org.elasticsearch.index",
"org.hamcrest"
] | org.elasticsearch.action; org.elasticsearch.cluster; org.elasticsearch.index; org.hamcrest; | 2,696,334 |
void login(AccountConfig accConf, String url, String tenant, String user, String pass, SwiftCallback callback); | void login(AccountConfig accConf, String url, String tenant, String user, String pass, SwiftCallback callback); | /**
* performs a login.
* @param accConf.
* @param url the url to login against.
* @param tenant the tenant.
* @param user the username.
* @param pass the password.
* @param callback the callback.
*/ | performs a login | login | {
"repo_name": "webs86/swift-explorer",
"path": "src/main/java/org/swiftexplorer/swift/operations/SwiftOperations.java",
"license": "apache-2.0",
"size": 15340
} | [
"org.javaswift.joss.client.factory.AccountConfig"
] | import org.javaswift.joss.client.factory.AccountConfig; | import org.javaswift.joss.client.factory.*; | [
"org.javaswift.joss"
] | org.javaswift.joss; | 1,087,913 |
public void prepareMachine(String ip, CloudImageDescription cid) throws ConnectorException; | void function(String ip, CloudImageDescription cid) throws ConnectorException; | /**
* Prepare Machine to run tasks.
*
* @param ip Machine IP.
* @param cid Machine description.
* @throws ConnectorException When the connector raises an exception.
*/ | Prepare Machine to run tasks | prepareMachine | {
"repo_name": "mF2C/COMPSs",
"path": "compss/runtime/resources/commons/src/main/java/es/bsc/compss/connectors/utils/Operations.java",
"license": "apache-2.0",
"size": 3765
} | [
"es.bsc.compss.connectors.ConnectorException",
"es.bsc.compss.types.resources.description.CloudImageDescription"
] | import es.bsc.compss.connectors.ConnectorException; import es.bsc.compss.types.resources.description.CloudImageDescription; | import es.bsc.compss.connectors.*; import es.bsc.compss.types.resources.description.*; | [
"es.bsc.compss"
] | es.bsc.compss; | 812,336 |
public void setAward(ContractsAndGrantsBillingAward award) {
this.award = award;
} | void function(ContractsAndGrantsBillingAward award) { this.award = award; } | /**
* Sets the award attribute.
*
* @param award The award to set.
*/ | Sets the award attribute | setAward | {
"repo_name": "bhutchinson/kfs",
"path": "kfs-ar/src/main/java/org/kuali/kfs/module/ar/businessobject/ContractsGrantsPaymentHistoryReport.java",
"license": "agpl-3.0",
"size": 7376
} | [
"org.kuali.kfs.integration.cg.ContractsAndGrantsBillingAward"
] | import org.kuali.kfs.integration.cg.ContractsAndGrantsBillingAward; | import org.kuali.kfs.integration.cg.*; | [
"org.kuali.kfs"
] | org.kuali.kfs; | 1,535,434 |
@Override
public boolean isLocal() {
return defaultString(myUnqualifiedId).startsWith("#");
} | boolean function() { return defaultString(myUnqualifiedId).startsWith("#"); } | /**
* Returns <code>true</code> if the ID is a local reference (in other words,
* it begins with the '#' character)
*/ | Returns <code>true</code> if the ID is a local reference (in other words, it begins with the '#' character) | isLocal | {
"repo_name": "SingingTree/hapi-fhir",
"path": "hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/IdDt.java",
"license": "apache-2.0",
"size": 20336
} | [
"org.apache.commons.lang3.StringUtils"
] | import org.apache.commons.lang3.StringUtils; | import org.apache.commons.lang3.*; | [
"org.apache.commons"
] | org.apache.commons; | 2,208,574 |
public static double calculateMedian(List values, int start, int end) {
return calculateMedian(values, start, end, true);
}
| static double function(List values, int start, int end) { return calculateMedian(values, start, end, true); } | /**
* Calculates the median for a sublist within a list of values
* (<code>Number</code> objects).
*
* @param values the values, in any order (<code>null</code> not
* permitted).
* @param start the start index.
* @param end the end index.
*
* @retu... | Calculates the median for a sublist within a list of values (<code>Number</code> objects) | calculateMedian | {
"repo_name": "fluidware/Eastwood-Charts",
"path": "source/org/jfree/data/statistics/Statistics.java",
"license": "lgpl-2.1",
"size": 17603
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,884,501 |
EAttribute getDiagramElement_Posy();
| EAttribute getDiagramElement_Posy(); | /**
* Returns the meta object for the attribute '{@link io.github.abelgomez.cpntools.DiagramElement#getPosy <em>Posy</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Posy</em>'.
* @see io.github.abelgomez.cpntools.DiagramElement#getPosy()
* @se... | Returns the meta object for the attribute '<code>io.github.abelgomez.cpntools.DiagramElement#getPosy Posy</code>'. | getDiagramElement_Posy | {
"repo_name": "abelgomez/cpntools.toolkit",
"path": "plugins/io.github.abelgomez.cpntools/src/io/github/abelgomez/cpntools/CpntoolsPackage.java",
"license": "epl-1.0",
"size": 204644
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 188,040 |
public Context getContext() {
return mContext;
} | Context function() { return mContext; } | /**
* Returns the {@link android.content.Context} of this Preference.
* Each Preference in a Preference hierarchy can be
* from different Context (for example, if multiple activities provide preferences into a single
* {@link PreferenceActivity}). This Context will be used to save the Preference va... | Returns the <code>android.content.Context</code> of this Preference. Each Preference in a Preference hierarchy can be from different Context (for example, if multiple activities provide preferences into a single <code>PreferenceActivity</code>). This Context will be used to save the Preference values | getContext | {
"repo_name": "xorware/android_frameworks_base",
"path": "core/java/android/preference/Preference.java",
"license": "apache-2.0",
"size": 67104
} | [
"android.content.Context"
] | import android.content.Context; | import android.content.*; | [
"android.content"
] | android.content; | 2,378,902 |
public T jsonpath(String text, boolean suppressExceptions, boolean allowSimple, Class<?> resultType) {
JsonPathExpression expression = new JsonPathExpression(text);
expression.setSuppressExceptions(Boolean.toString(suppressExceptions));
expression.setAllowSimple(Boolean.toString(allowSimple)... | T function(String text, boolean suppressExceptions, boolean allowSimple, Class<?> resultType) { JsonPathExpression expression = new JsonPathExpression(text); expression.setSuppressExceptions(Boolean.toString(suppressExceptions)); expression.setAllowSimple(Boolean.toString(allowSimple)); expression.setResultType(resultT... | /**
* Evaluates a <a href="http://camel.apache.org/jsonpath.html">Json Path
* expression</a>
*
* @param text the expression to be evaluated
* @param suppressExceptions whether to suppress exceptions such as
* PathNotFoundException
* @param allowSimple whether to allow in in... | Evaluates a Json Path expression | jsonpath | {
"repo_name": "ullgren/camel",
"path": "core/camel-core-engine/src/main/java/org/apache/camel/builder/ExpressionClauseSupport.java",
"license": "apache-2.0",
"size": 40867
} | [
"org.apache.camel.model.language.JsonPathExpression"
] | import org.apache.camel.model.language.JsonPathExpression; | import org.apache.camel.model.language.*; | [
"org.apache.camel"
] | org.apache.camel; | 2,269,589 |
@Override
int compare(EntryView<K, V> o1, EntryView<K, V> o2); | int compare(EntryView<K, V> o1, EntryView<K, V> o2); | /**
* Compares the given {@link EntryView} instances and
* returns the result. The result should be one of
* <ul>
* <li>-1: first entry has higher priority to be evicted</li>
* <li> 1: second entry has higher priority to be evicted</li>
* <li> 0: both entries have same priority</li>
... | Compares the given <code>EntryView</code> instances and returns the result. The result should be one of -1: first entry has higher priority to be evicted 1: second entry has higher priority to be evicted 0: both entries have same priority | compare | {
"repo_name": "mdogan/hazelcast",
"path": "hazelcast/src/main/java/com/hazelcast/map/MapEvictionPolicyComparator.java",
"license": "apache-2.0",
"size": 1888
} | [
"com.hazelcast.core.EntryView"
] | import com.hazelcast.core.EntryView; | import com.hazelcast.core.*; | [
"com.hazelcast.core"
] | com.hazelcast.core; | 625,157 |
public void setPath(PathKind kind, File path) throws IOException {
String sPath = path.getCanonicalPath();
if (null != projectFolder) { // -> DEFAULT
String pPath = projectFolder.getPath();
if (!pPath.endsWith(File.separator)) {
pPath += File.separator;
... | void function(PathKind kind, File path) throws IOException { String sPath = path.getCanonicalPath(); if (null != projectFolder) { String pPath = projectFolder.getPath(); if (!pPath.endsWith(File.separator)) { pPath += File.separator; } if (sPath.startsWith(pPath)) { sPath = sPath.substring(pPath.length()); } } setPathD... | /**
* Sets the given path.
*
* @param kind the kind of path to be modified
* @param path the new path value
* @throws IOException in case that setting the path fails as the canonical path cannot be identified
*/ | Sets the given path | setPath | {
"repo_name": "SSEHUB/EASyProducer",
"path": "Plugins/EASy-Producer/de.uni_hildesheim.sse.EASy-Producer.persistence/src/net/ssehub/easy/producer/core/persistence/Configuration.java",
"license": "apache-2.0",
"size": 13364
} | [
"java.io.File",
"java.io.IOException",
"net.ssehub.easy.producer.core.persistence.internal.util.FileUtils"
] | import java.io.File; import java.io.IOException; import net.ssehub.easy.producer.core.persistence.internal.util.FileUtils; | import java.io.*; import net.ssehub.easy.producer.core.persistence.internal.util.*; | [
"java.io",
"net.ssehub.easy"
] | java.io; net.ssehub.easy; | 1,384,428 |
@Override
public File getFile()
{
if (this.file == null) {
String ext = this.tmpSuffix;
int in = name.lastIndexOf('.');
if (in > -1) {
ext = name.substring(in);
}
try {
this.file =
... | File function() { if (this.file == null) { String ext = this.tmpSuffix; int in = name.lastIndexOf('.'); if (in > -1) { ext = name.substring(in); } try { this.file = createTempFile(this.parentFile, this.startingOffset, this.size, this.tmpDirectory, this.tmpPrefix, ext, this.bufferSize); this.isTemp = true; } catch (IOEx... | /**
* Get {@link java.io.File} backing byte stream subset of its
* parent source. Note that this File is not created until
* actually required, and will be deleted on close().
*
* @return File backing the byte stream; or null if the backing
* file cannot be created successf... | Get <code>java.io.File</code> backing byte stream subset of its parent source. Note that this File is not created until actually required, and will be deleted on close() | getFile | {
"repo_name": "opf-labs/jhove2",
"path": "src/main/java/org/jhove2/core/source/ByteStreamSource.java",
"license": "bsd-2-clause",
"size": 8548
} | [
"java.io.File",
"java.io.IOException"
] | import java.io.File; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,200,789 |
@Test
public void testEditorBoundarySearchIndex() {
JXEditorPane editor = new JXEditorPane();
editor.setText("f");
// can't test in one method - the searchable has internal state
int startOff = editor.getSearchable().search("f", -1);
assertEquals("must return first occuren... | void function() { JXEditorPane editor = new JXEditorPane(); editor.setText("f"); int startOff = editor.getSearchable().search("f", -1); assertEquals(STR, 0, startOff); int foIndex = editor.getSearchable().search("fo", -1); assertEquals(STR, -1, foIndex); foIndex = editor.getSearchable().search("f", 0); assertEquals(STR... | /**
* testing incremental search:
* must start search at given position (inclusive).
*
* This implies that search(xx, -1) is equivalent to
* search(xx, 0) if the match is at position 0.
*
*/ | testing incremental search: must start search at given position (inclusive). This implies that search(xx, -1) is equivalent to search(xx, 0) if the match is at position 0 | testEditorBoundarySearchIndex | {
"repo_name": "syncer/swingx",
"path": "swingx-core/src/test/java/org/jdesktop/swingx/search/FindTest.java",
"license": "lgpl-2.1",
"size": 31517
} | [
"org.jdesktop.swingx.JXEditorPane"
] | import org.jdesktop.swingx.JXEditorPane; | import org.jdesktop.swingx.*; | [
"org.jdesktop.swingx"
] | org.jdesktop.swingx; | 1,729,701 |
public void installChemicals(List<String> cofactorInchis) throws SQLException {
int numEntriesProcessed = 0;
SQLConnection brendaDB = new SQLConnection();
// This expects an SSH tunnel to be running, one created with the command
// $ ssh -L10000:brenda-mysql-1.ciuibkvm9oks.us-west-1.rds.amazonaws.com:... | void function(List<String> cofactorInchis) throws SQLException { int numEntriesProcessed = 0; SQLConnection brendaDB = new SQLConnection(); establishDefaultBrendaConnection(brendaDB); Set<String> cofactorInchisSet = new HashSet<>(cofactorInchis); long cofactor_num = 0; Iterator<BrendaSupportingEntries.Ligand> ligands =... | /**
* Add/merge all BRENDA chemicals into the chemicals collection in the DB, marking chemicals as cofactors if they
* appear in a list of cofactors.
*
* @param cofactorInchis A list of cofactors' InChIs, which are used to tag chemicals as cofactors.
* @throws SQLException
*/ | Add/merge all BRENDA chemicals into the chemicals collection in the DB, marking chemicals as cofactors if they appear in a list of cofactors | installChemicals | {
"repo_name": "20n/act",
"path": "reachables/src/main/java/act/installer/brenda/BrendaSQL.java",
"license": "gpl-3.0",
"size": 41272
} | [
"java.sql.SQLException",
"java.util.HashSet",
"java.util.Iterator",
"java.util.List",
"java.util.Set"
] | import java.sql.SQLException; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Set; | import java.sql.*; import java.util.*; | [
"java.sql",
"java.util"
] | java.sql; java.util; | 1,803,021 |
public static void writeArray(DataOutput out, int[] array) throws IOException {
out.writeInt(array.length);
for (int value : array) {
out.writeInt(value);
}
} | static void function(DataOutput out, int[] array) throws IOException { out.writeInt(array.length); for (int value : array) { out.writeInt(value); } } | /**
* Writes an int[] into a DataOutput
* @throws java.io.IOException
*/ | Writes an int[] into a DataOutput | writeArray | {
"repo_name": "saradelrio/Chi-FRBCS-BigData-Ave",
"path": "src/org/apache/mahout/classifier/chi_rw/Chi_RWUtils.java",
"license": "apache-2.0",
"size": 3999
} | [
"java.io.DataOutput",
"java.io.IOException"
] | import java.io.DataOutput; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,390,797 |
@Override
public Object toObject(ByteBuffer content, Type targetType) {
return Charset.defaultCharset().decode(content).toString();
} | Object function(ByteBuffer content, Type targetType) { return Charset.defaultCharset().decode(content).toString(); } | /**
* Convert a text ByteBuffer content to an object.
*
* @param content content that needs to be converted to an object
* @param targetType media type of the content
* @return String object that contains the text data
*/ | Convert a text ByteBuffer content to an object | toObject | {
"repo_name": "wso2/msf4j",
"path": "core/src/main/java/org/wso2/msf4j/internal/beanconversion/TextPlainConverter.java",
"license": "apache-2.0",
"size": 2457
} | [
"java.lang.reflect.Type",
"java.nio.ByteBuffer",
"java.nio.charset.Charset"
] | import java.lang.reflect.Type; import java.nio.ByteBuffer; import java.nio.charset.Charset; | import java.lang.reflect.*; import java.nio.*; import java.nio.charset.*; | [
"java.lang",
"java.nio"
] | java.lang; java.nio; | 2,837,344 |
public void setJobID(JobID jobId) {
this.jobId = jobId;
} | void function(JobID jobId) { this.jobId = jobId; } | /**
* Set the JobID.
*/ | Set the JobID | setJobID | {
"repo_name": "moreus/hadoop",
"path": "hadoop-0.23.10/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapreduce/task/JobContextImpl.java",
"license": "apache-2.0",
"size": 12427
} | [
"org.apache.hadoop.mapreduce.JobID"
] | import org.apache.hadoop.mapreduce.JobID; | import org.apache.hadoop.mapreduce.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,570,099 |
@Test
public void testBooleanSchemaOptionalFalse() {
Schema schema =
new BooleanSchema(null, SchemaTest.TEST_OPTIONAL_FALSE, null);
Assert
.assertEquals(schema.isOptional(), SchemaTest.TEST_OPTIONAL_FALSE);
}
| void function() { Schema schema = new BooleanSchema(null, SchemaTest.TEST_OPTIONAL_FALSE, null); Assert .assertEquals(schema.isOptional(), SchemaTest.TEST_OPTIONAL_FALSE); } | /**
* Test that a {@link BooleanSchema} is created as not optional.
*
* @throws ConcordiaException This should not be thrown.
*/ | Test that a <code>BooleanSchema</code> is created as not optional | testBooleanSchemaOptionalFalse | {
"repo_name": "jojenki/Concordia",
"path": "lang/java/test/name/jenkins/paul/john/concordia/schema/BooleanSchemaTest.java",
"license": "apache-2.0",
"size": 1953
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 1,262,711 |
OperatorStateStore mockStore = Mockito.mock(OperatorStateStore.class);
FunctionInitializationContext mockContext = Mockito.mock(FunctionInitializationContext.class);
Mockito.when(mockContext.getOperatorStateStore()).thenReturn(mockStore);
Mockito.when(mockStore.getSerializableListState(any(String.class))).thenR... | OperatorStateStore mockStore = Mockito.mock(OperatorStateStore.class); FunctionInitializationContext mockContext = Mockito.mock(FunctionInitializationContext.class); Mockito.when(mockContext.getOperatorStateStore()).thenReturn(mockStore); Mockito.when(mockStore.getSerializableListState(any(String.class))).thenReturn(nu... | /**
* Gets a mock context for initializing the source's state via {@link org.apache.flink.streaming.api.checkpoint.CheckpointedFunction#initializeState}.
* @throws Exception
*/ | Gets a mock context for initializing the source's state via <code>org.apache.flink.streaming.api.checkpoint.CheckpointedFunction#initializeState</code> | getMockContext | {
"repo_name": "hequn8128/flink",
"path": "flink-connectors/flink-connector-rabbitmq/src/test/java/org/apache/flink/streaming/connectors/rabbitmq/RMQSourceTest.java",
"license": "apache-2.0",
"size": 18371
} | [
"org.apache.flink.api.common.state.OperatorStateStore",
"org.apache.flink.runtime.state.FunctionInitializationContext",
"org.mockito.Mockito"
] | import org.apache.flink.api.common.state.OperatorStateStore; import org.apache.flink.runtime.state.FunctionInitializationContext; import org.mockito.Mockito; | import org.apache.flink.api.common.state.*; import org.apache.flink.runtime.state.*; import org.mockito.*; | [
"org.apache.flink",
"org.mockito"
] | org.apache.flink; org.mockito; | 2,272,160 |
@Override
public void setPaint(final Paint paint) {
if (paint instanceof Color) {
this.setColor((Color) paint);
}
// else
// System.out.println("setPaint");
}
| void function(final Paint paint) { if (paint instanceof Color) { this.setColor((Color) paint); } } | /**
* Sets the <code>Paint</code> attribute for the <code>Graphics2D</code>
* context. Calling this method with a <code>null</code> <code>Paint</code>
* object does not have any effect on the current <code>Paint</code> attribute
* of this <code>Graphics2D</code>.
*
* @param paint the <code>Paint</code... | Sets the <code>Paint</code> attribute for the <code>Graphics2D</code> context. Calling this method with a <code>null</code> <code>Paint</code> object does not have any effect on the current <code>Paint</code> attribute of this <code>Graphics2D</code> | setPaint | {
"repo_name": "debrief/debrief",
"path": "org.mwc.cmap.legacy/src/MWC/GUI/Canvas/MetafileCanvasGraphics2d.java",
"license": "epl-1.0",
"size": 74756
} | [
"java.awt.Color",
"java.awt.Paint"
] | import java.awt.Color; import java.awt.Paint; | import java.awt.*; | [
"java.awt"
] | java.awt; | 895,210 |
protected LinkedHashSet<Dimension> generateDimensions(
List<PathSegment> apiDimensions,
DimensionDictionary dimensionDictionary
) throws BadApiRequestException {
return DefaultDimensionGenerator.INSTANCE.generateDimensions(apiDimensions, dimensionDictionary);
} | LinkedHashSet<Dimension> function( List<PathSegment> apiDimensions, DimensionDictionary dimensionDictionary ) throws BadApiRequestException { return DefaultDimensionGenerator.INSTANCE.generateDimensions(apiDimensions, dimensionDictionary); } | /**
* Extracts the list of dimension names from the url dimension path segments and generates a set of dimension
* objects based on it.
*
* @param apiDimensions Dimension path segments from the URL.
* @param dimensionDictionary Dimension dictionary contains the map of valid dimension names an... | Extracts the list of dimension names from the url dimension path segments and generates a set of dimension objects based on it | generateDimensions | {
"repo_name": "yahoo/fili",
"path": "fili-core/src/main/java/com/yahoo/bard/webservice/web/apirequest/ApiRequestImpl.java",
"license": "apache-2.0",
"size": 23429
} | [
"com.yahoo.bard.webservice.data.dimension.Dimension",
"com.yahoo.bard.webservice.data.dimension.DimensionDictionary",
"com.yahoo.bard.webservice.web.apirequest.exceptions.BadApiRequestException",
"com.yahoo.bard.webservice.web.apirequest.generator.DefaultDimensionGenerator",
"java.util.LinkedHashSet",
"ja... | import com.yahoo.bard.webservice.data.dimension.Dimension; import com.yahoo.bard.webservice.data.dimension.DimensionDictionary; import com.yahoo.bard.webservice.web.apirequest.exceptions.BadApiRequestException; import com.yahoo.bard.webservice.web.apirequest.generator.DefaultDimensionGenerator; import java.util.LinkedH... | import com.yahoo.bard.webservice.data.dimension.*; import com.yahoo.bard.webservice.web.apirequest.exceptions.*; import com.yahoo.bard.webservice.web.apirequest.generator.*; import java.util.*; import javax.ws.rs.core.*; | [
"com.yahoo.bard",
"java.util",
"javax.ws"
] | com.yahoo.bard; java.util; javax.ws; | 434,978 |
public boolean attackEntityFrom(DamageSource source, float amount)
{
if (this.isEntityInvulnerable(source))
{
return false;
}
else if (!source.isExplosion() && this.getDisplayedItem() != null)
{
if (!this.worldObj.isRemote)
{
... | boolean function(DamageSource source, float amount) { if (this.isEntityInvulnerable(source)) { return false; } else if (!source.isExplosion() && this.getDisplayedItem() != null) { if (!this.worldObj.isRemote) { this.dropItemOrSelf(source.getEntity(), false); this.setDisplayedItem((ItemStack)null); } return true; } else... | /**
* Called when the entity is attacked.
*/ | Called when the entity is attacked | attackEntityFrom | {
"repo_name": "dogjaw2233/tiu-s-mod",
"path": "build/tmp/recompileMc/sources/net/minecraft/entity/item/EntityItemFrame.java",
"license": "lgpl-2.1",
"size": 7969
} | [
"net.minecraft.item.ItemStack",
"net.minecraft.util.DamageSource"
] | import net.minecraft.item.ItemStack; import net.minecraft.util.DamageSource; | import net.minecraft.item.*; import net.minecraft.util.*; | [
"net.minecraft.item",
"net.minecraft.util"
] | net.minecraft.item; net.minecraft.util; | 479,281 |
private void createMainMethod() {
// Always update the entry point creator to reflect the newest set
// of callback methods
SootMethod entryPoint = createEntryPointCreator().createDummyMain();
Scene.v().setEntryPoints(Collections.singletonList(entryPoint));
if (Scene.v().containsClass(entryPoint.getDeclari... | void function() { SootMethod entryPoint = createEntryPointCreator().createDummyMain(); Scene.v().setEntryPoints(Collections.singletonList(entryPoint)); if (Scene.v().containsClass(entryPoint.getDeclaringClass().getName())) Scene.v().removeClass(entryPoint.getDeclaringClass()); Scene.v().addClass(entryPoint.getDeclaring... | /**
* Creates the main method based on the current callback information, injects it into the Soot scene.
*/ | Creates the main method based on the current callback information, injects it into the Soot scene | createMainMethod | {
"repo_name": "uds-se/soot-infoflow-android",
"path": "src/soot/jimple/infoflow/android/SetupApplication.java",
"license": "lgpl-2.1",
"size": 32750
} | [
"java.util.Collections"
] | import java.util.Collections; | import java.util.*; | [
"java.util"
] | java.util; | 603,931 |
public static DatatypeIdValue makeDatatypeIdValue(String id) {
return factory.getDatatypeIdValue(id);
}
/**
* Creates a {@link TimeValue}.
*
* @param year
* a year number, where 0 refers to 1BCE
* @param month
* a month number between 1 and 12
* @param day
* a da... | static DatatypeIdValue function(String id) { return factory.getDatatypeIdValue(id); } /** * Creates a {@link TimeValue}. * * @param year * a year number, where 0 refers to 1BCE * @param month * a month number between 1 and 12 * @param day * a day number between 1 and 31 * @param hour * an hour number between 0 and 23 *... | /**
* Creates a {@link DatatypeIdValue}. The datatype IRI is usually one of the
* constants defined in {@link DatatypeIdValue}, but this is not enforced,
* since there might be extensions that provide additional types.
*
* @param id
* the IRI string that identifies the datatype
* @return a {@li... | Creates a <code>DatatypeIdValue</code>. The datatype IRI is usually one of the constants defined in <code>DatatypeIdValue</code>, but this is not enforced, since there might be extensions that provide additional types | makeDatatypeIdValue | {
"repo_name": "notconfusing/Wikidata-Toolkit",
"path": "wdtk-datamodel/src/main/java/org/wikidata/wdtk/datamodel/helpers/Datamodel.java",
"license": "apache-2.0",
"size": 22249
} | [
"org.wikidata.wdtk.datamodel.interfaces.DatatypeIdValue",
"org.wikidata.wdtk.datamodel.interfaces.TimeValue"
] | import org.wikidata.wdtk.datamodel.interfaces.DatatypeIdValue; import org.wikidata.wdtk.datamodel.interfaces.TimeValue; | import org.wikidata.wdtk.datamodel.interfaces.*; | [
"org.wikidata.wdtk"
] | org.wikidata.wdtk; | 2,301,851 |
void onClose(@NotNull AsyncCallback<Void> callback); | void onClose(@NotNull AsyncCallback<Void> callback); | /**
* This method is called when part is going to be closed. Part itself can deny blocking, by calling onFailure() on callback, i.e. when document is
* being edited and accidentally close button pressed.
* @param callback
*/ | This method is called when part is going to be closed. Part itself can deny blocking, by calling onFailure() on callback, i.e. when document is being edited and accidentally close button pressed | onClose | {
"repo_name": "codenvy/che-core",
"path": "ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/parts/PartPresenter.java",
"license": "epl-1.0",
"size": 4901
} | [
"com.google.gwt.user.client.rpc.AsyncCallback",
"javax.validation.constraints.NotNull"
] | import com.google.gwt.user.client.rpc.AsyncCallback; import javax.validation.constraints.NotNull; | import com.google.gwt.user.client.rpc.*; import javax.validation.constraints.*; | [
"com.google.gwt",
"javax.validation"
] | com.google.gwt; javax.validation; | 1,353,017 |
private int reverseAlignForBidi(Component c) {
return reverseAlignForBidi(c, c.getStyle().getAlignment());
} | int function(Component c) { return reverseAlignForBidi(c, c.getStyle().getAlignment()); } | /**
* Reverses alignment in the case of bidi
*/ | Reverses alignment in the case of bidi | reverseAlignForBidi | {
"repo_name": "codenameone/CodenameOne",
"path": "CodenameOne/src/com/codename1/ui/plaf/DefaultLookAndFeel.java",
"license": "gpl-2.0",
"size": 109266
} | [
"com.codename1.ui.Component"
] | import com.codename1.ui.Component; | import com.codename1.ui.*; | [
"com.codename1.ui"
] | com.codename1.ui; | 2,719,907 |
public Parameters withViewportSizeFromContext(Context context, boolean orientationMayChange) {
// Assume the viewport is fullscreen.
Point viewportSize = Util.getPhysicalDisplaySize(context);
return withViewportSize(viewportSize.x, viewportSize.y, orientationMayChange);
} | Parameters function(Context context, boolean orientationMayChange) { Point viewportSize = Util.getPhysicalDisplaySize(context); return withViewportSize(viewportSize.x, viewportSize.y, orientationMayChange); } | /**
* Returns a {@link Parameters} instance where the viewport size is obtained from the provided
* {@link Context}.
*
* @param context The context to obtain the viewport size from.
* @param orientationMayChange Whether orientation may change during playback.
* @return A {@link Parameters}... | Returns a <code>Parameters</code> instance where the viewport size is obtained from the provided <code>Context</code> | withViewportSizeFromContext | {
"repo_name": "sanjaysingh1990/radio",
"path": "library/core/src/main/java/com/google/android/exoplayer2/trackselection/DefaultTrackSelector.java",
"license": "mit",
"size": 45299
} | [
"android.content.Context",
"android.graphics.Point",
"com.google.android.exoplayer2.util.Util"
] | import android.content.Context; import android.graphics.Point; import com.google.android.exoplayer2.util.Util; | import android.content.*; import android.graphics.*; import com.google.android.exoplayer2.util.*; | [
"android.content",
"android.graphics",
"com.google.android"
] | android.content; android.graphics; com.google.android; | 2,498,822 |
private void streamTest5(long length, String tableName) throws Exception {
InputStream fileIn = null;
try {
insertLongString(1, pad("Broadway", length), true, tableName);
insertLongString(2, pad("Franklin", length), true, tableName);
insertLongString(3, pad("Webst... | void function(long length, String tableName) throws Exception { InputStream fileIn = null; try { insertLongString(1, pad(STR, length), true, tableName); insertLongString(2, pad(STR, length), true, tableName); insertLongString(3, pad(STR, length), true, tableName); insertLongString(4, pad(STR, length), true, tableName);... | /**
* If length > 32700 insert to a BLOB field. Else, a long varchar field.
*
* @param length
* Padding length
* @param tableName
* Name of table
* @throws Exception
*/ | If length > 32700 insert to a BLOB field. Else, a long varchar field | streamTest5 | {
"repo_name": "apache/derby",
"path": "java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/store/StreamingColumnTest.java",
"license": "apache-2.0",
"size": 89800
} | [
"java.io.File",
"java.io.InputStream",
"java.sql.PreparedStatement",
"org.apache.derbyTesting.functionTests.util.PrivilegedFileOpsForTests"
] | import java.io.File; import java.io.InputStream; import java.sql.PreparedStatement; import org.apache.derbyTesting.functionTests.util.PrivilegedFileOpsForTests; | import java.io.*; import java.sql.*; import org.apache.*; | [
"java.io",
"java.sql",
"org.apache"
] | java.io; java.sql; org.apache; | 2,866,054 |
void setLineAsInstrumented(int lineNumber) {
Preconditions.checkArgument(lineNumber > 0,
"Expected non-zero positive integer as line " +
"number.");
// Map the 1-based line number to 0-based bit position
instrumentedBits.set(lineNumber - 1);... | void setLineAsInstrumented(int lineNumber) { Preconditions.checkArgument(lineNumber > 0, STR + STR); instrumentedBits.set(lineNumber - 1); } | /**
* Mark given 1-based line number as instrumented. Zero, Negative numbers
* are not allowed.
* @param lineNumber the line number which was instrumented
*/ | Mark given 1-based line number as instrumented. Zero, Negative numbers are not allowed | setLineAsInstrumented | {
"repo_name": "jimmytuc/closure-compiler",
"path": "src/com/google/javascript/jscomp/FileInstrumentationData.java",
"license": "apache-2.0",
"size": 2979
} | [
"com.google.common.base.Preconditions"
] | import com.google.common.base.Preconditions; | import com.google.common.base.*; | [
"com.google.common"
] | com.google.common; | 169,768 |
public static <K, V> Map<K, V> wrap(final String key, final Object value,
final String key2, final Object value2,
final String key3, final Object value3,
final String key4, final Object value4) {
... | static <K, V> Map<K, V> function(final String key, final Object value, final String key2, final Object value2, final String key3, final Object value3, final String key4, final Object value4) { val m = wrap(key, value, key2, value2, key3, value3); m.put(key4, value4); return (Map) m; } | /**
* Wrap map.
*
* @param <K> the type parameter
* @param <V> the type parameter
* @param key the key
* @param value the value
* @param key2 the key 2
* @param value2 the value 2
* @param key3 the key 3
* @param value3 the value 3
* @param key4 the... | Wrap map | wrap | {
"repo_name": "pdrados/cas",
"path": "core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/CollectionUtils.java",
"license": "apache-2.0",
"size": 19935
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,699,029 |
JSONObject exportJSONTree(JSONObjectTreeNode treeNode) throws JSONException {
JSONObject rootObject = new JSONObject();
Enumeration<JSONObjectTreeNode> childNodes = treeNode.children();
while (childNodes.hasMoreElements()) {
JSONObjectTreeNode childNode = childNodes.nextElement... | JSONObject exportJSONTree(JSONObjectTreeNode treeNode) throws JSONException { JSONObject rootObject = new JSONObject(); Enumeration<JSONObjectTreeNode> childNodes = treeNode.children(); while (childNodes.hasMoreElements()) { JSONObjectTreeNode childNode = childNodes.nextElement(); JSONObject innerObject = exportJSONTre... | /**
* Recursively exports a tree represented by JSONObjectTreeNode instances
* containing JSONReference objects as a JSONObject.
*
* @param treeNode The node to use as the root to export from.
* @return A JSONObject
* @throws JSONException
*/ | Recursively exports a tree represented by JSONObjectTreeNode instances containing JSONReference objects as a JSONObject | exportJSONTree | {
"repo_name": "nosoop/JSONToolView",
"path": "JSONToolView/src/com/nosoop/jsontool/JSONToolWindow.java",
"license": "mit",
"size": 37408
} | [
"java.util.Enumeration",
"java.util.Map"
] | import java.util.Enumeration; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,041,723 |
@Test
public void testGetAccessTokenConfidentialClientBasicAuth() throws Exception {
FakeHttpServletRequest req = new FakeHttpServletRequest(
"http://localhost:8080", "/oauth2", "client_id=" + CONF_CLIENT_ID
+ "&grant_type=authorization_code&redirect_uri="
+ URLEncoder.encod... | void function() throws Exception { FakeHttpServletRequest req = new FakeHttpServletRequest( STR&grant_type=authorization_code&redirect_uri=STRUTF-8STR&code=STRAuthorizationSTRBasic STR:STRUTF-8STRGETSTR/oauth2STR/access_tokenSTRUTF-8STRbearerSTRtoken_typeSTRaccess_tokenSTRexpires_in") > 0); verify(); } | /**
* Test using basic authentication scheme for client authentication
*
* @throws Exception
*/ | Test using basic authentication scheme for client authentication | testGetAccessTokenConfidentialClientBasicAuth | {
"repo_name": "apparentlymart/shindig",
"path": "java/social-api/src/test/java/org/apache/shindig/social/core/oauth/OAuth2AuthCodeFlowTest.java",
"license": "apache-2.0",
"size": 29720
} | [
"org.apache.shindig.common.testing.FakeHttpServletRequest"
] | import org.apache.shindig.common.testing.FakeHttpServletRequest; | import org.apache.shindig.common.testing.*; | [
"org.apache.shindig"
] | org.apache.shindig; | 1,172,639 |
public static void commit(final Connection connection) {
try {
if (!connection.getAutoCommit()) {
connection.commit();
}
} catch (final SQLException e) {
throw new RuntimeSQLException("Couldn't commit transaction on connection '"
+ connection + "'.", e);
}
} | static void function(final Connection connection) { try { if (!connection.getAutoCommit()) { connection.commit(); } } catch (final SQLException e) { throw new RuntimeSQLException(STR + connection + "'.", e); } } | /**
* Commits the current transaction represented by the specified connection
* instance. If the connection is set to auto-commit mode, this operation
* does nothing.
*
* @param connection
* the connection linked to the transaction to commit
*/ | Commits the current transaction represented by the specified connection instance. If the connection is set to auto-commit mode, this operation does nothing | commit | {
"repo_name": "IHTSDO/snow-owl",
"path": "commons/com.b2international.commons.base/src/com/b2international/commons/db/JdbcUtils.java",
"license": "apache-2.0",
"size": 12326
} | [
"java.sql.Connection",
"java.sql.SQLException"
] | import java.sql.Connection; import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 2,048,607 |
public Command createTouchCommand(final String key, final byte[] keyBytes,
CountDownLatch latch, int exp, boolean noreply);
| Command function(final String key, final byte[] keyBytes, CountDownLatch latch, int exp, boolean noreply); | /**
* Create a touch command
*
* @since 1.3.3
* @param key
* @param keyBytes
* @param latch TODO
* @param exp
* @param noreply
* @return
*/ | Create a touch command | createTouchCommand | {
"repo_name": "springning/xmemcached",
"path": "src/main/java/net/rubyeye/xmemcached/CommandFactory.java",
"license": "apache-2.0",
"size": 7419
} | [
"java.util.concurrent.CountDownLatch",
"net.rubyeye.xmemcached.command.Command"
] | import java.util.concurrent.CountDownLatch; import net.rubyeye.xmemcached.command.Command; | import java.util.concurrent.*; import net.rubyeye.xmemcached.command.*; | [
"java.util",
"net.rubyeye.xmemcached"
] | java.util; net.rubyeye.xmemcached; | 1,546,420 |
private native float getMovementXJSNI(NativeEvent event) ; | native float function(NativeEvent event) ; | /**
* from https://github.com/toji/game-shim/blob/master/game-shim.js
*
* @param event JavaScript Mouse Event
* @return movement in x direction
*/ | from HREF | getMovementXJSNI | {
"repo_name": "mapsforge/vtm",
"path": "vtm-web/src/org/oscim/gdx/emu/com/badlogic/gdx/backends/gwt/GwtInput.java",
"license": "lgpl-3.0",
"size": 35943
} | [
"com.google.gwt.dom.client.NativeEvent"
] | import com.google.gwt.dom.client.NativeEvent; | import com.google.gwt.dom.client.*; | [
"com.google.gwt"
] | com.google.gwt; | 1,717,810 |
protected void parseCRLF(boolean tolerant) throws IOException {
boolean eol = false;
boolean crfound = false;
while (!eol) {
if (pos >= lastValid) {
if (readBytes() <= 0) {
throwIOException(sm.getString("chunkedInputFilter.invalidCrlfNoData")... | void function(boolean tolerant) throws IOException { boolean eol = false; boolean crfound = false; while (!eol) { if (pos >= lastValid) { if (readBytes() <= 0) { throwIOException(sm.getString(STR)); } } if (buf[pos] == Constants.CR) { if (crfound) { throwIOException(sm.getString(STR)); } crfound = true; } else if (buf[... | /**
* Parse CRLF at end of chunk.
*
* @param tolerant Should tolerant parsing (LF and CRLF) be used? This
* is recommended (RFC2616, section 19.3) for message
* headers.
*/ | Parse CRLF at end of chunk | parseCRLF | {
"repo_name": "plumer/codana",
"path": "tomcat_files/6.0.43/ChunkedInputFilter.java",
"license": "mit",
"size": 17063
} | [
"java.io.IOException",
"org.apache.coyote.http11.Constants"
] | import java.io.IOException; import org.apache.coyote.http11.Constants; | import java.io.*; import org.apache.coyote.http11.*; | [
"java.io",
"org.apache.coyote"
] | java.io; org.apache.coyote; | 907,599 |
public List<String> enabledHostNames() {
return this.enabledHostNames;
} | List<String> function() { return this.enabledHostNames; } | /**
* Get enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise,
the app is not served on those hostnames.
*
* @return the enabledHostNames value
*/ | Get enabled hostnames for the app.Hostnames need to be assigned (see HostNames) AND enabled. Otherwise | enabledHostNames | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/appservice/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/appservice/v2019_08_01/implementation/SiteInner.java",
"license": "mit",
"size": 27088
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 94,126 |
Reader reader = new StringReader("Wha\u0301t's this thing do?");
TokenStream stream = tokenizerFactory("Standard").create(reader);
assertTokenStreamContents(stream,
new String[] { "Wha\u0301t's", "this", "thing", "do" });
} | Reader reader = new StringReader(STR); TokenStream stream = tokenizerFactory(STR).create(reader); assertTokenStreamContents(stream, new String[] { STR, "this", "thing", "do" }); } | /**
* Test StandardTokenizerFactory
*/ | Test StandardTokenizerFactory | testStandardTokenizer | {
"repo_name": "fuchao01/fuchao",
"path": "lucene/analysis/common/src/test/org/apache/lucene/analysis/standard/TestStandardFactories.java",
"license": "apache-2.0",
"size": 7198
} | [
"java.io.Reader",
"java.io.StringReader",
"org.apache.lucene.analysis.TokenStream"
] | import java.io.Reader; import java.io.StringReader; import org.apache.lucene.analysis.TokenStream; | import java.io.*; import org.apache.lucene.analysis.*; | [
"java.io",
"org.apache.lucene"
] | java.io; org.apache.lucene; | 598,346 |
public HandlerRegistration addHeaderKeyUpHandler(HeaderKeyUpHandler handler) {
return addHandler(handler, keyUp.getAssociatedType());
} | HandlerRegistration function(HeaderKeyUpHandler handler) { return addHandler(handler, keyUp.getAssociatedType()); } | /**
* Register a HeaderKeyUpHandler to this Grid. The event for this handler is
* fired when a KeyUp event occurs while cell focus is in the Header of this
* Grid.
*
* @param handler
* the key handler to register
* @return the registration for the event
*/ | Register a HeaderKeyUpHandler to this Grid. The event for this handler is fired when a KeyUp event occurs while cell focus is in the Header of this Grid | addHeaderKeyUpHandler | {
"repo_name": "shahrzadmn/vaadin",
"path": "client/src/com/vaadin/client/widgets/Grid.java",
"license": "apache-2.0",
"size": 302957
} | [
"com.google.gwt.event.shared.HandlerRegistration",
"com.vaadin.client.widget.grid.events.HeaderKeyUpHandler"
] | import com.google.gwt.event.shared.HandlerRegistration; import com.vaadin.client.widget.grid.events.HeaderKeyUpHandler; | import com.google.gwt.event.shared.*; import com.vaadin.client.widget.grid.events.*; | [
"com.google.gwt",
"com.vaadin.client"
] | com.google.gwt; com.vaadin.client; | 1,526,982 |
public void setParameter(PreparedStatement pstmt, int index, Object value)
throws SQLException
{
if (value == null) {
// jpa/141e
pstmt.setString(index, null);
}
else if (value instanceof Number)
pstmt.setString(index, value.toString());
else
throw new IllegalArgumentExce... | void function(PreparedStatement pstmt, int index, Object value) throws SQLException { if (value == null) { pstmt.setString(index, null); } else if (value instanceof Number) pstmt.setString(index, value.toString()); else throw new IllegalArgumentException(STR); } | /**
* Sets the value.
*/ | Sets the value | setParameter | {
"repo_name": "mdaniel/svn-caucho-com-resin",
"path": "modules/resin/src/com/caucho/amber/type/PrimitiveLongType.java",
"license": "gpl-2.0",
"size": 5192
} | [
"java.sql.PreparedStatement",
"java.sql.SQLException"
] | import java.sql.PreparedStatement; import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 147,487 |
protected void setDefaultNameIfNone(StreamletNamePrefix prefix, Set<String> stageNames) {
if (getName() == null) {
setName(defaultNameCalculator(prefix, stageNames));
}
if (stageNames.contains(getName())) {
throw new RuntimeException(String.format(
"The stage name %s is used multiple... | void function(StreamletNamePrefix prefix, Set<String> stageNames) { if (getName() == null) { setName(defaultNameCalculator(prefix, stageNames)); } if (stageNames.contains(getName())) { throw new RuntimeException(String.format( STR, getName())); } stageNames.add(getName()); } | /**
* Sets a default unique name to the Streamlet by type if it is not set.
* Otherwise, just checks its uniqueness.
* @param prefix The name prefix of this streamlet
* @param stageNames The collections of created streamlet/stage names
*/ | Sets a default unique name to the Streamlet by type if it is not set. Otherwise, just checks its uniqueness | setDefaultNameIfNone | {
"repo_name": "tomncooper/heron",
"path": "heron/api/src/java/org/apache/heron/streamlet/impl/StreamletImpl.java",
"license": "apache-2.0",
"size": 21556
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 39,913 |
public void enableOverscan() throws SonyProjectorException {
if (!model.isOverscanAvailable()) {
throw new SonyProjectorException("Unavailable item " + SonyProjectorItem.OVERSCAN.getName()
+ " for projector model " + model.getName());
}
setSetting(SonyProjecto... | void function() throws SonyProjectorException { if (!model.isOverscanAvailable()) { throw new SonyProjectorException(STR + SonyProjectorItem.OVERSCAN.getName() + STR + model.getName()); } setSetting(SonyProjectorItem.OVERSCAN, OVERSCAN_ON); } | /**
* Request the projector to enable the overscan
*
* @throws SonyProjectorException - In case this setting is not available for the projector or any other problem
*/ | Request the projector to enable the overscan | enableOverscan | {
"repo_name": "openhab/openhab2",
"path": "bundles/org.openhab.binding.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/communication/SonyProjectorConnector.java",
"license": "epl-1.0",
"size": 43215
} | [
"org.openhab.binding.sonyprojector.internal.SonyProjectorException"
] | import org.openhab.binding.sonyprojector.internal.SonyProjectorException; | import org.openhab.binding.sonyprojector.internal.*; | [
"org.openhab.binding"
] | org.openhab.binding; | 93,701 |
@Override
public void complete() throws IOException
{
if (_state == STATE_END)
return;
super.complete();
if (_state < STATE_FLUSHING)
{
_state = STATE_FLUSHING;
if (_contentLength == HttpTokens.CHUNKED_CONTENT)
_needE... | void function() throws IOException { if (_state == STATE_END) return; super.complete(); if (_state < STATE_FLUSHING) { _state = STATE_FLUSHING; if (_contentLength == HttpTokens.CHUNKED_CONTENT) _needEOC = true; } flushBuffer(); } | /**
* Complete the message.
*
* @throws IOException
*/ | Complete the message | complete | {
"repo_name": "jamiepg1/jetty.project",
"path": "jetty-http/src/main/java/org/eclipse/jetty/http/HttpGenerator.java",
"license": "apache-2.0",
"size": 42145
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,859,072 |
protected IOR createIOR(Connected_objects.cObject ref)
throws BAD_OPERATION
{
IOR ior = new IOR();
ior.key = ref.key;
ior.Internet.port = ref.port;
if (ref.object instanceof ObjectImpl)
{
ObjectImpl imp = (ObjectImpl) ref.object;
if (imp._ids().length > 0)
ior.Id... | IOR function(Connected_objects.cObject ref) throws BAD_OPERATION { IOR ior = new IOR(); ior.key = ref.key; ior.Internet.port = ref.port; if (ref.object instanceof ObjectImpl) { ObjectImpl imp = (ObjectImpl) ref.object; if (imp._ids().length > 0) ior.Id = imp._ids() [ 0 ]; } if (ior.Id == null) ior.Id = ref.object.getCl... | /**
* Create IOR for the given object references.
*/ | Create IOR for the given object references | createIOR | {
"repo_name": "SanDisk-Open-Source/SSD_Dashboard",
"path": "uefi/gcc/gcc-4.6.3/libjava/classpath/gnu/CORBA/OrbFunctional.java",
"license": "gpl-2.0",
"size": 55482
} | [
"org.omg.CORBA"
] | import org.omg.CORBA; | import org.omg.*; | [
"org.omg"
] | org.omg; | 2,604,213 |
@Test
public void testGetid() {
ActionElement actionElement = new ActionElement(27, ActionElementType.ARGUMENT, "Test", "4");
assertTrue(actionElement.getId() == "4");
}
| void function() { ActionElement actionElement = new ActionElement(27, ActionElementType.ARGUMENT, "Test", "4"); assertTrue(actionElement.getId() == "4"); } | /**
* test the getPosition method.
*/ | test the getPosition method | testGetid | {
"repo_name": "test-editor/test-editor",
"path": "core/org.testeditor.core/src/test/java/org/testeditor/core/model/action/ActionElementTest.java",
"license": "epl-1.0",
"size": 2544
} | [
"org.junit.Assert",
"org.junit.Test"
] | import org.junit.Assert; import org.junit.Test; | import org.junit.*; | [
"org.junit"
] | org.junit; | 1,472,437 |
public void testCertStoreException03() {
String msg = null;
CertStoreException tE = new CertStoreException(msg);
assertNull("getMessage() must return null.", tE.getMessage());
assertNull("getCause() must return null", tE.getCause());
} | void function() { String msg = null; CertStoreException tE = new CertStoreException(msg); assertNull(STR, tE.getMessage()); assertNull(STR, tE.getCause()); } | /**
* Test for <code>CertStoreException(String)</code> constructor Assertion:
* constructs CertStoreException when <code>msg</code> is null
*/ | Test for <code>CertStoreException(String)</code> constructor Assertion: constructs CertStoreException when <code>msg</code> is null | testCertStoreException03 | {
"repo_name": "AdmireTheDistance/android_libcore",
"path": "luni/src/test/java/tests/security/cert/CertStoreExceptionTest.java",
"license": "gpl-2.0",
"size": 6921
} | [
"java.security.cert.CertStoreException"
] | import java.security.cert.CertStoreException; | import java.security.cert.*; | [
"java.security"
] | java.security; | 113,847 |
@ReqTest(test="AT-020.3", reqs="REQ020")
@Test public void test_AT_020_3_DiscoveryServiceRecovery() throws Exception {
//Notify DiscoveryService recovery
DeploymentID dsID = new DeploymentID(new ContainerID(DiscoveryServiceUser, DiscoveryServiceServer, DiscoveryServiceConstants.MODULE_NAME),
DiscoveryServic... | @ReqTest(test=STR, reqs=STR) @Test void function() throws Exception { DeploymentID dsID = new DeploymentID(new ContainerID(DiscoveryServiceUser, DiscoveryServiceServer, DiscoveryServiceConstants.MODULE_NAME), DiscoveryServiceConstants.DS_OBJECT_NAME); req_020_Util.notifyDiscoveryServiceRecovery(component, dsID); req_02... | /**
* Verify if, when a DiscoveryService Peer recovers, the OurGrid Peer register
* failure interest on it.
*/ | Verify if, when a DiscoveryService Peer recovers, the OurGrid Peer register failure interest on it | test_AT_020_3_DiscoveryServiceRecovery | {
"repo_name": "OurGrid/OurGrid",
"path": "src/test/java/org/ourgrid/acceptance/peer/Req_020_Test.java",
"license": "lgpl-3.0",
"size": 9385
} | [
"br.edu.ufcg.lsd.commune.identification.ContainerID",
"br.edu.ufcg.lsd.commune.identification.DeploymentID",
"org.junit.Test",
"org.ourgrid.discoveryservice.DiscoveryServiceConstants",
"org.ourgrid.reqtrace.ReqTest"
] | import br.edu.ufcg.lsd.commune.identification.ContainerID; import br.edu.ufcg.lsd.commune.identification.DeploymentID; import org.junit.Test; import org.ourgrid.discoveryservice.DiscoveryServiceConstants; import org.ourgrid.reqtrace.ReqTest; | import br.edu.ufcg.lsd.commune.identification.*; import org.junit.*; import org.ourgrid.discoveryservice.*; import org.ourgrid.reqtrace.*; | [
"br.edu.ufcg",
"org.junit",
"org.ourgrid.discoveryservice",
"org.ourgrid.reqtrace"
] | br.edu.ufcg; org.junit; org.ourgrid.discoveryservice; org.ourgrid.reqtrace; | 2,003,710 |
public void refresh() throws MMException {
afs_.clear();
CMMCore core = app_.getMMCore();
// first check core autofocus
StrVector afDevs = core.getLoadedDevicesOfType(DeviceType.AutoFocusDevice);
for (int i=0; i<afDevs.size(); i++) {
CoreAutofocus caf = new CoreAutofocu... | void function() throws MMException { afs_.clear(); CMMCore core = app_.getMMCore(); StrVector afDevs = core.getLoadedDevicesOfType(DeviceType.AutoFocusDevice); for (int i=0; i<afDevs.size(); i++) { CoreAutofocus caf = new CoreAutofocus(); try { core.setAutoFocusDevice(afDevs.get(i)); caf.setApp(app_); if (caf.getDevice... | /**
* Scans the system for available af devices, both plugin and core based
* If it has a current AFDevice, try to keep the same device as the current one
* Update the Autofcosu property dialog
* @throws MMException
*/ | Scans the system for available af devices, both plugin and core based If it has a current AFDevice, try to keep the same device as the current one Update the Autofcosu property dialog | refresh | {
"repo_name": "kmdouglass/Micro-Manager",
"path": "mmstudio/src/org/micromanager/utils/AutofocusManager.java",
"license": "mit",
"size": 7170
} | [
"org.micromanager.api.Autofocus"
] | import org.micromanager.api.Autofocus; | import org.micromanager.api.*; | [
"org.micromanager.api"
] | org.micromanager.api; | 1,371,558 |
public SnapshotPolicyPatch withDailySchedule(DailySchedule dailySchedule) {
if (this.innerProperties() == null) {
this.innerProperties = new SnapshotPolicyProperties();
}
this.innerProperties().withDailySchedule(dailySchedule);
return this;
} | SnapshotPolicyPatch function(DailySchedule dailySchedule) { if (this.innerProperties() == null) { this.innerProperties = new SnapshotPolicyProperties(); } this.innerProperties().withDailySchedule(dailySchedule); return this; } | /**
* Set the dailySchedule property: Schedule for daily snapshots.
*
* @param dailySchedule the dailySchedule value to set.
* @return the SnapshotPolicyPatch object itself.
*/ | Set the dailySchedule property: Schedule for daily snapshots | withDailySchedule | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java",
"license": "mit",
"size": 7723
} | [
"com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyProperties"
] | import com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyProperties; | import com.azure.resourcemanager.netapp.fluent.models.*; | [
"com.azure.resourcemanager"
] | com.azure.resourcemanager; | 1,982,744 |
public List<String> removeNodes(String ipLb, int portLb, List<String> nodeList); | List<String> function(String ipLb, int portLb, List<String> nodeList); | /**
* Removes a list of nodes from given Load Balancer. This operation does not exectues atomically.
* If a node can't be deleted (because it doesn't exists in the Load Balancer), the operation
* tries to delete the rest of the given fqn's list.
*
* @param ipLb
* Load Balancer IP
* @param port... | Removes a list of nodes from given Load Balancer. This operation does not exectues atomically. If a node can't be deleted (because it doesn't exists in the Load Balancer), the operation tries to delete the rest of the given fqn's list | removeNodes | {
"repo_name": "StratusLab/claudia",
"path": "configurators/src/main/java/com/telefonica/claudia/configmanager/lb/LoadBalancerConfigurator.java",
"license": "agpl-3.0",
"size": 3808
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,762,680 |
@Override
public double predict(SVMExample sVMExample) {
int i;
int[] sv_index;
double[] sv_att;
double the_sum = examples.get_b() + kernel.calculate_K(sVMExample, sVMExample);
double alpha;
for (i = 0; i < examples_total; i++) {
alpha = alphas[i];
if (alpha != 0) {
sv_index = exampl... | double function(SVMExample sVMExample) { int i; int[] sv_index; double[] sv_att; double the_sum = examples.get_b() + kernel.calculate_K(sVMExample, sVMExample); double alpha; for (i = 0; i < examples_total; i++) { alpha = alphas[i]; if (alpha != 0) { sv_index = examples.index[i]; sv_att = examples.atts[i]; the_sum -= 2... | /**
* predict a single example
*/ | predict a single example | predict | {
"repo_name": "cm-is-dog/rapidminer-studio-core",
"path": "src/main/java/com/rapidminer/operator/clustering/clusterer/SVClusteringAlgorithm.java",
"license": "agpl-3.0",
"size": 32963
} | [
"com.rapidminer.operator.learner.functions.kernel.jmysvm.examples.SVMExample"
] | import com.rapidminer.operator.learner.functions.kernel.jmysvm.examples.SVMExample; | import com.rapidminer.operator.learner.functions.kernel.jmysvm.examples.*; | [
"com.rapidminer.operator"
] | com.rapidminer.operator; | 1,065,818 |
private static void createCombinedTrace(final TraceList newTrace, final List<TraceList> traces,
final Set<BreakpointAddress> addresses) {
final Set<BreakpointAddress> visitedAddresses = new LinkedHashSet<BreakpointAddress>();
for (final TraceList trace : traces) {
for (final ITraceEvent event : t... | static void function(final TraceList newTrace, final List<TraceList> traces, final Set<BreakpointAddress> addresses) { final Set<BreakpointAddress> visitedAddresses = new LinkedHashSet<BreakpointAddress>(); for (final TraceList trace : traces) { for (final ITraceEvent event : trace) { final BreakpointAddress address = ... | /**
* Fills a combined trace from the events of multiple input traces.
*
* @param newTrace The trace to fill.
* @param traces The input events.
* @param addresses The addresses of the events to put into the combined trace.
*/ | Fills a combined trace from the events of multiple input traces | createCombinedTrace | {
"repo_name": "chubbymaggie/binnavi",
"path": "src/main/java/com/google/security/zynamics/binnavi/Gui/Debug/EventLists/Implementations/CTraceCombinationFunctions.java",
"license": "apache-2.0",
"size": 11091
} | [
"com.google.security.zynamics.binnavi.debug.models.breakpoints.BreakpointAddress",
"com.google.security.zynamics.binnavi.debug.models.trace.TraceList",
"com.google.security.zynamics.binnavi.debug.models.trace.interfaces.ITraceEvent",
"java.util.LinkedHashSet",
"java.util.List",
"java.util.Set"
] | import com.google.security.zynamics.binnavi.debug.models.breakpoints.BreakpointAddress; import com.google.security.zynamics.binnavi.debug.models.trace.TraceList; import com.google.security.zynamics.binnavi.debug.models.trace.interfaces.ITraceEvent; import java.util.LinkedHashSet; import java.util.List; import java.util... | import com.google.security.zynamics.binnavi.debug.models.breakpoints.*; import com.google.security.zynamics.binnavi.debug.models.trace.*; import com.google.security.zynamics.binnavi.debug.models.trace.interfaces.*; import java.util.*; | [
"com.google.security",
"java.util"
] | com.google.security; java.util; | 769,900 |
protected void setGefSpaceId(HttpServletRequest req, String componentId) {
if (StringUtil.isDefined(componentId)) {
HttpSession session = req.getSession(true);
GraphicElementFactory gef = (GraphicElementFactory) session.getAttribute(
GraphicElementFactory.GE_FACTORY_SESSION_ATT);
LookH... | void function(HttpServletRequest req, String componentId) { if (StringUtil.isDefined(componentId)) { HttpSession session = req.getSession(true); GraphicElementFactory gef = (GraphicElementFactory) session.getAttribute( GraphicElementFactory.GE_FACTORY_SESSION_ATT); LookHelper helper = LookHelper.getLookHelper(session);... | /**
* Set GEF and look helper space identifier
*
* @param req current HttpServletRequest
* @param componentId the component identifier
*/ | Set GEF and look helper space identifier | setGefSpaceId | {
"repo_name": "auroreallibe/Silverpeas-Core",
"path": "core-web/src/main/java/org/silverpeas/core/web/util/servlet/GoTo.java",
"license": "agpl-3.0",
"size": 6515
} | [
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpSession",
"org.silverpeas.core.util.StringUtil",
"org.silverpeas.core.web.look.LookHelper",
"org.silverpeas.core.web.util.viewgenerator.html.GraphicElementFactory"
] | import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.silverpeas.core.util.StringUtil; import org.silverpeas.core.web.look.LookHelper; import org.silverpeas.core.web.util.viewgenerator.html.GraphicElementFactory; | import javax.servlet.http.*; import org.silverpeas.core.util.*; import org.silverpeas.core.web.look.*; import org.silverpeas.core.web.util.viewgenerator.html.*; | [
"javax.servlet",
"org.silverpeas.core"
] | javax.servlet; org.silverpeas.core; | 297,397 |
public void replaceChild(Node parent, Node newChild, Node oldChild) {
// if (sibling == null) {
// historyBrowser.addCommand(new AppendChildCommand(
// APPEND_CHILD_COMMAND, parent, child));
// } else {
// historyBrowser.addCommand(new InsertNodeBeforeCommand(
... | void function(Node parent, Node newChild, Node oldChild) { } public static class ReplaceChildCommand extends AbstractUndoableCommand { protected Node oldParent; protected Node oldNextSibling; protected Node newNextSibling; protected Node parent; protected Node child; public ReplaceChildCommand(String commandName, Node ... | /**
* Adds and executes the ReplaceChild command to historyBrowser.
*
* @param parent
* The parent node
* @param newChild
* Points where to be inserted
* @param oldChild
* The node to be appended
*/ | Adds and executes the ReplaceChild command to historyBrowser | replaceChild | {
"repo_name": "git-moss/Push2Display",
"path": "lib/batik-1.8/sources/org/apache/batik/apps/svgbrowser/HistoryBrowserInterface.java",
"license": "lgpl-3.0",
"size": 42497
} | [
"org.w3c.dom.Node"
] | import org.w3c.dom.Node; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 401,825 |
public void setEndDate(Date v)
{
if (!ObjectUtils.equals(this.endDate, v))
{
this.endDate = v;
setModified(true);
}
} | void function(Date v) { if (!ObjectUtils.equals(this.endDate, v)) { this.endDate = v; setModified(true); } } | /**
* Set the value of EndDate
*
* @param v new value
*/ | Set the value of EndDate | setEndDate | {
"repo_name": "trackplus/Genji",
"path": "src/main/java/com/aurel/track/persist/BaseTBaseLine.java",
"license": "gpl-3.0",
"size": 33977
} | [
"java.util.Date",
"org.apache.commons.lang.ObjectUtils"
] | import java.util.Date; import org.apache.commons.lang.ObjectUtils; | import java.util.*; import org.apache.commons.lang.*; | [
"java.util",
"org.apache.commons"
] | java.util; org.apache.commons; | 2,057,047 |
public void testCopyFile() throws IOException {
File source = null;
File destination = null;
FileOutputStream fos = null;
FileInputStream fis = null;
try {
try {
source = File.createTempFile("temp", ".txt");
destination = Fi... | void function() throws IOException { File source = null; File destination = null; FileOutputStream fos = null; FileInputStream fis = null; try { try { source = File.createTempFile("temp", ".txt"); destination = File.createTempFile("temp", ".txt"); fos = new FileOutputStream(source); fis = new FileInputStream(destinatio... | /**
* Assumes the buffer size inside tagUtility is 1024 bytes
*/ | Assumes the buffer size inside tagUtility is 1024 bytes | testCopyFile | {
"repo_name": "ibnoe/steganography-dalam-file-music-mp3",
"path": "stegaMP3/jid3lib-0.5.4/jid3lib-0.5.4/test/org/farng/mp3/TagUtilityTest.java",
"license": "gpl-2.0",
"size": 38433
} | [
"java.io.File",
"java.io.FileInputStream",
"java.io.FileOutputStream",
"java.io.IOException"
] | import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,205,196 |
public final void setTextColor(@ColorInt final int color) {
setTextColor(ColorStateList.valueOf(color));
} | final void function(@ColorInt final int color) { setTextColor(ColorStateList.valueOf(color)); } | /**
* Sets the text color of the preference's title.
*
* @param color
* The color, which should be set, as an {@link Integer} value
*/ | Sets the text color of the preference's title | setTextColor | {
"repo_name": "michael-rapp/AndroidMaterialPreferences",
"path": "library/src/main/java/de/mrapp/android/preference/ActionPreference.java",
"license": "apache-2.0",
"size": 10346
} | [
"android.content.res.ColorStateList",
"androidx.annotation.ColorInt"
] | import android.content.res.ColorStateList; import androidx.annotation.ColorInt; | import android.content.res.*; import androidx.annotation.*; | [
"android.content",
"androidx.annotation"
] | android.content; androidx.annotation; | 60,229 |
public static Arc2D computeArc(double x0, double y0, double rx, double ry,
double angle, boolean largeArcFlag, boolean sweepFlag, double x,
double y)
{
//
// Elliptical arc implementation based on the SVG specification notes
//
// Compute the half distance between the current and the final point
do... | static Arc2D function(double x0, double y0, double rx, double ry, double angle, boolean largeArcFlag, boolean sweepFlag, double x, double y) { double dx2 = (x0 - x) / 2.0; double dy2 = (y0 - y) / 2.0; angle = Math.toRadians(angle % 360.0); double cosAngle = Math.cos(angle); double sinAngle = Math.sin(angle); double y1 ... | /**
* This constructs an unrotated Arc2D from the SVG specification of an
* Elliptical arc. To get the final arc you need to apply a rotation
* transform such as:
*
* AffineTransform.getRotateInstance
* (angle, arc.getX()+arc.getWidth()/2, arc.getY()+arc.getHeight()/2);
*/ | This constructs an unrotated Arc2D from the SVG specification of an Elliptical arc. To get the final arc you need to apply a rotation transform such as: AffineTransform.getRotateInstance (angle, arc.getX()+arc.getWidth()/2, arc.getY()+arc.getHeight()/2) | computeArc | {
"repo_name": "a3rd/jgraphx",
"path": "src/com/mxgraph/util/svg/ExtendedGeneralPath.java",
"license": "bsd-3-clause",
"size": 19899
} | [
"java.awt.geom.Arc2D"
] | import java.awt.geom.Arc2D; | import java.awt.geom.*; | [
"java.awt"
] | java.awt; | 224,806 |
@Override
public void generateBeanConstructor(JavaWriter out,
HashMap<String,Object> map)
throws IOException
{
} | void function(JavaWriter out, HashMap<String,Object> map) throws IOException { } | /**
* Generates bean instance interception
*/ | Generates bean instance interception | generateBeanConstructor | {
"repo_name": "CleverCloud/Quercus",
"path": "resin/src/main/java/com/caucho/config/gen/NullGenerator.java",
"license": "gpl-2.0",
"size": 5373
} | [
"com.caucho.java.JavaWriter",
"java.io.IOException",
"java.util.HashMap"
] | import com.caucho.java.JavaWriter; import java.io.IOException; import java.util.HashMap; | import com.caucho.java.*; import java.io.*; import java.util.*; | [
"com.caucho.java",
"java.io",
"java.util"
] | com.caucho.java; java.io; java.util; | 2,778,081 |
public List<com.cellarhq.generated.tables.pojos.AccountOauth> fetchByVersion(Integer... values) {
return fetch(AccountOauth.ACCOUNT_OAUTH.VERSION, values);
} | List<com.cellarhq.generated.tables.pojos.AccountOauth> function(Integer... values) { return fetch(AccountOauth.ACCOUNT_OAUTH.VERSION, values); } | /**
* Fetch records that have <code>version IN (values)</code>
*/ | Fetch records that have <code>version IN (values)</code> | fetchByVersion | {
"repo_name": "CellarHQ/cellarhq.com",
"path": "model/src/main/generated/com/cellarhq/generated/tables/daos/AccountOauthDao.java",
"license": "mit",
"size": 5859
} | [
"com.cellarhq.generated.tables.AccountOauth",
"java.util.List"
] | import com.cellarhq.generated.tables.AccountOauth; import java.util.List; | import com.cellarhq.generated.tables.*; import java.util.*; | [
"com.cellarhq.generated",
"java.util"
] | com.cellarhq.generated; java.util; | 1,743,565 |
FsVolumeReference getNextTransientVolume(long blockSize) throws IOException {
// Get a snapshot of currently available volumes.
final List<FsVolumeImpl> curVolumes = getVolumes();
final List<FsVolumeImpl> list = new ArrayList<>(curVolumes.size());
for(FsVolumeImpl v : curVolumes) {
if (v.isTrans... | FsVolumeReference getNextTransientVolume(long blockSize) throws IOException { final List<FsVolumeImpl> curVolumes = getVolumes(); final List<FsVolumeImpl> list = new ArrayList<>(curVolumes.size()); for(FsVolumeImpl v : curVolumes) { if (v.isTransientStorage()) { list.add(v); } } return chooseVolume(list, blockSize, nul... | /**
* Get next volume.
*
* @param blockSize free space needed on the volume
* @return next volume to store the block in.
*/ | Get next volume | getNextTransientVolume | {
"repo_name": "GeLiXin/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsVolumeList.java",
"license": "apache-2.0",
"size": 15891
} | [
"java.io.IOException",
"java.util.ArrayList",
"java.util.List",
"org.apache.hadoop.hdfs.server.datanode.fsdataset.FsVolumeReference"
] | import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.hadoop.hdfs.server.datanode.fsdataset.FsVolumeReference; | import java.io.*; import java.util.*; import org.apache.hadoop.hdfs.server.datanode.fsdataset.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 1,169,041 |
@Override
public User fetchUserByFacebookId(long companyId, long facebookId)
throws SystemException {
return userPersistence.fetchByC_FID(companyId, facebookId);
} | User function(long companyId, long facebookId) throws SystemException { return userPersistence.fetchByC_FID(companyId, facebookId); } | /**
* Returns the user with the Facebook ID.
*
* @param companyId the primary key of the user's company
* @param facebookId the user's Facebook ID
* @return the user with the Facebook ID, or <code>null</code> if a user
* with the Facebook ID could not be found
* @throws SystemException if a syst... | Returns the user with the Facebook ID | fetchUserByFacebookId | {
"repo_name": "jtydhr88/blade.tools",
"path": "blade.migrate.liferay70/projects/filetests/ContactNameExceptionImport.java",
"license": "apache-2.0",
"size": 193517
} | [
"com.liferay.portal.kernel.exception.SystemException",
"com.liferay.portal.model.User"
] | import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.model.User; | import com.liferay.portal.kernel.exception.*; import com.liferay.portal.model.*; | [
"com.liferay.portal"
] | com.liferay.portal; | 1,568,549 |
public DeploymentInfo addAuthenticationMechanism(final String name, final AuthenticationMechanismFactory factory) {
authenticationMechanisms.put(name.toUpperCase(Locale.US), factory);
return this;
} | DeploymentInfo function(final String name, final AuthenticationMechanismFactory factory) { authenticationMechanisms.put(name.toUpperCase(Locale.US), factory); return this; } | /**
* Adds an authentication mechanism. The name is case insenstive, and will be converted to uppercase internally.
*
* @param name The name
* @param factory The factory
* @return
*/ | Adds an authentication mechanism. The name is case insenstive, and will be converted to uppercase internally | addAuthenticationMechanism | {
"repo_name": "emag/codereading-undertow",
"path": "servlet/src/main/java/io/undertow/servlet/api/DeploymentInfo.java",
"license": "apache-2.0",
"size": 40211
} | [
"io.undertow.security.api.AuthenticationMechanismFactory",
"java.util.Locale"
] | import io.undertow.security.api.AuthenticationMechanismFactory; import java.util.Locale; | import io.undertow.security.api.*; import java.util.*; | [
"io.undertow.security",
"java.util"
] | io.undertow.security; java.util; | 410,476 |
@Override
public final ServiceResponse deserialize(final SOAPMessage message) {
return this.deserialize(message, "*");
} | final ServiceResponse function(final SOAPMessage message) { return this.deserialize(message, "*"); } | /**
* Deserializes the given SOAPMessage object to ServiceResponse object.
*
* @param message SOAP message to be deserialized
* @return ServiceResponse object that represents the given SOAPMessage
* object; if the operation fails, null is returned
*/ | Deserializes the given SOAPMessage object to ServiceResponse object | deserialize | {
"repo_name": "petkivim/xrd4j",
"path": "src/client/src/main/java/com/pkrete/xrd4j/client/deserializer/AbstractResponseDeserializer.java",
"license": "mit",
"size": 15748
} | [
"com.pkrete.xrd4j.common.message.ServiceResponse",
"javax.xml.soap.SOAPMessage"
] | import com.pkrete.xrd4j.common.message.ServiceResponse; import javax.xml.soap.SOAPMessage; | import com.pkrete.xrd4j.common.message.*; import javax.xml.soap.*; | [
"com.pkrete.xrd4j",
"javax.xml"
] | com.pkrete.xrd4j; javax.xml; | 1,873,571 |
public void setMessageHeaders(Map<String, String> metadata); | void function(Map<String, String> metadata); | /**
* Overwrite all the headers.
* <p>
* Clear and overwrite all the headers
* </p>
*
* @param metadata
*/ | Overwrite all the headers. Clear and overwrite all the headers | setMessageHeaders | {
"repo_name": "adaptris/interlok",
"path": "interlok-common/src/main/java/com/adaptris/interlok/types/InterlokMessage.java",
"license": "apache-2.0",
"size": 7627
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 814,905 |
public Object invoke(Object target, Method method, Object[] arguments)
throws Throwable
{
Class<?> returnType = method.getReturnType();
Object obj = null;
if (returnType.isInterface())
{
obj = createProxy(new Class[] { returnType });
}
else
{
try
{
... | Object function(Object target, Method method, Object[] arguments) throws Throwable { Class<?> returnType = method.getReturnType(); Object obj = null; if (returnType.isInterface()) { obj = createProxy(new Class[] { returnType }); } else { try { obj = returnType.newInstance(); } catch (Exception e) { } } return obj; } | /**
* Invoked when no ReturnType or MethodCall Handlers are defined.
*
* @param target The target object that was invoked.
* @param method The method that was invoked.
* @param arguments The arguments that were passed.
* @return A proxy or null.
* @throws Throwable
*/ | Invoked when no ReturnType or MethodCall Handlers are defined | invoke | {
"repo_name": "WouterBanckenACA/aries",
"path": "testsupport/testsupport-unit/src/main/java/org/apache/aries/unittest/mocks/DefaultInvocationHandler.java",
"license": "apache-2.0",
"size": 3682
} | [
"java.lang.reflect.Method"
] | import java.lang.reflect.Method; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 277,131 |
public void addModelEventListener(Object listener,
Object modelelement,
String eventName) {
// we just return if the modelelement to add is not a NSUML class.
// we don't support other event listeners yet.
if (modelelement == null || !(modelelement instanceof MBase)) {
... | void function(Object listener, Object modelelement, String eventName) { if (modelelement == null !(modelelement instanceof MBase)) { return; } if (listener == null !(listener instanceof MElementListener) eventName == null) { throw new IllegalArgumentException(); } EventKey[] keys = definition.getEventTypes(modelelement... | /**
* Convenience method to add a listener that only listens to one specific
* event.<p>
*
* @param listener The listener to add.
* @param modelelement The modelelement the listener should be added to.
* @param eventName The eventname the listener should listen to.
*/ | Convenience method to add a listener that only listens to one specific event | addModelEventListener | {
"repo_name": "carvalhomb/tsmells",
"path": "sample/argouml/argouml/org/argouml/model/uml/UmlModelEventPump.java",
"license": "gpl-2.0",
"size": 53240
} | [
"ru.novosoft.uml.MBase",
"ru.novosoft.uml.MElementListener"
] | import ru.novosoft.uml.MBase; import ru.novosoft.uml.MElementListener; | import ru.novosoft.uml.*; | [
"ru.novosoft.uml"
] | ru.novosoft.uml; | 874,313 |
@Hook(Pointcut.CLIENT_REQUEST)
void interceptRequest(IHttpRequest theRequest);
| @Hook(Pointcut.CLIENT_REQUEST) void interceptRequest(IHttpRequest theRequest); | /**
* Fired by the client just before invoking the HTTP client request
*/ | Fired by the client just before invoking the HTTP client request | interceptRequest | {
"repo_name": "jamesagnew/hapi-fhir",
"path": "hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/client/api/IClientInterceptor.java",
"license": "apache-2.0",
"size": 1642
} | [
"ca.uhn.fhir.interceptor.api.Hook",
"ca.uhn.fhir.interceptor.api.Pointcut"
] | import ca.uhn.fhir.interceptor.api.Hook; import ca.uhn.fhir.interceptor.api.Pointcut; | import ca.uhn.fhir.interceptor.api.*; | [
"ca.uhn.fhir"
] | ca.uhn.fhir; | 1,437,518 |
@SuppressWarnings("unchecked")
@Override
public boolean importData(JComponent c, Transferable t) {
final Object o;
final List<File> fileList;
final List<SynthDef> collDefs;
File f;
SynthDef[] defs;
try {
if (t.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
o = t.getTransfer... | @SuppressWarnings(STR) boolean function(JComponent c, Transferable t) { final Object o; final List<File> fileList; final List<SynthDef> collDefs; File f; SynthDef[] defs; try { if (t.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) { o = t.getTransferData(DataFlavor.javaFileListFlavor); if (o instanceof List) { fi... | /**
* Overridden to import a Pathname if it is available.
*/ | Overridden to import a Pathname if it is available | importData | {
"repo_name": "sudosci/JavaCollider",
"path": "src/test/java/de/sciss/jcollider/test/Demo.java",
"license": "lgpl-2.1",
"size": 17420
} | [
"de.sciss.jcollider.JavaCollider",
"de.sciss.jcollider.SynthDef",
"java.awt.datatransfer.DataFlavor",
"java.awt.datatransfer.Transferable",
"java.awt.datatransfer.UnsupportedFlavorException",
"java.io.File",
"java.io.IOException",
"java.util.ArrayList",
"java.util.Collections",
"java.util.List",
... | import de.sciss.jcollider.JavaCollider; import de.sciss.jcollider.SynthDef; import java.awt.datatransfer.DataFlavor; import java.awt.datatransfer.Transferable; import java.awt.datatransfer.UnsupportedFlavorException; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Collectio... | import de.sciss.jcollider.*; import java.awt.datatransfer.*; import java.io.*; import java.util.*; import javax.swing.*; | [
"de.sciss.jcollider",
"java.awt",
"java.io",
"java.util",
"javax.swing"
] | de.sciss.jcollider; java.awt; java.io; java.util; javax.swing; | 2,048,212 |
private static int[] getPackagePssAndPrivateDirty(Context context, String packageName) {
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.N_MR1) return null;
ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
List<ActivityManager.RunningServiceInfo> se... | static int[] function(Context context, String packageName) { if (Build.VERSION.SDK_INT > Build.VERSION_CODES.N_MR1) return null; ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); List<ActivityManager.RunningServiceInfo> services = am.getRunningServices(1000); if (services == nul... | /**
* Sums all the memory usage of a package, and returns (PSS, Private Dirty).
*
* Only works for packages where a service is exported by each process, which is the case for
* Chrome. Also, doesn't work on O and above, as
* {@link ActivityManager#getRunningServices(int)}} is restricted.
*... | Sums all the memory usage of a package, and returns (PSS, Private Dirty). Only works for packages where a service is exported by each process, which is the case for Chrome. Also, doesn't work on O and above, as <code>ActivityManager#getRunningServices(int)</code>} is restricted | getPackagePssAndPrivateDirty | {
"repo_name": "scheib/chromium",
"path": "tools/android/customtabs_benchmark/java/src/org/chromium/customtabs/test/MainActivity.java",
"license": "bsd-3-clause",
"size": 31620
} | [
"android.app.ActivityManager",
"android.content.Context",
"android.os.Build",
"android.os.Debug",
"java.util.HashSet",
"java.util.List",
"java.util.Set"
] | import android.app.ActivityManager; import android.content.Context; import android.os.Build; import android.os.Debug; import java.util.HashSet; import java.util.List; import java.util.Set; | import android.app.*; import android.content.*; import android.os.*; import java.util.*; | [
"android.app",
"android.content",
"android.os",
"java.util"
] | android.app; android.content; android.os; java.util; | 899,779 |
private void packNoSortFieldsToBytes(Object[] row, ByteBuffer rowBuffer) {
// convert dict & no-sort
for (int idx = 0; idx < this.dictNoSortDimCnt; idx++) {
rowBuffer.putInt((int) row[this.dictNoSortDimIdx[idx]]);
}
// convert no-dict & no-sort
for (int idx = 0; idx < this.noDictNoSortDimCnt... | void function(Object[] row, ByteBuffer rowBuffer) { for (int idx = 0; idx < this.dictNoSortDimCnt; idx++) { rowBuffer.putInt((int) row[this.dictNoSortDimIdx[idx]]); } for (int idx = 0; idx < this.noDictNoSortDimCnt; idx++) { byte[] bytes = (byte[]) row[this.noDictNoSortDimIdx[idx]]; rowBuffer.putShort((short) bytes.len... | /**
* Pack to no-sort fields to byte array
*
* @param row raw row
* @param rowBuffer byte array backend buffer
*/ | Pack to no-sort fields to byte array | packNoSortFieldsToBytes | {
"repo_name": "jatin9896/incubator-carbondata",
"path": "processing/src/main/java/org/apache/carbondata/processing/loading/sort/SortStepRowHandler.java",
"license": "apache-2.0",
"size": 18462
} | [
"java.math.BigDecimal",
"java.nio.ByteBuffer",
"org.apache.carbondata.core.metadata.datatype.DataType",
"org.apache.carbondata.core.metadata.datatype.DataTypes",
"org.apache.carbondata.core.util.DataTypeUtil"
] | import java.math.BigDecimal; import java.nio.ByteBuffer; import org.apache.carbondata.core.metadata.datatype.DataType; import org.apache.carbondata.core.metadata.datatype.DataTypes; import org.apache.carbondata.core.util.DataTypeUtil; | import java.math.*; import java.nio.*; import org.apache.carbondata.core.metadata.datatype.*; import org.apache.carbondata.core.util.*; | [
"java.math",
"java.nio",
"org.apache.carbondata"
] | java.math; java.nio; org.apache.carbondata; | 1,783,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.