code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
private Boolean isInsideCITemplate(Page page) {
SourceCode sc = page.getSourceCode();
if (!(sc instanceof PageSourceCode)) return null;
PageSource psc = ((PageSourceCode) sc).getPageSource();
String src = psc.getDisplayPath();
return Constants.isComponentExtension(ResourceUtil.getExtension(src, ""));
// int pos=s... | class class_name[name] begin[{]
method[isInsideCITemplate, return_type[type[Boolean]], modifier[private], parameter[page]] begin[{]
local_variable[type[SourceCode], sc]
if[binary_operation[member[.sc], instanceof, type[PageSourceCode]]] begin[{]
return[literal[null]]
else begin[... | Keyword[private] identifier[Boolean] identifier[isInsideCITemplate] operator[SEP] identifier[Page] identifier[page] operator[SEP] {
identifier[SourceCode] identifier[sc] operator[=] identifier[page] operator[SEP] identifier[getSourceCode] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operat... |
public String getConfigurationContentStringValue(String path) {
if (getConfigurationContent() != null) {
return getConfigurationContent().getStringValue(getCms(), path, getLocale());
}
return "";
} | class class_name[name] begin[{]
method[getConfigurationContentStringValue, return_type[type[String]], modifier[public], parameter[path]] begin[{]
if[binary_operation[call[.getConfigurationContent, parameter[]], !=, literal[null]]] begin[{]
return[call[.getConfigurationContent, param... | Keyword[public] identifier[String] identifier[getConfigurationContentStringValue] operator[SEP] identifier[String] identifier[path] operator[SEP] {
Keyword[if] operator[SEP] identifier[getConfigurationContent] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] {
Keyword[return] identif... |
protected void validateEqualInteger(Integer i1, Integer i2, String errorKey, String errorMessage) {
if (i1 == null || i2 == null || (i1.intValue() != i2.intValue())) {
addError(errorKey, errorMessage);
}
} | class class_name[name] begin[{]
method[validateEqualInteger, return_type[void], modifier[protected], parameter[i1, i2, errorKey, errorMessage]] begin[{]
if[binary_operation[binary_operation[binary_operation[member[.i1], ==, literal[null]], ||, binary_operation[member[.i2], ==, literal[null]]], ... | Keyword[protected] Keyword[void] identifier[validateEqualInteger] operator[SEP] identifier[Integer] identifier[i1] , identifier[Integer] identifier[i2] , identifier[String] identifier[errorKey] , identifier[String] identifier[errorMessage] operator[SEP] {
Keyword[if] operator[SEP] identifier[i1] operator[==] ... |
public final ProtoParser.enum_body_return enum_body(Proto proto, Message message, EnumGroup enumGroup) throws RecognitionException {
ProtoParser.enum_body_return retval = new ProtoParser.enum_body_return();
retval.start = input.LT(1);
Object root_0 = null;
ProtoParser.enum_field_return... | class class_name[name] begin[{]
method[enum_body, return_type[type[ProtoParser]], modifier[final public], parameter[proto, message, enumGroup]] begin[{]
local_variable[type[ProtoParser], retval]
assign[member[retval.start], call[input.LT, parameter[literal[1]]]]
local_variable[t... | Keyword[public] Keyword[final] identifier[ProtoParser] operator[SEP] identifier[enum_body_return] identifier[enum_body] operator[SEP] identifier[Proto] identifier[proto] , identifier[Message] identifier[message] , identifier[EnumGroup] identifier[enumGroup] operator[SEP] Keyword[throws] identifier[RecognitionExceptio... |
private boolean preparePending() {
// Copy the input queue into the write queue.
copyInputQueue();
// Now check the ops
Operation nextOp = getCurrentWriteOp();
while (nextOp != null && nextOp.isCancelled()) {
getLogger().info("Removing cancelled operation: %s", nextOp);
removeCurrentWri... | class class_name[name] begin[{]
method[preparePending, return_type[type[boolean]], modifier[private], parameter[]] begin[{]
call[.copyInputQueue, parameter[]]
local_variable[type[Operation], nextOp]
while[binary_operation[binary_operation[member[.nextOp], !=, literal[nul... | Keyword[private] Keyword[boolean] identifier[preparePending] operator[SEP] operator[SEP] {
identifier[copyInputQueue] operator[SEP] operator[SEP] operator[SEP] identifier[Operation] identifier[nextOp] operator[=] identifier[getCurrentWriteOp] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP]... |
private static ModelExtractor tryLoadEngine(String engineClassName) {
try {
@SuppressWarnings("unchecked")
Class<? extends ModelExtractor> engineClass = (Class<? extends ModelExtractor>) Class.forName(engineClassName, false, ModelExtractors.class.getClassLoader());
return eng... | class class_name[name] begin[{]
method[tryLoadEngine, return_type[type[ModelExtractor]], modifier[private static], parameter[engineClassName]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[Annotation(element=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selecto... | Keyword[private] Keyword[static] identifier[ModelExtractor] identifier[tryLoadEngine] operator[SEP] identifier[String] identifier[engineClassName] operator[SEP] {
Keyword[try] {
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] identifier[Class] operator[<] operato... |
private static List<Element> getChildElements(Element node)
{
List<Element> elements = new Vector<Element>();
NodeList childs = node.getChildNodes();
for (int j = 0; j < childs.getLength(); j++)
{
// Node cNode = childs.item(j);
if (childs.item(j).getNodeName().equals(TAG_PROPERTY)
&& childs.... | class class_name[name] begin[{]
method[getChildElements, return_type[type[List]], modifier[private static], parameter[node]] begin[{]
local_variable[type[List], elements]
local_variable[type[NodeList], childs]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(conditio... | Keyword[private] Keyword[static] identifier[List] operator[<] identifier[Element] operator[>] identifier[getChildElements] operator[SEP] identifier[Element] identifier[node] operator[SEP] {
identifier[List] operator[<] identifier[Element] operator[>] identifier[elements] operator[=] Keyword[new] identifier[Vecto... |
public UserManagedCacheBuilder<K, V, T> withSizeOfMaxObjectGraph(long size) {
UserManagedCacheBuilder<K, V, T> otherBuilder = new UserManagedCacheBuilder<>(this);
removeAnySizeOfEngine(otherBuilder);
otherBuilder.objectGraphSize = size;
otherBuilder.serviceCreationConfigurations.add(new DefaultSizeOfEng... | class class_name[name] begin[{]
method[withSizeOfMaxObjectGraph, return_type[type[UserManagedCacheBuilder]], modifier[public], parameter[size]] begin[{]
local_variable[type[UserManagedCacheBuilder], otherBuilder]
call[.removeAnySizeOfEngine, parameter[member[.otherBuilder]]]
... | Keyword[public] identifier[UserManagedCacheBuilder] operator[<] identifier[K] , identifier[V] , identifier[T] operator[>] identifier[withSizeOfMaxObjectGraph] operator[SEP] Keyword[long] identifier[size] operator[SEP] {
identifier[UserManagedCacheBuilder] operator[<] identifier[K] , identifier[V] , identifie... |
public String getDivisionName(ProposalDevelopmentDocumentContract pdDoc) {
String divisionName = null;
if (pdDoc != null && pdDoc.getDevelopmentProposal().getOwnedByUnit() != null) {
UnitContract ownedByUnit = pdDoc.getDevelopmentProposal().getOwnedByUnit();
// traverse through t... | class class_name[name] begin[{]
method[getDivisionName, return_type[type[String]], modifier[public], parameter[pdDoc]] begin[{]
local_variable[type[String], divisionName]
if[binary_operation[binary_operation[member[.pdDoc], !=, literal[null]], &&, binary_operation[call[pdDoc.getDevelopm... | Keyword[public] identifier[String] identifier[getDivisionName] operator[SEP] identifier[ProposalDevelopmentDocumentContract] identifier[pdDoc] operator[SEP] {
identifier[String] identifier[divisionName] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[pdDoc] operator[!=] Other[null] ope... |
public boolean containsKey(Long x, Long y)
{
// Extract the region containing the coordinates from the hash table
Bucket region = (Bucket) regions.get(new Coordinates(div(x, bucketSize), div(y, bucketSize)));
// Check if the whole region is empty
if (region == null)
{
... | class class_name[name] begin[{]
method[containsKey, return_type[type[boolean]], modifier[public], parameter[x, y]] begin[{]
local_variable[type[Bucket], region]
if[binary_operation[member[.region], ==, literal[null]]] begin[{]
return[literal[false]]
else begin[{]
Non... | Keyword[public] Keyword[boolean] identifier[containsKey] operator[SEP] identifier[Long] identifier[x] , identifier[Long] identifier[y] operator[SEP] {
identifier[Bucket] identifier[region] operator[=] operator[SEP] identifier[Bucket] operator[SEP] identifier[regions] operator[SEP] identifier[get] operator[SEP] ... |
public static JulianDate getJulianEasterSunday (final int nYear)
{
final int a = nYear % 4;
final int b = nYear % 7;
final int c = nYear % 19;
final int d = (19 * c + 15) % 30;
final int e = (2 * a + 4 * b - d + 34) % 7;
final int x = d + e + 114;
final int nMonth = x / 31;
final int n... | class class_name[name] begin[{]
method[getJulianEasterSunday, return_type[type[JulianDate]], modifier[public static], parameter[nYear]] begin[{]
local_variable[type[int], a]
local_variable[type[int], b]
local_variable[type[int], c]
local_variable[type[int], d]
local_vari... | Keyword[public] Keyword[static] identifier[JulianDate] identifier[getJulianEasterSunday] operator[SEP] Keyword[final] Keyword[int] identifier[nYear] operator[SEP] {
Keyword[final] Keyword[int] identifier[a] operator[=] identifier[nYear] operator[%] Other[4] operator[SEP] Keyword[final] Keyword[int] identifier[b]... |
@Nonnull
public static AutoCloseable register(@Nonnull ServletInitializer servletInitializer,
@Nonnull PropertySource<?> source) {
final BigInteger bigInteger = new BigInteger(64, ThreadLocalRandom.current());
final String key = bigInteger.toString(16);
if (PROPERTI... | class class_name[name] begin[{]
method[register, return_type[type[AutoCloseable]], modifier[public static], parameter[servletInitializer, source]] begin[{]
local_variable[type[BigInteger], bigInteger]
local_variable[type[String], key]
if[call[PROPERTIES.containsKey, parameter[me... | annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[AutoCloseable] identifier[register] operator[SEP] annotation[@] identifier[Nonnull] identifier[ServletInitializer] identifier[servletInitializer] , annotation[@] identifier[Nonnull] identifier[PropertySource] operator[<] operator[?] operator[... |
public static Map<String, Attribute> deepCopyAttributes(
EntityType entityType, EntityType entityTypeCopy, AttributeFactory attrFactory) {
Map<String, Attribute> copiedAttributes = new LinkedHashMap<>();
// step #1: deep copy attributes
Map<String, Attribute> ownAttrMap =
stream(entityType.ge... | class class_name[name] begin[{]
method[deepCopyAttributes, return_type[type[Map]], modifier[public static], parameter[entityType, entityTypeCopy, attrFactory]] begin[{]
local_variable[type[Map], copiedAttributes]
local_variable[type[Map], ownAttrMap]
call[ownAttrMap.forEach, par... | Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[Attribute] operator[>] identifier[deepCopyAttributes] operator[SEP] identifier[EntityType] identifier[entityType] , identifier[EntityType] identifier[entityTypeCopy] , identifier[AttributeFactory] identifier[attrFactory] oper... |
public Query orderby(final Expression... orderbyColumns) {
if (orderbyColumns == null) {
return this;
}
return orderby(Arrays.asList(orderbyColumns));
} | class class_name[name] begin[{]
method[orderby, return_type[type[Query]], modifier[public], parameter[orderbyColumns]] begin[{]
if[binary_operation[member[.orderbyColumns], ==, literal[null]]] begin[{]
return[THIS[]]
else begin[{]
None
end[}]
return[call[.ord... | Keyword[public] identifier[Query] identifier[orderby] operator[SEP] Keyword[final] identifier[Expression] operator[...] identifier[orderbyColumns] operator[SEP] {
Keyword[if] operator[SEP] identifier[orderbyColumns] operator[==] Other[null] operator[SEP] {
Keyword[return] Keyword[this] operator[SEP]
... |
public ServiceFuture<List<JobExecutionInner>> listByJobAsync(final String resourceGroupName, final String serverName, final String jobAgentName, final String jobName, final ListOperationCallback<JobExecutionInner> serviceCallback) {
return AzureServiceFuture.fromPageResponse(
listByJobSinglePageAsyn... | class class_name[name] begin[{]
method[listByJobAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, serverName, jobAgentName, jobName, serviceCallback]] begin[{]
return[call[AzureServiceFuture.fromPageResponse, parameter[call[.listByJobSinglePageAsync, parameter[memb... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[JobExecutionInner] operator[>] operator[>] identifier[listByJobAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , Keyword[final] identifier[String] identifier[serverName] , Keyword[final] ... |
protected boolean needsTrailingSlashRedirect(HttpServletRequest request, String requestPath, ActionExecute execute) {
if (isOutOfTrailingSlashRedirect(request, requestPath, execute)) {
return false;
}
if (isSuppressTrailingSlashRedirect(request, requestPath, execute)) {
r... | class class_name[name] begin[{]
method[needsTrailingSlashRedirect, return_type[type[boolean]], modifier[protected], parameter[request, requestPath, execute]] begin[{]
if[call[.isOutOfTrailingSlashRedirect, parameter[member[.request], member[.requestPath], member[.execute]]]] begin[{]
... | Keyword[protected] Keyword[boolean] identifier[needsTrailingSlashRedirect] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[String] identifier[requestPath] , identifier[ActionExecute] identifier[execute] operator[SEP] {
Keyword[if] operator[SEP] identifier[isOutOfTrailingSlashRedir... |
private static boolean looksLikeTLS(ChannelBuffer buffer) {
// TLS starts as
// 0: 0x16 - handshake protocol magic
// 1: 0x03 - SSL version major
// 2: 0x00 to 0x03 - SSL version minor (SSLv3 or TLS1.0 through TLS1.2)
// 3-4: length (2 bytes)
// 5: 0x01 - handshake type (... | class class_name[name] begin[{]
method[looksLikeTLS, return_type[type[boolean]], modifier[private static], parameter[buffer]] begin[{]
if[binary_operation[binary_operation[binary_operation[call[buffer.getByte, parameter[literal[0]]], !=, literal[0x16]], ||, binary_operation[call[buffer.getByte,... | Keyword[private] Keyword[static] Keyword[boolean] identifier[looksLikeTLS] operator[SEP] identifier[ChannelBuffer] identifier[buffer] operator[SEP] {
Keyword[if] operator[SEP] identifier[buffer] operator[SEP] identifier[getByte] operator[SEP] Other[0] operator[SEP] operator[!=] literal[Integer] operator[||] iden... |
public String getTimexValueEB() {
if (Timex3Interval_Type.featOkTst && ((Timex3Interval_Type)jcasType).casFeat_TimexValueEB == null)
jcasType.jcas.throwFeatMissing("TimexValueEB", "de.unihd.dbs.uima.types.heideltime.Timex3Interval");
return jcasType.ll_cas.ll_getStringValue(addr, ((Timex3Interval_Type)jca... | class class_name[name] begin[{]
method[getTimexValueEB, return_type[type[String]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[Timex3Interval_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], ... | Keyword[public] identifier[String] identifier[getTimexValueEB] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[Timex3Interval_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[Timex3Interval_Type] operator[SEP] identifier[jcasType] operator[SEP] oper... |
@Override
public SendAutomationSignalResult sendAutomationSignal(SendAutomationSignalRequest request) {
request = beforeClientExecution(request);
return executeSendAutomationSignal(request);
} | class class_name[name] begin[{]
method[sendAutomationSignal, return_type[type[SendAutomationSignalResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeSendAutomationSignal, parame... | annotation[@] identifier[Override] Keyword[public] identifier[SendAutomationSignalResult] identifier[sendAutomationSignal] operator[SEP] identifier[SendAutomationSignalRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ... |
public void marshall(UpdateServiceRequest updateServiceRequest, ProtocolMarshaller protocolMarshaller) {
if (updateServiceRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(updateServiceReques... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[updateServiceRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.updateServiceRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Liter... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UpdateServiceRequest] identifier[updateServiceRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[updateServiceRequest] operator[==] Other[null] operator[SEP] {
... |
private boolean isProductive(Class<?> bundleClass) {
NlsBundleOptions options = bundleClass.getAnnotation(NlsBundleOptions.class);
if (options != null) {
return options.productive();
}
return true;
} | class class_name[name] begin[{]
method[isProductive, return_type[type[boolean]], modifier[private], parameter[bundleClass]] begin[{]
local_variable[type[NlsBundleOptions], options]
if[binary_operation[member[.options], !=, literal[null]]] begin[{]
return[call[options.product... | Keyword[private] Keyword[boolean] identifier[isProductive] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[bundleClass] operator[SEP] {
identifier[NlsBundleOptions] identifier[options] operator[=] identifier[bundleClass] operator[SEP] identifier[getAnnotation] operator[SEP] identif... |
public static base_response update(nitro_service client, nshostname resource) throws Exception {
nshostname updateresource = new nshostname();
updateresource.hostname = resource.hostname;
updateresource.ownernode = resource.ownernode;
return updateresource.update_resource(client);
} | class class_name[name] begin[{]
method[update, return_type[type[base_response]], modifier[public static], parameter[client, resource]] begin[{]
local_variable[type[nshostname], updateresource]
assign[member[updateresource.hostname], member[resource.hostname]]
assign[memb... | Keyword[public] Keyword[static] identifier[base_response] identifier[update] operator[SEP] identifier[nitro_service] identifier[client] , identifier[nshostname] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[nshostname] identifier[updateresource] operator[=] Keyword[new] i... |
protected void publishChangedFile(
CmsDbContext dbc,
CmsProject onlineProject,
CmsResource offlineResource,
Set<CmsUUID> publishedResourceIds,
CmsUUID publishHistoryId,
int publishTag)
throws CmsDataAccessException {
CmsResource onlineResource = null;
... | class class_name[name] begin[{]
method[publishChangedFile, return_type[void], modifier[protected], parameter[dbc, onlineProject, offlineResource, publishedResourceIds, publishHistoryId, publishTag]] begin[{]
local_variable[type[CmsResource], onlineResource]
local_variable[type[boolean], needToU... | Keyword[protected] Keyword[void] identifier[publishChangedFile] operator[SEP] identifier[CmsDbContext] identifier[dbc] , identifier[CmsProject] identifier[onlineProject] , identifier[CmsResource] identifier[offlineResource] , identifier[Set] operator[<] identifier[CmsUUID] operator[>] identifier[publishedResourceIds... |
public static String uncompressString(byte[] input, String encoding)
throws IOException,
UnsupportedEncodingException
{
byte[] uncompressed = uncompress(input);
return new String(uncompressed, encoding);
} | class class_name[name] begin[{]
method[uncompressString, return_type[type[String]], modifier[public static], parameter[input, encoding]] begin[{]
local_variable[type[byte], uncompressed]
return[ClassCreator(arguments=[MemberReference(member=uncompressed, postfix_operators=[], prefix_operators=[... | Keyword[public] Keyword[static] identifier[String] identifier[uncompressString] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[input] , identifier[String] identifier[encoding] operator[SEP] Keyword[throws] identifier[IOException] , identifier[UnsupportedEncodingException] {
Keyword[byte] op... |
@SuppressWarnings("rawtypes")
public static <E extends Exception> DataSet loadCSV(final InputStream csvInputStream, final long offset, final long count,
final Try.Predicate<String[], E> filter, final List<? extends Type> columnTypeList) throws E {
final Reader csvReader = new InputStreamReade... | class class_name[name] begin[{]
method[loadCSV, return_type[type[DataSet]], modifier[public static], parameter[csvInputStream, offset, count, filter, columnTypeList]] begin[{]
local_variable[type[Reader], csvReader]
return[call[.loadCSV, parameter[member[.csvReader], member[.offset], member[.co... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[E] Keyword[extends] identifier[Exception] operator[>] identifier[DataSet] identifier[loadCSV] operator[SEP] Keyword[final] identifier[InputStream] identifier[csvInputStream] , K... |
private void renderContent() {
JBakeConfiguration config = utensils.getConfiguration();
Renderer renderer = utensils.getRenderer();
ContentStore contentStore = utensils.getContentStore();
for (RenderingTool tool : ServiceLoader.load(RenderingTool.class)) {
try {
... | class class_name[name] begin[{]
method[renderContent, return_type[void], modifier[private], parameter[]] begin[{]
local_variable[type[JBakeConfiguration], config]
local_variable[type[Renderer], renderer]
local_variable[type[ContentStore], contentStore]
ForStatement(body=BlockSta... | Keyword[private] Keyword[void] identifier[renderContent] operator[SEP] operator[SEP] {
identifier[JBakeConfiguration] identifier[config] operator[=] identifier[utensils] operator[SEP] identifier[getConfiguration] operator[SEP] operator[SEP] operator[SEP] identifier[Renderer] identifier[renderer] operator[=] iden... |
public Class loadClass(String name, boolean resolve)
throws ClassNotFoundException
{
if (name.startsWith("java.")) {
return super.loadClass(name, resolve); // prevent SecurityException
}
/*
Check first for classes loaded through this loader.
The V... | class class_name[name] begin[{]
method[loadClass, return_type[type[Class]], modifier[public], parameter[name, resolve]] begin[{]
if[call[name.startsWith, parameter[literal["java."]]]] begin[{]
return[SuperMethodInvocation(arguments=[MemberReference(member=name, postfix_operators=[],... | Keyword[public] identifier[Class] identifier[loadClass] operator[SEP] identifier[String] identifier[name] , Keyword[boolean] identifier[resolve] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] {
Keyword[if] operator[SEP] identifier[name] operator[SEP] identifier[startsWith] operator[SEP] litera... |
public static Map<String, ? extends CacheConfig> fromYAML(InputStream inputStream) throws IOException {
return new CacheConfigSupport().fromYAML(inputStream);
} | class class_name[name] begin[{]
method[fromYAML, return_type[type[Map]], modifier[public static], parameter[inputStream]] begin[{]
return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(argumen... | Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , operator[?] Keyword[extends] identifier[CacheConfig] operator[>] identifier[fromYAML] operator[SEP] identifier[InputStream] identifier[inputStream] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] Keyword[new... |
public static <T> T[] getBeans(Class<T> interfaceClass) {
Object object = serviceMap.get(interfaceClass.getName());
if(object == null) return null;
if(object instanceof Object[]) {
return (T[])object;
} else {
Object array = Array.newInstance(interfaceClass, 1);
... | class class_name[name] begin[{]
method[getBeans, return_type[type[T]], modifier[public static], parameter[interfaceClass]] begin[{]
local_variable[type[Object], object]
if[binary_operation[member[.object], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] operator[SEP] operator[SEP] identifier[getBeans] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[interfaceClass] operator[SEP] {
identifier[Object] identifier[object] operator[=] identifier[servic... |
public static ServiceAccount of(String email, String... scopes) {
return of(email, Arrays.asList(scopes));
} | class class_name[name] begin[{]
method[of, return_type[type[ServiceAccount]], modifier[public static], parameter[email, scopes]] begin[{]
return[call[.of, parameter[member[.email], call[Arrays.asList, parameter[member[.scopes]]]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[ServiceAccount] identifier[of] operator[SEP] identifier[String] identifier[email] , identifier[String] operator[...] identifier[scopes] operator[SEP] {
Keyword[return] identifier[of] operator[SEP] identifier[email] , identifier[Arrays] operator[SEP] identifier[asList]... |
public void setResourceShareAssociations(java.util.Collection<ResourceShareAssociation> resourceShareAssociations) {
if (resourceShareAssociations == null) {
this.resourceShareAssociations = null;
return;
}
this.resourceShareAssociations = new java.util.ArrayList<Resourc... | class class_name[name] begin[{]
method[setResourceShareAssociations, return_type[void], modifier[public], parameter[resourceShareAssociations]] begin[{]
if[binary_operation[member[.resourceShareAssociations], ==, literal[null]]] begin[{]
assign[THIS[member[None.resourceS... | Keyword[public] Keyword[void] identifier[setResourceShareAssociations] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[ResourceShareAssociation] operator[>] identifier[resourceShareAssociations] operator[SEP] {
Keyword[if] operator[SEP] id... |
public void setButtons(java.util.Collection<Button> buttons) {
if (buttons == null) {
this.buttons = null;
return;
}
this.buttons = new java.util.ArrayList<Button>(buttons);
} | class class_name[name] begin[{]
method[setButtons, return_type[void], modifier[public], parameter[buttons]] begin[{]
if[binary_operation[member[.buttons], ==, literal[null]]] begin[{]
assign[THIS[member[None.buttons]], literal[null]]
return[None]
else... | Keyword[public] Keyword[void] identifier[setButtons] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[Button] operator[>] identifier[buttons] operator[SEP] {
Keyword[if] operator[SEP] identifier[buttons] operator[==] Other[null] operator[SE... |
public void dereferenceControllable()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "dereferenceControllable");
foreignDest = null;
messageProcessor = null;
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "dereferen... | class class_name[name] begin[{]
method[dereferenceControllable, return_type[void], modifier[public], parameter[]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, parameter[membe... | Keyword[public] Keyword[void] identifier[dereferenceControllable] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operato... |
private FailedBatch doBatchWriteItemWithRetry(
Map<String, List<WriteRequest>> batch,
BatchWriteRetryStrategy batchWriteRetryStrategy) {
BatchWriteItemResult result = null;
int retries = 0;
int maxRetries = batchWriteRetryStrategy
.getMaxRetryOnUnprocesse... | class class_name[name] begin[{]
method[doBatchWriteItemWithRetry, return_type[type[FailedBatch]], modifier[private], parameter[batch, batchWriteRetryStrategy]] begin[{]
local_variable[type[BatchWriteItemResult], result]
local_variable[type[int], retries]
local_variable[type[int], maxRet... | Keyword[private] identifier[FailedBatch] identifier[doBatchWriteItemWithRetry] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[WriteRequest] operator[>] operator[>] identifier[batch] , identifier[BatchWriteRetryStrategy] identifier[batchWriteRetryStrategy] operat... |
public final ListDeviceRegistriesPagedResponse listDeviceRegistries(LocationName parent) {
ListDeviceRegistriesRequest request =
ListDeviceRegistriesRequest.newBuilder()
.setParent(parent == null ? null : parent.toString())
.build();
return listDeviceRegistries(request);
} | class class_name[name] begin[{]
method[listDeviceRegistries, return_type[type[ListDeviceRegistriesPagedResponse]], modifier[final public], parameter[parent]] begin[{]
local_variable[type[ListDeviceRegistriesRequest], request]
return[call[.listDeviceRegistries, parameter[member[.request]]]]
... | Keyword[public] Keyword[final] identifier[ListDeviceRegistriesPagedResponse] identifier[listDeviceRegistries] operator[SEP] identifier[LocationName] identifier[parent] operator[SEP] {
identifier[ListDeviceRegistriesRequest] identifier[request] operator[=] identifier[ListDeviceRegistriesRequest] operator[SEP] ide... |
public static String getHistoryResourceURI(String uri, ServletRequest req) {
String histUri = uri;
if (CmsHistoryResourceHandler.isHistoryRequest(req)) {
String version = req.getParameter(CmsHistoryResourceHandler.PARAM_VERSION);
histUri = CmsRequestUtil.appendParameter(uri, Cms... | class class_name[name] begin[{]
method[getHistoryResourceURI, return_type[type[String]], modifier[public static], parameter[uri, req]] begin[{]
local_variable[type[String], histUri]
if[call[CmsHistoryResourceHandler.isHistoryRequest, parameter[member[.req]]]] begin[{]
local_... | Keyword[public] Keyword[static] identifier[String] identifier[getHistoryResourceURI] operator[SEP] identifier[String] identifier[uri] , identifier[ServletRequest] identifier[req] operator[SEP] {
identifier[String] identifier[histUri] operator[=] identifier[uri] operator[SEP] Keyword[if] operator[SEP] identifier... |
@Override
public GetCompatibleElasticsearchVersionsResult getCompatibleElasticsearchVersions(GetCompatibleElasticsearchVersionsRequest request) {
request = beforeClientExecution(request);
return executeGetCompatibleElasticsearchVersions(request);
} | class class_name[name] begin[{]
method[getCompatibleElasticsearchVersions, return_type[type[GetCompatibleElasticsearchVersionsResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.execute... | annotation[@] identifier[Override] Keyword[public] identifier[GetCompatibleElasticsearchVersionsResult] identifier[getCompatibleElasticsearchVersions] operator[SEP] identifier[GetCompatibleElasticsearchVersionsRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExe... |
public static String applyFromPath(String path) throws ConverterException {
String xml = converters.get(0).convertFromPath(path, false);
xml = applyFromSecond(xml);
if (conversionDone()) {
return converters.get(converters.size()-1).changeVersion(xml);
} else {
return xml;
}
} | class class_name[name] begin[{]
method[applyFromPath, return_type[type[String]], modifier[public static], parameter[path]] begin[{]
local_variable[type[String], xml]
assign[member[.xml], call[.applyFromSecond, parameter[member[.xml]]]]
if[call[.conversionDone, parameter[... | Keyword[public] Keyword[static] identifier[String] identifier[applyFromPath] operator[SEP] identifier[String] identifier[path] operator[SEP] Keyword[throws] identifier[ConverterException] {
identifier[String] identifier[xml] operator[=] identifier[converters] operator[SEP] identifier[get] operator[SEP] Other[0] ... |
@Override
public void setVisible(boolean visible) {
super.setVisible(visible);
if (visible && invalidFieldEditor != null) {
invalidFieldEditor.setFocus();
}
} | class class_name[name] begin[{]
method[setVisible, return_type[void], modifier[public], parameter[visible]] begin[{]
SuperMethodInvocation(arguments=[MemberReference(member=visible, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setVisible, postfix_operators=[], p... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setVisible] operator[SEP] Keyword[boolean] identifier[visible] operator[SEP] {
Keyword[super] operator[SEP] identifier[setVisible] operator[SEP] identifier[visible] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[visible... |
public JSONObject getJson(
String postfixUrlParam,
List<HeaderNameValue> headerNameValuesParam) {
return this.getJson(
false,
postfixUrlParam,
headerNameValuesParam);
} | class class_name[name] begin[{]
method[getJson, return_type[type[JSONObject]], modifier[public], parameter[postfixUrlParam, headerNameValuesParam]] begin[{]
return[THIS[call[None.getJson, parameter[literal[false], member[.postfixUrlParam], member[.headerNameValuesParam]]]]]
end[}]
END[}] | Keyword[public] identifier[JSONObject] identifier[getJson] operator[SEP] identifier[String] identifier[postfixUrlParam] , identifier[List] operator[<] identifier[HeaderNameValue] operator[>] identifier[headerNameValuesParam] operator[SEP] {
Keyword[return] Keyword[this] operator[SEP] identifier[getJson] operato... |
public static short toShort(final String str, final short defaultValue) {
if(str == null) {
return defaultValue;
}
try {
return Short.parseShort(str);
} catch (final NumberFormatException nfe) {
return defaultValue;
}
} | class class_name[name] begin[{]
method[toShort, return_type[type[short]], modifier[public static], parameter[str, defaultValue]] begin[{]
if[binary_operation[member[.str], ==, literal[null]]] begin[{]
return[member[.defaultValue]]
else begin[{]
None
end[}]
Tr... | Keyword[public] Keyword[static] Keyword[short] identifier[toShort] operator[SEP] Keyword[final] identifier[String] identifier[str] , Keyword[final] Keyword[short] identifier[defaultValue] operator[SEP] {
Keyword[if] operator[SEP] identifier[str] operator[==] Other[null] operator[SEP] {
Keyword[return... |
@Override
public RandomVariable pow(double exponent) {
return apply(OperatorType.POW, new RandomVariable[]{this, constructNewAADRandomVariable(exponent)});
} | class class_name[name] begin[{]
method[pow, return_type[type[RandomVariable]], modifier[public], parameter[exponent]] begin[{]
return[call[.apply, parameter[member[OperatorType.POW], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[This(postfix_operators=[], prefix_operators=[... | annotation[@] identifier[Override] Keyword[public] identifier[RandomVariable] identifier[pow] operator[SEP] Keyword[double] identifier[exponent] operator[SEP] {
Keyword[return] identifier[apply] operator[SEP] identifier[OperatorType] operator[SEP] identifier[POW] , Keyword[new] identifier[RandomVariable] operat... |
private void initializeModuleScope(Node moduleBody, Module module, TypedScope moduleScope) {
if (module.metadata().isGoogModule()) {
declareExportsInModuleScope(module, moduleBody, moduleScope);
markGoogModuleExportsAsConst(module);
}
} | class class_name[name] begin[{]
method[initializeModuleScope, return_type[void], modifier[private], parameter[moduleBody, module, moduleScope]] begin[{]
if[call[module.metadata, parameter[]]] begin[{]
call[.declareExportsInModuleScope, parameter[member[.module], member[.... | Keyword[private] Keyword[void] identifier[initializeModuleScope] operator[SEP] identifier[Node] identifier[moduleBody] , identifier[Module] identifier[module] , identifier[TypedScope] identifier[moduleScope] operator[SEP] {
Keyword[if] operator[SEP] identifier[module] operator[SEP] identifier[metadata] operato... |
public ContentPackageBuilder xmlNamespace(String prefix, String uri) {
metadata.addXmlNamespace(prefix, uri);
return this;
} | class class_name[name] begin[{]
method[xmlNamespace, return_type[type[ContentPackageBuilder]], modifier[public], parameter[prefix, uri]] begin[{]
call[metadata.addXmlNamespace, parameter[member[.prefix], member[.uri]]]
return[THIS[]]
end[}]
END[}] | Keyword[public] identifier[ContentPackageBuilder] identifier[xmlNamespace] operator[SEP] identifier[String] identifier[prefix] , identifier[String] identifier[uri] operator[SEP] {
identifier[metadata] operator[SEP] identifier[addXmlNamespace] operator[SEP] identifier[prefix] , identifier[uri] operator[SEP] ope... |
public Observable<List<VersionInfo>> listAsync(UUID appId, ListVersionsOptionalParameter listOptionalParameter) {
return listWithServiceResponseAsync(appId, listOptionalParameter).map(new Func1<ServiceResponse<List<VersionInfo>>, List<VersionInfo>>() {
@Override
public List<VersionInfo> ... | class class_name[name] begin[{]
method[listAsync, return_type[type[Observable]], modifier[public], parameter[appId, listOptionalParameter]] begin[{]
return[call[.listWithServiceResponseAsync, parameter[member[.appId], member[.listOptionalParameter]]]]
end[}]
END[}] | Keyword[public] identifier[Observable] operator[<] identifier[List] operator[<] identifier[VersionInfo] operator[>] operator[>] identifier[listAsync] operator[SEP] identifier[UUID] identifier[appId] , identifier[ListVersionsOptionalParameter] identifier[listOptionalParameter] operator[SEP] {
Keyword[return] ide... |
public boolean isShift(double tol) {
Point2D pt = transformWithoutShift(Point2D.construct(0.0, 1.0));
pt.y -= 1.0;
if (pt.sqrLength() > tol * tol)
return false;
pt = transformWithoutShift(Point2D.construct(1.0, 0.0));
pt.x -= 1.0;
return pt.sqrLength() <= tol * tol;
} | class class_name[name] begin[{]
method[isShift, return_type[type[boolean]], modifier[public], parameter[tol]] begin[{]
local_variable[type[Point2D], pt]
assign[member[pt.y], literal[1.0]]
if[binary_operation[call[pt.sqrLength, parameter[]], >, binary_operation[member[.to... | Keyword[public] Keyword[boolean] identifier[isShift] operator[SEP] Keyword[double] identifier[tol] operator[SEP] {
identifier[Point2D] identifier[pt] operator[=] identifier[transformWithoutShift] operator[SEP] identifier[Point2D] operator[SEP] identifier[construct] operator[SEP] literal[Float] , literal[Float] ... |
@Override
public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
return cpAttachmentFileEntryPersistence.findWithDynamicQuery(dynamicQuery);
} | class class_name[name] begin[{]
method[dynamicQuery, return_type[type[List]], modifier[public], parameter[dynamicQuery]] begin[{]
return[call[cpAttachmentFileEntryPersistence.findWithDynamicQuery, parameter[member[.dynamicQuery]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[dynamicQuery] operator[SEP] identifier[DynamicQuery] identifier[dynamicQuery] operator[SEP] {
Keyword[return] identifier[cpAttachmentFileEntryPersistence] ope... |
@Override
public DisableAlarmActionsResult disableAlarmActions(DisableAlarmActionsRequest request) {
request = beforeClientExecution(request);
return executeDisableAlarmActions(request);
} | class class_name[name] begin[{]
method[disableAlarmActions, return_type[type[DisableAlarmActionsResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeDisableAlarmActions, parameter... | annotation[@] identifier[Override] Keyword[public] identifier[DisableAlarmActionsResult] identifier[disableAlarmActions] operator[SEP] identifier[DisableAlarmActionsRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ope... |
private static Class loadImplementorClass( String className, Class interfaceType, ClassLoader classLoader )
{
try
{
if ( _log.isDebugEnabled() )
{
_log.debug( "Trying to load implementor class for interface " + interfaceType.getName()
... | class class_name[name] begin[{]
method[loadImplementorClass, return_type[type[Class]], modifier[private static], parameter[className, interfaceType, classLoader]] begin[{]
TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=isDebugEnabled, postfix_operators=[], prefix_operat... | Keyword[private] Keyword[static] identifier[Class] identifier[loadImplementorClass] operator[SEP] identifier[String] identifier[className] , identifier[Class] identifier[interfaceType] , identifier[ClassLoader] identifier[classLoader] operator[SEP] {
Keyword[try] {
Keyword[if] operator[SEP] identifi... |
@Override
public void configurationEvent(ConfigurationEvent event) {
if (event.getType() == ConfigurationEvent.CM_UPDATED && event.getPid().equals(pid)) {
processProperties();
initializeInterceptor();
}
} | class class_name[name] begin[{]
method[configurationEvent, return_type[void], modifier[public], parameter[event]] begin[{]
if[binary_operation[binary_operation[call[event.getType, parameter[]], ==, member[ConfigurationEvent.CM_UPDATED]], &&, call[event.getPid, parameter[]]]] begin[{]
... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[configurationEvent] operator[SEP] identifier[ConfigurationEvent] identifier[event] operator[SEP] {
Keyword[if] operator[SEP] identifier[event] operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[==] identifier[Configur... |
protected ReadableLogRecord getReadableLogRecord(long expectedSequenceNumber)
{
if (tc.isEntryEnabled())
Tr.entry(tc, "getReadableLogRecord", new java.lang.Object[] { this, new Long(expectedSequenceNumber) });
if (tc.isDebugEnabled())
Tr.debug(tc, "Creating readable log reco... | class class_name[name] begin[{]
method[getReadableLogRecord, return_type[type[ReadableLogRecord]], modifier[protected], parameter[expectedSequenceNumber]] begin[{]
if[call[tc.isEntryEnabled, parameter[]]] begin[{]
call[Tr.entry, parameter[member[.tc], literal["getReadableLogRecord"]... | Keyword[protected] identifier[ReadableLogRecord] identifier[getReadableLogRecord] operator[SEP] Keyword[long] identifier[expectedSequenceNumber] operator[SEP] {
Keyword[if] operator[SEP] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP]... |
public String walletToText(Wallet wallet) {
Protos.Wallet walletProto = walletToProto(wallet);
return TextFormat.printToString(walletProto);
} | class class_name[name] begin[{]
method[walletToText, return_type[type[String]], modifier[public], parameter[wallet]] begin[{]
local_variable[type[Protos], walletProto]
return[call[TextFormat.printToString, parameter[member[.walletProto]]]]
end[}]
END[}] | Keyword[public] identifier[String] identifier[walletToText] operator[SEP] identifier[Wallet] identifier[wallet] operator[SEP] {
identifier[Protos] operator[SEP] identifier[Wallet] identifier[walletProto] operator[=] identifier[walletToProto] operator[SEP] identifier[wallet] operator[SEP] operator[SEP] Keyword[re... |
private void obtainBreadCrumbTitle(@NonNull final TypedArray typedArray) {
setBreadCrumbTitle(
typedArray.getText(R.styleable.NavigationPreference_android_breadCrumbTitle));
} | class class_name[name] begin[{]
method[obtainBreadCrumbTitle, return_type[void], modifier[private], parameter[typedArray]] begin[{]
call[.setBreadCrumbTitle, parameter[call[typedArray.getText, parameter[member[R.styleable.NavigationPreference_android_breadCrumbTitle]]]]]
end[}]
END[}] | Keyword[private] Keyword[void] identifier[obtainBreadCrumbTitle] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[TypedArray] identifier[typedArray] operator[SEP] {
identifier[setBreadCrumbTitle] operator[SEP] identifier[typedArray] operator[SEP] identifier[getText] operator[SEP] identif... |
public static <T> T invoke(Object obj, String methodName, Object[] arguments, Class<T> returnType) {
return invoke(obj, methodName, getArgumentTypes(arguments), arguments, returnType);
} | class class_name[name] begin[{]
method[invoke, return_type[type[T]], modifier[public static], parameter[obj, methodName, arguments, returnType]] begin[{]
return[call[.invoke, parameter[member[.obj], member[.methodName], call[.getArgumentTypes, parameter[member[.arguments]]], member[.arguments], member[... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[invoke] operator[SEP] identifier[Object] identifier[obj] , identifier[String] identifier[methodName] , identifier[Object] operator[SEP] operator[SEP] identifier[arguments] , identifier[Class] operator[<] identifier[T] oper... |
@Override
public UpdateCommentResult updateComment(UpdateCommentRequest request) {
request = beforeClientExecution(request);
return executeUpdateComment(request);
} | class class_name[name] begin[{]
method[updateComment, return_type[type[UpdateCommentResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeUpdateComment, parameter[member[.request]]... | annotation[@] identifier[Override] Keyword[public] identifier[UpdateCommentResult] identifier[updateComment] operator[SEP] identifier[UpdateCommentRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operato... |
public static base_responses enable(nitro_service client, String ip[]) throws Exception {
base_responses result = null;
if (ip != null && ip.length > 0) {
dnsnameserver enableresources[] = new dnsnameserver[ip.length];
for (int i=0;i<ip.length;i++){
enableresources[i] = new dnsnameserver();
enablereso... | class class_name[name] begin[{]
method[enable, return_type[type[base_responses]], modifier[public static], parameter[client, ip]] begin[{]
local_variable[type[base_responses], result]
if[binary_operation[binary_operation[member[.ip], !=, literal[null]], &&, binary_operation[member[ip.le... | Keyword[public] Keyword[static] identifier[base_responses] identifier[enable] operator[SEP] identifier[nitro_service] identifier[client] , identifier[String] identifier[ip] operator[SEP] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[base_responses] identifier[result] operator[=]... |
public List<ProtectionContainerResourceInner> list(String vaultName, String resourceGroupName, String filter) {
return listWithServiceResponseAsync(vaultName, resourceGroupName, filter).toBlocking().single().body();
} | class class_name[name] begin[{]
method[list, return_type[type[List]], modifier[public], parameter[vaultName, resourceGroupName, filter]] begin[{]
return[call[.listWithServiceResponseAsync, parameter[member[.vaultName], member[.resourceGroupName], member[.filter]]]]
end[}]
END[}] | Keyword[public] identifier[List] operator[<] identifier[ProtectionContainerResourceInner] operator[>] identifier[list] operator[SEP] identifier[String] identifier[vaultName] , identifier[String] identifier[resourceGroupName] , identifier[String] identifier[filter] operator[SEP] {
Keyword[return] identifier[lis... |
@Override
public void reset() {
this.priorityElements = Lists.newArrayList(originalElements);
Collections.shuffle(priorityElements);
this.currentElements = Lists.newArrayListWithExpectedSize(2 * originalElements.size());
this.currentElements.addAll(originalElements);
} | class class_name[name] begin[{]
method[reset, return_type[void], modifier[public], parameter[]] begin[{]
assign[THIS[member[None.priorityElements]], call[Lists.newArrayList, parameter[member[.originalElements]]]]
call[Collections.shuffle, parameter[member[.priorityElements]]]
... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[reset] operator[SEP] operator[SEP] {
Keyword[this] operator[SEP] identifier[priorityElements] operator[=] identifier[Lists] operator[SEP] identifier[newArrayList] operator[SEP] identifier[originalElements] operator[SEP] operator[SEP] ide... |
public com.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore getCommonCharactersToIgnore() {
if (charactersCase_ == 2) {
@SuppressWarnings("deprecation")
com.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore result =
com.google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore.value... | class class_name[name] begin[{]
method[getCommonCharactersToIgnore, return_type[type[com]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.charactersCase_], ==, literal[2]]] begin[{]
local_variable[type[com], result]
return[TernaryExpression(conditio... | Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[privacy] operator[SEP] identifier[dlp] operator[SEP] identifier[v2] operator[SEP] identifier[CharsToIgnore] operator[SEP] identifier[CommonCharsToIgnore] identifier[getCommonCharactersToIgnore] operator[SEP] operator[SEP] {
... |
private String findBrace(char chLeft, char chRight) {
// 从当前位置查找查找匹配的 (...)
int left = findLeftBrace(chLeft, position);
if (left >= position) {
int start = left + 1;
int end = findRightBrace(chLeft, chRight, start);
if (end >= start) {
// 当... | class class_name[name] begin[{]
method[findBrace, return_type[type[String]], modifier[private], parameter[chLeft, chRight]] begin[{]
local_variable[type[int], left]
if[binary_operation[member[.left], >=, member[.position]]] begin[{]
local_variable[type[int], start]
... | Keyword[private] identifier[String] identifier[findBrace] operator[SEP] Keyword[char] identifier[chLeft] , Keyword[char] identifier[chRight] operator[SEP] {
Keyword[int] identifier[left] operator[=] identifier[findLeftBrace] operator[SEP] identifier[chLeft] , identifier[position] operator[SEP] operator[SEP] Ke... |
public static PlotCanvas plot(String id, int[][] merge, double[] height) {
int n = merge.length + 1;
Dendrogram dendrogram = new Dendrogram(merge, height);
double[] lowerBound = {-n / 100, 0};
double[] upperBound = {n + n / 100, 1.01 * dendrogram.getHeight()};
PlotCanvas canvas... | class class_name[name] begin[{]
method[plot, return_type[type[PlotCanvas]], modifier[public static], parameter[id, merge, height]] begin[{]
local_variable[type[int], n]
local_variable[type[Dendrogram], dendrogram]
local_variable[type[double], lowerBound]
local_variable[type[doub... | Keyword[public] Keyword[static] identifier[PlotCanvas] identifier[plot] operator[SEP] identifier[String] identifier[id] , Keyword[int] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[merge] , Keyword[double] operator[SEP] operator[SEP] identifier[height] operator[SEP] {
Keyword[int] identifi... |
public static String getMEName(Object o) {
String meName;
if (!threadLocalStack.isEmpty()) {
meName = threadLocalStack.peek();
} else {
meName = DEFAULT_ME_NAME;
}
String str = "";
if (o != null) {
str = "/" + Integer.toHexString(System.identityHashCode(o));
}
// D... | class class_name[name] begin[{]
method[getMEName, return_type[type[String]], modifier[public static], parameter[o]] begin[{]
local_variable[type[String], meName]
if[call[threadLocalStack.isEmpty, parameter[]]] begin[{]
assign[member[.meName], call[threadLocalStac... | Keyword[public] Keyword[static] identifier[String] identifier[getMEName] operator[SEP] identifier[Object] identifier[o] operator[SEP] {
identifier[String] identifier[meName] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[threadLocalStack] operator[SEP] identifier[isEmpty] operator[SEP] operator[S... |
public static CustomSerializer getCustomSerializer(CommandCode code) {
if (!commandCustomSerializer.isEmpty()) {
return commandCustomSerializer.get(code);
}
return null;
} | class class_name[name] begin[{]
method[getCustomSerializer, return_type[type[CustomSerializer]], modifier[public static], parameter[code]] begin[{]
if[call[commandCustomSerializer.isEmpty, parameter[]]] begin[{]
return[call[commandCustomSerializer.get, parameter[member[.code]]]]
... | Keyword[public] Keyword[static] identifier[CustomSerializer] identifier[getCustomSerializer] operator[SEP] identifier[CommandCode] identifier[code] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[commandCustomSerializer] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP]... |
public static WritableRaster integerArray2WritableRaster( int[] array, double divide, int width, int height ) {
WritableRaster writableRaster = createWritableRaster(width, height, null, null, null);
int index = 0;;
for( int x = 0; x < width; x++ ) {
for( int y = 0; y < height; y++ ) ... | class class_name[name] begin[{]
method[integerArray2WritableRaster, return_type[type[WritableRaster]], modifier[public static], parameter[array, divide, width, height]] begin[{]
local_variable[type[WritableRaster], writableRaster]
local_variable[type[int], index]
Statement(label=None)
... | Keyword[public] Keyword[static] identifier[WritableRaster] identifier[integerArray2WritableRaster] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[array] , Keyword[double] identifier[divide] , Keyword[int] identifier[width] , Keyword[int] identifier[height] operator[SEP] {
identifier[Writabl... |
@Override
public long getLongSizeInBytes() {
long size = 8;
for (int i = 0; i < this.highLowContainer.size(); i++) {
final Container c = this.highLowContainer.getContainerAtIndex(i);
size += 2 + c.getSizeInBytes();
}
return size;
} | class class_name[name] begin[{]
method[getLongSizeInBytes, return_type[type[long]], modifier[public], parameter[]] begin[{]
local_variable[type[long], size]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensio... | annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[getLongSizeInBytes] operator[SEP] operator[SEP] {
Keyword[long] identifier[size] operator[=] Other[8] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] Keywor... |
protected final PrcPaymentToSave<RS> createPutPrcPaymentToSave(
final Map<String, Object> pAddParam) throws Exception {
PrcPaymentToSave<RS> proc = new PrcPaymentToSave<RS>();
proc.setSrvAccSettings(getSrvAccSettings());
proc.setSrvAccEntry(getSrvAccEntry());
proc.setSrvOrm(getSrvOrm());
proc.se... | class class_name[name] begin[{]
method[createPutPrcPaymentToSave, return_type[type[PrcPaymentToSave]], modifier[final protected], parameter[pAddParam]] begin[{]
local_variable[type[PrcPaymentToSave], proc]
call[proc.setSrvAccSettings, parameter[call[.getSrvAccSettings, parameter[]]]]
... | Keyword[protected] Keyword[final] identifier[PrcPaymentToSave] operator[<] identifier[RS] operator[>] identifier[createPutPrcPaymentToSave] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[pAddParam] operator[SEP] Keyword[throws] identifier[Excepti... |
public static sslservicegroup_sslcipher_binding[] get(nitro_service service, String servicegroupname) throws Exception{
sslservicegroup_sslcipher_binding obj = new sslservicegroup_sslcipher_binding();
obj.set_servicegroupname(servicegroupname);
sslservicegroup_sslcipher_binding response[] = (sslservicegroup_sslci... | class class_name[name] begin[{]
method[get, return_type[type[sslservicegroup_sslcipher_binding]], modifier[public static], parameter[service, servicegroupname]] begin[{]
local_variable[type[sslservicegroup_sslcipher_binding], obj]
call[obj.set_servicegroupname, parameter[member[.service... | Keyword[public] Keyword[static] identifier[sslservicegroup_sslcipher_binding] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[servicegroupname] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[sslservicegroup... |
private ExpressionContext findAndRemoveValue(List<NamedValueContext> namedValues, String name) {
Iterator<NamedValueContext> namedValueIter = namedValues.iterator();
while (namedValueIter.hasNext()) {
NamedValueContext namedValue = namedValueIter.next();
if (name.equals(value(namedValue.name)))... | class class_name[name] begin[{]
method[findAndRemoveValue, return_type[type[ExpressionContext]], modifier[private], parameter[namedValues, name]] begin[{]
local_variable[type[Iterator], namedValueIter]
while[call[namedValueIter.hasNext, parameter[]]] begin[{]
local_variable[... | Keyword[private] identifier[ExpressionContext] identifier[findAndRemoveValue] operator[SEP] identifier[List] operator[<] identifier[NamedValueContext] operator[>] identifier[namedValues] , identifier[String] identifier[name] operator[SEP] {
identifier[Iterator] operator[<] identifier[NamedValueContext] operator... |
public <T> TypeAdapter<T> getDelegateAdapter(TypeAdapterFactory skipPast, TypeToken<T> type) {
// Hack. If the skipPast factory isn't registered, assume the factory is being requested via
// our @JsonAdapter annotation.
if (!factories.contains(skipPast)) {
skipPast = jsonAdapterFactory;
}
boo... | class class_name[name] begin[{]
method[getDelegateAdapter, return_type[type[TypeAdapter]], modifier[public], parameter[skipPast, type]] begin[{]
if[call[factories.contains, parameter[member[.skipPast]]]] begin[{]
assign[member[.skipPast], member[.jsonAdapterFactory]]
... | Keyword[public] operator[<] identifier[T] operator[>] identifier[TypeAdapter] operator[<] identifier[T] operator[>] identifier[getDelegateAdapter] operator[SEP] identifier[TypeAdapterFactory] identifier[skipPast] , identifier[TypeToken] operator[<] identifier[T] operator[>] identifier[type] operator[SEP] {
Keyw... |
public UpdateInputSecurityGroupRequest withTags(java.util.Map<String, String> tags) {
setTags(tags);
return this;
} | class class_name[name] begin[{]
method[withTags, return_type[type[UpdateInputSecurityGroupRequest]], modifier[public], parameter[tags]] begin[{]
call[.setTags, parameter[member[.tags]]]
return[THIS[]]
end[}]
END[}] | Keyword[public] identifier[UpdateInputSecurityGroupRequest] identifier[withTags] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[tags] operator[SEP] {
identifier[setTags] operator[SEP] identifi... |
@Deprecated
public int getTimezoneOffset() {
int zoneOffset;
if (cdate == null) {
// Android-changed: Android specific time zone logic
GregorianCalendar cal = new GregorianCalendar(fastTime);
zoneOffset = (cal.get(Calendar.ZONE_OFFSET) + cal.get(Calendar.DST_OFFSE... | class class_name[name] begin[{]
method[getTimezoneOffset, return_type[type[int]], modifier[public], parameter[]] begin[{]
local_variable[type[int], zoneOffset]
if[binary_operation[member[.cdate], ==, literal[null]]] begin[{]
local_variable[type[GregorianCalendar], cal]
... | annotation[@] identifier[Deprecated] Keyword[public] Keyword[int] identifier[getTimezoneOffset] operator[SEP] operator[SEP] {
Keyword[int] identifier[zoneOffset] operator[SEP] Keyword[if] operator[SEP] identifier[cdate] operator[==] Other[null] operator[SEP] {
identifier[GregorianCalendar] identifier[... |
@Override
public CommercePriceList[] findByLtD_S_PrevAndNext(
long commercePriceListId, Date displayDate, int status,
OrderByComparator<CommercePriceList> orderByComparator)
throws NoSuchPriceListException {
CommercePriceList commercePriceList = findByPrimaryKey(commercePriceListId);
Session session = null;... | class class_name[name] begin[{]
method[findByLtD_S_PrevAndNext, return_type[type[CommercePriceList]], modifier[public], parameter[commercePriceListId, displayDate, status, orderByComparator]] begin[{]
local_variable[type[CommercePriceList], commercePriceList]
local_variable[type[Session], sessi... | annotation[@] identifier[Override] Keyword[public] identifier[CommercePriceList] operator[SEP] operator[SEP] identifier[findByLtD_S_PrevAndNext] operator[SEP] Keyword[long] identifier[commercePriceListId] , identifier[Date] identifier[displayDate] , Keyword[int] identifier[status] , identifier[OrderByComparator] ope... |
public static void send(int message, EntityPlayerMP player)
{
MalisisCore.network.sendTo(new Packet(message), player);
} | class class_name[name] begin[{]
method[send, return_type[void], modifier[public static], parameter[message, player]] begin[{]
call[MalisisCore.network.sendTo, parameter[ClassCreator(arguments=[MemberReference(member=message, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])],... | Keyword[public] Keyword[static] Keyword[void] identifier[send] operator[SEP] Keyword[int] identifier[message] , identifier[EntityPlayerMP] identifier[player] operator[SEP] {
identifier[MalisisCore] operator[SEP] identifier[network] operator[SEP] identifier[sendTo] operator[SEP] Keyword[new] identifier[Packet] o... |
@Override
protected void doPost(final HttpServletRequest req, final HttpServletResponse resp)
throws ServletException, IOException {
final boolean noCache = null != req && Boolean.valueOf(req.getParameter(noCacheParamName));
if (noCache || System.currentTimeMillis() - lastRefreshedTime > cacheTimeInMi... | class class_name[name] begin[{]
method[doPost, return_type[void], modifier[protected], parameter[req, resp]] begin[{]
local_variable[type[boolean], noCache]
if[binary_operation[member[.noCache], ||, binary_operation[binary_operation[call[System.currentTimeMillis, parameter[]], -, member... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[doPost] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[req] , Keyword[final] identifier[HttpServletResponse] identifier[resp] operator[SEP] Keyword[throws] identifier[ServletException] , identifier[IOException] {
... |
@Override
public EClass getFormatSerializerMap() {
if (formatSerializerMapEClass == null) {
formatSerializerMapEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(StorePackage.eNS_URI).getEClassifiers().get(113);
}
return formatSerializerMapEClass;
} | class class_name[name] begin[{]
method[getFormatSerializerMap, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.formatSerializerMapEClass], ==, literal[null]]] begin[{]
assign[member[.formatSerializerMapEClass], Cast(expressi... | annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getFormatSerializerMap] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[formatSerializerMapEClass] operator[==] Other[null] operator[SEP] {
identifier[formatSerializerMapEClass] operator[=] operator[SEP... |
public void setDataSource(DataSource dataSource) {
mDataSource = dataSource;
mDriverClassName = null;
mURL = null;
mUsername = null;
mPassword = null;
} | class class_name[name] begin[{]
method[setDataSource, return_type[void], modifier[public], parameter[dataSource]] begin[{]
assign[member[.mDataSource], member[.dataSource]]
assign[member[.mDriverClassName], literal[null]]
assign[member[.mURL], literal[null]]
... | Keyword[public] Keyword[void] identifier[setDataSource] operator[SEP] identifier[DataSource] identifier[dataSource] operator[SEP] {
identifier[mDataSource] operator[=] identifier[dataSource] operator[SEP] identifier[mDriverClassName] operator[=] Other[null] operator[SEP] identifier[mURL] operator[=] Other[null] ... |
private MyWrapper asMyWrapper(StringWrapper w)
{
if (w instanceof MyWrapper) return (MyWrapper)w;
else return new MyWrapper(w.unwrap());
} | class class_name[name] begin[{]
method[asMyWrapper, return_type[type[MyWrapper]], modifier[private], parameter[w]] begin[{]
if[binary_operation[member[.w], instanceof, type[MyWrapper]]] begin[{]
return[Cast(expression=MemberReference(member=w, postfix_operators=[], prefix_operators=[], qualifie... | Keyword[private] identifier[MyWrapper] identifier[asMyWrapper] operator[SEP] identifier[StringWrapper] identifier[w] operator[SEP] {
Keyword[if] operator[SEP] identifier[w] Keyword[instanceof] identifier[MyWrapper] operator[SEP] Keyword[return] operator[SEP] identifier[MyWrapper] operator[SEP] identifier[w] oper... |
public List<MessageLine> getLines(boolean includeAllPrecedingComments) {
List<MessageLine> lines = new ArrayList<>();
MessageLine l = firstLine;
if (includeAllPrecedingComments) {
// scan back to find end of prev message
while (l.prev != null && l.prev.isEmptyOrComment())... | class class_name[name] begin[{]
method[getLines, return_type[type[List]], modifier[public], parameter[includeAllPrecedingComments]] begin[{]
local_variable[type[List], lines]
local_variable[type[MessageLine], l]
if[member[.includeAllPrecedingComments]] begin[{]
... | Keyword[public] identifier[List] operator[<] identifier[MessageLine] operator[>] identifier[getLines] operator[SEP] Keyword[boolean] identifier[includeAllPrecedingComments] operator[SEP] {
identifier[List] operator[<] identifier[MessageLine] operator[>] identifier[lines] operator[=] Keyword[new] identifier[Array... |
@Internal
public <R> SingleOutputStreamOperator<R> process(
CoProcessFunction<IN1, IN2, R> coProcessFunction,
TypeInformation<R> outputType) {
TwoInputStreamOperator<IN1, IN2, R> operator;
if ((inputStream1 instanceof KeyedStream) && (inputStream2 instanceof KeyedStream)) {
operator = new KeyedCoProcess... | class class_name[name] begin[{]
method[process, return_type[type[SingleOutputStreamOperator]], modifier[public], parameter[coProcessFunction, outputType]] begin[{]
local_variable[type[TwoInputStreamOperator], operator]
if[binary_operation[binary_operation[member[.inputStream1], instance... | annotation[@] identifier[Internal] Keyword[public] operator[<] identifier[R] operator[>] identifier[SingleOutputStreamOperator] operator[<] identifier[R] operator[>] identifier[process] operator[SEP] identifier[CoProcessFunction] operator[<] identifier[IN1] , identifier[IN2] , identifier[R] operator[>] identifier[coP... |
public SelectBuilder format(final String _pattern)
{
addPoint();
this.bldr.append("format[").append(_pattern).append("]");
return this;
} | class class_name[name] begin[{]
method[format, return_type[type[SelectBuilder]], modifier[public], parameter[_pattern]] begin[{]
call[.addPoint, parameter[]]
THIS[member[None.bldr]call[None.append, parameter[literal["format["]]]call[None.append, parameter[member[._pattern]]]call... | Keyword[public] identifier[SelectBuilder] identifier[format] operator[SEP] Keyword[final] identifier[String] identifier[_pattern] operator[SEP] {
identifier[addPoint] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[bldr] operator[SEP] identifier[append] operator[SEP] literal[Stri... |
private float getFloatInternal(String key, float defaultValue) {
float retVal = defaultValue;
try {
synchronized (this.confData) {
if (this.confData.containsKey(key)) {
retVal = Float.parseFloat(this.confData.get(key));
}
}
} catch (NumberFormatException e) {
if (LOG.isDebugEnabled()) {
... | class class_name[name] begin[{]
method[getFloatInternal, return_type[type[float]], modifier[private], parameter[key, defaultValue]] begin[{]
local_variable[type[float], retVal]
TryStatement(block=[SynchronizedStatement(block=[IfStatement(condition=This(postfix_operators=[], prefix_operators=[],... | Keyword[private] Keyword[float] identifier[getFloatInternal] operator[SEP] identifier[String] identifier[key] , Keyword[float] identifier[defaultValue] operator[SEP] {
Keyword[float] identifier[retVal] operator[=] identifier[defaultValue] operator[SEP] Keyword[try] {
Keyword[synchronized] operator[SE... |
private String expandTemplates(String message, JsonNode entityJson) throws IOException, TemplateException {
// Read entityJSON data
Map<String, Object> data = new HashMap<>();
data.put("data", MAPPER.convertValue(entityJson, Map.class));
data.put("entity", MAPPER.convertValue(entityJson, Map.class));
... | class class_name[name] begin[{]
method[expandTemplates, return_type[type[String]], modifier[private], parameter[message, entityJson]] begin[{]
local_variable[type[Map], data]
call[data.put, parameter[literal["data"], call[MAPPER.convertValue, parameter[member[.entityJson], ClassReferenc... | Keyword[private] identifier[String] identifier[expandTemplates] operator[SEP] identifier[String] identifier[message] , identifier[JsonNode] identifier[entityJson] operator[SEP] Keyword[throws] identifier[IOException] , identifier[TemplateException] {
identifier[Map] operator[<] identifier[String] , identifier... |
protected void serializeObject(final DataOutputStream dos, final Object value) throws IOException {
if (value != null) {
final Integer typeKey = TypeMap.get(value.getClass());
if (typeKey != null) {
dos.writeInt(typeKey);
switch (typeKey) {
case 1:
dos.writeUTF((String)value);
brea... | class class_name[name] begin[{]
method[serializeObject, return_type[void], modifier[protected], parameter[dos, value]] begin[{]
if[binary_operation[member[.value], !=, literal[null]]] begin[{]
local_variable[type[Integer], typeKey]
if[binary_operation[member[... | Keyword[protected] Keyword[void] identifier[serializeObject] operator[SEP] Keyword[final] identifier[DataOutputStream] identifier[dos] , Keyword[final] identifier[Object] identifier[value] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] identifier[value] operator[!=] Other[null... |
public void normalizePercentEncoding() {
try {
uri = new URI(uri.getScheme(),
uri.getSchemeSpecificPart(),
uri.getFragment());
} catch (URISyntaxException e) {
// This should never be reached
e.printStackTrace();
... | class class_name[name] begin[{]
method[normalizePercentEncoding, return_type[void], modifier[public], parameter[]] begin[{]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=uri, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==,... | Keyword[public] Keyword[void] identifier[normalizePercentEncoding] operator[SEP] operator[SEP] {
Keyword[try] {
identifier[uri] operator[=] Keyword[new] identifier[URI] operator[SEP] identifier[uri] operator[SEP] identifier[getScheme] operator[SEP] operator[SEP] , identifier[uri] operator[SEP] identi... |
public void write(io.netty.buffer.ByteBuf buf) throws IOException {
write(buf, 0, buf.readableBytes());
} | class class_name[name] begin[{]
method[write, return_type[void], modifier[public], parameter[buf]] begin[{]
call[.write, parameter[member[.buf], literal[0], call[buf.readableBytes, parameter[]]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[write] operator[SEP] identifier[io] operator[SEP] identifier[netty] operator[SEP] identifier[buffer] operator[SEP] identifier[ByteBuf] identifier[buf] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[write] operator[SEP] identifier[buf] , Other[0] , id... |
@Override
public StopCrawlerResult stopCrawler(StopCrawlerRequest request) {
request = beforeClientExecution(request);
return executeStopCrawler(request);
} | class class_name[name] begin[{]
method[stopCrawler, return_type[type[StopCrawlerResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeStopCrawler, parameter[member[.request]]]]
... | annotation[@] identifier[Override] Keyword[public] identifier[StopCrawlerResult] identifier[stopCrawler] operator[SEP] identifier[StopCrawlerRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP]... |
public void setAll(String attributeName, String busClassNameWithDots, String busClassName, boolean isNullable, RelatedFinder relatedFinder, Map properties, boolean transactional)
{
timestampAttribute.setAll(attributeName, busClassNameWithDots, busClassName, isNullable, relatedFinder, properties, transacti... | class class_name[name] begin[{]
method[setAll, return_type[void], modifier[public], parameter[attributeName, busClassNameWithDots, busClassName, isNullable, relatedFinder, properties, transactional]] begin[{]
call[timestampAttribute.setAll, parameter[member[.attributeName], member[.busClassName... | Keyword[public] Keyword[void] identifier[setAll] operator[SEP] identifier[String] identifier[attributeName] , identifier[String] identifier[busClassNameWithDots] , identifier[String] identifier[busClassName] , Keyword[boolean] identifier[isNullable] , identifier[RelatedFinder] identifier[relatedFinder] , identifie... |
public static void main(final String... args) throws Exception {
if (args.length < 2 || args.length > 3) {
System.out.println("Usage: XMLSerializer input-TT output.xml");
System.exit(1);
}
System.out.print("Serializing '" + args[0] + "' to '" + args[1] + "' ... ");
... | class class_name[name] begin[{]
method[main, return_type[void], modifier[public static], parameter[args]] begin[{]
if[binary_operation[binary_operation[member[args.length], <, literal[2]], ||, binary_operation[member[args.length], >, literal[3]]]] begin[{]
call[System.ou... | Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] Keyword[final] identifier[String] operator[...] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[if] operator[SEP] identifier[args] operator[SEP] identifier[length] operator[<] Other[2] operator[||] identif... |
@Override
protected void preparePaintComponent(final Request request) {
super.preparePaintComponent(request);
if (!isInitialised()) {
// This model holds the data so would be included on the user session.
ExampleExpandableModel data = new ExampleExpandableModel(ExampleDataUtil.
createExampleData(),
... | class class_name[name] begin[{]
method[preparePaintComponent, return_type[void], modifier[protected], parameter[request]] begin[{]
SuperMethodInvocation(arguments=[MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=preparePaintComponent... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[preparePaintComponent] operator[SEP] Keyword[final] identifier[Request] identifier[request] operator[SEP] {
Keyword[super] operator[SEP] identifier[preparePaintComponent] operator[SEP] identifier[request] operator[SEP] operator[SEP] K... |
public LockEntry getWriter(Object obj)
{
PersistenceBroker broker = getBroker();
Identity oid = new Identity(obj, broker);
return getWriter(oid);
} | class class_name[name] begin[{]
method[getWriter, return_type[type[LockEntry]], modifier[public], parameter[obj]] begin[{]
local_variable[type[PersistenceBroker], broker]
local_variable[type[Identity], oid]
return[call[.getWriter, parameter[member[.oid]]]]
end[}]
END[}] | Keyword[public] identifier[LockEntry] identifier[getWriter] operator[SEP] identifier[Object] identifier[obj] operator[SEP] {
identifier[PersistenceBroker] identifier[broker] operator[=] identifier[getBroker] operator[SEP] operator[SEP] operator[SEP] identifier[Identity] identifier[oid] operator[=] Keyword[new] i... |
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AfplibPackage.GCPARC__XCENT:
return getXCENT();
case AfplibPackage.GCPARC__YCENT:
return getYCENT();
case AfplibPackage.GCPARC__MH:
return getMH();
case AfplibPackage.GCPARC__MFR:
re... | class class_name[name] begin[{]
method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=GCPARC__XCENT, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selector... | annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] {
Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] {
K... |
public Element insertByKey(Object key, Object object)
{
EJSWrapperCommon element = (EJSWrapperCommon) object;
if (ivWrappers == null)
{
ivWrappers = new HashMap<Object, EJSWrapperCommon>(DEFAULT_BUCKET_SIZE);
}
Object duplicate = ivWrappers.put(key, element);
... | class class_name[name] begin[{]
method[insertByKey, return_type[type[Element]], modifier[public], parameter[key, object]] begin[{]
local_variable[type[EJSWrapperCommon], element]
if[binary_operation[member[.ivWrappers], ==, literal[null]]] begin[{]
assign[member[... | Keyword[public] identifier[Element] identifier[insertByKey] operator[SEP] identifier[Object] identifier[key] , identifier[Object] identifier[object] operator[SEP] {
identifier[EJSWrapperCommon] identifier[element] operator[=] operator[SEP] identifier[EJSWrapperCommon] operator[SEP] identifier[object] operator[S... |
public AuthorizationRequestUrl setScopes(Collection<String> scopes) {
this.scopes =
scopes == null || !scopes.iterator().hasNext() ? null : Joiner.on(' ').join(scopes);
return this;
} | class class_name[name] begin[{]
method[setScopes, return_type[type[AuthorizationRequestUrl]], modifier[public], parameter[scopes]] begin[{]
assign[THIS[member[None.scopes]], TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=scopes, postfix_oper... | Keyword[public] identifier[AuthorizationRequestUrl] identifier[setScopes] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[scopes] operator[SEP] {
Keyword[this] operator[SEP] identifier[scopes] operator[=] identifier[scopes] operator[==] Other[null] operator[||] operator... |
public void removeByValue(Object value)
{
Object key = valueTable.remove(value);
if (key != null)
{
keyTable.remove(key);
}
} | class class_name[name] begin[{]
method[removeByValue, return_type[void], modifier[public], parameter[value]] begin[{]
local_variable[type[Object], key]
if[binary_operation[member[.key], !=, literal[null]]] begin[{]
call[keyTable.remove, parameter[member[.key]]]
... | Keyword[public] Keyword[void] identifier[removeByValue] operator[SEP] identifier[Object] identifier[value] operator[SEP] {
identifier[Object] identifier[key] operator[=] identifier[valueTable] operator[SEP] identifier[remove] operator[SEP] identifier[value] operator[SEP] operator[SEP] Keyword[if] operator[SEP] i... |
public Iterator<Operator<Tree<E>>> validOperators(boolean reverse)
{
/*log.fine("public Iterator<Operator> validOperators(): called");*/
// Check if the tree is a leaf and return an empty iterator if so.
if (tree.isLeaf())
{
/*log.fine("is leaf");*/
return n... | class class_name[name] begin[{]
method[validOperators, return_type[type[Iterator]], modifier[public], parameter[reverse]] begin[{]
if[call[tree.isLeaf, parameter[]]] begin[{]
return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_o... | Keyword[public] identifier[Iterator] operator[<] identifier[Operator] operator[<] identifier[Tree] operator[<] identifier[E] operator[>] operator[>] operator[>] identifier[validOperators] operator[SEP] Keyword[boolean] identifier[reverse] operator[SEP] {
Keyword[if] operator[SEP] identifier[tree] operator[SEP] i... |
private static final String encode(String s) {
try {
return URLEncoder.encode(s, UTF_8);
} catch (UnsupportedEncodingException e) {
throw new Error("JVM unable to handle UTF-8");
}
} | class class_name[name] begin[{]
method[encode, return_type[type[String]], modifier[final private static], parameter[s]] begin[{]
TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=s, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Mem... | Keyword[private] Keyword[static] Keyword[final] identifier[String] identifier[encode] operator[SEP] identifier[String] identifier[s] operator[SEP] {
Keyword[try] {
Keyword[return] identifier[URLEncoder] operator[SEP] identifier[encode] operator[SEP] identifier[s] , identifier[UTF_8] operator[SEP] ope... |
public static String getPlatform(RemoteProxy proxy) {
if (proxy.getTestSlots().size() == 0) {
return "Unknown";
}
Platform res = getPlatform(proxy.getTestSlots().get(0));
for (TestSlot slot : proxy.getTestSlots()) {
Platform tmp = getPlatform(slot);
if (tmp != res) {
return "m... | class class_name[name] begin[{]
method[getPlatform, return_type[type[String]], modifier[public static], parameter[proxy]] begin[{]
if[binary_operation[call[proxy.getTestSlots, parameter[]], ==, literal[0]]] begin[{]
return[literal["Unknown"]]
else begin[{]
None
end[}... | Keyword[public] Keyword[static] identifier[String] identifier[getPlatform] operator[SEP] identifier[RemoteProxy] identifier[proxy] operator[SEP] {
Keyword[if] operator[SEP] identifier[proxy] operator[SEP] identifier[getTestSlots] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[S... |
public List<DetailInfo> getDetailInfo(CmsObject cms) {
return getCacheState(isOnline(cms)).getDetailInfosForSubsites(cms);
} | class class_name[name] begin[{]
method[getDetailInfo, return_type[type[List]], modifier[public], parameter[cms]] begin[{]
return[call[.getCacheState, parameter[call[.isOnline, parameter[member[.cms]]]]]]
end[}]
END[}] | Keyword[public] identifier[List] operator[<] identifier[DetailInfo] operator[>] identifier[getDetailInfo] operator[SEP] identifier[CmsObject] identifier[cms] operator[SEP] {
Keyword[return] identifier[getCacheState] operator[SEP] identifier[isOnline] operator[SEP] identifier[cms] operator[SEP] operator[SEP] oper... |
public static String getNewSaveFileLocation(boolean isTemporary) {
File dst;
File savesDir = FMLClientHandler.instance().getSavesDir();
do {
// We used to create filenames based on the current date/time, but this can cause problems when
// multiple clients might be writin... | class class_name[name] begin[{]
method[getNewSaveFileLocation, return_type[type[String]], modifier[public static], parameter[isTemporary]] begin[{]
local_variable[type[File], dst]
local_variable[type[File], savesDir]
do[call[dst.exists, parameter[]]] begin[{]
local_v... | Keyword[public] Keyword[static] identifier[String] identifier[getNewSaveFileLocation] operator[SEP] Keyword[boolean] identifier[isTemporary] operator[SEP] {
identifier[File] identifier[dst] operator[SEP] identifier[File] identifier[savesDir] operator[=] identifier[FMLClientHandler] operator[SEP] identifier[insta... |
public void marshall(RouteSettings routeSettings, ProtocolMarshaller protocolMarshaller) {
if (routeSettings == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(routeSettings.getDataTraceEnabled(), DAT... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[routeSettings, protocolMarshaller]] begin[{]
if[binary_operation[member[.routeSettings], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_ope... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[RouteSettings] identifier[routeSettings] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[routeSettings] operator[==] Other[null] operator[SEP] {
Keyword[thr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.