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
sequence
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
sequence
libraries_info
stringlengths
6
661
id
int64
0
2.92M
void filterFunctions(Set functions, AttributeDesignator attribute);
void filterFunctions(Set functions, AttributeDesignator attribute);
/** * Removes functions that should not be available for the user to * apply to an attribute. * * @param functions The <code>Set</code> of functions to modify in place. * @param attribute The relevant attribute */
Removes functions that should not be available for the user to apply to an attribute
filterFunctions
{ "repo_name": "NCIP/cadsr-cgmdr-nci-uk", "path": "src/org/exist/client/xacml/AttributeHandler.java", "license": "bsd-3-clause", "size": 1651 }
[ "com.sun.xacml.attr.AttributeDesignator", "java.util.Set" ]
import com.sun.xacml.attr.AttributeDesignator; import java.util.Set;
import com.sun.xacml.attr.*; import java.util.*;
[ "com.sun.xacml", "java.util" ]
com.sun.xacml; java.util;
2,462,789
public void setOptOutDate (Timestamp OptOutDate);
void function (Timestamp OptOutDate);
/** Set Opt-out Date. * Date the contact opted out */
Set Opt-out Date. Date the contact opted out
setOptOutDate
{ "repo_name": "arthurmelo88/palmetalADP", "path": "adempiere_360/base/src/org/compiere/model/I_R_ContactInterest.java", "license": "gpl-2.0", "size": 5041 }
[ "java.sql.Timestamp" ]
import java.sql.Timestamp;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,393,531
public void testPathClassStringEnc() throws Exception { this.uriBuilder.replacePath(null); this.uriBuilder.path(CarListResource.class, "getOffers"); assertEqualsURI("http://localhost/" + CarListResource.PATH + "/" + CarListResource.OFFERS_PATH, this.uriBuilder, true); }
void function() throws Exception { this.uriBuilder.replacePath(null); this.uriBuilder.path(CarListResource.class, STR); assertEqualsURI("http: + CarListResource.OFFERS_PATH, this.uriBuilder, true); }
/** * Test method for {@link ExtendedUriBuilder#path(Class, String)}. */
Test method for <code>ExtendedUriBuilder#path(Class, String)</code>
testPathClassStringEnc
{ "repo_name": "debrief/debrief", "path": "org.mwc.asset.comms/docs/restlet_src/org.restlet.test/org/restlet/test/jaxrs/core/ExtendedJaxRsUriBuilderTest.java", "license": "epl-1.0", "size": 28509 }
[ "org.restlet.test.jaxrs.services.car.CarListResource" ]
import org.restlet.test.jaxrs.services.car.CarListResource;
import org.restlet.test.jaxrs.services.car.*;
[ "org.restlet.test" ]
org.restlet.test;
823,417
Single<Installation> addAdditionalInformation(Map<String, String> additionalInformation);
Single<Installation> addAdditionalInformation(Map<String, String> additionalInformation);
/** * Add or update the additional information of the current installation. * * @param additionalInformation the list of additional information to add or update on the existing installation. * * @return the updated installation. */
Add or update the additional information of the current installation
addAdditionalInformation
{ "repo_name": "gravitee-io/graviteeio-access-management", "path": "gravitee-am-service/src/main/java/io/gravitee/am/service/InstallationService.java", "license": "apache-2.0", "size": 2215 }
[ "io.gravitee.am.model.Installation", "io.reactivex.Single", "java.util.Map" ]
import io.gravitee.am.model.Installation; import io.reactivex.Single; import java.util.Map;
import io.gravitee.am.model.*; import io.reactivex.*; import java.util.*;
[ "io.gravitee.am", "io.reactivex", "java.util" ]
io.gravitee.am; io.reactivex; java.util;
2,631,869
public void setProxy(String hostname, int port, String username, String password) { httpClient.getCredentialsProvider().setCredentials( new AuthScope(hostname, port), new UsernamePasswordCredentials(username, password)); final HttpHost proxy = new HttpHost(hostname, port); final HttpParams httpParams = this.httpClient.getParams(); httpParams.setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); }
void function(String hostname, int port, String username, String password) { httpClient.getCredentialsProvider().setCredentials( new AuthScope(hostname, port), new UsernamePasswordCredentials(username, password)); final HttpHost proxy = new HttpHost(hostname, port); final HttpParams httpParams = this.httpClient.getParams(); httpParams.setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy); }
/** * Sets the Proxy by it's hostname,port,username and password * * @param hostname the hostname (IP or DNS name) * @param port the port number. -1 indicates the scheme default port. * @param username the username * @param password the password */
Sets the Proxy by it's hostname,port,username and password
setProxy
{ "repo_name": "logistic-infotech/AndroidAsyncImageView", "path": "src/com/loopj/android/http/AsyncHttpClient.java", "license": "mit", "size": 41701 }
[ "org.apache.http.HttpHost", "org.apache.http.auth.AuthScope", "org.apache.http.auth.UsernamePasswordCredentials", "org.apache.http.conn.params.ConnRoutePNames", "org.apache.http.params.HttpParams" ]
import org.apache.http.HttpHost; import org.apache.http.auth.AuthScope; import org.apache.http.auth.UsernamePasswordCredentials; import org.apache.http.conn.params.ConnRoutePNames; import org.apache.http.params.HttpParams;
import org.apache.http.*; import org.apache.http.auth.*; import org.apache.http.conn.params.*; import org.apache.http.params.*;
[ "org.apache.http" ]
org.apache.http;
2,082,935
protected String toOS(String path) { return FilenameUtils.separatorsToSystem(path); }
String function(String path) { return FilenameUtils.separatorsToSystem(path); }
/** * Ensure that the path has appropriate separators for the system in use. * * @param path * the raw input path. * @return the corrected system separators */
Ensure that the path has appropriate separators for the system in use
toOS
{ "repo_name": "vthangathurai/SOA-Runtime", "path": "codegen/turmeric-maven-plugin/src/main/java/org/ebayopensource/turmeric/plugins/maven/AbstractTurmericMojo.java", "license": "apache-2.0", "size": 28356 }
[ "org.apache.commons.io.FilenameUtils" ]
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.io.*;
[ "org.apache.commons" ]
org.apache.commons;
1,071,210
void enterInstruction(@NotNull PropertyAssignmentParser.InstructionContext ctx); void exitInstruction(@NotNull PropertyAssignmentParser.InstructionContext ctx);
void enterInstruction(@NotNull PropertyAssignmentParser.InstructionContext ctx); void exitInstruction(@NotNull PropertyAssignmentParser.InstructionContext ctx);
/** * Exit a parse tree produced by {@link PropertyAssignmentParser#instruction}. * @param ctx the parse tree */
Exit a parse tree produced by <code>PropertyAssignmentParser#instruction</code>
exitInstruction
{ "repo_name": "codebulb/codeGenerationCompared", "path": "src/main/java/ch/codebulb/codegenerationcompared/antlr/generated/PropertyAssignmentListener.java", "license": "bsd-3-clause", "size": 3211 }
[ "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;
1,774,971
public java.util.List<fr.lip6.move.pnml.symmetricnet.terms.hlapi.MultisetSortHLAPI> getInput_terms_MultisetSortHLAPI(){ java.util.List<fr.lip6.move.pnml.symmetricnet.terms.hlapi.MultisetSortHLAPI> retour = new ArrayList<fr.lip6.move.pnml.symmetricnet.terms.hlapi.MultisetSortHLAPI>(); for (Sort elemnt : getInput()) { if(elemnt.getClass().equals(fr.lip6.move.pnml.symmetricnet.terms.impl.MultisetSortImpl.class)){ retour.add(new fr.lip6.move.pnml.symmetricnet.terms.hlapi.MultisetSortHLAPI( (fr.lip6.move.pnml.symmetricnet.terms.MultisetSort)elemnt )); } } return retour; }
java.util.List<fr.lip6.move.pnml.symmetricnet.terms.hlapi.MultisetSortHLAPI> function(){ java.util.List<fr.lip6.move.pnml.symmetricnet.terms.hlapi.MultisetSortHLAPI> retour = new ArrayList<fr.lip6.move.pnml.symmetricnet.terms.hlapi.MultisetSortHLAPI>(); for (Sort elemnt : getInput()) { if(elemnt.getClass().equals(fr.lip6.move.pnml.symmetricnet.terms.impl.MultisetSortImpl.class)){ retour.add(new fr.lip6.move.pnml.symmetricnet.terms.hlapi.MultisetSortHLAPI( (fr.lip6.move.pnml.symmetricnet.terms.MultisetSort)elemnt )); } } return retour; }
/** * This accessor return a list of encapsulated subelement, only of MultisetSortHLAPI kind. * WARNING : this method can creates a lot of new object in memory. */
This accessor return a list of encapsulated subelement, only of MultisetSortHLAPI kind. WARNING : this method can creates a lot of new object in memory
getInput_terms_MultisetSortHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-SNNet/src/fr/lip6/move/pnml/symmetricnet/integers/hlapi/NumberConstantHLAPI.java", "license": "epl-1.0", "size": 94704 }
[ "fr.lip6.move.pnml.symmetricnet.terms.Sort", "java.util.ArrayList", "java.util.List" ]
import fr.lip6.move.pnml.symmetricnet.terms.Sort; import java.util.ArrayList; import java.util.List;
import fr.lip6.move.pnml.symmetricnet.terms.*; import java.util.*;
[ "fr.lip6.move", "java.util" ]
fr.lip6.move; java.util;
1,041,963
@ServiceMethod(returns = ReturnType.SINGLE) private PollerFlux<PollResult<Void>, Void> beginDeleteAsync( String resourceGroupName, String routeTableName, String routeName, Context context) { context = this.client.mergeContext(context); Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, routeTableName, routeName, context); return this .client .<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); }
@ServiceMethod(returns = ReturnType.SINGLE) PollerFlux<PollResult<Void>, Void> function( String resourceGroupName, String routeTableName, String routeName, Context context) { context = this.client.mergeContext(context); Mono<Response<Flux<ByteBuffer>>> mono = deleteWithResponseAsync(resourceGroupName, routeTableName, routeName, context); return this .client .<Void, Void>getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); }
/** * Deletes the specified route from a route table. * * @param resourceGroupName The name of the resource group. * @param routeTableName The name of the route table. * @param routeName The name of the route. * @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 server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the completion. */
Deletes the specified route from a route table
beginDeleteAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/RoutesClientImpl.java", "license": "mit", "size": 52647 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.management.polling.PollResult", "com.azure.core.util.Context", "com.azure.core.util.polling.PollerFlux", "java.nio.ByteBuffer" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.PollerFlux; import java.nio.ByteBuffer;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.management.polling.*; import com.azure.core.util.*; import com.azure.core.util.polling.*; import java.nio.*;
[ "com.azure.core", "java.nio" ]
com.azure.core; java.nio;
456,019
public static DoublesColumn create(ColumnarDoubles column, ImmutableBitmap nullValueBitmap) { if (nullValueBitmap.isEmpty()) { return new DoublesColumn(column); } else { return new DoublesColumnWithNulls(column, nullValueBitmap); } } final ColumnarDoubles column; DoublesColumn(ColumnarDoubles columnarDoubles) { column = columnarDoubles; }
static DoublesColumn function(ColumnarDoubles column, ImmutableBitmap nullValueBitmap) { if (nullValueBitmap.isEmpty()) { return new DoublesColumn(column); } else { return new DoublesColumnWithNulls(column, nullValueBitmap); } } final ColumnarDoubles column; DoublesColumn(ColumnarDoubles columnarDoubles) { column = columnarDoubles; }
/** * Factory method to create DoublesColumn. */
Factory method to create DoublesColumn
create
{ "repo_name": "b-slim/druid", "path": "processing/src/main/java/io/druid/segment/column/DoublesColumn.java", "license": "apache-2.0", "size": 2221 }
[ "io.druid.collections.bitmap.ImmutableBitmap", "io.druid.segment.data.ColumnarDoubles" ]
import io.druid.collections.bitmap.ImmutableBitmap; import io.druid.segment.data.ColumnarDoubles;
import io.druid.collections.bitmap.*; import io.druid.segment.data.*;
[ "io.druid.collections", "io.druid.segment" ]
io.druid.collections; io.druid.segment;
2,004,056
public void setModifyTime(Date modifyTime) { this.modifyTime = modifyTime; }
void function(Date modifyTime) { this.modifyTime = modifyTime; }
/** * This method was generated by MyBatis Generator. * This method sets the value of the database column au_user_detail.modify_time * * @param modifyTime the value for au_user_detail.modify_time * * @mbggenerated Thu Jan 19 13:57:36 CST 2017 */
This method was generated by MyBatis Generator. This method sets the value of the database column au_user_detail.modify_time
setModifyTime
{ "repo_name": "dassmeta/passport", "path": "passport-dal/src/main/java/com/dassmeta/passport/dal/dataobject/AuUserDetail.java", "license": "apache-2.0", "size": 14789 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
230,574
public TypeFacade getTypeFacadeById(Long typeId) { TypeFacade typeFacade = null; HashMap typeMap = getTypeFacadeMap(); typeFacade = (TypeFacade)typeMap.get(typeId); return typeFacade; }
TypeFacade function(Long typeId) { TypeFacade typeFacade = null; HashMap typeMap = getTypeFacadeMap(); typeFacade = (TypeFacade)typeMap.get(typeId); return typeFacade; }
/** * This method returns the TypeFacade with the specified typeId found * in the typeFacadeMap that lives in cache. * @param typeId * @return TypeFacade */
This method returns the TypeFacade with the specified typeId found in the typeFacadeMap that lives in cache
getTypeFacadeById
{ "repo_name": "eemirtekin/Sakai-10.6-TR", "path": "samigo/samigo-services/src/java/org/sakaiproject/tool/assessment/facade/TypeFacadeQueries.java", "license": "apache-2.0", "size": 7535 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
466,044
public void keyPressed(int keyCode) { switch (getGameAction(keyCode)) { case Canvas.UP: myWorm.setDirection(Worm.UP); break; case Canvas.DOWN: myWorm.setDirection(Worm.DOWN); break; case Canvas.LEFT: myWorm.setDirection(Worm.LEFT); break; case Canvas.RIGHT: myWorm.setDirection(Worm.RIGHT); break; case 0: // There is no game action.. Use keypad constants instead switch (keyCode) { case Canvas.KEY_NUM2: myWorm.setDirection(Worm.UP); break; case Canvas.KEY_NUM8: myWorm.setDirection(Worm.DOWN); break; case Canvas.KEY_NUM4: myWorm.setDirection(Worm.LEFT); break; case Canvas.KEY_NUM6: myWorm.setDirection(Worm.RIGHT); break; } break; } }
void function(int keyCode) { switch (getGameAction(keyCode)) { case Canvas.UP: myWorm.setDirection(Worm.UP); break; case Canvas.DOWN: myWorm.setDirection(Worm.DOWN); break; case Canvas.LEFT: myWorm.setDirection(Worm.LEFT); break; case Canvas.RIGHT: myWorm.setDirection(Worm.RIGHT); break; case 0: switch (keyCode) { case Canvas.KEY_NUM2: myWorm.setDirection(Worm.UP); break; case Canvas.KEY_NUM8: myWorm.setDirection(Worm.DOWN); break; case Canvas.KEY_NUM4: myWorm.setDirection(Worm.LEFT); break; case Canvas.KEY_NUM6: myWorm.setDirection(Worm.RIGHT); break; } break; } }
/** * Handle keyboard input. This is used for worm movement. * @param keyCode pressed key is either Canvas arrow key (UP, * DOWN, LEFT, RIGHT) or simulated with KEY_NUM (2, 8, 4,6). */
Handle keyboard input. This is used for worm movement
keyPressed
{ "repo_name": "ghostgzt/STX", "path": "src/kavax/wormgame/WormPit.java", "license": "gpl-3.0", "size": 19670 }
[ "javax.microedition.lcdui.Canvas" ]
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.*;
[ "javax.microedition" ]
javax.microedition;
2,743,019
private void emitListAdd(Method method, String fieldName, StringBuilder builder) { builder.append(" public void "); builder.append(getListAdderName(fieldName)); builder.append("("); builder.append(getTypeArgumentImplName((ParameterizedType) method.getGenericReturnType(), 0)); builder.append(" v) {\n "); builder.append(getEnsureName(fieldName)); builder.append("();\n "); builder.append(fieldName); builder.append(".add(v);\n"); builder.append(" }\n\n"); }
void function(Method method, String fieldName, StringBuilder builder) { builder.append(STR); builder.append(getListAdderName(fieldName)); builder.append("("); builder.append(getTypeArgumentImplName((ParameterizedType) method.getGenericReturnType(), 0)); builder.append(STR); builder.append(getEnsureName(fieldName)); builder.append(STR); builder.append(fieldName); builder.append(STR); builder.append(STR); }
/** * Emits an add method to add to a list. If the list is null, it is created. * * @param method a method with a list return type */
Emits an add method to add to a list. If the list is null, it is created
emitListAdd
{ "repo_name": "TypeFox/che", "path": "core/che-core-api-dto/src/main/java/org/eclipse/che/dto/generator/DtoImplClientTemplate.java", "license": "epl-1.0", "size": 52140 }
[ "java.lang.reflect.Method", "java.lang.reflect.ParameterizedType" ]
import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,056,024
public void updateCodeFolder(List outlineTree) { this.folder.update(outlineTree); }
void function(List outlineTree) { this.folder.update(outlineTree); }
/** * Updates the code folds. * * @param outlineTree The outline data structure containing the document positions */
Updates the code folds
updateCodeFolder
{ "repo_name": "rondiplomatico/texlipse", "path": "source/net/sourceforge/texlipse/bibeditor/BibEditor.java", "license": "epl-1.0", "size": 7761 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
566,219
public BulkIndexByScrollResponseMatcher slices(Matcher<Collection<? extends BulkIndexByScrollResponseMatcher>> slicesMatcher) { this.slicesMatcher = slicesMatcher; return this; }
BulkIndexByScrollResponseMatcher function(Matcher<Collection<? extends BulkIndexByScrollResponseMatcher>> slicesMatcher) { this.slicesMatcher = slicesMatcher; return this; }
/** * Set the matcher for the workers portion of the response. */
Set the matcher for the workers portion of the response
slices
{ "repo_name": "nknize/elasticsearch", "path": "modules/reindex/src/test/java/org/elasticsearch/index/reindex/BulkIndexByScrollResponseMatcher.java", "license": "apache-2.0", "size": 6186 }
[ "java.util.Collection", "org.hamcrest.Matcher" ]
import java.util.Collection; import org.hamcrest.Matcher;
import java.util.*; import org.hamcrest.*;
[ "java.util", "org.hamcrest" ]
java.util; org.hamcrest;
1,464,700
private List<String> readLines(Reader reader) { List<String> lines = new ArrayList<String>(); BufferedReader bufferedReader = new BufferedReader(reader); String line; try { while ((line = bufferedReader.readLine()) != null) { lines.add(line); } } catch (IOException e) { String message = resource == null ? "Unable to parse lines" : "Unable to parse " + resource.getLocation() + " (" + resource.getLocationOnDisk() + ")"; throw new FlywayException(message, e); } return lines; }
List<String> function(Reader reader) { List<String> lines = new ArrayList<String>(); BufferedReader bufferedReader = new BufferedReader(reader); String line; try { while ((line = bufferedReader.readLine()) != null) { lines.add(line); } } catch (IOException e) { String message = resource == null ? STR : STR + resource.getLocation() + STR + resource.getLocationOnDisk() + ")"; throw new FlywayException(message, e); } return lines; }
/** * Parses the textual data provided by this reader into a list of lines. * * @param reader The reader for the textual data. * @return The list of lines (in order). * @throws IllegalStateException Thrown when the textual data parsing failed. */
Parses the textual data provided by this reader into a list of lines
readLines
{ "repo_name": "super132/flyway", "path": "flyway-core/src/main/java/org/flywaydb/core/internal/dbsupport/SqlScript.java", "license": "apache-2.0", "size": 9596 }
[ "java.io.BufferedReader", "java.io.IOException", "java.io.Reader", "java.util.ArrayList", "java.util.List", "org.flywaydb.core.api.FlywayException" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import java.util.ArrayList; import java.util.List; import org.flywaydb.core.api.FlywayException;
import java.io.*; import java.util.*; import org.flywaydb.core.api.*;
[ "java.io", "java.util", "org.flywaydb.core" ]
java.io; java.util; org.flywaydb.core;
2,582,882
public boolean isMatch(Node node) throws XPathException { Env env = XPath.createEnv(); // XXX: doesn't make sense for a match to have a context? //env.setCurrentNode(node); //env.setContextNode(node); boolean value = pattern.match(node, env); XPath.freeEnv(env); return value; }
boolean function(Node node) throws XPathException { Env env = XPath.createEnv(); boolean value = pattern.match(node, env); XPath.freeEnv(env); return value; }
/** * Test if the node matches the pattern. The pattern should be a * match pattern. * * @param node node to test * * @return true if the pattern matches. */
Test if the node matches the pattern. The pattern should be a match pattern
isMatch
{ "repo_name": "dlitz/resin", "path": "modules/kernel/src/com/caucho/xpath/Pattern.java", "license": "gpl-2.0", "size": 5564 }
[ "org.w3c.dom.Node" ]
import org.w3c.dom.Node;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
21,206
public LenskitConfigContext at(@Nullable Annotation qualifier, Class<?> type, Closure<?> block) { return configure(at(qualifier, type), block); }
LenskitConfigContext function(@Nullable Annotation qualifier, Class<?> type, Closure<?> block) { return configure(at(qualifier, type), block); }
/** * Enclose a block of configuration in a context. * * @param qualifier The qualifier. * @param type The type to match for the context. * @param block The configuration block. * @return The configuration context. * @see LenskitConfigContext#at(Annotation, Class) * @see #at(Class, Closure) */
Enclose a block of configuration in a context
at
{ "repo_name": "blankazucenalg/lenskit", "path": "lenskit-groovy/src/main/java/org/grouplens/lenskit/config/BindingDSL.java", "license": "lgpl-2.1", "size": 10767 }
[ "groovy.lang.Closure", "java.lang.annotation.Annotation", "javax.annotation.Nullable", "org.grouplens.lenskit.core.LenskitConfigContext" ]
import groovy.lang.Closure; import java.lang.annotation.Annotation; import javax.annotation.Nullable; import org.grouplens.lenskit.core.LenskitConfigContext;
import groovy.lang.*; import java.lang.annotation.*; import javax.annotation.*; import org.grouplens.lenskit.core.*;
[ "groovy.lang", "java.lang", "javax.annotation", "org.grouplens.lenskit" ]
groovy.lang; java.lang; javax.annotation; org.grouplens.lenskit;
2,897,025
@Nullable public String getContentTypeHeader() { if (Strings.isNullOrEmpty(contentTypeHeader)) { if (!Strings.isNullOrEmpty(mediaType)) { contentTypeHeader = Strings.isNullOrEmpty(characterEncoding) ? mediaType : Joiner.on("; charset=").join(mediaType, characterEncoding); } } return contentTypeHeader; }
String function() { if (Strings.isNullOrEmpty(contentTypeHeader)) { if (!Strings.isNullOrEmpty(mediaType)) { contentTypeHeader = Strings.isNullOrEmpty(characterEncoding) ? mediaType : Joiner.on(STR).join(mediaType, characterEncoding); } } return contentTypeHeader; }
/** * Generate the correct HTTP {@code Content-Type} header value from the * {@link #mediaType} and {@link #characterEncoding} in this class, if set. * <p> * If {@link #mediaType} has not been given a value, this method will return * {@code null}. * * @return The correct value for a {@code Content-Type} header, or {@code * null} if the {@link #mediaType} has not been specified. */
Generate the correct HTTP Content-Type header value from the <code>#mediaType</code> and <code>#characterEncoding</code> in this class, if set. If <code>#mediaType</code> has not been given a value, this method will return null
getContentTypeHeader
{ "repo_name": "amit-jain/jackrabbit-oak", "path": "oak-blob-plugins/src/main/java/org/apache/jackrabbit/oak/plugins/blob/datastore/directaccess/DataRecordDownloadOptions.java", "license": "apache-2.0", "size": 8856 }
[ "com.google.common.base.Joiner", "com.google.common.base.Strings" ]
import com.google.common.base.Joiner; import com.google.common.base.Strings;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
2,152,388
Region region();
Region region();
/** * Gets the region of the resource. * * @return the region of the resource. */
Gets the region of the resource
region
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/deploymentmanager/azure-resourcemanager-deploymentmanager/src/main/java/com/azure/resourcemanager/deploymentmanager/models/ArtifactSource.java", "license": "mit", "size": 12035 }
[ "com.azure.core.management.Region" ]
import com.azure.core.management.Region;
import com.azure.core.management.*;
[ "com.azure.core" ]
com.azure.core;
294,695
@Transactional(propagation=Propagation.REQUIRED) public SubmissionCountsDTO findAnnotationCounts(Date startDate, Date endDate, String projectName, String siteName) throws DataAccessException { return findAffectedCounts(startDate, endDate, projectName, siteName, SubmissionHistory.ANNOTATION_SUBMISSION_OPERATION); }
@Transactional(propagation=Propagation.REQUIRED) SubmissionCountsDTO function(Date startDate, Date endDate, String projectName, String siteName) throws DataAccessException { return findAffectedCounts(startDate, endDate, projectName, siteName, SubmissionHistory.ANNOTATION_SUBMISSION_OPERATION); }
/** * For a given project/site in a date range (inclusive), find the number * of distinct patient id/study id/series id that were associated with * annotation submissions. Also return the number of annoatation submissions. */
For a given project/site in a date range (inclusive), find the number of distinct patient id/study id/series id that were associated with annotation submissions. Also return the number of annoatation submissions
findAnnotationCounts
{ "repo_name": "NCIP/national-biomedical-image-archive", "path": "software/nbia-dao/src/gov/nih/nci/nbia/dao/SubmissionHistoryDAOImpl.java", "license": "bsd-3-clause", "size": 27056 }
[ "gov.nih.nci.nbia.dto.SubmissionCountsDTO", "gov.nih.nci.nbia.internaldomain.SubmissionHistory", "java.util.Date", "org.springframework.dao.DataAccessException", "org.springframework.transaction.annotation.Propagation", "org.springframework.transaction.annotation.Transactional" ]
import gov.nih.nci.nbia.dto.SubmissionCountsDTO; import gov.nih.nci.nbia.internaldomain.SubmissionHistory; import java.util.Date; import org.springframework.dao.DataAccessException; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional;
import gov.nih.nci.nbia.dto.*; import gov.nih.nci.nbia.internaldomain.*; import java.util.*; import org.springframework.dao.*; import org.springframework.transaction.annotation.*;
[ "gov.nih.nci", "java.util", "org.springframework.dao", "org.springframework.transaction" ]
gov.nih.nci; java.util; org.springframework.dao; org.springframework.transaction;
2,355,140
public boolean isCompareConstant(Value value) { if (isJavaConstant(value)) { JavaConstant constant = asJavaConstant(value); if (constant instanceof PrimitiveConstant) { final long longValue = constant.asLong(); long maskedValue; switch (constant.getJavaKind()) { case Boolean: case Byte: maskedValue = longValue & 0xFF; break; case Char: case Short: maskedValue = longValue & 0xFFFF; break; case Int: maskedValue = longValue & 0xFFFF_FFFF; break; case Long: maskedValue = longValue; break; default: throw GraalError.shouldNotReachHere(); } return AArch64MacroAssembler.isArithmeticImmediate(maskedValue); } else { return constant.isDefaultForKind(); } } return false; }
boolean function(Value value) { if (isJavaConstant(value)) { JavaConstant constant = asJavaConstant(value); if (constant instanceof PrimitiveConstant) { final long longValue = constant.asLong(); long maskedValue; switch (constant.getJavaKind()) { case Boolean: case Byte: maskedValue = longValue & 0xFF; break; case Char: case Short: maskedValue = longValue & 0xFFFF; break; case Int: maskedValue = longValue & 0xFFFF_FFFF; break; case Long: maskedValue = longValue; break; default: throw GraalError.shouldNotReachHere(); } return AArch64MacroAssembler.isArithmeticImmediate(maskedValue); } else { return constant.isDefaultForKind(); } } return false; }
/** * Checks whether value can be used directly with a gpCompare instruction. This is <b>not</b> * the same as {@link AArch64ArithmeticLIRGenerator#isArithmeticConstant(JavaConstant)}, because * 0.0 is a valid compare constant for floats, while there are no arithmetic constants for * floats. * * @param value any type. Non null. * @return true if value can be used directly in comparison instruction, false otherwise. */
Checks whether value can be used directly with a gpCompare instruction. This is not the same as <code>AArch64ArithmeticLIRGenerator#isArithmeticConstant(JavaConstant)</code>, because 0.0 is a valid compare constant for floats, while there are no arithmetic constants for floats
isCompareConstant
{ "repo_name": "YouDiSN/OpenJDK-Research", "path": "jdk9/hotspot/src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.core.aarch64/src/org/graalvm/compiler/core/aarch64/AArch64LIRGenerator.java", "license": "gpl-2.0", "size": 19958 }
[ "org.graalvm.compiler.asm.aarch64.AArch64MacroAssembler", "org.graalvm.compiler.debug.GraalError", "org.graalvm.compiler.lir.LIRValueUtil" ]
import org.graalvm.compiler.asm.aarch64.AArch64MacroAssembler; import org.graalvm.compiler.debug.GraalError; import org.graalvm.compiler.lir.LIRValueUtil;
import org.graalvm.compiler.asm.aarch64.*; import org.graalvm.compiler.debug.*; import org.graalvm.compiler.lir.*;
[ "org.graalvm.compiler" ]
org.graalvm.compiler;
1,380,416
void setMetadata(HashMap<String, String> metadata);
void setMetadata(HashMap<String, String> metadata);
/** * Sets the metadata for the blob. * * @param metadata * A <code>java.util.HashMap</code> object that contains the * metadata being assigned to the blob. */
Sets the metadata for the blob
setMetadata
{ "repo_name": "Ethanlm/hadoop", "path": "hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/StorageInterface.java", "license": "apache-2.0", "size": 33823 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
2,161,759
@Nonnull public Sink<T> build() { if (dataSourceSupplier == null) { throw new IllegalStateException("Neither jdbcUrl() nor dataSourceSupplier() set"); } return Sinks.fromProcessor("jdbcSink", SinkProcessors.writeJdbcP(updateQuery, dataSourceSupplier, bindFn, exactlyOnce)); }
Sink<T> function() { if (dataSourceSupplier == null) { throw new IllegalStateException(STR); } return Sinks.fromProcessor(STR, SinkProcessors.writeJdbcP(updateQuery, dataSourceSupplier, bindFn, exactlyOnce)); }
/** * Creates and returns the JDBC {@link Sink} with the supplied components. */
Creates and returns the JDBC <code>Sink</code> with the supplied components
build
{ "repo_name": "gurbuzali/hazelcast-jet", "path": "hazelcast-jet-core/src/main/java/com/hazelcast/jet/pipeline/JdbcSinkBuilder.java", "license": "apache-2.0", "size": 6169 }
[ "com.hazelcast.jet.core.processor.SinkProcessors" ]
import com.hazelcast.jet.core.processor.SinkProcessors;
import com.hazelcast.jet.core.processor.*;
[ "com.hazelcast.jet" ]
com.hazelcast.jet;
2,557,797
public void requiredFirstSet(HashSet<QName> set) { _eltItem.requiredFirstSet(set); }
void function(HashSet<QName> set) { _eltItem.requiredFirstSet(set); }
/** * Returns the first set, the set of element names possible. */
Returns the first set, the set of element names possible
requiredFirstSet
{ "repo_name": "dlitz/resin", "path": "modules/kernel/src/com/caucho/relaxng/program/InElementItem.java", "license": "gpl-2.0", "size": 7241 }
[ "com.caucho.xml.QName", "java.util.HashSet" ]
import com.caucho.xml.QName; import java.util.HashSet;
import com.caucho.xml.*; import java.util.*;
[ "com.caucho.xml", "java.util" ]
com.caucho.xml; java.util;
294,887
public List<Event> evaluateAndCreateEvents(Map<String, Double> values, Date date) { return evaluateAndCreateEvents(null, values, date); }
List<Event> function(Map<String, Double> values, Date date) { return evaluateAndCreateEvents(null, values, date); }
/** * Evaluates the threshold in light of the provided datasource value and * create any events for thresholds. * * Semi-deprecated method; only used for old Thresholding code (threshd and friends) * Implemented in terms of the other method with the same name and the extra param * * @param values * map of values (by datasource name) to evaluate against the threshold (might be an expression) * @param date * Date to use in created events * @return List of events */
Evaluates the threshold in light of the provided datasource value and create any events for thresholds. Semi-deprecated method; only used for old Thresholding code (threshd and friends) Implemented in terms of the other method with the same name and the extra param
evaluateAndCreateEvents
{ "repo_name": "vishwaAbhinav/OpenNMS", "path": "opennms-services/src/main/java/org/opennms/netmgt/threshd/ThresholdEntity.java", "license": "gpl-2.0", "size": 16398 }
[ "java.util.Date", "java.util.List", "java.util.Map", "org.opennms.netmgt.xml.event.Event" ]
import java.util.Date; import java.util.List; import java.util.Map; import org.opennms.netmgt.xml.event.Event;
import java.util.*; import org.opennms.netmgt.xml.event.*;
[ "java.util", "org.opennms.netmgt" ]
java.util; org.opennms.netmgt;
1,091,235
private void drawNumbering(Graphics g, Rectangle field, double y) { if(this.tic < 1 && Math.abs(ticStart-y) < this.tic*this.tic) y = ticStart; float[] coordStart = plotSheet.toGraphicPoint(xOffset, y, field); FontMetrics fm = g.getFontMetrics( g.getFont() ); float fontHeight = fm.getHeight(true); String font = df.format(y); float width = fm.stringWidth(font); if(this.isScientific && !isIntegerNumbering){ font = dfScience.format(y); width = fm.stringWidth(font); g.drawString(font, Math.round(coordStart[0]-width*1.1f), Math.round(coordStart[1] + fontHeight*0.4f) ); }else if(isIntegerNumbering){ font = dfInteger.format(y); width = fm.stringWidth(font); g.drawString(font, Math.round(coordStart[0]-width*1.1f), Math.round(coordStart[1] + fontHeight*0.4f) ); }else { g.drawString(font, Math.round(coordStart[0]-width*1.1f), Math.round(coordStart[1] + fontHeight*0.4f) ); } if(width > maxTextWidth) maxTextWidth = width; //g.drawString(df.format(y), coordStart[0]-33, coordStart[1]+4); }
void function(Graphics g, Rectangle field, double y) { if(this.tic < 1 && Math.abs(ticStart-y) < this.tic*this.tic) y = ticStart; float[] coordStart = plotSheet.toGraphicPoint(xOffset, y, field); FontMetrics fm = g.getFontMetrics( g.getFont() ); float fontHeight = fm.getHeight(true); String font = df.format(y); float width = fm.stringWidth(font); if(this.isScientific && !isIntegerNumbering){ font = dfScience.format(y); width = fm.stringWidth(font); g.drawString(font, Math.round(coordStart[0]-width*1.1f), Math.round(coordStart[1] + fontHeight*0.4f) ); }else if(isIntegerNumbering){ font = dfInteger.format(y); width = fm.stringWidth(font); g.drawString(font, Math.round(coordStart[0]-width*1.1f), Math.round(coordStart[1] + fontHeight*0.4f) ); }else { g.drawString(font, Math.round(coordStart[0]-width*1.1f), Math.round(coordStart[1] + fontHeight*0.4f) ); } if(width > maxTextWidth) maxTextWidth = width; }
/** * draw number left to a marker * @param g graphic object used for drawing * @param field bounds of plot * @param y position of number */
draw number left to a marker
drawNumbering
{ "repo_name": "trashcutter/AnkiStats", "path": "app/src/main/java/com/wildplot/android/rendering/YAxis.java", "license": "gpl-3.0", "size": 15898 }
[ "com.wildplot.android.rendering.graphics.wrapper.FontMetrics", "com.wildplot.android.rendering.graphics.wrapper.Graphics", "com.wildplot.android.rendering.graphics.wrapper.Rectangle" ]
import com.wildplot.android.rendering.graphics.wrapper.FontMetrics; import com.wildplot.android.rendering.graphics.wrapper.Graphics; import com.wildplot.android.rendering.graphics.wrapper.Rectangle;
import com.wildplot.android.rendering.graphics.wrapper.*;
[ "com.wildplot.android" ]
com.wildplot.android;
322,220
default void afterExecution(PreparedStatement stmt, StatementContext ctx) throws SQLException { }
default void afterExecution(PreparedStatement stmt, StatementContext ctx) throws SQLException { }
/** * Make the changes you need to inside this method. It will be invoked prior to execution of * the prepared statement * * @param stmt Prepared statement being customized * @param ctx Statement context associated with the statement being customized * @throws SQLException go ahead and percolate it for jDBI to handle */
Make the changes you need to inside this method. It will be invoked prior to execution of the prepared statement
beforeExecution
{ "repo_name": "pennello/jdbi", "path": "core/src/main/java/org/jdbi/v3/core/statement/StatementCustomizer.java", "license": "apache-2.0", "size": 1669 }
[ "java.sql.PreparedStatement", "java.sql.SQLException" ]
import java.sql.PreparedStatement; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,320,865
ImmutableList<SchemaOrgType> getOriginatesFromList();
ImmutableList<SchemaOrgType> getOriginatesFromList();
/** * Returns the value list of property originatesFrom. Empty list is returned if the property not * set in current object. */
Returns the value list of property originatesFrom. Empty list is returned if the property not set in current object
getOriginatesFromList
{ "repo_name": "google/schemaorg-java", "path": "src/main/java/com/google/schemaorg/core/LymphaticVessel.java", "license": "apache-2.0", "size": 10819 }
[ "com.google.common.collect.ImmutableList", "com.google.schemaorg.SchemaOrgType" ]
import com.google.common.collect.ImmutableList; import com.google.schemaorg.SchemaOrgType;
import com.google.common.collect.*; import com.google.schemaorg.*;
[ "com.google.common", "com.google.schemaorg" ]
com.google.common; com.google.schemaorg;
545,172
public ParameterService getParameterService() { return SpringContext.getBean(ParameterService.class); }
ParameterService function() { return SpringContext.getBean(ParameterService.class); }
/** * Returns an implementation of the parameterService * * @return an implementation of the parameterService */
Returns an implementation of the parameterService
getParameterService
{ "repo_name": "Ariah-Group/Finance", "path": "af_webapp/src/main/java/org/kuali/kfs/module/external/kc/service/impl/ContractsAndGrantsModuleServiceImpl.java", "license": "apache-2.0", "size": 12269 }
[ "org.kuali.kfs.sys.context.SpringContext", "org.kuali.rice.coreservice.framework.parameter.ParameterService" ]
import org.kuali.kfs.sys.context.SpringContext; import org.kuali.rice.coreservice.framework.parameter.ParameterService;
import org.kuali.kfs.sys.context.*; import org.kuali.rice.coreservice.framework.parameter.*;
[ "org.kuali.kfs", "org.kuali.rice" ]
org.kuali.kfs; org.kuali.rice;
967,780
public void testSize() { NavigableSet q = populatedSet(SIZE); for (int i = 0; i < SIZE; ++i) { assertEquals(SIZE - i, q.size()); q.pollFirst(); } for (int i = 0; i < SIZE; ++i) { assertEquals(i, q.size()); q.add(new Integer(i)); } }
void function() { NavigableSet q = populatedSet(SIZE); for (int i = 0; i < SIZE; ++i) { assertEquals(SIZE - i, q.size()); q.pollFirst(); } for (int i = 0; i < SIZE; ++i) { assertEquals(i, q.size()); q.add(new Integer(i)); } }
/** * size changes when elements added and removed */
size changes when elements added and removed
testSize
{ "repo_name": "debian-pkg-android-tools/android-platform-libcore", "path": "jsr166-tests/src/test/java/jsr166/ConcurrentSkipListSubSetTest.java", "license": "gpl-2.0", "size": 30992 }
[ "java.util.NavigableSet" ]
import java.util.NavigableSet;
import java.util.*;
[ "java.util" ]
java.util;
1,426,685
List<Invoker<T>> list(Invocation invocation) throws RpcException;
List<Invoker<T>> list(Invocation invocation) throws RpcException;
/** * list invokers. * * @return invokers */
list invokers
list
{ "repo_name": "qtvbwfn/dubbo", "path": "dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/Directory.java", "license": "apache-2.0", "size": 1610 }
[ "java.util.List", "org.apache.dubbo.rpc.Invocation", "org.apache.dubbo.rpc.Invoker", "org.apache.dubbo.rpc.RpcException" ]
import java.util.List; import org.apache.dubbo.rpc.Invocation; import org.apache.dubbo.rpc.Invoker; import org.apache.dubbo.rpc.RpcException;
import java.util.*; import org.apache.dubbo.rpc.*;
[ "java.util", "org.apache.dubbo" ]
java.util; org.apache.dubbo;
2,421,972
public Layout<Vertex,Edge> getNetworkLayout();
Layout<Vertex,Edge> function();
/** * Returns the layout used to display the network. * @return */
Returns the layout used to display the network
getNetworkLayout
{ "repo_name": "dev-cuttlefish/cuttlefish", "path": "src-old/ch/ethz/sg/cuttlefish/gui/INetworkBrowser.java", "license": "gpl-2.0", "size": 3243 }
[ "ch.ethz.sg.cuttlefish.misc.Edge", "ch.ethz.sg.cuttlefish.misc.Vertex", "edu.uci.ics.jung.algorithms.layout.Layout" ]
import ch.ethz.sg.cuttlefish.misc.Edge; import ch.ethz.sg.cuttlefish.misc.Vertex; import edu.uci.ics.jung.algorithms.layout.Layout;
import ch.ethz.sg.cuttlefish.misc.*; import edu.uci.ics.jung.algorithms.layout.*;
[ "ch.ethz.sg", "edu.uci.ics" ]
ch.ethz.sg; edu.uci.ics;
1,878,145
@Deprecated void createQueue(SimpleString address, SimpleString queueName, boolean durable) throws ActiveMQException;
void createQueue(SimpleString address, SimpleString queueName, boolean durable) throws ActiveMQException;
/** * Creates a <em>non-temporary</em> queue. * * @param address the queue will be bound to this address * @param queueName the name of the queue * @param durable whether the queue is durable or not * @throws ActiveMQException in an exception occurs while creating the queue */
Creates a non-temporary queue
createQueue
{ "repo_name": "gtully/activemq-artemis", "path": "artemis-core-client/src/main/java/org/apache/activemq/artemis/api/core/client/ClientSession.java", "license": "apache-2.0", "size": 41588 }
[ "org.apache.activemq.artemis.api.core.ActiveMQException", "org.apache.activemq.artemis.api.core.SimpleString" ]
import org.apache.activemq.artemis.api.core.ActiveMQException; import org.apache.activemq.artemis.api.core.SimpleString;
import org.apache.activemq.artemis.api.core.*;
[ "org.apache.activemq" ]
org.apache.activemq;
2,789,308
public Observable<ServiceResponse<Page<OperationInner>>> listSinglePageAsync() { if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); }
Observable<ServiceResponse<Page<OperationInner>>> function() { if (this.client.apiVersion() == null) { throw new IllegalArgumentException(STR); }
/** * Lists all of the available ServiceBus REST API operations. * * @throws IllegalArgumentException thrown if parameters fail the validation * @return the PagedList&lt;OperationInner&gt; object wrapped in {@link ServiceResponse} if successful. */
Lists all of the available ServiceBus REST API operations
listSinglePageAsync
{ "repo_name": "anudeepsharma/azure-sdk-for-java", "path": "azure-mgmt-servicebus/src/main/java/com/microsoft/azure/management/servicebus/implementation/OperationsInner.java", "license": "mit", "size": 13875 }
[ "com.microsoft.azure.Page", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
2,690,061
public static String getString(JsonObject obj, String property) throws Exception { //Get the getObject Object getObj = get(obj, property); //Check if getObject is null if(getObj == null) return null; //Return string as is if(getObj instanceof String) return (String) getObj; //Format the double as string and return it if(getObj instanceof Double) return String.format(Locale.US, "%f", getObj); //Return the toString result for the object return getObj.toString(); }
static String function(JsonObject obj, String property) throws Exception { Object getObj = get(obj, property); if(getObj == null) return null; if(getObj instanceof String) return (String) getObj; if(getObj instanceof Double) return String.format(Locale.US, "%f", getObj); return getObj.toString(); }
/** * Get a string property from a JSON object. * <p> * If the property is not of string type the toString() method will be called on the object. * </p> * @param obj * @param property * @return * @throws Exception */
Get a string property from a JSON object. If the property is not of string type the toString() method will be called on the object.
getString
{ "repo_name": "jhertz123/katujo-web-utils", "path": "src/main/java/com/katujo/web/utils/JsonUtils.java", "license": "mit", "size": 22199 }
[ "com.google.gson.JsonObject", "java.util.Locale" ]
import com.google.gson.JsonObject; import java.util.Locale;
import com.google.gson.*; import java.util.*;
[ "com.google.gson", "java.util" ]
com.google.gson; java.util;
1,065,228
ModuleLoaderState getModuleLoaderState();
ModuleLoaderState getModuleLoaderState();
/** * Gets the current module loading state. * @return the current module loading state. */
Gets the current module loading state
getModuleLoaderState
{ "repo_name": "zhenshengcai/floodlight-hardware", "path": "src/main/java/net/floodlightcontroller/core/IFloodlightProviderService.java", "license": "apache-2.0", "size": 7608 }
[ "net.floodlightcontroller.core.internal.Controller" ]
import net.floodlightcontroller.core.internal.Controller;
import net.floodlightcontroller.core.internal.*;
[ "net.floodlightcontroller.core" ]
net.floodlightcontroller.core;
1,874,632
protected InputStream getInputStream( String name ) throws IOException { return ( this.getClass().getResourceAsStream( "/org/apache/commons/digester3/" + name ) ); }
InputStream function( String name ) throws IOException { return ( this.getClass().getResourceAsStream( STR + name ) ); }
/** * Return an appropriate InputStream for the specified test file (which must be inside our current package. * * @param name Name of the test file we want * @exception IOException if an input/output error occurs */
Return an appropriate InputStream for the specified test file (which must be inside our current package
getInputStream
{ "repo_name": "callMeDimit/commons-digester", "path": "core/src/test/java/org/apache/commons/digester3/NamespaceSnapshotTestCase.java", "license": "apache-2.0", "size": 5495 }
[ "java.io.IOException", "java.io.InputStream" ]
import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,398,601
private ImageView getAttachedImageView() { final ImageView imageView = imageViewReference.get(); final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask(imageView); if (this == bitmapWorkerTask) { return imageView; } return null; } } protected class CacheAsyncTask extends AsyncTask<Object, Void, Void> {
ImageView function() { final ImageView imageView = imageViewReference.get(); final BitmapWorkerTask bitmapWorkerTask = getBitmapWorkerTask(imageView); if (this == bitmapWorkerTask) { return imageView; } return null; } } protected class CacheAsyncTask extends AsyncTask<Object, Void, Void> {
/** * Returns the ImageView associated with this task as long as the ImageView's task still * points to this task as well. Returns null otherwise. */
Returns the ImageView associated with this task as long as the ImageView's task still points to this task as well. Returns null otherwise
getAttachedImageView
{ "repo_name": "linhnv106/SoundBlog", "path": "app/src/main/java/mk/apps/soundblog/utils/ImageWorker.java", "license": "apache-2.0", "size": 18337 }
[ "android.widget.ImageView" ]
import android.widget.ImageView;
import android.widget.*;
[ "android.widget" ]
android.widget;
2,065,336
public void splitAsync(ResizeRequest resizeRequest, RequestOptions options, ActionListener<ResizeResponse> listener) { restHighLevelClient.performRequestAsyncAndParseEntity(resizeRequest, IndicesRequestConverters::split, options, ResizeResponse::fromXContent, listener, emptySet()); } /** * Asynchronously splits an index using the Split Index API. * <p> * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-split-index.html"> * Split Index API on elastic.co</a> * @deprecated Prefer {@link #splitAsync(ResizeRequest, RequestOptions, ActionListener)}
void function(ResizeRequest resizeRequest, RequestOptions options, ActionListener<ResizeResponse> listener) { restHighLevelClient.performRequestAsyncAndParseEntity(resizeRequest, IndicesRequestConverters::split, options, ResizeResponse::fromXContent, listener, emptySet()); } /** * Asynchronously splits an index using the Split Index API. * <p> * See <a href="https: * Split Index API on elastic.co</a> * @deprecated Prefer {@link #splitAsync(ResizeRequest, RequestOptions, ActionListener)}
/** * Asynchronously splits an index using the Split Index API. * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-split-index.html"> * Split Index API on elastic.co</a> * @param resizeRequest the request * @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized * @param listener the listener to be notified upon request completion */
Asynchronously splits an index using the Split Index API. See Split Index API on elastic.co
splitAsync
{ "repo_name": "strapdata/elassandra", "path": "client/rest-high-level/src/main/java/org/elasticsearch/client/IndicesClient.java", "license": "apache-2.0", "size": 103949 }
[ "java.util.Collections", "org.elasticsearch.action.ActionListener", "org.elasticsearch.action.admin.indices.shrink.ResizeRequest", "org.elasticsearch.action.admin.indices.shrink.ResizeResponse" ]
import java.util.Collections; import org.elasticsearch.action.ActionListener; import org.elasticsearch.action.admin.indices.shrink.ResizeRequest; import org.elasticsearch.action.admin.indices.shrink.ResizeResponse;
import java.util.*; import org.elasticsearch.action.*; import org.elasticsearch.action.admin.indices.shrink.*;
[ "java.util", "org.elasticsearch.action" ]
java.util; org.elasticsearch.action;
1,888,956
public static void serializeStrictly(final Object jsonSerializable, final Writer writableDestination) throws IOException { Jsoner.serialize(jsonSerializable, writableDestination, EnumSet.noneOf(SerializationOptions.class)); }
static void function(final Object jsonSerializable, final Writer writableDestination) throws IOException { Jsoner.serialize(jsonSerializable, writableDestination, EnumSet.noneOf(SerializationOptions.class)); }
/** * Serializes JSON values and only JSON values according to the RFC 4627 * JSON specification. * * @param jsonSerializable represents the object that should be serialized * in JSON format. * @param writableDestination represents where the resulting JSON text is * written to. * @throws IOException if the writableDestination encounters an I/O problem, * like being closed while in use. * @throws IllegalArgumentException if the jsonSerializable isn't * serializable in JSON. */
Serializes JSON values and only JSON values according to the RFC 4627 JSON specification
serializeStrictly
{ "repo_name": "DariusX/camel", "path": "tooling/camel-util-json/src/main/java/org/apache/camel/util/json/Jsoner.java", "license": "apache-2.0", "size": 52985 }
[ "java.io.IOException", "java.io.Writer", "java.util.EnumSet" ]
import java.io.IOException; import java.io.Writer; import java.util.EnumSet;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,877,791
public void insertColumnGridOnly(final int index, final GridColumn<?> column) { checkSimulation(); super.insertColumn(index, column); }
void function(final int index, final GridColumn<?> column) { checkSimulation(); super.insertColumn(index, column); }
/** * This method <i>insert</i> a new column to the grid <b>without</b> modify underlying model * @param index * @param column */
This method insert a new column to the grid without modify underlying model
insertColumnGridOnly
{ "repo_name": "droolsjbpm/drools-wb", "path": "drools-wb-screens/drools-wb-scenario-simulation-editor/drools-wb-scenario-simulation-editor-client/src/main/java/org/drools/workbench/screens/scenariosimulation/client/models/AbstractScesimGridModel.java", "license": "apache-2.0", "size": 56256 }
[ "org.uberfire.ext.wires.core.grids.client.model.GridColumn" ]
import org.uberfire.ext.wires.core.grids.client.model.GridColumn;
import org.uberfire.ext.wires.core.grids.client.model.*;
[ "org.uberfire.ext" ]
org.uberfire.ext;
963,230
@InterfaceAudience.Private @InterfaceStability.Unstable public void setResourceValue(int index, long value) throws ResourceNotFoundException { try { resources[index].setValue(value); } catch (ArrayIndexOutOfBoundsException e) { throwExceptionWhenArrayOutOfBound(index); } }
@InterfaceAudience.Private @InterfaceStability.Unstable void function(int index, long value) throws ResourceNotFoundException { try { resources[index].setValue(value); } catch (ArrayIndexOutOfBoundsException e) { throwExceptionWhenArrayOutOfBound(index); } }
/** * Set the value of a resource in the ResourceInformation object. The unit of * the value is assumed to be the one in the ResourceInformation object. * * @param index * the resource index for which the value is provided. * @param value * the value to set * @throws ResourceNotFoundException * if the resource is not found */
Set the value of a resource in the ResourceInformation object. The unit of the value is assumed to be the one in the ResourceInformation object
setResourceValue
{ "repo_name": "huafengw/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/Resource.java", "license": "apache-2.0", "size": 15996 }
[ "org.apache.hadoop.classification.InterfaceAudience", "org.apache.hadoop.classification.InterfaceStability", "org.apache.hadoop.yarn.exceptions.ResourceNotFoundException" ]
import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability; import org.apache.hadoop.yarn.exceptions.ResourceNotFoundException;
import org.apache.hadoop.classification.*; import org.apache.hadoop.yarn.exceptions.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,072,752
@Override @SuppressWarnings("unused") @Test public void testConstructor() { DiagnosticFindingsOperations obj = new DiagnosticFindingsOperations(); assertTrue(true); } // testConstructor
@SuppressWarnings(STR) void function() { DiagnosticFindingsOperations obj = new DiagnosticFindingsOperations(); assertTrue(true); }
/** * Not a real test, needed for EMMA to report 100% method coverage. */
Not a real test, needed for EMMA to report 100% method coverage
testConstructor
{ "repo_name": "drbgfc/mdht", "path": "cda/deprecated/org.openhealthtools.mdht.uml.cda.cdt.test/src/org/openhealthtools/mdht/uml/cda/cdt/operations/DiagnosticFindingsOperationsTest.java", "license": "epl-1.0", "size": 2934 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,977,683
public static AnalyzedQuestion analyze(String question) { // normalize question String qn = QuestionNormalizer.normalize(question); // stem verbs and nouns String stemmed = QuestionNormalizer.stemVerbsAndNouns(qn); //MsgPrinter.printNormalization(stemmed); Logger.logNormalization(stemmed); // resolve verb constructions with auxiliaries String verbMod = (QuestionNormalizer.handleAuxiliaries(qn))[0]; // TODO return only one best string // extract keywords String[] kws = KeywordExtractor.getKeywords(verbMod, context); // extract named entities String[][] nes = TermExtractor.getNes(question, context); // extract terms and set relative frequencies Term[] terms = TermExtractor.getTerms(verbMod, context, nes, dicts.toArray(new Dictionary[dicts.size()])); for (Term term : terms) term.setRelFrequency(WordFrequencies.lookupRel(term.getText())); // extract focus word String focus = FocusFinder.findFocusWord(question); // determine answer types //String[] ats = AnswerTypeTester.getAnswerTypes(qn, stemmed); String[] ats = getAtypes(question); MsgPrinter.printAnswerTypes(ats); Logger.logAnswerTypes(ats); // interpret question QuestionInterpretation[] qis = QuestionInterpreter.interpret(qn, stemmed); MsgPrinter.printInterpretations(qis); Logger.logInterpretations(qis); // extract predicates Predicate[] ps = (predicates != null) ? predicates : PredicateExtractor.getPredicates(qn, verbMod, ats, terms); //MsgPrinter.printPredicates(ps); Logger.logPredicates(ps); // expand terms TermExpander.expandTerms(terms, ps, ontologies.toArray(new Ontology[ontologies.size()])); return new AnalyzedQuestion(question, qn, stemmed, verbMod, kws, nes, terms, focus, ats, qis, ps); }
static AnalyzedQuestion function(String question) { String qn = QuestionNormalizer.normalize(question); String stemmed = QuestionNormalizer.stemVerbsAndNouns(qn); Logger.logNormalization(stemmed); String verbMod = (QuestionNormalizer.handleAuxiliaries(qn))[0]; String[] kws = KeywordExtractor.getKeywords(verbMod, context); String[][] nes = TermExtractor.getNes(question, context); Term[] terms = TermExtractor.getTerms(verbMod, context, nes, dicts.toArray(new Dictionary[dicts.size()])); for (Term term : terms) term.setRelFrequency(WordFrequencies.lookupRel(term.getText())); String focus = FocusFinder.findFocusWord(question); String[] ats = getAtypes(question); MsgPrinter.printAnswerTypes(ats); Logger.logAnswerTypes(ats); QuestionInterpretation[] qis = QuestionInterpreter.interpret(qn, stemmed); MsgPrinter.printInterpretations(qis); Logger.logInterpretations(qis); Predicate[] ps = (predicates != null) ? predicates : PredicateExtractor.getPredicates(qn, verbMod, ats, terms); Logger.logPredicates(ps); TermExpander.expandTerms(terms, ps, ontologies.toArray(new Ontology[ontologies.size()])); return new AnalyzedQuestion(question, qn, stemmed, verbMod, kws, nes, terms, focus, ats, qis, ps); }
/** * Analyzes a question string. * * @param question question string * @return analyzed question */
Analyzes a question string
analyze
{ "repo_name": "ffund/sirius", "path": "sirius-application/question-answer/src/info/ephyra/questionanalysis/QuestionAnalysis.java", "license": "bsd-3-clause", "size": 7511 }
[ "info.ephyra.io.Logger", "info.ephyra.io.MsgPrinter", "info.ephyra.nlp.indices.WordFrequencies", "info.ephyra.nlp.semantics.Predicate", "info.ephyra.nlp.semantics.ontologies.Ontology", "info.ephyra.questionanalysis.atype.FocusFinder", "info.ephyra.util.Dictionary" ]
import info.ephyra.io.Logger; import info.ephyra.io.MsgPrinter; import info.ephyra.nlp.indices.WordFrequencies; import info.ephyra.nlp.semantics.Predicate; import info.ephyra.nlp.semantics.ontologies.Ontology; import info.ephyra.questionanalysis.atype.FocusFinder; import info.ephyra.util.Dictionary;
import info.ephyra.io.*; import info.ephyra.nlp.indices.*; import info.ephyra.nlp.semantics.*; import info.ephyra.nlp.semantics.ontologies.*; import info.ephyra.questionanalysis.atype.*; import info.ephyra.util.*;
[ "info.ephyra.io", "info.ephyra.nlp", "info.ephyra.questionanalysis", "info.ephyra.util" ]
info.ephyra.io; info.ephyra.nlp; info.ephyra.questionanalysis; info.ephyra.util;
108,563
public BeanContainer findEnclosingContainer(Object bean) { // System.out.println("Called> // SimpleBeanBox.findEnclosingContainer"); if (!(bean instanceof SimpleBeanObject)) { return null; } SimpleBeanObject obj = (SimpleBeanObject) bean; float objLat = obj.getLatitude(); float objLon = obj.getLongitude(); LatLonPoint llp = new LatLonPoint.Float(objLat, objLon); return findEnclosingContainer(llp); }
BeanContainer function(Object bean) { if (!(bean instanceof SimpleBeanObject)) { return null; } SimpleBeanObject obj = (SimpleBeanObject) bean; float objLat = obj.getLatitude(); float objLon = obj.getLongitude(); LatLonPoint llp = new LatLonPoint.Float(objLat, objLon); return findEnclosingContainer(llp); }
/** * returns a <code>BeanContainer</code> bean that contains the specified * bean object. * * @throws an IllegalArgumentException if bean is not of type * SimpleBeanObject */
returns a <code>BeanContainer</code> bean that contains the specified bean object
findEnclosingContainer
{ "repo_name": "d2fn/passage", "path": "src/main/java/com/bbn/openmap/layer/beanbox/SimpleBeanBox.java", "license": "mit", "size": 14097 }
[ "com.bbn.openmap.proj.coords.LatLonPoint", "com.bbn.openmap.tools.beanbox.BeanContainer" ]
import com.bbn.openmap.proj.coords.LatLonPoint; import com.bbn.openmap.tools.beanbox.BeanContainer;
import com.bbn.openmap.proj.coords.*; import com.bbn.openmap.tools.beanbox.*;
[ "com.bbn.openmap" ]
com.bbn.openmap;
2,491,402
public final void awaitShardSearchActive(Consumer<Boolean> listener) { markSearcherAccessed(); // move the shard into non-search idle final Translog.Location location = pendingRefreshLocation.get(); if (location != null) { addRefreshListener(location, (b) -> { pendingRefreshLocation.compareAndSet(location, null); listener.accept(true); }); } else { listener.accept(false); } }
final void function(Consumer<Boolean> listener) { markSearcherAccessed(); final Translog.Location location = pendingRefreshLocation.get(); if (location != null) { addRefreshListener(location, (b) -> { pendingRefreshLocation.compareAndSet(location, null); listener.accept(true); }); } else { listener.accept(false); } }
/** * Registers the given listener and invokes it once the shard is active again and all * pending refresh translog location has been refreshed. If there is no pending refresh location registered the listener will be * invoked immediately. * @param listener the listener to invoke once the pending refresh location is visible. The listener will be called with * <code>true</code> if the listener was registered to wait for a refresh. */
Registers the given listener and invokes it once the shard is active again and all pending refresh translog location has been refreshed. If there is no pending refresh location registered the listener will be invoked immediately
awaitShardSearchActive
{ "repo_name": "EvilMcJerkface/crate", "path": "server/src/main/java/org/elasticsearch/index/shard/IndexShard.java", "license": "apache-2.0", "size": 163532 }
[ "java.util.function.Consumer", "org.elasticsearch.index.translog.Translog" ]
import java.util.function.Consumer; import org.elasticsearch.index.translog.Translog;
import java.util.function.*; import org.elasticsearch.index.translog.*;
[ "java.util", "org.elasticsearch.index" ]
java.util; org.elasticsearch.index;
1,974,213
public String toString() { try { Iterator keys = keys(); StringBuilder sb = new StringBuilder("{"); while (keys.hasNext()) { if (sb.length() > 1) { sb.append(','); } Object o = keys.next(); sb.append(quote(o.toString())); sb.append(':'); sb.append(valueToString(this.map.get(o))); } sb.append('}'); return sb.toString(); } catch (Exception e) { return null; } }
String function() { try { Iterator keys = keys(); StringBuilder sb = new StringBuilder("{"); while (keys.hasNext()) { if (sb.length() > 1) { sb.append(','); } Object o = keys.next(); sb.append(quote(o.toString())); sb.append(':'); sb.append(valueToString(this.map.get(o))); } sb.append('}'); return sb.toString(); } catch (Exception e) { return null; } }
/** * Make a JSON text of this JSONObject. For compactness, no whitespace * is added. If this would not result in a syntactically correct JSON text, * then null will be returned instead. * <p> * Warning: This method assumes that the data structure is acyclical. * * @return a printable, displayable, portable, transmittable * representation of the object, beginning * with <code>{</code>&nbsp;<small>(left brace)</small> and ending * with <code>}</code>&nbsp;<small>(right brace)</small>. */
Make a JSON text of this JSONObject. For compactness, no whitespace is added. If this would not result in a syntactically correct JSON text, then null will be returned instead. Warning: This method assumes that the data structure is acyclical
toString
{ "repo_name": "OpenBD/openbd-core", "path": "src/org/json/JSONObject.java", "license": "gpl-3.0", "size": 51997 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
897,791
protected Predicate onNewPredicate(Predicate predicate) { if (not) { return PredicateBuilder.not(predicate); } else { return predicate; } }
Predicate function(Predicate predicate) { if (not) { return PredicateBuilder.not(predicate); } else { return predicate; } }
/** * A strategy method to allow derived classes to deal with the newly created * predicate in different ways */
A strategy method to allow derived classes to deal with the newly created predicate in different ways
onNewPredicate
{ "repo_name": "shuliangtao/apache-camel-2.13.0-src", "path": "camel-core/src/main/java/org/apache/camel/builder/ValueBuilder.java", "license": "apache-2.0", "size": 10276 }
[ "org.apache.camel.Predicate" ]
import org.apache.camel.Predicate;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
2,303,069
public static String formatFieldValueAsString(Item[] items, FieldTemplate fieldTemplate, Field field, String language) { String fieldValueAsString = defaultStringIfNotDefined(field.getValue(language)); if (fieldValueAsString.isEmpty() || !DateField.TYPE.equals(field.getTypeName())) { final String fieldName = fieldTemplate.getFieldName(); final Item item = getItemByName(items, fieldName); if (item != null) { final Map<String, String> keyValuePairs = item.getKeyValuePairs(); if (keyValuePairs != null && keyValuePairs.size() > 0) { // Try to format a checkbox list fieldValueAsString = Arrays .stream(fieldValueAsString.split(SEVERAL_VALUE_DELIMITER)) .map(keyValuePairs::get) .collect(Collectors.joining(", ")); } } } return fieldValueAsString; }
static String function(Item[] items, FieldTemplate fieldTemplate, Field field, String language) { String fieldValueAsString = defaultStringIfNotDefined(field.getValue(language)); if (fieldValueAsString.isEmpty() !DateField.TYPE.equals(field.getTypeName())) { final String fieldName = fieldTemplate.getFieldName(); final Item item = getItemByName(items, fieldName); if (item != null) { final Map<String, String> keyValuePairs = item.getKeyValuePairs(); if (keyValuePairs != null && keyValuePairs.size() > 0) { fieldValueAsString = Arrays .stream(fieldValueAsString.split(SEVERAL_VALUE_DELIMITER)) .map(keyValuePairs::get) .collect(Collectors.joining(STR)); } } } return fieldValueAsString; }
/** * Formats the field value as string from given context. * @param items the items of a form. * @param fieldTemplate the field templates of a form. * @param field the aimed field. * @param language the language the formatting rules must take in charge. * @return the formatted value. */
Formats the field value as string from given context
formatFieldValueAsString
{ "repo_name": "SilverDav/Silverpeas-Core", "path": "core-services/workflow/src/main/java/org/silverpeas/core/workflow/util/WorkflowUtil.java", "license": "agpl-3.0", "size": 4667 }
[ "java.util.Arrays", "java.util.Map", "java.util.stream.Collectors", "org.silverpeas.core.contribution.content.form.Field", "org.silverpeas.core.contribution.content.form.FieldTemplate", "org.silverpeas.core.contribution.content.form.field.DateField", "org.silverpeas.core.util.StringUtil", "org.silverpeas.core.workflow.api.model.Item" ]
import java.util.Arrays; import java.util.Map; import java.util.stream.Collectors; import org.silverpeas.core.contribution.content.form.Field; import org.silverpeas.core.contribution.content.form.FieldTemplate; import org.silverpeas.core.contribution.content.form.field.DateField; import org.silverpeas.core.util.StringUtil; import org.silverpeas.core.workflow.api.model.Item;
import java.util.*; import java.util.stream.*; import org.silverpeas.core.contribution.content.form.*; import org.silverpeas.core.contribution.content.form.field.*; import org.silverpeas.core.util.*; import org.silverpeas.core.workflow.api.model.*;
[ "java.util", "org.silverpeas.core" ]
java.util; org.silverpeas.core;
2,275,558
public HttpSessionInfo getSession(String id) { for (HttpSessionInfo si : sessions) { if (si.getId().equals(id)) { return si; } } return null; }
HttpSessionInfo function(String id) { for (HttpSessionInfo si : sessions) { if (si.getId().equals(id)) { return si; } } return null; }
/** * Return a session info */
Return a session info
getSession
{ "repo_name": "codelibs/n2dms", "path": "src/main/java/com/openkm/core/HttpSessionManager.java", "license": "gpl-2.0", "size": 4385 }
[ "com.openkm.bean.HttpSessionInfo" ]
import com.openkm.bean.HttpSessionInfo;
import com.openkm.bean.*;
[ "com.openkm.bean" ]
com.openkm.bean;
589,716
@Nullable public ScopedRoleMembership patch(@Nonnull final ScopedRoleMembership sourceScopedRoleMembership) throws ClientException { return send(HttpMethod.PATCH, sourceScopedRoleMembership); }
ScopedRoleMembership function(@Nonnull final ScopedRoleMembership sourceScopedRoleMembership) throws ClientException { return send(HttpMethod.PATCH, sourceScopedRoleMembership); }
/** * Patches this ScopedRoleMembership with a source * * @param sourceScopedRoleMembership the source object with updates * @return the updated ScopedRoleMembership * @throws ClientException this exception occurs if the request was unable to complete for any reason */
Patches this ScopedRoleMembership with a source
patch
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/ScopedRoleMembershipRequest.java", "license": "mit", "size": 6213 }
[ "com.microsoft.graph.core.ClientException", "com.microsoft.graph.http.HttpMethod", "com.microsoft.graph.models.ScopedRoleMembership", "javax.annotation.Nonnull" ]
import com.microsoft.graph.core.ClientException; import com.microsoft.graph.http.HttpMethod; import com.microsoft.graph.models.ScopedRoleMembership; import javax.annotation.Nonnull;
import com.microsoft.graph.core.*; import com.microsoft.graph.http.*; import com.microsoft.graph.models.*; import javax.annotation.*;
[ "com.microsoft.graph", "javax.annotation" ]
com.microsoft.graph; javax.annotation;
1,759,211
public void addHostnameIfNeeded() { //look for an existing declaration if(lookupFaultDetail(Constants.QNAME_FAULTDETAIL_HOSTNAME)!=null) { //and do nothing if it exists return; } addHostname(NetworkUtils.getLocalHostname()); }
void function() { if(lookupFaultDetail(Constants.QNAME_FAULTDETAIL_HOSTNAME)!=null) { return; } addHostname(NetworkUtils.getLocalHostname()); }
/** * add the hostname of the current system. This is very useful for * locating faults on a cluster. * @since Axis1.2 */
add the hostname of the current system. This is very useful for locating faults on a cluster
addHostnameIfNeeded
{ "repo_name": "hugosato/apache-axis", "path": "src/org/apache/axis/AxisFault.java", "license": "apache-2.0", "size": 27940 }
[ "org.apache.axis.utils.NetworkUtils" ]
import org.apache.axis.utils.NetworkUtils;
import org.apache.axis.utils.*;
[ "org.apache.axis" ]
org.apache.axis;
2,431,285
public final MetaProperty<ExerciseType> exerciseType() { return _exerciseType; }
final MetaProperty<ExerciseType> function() { return _exerciseType; }
/** * The meta-property for the {@code exerciseType} property. * @return the meta-property, not null */
The meta-property for the exerciseType property
exerciseType
{ "repo_name": "jeorme/OG-Platform", "path": "projects/OG-FinancialTypes/src/main/java/com/opengamma/financial/security/option/EquityWarrantSecurity.java", "license": "apache-2.0", "size": 20805 }
[ "org.joda.beans.MetaProperty" ]
import org.joda.beans.MetaProperty;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
966,239
EReference getcaseStmt_Cases();
EReference getcaseStmt_Cases();
/** * Returns the meta object for the containment reference list '{@link org.xtext.example.delphi.delphi.caseStmt#getCases <em>Cases</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the containment reference list '<em>Cases</em>'. * @see org.xtext.example.delphi.delphi.caseStmt#getCases() * @see #getcaseStmt() * @generated */
Returns the meta object for the containment reference list '<code>org.xtext.example.delphi.delphi.caseStmt#getCases Cases</code>'.
getcaseStmt_Cases
{ "repo_name": "adolfosbh/cs2as", "path": "org.xtext.example.delphi/src-gen/org/xtext/example/delphi/delphi/DelphiPackage.java", "license": "epl-1.0", "size": 434880 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
416,258
@BeforeClass public static void init() throws IOException { // we have to prefer CURRENT since with the range of versions we support it's rather unlikely to get the current actually. Version version = randomBoolean() ? Version.CURRENT : VersionUtils.randomVersionBetween(random(), Version.V_2_0_0_beta1, Version.CURRENT); Settings settings = Settings.settingsBuilder() .put("node.name", AbstractQueryTestCase.class.toString()) .put(Environment.PATH_HOME_SETTING.getKey(), createTempDir()) .put(ScriptService.SCRIPT_AUTO_RELOAD_ENABLED_SETTING.getKey(), false) .build();
static void function() throws IOException { Version version = randomBoolean() ? Version.CURRENT : VersionUtils.randomVersionBetween(random(), Version.V_2_0_0_beta1, Version.CURRENT); Settings settings = Settings.settingsBuilder() .put(STR, AbstractQueryTestCase.class.toString()) .put(Environment.PATH_HOME_SETTING.getKey(), createTempDir()) .put(ScriptService.SCRIPT_AUTO_RELOAD_ENABLED_SETTING.getKey(), false) .build();
/** * Setup for the whole base test class. */
Setup for the whole base test class
init
{ "repo_name": "mapr/elasticsearch", "path": "core/src/test/java/org/elasticsearch/search/aggregations/BaseAggregationTestCase.java", "license": "apache-2.0", "size": 16578 }
[ "java.io.IOException", "org.elasticsearch.Version", "org.elasticsearch.common.settings.Settings", "org.elasticsearch.env.Environment", "org.elasticsearch.index.query.AbstractQueryTestCase", "org.elasticsearch.script.ScriptService", "org.elasticsearch.test.VersionUtils" ]
import java.io.IOException; import org.elasticsearch.Version; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.env.Environment; import org.elasticsearch.index.query.AbstractQueryTestCase; import org.elasticsearch.script.ScriptService; import org.elasticsearch.test.VersionUtils;
import java.io.*; import org.elasticsearch.*; import org.elasticsearch.common.settings.*; import org.elasticsearch.env.*; import org.elasticsearch.index.query.*; import org.elasticsearch.script.*; import org.elasticsearch.test.*;
[ "java.io", "org.elasticsearch", "org.elasticsearch.common", "org.elasticsearch.env", "org.elasticsearch.index", "org.elasticsearch.script", "org.elasticsearch.test" ]
java.io; org.elasticsearch; org.elasticsearch.common; org.elasticsearch.env; org.elasticsearch.index; org.elasticsearch.script; org.elasticsearch.test;
1,342,136
jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); nameTxt = new javax.swing.JTextField(); addressTxt = new javax.swing.JTextField(); nicTxt = new javax.swing.JTextField(); cstatusCmb = new javax.swing.JComboBox<>(); updateBtn = new javax.swing.JButton(); cancelBtn = new javax.swing.JButton(); roleCmb = new javax.swing.JComboBox<>(); jLabel7 = new javax.swing.JLabel(); empIDTxt = new javax.swing.JTextField(); searchBtn = new javax.swing.JButton(); nicNoLbl = new javax.swing.JLabel(); dobDc = new com.toedter.calendar.JDateChooser(); demoBtn = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle("Update Employee"); jLabel1.setText("Name"); jLabel2.setText("Address"); jLabel3.setText("NIC No"); jLabel3.setToolTipText(""); jLabel4.setText("Date of Birth"); jLabel5.setText("Role"); jLabel6.setText("Current Status"); cstatusCmb.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "--Select--", "Working", "Resigned" }));
jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); nameTxt = new javax.swing.JTextField(); addressTxt = new javax.swing.JTextField(); nicTxt = new javax.swing.JTextField(); cstatusCmb = new javax.swing.JComboBox<>(); updateBtn = new javax.swing.JButton(); cancelBtn = new javax.swing.JButton(); roleCmb = new javax.swing.JComboBox<>(); jLabel7 = new javax.swing.JLabel(); empIDTxt = new javax.swing.JTextField(); searchBtn = new javax.swing.JButton(); nicNoLbl = new javax.swing.JLabel(); dobDc = new com.toedter.calendar.JDateChooser(); demoBtn = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setTitle(STR); jLabel1.setText("Name"); jLabel2.setText(STR); jLabel3.setText(STR); jLabel3.setToolTipText(STRDate of BirthSTRRoleSTRCurrent StatusSTR--Select--STRWorkingSTRResigned" }));
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. regenerated by the Form Editor
initComponents
{ "repo_name": "ThisuraThejith/OpenEMS", "path": "src/org/itp/openems/ui/UpdateEmployee.java", "license": "apache-2.0", "size": 18598 }
[ "javax.swing.JTextField" ]
import javax.swing.JTextField;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,304,408
public static <V> boolean isEquals(ArrayList<V> actual, ArrayList<V> expected) { if (actual == null) { return expected == null; } if (expected == null) { return false; } if (actual.size() != expected.size()) { return false; } for (int i = 0; i < actual.size(); i++) { if (!SkinObjectUtils.isEquals(actual.get(i), expected.get(i))) { return false; } } return true; } /** * join list to string, separator is "," * * <pre> * join(null) = ""; * join({}) = ""; * join({a,b}) = "a,b"; * </pre>
static <V> boolean function(ArrayList<V> actual, ArrayList<V> expected) { if (actual == null) { return expected == null; } if (expected == null) { return false; } if (actual.size() != expected.size()) { return false; } for (int i = 0; i < actual.size(); i++) { if (!SkinObjectUtils.isEquals(actual.get(i), expected.get(i))) { return false; } } return true; } /** * join list to string, separator is "," * * <pre> * join(null) = STRSTRa,b"; * </pre>
/** * compare two list * * <pre> * isEquals(null, null) = true; * isEquals(new ArrayList&lt;String&gt;(), null) = false; * isEquals(null, new ArrayList&lt;String&gt;()) = false; * isEquals(new ArrayList&lt;String&gt;(), new ArrayList&lt;String&gt;()) = true; * </pre> * @return */
compare two list <code> isEquals(null, null) = true; isEquals(new ArrayList&lt;String&gt;(), null) = false; isEquals(null, new ArrayList&lt;String&gt;()) = false; isEquals(new ArrayList&lt;String&gt;(), new ArrayList&lt;String&gt;()) = true; </code>
isEquals
{ "repo_name": "q197585312/testApp", "path": "skinlibrary/src/main/java/solid/ren/skinlibrary/utils/SkinListUtils.java", "license": "apache-2.0", "size": 6076 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
994,454
@Test public void testInterpretSimpleScannableTable() throws Exception { rootSchema.add("simple", new ScannableTableTest.SimpleTable()); SqlNode parse = planner.parse("select * from \"simple\" limit 2"); SqlNode validate = planner.validate(parse); RelNode convert = planner.convert(validate); final Interpreter interpreter = new Interpreter(new MyDataContext(planner), convert); assertRows(interpreter, "[0]", "[10]"); }
@Test void function() throws Exception { rootSchema.add(STR, new ScannableTableTest.SimpleTable()); SqlNode parse = planner.parse(STRsimple\STR); SqlNode validate = planner.validate(parse); RelNode convert = planner.convert(validate); final Interpreter interpreter = new Interpreter(new MyDataContext(planner), convert); assertRows(interpreter, "[0]", "[10]"); }
/** Tests executing a plan on a single-column * {@link org.apache.calcite.schema.ScannableTable} using an interpreter. */
Tests executing a plan on a single-column
testInterpretSimpleScannableTable
{ "repo_name": "mapr/incubator-calcite", "path": "core/src/test/java/org/apache/calcite/test/InterpreterTest.java", "license": "apache-2.0", "size": 8173 }
[ "org.apache.calcite.interpreter.Interpreter", "org.apache.calcite.rel.RelNode", "org.apache.calcite.sql.SqlNode", "org.junit.Test" ]
import org.apache.calcite.interpreter.Interpreter; import org.apache.calcite.rel.RelNode; import org.apache.calcite.sql.SqlNode; import org.junit.Test;
import org.apache.calcite.interpreter.*; import org.apache.calcite.rel.*; import org.apache.calcite.sql.*; import org.junit.*;
[ "org.apache.calcite", "org.junit" ]
org.apache.calcite; org.junit;
1,667,205
public Screen getScreen() { return screen; }
Screen function() { return screen; }
/** * Gets the underlying screen, which can be used for starting, stopping, * querying for size and much more * @return The Screen which is backing this GUI */
Gets the underlying screen, which can be used for starting, stopping, querying for size and much more
getScreen
{ "repo_name": "kba/lanterna", "path": "src/main/java/com/googlecode/lanterna/gui/GUIScreen.java", "license": "lgpl-3.0", "size": 17406 }
[ "com.googlecode.lanterna.screen.Screen" ]
import com.googlecode.lanterna.screen.Screen;
import com.googlecode.lanterna.screen.*;
[ "com.googlecode.lanterna" ]
com.googlecode.lanterna;
2,085,374
public void readEntityFromNBT(NBTTagCompound tagCompund) { this.setAbsorptionAmount(tagCompund.getFloat("AbsorptionAmount")); if (tagCompund.hasKey("Attributes", 9) && this.worldObj != null && !this.worldObj.isRemote) { SharedMonsterAttributes.func_151475_a(this.getAttributeMap(), tagCompund.getTagList("Attributes", 10)); } if (tagCompund.hasKey("ActiveEffects", 9)) { NBTTagList nbttaglist = tagCompund.getTagList("ActiveEffects", 10); for (int i = 0; i < nbttaglist.tagCount(); ++i) { NBTTagCompound nbttagcompound = nbttaglist.getCompoundTagAt(i); PotionEffect potioneffect = PotionEffect.readCustomPotionEffectFromNBT(nbttagcompound); if (potioneffect != null) { this.activePotionsMap.put(Integer.valueOf(potioneffect.getPotionID()), potioneffect); } } } if (tagCompund.hasKey("HealF", 99)) { this.setHealth(tagCompund.getFloat("HealF")); } else { NBTBase nbtbase = tagCompund.getTag("Health"); if (nbtbase == null) { this.setHealth(this.getMaxHealth()); } else if (nbtbase.getId() == 5) { this.setHealth(((NBTTagFloat)nbtbase).getFloat()); } else if (nbtbase.getId() == 2) { this.setHealth((float)((NBTTagShort)nbtbase).getShort()); } } this.hurtTime = tagCompund.getShort("HurtTime"); this.deathTime = tagCompund.getShort("DeathTime"); this.revengeTimer = tagCompund.getInteger("HurtByTimestamp"); }
void function(NBTTagCompound tagCompund) { this.setAbsorptionAmount(tagCompund.getFloat(STR)); if (tagCompund.hasKey(STR, 9) && this.worldObj != null && !this.worldObj.isRemote) { SharedMonsterAttributes.func_151475_a(this.getAttributeMap(), tagCompund.getTagList(STR, 10)); } if (tagCompund.hasKey(STR, 9)) { NBTTagList nbttaglist = tagCompund.getTagList(STR, 10); for (int i = 0; i < nbttaglist.tagCount(); ++i) { NBTTagCompound nbttagcompound = nbttaglist.getCompoundTagAt(i); PotionEffect potioneffect = PotionEffect.readCustomPotionEffectFromNBT(nbttagcompound); if (potioneffect != null) { this.activePotionsMap.put(Integer.valueOf(potioneffect.getPotionID()), potioneffect); } } } if (tagCompund.hasKey("HealF", 99)) { this.setHealth(tagCompund.getFloat("HealF")); } else { NBTBase nbtbase = tagCompund.getTag(STR); if (nbtbase == null) { this.setHealth(this.getMaxHealth()); } else if (nbtbase.getId() == 5) { this.setHealth(((NBTTagFloat)nbtbase).getFloat()); } else if (nbtbase.getId() == 2) { this.setHealth((float)((NBTTagShort)nbtbase).getShort()); } } this.hurtTime = tagCompund.getShort(STR); this.deathTime = tagCompund.getShort(STR); this.revengeTimer = tagCompund.getInteger(STR); }
/** * (abstract) Protected helper method to read subclass entity data from NBT. */
(abstract) Protected helper method to read subclass entity data from NBT
readEntityFromNBT
{ "repo_name": "tomtomtom09/CampCraft", "path": "build/tmp/recompileMc/sources/net/minecraft/entity/EntityLivingBase.java", "license": "gpl-3.0", "size": 75711 }
[ "net.minecraft.nbt.NBTBase", "net.minecraft.nbt.NBTTagCompound", "net.minecraft.nbt.NBTTagFloat", "net.minecraft.nbt.NBTTagList", "net.minecraft.nbt.NBTTagShort", "net.minecraft.potion.PotionEffect" ]
import net.minecraft.nbt.NBTBase; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagFloat; import net.minecraft.nbt.NBTTagList; import net.minecraft.nbt.NBTTagShort; import net.minecraft.potion.PotionEffect;
import net.minecraft.nbt.*; import net.minecraft.potion.*;
[ "net.minecraft.nbt", "net.minecraft.potion" ]
net.minecraft.nbt; net.minecraft.potion;
1,826,064
ValidationThreshold validationThreshold = new AbsoluteValidationThreshold(); assertTrue(validationThreshold.compare(100, 100)); assertFalse(validationThreshold.compare(100, 90)); assertFalse(validationThreshold.compare(90, 100)); }
ValidationThreshold validationThreshold = new AbsoluteValidationThreshold(); assertTrue(validationThreshold.compare(100, 100)); assertFalse(validationThreshold.compare(100, 90)); assertFalse(validationThreshold.compare(90, 100)); }
/** * Test the implementation for AbsoluteValidationThreshold. * Both arguments should be same else fail. */
Test the implementation for AbsoluteValidationThreshold. Both arguments should be same else fail
testAbsoluteValidationThreshold
{ "repo_name": "bonnetb/sqoop", "path": "src/test/org/apache/sqoop/validation/AbsoluteValidationThresholdTest.java", "license": "apache-2.0", "size": 1486 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,116,124
FixtureExecutionResult expectNoScheduledDeadlineMatching(Matcher<? super DeadlineMessage<?>> matcher);
FixtureExecutionResult expectNoScheduledDeadlineMatching(Matcher<? super DeadlineMessage<?>> matcher);
/** * Asserts that <b>no</b> deadline matching the given {@code matcher} is scheduled. Can be used to validate if a * deadline has never been set or has been canceled. * * @param matcher the matcher defining the deadline which should not be scheduled * @return the current ResultValidator, for fluent interfacing */
Asserts that no deadline matching the given matcher is scheduled. Can be used to validate if a deadline has never been set or has been canceled
expectNoScheduledDeadlineMatching
{ "repo_name": "krosenvold/AxonFramework", "path": "test/src/main/java/org/axonframework/test/saga/FixtureExecutionResult.java", "license": "apache-2.0", "size": 25583 }
[ "org.axonframework.deadline.DeadlineMessage", "org.hamcrest.Matcher" ]
import org.axonframework.deadline.DeadlineMessage; import org.hamcrest.Matcher;
import org.axonframework.deadline.*; import org.hamcrest.*;
[ "org.axonframework.deadline", "org.hamcrest" ]
org.axonframework.deadline; org.hamcrest;
188,697
private synchronized void unsetLargeMessageDelivery() { deliveringLargeMessage = false; } // The scheduling will still use the main executor here private static class FutureConnectRunnable implements Runnable { private final BridgeImpl bridge; private final Executor executor; private FutureConnectRunnable(Executor exe, BridgeImpl bridge) { executor = exe; this.bridge = bridge; }
synchronized void function() { deliveringLargeMessage = false; } private static class FutureConnectRunnable implements Runnable { private final BridgeImpl bridge; private final Executor executor; private FutureConnectRunnable(Executor exe, BridgeImpl bridge) { executor = exe; this.bridge = bridge; }
/** * just set deliveringLargeMessage to false */
just set deliveringLargeMessage to false
unsetLargeMessageDelivery
{ "repo_name": "iweiss/activemq-artemis", "path": "artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/BridgeImpl.java", "license": "apache-2.0", "size": 40189 }
[ "java.util.concurrent.Executor" ]
import java.util.concurrent.Executor;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,121,537
@Async public void sendOrderDownloadEmail( Customer customer, Order order, MerchantStore merchantStore, Locale customerLocale, String contextPath) { LOGGER.info( "Sending download email to customer" ); try { Map<String, String> templateTokens = emailUtils.createEmailObjectsMap(contextPath, merchantStore, messages, customerLocale); templateTokens.put(EmailConstants.LABEL_HI, messages.getMessage("label.generic.hi", customerLocale)); templateTokens.put(EmailConstants.EMAIL_CUSTOMER_FIRSTNAME, customer.getBilling().getFirstName()); templateTokens.put(EmailConstants.EMAIL_CUSTOMER_LASTNAME, customer.getBilling().getLastName()); String[] downloadMessage = {String.valueOf(ApplicationConstants.MAX_DOWNLOAD_DAYS), String.valueOf(order.getId()), filePathUtils.buildCustomerUri(merchantStore, contextPath), merchantStore.getStoreEmailAddress()}; templateTokens.put(EmailConstants.EMAIL_ORDER_DOWNLOAD, messages.getMessage("email.order.download.text", downloadMessage, customerLocale)); templateTokens.put(EmailConstants.CUSTOMER_ACCESS_LABEL, messages.getMessage("label.customer.accessportal",customerLocale)); templateTokens.put(EmailConstants.ACCESS_NOW_LABEL, messages.getMessage("label.customer.accessnow",customerLocale)); //shop url String customerUrl = filePathUtils.buildStoreUri(merchantStore, contextPath); templateTokens.put(EmailConstants.CUSTOMER_ACCESS_URL, customerUrl); String[] orderInfo = {String.valueOf(order.getId())}; Email email = new Email(); email.setFrom(merchantStore.getStorename()); email.setFromEmail(merchantStore.getStoreEmailAddress()); email.setSubject(messages.getMessage("email.order.download.title", orderInfo, customerLocale)); email.setTo(customer.getEmailAddress()); email.setTemplateName(EmailConstants.EMAIL_ORDER_DOWNLOAD_TPL); email.setTemplateTokens(templateTokens); LOGGER.debug( "Sending email to {} with download info",customer.getEmailAddress() ); emailService.sendHtmlEmail(merchantStore, email); } catch (Exception e) { LOGGER.error("Error occured while sending order download email ",e); } }
void function( Customer customer, Order order, MerchantStore merchantStore, Locale customerLocale, String contextPath) { LOGGER.info( STR ); try { Map<String, String> templateTokens = emailUtils.createEmailObjectsMap(contextPath, merchantStore, messages, customerLocale); templateTokens.put(EmailConstants.LABEL_HI, messages.getMessage(STR, customerLocale)); templateTokens.put(EmailConstants.EMAIL_CUSTOMER_FIRSTNAME, customer.getBilling().getFirstName()); templateTokens.put(EmailConstants.EMAIL_CUSTOMER_LASTNAME, customer.getBilling().getLastName()); String[] downloadMessage = {String.valueOf(ApplicationConstants.MAX_DOWNLOAD_DAYS), String.valueOf(order.getId()), filePathUtils.buildCustomerUri(merchantStore, contextPath), merchantStore.getStoreEmailAddress()}; templateTokens.put(EmailConstants.EMAIL_ORDER_DOWNLOAD, messages.getMessage(STR, downloadMessage, customerLocale)); templateTokens.put(EmailConstants.CUSTOMER_ACCESS_LABEL, messages.getMessage(STR,customerLocale)); templateTokens.put(EmailConstants.ACCESS_NOW_LABEL, messages.getMessage(STR,customerLocale)); String customerUrl = filePathUtils.buildStoreUri(merchantStore, contextPath); templateTokens.put(EmailConstants.CUSTOMER_ACCESS_URL, customerUrl); String[] orderInfo = {String.valueOf(order.getId())}; Email email = new Email(); email.setFrom(merchantStore.getStorename()); email.setFromEmail(merchantStore.getStoreEmailAddress()); email.setSubject(messages.getMessage(STR, orderInfo, customerLocale)); email.setTo(customer.getEmailAddress()); email.setTemplateName(EmailConstants.EMAIL_ORDER_DOWNLOAD_TPL); email.setTemplateTokens(templateTokens); LOGGER.debug( STR,customer.getEmailAddress() ); emailService.sendHtmlEmail(merchantStore, email); } catch (Exception e) { LOGGER.error(STR,e); } }
/** * Send download email instructions to customer * @param customer * @param order * @param merchantStore * @param customerLocale * @param contextPath */
Send download email instructions to customer
sendOrderDownloadEmail
{ "repo_name": "winsagetech/win-kart", "path": "sm-shop/src/main/java/com/salesmanager/shop/utils/EmailTemplatesUtils.java", "license": "lgpl-2.1", "size": 24411 }
[ "com.salesmanager.core.business.modules.email.Email", "com.salesmanager.core.model.customer.Customer", "com.salesmanager.core.model.merchant.MerchantStore", "com.salesmanager.core.model.order.Order", "com.salesmanager.shop.constants.ApplicationConstants", "com.salesmanager.shop.constants.EmailConstants", "java.util.Locale", "java.util.Map" ]
import com.salesmanager.core.business.modules.email.Email; import com.salesmanager.core.model.customer.Customer; import com.salesmanager.core.model.merchant.MerchantStore; import com.salesmanager.core.model.order.Order; import com.salesmanager.shop.constants.ApplicationConstants; import com.salesmanager.shop.constants.EmailConstants; import java.util.Locale; import java.util.Map;
import com.salesmanager.core.business.modules.email.*; import com.salesmanager.core.model.customer.*; import com.salesmanager.core.model.merchant.*; import com.salesmanager.core.model.order.*; import com.salesmanager.shop.constants.*; import java.util.*;
[ "com.salesmanager.core", "com.salesmanager.shop", "java.util" ]
com.salesmanager.core; com.salesmanager.shop; java.util;
241,209
public static void frameLengthOrdered(final UnsafeBuffer termBuffer, final int frameOffset, int frameLength) { if (ByteOrder.nativeOrder() != ByteOrder.LITTLE_ENDIAN) { frameLength = Integer.reverseBytes(frameLength); } termBuffer.putIntOrdered(lengthOffset(frameOffset), frameLength); }
static void function(final UnsafeBuffer termBuffer, final int frameOffset, int frameLength) { if (ByteOrder.nativeOrder() != ByteOrder.LITTLE_ENDIAN) { frameLength = Integer.reverseBytes(frameLength); } termBuffer.putIntOrdered(lengthOffset(frameOffset), frameLength); }
/** * Write the length header for a frame in a memory ordered fashion. * * @param termBuffer ontaining the frame. * @param frameOffset at which a frame begins. * @param frameLength field to be set for the frame. */
Write the length header for a frame in a memory ordered fashion
frameLengthOrdered
{ "repo_name": "ycaihua/Aeron", "path": "aeron-common/src/main/java/uk/co/real_logic/aeron/common/concurrent/logbuffer/FrameDescriptor.java", "license": "apache-2.0", "size": 10766 }
[ "java.nio.ByteOrder", "uk.co.real_logic.agrona.concurrent.UnsafeBuffer" ]
import java.nio.ByteOrder; import uk.co.real_logic.agrona.concurrent.UnsafeBuffer;
import java.nio.*; import uk.co.real_logic.agrona.concurrent.*;
[ "java.nio", "uk.co.real_logic" ]
java.nio; uk.co.real_logic;
896,129
public void unloadSprite(JButton b) { if (b.getIcon() != null) { b.setIcon(null); } }
void function(JButton b) { if (b.getIcon() != null) { b.setIcon(null); } }
/** * Unloads the sprite from the specified JButton * @param b the JButton to unload the sprite from. */
Unloads the sprite from the specified JButton
unloadSprite
{ "repo_name": "jcassarly/chess", "path": "src/helpers/PieceSprite.java", "license": "mit", "size": 3355 }
[ "javax.swing.JButton" ]
import javax.swing.JButton;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
826,428
protected void addInput__iInput2PropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_CtrlUnit13_Input__iInput2_feature"), getString("_UI_PropertyDescriptor_description", "_UI_CtrlUnit13_Input__iInput2_feature", "_UI_CtrlUnit13_type"), WTSpecPackage.Literals.CTRL_UNIT13__INPUT_IINPUT2, true, false, true, null, null, null)); }
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), WTSpecPackage.Literals.CTRL_UNIT13__INPUT_IINPUT2, true, false, true, null, null, null)); }
/** * This adds a property descriptor for the Input iInput2 feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Input iInput2 feature.
addInput__iInput2PropertyDescriptor
{ "repo_name": "FTSRG/mondo-collab-framework", "path": "archive/mondo-access-control/CollaborationIncQuery/WTSpec.edit/src/WTSpec/provider/CtrlUnit13ItemProvider.java", "license": "epl-1.0", "size": 9075 }
[ "org.eclipse.emf.edit.provider.ComposeableAdapterFactory" ]
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,624,623
public void userForeground(int userId) { synchronized (mPackagesLock) { VUserInfo user = mUsers.get(userId); long now = System.currentTimeMillis(); if (user == null || user.partial) { VLog.w(LOG_TAG, "userForeground: unknown user #" + userId); return; } if (now > EPOCH_PLUS_30_YEARS) { user.lastLoggedInTime = now; writeUserLocked(user); } } }
void function(int userId) { synchronized (mPackagesLock) { VUserInfo user = mUsers.get(userId); long now = System.currentTimeMillis(); if (user == null user.partial) { VLog.w(LOG_TAG, STR + userId); return; } if (now > EPOCH_PLUS_30_YEARS) { user.lastLoggedInTime = now; writeUserLocked(user); } } }
/** * Make a note of the last started time of a user. * @param userId the user that was just foregrounded */
Make a note of the last started time of a user
userForeground
{ "repo_name": "renqingyou/VirtualApp", "path": "VirtualApp/lib/src/main/java/com/lody/virtual/server/pm/VUserManagerService.java", "license": "gpl-3.0", "size": 33129 }
[ "com.lody.virtual.helper.utils.VLog", "com.lody.virtual.os.VUserInfo" ]
import com.lody.virtual.helper.utils.VLog; import com.lody.virtual.os.VUserInfo;
import com.lody.virtual.helper.utils.*; import com.lody.virtual.os.*;
[ "com.lody.virtual" ]
com.lody.virtual;
977,527
@SuppressLint("NewApi") private void postAnimationInvalidate() { if (mScroller.computeScrollOffset()) { final int oldX = (int) mOffsetPixels; final int x = mScroller.getCurrX(); if (x != oldX) { setOffsetPixels(x); } if (x != mScroller.getFinalX()) { postOnAnimation(mDragRunnable); return; } } completeAnimation(); }
@SuppressLint(STR) void function() { if (mScroller.computeScrollOffset()) { final int oldX = (int) mOffsetPixels; final int x = mScroller.getCurrX(); if (x != oldX) { setOffsetPixels(x); } if (x != mScroller.getFinalX()) { postOnAnimation(mDragRunnable); return; } } completeAnimation(); }
/** * Callback when each frame in the drawer animation should be drawn. */
Callback when each frame in the drawer animation should be drawn
postAnimationInvalidate
{ "repo_name": "sockeqwe/SwipeBack", "path": "library/src/com/hannesdorfmann/swipeback/DraggableSwipeBack.java", "license": "apache-2.0", "size": 17153 }
[ "android.annotation.SuppressLint" ]
import android.annotation.SuppressLint;
import android.annotation.*;
[ "android.annotation" ]
android.annotation;
1,219,223
void triggerRendering(); /** * Add the given {@link GltfModel} to this viewer. This will prepare * the internal data structures that are required for rendering, and * trigger a new rendering pass. At the beginning of the rendering * pass, the initialization of the rendering structures will be * performed, on the rendering thread.<br> * * @param gltfModel The {@link GltfModel}
void triggerRendering(); /** * Add the given {@link GltfModel} to this viewer. This will prepare * the internal data structures that are required for rendering, and * trigger a new rendering pass. At the beginning of the rendering * pass, the initialization of the rendering structures will be * performed, on the rendering thread.<br> * * @param gltfModel The {@link GltfModel}
/** * Trigger a rendering pass */
Trigger a rendering pass
triggerRendering
{ "repo_name": "javagl/JglTF", "path": "jgltf-viewer/src/main/java/de/javagl/jgltf/viewer/GltfViewer.java", "license": "mit", "size": 3574 }
[ "de.javagl.jgltf.model.GltfModel" ]
import de.javagl.jgltf.model.GltfModel;
import de.javagl.jgltf.model.*;
[ "de.javagl.jgltf" ]
de.javagl.jgltf;
780,914
return product; } /** * Sets the value of the product property. * * @param value * allowed object is * {@link ProductInfoAsiiuV2 }
return product; } /** * Sets the value of the product property. * * @param value * allowed object is * {@link ProductInfoAsiiuV2 }
/** * Gets the value of the product property. * * @return * possible object is * {@link ProductInfoAsiiuV2 } * */
Gets the value of the product property
getProduct
{ "repo_name": "ytimesru/kkm-pc-client", "path": "src/main/java/ru/fsrar/wegais/asiiutime/DataType.java", "license": "mit", "size": 6862 }
[ "ru.fsrar.wegais.productref_v2.ProductInfoAsiiuV2" ]
import ru.fsrar.wegais.productref_v2.ProductInfoAsiiuV2;
import ru.fsrar.wegais.productref_v2.*;
[ "ru.fsrar.wegais" ]
ru.fsrar.wegais;
2,591,117
List<? extends Enum<?>> getEnumValues();
List<? extends Enum<?>> getEnumValues();
/** * Returns a list of the attribute's enumeration values. * * @return Returns a list of the attribute's enumeration values. */
Returns a list of the attribute's enumeration values
getEnumValues
{ "repo_name": "SAP/xliff-1-2", "path": "com.sap.mlt.xliff12.api/src/main/java/com/sap/mlt/xliff12/api/base/MultiXTendableAttribute.java", "license": "apache-2.0", "size": 620 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
410,301
protected void updateRolloverPoint(JComponent component, Point mousePoint) { }
void function(JComponent component, Point mousePoint) { }
/** * Subclasses must override to map the given mouse coordinates into * appropriate client coordinates. The result must be stored in the * rollover field. * * Here: does nothing. * * @param component * @param mousePoint */
Subclasses must override to map the given mouse coordinates into appropriate client coordinates. The result must be stored in the rollover field. Here: does nothing
updateRolloverPoint
{ "repo_name": "charlycoste/TreeD", "path": "src/org/jdesktop/swingx/RolloverProducer.java", "license": "gpl-2.0", "size": 3815 }
[ "java.awt.Point", "javax.swing.JComponent" ]
import java.awt.Point; import javax.swing.JComponent;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
2,405,586
void setVideoScalingMode(@VideoScalingMode int videoScalingMode);
void setVideoScalingMode(@VideoScalingMode int videoScalingMode);
/** * Sets the {@link VideoScalingMode}. * * @param videoScalingMode The {@link VideoScalingMode}. */
Sets the <code>VideoScalingMode</code>
setVideoScalingMode
{ "repo_name": "CzBiX/Telegram", "path": "TMessagesProj/src/main/java/com/google/android/exoplayer2/Player.java", "license": "gpl-2.0", "size": 35693 }
[ "com.google.android.exoplayer2.C" ]
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.*;
[ "com.google.android" ]
com.google.android;
1,566,836
DetachVolumeResult detachFromInstance(DetachVolumeRequest request, ResultCapture<DetachVolumeResult> extractor);
DetachVolumeResult detachFromInstance(DetachVolumeRequest request, ResultCapture<DetachVolumeResult> extractor);
/** * Performs the <code>DetachFromInstance</code> action and use a * ResultCapture to retrieve the low-level client response. * * <p> * The following request parameters will be populated from the data of this * <code>Volume</code> resource, and any conflicting parameter value set in * the request will be overridden: * <ul> * <li> * <b><code>VolumeId</code></b> * - mapped from the <code>Id</code> identifier. * </li> * </ul> * * <p> * * @return The response of the low-level client operation associated with * this resource action. * @see DetachVolumeRequest */
Performs the <code>DetachFromInstance</code> action and use a ResultCapture to retrieve the low-level client response. The following request parameters will be populated from the data of this <code>Volume</code> resource, and any conflicting parameter value set in the request will be overridden: <code>VolumeId</code> - mapped from the <code>Id</code> identifier.
detachFromInstance
{ "repo_name": "smartpcr/aws-sdk-java-resources", "path": "aws-resources-ec2/src/main/java/com/amazonaws/resources/ec2/Volume.java", "license": "apache-2.0", "size": 20944 }
[ "com.amazonaws.resources.ResultCapture", "com.amazonaws.services.ec2.model.DetachVolumeRequest", "com.amazonaws.services.ec2.model.DetachVolumeResult" ]
import com.amazonaws.resources.ResultCapture; import com.amazonaws.services.ec2.model.DetachVolumeRequest; import com.amazonaws.services.ec2.model.DetachVolumeResult;
import com.amazonaws.resources.*; import com.amazonaws.services.ec2.model.*;
[ "com.amazonaws.resources", "com.amazonaws.services" ]
com.amazonaws.resources; com.amazonaws.services;
560,370
public static AtomicIntegerArrayAssert assertThat(AtomicIntegerArray actual) { return new AtomicIntegerArrayAssert(actual); }
static AtomicIntegerArrayAssert function(AtomicIntegerArray actual) { return new AtomicIntegerArrayAssert(actual); }
/** * Create int[] assertion for {@link AtomicIntegerArray}. * * @param actual the actual value. * @return the created assertion object. * @since 2.7.0 / 3.7.0 */
Create int[] assertion for <code>AtomicIntegerArray</code>
assertThat
{ "repo_name": "hazendaz/assertj-core", "path": "src/main/java/org/assertj/core/api/Assertions.java", "license": "apache-2.0", "size": 133137 }
[ "java.util.concurrent.atomic.AtomicIntegerArray" ]
import java.util.concurrent.atomic.AtomicIntegerArray;
import java.util.concurrent.atomic.*;
[ "java.util" ]
java.util;
1,179,112
static TimeLimiterRegistry of(Map<String, TimeLimiterConfig> configs) { return new InMemoryTimeLimiterRegistry(configs); }
static TimeLimiterRegistry of(Map<String, TimeLimiterConfig> configs) { return new InMemoryTimeLimiterRegistry(configs); }
/** * Creates a TimeLimiterRegistry with a Map of shared TimeLimiter configurations. * * @param configs a Map of shared TimeLimiter configurations * @return a TimeLimiterRegistry with a Map of shared TimeLimiter configurations. */
Creates a TimeLimiterRegistry with a Map of shared TimeLimiter configurations
of
{ "repo_name": "drmaas/resilience4j", "path": "resilience4j-timelimiter/src/main/java/io/github/resilience4j/timelimiter/TimeLimiterRegistry.java", "license": "apache-2.0", "size": 11075 }
[ "io.github.resilience4j.timelimiter.internal.InMemoryTimeLimiterRegistry", "java.util.Map" ]
import io.github.resilience4j.timelimiter.internal.InMemoryTimeLimiterRegistry; import java.util.Map;
import io.github.resilience4j.timelimiter.internal.*; import java.util.*;
[ "io.github.resilience4j", "java.util" ]
io.github.resilience4j; java.util;
1,964,558
public static Configuration getConfigurationWithQueueLabels(Configuration config) { CapacitySchedulerConfiguration conf = new CapacitySchedulerConfiguration(config); // Define top-level queues conf.setQueues(CapacitySchedulerConfiguration.ROOT, new String[] {"a", "b", "c"}); conf.setCapacityByLabel(CapacitySchedulerConfiguration.ROOT, "x", 100); conf.setCapacityByLabel(CapacitySchedulerConfiguration.ROOT, "y", 100); final String A = CapacitySchedulerConfiguration.ROOT + ".a"; conf.setCapacity(A, 10); conf.setMaximumCapacity(A, 15); conf.setAccessibleNodeLabels(A, toSet("x")); conf.setCapacityByLabel(A, "x", 100); final String B = CapacitySchedulerConfiguration.ROOT + ".b"; conf.setCapacity(B, 20); conf.setAccessibleNodeLabels(B, toSet("y")); conf.setCapacityByLabel(B, "y", 100); final String C = CapacitySchedulerConfiguration.ROOT + ".c"; conf.setCapacity(C, 70); conf.setMaximumCapacity(C, 70); conf.setAccessibleNodeLabels(C, RMNodeLabelsManager.EMPTY_STRING_SET); // Define 2nd-level queues final String A1 = A + ".a1"; conf.setQueues(A, new String[] {"a1"}); conf.setCapacity(A1, 100); conf.setMaximumCapacity(A1, 100); conf.setCapacityByLabel(A1, "x", 100); final String B1 = B + ".b1"; conf.setQueues(B, new String[] {"b1"}); conf.setCapacity(B1, 100); conf.setMaximumCapacity(B1, 100); conf.setCapacityByLabel(B1, "y", 100); conf.setMaximumApplicationMasterResourcePerQueuePercent(B1, 1f); final String C1 = C + ".c1"; conf.setQueues(C, new String[] {"c1"}); conf.setCapacity(C1, 100); conf.setMaximumCapacity(C1, 100); return conf; }
static Configuration function(Configuration config) { CapacitySchedulerConfiguration conf = new CapacitySchedulerConfiguration(config); conf.setQueues(CapacitySchedulerConfiguration.ROOT, new String[] {"a", "b", "c"}); conf.setCapacityByLabel(CapacitySchedulerConfiguration.ROOT, "x", 100); conf.setCapacityByLabel(CapacitySchedulerConfiguration.ROOT, "y", 100); final String A = CapacitySchedulerConfiguration.ROOT + ".a"; conf.setCapacity(A, 10); conf.setMaximumCapacity(A, 15); conf.setAccessibleNodeLabels(A, toSet("x")); conf.setCapacityByLabel(A, "x", 100); final String B = CapacitySchedulerConfiguration.ROOT + ".b"; conf.setCapacity(B, 20); conf.setAccessibleNodeLabels(B, toSet("y")); conf.setCapacityByLabel(B, "y", 100); final String C = CapacitySchedulerConfiguration.ROOT + ".c"; conf.setCapacity(C, 70); conf.setMaximumCapacity(C, 70); conf.setAccessibleNodeLabels(C, RMNodeLabelsManager.EMPTY_STRING_SET); final String A1 = A + ".a1"; conf.setQueues(A, new String[] {"a1"}); conf.setCapacity(A1, 100); conf.setMaximumCapacity(A1, 100); conf.setCapacityByLabel(A1, "x", 100); final String B1 = B + ".b1"; conf.setQueues(B, new String[] {"b1"}); conf.setCapacity(B1, 100); conf.setMaximumCapacity(B1, 100); conf.setCapacityByLabel(B1, "y", 100); conf.setMaximumApplicationMasterResourcePerQueuePercent(B1, 1f); final String C1 = C + ".c1"; conf.setQueues(C, new String[] {"c1"}); conf.setCapacity(C1, 100); conf.setMaximumCapacity(C1, 100); return conf; }
/** * Get a queue structure: * <pre> * Root * / | \ * a b c * | | | * a1 b1 c1 * (x) (y) * </pre> */
Get a queue structure: <code> Root | \ a b c | | | a1 b1 c1 (x) (y) </code>
getConfigurationWithQueueLabels
{ "repo_name": "aliyun-beta/aliyun-oss-hadoop-fs", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/TestUtils.java", "license": "apache-2.0", "size": 13795 }
[ "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.yarn.server.resourcemanager.nodelabels.RMNodeLabelsManager" ]
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.server.resourcemanager.nodelabels.RMNodeLabelsManager;
import org.apache.hadoop.conf.*; import org.apache.hadoop.yarn.server.resourcemanager.nodelabels.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,974,858
public void setWaitLatch(CountDownLatch latch) { this.latch = latch; }
void function(CountDownLatch latch) { this.latch = latch; }
/** * set/unset a latch. every procedure execute() step will wait on the latch if any. */
set/unset a latch. every procedure execute() step will wait on the latch if any
setWaitLatch
{ "repo_name": "vincentpoon/hbase", "path": "hbase-procedure/src/test/java/org/apache/hadoop/hbase/procedure2/TestProcedureRecovery.java", "license": "apache-2.0", "size": 17694 }
[ "java.util.concurrent.CountDownLatch" ]
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,937,864
private static void fallbackURL(String url) { String osName = System.getProperty("os.name"); try { if (osName.startsWith("Mac OS")) { Class<?> fileMgr = Class.forName("com.apple.eio.FileManager"); Method openURL = fileMgr.getDeclaredMethod("openURL", new Class[] { String.class }); openURL.invoke(null, new Object[] { url }); } else if (osName.startsWith("Windows")) { Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url); } else { //assume Unix or Linux String[] browsers = { "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape" }; String browser = null; for (int count = 0; count < browsers.length && browser == null; count++) { if (Runtime.getRuntime().exec(new String[] { "which", browsers[count] }).waitFor() == 0) { browser = browsers[count]; } } if (browser == null) { throw new Exception("Could not find web browser"); } else { Runtime.getRuntime().exec(new String[] { browser, url }); } } } catch (Exception e) { JOptionPane.showMessageDialog(null, errMsg + ":\n" + e.getLocalizedMessage()); } }
static void function(String url) { String osName = System.getProperty(STR); try { if (osName.startsWith(STR)) { Class<?> fileMgr = Class.forName(STR); Method openURL = fileMgr.getDeclaredMethod(STR, new Class[] { String.class }); openURL.invoke(null, new Object[] { url }); } else if (osName.startsWith(STR)) { Runtime.getRuntime().exec(STR + url); } else { String[] browsers = { STR, "opera", STR, STR, STR, STR }; String browser = null; for (int count = 0; count < browsers.length && browser == null; count++) { if (Runtime.getRuntime().exec(new String[] { "which", browsers[count] }).waitFor() == 0) { browser = browsers[count]; } } if (browser == null) { throw new Exception(STR); } else { Runtime.getRuntime().exec(new String[] { browser, url }); } } } catch (Exception e) { JOptionPane.showMessageDialog(null, errMsg + ":\n" + e.getLocalizedMessage()); } }
/** * Fallback open URL code if Desktop.class is not supported * @param url the URL to launch */
Fallback open URL code if Desktop.class is not supported
fallbackURL
{ "repo_name": "chpatrick/jmt", "path": "src/jmt/framework/net/BrowserLauncher.java", "license": "gpl-2.0", "size": 2873 }
[ "java.lang.reflect.Method", "javax.swing.JOptionPane" ]
import java.lang.reflect.Method; import javax.swing.JOptionPane;
import java.lang.reflect.*; import javax.swing.*;
[ "java.lang", "javax.swing" ]
java.lang; javax.swing;
828,897
Observable<String> get(String cacheKey, CachePersistencyOptions options);
Observable<String> get(String cacheKey, CachePersistencyOptions options);
/** * Retrieve an item from cache. * @param cacheKey Cache key * @param options valid cache persistence options * @return an observable that will either emit the cached JSON string, or complete without emitting on a cache miss */
Retrieve an item from cache
get
{ "repo_name": "wcm-io-caravan/caravan-pipeline", "path": "api/src/main/java/io/wcm/caravan/pipeline/cache/spi/CacheAdapter.java", "license": "apache-2.0", "size": 1475 }
[ "io.wcm.caravan.pipeline.cache.CachePersistencyOptions" ]
import io.wcm.caravan.pipeline.cache.CachePersistencyOptions;
import io.wcm.caravan.pipeline.cache.*;
[ "io.wcm.caravan" ]
io.wcm.caravan;
1,974,445
if (value != null && value instanceof String && !((String) value).isEmpty()) return new ValidationResult.ValidationPassed(); else return new ValidationResult.ValidationFailed("Value \"" + value + "\" is not a valid non-empty String!"); }
if (value != null && value instanceof String && !((String) value).isEmpty()) return new ValidationResult.ValidationPassed(); else return new ValidationResult.ValidationFailed(STRSTR\STR); }
/** * Validates: Object is not null, of type String and not empty. * * * @param value The object to check * @return validation result */
Validates: Object is not null, of type String and not empty
validate
{ "repo_name": "Graylog2/graylog2-server", "path": "graylog2-server/src/main/java/org/graylog2/migrations/V20180214093600_AdjustDashboardPositionToNewResolution/FilledStringValidator.java", "license": "gpl-3.0", "size": 1433 }
[ "org.graylog2.plugin.database.validators.ValidationResult" ]
import org.graylog2.plugin.database.validators.ValidationResult;
import org.graylog2.plugin.database.validators.*;
[ "org.graylog2.plugin" ]
org.graylog2.plugin;
649,460
String getParent(String path) { return path.substring(0, path.lastIndexOf(Path.SEPARATOR)); }
String getParent(String path) { return path.substring(0, path.lastIndexOf(Path.SEPARATOR)); }
/** * Return string representing the parent of the given path. */
Return string representing the parent of the given path
getParent
{ "repo_name": "toddlipcon/hadoop", "path": "src/hdfs/org/apache/hadoop/hdfs/server/namenode/FSImage.java", "license": "apache-2.0", "size": 67265 }
[ "org.apache.hadoop.fs.Path" ]
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
852,835
public static TimeAxis<CalendarUnit, ThaiSolarCalendar> axis() { return ENGINE; }
static TimeAxis<CalendarUnit, ThaiSolarCalendar> function() { return ENGINE; }
/** * <p>Returns the associated time axis. </p> * * @return chronology * @since 3.19/4.15 */
Returns the associated time axis.
axis
{ "repo_name": "MenoData/Time4J", "path": "base/src/main/java/net/time4j/calendar/ThaiSolarCalendar.java", "license": "lgpl-2.1", "size": 43423 }
[ "net.time4j.CalendarUnit", "net.time4j.engine.TimeAxis" ]
import net.time4j.CalendarUnit; import net.time4j.engine.TimeAxis;
import net.time4j.*; import net.time4j.engine.*;
[ "net.time4j", "net.time4j.engine" ]
net.time4j; net.time4j.engine;
2,572,980
public List<SelectItem> getAllCategoriesForFilter(){ List<SelectItem> categories = getAllCategories(); return categories; }
List<SelectItem> function(){ List<SelectItem> categories = getAllCategories(); return categories; }
/** * UI method to get list of categories for the filter * First item has null value to signal that it is all categories * * @return list of categories */
UI method to get list of categories for the filter First item has null value to signal that it is all categories
getAllCategoriesForFilter
{ "repo_name": "hackbuteer59/sakai", "path": "signup/tool/src/java/org/sakaiproject/signup/tool/jsf/SignupMeetingsBean.java", "license": "apache-2.0", "size": 34780 }
[ "java.util.List", "javax.faces.model.SelectItem" ]
import java.util.List; import javax.faces.model.SelectItem;
import java.util.*; import javax.faces.model.*;
[ "java.util", "javax.faces" ]
java.util; javax.faces;
328,566
public void sendTalkMessage(String message) { JSONObject sendInfo = new JSONObject(); try { sendInfo.put("type", "message"); sendInfo.put("message", message); synchronized (os) { os.println(sendInfo.toString()); os.flush(); Log.d("myinfo2", "hall send talk msg : " + sendInfo.toString()); } } catch (JSONException e) { if (e.getMessage() != null) Log.d(Config.LOG_TAG, e.getMessage()); } }
void function(String message) { JSONObject sendInfo = new JSONObject(); try { sendInfo.put("type", STR); sendInfo.put(STR, message); synchronized (os) { os.println(sendInfo.toString()); os.flush(); Log.d(STR, STR + sendInfo.toString()); } } catch (JSONException e) { if (e.getMessage() != null) Log.d(Config.LOG_TAG, e.getMessage()); } }
/** * Send talk messages to hall server. * The message is send as json format string. * For more information, please see the wiki page * {client and hall server}. These messages will * be available when calling the getCurrentMessage(int length) * method after messages are sent to client by hall * server. * @param message to send * */
Send talk messages to hall server. The message is send as json format string. For more information, please see the wiki page {client and hall server}. These messages will be available when calling the getCurrentMessage(int length) method after messages are sent to client by hall server
sendTalkMessage
{ "repo_name": "Piasy/QQTang", "path": "documents/API_docs/Client/com/example/client/model/HallModel.java", "license": "apache-2.0", "size": 28936 }
[ "android.util.Log", "org.json.JSONException", "org.json.JSONObject" ]
import android.util.Log; import org.json.JSONException; import org.json.JSONObject;
import android.util.*; import org.json.*;
[ "android.util", "org.json" ]
android.util; org.json;
2,481,366
public Set<AlloyRelation> getRelations() { return relations; }
Set<AlloyRelation> function() { return relations; }
/** * Returns an unmodifiable sorted set of all AlloyRelation(s) in this model. */
Returns an unmodifiable sorted set of all AlloyRelation(s) in this model
getRelations
{ "repo_name": "AlloyTools/org.alloytools.alloy", "path": "org.alloytools.alloy.application/src/main/java/edu/mit/csail/sdg/alloy4viz/AlloyModel.java", "license": "apache-2.0", "size": 12937 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
459,148
public java.util.List<fr.lip6.move.pnml.hlpn.booleans.hlapi.InequalityHLAPI> getSubterm_booleans_InequalityHLAPI(){ java.util.List<fr.lip6.move.pnml.hlpn.booleans.hlapi.InequalityHLAPI> retour = new ArrayList<fr.lip6.move.pnml.hlpn.booleans.hlapi.InequalityHLAPI>(); for (Term elemnt : getSubterm()) { if(elemnt.getClass().equals(fr.lip6.move.pnml.hlpn.booleans.impl.InequalityImpl.class)){ retour.add(new fr.lip6.move.pnml.hlpn.booleans.hlapi.InequalityHLAPI( (fr.lip6.move.pnml.hlpn.booleans.Inequality)elemnt )); } } return retour; }
java.util.List<fr.lip6.move.pnml.hlpn.booleans.hlapi.InequalityHLAPI> function(){ java.util.List<fr.lip6.move.pnml.hlpn.booleans.hlapi.InequalityHLAPI> retour = new ArrayList<fr.lip6.move.pnml.hlpn.booleans.hlapi.InequalityHLAPI>(); for (Term elemnt : getSubterm()) { if(elemnt.getClass().equals(fr.lip6.move.pnml.hlpn.booleans.impl.InequalityImpl.class)){ retour.add(new fr.lip6.move.pnml.hlpn.booleans.hlapi.InequalityHLAPI( (fr.lip6.move.pnml.hlpn.booleans.Inequality)elemnt )); } } return retour; }
/** * This accessor return a list of encapsulated subelement, only of InequalityHLAPI kind. * WARNING : this method can creates a lot of new object in memory. */
This accessor return a list of encapsulated subelement, only of InequalityHLAPI kind. WARNING : this method can creates a lot of new object in memory
getSubterm_booleans_InequalityHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-HLPN/src/fr/lip6/move/pnml/hlpn/multisets/hlapi/EmptyHLAPI.java", "license": "epl-1.0", "size": 113920 }
[ "fr.lip6.move.pnml.hlpn.terms.Term", "java.util.ArrayList", "java.util.List" ]
import fr.lip6.move.pnml.hlpn.terms.Term; import java.util.ArrayList; import java.util.List;
import fr.lip6.move.pnml.hlpn.terms.*; import java.util.*;
[ "fr.lip6.move", "java.util" ]
fr.lip6.move; java.util;
1,442,486
@Operation(desc = "list all messages being delivered per consumer using JSON form") String listDeliveringMessagesAsJSON() throws Exception;
@Operation(desc = STR) String listDeliveringMessagesAsJSON() throws Exception;
/** * Executes a conversion of {@link #listDeliveringMessages()} to JSON * * @return * @throws Exception */
Executes a conversion of <code>#listDeliveringMessages()</code> to JSON
listDeliveringMessagesAsJSON
{ "repo_name": "ryanemerson/activemq-artemis", "path": "artemis-jms-client/src/main/java/org/apache/activemq/artemis/api/jms/management/JMSQueueControl.java", "license": "apache-2.0", "size": 14791 }
[ "org.apache.activemq.artemis.api.core.management.Operation" ]
import org.apache.activemq.artemis.api.core.management.Operation;
import org.apache.activemq.artemis.api.core.management.*;
[ "org.apache.activemq" ]
org.apache.activemq;
2,709,144
public static int getCommentCount(final RepositoryCommit commit) { final Commit rawCommit = commit.getCommit(); if (rawCommit != null) return rawCommit.getCommentCount(); else return 0; } /** * Format stats into {@link StyledText}
static int function(final RepositoryCommit commit) { final Commit rawCommit = commit.getCommit(); if (rawCommit != null) return rawCommit.getCommentCount(); else return 0; } /** * Format stats into {@link StyledText}
/** * Get comment count * * @param commit * @return count */
Get comment count
getCommentCount
{ "repo_name": "Yifei0727/GitHub-Client-md", "path": "app/src/main/java/com/github/mobile/core/commit/CommitUtils.java", "license": "apache-2.0", "size": 8090 }
[ "com.github.mobile.ui.StyledText", "org.eclipse.egit.github.core.Commit", "org.eclipse.egit.github.core.RepositoryCommit" ]
import com.github.mobile.ui.StyledText; import org.eclipse.egit.github.core.Commit; import org.eclipse.egit.github.core.RepositoryCommit;
import com.github.mobile.ui.*; import org.eclipse.egit.github.core.*;
[ "com.github.mobile", "org.eclipse.egit" ]
com.github.mobile; org.eclipse.egit;
1,881,771
public void controller(FragmentModel model, @RequestParam(value = "returnUrl", required = false) String returnUrl, @RequestParam(value = "patientId", required = false) Patient patient) { System.out.println("KKKKKKKKKKKK llll " + Context.getUserContext() .getLocationId()); System.out.println("KKKKKKKKKKKK lll " + Context.getUserContext() .getLocation()); // Priority of the order final List<String> urgencies = new LinkedList<String>(); for (Order.Urgency urgency : Order.Urgency.values()) { if (!urgency.equals(Order.Urgency.ON_SCHEDULED_DATE)) { urgencies.add(urgency.name()); } } model.addAttribute("urgencies", urgencies); model.addAttribute("returnUrl", returnUrl); // get all orders with report ready List<RadiologyOrder> radiologyOrdersCompletedReport = getRadiologyOrdersWithCompletedReportByPatient(patient); // check for dicom viwer avalability RadiologyProperties radiologyProperties = new RadiologyProperties(); String oviyamStatus = radiologyProperties.getDicomViewerLocalServerName(); String weasisStatus = radiologyProperties.getDicomViewerWeasisUrlBase(); // get weasis url String dicomViewerWeasisUrladdress = getDicomViewerWeasisUrladdress(); model.addAttribute("oviyamStatus", oviyamStatus); model.addAttribute("weasisStatus", weasisStatus); model.addAttribute("dicomViewerWeasisUrladdress", dicomViewerWeasisUrladdress); // get oviyum url String dicomViewerUrladdress = getDicomViewerUrladdress(); model.addAttribute("dicomViewerUrladdress", dicomViewerUrladdress); model.put("radiologyOrders", radiologyOrdersCompletedReport); // contact patient and radiologist information String PatientName = patient.getNames() .toString(); String patientName = PatientName.substring(1, PatientName.length() - 1); model.addAttribute("patient", patient); model.addAttribute("patientID", patient.getPatientId()); model.addAttribute("patientname", patientName); model.addAttribute("patientid", patient.getId()); model.addAttribute("subject", "Enquire Patient Observation"); model.addAttribute("recipientemailaddress", "recipientemailaddress"); model.addAttribute("senderemailaddress", "senderemailaddress"); model.addAttribute("subjectPatient", "Recent visit information"); }
void function(FragmentModel model, @RequestParam(value = STR, required = false) String returnUrl, @RequestParam(value = STR, required = false) Patient patient) { System.out.println(STR + Context.getUserContext() .getLocationId()); System.out.println(STR + Context.getUserContext() .getLocation()); final List<String> urgencies = new LinkedList<String>(); for (Order.Urgency urgency : Order.Urgency.values()) { if (!urgency.equals(Order.Urgency.ON_SCHEDULED_DATE)) { urgencies.add(urgency.name()); } } model.addAttribute(STR, urgencies); model.addAttribute(STR, returnUrl); List<RadiologyOrder> radiologyOrdersCompletedReport = getRadiologyOrdersWithCompletedReportByPatient(patient); RadiologyProperties radiologyProperties = new RadiologyProperties(); String oviyamStatus = radiologyProperties.getDicomViewerLocalServerName(); String weasisStatus = radiologyProperties.getDicomViewerWeasisUrlBase(); String dicomViewerWeasisUrladdress = getDicomViewerWeasisUrladdress(); model.addAttribute(STR, oviyamStatus); model.addAttribute(STR, weasisStatus); model.addAttribute(STR, dicomViewerWeasisUrladdress); String dicomViewerUrladdress = getDicomViewerUrladdress(); model.addAttribute(STR, dicomViewerUrladdress); model.put(STR, radiologyOrdersCompletedReport); String PatientName = patient.getNames() .toString(); String patientName = PatientName.substring(1, PatientName.length() - 1); model.addAttribute(STR, patient); model.addAttribute(STR, patient.getPatientId()); model.addAttribute(STR, patientName); model.addAttribute(STR, patient.getId()); model.addAttribute(STR, STR); model.addAttribute(STR, STR); model.addAttribute(STR, STR); model.addAttribute(STR, STR); }
/** * Get the performed status report ready completed order. Get necessary * patient, radiologist information for sending messages. Get the * dicomViewerUrladdress for displaying images * * @param model FragmentModel * @param returnUrl * @param patient */
Get the performed status report ready completed order. Get necessary patient, radiologist information for sending messages. Get the dicomViewerUrladdress for displaying images
controller
{ "repo_name": "WangchukSFSU/Radiology", "path": "omod/src/main/java/org/openmrs/module/radiology/fragment/controller/CreateViewRadiologyOrderFragmentController.java", "license": "mpl-2.0", "size": 20460 }
[ "java.util.LinkedList", "java.util.List", "org.openmrs.Order", "org.openmrs.Patient", "org.openmrs.api.context.Context", "org.openmrs.module.radiology.RadiologyOrder", "org.openmrs.module.radiology.RadiologyProperties", "org.openmrs.ui.framework.fragment.FragmentModel", "org.springframework.web.bind.annotation.RequestParam" ]
import java.util.LinkedList; import java.util.List; import org.openmrs.Order; import org.openmrs.Patient; import org.openmrs.api.context.Context; import org.openmrs.module.radiology.RadiologyOrder; import org.openmrs.module.radiology.RadiologyProperties; import org.openmrs.ui.framework.fragment.FragmentModel; import org.springframework.web.bind.annotation.RequestParam;
import java.util.*; import org.openmrs.*; import org.openmrs.api.context.*; import org.openmrs.module.radiology.*; import org.openmrs.ui.framework.fragment.*; import org.springframework.web.bind.annotation.*;
[ "java.util", "org.openmrs", "org.openmrs.api", "org.openmrs.module", "org.openmrs.ui", "org.springframework.web" ]
java.util; org.openmrs; org.openmrs.api; org.openmrs.module; org.openmrs.ui; org.springframework.web;
992,087
public static void waitUntilWindowIsClosed(int n, int timeout) { final FxRobot rob = new FxRobot(); int sec = 0; logger.info("Wait until " + n + " windows are left open"); logger.info("Currently open windows: "); for (final Window w : rob.listWindows()) { logger.info(((Stage) w).getTitle()); } do { rob.sleep(1000); sec++; if (sec % 100 == 0) { logger.info("Waited: " + sec + " seconds"); } // avoid infinite loop if (sec > timeout) { break; } } while (rob.listWindows().size() > n); }
static void function(int n, int timeout) { final FxRobot rob = new FxRobot(); int sec = 0; logger.info(STR + n + STR); logger.info(STR); for (final Window w : rob.listWindows()) { logger.info(((Stage) w).getTitle()); } do { rob.sleep(1000); sec++; if (sec % 100 == 0) { logger.info(STR + sec + STR); } if (sec > timeout) { break; } } while (rob.listWindows().size() > n); }
/** * Waits until number of windows is reduced to n or timeout in seconds is * reached * * @param n * number of desired windows * @param timeout */
Waits until number of windows is reduced to n or timeout in seconds is reached
waitUntilWindowIsClosed
{ "repo_name": "AKSW/LIMES-dev", "path": "limes-gui/src/test/java/org/aksw/limes/core/gui/util/CustomGuiTest.java", "license": "gpl-3.0", "size": 4517 }
[ "org.testfx.api.FxRobot" ]
import org.testfx.api.FxRobot;
import org.testfx.api.*;
[ "org.testfx.api" ]
org.testfx.api;
2,724,297
public void finalizeStatement(Connection connection) { if (_statement.length() != 0) { initList(); _list.add(new FinalizedStatement( connection, _statement.toString(), _values.toArray(), getColumns(), _type, _isPrefixed)); } reset(); }
void function(Connection connection) { if (_statement.length() != 0) { initList(); _list.add(new FinalizedStatement( connection, _statement.toString(), _values.toArray(), getColumns(), _type, _isPrefixed)); } reset(); }
/** * Finalize the current statement for the specified connection and add * to the internal list of finalized statements. * * <p>Resets the {@link Statement} so the next statement can be constructed.</p> * * @param connection The connection the statement is for. */
Finalize the current statement for the specified connection and add to the internal list of finalized statements. Resets the <code>Statement</code> so the next statement can be constructed
finalizeStatement
{ "repo_name": "JCThePants/MySqlProvider", "path": "src/com/jcwhatever/nucleus/providers/mysql/statements/Statement.java", "license": "mit", "size": 6063 }
[ "java.sql.Connection" ]
import java.sql.Connection;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,129,750
@ApiModelProperty(value = "A class of an error that has occurred during the encoding process. It is present only if the encoding status is equal to `fail`.") public String getErrorClass() { return errorClass; }
@ApiModelProperty(value = STR) String function() { return errorClass; }
/** * A class of an error that has occurred during the encoding process. It is present only if the encoding status is equal to &#x60;fail&#x60;. * @return errorClass **/
A class of an error that has occurred during the encoding process. It is present only if the encoding status is equal to &#x60;fail&#x60;
getErrorClass
{ "repo_name": "Telestream/telestream-cloud-java-sdk", "path": "telestream-cloud-flip-sdk/src/main/java/net/telestream/cloud/flip/Encoding.java", "license": "mit", "size": 21436 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
987,354
private void handleParentPostFilter(ResourceBundleManager resourcesManager, DateFormat dateFormatter, Locale locale, StringBuilder filters, TaggingCoreItemUTPExtension utpExt) throws NoteNotFoundException, AuthorizationException { if (utpExt.getParentPostId() != null) { // no need to pass a render mode and trigger the pre-processors because we are only // interested in the author NoteData noteData = ServiceLocator.instance().getService(NoteService.class) .getNote(utpExt.getParentPostId(), new NoteRenderContext(null, locale)); // TODO add some text if the note does not exist if (noteData != null) { filters.append(resourcesManager.getText("export.postlist.filter.parentpost", locale, UserNameHelper.getDetailedUserSignature(noteData.getUser()), dateFormatter.format(noteData.getCreationDate().getTime())) + SEPARATOR); } } }
void function(ResourceBundleManager resourcesManager, DateFormat dateFormatter, Locale locale, StringBuilder filters, TaggingCoreItemUTPExtension utpExt) throws NoteNotFoundException, AuthorizationException { if (utpExt.getParentPostId() != null) { NoteData noteData = ServiceLocator.instance().getService(NoteService.class) .getNote(utpExt.getParentPostId(), new NoteRenderContext(null, locale)); if (noteData != null) { filters.append(resourcesManager.getText(STR, locale, UserNameHelper.getDetailedUserSignature(noteData.getUser()), dateFormatter.format(noteData.getCreationDate().getTime())) + SEPARATOR); } } }
/** * This method handles the parent post. * * @param resourcesManager * {@link ResourceBundleManager}. * @param dateFormatter * Date formatter. * @param locale * The local. * @param filters * Filters as {@link StringBuilder}. * @param utpExt * {@link TaggingCoreItemUTPExtension}. * @throws NoteNotFoundException * exception. * @throws AuthorizationException * Exception. */
This method handles the parent post
handleParentPostFilter
{ "repo_name": "Communote/communote-server", "path": "communote/core/src/main/java/com/communote/server/core/blog/export/impl/RssNoteWriter.java", "license": "apache-2.0", "size": 26363 }
[ "com.communote.server.api.ServiceLocator", "com.communote.server.api.core.note.NoteData", "com.communote.server.api.core.note.NoteRenderContext", "com.communote.server.api.core.security.AuthorizationException", "com.communote.server.core.blog.NoteNotFoundException", "com.communote.server.core.user.helper.UserNameHelper", "com.communote.server.core.vo.query.TaggingCoreItemUTPExtension", "com.communote.server.persistence.common.messages.ResourceBundleManager", "com.communote.server.service.NoteService", "java.text.DateFormat", "java.util.Locale" ]
import com.communote.server.api.ServiceLocator; import com.communote.server.api.core.note.NoteData; import com.communote.server.api.core.note.NoteRenderContext; import com.communote.server.api.core.security.AuthorizationException; import com.communote.server.core.blog.NoteNotFoundException; import com.communote.server.core.user.helper.UserNameHelper; import com.communote.server.core.vo.query.TaggingCoreItemUTPExtension; import com.communote.server.persistence.common.messages.ResourceBundleManager; import com.communote.server.service.NoteService; import java.text.DateFormat; import java.util.Locale;
import com.communote.server.api.*; import com.communote.server.api.core.note.*; import com.communote.server.api.core.security.*; import com.communote.server.core.blog.*; import com.communote.server.core.user.helper.*; import com.communote.server.core.vo.query.*; import com.communote.server.persistence.common.messages.*; import com.communote.server.service.*; import java.text.*; import java.util.*;
[ "com.communote.server", "java.text", "java.util" ]
com.communote.server; java.text; java.util;
209,332
public void onBetweenMinAndMaxTimesRadioButtonClicked(final boolean isValue) { if (isValue) { view.setVisibleTextBox(false, true); view.setEnableAsFewAsPossibleCheckBox(true); } else { view.setVisibleTextBox(false, false); } controller.getEventBus().fireEvent(new RegexEvent()); }
void function(final boolean isValue) { if (isValue) { view.setVisibleTextBox(false, true); view.setEnableAsFewAsPossibleCheckBox(true); } else { view.setVisibleTextBox(false, false); } controller.getEventBus().fireEvent(new RegexEvent()); }
/** * Fires the RegexEvent for the generation of Regex Pattern. Also based on value paased, this will make visible or invisble the * text boxes. * * @param isValue <code>true</code> value makes invisible the txtNoOfTimes text box and makes visble max and min no of times text * boxes. Also true value makes enable asFewAsPossibleCheckBox. <code>false</code> value makes invisble the * txtNoOfTimes, min and max no of times text boxes. */
Fires the RegexEvent for the generation of Regex Pattern. Also based on value paased, this will make visible or invisble the text boxes
onBetweenMinAndMaxTimesRadioButtonClicked
{ "repo_name": "ungerik/ephesoft", "path": "Ephesoft_Community_Release_4.0.2.0/source/gxt/gxt-admin/src/main/java/com/ephesoft/gxt/admin/client/presenter/regexbuilder/RegexQuantifierDetailPresenter.java", "license": "agpl-3.0", "size": 10230 }
[ "com.ephesoft.gxt.admin.client.event.RegexEvent" ]
import com.ephesoft.gxt.admin.client.event.RegexEvent;
import com.ephesoft.gxt.admin.client.event.*;
[ "com.ephesoft.gxt" ]
com.ephesoft.gxt;
1,516,015
public void setRegisterNameValue(YangString registerNameValue) throws JNCException { setLeafValue(Epc.NAMESPACE, "register-name", registerNameValue, childrenNames()); }
void function(YangString registerNameValue) throws JNCException { setLeafValue(Epc.NAMESPACE, STR, registerNameValue, childrenNames()); }
/** * Sets the value for child leaf "register-name", * using instance of generated typedef class. * @param registerNameValue The value to set. * @param registerNameValue used during instantiation. */
Sets the value for child leaf "register-name", using instance of generated typedef class
setRegisterNameValue
{ "repo_name": "jnpr-shinma/yangfile", "path": "hitel/src/hctaEpc/mmeSgsn/statistics/gprsMm/General.java", "license": "apache-2.0", "size": 11341 }
[ "com.tailf.jnc.YangString" ]
import com.tailf.jnc.YangString;
import com.tailf.jnc.*;
[ "com.tailf.jnc" ]
com.tailf.jnc;
583,333
void setDiffuseColor(Color3f diffuseColor);
void setDiffuseColor(Color3f diffuseColor);
/** * Setter for property diffuseColor. * @param diffuseColor New value of property fColor. */
Setter for property diffuseColor
setDiffuseColor
{ "repo_name": "IcmVis/VisNow-Pro", "path": "src/pl/edu/icm/visnow/geometries/parameters/AbstractRenderingParams.java", "license": "gpl-3.0", "size": 7089 }
[ "javax.vecmath.Color3f" ]
import javax.vecmath.Color3f;
import javax.vecmath.*;
[ "javax.vecmath" ]
javax.vecmath;
2,743,725