code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public static int MurmurHash3_x86_32_direct(MemoryAccessor mem, long base, int offset, int len) {
return MurmurHash3_x86_32(mem.isBigEndian() ? NARROW_DIRECT_LOADER : WIDE_DIRECT_LOADER,
mem, base + offset, len, DEFAULT_MURMUR_SEED);
} | class class_name[name] begin[{]
method[MurmurHash3_x86_32_direct, return_type[type[int]], modifier[public static], parameter[mem, base, offset, len]] begin[{]
return[call[.MurmurHash3_x86_32, parameter[TernaryExpression(condition=MethodInvocation(arguments=[], member=isBigEndian, postfix_operators=[], ... | Keyword[public] Keyword[static] Keyword[int] identifier[MurmurHash3_x86_32_direct] operator[SEP] identifier[MemoryAccessor] identifier[mem] , Keyword[long] identifier[base] , Keyword[int] identifier[offset] , Keyword[int] identifier[len] operator[SEP] {
Keyword[return] identifier[MurmurHash3_x86_32] operator[... |
boolean validatePasswords(String password1, String password2) {
if (!password1.equals(password2)) {
showPasswordMatchError(true);
return false;
}
showPasswordMatchError(false);
try {
OpenCms.getPasswordHandler().validatePassword(password1);
... | class class_name[name] begin[{]
method[validatePasswords, return_type[type[boolean]], modifier[default], parameter[password1, password2]] begin[{]
if[call[password1.equals, parameter[member[.password2]]]] begin[{]
call[.showPasswordMatchError, parameter[literal[true]]]
... | Keyword[boolean] identifier[validatePasswords] operator[SEP] identifier[String] identifier[password1] , identifier[String] identifier[password2] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[password1] operator[SEP] identifier[equals] operator[SEP] identifier[password2] operator[SEP] operator... |
public com.squareup.okhttp.Call getWarsWarIdKillmailsAsync(Integer warId, String datasource, String ifNoneMatch,
Integer page, final ApiCallback<List<WarKillmailsResponse>> callback) throws ApiException {
com.squareup.okhttp.Call call = getWarsWarIdKillmailsValidateBeforeCall(warId, datasource, ifN... | class class_name[name] begin[{]
method[getWarsWarIdKillmailsAsync, return_type[type[com]], modifier[public], parameter[warId, datasource, ifNoneMatch, page, callback]] begin[{]
local_variable[type[com], call]
local_variable[type[Type], localVarReturnType]
call[apiClient.executeA... | Keyword[public] identifier[com] operator[SEP] identifier[squareup] operator[SEP] identifier[okhttp] operator[SEP] identifier[Call] identifier[getWarsWarIdKillmailsAsync] operator[SEP] identifier[Integer] identifier[warId] , identifier[String] identifier[datasource] , identifier[String] identifier[ifNoneMatch] , iden... |
private UnaryExpression resolveUnary(FunctionRef fun) {
UnaryExpression operator = null;
try {
Class clazz = Class.forName("org.hl7.elm.r1." + fun.getName());
if (UnaryExpression.class.isAssignableFrom(clazz)) {
operator = (UnaryExpression) clazz.newInstance();
... | class class_name[name] begin[{]
method[resolveUnary, return_type[type[UnaryExpression]], modifier[private], parameter[fun]] begin[{]
local_variable[type[UnaryExpression], operator]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initia... | Keyword[private] identifier[UnaryExpression] identifier[resolveUnary] operator[SEP] identifier[FunctionRef] identifier[fun] operator[SEP] {
identifier[UnaryExpression] identifier[operator] operator[=] Other[null] operator[SEP] Keyword[try] {
identifier[Class] identifier[clazz] operator[=] identifier[C... |
protected List<? extends ItemData> mergeNodes(ItemData rootData, List<NodeData> persistChildNodes)
throws RepositoryException
{
// 1 get all transient descendants
Collection<ItemState> transientDescendants = changesLog.getLastChildrenStates(rootData, true);
if (!transientDescendants.isEmpty(... | class class_name[name] begin[{]
method[mergeNodes, return_type[type[List]], modifier[protected], parameter[rootData, persistChildNodes]] begin[{]
local_variable[type[Collection], transientDescendants]
if[call[transientDescendants.isEmpty, parameter[]]] begin[{]
local_variabl... | Keyword[protected] identifier[List] operator[<] operator[?] Keyword[extends] identifier[ItemData] operator[>] identifier[mergeNodes] operator[SEP] identifier[ItemData] identifier[rootData] , identifier[List] operator[<] identifier[NodeData] operator[>] identifier[persistChildNodes] operator[SEP] Keyword[throws] identi... |
public static JsonElementConverter getConverter(JsonSchema schema, boolean repeated) {
InputType fieldType = schema.getInputType();
switch (fieldType) {
case INT:
return new IntConverter(schema, repeated);
case LONG:
return new LongConverter(schema, repeated);
case FLOAT:
... | class class_name[name] begin[{]
method[getConverter, return_type[type[JsonElementConverter]], modifier[public static], parameter[schema, repeated]] begin[{]
local_variable[type[InputType], fieldType]
SwitchStatement(cases=[SwitchStatementCase(case=['INT'], statements=[ReturnStatement(expression... | Keyword[public] Keyword[static] identifier[JsonElementConverter] identifier[getConverter] operator[SEP] identifier[JsonSchema] identifier[schema] , Keyword[boolean] identifier[repeated] operator[SEP] {
identifier[InputType] identifier[fieldType] operator[=] identifier[schema] operator[SEP] identifier[getInputTy... |
@Override
public BlobContract withFilter(ServiceFilter filter) {
ClientFilter[] currentFilters = getFilters();
ClientFilter[] newFilters = Arrays.copyOf(currentFilters,
currentFilters.length + 1);
newFilters[currentFilters.length] = new ClientFilterAdapter(filter);
re... | class class_name[name] begin[{]
method[withFilter, return_type[type[BlobContract]], modifier[public], parameter[filter]] begin[{]
local_variable[type[ClientFilter], currentFilters]
local_variable[type[ClientFilter], newFilters]
assign[member[.newFilters], ClassCreator(arguments=... | annotation[@] identifier[Override] Keyword[public] identifier[BlobContract] identifier[withFilter] operator[SEP] identifier[ServiceFilter] identifier[filter] operator[SEP] {
identifier[ClientFilter] operator[SEP] operator[SEP] identifier[currentFilters] operator[=] identifier[getFilters] operator[SEP] operator[S... |
public ScheduleRunConfiguration withAuxiliaryApps(String... auxiliaryApps) {
if (this.auxiliaryApps == null) {
setAuxiliaryApps(new java.util.ArrayList<String>(auxiliaryApps.length));
}
for (String ele : auxiliaryApps) {
this.auxiliaryApps.add(ele);
}
retu... | class class_name[name] begin[{]
method[withAuxiliaryApps, return_type[type[ScheduleRunConfiguration]], modifier[public], parameter[auxiliaryApps]] begin[{]
if[binary_operation[THIS[member[None.auxiliaryApps]], ==, literal[null]]] begin[{]
call[.setAuxiliaryApps, paramete... | Keyword[public] identifier[ScheduleRunConfiguration] identifier[withAuxiliaryApps] operator[SEP] identifier[String] operator[...] identifier[auxiliaryApps] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[auxiliaryApps] operator[==] Other[null] operator[SEP] {
identifie... |
@Nonnull
public <V extends T> LToLongFunctionBuilder<T> aCase(Class<V> argC, LToLongFunction<V> function) {
PartialCaseWithLongProduct.The pc = partialCaseFactoryMethod(a -> (argC == null || argC.isInstance(a)));
pc.evaluate(function);
return self();
} | class class_name[name] begin[{]
method[aCase, return_type[type[LToLongFunctionBuilder]], modifier[public], parameter[argC, function]] begin[{]
local_variable[type[PartialCaseWithLongProduct], pc]
call[pc.evaluate, parameter[member[.function]]]
return[call[.self, parameter[]]]
... | annotation[@] identifier[Nonnull] Keyword[public] operator[<] identifier[V] Keyword[extends] identifier[T] operator[>] identifier[LToLongFunctionBuilder] operator[<] identifier[T] operator[>] identifier[aCase] operator[SEP] identifier[Class] operator[<] identifier[V] operator[>] identifier[argC] , identifier[LToLongFu... |
public final Long getJmsExpiration() {
if (getHdr2().getChoiceField(JsHdr2Access.JMSEXPIRATION) == JsHdr2Access.IS_JMSEXPIRATION_EMPTY) {
return Long.valueOf(getDerivedJmsExpiration());
}
else {
return (Long) getHdr2().getField(JsHdr2Access.JMSEXPIRATION_DATA);
}
... | class class_name[name] begin[{]
method[getJmsExpiration, return_type[type[Long]], modifier[final public], parameter[]] begin[{]
if[binary_operation[call[.getHdr2, parameter[]], ==, member[JsHdr2Access.IS_JMSEXPIRATION_EMPTY]]] begin[{]
return[call[Long.valueOf, parameter[call[.getDe... | Keyword[public] Keyword[final] identifier[Long] identifier[getJmsExpiration] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[getHdr2] operator[SEP] operator[SEP] operator[SEP] identifier[getChoiceField] operator[SEP] identifier[JsHdr2Access] operator[SEP] identifier[JMSEXPIRATION] operator[SEP... |
@Nonnull
@Nonempty
public static String getHSLAColorValue (final float fHue,
final float fSaturation,
final float fLightness,
final float fOpacity)
{
return new StringBuilder (32).appe... | class class_name[name] begin[{]
method[getHSLAColorValue, return_type[type[String]], modifier[public static], parameter[fHue, fSaturation, fLightness, fOpacity]] begin[{]
return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=32)], body=Non... | annotation[@] identifier[Nonnull] annotation[@] identifier[Nonempty] Keyword[public] Keyword[static] identifier[String] identifier[getHSLAColorValue] operator[SEP] Keyword[final] Keyword[float] identifier[fHue] , Keyword[final] Keyword[float] identifier[fSaturation] , Keyword[final] Keyword[float] identifier[fLightne... |
public final void ruleXClosure() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalXbase.g:796:2: ( ( ( rule__XClosure__Group__0 ) ) )
// InternalXbase.g:797:2: ( ( rule__XClosure__Group__0 ) )
{
// InternalXbase.... | class class_name[name] begin[{]
method[ruleXClosure, return_type[void], modifier[final public], parameter[]] begin[{]
local_variable[type[int], stackSize]
TryStatement(block=[BlockStatement(label=None, statements=[BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(oper... | Keyword[public] Keyword[final] Keyword[void] identifier[ruleXClosure] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] {
Keyword[int] identifier[stackSize] operator[=] identifier[keepStackSize] operator[SEP] operator[SEP] operator[SEP] Keyword[try] {
{
{
... |
public HttpFileServiceBuilder setHeaders(Headers<AsciiString, String, ?> headers) {
requireNonNull(headers, "headers");
if (!headers.isEmpty()) {
getOrCreateHeaders().setAll(headers);
}
return this;
} | class class_name[name] begin[{]
method[setHeaders, return_type[type[HttpFileServiceBuilder]], modifier[public], parameter[headers]] begin[{]
call[.requireNonNull, parameter[member[.headers], literal["headers"]]]
if[call[headers.isEmpty, parameter[]]] begin[{]
... | Keyword[public] identifier[HttpFileServiceBuilder] identifier[setHeaders] operator[SEP] identifier[Headers] operator[<] identifier[AsciiString] , identifier[String] , operator[?] operator[>] identifier[headers] operator[SEP] {
identifier[requireNonNull] operator[SEP] identifier[headers] , literal[String] oper... |
private void loadAllAndKeepExisting(Set<? extends K> keys) {
List<K> keysToLoad = keys.stream()
.filter(key -> !cache.asMap().containsKey(key))
.collect(toList());
Map<K, V> result = cacheLoader.get().loadAll(keysToLoad);
for (Map.Entry<K, V> entry : result.entrySet()) {
if ((entry.get... | class class_name[name] begin[{]
method[loadAllAndKeepExisting, return_type[void], modifier[private], parameter[keys]] begin[{]
local_variable[type[List], keysToLoad]
local_variable[type[Map], result]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOp... | Keyword[private] Keyword[void] identifier[loadAllAndKeepExisting] operator[SEP] identifier[Set] operator[<] operator[?] Keyword[extends] identifier[K] operator[>] identifier[keys] operator[SEP] {
identifier[List] operator[<] identifier[K] operator[>] identifier[keysToLoad] operator[=] identifier[keys] operator[S... |
public static void isPositive(Integer value, String name) {
notNull(value, name);
if (value < 0) {
throw new IllegalArgumentException(name + "must be a positive number.");
}
} | class class_name[name] begin[{]
method[isPositive, return_type[void], modifier[public static], parameter[value, name]] begin[{]
call[.notNull, parameter[member[.value], member[.name]]]
if[binary_operation[member[.value], <, literal[0]]] begin[{]
ThrowStatement(expres... | Keyword[public] Keyword[static] Keyword[void] identifier[isPositive] operator[SEP] identifier[Integer] identifier[value] , identifier[String] identifier[name] operator[SEP] {
identifier[notNull] operator[SEP] identifier[value] , identifier[name] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[... |
public DSet difference(DSet otherSet)
{
DSetImpl result = new DSetImpl(getPBKey());
Iterator iter = this.iterator();
while (iter.hasNext())
{
Object candidate = iter.next();
if (!otherSet.contains(candidate))
{
result.add(c... | class class_name[name] begin[{]
method[difference, return_type[type[DSet]], modifier[public], parameter[otherSet]] begin[{]
local_variable[type[DSetImpl], result]
local_variable[type[Iterator], iter]
while[call[iter.hasNext, parameter[]]] begin[{]
local_variable[type... | Keyword[public] identifier[DSet] identifier[difference] operator[SEP] identifier[DSet] identifier[otherSet] operator[SEP] {
identifier[DSetImpl] identifier[result] operator[=] Keyword[new] identifier[DSetImpl] operator[SEP] identifier[getPBKey] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[I... |
public final InputStream locate(final String uri)
throws IOException {
final UriLocator uriLocator = getInstance(uri);
if (uriLocator == null) {
throw new WroRuntimeException("No locator is capable of handling uri: " + uri);
}
LOG.debug("[OK] locating {} using locator: {}", uri, uriLocator.get... | class class_name[name] begin[{]
method[locate, return_type[type[InputStream]], modifier[final public], parameter[uri]] begin[{]
local_variable[type[UriLocator], uriLocator]
if[binary_operation[member[.uriLocator], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassC... | Keyword[public] Keyword[final] identifier[InputStream] identifier[locate] operator[SEP] Keyword[final] identifier[String] identifier[uri] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[final] identifier[UriLocator] identifier[uriLocator] operator[=] identifier[getInstance] operator[SEP] identifi... |
private void writeResourceExtendedAttributes(Project.Resources.Resource xml, Resource mpx)
{
Project.Resources.Resource.ExtendedAttribute attrib;
List<Project.Resources.Resource.ExtendedAttribute> extendedAttributes = xml.getExtendedAttribute();
for (ResourceField mpxFieldID : getAllResourceExtend... | class class_name[name] begin[{]
method[writeResourceExtendedAttributes, return_type[void], modifier[private], parameter[xml, mpx]] begin[{]
local_variable[type[Project], attrib]
local_variable[type[List], extendedAttributes]
ForStatement(body=BlockStatement(label=None, statements=[Local... | Keyword[private] Keyword[void] identifier[writeResourceExtendedAttributes] operator[SEP] identifier[Project] operator[SEP] identifier[Resources] operator[SEP] identifier[Resource] identifier[xml] , identifier[Resource] identifier[mpx] operator[SEP] {
identifier[Project] operator[SEP] identifier[Resources] opera... |
@Override
public Object readFPrimitiveArray(Object array, Class componentType, int len) {
// FIXME: if else chaining could be avoided
if (componentType == byte.class) {
ensureReadAhead(len);
byte arr[] = (byte[]) array;
input.getArr(pos, arr, 0, len);
... | class class_name[name] begin[{]
method[readFPrimitiveArray, return_type[type[Object]], modifier[public], parameter[array, componentType, len]] begin[{]
if[binary_operation[member[.componentType], ==, ClassReference(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=Ba... | annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[readFPrimitiveArray] operator[SEP] identifier[Object] identifier[array] , identifier[Class] identifier[componentType] , Keyword[int] identifier[len] operator[SEP] {
Keyword[if] operator[SEP] identifier[componentType] operator[==] ... |
static long readTransactionIdFile(StorageDirectory sd) throws IOException {
File txidFile = getStorageFile(sd, NameNodeFile.SEEN_TXID);
long txid = 0L;
if (txidFile.exists() && txidFile.canRead()) {
BufferedReader br = new BufferedReader(new FileReader(txidFile));
try {
txid = Long.value... | class class_name[name] begin[{]
method[readTransactionIdFile, return_type[type[long]], modifier[static], parameter[sd]] begin[{]
local_variable[type[File], txidFile]
local_variable[type[long], txid]
if[binary_operation[call[txidFile.exists, parameter[]], &&, call[txidFile.canRea... | Keyword[static] Keyword[long] identifier[readTransactionIdFile] operator[SEP] identifier[StorageDirectory] identifier[sd] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[File] identifier[txidFile] operator[=] identifier[getStorageFile] operator[SEP] identifier[sd] , identifier[NameNodeFile] o... |
protected int checkWrite(int offset, int length) {
checkOffset(offset);
if (limit == -1) {
if (offset + length > capacity) {
if (capacity < maxCapacity) {
capacity(calculateCapacity(offset + length));
} else {
throw new BufferOverflowException();
}
}
}... | class class_name[name] begin[{]
method[checkWrite, return_type[type[int]], modifier[protected], parameter[offset, length]] begin[{]
call[.checkOffset, parameter[member[.offset]]]
if[binary_operation[member[.limit], ==, literal[1]]] begin[{]
if[binary_oper... | Keyword[protected] Keyword[int] identifier[checkWrite] operator[SEP] Keyword[int] identifier[offset] , Keyword[int] identifier[length] operator[SEP] {
identifier[checkOffset] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[limit] operator[==] operator[-] Other[1... |
static String sqlToRegexSimilar(
String sqlPattern,
CharSequence escapeStr) {
final char escapeChar;
if (escapeStr != null) {
if (escapeStr.length() != 1) {
throw invalidEscapeCharacter(escapeStr.toString());
}
escapeChar = escapeStr.charAt(0);
} else {
escapeChar = 0;
}
return sqlToRegexS... | class class_name[name] begin[{]
method[sqlToRegexSimilar, return_type[type[String]], modifier[static], parameter[sqlPattern, escapeStr]] begin[{]
local_variable[type[char], escapeChar]
if[binary_operation[member[.escapeStr], !=, literal[null]]] begin[{]
if[binary... | Keyword[static] identifier[String] identifier[sqlToRegexSimilar] operator[SEP] identifier[String] identifier[sqlPattern] , identifier[CharSequence] identifier[escapeStr] operator[SEP] {
Keyword[final] Keyword[char] identifier[escapeChar] operator[SEP] Keyword[if] operator[SEP] identifier[escapeStr] operator[!=]... |
public void setAutoDiscoveryDataCenter(String dataCenter) {
if (StringUtils.isNotBlank(dataCenter)) {
this.autoDiscoveryDataCenters = Arrays.asList(dataCenter);
}
} | class class_name[name] begin[{]
method[setAutoDiscoveryDataCenter, return_type[void], modifier[public], parameter[dataCenter]] begin[{]
if[call[StringUtils.isNotBlank, parameter[member[.dataCenter]]]] begin[{]
assign[THIS[member[None.autoDiscoveryDataCenters]], call[Arra... | Keyword[public] Keyword[void] identifier[setAutoDiscoveryDataCenter] operator[SEP] identifier[String] identifier[dataCenter] operator[SEP] {
Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isNotBlank] operator[SEP] identifier[dataCenter] operator[SEP] operator[SEP] {
Keyword... |
private CompletableFuture<Void> updateNode(Member member) {
long updateTime = System.currentTimeMillis();
long lastUpdateTime = updateTimes.getOrDefault(member.id(), 0L);
Collection<InternalSubscriptionInfo> subscriptions = topics.values()
.stream()
.flatMap(t -> t.remoteSubscriptions().str... | class class_name[name] begin[{]
method[updateNode, return_type[type[CompletableFuture]], modifier[private], parameter[member]] begin[{]
local_variable[type[long], updateTime]
local_variable[type[long], lastUpdateTime]
local_variable[type[Collection], subscriptions]
local_variabl... | Keyword[private] identifier[CompletableFuture] operator[<] identifier[Void] operator[>] identifier[updateNode] operator[SEP] identifier[Member] identifier[member] operator[SEP] {
Keyword[long] identifier[updateTime] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator... |
public boolean process( int sideLength,
double diag[] ,
double off[] ,
double eigenvalues[] ) {
if( diag != null )
helper.init(diag,off,sideLength);
if( Q == null )
Q = CommonOps_DDRM.identity(hel... | class class_name[name] begin[{]
method[process, return_type[type[boolean]], modifier[public], parameter[sideLength, diag, off, eigenvalues]] begin[{]
if[binary_operation[member[.diag], !=, literal[null]]] begin[{]
call[helper.init, parameter[member[.diag], member[.off], member[.side... | Keyword[public] Keyword[boolean] identifier[process] operator[SEP] Keyword[int] identifier[sideLength] , Keyword[double] identifier[diag] operator[SEP] operator[SEP] , Keyword[double] identifier[off] operator[SEP] operator[SEP] , Keyword[double] identifier[eigenvalues] operator[SEP] operator[SEP] operator[SEP] {
... |
private void markSubroutineWalkDFS(final BitSet sub, int index,
final BitSet anyvisited) {
while (true) {
AbstractInsnNode node = instructions.get(index);
// don't visit a node twice
if (sub.get(index)) {
return;
}
sub.set(... | class class_name[name] begin[{]
method[markSubroutineWalkDFS, return_type[void], modifier[private], parameter[sub, index, anyvisited]] begin[{]
while[literal[true]] begin[{]
local_variable[type[AbstractInsnNode], node]
if[call[sub.get, parameter[member[.index... | Keyword[private] Keyword[void] identifier[markSubroutineWalkDFS] operator[SEP] Keyword[final] identifier[BitSet] identifier[sub] , Keyword[int] identifier[index] , Keyword[final] identifier[BitSet] identifier[anyvisited] operator[SEP] {
Keyword[while] operator[SEP] literal[boolean] operator[SEP] {
i... |
public static String findCodeBaseInClassPath(Pattern codeBaseNamePattern, String classPath) {
if (classPath == null) {
return null;
}
StringTokenizer tok = new StringTokenizer(classPath, File.pathSeparator);
while (tok.hasMoreTokens()) {
String t = tok.nextToken(... | class class_name[name] begin[{]
method[findCodeBaseInClassPath, return_type[type[String]], modifier[public static], parameter[codeBaseNamePattern, classPath]] begin[{]
if[binary_operation[member[.classPath], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
No... | Keyword[public] Keyword[static] identifier[String] identifier[findCodeBaseInClassPath] operator[SEP] identifier[Pattern] identifier[codeBaseNamePattern] , identifier[String] identifier[classPath] operator[SEP] {
Keyword[if] operator[SEP] identifier[classPath] operator[==] Other[null] operator[SEP] {
... |
public static void collapseAll(JTree tree, boolean omitRoot)
{
int rows = tree.getRowCount();
int limit = (omitRoot ? 1 : 0);
for (int i = rows - 1; i >= limit; i--)
{
tree.collapseRow(i);
}
} | class class_name[name] begin[{]
method[collapseAll, return_type[void], modifier[public static], parameter[tree, omitRoot]] begin[{]
local_variable[type[int], rows]
local_variable[type[int], limit]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Me... | Keyword[public] Keyword[static] Keyword[void] identifier[collapseAll] operator[SEP] identifier[JTree] identifier[tree] , Keyword[boolean] identifier[omitRoot] operator[SEP] {
Keyword[int] identifier[rows] operator[=] identifier[tree] operator[SEP] identifier[getRowCount] operator[SEP] operator[SEP] operator[SEP... |
public static xen_panwvpx_image delete(nitro_service client, xen_panwvpx_image resource) throws Exception
{
resource.validate("delete");
return ((xen_panwvpx_image[]) resource.delete_resource(client))[0];
} | class class_name[name] begin[{]
method[delete, return_type[type[xen_panwvpx_image]], modifier[public static], parameter[client, resource]] begin[{]
call[resource.validate, parameter[literal["delete"]]]
return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=client, pos... | Keyword[public] Keyword[static] identifier[xen_panwvpx_image] identifier[delete] operator[SEP] identifier[nitro_service] identifier[client] , identifier[xen_panwvpx_image] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[resource] operator[SEP] identifier[validate] operator[... |
static String readFileFromJarfile(String fulljarpath) throws IOException {
assert (fulljarpath.contains(".jar!"));
String[] paths = fulljarpath.split("!");
if (paths[0].startsWith("file:"))
paths[0] = paths[0].substring("file:".length());
paths[1] = paths[1].substring(1);
... | class class_name[name] begin[{]
method[readFileFromJarfile, return_type[type[String]], modifier[static], parameter[fulljarpath]] begin[{]
AssertStatement(condition=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=".jar!")], member=contai... | Keyword[static] identifier[String] identifier[readFileFromJarfile] operator[SEP] identifier[String] identifier[fulljarpath] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[assert] operator[SEP] identifier[fulljarpath] operator[SEP] identifier[contains] operator[SEP] literal[String] operator[SEP] ... |
private static List<String> loadHttpResource(String resource, ResourceLoader resourceLoader) throws MalformedURLException, IOException {
List<String> result = new ArrayList<>();
try (BufferedReader reader = new BufferedReader(new InputStreamReader(new URL(resource).openConnection().getInputStream(), "ut... | class class_name[name] begin[{]
method[loadHttpResource, return_type[type[List]], modifier[private static], parameter[resource, resourceLoader]] begin[{]
local_variable[type[List], result]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[]... | Keyword[private] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[loadHttpResource] operator[SEP] identifier[String] identifier[resource] , identifier[ResourceLoader] identifier[resourceLoader] operator[SEP] Keyword[throws] identifier[MalformedURLException] , identifier[IOExcepti... |
public static authorizationaction get(nitro_service service, String name) throws Exception{
authorizationaction obj = new authorizationaction();
obj.set_name(name);
authorizationaction response = (authorizationaction) obj.get_resource(service);
return response;
} | class class_name[name] begin[{]
method[get, return_type[type[authorizationaction]], modifier[public static], parameter[service, name]] begin[{]
local_variable[type[authorizationaction], obj]
call[obj.set_name, parameter[member[.name]]]
local_variable[type[authorizationaction], r... | Keyword[public] Keyword[static] identifier[authorizationaction] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[authorizationaction] identifier[obj] operator[=] Keyword[new] identif... |
public static Criteria createCriteriaFromClass(String name, Class<?> cls, Operator operator, List<?> values) {
if (operator == Operator.AND) {
return new Group.And(cls, values);
} else if (operator == Operator.OR) {
return new Group.Or(cls, values);
} else {
... | class class_name[name] begin[{]
method[createCriteriaFromClass, return_type[type[Criteria]], modifier[public static], parameter[name, cls, operator, values]] begin[{]
if[binary_operation[member[.operator], ==, member[Operator.AND]]] begin[{]
return[ClassCreator(arguments=[MemberRefe... | Keyword[public] Keyword[static] identifier[Criteria] identifier[createCriteriaFromClass] operator[SEP] identifier[String] identifier[name] , identifier[Class] operator[<] operator[?] operator[>] identifier[cls] , identifier[Operator] identifier[operator] , identifier[List] operator[<] operator[?] operator[>] identif... |
public final void putShort(int index, short value) {
final long pos = address + index;
if (index >= 0 && pos <= addressLimit - 2) {
UNSAFE.putShort(heapMemory, pos, value);
}
else if (address > addressLimit) {
throw new IllegalStateException("segment has been freed");
}
else {
// index is in fact i... | class class_name[name] begin[{]
method[putShort, return_type[void], modifier[final public], parameter[index, value]] begin[{]
local_variable[type[long], pos]
if[binary_operation[binary_operation[member[.index], >=, literal[0]], &&, binary_operation[member[.pos], <=, binary_operation[mem... | Keyword[public] Keyword[final] Keyword[void] identifier[putShort] operator[SEP] Keyword[int] identifier[index] , Keyword[short] identifier[value] operator[SEP] {
Keyword[final] Keyword[long] identifier[pos] operator[=] identifier[address] operator[+] identifier[index] operator[SEP] Keyword[if] operator[SEP] ide... |
public void readFullyOrUntil(long softMaxLength)
throws IOException, RecorderLengthExceededException,
RecorderTimeoutException, InterruptedException {
// Check we're open before proceeding.
if (!isOpen()) {
// TODO: should this be a noisier exception-raising error?
... | class class_name[name] begin[{]
method[readFullyOrUntil, return_type[void], modifier[public], parameter[softMaxLength]] begin[{]
if[call[.isOpen, parameter[]]] begin[{]
return[None]
else begin[{]
None
end[}]
local_variable[type[long], totalBytes]
loca... | Keyword[public] Keyword[void] identifier[readFullyOrUntil] operator[SEP] Keyword[long] identifier[softMaxLength] operator[SEP] Keyword[throws] identifier[IOException] , identifier[RecorderLengthExceededException] , identifier[RecorderTimeoutException] , identifier[InterruptedException] {
Keyword[if] operator[... |
final Deferred<ArrayList<KeyValue>> get(final byte[] key) {
return client.get(new GetRequest(table, key, FAMILY));
} | class class_name[name] begin[{]
method[get, return_type[type[Deferred]], modifier[final], parameter[key]] begin[{]
return[call[client.get, parameter[ClassCreator(arguments=[MemberReference(member=table, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=key, po... | Keyword[final] identifier[Deferred] operator[<] identifier[ArrayList] operator[<] identifier[KeyValue] operator[>] operator[>] identifier[get] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[key] operator[SEP] {
Keyword[return] identifier[client] operator[SEP] identifier[get] op... |
private long getDuration(Set<ITestResult> results)
{
long duration = 0;
for (ITestResult result : results)
{
duration += (result.getEndMillis() - result.getStartMillis());
}
return duration;
} | class class_name[name] begin[{]
method[getDuration, return_type[type[long]], modifier[private], parameter[results]] begin[{]
local_variable[type[long], duration]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member... | Keyword[private] Keyword[long] identifier[getDuration] operator[SEP] identifier[Set] operator[<] identifier[ITestResult] operator[>] identifier[results] operator[SEP] {
Keyword[long] identifier[duration] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[ITestResult] identifier[result] oper... |
private CmsDynamicFunctionBean.Format getFunctionFormat() {
CmsDynamicFunctionBean functionBean = null;
try {
CmsXmlContent content = CmsXmlContentFactory.unmarshal(m_cms, m_cms.readFile(m_element.getResource()));
CmsDynamicFunctionParser parser = new CmsDynamicFunctionParser();... | class class_name[name] begin[{]
method[getFunctionFormat, return_type[type[CmsDynamicFunctionBean]], modifier[private], parameter[]] begin[{]
local_variable[type[CmsDynamicFunctionBean], functionBean]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(d... | Keyword[private] identifier[CmsDynamicFunctionBean] operator[SEP] identifier[Format] identifier[getFunctionFormat] operator[SEP] operator[SEP] {
identifier[CmsDynamicFunctionBean] identifier[functionBean] operator[=] Other[null] operator[SEP] Keyword[try] {
identifier[CmsXmlContent] identifier[content... |
@Nonnull
public static <T, R> LObjBiIntFunctionBuilder<T, R> objBiIntFunction(Consumer<LObjBiIntFunction<T, R>> consumer) {
return new LObjBiIntFunctionBuilder(consumer);
} | class class_name[name] begin[{]
method[objBiIntFunction, return_type[type[LObjBiIntFunctionBuilder]], modifier[public static], parameter[consumer]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=consumer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, ... | annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[R] operator[>] identifier[LObjBiIntFunctionBuilder] operator[<] identifier[T] , identifier[R] operator[>] identifier[objBiIntFunction] operator[SEP] identifier[Consumer] operator[<] identifier[LObjBiIntFunction] o... |
public void serviceName_topic_topicId_DELETE(String serviceName, String topicId) throws IOException {
String qPath = "/dbaas/queue/{serviceName}/topic/{topicId}";
StringBuilder sb = path(qPath, serviceName, topicId);
exec(qPath, "DELETE", sb.toString(), null);
} | class class_name[name] begin[{]
method[serviceName_topic_topicId_DELETE, return_type[void], modifier[public], parameter[serviceName, topicId]] begin[{]
local_variable[type[String], qPath]
local_variable[type[StringBuilder], sb]
call[.exec, parameter[member[.qPath], literal["DELE... | Keyword[public] Keyword[void] identifier[serviceName_topic_topicId_DELETE] operator[SEP] identifier[String] identifier[serviceName] , identifier[String] identifier[topicId] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] identifier[qPath] operator[=] literal[String] operator[SEP] iden... |
@Override
public T visitBinaryExpression(BinaryExpression elm, C context) {
if (elm instanceof CalculateAgeAt) return visitCalculateAgeAt((CalculateAgeAt)elm, context);
else return super.visitBinaryExpression(elm, context);
} | class class_name[name] begin[{]
method[visitBinaryExpression, return_type[type[T]], modifier[public], parameter[elm, context]] begin[{]
if[binary_operation[member[.elm], instanceof, type[CalculateAgeAt]]] begin[{]
return[call[.visitCalculateAgeAt, parameter[Cast(expression=MemberReference(membe... | annotation[@] identifier[Override] Keyword[public] identifier[T] identifier[visitBinaryExpression] operator[SEP] identifier[BinaryExpression] identifier[elm] , identifier[C] identifier[context] operator[SEP] {
Keyword[if] operator[SEP] identifier[elm] Keyword[instanceof] identifier[CalculateAgeAt] operator[SEP]... |
private String getDataType(final Value value) {
if (value instanceof BigDecimalValue) {
return DataType.TYPE_NUMERIC_BIGDECIMAL;
} else if (value instanceof BigIntegerValue) {
return DataType.TYPE_NUMERIC_BIGINTEGER;
} else if (value instanceof BooleanValue) {
... | class class_name[name] begin[{]
method[getDataType, return_type[type[String]], modifier[private], parameter[value]] begin[{]
if[binary_operation[member[.value], instanceof, type[BigDecimalValue]]] begin[{]
return[member[DataType.TYPE_NUMERIC_BIGDECIMAL]]
else begin[{]
... | Keyword[private] identifier[String] identifier[getDataType] operator[SEP] Keyword[final] identifier[Value] identifier[value] operator[SEP] {
Keyword[if] operator[SEP] identifier[value] Keyword[instanceof] identifier[BigDecimalValue] operator[SEP] {
Keyword[return] identifier[DataType] operator[SEP] id... |
public Source getAssociatedStylesheet(
Source source, String media, String title, String charset)
throws TransformerConfigurationException
{
String baseID;
InputSource isource = null;
Node node = null;
XMLReader reader = null;
if (source instanceof DOMSource)
{
DO... | class class_name[name] begin[{]
method[getAssociatedStylesheet, return_type[type[Source]], modifier[public], parameter[source, media, title, charset]] begin[{]
local_variable[type[String], baseID]
local_variable[type[InputSource], isource]
local_variable[type[Node], node]
local_... | Keyword[public] identifier[Source] identifier[getAssociatedStylesheet] operator[SEP] identifier[Source] identifier[source] , identifier[String] identifier[media] , identifier[String] identifier[title] , identifier[String] identifier[charset] operator[SEP] Keyword[throws] identifier[TransformerConfigurationException]... |
public static List<ServiceRequester> deserialize(String encodedString) throws IOException {
String base64Str = URLDecoder.decode(encodedString, "UTF-8");
byte[] decodedBytes = Base64.getDecoder().decode(base64Str);
String jsonList = new String(decodedBytes, "UTF-8");
TypeReference<List<ServiceRequester>... | class class_name[name] begin[{]
method[deserialize, return_type[type[List]], modifier[public static], parameter[encodedString]] begin[{]
local_variable[type[String], base64Str]
local_variable[type[byte], decodedBytes]
local_variable[type[String], jsonList]
local_variable[type[Ty... | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[ServiceRequester] operator[>] identifier[deserialize] operator[SEP] identifier[String] identifier[encodedString] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] identifier[base64Str] operator[=] identifier[URLDecod... |
public static <R> Res<R> res(CloseFunction<R> closeFunction, R resource) {
return new Res<>(closeFunction, resource);
} | class class_name[name] begin[{]
method[res, return_type[type[Res]], modifier[public static], parameter[closeFunction, resource]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=closeFunction, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=res... | Keyword[public] Keyword[static] operator[<] identifier[R] operator[>] identifier[Res] operator[<] identifier[R] operator[>] identifier[res] operator[SEP] identifier[CloseFunction] operator[<] identifier[R] operator[>] identifier[closeFunction] , identifier[R] identifier[resource] operator[SEP] {
Keyword[return]... |
protected void processPOTopicInjections(final POBuildData buildData, final SpecTopic specTopic,
final Map<String, TranslationDetails> translations) {
// Prerequisites
addStringsFromTopicRelationships(buildData, specTopic.getPrerequisiteRelationships(),
DocBookXMLPreProcessor.... | class class_name[name] begin[{]
method[processPOTopicInjections, return_type[void], modifier[protected], parameter[buildData, specTopic, translations]] begin[{]
call[.addStringsFromTopicRelationships, parameter[member[.buildData], call[specTopic.getPrerequisiteRelationships, parameter[]], membe... | Keyword[protected] Keyword[void] identifier[processPOTopicInjections] operator[SEP] Keyword[final] identifier[POBuildData] identifier[buildData] , Keyword[final] identifier[SpecTopic] identifier[specTopic] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[TranslationDetails] operator[>] id... |
public static DCache getConfiguredCache(String cacheName) {
final String methodName = "getConfiguredCache()";
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
Tr.entry(tc, methodName + " input cacheName=" + cacheName);
}
DCache cacheOut = null;
if (c... | class class_name[name] begin[{]
method[getConfiguredCache, return_type[type[DCache]], modifier[public static], parameter[cacheName]] begin[{]
local_variable[type[String], methodName]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, p... | Keyword[public] Keyword[static] identifier[DCache] identifier[getConfiguredCache] operator[SEP] identifier[String] identifier[cacheName] operator[SEP] {
Keyword[final] identifier[String] identifier[methodName] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[TraceComponent] operator... |
public static Timestamp forMinute(int year, int month, int day,
int hour, int minute,
Integer offset)
{
return new Timestamp(year, month, day, hour, minute, offset);
} | class class_name[name] begin[{]
method[forMinute, return_type[type[Timestamp]], modifier[public static], parameter[year, month, day, hour, minute, offset]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=year, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberRe... | Keyword[public] Keyword[static] identifier[Timestamp] identifier[forMinute] operator[SEP] Keyword[int] identifier[year] , Keyword[int] identifier[month] , Keyword[int] identifier[day] , Keyword[int] identifier[hour] , Keyword[int] identifier[minute] , identifier[Integer] identifier[offset] operator[SEP] {
K... |
public static int getNumberOfMatches(String regex, TextView view, Set<TextView> uniqueTextViews){
if(view == null) {
return uniqueTextViews.size();
}
Pattern pattern = null;
try{
pattern = Pattern.compile(regex);
}catch(PatternSyntaxException e){
pattern = Pattern.compile(regex, Pattern.LITERAL);
... | class class_name[name] begin[{]
method[getNumberOfMatches, return_type[type[int]], modifier[public static], parameter[regex, view, uniqueTextViews]] begin[{]
if[binary_operation[member[.view], ==, literal[null]]] begin[{]
return[call[uniqueTextViews.size, parameter[]]]
else ... | Keyword[public] Keyword[static] Keyword[int] identifier[getNumberOfMatches] operator[SEP] identifier[String] identifier[regex] , identifier[TextView] identifier[view] , identifier[Set] operator[<] identifier[TextView] operator[>] identifier[uniqueTextViews] operator[SEP] {
Keyword[if] operator[SEP] identifier[... |
void setUpIndexesAndTypes() {
vectorIndex = 0;
if (eventTimingString.equals(Tokens.T_INSERT)) {
vectorIndex = Trigger.INSERT_AFTER;
operationPrivilegeType = GrantConstants.INSERT;
} else if (eventTimingString.equals(Tokens.T_DELETE)) {
operationPr... | class class_name[name] begin[{]
method[setUpIndexesAndTypes, return_type[void], modifier[default], parameter[]] begin[{]
assign[member[.vectorIndex], literal[0]]
if[call[eventTimingString.equals, parameter[member[Tokens.T_INSERT]]]] begin[{]
assign[member... | Keyword[void] identifier[setUpIndexesAndTypes] operator[SEP] operator[SEP] {
identifier[vectorIndex] operator[=] Other[0] operator[SEP] Keyword[if] operator[SEP] identifier[eventTimingString] operator[SEP] identifier[equals] operator[SEP] identifier[Tokens] operator[SEP] identifier[T_INSERT] operator[SEP] operat... |
public static <T> Flux<T> fromStream(Supplier<Stream<? extends T>> streamSupplier) {
return onAssembly(new FluxStream<>(streamSupplier));
} | class class_name[name] begin[{]
method[fromStream, return_type[type[Flux]], modifier[public static], parameter[streamSupplier]] begin[{]
return[call[.onAssembly, parameter[ClassCreator(arguments=[MemberReference(member=streamSupplier, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Flux] operator[<] identifier[T] operator[>] identifier[fromStream] operator[SEP] identifier[Supplier] operator[<] identifier[Stream] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] operator[>] identifier[streamSupplier] ... |
public String getAttribute(String name, String defaultValue)
{
Params.notNullOrEmpty(name, "Attribute name");
return getAttribute(name, String.class, defaultValue);
} | class class_name[name] begin[{]
method[getAttribute, return_type[type[String]], modifier[public], parameter[name, defaultValue]] begin[{]
call[Params.notNullOrEmpty, parameter[member[.name], literal["Attribute name"]]]
return[call[.getAttribute, parameter[member[.name], ClassReference(p... | Keyword[public] identifier[String] identifier[getAttribute] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[defaultValue] operator[SEP] {
identifier[Params] operator[SEP] identifier[notNullOrEmpty] operator[SEP] identifier[name] , literal[String] operator[SEP] operator[SEP] Ke... |
private Publisher<GetParametersResult> getParameters(String path) {
GetParametersRequest getRequest = new GetParametersRequest().withWithDecryption(awsParameterStoreConfiguration.getUseSecureParameters()).withNames(path);
Future<GetParametersResult> future = client.getParametersAsync(getRequest);
... | class class_name[name] begin[{]
method[getParameters, return_type[type[Publisher]], modifier[private], parameter[path]] begin[{]
local_variable[type[GetParametersRequest], getRequest]
local_variable[type[Future], future]
local_variable[type[Flowable], invokeFlowable]
ass... | Keyword[private] identifier[Publisher] operator[<] identifier[GetParametersResult] operator[>] identifier[getParameters] operator[SEP] identifier[String] identifier[path] operator[SEP] {
identifier[GetParametersRequest] identifier[getRequest] operator[=] Keyword[new] identifier[GetParametersRequest] operator[SEP... |
static String getClassName(ClassSymbol c, boolean full) {
if (full) {
return c.getQualifiedName().toString();
} else {
String n = "";
for ( ; c != null; c = c.owner.enclClass()) {
n = c.name + (n.equals("") ? "" : ".") + n;
}
re... | class class_name[name] begin[{]
method[getClassName, return_type[type[String]], modifier[static], parameter[c, full]] begin[{]
if[member[.full]] begin[{]
return[call[c.getQualifiedName, parameter[]]]
else begin[{]
local_variable[type[String], n]
ForSt... | Keyword[static] identifier[String] identifier[getClassName] operator[SEP] identifier[ClassSymbol] identifier[c] , Keyword[boolean] identifier[full] operator[SEP] {
Keyword[if] operator[SEP] identifier[full] operator[SEP] {
Keyword[return] identifier[c] operator[SEP] identifier[getQualifiedName] opera... |
Symbol resolveIdent(DiagnosticPosition pos, Env<AttrContext> env,
Name name, KindSelector kind) {
return accessBase(
findIdent(env, name, kind),
pos, env.enclClass.sym.type, name, false);
} | class class_name[name] begin[{]
method[resolveIdent, return_type[type[Symbol]], modifier[default], parameter[pos, env, name, kind]] begin[{]
return[call[.accessBase, parameter[call[.findIdent, parameter[member[.env], member[.name], member[.kind]]], member[.pos], member[env.enclClass.sym.type], member[.... | identifier[Symbol] identifier[resolveIdent] operator[SEP] identifier[DiagnosticPosition] identifier[pos] , identifier[Env] operator[<] identifier[AttrContext] operator[>] identifier[env] , identifier[Name] identifier[name] , identifier[KindSelector] identifier[kind] operator[SEP] {
Keyword[return] identifier[... |
public SSLEngine newEngine() {
if (nextProtocols.isEmpty()) {
return new OpenSslEngine(ctx, bufferPool, null);
} else {
return new OpenSslEngine(
ctx, bufferPool, nextProtocols.get(nextProtocols.size() - 1));
}
} | class class_name[name] begin[{]
method[newEngine, return_type[type[SSLEngine]], modifier[public], parameter[]] begin[{]
if[call[nextProtocols.isEmpty, parameter[]]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=ctx, postfix_operators=[], prefix_operators=[], qualifi... | Keyword[public] identifier[SSLEngine] identifier[newEngine] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[nextProtocols] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] {
Keyword[return] Keyword[new] identifier[OpenSslEngine] operator[SEP] identifier[ct... |
public CmsLink getLink(CmsObject cms) {
if (m_linkValue == null) {
// need to to calculate link value twice
Element linkElement = m_element.element(CmsXmlPage.NODE_LINK);
if (linkElement == null) {
setStringValue(cms, m_element.getText());
} else ... | class class_name[name] begin[{]
method[getLink, return_type[type[CmsLink]], modifier[public], parameter[cms]] begin[{]
if[binary_operation[member[.m_linkValue], ==, literal[null]]] begin[{]
local_variable[type[Element], linkElement]
if[binary_operation[member... | Keyword[public] identifier[CmsLink] identifier[getLink] operator[SEP] identifier[CmsObject] identifier[cms] operator[SEP] {
Keyword[if] operator[SEP] identifier[m_linkValue] operator[==] Other[null] operator[SEP] {
identifier[Element] identifier[linkElement] operator[=] identifier[m_element] operator[... |
public List<T> getNextItems(Construction construction) {
List<T> items = new ArrayList<T>();
for (T item : allItems) {
if (construction.equals(item.getNext())) {
items.add(item);
}
}
return items;
} | class class_name[name] begin[{]
method[getNextItems, return_type[type[List]], modifier[public], parameter[construction]] begin[{]
local_variable[type[List], items]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(argumen... | Keyword[public] identifier[List] operator[<] identifier[T] operator[>] identifier[getNextItems] operator[SEP] identifier[Construction] identifier[construction] operator[SEP] {
identifier[List] operator[<] identifier[T] operator[>] identifier[items] operator[=] Keyword[new] identifier[ArrayList] operator[<] ident... |
public void marshall(BackupSummary backupSummary, ProtocolMarshaller protocolMarshaller) {
if (backupSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(backupSummary.getTableName(), TABLENAME_... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[backupSummary, protocolMarshaller]] begin[{]
if[binary_operation[member[.backupSummary], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_ope... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[BackupSummary] identifier[backupSummary] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[backupSummary] operator[==] Other[null] operator[SEP] {
Keyword[thr... |
public String convertIfcFilterTypeEnumToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
} | class class_name[name] begin[{]
method[convertIfcFilterTypeEnumToString, return_type[type[String]], modifier[public], parameter[eDataType, instanceValue]] begin[{]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=instanceValue, postfix_operators=[], prefix_operators=[]... | Keyword[public] identifier[String] identifier[convertIfcFilterTypeEnumToString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[Object] identifier[instanceValue] operator[SEP] {
Keyword[return] identifier[instanceValue] operator[==] Other[null] operator[?] Other[null] operator[:] identif... |
public static Builder builder() {
return new AutoValue_HealthDto.Builder()
.setDependencies(Optional.empty())
.setMessage(Optional.empty())
.setbuild(Optional.empty())
.setServer(Optional.empty());
} | class class_name[name] begin[{]
method[builder, return_type[type[Builder]], modifier[public static], parameter[]] begin[{]
return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[Meth... | Keyword[public] Keyword[static] identifier[Builder] identifier[builder] operator[SEP] operator[SEP] {
Keyword[return] Keyword[new] identifier[AutoValue_HealthDto] operator[SEP] identifier[Builder] operator[SEP] operator[SEP] operator[SEP] identifier[setDependencies] operator[SEP] identifier[Optional] operator[SE... |
public static SendableTextMessageBuilder plain(String text) {
return builder().message(text).parseMode(ParseMode.NONE);
} | class class_name[name] begin[{]
method[plain, return_type[type[SendableTextMessageBuilder]], modifier[public static], parameter[text]] begin[{]
return[call[.builder, parameter[]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[SendableTextMessageBuilder] identifier[plain] operator[SEP] identifier[String] identifier[text] operator[SEP] {
Keyword[return] identifier[builder] operator[SEP] operator[SEP] operator[SEP] identifier[message] operator[SEP] identifier[text] operator[SEP] operator[SEP] i... |
public int getUntaggedImageCount(UUID projectId, GetUntaggedImageCountOptionalParameter getUntaggedImageCountOptionalParameter) {
return getUntaggedImageCountWithServiceResponseAsync(projectId, getUntaggedImageCountOptionalParameter).toBlocking().single().body();
} | class class_name[name] begin[{]
method[getUntaggedImageCount, return_type[type[int]], modifier[public], parameter[projectId, getUntaggedImageCountOptionalParameter]] begin[{]
return[call[.getUntaggedImageCountWithServiceResponseAsync, parameter[member[.projectId], member[.getUntaggedImageCountOptionalP... | Keyword[public] Keyword[int] identifier[getUntaggedImageCount] operator[SEP] identifier[UUID] identifier[projectId] , identifier[GetUntaggedImageCountOptionalParameter] identifier[getUntaggedImageCountOptionalParameter] operator[SEP] {
Keyword[return] identifier[getUntaggedImageCountWithServiceResponseAsync] op... |
static void add(int status, String page) {
CustomErrorPages.getInstance().customPages.put(status, page);
} | class class_name[name] begin[{]
method[add, return_type[void], modifier[static], parameter[status, page]] begin[{]
call[CustomErrorPages.getInstance, parameter[]]
end[}]
END[}] | Keyword[static] Keyword[void] identifier[add] operator[SEP] Keyword[int] identifier[status] , identifier[String] identifier[page] operator[SEP] {
identifier[CustomErrorPages] operator[SEP] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[customPages] operator[SEP] identifier[put] ope... |
public static <T> Maybe<T> fromIterable(Iterable<T> t) {
return narrow(Single.fromPublisher(Future.fromIterable(t)).toMaybe());
} | class class_name[name] begin[{]
method[fromIterable, return_type[type[Maybe]], modifier[public static], parameter[t]] begin[{]
return[call[.narrow, parameter[call[Single.fromPublisher, parameter[call[Future.fromIterable, parameter[member[.t]]]]]]]]
end[}]
END[}] | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Maybe] operator[<] identifier[T] operator[>] identifier[fromIterable] operator[SEP] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[t] operator[SEP] {
Keyword[return] identifier[narrow] operator[SEP] identifier... |
public org.tensorflow.framework.TensorSliceProto.Extent getExtent(int index) {
return extent_.get(index);
} | class class_name[name] begin[{]
method[getExtent, return_type[type[org]], modifier[public], parameter[index]] begin[{]
return[call[extent_.get, parameter[member[.index]]]]
end[}]
END[}] | Keyword[public] identifier[org] operator[SEP] identifier[tensorflow] operator[SEP] identifier[framework] operator[SEP] identifier[TensorSliceProto] operator[SEP] identifier[Extent] identifier[getExtent] operator[SEP] Keyword[int] identifier[index] operator[SEP] {
Keyword[return] identifier[extent_] operator[SEP]... |
@Nullable
public static List<LbConfig> getFallbackPolicyFromXdsConfig(LbConfig xdsConfig) {
Map<String, ?> map = xdsConfig.getRawConfigValue();
List<?> rawFallbackPolicies = getList(map, XDS_CONFIG_FALLBACK_POLICY_KEY);
if (rawFallbackPolicies != null) {
return unwrapLoadBalancingConfigList(checkObj... | class class_name[name] begin[{]
method[getFallbackPolicyFromXdsConfig, return_type[type[List]], modifier[public static], parameter[xdsConfig]] begin[{]
local_variable[type[Map], map]
local_variable[type[List], rawFallbackPolicies]
if[binary_operation[member[.rawFallbackPolicies]... | annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[List] operator[<] identifier[LbConfig] operator[>] identifier[getFallbackPolicyFromXdsConfig] operator[SEP] identifier[LbConfig] identifier[xdsConfig] operator[SEP] {
identifier[Map] operator[<] identifier[String] , operator[?] operat... |
public void dispose() {
if (executionPlan != null) {
executionPlan.dispose();
}
if (appClassList != null) {
appClassList.clear();
}
if (classObserverList != null) {
classObserverList.clear();
}
if (referencedClassSet != null) {
... | class class_name[name] begin[{]
method[dispose, return_type[void], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.executionPlan], !=, literal[null]]] begin[{]
call[executionPlan.dispose, parameter[]]
else begin[{]
None
end[}]
... | Keyword[public] Keyword[void] identifier[dispose] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[executionPlan] operator[!=] Other[null] operator[SEP] {
identifier[executionPlan] operator[SEP] identifier[dispose] operator[SEP] operator[SEP] operator[SEP]
}
Keyword[if]... |
public void marshall(DeviceConfigurationType deviceConfigurationType, ProtocolMarshaller protocolMarshaller) {
if (deviceConfigurationType == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(deviceConf... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[deviceConfigurationType, protocolMarshaller]] begin[{]
if[binary_operation[member[.deviceConfigurationType], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeviceConfigurationType] identifier[deviceConfigurationType] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[deviceConfigurationType] operator[==] Other[null] operator... |
public void error(final Object msg, final Throwable t) {
log(ERROR_STR, msg.toString(), t);
} | class class_name[name] begin[{]
method[error, return_type[void], modifier[public], parameter[msg, t]] begin[{]
call[.log, parameter[member[.ERROR_STR], call[msg.toString, parameter[]], member[.t]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[error] operator[SEP] Keyword[final] identifier[Object] identifier[msg] , Keyword[final] identifier[Throwable] identifier[t] operator[SEP] {
identifier[log] operator[SEP] identifier[ERROR_STR] , identifier[msg] operator[SEP] identifier[toString] operator[SEP] operator[SE... |
@PUT
@Produces({ MediaType.TEXT_PLAIN })
public Response reportStartup(@QueryParam("bpid") String bpId,
@QueryParam("url4cc") String urlForCc,
@QueryParam("url4bpc") String urlForBpc) {
if (!monitoringService.isRegistered(bpId)) {
... | class class_name[name] begin[{]
method[reportStartup, return_type[type[Response]], modifier[public], parameter[bpId, urlForCc, urlForBpc]] begin[{]
if[call[monitoringService.isRegistered, parameter[member[.bpId]]]] begin[{]
call[monitoringService.register, parameter[memb... | annotation[@] identifier[PUT] annotation[@] identifier[Produces] operator[SEP] {
identifier[MediaType] operator[SEP] identifier[TEXT_PLAIN]
} operator[SEP] Keyword[public] identifier[Response] identifier[reportStartup] operator[SEP] annotation[@] identifier[QueryParam] operator[SEP] literal[String] operator[S... |
@Override
public Request<CreateInternetGatewayRequest> getDryRunRequest() {
Request<CreateInternetGatewayRequest> request = new CreateInternetGatewayRequestMarshaller().marshall(this);
request.addParameter("DryRun", Boolean.toString(true));
return request;
} | class class_name[name] begin[{]
method[getDryRunRequest, return_type[type[Request]], modifier[public], parameter[]] begin[{]
local_variable[type[Request], request]
call[request.addParameter, parameter[literal["DryRun"], call[Boolean.toString, parameter[literal[true]]]]]
return[m... | annotation[@] identifier[Override] Keyword[public] identifier[Request] operator[<] identifier[CreateInternetGatewayRequest] operator[>] identifier[getDryRunRequest] operator[SEP] operator[SEP] {
identifier[Request] operator[<] identifier[CreateInternetGatewayRequest] operator[>] identifier[request] operator[=] K... |
public void bind(Name name, Object object) throws NamingException {
bind(name, object, object.getClass());
} | class class_name[name] begin[{]
method[bind, return_type[void], modifier[public], parameter[name, object]] begin[{]
call[.bind, parameter[member[.name], member[.object], call[object.getClass, parameter[]]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[bind] operator[SEP] identifier[Name] identifier[name] , identifier[Object] identifier[object] operator[SEP] Keyword[throws] identifier[NamingException] {
identifier[bind] operator[SEP] identifier[name] , identifier[object] , identifier[object] operator[SEP] identifier[... |
private Map<String, Object> sendRequest(final URL url,
final String method,
final String authKey,
final Map<String, ?> requestData)
throws IOException {
boolean useOutp... | class class_name[name] begin[{]
method[sendRequest, return_type[type[Map]], modifier[private], parameter[url, method, authKey, requestData]] begin[{]
local_variable[type[boolean], useOutputSource]
if[binary_operation[call[HttpMethods.GET.equals, parameter[member[.method]]], ||, call[Htt... | Keyword[private] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[sendRequest] operator[SEP] Keyword[final] identifier[URL] identifier[url] , Keyword[final] identifier[String] identifier[method] , Keyword[final] identifier[String] identifier[authKey] , Keyword[final] identi... |
public Filters withKeyUsage(KeyUsageName... keyUsage) {
java.util.ArrayList<String> keyUsageCopy = new java.util.ArrayList<String>(keyUsage.length);
for (KeyUsageName value : keyUsage) {
keyUsageCopy.add(value.toString());
}
if (getKeyUsage() == null) {
setKeyUsag... | class class_name[name] begin[{]
method[withKeyUsage, return_type[type[Filters]], modifier[public], parameter[keyUsage]] begin[{]
local_variable[type[java], keyUsageCopy]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInv... | Keyword[public] identifier[Filters] identifier[withKeyUsage] operator[SEP] identifier[KeyUsageName] operator[...] identifier[keyUsage] operator[SEP] {
identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[keyUsageCopy] operator[=... |
public boolean isInlineEditable(CmsContainerPageElementPanel element, I_CmsDropContainer dragParent) {
CmsUUID elemView = element.getElementView();
return !getData().isUseClassicEditor()
&& CmsStringUtil.isEmptyOrWhitespaceOnly(element.getNoEditReason())
&& hasActiveSelection()
... | class class_name[name] begin[{]
method[isInlineEditable, return_type[type[boolean]], modifier[public], parameter[element, dragParent]] begin[{]
local_variable[type[CmsUUID], elemView]
return[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[bi... | Keyword[public] Keyword[boolean] identifier[isInlineEditable] operator[SEP] identifier[CmsContainerPageElementPanel] identifier[element] , identifier[I_CmsDropContainer] identifier[dragParent] operator[SEP] {
identifier[CmsUUID] identifier[elemView] operator[=] identifier[element] operator[SEP] identifier[getEl... |
public VirtualNetworkInner beginCreateOrUpdate(String resourceGroupName, String virtualNetworkName, VirtualNetworkInner parameters) {
return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, virtualNetworkName, parameters).toBlocking().single().body();
} | class class_name[name] begin[{]
method[beginCreateOrUpdate, return_type[type[VirtualNetworkInner]], modifier[public], parameter[resourceGroupName, virtualNetworkName, parameters]] begin[{]
return[call[.beginCreateOrUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.virtualNet... | Keyword[public] identifier[VirtualNetworkInner] identifier[beginCreateOrUpdate] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[virtualNetworkName] , identifier[VirtualNetworkInner] identifier[parameters] operator[SEP] {
Keyword[return] identifier[beginCreateOrUpd... |
public Object execute(final Object value, final CsvContext context) {
validateInputNotNull(value, context);
if( !(value instanceof ZoneId) ) {
throw new SuperCsvCellProcessorException(ZoneId.class, value, context, this);
}
final ZoneId zoneId = (ZoneId) value;
final String result;
if (textStyle != null &... | class class_name[name] begin[{]
method[execute, return_type[type[Object]], modifier[public], parameter[value, context]] begin[{]
call[.validateInputNotNull, parameter[member[.value], member[.context]]]
if[binary_operation[member[.value], instanceof, type[ZoneId]]] begin[{]
... | Keyword[public] identifier[Object] identifier[execute] operator[SEP] Keyword[final] identifier[Object] identifier[value] , Keyword[final] identifier[CsvContext] identifier[context] operator[SEP] {
identifier[validateInputNotNull] operator[SEP] identifier[value] , identifier[context] operator[SEP] operator[SEP]... |
@Override
public void close() {
if (!this.closed.getAndSet(true)) {
// Close all containers that are still open.
ArrayList<CompletableFuture<Void>> results = new ArrayList<>();
synchronized (this.handles) {
ArrayList<ContainerHandle> toClose = new ArrayLis... | class class_name[name] begin[{]
method[close, return_type[void], modifier[public], parameter[]] begin[{]
if[THIS[member[None.closed]call[None.getAndSet, parameter[literal[true]]]]] begin[{]
local_variable[type[ArrayList], results]
SYNCHRONIZED[THIS[member[Non... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] operator[!] Keyword[this] operator[SEP] identifier[closed] operator[SEP] identifier[getAndSet] operator[SEP] literal[boolean] operator[SEP] operator[SEP] {
identif... |
@Override
ConfigReference relativized(Path prefix) {
SubstitutionExpression newExpr = expr.changePath(expr.path().prepend(prefix));
return new ConfigReference(origin(), newExpr, prefixLength + prefix.length());
} | class class_name[name] begin[{]
method[relativized, return_type[type[ConfigReference]], modifier[default], parameter[prefix]] begin[{]
local_variable[type[SubstitutionExpression], newExpr]
return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=origin, postfix_operators=[], prefix_... | annotation[@] identifier[Override] identifier[ConfigReference] identifier[relativized] operator[SEP] identifier[Path] identifier[prefix] operator[SEP] {
identifier[SubstitutionExpression] identifier[newExpr] operator[=] identifier[expr] operator[SEP] identifier[changePath] operator[SEP] identifier[expr] operator... |
private static int indexOf(final String s, final char searchChar, final int beginIndex, final int endIndex) {
for (int i = beginIndex; i < endIndex; i++) {
if (s.charAt(i) == searchChar) {
return i;
}
}
return -1;
} | class class_name[name] begin[{]
method[indexOf, return_type[type[int]], modifier[private static], parameter[s, searchChar, beginIndex, endIndex]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(... | Keyword[private] Keyword[static] Keyword[int] identifier[indexOf] operator[SEP] Keyword[final] identifier[String] identifier[s] , Keyword[final] Keyword[char] identifier[searchChar] , Keyword[final] Keyword[int] identifier[beginIndex] , Keyword[final] Keyword[int] identifier[endIndex] operator[SEP] {
Keyword[... |
private void jButtonSaveConfigActionPerformed(java.awt.event.ActionEvent evt) {
String path = "";
BaseFileChooser propDir = new BaseFileChooser();
int selection = propDir.showSaveDialog(this);
if (selection == JFileChooser.APPROVE_OPTION) {
path = propDir.getSelectedFile().ge... | class class_name[name] begin[{]
method[jButtonSaveConfigActionPerformed, return_type[void], modifier[private], parameter[evt]] begin[{]
local_variable[type[String], path]
local_variable[type[BaseFileChooser], propDir]
local_variable[type[int], selection]
if[binary_operat... | Keyword[private] Keyword[void] identifier[jButtonSaveConfigActionPerformed] operator[SEP] identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[event] operator[SEP] identifier[ActionEvent] identifier[evt] operator[SEP] {
identifier[String] identifier[path] operator[=] literal[String] operator[S... |
public void initScheme() {
// set the scheme based on whether the socket is secure or not
if (null == getServiceContext() || null == getServiceContext().getTSC()) {
// discrimination path, not ready for this yet
return;
}
if (getServiceContext().isSecure()) {
... | class class_name[name] begin[{]
method[initScheme, return_type[void], modifier[public], parameter[]] begin[{]
if[binary_operation[binary_operation[literal[null], ==, call[.getServiceContext, parameter[]]], ||, binary_operation[literal[null], ==, call[.getServiceContext, parameter[]]]]] begin[{]... | Keyword[public] Keyword[void] identifier[initScheme] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] Other[null] operator[==] identifier[getServiceContext] operator[SEP] operator[SEP] operator[||] Other[null] operator[==] identifier[getServiceContext] operator[SEP] operator[SEP] operator[SEP] identifier[... |
public EvalPayload eval(String group, long timestamp, List<TagsValuePair> vs) {
List<Subscription> subs = subscriptions.getOrDefault(group, Collections.emptyList());
List<EvalPayload.Metric> metrics = new ArrayList<>();
for (Subscription s : subs) {
DataExpr expr = s.dataExpr();
for (TagsValuePa... | class class_name[name] begin[{]
method[eval, return_type[type[EvalPayload]], modifier[public], parameter[group, timestamp, vs]] begin[{]
local_variable[type[List], subs]
local_variable[type[List], metrics]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration... | Keyword[public] identifier[EvalPayload] identifier[eval] operator[SEP] identifier[String] identifier[group] , Keyword[long] identifier[timestamp] , identifier[List] operator[<] identifier[TagsValuePair] operator[>] identifier[vs] operator[SEP] {
identifier[List] operator[<] identifier[Subscription] operator[>]... |
@Override
public CommercePriceEntry getCommercePriceEntryByUuidAndGroupId(
String uuid, long groupId) throws PortalException {
return commercePriceEntryPersistence.findByUUID_G(uuid, groupId);
} | class class_name[name] begin[{]
method[getCommercePriceEntryByUuidAndGroupId, return_type[type[CommercePriceEntry]], modifier[public], parameter[uuid, groupId]] begin[{]
return[call[commercePriceEntryPersistence.findByUUID_G, parameter[member[.uuid], member[.groupId]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[CommercePriceEntry] identifier[getCommercePriceEntryByUuidAndGroupId] operator[SEP] identifier[String] identifier[uuid] , Keyword[long] identifier[groupId] operator[SEP] Keyword[throws] identifier[PortalException] {
Keyword[return] identifier[commerc... |
protected void initExportObject() {
try {
if (CmsStringUtil.isEmpty(getParamAction()) || CmsDialog.DIALOG_INITIAL.equals(getParamAction())) {
// create a new list
m_reasons = new HashMap();
} else {
Map objects = (Map)getSettings().getDial... | class class_name[name] begin[{]
method[initExportObject, return_type[void], modifier[protected], parameter[]] begin[{]
TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getParamAction, postfix_operators=[], prefix_operat... | Keyword[protected] Keyword[void] identifier[initExportObject] operator[SEP] operator[SEP] {
Keyword[try] {
Keyword[if] operator[SEP] identifier[CmsStringUtil] operator[SEP] identifier[isEmpty] operator[SEP] identifier[getParamAction] operator[SEP] operator[SEP] operator[SEP] operator[||] identifier[Cm... |
@Deprecated
public static @Nullable
User get(String idOrFullName, boolean create) {
return get(idOrFullName, create, Collections.emptyMap());
} | class class_name[name] begin[{]
method[get, return_type[type[User]], modifier[public static], parameter[idOrFullName, create]] begin[{]
return[call[.get, parameter[member[.idOrFullName], member[.create], call[Collections.emptyMap, parameter[]]]]]
end[}]
END[}] | annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] annotation[@] identifier[Nullable] identifier[User] identifier[get] operator[SEP] identifier[String] identifier[idOrFullName] , Keyword[boolean] identifier[create] operator[SEP] {
Keyword[return] identifier[get] operator[SEP] identifier[idOrFu... |
public Observable<DatabaseSecurityAlertPolicyInner> createOrUpdateAsync(String resourceGroupName, String serverName, String databaseName, DatabaseSecurityAlertPolicyInner parameters) {
return createOrUpdateWithServiceResponseAsync(resourceGroupName, serverName, databaseName, parameters).map(new Func1<ServiceRes... | class class_name[name] begin[{]
method[createOrUpdateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, serverName, databaseName, parameters]] begin[{]
return[call[.createOrUpdateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.serverName], membe... | Keyword[public] identifier[Observable] operator[<] identifier[DatabaseSecurityAlertPolicyInner] operator[>] identifier[createOrUpdateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[serverName] , identifier[String] identifier[databaseName] , identifier[DatabaseSec... |
private boolean validateNoLoopDetected(DefaultHttpSession acceptSession) {
List<String> viaHeaders = acceptSession.getReadHeaders(HEADER_VIA);
if (viaHeaders != null && viaHeaders.stream().anyMatch(h -> h.equals(viaHeader))) {
LOGGER.warn("Connection to " + getConnectURIs().iterator().ne... | class class_name[name] begin[{]
method[validateNoLoopDetected, return_type[type[boolean]], modifier[private], parameter[acceptSession]] begin[{]
local_variable[type[List], viaHeaders]
if[binary_operation[binary_operation[member[.viaHeaders], !=, literal[null]], &&, call[viaHeaders.strea... | Keyword[private] Keyword[boolean] identifier[validateNoLoopDetected] operator[SEP] identifier[DefaultHttpSession] identifier[acceptSession] operator[SEP] {
identifier[List] operator[<] identifier[String] operator[>] identifier[viaHeaders] operator[=] identifier[acceptSession] operator[SEP] identifier[getReadHead... |
void processMsgs(LockedMessageEnumeration msgEnumeration, ConsumerSession consumerSession)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "processMsgs", new Object[] { msgEnumeration, consumerSession });
// Remember that a callback is running
asynchConsumer... | class class_name[name] begin[{]
method[processMsgs, return_type[void], modifier[default], parameter[msgEnumeration, consumerSession]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.en... | Keyword[void] identifier[processMsgs] operator[SEP] identifier[LockedMessageEnumeration] identifier[msgEnumeration] , identifier[ConsumerSession] identifier[consumerSession] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[... |
private void sendEvent(Node node, NodeEventType type) {
NodeEvent event = new NodeEvent(node, type);
for (NodeEventHandler handler : handlers) {
handler.handle(event);
}
} | class class_name[name] begin[{]
method[sendEvent, return_type[void], modifier[private], parameter[node, type]] begin[{]
local_variable[type[NodeEvent], event]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(memb... | Keyword[private] Keyword[void] identifier[sendEvent] operator[SEP] identifier[Node] identifier[node] , identifier[NodeEventType] identifier[type] operator[SEP] {
identifier[NodeEvent] identifier[event] operator[=] Keyword[new] identifier[NodeEvent] operator[SEP] identifier[node] , identifier[type] operator[SEP... |
public static HawkWwwAuthenticateContextBuilder_A tsAndTsm(long l,
String tsm) {
return new HawkWwwAuthenticateContextBuilder().ts(l).tsm(tsm);
} | class class_name[name] begin[{]
method[tsAndTsm, return_type[type[HawkWwwAuthenticateContextBuilder_A]], modifier[public static], parameter[l, tsm]] begin[{]
return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selector... | Keyword[public] Keyword[static] identifier[HawkWwwAuthenticateContextBuilder_A] identifier[tsAndTsm] operator[SEP] Keyword[long] identifier[l] , identifier[String] identifier[tsm] operator[SEP] {
Keyword[return] Keyword[new] identifier[HawkWwwAuthenticateContextBuilder] operator[SEP] operator[SEP] operator[SEP]... |
public Set<PDefinition> findMatches(SClassDefinition classdef,
ILexNameToken sought)
{
Set<PDefinition> set = af.createPDefinitionListAssistant().findMatches(classdef.getDefinitions(), sought);
set.addAll(af.createPDefinitionListAssistant().findMatches(classdef.getAllInheritedDefinitions(), sought));
return ... | class class_name[name] begin[{]
method[findMatches, return_type[type[Set]], modifier[public], parameter[classdef, sought]] begin[{]
local_variable[type[Set], set]
call[set.addAll, parameter[call[af.createPDefinitionListAssistant, parameter[]]]]
return[member[.set]]
end[}]
EN... | Keyword[public] identifier[Set] operator[<] identifier[PDefinition] operator[>] identifier[findMatches] operator[SEP] identifier[SClassDefinition] identifier[classdef] , identifier[ILexNameToken] identifier[sought] operator[SEP] {
identifier[Set] operator[<] identifier[PDefinition] operator[>] identifier[set] o... |
public <E extends Enum> E getEnum(HazelcastProperty property, Class<E> enumClazz) {
String value = getString(property);
for (E enumConstant : enumClazz.getEnumConstants()) {
if (enumConstant.name().equalsIgnoreCase(value)) {
return enumConstant;
}
}
... | class class_name[name] begin[{]
method[getEnum, return_type[type[E]], modifier[public], parameter[property, enumClazz]] begin[{]
local_variable[type[String], value]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=name, postfix... | Keyword[public] operator[<] identifier[E] Keyword[extends] identifier[Enum] operator[>] identifier[E] identifier[getEnum] operator[SEP] identifier[HazelcastProperty] identifier[property] , identifier[Class] operator[<] identifier[E] operator[>] identifier[enumClazz] operator[SEP] {
identifier[String] identifier... |
public String convertIfcProjectOrderRecordTypeEnumToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
} | class class_name[name] begin[{]
method[convertIfcProjectOrderRecordTypeEnumToString, return_type[type[String]], modifier[public], parameter[eDataType, instanceValue]] begin[{]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=instanceValue, postfix_operators=[], prefix_... | Keyword[public] identifier[String] identifier[convertIfcProjectOrderRecordTypeEnumToString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[Object] identifier[instanceValue] operator[SEP] {
Keyword[return] identifier[instanceValue] operator[==] Other[null] operator[?] Other[null] operator... |
private boolean endPendingOffer() {
int newValue = this.pendingOffers.decrementAndGet();
// if newValue reaches zero, make sure to always reset "offeringAborted"
if (newValue == 0) {
// if slotWaitingCanceled was true, then reset it back to false, and
// return true to ma... | class class_name[name] begin[{]
method[endPendingOffer, return_type[type[boolean]], modifier[private], parameter[]] begin[{]
local_variable[type[int], newValue]
if[binary_operation[member[.newValue], ==, literal[0]]] begin[{]
return[THIS[member[None.pendingOffersAborted]call... | Keyword[private] Keyword[boolean] identifier[endPendingOffer] operator[SEP] operator[SEP] {
Keyword[int] identifier[newValue] operator[=] Keyword[this] operator[SEP] identifier[pendingOffers] operator[SEP] identifier[decrementAndGet] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[... |
public void addTargets(final List<? extends AjaxTarget> targets) {
if (targets != null) {
for (AjaxTarget target : targets) {
this.addTarget(target);
}
}
} | class class_name[name] begin[{]
method[addTargets, return_type[void], modifier[public], parameter[targets]] begin[{]
if[binary_operation[member[.targets], !=, literal[null]]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=This(postfi... | Keyword[public] Keyword[void] identifier[addTargets] operator[SEP] Keyword[final] identifier[List] operator[<] operator[?] Keyword[extends] identifier[AjaxTarget] operator[>] identifier[targets] operator[SEP] {
Keyword[if] operator[SEP] identifier[targets] operator[!=] Other[null] operator[SEP] {
Keyw... |
protected synchronized void destroyAgent (int agentId)
{
Agent agent = null;
agent = _agents.remove(agentId);
if (agent == null) {
log.warning("Lost an agent, id " + agentId);
} else {
try {
agent.stop();
} catch (Throwable t) {
... | class class_name[name] begin[{]
method[destroyAgent, return_type[void], modifier[synchronized protected], parameter[agentId]] begin[{]
local_variable[type[Agent], agent]
assign[member[.agent], call[_agents.remove, parameter[member[.agentId]]]]
if[binary_operation[member[... | Keyword[protected] Keyword[synchronized] Keyword[void] identifier[destroyAgent] operator[SEP] Keyword[int] identifier[agentId] operator[SEP] {
identifier[Agent] identifier[agent] operator[=] Other[null] operator[SEP] identifier[agent] operator[=] identifier[_agents] operator[SEP] identifier[remove] operator[SEP]... |
@Override
public void startElement(String uri, String name, String qName, Attributes atts) {
// Start Function
inside = qName;
this.attributes = atts;
if (qName.equals("function")) startFunction();
else if (qName.equals("argument")) startArg();
else if (qName.equals("return")) startReturn();
else if (qName.... | class class_name[name] begin[{]
method[startElement, return_type[void], modifier[public], parameter[uri, name, qName, atts]] begin[{]
assign[member[.inside], member[.qName]]
assign[THIS[member[None.attributes]], member[.atts]]
if[call[qName.equals, parameter[lite... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[startElement] operator[SEP] identifier[String] identifier[uri] , identifier[String] identifier[name] , identifier[String] identifier[qName] , identifier[Attributes] identifier[atts] operator[SEP] {
identifier[inside] operator[=] ident... |
@Override
public String getCompleteURL() {
ServletRESTRequestImpl ret = castRequest();
if (ret != null)
return ret.getCompleteURL();
return null;
} | class class_name[name] begin[{]
method[getCompleteURL, return_type[type[String]], modifier[public], parameter[]] begin[{]
local_variable[type[ServletRESTRequestImpl], ret]
if[binary_operation[member[.ret], !=, literal[null]]] begin[{]
return[call[ret.getCompleteURL, parameter[]]]
... | annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getCompleteURL] operator[SEP] operator[SEP] {
identifier[ServletRESTRequestImpl] identifier[ret] operator[=] identifier[castRequest] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ret] operator[!=] Ot... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.