method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public void addCrashSectionCallable(String sectionName, Callable<String> callable)
{
try
{
this.addCrashSection(sectionName, callable.call());
}
catch (Throwable throwable)
{
this.addCrashSectionThrowable(sectionName, throwable);
}
} | void function(String sectionName, Callable<String> callable) { try { this.addCrashSection(sectionName, callable.call()); } catch (Throwable throwable) { this.addCrashSectionThrowable(sectionName, throwable); } } | /**
* Adds a Crashreport section with the given name with the value set to the result of the given Callable;
*/ | Adds a Crashreport section with the given name with the value set to the result of the given Callable | addCrashSectionCallable | {
"repo_name": "dogjaw2233/tiu-s-mod",
"path": "build/tmp/recompileMc/sources/net/minecraft/crash/CrashReportCategory.java",
"license": "lgpl-2.1",
"size": 10639
} | [
"java.util.concurrent.Callable"
] | import java.util.concurrent.Callable; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 1,484,617 |
TileCode getCode(); | TileCode getCode(); | /**
* Return the unique {@link TileCode} for this tile.
*
* @return tile code
*/ | Return the unique <code>TileCode</code> for this tile | getCode | {
"repo_name": "geomajas/geomajas-project-client-gwt",
"path": "client/src/main/java/org/geomajas/gwt/client/map/cache/tile/Tile.java",
"license": "agpl-3.0",
"size": 1096
} | [
"org.geomajas.layer.tile.TileCode"
] | import org.geomajas.layer.tile.TileCode; | import org.geomajas.layer.tile.*; | [
"org.geomajas.layer"
] | org.geomajas.layer; | 804,865 |
public Node firstChild() {
Node result = firstChild(currentNode);
if (result != null) {
currentNode = result;
}
return result;
} | Node function() { Node result = firstChild(currentNode); if (result != null) { currentNode = result; } return result; } | /**
* <b>DOM</b>: Implements {@link TreeWalker#firstChild()}.
*/ | DOM: Implements <code>TreeWalker#firstChild()</code> | firstChild | {
"repo_name": "shyamalschandra/flex-sdk",
"path": "modules/thirdparty/batik/sources/org/apache/flex/forks/batik/dom/traversal/DOMTreeWalker.java",
"license": "apache-2.0",
"size": 10742
} | [
"org.w3c.dom.Node"
] | import org.w3c.dom.Node; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 2,826,345 |
@CLIResolver
public static AbstractItem resolveForCLI(
@Argument(required=true,metaVar="NAME",usage="Job name") String name) throws CmdLineException {
AbstractItem item = Jenkins.getInstance().getItemByFullName(name, AbstractItem.class);
if (item==null)
throw new CmdLineE... | static AbstractItem function( @Argument(required=true,metaVar="NAME",usage=STR) String name) throws CmdLineException { AbstractItem item = Jenkins.getInstance().getItemByFullName(name, AbstractItem.class); if (item==null) throw new CmdLineException(null,Messages.AbstractItem_NoSuchJobExists(name,AbstractProject.findNea... | /**
* Used for CLI binding.
*/ | Used for CLI binding | resolveForCLI | {
"repo_name": "lvotypko/jenkins2",
"path": "core/src/main/java/hudson/model/AbstractItem.java",
"license": "mit",
"size": 20828
} | [
"hudson.util.AlternativeUiTextProvider",
"org.kohsuke.args4j.Argument",
"org.kohsuke.args4j.CmdLineException"
] | import hudson.util.AlternativeUiTextProvider; import org.kohsuke.args4j.Argument; import org.kohsuke.args4j.CmdLineException; | import hudson.util.*; import org.kohsuke.args4j.*; | [
"hudson.util",
"org.kohsuke.args4j"
] | hudson.util; org.kohsuke.args4j; | 2,700,231 |
public void setEmployeePersistence(EmployeePersistence employeePersistence) {
this.employeePersistence = employeePersistence;
} | void function(EmployeePersistence employeePersistence) { this.employeePersistence = employeePersistence; } | /**
* Sets the employee persistence.
*
* @param employeePersistence the employee persistence
*/ | Sets the employee persistence | setEmployeePersistence | {
"repo_name": "openegovplatform/OEPv2",
"path": "oep-usermgt-portlet/docroot/WEB-INF/src/org/oep/usermgt/service/base/Jobpos2RoleServiceBaseImpl.java",
"license": "apache-2.0",
"size": 23413
} | [
"org.oep.usermgt.service.persistence.EmployeePersistence"
] | import org.oep.usermgt.service.persistence.EmployeePersistence; | import org.oep.usermgt.service.persistence.*; | [
"org.oep.usermgt"
] | org.oep.usermgt; | 1,976,843 |
public KoralObject parseQueryNode(QueryNode queryNode)
throws KoralException {
if (queryNode instanceof QuerySegment) {
return parseQuerySegment((QuerySegment) queryNode);
}
else if (queryNode instanceof QueryGroup) {
return parseQueryGroup((QueryGroup) q... | KoralObject function(QueryNode queryNode) throws KoralException { if (queryNode instanceof QuerySegment) { return parseQuerySegment((QuerySegment) queryNode); } else if (queryNode instanceof QueryGroup) { return parseQueryGroup((QueryGroup) queryNode); } else if (queryNode instanceof QuerySequence) { return parseSequen... | /** Parses the given query node according to its type.
* @param queryNode an FCS a query node
* @return a koral object
* @throws KoralException
*/ | Parses the given query node according to its type | parseQueryNode | {
"repo_name": "KorAP/Koral",
"path": "src/main/java/de/ids_mannheim/korap/query/parse/fcsql/FCSSRUQueryParser.java",
"license": "bsd-2-clause",
"size": 12202
} | [
"de.ids_mannheim.korap.query.object.KoralObject",
"de.ids_mannheim.korap.query.serialize.util.KoralException",
"de.ids_mannheim.korap.query.serialize.util.StatusCodes",
"eu.clarin.sru.server.fcs.parser.QueryDisjunction",
"eu.clarin.sru.server.fcs.parser.QueryGroup",
"eu.clarin.sru.server.fcs.parser.QueryN... | import de.ids_mannheim.korap.query.object.KoralObject; import de.ids_mannheim.korap.query.serialize.util.KoralException; import de.ids_mannheim.korap.query.serialize.util.StatusCodes; import eu.clarin.sru.server.fcs.parser.QueryDisjunction; import eu.clarin.sru.server.fcs.parser.QueryGroup; import eu.clarin.sru.server.... | import de.ids_mannheim.korap.query.object.*; import de.ids_mannheim.korap.query.serialize.util.*; import eu.clarin.sru.server.fcs.parser.*; | [
"de.ids_mannheim.korap",
"eu.clarin.sru"
] | de.ids_mannheim.korap; eu.clarin.sru; | 2,433,317 |
public static double calcESS(List<Double> fTrace) {
return calcESS(fTrace.toArray(new Double[0]), 1);
} | static double function(List<Double> fTrace) { return calcESS(fTrace.toArray(new Double[0]), 1); } | /**
* return ESS time of a sample, batch version.
* Can be used to calculate effective sample size
*
* @param fTrace: values from which the ACT is calculated
* @param nSampleInterval time between samples *
*/ | return ESS time of a sample, batch version. Can be used to calculate effective sample size | calcESS | {
"repo_name": "rbouckaert/YABBY",
"path": "src/yabby/yabby/core/util/ESS.java",
"license": "lgpl-3.0",
"size": 11484
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,093,839 |
@Test
public void testSearchForUnknownAttributes() throws Exception
{
SearchControls controls = new SearchControls();
controls.setSearchScope( SearchControls.ONELEVEL_SCOPE );
Map<String, Attributes> persons = new HashMap<String, Attributes>();
controls.setReturningAttributes... | void function() throws Exception { SearchControls controls = new SearchControls(); controls.setSearchScope( SearchControls.ONELEVEL_SCOPE ); Map<String, Attributes> persons = new HashMap<String, Attributes>(); controls.setReturningAttributes( new String[] { "9.9.9" } ); NamingEnumeration<SearchResult> results = getSyst... | /**
* Doing a search with filtering attributes should work even if the attribute
* is not valid
*
* @throws NamingException on error
*/ | Doing a search with filtering attributes should work even if the attribute is not valid | testSearchForUnknownAttributes | {
"repo_name": "drankye/directory-server",
"path": "core-integ/src/test/java/org/apache/directory/server/core/schema/SchemaServiceIT.java",
"license": "apache-2.0",
"size": 43020
} | [
"java.util.HashMap",
"java.util.Map",
"javax.naming.NamingEnumeration",
"javax.naming.directory.Attributes",
"javax.naming.directory.SearchControls",
"javax.naming.directory.SearchResult",
"org.apache.directory.server.core.integ.IntegrationUtils",
"org.junit.Assert"
] | import java.util.HashMap; import java.util.Map; import javax.naming.NamingEnumeration; import javax.naming.directory.Attributes; import javax.naming.directory.SearchControls; import javax.naming.directory.SearchResult; import org.apache.directory.server.core.integ.IntegrationUtils; import org.junit.Assert; | import java.util.*; import javax.naming.*; import javax.naming.directory.*; import org.apache.directory.server.core.integ.*; import org.junit.*; | [
"java.util",
"javax.naming",
"org.apache.directory",
"org.junit"
] | java.util; javax.naming; org.apache.directory; org.junit; | 210,003 |
public List<VirtualArrayRestRep> findByInitiatorPort(String initiatorPort,
ResourceFilter<VirtualArrayRestRep> filter) {
return search().byInitiatorPort(initiatorPort).filter(filter).run();
} | List<VirtualArrayRestRep> function(String initiatorPort, ResourceFilter<VirtualArrayRestRep> filter) { return search().byInitiatorPort(initiatorPort).filter(filter).run(); } | /**
* Finds the list of virtual arrays connected to the given initiator port, optionally filtering the results. This is
* a convenience method for <tt>search().byInitiatorPort(initiatorPort).filter(filter).run()</tt>
*
* @param initiatorPort
* the initiator port.
* @param filte... | Finds the list of virtual arrays connected to the given initiator port, optionally filtering the results. This is a convenience method for search().byInitiatorPort(initiatorPort).filter(filter).run() | findByInitiatorPort | {
"repo_name": "emcvipr/controller-client-java",
"path": "client/src/main/java/com/emc/vipr/client/core/VirtualArrays.java",
"license": "apache-2.0",
"size": 15986
} | [
"com.emc.storageos.model.varray.VirtualArrayRestRep",
"com.emc.vipr.client.core.filters.ResourceFilter",
"java.util.List"
] | import com.emc.storageos.model.varray.VirtualArrayRestRep; import com.emc.vipr.client.core.filters.ResourceFilter; import java.util.List; | import com.emc.storageos.model.varray.*; import com.emc.vipr.client.core.filters.*; import java.util.*; | [
"com.emc.storageos",
"com.emc.vipr",
"java.util"
] | com.emc.storageos; com.emc.vipr; java.util; | 2,813,921 |
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mContext = this;
getFragmentManager().beginTransaction()
.replace(android.R.id.content, new SettingsFragment())
.commit();
} | void function(Bundle savedInstanceState) { super.onCreate(savedInstanceState); mContext = this; getFragmentManager().beginTransaction() .replace(android.R.id.content, new SettingsFragment()) .commit(); } | /**
* Display the settings fragment
*/ | Display the settings fragment | onCreate | {
"repo_name": "nathan-osman/chronosnap",
"path": "app/src/main/java/com/nathanosman/chronosnap/preference/SettingsActivity.java",
"license": "mit",
"size": 3799
} | [
"android.os.Bundle"
] | import android.os.Bundle; | import android.os.*; | [
"android.os"
] | android.os; | 1,748,077 |
public static Object getValue(Object model, String fieldName) {
boolean isAccessible = false;
try {
Field field = model.getClass().getDeclaredField(fieldName);
isAccessible = field.isAccessible();
try {
field.setAccessible(true);
return field.get(model);
... | static Object function(Object model, String fieldName) { boolean isAccessible = false; try { Field field = model.getClass().getDeclaredField(fieldName); isAccessible = field.isAccessible(); try { field.setAccessible(true); return field.get(model); } finally { field.setAccessible(isAccessible); } } catch (Exception ne) ... | /**
* Returns the value of the field of the given object with the given name, or <code>null</code>
* if no such field exists or the field has a <code>null</code> value
* @param model
* @param fieldName
* @return
*/ | Returns the value of the field of the given object with the given name, or <code>null</code> if no such field exists or the field has a <code>null</code> value | getValue | {
"repo_name": "AnthonyHullDiamond/scanning",
"path": "org.eclipse.scanning.api/src/org/eclipse/scanning/api/device/models/ModelReflection.java",
"license": "epl-1.0",
"size": 2344
} | [
"java.lang.reflect.Field"
] | import java.lang.reflect.Field; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 1,128,969 |
public DistributedFileSystem getFileSystem() throws IOException {
checkSingleNameNode();
return getFileSystem(0);
} | DistributedFileSystem function() throws IOException { checkSingleNameNode(); return getFileSystem(0); } | /**
* Get a client handle to the DFS cluster with a single namenode.
*/ | Get a client handle to the DFS cluster with a single namenode | getFileSystem | {
"repo_name": "littlezhou/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java",
"license": "apache-2.0",
"size": 119212
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,811,271 |
public void setMaximum(boolean b) throws PropertyVetoException
{
if (b != isMaximum())
{
fireVetoableChange(IS_MAXIMUM_PROPERTY, b, isMaximum);
isMaximum = b;
if (b)
setNormalBounds(getBounds());
maxTransition = ! b;
firePropertyChange(IS_MAXIMUM_PROPERTY, ! isMaximum, isMaximum);
maxTransition =... | void function(boolean b) throws PropertyVetoException { if (b != isMaximum()) { fireVetoableChange(IS_MAXIMUM_PROPERTY, b, isMaximum); isMaximum = b; if (b) setNormalBounds(getBounds()); maxTransition = ! b; firePropertyChange(IS_MAXIMUM_PROPERTY, ! isMaximum, isMaximum); maxTransition = false; } } | /**
* This method sets the JInternalFrame to maximized (if the given argument
* is true) or restores the JInternalFrame to its normal bounds otherwise.
*
* @param b Whether this JInteralFrame will be maximized or restored.
*
* @throws PropertyVetoException If a VetoableChangeListener vetoes the change... | This method sets the JInternalFrame to maximized (if the given argument is true) or restores the JInternalFrame to its normal bounds otherwise | setMaximum | {
"repo_name": "unofficial-opensource-apple/gcc_40",
"path": "libjava/javax/swing/JInternalFrame.java",
"license": "gpl-2.0",
"size": 45360
} | [
"java.beans.PropertyVetoException"
] | import java.beans.PropertyVetoException; | import java.beans.*; | [
"java.beans"
] | java.beans; | 2,311,999 |
public OAuthHmacCredential load10aCredential(String userId) throws IOException {
if (getCredentialStore() == null) {
return null;
}
OAuthHmacCredential credential = new10aCredential(userId);
if (!getCredentialStore().load(userId, credential)) {
return null;
... | OAuthHmacCredential function(String userId) throws IOException { if (getCredentialStore() == null) { return null; } OAuthHmacCredential credential = new10aCredential(userId); if (!getCredentialStore().load(userId, credential)) { return null; } return credential; } | /**
* Loads the OAuth 1.0a credential of the given user ID from the credential
* store.
*
* @param userId user ID or {@code null} if not using a persisted credential
* store
* @return OAuth 1.0a credential found in the credential store of the given
* user ID or {@c... | Loads the OAuth 1.0a credential of the given user ID from the credential store | load10aCredential | {
"repo_name": "agilie/dribbble-android-sdk",
"path": "dribbble-sdk-library/src/main/java/com/agilie/dribbblesdk/oAuth/AuthorizationFlow.java",
"license": "mit",
"size": 22575
} | [
"com.agilie.dribbblesdk.oAuth.oauth.OAuthHmacCredential",
"java.io.IOException"
] | import com.agilie.dribbblesdk.oAuth.oauth.OAuthHmacCredential; import java.io.IOException; | import com.agilie.dribbblesdk.*; import java.io.*; | [
"com.agilie.dribbblesdk",
"java.io"
] | com.agilie.dribbblesdk; java.io; | 2,503,639 |
public Cursor swapCursor(Cursor newCursor) {
if (newCursor == mCursor) {
return null;
}
final Cursor oldCursor = mCursor;
if (oldCursor != null && mDataSetObserver != null) {
oldCursor.unregisterDataSetObserver(mDataSetObserver);
}
mCursor = ne... | Cursor function(Cursor newCursor) { if (newCursor == mCursor) { return null; } final Cursor oldCursor = mCursor; if (oldCursor != null && mDataSetObserver != null) { oldCursor.unregisterDataSetObserver(mDataSetObserver); } mCursor = newCursor; if (mCursor != null) { if (mDataSetObserver != null) { mCursor.registerDataS... | /**
* Swap in a new Cursor, returning the old Cursor. Unlike
* {@link #changeCursor(Cursor)}, the returned old Cursor is <em>not</em>
* closed.
*/ | Swap in a new Cursor, returning the old Cursor. Unlike <code>#changeCursor(Cursor)</code>, the returned old Cursor is not closed | swapCursor | {
"repo_name": "amuttsch/i-owe-u",
"path": "app/src/main/java/de/amuttsch/ioweu/app/ui/adapter/CursorRecyclerViewAdapter.java",
"license": "gpl-3.0",
"size": 4591
} | [
"android.database.Cursor"
] | import android.database.Cursor; | import android.database.*; | [
"android.database"
] | android.database; | 617,413 |
public BusinessObjectService getBusinessObjectService() {
businessObjectService = KraServiceLocator.getService(BusinessObjectService.class);
return businessObjectService;
} | BusinessObjectService function() { businessObjectService = KraServiceLocator.getService(BusinessObjectService.class); return businessObjectService; } | /**
* Gets the businessObjectService attribute.
* @return Returns the businessObjectService.
*/ | Gets the businessObjectService attribute | getBusinessObjectService | {
"repo_name": "vivantech/kc_fixes",
"path": "src/main/java/org/kuali/kra/timeandmoney/web/struts/action/TimeAndMoneyAction.java",
"license": "apache-2.0",
"size": 75923
} | [
"org.kuali.kra.infrastructure.KraServiceLocator",
"org.kuali.rice.krad.service.BusinessObjectService"
] | import org.kuali.kra.infrastructure.KraServiceLocator; import org.kuali.rice.krad.service.BusinessObjectService; | import org.kuali.kra.infrastructure.*; import org.kuali.rice.krad.service.*; | [
"org.kuali.kra",
"org.kuali.rice"
] | org.kuali.kra; org.kuali.rice; | 1,398,053 |
public BingAutoSuggestSearchAPIImpl withGenerateClientRequestId(boolean generateClientRequestId) {
this.generateClientRequestId = generateClientRequestId;
return this;
}
private BingAutoSuggestSearch bingAutoSuggestSearch; | BingAutoSuggestSearchAPIImpl function(boolean generateClientRequestId) { this.generateClientRequestId = generateClientRequestId; return this; } private BingAutoSuggestSearch bingAutoSuggestSearch; | /**
* Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
* @param generateClientRequestId the generateClientRequestId value.
* @return the service client itself
*/ | Sets When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true | withGenerateClientRequestId | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/cognitiveservices/ms-azure-cs-autosuggest/src/main/java/com/microsoft/azure/cognitiveservices/search/autosuggest/implementation/BingAutoSuggestSearchAPIImpl.java",
"license": "mit",
"size": 5626
} | [
"com.microsoft.azure.cognitiveservices.search.autosuggest.BingAutoSuggestSearch"
] | import com.microsoft.azure.cognitiveservices.search.autosuggest.BingAutoSuggestSearch; | import com.microsoft.azure.cognitiveservices.search.autosuggest.*; | [
"com.microsoft.azure"
] | com.microsoft.azure; | 380,927 |
@GET
@Path( "{id: \\d+}")
@Produces( { MediaType.APPLICATION_JSON } )
public Response getClienteName( @QueryParam("id") Long id) {
RotondAndesTM tm = new RotondAndesTM(getPath());
List<Cliente> clientes;
try {
if (id == null)
throw new Exception("Id del cliente no valido");
clientes = tm.buscarCli... | @Path( STR) @Produces( { MediaType.APPLICATION_JSON } ) Response function( @QueryParam("id") Long id) { RotondAndesTM tm = new RotondAndesTM(getPath()); List<Cliente> clientes; try { if (id == null) throw new Exception(STR); clientes = tm.buscarClientesPorName(id); } catch (Exception e) { return Response.status(500).en... | /**
* Metodo que expone servicio REST usando GET que busca el cliente con el nombre que entra como parametro
* <b>URL: </b> http://"ip o nombre de host":8080/ClienteAndes/rest/clientes/nombre/nombre?nombre=<<nombre>>" para la busqueda"
* @param id - Nombre del cliente a buscar que entra en la URL como pa... | Metodo que expone servicio REST usando GET que busca el cliente con el nombre que entra como parametro | getClienteName | {
"repo_name": "rafafor24/Iteracion_2",
"path": "src/rest/ClienteServices.java",
"license": "mit",
"size": 5467
} | [
"java.util.List",
"javax.ws.rs.Path",
"javax.ws.rs.Produces",
"javax.ws.rs.QueryParam",
"javax.ws.rs.core.MediaType",
"javax.ws.rs.core.Response"
] | import java.util.List; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; | import java.util.*; import javax.ws.rs.*; import javax.ws.rs.core.*; | [
"java.util",
"javax.ws"
] | java.util; javax.ws; | 2,911,631 |
public void init() throws ServletException {
// Put your code here
} | void function() throws ServletException { } | /**
* Initialization of the servlet. <br>
*
* @throws ServletException if an error occurs
*/ | Initialization of the servlet. | init | {
"repo_name": "zhuxiaocqu/WebStore",
"path": "src/com/webstore/servlet/back/employeemanager/ShowEmployeeServlet.java",
"license": "gpl-2.0",
"size": 3416
} | [
"javax.servlet.ServletException"
] | import javax.servlet.ServletException; | import javax.servlet.*; | [
"javax.servlet"
] | javax.servlet; | 1,404,487 |
public PDResources getResources()
{
if (resources == null)
{
COSDictionary resources = (COSDictionary) dict.getDictionaryObject(COSName.RESOURCES);
if (resources != null)
{
this.resources = new PDResources(resources);
}
}
... | PDResources function() { if (resources == null) { COSDictionary resources = (COSDictionary) dict.getDictionaryObject(COSName.RESOURCES); if (resources != null) { this.resources = new PDResources(resources); } } return resources; } | /**
* Returns the optional resources of the type3 stream.
*
* @return the resources bound to be used when parsing the type3 stream
*/ | Returns the optional resources of the type3 stream | getResources | {
"repo_name": "ChunghwaTelecom/pdfbox",
"path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/PDType3Font.java",
"license": "apache-2.0",
"size": 8815
} | [
"org.apache.pdfbox.cos.COSDictionary",
"org.apache.pdfbox.cos.COSName",
"org.apache.pdfbox.pdmodel.PDResources"
] | import org.apache.pdfbox.cos.COSDictionary; import org.apache.pdfbox.cos.COSName; import org.apache.pdfbox.pdmodel.PDResources; | import org.apache.pdfbox.cos.*; import org.apache.pdfbox.pdmodel.*; | [
"org.apache.pdfbox"
] | org.apache.pdfbox; | 1,777,630 |
public void writeDouble(double dub) throws TException {
byte[] data = new byte[]{0, 0, 0, 0, 0, 0, 0, 0};
fixedLongToBytes(Double.doubleToLongBits(dub), data, 0);
trans_.write(data);
} | void function(double dub) throws TException { byte[] data = new byte[]{0, 0, 0, 0, 0, 0, 0, 0}; fixedLongToBytes(Double.doubleToLongBits(dub), data, 0); trans_.write(data); } | /**
* Write a double to the wire as 8 bytes.
*/ | Write a double to the wire as 8 bytes | writeDouble | {
"repo_name": "rewardStyle/apache.thrift",
"path": "lib/java/src/org/apache/thrift/protocol/TCompactProtocol.java",
"license": "apache-2.0",
"size": 27552
} | [
"org.apache.thrift.TException"
] | import org.apache.thrift.TException; | import org.apache.thrift.*; | [
"org.apache.thrift"
] | org.apache.thrift; | 1,519,775 |
CallStackSample startCapture(); | CallStackSample startCapture(); | /**
* this method use for start to collect statistics
*/ | this method use for start to collect statistics | startCapture | {
"repo_name": "NineWoranop/loadtesting-kpi",
"path": "loadtesting/loadtesting-java/loadtesting-kpi/src/main/java/com/loadtesting/core/calltree/Capturer.java",
"license": "apache-2.0",
"size": 3629
} | [
"com.loadtesting.core.sample.CallStackSample"
] | import com.loadtesting.core.sample.CallStackSample; | import com.loadtesting.core.sample.*; | [
"com.loadtesting.core"
] | com.loadtesting.core; | 302,611 |
GsonBuilder builder = new GsonBuilder();
registerTypeAdapters(builder);
if (prettyPrint)
builder.setPrettyPrinting();
return builder.create();
} | GsonBuilder builder = new GsonBuilder(); registerTypeAdapters(builder); if (prettyPrint) builder.setPrettyPrinting(); return builder.create(); } | /**
* Creates a {@link com.google.gson.Gson} object that can be use to serialize and deserialize Java
* objects
*
* @param prettyPrint if true the JSON will be pretty printed
* @return the {@link Gson}
*/ | Creates a <code>com.google.gson.Gson</code> object that can be use to serialize and deserialize Java objects | createGson | {
"repo_name": "m2fd/java-sdk",
"path": "src/main/java/com/ibm/watson/developer_cloud/util/GsonSingleton.java",
"license": "apache-2.0",
"size": 2261
} | [
"com.google.gson.GsonBuilder"
] | import com.google.gson.GsonBuilder; | import com.google.gson.*; | [
"com.google.gson"
] | com.google.gson; | 2,715,740 |
public void setControllerShowTimeoutMs(int controllerShowTimeoutMs) {
Assertions.checkState(controller != null);
this.controllerShowTimeoutMs = controllerShowTimeoutMs;
} | void function(int controllerShowTimeoutMs) { Assertions.checkState(controller != null); this.controllerShowTimeoutMs = controllerShowTimeoutMs; } | /**
* Sets the playback controls timeout. The playback controls are automatically hidden after this
* duration of time has elapsed without user input and with playback or buffering in progress.
*
* @param controllerShowTimeoutMs The timeout in milliseconds. A non-positive value will cause
* the contr... | Sets the playback controls timeout. The playback controls are automatically hidden after this duration of time has elapsed without user input and with playback or buffering in progress | setControllerShowTimeoutMs | {
"repo_name": "JasonFengHot/ExoPlayerSource",
"path": "library/ui/src/main/java/com/google/android/exoplayer2/ui/SimpleExoPlayerView.java",
"license": "apache-2.0",
"size": 30063
} | [
"com.google.android.exoplayer2.util.Assertions"
] | import com.google.android.exoplayer2.util.Assertions; | import com.google.android.exoplayer2.util.*; | [
"com.google.android"
] | com.google.android; | 850,828 |
public BigDecimal getActualAmt();
public static final String COLUMNNAME_ActualQty = "ActualQty"; | BigDecimal function(); public static final String COLUMNNAME_ActualQty = STR; | /** Get Actual Amount.
* The actual amount
*/ | Get Actual Amount. The actual amount | getActualAmt | {
"repo_name": "arthurmelo88/palmetalADP",
"path": "adempiere_360/base/src/org/compiere/model/I_C_CommissionDetail.java",
"license": "gpl-2.0",
"size": 6964
} | [
"java.math.BigDecimal"
] | import java.math.BigDecimal; | import java.math.*; | [
"java.math"
] | java.math; | 1,707,249 |
protected Object buildMethodContext() throws ClassNotFoundException,
InstantiationException, IllegalAccessException,
InvocationTargetException, NoSuchFieldException {
// Class is not accessible, instantiate reflectively.
Class<?> methCtxClss = Class.forName("com.sun.tools.jav... | Object function() throws ClassNotFoundException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchFieldException { Class<?> methCtxClss = Class.forName(STR); Constructor<?> constructor = methCtxClss.getDeclaredConstructors()[0]; constructor.setAccessible(true); Object methodContext = con... | /**
* Build an instance of {@code Resolve$MethodResolutionContext}.
*/ | Build an instance of Resolve$MethodResolutionContext | buildMethodContext | {
"repo_name": "mikelikespie/bazel",
"path": "third_party/checker_framework_javacutil/java/org/checkerframework/javacutil/Resolver.java",
"license": "apache-2.0",
"size": 15539
} | [
"com.sun.tools.javac.comp.DeferredAttr",
"com.sun.tools.javac.util.List",
"java.lang.reflect.Constructor",
"java.lang.reflect.InvocationTargetException"
] | import com.sun.tools.javac.comp.DeferredAttr; import com.sun.tools.javac.util.List; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; | import com.sun.tools.javac.comp.*; import com.sun.tools.javac.util.*; import java.lang.reflect.*; | [
"com.sun.tools",
"java.lang"
] | com.sun.tools; java.lang; | 2,895,213 |
public static boolean isBeforeDay(Date date1, Date date2) {
if (date1 == null || date2 == null) {
throw new IllegalArgumentException("The dates must not be null");
}
Calendar cal1 = Calendar.getInstance();
cal1.setTime(date1);
Calendar cal2 = Calendar.getInstance(... | static boolean function(Date date1, Date date2) { if (date1 == null date2 == null) { throw new IllegalArgumentException(STR); } Calendar cal1 = Calendar.getInstance(); cal1.setTime(date1); Calendar cal2 = Calendar.getInstance(); cal2.setTime(date2); return isBeforeDay(cal1, cal2); } | /**
* <p>Checks if the first date is before the second date ignoring time.</p>
*
* @param date1 the first date, not altered, not null
* @param date2 the second date, not altered, not null
* @return true if the first date day is before the second date day.
* @throws IllegalArgumentException... | Checks if the first date is before the second date ignoring time | isBeforeDay | {
"repo_name": "sungerk/meiShi",
"path": "app/src/main/java/org/sunger/net/utils/DateUtils.java",
"license": "apache-2.0",
"size": 11747
} | [
"java.util.Calendar",
"java.util.Date"
] | import java.util.Calendar; import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 2,799,308 |
public TypeReference getTypeReference() {
return typeReference;
} | TypeReference function() { return typeReference; } | /**
* TODO: once the model gets JAXBContext, shouldn't {@link Bridge}s
* be made available from model objects?
*
* @return Returns the TypeReference associated with this Parameter
*/ | be made available from model objects | getTypeReference | {
"repo_name": "axDev-JDK/jaxws",
"path": "src/share/jaxws_classes/com/sun/xml/internal/ws/model/ParameterImpl.java",
"license": "gpl-2.0",
"size": 6085
} | [
"com.sun.xml.internal.bind.api.TypeReference"
] | import com.sun.xml.internal.bind.api.TypeReference; | import com.sun.xml.internal.bind.api.*; | [
"com.sun.xml"
] | com.sun.xml; | 809,071 |
public static boolean isPublicStatic(@Nonnull Field f) {
requireNonNull(f, "Argument 'field' must not be null");
final int modifiers = f.getModifiers();
return Modifier.isPublic(modifiers) && Modifier.isStatic(modifiers);
} | static boolean function(@Nonnull Field f) { requireNonNull(f, STR); final int modifiers = f.getModifiers(); return Modifier.isPublic(modifiers) && Modifier.isStatic(modifiers); } | /**
* Determine whether the field is declared public static
*
* @param f the field to be tested
* @return True if the field is declared public static
*/ | Determine whether the field is declared public static | isPublicStatic | {
"repo_name": "levymoreira/griffon",
"path": "subprojects/griffon-core/src/main/java/griffon/util/GriffonClassUtils.java",
"license": "apache-2.0",
"size": 129659
} | [
"java.lang.reflect.Field",
"java.lang.reflect.Modifier",
"java.util.Objects",
"javax.annotation.Nonnull"
] | import java.lang.reflect.Field; import java.lang.reflect.Modifier; import java.util.Objects; import javax.annotation.Nonnull; | import java.lang.reflect.*; import java.util.*; import javax.annotation.*; | [
"java.lang",
"java.util",
"javax.annotation"
] | java.lang; java.util; javax.annotation; | 235,185 |
@Override
protected final void emit_ldc(Offset offset, byte type) {
if (Statics.isReference(Statics.offsetAsSlot(offset))) {
asm.emitLAddrToc(T0, offset);
pushAddr(T0);
} else {
asm.emitLIntToc(T0, offset);
pushInt(T0);
}
} | final void function(Offset offset, byte type) { if (Statics.isReference(Statics.offsetAsSlot(offset))) { asm.emitLAddrToc(T0, offset); pushAddr(T0); } else { asm.emitLIntToc(T0, offset); pushInt(T0); } } | /**
* Emit code to load a 32 bit constant
* (which may be a reference and thus really 64 bits on 64 bit platform!)
* @param offset JTOC offset of the constant
* @param type the type of the constant
*/ | Emit code to load a 32 bit constant (which may be a reference and thus really 64 bits on 64 bit platform!) | emit_ldc | {
"repo_name": "ut-osa/laminar",
"path": "jikesrvm-3.0.0/rvm/src/org/jikesrvm/compilers/baseline/ppc/BaselineCompilerImpl.java",
"license": "bsd-3-clause",
"size": 181446
} | [
"org.jikesrvm.runtime.Statics",
"org.vmmagic.unboxed.Offset"
] | import org.jikesrvm.runtime.Statics; import org.vmmagic.unboxed.Offset; | import org.jikesrvm.runtime.*; import org.vmmagic.unboxed.*; | [
"org.jikesrvm.runtime",
"org.vmmagic.unboxed"
] | org.jikesrvm.runtime; org.vmmagic.unboxed; | 2,834,744 |
public ServiceFuture<OperationStatusResponseInner> powerOffAsync(String resourceGroupName, String vmScaleSetName, String instanceId, final ServiceCallback<OperationStatusResponseInner> serviceCallback) {
return ServiceFuture.fromResponse(powerOffWithServiceResponseAsync(resourceGroupName, vmScaleSetName, in... | ServiceFuture<OperationStatusResponseInner> function(String resourceGroupName, String vmScaleSetName, String instanceId, final ServiceCallback<OperationStatusResponseInner> serviceCallback) { return ServiceFuture.fromResponse(powerOffWithServiceResponseAsync(resourceGroupName, vmScaleSetName, instanceId), serviceCallba... | /**
* Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges.
*
* @param resourceGroupName The name of the resource group.
* @param vmScaleSetName The n... | Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you are getting charged for the resources. Instead, use deallocate to release resources and avoid charges | powerOffAsync | {
"repo_name": "martinsawicki/azure-sdk-for-java",
"path": "azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/implementation/VirtualMachineScaleSetVMsInner.java",
"license": "mit",
"size": 119180
} | [
"com.microsoft.rest.ServiceCallback",
"com.microsoft.rest.ServiceFuture"
] | import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 1,491,358 |
public void testGetRepeatedList() throws Exception {
TypicalData.Builder builder = TypicalData.newBuilder()
.addRepeatedInt32(1)
.addRepeatedInt32(2)
.addRepeatedInt32(3);
List<Integer> list = builder.getRepeatedInt32List();
assertEquals(3, list.size());
builder.setRepeatedInt3... | void function() throws Exception { TypicalData.Builder builder = TypicalData.newBuilder() .addRepeatedInt32(1) .addRepeatedInt32(2) .addRepeatedInt32(3); List<Integer> list = builder.getRepeatedInt32List(); assertEquals(3, list.size()); builder.setRepeatedInt32(1, 4); assertEquals(4, list.get(1).intValue()); builder.cl... | /**
* The returned list must be able to see edits to the internal list. However
* when the internal list is cleared the returned list maintains a view of the
* elements as they where before the clear.
*/ | The returned list must be able to see edits to the internal list. However when the internal list is cleared the returned list maintains a view of the elements as they where before the clear | testGetRepeatedList | {
"repo_name": "mway08/j2objc",
"path": "protobuf/tests/CompatibilityTest.java",
"license": "apache-2.0",
"size": 50755
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,664,846 |
//-------------------------------------------------------------< Import >---
public void importXml(SessionInfo sessionInfo, NodeId parentId, InputStream xmlStream, int uuidBehaviour) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, AccessDeniedEx... | void function(SessionInfo sessionInfo, NodeId parentId, InputStream xmlStream, int uuidBehaviour) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, AccessDeniedException, UnsupportedRepositoryOperationException, RepositoryException; | /**
* Imports the data present in the given <code>InputStream</code> into the
* persistent layer. Note, that the implementation is responsible for
* validating the data presented and for the integrity of the repository
* upon completion.
*
* @param sessionInfo
* @param parentId
*... | Imports the data present in the given <code>InputStream</code> into the persistent layer. Note, that the implementation is responsible for validating the data presented and for the integrity of the repository upon completion | importXml | {
"repo_name": "apache/jackrabbit",
"path": "jackrabbit-spi/src/main/java/org/apache/jackrabbit/spi/RepositoryService.java",
"license": "apache-2.0",
"size": 65221
} | [
"java.io.InputStream",
"javax.jcr.AccessDeniedException",
"javax.jcr.ItemExistsException",
"javax.jcr.PathNotFoundException",
"javax.jcr.RepositoryException",
"javax.jcr.UnsupportedRepositoryOperationException",
"javax.jcr.lock.LockException",
"javax.jcr.nodetype.ConstraintViolationException",
"java... | import java.io.InputStream; import javax.jcr.AccessDeniedException; import javax.jcr.ItemExistsException; import javax.jcr.PathNotFoundException; import javax.jcr.RepositoryException; import javax.jcr.UnsupportedRepositoryOperationException; import javax.jcr.lock.LockException; import javax.jcr.nodetype.ConstraintViola... | import java.io.*; import javax.jcr.*; import javax.jcr.lock.*; import javax.jcr.nodetype.*; import javax.jcr.version.*; | [
"java.io",
"javax.jcr"
] | java.io; javax.jcr; | 1,428,715 |
if (minOccurs == null) {
return new BigInteger("1");
} else {
return minOccurs;
}
}
/**
* Sets the value of the minOccurs property.
*
* @param value
* allowed object is {@link BigInteger } | if (minOccurs == null) { return new BigInteger("1"); } else { return minOccurs; } } /** * Sets the value of the minOccurs property. * * @param value * allowed object is {@link BigInteger } | /**
* Gets the value of the minOccurs property.
*
* @return possible object is {@link BigInteger }
*
*/ | Gets the value of the minOccurs property | getMinOccurs | {
"repo_name": "plasma-framework/plasma",
"path": "plasma-metamodel/src/main/java/org/plasma/xml/schema/Any.java",
"license": "apache-2.0",
"size": 2669
} | [
"java.math.BigInteger"
] | import java.math.BigInteger; | import java.math.*; | [
"java.math"
] | java.math; | 1,523,881 |
Collection<DataManipulator<?>> getManipulators(Vector3i position); | Collection<DataManipulator<?>> getManipulators(Vector3i position); | /**
* Gets an copied collection of all known {@link DataManipulator}s
* belonging to the block at the given position. An individual
* {@link DataManipulator} can be used for creating new data to replace
* on the block at the given position.
*
* @param position The position of the block
... | Gets an copied collection of all known <code>DataManipulator</code>s belonging to the block at the given position. An individual <code>DataManipulator</code> can be used for creating new data to replace on the block at the given position | getManipulators | {
"repo_name": "caseif/SpongeAPI",
"path": "src/main/java/org/spongepowered/api/world/extent/Extent.java",
"license": "mit",
"size": 33478
} | [
"com.flowpowered.math.vector.Vector3i",
"java.util.Collection",
"org.spongepowered.api.data.DataManipulator"
] | import com.flowpowered.math.vector.Vector3i; import java.util.Collection; import org.spongepowered.api.data.DataManipulator; | import com.flowpowered.math.vector.*; import java.util.*; import org.spongepowered.api.data.*; | [
"com.flowpowered.math",
"java.util",
"org.spongepowered.api"
] | com.flowpowered.math; java.util; org.spongepowered.api; | 1,601,460 |
void setKey(Data key, Object metadataKey); | void setKey(Data key, Object metadataKey); | /**
* Sets the new metadata key of the metadata associated with the key
* @param key the key
* @param metadataKey the matadata key
*/ | Sets the new metadata key of the metadata associated with the key | setKey | {
"repo_name": "emre-aydin/hazelcast",
"path": "hazelcast/src/main/java/com/hazelcast/map/impl/recordstore/JsonMetadataStore.java",
"license": "apache-2.0",
"size": 2047
} | [
"com.hazelcast.internal.serialization.Data"
] | import com.hazelcast.internal.serialization.Data; | import com.hazelcast.internal.serialization.*; | [
"com.hazelcast.internal"
] | com.hazelcast.internal; | 2,792,116 |
SSLContextParameters getSSLContextParameters(); | SSLContextParameters getSSLContextParameters(); | /**
* Gets the global SSL context parameters if configured.
*/ | Gets the global SSL context parameters if configured | getSSLContextParameters | {
"repo_name": "curso007/camel",
"path": "camel-core/src/main/java/org/apache/camel/CamelContext.java",
"license": "apache-2.0",
"size": 79052
} | [
"org.apache.camel.util.jsse.SSLContextParameters"
] | import org.apache.camel.util.jsse.SSLContextParameters; | import org.apache.camel.util.jsse.*; | [
"org.apache.camel"
] | org.apache.camel; | 686,617 |
@Override
public NodeManagerMetrics getNodeManagerMetrics() {
return metrics;
} | NodeManagerMetrics function() { return metrics; } | /**
* Returns the {@link NodeManagerMetrics} instance of this node.
* This might return a null if the instance was not set to the context.
* @return node manager metrics.
*/ | Returns the <code>NodeManagerMetrics</code> instance of this node. This might return a null if the instance was not set to the context | getNodeManagerMetrics | {
"repo_name": "GeLiXin/hadoop",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/NodeManager.java",
"license": "apache-2.0",
"size": 36227
} | [
"org.apache.hadoop.yarn.server.nodemanager.metrics.NodeManagerMetrics"
] | import org.apache.hadoop.yarn.server.nodemanager.metrics.NodeManagerMetrics; | import org.apache.hadoop.yarn.server.nodemanager.metrics.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,278,997 |
if (userTextBuffer == null) {
userTextBuffer = BufferFactory.newInstance(true).getUserTextBuffer();
}
return userTextBuffer;
}
| if (userTextBuffer == null) { userTextBuffer = BufferFactory.newInstance(true).getUserTextBuffer(); } return userTextBuffer; } | /**
* Uses an instance of the BufferFactory to get an object of UserTextBuffer. Only one UserTextBuffer object is necessary.
*
* @return The instance of UserTextBuffer is returned.
*/ | Uses an instance of the BufferFactory to get an object of UserTextBuffer. Only one UserTextBuffer object is necessary | getUserTextBuffer | {
"repo_name": "abassoftware/ajo-examples",
"path": "src/de/abas/examples/utilities/AbasDateUtilities.java",
"license": "epl-1.0",
"size": 15491
} | [
"de.abas.jfop.base.buffer.BufferFactory"
] | import de.abas.jfop.base.buffer.BufferFactory; | import de.abas.jfop.base.buffer.*; | [
"de.abas.jfop"
] | de.abas.jfop; | 1,608,598 |
public void setPropertyValueType(Enumerator newValue); | void function(Enumerator newValue); | /**
* Defines a new propertyValueType
* @param newValue the new propertyValueType to set
*
*/ | Defines a new propertyValueType | setPropertyValueType | {
"repo_name": "prabushi/devstudio-tooling-esb",
"path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src-gen/org/wso2/developerstudio/eclipse/gmf/esb/parts/LogPropertyPropertiesEditionPart.java",
"license": "apache-2.0",
"size": 1671
} | [
"org.eclipse.emf.common.util.Enumerator"
] | import org.eclipse.emf.common.util.Enumerator; | import org.eclipse.emf.common.util.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,630,423 |
@Override
public void translate(final ITranslationEnvironment environment, final IInstruction instruction,
final List<ReilInstruction> instructions) throws InternalTranslationException {
TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "LDR");
translateAll(environme... | void function(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException { TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "LDR"); translateAll(environment, instruction, "LDR", instructions... | /**
* LDR{<cond>} <Rd>, <addressing_mode>
*/ | LDR{} , | translate | {
"repo_name": "chubbymaggie/binnavi",
"path": "src/main/java/com/google/security/zynamics/reil/translators/arm/ARMLdrTranslator.java",
"license": "apache-2.0",
"size": 3169
} | [
"com.google.security.zynamics.reil.ReilInstruction",
"com.google.security.zynamics.reil.translators.ITranslationEnvironment",
"com.google.security.zynamics.reil.translators.InternalTranslationException",
"com.google.security.zynamics.reil.translators.TranslationHelpers",
"com.google.security.zynamics.zylib.... | import com.google.security.zynamics.reil.ReilInstruction; import com.google.security.zynamics.reil.translators.ITranslationEnvironment; import com.google.security.zynamics.reil.translators.InternalTranslationException; import com.google.security.zynamics.reil.translators.TranslationHelpers; import com.google.security.z... | import com.google.security.zynamics.reil.*; import com.google.security.zynamics.reil.translators.*; import com.google.security.zynamics.zylib.disassembly.*; import java.util.*; | [
"com.google.security",
"java.util"
] | com.google.security; java.util; | 1,828,696 |
public boolean containsAll(Collection<?> c) {
return (c instanceof Set)
? compareSets(al.getArray(), (Set<?>) c) >= 0
: al.containsAll(c);
} | boolean function(Collection<?> c) { return (c instanceof Set) ? compareSets(al.getArray(), (Set<?>) c) >= 0 : al.containsAll(c); } | /**
* Returns {@code true} if this set contains all of the elements of the
* specified collection. If the specified collection is also a set, this
* method returns {@code true} if it is a <i>subset</i> of this set.
*
* @param c collection to be checked for containment in this set
* @retu... | Returns true if this set contains all of the elements of the specified collection. If the specified collection is also a set, this method returns true if it is a subset of this set | containsAll | {
"repo_name": "md-5/jdk10",
"path": "src/java.base/share/classes/java/util/concurrent/CopyOnWriteArraySet.java",
"license": "gpl-2.0",
"size": 17746
} | [
"java.util.Collection",
"java.util.Set"
] | import java.util.Collection; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 2,470,050 |
public static long getNumericalValue(DataSource dts, int size,
boolean bigEndian) throws IOException {
byte[] b = dts.getData(size);
return getNumericalValue(b, bigEndian);
} | static long function(DataSource dts, int size, boolean bigEndian) throws IOException { byte[] b = dts.getData(size); return getNumericalValue(b, bigEndian); } | /**
* Returns a numerical value from a datasource
*
* @param dts
* @param size
* number of bytes to read
* @param bigEndian
* true if the bytes read are big endian.
* @return The number read from the datasource.
* @throws IOException
*/ | Returns a numerical value from a datasource | getNumericalValue | {
"repo_name": "doctorlard/metadata-extractor",
"path": "src/java/nz/govt/natlib/fx/FXUtil.java",
"license": "apache-2.0",
"size": 12482
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,971,454 |
private boolean hasSomeActiveAccount = false;
private void addAllAccounts() throws SameThreadException {
Log.d(THIS_FILE, "We are adding all accounts right now....");
boolean hasSomeSuccess = false;
Cursor c = getContentResolver().query(SipProfile.ACCOUNT_URI, DBProvider.ACCOUNT_FULL_PROJECTION,
SipProf... | boolean hasSomeActiveAccount = false; private void function() throws SameThreadException { Log.d(THIS_FILE, STR); boolean hasSomeSuccess = false; Cursor c = getContentResolver().query(SipProfile.ACCOUNT_URI, DBProvider.ACCOUNT_FULL_PROJECTION, SipProfile.FIELD_ACTIVE + "=?", new String[] {"1"}, null); if (c != null) { ... | /**
* Add accounts from database
*/ | Add accounts from database | addAllAccounts | {
"repo_name": "skadyrov/CSipSimple",
"path": "sipHome/src/main/java/com/csipsimple/service/SipService.java",
"license": "lgpl-3.0",
"size": 66153
} | [
"android.database.Cursor",
"com.csipsimple.api.SipProfile",
"com.csipsimple.db.DBProvider",
"com.csipsimple.utils.Log"
] | import android.database.Cursor; import com.csipsimple.api.SipProfile; import com.csipsimple.db.DBProvider; import com.csipsimple.utils.Log; | import android.database.*; import com.csipsimple.api.*; import com.csipsimple.db.*; import com.csipsimple.utils.*; | [
"android.database",
"com.csipsimple.api",
"com.csipsimple.db",
"com.csipsimple.utils"
] | android.database; com.csipsimple.api; com.csipsimple.db; com.csipsimple.utils; | 494,033 |
private void readGPOS() throws IOException {
OFTableName tableTag = OFTableName.GPOS;
// Initialize temporary state
initATState();
// Read glyph positioning (GPOS) table
OFDirTabEntry dirTab = otf.getDirectoryEntry(tableTag);
if (gpos != null) {
} else if (dirTab != null) {
otf.seek... | void function() throws IOException { OFTableName tableTag = OFTableName.GPOS; initATState(); OFDirTabEntry dirTab = otf.getDirectoryEntry(tableTag); if (gpos != null) { } else if (dirTab != null) { otf.seekTab(in, tableTag, 0); int version = in.readTTFLong(); int slo = in.readTTFUShort(); int flo = in.readTTFUShort(); ... | /**
* Read the GPOS table.
*
* @throws IOException
* In case of a I/O problem
*/ | Read the GPOS table | readGPOS | {
"repo_name": "jaredrummler/TrueTypeParser",
"path": "lib-truetypeparser/src/main/java/com/jaredrummler/fontreader/fonts/OTFAdvancedTypographicTableReader.java",
"license": "apache-2.0",
"size": 116263
} | [
"com.jaredrummler.fontreader.complexscripts.fonts.GlyphPositioningTable",
"com.jaredrummler.fontreader.truetype.OFDirTabEntry",
"com.jaredrummler.fontreader.truetype.OFTableName",
"java.io.IOException"
] | import com.jaredrummler.fontreader.complexscripts.fonts.GlyphPositioningTable; import com.jaredrummler.fontreader.truetype.OFDirTabEntry; import com.jaredrummler.fontreader.truetype.OFTableName; import java.io.IOException; | import com.jaredrummler.fontreader.complexscripts.fonts.*; import com.jaredrummler.fontreader.truetype.*; import java.io.*; | [
"com.jaredrummler.fontreader",
"java.io"
] | com.jaredrummler.fontreader; java.io; | 1,182,270 |
public void startQuery(Uri uri, String[] projection, String sortOrder) {
startQuery(-1, null, uri, projection, null, null, sortOrder);
} | void function(Uri uri, String[] projection, String sortOrder) { startQuery(-1, null, uri, projection, null, null, sortOrder); } | /**
* Begin an asynchronous query with the given arguments. When finished,
* {@link AsyncQueryListener#onQueryComplete(int, Object, Cursor)} is called
* if a valid {@link AsyncQueryListener} is present.
*/ | Begin an asynchronous query with the given arguments. When finished, <code>AsyncQueryListener#onQueryComplete(int, Object, Cursor)</code> is called if a valid <code>AsyncQueryListener</code> is present | startQuery | {
"repo_name": "underhilllabs/dccsched",
"path": "src/com/underhilllabs/dccsched/util/NotifyingAsyncQueryHandler.java",
"license": "apache-2.0",
"size": 4737
} | [
"android.net.Uri"
] | import android.net.Uri; | import android.net.*; | [
"android.net"
] | android.net; | 2,704,174 |
Collection<ProcessInstanceDesc> getProcessInstancesByVariable(String variableName, List<Integer> states, QueryContext queryContext); | Collection<ProcessInstanceDesc> getProcessInstancesByVariable(String variableName, List<Integer> states, QueryContext queryContext); | /**
* Returns process instance descriptions found for process instance that have defined given variable
* @param variableName name of the variable that process instance should have
* @param states A list of possible state (int) values that the {@link ProcessInstance} can have. If null will return only ac... | Returns process instance descriptions found for process instance that have defined given variable | getProcessInstancesByVariable | {
"repo_name": "lukenjmcd/jbpm",
"path": "jbpm-services/jbpm-services-api/src/main/java/org/jbpm/services/api/RuntimeDataService.java",
"license": "apache-2.0",
"size": 23582
} | [
"java.util.Collection",
"java.util.List",
"org.jbpm.services.api.model.ProcessInstanceDesc",
"org.kie.api.runtime.query.QueryContext"
] | import java.util.Collection; import java.util.List; import org.jbpm.services.api.model.ProcessInstanceDesc; import org.kie.api.runtime.query.QueryContext; | import java.util.*; import org.jbpm.services.api.model.*; import org.kie.api.runtime.query.*; | [
"java.util",
"org.jbpm.services",
"org.kie.api"
] | java.util; org.jbpm.services; org.kie.api; | 2,485,868 |
public void startReply()
throws IOException
{
writeVersion();
flushIfFull();
_buffer[_offset++] = (byte) 'R';
} | void function() throws IOException { writeVersion(); flushIfFull(); _buffer[_offset++] = (byte) 'R'; } | /**
* Starts the reply
*
* <p>A successful completion will have a single value:
*
* <pre>
* R
* </pre>
*/ | Starts the reply A successful completion will have a single value: <code> R </code> | startReply | {
"repo_name": "hhaip/langtaosha",
"path": "lts-hessian/src/main/java/com/caucho/hessian/io/Hessian2Output.java",
"license": "mit",
"size": 34747
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 783,560 |
private static File addFileToProject(IPath targetPath, String fileName, String fileContent)
throws CoreException, FileNotFoundException {
IFileStore targetFileStore = EFS.getLocalFileSystem().fromLocalFile(
targetPath.append(fileName).toFile());
File targetFile = target... | static File function(IPath targetPath, String fileName, String fileContent) throws CoreException, FileNotFoundException { IFileStore targetFileStore = EFS.getLocalFileSystem().fromLocalFile( targetPath.append(fileName).toFile()); File targetFile = targetFileStore.toLocalFile(EFS.NONE, null); targetFile.getParentFile().... | /**
* Add a file with the specified content to the target path.
*
* @param targetPath - The target location for the file to be added in.
* @param fileName - The file name
* @param fileContent - The file content
* @return The file in the target location.
*/ | Add a file with the specified content to the target path | addFileToProject | {
"repo_name": "zhangzhx/aws-toolkit-eclipse",
"path": "bundles/com.amazonaws.eclipse.lambda/src/com/amazonaws/eclipse/lambda/project/wizard/util/FunctionProjectUtil.java",
"license": "apache-2.0",
"size": 17162
} | [
"java.io.File",
"java.io.FileNotFoundException",
"java.io.FileOutputStream",
"java.io.PrintStream",
"org.eclipse.core.filesystem.EFS",
"org.eclipse.core.filesystem.IFileStore",
"org.eclipse.core.runtime.CoreException",
"org.eclipse.core.runtime.IPath"
] | import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.PrintStream; import org.eclipse.core.filesystem.EFS; import org.eclipse.core.filesystem.IFileStore; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; | import java.io.*; import org.eclipse.core.filesystem.*; import org.eclipse.core.runtime.*; | [
"java.io",
"org.eclipse.core"
] | java.io; org.eclipse.core; | 776,622 |
public static IvmlPackage init()
{
if (isInited) return (IvmlPackage)EPackage.Registry.INSTANCE.getEPackage(IvmlPackage.eNS_URI);
// Obtain or create and register package
Object registeredIvmlPackage = EPackage.Registry.INSTANCE.get(eNS_URI);
IvmlPackageImpl theIvmlPackage = registeredIvmlPac... | static IvmlPackage function() { if (isInited) return (IvmlPackage)EPackage.Registry.INSTANCE.getEPackage(IvmlPackage.eNS_URI); Object registeredIvmlPackage = EPackage.Registry.INSTANCE.get(eNS_URI); IvmlPackageImpl theIvmlPackage = registeredIvmlPackage instanceof IvmlPackageImpl ? (IvmlPackageImpl)registeredIvmlPackag... | /**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link IvmlPackage#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that fiel... | Creates, registers, and initializes the Package for this model, and for any others upon which it depends. This method is used to initialize <code>IvmlPackage#eINSTANCE</code> when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | init | {
"repo_name": "SSEHUB/EASyProducer",
"path": "Plugins/IVML/de.uni_hildesheim.sse.ivml/src-gen/de/uni_hildesheim/sse/ivml/impl/IvmlPackageImpl.java",
"license": "apache-2.0",
"size": 133000
} | [
"de.uni_hildesheim.sse.ivml.IvmlPackage",
"org.eclipse.emf.ecore.EPackage"
] | import de.uni_hildesheim.sse.ivml.IvmlPackage; import org.eclipse.emf.ecore.EPackage; | import de.uni_hildesheim.sse.ivml.*; import org.eclipse.emf.ecore.*; | [
"de.uni_hildesheim.sse",
"org.eclipse.emf"
] | de.uni_hildesheim.sse; org.eclipse.emf; | 1,335,020 |
manager
.iotDpsResources()
.getByResourceGroupWithResponse("myResourceGroup", "myFirstProvisioningService", Context.NONE);
} | manager .iotDpsResources() .getByResourceGroupWithResponse(STR, STR, Context.NONE); } | /**
* Sample code: DPSGet.
*
* @param manager Entry point to IotDpsManager.
*/ | Sample code: DPSGet | dPSGet | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/deviceprovisioningservices/azure-resourcemanager-deviceprovisioningservices/src/samples/java/com/azure/resourcemanager/deviceprovisioningservices/generated/IotDpsResourceGetByResourceGroupSamples.java",
"license": "mit",
"size": 913
} | [
"com.azure.core.util.Context"
] | import com.azure.core.util.Context; | import com.azure.core.util.*; | [
"com.azure.core"
] | com.azure.core; | 2,193,550 |
@Override
public double valueToJava2D(double value, Rectangle2D area,
RectangleEdge edge) {
Range range = getRange();
double axisMin = calculateLog(range.getLowerBound());
double axisMax = calculateLog(range.getUpperBound());
value = calculateLog(value);
... | double function(double value, Rectangle2D area, RectangleEdge edge) { Range range = getRange(); double axisMin = calculateLog(range.getLowerBound()); double axisMax = calculateLog(range.getUpperBound()); value = calculateLog(value); double min = 0.0; double max = 0.0; if (RectangleEdge.isTopOrBottom(edge)) { min = area... | /**
* Converts a value on the axis scale to a Java2D coordinate relative to
* the given {@code area}, based on the axis running along the
* specified {@code edge}.
*
* @param value the data value.
* @param area the area ({@code null} not permitted).
* @param edge the edge ({... | Converts a value on the axis scale to a Java2D coordinate relative to the given area, based on the axis running along the specified edge | valueToJava2D | {
"repo_name": "sebkur/JFreeChart",
"path": "src/main/java/org/jfree/chart/axis/LogAxis.java",
"license": "lgpl-3.0",
"size": 41527
} | [
"java.awt.geom.Rectangle2D",
"org.jfree.data.Range",
"org.jfree.ui.RectangleEdge"
] | import java.awt.geom.Rectangle2D; import org.jfree.data.Range; import org.jfree.ui.RectangleEdge; | import java.awt.geom.*; import org.jfree.data.*; import org.jfree.ui.*; | [
"java.awt",
"org.jfree.data",
"org.jfree.ui"
] | java.awt; org.jfree.data; org.jfree.ui; | 1,714,550 |
public void testGetConfirmRemoveStyle( ) throws AccessDeniedException
{
MockHttpServletRequest request = new MockHttpServletRequest( );
request.addParameter( Parameters.STYLE_ID, Integer.toString( style.getId( ) ) );
Utils.registerAdminUserWithRigth( request, new AdminUser( ), StylesJspB... | void function( ) throws AccessDeniedException { MockHttpServletRequest request = new MockHttpServletRequest( ); request.addParameter( Parameters.STYLE_ID, Integer.toString( style.getId( ) ) ); Utils.registerAdminUserWithRigth( request, new AdminUser( ), StylesJspBean.RIGHT_MANAGE_STYLE ); instance.init( request, Styles... | /**
* Test of getConfirmRemoveStyle method, of class fr.paris.lutece.portal.web.style.StylesJspBean.
*/ | Test of getConfirmRemoveStyle method, of class fr.paris.lutece.portal.web.style.StylesJspBean | testGetConfirmRemoveStyle | {
"repo_name": "rzara/lutece-core",
"path": "src/test/java/fr/paris/lutece/portal/web/style/StylesJspBeanTest.java",
"license": "bsd-3-clause",
"size": 15839
} | [
"fr.paris.lutece.portal.business.user.AdminUser",
"fr.paris.lutece.portal.service.admin.AccessDeniedException",
"fr.paris.lutece.portal.service.message.AdminMessage",
"fr.paris.lutece.portal.service.message.AdminMessageService",
"fr.paris.lutece.portal.service.security.SecurityTokenService",
"fr.paris.lut... | import fr.paris.lutece.portal.business.user.AdminUser; import fr.paris.lutece.portal.service.admin.AccessDeniedException; import fr.paris.lutece.portal.service.message.AdminMessage; import fr.paris.lutece.portal.service.message.AdminMessageService; import fr.paris.lutece.portal.service.security.SecurityTokenService; im... | import fr.paris.lutece.portal.business.user.*; import fr.paris.lutece.portal.service.admin.*; import fr.paris.lutece.portal.service.message.*; import fr.paris.lutece.portal.service.security.*; import fr.paris.lutece.portal.web.constants.*; import fr.paris.lutece.test.*; import org.springframework.mock.web.*; | [
"fr.paris.lutece",
"org.springframework.mock"
] | fr.paris.lutece; org.springframework.mock; | 169,061 |
public static int addCerts(File dir, KeyStore ks) {
info("Looking for X509 Certificates in " + dir.getAbsolutePath());
int added = 0;
if (dir.exists() && dir.isDirectory()) {
File[] files = dir.listFiles();
if (files != null) {
for (int i = 0; i < file... | static int function(File dir, KeyStore ks) { info(STR + dir.getAbsolutePath()); int added = 0; if (dir.exists() && dir.isDirectory()) { File[] files = dir.listFiles(); if (files != null) { for (int i = 0; i < files.length; i++) { File f = files[i]; if (!f.isFile()) continue; String alias = f.getName().toLowerCase(Local... | /**
* Load all X509 Certs from a directory and add them to the
* trusted set of certificates in the key store
*
* @return number successfully added
* @since 0.8.2, moved from SSLEepGet in 0.9.9
*/ | Load all X509 Certs from a directory and add them to the trusted set of certificates in the key store | addCerts | {
"repo_name": "NoYouShutup/CryptMeme",
"path": "CryptMeme/core/java/src/net/i2p/crypto/KeyStoreUtil.java",
"license": "mit",
"size": 20618
} | [
"java.io.File",
"java.security.KeyStore",
"java.util.Locale"
] | import java.io.File; import java.security.KeyStore; import java.util.Locale; | import java.io.*; import java.security.*; import java.util.*; | [
"java.io",
"java.security",
"java.util"
] | java.io; java.security; java.util; | 2,207,316 |
@Test
public void testRunTest() {
System.out.println("runTest");
JavaSamplerContext ctx = new JavaSamplerContext(new Arguments());
JmsUtil instance = new JmsUtil();
SampleResult expResult = null;
SampleResult result = instance.runTest(ctx);
} | void function() { System.out.println(STR); JavaSamplerContext ctx = new JavaSamplerContext(new Arguments()); JmsUtil instance = new JmsUtil(); SampleResult expResult = null; SampleResult result = instance.runTest(ctx); } | /**
* Test of runTest method, of class JmsUtil.
*/ | Test of runTest method, of class JmsUtil | testRunTest | {
"repo_name": "ptrd/jmeter-plugins",
"path": "plugins/jms/src/test/java/com/atlantbh/jmeter/plugins/jmstools/JmsUtilTest.java",
"license": "apache-2.0",
"size": 2686
} | [
"com.atlantbh.jmeter.plugins.jmstools.JmsUtil",
"org.apache.jmeter.config.Arguments",
"org.apache.jmeter.protocol.java.sampler.JavaSamplerContext",
"org.apache.jmeter.samplers.SampleResult"
] | import com.atlantbh.jmeter.plugins.jmstools.JmsUtil; import org.apache.jmeter.config.Arguments; import org.apache.jmeter.protocol.java.sampler.JavaSamplerContext; import org.apache.jmeter.samplers.SampleResult; | import com.atlantbh.jmeter.plugins.jmstools.*; import org.apache.jmeter.config.*; import org.apache.jmeter.protocol.java.sampler.*; import org.apache.jmeter.samplers.*; | [
"com.atlantbh.jmeter",
"org.apache.jmeter"
] | com.atlantbh.jmeter; org.apache.jmeter; | 2,091,535 |
public static MozuUrl getLocationUsageUrl(String code, String responseFields)
{
UrlFormatter formatter = new UrlFormatter("/api/commerce/settings/locationUsages/{code}?responseFields={responseFields}");
formatter.formatUrl("code", code);
formatter.formatUrl("responseFields", responseFields);
return new Mozu... | static MozuUrl function(String code, String responseFields) { UrlFormatter formatter = new UrlFormatter(STR); formatter.formatUrl("code", code); formatter.formatUrl(STR, responseFields); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; } | /**
* Get Resource Url for GetLocationUsage
* @param code User-defined code that uniqely identifies the channel group.
* @param responseFields Use this field to include those fields which are not included by default.
* @return String Resource Url
*/ | Get Resource Url for GetLocationUsage | getLocationUsageUrl | {
"repo_name": "bhewett/mozu-java",
"path": "mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/settings/LocationUsageUrl.java",
"license": "mit",
"size": 2187
} | [
"com.mozu.api.MozuUrl",
"com.mozu.api.utils.UrlFormatter"
] | import com.mozu.api.MozuUrl; import com.mozu.api.utils.UrlFormatter; | import com.mozu.api.*; import com.mozu.api.utils.*; | [
"com.mozu.api"
] | com.mozu.api; | 2,239,339 |
private void doDiscovery() {
if (D) Log.d(TAG, "doDiscovery()");
// Indicate scanning in the title
setProgressBarIndeterminateVisibility(true);
setTitle(R.string.scanning);
// Turn on sub-title for new devices
findViewById(R.id.title_new_devices).... | void function() { if (D) Log.d(TAG, STR); setProgressBarIndeterminateVisibility(true); setTitle(R.string.scanning); findViewById(R.id.title_new_devices).setVisibility(View.VISIBLE); if (mBtAdapter.isDiscovering()) { mBtAdapter.cancelDiscovery(); } mBtAdapter.startDiscovery(); } | /**
* Start device discover with the BluetoothAdapter
*/ | Start device discover with the BluetoothAdapter | doDiscovery | {
"repo_name": "ruixuekaifa/android--Demos",
"path": "蓝牙模块/BluetoothToOximeter/src/com/contec/oximeter/DeviceListActivity.java",
"license": "apache-2.0",
"size": 7048
} | [
"android.util.Log",
"android.view.View"
] | import android.util.Log; import android.view.View; | import android.util.*; import android.view.*; | [
"android.util",
"android.view"
] | android.util; android.view; | 1,692,049 |
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<PagedResponse<RedisResourceInner>> listByResourceGroupNextSinglePageAsync(
String nextLink, Context context) {
if (nextLink == null) {
return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<PagedResponse<RedisResourceInner>> function( String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException(STR)); } if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } final Stri... | /**
* Get the next page of items.
*
* @param nextLink The nextLink parameter.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by serve... | Get the next page of items | listByResourceGroupNextSinglePageAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-redis/src/main/java/com/azure/resourcemanager/redis/implementation/RedisClientImpl.java",
"license": "mit",
"size": 145842
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedResponse",
"com.azure.core.http.rest.PagedResponseBase",
"com.azure.core.util.Context",
"com.azure.resourcemanager.redis.fluent.models.RedisResourceInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.util.Context; import com.azure.resourcemanager.redis.fluent.models.RedisResourceInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.redis.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,445,621 |
public List<String> getImageSrcs(String url); | List<String> function(String url); | /**
* gets url of web page and pull downs all page links
*
* @param url
* @return Set of links that occur on that page,
* nulls if IOException is thrown while connecting
*/ | gets url of web page and pull downs all page links | getImageSrcs | {
"repo_name": "xarshila/PageScraper",
"path": "src/Scraper/Scraper.java",
"license": "epl-1.0",
"size": 1072
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,817,582 |
public boolean closeNonDurableTopicSubscription() {
String deletingMessageID = driver.findElement(By.xpath(UIElementMapper.getInstance()
.getElement("mb.tempTopic.subscriptions.table.delete.subid"))).getText();
driver.findElement(By.xpath(UIElementMapper.getInstance()
... | boolean function() { String deletingMessageID = driver.findElement(By.xpath(UIElementMapper.getInstance() .getElement(STR))).getText(); driver.findElement(By.xpath(UIElementMapper.getInstance() .getElement(STR))).click(); driver.findElement(By.xpath(UIElementMapper.getInstance() .getElement(STR))).click(); boolean succ... | /**
* Forcibly close non durable topic subscription. This will delete the first subscription listed
* on non durable subscriptions list
* @return true if subscription removal is successful, otherwise false
*/ | Forcibly close non durable topic subscription. This will delete the first subscription listed on non durable subscriptions list | closeNonDurableTopicSubscription | {
"repo_name": "milindaperera/product-ei",
"path": "integration/broker-tests/tests-common/integration-tests-utils/src/main/java/org/wso2/mb/integration/common/utils/ui/pages/main/TopicSubscriptionsPage.java",
"license": "apache-2.0",
"size": 10517
} | [
"org.openqa.selenium.By",
"org.wso2.mb.integration.common.utils.ui.UIElementMapper"
] | import org.openqa.selenium.By; import org.wso2.mb.integration.common.utils.ui.UIElementMapper; | import org.openqa.selenium.*; import org.wso2.mb.integration.common.utils.ui.*; | [
"org.openqa.selenium",
"org.wso2.mb"
] | org.openqa.selenium; org.wso2.mb; | 2,502,804 |
EClass getModelDefinition(); | EClass getModelDefinition(); | /**
* Returns the meta object for class '{@link org.obeonetwork.m2doc.genconf.ModelDefinition <em>Model Definition</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Model Definition</em>'.
* @see org.obeonetwork.m2doc.genconf.ModelDefinition
* ... | Returns the meta object for class '<code>org.obeonetwork.m2doc.genconf.ModelDefinition Model Definition</code>'. | getModelDefinition | {
"repo_name": "ldelaigue/M2Doc",
"path": "plugins/org.obeonetwork.m2doc.genconf/src-gen/org/obeonetwork/m2doc/genconf/GenconfPackage.java",
"license": "epl-1.0",
"size": 20539
} | [
"org.eclipse.emf.ecore.EClass"
] | import org.eclipse.emf.ecore.EClass; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,994,327 |
@VisibleForTesting
ChangedVolumes parseChangedVolumes(String newVolumes) throws IOException {
Configuration conf = new Configuration();
conf.set(DFS_DATANODE_DATA_DIR_KEY, newVolumes);
List<StorageLocation> locations = getStorageLocations(conf);
if (locations.isEmpty()) {
throw new IOExceptio... | ChangedVolumes parseChangedVolumes(String newVolumes) throws IOException { Configuration conf = new Configuration(); conf.set(DFS_DATANODE_DATA_DIR_KEY, newVolumes); List<StorageLocation> locations = getStorageLocations(conf); if (locations.isEmpty()) { throw new IOException(STR); } ChangedVolumes results = new Changed... | /**
* Parse the new DFS_DATANODE_DATA_DIR value in the configuration to detect
* changed volumes.
* @param newVolumes a comma separated string that specifies the data volumes.
* @return changed volumes.
* @throws IOException if none of the directories are specified in the
* configuration.
*/ | Parse the new DFS_DATANODE_DATA_DIR value in the configuration to detect changed volumes | parseChangedVolumes | {
"repo_name": "zjshen/hadoop-in-docker",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataNode.java",
"license": "apache-2.0",
"size": 119933
} | [
"java.io.IOException",
"java.util.Iterator",
"java.util.List",
"org.apache.hadoop.conf.Configuration",
"org.apache.hadoop.hdfs.server.common.Storage"
] | import java.io.IOException; import java.util.Iterator; import java.util.List; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hdfs.server.common.Storage; | import java.io.*; import java.util.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hdfs.server.common.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 881,695 |
@Nonnull
Dimension2D getPreferredSize(PlotEx plot); | Dimension2D getPreferredSize(PlotEx plot); | /**
* Returns the preferred size of the given plot.
*
* @param plot The plot
* @return The preferred size
*/ | Returns the preferred size of the given plot | getPreferredSize | {
"repo_name": "jplot2d/jplot2d",
"path": "jplot2d-core/src/main/java/org/jplot2d/layout/LayoutDirector.java",
"license": "lgpl-3.0",
"size": 3395
} | [
"java.awt.geom.Dimension2D",
"org.jplot2d.element.impl.PlotEx"
] | import java.awt.geom.Dimension2D; import org.jplot2d.element.impl.PlotEx; | import java.awt.geom.*; import org.jplot2d.element.impl.*; | [
"java.awt",
"org.jplot2d.element"
] | java.awt; org.jplot2d.element; | 2,285,123 |
public void toggle() {
fireMethod(getElement(), CollapseParam.TOGGLE);
} | void function() { fireMethod(getElement(), CollapseParam.TOGGLE); } | /**
* Causes the collapse to show or hide
*/ | Causes the collapse to show or hide | toggle | {
"repo_name": "gwtbootstrap3/gwtbootstrap3",
"path": "gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/Collapse.java",
"license": "apache-2.0",
"size": 5523
} | [
"org.gwtbootstrap3.client.ui.constants.CollapseParam"
] | import org.gwtbootstrap3.client.ui.constants.CollapseParam; | import org.gwtbootstrap3.client.ui.constants.*; | [
"org.gwtbootstrap3.client"
] | org.gwtbootstrap3.client; | 2,816,955 |
@Contract(pure=true)
int getLineStartOffset(int line); | @Contract(pure=true) int getLineStartOffset(int line); | /**
* Returns the start offset for the line with the specified number.
*
* @param line the line number (from 0 to getLineCount()-1)
* @return the start offset for the line.
*/ | Returns the start offset for the line with the specified number | getLineStartOffset | {
"repo_name": "semonte/intellij-community",
"path": "platform/core-api/src/com/intellij/openapi/editor/Document.java",
"license": "apache-2.0",
"size": 13068
} | [
"org.jetbrains.annotations.Contract"
] | import org.jetbrains.annotations.Contract; | import org.jetbrains.annotations.*; | [
"org.jetbrains.annotations"
] | org.jetbrains.annotations; | 2,611,050 |
void enterBitOperator(@NotNull CQLParser.BitOperatorContext ctx);
void exitBitOperator(@NotNull CQLParser.BitOperatorContext ctx); | void enterBitOperator(@NotNull CQLParser.BitOperatorContext ctx); void exitBitOperator(@NotNull CQLParser.BitOperatorContext ctx); | /**
* Exit a parse tree produced by {@link CQLParser#bitOperator}.
*/ | Exit a parse tree produced by <code>CQLParser#bitOperator</code> | exitBitOperator | {
"repo_name": "HuaweiBigData/StreamCQL",
"path": "cql/src/main/java/com/huawei/streaming/cql/semanticanalyzer/parser/CQLParserListener.java",
"license": "apache-2.0",
"size": 58667
} | [
"org.antlr.v4.runtime.misc.NotNull"
] | import org.antlr.v4.runtime.misc.NotNull; | import org.antlr.v4.runtime.misc.*; | [
"org.antlr.v4"
] | org.antlr.v4; | 2,798,753 |
private synchronized BulkOperationState retrieveOperationState()
throws IOException {
if (operationState == null && !noOperationState) {
operationState = writeOperations.initiateOperation(getBasePath(),
BulkOperationState.OperationType.Upload);
noOperationState = operationState != null... | synchronized BulkOperationState function() throws IOException { if (operationState == null && !noOperationState) { operationState = writeOperations.initiateOperation(getBasePath(), BulkOperationState.OperationType.Upload); noOperationState = operationState != null; } return operationState; } | /**
* Retrieve the operation state; create one on demand if needed
* <i>and there has been no unsuccessful attempt to create one.</i>
* @return an active operation state.
* @throws IOException failure
*/ | Retrieve the operation state; create one on demand if needed and there has been no unsuccessful attempt to create one | retrieveOperationState | {
"repo_name": "apurtell/hadoop",
"path": "hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/impl/S3AMultipartUploader.java",
"license": "apache-2.0",
"size": 14215
} | [
"java.io.IOException",
"org.apache.hadoop.fs.s3a.s3guard.BulkOperationState"
] | import java.io.IOException; import org.apache.hadoop.fs.s3a.s3guard.BulkOperationState; | import java.io.*; import org.apache.hadoop.fs.s3a.s3guard.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 1,895,376 |
public void registerOntopolyTopicMap(String referenceId, String name) {
if (getTopicMapRepository().getReferenceByKey(referenceId) == null)
throw new OntopiaRuntimeException("Can't upgrade non-existent topic map: '" + referenceId + "'");
// create topic for topic map
TopicMapIF systemtm = getSystem... | void function(String referenceId, String name) { if (getTopicMapRepository().getReferenceByKey(referenceId) == null) throw new OntopiaRuntimeException(STR + referenceId + "'"); TopicMapIF systemtm = getSystemTopicMap(); TopicIF tmtype = systemtm.getTopicBySubjectIdentifier(PSI.ON_TED_TOPIC_MAP); TopicIF idtype = system... | /**
* INTERNAL: Turns the topic map into an Ontopoly topic map in the
* repository, but does not actually change the topic map itself.
*/ | repository, but does not actually change the topic map itself | registerOntopolyTopicMap | {
"repo_name": "ontopia/ontopia",
"path": "ontopoly-editor/src/main/java/ontopoly/sysmodel/OntopolyRepository.java",
"license": "apache-2.0",
"size": 10466
} | [
"net.ontopia.topicmaps.core.TopicIF",
"net.ontopia.topicmaps.core.TopicMapBuilderIF",
"net.ontopia.topicmaps.core.TopicMapIF",
"net.ontopia.utils.OntopiaRuntimeException"
] | import net.ontopia.topicmaps.core.TopicIF; import net.ontopia.topicmaps.core.TopicMapBuilderIF; import net.ontopia.topicmaps.core.TopicMapIF; import net.ontopia.utils.OntopiaRuntimeException; | import net.ontopia.topicmaps.core.*; import net.ontopia.utils.*; | [
"net.ontopia.topicmaps",
"net.ontopia.utils"
] | net.ontopia.topicmaps; net.ontopia.utils; | 724,911 |
public static java.util.Set extractSurgicalOperationSummarySet(ims.domain.ILightweightDomainFactory domainFactory, ims.clinical.vo.SurgicalOperationSummaryVoCollection voCollection)
{
return extractSurgicalOperationSummarySet(domainFactory, voCollection, null, new HashMap());
}
| static java.util.Set function(ims.domain.ILightweightDomainFactory domainFactory, ims.clinical.vo.SurgicalOperationSummaryVoCollection voCollection) { return extractSurgicalOperationSummarySet(domainFactory, voCollection, null, new HashMap()); } | /**
* Create the ims.clinical.domain.objects.SurgicalOperationSummary set from the value object collection.
* @param domainFactory - used to create existing (persistent) domain objects.
* @param voCollection - the collection of value objects
*/ | Create the ims.clinical.domain.objects.SurgicalOperationSummary set from the value object collection | extractSurgicalOperationSummarySet | {
"repo_name": "open-health-hub/openmaxims-linux",
"path": "openmaxims_workspace/ValueObjects/src/ims/clinical/vo/domain/SurgicalOperationSummaryVoAssembler.java",
"license": "agpl-3.0",
"size": 19561
} | [
"java.util.HashMap"
] | import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 2,170,338 |
public synchronized void close() {
try {
if (file != null) {
file.close();
}
} catch (IOException e) {
// Here for backward compatibility.
} finally {
file = null;
}
} | synchronized void function() { try { if (file != null) { file.close(); } } catch (IOException e) { } finally { file = null; } } | /**
* Closes the lookup service.
*/ | Closes the lookup service | close | {
"repo_name": "davipt/geoip-api-java",
"path": "src/main/java/com/maxmind/geoip/LookupService.java",
"license": "lgpl-2.1",
"size": 44735
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 60,042 |
public static AffineTransform3D alignSymmetryAxis3d( double[] srcAxis, double[] destAxis )
{
DenseMatrix64F u = new DenseMatrix64F( 3, 1 );
u.setData( srcAxis );
DenseMatrix64F v = new DenseMatrix64F( 3, 1 );
v.setData( destAxis );
// gen B matrix
DenseMatrix64F B = new DenseMatrix64F( 3, 3 ... | static AffineTransform3D function( double[] srcAxis, double[] destAxis ) { DenseMatrix64F u = new DenseMatrix64F( 3, 1 ); u.setData( srcAxis ); DenseMatrix64F v = new DenseMatrix64F( 3, 1 ); v.setData( destAxis ); DenseMatrix64F B = new DenseMatrix64F( 3, 3 ); CommonOps.multTransB( v, u, B ); System.out.println( B ); D... | /**
* Returns a transformation that moves the srcAxis to the destAxis
*
* @param srcAxis
* @param destAxis the symmetry axis after transformation
* @return the rigid transform
*/ | Returns a transformation that moves the srcAxis to the destAxis | alignSymmetryAxis3d | {
"repo_name": "saalfeldlab/template-building",
"path": "src/main/java/transforms/PlaneOfSymmetry.java",
"license": "bsd-2-clause",
"size": 12447
} | [
"net.imglib2.realtransform.AffineTransform3D",
"org.ejml.data.DenseMatrix64F",
"org.ejml.factory.DecompositionFactory",
"org.ejml.factory.SingularValueDecomposition",
"org.ejml.ops.CommonOps"
] | import net.imglib2.realtransform.AffineTransform3D; import org.ejml.data.DenseMatrix64F; import org.ejml.factory.DecompositionFactory; import org.ejml.factory.SingularValueDecomposition; import org.ejml.ops.CommonOps; | import net.imglib2.realtransform.*; import org.ejml.data.*; import org.ejml.factory.*; import org.ejml.ops.*; | [
"net.imglib2.realtransform",
"org.ejml.data",
"org.ejml.factory",
"org.ejml.ops"
] | net.imglib2.realtransform; org.ejml.data; org.ejml.factory; org.ejml.ops; | 2,113,842 |
public static MozuClient<com.mozu.api.contracts.productruntime.ProductSearchRandomAccessCursor> getRandomAccessCursorClient() throws Exception
{
return getRandomAccessCursorClient( null, null, null, null);
}
| static MozuClient<com.mozu.api.contracts.productruntime.ProductSearchRandomAccessCursor> function() throws Exception { return getRandomAccessCursorClient( null, null, null, null); } | /**
*
* <p><pre><code>
* MozuClient<com.mozu.api.contracts.productruntime.ProductSearchRandomAccessCursor> mozuClient=GetRandomAccessCursorClient();
* client.setBaseAddress(url);
* client.executeRequest();
* ProductSearchRandomAccessCursor productSearchRandomAccessCursor = client.Result();
* </cod... | <code><code> MozuClient mozuClient=GetRandomAccessCursorClient(); client.setBaseAddress(url); client.executeRequest(); ProductSearchRandomAccessCursor productSearchRandomAccessCursor = client.Result(); </code></code> | getRandomAccessCursorClient | {
"repo_name": "Mozu/mozu-java",
"path": "mozu-javaasync-core/src/main/java/com/mozu/api/clients/commerce/catalog/storefront/ProductSearchResultClient.java",
"license": "mit",
"size": 16992
} | [
"com.mozu.api.MozuClient"
] | import com.mozu.api.MozuClient; | import com.mozu.api.*; | [
"com.mozu.api"
] | com.mozu.api; | 475,465 |
public static <T> Iterator<T> filterTypeInOutputs(List<ProcessorDefinition<?>> outputs, Class<T> type) {
return filterTypeInOutputs(outputs, type, -1);
} | static <T> Iterator<T> function(List<ProcessorDefinition<?>> outputs, Class<T> type) { return filterTypeInOutputs(outputs, type, -1); } | /**
* Looks for the given type in the list of outputs and recurring all the children as well.
*
* @param outputs list of outputs, can be null or empty.
* @param type the type to look for
* @return the found definitions, or <tt>null</tt> if not found
*/ | Looks for the given type in the list of outputs and recurring all the children as well | filterTypeInOutputs | {
"repo_name": "koscejev/camel",
"path": "camel-core/src/main/java/org/apache/camel/model/ProcessorDefinitionHelper.java",
"license": "apache-2.0",
"size": 36088
} | [
"java.util.Iterator",
"java.util.List"
] | import java.util.Iterator; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,291,992 |
protected void makeRunnerIfNeeded() {
// We don't need to make a SVG runner when there are no pending updates.
boolean stop = true;
for(WeakReference<UpdateRunner> wur : updaterunner) {
UpdateRunner ur = wur.get();
if(ur == null) {
updaterunner.remove(wur);
}
else if(!ur.is... | void function() { boolean stop = true; for(WeakReference<UpdateRunner> wur : updaterunner) { UpdateRunner ur = wur.get(); if(ur == null) { updaterunner.remove(wur); } else if(!ur.isEmpty()) { stop = false; } } if(stop) { return; } if(pending.get() != null) { return; } JSVGComponent component = this.cref.get(); if(compo... | /**
* Join the runnable queue of a component.
*/ | Join the runnable queue of a component | makeRunnerIfNeeded | {
"repo_name": "elki-project/elki",
"path": "addons/batikvis/src/main/java/elki/visualization/batikutil/JSVGUpdateSynchronizer.java",
"license": "agpl-3.0",
"size": 5123
} | [
"java.lang.ref.WeakReference",
"org.apache.batik.swing.svg.JSVGComponent"
] | import java.lang.ref.WeakReference; import org.apache.batik.swing.svg.JSVGComponent; | import java.lang.ref.*; import org.apache.batik.swing.svg.*; | [
"java.lang",
"org.apache.batik"
] | java.lang; org.apache.batik; | 1,162,680 |
SQLiteDatabase db = helper.getWritableDatabase();
ContentValues values = new ContentValues();
values.put(DbHelper.COLUMN_USERNAME, username);
values.put(DbHelper.COLUMN_PASS, password);
long id = db.insert(DbHelper.TABLE_NAME, null, values);
return i... | SQLiteDatabase db = helper.getWritableDatabase(); ContentValues values = new ContentValues(); values.put(DbHelper.COLUMN_USERNAME, username); values.put(DbHelper.COLUMN_PASS, password); long id = db.insert(DbHelper.TABLE_NAME, null, values); return id; } | /**
* A method used to insert data
*
* @param username
* @param password
* @return long id if the method was successful and -1 if it fails.
*/ | A method used to insert data | insertData | {
"repo_name": "speaknomadic/Cephalopod-for-Android",
"path": "CephalopodforAndroid/src/main/java/cephalopod/board/game/DbAdapter.java",
"license": "gpl-3.0",
"size": 10752
} | [
"android.content.ContentValues",
"android.database.sqlite.SQLiteDatabase"
] | import android.content.ContentValues; import android.database.sqlite.SQLiteDatabase; | import android.content.*; import android.database.sqlite.*; | [
"android.content",
"android.database"
] | android.content; android.database; | 688,118 |
public DeviceSetting[] getDeviseSettingsOn()
{
return deviseSettingsOn;
} | DeviceSetting[] function() { return deviseSettingsOn; } | /**
* Returns the device settings which should be applied when measurement starts.
* @return the deviseSettingsOn Device settings applied when measurement starts.
*/ | Returns the device settings which should be applied when measurement starts | getDeviseSettingsOn | {
"repo_name": "langmo/youscope",
"path": "core/api/src/main/java/org/youscope/common/measurement/MeasurementConfiguration.java",
"license": "gpl-2.0",
"size": 10944
} | [
"org.youscope.common.microscope.DeviceSetting"
] | import org.youscope.common.microscope.DeviceSetting; | import org.youscope.common.microscope.*; | [
"org.youscope.common"
] | org.youscope.common; | 1,483,495 |
public synchronized Tag getTagById(int id) {
try {
return (Tag) osWriter.getObjectById(new Integer(id), Tag.class);
} catch (ObjectStoreException e) {
throw new RuntimeException("Getting tag from database failed", e);
}
} | synchronized Tag function(int id) { try { return (Tag) osWriter.getObjectById(new Integer(id), Tag.class); } catch (ObjectStoreException e) { throw new RuntimeException(STR, e); } } | /**
* Get Tag by object id.
* @param id intermine object id
* @return Tag
*/ | Get Tag by object id | getTagById | {
"repo_name": "julie-sullivan/phytomine",
"path": "intermine/api/main/src/org/intermine/api/profile/TagManager.java",
"license": "lgpl-2.1",
"size": 26133
} | [
"org.intermine.model.userprofile.Tag",
"org.intermine.objectstore.ObjectStoreException"
] | import org.intermine.model.userprofile.Tag; import org.intermine.objectstore.ObjectStoreException; | import org.intermine.model.userprofile.*; import org.intermine.objectstore.*; | [
"org.intermine.model",
"org.intermine.objectstore"
] | org.intermine.model; org.intermine.objectstore; | 1,715,210 |
public static <T> T unmarshal(Class<T> clazz, InputStream in, boolean preserveWhitespace) throws MarshalException, ValidationException {
return unmarshal(clazz, new InputSource(in), preserveWhitespace);
} | static <T> T function(Class<T> clazz, InputStream in, boolean preserveWhitespace) throws MarshalException, ValidationException { return unmarshal(clazz, new InputSource(in), preserveWhitespace); } | /**
* Unmarshal a Castor XML configuration file. Uses Java 5 generics for
* return type.
*
* @param clazz the class representing the marshalled XML configuration file
* @param in the marshalled XML configuration file to unmarshal
* @param preserveWhitespace whether or not to preserve whit... | Unmarshal a Castor XML configuration file. Uses Java 5 generics for return type | unmarshal | {
"repo_name": "dzonekl/oss2nms",
"path": "plugins/com.netxforge.oss2.core/src/com/netxforge/oss2/core/xml/CastorUtils.java",
"license": "gpl-3.0",
"size": 22073
} | [
"java.io.InputStream",
"org.exolab.castor.xml.MarshalException",
"org.exolab.castor.xml.ValidationException",
"org.xml.sax.InputSource"
] | import java.io.InputStream; import org.exolab.castor.xml.MarshalException; import org.exolab.castor.xml.ValidationException; import org.xml.sax.InputSource; | import java.io.*; import org.exolab.castor.xml.*; import org.xml.sax.*; | [
"java.io",
"org.exolab.castor",
"org.xml.sax"
] | java.io; org.exolab.castor; org.xml.sax; | 631,125 |
@Override
public Object findAttribute(String name)
{
Object value;
if ((value = getAttribute(name)) != null)
return value;
HttpServletRequest req = getCauchoRequest();
if (req != null &&
(value = getCauchoRequest().getAttribute(name)) != null)
return value;
HttpSession ... | Object function(String name) { Object value; if ((value = getAttribute(name)) != null) return value; HttpServletRequest req = getCauchoRequest(); if (req != null && (value = getCauchoRequest().getAttribute(name)) != null) return value; HttpSession session = getSession(); if (session != null) { try { value = session.get... | /**
* Finds an attribute in any of the scopes from page to webApp.
*
* @param name the attribute name.
*
* @return the attribute value
*/ | Finds an attribute in any of the scopes from page to webApp | findAttribute | {
"repo_name": "dlitz/resin",
"path": "modules/resin/src/com/caucho/jsp/PageContextImpl.java",
"license": "gpl-2.0",
"size": 53497
} | [
"java.util.logging.Level",
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpSession"
] | import java.util.logging.Level; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; | import java.util.logging.*; import javax.servlet.http.*; | [
"java.util",
"javax.servlet"
] | java.util; javax.servlet; | 905,375 |
public PreparedStatement getPreparedStatement(Connection con, String queryKey) throws SQLException {
String rawSql = readQuery(CmsUUID.getNullUUID(), queryKey);
return getPreparedStatementForSql(con, rawSql);
} | PreparedStatement function(Connection con, String queryKey) throws SQLException { String rawSql = readQuery(CmsUUID.getNullUUID(), queryKey); return getPreparedStatementForSql(con, rawSql); } | /**
* Returns a PreparedStatement for a JDBC connection specified by the key of a SQL query.<p>
*
* @param con the JDBC connection
* @param queryKey the key of the SQL query
* @return PreparedStatement a new PreparedStatement containing the pre-compiled SQL statement
* @throws SQLExcepti... | Returns a PreparedStatement for a JDBC connection specified by the key of a SQL query | getPreparedStatement | {
"repo_name": "serrapos/opencms-core",
"path": "src/org/opencms/db/generic/CmsSqlManager.java",
"license": "lgpl-2.1",
"size": 18065
} | [
"java.sql.Connection",
"java.sql.PreparedStatement",
"java.sql.SQLException",
"org.opencms.util.CmsUUID"
] | import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import org.opencms.util.CmsUUID; | import java.sql.*; import org.opencms.util.*; | [
"java.sql",
"org.opencms.util"
] | java.sql; org.opencms.util; | 290,848 |
public NestedSet<Artifact> getCompilerFilesWithoutIncludes() {
if (compilerFilesWithoutIncludes.isEmpty()) {
return getCompilerFiles();
}
return compilerFilesWithoutIncludes;
} | NestedSet<Artifact> function() { if (compilerFilesWithoutIncludes.isEmpty()) { return getCompilerFiles(); } return compilerFilesWithoutIncludes; } | /**
* Returns the files necessary for compilation excluding headers, assuming that included files
* will be discovered by input discovery. If the toolchain does not provide this fileset, falls
* back to {@link #getCompilerFiles()}.
*/ | Returns the files necessary for compilation excluding headers, assuming that included files will be discovered by input discovery. If the toolchain does not provide this fileset, falls back to <code>#getCompilerFiles()</code> | getCompilerFilesWithoutIncludes | {
"repo_name": "katre/bazel",
"path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CcToolchainProvider.java",
"license": "apache-2.0",
"size": 36061
} | [
"com.google.devtools.build.lib.actions.Artifact",
"com.google.devtools.build.lib.collect.nestedset.NestedSet"
] | import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.collect.nestedset.NestedSet; | import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.collect.nestedset.*; | [
"com.google.devtools"
] | com.google.devtools; | 2,479,238 |
public ServiceResponse<BigDecimal> getSmallDecimal() throws ErrorException, IOException {
Call<ResponseBody> call = service.getSmallDecimal();
return getSmallDecimalDelegate(call.execute());
} | ServiceResponse<BigDecimal> function() throws ErrorException, IOException { Call<ResponseBody> call = service.getSmallDecimal(); return getSmallDecimalDelegate(call.execute()); } | /**
* Get small decimal value 2.5976931e-101.
*
* @throws ErrorException exception thrown from REST call
* @throws IOException exception thrown from serialization/deserialization
* @return the BigDecimal object wrapped in {@link ServiceResponse} if successful.
*/ | Get small decimal value 2.5976931e-101 | getSmallDecimal | {
"repo_name": "John-Hart/autorest",
"path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodynumber/implementation/NumbersImpl.java",
"license": "mit",
"size": 59057
} | [
"com.microsoft.rest.ServiceResponse",
"java.io.IOException",
"java.math.BigDecimal"
] | import com.microsoft.rest.ServiceResponse; import java.io.IOException; import java.math.BigDecimal; | import com.microsoft.rest.*; import java.io.*; import java.math.*; | [
"com.microsoft.rest",
"java.io",
"java.math"
] | com.microsoft.rest; java.io; java.math; | 13,741 |
@UnAdaptableTest
public void testQuickFixProdMode() throws Exception {
open("/aura/SomeNonExistingJunk.app", Mode.PROD, false);
assertFalse(isElementPresent(CREATE_COMPONENT_BUTTON));
assertTrue(getText(By.tagName("body")).contains("404 Not Found"));
} | void function() throws Exception { open(STR, Mode.PROD, false); assertFalse(isElementPresent(CREATE_COMPONENT_BUTTON)); assertTrue(getText(By.tagName("body")).contains(STR)); } | /**
* Verify that aura QuickFix UI does not appear in PROD mode.
*/ | Verify that aura QuickFix UI does not appear in PROD mode | testQuickFixProdMode | {
"repo_name": "navyliu/aura",
"path": "aura/src/test/java/org/auraframework/test/throwable/quickfix/AuraQuickFixUITest.java",
"license": "apache-2.0",
"size": 2381
} | [
"org.auraframework.system.AuraContext",
"org.openqa.selenium.By"
] | import org.auraframework.system.AuraContext; import org.openqa.selenium.By; | import org.auraframework.system.*; import org.openqa.selenium.*; | [
"org.auraframework.system",
"org.openqa.selenium"
] | org.auraframework.system; org.openqa.selenium; | 2,239,865 |
public static ArrowDictionaryBatch deserializeDictionaryBatch(Message message, ArrowBuf bodyBuffer)
throws IOException {
DictionaryBatch dictionaryBatchFB = (DictionaryBatch) message.header(new DictionaryBatch());
ArrowRecordBatch recordBatch = deserializeRecordBatch(dictionaryBatchFB.data(), bodyBuffer... | static ArrowDictionaryBatch function(Message message, ArrowBuf bodyBuffer) throws IOException { DictionaryBatch dictionaryBatchFB = (DictionaryBatch) message.header(new DictionaryBatch()); ArrowRecordBatch recordBatch = deserializeRecordBatch(dictionaryBatchFB.data(), bodyBuffer); return new ArrowDictionaryBatch(dictio... | /**
* Deserializes an ArrowDictionaryBatch from a dictionary batch Message and data in an ArrowBuf.
*
* @param message a message of type MessageHeader.DictionaryBatch
* @param bodyBuffer Arrow buffer containing the DictionaryBatch data
* of type MessageHeader.DictionaryBatch
* @retur... | Deserializes an ArrowDictionaryBatch from a dictionary batch Message and data in an ArrowBuf | deserializeDictionaryBatch | {
"repo_name": "renesugar/arrow",
"path": "java/vector/src/main/java/org/apache/arrow/vector/ipc/message/MessageSerializer.java",
"license": "apache-2.0",
"size": 27946
} | [
"io.netty.buffer.ArrowBuf",
"java.io.IOException",
"org.apache.arrow.flatbuf.DictionaryBatch",
"org.apache.arrow.flatbuf.Message"
] | import io.netty.buffer.ArrowBuf; import java.io.IOException; import org.apache.arrow.flatbuf.DictionaryBatch; import org.apache.arrow.flatbuf.Message; | import io.netty.buffer.*; import java.io.*; import org.apache.arrow.flatbuf.*; | [
"io.netty.buffer",
"java.io",
"org.apache.arrow"
] | io.netty.buffer; java.io; org.apache.arrow; | 406,046 |
boolean validate(NBTTagCompound view); | boolean validate(NBTTagCompound view); | /**
* Validates the DataView sufficiently passes the basic requirements
* for the designated {@link ValidationType}. If the validation
* succeeded, {@code true} is returned.
*
* @param view The view to validate
* @return True if the view contains valid data
*/ | Validates the DataView sufficiently passes the basic requirements for the designated <code>ValidationType</code>. If the validation succeeded, true is returned | validate | {
"repo_name": "SpongePowered/SpongeCommon",
"path": "src/main/java/org/spongepowered/common/data/nbt/validation/RawDataValidator.java",
"license": "mit",
"size": 1851
} | [
"net.minecraft.nbt.NBTTagCompound"
] | import net.minecraft.nbt.NBTTagCompound; | import net.minecraft.nbt.*; | [
"net.minecraft.nbt"
] | net.minecraft.nbt; | 1,664,942 |
public void setUserPersistence(UserPersistence userPersistence) {
this.userPersistence = userPersistence;
} | void function(UserPersistence userPersistence) { this.userPersistence = userPersistence; } | /**
* Sets the user persistence.
*
* @param userPersistence the user persistence
*/ | Sets the user persistence | setUserPersistence | {
"repo_name": "falko0000/moduleEProc",
"path": "postavwiki/postavwiki-service/src/main/java/tj/postavwiki/service/base/PostavwikiServiceBaseImpl.java",
"license": "lgpl-2.1",
"size": 9811
} | [
"com.liferay.portal.kernel.service.persistence.UserPersistence"
] | import com.liferay.portal.kernel.service.persistence.UserPersistence; | import com.liferay.portal.kernel.service.persistence.*; | [
"com.liferay.portal"
] | com.liferay.portal; | 1,470,340 |
public static CameraManager get() {
return cameraManager;
}
private CameraManager(Context context) {
this.context = context;
this.configManager = new CameraConfigurationManager(context);
// Camera.setOneShotPreviewCallback() has a race condition in Cupcake, so we use the older
// Camera.set... | static CameraManager function() { return cameraManager; } private CameraManager(Context context) { this.context = context; this.configManager = new CameraConfigurationManager(context); useOneShotPreviewCallback = Integer.parseInt(Build.VERSION.SDK) > 3; previewCallback = new PreviewCallback(configManager, useOneShotPre... | /**
* Gets the CameraManager singleton instance.
*
* @return A reference to the CameraManager singleton.
*/ | Gets the CameraManager singleton instance | get | {
"repo_name": "gongkechuang3C/smartcar",
"path": "client/src/main/java/com/brotherjing/client/zxing/camera/CameraManager.java",
"license": "apache-2.0",
"size": 11492
} | [
"android.content.Context",
"android.os.Build"
] | import android.content.Context; import android.os.Build; | import android.content.*; import android.os.*; | [
"android.content",
"android.os"
] | android.content; android.os; | 2,867,821 |
try {
JSONArray jsonArray = new JSONArray(json);
String[] stringArray = new String[jsonArray.length()];
for (int i = 0; i < jsonArray.length(); i++) {
stringArray[i] = jsonArray.getString(i);
}
return stringArray;
} catch (JSONException... | try { JSONArray jsonArray = new JSONArray(json); String[] stringArray = new String[jsonArray.length()]; for (int i = 0; i < jsonArray.length(); i++) { stringArray[i] = jsonArray.getString(i); } return stringArray; } catch (JSONException e) { Log.e(TAG, STR, e); } return new String[0]; } | /**
* Creates a String array out of a json array.
*
* @param json The String containing the json array.
* @return An array with the extracted strings or an
* empty String array if an exception occurred.
*/ | Creates a String array out of a json array | jsonArrayToStringArray | {
"repo_name": "jvg637upv/TrivialAndroid",
"path": "app/src/main/java/com/trivial/upv/android/helper/JsonHelper.java",
"license": "apache-2.0",
"size": 2399
} | [
"android.util.Log",
"org.json.JSONArray",
"org.json.JSONException"
] | import android.util.Log; import org.json.JSONArray; import org.json.JSONException; | import android.util.*; import org.json.*; | [
"android.util",
"org.json"
] | android.util; org.json; | 1,818,510 |
public PolicyStateInner withAdditionalProperties(Map<String, Object> additionalProperties) {
this.additionalProperties = additionalProperties;
return this;
} | PolicyStateInner function(Map<String, Object> additionalProperties) { this.additionalProperties = additionalProperties; return this; } | /**
* Set the additionalProperties value.
*
* @param additionalProperties the additionalProperties value to set
* @return the PolicyStateInner object itself.
*/ | Set the additionalProperties value | withAdditionalProperties | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/policyinsights/mgmt-v2018_04_04/src/main/java/com/microsoft/azure/management/policyinsights/v2018_04_04/implementation/PolicyStateInner.java",
"license": "mit",
"size": 20407
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 455,457 |
public IDataStockMetaData[] getCurrentStockAsArray() {
return new IDataStockMetaData[] { this.currentStock };
} | IDataStockMetaData[] function() { return new IDataStockMetaData[] { this.currentStock }; } | /**
* Get the current stock meta data as array with one entry
*
* @return current stock meta data as array with one entry
*/ | Get the current stock meta data as array with one entry | getCurrentStockAsArray | {
"repo_name": "PE-INTERNATIONAL/soda4lca",
"path": "Node/src/main/java/de/iai/ilcd/webgui/controller/ui/StockSelectionHandler.java",
"license": "gpl-3.0",
"size": 6258
} | [
"de.iai.ilcd.model.datastock.IDataStockMetaData"
] | import de.iai.ilcd.model.datastock.IDataStockMetaData; | import de.iai.ilcd.model.datastock.*; | [
"de.iai.ilcd"
] | de.iai.ilcd; | 2,173,809 |
@NonNull
public static Credentials getCredentials(@NonNull final ICredentials connector) {
return getCredentials(connector.getUsernamePreferenceKey(), connector.getPasswordPreferenceKey());
} | static Credentials function(@NonNull final ICredentials connector) { return getCredentials(connector.getUsernamePreferenceKey(), connector.getPasswordPreferenceKey()); } | /**
* Get login and password information.
*
* @param connector the connector to retrieve the login information from
* @return the credential information
*/ | Get login and password information | getCredentials | {
"repo_name": "S-Bartfast/cgeo",
"path": "main/src/cgeo/geocaching/settings/Settings.java",
"license": "apache-2.0",
"size": 63166
} | [
"androidx.annotation.NonNull"
] | import androidx.annotation.NonNull; | import androidx.annotation.*; | [
"androidx.annotation"
] | androidx.annotation; | 1,739,360 |
private synchronized void scheduleMap(TaskInProgress tip) {
if (runningMapCache == null) {
LOG.warn("Running cache for maps is missing!! "
+ "Job details are missing.");
return;
}
String[] splitLocations = tip.getSplitLocations();
// Add the TIP to the list of non-loc... | synchronized void function(TaskInProgress tip) { if (runningMapCache == null) { LOG.warn(STR + STR); return; } String[] splitLocations = tip.getSplitLocations(); if (splitLocations.length == 0) { nonLocalRunningMaps.add(tip); return; } for(String host: splitLocations) { Node node = jobtracker.getNode(host); for (int j ... | /**
* Adds a map tip to the list of running maps.
* @param tip the tip that needs to be scheduled as running
*/ | Adds a map tip to the list of running maps | scheduleMap | {
"repo_name": "woggle/mesos-old",
"path": "frameworks/hadoop-0.20.2/src/mapred/org/apache/hadoop/mapred/JobInProgress.java",
"license": "apache-2.0",
"size": 93028
} | [
"java.util.LinkedHashSet",
"java.util.Set",
"org.apache.hadoop.net.Node"
] | import java.util.LinkedHashSet; import java.util.Set; import org.apache.hadoop.net.Node; | import java.util.*; import org.apache.hadoop.net.*; | [
"java.util",
"org.apache.hadoop"
] | java.util; org.apache.hadoop; | 828,422 |
public void testGetAndIncrement() {
AtomicInteger ai = new AtomicInteger(1);
assertEquals(1, ai.getAndIncrement());
assertEquals(2, ai.get());
ai.set(-2);
assertEquals(-2, ai.getAndIncrement());
assertEquals(-1, ai.getAndIncrement());
assertEquals(0, ai.getAnd... | void function() { AtomicInteger ai = new AtomicInteger(1); assertEquals(1, ai.getAndIncrement()); assertEquals(2, ai.get()); ai.set(-2); assertEquals(-2, ai.getAndIncrement()); assertEquals(-1, ai.getAndIncrement()); assertEquals(0, ai.getAndIncrement()); assertEquals(1, ai.get()); } | /**
* getAndIncrement returns previous value and increments
*/ | getAndIncrement returns previous value and increments | testGetAndIncrement | {
"repo_name": "google/desugar_jdk_libs",
"path": "jdk11/src/libcore/ojluni/src/test/java/util/concurrent/tck/AtomicIntegerTest.java",
"license": "gpl-2.0",
"size": 8926
} | [
"java.util.concurrent.atomic.AtomicInteger"
] | import java.util.concurrent.atomic.AtomicInteger; | import java.util.concurrent.atomic.*; | [
"java.util"
] | java.util; | 1,694,921 |
public Set<CollectDay> getYellowDays() {
return Collections.unmodifiableSet(yellowDays);
} | Set<CollectDay> function() { return Collections.unmodifiableSet(yellowDays); } | /**
* Getter for the collect days of yellow trash.
*
* @return a set of CollectDay s.
*/ | Getter for the collect days of yellow trash | getYellowDays | {
"repo_name": "AtalM2/piu-bella",
"path": "src/main/java/fr/univnantes/atal/web/piubella/model/Address.java",
"license": "apache-2.0",
"size": 3073
} | [
"java.util.Collections",
"java.util.Set"
] | import java.util.Collections; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 1,777,078 |
public List <Annotation> findAnnotations(String name, String names, Annotation [] annotArray) {
ArrayList <Annotation> result = new ArrayList<Annotation>();
for(Annotation annot : annotArray) {
if(isStubAnnotation(annot)) {
Class<?> annotClass = annot.getClass().getInterfaces()[0];
String shortName = ... | List <Annotation> function(String name, String names, Annotation [] annotArray) { ArrayList <Annotation> result = new ArrayList<Annotation>(); for(Annotation annot : annotArray) { if(isStubAnnotation(annot)) { Class<?> annotClass = annot.getClass().getInterfaces()[0]; String shortName = annotClass.getSimpleName(); if (... | /**
* Find annotations by their name. It must be in the package of handled
* annotation. (Do not forget that we use class relocation). This version is useful
* when there are several annotations.
* @param name the name of the annotation
* @param annotArray the array of annotations.
* @return return the list... | Find annotations by their name. It must be in the package of handled annotation. (Do not forget that we use class relocation). This version is useful when there are several annotations | findAnnotations | {
"repo_name": "Orange-OpenSource/matos-profiles",
"path": "matos-stub-generator/src/main/java/com/francetelecom/rd/stubs/engine/ReflexUtil.java",
"license": "apache-2.0",
"size": 7196
} | [
"java.lang.annotation.Annotation",
"java.util.ArrayList",
"java.util.List"
] | import java.lang.annotation.Annotation; import java.util.ArrayList; import java.util.List; | import java.lang.annotation.*; import java.util.*; | [
"java.lang",
"java.util"
] | java.lang; java.util; | 2,090,758 |
public void parseCatalog(String file) {
Catalog catalog = getCatalog();
if (!(catalog instanceof ApacheCatalog)) {
throw new BuildException("Wrong catalog type found: " + catalog.getClass().getName());
}
ApacheCatalog apacheCatalog = (ApacheCatalog) catalog;
// ... | void function(String file) { Catalog catalog = getCatalog(); if (!(catalog instanceof ApacheCatalog)) { throw new BuildException(STR + catalog.getClass().getName()); } ApacheCatalog apacheCatalog = (ApacheCatalog) catalog; apacheCatalog.setResolver(this); try { apacheCatalog.parseCatalog(file); } catch (MalformedURLExc... | /**
* XMLCatalog calls this to add an external catalog file for each
* file within a <code><catalogfiles></code> fileset.
* @param file the external catalog file.
*/ | XMLCatalog calls this to add an external catalog file for each file within a <code><catalogfiles></code> fileset | parseCatalog | {
"repo_name": "Mayo-WE01051879/mayosapp",
"path": "Build/src/main/org/apache/tools/ant/types/resolver/ApacheCatalogResolver.java",
"license": "mit",
"size": 6434
} | [
"java.io.IOException",
"java.net.MalformedURLException",
"org.apache.tools.ant.BuildException",
"org.apache.xml.resolver.Catalog"
] | import java.io.IOException; import java.net.MalformedURLException; import org.apache.tools.ant.BuildException; import org.apache.xml.resolver.Catalog; | import java.io.*; import java.net.*; import org.apache.tools.ant.*; import org.apache.xml.resolver.*; | [
"java.io",
"java.net",
"org.apache.tools",
"org.apache.xml"
] | java.io; java.net; org.apache.tools; org.apache.xml; | 286,953 |
@GwtCompatible(serializable = true)
public static Ordering<Object> usingToString() {
return UsingToStringOrdering.INSTANCE;
} | @GwtCompatible(serializable = true) static Ordering<Object> function() { return UsingToStringOrdering.INSTANCE; } | /**
* Returns an ordering that compares objects by the natural ordering of their
* string representations as returned by {@code toString()}. It does not
* support null values.
*
* <p>The comparator is serializable.
*/ | Returns an ordering that compares objects by the natural ordering of their string representations as returned by toString(). It does not support null values. The comparator is serializable | usingToString | {
"repo_name": "npvincent/guava",
"path": "guava/src/com/google/common/collect/Ordering.java",
"license": "apache-2.0",
"size": 34470
} | [
"com.google.common.annotations.GwtCompatible"
] | import com.google.common.annotations.GwtCompatible; | import com.google.common.annotations.*; | [
"com.google.common"
] | com.google.common; | 1,614,359 |
@Override
public XAResource[] getXAResources(final ActivationSpec[] specs) throws ResourceException {
if (ActiveMQResourceAdapter.trace) {
ActiveMQRALogger.LOGGER.trace("getXAResources(" + Arrays.toString(specs) + ")");
}
if (useAutoRecovery) {
// let the TM handle the recover... | XAResource[] function(final ActivationSpec[] specs) throws ResourceException { if (ActiveMQResourceAdapter.trace) { ActiveMQRALogger.LOGGER.trace(STR + Arrays.toString(specs) + ")"); } if (useAutoRecovery) { return null; } else { List<XAResource> xaresources = new ArrayList<>(); for (ActivationSpec spec : specs) { Acti... | /**
* Get XA resources
*
* @param specs The activation specs
* @return The XA resources
* @throws ResourceException Thrown if an error occurs or unsupported
*/ | Get XA resources | getXAResources | {
"repo_name": "l-dobrev/activemq-artemis",
"path": "artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQResourceAdapter.java",
"license": "apache-2.0",
"size": 66820
} | [
"java.util.ArrayList",
"java.util.Arrays",
"java.util.List",
"javax.resource.ResourceException",
"javax.resource.spi.ActivationSpec",
"javax.transaction.xa.XAResource",
"org.apache.activemq.artemis.ra.inflow.ActiveMQActivation"
] | import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.resource.ResourceException; import javax.resource.spi.ActivationSpec; import javax.transaction.xa.XAResource; import org.apache.activemq.artemis.ra.inflow.ActiveMQActivation; | import java.util.*; import javax.resource.*; import javax.resource.spi.*; import javax.transaction.xa.*; import org.apache.activemq.artemis.ra.inflow.*; | [
"java.util",
"javax.resource",
"javax.transaction",
"org.apache.activemq"
] | java.util; javax.resource; javax.transaction; org.apache.activemq; | 2,855,095 |
public Observable<ServiceResponse<SearchServiceInner>> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String searchServiceName, SearchServiceInner searchServiceInner, SearchManagementRequestOptionsInner searchManagementRequestOptions) {
if (resourceGroupName == null) {
thr... | Observable<ServiceResponse<SearchServiceInner>> function(String resourceGroupName, String searchServiceName, SearchServiceInner searchServiceInner, SearchManagementRequestOptionsInner searchManagementRequestOptions) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (searchServiceName == n... | /**
* Creates or updates a Search service in the given resource group. If the Search service already exists, all properties will be updated with the given values.
*
* @param resourceGroupName The name of the resource group within the current subscription. You can obtain this value from the Azure Resource... | Creates or updates a Search service in the given resource group. If the Search service already exists, all properties will be updated with the given values | beginCreateOrUpdateWithServiceResponseAsync | {
"repo_name": "martinsawicki/azure-sdk-for-java",
"path": "azure-mgmt-search/src/main/java/com/microsoft/azure/management/search/implementation/ServicesInner.java",
"license": "mit",
"size": 85259
} | [
"com.microsoft.rest.ServiceResponse",
"com.microsoft.rest.Validator"
] | import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.Validator; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 1,382,349 |
public void handleEvent(Event evt) {
Element elt = (Element)evt.getCurrentTarget();
// Evaluate the script
String script = handlerElement.getTextContent();
if (script.length() == 0)
return;
DocumentLoader dl = bridgeContext.getDocument... | void function(Event evt) { Element elt = (Element)evt.getCurrentTarget(); String script = handlerElement.getTextContent(); if (script.length() == 0) return; DocumentLoader dl = bridgeContext.getDocumentLoader(); AbstractDocument d = (AbstractDocument) handlerElement.getOwnerDocument(); int line = dl.getLineNumber(handl... | /**
* Runs the script.
*/ | Runs the script | handleEvent | {
"repo_name": "shyamalschandra/flex-sdk",
"path": "modules/thirdparty/batik/sources/org/apache/flex/forks/batik/bridge/svg12/SVG12ScriptingEnvironment.java",
"license": "apache-2.0",
"size": 12666
} | [
"org.apache.flex.forks.batik.bridge.DocumentLoader",
"org.apache.flex.forks.batik.bridge.Messages",
"org.apache.flex.forks.batik.bridge.SVGUtilities",
"org.apache.flex.forks.batik.dom.AbstractDocument",
"org.apache.flex.forks.batik.util.SVGConstants",
"org.w3c.dom.Element",
"org.w3c.dom.events.Event"
] | import org.apache.flex.forks.batik.bridge.DocumentLoader; import org.apache.flex.forks.batik.bridge.Messages; import org.apache.flex.forks.batik.bridge.SVGUtilities; import org.apache.flex.forks.batik.dom.AbstractDocument; import org.apache.flex.forks.batik.util.SVGConstants; import org.w3c.dom.Element; import org.w3c.... | import org.apache.flex.forks.batik.bridge.*; import org.apache.flex.forks.batik.dom.*; import org.apache.flex.forks.batik.util.*; import org.w3c.dom.*; import org.w3c.dom.events.*; | [
"org.apache.flex",
"org.w3c.dom"
] | org.apache.flex; org.w3c.dom; | 2,326,841 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.