method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public static void filterLine(File self, Writer writer, Closure closure) throws IOException { filterLine(newReader(self), writer, closure); }
static void function(File self, Writer writer, Closure closure) throws IOException { filterLine(newReader(self), writer, closure); }
/** * Filter the lines from this File, and write them to the given writer based * on the given closure predicate. * * @param self a File * @param writer a writer destination to write filtered lines to * @param closure a closure which takes each line as a parameter and returns * ...
Filter the lines from this File, and write them to the given writer based on the given closure predicate
filterLine
{ "repo_name": "xien777/yajsw", "path": "yajsw/wrapper/src/main/java/org/codehaus/groovy/runtime/DefaultGroovyMethods.java", "license": "lgpl-2.1", "size": 704150 }
[ "groovy.lang.Closure", "java.io.File", "java.io.IOException", "java.io.Writer" ]
import groovy.lang.Closure; import java.io.File; import java.io.IOException; import java.io.Writer;
import groovy.lang.*; import java.io.*;
[ "groovy.lang", "java.io" ]
groovy.lang; java.io;
2,416,186
Widget loadGeodesk();
Widget loadGeodesk();
/** * This method acts as the entrypoint for a deskmanager user application. When all initialization is done, this * method gets called. The returing layout is the main contentpane for the user application. * * Be sure that setGeodeskId() and setClientApplicationInfo() are set. */
This method acts as the entrypoint for a deskmanager user application. When all initialization is done, this method gets called. The returing layout is the main contentpane for the user application. Be sure that setGeodeskId() and setClientApplicationInfo() are set
loadGeodesk
{ "repo_name": "geomajas/geomajas-project-deskmanager", "path": "gwt/src/main/java/org/geomajas/plugin/deskmanager/client/gwt/common/GwtUserApplication.java", "license": "agpl-3.0", "size": 2398 }
[ "com.google.gwt.user.client.ui.Widget" ]
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.*;
[ "com.google.gwt" ]
com.google.gwt;
2,516,645
EntitiesFactory getEntitiesFactory(); interface Literals { EClass MODEL = eINSTANCE.getModel(); EReference MODEL__IMPORT_SECTION = eINSTANCE.getModel_ImportSection(); EReference MODEL__ENTITIES = eINSTANCE.getModel_Entities(); EClass ENTITY = eINSTANCE.getEntity(); ...
EntitiesFactory getEntitiesFactory(); interface Literals { EClass MODEL = eINSTANCE.getModel(); EReference MODEL__IMPORT_SECTION = eINSTANCE.getModel_ImportSection(); EReference MODEL__ENTITIES = eINSTANCE.getModel_Entities(); EClass ENTITY = eINSTANCE.getEntity(); EAttribute ENTITY__NAME = eINSTANCE.getEntity_Name(); ...
/** * Returns the factory that creates the instances of the model. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the factory that creates the instances of the model. * @generated */
Returns the factory that creates the instances of the model.
getEntitiesFactory
{ "repo_name": "LorenzoBettini/packtpub-xtext-book-examples", "path": "org.example.xbase.entities/src-gen/org/example/xbase/entities/entities/EntitiesPackage.java", "license": "epl-1.0", "size": 18910 }
[ "org.eclipse.emf.ecore.EAttribute", "org.eclipse.emf.ecore.EClass", "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,887,044
private static void changeScene(Scene scene, Transition transition) { final ViewGroup sceneRoot = scene.getSceneRoot(); Transition transitionClone = transition.clone(); transitionClone.setSceneRoot(sceneRoot); Scene oldScene = Scene.getCurrentScene(sceneRoot); if (oldScene...
static void function(Scene scene, Transition transition) { final ViewGroup sceneRoot = scene.getSceneRoot(); Transition transitionClone = transition.clone(); transitionClone.setSceneRoot(sceneRoot); Scene oldScene = Scene.getCurrentScene(sceneRoot); if (oldScene != null && oldScene.isCreatedFromLayoutResource()) { tran...
/** * This is where all of the work of a transition/scene-change is * orchestrated. This method captures the start values for the given * transition, exits the current Scene, enters the new scene, captures * the end values for the transition, and finally plays the * resulting values-populated t...
This is where all of the work of a transition/scene-change is orchestrated. This method captures the start values for the given transition, exits the current Scene, enters the new scene, captures the end values for the transition, and finally plays the resulting values-populated transition
changeScene
{ "repo_name": "JuudeDemos/android-sdk-20", "path": "src/android/transition/TransitionManager.java", "license": "apache-2.0", "size": 17633 }
[ "android.view.ViewGroup" ]
import android.view.ViewGroup;
import android.view.*;
[ "android.view" ]
android.view;
2,389,783
public Object getColuna(String col) { Object retorno = null; try { retorno = registros.getObject(col); } catch (SQLException e) { System.out.println(e.getMessage()); } return retorno; }
Object function(String col) { Object retorno = null; try { retorno = registros.getObject(col); } catch (SQLException e) { System.out.println(e.getMessage()); } return retorno; }
/** * Retorna conteudo da coluna do registro atual * @param String nome da coluna * @return object conteudo do campo */
Retorna conteudo da coluna do registro atual
getColuna
{ "repo_name": "lisangelo/codigocerto", "path": "BancoDados/src/br/com/codigocerto/bancodados/TabelaBD.java", "license": "bsd-2-clause", "size": 5175 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
257,821
public Packet getPacket(String instruction) { for (InstructionType instructionType : InstructionType.values()) { Matcher matcher = Pattern.compile(instructionType.getRegex()).matcher(instruction); if(matcher.find()) return new Packet(instructionType, matcher); } return null; }
Packet function(String instruction) { for (InstructionType instructionType : InstructionType.values()) { Matcher matcher = Pattern.compile(instructionType.getRegex()).matcher(instruction); if(matcher.find()) return new Packet(instructionType, matcher); } return null; }
/** * Get packet which contain command name and matcher * @param instruction * @return */
Get packet which contain command name and matcher
getPacket
{ "repo_name": "UnknownStudio/Codeic", "path": "CodeicMod/src/main/java/me/robertyang/codeic/logic/BuiltInData.java", "license": "mpl-2.0", "size": 1857 }
[ "java.util.regex.Matcher", "java.util.regex.Pattern" ]
import java.util.regex.Matcher; import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
2,820,039
public void drawObjectBoxes (Player player, Iterator<Object> it) { while (it.hasNext()) { Object bone = it.next(); this.drawBox(player.getBox(bone)); } }
void function (Player player, Iterator<Object> it) { while (it.hasNext()) { Object bone = it.next(); this.drawBox(player.getBox(bone)); } }
/** * Draws the boxes of sprites and boxes of the given player based on the given iterator. * @param player player the player to draw the object boxes of * @param it the iterator iterating over the object to draw */
Draws the boxes of sprites and boxes of the given player based on the given iterator
drawObjectBoxes
{ "repo_name": "piotr-j/VisEditor", "path": "plugins/vis-runtime-spriter/src/main/java/com/brashmonkey/spriter/Drawer.java", "license": "apache-2.0", "size": 9789 }
[ "com.brashmonkey.spriter.Timeline", "java.util.Iterator" ]
import com.brashmonkey.spriter.Timeline; import java.util.Iterator;
import com.brashmonkey.spriter.*; import java.util.*;
[ "com.brashmonkey.spriter", "java.util" ]
com.brashmonkey.spriter; java.util;
2,343,257
@SuppressWarnings("unchecked") protected void rehash( final int newN ) { int i = 0, pos; final boolean used[] = this.used; K k; final K key[] = this.key; final int value[] = this.value; final int newMask = newN - 1; final K newKey[] = (K[]) new Object[ newN ]; final int newValue[] = new int[newN]; f...
@SuppressWarnings(STR) void function( final int newN ) { int i = 0, pos; final boolean used[] = this.used; K k; final K key[] = this.key; final int value[] = this.value; final int newMask = newN - 1; final K newKey[] = (K[]) new Object[ newN ]; final int newValue[] = new int[newN]; final boolean newUsed[] = new boolean...
/** Resizes the map. * * <P>This method implements the basic rehashing strategy, and may be * overriden by subclasses implementing different rehashing strategies (e.g., * disk-based rehashing). However, you should not override this method * unless you understand the internal workings of this class. * * @p...
Resizes the map. This method implements the basic rehashing strategy, and may be overriden by subclasses implementing different rehashing strategies (e.g., disk-based rehashing). However, you should not override this method unless you understand the internal workings of this class
rehash
{ "repo_name": "karussell/fastutil", "path": "src/it/unimi/dsi/fastutil/objects/Object2IntOpenCustomHashMap.java", "license": "apache-2.0", "size": 30271 }
[ "it.unimi.dsi.fastutil.HashCommon" ]
import it.unimi.dsi.fastutil.HashCommon;
import it.unimi.dsi.fastutil.*;
[ "it.unimi.dsi" ]
it.unimi.dsi;
1,030,826
public static Date evalForDate(String script, Map<String, Object> objects) { String scriptForDate = "(" + script + ").getTime()"; long mili = (long) (double) eval(scriptForDate, objects); return new Date(mili); }
static Date function(String script, Map<String, Object> objects) { String scriptForDate = "(" + script + STR; long mili = (long) (double) eval(scriptForDate, objects); return new Date(mili); }
/** * Avalia o valor do script com o contexto de objetos java passados no map e * retora uma data. * * @param script script a ser executado * @param objects objetos java a serem inseridos no contexto javascript * @return valor resultante */
Avalia o valor do script com o contexto de objetos java passados no map e retora uma data
evalForDate
{ "repo_name": "GUMGA/framework-backend", "path": "gumga-core/src/main/java/gumga/framework/core/JavaScriptEngine.java", "license": "gpl-3.0", "size": 1807 }
[ "java.util.Date", "java.util.Map" ]
import java.util.Date; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
658,895
public static Class<?> forName(final String className) { Vector<ClassLoader> allClassLoaders = new Vector<>(); ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); if (contextClassLoader != null) { allClassLoaders.add(contextClassLoader); } if (m_classLoaders != n...
static Class<?> function(final String className) { Vector<ClassLoader> allClassLoaders = new Vector<>(); ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader(); if (contextClassLoader != null) { allClassLoaders.add(contextClassLoader); } if (m_classLoaders != null) { allClassLoaders.addAll(m_cl...
/** * Tries to load the specified class using the context ClassLoader or if none, * than from the default ClassLoader. This method differs from the standard * class loading methods in that it does not throw an exception if the class * is not found but returns null instead. * * @param className the cla...
Tries to load the specified class using the context ClassLoader or if none, than from the default ClassLoader. This method differs from the standard class loading methods in that it does not throw an exception if the class is not found but returns null instead
forName
{ "repo_name": "aledsage/testng", "path": "src/main/java/org/testng/internal/ClassHelper.java", "license": "apache-2.0", "size": 20782 }
[ "java.util.Vector" ]
import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
844,180
@Override public void disableBroker() throws PulsarServerException { if (StringUtils.isNotEmpty(brokerZnodePath)) { try { brokerDataLock.release().join(); } catch (CompletionException e) { if (e.getCause() instanceof NotFoundException) { ...
void function() throws PulsarServerException { if (StringUtils.isNotEmpty(brokerZnodePath)) { try { brokerDataLock.release().join(); } catch (CompletionException e) { if (e.getCause() instanceof NotFoundException) { throw new PulsarServerException.NotFoundException(MetadataStoreException.unwrap(e)); } else { throw new ...
/** * As any broker, disable the broker this manager is running on. * * @throws PulsarServerException * If there's a failure when disabling broker on metadata store. */
As any broker, disable the broker this manager is running on
disableBroker
{ "repo_name": "yahoo/pulsar", "path": "pulsar-broker/src/main/java/org/apache/pulsar/broker/loadbalance/impl/ModularLoadManagerImpl.java", "license": "apache-2.0", "size": 50838 }
[ "java.util.concurrent.CompletionException", "org.apache.commons.lang3.StringUtils", "org.apache.pulsar.broker.PulsarServerException", "org.apache.pulsar.metadata.api.MetadataStoreException" ]
import java.util.concurrent.CompletionException; import org.apache.commons.lang3.StringUtils; import org.apache.pulsar.broker.PulsarServerException; import org.apache.pulsar.metadata.api.MetadataStoreException;
import java.util.concurrent.*; import org.apache.commons.lang3.*; import org.apache.pulsar.broker.*; import org.apache.pulsar.metadata.api.*;
[ "java.util", "org.apache.commons", "org.apache.pulsar" ]
java.util; org.apache.commons; org.apache.pulsar;
1,742,053
@Deprecated public static CronetEngine createContext(Builder builder) { CronetEngine cronetEngine = null; if (builder.getUserAgent() == null) { builder.setUserAgent(builder.getDefaultUserAgent()); } if (!builder.legacyMode()) { cronetEngine = createCronetE...
static CronetEngine function(Builder builder) { CronetEngine cronetEngine = null; if (builder.getUserAgent() == null) { builder.setUserAgent(builder.getDefaultUserAgent()); } if (!builder.legacyMode()) { cronetEngine = createCronetEngine(builder); } if (cronetEngine == null) { cronetEngine = new JavaCronetEngine(builde...
/** * Creates a {@link CronetEngine} with the given {@link Builder}. * * @param builder builder to used for creating the CronetEngine instance. * @return the created CronetEngine instance. * @deprecated Use {@link CronetEngine.Builder}. */
Creates a <code>CronetEngine</code> with the given <code>Builder</code>
createContext
{ "repo_name": "ds-hwang/chromium-crosswalk", "path": "components/cronet/android/api/src/org/chromium/net/CronetEngine.java", "license": "bsd-3-clause", "size": 47441 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
2,415,626
public TimelineSummaryData getData(DataSource dataSource, int recentDaysNum) throws SleuthkitCaseProviderException, TskCoreException { return timelineSummary.getTimelineSummaryData(dataSource, recentDaysNum); }
TimelineSummaryData function(DataSource dataSource, int recentDaysNum) throws SleuthkitCaseProviderException, TskCoreException { return timelineSummary.getTimelineSummaryData(dataSource, recentDaysNum); }
/** * Retrieves timeline summary data. * * @param dataSource The data source for which timeline data will be * retrieved. * @param recentDaysNum The maximum number of most recent days' activity to * include. * * @return The retrieved d...
Retrieves timeline summary data
getData
{ "repo_name": "sleuthkit/autopsy", "path": "Core/src/org/sleuthkit/autopsy/datasourcesummary/ui/TimelineSummaryGetter.java", "license": "apache-2.0", "size": 3157 }
[ "org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider", "org.sleuthkit.autopsy.datasourcesummary.datamodel.TimelineSummary", "org.sleuthkit.datamodel.DataSource", "org.sleuthkit.datamodel.TskCoreException" ]
import org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider; import org.sleuthkit.autopsy.datasourcesummary.datamodel.TimelineSummary; import org.sleuthkit.datamodel.DataSource; import org.sleuthkit.datamodel.TskCoreException;
import org.sleuthkit.autopsy.datasourcesummary.datamodel.*; import org.sleuthkit.datamodel.*;
[ "org.sleuthkit.autopsy", "org.sleuthkit.datamodel" ]
org.sleuthkit.autopsy; org.sleuthkit.datamodel;
1,568,092
boolean removeViewIfHidden(View view) { final int index = mCallback.indexOfChild(view); if (index == -1) { if (unhideViewInternal(view) && DEBUG) { throw new IllegalStateException("view is in hidden list but not in view group"); } return true; ...
boolean removeViewIfHidden(View view) { final int index = mCallback.indexOfChild(view); if (index == -1) { if (unhideViewInternal(view) && DEBUG) { throw new IllegalStateException(STR); } return true; } if (mBucket.get(index)) { mBucket.remove(index); if (!unhideViewInternal(view) && DEBUG) { throw new IllegalStateExce...
/** * Removes a view from the ViewGroup if it is hidden. * * @param view The view to remove. * @return True if the View is found and it is hidden. False otherwise. */
Removes a view from the ViewGroup if it is hidden
removeViewIfHidden
{ "repo_name": "noobyang/AndroidStudy", "path": "lib/src/main/java/com/lee/lib/support/v7/widget/ChildHelper.java", "license": "apache-2.0", "size": 15910 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,168,441
public String sprintf(String x) throws CmsIllegalArgumentException { Enumeration<ConversionSpecification> e = m_vFmt.elements(); ConversionSpecification cs = null; char c = 0; StringBuffer sb = new StringBuffer(); while (e.hasMoreElements()) { cs = e.nextElement(...
String function(String x) throws CmsIllegalArgumentException { Enumeration<ConversionSpecification> e = m_vFmt.elements(); ConversionSpecification cs = null; char c = 0; StringBuffer sb = new StringBuffer(); while (e.hasMoreElements()) { cs = e.nextElement(); c = cs.getConversionCharacter(); if (c == '\0') { sb.append(...
/** * Format a String. * @param x The String to format. * @return The formatted String. * @exception CmsIllegalArgumentException if the * conversion character is neither s nor S. */
Format a String
sprintf
{ "repo_name": "it-tavis/opencms-core", "path": "src/org/opencms/util/PrintfFormat.java", "license": "lgpl-2.1", "size": 131619 }
[ "java.util.Enumeration", "org.opencms.main.CmsIllegalArgumentException" ]
import java.util.Enumeration; import org.opencms.main.CmsIllegalArgumentException;
import java.util.*; import org.opencms.main.*;
[ "java.util", "org.opencms.main" ]
java.util; org.opencms.main;
1,014,934
public boolean setPlayerPermissionProperty(UserIdent ident, String permissionNode, String value) { if (ident != null && !APIRegistry.getFEEventBus().post(new PermissionEvent.User.ModifyPermission(getServerZone(), ident, this, permissionNode, value))) { getServerZone().registerPlayer(...
boolean function(UserIdent ident, String permissionNode, String value) { if (ident != null && !APIRegistry.getFEEventBus().post(new PermissionEvent.User.ModifyPermission(getServerZone(), ident, this, permissionNode, value))) { getServerZone().registerPlayer(ident); PermissionList map = getOrCreatePlayerPermissions(iden...
/** * Set a player permission-property * * @param ident * @param permissionNode * @param value */
Set a player permission-property
setPlayerPermissionProperty
{ "repo_name": "aschmois/ForgeEssentialsMain", "path": "src/main/java/com/forgeessentials/api/permissions/Zone.java", "license": "epl-1.0", "size": 19258 }
[ "com.forgeessentials.api.APIRegistry", "com.forgeessentials.api.UserIdent" ]
import com.forgeessentials.api.APIRegistry; import com.forgeessentials.api.UserIdent;
import com.forgeessentials.api.*;
[ "com.forgeessentials.api" ]
com.forgeessentials.api;
1,387,661
@Test public void findProxyHostExcludesFencedHost() { mockExistingHosts(fencedHost); VDS proxyHost = setupLocator().findProxyHost(); assertNull(proxyHost); }
void function() { mockExistingHosts(fencedHost); VDS proxyHost = setupLocator().findProxyHost(); assertNull(proxyHost); }
/** * Checks if the locator excludes fenced host as a proxy host. And because fenced host is the only existing host, * no proxy is selected */
Checks if the locator excludes fenced host as a proxy host. And because fenced host is the only existing host, no proxy is selected
findProxyHostExcludesFencedHost
{ "repo_name": "OpenUniversity/ovirt-engine", "path": "backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/pm/FenceProxyLocatorTest.java", "license": "apache-2.0", "size": 15022 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,024,428
public static boolean hasBuilder(IProject project, String builderId) throws CoreException { for (ICommand builder : project.getDescription().getBuildSpec()) { if (builder.getBuilderName().equals(builderId)) { return true; } } return false; }
static boolean function(IProject project, String builderId) throws CoreException { for (ICommand builder : project.getDescription().getBuildSpec()) { if (builder.getBuilderName().equals(builderId)) { return true; } } return false; }
/** * Returns <code>true</code> if the project's build specification has the * given builder. */
Returns <code>true</code> if the project's build specification has the given builder
hasBuilder
{ "repo_name": "gwt-plugins/gwt-eclipse-plugin", "path": "plugins/com.gwtplugins.gdt.eclipse.core/src/com/google/gdt/eclipse/core/BuilderUtilities.java", "license": "epl-1.0", "size": 9812 }
[ "org.eclipse.core.resources.ICommand", "org.eclipse.core.resources.IProject", "org.eclipse.core.runtime.CoreException" ]
import org.eclipse.core.resources.ICommand; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.resources.*; import org.eclipse.core.runtime.*;
[ "org.eclipse.core" ]
org.eclipse.core;
2,470,083
public void getColumns(Set<String> columns) { if (_children != null) { for (FilterContext child : _children) { child.getColumns(columns); } } else { _predicate.getLhs().getColumns(columns); } }
void function(Set<String> columns) { if (_children != null) { for (FilterContext child : _children) { child.getColumns(columns); } } else { _predicate.getLhs().getColumns(columns); } }
/** * Adds the columns (IDENTIFIER expressions) in the filter to the given set. */
Adds the columns (IDENTIFIER expressions) in the filter to the given set
getColumns
{ "repo_name": "linkedin/pinot", "path": "pinot-core/src/main/java/org/apache/pinot/core/query/request/context/FilterContext.java", "license": "apache-2.0", "size": 3403 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,045,149
public void reclaimView(View view);
void function(View view);
/** * reclaim view * * @param view */
reclaim view
reclaimView
{ "repo_name": "JNDX25219/XiaoShangXing", "path": "app/src/main/java/com/xiaoshangxing/utils/customView/IViewReclaimer.java", "license": "apache-2.0", "size": 210 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,702,142
public List<String> getRegisteredKeys(Set<String> keys);
List<String> function(Set<String> keys);
/** * Return those keys in the set that have been registered. * * @param keys * @return */
Return those keys in the set that have been registered
getRegisteredKeys
{ "repo_name": "loftuxab/community-edition-old", "path": "projects/core/source/java/org/alfresco/encryption/EncryptionKeysRegistry.java", "license": "lgpl-3.0", "size": 1904 }
[ "java.util.List", "java.util.Set" ]
import java.util.List; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,665,880
public int[] getAppWidgetIds(ComponentName provider) { try { return sService.getAppWidgetIds(provider); } catch (RemoteException e) { throw new RuntimeException("system server dead?", e); } }
int[] function(ComponentName provider) { try { return sService.getAppWidgetIds(provider); } catch (RemoteException e) { throw new RuntimeException(STR, e); } }
/** * Get the list of appWidgetIds that have been bound to the given AppWidget * provider. * * @param provider The {@link android.content.BroadcastReceiver} that is the * AppWidget provider to find appWidgetIds for. */
Get the list of appWidgetIds that have been bound to the given AppWidget provider
getAppWidgetIds
{ "repo_name": "haikuowuya/android_system_code", "path": "src/android/appwidget/AppWidgetManager.java", "license": "apache-2.0", "size": 32776 }
[ "android.content.ComponentName", "android.os.RemoteException" ]
import android.content.ComponentName; import android.os.RemoteException;
import android.content.*; import android.os.*;
[ "android.content", "android.os" ]
android.content; android.os;
181,805
public void addEventListenerNS(String namespaceURI, String type, EventListener listener, boolean useCapture, Object group) { HashMap<String, EventListenerList> listener...
void function(String namespaceURI, String type, EventListener listener, boolean useCapture, Object group) { HashMap<String, EventListenerList> listeners; if (useCapture) { if (capturingListeners == null) { capturingListeners = new HashMap(); } listeners = capturingListeners; } else { if (bubblingListeners == null) { bu...
/** * Registers an event listener for the given namespaced event type * in the specified group. */
Registers an event listener for the given namespaced event type in the specified group
addEventListenerNS
{ "repo_name": "apache/batik", "path": "batik-dom/src/main/java/org/apache/batik/dom/events/EventSupport.java", "license": "apache-2.0", "size": 18624 }
[ "java.util.HashMap", "org.w3c.dom.events.EventListener" ]
import java.util.HashMap; import org.w3c.dom.events.EventListener;
import java.util.*; import org.w3c.dom.events.*;
[ "java.util", "org.w3c.dom" ]
java.util; org.w3c.dom;
1,267,934
public Object[] getEntitlements(User loggedInUser, Integer sid) throws FaultException { // Get the logged in user and server Server server = lookupServer(loggedInUser, sid); // A list of entitlements to return List<String> entitlements = new ArrayList<String>(); // Loop thr...
Object[] function(User loggedInUser, Integer sid) throws FaultException { Server server = lookupServer(loggedInUser, sid); List<String> entitlements = new ArrayList<String>(); for (Iterator<Entitlement> itr = server.getEntitlements().iterator(); itr .hasNext();) { Entitlement entitlement = itr.next(); entitlements.add(...
/** * Gets the entitlements for a given server. * @param loggedInUser The current user * @param sid The id for the system in question * @return Returns an array of entitlement labels for the system * @throws FaultException A FaultException is thrown if the server corresponding to * sid can...
Gets the entitlements for a given server
getEntitlements
{ "repo_name": "jdobes/spacewalk", "path": "java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java", "license": "gpl-2.0", "size": 240801 }
[ "com.redhat.rhn.FaultException", "com.redhat.rhn.domain.entitlement.Entitlement", "com.redhat.rhn.domain.server.Server", "com.redhat.rhn.domain.user.User", "java.util.ArrayList", "java.util.Iterator", "java.util.List" ]
import com.redhat.rhn.FaultException; import com.redhat.rhn.domain.entitlement.Entitlement; import com.redhat.rhn.domain.server.Server; import com.redhat.rhn.domain.user.User; import java.util.ArrayList; import java.util.Iterator; import java.util.List;
import com.redhat.rhn.*; import com.redhat.rhn.domain.entitlement.*; import com.redhat.rhn.domain.server.*; import com.redhat.rhn.domain.user.*; import java.util.*;
[ "com.redhat.rhn", "java.util" ]
com.redhat.rhn; java.util;
2,279,985
private final void setPath(String path) throws LockFile.FileCanonicalizationException, LockFile.FileSecurityException { // Should at least be absolutized for reporting purposes, just in case // a security or canonicalization exception gets thrown. path = FileUtil.getFile...
final void function(String path) throws LockFile.FileCanonicalizationException, LockFile.FileSecurityException { path = FileUtil.getFileUtil().canonicalOrAbsolutePath(path); this.file = new File(path); try { FileUtil.getFileUtil().makeParentDirectories(this.file); } catch (SecurityException ex) { throw new FileSecurity...
/** * Initializes this object with a <tt>File</tt> object whose path has the * canonical form of the given <tt>path</tt> argument. <p> * * <b>PRE</b>:<p> * * <ol> * <li>This method is called once and <em>only</em> once per * <tt>Lockfile</tt> instance. * * ...
Initializes this object with a File object whose path has the canonical form of the given path argument. PRE: This method is called once and only once per Lockfile instance. It is always the first method called after LockFile construction The supplied path argument is never null.
setPath
{ "repo_name": "RabadanLab/Pegasus", "path": "resources/hsqldb-2.2.7/hsqldb/src/org/hsqldb/persist/LockFile.java", "license": "mit", "size": 97427 }
[ "java.io.File", "java.io.IOException", "org.hsqldb.lib.FileUtil" ]
import java.io.File; import java.io.IOException; import org.hsqldb.lib.FileUtil;
import java.io.*; import org.hsqldb.lib.*;
[ "java.io", "org.hsqldb.lib" ]
java.io; org.hsqldb.lib;
2,072,439
private boolean isRequestInProcess(HttpSession session) { return session.getAttribute(REQUEST_IN_PROCESS) != null; }
boolean function(HttpSession session) { return session.getAttribute(REQUEST_IN_PROCESS) != null; }
/** * Is this server currently processing another request for this session? * * @param session * The request's session * @return true if the server is handling another request for this session */
Is this server currently processing another request for this session
isRequestInProcess
{ "repo_name": "idega/com.idega.core", "path": "src/java/com/idega/servlet/filter/RequestControlFilter.java", "license": "gpl-3.0", "size": 11996 }
[ "javax.servlet.http.HttpSession" ]
import javax.servlet.http.HttpSession;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
24,674
public static void fillAttributes(ITestResult tr, ITestContext ctx) { final Set<String> attrsNames = ctx.getAttributeNames(); for (String attr : attrsNames) { Object o = ctx.getAttribute(attr); if (o instanceof TestNGAttribute) { TestNGAttribute tapAttr =...
static void function(ITestResult tr, ITestContext ctx) { final Set<String> attrsNames = ctx.getAttributeNames(); for (String attr : attrsNames) { Object o = ctx.getAttribute(attr); if (o instanceof TestNGAttribute) { TestNGAttribute tapAttr = (TestNGAttribute) o; ITestNGMethod testNGMethod = tr.getMethod(); Constructor...
/** * Fills the TestNG Attributes from the context into the TestNG Test Result. * * @param tr * @param ctx */
Fills the TestNG Attributes from the context into the TestNG Test Result
fillAttributes
{ "repo_name": "s2oBCN/tap4j", "path": "tap4j-ext/src/main/java/org/tap4j/ext/testng/util/TapTestNGUtil.java", "license": "mit", "size": 10461 }
[ "java.io.Serializable", "java.util.Comparator", "java.util.Set", "org.tap4j.ext.testng.model.TestNGAttribute", "org.testng.ITestContext", "org.testng.ITestNGMethod", "org.testng.ITestResult", "org.testng.internal.ConstructorOrMethod" ]
import java.io.Serializable; import java.util.Comparator; import java.util.Set; import org.tap4j.ext.testng.model.TestNGAttribute; import org.testng.ITestContext; import org.testng.ITestNGMethod; import org.testng.ITestResult; import org.testng.internal.ConstructorOrMethod;
import java.io.*; import java.util.*; import org.tap4j.ext.testng.model.*; import org.testng.*; import org.testng.internal.*;
[ "java.io", "java.util", "org.tap4j.ext", "org.testng", "org.testng.internal" ]
java.io; java.util; org.tap4j.ext; org.testng; org.testng.internal;
1,334,322
public DataObject handleQuery(DataObject data) { LOGGER.info("\nDiscoverer - handleQuery : " + data); DataObject component = data.getDataObject(ID); Error error = new Error(); String componentId = null; if (component == null) { error.setError(Error.INVALID_ID_ERROR); } else { S...
DataObject function(DataObject data) { LOGGER.info(STR + data); DataObject component = data.getDataObject(ID); Error error = new Error(); String componentId = null; if (component == null) { error.setError(Error.INVALID_ID_ERROR); } else { String resultId = component.getValue(); if (! resultId.equals(getId())) { error.s...
/** * Handles a DISCOVERER_QUERY message from components and * returns a DataObject containing the identification of the response * and the first response. * * TODO To complete ... * * @param data The DataObject containing the query * @return DataObject The first result of the query * @see ...
Handles a DISCOVERER_QUERY message from components and returns a DataObject containing the identification of the response and the first response. TODO To complete ..
handleQuery
{ "repo_name": "julianaabs/contexttoolkit", "path": "src/context/arch/discoverer/Discoverer.java", "license": "gpl-3.0", "size": 45188 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
2,322,189
public void setXmlSignature2Message(String xmlSignature2Message) { if (getCamelContext() != null && xmlSignature2Message != null) { XmlSignature2Message maper = getCamelContext().getRegistry() .lookupByNameAndType(xmlSignature2Message, XmlSign...
void function(String xmlSignature2Message) { if (getCamelContext() != null && xmlSignature2Message != null) { XmlSignature2Message maper = getCamelContext().getRegistry() .lookupByNameAndType(xmlSignature2Message, XmlSignature2Message.class); if (maper != null) { setXmlSignature2Message(maper); } } if (xmlSignature2Mes...
/** * Sets the reference name for the to-message instance that can be found in * the registry. */
Sets the reference name for the to-message instance that can be found in the registry
setXmlSignature2Message
{ "repo_name": "shuliangtao/apache-camel-2.13.0-src", "path": "components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlVerifierConfiguration.java", "license": "apache-2.0", "size": 8533 }
[ "org.apache.camel.component.xmlsecurity.api.XmlSignature2Message" ]
import org.apache.camel.component.xmlsecurity.api.XmlSignature2Message;
import org.apache.camel.component.xmlsecurity.api.*;
[ "org.apache.camel" ]
org.apache.camel;
738,553
public String version() { return GemFireVersion.getGemFireVersion(); }
String function() { return GemFireVersion.getGemFireVersion(); }
/** * Gets the version of GemFire currently running. * * @return a String representation of GemFire's version. */
Gets the version of GemFire currently running
version
{ "repo_name": "smanvi-pivotal/geode", "path": "geode-core/src/main/java/org/apache/geode/distributed/AbstractLauncher.java", "license": "apache-2.0", "size": 31203 }
[ "org.apache.geode.internal.GemFireVersion" ]
import org.apache.geode.internal.GemFireVersion;
import org.apache.geode.internal.*;
[ "org.apache.geode" ]
org.apache.geode;
2,546,349
@Override public void addOptionChangeListener(OptionChangeListener optionChangeListener) throws UnsupportedOperationException { boolean atleastOneSuccess = false; UnsupportedOperationException exception = null; for(OptionManager om: optionManagers) { try { om.addOptionChangeListener(opti...
void function(OptionChangeListener optionChangeListener) throws UnsupportedOperationException { boolean atleastOneSuccess = false; UnsupportedOperationException exception = null; for(OptionManager om: optionManagers) { try { om.addOptionChangeListener(optionChangeListener); atleastOneSuccess = true; } catch(Unsupported...
/** * If atleast one of underlying optionManagers has accepted to add listener, then its a success. * Otherwise an exception is thrown. * * @param optionChangeListener * @throws UnsupportedOperationException */
If atleast one of underlying optionManagers has accepted to add listener, then its a success. Otherwise an exception is thrown
addOptionChangeListener
{ "repo_name": "dremio/dremio-oss", "path": "sabot/kernel/src/main/java/com/dremio/exec/server/options/OptionManagerWrapper.java", "license": "apache-2.0", "size": 8212 }
[ "com.dremio.options.OptionChangeListener", "com.dremio.options.OptionManager" ]
import com.dremio.options.OptionChangeListener; import com.dremio.options.OptionManager;
import com.dremio.options.*;
[ "com.dremio.options" ]
com.dremio.options;
372,686
public String removeStaticModel(String iri) throws ServerErrorException, StaticKnowledgeErrorException, URISyntaxException{ HttpPost method = null; String httpEntityContent; try{ uri = new URI(serverAddress + "/kb"); method = new HttpPost(uri); method.setHeader("Cache-Control","no-cache"); for...
String function(String iri) throws ServerErrorException, StaticKnowledgeErrorException, URISyntaxException{ HttpPost method = null; String httpEntityContent; try{ uri = new URI(serverAddress + "/kb"); method = new HttpPost(uri); method.setHeader(STR,STR); formparams = new ArrayList<BasicNameValuePair>(); formparams.add...
/** * Method to remove named model from the internal static knowledge * @param iri IRI of the named model to remove * @return json representation of server response * @throws ServerErrorException * @throws StaticKnowledgeErrorException * @throws URISyntaxException */
Method to remove named model from the internal static knowledge
removeStaticModel
{ "repo_name": "streamreasoning/rsp-services-api", "path": "src/main/java/it/polimi/deib/csparql_rest_api/RSP_services_csparql_API.java", "license": "apache-2.0", "size": 38144 }
[ "it.polimi.deib.csparql_rest_api.exception.ServerErrorException", "it.polimi.deib.csparql_rest_api.exception.StaticKnowledgeErrorException", "java.io.IOException", "java.io.InputStream", "java.net.URISyntaxException", "java.util.ArrayList", "org.apache.http.client.entity.UrlEncodedFormEntity", "org.ap...
import it.polimi.deib.csparql_rest_api.exception.ServerErrorException; import it.polimi.deib.csparql_rest_api.exception.StaticKnowledgeErrorException; import java.io.IOException; import java.io.InputStream; import java.net.URISyntaxException; import java.util.ArrayList; import org.apache.http.client.entity.UrlEncodedFo...
import it.polimi.deib.csparql_rest_api.exception.*; import java.io.*; import java.net.*; import java.util.*; import org.apache.http.client.entity.*; import org.apache.http.client.methods.*; import org.apache.http.message.*; import org.apache.http.params.*; import org.apache.http.util.*;
[ "it.polimi.deib", "java.io", "java.net", "java.util", "org.apache.http" ]
it.polimi.deib; java.io; java.net; java.util; org.apache.http;
740,739
List<IObject> saveAndReturnObject(SecurityContext ctx, List<IObject> objects, Map options, String userName) throws DSOutOfServiceException, DSAccessException { Connector c = getConnector(ctx, true, false); try { // Must be inside try because of Throwable c = c.getConnector(userNa...
List<IObject> saveAndReturnObject(SecurityContext ctx, List<IObject> objects, Map options, String userName) throws DSOutOfServiceException, DSAccessException { Connector c = getConnector(ctx, true, false); try { c = c.getConnector(userName); IUpdatePrx service = c.getUpdateService(); return service.saveAndReturnArray(o...
/** * Updates the specified object. * * @param ctx The security context. * @param objects The objects to update. * @param options Options to update the data. * @return The updated object. * @throws DSOutOfServiceException If the connection is broken, or logged in * @throws DSAccessException If an error ...
Updates the specified object
saveAndReturnObject
{ "repo_name": "jballanc/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java", "license": "gpl-2.0", "size": 286379 }
[ "java.util.ArrayList", "java.util.List", "java.util.Map", "org.openmicroscopy.shoola.env.data.util.SecurityContext" ]
import java.util.ArrayList; import java.util.List; import java.util.Map; import org.openmicroscopy.shoola.env.data.util.SecurityContext;
import java.util.*; import org.openmicroscopy.shoola.env.data.util.*;
[ "java.util", "org.openmicroscopy.shoola" ]
java.util; org.openmicroscopy.shoola;
2,598,138
public List<UserEntity> findBysearch(String param);
List<UserEntity> function(String param);
/** * return the users with an email or a username matching the given param * * @param param * @return */
return the users with an email or a username matching the given param
findBysearch
{ "repo_name": "royjd/jsf2_webProject_EJB", "path": "ejb/src/dao/UserDAO.java", "license": "mit", "size": 1239 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,773,299
public static int delete(Class<?> modelClass, long id) { synchronized (LitePalSupport.class) { int rowsAffected; SQLiteDatabase db = Connector.getDatabase(); db.beginTransaction(); try { DeleteHandler deleteHandler = new DeleteHandler(db); ...
static int function(Class<?> modelClass, long id) { synchronized (LitePalSupport.class) { int rowsAffected; SQLiteDatabase db = Connector.getDatabase(); db.beginTransaction(); try { DeleteHandler deleteHandler = new DeleteHandler(db); rowsAffected = deleteHandler.onDelete(modelClass, id); db.setTransactionSuccessful();...
/** * Deletes the record in the database by id.<br> * The data in other tables which is referenced with the record will be * removed too. * * <pre> * LitePal.delete(Person.class, 1); * </pre> * * This means that the record 1 in person table will be removed. * * @pa...
Deletes the record in the database by id. The data in other tables which is referenced with the record will be removed too. <code> LitePal.delete(Person.class, 1); </code> This means that the record 1 in person table will be removed
delete
{ "repo_name": "LitePalFramework/LitePal", "path": "core/src/main/java/org/litepal/Operator.java", "license": "apache-2.0", "size": 59913 }
[ "android.database.sqlite.SQLiteDatabase", "org.litepal.crud.DeleteHandler", "org.litepal.crud.LitePalSupport", "org.litepal.tablemanager.Connector" ]
import android.database.sqlite.SQLiteDatabase; import org.litepal.crud.DeleteHandler; import org.litepal.crud.LitePalSupport; import org.litepal.tablemanager.Connector;
import android.database.sqlite.*; import org.litepal.crud.*; import org.litepal.tablemanager.*;
[ "android.database", "org.litepal.crud", "org.litepal.tablemanager" ]
android.database; org.litepal.crud; org.litepal.tablemanager;
1,072,890
ProfileFilterDto getProfileFilter(String profileFilterId) throws ControlServiceException;
ProfileFilterDto getProfileFilter(String profileFilterId) throws ControlServiceException;
/** * Gets the profile filter. * * @param profileFilterId * the profile filter id * @return the profile filter * @throws ControlServiceException * the control service exception */
Gets the profile filter
getProfileFilter
{ "repo_name": "Oleh-Kravchenko/kaa", "path": "server/node/src/main/java/org/kaaproject/kaa/server/control/service/ControlService.java", "license": "apache-2.0", "size": 64761 }
[ "org.kaaproject.kaa.common.dto.ProfileFilterDto", "org.kaaproject.kaa.server.control.service.exception.ControlServiceException" ]
import org.kaaproject.kaa.common.dto.ProfileFilterDto; import org.kaaproject.kaa.server.control.service.exception.ControlServiceException;
import org.kaaproject.kaa.common.dto.*; import org.kaaproject.kaa.server.control.service.exception.*;
[ "org.kaaproject.kaa" ]
org.kaaproject.kaa;
2,395,674
private static void updateNamespaceMapping(Element elem, Map<String, String> namespaces) { NamedNodeMap attributes = elem.getAttributes(); for (int i = 0; i < attributes.getLength(); i++) { Attr attr = (Attr) attributes.item(i); if (attr.getName().startsWith(ATTR_XMLNS)) { ...
static void function(Element elem, Map<String, String> namespaces) { NamedNodeMap attributes = elem.getAttributes(); for (int i = 0; i < attributes.getLength(); i++) { Attr attr = (Attr) attributes.item(i); if (attr.getName().startsWith(ATTR_XMLNS)) { String prefix = attr.getName().substring(ATTR_XMLNS.length()); Strin...
/** * Update the specified namespace mappings with the namespace declarations * defined by the given XML element. * * @param elem * @param namespaces */
Update the specified namespace mappings with the namespace declarations defined by the given XML element
updateNamespaceMapping
{ "repo_name": "sdmcraft/jackrabbit", "path": "jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/privilege/PrivilegeXmlHandler.java", "license": "apache-2.0", "size": 13467 }
[ "java.util.Map", "org.w3c.dom.Attr", "org.w3c.dom.Element", "org.w3c.dom.NamedNodeMap" ]
import java.util.Map; import org.w3c.dom.Attr; import org.w3c.dom.Element; import org.w3c.dom.NamedNodeMap;
import java.util.*; import org.w3c.dom.*;
[ "java.util", "org.w3c.dom" ]
java.util; org.w3c.dom;
361,418
@Test public void meta_result_set_float_01() throws SQLException { MetaResultSet results = new MetaResultSet(new ColumnInfo[] { new FloatColumn("Test", ResultSetMetaData.columnNullable) }, new Object[][] { { 0.123f } }); Assert.assertTrue(results.next()); float value = r...
void function() throws SQLException { MetaResultSet results = new MetaResultSet(new ColumnInfo[] { new FloatColumn("Test", ResultSetMetaData.columnNullable) }, new Object[][] { { 0.123f } }); Assert.assertTrue(results.next()); float value = results.getFloat(1); Assert.assertEquals(0.123f, value, 0f); Assert.assertFalse...
/** * Test retrieving meta column values * * @throws SQLException */
Test retrieving meta column values
meta_result_set_float_01
{ "repo_name": "samaitra/jena", "path": "jena-jdbc/jena-jdbc-core/src/test/java/org/apache/jena/jdbc/metadata/results/TestMetaResultSet.java", "license": "apache-2.0", "size": 21597 }
[ "java.sql.ResultSetMetaData", "java.sql.SQLException", "org.apache.jena.jdbc.metadata.results.MetaResultSet", "org.apache.jena.jdbc.results.metadata.columns.ColumnInfo", "org.apache.jena.jdbc.results.metadata.columns.FloatColumn", "org.junit.Assert", "org.junit.Test" ]
import java.sql.ResultSetMetaData; import java.sql.SQLException; import org.apache.jena.jdbc.metadata.results.MetaResultSet; import org.apache.jena.jdbc.results.metadata.columns.ColumnInfo; import org.apache.jena.jdbc.results.metadata.columns.FloatColumn; import org.junit.Assert; import org.junit.Test;
import java.sql.*; import org.apache.jena.jdbc.metadata.results.*; import org.apache.jena.jdbc.results.metadata.columns.*; import org.junit.*;
[ "java.sql", "org.apache.jena", "org.junit" ]
java.sql; org.apache.jena; org.junit;
1,467,251
protected void setNextExecutionTime(final Date executionTime) { this.nextFireTime = executionTime.getTime(); }
void function(final Date executionTime) { this.nextFireTime = executionTime.getTime(); }
/** * Sets the next time at which this job will be executed. * @param executionTime the next job execution time. */
Sets the next time at which this job will be executed
setNextExecutionTime
{ "repo_name": "auroreallibe/Silverpeas-Core", "path": "core-library/src/main/java/org/silverpeas/core/scheduler/quartz/QuartzSchedulerJob.java", "license": "agpl-3.0", "size": 4058 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
512,831
public Enumeration getTrapDestinations() { return trapDestList.keys(); }
Enumeration function() { return trapDestList.keys(); }
/** * Returns an enumeration of trap destinations. * * @return An enumeration of the trap destinations (enumeration of <CODE>InetAddress</CODE>). */
Returns an enumeration of trap destinations
getTrapDestinations
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk/jdk/src/share/classes/com/sun/jmx/snmp/IPAcl/SnmpAcl.java", "license": "mit", "size": 17871 }
[ "java.util.Enumeration" ]
import java.util.Enumeration;
import java.util.*;
[ "java.util" ]
java.util;
2,707,475
TdpfFactory getTdpfFactory(); interface Literals { EClass MODEL = eINSTANCE.getModel(); EClass BATCH = eINSTANCE.getBatch(); EReference BATCH__COMMANDS = eINSTANCE.getBatch_Commands(); EClass COMMAND = eINSTANCE.getCommand(); EClass MAKE_EMF = eINSTANCE.getMake...
TdpfFactory getTdpfFactory(); interface Literals { EClass MODEL = eINSTANCE.getModel(); EClass BATCH = eINSTANCE.getBatch(); EReference BATCH__COMMANDS = eINSTANCE.getBatch_Commands(); EClass COMMAND = eINSTANCE.getCommand(); EClass MAKE_EMF = eINSTANCE.getMakeEmf(); EAttribute MAKE_EMF__ID = eINSTANCE.getMakeEmf_Id();...
/** * Returns the factory that creates the instances of the model. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the factory that creates the instances of the model. * @generated */
Returns the factory that creates the instances of the model.
getTdpfFactory
{ "repo_name": "fmantz/DPF_Text", "path": "no.hib.dpf.text/src-gen/no/hib/dpf/text/tdpf/TdpfPackage.java", "license": "epl-1.0", "size": 84409 }
[ "org.eclipse.emf.ecore.EAttribute", "org.eclipse.emf.ecore.EClass", "org.eclipse.emf.ecore.EEnum", "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EEnum; import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
397,873
public void queryAABB(QueryCallback callback, AABB aabb) { wqwrapper.broadPhase = m_contactManager.m_broadPhase; wqwrapper.callback = callback; m_contactManager.m_broadPhase.query(wqwrapper, aabb); } private final WorldRayCastWrapper wrcwrapper = new WorldRayCastWrapper(); private final RayCastInput input...
void function(QueryCallback callback, AABB aabb) { wqwrapper.broadPhase = m_contactManager.m_broadPhase; wqwrapper.callback = callback; m_contactManager.m_broadPhase.query(wqwrapper, aabb); } private final WorldRayCastWrapper wrcwrapper = new WorldRayCastWrapper(); private final RayCastInput input = new RayCastInput();
/** * Query the world for all fixtures that potentially overlap the * provided AABB. * * @param callback * a user implemented callback class. * @param aabb * the query box. */
Query the world for all fixtures that potentially overlap the provided AABB
queryAABB
{ "repo_name": "KoriSamui/PlayN", "path": "gwtbox2d/src/org/jbox2d/dynamics/World.java", "license": "apache-2.0", "size": 37716 }
[ "org.jbox2d.callbacks.QueryCallback", "org.jbox2d.collision.RayCastInput" ]
import org.jbox2d.callbacks.QueryCallback; import org.jbox2d.collision.RayCastInput;
import org.jbox2d.callbacks.*; import org.jbox2d.collision.*;
[ "org.jbox2d.callbacks", "org.jbox2d.collision" ]
org.jbox2d.callbacks; org.jbox2d.collision;
787,299
public static redAlmDeltaAType fromPerUnaligned(byte[] encodedBytes) { redAlmDeltaAType result = new redAlmDeltaAType(); result.decodePerUnaligned(new BitStreamReader(encodedBytes)); return result; }
static redAlmDeltaAType function(byte[] encodedBytes) { redAlmDeltaAType result = new redAlmDeltaAType(); result.decodePerUnaligned(new BitStreamReader(encodedBytes)); return result; }
/** * Creates a new redAlmDeltaAType from encoded stream. */
Creates a new redAlmDeltaAType from encoded stream
fromPerUnaligned
{ "repo_name": "google/supl-client", "path": "src/main/java/com/google/location/suplclient/asn1/supl2/rrlp_components/Almanac_ReducedKeplerianSet.java", "license": "apache-2.0", "size": 29269 }
[ "com.google.location.suplclient.asn1.base.BitStreamReader" ]
import com.google.location.suplclient.asn1.base.BitStreamReader;
import com.google.location.suplclient.asn1.base.*;
[ "com.google.location" ]
com.google.location;
2,035,625
public void addEntry(final int index, final FileListEntry entry) { synchronized (list) { list.add(index, entry); if (SwingUtilities.isEventDispatchThread()) { fireTableRowsInserted(index, index); } else { SwingUtilities.invokeLater(() -> fi...
void function(final int index, final FileListEntry entry) { synchronized (list) { list.add(index, entry); if (SwingUtilities.isEventDispatchThread()) { fireTableRowsInserted(index, index); } else { SwingUtilities.invokeLater(() -> fireTableRowsInserted(index, index)); } } }
/** * Add an entry to the table model, and fire a change event. The change event * is fired on the event dispatch thread. * @param index The row index to insert the entry at. * @param entry The entry to insert. */
Add an entry to the table model, and fire a change event. The change event is fired on the event dispatch thread
addEntry
{ "repo_name": "Mr-DLib/jabref", "path": "src/main/java/net/sf/jabref/gui/filelist/FileListTableModel.java", "license": "mit", "size": 7241 }
[ "javax.swing.SwingUtilities" ]
import javax.swing.SwingUtilities;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,294,134
private static boolean hasRestrictions(Element restrictionNode) { for (int i = 0; i < restrictionNode.getChildCount(); i++) { if (restrictionNode.isText(i)) continue; return true; } return false; }
static boolean function(Element restrictionNode) { for (int i = 0; i < restrictionNode.getChildCount(); i++) { if (restrictionNode.isText(i)) continue; return true; } return false; }
/** * Checks if a restriction node has enumeration restrictions. * * @param restrictionNode the restriction node. * @return true if it has, else false; */
Checks if a restriction node has enumeration restrictions
hasRestrictions
{ "repo_name": "christianrafael/buendia", "path": "third_party/openmrs-module-xforms/api/src/main/java/org/openmrs/module/xforms/XformBuilder.java", "license": "apache-2.0", "size": 138293 }
[ "org.kxml2.kdom.Element" ]
import org.kxml2.kdom.Element;
import org.kxml2.kdom.*;
[ "org.kxml2.kdom" ]
org.kxml2.kdom;
1,387,352
EList<SqlType> getSql();
EList<SqlType> getSql();
/** * Returns the value of the '<em><b>Sql</b></em>' containment reference list. * The list contents are of type {@link org.liquibase.xml.ns.dbchangelog.SqlType}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Sql</em>' containment reference list isn't clear, * there really should be more of a...
Returns the value of the 'Sql' containment reference list. The list contents are of type <code>org.liquibase.xml.ns.dbchangelog.SqlType</code>. If the meaning of the 'Sql' containment reference list isn't clear, there really should be more of a description here...
getSql
{ "repo_name": "dzonekl/LiquibaseEditor", "path": "plugins/org.liquidbase.model/src/org/liquibase/xml/ns/dbchangelog/RollbackType.java", "license": "mit", "size": 47925 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,871,342
boolean takeFrom(Player player);
boolean takeFrom(Player player);
/** * Take this thing from the given player. * * @param player a player, non-null * @return true, if this thing was taken from the player, false otherwise */
Take this thing from the given player
takeFrom
{ "repo_name": "garbagemule/MobArena", "path": "src/main/java/com/garbagemule/MobArena/things/Thing.java", "license": "gpl-3.0", "size": 1621 }
[ "org.bukkit.entity.Player" ]
import org.bukkit.entity.Player;
import org.bukkit.entity.*;
[ "org.bukkit.entity" ]
org.bukkit.entity;
1,460,394
private static void ensureTable(byte[] tableName, byte[] columnFamilyName) throws IOException { HBaseAdmin hbaseAdmin = new HBaseAdmin(configuration); if (!hbaseAdmin.tableExists(tableName)) { HTableDescriptor desc = new HTableDescriptor(tableName); HColumnDescriptor hColumnD...
static void function(byte[] tableName, byte[] columnFamilyName) throws IOException { HBaseAdmin hbaseAdmin = new HBaseAdmin(configuration); if (!hbaseAdmin.tableExists(tableName)) { HTableDescriptor desc = new HTableDescriptor(tableName); HColumnDescriptor hColumnDescriptor = new HColumnDescriptor(columnFamilyName); hC...
/** * Create a table if needed. * * @param tableName * @param columnFamilyName * @throws IOException */
Create a table if needed
ensureTable
{ "repo_name": "rouazana/james", "path": "data/data-hbase/src/main/java/org/apache/james/system/hbase/TablePool.java", "license": "apache-2.0", "size": 5229 }
[ "java.io.IOException", "org.apache.hadoop.hbase.HColumnDescriptor", "org.apache.hadoop.hbase.HTableDescriptor", "org.apache.hadoop.hbase.client.HBaseAdmin" ]
import java.io.IOException; import org.apache.hadoop.hbase.HColumnDescriptor; import org.apache.hadoop.hbase.HTableDescriptor; import org.apache.hadoop.hbase.client.HBaseAdmin;
import java.io.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
716,410
List<IObject> getPixels(SecurityContext ctx, List<DataObject> objects) throws DSOutOfServiceException, DSAccessException { Connector c = getConnector(ctx, true, false); try { IPixelsPrx service = c.getPixelsService(); IContainerPrx container = c.getPojosService(); IQueryPrx query = ...
List<IObject> getPixels(SecurityContext ctx, List<DataObject> objects) throws DSOutOfServiceException, DSAccessException { Connector c = getConnector(ctx, true, false); try { IPixelsPrx service = c.getPixelsService(); IContainerPrx container = c.getPojosService(); IQueryPrx query = c.getQueryService(); DataObject ho = ...
/** * Retrieves the dimensions in microns of the specified pixels set. * * @param ctx The security context. * @param pixelsID The pixels set ID. * @return See above. * @throws DSOutOfServiceException If the connection is broken, or logged in * @throws DSAccessException If an error occurred while trying t...
Retrieves the dimensions in microns of the specified pixels set
getPixels
{ "repo_name": "jballanc/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java", "license": "gpl-2.0", "size": 286379 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.List", "java.util.Set", "org.openmicroscopy.shoola.env.data.util.SecurityContext" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.Set; import org.openmicroscopy.shoola.env.data.util.SecurityContext;
import java.util.*; import org.openmicroscopy.shoola.env.data.util.*;
[ "java.util", "org.openmicroscopy.shoola" ]
java.util; org.openmicroscopy.shoola;
2,598,255
Object parse(XMLEventReader xmlEventReader) throws ParsingException;
Object parse(XMLEventReader xmlEventReader) throws ParsingException;
/** * Parse the event stream * * @param xmlEventReader * @return * @throws ParsingException */
Parse the event stream
parse
{ "repo_name": "abstractj/keycloak", "path": "saml-core/src/main/java/org/keycloak/saml/common/parsers/StaxParser.java", "license": "apache-2.0", "size": 1099 }
[ "javax.xml.stream.XMLEventReader", "org.keycloak.saml.common.exceptions.ParsingException" ]
import javax.xml.stream.XMLEventReader; import org.keycloak.saml.common.exceptions.ParsingException;
import javax.xml.stream.*; import org.keycloak.saml.common.exceptions.*;
[ "javax.xml", "org.keycloak.saml" ]
javax.xml; org.keycloak.saml;
2,085,573
@Path("buffer") @POST @Broadcast(delay = 0) public Broadcastable buffer(@FormParam("message") String message) { return broadcast(message); }
@Path(STR) @Broadcast(delay = 0) Broadcastable function(@FormParam(STR) String message) { return broadcast(message); }
/** * Buffer the first broadcast events until the second one happens. * * @param message A String from an HTML form * @return A {@link Broadcastable} used to broadcast events. */
Buffer the first broadcast events until the second one happens
buffer
{ "repo_name": "ydsakyclguozi/atmosphere-samples", "path": "samples/pubsub/src/main/java/org/atmosphere/samples/pubsub/PubSub.java", "license": "apache-2.0", "size": 10525 }
[ "javax.ws.rs.FormParam", "javax.ws.rs.Path", "org.atmosphere.annotation.Broadcast", "org.atmosphere.jersey.Broadcastable" ]
import javax.ws.rs.FormParam; import javax.ws.rs.Path; import org.atmosphere.annotation.Broadcast; import org.atmosphere.jersey.Broadcastable;
import javax.ws.rs.*; import org.atmosphere.annotation.*; import org.atmosphere.jersey.*;
[ "javax.ws", "org.atmosphere.annotation", "org.atmosphere.jersey" ]
javax.ws; org.atmosphere.annotation; org.atmosphere.jersey;
508,298
public void recordCollection(NetworkStatsCollection another) { for (Map.Entry<Key, NetworkStatsHistory> entry : another.mStats.entrySet()) { recordHistory(entry.getKey(), entry.getValue()); } }
void function(NetworkStatsCollection another) { for (Map.Entry<Key, NetworkStatsHistory> entry : another.mStats.entrySet()) { recordHistory(entry.getKey(), entry.getValue()); } }
/** * Record all {@link NetworkStatsHistory} contained in the given collection * into this collection. */
Record all <code>NetworkStatsHistory</code> contained in the given collection into this collection
recordCollection
{ "repo_name": "JSDemos/android-sdk-20", "path": "src/com/android/server/net/NetworkStatsCollection.java", "license": "apache-2.0", "size": 19024 }
[ "android.net.NetworkStatsHistory", "java.util.Map" ]
import android.net.NetworkStatsHistory; import java.util.Map;
import android.net.*; import java.util.*;
[ "android.net", "java.util" ]
android.net; java.util;
623,071
public static PropertyEnum create(String name, Class clazz) { return create(name, clazz, Predicates.alwaysTrue()); }
static PropertyEnum function(String name, Class clazz) { return create(name, clazz, Predicates.alwaysTrue()); }
/** * Create a new PropertyEnum with all Enum constants of the given class. */
Create a new PropertyEnum with all Enum constants of the given class
create
{ "repo_name": "trixmot/mod1", "path": "build/tmp/recompileMc/sources/net/minecraft/block/properties/PropertyEnum.java", "license": "lgpl-2.1", "size": 2999 }
[ "com.google.common.base.Predicates" ]
import com.google.common.base.Predicates;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
115,565
private void setupResponseOldVersionFatal(ByteArrayOutputStream response, Call call, Writable rv, String errorClass, String error) throws IOException { final int OLD_VERSION_FATAL_STATUS = -1; response.reset(); DataOutputStream out = new DataOu...
void function(ByteArrayOutputStream response, Call call, Writable rv, String errorClass, String error) throws IOException { final int OLD_VERSION_FATAL_STATUS = -1; response.reset(); DataOutputStream out = new DataOutputStream(response); out.writeInt(call.callId); out.writeInt(OLD_VERSION_FATAL_STATUS); WritableUtils.w...
/** * Setup response for the IPC Call on Fatal Error from a * client that is using old version of Hadoop. * The response is serialized using the previous protocol's response * layout. * * @param response buffer to serialize the response into * @param call {@link Call} to which we are setting up t...
Setup response for the IPC Call on Fatal Error from a client that is using old version of Hadoop. The response is serialized using the previous protocol's response layout
setupResponseOldVersionFatal
{ "repo_name": "sungsoo/hadoop-2.4.0", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java", "license": "apache-2.0", "size": 102570 }
[ "java.io.ByteArrayOutputStream", "java.io.DataOutputStream", "java.io.IOException", "java.nio.ByteBuffer", "org.apache.hadoop.io.Writable", "org.apache.hadoop.io.WritableUtils" ]
import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import org.apache.hadoop.io.Writable; import org.apache.hadoop.io.WritableUtils;
import java.io.*; import java.nio.*; import org.apache.hadoop.io.*;
[ "java.io", "java.nio", "org.apache.hadoop" ]
java.io; java.nio; org.apache.hadoop;
301,112
Lock lock = new ReentrantLock(); lock.lock(); // workaround for dcc-storage, break up on carriage returns as well String[] splitLines = line.split("\r"); for(String lineSegment: splitLines){ lines.add(lineSegment); } lock.unlock(); }
Lock lock = new ReentrantLock(); lock.lock(); String[] splitLines = line.split("\r"); for(String lineSegment: splitLines){ lines.add(lineSegment); } lock.unlock(); }
/** * Process a line. * * @param line * - A line. * @param level * - a logging level. Not used in this implementation. */
Process a line
processLine
{ "repo_name": "Consonance/consonance", "path": "consonance-arch/src/main/java/io/consonance/arch/worker/CollectingLogOutputStream.java", "license": "gpl-3.0", "size": 2899 }
[ "java.util.concurrent.locks.Lock", "java.util.concurrent.locks.ReentrantLock" ]
import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.*;
[ "java.util" ]
java.util;
1,718,551
public static AffineTransform3D getTransform( final List< SourceAndConverter< ? > > sources, final int timepoint, final int setup, final int level ) { final AffineTransform3D transform = new AffineTransform3D(); sources.get( setup ).getSpimSource().getSourceTransform( timepoint, level, transform ); return tra...
static AffineTransform3D function( final List< SourceAndConverter< ? > > sources, final int timepoint, final int setup, final int level ) { final AffineTransform3D transform = new AffineTransform3D(); sources.get( setup ).getSpimSource().getSourceTransform( timepoint, level, transform ); return transform; }
/** * Returns the transformation that maps the image coordinates to the global * coordinate system for the specified time-point, setup id and resolution * level. * * @param sources * the image data. * @param timepoint * the time-point to query. * @param setup * the s...
Returns the transformation that maps the image coordinates to the global coordinate system for the specified time-point, setup id and resolution level
getTransform
{ "repo_name": "TrNdy/mastodon-tracking", "path": "src/main/java/org/mastodon/tracking/detection/DetectionUtil.java", "license": "bsd-2-clause", "size": 20165 }
[ "java.util.List", "net.imglib2.realtransform.AffineTransform3D" ]
import java.util.List; import net.imglib2.realtransform.AffineTransform3D;
import java.util.*; import net.imglib2.realtransform.*;
[ "java.util", "net.imglib2.realtransform" ]
java.util; net.imglib2.realtransform;
377,886
protected NodeFigure createMainFigure() { NodeFigure figure = createNodePlate(); figure.setLayoutManager(new ToolbarLayout(true)); IFigure shape = createNodeShape(); figure.add(shape); contentPane = setupContentPane(shape); return figure; }
NodeFigure function() { NodeFigure figure = createNodePlate(); figure.setLayoutManager(new ToolbarLayout(true)); IFigure shape = createNodeShape(); figure.add(shape); contentPane = setupContentPane(shape); return figure; }
/** * Creates figure for this edit part. * * Body of this method does not depend on settings in generation model * so you may safely remove <i>generated</i> tag and modify it. * * @generated NOT */
Creates figure for this edit part. Body of this method does not depend on settings in generation model so you may safely remove generated tag and modify it
createMainFigure
{ "repo_name": "rajeevanv89/developer-studio", "path": "esb/org.wso2.developerstudio.eclipse.gmf.esb.diagram/src/org/wso2/developerstudio/eclipse/gmf/esb/diagram/edit/parts/SmooksMediatorEditPart.java", "license": "apache-2.0", "size": 9971 }
[ "org.eclipse.draw2d.IFigure", "org.eclipse.draw2d.ToolbarLayout", "org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure" ]
import org.eclipse.draw2d.IFigure; import org.eclipse.draw2d.ToolbarLayout; import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
import org.eclipse.draw2d.*; import org.eclipse.gmf.runtime.gef.ui.figures.*;
[ "org.eclipse.draw2d", "org.eclipse.gmf" ]
org.eclipse.draw2d; org.eclipse.gmf;
1,238,767
HistoricActivityStatisticsQuery createHistoricActivityStatisticsQuery(String processDefinitionId);
HistoricActivityStatisticsQuery createHistoricActivityStatisticsQuery(String processDefinitionId);
/** * Query for the number of historic activity instances aggregated by activities of a single process definition. */
Query for the number of historic activity instances aggregated by activities of a single process definition
createHistoricActivityStatisticsQuery
{ "repo_name": "menski/camunda-bpm-platform", "path": "engine/src/main/java/org/camunda/bpm/engine/HistoryService.java", "license": "apache-2.0", "size": 6167 }
[ "org.camunda.bpm.engine.history.HistoricActivityStatisticsQuery" ]
import org.camunda.bpm.engine.history.HistoricActivityStatisticsQuery;
import org.camunda.bpm.engine.history.*;
[ "org.camunda.bpm" ]
org.camunda.bpm;
1,432,261
public AttributeCondition createIdCondition(String value) throws CSSException { return new DefaultIdCondition(value); }
AttributeCondition function(String value) throws CSSException { return new DefaultIdCondition(value); }
/** * <b>SAC</b>: Implements {@link * org.w3c.css.sac.ConditionFactory#createIdCondition(String)}. */
SAC: Implements <code>org.w3c.css.sac.ConditionFactory#createIdCondition(String)</code>
createIdCondition
{ "repo_name": "Uni-Sol/batik", "path": "sources/org/apache/batik/css/parser/DefaultConditionFactory.java", "license": "apache-2.0", "size": 6158 }
[ "org.w3c.css.sac.AttributeCondition", "org.w3c.css.sac.CSSException" ]
import org.w3c.css.sac.AttributeCondition; import org.w3c.css.sac.CSSException;
import org.w3c.css.sac.*;
[ "org.w3c.css" ]
org.w3c.css;
1,427,749
public void testXmlPageReadOldVersion() throws Exception { // create a XML entity resolver CmsXmlEntityResolver resolver = new CmsXmlEntityResolver(null); CmsXmlPage page; String content; // validate "old" xmlpage 1 content = CmsFileUtil.readFile("org/opencms/xml/p...
void function() throws Exception { CmsXmlEntityResolver resolver = new CmsXmlEntityResolver(null); CmsXmlPage page; String content; content = CmsFileUtil.readFile(STR, UTF8); page = CmsXmlPageFactory.unmarshal(content, UTF8, resolver); assertTrue(page.hasValue("body", Locale.ENGLISH)); CmsLinkTable table = page.getLink...
/** * Tests reading elements from the "old", pre 5.5.0 version of the XML page.<p> * * @throws Exception in case something goes wrong */
Tests reading elements from the "old", pre 5.5.0 version of the XML page
testXmlPageReadOldVersion
{ "repo_name": "serrapos/opencms-core", "path": "test/org/opencms/xml/page/TestCmsXmlPage.java", "license": "lgpl-2.1", "size": 21689 }
[ "java.util.Locale", "org.opencms.staticexport.CmsLinkTable", "org.opencms.util.CmsFileUtil", "org.opencms.xml.CmsXmlEntityResolver" ]
import java.util.Locale; import org.opencms.staticexport.CmsLinkTable; import org.opencms.util.CmsFileUtil; import org.opencms.xml.CmsXmlEntityResolver;
import java.util.*; import org.opencms.staticexport.*; import org.opencms.util.*; import org.opencms.xml.*;
[ "java.util", "org.opencms.staticexport", "org.opencms.util", "org.opencms.xml" ]
java.util; org.opencms.staticexport; org.opencms.util; org.opencms.xml;
2,072,832
private void startDownload() { XMLRPCDownloadManager.getInstance().downloadTorrent(infoHash, torrent.getName()); }
void function() { XMLRPCDownloadManager.getInstance().downloadTorrent(infoHash, torrent.getName()); }
/** * Starts downloading the torrent */
Starts downloading the torrent
startDownload
{ "repo_name": "Tribler/tribler-android", "path": "tsap/app/src/main/java/org/tribler/tsap/streaming/PlayButtonListener.java", "license": "gpl-3.0", "size": 4882 }
[ "org.tribler.tsap.downloads.XMLRPCDownloadManager" ]
import org.tribler.tsap.downloads.XMLRPCDownloadManager;
import org.tribler.tsap.downloads.*;
[ "org.tribler.tsap" ]
org.tribler.tsap;
1,145,764
ColumnMetadata getColumnMetadata(Session session, TableHandle tableHandle, ColumnHandle columnHandle);
ColumnMetadata getColumnMetadata(Session session, TableHandle tableHandle, ColumnHandle columnHandle);
/** * Gets the metadata for the specified table column. * * @throws RuntimeException if table or column handles are no longer valid */
Gets the metadata for the specified table column
getColumnMetadata
{ "repo_name": "EvilMcJerkface/presto", "path": "presto-main/src/main/java/com/facebook/presto/metadata/Metadata.java", "license": "apache-2.0", "size": 18462 }
[ "com.facebook.presto.Session", "com.facebook.presto.spi.ColumnHandle", "com.facebook.presto.spi.ColumnMetadata", "com.facebook.presto.spi.TableHandle" ]
import com.facebook.presto.Session; import com.facebook.presto.spi.ColumnHandle; import com.facebook.presto.spi.ColumnMetadata; import com.facebook.presto.spi.TableHandle;
import com.facebook.presto.*; import com.facebook.presto.spi.*;
[ "com.facebook.presto" ]
com.facebook.presto;
202,458
// TODO remove this method once all Students have been migrated to CourseStudents @Deprecated public List<StudentAttributes> getAllStudents() { Map<String, StudentAttributes> result = new LinkedHashMap<>(); for (StudentAttributes student : getAllCourseStudents()) { result.put(st...
List<StudentAttributes> function() { Map<String, StudentAttributes> result = new LinkedHashMap<>(); for (StudentAttributes student : getAllCourseStudents()) { result.put(student.getId(), student); } return new ArrayList<>(result.values()); }
/** * This method is not scalable. Not to be used unless for admin features. * @return the list of all students in the database. */
This method is not scalable. Not to be used unless for admin features
getAllStudents
{ "repo_name": "Gorgony/teammates", "path": "src/main/java/teammates/storage/api/StudentsDb.java", "license": "gpl-2.0", "size": 24723 }
[ "java.util.ArrayList", "java.util.LinkedHashMap", "java.util.List", "java.util.Map" ]
import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
543,548
public LocalClusteringCoefficient<K, VV, EV> setLittleParallelism(int littleParallelism) { Preconditions.checkArgument(littleParallelism > 0 || littleParallelism == PARALLELISM_DEFAULT, "The parallelism must be greater than zero."); this.littleParallelism = littleParallelism; return this; }
LocalClusteringCoefficient<K, VV, EV> function(int littleParallelism) { Preconditions.checkArgument(littleParallelism > 0 littleParallelism == PARALLELISM_DEFAULT, STR); this.littleParallelism = littleParallelism; return this; }
/** * Override the parallelism of operators processing small amounts of data. * * @param littleParallelism operator parallelism * @return this */
Override the parallelism of operators processing small amounts of data
setLittleParallelism
{ "repo_name": "DieBauer/flink", "path": "flink-libraries/flink-gelly/src/main/java/org/apache/flink/graph/library/clustering/undirected/LocalClusteringCoefficient.java", "license": "apache-2.0", "size": 10156 }
[ "org.apache.flink.util.Preconditions" ]
import org.apache.flink.util.Preconditions;
import org.apache.flink.util.*;
[ "org.apache.flink" ]
org.apache.flink;
2,662,727
protected void addRoleQualificationsFromProfile(TemProfile profile, Map<String, String> attributes) { // Add the principalId from the profile to grant permission to users modifying their own profile. if (!StringUtils.isBlank(profile.getPrincipalId())) { attributes.put(KfsKimAttributes...
void function(TemProfile profile, Map<String, String> attributes) { if (!StringUtils.isBlank(profile.getPrincipalId())) { attributes.put(KfsKimAttributes.PROFILE_PRINCIPAL_ID, profile.getPrincipalId()); } if (!StringUtils.isBlank(profile.getHomeDeptOrgCode())) { attributes.put(KfsKimAttributes.ORGANIZATION_CODE, profil...
/** * Adds role qualifiers harvested from the TemProfile to the attributes Map * @param profile the TemProfile to harvest qualifiers from * @param attributes the Map of qualifiers to add into */
Adds role qualifiers harvested from the TemProfile to the attributes Map
addRoleQualificationsFromProfile
{ "repo_name": "ua-eas/ua-kfs-5.3", "path": "work/src/org/kuali/kfs/module/tem/document/authorization/TemProfileAuthorizerAssistant.java", "license": "agpl-3.0", "size": 7342 }
[ "java.util.Map", "org.apache.commons.lang.StringUtils", "org.kuali.kfs.module.tem.TemPropertyConstants", "org.kuali.kfs.module.tem.businessobject.TemProfile", "org.kuali.kfs.sys.identity.KfsKimAttributes", "org.kuali.rice.krad.util.ObjectUtils" ]
import java.util.Map; import org.apache.commons.lang.StringUtils; import org.kuali.kfs.module.tem.TemPropertyConstants; import org.kuali.kfs.module.tem.businessobject.TemProfile; import org.kuali.kfs.sys.identity.KfsKimAttributes; import org.kuali.rice.krad.util.ObjectUtils;
import java.util.*; import org.apache.commons.lang.*; import org.kuali.kfs.module.tem.*; import org.kuali.kfs.module.tem.businessobject.*; import org.kuali.kfs.sys.identity.*; import org.kuali.rice.krad.util.*;
[ "java.util", "org.apache.commons", "org.kuali.kfs", "org.kuali.rice" ]
java.util; org.apache.commons; org.kuali.kfs; org.kuali.rice;
1,726,020
@ServiceMethod(returns = ReturnType.SINGLE) Response<IntegrationRuntimeConnectionInfoInner> getWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) Response<IntegrationRuntimeConnectionInfoInner> getWithResponse( String resourceGroupName, String workspaceName, String integrationRuntimeName, Context context);
/** * Get connection info for an integration runtime. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param integrationRuntimeName Integration runtime name. * @param context The context to assoc...
Get connection info for an integration runtime
getWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/IntegrationRuntimeConnectionInfosClient.java", "license": "mit", "size": 2462 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeConnectionInfoInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.synapse.fluent.models.IntegrationRuntimeConnectionInfoInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.synapse.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,242,486
@SuppressWarnings("deprecation") public static JsonArray toJsonArray(JsonProvider provider, Object[] input) { JsonArrayBuilder builder = provider.createArrayBuilder(); if (input != null) { for (Object value : input) { if (value == null) { builder....
@SuppressWarnings(STR) static JsonArray function(JsonProvider provider, Object[] input) { JsonArrayBuilder builder = provider.createArrayBuilder(); if (input != null) { for (Object value : input) { if (value == null) { builder.addNull(); } else if (value instanceof IData[] value instanceof Table value instanceof IDataC...
/** * Converts an Object[] to a JSON array. * * @param input An Object[] to be converted. * @return A JSON array. */
Converts an Object[] to a JSON array
toJsonArray
{ "repo_name": "Permafrost/Tundra.java", "path": "src/main/java/permafrost/tundra/data/IDataJSONParser.java", "license": "mit", "size": 13920 }
[ "com.wm.data.IData", "com.wm.data.IDataPortable", "com.wm.util.Table", "com.wm.util.coder.IDataCodable", "com.wm.util.coder.ValuesCodable", "java.math.BigDecimal", "java.math.BigInteger", "javax.json.JsonArray", "javax.json.JsonArrayBuilder", "javax.json.spi.JsonProvider" ]
import com.wm.data.IData; import com.wm.data.IDataPortable; import com.wm.util.Table; import com.wm.util.coder.IDataCodable; import com.wm.util.coder.ValuesCodable; import java.math.BigDecimal; import java.math.BigInteger; import javax.json.JsonArray; import javax.json.JsonArrayBuilder; import javax.json.spi.JsonProvid...
import com.wm.data.*; import com.wm.util.*; import com.wm.util.coder.*; import java.math.*; import javax.json.*; import javax.json.spi.*;
[ "com.wm.data", "com.wm.util", "java.math", "javax.json" ]
com.wm.data; com.wm.util; java.math; javax.json;
296,819
protected void initBinder(final HttpServletRequest request, final ServletRequestDataBinder binder) { binder.setRequiredFields("renew"); }
void function(final HttpServletRequest request, final ServletRequestDataBinder binder) { binder.setRequiredFields("renew"); }
/** * Inits the binder with the required fields. <code>renew</code> is required. * * @param request the request * @param binder the binder */
Inits the binder with the required fields. <code>renew</code> is required
initBinder
{ "repo_name": "eBaoTech/cas", "path": "cas-server-webapp-support/src/main/java/org/jasig/cas/web/ServiceValidateController.java", "license": "apache-2.0", "size": 17011 }
[ "javax.servlet.http.HttpServletRequest", "org.springframework.web.bind.ServletRequestDataBinder" ]
import javax.servlet.http.HttpServletRequest; import org.springframework.web.bind.ServletRequestDataBinder;
import javax.servlet.http.*; import org.springframework.web.bind.*;
[ "javax.servlet", "org.springframework.web" ]
javax.servlet; org.springframework.web;
1,317,048
public NFEnviaEventoRetorno cancelaNota(final String chave, final String numeroProtocolo, final String motivo) throws Exception { return this.wsCancelamento.cancelaNota(chave, numeroProtocolo, motivo); }
NFEnviaEventoRetorno function(final String chave, final String numeroProtocolo, final String motivo) throws Exception { return this.wsCancelamento.cancelaNota(chave, numeroProtocolo, motivo); }
/** * Faz o cancelamento da nota * @param chave chave de acesso da nota * @param numeroProtocolo numero do protocolo da nota * @param motivo motivo do cancelamento * @return dados do cancelamento da nota retornado pelo webservice * @throws Exception caso nao consiga gerar o xml ou problema...
Faz o cancelamento da nota
cancelaNota
{ "repo_name": "jefperito/nfe", "path": "src/main/java/com/fincatto/documentofiscal/nfe310/webservices/WSFacade.java", "license": "apache-2.0", "size": 14488 }
[ "com.fincatto.documentofiscal.nfe310.classes.evento.NFEnviaEventoRetorno" ]
import com.fincatto.documentofiscal.nfe310.classes.evento.NFEnviaEventoRetorno;
import com.fincatto.documentofiscal.nfe310.classes.evento.*;
[ "com.fincatto.documentofiscal" ]
com.fincatto.documentofiscal;
1,221,248
return abstractGeneralConversion; } /** * Sets the value of the abstractGeneralConversion property. * * @param value * allowed object is * {@link JAXBElement }{@code <}{@link AbstractGeneralConversionType }{@code >} * {@link JAXBElement }{@code <}{@link ConversionType...
return abstractGeneralConversion; } /** * Sets the value of the abstractGeneralConversion property. * * @param value * allowed object is * {@link JAXBElement }{@code <}{@link AbstractGeneralConversionType }{@code >} * {@link JAXBElement }{@code <}{@link ConversionType }{@code >}
/** * Gets the value of the abstractGeneralConversion property. * * @return * possible object is * {@link JAXBElement }{@code <}{@link AbstractGeneralConversionType }{@code >} * {@link JAXBElement }{@code <}{@link ConversionType }{@code >} * */
Gets the value of the abstractGeneralConversion property
getAbstractGeneralConversion
{ "repo_name": "anu-doi/anudc", "path": "DataCommons/src/main/java/net/opengis/gml/GeneralConversionPropertyType.java", "license": "gpl-3.0", "size": 8509 }
[ "javax.xml.bind.JAXBElement" ]
import javax.xml.bind.JAXBElement;
import javax.xml.bind.*;
[ "javax.xml" ]
javax.xml;
1,778,576
public static String getAsString(Email email) throws IOException, MessagingException, EmailException { email.buildMimeMessage(); return(getAsString(email.getMimeMessage())); }
static String function(Email email) throws IOException, MessagingException, EmailException { email.buildMimeMessage(); return(getAsString(email.getMimeMessage())); }
/** * This method is like a toString for Email objects. */
This method is like a toString for Email objects
getAsString
{ "repo_name": "williamgrosset/OSCAR-ConCert", "path": "src/main/java/org/oscarehr/util/EmailUtilsOld.java", "license": "gpl-2.0", "size": 9510 }
[ "java.io.IOException", "javax.mail.MessagingException", "org.apache.commons.mail.Email", "org.apache.commons.mail.EmailException" ]
import java.io.IOException; import javax.mail.MessagingException; import org.apache.commons.mail.Email; import org.apache.commons.mail.EmailException;
import java.io.*; import javax.mail.*; import org.apache.commons.mail.*;
[ "java.io", "javax.mail", "org.apache.commons" ]
java.io; javax.mail; org.apache.commons;
1,336,527
final Application application = ApplicationManager.getApplication(); return application == null ? null : application.getComponent(EditorFactory.class); }
final Application application = ApplicationManager.getApplication(); return application == null ? null : application.getComponent(EditorFactory.class); }
/** * Returns the editor factory instance. * * @return the editor factory instance. */
Returns the editor factory instance
getInstance
{ "repo_name": "liveqmock/platform-tools-idea", "path": "platform/platform-api/src/com/intellij/openapi/editor/EditorFactory.java", "license": "apache-2.0", "size": 7489 }
[ "com.intellij.openapi.application.Application", "com.intellij.openapi.application.ApplicationManager" ]
import com.intellij.openapi.application.Application; import com.intellij.openapi.application.ApplicationManager;
import com.intellij.openapi.application.*;
[ "com.intellij.openapi" ]
com.intellij.openapi;
2,009,111
public void evaluate(final MultivariateFunction evaluationFunction, final Comparator<PointValuePair> comparator) { // Evaluate the objective function at all non-evaluated simplex points. for (int i = 0; i < simplex.length; i++) { final PointValuePair vertex = sim...
void function(final MultivariateFunction evaluationFunction, final Comparator<PointValuePair> comparator) { for (int i = 0; i < simplex.length; i++) { final PointValuePair vertex = simplex[i]; final double[] point = vertex.getPointRef(); if (Double.isNaN(vertex.getValue())) { simplex[i] = new PointValuePair(point, eval...
/** * Evaluate all the non-evaluated points of the simplex. * * @param evaluationFunction Evaluation function. * @param comparator Comparator to use to sort simplex vertices from best to worst. * @throws org.apache.commons.math3.exception.TooManyEvaluationsException * if the maximal number...
Evaluate all the non-evaluated points of the simplex
evaluate
{ "repo_name": "happyjack27/autoredistrict", "path": "src/org/apache/commons/math3/optimization/direct/AbstractSimplex.java", "license": "gpl-3.0", "size": 13020 }
[ "java.util.Arrays", "java.util.Comparator", "org.apache.commons.math3.analysis.MultivariateFunction", "org.apache.commons.math3.optimization.PointValuePair" ]
import java.util.Arrays; import java.util.Comparator; import org.apache.commons.math3.analysis.MultivariateFunction; import org.apache.commons.math3.optimization.PointValuePair;
import java.util.*; import org.apache.commons.math3.analysis.*; import org.apache.commons.math3.optimization.*;
[ "java.util", "org.apache.commons" ]
java.util; org.apache.commons;
1,239,854
public String getOrganizerDisplayName() { // Profile organizer = ofy().load().key(Key.create(Profile.class, organizerUserId)).now(); Profile organizer = ofy().load().key(getProfileKey()).now(); if (organizer == null) { return organizerUserId; } else { return o...
String function() { Profile organizer = ofy().load().key(getProfileKey()).now(); if (organizer == null) { return organizerUserId; } else { return organizer.getDisplayName(); } }
/** * Returns organizer's display name. * * @return organizer's display name. If there is no Profile, return his/her userId. */
Returns organizer's display name
getOrganizerDisplayName
{ "repo_name": "niddhogg/gapi_practice4.2", "path": "src/main/java/com/google/devrel/training/conference/domain/Conference.java", "license": "apache-2.0", "size": 8506 }
[ "com.google.devrel.training.conference.service.OfyService" ]
import com.google.devrel.training.conference.service.OfyService;
import com.google.devrel.training.conference.service.*;
[ "com.google.devrel" ]
com.google.devrel;
2,816,207
@NotNull PsiDocComment createDocCommentFromText(@NotNull String docCommentText) throws IncorrectOperationException;
PsiDocComment createDocCommentFromText(@NotNull String docCommentText) throws IncorrectOperationException;
/** * Creates a JavaDoc comment from the specified text. * * @param docCommentText the text of the JavaDoc comment. * @return the created comment. * @throws IncorrectOperationException if the text of the comment is not valid. */
Creates a JavaDoc comment from the specified text
createDocCommentFromText
{ "repo_name": "goodwinnk/intellij-community", "path": "java/java-psi-api/src/com/intellij/psi/PsiJavaParserFacade.java", "license": "apache-2.0", "size": 10808 }
[ "com.intellij.psi.javadoc.PsiDocComment", "com.intellij.util.IncorrectOperationException", "org.jetbrains.annotations.NotNull" ]
import com.intellij.psi.javadoc.PsiDocComment; import com.intellij.util.IncorrectOperationException; import org.jetbrains.annotations.NotNull;
import com.intellij.psi.javadoc.*; import com.intellij.util.*; import org.jetbrains.annotations.*;
[ "com.intellij.psi", "com.intellij.util", "org.jetbrains.annotations" ]
com.intellij.psi; com.intellij.util; org.jetbrains.annotations;
296,520
private void assertReadNothing(boolean formatRequired) { clearFormatHolderAndInputBuffer(); int result = sampleQueue.read( formatHolder, inputBuffer, formatRequired ? SampleStream.FLAG_REQUIRE_FORMAT : 0, false); assertThat(result).isEqualTo(RESULT_...
void function(boolean formatRequired) { clearFormatHolderAndInputBuffer(); int result = sampleQueue.read( formatHolder, inputBuffer, formatRequired ? SampleStream.FLAG_REQUIRE_FORMAT : 0, false); assertThat(result).isEqualTo(RESULT_NOTHING_READ); assertThat(formatHolder.format).isNull(); assertInputBufferContainsNoSamp...
/** * Asserts {@link SampleQueue#read} returns {@link C#RESULT_NOTHING_READ}. * * @param formatRequired The value of {@code formatRequired} passed to {@link SampleQueue#read}. */
Asserts <code>SampleQueue#read</code> returns <code>C#RESULT_NOTHING_READ</code>
assertReadNothing
{ "repo_name": "ened/ExoPlayer", "path": "library/core/src/test/java/com/google/android/exoplayer2/source/SampleQueueTest.java", "license": "apache-2.0", "size": 67405 }
[ "com.google.common.truth.Truth" ]
import com.google.common.truth.Truth;
import com.google.common.truth.*;
[ "com.google.common" ]
com.google.common;
720,875
public List<TldExtensionType<FunctionType<T>>> getAllFunctionExtension() { List<TldExtensionType<FunctionType<T>>> list = new ArrayList<TldExtensionType<FunctionType<T>>>(); List<Node> nodeList = childNode.get("function-extension"); for(Node node: nodeList) { TldExtensionType<Func...
List<TldExtensionType<FunctionType<T>>> function() { List<TldExtensionType<FunctionType<T>>> list = new ArrayList<TldExtensionType<FunctionType<T>>>(); List<Node> nodeList = childNode.get(STR); for(Node node: nodeList) { TldExtensionType<FunctionType<T>> type = new TldExtensionTypeImpl<FunctionType<T>>(this, STR, child...
/** * Returns all <code>function-extension</code> elements * @return list of <code>function-extension</code> */
Returns all <code>function-extension</code> elements
getAllFunctionExtension
{ "repo_name": "forge/javaee-descriptors", "path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/jsptaglibrary21/FunctionTypeImpl.java", "license": "epl-1.0", "size": 15198 }
[ "java.util.ArrayList", "java.util.List", "org.jboss.shrinkwrap.descriptor.api.jsptaglibrary21.FunctionType", "org.jboss.shrinkwrap.descriptor.api.jsptaglibrary21.TldExtensionType", "org.jboss.shrinkwrap.descriptor.spi.node.Node" ]
import java.util.ArrayList; import java.util.List; import org.jboss.shrinkwrap.descriptor.api.jsptaglibrary21.FunctionType; import org.jboss.shrinkwrap.descriptor.api.jsptaglibrary21.TldExtensionType; import org.jboss.shrinkwrap.descriptor.spi.node.Node;
import java.util.*; import org.jboss.shrinkwrap.descriptor.api.jsptaglibrary21.*; import org.jboss.shrinkwrap.descriptor.spi.node.*;
[ "java.util", "org.jboss.shrinkwrap" ]
java.util; org.jboss.shrinkwrap;
1,474,718
public DataSink<String> writeAsFormattedText(String filePath, TextFormatter<T> formatter) { return map(new FormattingMapper<>(clean(formatter))).writeAsText(filePath); }
DataSink<String> function(String filePath, TextFormatter<T> formatter) { return map(new FormattingMapper<>(clean(formatter))).writeAsText(filePath); }
/** * Writes a DataSet as text file(s) to the specified location. * * <p>For each element of the DataSet the result of {@link TextFormatter#format(Object)} is written. * * @param filePath The path pointing to the location the text file is written to. * @param formatter formatter that is applied on every ele...
Writes a DataSet as text file(s) to the specified location. For each element of the DataSet the result of <code>TextFormatter#format(Object)</code> is written
writeAsFormattedText
{ "repo_name": "xiaokuangkuang/kuangjingxiangmu", "path": "flink-java/src/main/java/org/apache/flink/api/java/DataSet.java", "license": "apache-2.0", "size": 80579 }
[ "org.apache.flink.api.java.functions.FormattingMapper", "org.apache.flink.api.java.io.TextOutputFormat", "org.apache.flink.api.java.operators.DataSink" ]
import org.apache.flink.api.java.functions.FormattingMapper; import org.apache.flink.api.java.io.TextOutputFormat; import org.apache.flink.api.java.operators.DataSink;
import org.apache.flink.api.java.functions.*; import org.apache.flink.api.java.io.*; import org.apache.flink.api.java.operators.*;
[ "org.apache.flink" ]
org.apache.flink;
442,119
@Override public void setData(Map<String,Object> value) { set(10, value); }
void function(Map<String,Object> value) { set(10, value); }
/** * Setter for <code>cattle.service.data</code>. */
Setter for <code>cattle.service.data</code>
setData
{ "repo_name": "rancherio/cattle", "path": "modules/model/src/main/java/io/cattle/platform/core/model/tables/records/ServiceRecord.java", "license": "apache-2.0", "size": 23432 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
806,133
protected IFeedRecords doSearch(HttpServletRequest request, HttpServletResponse response, RequestContext context, RestQuery query) throws Exception { MessageBroker msgBroker = new FacesContextBroker(request, response).extractMessageBroker(); final Map<DiscoveredRecord, Map<String, List<String>>> mapping = new...
IFeedRecords function(HttpServletRequest request, HttpServletResponse response, RequestContext context, RestQuery query) throws Exception { MessageBroker msgBroker = new FacesContextBroker(request, response).extractMessageBroker(); final Map<DiscoveredRecord, Map<String, List<String>>> mapping = new HashMap<DiscoveredR...
/** * Performs search operation. * @param request HTTP servlet request * @param response HTTP servlet response * @param context request context * @param query query * @return records * @throws Exception if searching fails */
Performs search operation
doSearch
{ "repo_name": "psanyal/geoportal-server", "path": "geoportal/src/com/esri/gpt/control/georss/JsonSearchEngine.java", "license": "apache-2.0", "size": 11466 }
[ "com.esri.gpt.catalog.discovery.DiscoveredRecord", "com.esri.gpt.catalog.discovery.rest.RestQuery", "com.esri.gpt.catalog.lucene.LuceneQueryAdapter", "com.esri.gpt.framework.context.RequestContext", "com.esri.gpt.framework.jsf.FacesContextBroker", "com.esri.gpt.framework.jsf.MessageBroker", "com.esri.gp...
import com.esri.gpt.catalog.discovery.DiscoveredRecord; import com.esri.gpt.catalog.discovery.rest.RestQuery; import com.esri.gpt.catalog.lucene.LuceneQueryAdapter; import com.esri.gpt.framework.context.RequestContext; import com.esri.gpt.framework.jsf.FacesContextBroker; import com.esri.gpt.framework.jsf.MessageBroker...
import com.esri.gpt.catalog.discovery.*; import com.esri.gpt.catalog.discovery.rest.*; import com.esri.gpt.catalog.lucene.*; import com.esri.gpt.framework.context.*; import com.esri.gpt.framework.jsf.*; import com.esri.gpt.framework.util.*; import java.util.*; import javax.servlet.http.*;
[ "com.esri.gpt", "java.util", "javax.servlet" ]
com.esri.gpt; java.util; javax.servlet;
745,088
public Timestamp toTimestampBin(TimeZone tz, byte[] bytes, boolean timestamptz) throws PSQLException { ParsedBinaryTimestamp parsedTimestamp = this.toParsedTimestampBin(tz, bytes, timestamptz); if (parsedTimestamp.infinity == Infinity.POSITIVE) { return new Timestamp(PGStatement.DATE_POSITIVE_INF...
Timestamp function(TimeZone tz, byte[] bytes, boolean timestamptz) throws PSQLException { ParsedBinaryTimestamp parsedTimestamp = this.toParsedTimestampBin(tz, bytes, timestamptz); if (parsedTimestamp.infinity == Infinity.POSITIVE) { return new Timestamp(PGStatement.DATE_POSITIVE_INFINITY); } else if (parsedTimestamp.i...
/** * Returns the SQL Timestamp object matching the given bytes with {@link Oid#TIMESTAMP} or * {@link Oid#TIMESTAMPTZ}. * * @param tz The timezone used when received data is {@link Oid#TIMESTAMP}, ignored if data * already contains {@link Oid#TIMESTAMPTZ}. * @param bytes The binary encoded tim...
Returns the SQL Timestamp object matching the given bytes with <code>Oid#TIMESTAMP</code> or <code>Oid#TIMESTAMPTZ</code>
toTimestampBin
{ "repo_name": "jamesthomp/pgjdbc", "path": "pgjdbc/src/main/java/org/postgresql/jdbc/TimestampUtils.java", "license": "bsd-2-clause", "size": 40884 }
[ "java.sql.Timestamp", "java.util.TimeZone", "org.postgresql.PGStatement", "org.postgresql.util.PSQLException" ]
import java.sql.Timestamp; import java.util.TimeZone; import org.postgresql.PGStatement; import org.postgresql.util.PSQLException;
import java.sql.*; import java.util.*; import org.postgresql.*; import org.postgresql.util.*;
[ "java.sql", "java.util", "org.postgresql", "org.postgresql.util" ]
java.sql; java.util; org.postgresql; org.postgresql.util;
949,694
private void reportRequiredError() { error(new ValidationError().addKey("Required")); }
void function() { error(new ValidationError().addKey(STR)); }
/** * Reports required error against this component */
Reports required error against this component
reportRequiredError
{ "repo_name": "martin-g/wicket-osgi", "path": "wicket-core/src/main/java/org/apache/wicket/markup/html/form/FormComponent.java", "license": "apache-2.0", "size": 40127 }
[ "org.apache.wicket.validation.ValidationError" ]
import org.apache.wicket.validation.ValidationError;
import org.apache.wicket.validation.*;
[ "org.apache.wicket" ]
org.apache.wicket;
792,468
return getVehiclesInUse(null, null, null); } /** * <p>Fetch all vehicles in use data which match the input constraints.</p> * * @param regions * the regions * @param typesOfVehicles * the types of vehicles * @param years * the years ...
return getVehiclesInUse(null, null, null); } /** * <p>Fetch all vehicles in use data which match the input constraints.</p> * * @param regions * the regions * @param typesOfVehicles * the types of vehicles * @param years * the years * @return the data wrapped in a list of * {@link com.github.dannil.scbjavaclient.model....
/** * <p>Fetch all vehicles in use data.</p> * * @return the data wrapped in a list of * {@link com.github.dannil.scbjavaclient.model.ResponseModel ResponseModel} * objects * * @see #getVehiclesInUse(Collection, Collection, Collection) */
Fetch all vehicles in use data
getVehiclesInUse
{ "repo_name": "dannil/scb-java-client", "path": "src/main/java/com/github/dannil/scbjavaclient/client/transport/registeredvehicles/vehicles/TransportRegisteredVehiclesVehiclesClient.java", "license": "apache-2.0", "size": 7184 }
[ "com.github.dannil.scbjavaclient.model.ResponseModel" ]
import com.github.dannil.scbjavaclient.model.ResponseModel;
import com.github.dannil.scbjavaclient.model.*;
[ "com.github.dannil" ]
com.github.dannil;
317,773
@Test public void testInvalidRetrieveWithIncompatibleQueryConfiguration() { final DbDataRetriever db = Util.create(c, "tidaTestData"); thrown.expect(DataRetrieverException.class); thrown.expectMessage(CoreMatchers.containsString("class '" + DbDataRetriever.class.getName() + "' does not support a quer...
void function() { final DbDataRetriever db = Util.create(c, STR); thrown.expect(DataRetrieverException.class); thrown.expectMessage(CoreMatchers.containsString(STR + DbDataRetriever.class.getName() + STR + TestDbDataRetriever.class.getName() + "$1'")); db.retrieve(new IQueryConfiguration() { }); }
/** * Tests the definition using an invalid configuration. */
Tests the definition using an invalid configuration
testInvalidRetrieveWithIncompatibleQueryConfiguration
{ "repo_name": "pmeisen/dis-timeintervaldataanalyzer", "path": "test/net/meisen/dissertation/impl/dataretriever/TestDbDataRetriever.java", "license": "bsd-3-clause", "size": 8789 }
[ "net.meisen.dissertation.exceptions.DataRetrieverException", "net.meisen.dissertation.impl.dataretriever.DbDataRetriever", "net.meisen.dissertation.model.dataretriever.IQueryConfiguration", "org.hamcrest.CoreMatchers" ]
import net.meisen.dissertation.exceptions.DataRetrieverException; import net.meisen.dissertation.impl.dataretriever.DbDataRetriever; import net.meisen.dissertation.model.dataretriever.IQueryConfiguration; import org.hamcrest.CoreMatchers;
import net.meisen.dissertation.exceptions.*; import net.meisen.dissertation.impl.dataretriever.*; import net.meisen.dissertation.model.dataretriever.*; import org.hamcrest.*;
[ "net.meisen.dissertation", "org.hamcrest" ]
net.meisen.dissertation; org.hamcrest;
2,684,758
private void setNetworkInterface (String netAddr) throws UnknownHostException, SocketException { Pattern pattern = Pattern.compile("\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}"); InetAddress addr = InetAddress.getByName(netAddr); this.networkAddress = addr; if (pattern.matcher(netAddr)...
void function (String netAddr) throws UnknownHostException, SocketException { Pattern pattern = Pattern.compile(STR); InetAddress addr = InetAddress.getByName(netAddr); this.networkAddress = addr; if (pattern.matcher(netAddr).matches()) { this.networkInterface = NetworkInterface.getByInetAddress(addr); } else { this.ne...
/** * Specifies the local interface to receive multicast datagram packets, or * <code>null</code> to defer to the interface set by * {@link MulticastSocket#setInterface(InetAddress)} or * {@link MulticastSocket#setNetworkInterface(NetworkInterface)}. * * @param netAddr * L...
Specifies the local interface to receive multicast datagram packets, or <code>null</code> to defer to the interface set by <code>MulticastSocket#setInterface(InetAddress)</code> or <code>MulticastSocket#setNetworkInterface(NetworkInterface)</code>
setNetworkInterface
{ "repo_name": "Awax56/Toolbox", "path": "src/main/java/org/jls/toolbox/net/Interface.java", "license": "mit", "size": 9583 }
[ "java.net.InetAddress", "java.net.NetworkInterface", "java.net.SocketException", "java.net.UnknownHostException", "java.util.regex.Pattern" ]
import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.net.UnknownHostException; import java.util.regex.Pattern;
import java.net.*; import java.util.regex.*;
[ "java.net", "java.util" ]
java.net; java.util;
2,701,311
public List<Blog> selectPublicBlogs() throws SQLException { Connection conn = null; PreparedStatement stmt = null; ResultSet rs = null; List<Blog> blogs = Lists.newArrayListWithExpectedSize(4); Timer.Context ctx = metrics.selectBlogsTimer.time(); try { conn = connectionS...
List<Blog> function() throws SQLException { Connection conn = null; PreparedStatement stmt = null; ResultSet rs = null; List<Blog> blogs = Lists.newArrayListWithExpectedSize(4); Timer.Context ctx = metrics.selectBlogsTimer.time(); try { conn = connectionSupplier.getConnection(); stmt = conn.prepareStatement(selectPubli...
/** * Selects all public, enabled blogs. * @return The list of blogs. * @throws SQLException on database error. */
Selects all public, enabled blogs
selectPublicBlogs
{ "repo_name": "attribyte/wpdb", "path": "src/main/java/org/attribyte/wp/db/DB.java", "license": "apache-2.0", "size": 100265 }
[ "com.codahale.metrics.Timer", "com.google.common.collect.Lists", "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "java.util.List", "org.attribyte.util.SQLUtil", "org.attribyte.wp.model.Blog" ]
import com.codahale.metrics.Timer; import com.google.common.collect.Lists; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.attribyte.util.SQLUtil; import org.attribyte.wp.model.Blog;
import com.codahale.metrics.*; import com.google.common.collect.*; import java.sql.*; import java.util.*; import org.attribyte.util.*; import org.attribyte.wp.model.*;
[ "com.codahale.metrics", "com.google.common", "java.sql", "java.util", "org.attribyte.util", "org.attribyte.wp" ]
com.codahale.metrics; com.google.common; java.sql; java.util; org.attribyte.util; org.attribyte.wp;
1,187,432
public void initialize(final Context context) { if (!inited.compareAndSet(false, true)) { return; }
void function(final Context context) { if (!inited.compareAndSet(false, true)) { return; }
/** * Ensure that you call this early in your application startup, * and with a context that's sufficiently long-lived (typically * the application context). * * Calling multiple times is harmless. */
Ensure that you call this early in your application startup, and with a context that's sufficiently long-lived (typically the application context). Calling multiple times is harmless
initialize
{ "repo_name": "layely/focus-android", "path": "app/src/main/java/org/mozilla/focus/locale/LocaleManager.java", "license": "mpl-2.0", "size": 12003 }
[ "android.content.Context" ]
import android.content.Context;
import android.content.*;
[ "android.content" ]
android.content;
2,542,355
public String mePostCall(SelfUserRegistrationRequest user, Map<String, String> headers) throws ApiException { Object localVarPostBody = user; // verify the required parameter 'user' is set if (user == null) { throw new ApiException(400, "Missing the required parameter 'user' whe...
String function(SelfUserRegistrationRequest user, Map<String, String> headers) throws ApiException { Object localVarPostBody = user; if (user == null) { throw new ApiException(400, STR); } String tenantDomain = MultitenantConstants.SUPER_TENANT_DOMAIN_NAME; if (StringUtils.isNotBlank(user.getUser().getTenantDomain())) ...
/** * This API is used to user self registration. * * @param user It can be sent optional property parameters over email based on email template. (required) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */
This API is used to user self registration
mePostCall
{ "repo_name": "omindu/carbon-identity-framework", "path": "components/identity-mgt/org.wso2.carbon.identity.mgt.endpoint.util/src/main/java/org/wso2/carbon/identity/mgt/endpoint/util/client/api/SelfRegisterApi.java", "license": "apache-2.0", "size": 12662 }
[ "com.sun.jersey.api.client.GenericType", "java.util.ArrayList", "java.util.HashMap", "java.util.List", "java.util.Map", "org.apache.commons.lang.StringUtils", "org.wso2.carbon.base.MultitenantConstants", "org.wso2.carbon.identity.mgt.endpoint.util.IdentityManagementEndpointConstants", "org.wso2.carb...
import com.sun.jersey.api.client.GenericType; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.wso2.carbon.base.MultitenantConstants; import org.wso2.carbon.identity.mgt.endpoint.util.IdentityManagementEndpointConst...
import com.sun.jersey.api.client.*; import java.util.*; import org.apache.commons.lang.*; import org.wso2.carbon.base.*; import org.wso2.carbon.identity.mgt.endpoint.util.*; import org.wso2.carbon.identity.mgt.endpoint.util.client.*; import org.wso2.carbon.identity.mgt.endpoint.util.client.model.*;
[ "com.sun.jersey", "java.util", "org.apache.commons", "org.wso2.carbon" ]
com.sun.jersey; java.util; org.apache.commons; org.wso2.carbon;
2,292,607
private void askForAdbRestart(ITaskMonitor monitor) { final boolean[] canRestart = new boolean[] { true };
void function(ITaskMonitor monitor) { final boolean[] canRestart = new boolean[] { true };
/** * Attempts to restart ADB. * <p/> * If the "ask before restart" setting is set (the default), prompt the user whether * now is a good time to restart ADB. * * @param monitor */
Attempts to restart ADB. If the "ask before restart" setting is set (the default), prompt the user whether now is a good time to restart ADB
askForAdbRestart
{ "repo_name": "rex-xxx/mt6572_x201", "path": "sdk/sdkmanager/libs/sdkuilib/src/com/android/sdkuilib/internal/repository/UpdaterData.java", "license": "gpl-2.0", "size": 45714 }
[ "com.android.sdklib.internal.repository.ITaskMonitor" ]
import com.android.sdklib.internal.repository.ITaskMonitor;
import com.android.sdklib.internal.repository.*;
[ "com.android.sdklib" ]
com.android.sdklib;
880,975
public boolean isFogged(Vector2i tilePosition) { return this.foggedTiles[tilePosition.x][tilePosition.y]; }
boolean function(Vector2i tilePosition) { return this.foggedTiles[tilePosition.x][tilePosition.y]; }
/** * Determine if a tile is fogged. * * @param tilePosition the tile position * @return True if fogged, False otherwise */
Determine if a tile is fogged
isFogged
{ "repo_name": "TiWinDeTea/Raoul-the-Game", "path": "src/main/java/com/github/tiwindetea/raoulthegame/view/TileMap.java", "license": "mpl-2.0", "size": 23912 }
[ "com.github.tiwindetea.raoulthegame.model.space.Vector2i" ]
import com.github.tiwindetea.raoulthegame.model.space.Vector2i;
import com.github.tiwindetea.raoulthegame.model.space.*;
[ "com.github.tiwindetea" ]
com.github.tiwindetea;
260,580
public void onNavigateUp() { File parentDir = null; if(mDirectory != null) { parentDir = mDirectory.getParentFile(); // can be null } listDirectory(parentDir); // restore index and top position restoreIndexAndTopPosition(); }
void function() { File parentDir = null; if(mDirectory != null) { parentDir = mDirectory.getParentFile(); } listDirectory(parentDir); restoreIndexAndTopPosition(); }
/** * Call this, when the user presses the up button */
Call this, when the user presses the up button
onNavigateUp
{ "repo_name": "duke8804/Iluq-Cloud", "path": "src/com/owncloud/android/ui/fragment/LocalFileListFragment.java", "license": "gpl-2.0", "size": 8747 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,000,110
private boolean isIntfEnabled(K8sNode k8sNode, String intf) { return deviceService.isAvailable(k8sNode.tunBridge()) && deviceService.getPorts(k8sNode.tunBridge()).stream() .anyMatch(port -> Objects.equals( port.annotations().value(PORT_...
boolean function(K8sNode k8sNode, String intf) { return deviceService.isAvailable(k8sNode.tunBridge()) && deviceService.getPorts(k8sNode.tunBridge()).stream() .anyMatch(port -> Objects.equals( port.annotations().value(PORT_NAME), intf) && port.isEnabled()); }
/** * Checks whether a given network interface in a given kubernetes node * is enabled or not. * * @param k8sNode kubernetes node * @param intf network interface name * @return true if the given interface is enabled, false otherwise */
Checks whether a given network interface in a given kubernetes node is enabled or not
isIntfEnabled
{ "repo_name": "gkatsikas/onos", "path": "apps/k8s-node/app/src/main/java/org/onosproject/k8snode/impl/DefaultK8sNodeHandler.java", "license": "apache-2.0", "size": 34942 }
[ "java.util.Objects", "org.onosproject.k8snode.api.K8sNode" ]
import java.util.Objects; import org.onosproject.k8snode.api.K8sNode;
import java.util.*; import org.onosproject.k8snode.api.*;
[ "java.util", "org.onosproject.k8snode" ]
java.util; org.onosproject.k8snode;
1,629,424
private static boolean overlapsOrTouches(Position gap, int offset, int length) { return gap.getOffset() <= offset + length && offset <= gap.getOffset() + gap.getLength(); }
static boolean function(Position gap, int offset, int length) { return gap.getOffset() <= offset + length && offset <= gap.getOffset() + gap.getLength(); }
/** * Returns <code>true</code> if the given ranges overlap with or touch each other. * * @param gap the first range * @param offset the offset of the second range * @param length the length of the second range * @return <code>true</code> if the given ranges overlap with or touch each othe...
Returns <code>true</code> if the given ranges overlap with or touch each other
overlapsOrTouches
{ "repo_name": "gazarenkov/che-sketch", "path": "ide/che-core-ide-api/src/main/java/org/eclipse/che/ide/api/editor/partition/DefaultPartitioner.java", "license": "epl-1.0", "size": 16432 }
[ "org.eclipse.che.ide.api.editor.text.Position" ]
import org.eclipse.che.ide.api.editor.text.Position;
import org.eclipse.che.ide.api.editor.text.*;
[ "org.eclipse.che" ]
org.eclipse.che;
1,587,178
public void langRefresh() { setText(Main.i18n("logout.label")); text.setText(Main.i18n("logout.logout")); button.setText(Main.i18n("button.close")); }
void function() { setText(Main.i18n(STR)); text.setText(Main.i18n(STR)); button.setText(Main.i18n(STR)); }
/** * Lang refresh */
Lang refresh
langRefresh
{ "repo_name": "codelibs/n2dms", "path": "src/main/java/com/openkm/frontend/client/widget/LogoutPopup.java", "license": "gpl-2.0", "size": 5149 }
[ "com.openkm.frontend.client.Main" ]
import com.openkm.frontend.client.Main;
import com.openkm.frontend.client.*;
[ "com.openkm.frontend" ]
com.openkm.frontend;
41,689
boolean replaces(@Nullable LookupExtractorFactory other);
boolean replaces(@Nullable LookupExtractorFactory other);
/** * Determine if this LookupExtractorFactory should replace some other LookupExtractorFactory. * This is used to implement no-down-time * @param other Some other LookupExtractorFactory which might need replaced * @return `true` if the other should be replaced by this one. `false` if this one should not re...
Determine if this LookupExtractorFactory should replace some other LookupExtractorFactory. This is used to implement no-down-time
replaces
{ "repo_name": "pdeva/druid", "path": "processing/src/main/java/io/druid/query/lookup/LookupExtractorFactory.java", "license": "apache-2.0", "size": 2662 }
[ "javax.annotation.Nullable" ]
import javax.annotation.Nullable;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
1,619,532
@Test public void testComponentLookup() throws Exception { Deployer deployer = getService( Deployer.class ); assertNotNull( deployer ); }
void function() throws Exception { Deployer deployer = getService( Deployer.class ); assertNotNull( deployer ); }
/** * Test if Sisu can load deployer component. * * @throws Exception */
Test if Sisu can load deployer component
testComponentLookup
{ "repo_name": "fedora-java/xmvn", "path": "xmvn-core/src/test/java/org/fedoraproject/xmvn/deployer/BasicDeployerTest.java", "license": "apache-2.0", "size": 7742 }
[ "org.junit.jupiter.api.Assertions" ]
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.*;
[ "org.junit.jupiter" ]
org.junit.jupiter;
353,890
SourceDirectorySet getGroovy();
SourceDirectorySet getGroovy();
/** * Returns the source to be compiled by the Groovy compiler for this source set. Any Java source present in this set * will be passed to the Groovy compiler for joint compilation. * * @return The Groovy/Java source. Never returns null. */
Returns the source to be compiled by the Groovy compiler for this source set. Any Java source present in this set will be passed to the Groovy compiler for joint compilation
getGroovy
{ "repo_name": "gstevey/gradle", "path": "subprojects/plugins/src/main/java/org/gradle/api/tasks/GroovySourceSet.java", "license": "apache-2.0", "size": 2151 }
[ "org.gradle.api.file.SourceDirectorySet" ]
import org.gradle.api.file.SourceDirectorySet;
import org.gradle.api.file.*;
[ "org.gradle.api" ]
org.gradle.api;
215,996
boolean canInteractWith(Player player);
boolean canInteractWith(Player player);
/** * Gets whether the specified player can interact with this object. * * @param player the Player wishing to interact with this Inventory * @return true if the Entity is able to interact with this Inventory */
Gets whether the specified player can interact with this object
canInteractWith
{ "repo_name": "JBYoshi/SpongeAPI", "path": "src/main/java/org/spongepowered/api/item/inventory/type/Interactable.java", "license": "mit", "size": 1839 }
[ "org.spongepowered.api.entity.living.player.Player" ]
import org.spongepowered.api.entity.living.player.Player;
import org.spongepowered.api.entity.living.player.*;
[ "org.spongepowered.api" ]
org.spongepowered.api;
275,234
private static void inspectCompNodes(Element root, List<String> attrValuesList) { assert (root != null); assert (attrValuesList != null); assert (attrValuesList.isEmpty()); for (Element circElt : XmlIterator.forChildElements(root, "circuit")) { // In circuits, we have to look for components, then take...
static void function(Element root, List<String> attrValuesList) { assert (root != null); assert (attrValuesList != null); assert (attrValuesList.isEmpty()); for (Element circElt : XmlIterator.forChildElements(root, STR)) { for (Element compElt : XmlIterator .forChildElements(circElt, "comp")) { if (compElt.hasAttribute...
/** * Check XML's comp nodes, and return a list of values corresponding to the * desired attribute. The checked comp nodes are NOT those referring to * circuits -- we can see if this is the case by checking whether the lib * attribute is present or not. * * @param root * XML's root * @param ...
Check XML's comp nodes, and return a list of values corresponding to the desired attribute. The checked comp nodes are NOT those referring to circuits -- we can see if this is the case by checking whether the lib attribute is present or not
inspectCompNodes
{ "repo_name": "uocxp/logisim-evolution", "path": "src/com/cburch/logisim/file/XmlReader.java", "license": "gpl-3.0", "size": 37815 }
[ "java.util.List", "org.w3c.dom.Element" ]
import java.util.List; import org.w3c.dom.Element;
import java.util.*; import org.w3c.dom.*;
[ "java.util", "org.w3c.dom" ]
java.util; org.w3c.dom;
2,397,526
public static void send(final InternalDistributedMember recipient, final int processorId, final DistributionManager dm, Set keys) throws ForceReattemptException { Assert.assertTrue(recipient != null, "FetchKeysReplyMessage NULL reply message"); final int numSeries = 1; final int seriesNu...
static void function(final InternalDistributedMember recipient, final int processorId, final DistributionManager dm, Set keys) throws ForceReattemptException { Assert.assertTrue(recipient != null, STR); final int numSeries = 1; final int seriesNum = 0; if (logger.isDebugEnabled()) { logger.debug(STR, keys.size(), recip...
/** * Send an ack * * @throws ForceReattemptException if the peer is no longer available */
Send an ack
send
{ "repo_name": "smgoller/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/partitioned/FetchKeysMessage.java", "license": "apache-2.0", "size": 22458 }
[ "java.util.Set", "org.apache.geode.distributed.internal.DistributionManager", "org.apache.geode.distributed.internal.membership.InternalDistributedMember", "org.apache.geode.internal.Assert", "org.apache.geode.internal.cache.ForceReattemptException", "org.apache.geode.internal.cache.InitialImageOperation"...
import java.util.Set; import org.apache.geode.distributed.internal.DistributionManager; import org.apache.geode.distributed.internal.membership.InternalDistributedMember; import org.apache.geode.internal.Assert; import org.apache.geode.internal.cache.ForceReattemptException; import org.apache.geode.internal.cache.Initi...
import java.util.*; import org.apache.geode.distributed.internal.*; import org.apache.geode.distributed.internal.membership.*; import org.apache.geode.internal.*; import org.apache.geode.internal.cache.*; import org.apache.geode.internal.util.*;
[ "java.util", "org.apache.geode" ]
java.util; org.apache.geode;
2,352,848