code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
private void detectFileChange() throws IOException { checkClosed(); assert Thread.holdsLock(filePosLock); while(!file.exists()) { try { System.err.println("File not found, waiting: " + file.getPath()); Thread.sleep(pollInterval); } catch(InterruptedException e) { InterruptedIOException newExc = new InterruptedIOException(e.getMessage()); newExc.initCause(e); throw newExc; } checkClosed(); } long fileLen = file.length(); if(fileLen<filePos) filePos = 0; }
class class_name[name] begin[{] method[detectFileChange, return_type[void], modifier[private], parameter[]] begin[{] call[.checkClosed, parameter[]] AssertStatement(condition=MethodInvocation(arguments=[MemberReference(member=filePosLock, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=holdsLock, postfix_operators=[], prefix_operators=[], qualifier=Thread, selectors=[], type_arguments=None), label=None, value=None) while[call[file.exists, parameter[]]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="File not found, waiting: "), operandr=MethodInvocation(arguments=[], member=getPath, postfix_operators=[], prefix_operators=[], qualifier=file, selectors=[], type_arguments=None), operator=+)], member=println, postfix_operators=[], prefix_operators=[], qualifier=System.err, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=pollInterval, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=sleep, postfix_operators=[], prefix_operators=[], qualifier=Thread, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InterruptedIOException, sub_type=None)), name=newExc)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=InterruptedIOException, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=initCause, postfix_operators=[], prefix_operators=[], qualifier=newExc, selectors=[], type_arguments=None), label=None), ThrowStatement(expression=MemberReference(member=newExc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['InterruptedException']))], finally_block=None, label=None, resources=None) call[.checkClosed, parameter[]] end[}] local_variable[type[long], fileLen] if[binary_operation[member[.fileLen], <, member[.filePos]]] begin[{] assign[member[.filePos], literal[0]] else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[detectFileChange] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[checkClosed] operator[SEP] operator[SEP] operator[SEP] Keyword[assert] identifier[Thread] operator[SEP] identifier[holdsLock] operator[SEP] identifier[filePosLock] operator[SEP] operator[SEP] Keyword[while] operator[SEP] operator[!] identifier[file] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[SEP] { Keyword[try] { identifier[System] operator[SEP] identifier[err] operator[SEP] identifier[println] operator[SEP] literal[String] operator[+] identifier[file] operator[SEP] identifier[getPath] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[Thread] operator[SEP] identifier[sleep] operator[SEP] identifier[pollInterval] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[InterruptedException] identifier[e] operator[SEP] { identifier[InterruptedIOException] identifier[newExc] operator[=] Keyword[new] identifier[InterruptedIOException] operator[SEP] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[newExc] operator[SEP] identifier[initCause] operator[SEP] identifier[e] operator[SEP] operator[SEP] Keyword[throw] identifier[newExc] operator[SEP] } identifier[checkClosed] operator[SEP] operator[SEP] operator[SEP] } Keyword[long] identifier[fileLen] operator[=] identifier[file] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[fileLen] operator[<] identifier[filePos] operator[SEP] identifier[filePos] operator[=] Other[0] operator[SEP] }
private void writeEOFRecord() throws IOException { for (int i = 0; i < this.recordBuf.length; ++i) { this.recordBuf[i] = 0; } this.buffer.writeRecord(this.recordBuf); }
class class_name[name] begin[{] method[writeEOFRecord, return_type[void], modifier[private], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=recordBuf, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=recordBuf, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MemberReference(member=length, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=[], prefix_operators=['++'], qualifier=, selectors=[])]), label=None) THIS[member[None.buffer]call[None.writeRecord, parameter[THIS[member[None.recordBuf]]]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[writeEOFRecord] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] Keyword[this] operator[SEP] identifier[recordBuf] operator[SEP] identifier[length] operator[SEP] operator[++] identifier[i] operator[SEP] { Keyword[this] operator[SEP] identifier[recordBuf] operator[SEP] identifier[i] operator[SEP] operator[=] Other[0] operator[SEP] } Keyword[this] operator[SEP] identifier[buffer] operator[SEP] identifier[writeRecord] operator[SEP] Keyword[this] operator[SEP] identifier[recordBuf] operator[SEP] operator[SEP] }
public static base_responses enable(nitro_service client, String id[]) throws Exception { base_responses result = null; if (id != null && id.length > 0) { Interface enableresources[] = new Interface[id.length]; for (int i=0;i<id.length;i++){ enableresources[i] = new Interface(); enableresources[i].id = id[i]; } result = perform_operation_bulk_request(client, enableresources,"enable"); } return result; }
class class_name[name] begin[{] method[enable, return_type[type[base_responses]], modifier[public static], parameter[client, id]] begin[{] local_variable[type[base_responses], result] if[binary_operation[binary_operation[member[.id], !=, literal[null]], &&, binary_operation[member[id.length], >, literal[0]]]] begin[{] local_variable[type[Interface], enableresources] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=enableresources, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Interface, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=enableresources, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MemberReference(member=id, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), type==, value=MemberReference(member=id, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=id, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) assign[member[.result], call[.perform_operation_bulk_request, parameter[member[.client], member[.enableresources], literal["enable"]]]] else begin[{] None end[}] return[member[.result]] end[}] END[}]
Keyword[public] Keyword[static] identifier[base_responses] identifier[enable] operator[SEP] identifier[nitro_service] identifier[client] , identifier[String] identifier[id] operator[SEP] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[base_responses] identifier[result] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[id] operator[!=] Other[null] operator[&&] identifier[id] operator[SEP] identifier[length] operator[>] Other[0] operator[SEP] { identifier[Interface] identifier[enableresources] operator[SEP] operator[SEP] operator[=] Keyword[new] identifier[Interface] operator[SEP] identifier[id] operator[SEP] identifier[length] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[id] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[enableresources] operator[SEP] identifier[i] operator[SEP] operator[=] Keyword[new] identifier[Interface] operator[SEP] operator[SEP] operator[SEP] identifier[enableresources] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[id] operator[=] identifier[id] operator[SEP] identifier[i] operator[SEP] operator[SEP] } identifier[result] operator[=] identifier[perform_operation_bulk_request] operator[SEP] identifier[client] , identifier[enableresources] , literal[String] operator[SEP] operator[SEP] } Keyword[return] identifier[result] operator[SEP] }
public boolean hasNext() { while (_list.hasMoreTokens() && (_current.length() == 0)) { _current = _list.nextToken(); } return (_current.length() > 0); }
class class_name[name] begin[{] method[hasNext, return_type[type[boolean]], modifier[public], parameter[]] begin[{] while[binary_operation[call[_list.hasMoreTokens, parameter[]], &&, binary_operation[call[_current.length, parameter[]], ==, literal[0]]]] begin[{] assign[member[._current], call[_list.nextToken, parameter[]]] end[}] return[binary_operation[call[_current.length, parameter[]], >, literal[0]]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[hasNext] operator[SEP] operator[SEP] { Keyword[while] operator[SEP] identifier[_list] operator[SEP] identifier[hasMoreTokens] operator[SEP] operator[SEP] operator[&&] operator[SEP] identifier[_current] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] operator[SEP] { identifier[_current] operator[=] identifier[_list] operator[SEP] identifier[nextToken] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] operator[SEP] identifier[_current] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] operator[SEP] }
public final AbstractItemLink remove(long key) { AbstractItemLink link = null; int i = _indexOfKey(key); synchronized (_getLock(i)) { Entry previousEntry = _entry[i]; Entry thisEntry = previousEntry; while (null != thisEntry && null == link) { Entry nextEntry = thisEntry.next; if (key == thisEntry.id) { link = thisEntry.link; _size--; if (previousEntry == thisEntry) { _entry[i] = nextEntry; } else { previousEntry.next = nextEntry; } } previousEntry = thisEntry; thisEntry = nextEntry; } } return link; }
class class_name[name] begin[{] method[remove, return_type[type[AbstractItemLink]], modifier[final public], parameter[key]] begin[{] local_variable[type[AbstractItemLink], link] local_variable[type[int], i] SYNCHRONIZED[call[._getLock, parameter[member[.i]]]] BEGIN[{] local_variable[type[Entry], previousEntry] local_variable[type[Entry], thisEntry] while[binary_operation[binary_operation[literal[null], !=, member[.thisEntry]], &&, binary_operation[literal[null], ==, member[.link]]]] begin[{] local_variable[type[Entry], nextEntry] if[binary_operation[member[.key], ==, member[thisEntry.id]]] begin[{] assign[member[.link], member[thisEntry.link]] member[._size] if[binary_operation[member[.previousEntry], ==, member[.thisEntry]]] begin[{] assign[member[._entry], member[.nextEntry]] else begin[{] assign[member[previousEntry.next], member[.nextEntry]] end[}] else begin[{] None end[}] assign[member[.previousEntry], member[.thisEntry]] assign[member[.thisEntry], member[.nextEntry]] end[}] END[}] return[member[.link]] end[}] END[}]
Keyword[public] Keyword[final] identifier[AbstractItemLink] identifier[remove] operator[SEP] Keyword[long] identifier[key] operator[SEP] { identifier[AbstractItemLink] identifier[link] operator[=] Other[null] operator[SEP] Keyword[int] identifier[i] operator[=] identifier[_indexOfKey] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[synchronized] operator[SEP] identifier[_getLock] operator[SEP] identifier[i] operator[SEP] operator[SEP] { identifier[Entry] identifier[previousEntry] operator[=] identifier[_entry] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[Entry] identifier[thisEntry] operator[=] identifier[previousEntry] operator[SEP] Keyword[while] operator[SEP] Other[null] operator[!=] identifier[thisEntry] operator[&&] Other[null] operator[==] identifier[link] operator[SEP] { identifier[Entry] identifier[nextEntry] operator[=] identifier[thisEntry] operator[SEP] identifier[next] operator[SEP] Keyword[if] operator[SEP] identifier[key] operator[==] identifier[thisEntry] operator[SEP] identifier[id] operator[SEP] { identifier[link] operator[=] identifier[thisEntry] operator[SEP] identifier[link] operator[SEP] identifier[_size] operator[--] operator[SEP] Keyword[if] operator[SEP] identifier[previousEntry] operator[==] identifier[thisEntry] operator[SEP] { identifier[_entry] operator[SEP] identifier[i] operator[SEP] operator[=] identifier[nextEntry] operator[SEP] } Keyword[else] { identifier[previousEntry] operator[SEP] identifier[next] operator[=] identifier[nextEntry] operator[SEP] } } identifier[previousEntry] operator[=] identifier[thisEntry] operator[SEP] identifier[thisEntry] operator[=] identifier[nextEntry] operator[SEP] } } Keyword[return] identifier[link] operator[SEP] }
private void stream(InputStream is, File destFile) throws IOException { try { startProgress(); OutputStream os = new FileOutputStream(destFile); boolean finished = false; try { byte[] buf = new byte[1024 * 10]; int read; while ((read = is.read(buf)) >= 0) { os.write(buf, 0, read); processedBytes += read; logProgress(); } os.flush(); finished = true; } finally { os.close(); if (!finished) { destFile.delete(); } } } finally { is.close(); completeProgress(); } }
class class_name[name] begin[{] method[stream, return_type[void], modifier[private], parameter[is, destFile]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=startProgress, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=destFile, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=FileOutputStream, sub_type=None)), name=os)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=OutputStream, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), name=finished)], modifiers=set(), type=BasicType(dimensions=[], name=boolean)), TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ArrayCreator(dimensions=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1024), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=10), operator=*)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=byte)), name=buf)], modifiers=set(), type=BasicType(dimensions=[None], name=byte)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=read)], modifiers=set(), type=BasicType(dimensions=[], name=int)), WhileStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=buf, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=read, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=write, postfix_operators=[], prefix_operators=[], qualifier=os, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=processedBytes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=MemberReference(member=read, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=logProgress, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), condition=BinaryOperation(operandl=Assignment(expressionl=MemberReference(member=read, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=buf, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=read, postfix_operators=[], prefix_operators=[], qualifier=is, selectors=[], type_arguments=None)), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>=), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=flush, postfix_operators=[], prefix_operators=[], qualifier=os, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=finished, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None)], catches=None, finally_block=[StatementExpression(expression=MethodInvocation(arguments=[], member=close, postfix_operators=[], prefix_operators=[], qualifier=os, selectors=[], type_arguments=None), label=None), IfStatement(condition=MemberReference(member=finished, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=delete, postfix_operators=[], prefix_operators=[], qualifier=destFile, selectors=[], type_arguments=None), label=None)]))], label=None, resources=None)], catches=None, finally_block=[StatementExpression(expression=MethodInvocation(arguments=[], member=close, postfix_operators=[], prefix_operators=[], qualifier=is, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=completeProgress, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], label=None, resources=None) end[}] END[}]
Keyword[private] Keyword[void] identifier[stream] operator[SEP] identifier[InputStream] identifier[is] , identifier[File] identifier[destFile] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { identifier[startProgress] operator[SEP] operator[SEP] operator[SEP] identifier[OutputStream] identifier[os] operator[=] Keyword[new] identifier[FileOutputStream] operator[SEP] identifier[destFile] operator[SEP] operator[SEP] Keyword[boolean] identifier[finished] operator[=] literal[boolean] operator[SEP] Keyword[try] { Keyword[byte] operator[SEP] operator[SEP] identifier[buf] operator[=] Keyword[new] Keyword[byte] operator[SEP] Other[1024] operator[*] Other[10] operator[SEP] operator[SEP] Keyword[int] identifier[read] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[read] operator[=] identifier[is] operator[SEP] identifier[read] operator[SEP] identifier[buf] operator[SEP] operator[SEP] operator[>=] Other[0] operator[SEP] { identifier[os] operator[SEP] identifier[write] operator[SEP] identifier[buf] , Other[0] , identifier[read] operator[SEP] operator[SEP] identifier[processedBytes] operator[+=] identifier[read] operator[SEP] identifier[logProgress] operator[SEP] operator[SEP] operator[SEP] } identifier[os] operator[SEP] identifier[flush] operator[SEP] operator[SEP] operator[SEP] identifier[finished] operator[=] literal[boolean] operator[SEP] } Keyword[finally] { identifier[os] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[finished] operator[SEP] { identifier[destFile] operator[SEP] identifier[delete] operator[SEP] operator[SEP] operator[SEP] } } } Keyword[finally] { identifier[is] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] identifier[completeProgress] operator[SEP] operator[SEP] operator[SEP] } }
public void expectMatch(String name, List<String> values) { expectMatch(name, messages.get(Validation.MATCH_VALUES_KEY.name(), name), values); }
class class_name[name] begin[{] method[expectMatch, return_type[void], modifier[public], parameter[name, values]] begin[{] call[.expectMatch, parameter[member[.name], call[messages.get, parameter[call[Validation.MATCH_VALUES_KEY.name, parameter[]], member[.name]]], member[.values]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[expectMatch] operator[SEP] identifier[String] identifier[name] , identifier[List] operator[<] identifier[String] operator[>] identifier[values] operator[SEP] { identifier[expectMatch] operator[SEP] identifier[name] , identifier[messages] operator[SEP] identifier[get] operator[SEP] identifier[Validation] operator[SEP] identifier[MATCH_VALUES_KEY] operator[SEP] identifier[name] operator[SEP] operator[SEP] , identifier[name] operator[SEP] , identifier[values] operator[SEP] operator[SEP] }
public static ParameterizedAnalyticsQuery parameterized(final String statement, final JsonArray positionalParams, final AnalyticsParams params) { return new ParameterizedAnalyticsQuery(statement, positionalParams, null, params); }
class class_name[name] begin[{] method[parameterized, return_type[type[ParameterizedAnalyticsQuery]], modifier[public static], parameter[statement, positionalParams, params]] begin[{] return[ClassCreator(arguments=[MemberReference(member=statement, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=positionalParams, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), MemberReference(member=params, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ParameterizedAnalyticsQuery, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[ParameterizedAnalyticsQuery] identifier[parameterized] operator[SEP] Keyword[final] identifier[String] identifier[statement] , Keyword[final] identifier[JsonArray] identifier[positionalParams] , Keyword[final] identifier[AnalyticsParams] identifier[params] operator[SEP] { Keyword[return] Keyword[new] identifier[ParameterizedAnalyticsQuery] operator[SEP] identifier[statement] , identifier[positionalParams] , Other[null] , identifier[params] operator[SEP] operator[SEP] }
public static String determineServletContextPath(HttpServletRequest theRequest, RestfulServer server) { String retVal; if (server.getServletContext() != null) { if (server.getServletContext().getMajorVersion() >= 3 || (server.getServletContext().getMajorVersion() > 2 && server.getServletContext().getMinorVersion() >= 5)) { retVal = server.getServletContext().getContextPath(); } else { retVal = theRequest.getContextPath(); } } else { retVal = theRequest.getContextPath(); } retVal = StringUtils.defaultString(retVal); return retVal; }
class class_name[name] begin[{] method[determineServletContextPath, return_type[type[String]], modifier[public static], parameter[theRequest, server]] begin[{] local_variable[type[String], retVal] if[binary_operation[call[server.getServletContext, parameter[]], !=, literal[null]]] begin[{] if[binary_operation[binary_operation[call[server.getServletContext, parameter[]], >=, literal[3]], ||, binary_operation[binary_operation[call[server.getServletContext, parameter[]], >, literal[2]], &&, binary_operation[call[server.getServletContext, parameter[]], >=, literal[5]]]]] begin[{] assign[member[.retVal], call[server.getServletContext, parameter[]]] else begin[{] assign[member[.retVal], call[theRequest.getContextPath, parameter[]]] end[}] else begin[{] assign[member[.retVal], call[theRequest.getContextPath, parameter[]]] end[}] assign[member[.retVal], call[StringUtils.defaultString, parameter[member[.retVal]]]] return[member[.retVal]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[determineServletContextPath] operator[SEP] identifier[HttpServletRequest] identifier[theRequest] , identifier[RestfulServer] identifier[server] operator[SEP] { identifier[String] identifier[retVal] operator[SEP] Keyword[if] operator[SEP] identifier[server] operator[SEP] identifier[getServletContext] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[server] operator[SEP] identifier[getServletContext] operator[SEP] operator[SEP] operator[SEP] identifier[getMajorVersion] operator[SEP] operator[SEP] operator[>=] Other[3] operator[||] operator[SEP] identifier[server] operator[SEP] identifier[getServletContext] operator[SEP] operator[SEP] operator[SEP] identifier[getMajorVersion] operator[SEP] operator[SEP] operator[>] Other[2] operator[&&] identifier[server] operator[SEP] identifier[getServletContext] operator[SEP] operator[SEP] operator[SEP] identifier[getMinorVersion] operator[SEP] operator[SEP] operator[>=] Other[5] operator[SEP] operator[SEP] { identifier[retVal] operator[=] identifier[server] operator[SEP] identifier[getServletContext] operator[SEP] operator[SEP] operator[SEP] identifier[getContextPath] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[retVal] operator[=] identifier[theRequest] operator[SEP] identifier[getContextPath] operator[SEP] operator[SEP] operator[SEP] } } Keyword[else] { identifier[retVal] operator[=] identifier[theRequest] operator[SEP] identifier[getContextPath] operator[SEP] operator[SEP] operator[SEP] } identifier[retVal] operator[=] identifier[StringUtils] operator[SEP] identifier[defaultString] operator[SEP] identifier[retVal] operator[SEP] operator[SEP] Keyword[return] identifier[retVal] operator[SEP] }
public static String trimTo(final String aString, final String aDefault) { if (aString == null) { return aDefault; } final String trimmed = aString.trim(); return trimmed.length() == 0 ? aDefault : trimmed; }
class class_name[name] begin[{] method[trimTo, return_type[type[String]], modifier[public static], parameter[aString, aDefault]] begin[{] if[binary_operation[member[.aString], ==, literal[null]]] begin[{] return[member[.aDefault]] else begin[{] None end[}] local_variable[type[String], trimmed] return[TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=trimmed, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), if_false=MemberReference(member=trimmed, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_true=MemberReference(member=aDefault, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[trimTo] operator[SEP] Keyword[final] identifier[String] identifier[aString] , Keyword[final] identifier[String] identifier[aDefault] operator[SEP] { Keyword[if] operator[SEP] identifier[aString] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[aDefault] operator[SEP] } Keyword[final] identifier[String] identifier[trimmed] operator[=] identifier[aString] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[trimmed] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[==] Other[0] operator[?] identifier[aDefault] operator[:] identifier[trimmed] operator[SEP] }
protected String createName() { final StringBuilder buf = new StringBuilder(128); try { buf.append(InetAddress.getLocalHost().getHostName()).append(COLON) .append(ManagementFactory.getRuntimeMXBean().getName().split("@")[0]) // PID .append('-').append(this.workerId).append(COLON).append(JAVA_DYNAMIC_QUEUES); for (final String queueName : this.queueNames) { buf.append(',').append(queueName); } } catch (UnknownHostException uhe) { throw new RuntimeException(uhe); } return buf.toString(); }
class class_name[name] begin[{] method[createName, return_type[type[String]], modifier[protected], parameter[]] begin[{] local_variable[type[StringBuilder], buf] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getLocalHost, postfix_operators=[], prefix_operators=[], qualifier=InetAddress, selectors=[MethodInvocation(arguments=[], member=getHostName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=append, postfix_operators=[], prefix_operators=[], qualifier=buf, selectors=[MethodInvocation(arguments=[MemberReference(member=COLON, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getRuntimeMXBean, postfix_operators=[], prefix_operators=[], qualifier=ManagementFactory, selectors=[MethodInvocation(arguments=[], member=getName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="@")], member=split, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))], type_arguments=None)], member=append, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='-')], member=append, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=workerId, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)])], member=append, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MemberReference(member=COLON, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MemberReference(member=JAVA_DYNAMIC_QUEUES, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None), ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=',')], member=append, postfix_operators=[], prefix_operators=[], qualifier=buf, selectors=[MethodInvocation(arguments=[MemberReference(member=queueName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=queueNames, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=queueName)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=uhe, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RuntimeException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=uhe, types=['UnknownHostException']))], finally_block=None, label=None, resources=None) return[call[buf.toString, parameter[]]] end[}] END[}]
Keyword[protected] identifier[String] identifier[createName] operator[SEP] operator[SEP] { Keyword[final] identifier[StringBuilder] identifier[buf] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] Other[128] operator[SEP] operator[SEP] Keyword[try] { identifier[buf] operator[SEP] identifier[append] operator[SEP] identifier[InetAddress] operator[SEP] identifier[getLocalHost] operator[SEP] operator[SEP] operator[SEP] identifier[getHostName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[COLON] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[ManagementFactory] operator[SEP] identifier[getRuntimeMXBean] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[split] operator[SEP] literal[String] operator[SEP] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] Keyword[this] operator[SEP] identifier[workerId] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[COLON] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[JAVA_DYNAMIC_QUEUES] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[String] identifier[queueName] operator[:] Keyword[this] operator[SEP] identifier[queueNames] operator[SEP] { identifier[buf] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[queueName] operator[SEP] operator[SEP] } } Keyword[catch] operator[SEP] identifier[UnknownHostException] identifier[uhe] operator[SEP] { Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SEP] identifier[uhe] operator[SEP] operator[SEP] } Keyword[return] identifier[buf] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
@Nullable public static CascadingStyleSheet readFromReader (@Nonnull final IHasReader aRP, @Nonnull final CSSReaderSettings aSettings) { ValueEnforcer.notNull (aRP, "ReaderProvider"); ValueEnforcer.notNull (aSettings, "Settings"); // Create the reader final Reader aReader = aRP.getReader (); if (aReader == null) { // Failed to open reader return null; } // No charset determination, as the Reader already has an implicit Charset final ECSSVersion eVersion = aSettings.getCSSVersion (); try { final CSSCharStream aCharStream = new CSSCharStream (aReader); aCharStream.setTabSize (aSettings.getTabSize ()); // Use the default CSS parse error handler if none is provided ICSSParseErrorHandler aRealParseErrorHandler = aSettings.getCustomErrorHandler (); if (aRealParseErrorHandler == null) aRealParseErrorHandler = getDefaultParseErrorHandler (); // Use the default CSS exception handler if none is provided ICSSParseExceptionCallback aRealParseExceptionHandler = aSettings.getCustomExceptionHandler (); if (aRealParseExceptionHandler == null) aRealParseExceptionHandler = getDefaultParseExceptionHandler (); final boolean bBrowserCompliantMode = aSettings.isBrowserCompliantMode (); final CSSNode aNode = _readStyleSheet (aCharStream, eVersion, aRealParseErrorHandler, aRealParseExceptionHandler, bBrowserCompliantMode); // Failed to parse content as CSS? if (aNode == null) return null; // Get the interpret error handler ICSSInterpretErrorHandler aRealInterpretErrorHandler = aSettings.getInterpretErrorHandler (); if (aRealInterpretErrorHandler == null) aRealInterpretErrorHandler = getDefaultInterpretErrorHandler (); // Convert the AST to a domain object return CSSHandler.readCascadingStyleSheetFromNode (eVersion, aNode, aRealInterpretErrorHandler); } finally { StreamHelper.close (aReader); } }
class class_name[name] begin[{] method[readFromReader, return_type[type[CascadingStyleSheet]], modifier[public static], parameter[aRP, aSettings]] begin[{] call[ValueEnforcer.notNull, parameter[member[.aRP], literal["ReaderProvider"]]] call[ValueEnforcer.notNull, parameter[member[.aSettings], literal["Settings"]]] local_variable[type[Reader], aReader] if[binary_operation[member[.aReader], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[ECSSVersion], eVersion] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=aReader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CSSCharStream, sub_type=None)), name=aCharStream)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=CSSCharStream, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getTabSize, postfix_operators=[], prefix_operators=[], qualifier=aSettings, selectors=[], type_arguments=None)], member=setTabSize, postfix_operators=[], prefix_operators=[], qualifier=aCharStream, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getCustomErrorHandler, postfix_operators=[], prefix_operators=[], qualifier=aSettings, selectors=[], type_arguments=None), name=aRealParseErrorHandler)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ICSSParseErrorHandler, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=aRealParseErrorHandler, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=None, label=None, then_statement=StatementExpression(expression=Assignment(expressionl=MemberReference(member=aRealParseErrorHandler, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getDefaultParseErrorHandler, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getCustomExceptionHandler, postfix_operators=[], prefix_operators=[], qualifier=aSettings, selectors=[], type_arguments=None), name=aRealParseExceptionHandler)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ICSSParseExceptionCallback, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=aRealParseExceptionHandler, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=None, label=None, then_statement=StatementExpression(expression=Assignment(expressionl=MemberReference(member=aRealParseExceptionHandler, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getDefaultParseExceptionHandler, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=isBrowserCompliantMode, postfix_operators=[], prefix_operators=[], qualifier=aSettings, selectors=[], type_arguments=None), name=bBrowserCompliantMode)], modifiers={'final'}, type=BasicType(dimensions=[], name=boolean)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=aCharStream, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=eVersion, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=aRealParseErrorHandler, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=aRealParseExceptionHandler, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=bBrowserCompliantMode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=_readStyleSheet, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=aNode)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=CSSNode, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=aNode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), label=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getInterpretErrorHandler, postfix_operators=[], prefix_operators=[], qualifier=aSettings, selectors=[], type_arguments=None), name=aRealInterpretErrorHandler)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ICSSInterpretErrorHandler, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=aRealInterpretErrorHandler, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=None, label=None, then_statement=StatementExpression(expression=Assignment(expressionl=MemberReference(member=aRealInterpretErrorHandler, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getDefaultInterpretErrorHandler, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)), ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=eVersion, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=aNode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=aRealInterpretErrorHandler, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=readCascadingStyleSheetFromNode, postfix_operators=[], prefix_operators=[], qualifier=CSSHandler, selectors=[], type_arguments=None), label=None)], catches=None, finally_block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=aReader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=close, postfix_operators=[], prefix_operators=[], qualifier=StreamHelper, selectors=[], type_arguments=None), label=None)], label=None, resources=None) end[}] END[}]
annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[CascadingStyleSheet] identifier[readFromReader] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[IHasReader] identifier[aRP] , annotation[@] identifier[Nonnull] Keyword[final] identifier[CSSReaderSettings] identifier[aSettings] operator[SEP] { identifier[ValueEnforcer] operator[SEP] identifier[notNull] operator[SEP] identifier[aRP] , literal[String] operator[SEP] operator[SEP] identifier[ValueEnforcer] operator[SEP] identifier[notNull] operator[SEP] identifier[aSettings] , literal[String] operator[SEP] operator[SEP] Keyword[final] identifier[Reader] identifier[aReader] operator[=] identifier[aRP] operator[SEP] identifier[getReader] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[aReader] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[final] identifier[ECSSVersion] identifier[eVersion] operator[=] identifier[aSettings] operator[SEP] identifier[getCSSVersion] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { Keyword[final] identifier[CSSCharStream] identifier[aCharStream] operator[=] Keyword[new] identifier[CSSCharStream] operator[SEP] identifier[aReader] operator[SEP] operator[SEP] identifier[aCharStream] operator[SEP] identifier[setTabSize] operator[SEP] identifier[aSettings] operator[SEP] identifier[getTabSize] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[ICSSParseErrorHandler] identifier[aRealParseErrorHandler] operator[=] identifier[aSettings] operator[SEP] identifier[getCustomErrorHandler] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[aRealParseErrorHandler] operator[==] Other[null] operator[SEP] identifier[aRealParseErrorHandler] operator[=] identifier[getDefaultParseErrorHandler] operator[SEP] operator[SEP] operator[SEP] identifier[ICSSParseExceptionCallback] identifier[aRealParseExceptionHandler] operator[=] identifier[aSettings] operator[SEP] identifier[getCustomExceptionHandler] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[aRealParseExceptionHandler] operator[==] Other[null] operator[SEP] identifier[aRealParseExceptionHandler] operator[=] identifier[getDefaultParseExceptionHandler] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[boolean] identifier[bBrowserCompliantMode] operator[=] identifier[aSettings] operator[SEP] identifier[isBrowserCompliantMode] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[CSSNode] identifier[aNode] operator[=] identifier[_readStyleSheet] operator[SEP] identifier[aCharStream] , identifier[eVersion] , identifier[aRealParseErrorHandler] , identifier[aRealParseExceptionHandler] , identifier[bBrowserCompliantMode] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[aNode] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] identifier[ICSSInterpretErrorHandler] identifier[aRealInterpretErrorHandler] operator[=] identifier[aSettings] operator[SEP] identifier[getInterpretErrorHandler] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[aRealInterpretErrorHandler] operator[==] Other[null] operator[SEP] identifier[aRealInterpretErrorHandler] operator[=] identifier[getDefaultInterpretErrorHandler] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[CSSHandler] operator[SEP] identifier[readCascadingStyleSheetFromNode] operator[SEP] identifier[eVersion] , identifier[aNode] , identifier[aRealInterpretErrorHandler] operator[SEP] operator[SEP] } Keyword[finally] { identifier[StreamHelper] operator[SEP] identifier[close] operator[SEP] identifier[aReader] operator[SEP] operator[SEP] } }
public static double getPvalue(TransposeDataCollection transposeDataCollection) { if(transposeDataCollection.size()!=2) { throw new IllegalArgumentException("The collection must contain observations from 2 groups."); } Object[] keys = transposeDataCollection.keySet().toArray(); //counter of uncencored internalData in each group Map<Object, Integer> r = new HashMap<>(); r.put(keys[0], 0); r.put(keys[1], 0); List<Object> mergedUncensoredData = new ArrayList<>(); for(Map.Entry<Object, FlatDataCollection> entry : transposeDataCollection.entrySet()) { Object j = entry.getKey(); FlatDataCollection flatDataCollection = entry.getValue(); for(Object value : flatDataCollection) { if(!value.toString().endsWith(CensoredDescriptives.CENSORED_NUMBER_POSTFIX)) { //only the uncencored internalData mergedUncensoredData.add(value); r.put(j, r.get(j)+1); } } } Collections.sort(mergedUncensoredData, (Object o1, Object o2) -> { double v1 = TypeInference.toDouble(o1); double v2 = TypeInference.toDouble(o2); if(v1>v2) { return 1; } else if(v1<v2) { return -1; } return 0; }); AssociativeArray2D testTable = new AssociativeArray2D(); for(Object ti : mergedUncensoredData) { Double tiValue = TypeInference.toDouble(ti); Object value = testTable.get2d(ti, "mi"); if(value==null) { testTable.put2d(ti, "mi", 1); testTable.put2d(ti, "r0ti", 0); testTable.put2d(ti, "r1ti", 0); } else { testTable.put2d(ti, "mi", ((Integer)value) +1); continue; //continue in order not to count twice the r*ti below } //calculate the r*ti: the number of observations (both cencored and uncencored) which are larger than ti for(Map.Entry<Object, FlatDataCollection> entry : transposeDataCollection.entrySet()) { Object j = entry.getKey(); FlatDataCollection flatDataCollection = entry.getValue(); int jIndex = (j.equals(keys[1]))?1:0; //calculate the r*ti: the number of observations (both cencored and uncencored) which are larger than $ti String rJtiKey="r"+String.valueOf(jIndex)+"ti"; for(Object value2 : flatDataCollection) { double v; String str = value2.toString(); if(str.endsWith(CensoredDescriptives.CENSORED_NUMBER_POSTFIX)) { //censored internalData encoded as 4.3+ or -4.3+ v = Double.valueOf(str.substring(0,str.length()-CensoredDescriptives.CENSORED_NUMBER_POSTFIX.length())); //remove the trailing char and convert it to double } else { //uncensored internalData v = TypeInference.toDouble(value2); //convert it to double } if(v>=tiValue) { testTable.put2d(ti, rJtiKey, (Integer)testTable.get2d(ti, rJtiKey) +1); } } } } //mergedUncensoredData = null; double U = (double)r.get(keys[1]); double VarU =0.0; for(Map.Entry<Object, AssociativeArray> entry : testTable.entrySet()) { //Object key = entry.getKey(); AssociativeArray testRow = entry.getValue(); double r0ti=testRow.getDouble("r0ti"); double r1ti=testRow.getDouble("r1ti"); double mi = testRow.getDouble("mi"); double rti= r0ti+r1ti; double Ai= r1ti/rti; U-=mi*Ai; VarU+=((mi*(rti-mi))/(rti-1.0))*Ai*(1.0-Ai); } //testTable = null; double Z=U/Math.sqrt(VarU); double pvalue = scoreToPvalue(Z); return pvalue; }
class class_name[name] begin[{] method[getPvalue, return_type[type[double]], modifier[public static], parameter[transposeDataCollection]] begin[{] if[binary_operation[call[transposeDataCollection.size, parameter[]], !=, literal[2]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="The collection must contain observations from 2 groups.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[Object], keys] local_variable[type[Map], r] call[r.put, parameter[member[.keys], literal[0]]] call[r.put, parameter[member[.keys], literal[0]]] local_variable[type[List], mergedUncensoredData] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None), name=j)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None), name=flatDataCollection)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=FlatDataCollection, sub_type=None)), ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=['!'], qualifier=value, selectors=[MethodInvocation(arguments=[MemberReference(member=CENSORED_NUMBER_POSTFIX, postfix_operators=[], prefix_operators=[], qualifier=CensoredDescriptives, selectors=[])], member=endsWith, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=mergedUncensoredData, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=r, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+)], member=put, postfix_operators=[], prefix_operators=[], qualifier=r, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=flatDataCollection, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=value)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=entrySet, postfix_operators=[], prefix_operators=[], qualifier=transposeDataCollection, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=entry)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Map, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=FlatDataCollection, sub_type=None))], dimensions=None, name=Entry, sub_type=None)))), label=None) call[Collections.sort, parameter[member[.mergedUncensoredData], LambdaExpression(body=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=o1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=toDouble, postfix_operators=[], prefix_operators=[], qualifier=TypeInference, selectors=[], type_arguments=None), name=v1)], modifiers=set(), type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=o2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=toDouble, postfix_operators=[], prefix_operators=[], qualifier=TypeInference, selectors=[], type_arguments=None), name=v2)], modifiers=set(), type=BasicType(dimensions=[], name=double)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=v1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=v2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=v1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=v2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)])), ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), label=None)], parameters=[FormalParameter(annotations=[], modifiers=set(), name=o1, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None), varargs=False), FormalParameter(annotations=[], modifiers=set(), name=o2, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None), varargs=False)])]] local_variable[type[AssociativeArray2D], testTable] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=ti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=toDouble, postfix_operators=[], prefix_operators=[], qualifier=TypeInference, selectors=[], type_arguments=None), name=tiValue)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Double, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=ti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="mi")], member=get2d, postfix_operators=[], prefix_operators=[], qualifier=testTable, selectors=[], type_arguments=None), name=value)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=ti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="mi"), BinaryOperation(operandl=Cast(expression=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=Integer, sub_type=None)), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+)], member=put2d, postfix_operators=[], prefix_operators=[], qualifier=testTable, selectors=[], type_arguments=None), label=None), ContinueStatement(goto=None, label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=ti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="mi"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=put2d, postfix_operators=[], prefix_operators=[], qualifier=testTable, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=ti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="r0ti"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=put2d, postfix_operators=[], prefix_operators=[], qualifier=testTable, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=ti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="r1ti"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=put2d, postfix_operators=[], prefix_operators=[], qualifier=testTable, selectors=[], type_arguments=None), label=None)])), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getKey, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None), name=j)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None), name=flatDataCollection)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=FlatDataCollection, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=keys, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1))])], member=equals, postfix_operators=[], prefix_operators=[], qualifier=j, selectors=[], type_arguments=None), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)), name=jIndex)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="r"), operandr=MethodInvocation(arguments=[MemberReference(member=jIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="ti"), operator=+), name=rJtiKey)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=v)], modifiers=set(), type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=value2, selectors=[], type_arguments=None), name=str)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=CENSORED_NUMBER_POSTFIX, postfix_operators=[], prefix_operators=[], qualifier=CensoredDescriptives, selectors=[])], member=endsWith, postfix_operators=[], prefix_operators=[], qualifier=str, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=v, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=value2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=toDouble, postfix_operators=[], prefix_operators=[], qualifier=TypeInference, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=v, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=str, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=CensoredDescriptives.CENSORED_NUMBER_POSTFIX, selectors=[], type_arguments=None), operator=-)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=str, selectors=[], type_arguments=None)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None)), label=None)])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=v, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=tiValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=ti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=rJtiKey, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=Cast(expression=MethodInvocation(arguments=[MemberReference(member=ti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=rJtiKey, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get2d, postfix_operators=[], prefix_operators=[], qualifier=testTable, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Integer, sub_type=None)), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+)], member=put2d, postfix_operators=[], prefix_operators=[], qualifier=testTable, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=flatDataCollection, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=value2)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=entrySet, postfix_operators=[], prefix_operators=[], qualifier=transposeDataCollection, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=entry)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Map, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=FlatDataCollection, sub_type=None))], dimensions=None, name=Entry, sub_type=None)))), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=mergedUncensoredData, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=ti)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))), label=None) local_variable[type[double], U] local_variable[type[double], VarU] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getValue, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None), name=testRow)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=AssociativeArray, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="r0ti")], member=getDouble, postfix_operators=[], prefix_operators=[], qualifier=testRow, selectors=[], type_arguments=None), name=r0ti)], modifiers=set(), type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="r1ti")], member=getDouble, postfix_operators=[], prefix_operators=[], qualifier=testRow, selectors=[], type_arguments=None), name=r1ti)], modifiers=set(), type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="mi")], member=getDouble, postfix_operators=[], prefix_operators=[], qualifier=testRow, selectors=[], type_arguments=None), name=mi)], modifiers=set(), type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=r0ti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=r1ti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), name=rti)], modifiers=set(), type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=r1ti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=rti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=/), name=Ai)], modifiers=set(), type=BasicType(dimensions=[], name=double)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=U, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=-=, value=BinaryOperation(operandl=MemberReference(member=mi, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=Ai, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=VarU, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=mi, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=rti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=mi, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-), operator=*), operandr=BinaryOperation(operandl=MemberReference(member=rti, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1.0), operator=-), operator=/), operandr=MemberReference(member=Ai, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*), operandr=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1.0), operandr=MemberReference(member=Ai, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-), operator=*)), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=entrySet, postfix_operators=[], prefix_operators=[], qualifier=testTable, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=entry)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Map, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=AssociativeArray, sub_type=None))], dimensions=None, name=Entry, sub_type=None)))), label=None) local_variable[type[double], Z] local_variable[type[double], pvalue] return[member[.pvalue]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[double] identifier[getPvalue] operator[SEP] identifier[TransposeDataCollection] identifier[transposeDataCollection] operator[SEP] { Keyword[if] operator[SEP] identifier[transposeDataCollection] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[!=] Other[2] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[Object] operator[SEP] operator[SEP] identifier[keys] operator[=] identifier[transposeDataCollection] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] identifier[toArray] operator[SEP] operator[SEP] operator[SEP] identifier[Map] operator[<] identifier[Object] , identifier[Integer] operator[>] identifier[r] operator[=] Keyword[new] identifier[HashMap] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[r] operator[SEP] identifier[put] operator[SEP] identifier[keys] operator[SEP] Other[0] operator[SEP] , Other[0] operator[SEP] operator[SEP] identifier[r] operator[SEP] identifier[put] operator[SEP] identifier[keys] operator[SEP] Other[1] operator[SEP] , Other[0] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[Object] operator[>] identifier[mergedUncensoredData] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[Object] , identifier[FlatDataCollection] operator[>] identifier[entry] operator[:] identifier[transposeDataCollection] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[SEP] { identifier[Object] identifier[j] operator[=] identifier[entry] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] identifier[FlatDataCollection] identifier[flatDataCollection] operator[=] identifier[entry] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Object] identifier[value] operator[:] identifier[flatDataCollection] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[value] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[endsWith] operator[SEP] identifier[CensoredDescriptives] operator[SEP] identifier[CENSORED_NUMBER_POSTFIX] operator[SEP] operator[SEP] { identifier[mergedUncensoredData] operator[SEP] identifier[add] operator[SEP] identifier[value] operator[SEP] operator[SEP] identifier[r] operator[SEP] identifier[put] operator[SEP] identifier[j] , identifier[r] operator[SEP] identifier[get] operator[SEP] identifier[j] operator[SEP] operator[+] Other[1] operator[SEP] operator[SEP] } } } identifier[Collections] operator[SEP] identifier[sort] operator[SEP] identifier[mergedUncensoredData] , operator[SEP] identifier[Object] identifier[o1] , identifier[Object] identifier[o2] operator[SEP] operator[->] { Keyword[double] identifier[v1] operator[=] identifier[TypeInference] operator[SEP] identifier[toDouble] operator[SEP] identifier[o1] operator[SEP] operator[SEP] Keyword[double] identifier[v2] operator[=] identifier[TypeInference] operator[SEP] identifier[toDouble] operator[SEP] identifier[o2] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[v1] operator[>] identifier[v2] operator[SEP] { Keyword[return] Other[1] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[v1] operator[<] identifier[v2] operator[SEP] { Keyword[return] operator[-] Other[1] operator[SEP] } Keyword[return] Other[0] operator[SEP] } operator[SEP] operator[SEP] identifier[AssociativeArray2D] identifier[testTable] operator[=] Keyword[new] identifier[AssociativeArray2D] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Object] identifier[ti] operator[:] identifier[mergedUncensoredData] operator[SEP] { identifier[Double] identifier[tiValue] operator[=] identifier[TypeInference] operator[SEP] identifier[toDouble] operator[SEP] identifier[ti] operator[SEP] operator[SEP] identifier[Object] identifier[value] operator[=] identifier[testTable] operator[SEP] identifier[get2d] operator[SEP] identifier[ti] , literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] { identifier[testTable] operator[SEP] identifier[put2d] operator[SEP] identifier[ti] , literal[String] , Other[1] operator[SEP] operator[SEP] identifier[testTable] operator[SEP] identifier[put2d] operator[SEP] identifier[ti] , literal[String] , Other[0] operator[SEP] operator[SEP] identifier[testTable] operator[SEP] identifier[put2d] operator[SEP] identifier[ti] , literal[String] , Other[0] operator[SEP] operator[SEP] } Keyword[else] { identifier[testTable] operator[SEP] identifier[put2d] operator[SEP] identifier[ti] , literal[String] , operator[SEP] operator[SEP] identifier[Integer] operator[SEP] identifier[value] operator[SEP] operator[+] Other[1] operator[SEP] operator[SEP] Keyword[continue] operator[SEP] } Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[Object] , identifier[FlatDataCollection] operator[>] identifier[entry] operator[:] identifier[transposeDataCollection] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[SEP] { identifier[Object] identifier[j] operator[=] identifier[entry] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] identifier[FlatDataCollection] identifier[flatDataCollection] operator[=] identifier[entry] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[jIndex] operator[=] operator[SEP] identifier[j] operator[SEP] identifier[equals] operator[SEP] identifier[keys] operator[SEP] Other[1] operator[SEP] operator[SEP] operator[SEP] operator[?] Other[1] operator[:] Other[0] operator[SEP] identifier[String] identifier[rJtiKey] operator[=] literal[String] operator[+] identifier[String] operator[SEP] identifier[valueOf] operator[SEP] identifier[jIndex] operator[SEP] operator[+] literal[String] operator[SEP] Keyword[for] operator[SEP] identifier[Object] identifier[value2] operator[:] identifier[flatDataCollection] operator[SEP] { Keyword[double] identifier[v] operator[SEP] identifier[String] identifier[str] operator[=] identifier[value2] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[str] operator[SEP] identifier[endsWith] operator[SEP] identifier[CensoredDescriptives] operator[SEP] identifier[CENSORED_NUMBER_POSTFIX] operator[SEP] operator[SEP] { identifier[v] operator[=] identifier[Double] operator[SEP] identifier[valueOf] operator[SEP] identifier[str] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[str] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[-] identifier[CensoredDescriptives] operator[SEP] identifier[CENSORED_NUMBER_POSTFIX] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[v] operator[=] identifier[TypeInference] operator[SEP] identifier[toDouble] operator[SEP] identifier[value2] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[v] operator[>=] identifier[tiValue] operator[SEP] { identifier[testTable] operator[SEP] identifier[put2d] operator[SEP] identifier[ti] , identifier[rJtiKey] , operator[SEP] identifier[Integer] operator[SEP] identifier[testTable] operator[SEP] identifier[get2d] operator[SEP] identifier[ti] , identifier[rJtiKey] operator[SEP] operator[+] Other[1] operator[SEP] operator[SEP] } } } } Keyword[double] identifier[U] operator[=] operator[SEP] Keyword[double] operator[SEP] identifier[r] operator[SEP] identifier[get] operator[SEP] identifier[keys] operator[SEP] Other[1] operator[SEP] operator[SEP] operator[SEP] Keyword[double] identifier[VarU] operator[=] literal[Float] operator[SEP] Keyword[for] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[Object] , identifier[AssociativeArray] operator[>] identifier[entry] operator[:] identifier[testTable] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[SEP] { identifier[AssociativeArray] identifier[testRow] operator[=] identifier[entry] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] Keyword[double] identifier[r0ti] operator[=] identifier[testRow] operator[SEP] identifier[getDouble] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[double] identifier[r1ti] operator[=] identifier[testRow] operator[SEP] identifier[getDouble] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[double] identifier[mi] operator[=] identifier[testRow] operator[SEP] identifier[getDouble] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[double] identifier[rti] operator[=] identifier[r0ti] operator[+] identifier[r1ti] operator[SEP] Keyword[double] identifier[Ai] operator[=] identifier[r1ti] operator[/] identifier[rti] operator[SEP] identifier[U] operator[-=] identifier[mi] operator[*] identifier[Ai] operator[SEP] identifier[VarU] operator[+=] operator[SEP] operator[SEP] identifier[mi] operator[*] operator[SEP] identifier[rti] operator[-] identifier[mi] operator[SEP] operator[SEP] operator[/] operator[SEP] identifier[rti] operator[-] literal[Float] operator[SEP] operator[SEP] operator[*] identifier[Ai] operator[*] operator[SEP] literal[Float] operator[-] identifier[Ai] operator[SEP] operator[SEP] } Keyword[double] identifier[Z] operator[=] identifier[U] operator[/] identifier[Math] operator[SEP] identifier[sqrt] operator[SEP] identifier[VarU] operator[SEP] operator[SEP] Keyword[double] identifier[pvalue] operator[=] identifier[scoreToPvalue] operator[SEP] identifier[Z] operator[SEP] operator[SEP] Keyword[return] identifier[pvalue] operator[SEP] }
public SmiType createIntegerType(IdToken idToken, IntKeywordToken intToken, Token applicationTagToken, List<SmiNamedNumber> namedNumbers, List<SmiRange> rangeConstraints) { if (idToken == null && intToken.getPrimitiveType() == INTEGER && namedNumbers == null && rangeConstraints == null) { return SmiConstants.INTEGER_TYPE; } else if (idToken != null || namedNumbers != null || rangeConstraints != null) { SmiType type = createPotentiallyTaggedType(idToken, applicationTagToken); if (intToken.getPrimitiveType() == INTEGER) { type.setBaseType(SmiConstants.INTEGER_TYPE); } else { type.setBaseType(new SmiReferencedType(intToken, m_module)); } type.setEnumValues(namedNumbers); type.setRangeConstraints(rangeConstraints); return type; } return new SmiReferencedType(intToken, m_module); }
class class_name[name] begin[{] method[createIntegerType, return_type[type[SmiType]], modifier[public], parameter[idToken, intToken, applicationTagToken, namedNumbers, rangeConstraints]] begin[{] if[binary_operation[binary_operation[binary_operation[binary_operation[member[.idToken], ==, literal[null]], &&, binary_operation[call[intToken.getPrimitiveType, parameter[]], ==, member[.INTEGER]]], &&, binary_operation[member[.namedNumbers], ==, literal[null]]], &&, binary_operation[member[.rangeConstraints], ==, literal[null]]]] begin[{] return[member[SmiConstants.INTEGER_TYPE]] else begin[{] if[binary_operation[binary_operation[binary_operation[member[.idToken], !=, literal[null]], ||, binary_operation[member[.namedNumbers], !=, literal[null]]], ||, binary_operation[member[.rangeConstraints], !=, literal[null]]]] begin[{] local_variable[type[SmiType], type] if[binary_operation[call[intToken.getPrimitiveType, parameter[]], ==, member[.INTEGER]]] begin[{] call[type.setBaseType, parameter[member[SmiConstants.INTEGER_TYPE]]] else begin[{] call[type.setBaseType, parameter[ClassCreator(arguments=[MemberReference(member=intToken, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=m_module, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SmiReferencedType, sub_type=None))]] end[}] call[type.setEnumValues, parameter[member[.namedNumbers]]] call[type.setRangeConstraints, parameter[member[.rangeConstraints]]] return[member[.type]] else begin[{] None end[}] end[}] return[ClassCreator(arguments=[MemberReference(member=intToken, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=m_module, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SmiReferencedType, sub_type=None))] end[}] END[}]
Keyword[public] identifier[SmiType] identifier[createIntegerType] operator[SEP] identifier[IdToken] identifier[idToken] , identifier[IntKeywordToken] identifier[intToken] , identifier[Token] identifier[applicationTagToken] , identifier[List] operator[<] identifier[SmiNamedNumber] operator[>] identifier[namedNumbers] , identifier[List] operator[<] identifier[SmiRange] operator[>] identifier[rangeConstraints] operator[SEP] { Keyword[if] operator[SEP] identifier[idToken] operator[==] Other[null] operator[&&] identifier[intToken] operator[SEP] identifier[getPrimitiveType] operator[SEP] operator[SEP] operator[==] identifier[INTEGER] operator[&&] identifier[namedNumbers] operator[==] Other[null] operator[&&] identifier[rangeConstraints] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[SmiConstants] operator[SEP] identifier[INTEGER_TYPE] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[idToken] operator[!=] Other[null] operator[||] identifier[namedNumbers] operator[!=] Other[null] operator[||] identifier[rangeConstraints] operator[!=] Other[null] operator[SEP] { identifier[SmiType] identifier[type] operator[=] identifier[createPotentiallyTaggedType] operator[SEP] identifier[idToken] , identifier[applicationTagToken] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[intToken] operator[SEP] identifier[getPrimitiveType] operator[SEP] operator[SEP] operator[==] identifier[INTEGER] operator[SEP] { identifier[type] operator[SEP] identifier[setBaseType] operator[SEP] identifier[SmiConstants] operator[SEP] identifier[INTEGER_TYPE] operator[SEP] operator[SEP] } Keyword[else] { identifier[type] operator[SEP] identifier[setBaseType] operator[SEP] Keyword[new] identifier[SmiReferencedType] operator[SEP] identifier[intToken] , identifier[m_module] operator[SEP] operator[SEP] operator[SEP] } identifier[type] operator[SEP] identifier[setEnumValues] operator[SEP] identifier[namedNumbers] operator[SEP] operator[SEP] identifier[type] operator[SEP] identifier[setRangeConstraints] operator[SEP] identifier[rangeConstraints] operator[SEP] operator[SEP] Keyword[return] identifier[type] operator[SEP] } Keyword[return] Keyword[new] identifier[SmiReferencedType] operator[SEP] identifier[intToken] , identifier[m_module] operator[SEP] operator[SEP] }
@Override public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) { logger.trace("Handle Message Switch Multi Level Request"); logger.debug(String.format("Received Switch Multi Level Request for Node ID = %d", this.getNode().getNodeId())); int command = serialMessage.getMessagePayloadByte(offset); switch (command) { case SWITCH_MULTILEVEL_SET: case SWITCH_MULTILEVEL_GET: case SWITCH_MULTILEVEL_SUPPORTED_GET: case SWITCH_MULTILEVEL_SUPPORTED_REPORT: logger.warn(String.format("Command 0x%02X not implemented.", command)); case SWITCH_MULTILEVEL_START_LEVEL_CHANGE: return; case SWITCH_MULTILEVEL_STOP_LEVEL_CHANGE: logger.debug("Process Switch Multi Level Stop Level Change"); // request level after dimming logger.debug("Requesting level from node {}, endpoint {}", this.getNode().getNodeId(), endpoint); this.getController().requestValue(this.getNode().getNodeId(), endpoint); break; case SWITCH_MULTILEVEL_REPORT: logger.trace("Process Switch Multi Level Report"); int value = serialMessage.getMessagePayloadByte(offset + 1); logger.debug(String.format("Switch Multi Level report from nodeId = %d, value = 0x%02X", this.getNode().getNodeId(), value)); Object eventValue; if (value == 0) { eventValue = "OFF"; } else if (value < 99) { eventValue = value; } else if (value == 99) { eventValue = "ON"; } else { // don't send an update event. read back the dimmer value. this.getController().requestValue(this.getNode().getNodeId(), endpoint); return; } this.level = value; ZWaveEvent zEvent = new ZWaveEvent(ZWaveEvent.ZWaveEventType.DIMMER_EVENT, this.getNode().getNodeId(), endpoint, eventValue); this.getController().notifyEventListeners(zEvent); break; default: logger.warn(String.format("Unsupported Command 0x%02X for command class %s (0x%02X).", command, this.getCommandClass().getLabel(), this.getCommandClass().getKey())); } }
class class_name[name] begin[{] method[handleApplicationCommandRequest, return_type[void], modifier[public], parameter[serialMessage, offset, endpoint]] begin[{] call[logger.trace, parameter[literal["Handle Message Switch Multi Level Request"]]] call[logger.debug, parameter[call[String.format, parameter[literal["Received Switch Multi Level Request for Node ID = %d"], THIS[call[None.getNode, parameter[]]call[None.getNodeId, parameter[]]]]]]] local_variable[type[int], command] SwitchStatement(cases=[SwitchStatementCase(case=['SWITCH_MULTILEVEL_SET', 'SWITCH_MULTILEVEL_GET', 'SWITCH_MULTILEVEL_SUPPORTED_GET', 'SWITCH_MULTILEVEL_SUPPORTED_REPORT'], statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Command 0x%02X not implemented."), MemberReference(member=command, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=format, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None)], member=warn, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['SWITCH_MULTILEVEL_START_LEVEL_CHANGE'], statements=[ReturnStatement(expression=None, label=None)]), SwitchStatementCase(case=['SWITCH_MULTILEVEL_STOP_LEVEL_CHANGE'], statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Process Switch Multi Level Stop Level Change")], member=debug, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Requesting level from node {}, endpoint {}"), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getNode, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=getNodeId, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), MemberReference(member=endpoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=debug, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None), StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getController, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getNode, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=getNodeId, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), MemberReference(member=endpoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=requestValue, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['SWITCH_MULTILEVEL_REPORT'], statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Process Switch Multi Level Report")], member=trace, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=offset, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+)], member=getMessagePayloadByte, postfix_operators=[], prefix_operators=[], qualifier=serialMessage, selectors=[], type_arguments=None), name=value)], modifiers=set(), type=BasicType(dimensions=[], name=int)), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Switch Multi Level report from nodeId = %d, value = 0x%02X"), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getNode, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=getNodeId, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=format, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None)], member=debug, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=eventValue)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=99), operator=<), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=99), operator===), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getController, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getNode, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=getNodeId, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), MemberReference(member=endpoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=requestValue, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None), ReturnStatement(expression=None, label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=eventValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="ON")), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=eventValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=eventValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="OFF")), label=None)])), StatementExpression(expression=Assignment(expressionl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=level, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), type==, value=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=DIMMER_EVENT, postfix_operators=[], prefix_operators=[], qualifier=ZWaveEvent.ZWaveEventType, selectors=[]), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getNode, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=getNodeId, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), MemberReference(member=endpoint, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=eventValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ZWaveEvent, sub_type=None)), name=zEvent)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ZWaveEvent, sub_type=None)), StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getController, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MemberReference(member=zEvent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=notifyEventListeners, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unsupported Command 0x%02X for command class %s (0x%02X)."), MemberReference(member=command, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getCommandClass, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=getLabel, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=getCommandClass, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=getKey, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)])], member=format, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None)], member=warn, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)])], expression=MemberReference(member=command, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[handleApplicationCommandRequest] operator[SEP] identifier[SerialMessage] identifier[serialMessage] , Keyword[int] identifier[offset] , Keyword[int] identifier[endpoint] operator[SEP] { identifier[logger] operator[SEP] identifier[trace] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[logger] operator[SEP] identifier[debug] operator[SEP] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , Keyword[this] operator[SEP] identifier[getNode] operator[SEP] operator[SEP] operator[SEP] identifier[getNodeId] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[command] operator[=] identifier[serialMessage] operator[SEP] identifier[getMessagePayloadByte] operator[SEP] identifier[offset] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[command] operator[SEP] { Keyword[case] identifier[SWITCH_MULTILEVEL_SET] operator[:] Keyword[case] identifier[SWITCH_MULTILEVEL_GET] operator[:] Keyword[case] identifier[SWITCH_MULTILEVEL_SUPPORTED_GET] operator[:] Keyword[case] identifier[SWITCH_MULTILEVEL_SUPPORTED_REPORT] operator[:] identifier[logger] operator[SEP] identifier[warn] operator[SEP] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[command] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[SWITCH_MULTILEVEL_START_LEVEL_CHANGE] operator[:] Keyword[return] operator[SEP] Keyword[case] identifier[SWITCH_MULTILEVEL_STOP_LEVEL_CHANGE] operator[:] identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] , Keyword[this] operator[SEP] identifier[getNode] operator[SEP] operator[SEP] operator[SEP] identifier[getNodeId] operator[SEP] operator[SEP] , identifier[endpoint] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[getController] operator[SEP] operator[SEP] operator[SEP] identifier[requestValue] operator[SEP] Keyword[this] operator[SEP] identifier[getNode] operator[SEP] operator[SEP] operator[SEP] identifier[getNodeId] operator[SEP] operator[SEP] , identifier[endpoint] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[SWITCH_MULTILEVEL_REPORT] operator[:] identifier[logger] operator[SEP] identifier[trace] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[int] identifier[value] operator[=] identifier[serialMessage] operator[SEP] identifier[getMessagePayloadByte] operator[SEP] identifier[offset] operator[+] Other[1] operator[SEP] operator[SEP] identifier[logger] operator[SEP] identifier[debug] operator[SEP] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , Keyword[this] operator[SEP] identifier[getNode] operator[SEP] operator[SEP] operator[SEP] identifier[getNodeId] operator[SEP] operator[SEP] , identifier[value] operator[SEP] operator[SEP] operator[SEP] identifier[Object] identifier[eventValue] operator[SEP] Keyword[if] operator[SEP] identifier[value] operator[==] Other[0] operator[SEP] { identifier[eventValue] operator[=] literal[String] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[value] operator[<] Other[99] operator[SEP] { identifier[eventValue] operator[=] identifier[value] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[value] operator[==] Other[99] operator[SEP] { identifier[eventValue] operator[=] literal[String] operator[SEP] } Keyword[else] { Keyword[this] operator[SEP] identifier[getController] operator[SEP] operator[SEP] operator[SEP] identifier[requestValue] operator[SEP] Keyword[this] operator[SEP] identifier[getNode] operator[SEP] operator[SEP] operator[SEP] identifier[getNodeId] operator[SEP] operator[SEP] , identifier[endpoint] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } Keyword[this] operator[SEP] identifier[level] operator[=] identifier[value] operator[SEP] identifier[ZWaveEvent] identifier[zEvent] operator[=] Keyword[new] identifier[ZWaveEvent] operator[SEP] identifier[ZWaveEvent] operator[SEP] identifier[ZWaveEventType] operator[SEP] identifier[DIMMER_EVENT] , Keyword[this] operator[SEP] identifier[getNode] operator[SEP] operator[SEP] operator[SEP] identifier[getNodeId] operator[SEP] operator[SEP] , identifier[endpoint] , identifier[eventValue] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[getController] operator[SEP] operator[SEP] operator[SEP] identifier[notifyEventListeners] operator[SEP] identifier[zEvent] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] identifier[logger] operator[SEP] identifier[warn] operator[SEP] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[command] , Keyword[this] operator[SEP] identifier[getCommandClass] operator[SEP] operator[SEP] operator[SEP] identifier[getLabel] operator[SEP] operator[SEP] , Keyword[this] operator[SEP] identifier[getCommandClass] operator[SEP] operator[SEP] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } }
@Override public X509Certificate getX509CertificateFromKeyStore(String keyStoreName) throws KeyStoreException, CertificateException { try { KeyStore ks = ksMgr.getJavaKeyStore(keyStoreName); if (ks == null) { throw new KeyStoreException("The keystore [" + keyStoreName + "] is not present in the configuration"); } else { String keyAlias = null; Enumeration<String> aliases = ks.aliases(); if (aliases != null) { while (aliases.hasMoreElements()) { String alias = aliases.nextElement(); if (ks.isKeyEntry(alias)) { if (keyAlias != null) return null; else keyAlias = alias; } } } if (keyAlias != null) { WSKeyStore wsKS = ksMgr.getKeyStore(keyStoreName); if (wsKS == null) { throw new CertificateException("The WSKeyStore [" + keyStoreName + "] is not present in the configuration"); } // get the private key Certificate cert = ks.getCertificate(keyAlias); if (cert instanceof X509Certificate) { return (X509Certificate) cert; } else { throw new CertificateException("The alias [" + keyAlias + "] is not an instance of X509Certificate"); } } } } catch (CertificateException e) { throw e; } catch (KeyStoreException e) { throw e; } catch (SSLException e) { throw new KeyStoreException(e.getLocalizedMessage(), e); } catch (Exception e) { throw new KeyStoreException("Unexpected error while loading the private key for alias from keystore: " + keyStoreName, e); } return null; }
class class_name[name] begin[{] method[getX509CertificateFromKeyStore, return_type[type[X509Certificate]], modifier[public], parameter[keyStoreName]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=keyStoreName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getJavaKeyStore, postfix_operators=[], prefix_operators=[], qualifier=ksMgr, selectors=[], type_arguments=None), name=ks)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=KeyStore, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=ks, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), name=keyAlias)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=aliases, postfix_operators=[], prefix_operators=[], qualifier=ks, selectors=[], type_arguments=None), name=aliases)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=Enumeration, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=aliases, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[WhileStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=nextElement, postfix_operators=[], prefix_operators=[], qualifier=aliases, selectors=[], type_arguments=None), name=alias)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=alias, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isKeyEntry, postfix_operators=[], prefix_operators=[], qualifier=ks, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=keyAlias, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=StatementExpression(expression=Assignment(expressionl=MemberReference(member=keyAlias, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=alias, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), label=None))]))]), condition=MethodInvocation(arguments=[], member=hasMoreElements, postfix_operators=[], prefix_operators=[], qualifier=aliases, selectors=[], type_arguments=None), label=None)])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=keyAlias, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=keyStoreName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getKeyStore, postfix_operators=[], prefix_operators=[], qualifier=ksMgr, selectors=[], type_arguments=None), name=wsKS)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=WSKeyStore, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=wsKS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="The WSKeyStore ["), operandr=MemberReference(member=keyStoreName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="] is not present in the configuration"), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CertificateException, sub_type=None)), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=keyAlias, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getCertificate, postfix_operators=[], prefix_operators=[], qualifier=ks, selectors=[], type_arguments=None), name=cert)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Certificate, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=cert, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=X509Certificate, sub_type=None), operator=instanceof), else_statement=BlockStatement(label=None, statements=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="The alias ["), operandr=MemberReference(member=keyAlias, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="] is not an instance of X509Certificate"), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CertificateException, sub_type=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=Cast(expression=MemberReference(member=cert, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=X509Certificate, sub_type=None)), label=None)]))]))]), label=None, then_statement=BlockStatement(label=None, statements=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="The keystore ["), operandr=MemberReference(member=keyStoreName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="] is not present in the configuration"), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=KeyStoreException, sub_type=None)), label=None)]))], catches=[CatchClause(block=[ThrowStatement(expression=MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['CertificateException'])), CatchClause(block=[ThrowStatement(expression=MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['KeyStoreException'])), CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=getLocalizedMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=KeyStoreException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['SSLException'])), CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unexpected error while loading the private key for alias from keystore: "), operandr=MemberReference(member=keyStoreName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=KeyStoreException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) return[literal[null]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[X509Certificate] identifier[getX509CertificateFromKeyStore] operator[SEP] identifier[String] identifier[keyStoreName] operator[SEP] Keyword[throws] identifier[KeyStoreException] , identifier[CertificateException] { Keyword[try] { identifier[KeyStore] identifier[ks] operator[=] identifier[ksMgr] operator[SEP] identifier[getJavaKeyStore] operator[SEP] identifier[keyStoreName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ks] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[KeyStoreException] operator[SEP] literal[String] operator[+] identifier[keyStoreName] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[else] { identifier[String] identifier[keyAlias] operator[=] Other[null] operator[SEP] identifier[Enumeration] operator[<] identifier[String] operator[>] identifier[aliases] operator[=] identifier[ks] operator[SEP] identifier[aliases] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[aliases] operator[!=] Other[null] operator[SEP] { Keyword[while] operator[SEP] identifier[aliases] operator[SEP] identifier[hasMoreElements] operator[SEP] operator[SEP] operator[SEP] { identifier[String] identifier[alias] operator[=] identifier[aliases] operator[SEP] identifier[nextElement] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ks] operator[SEP] identifier[isKeyEntry] operator[SEP] identifier[alias] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[keyAlias] operator[!=] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] Keyword[else] identifier[keyAlias] operator[=] identifier[alias] operator[SEP] } } } Keyword[if] operator[SEP] identifier[keyAlias] operator[!=] Other[null] operator[SEP] { identifier[WSKeyStore] identifier[wsKS] operator[=] identifier[ksMgr] operator[SEP] identifier[getKeyStore] operator[SEP] identifier[keyStoreName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[wsKS] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[CertificateException] operator[SEP] literal[String] operator[+] identifier[keyStoreName] operator[+] literal[String] operator[SEP] operator[SEP] } identifier[Certificate] identifier[cert] operator[=] identifier[ks] operator[SEP] identifier[getCertificate] operator[SEP] identifier[keyAlias] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[cert] Keyword[instanceof] identifier[X509Certificate] operator[SEP] { Keyword[return] operator[SEP] identifier[X509Certificate] operator[SEP] identifier[cert] operator[SEP] } Keyword[else] { Keyword[throw] Keyword[new] identifier[CertificateException] operator[SEP] literal[String] operator[+] identifier[keyAlias] operator[+] literal[String] operator[SEP] operator[SEP] } } } } Keyword[catch] operator[SEP] identifier[CertificateException] identifier[e] operator[SEP] { Keyword[throw] identifier[e] operator[SEP] } Keyword[catch] operator[SEP] identifier[KeyStoreException] identifier[e] operator[SEP] { Keyword[throw] identifier[e] operator[SEP] } Keyword[catch] operator[SEP] identifier[SSLException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[KeyStoreException] operator[SEP] identifier[e] operator[SEP] identifier[getLocalizedMessage] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[KeyStoreException] operator[SEP] literal[String] operator[+] identifier[keyStoreName] , identifier[e] operator[SEP] operator[SEP] } Keyword[return] Other[null] operator[SEP] }
public <T> void spliterator(Spliterator<T> s, ResultStream<T> result) { ArrayList<Spliterator<T>> splits = new ArrayList<>(); splits.add(s); int count = 2 * getTaskManager().getWorkers(); split(splits, count); int size = splits.size(); if (size == 1) { getTaskManager().run(new ComputeTask<T>(splits.get(0), result)); // _workers.compute(splits.get(0), new ResultSinkWrapper<T>(result)); return; } /* if (true) { throw new UnsupportedOperationException(L.l("fork unsupported for {0}", result)); } */ ServiceRefAmp serviceRef = ServiceRefAmp.current(); //ResultStreamAmp<T> resultAmp = (ResultStreamAmp<T>) result; ResultStreamJoin<T> join = new ResultStreamJoin<T>(result, serviceRef.inbox()); for (int i = 0; i < size; i++) { //resultSinkFork[i].begin(0); //_workers.compute(splits.get(i), new ResultSinkWrapper<T>(resultSinkFork[i])); getTaskManager().run(new ComputeTask<T>(splits.get(i), join.fork())); } join.ok(); }
class class_name[name] begin[{] method[spliterator, return_type[void], modifier[public], parameter[s, result]] begin[{] local_variable[type[ArrayList], splits] call[splits.add, parameter[member[.s]]] local_variable[type[int], count] call[.split, parameter[member[.splits], member[.count]]] local_variable[type[int], size] if[binary_operation[member[.size], ==, literal[1]]] begin[{] call[.getTaskManager, parameter[]] return[None] else begin[{] None end[}] local_variable[type[ServiceRefAmp], serviceRef] local_variable[type[ResultStreamJoin], join] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=getTaskManager, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=splits, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=fork, postfix_operators=[], prefix_operators=[], qualifier=join, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None))], dimensions=None, name=ComputeTask, sub_type=None))], member=run, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=size, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) call[join.ok, parameter[]] end[}] END[}]
Keyword[public] operator[<] identifier[T] operator[>] Keyword[void] identifier[spliterator] operator[SEP] identifier[Spliterator] operator[<] identifier[T] operator[>] identifier[s] , identifier[ResultStream] operator[<] identifier[T] operator[>] identifier[result] operator[SEP] { identifier[ArrayList] operator[<] identifier[Spliterator] operator[<] identifier[T] operator[>] operator[>] identifier[splits] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[splits] operator[SEP] identifier[add] operator[SEP] identifier[s] operator[SEP] operator[SEP] Keyword[int] identifier[count] operator[=] Other[2] operator[*] identifier[getTaskManager] operator[SEP] operator[SEP] operator[SEP] identifier[getWorkers] operator[SEP] operator[SEP] operator[SEP] identifier[split] operator[SEP] identifier[splits] , identifier[count] operator[SEP] operator[SEP] Keyword[int] identifier[size] operator[=] identifier[splits] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[size] operator[==] Other[1] operator[SEP] { identifier[getTaskManager] operator[SEP] operator[SEP] operator[SEP] identifier[run] operator[SEP] Keyword[new] identifier[ComputeTask] operator[<] identifier[T] operator[>] operator[SEP] identifier[splits] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] , identifier[result] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } identifier[ServiceRefAmp] identifier[serviceRef] operator[=] identifier[ServiceRefAmp] operator[SEP] identifier[current] operator[SEP] operator[SEP] operator[SEP] identifier[ResultStreamJoin] operator[<] identifier[T] operator[>] identifier[join] operator[=] Keyword[new] identifier[ResultStreamJoin] operator[<] identifier[T] operator[>] operator[SEP] identifier[result] , identifier[serviceRef] operator[SEP] identifier[inbox] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[size] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[getTaskManager] operator[SEP] operator[SEP] operator[SEP] identifier[run] operator[SEP] Keyword[new] identifier[ComputeTask] operator[<] identifier[T] operator[>] operator[SEP] identifier[splits] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] , identifier[join] operator[SEP] identifier[fork] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[join] operator[SEP] identifier[ok] operator[SEP] operator[SEP] operator[SEP] }
protected Class<?> findClass(String name) throws ClassNotFoundException { byte[] binaryRepresentation = persistenceHandler.lookup(name, typeDefinitions); if (binaryRepresentation == null) { throw new ClassNotFoundException(name); } else { try { byte[] transformed = classFileTransformer.transform(this, name, UNLOADED_TYPE, protectionDomain, binaryRepresentation); if (transformed != null) { binaryRepresentation = transformed; } return AccessController.doPrivileged(new ClassDefinitionAction(name, binaryRepresentation), accessControlContext); } catch (IllegalClassFormatException exception) { throw new IllegalStateException("The class file for " + name + " is not legal", exception); } } }
class class_name[name] begin[{] method[findClass, return_type[type[Class]], modifier[protected], parameter[name]] begin[{] local_variable[type[byte], binaryRepresentation] if[binary_operation[member[.binaryRepresentation], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ClassNotFoundException, sub_type=None)), label=None) else begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=UNLOADED_TYPE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=protectionDomain, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=binaryRepresentation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=transform, postfix_operators=[], prefix_operators=[], qualifier=classFileTransformer, selectors=[], type_arguments=None), name=transformed)], modifiers=set(), type=BasicType(dimensions=[None], name=byte)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=transformed, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=binaryRepresentation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=transformed, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)])), ReturnStatement(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=binaryRepresentation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ClassDefinitionAction, sub_type=None)), MemberReference(member=accessControlContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doPrivileged, postfix_operators=[], prefix_operators=[], qualifier=AccessController, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="The class file for "), operandr=MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" is not legal"), operator=+), MemberReference(member=exception, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalStateException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=exception, types=['IllegalClassFormatException']))], finally_block=None, label=None, resources=None) end[}] end[}] END[}]
Keyword[protected] identifier[Class] operator[<] operator[?] operator[>] identifier[findClass] operator[SEP] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] { Keyword[byte] operator[SEP] operator[SEP] identifier[binaryRepresentation] operator[=] identifier[persistenceHandler] operator[SEP] identifier[lookup] operator[SEP] identifier[name] , identifier[typeDefinitions] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[binaryRepresentation] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[ClassNotFoundException] operator[SEP] identifier[name] operator[SEP] operator[SEP] } Keyword[else] { Keyword[try] { Keyword[byte] operator[SEP] operator[SEP] identifier[transformed] operator[=] identifier[classFileTransformer] operator[SEP] identifier[transform] operator[SEP] Keyword[this] , identifier[name] , identifier[UNLOADED_TYPE] , identifier[protectionDomain] , identifier[binaryRepresentation] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[transformed] operator[!=] Other[null] operator[SEP] { identifier[binaryRepresentation] operator[=] identifier[transformed] operator[SEP] } Keyword[return] identifier[AccessController] operator[SEP] identifier[doPrivileged] operator[SEP] Keyword[new] identifier[ClassDefinitionAction] operator[SEP] identifier[name] , identifier[binaryRepresentation] operator[SEP] , identifier[accessControlContext] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IllegalClassFormatException] identifier[exception] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[String] operator[+] identifier[name] operator[+] literal[String] , identifier[exception] operator[SEP] operator[SEP] } } }
public void addLayerWithFilter(String resultTag, String serverLayerId, String filter) { // note: layer filter specification will be overwritten if it already // exists layerFilters.put(resultTag, new LayerFilterSpecification(serverLayerId, filter)); }
class class_name[name] begin[{] method[addLayerWithFilter, return_type[void], modifier[public], parameter[resultTag, serverLayerId, filter]] begin[{] call[layerFilters.put, parameter[member[.resultTag], ClassCreator(arguments=[MemberReference(member=serverLayerId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=filter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=LayerFilterSpecification, sub_type=None))]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addLayerWithFilter] operator[SEP] identifier[String] identifier[resultTag] , identifier[String] identifier[serverLayerId] , identifier[String] identifier[filter] operator[SEP] { identifier[layerFilters] operator[SEP] identifier[put] operator[SEP] identifier[resultTag] , Keyword[new] identifier[LayerFilterSpecification] operator[SEP] identifier[serverLayerId] , identifier[filter] operator[SEP] operator[SEP] operator[SEP] }
public void setParamTabEdDirectEditButtonStyle(String value) { try { m_userSettings.setDirectEditButtonStyle(Integer.parseInt(value)); } catch (Throwable t) { // should usually never happen } }
class class_name[name] begin[{] method[setParamTabEdDirectEditButtonStyle, return_type[void], modifier[public], parameter[value]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)], member=setDirectEditButtonStyle, postfix_operators=[], prefix_operators=[], qualifier=m_userSettings, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=t, types=['Throwable']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[setParamTabEdDirectEditButtonStyle] operator[SEP] identifier[String] identifier[value] operator[SEP] { Keyword[try] { identifier[m_userSettings] operator[SEP] identifier[setDirectEditButtonStyle] operator[SEP] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[value] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Throwable] identifier[t] operator[SEP] { } }
public void setDirectories(java.util.Collection<WorkspaceDirectory> directories) { if (directories == null) { this.directories = null; return; } this.directories = new com.amazonaws.internal.SdkInternalList<WorkspaceDirectory>(directories); }
class class_name[name] begin[{] method[setDirectories, return_type[void], modifier[public], parameter[directories]] begin[{] if[binary_operation[member[.directories], ==, literal[null]]] begin[{] assign[THIS[member[None.directories]], literal[null]] return[None] else begin[{] None end[}] assign[THIS[member[None.directories]], ClassCreator(arguments=[MemberReference(member=directories, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=com, sub_type=ReferenceType(arguments=None, dimensions=None, name=amazonaws, sub_type=ReferenceType(arguments=None, dimensions=None, name=internal, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=WorkspaceDirectory, sub_type=None))], dimensions=None, name=SdkInternalList, sub_type=None)))))] end[}] END[}]
Keyword[public] Keyword[void] identifier[setDirectories] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[WorkspaceDirectory] operator[>] identifier[directories] operator[SEP] { Keyword[if] operator[SEP] identifier[directories] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[directories] operator[=] Other[null] operator[SEP] Keyword[return] operator[SEP] } Keyword[this] operator[SEP] identifier[directories] operator[=] Keyword[new] identifier[com] operator[SEP] identifier[amazonaws] operator[SEP] identifier[internal] operator[SEP] identifier[SdkInternalList] operator[<] identifier[WorkspaceDirectory] operator[>] operator[SEP] identifier[directories] operator[SEP] operator[SEP] }
@NotNull @Size(max = 1000) @ApiModelProperty(required = true, value = "") public String getQuery() { return query; }
class class_name[name] begin[{] method[getQuery, return_type[type[String]], modifier[public], parameter[]] begin[{] return[member[.query]] end[}] END[}]
annotation[@] identifier[NotNull] annotation[@] identifier[Size] operator[SEP] identifier[max] operator[=] Other[1000] operator[SEP] annotation[@] identifier[ApiModelProperty] operator[SEP] identifier[required] operator[=] literal[boolean] , identifier[value] operator[=] literal[String] operator[SEP] Keyword[public] identifier[String] identifier[getQuery] operator[SEP] operator[SEP] { Keyword[return] identifier[query] operator[SEP] }
public int read() { while (rleRepeat < 1) { if (bwtBytesDecoded == bwtBlockLength) { return -1; } int nextByte = decodeNextBWTByte(); if (nextByte != rleLastDecodedByte) { // New byte, restart accumulation rleLastDecodedByte = nextByte; rleRepeat = 1; rleAccumulator = 1; crc.updateCRC(nextByte); } else { if (++rleAccumulator == 4) { // Accumulation complete, start repetition int rleRepeat = decodeNextBWTByte() + 1; this.rleRepeat = rleRepeat; rleAccumulator = 0; crc.updateCRC(nextByte, rleRepeat); } else { rleRepeat = 1; crc.updateCRC(nextByte); } } } rleRepeat--; return rleLastDecodedByte; }
class class_name[name] begin[{] method[read, return_type[type[int]], modifier[public], parameter[]] begin[{] while[binary_operation[member[.rleRepeat], <, literal[1]]] begin[{] if[binary_operation[member[.bwtBytesDecoded], ==, member[.bwtBlockLength]]] begin[{] return[literal[1]] else begin[{] None end[}] local_variable[type[int], nextByte] if[binary_operation[member[.nextByte], !=, member[.rleLastDecodedByte]]] begin[{] assign[member[.rleLastDecodedByte], member[.nextByte]] assign[member[.rleRepeat], literal[1]] assign[member[.rleAccumulator], literal[1]] call[crc.updateCRC, parameter[member[.nextByte]]] else begin[{] if[binary_operation[member[.rleAccumulator], ==, literal[4]]] begin[{] local_variable[type[int], rleRepeat] assign[THIS[member[None.rleRepeat]], member[.rleRepeat]] assign[member[.rleAccumulator], literal[0]] call[crc.updateCRC, parameter[member[.nextByte], member[.rleRepeat]]] else begin[{] assign[member[.rleRepeat], literal[1]] call[crc.updateCRC, parameter[member[.nextByte]]] end[}] end[}] end[}] member[.rleRepeat] return[member[.rleLastDecodedByte]] end[}] END[}]
Keyword[public] Keyword[int] identifier[read] operator[SEP] operator[SEP] { Keyword[while] operator[SEP] identifier[rleRepeat] operator[<] Other[1] operator[SEP] { Keyword[if] operator[SEP] identifier[bwtBytesDecoded] operator[==] identifier[bwtBlockLength] operator[SEP] { Keyword[return] operator[-] Other[1] operator[SEP] } Keyword[int] identifier[nextByte] operator[=] identifier[decodeNextBWTByte] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[nextByte] operator[!=] identifier[rleLastDecodedByte] operator[SEP] { identifier[rleLastDecodedByte] operator[=] identifier[nextByte] operator[SEP] identifier[rleRepeat] operator[=] Other[1] operator[SEP] identifier[rleAccumulator] operator[=] Other[1] operator[SEP] identifier[crc] operator[SEP] identifier[updateCRC] operator[SEP] identifier[nextByte] operator[SEP] operator[SEP] } Keyword[else] { Keyword[if] operator[SEP] operator[++] identifier[rleAccumulator] operator[==] Other[4] operator[SEP] { Keyword[int] identifier[rleRepeat] operator[=] identifier[decodeNextBWTByte] operator[SEP] operator[SEP] operator[+] Other[1] operator[SEP] Keyword[this] operator[SEP] identifier[rleRepeat] operator[=] identifier[rleRepeat] operator[SEP] identifier[rleAccumulator] operator[=] Other[0] operator[SEP] identifier[crc] operator[SEP] identifier[updateCRC] operator[SEP] identifier[nextByte] , identifier[rleRepeat] operator[SEP] operator[SEP] } Keyword[else] { identifier[rleRepeat] operator[=] Other[1] operator[SEP] identifier[crc] operator[SEP] identifier[updateCRC] operator[SEP] identifier[nextByte] operator[SEP] operator[SEP] } } } identifier[rleRepeat] operator[--] operator[SEP] Keyword[return] identifier[rleLastDecodedByte] operator[SEP] }
protected final Value decodeNumberLax(boolean minus) { char[] array = charArray; final int startIndex = __index; int index = __index; char currentChar; boolean doubleFloat = false; boolean foundDot = false; boolean foundSign = false; boolean foundExp = false; if (minus && index + 1 < array.length) { index++; } while (true) { currentChar = array[index]; if (isNumberDigit(currentChar)) { //noop } else if (currentChar <= 32) { //white break; } else if (isDelimiter(currentChar)) { break; } else if (isDecimalChar(currentChar)) { switch (currentChar) { case DECIMAL_POINT: if (foundDot || foundExp) { return decodeStringLax(); } foundDot = true; break; case LETTER_E: case LETTER_BIG_E: if (foundExp) { return decodeStringLax(); } foundExp = true; break; case MINUS: case PLUS: if (foundSign || !foundExp) { return decodeStringLax(); } if (foundExp && array[index - 1] != LETTER_E && array[index - 1] != LETTER_BIG_E) { return decodeStringLax(); } foundSign = true; break; } doubleFloat = true; } else { return decodeStringLax(); } index++; if (index >= array.length) break; } // Handle the case where the exponential number ends without the actual exponent if (foundExp) { char prevChar = array[index - 1]; if (prevChar == LETTER_E || prevChar == LETTER_BIG_E || prevChar == MINUS || prevChar == PLUS) { return decodeStringLax(); } } __index = index; __currentChar = currentChar; Type type = doubleFloat ? Type.DOUBLE : Type.INTEGER; return new NumberValue(chop, type, startIndex, __index, this.charArray); }
class class_name[name] begin[{] method[decodeNumberLax, return_type[type[Value]], modifier[final protected], parameter[minus]] begin[{] local_variable[type[char], array] local_variable[type[int], startIndex] local_variable[type[int], index] local_variable[type[char], currentChar] local_variable[type[boolean], doubleFloat] local_variable[type[boolean], foundDot] local_variable[type[boolean], foundSign] local_variable[type[boolean], foundExp] if[binary_operation[member[.minus], &&, binary_operation[binary_operation[member[.index], +, literal[1]], <, member[array.length]]]] begin[{] member[.index] else begin[{] None end[}] while[literal[true]] begin[{] assign[member[.currentChar], member[.array]] if[call[.isNumberDigit, parameter[member[.currentChar]]]] begin[{] else begin[{] if[binary_operation[member[.currentChar], <=, literal[32]]] begin[{] BreakStatement(goto=None, label=None) else begin[{] if[call[.isDelimiter, parameter[member[.currentChar]]]] begin[{] BreakStatement(goto=None, label=None) else begin[{] if[call[.isDecimalChar, parameter[member[.currentChar]]]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['DECIMAL_POINT'], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=foundDot, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=foundExp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=||), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=MethodInvocation(arguments=[], member=decodeStringLax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=foundDot, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['LETTER_E', 'LETTER_BIG_E'], statements=[IfStatement(condition=MemberReference(member=foundExp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=MethodInvocation(arguments=[], member=decodeStringLax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=foundExp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=['MINUS', 'PLUS'], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=foundSign, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=foundExp, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), operator=||), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=MethodInvocation(arguments=[], member=decodeStringLax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)])), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=foundExp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-))]), operandr=MemberReference(member=LETTER_E, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=!=), operator=&&), operandr=BinaryOperation(operandl=MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-))]), operandr=MemberReference(member=LETTER_BIG_E, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=!=), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=MethodInvocation(arguments=[], member=decodeStringLax, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=Assignment(expressionl=MemberReference(member=foundSign, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=currentChar, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) assign[member[.doubleFloat], literal[true]] else begin[{] return[call[.decodeStringLax, parameter[]]] end[}] end[}] end[}] end[}] member[.index] if[binary_operation[member[.index], >=, member[array.length]]] begin[{] BreakStatement(goto=None, label=None) else begin[{] None end[}] end[}] if[member[.foundExp]] begin[{] local_variable[type[char], prevChar] if[binary_operation[binary_operation[binary_operation[binary_operation[member[.prevChar], ==, member[.LETTER_E]], ||, binary_operation[member[.prevChar], ==, member[.LETTER_BIG_E]]], ||, binary_operation[member[.prevChar], ==, member[.MINUS]]], ||, binary_operation[member[.prevChar], ==, member[.PLUS]]]] begin[{] return[call[.decodeStringLax, parameter[]]] else begin[{] None end[}] else begin[{] None end[}] assign[member[.__index], member[.index]] assign[member[.__currentChar], member[.currentChar]] local_variable[type[Type], type] return[ClassCreator(arguments=[MemberReference(member=chop, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=startIndex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=__index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=charArray, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=NumberValue, sub_type=None))] end[}] END[}]
Keyword[protected] Keyword[final] identifier[Value] identifier[decodeNumberLax] operator[SEP] Keyword[boolean] identifier[minus] operator[SEP] { Keyword[char] operator[SEP] operator[SEP] identifier[array] operator[=] identifier[charArray] operator[SEP] Keyword[final] Keyword[int] identifier[startIndex] operator[=] identifier[__index] operator[SEP] Keyword[int] identifier[index] operator[=] identifier[__index] operator[SEP] Keyword[char] identifier[currentChar] operator[SEP] Keyword[boolean] identifier[doubleFloat] operator[=] literal[boolean] operator[SEP] Keyword[boolean] identifier[foundDot] operator[=] literal[boolean] operator[SEP] Keyword[boolean] identifier[foundSign] operator[=] literal[boolean] operator[SEP] Keyword[boolean] identifier[foundExp] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[minus] operator[&&] identifier[index] operator[+] Other[1] operator[<] identifier[array] operator[SEP] identifier[length] operator[SEP] { identifier[index] operator[++] operator[SEP] } Keyword[while] operator[SEP] literal[boolean] operator[SEP] { identifier[currentChar] operator[=] identifier[array] operator[SEP] identifier[index] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isNumberDigit] operator[SEP] identifier[currentChar] operator[SEP] operator[SEP] { } Keyword[else] Keyword[if] operator[SEP] identifier[currentChar] operator[<=] Other[32] operator[SEP] { Keyword[break] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[isDelimiter] operator[SEP] identifier[currentChar] operator[SEP] operator[SEP] { Keyword[break] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[isDecimalChar] operator[SEP] identifier[currentChar] operator[SEP] operator[SEP] { Keyword[switch] operator[SEP] identifier[currentChar] operator[SEP] { Keyword[case] identifier[DECIMAL_POINT] operator[:] Keyword[if] operator[SEP] identifier[foundDot] operator[||] identifier[foundExp] operator[SEP] { Keyword[return] identifier[decodeStringLax] operator[SEP] operator[SEP] operator[SEP] } identifier[foundDot] operator[=] literal[boolean] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[LETTER_E] operator[:] Keyword[case] identifier[LETTER_BIG_E] operator[:] Keyword[if] operator[SEP] identifier[foundExp] operator[SEP] { Keyword[return] identifier[decodeStringLax] operator[SEP] operator[SEP] operator[SEP] } identifier[foundExp] operator[=] literal[boolean] operator[SEP] Keyword[break] operator[SEP] Keyword[case] identifier[MINUS] operator[:] Keyword[case] identifier[PLUS] operator[:] Keyword[if] operator[SEP] identifier[foundSign] operator[||] operator[!] identifier[foundExp] operator[SEP] { Keyword[return] identifier[decodeStringLax] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[foundExp] operator[&&] identifier[array] operator[SEP] identifier[index] operator[-] Other[1] operator[SEP] operator[!=] identifier[LETTER_E] operator[&&] identifier[array] operator[SEP] identifier[index] operator[-] Other[1] operator[SEP] operator[!=] identifier[LETTER_BIG_E] operator[SEP] { Keyword[return] identifier[decodeStringLax] operator[SEP] operator[SEP] operator[SEP] } identifier[foundSign] operator[=] literal[boolean] operator[SEP] Keyword[break] operator[SEP] } identifier[doubleFloat] operator[=] literal[boolean] operator[SEP] } Keyword[else] { Keyword[return] identifier[decodeStringLax] operator[SEP] operator[SEP] operator[SEP] } identifier[index] operator[++] operator[SEP] Keyword[if] operator[SEP] identifier[index] operator[>=] identifier[array] operator[SEP] identifier[length] operator[SEP] Keyword[break] operator[SEP] } Keyword[if] operator[SEP] identifier[foundExp] operator[SEP] { Keyword[char] identifier[prevChar] operator[=] identifier[array] operator[SEP] identifier[index] operator[-] Other[1] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[prevChar] operator[==] identifier[LETTER_E] operator[||] identifier[prevChar] operator[==] identifier[LETTER_BIG_E] operator[||] identifier[prevChar] operator[==] identifier[MINUS] operator[||] identifier[prevChar] operator[==] identifier[PLUS] operator[SEP] { Keyword[return] identifier[decodeStringLax] operator[SEP] operator[SEP] operator[SEP] } } identifier[__index] operator[=] identifier[index] operator[SEP] identifier[__currentChar] operator[=] identifier[currentChar] operator[SEP] identifier[Type] identifier[type] operator[=] identifier[doubleFloat] operator[?] identifier[Type] operator[SEP] identifier[DOUBLE] operator[:] identifier[Type] operator[SEP] identifier[INTEGER] operator[SEP] Keyword[return] Keyword[new] identifier[NumberValue] operator[SEP] identifier[chop] , identifier[type] , identifier[startIndex] , identifier[__index] , Keyword[this] operator[SEP] identifier[charArray] operator[SEP] operator[SEP] }
public static <L, K> void addListener (Map<K, ListenerList<L>> map, K key, L listener) { ListenerList<L> list = map.get(key); if (list == null) { map.put(key, list = new ListenerList<L>()); } list.add(listener); }
class class_name[name] begin[{] method[addListener, return_type[void], modifier[public static], parameter[map, key, listener]] begin[{] local_variable[type[ListenerList], list] if[binary_operation[member[.list], ==, literal[null]]] begin[{] call[map.put, parameter[member[.key], assign[member[.list], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=L, sub_type=None))], dimensions=None, name=ListenerList, sub_type=None))]]] else begin[{] None end[}] call[list.add, parameter[member[.listener]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[L] , identifier[K] operator[>] Keyword[void] identifier[addListener] operator[SEP] identifier[Map] operator[<] identifier[K] , identifier[ListenerList] operator[<] identifier[L] operator[>] operator[>] identifier[map] , identifier[K] identifier[key] , identifier[L] identifier[listener] operator[SEP] { identifier[ListenerList] operator[<] identifier[L] operator[>] identifier[list] operator[=] identifier[map] operator[SEP] identifier[get] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[list] operator[==] Other[null] operator[SEP] { identifier[map] operator[SEP] identifier[put] operator[SEP] identifier[key] , identifier[list] operator[=] Keyword[new] identifier[ListenerList] operator[<] identifier[L] operator[>] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[list] operator[SEP] identifier[add] operator[SEP] identifier[listener] operator[SEP] operator[SEP] }
public void setEnd(Date endDate) { if ((null == endDate) || getStart().after(endDate)) { m_explicitEnd = null; } else { m_explicitEnd = endDate; } }
class class_name[name] begin[{] method[setEnd, return_type[void], modifier[public], parameter[endDate]] begin[{] if[binary_operation[binary_operation[literal[null], ==, member[.endDate]], ||, call[.getStart, parameter[]]]] begin[{] assign[member[.m_explicitEnd], literal[null]] else begin[{] assign[member[.m_explicitEnd], member[.endDate]] end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[setEnd] operator[SEP] identifier[Date] identifier[endDate] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] Other[null] operator[==] identifier[endDate] operator[SEP] operator[||] identifier[getStart] operator[SEP] operator[SEP] operator[SEP] identifier[after] operator[SEP] identifier[endDate] operator[SEP] operator[SEP] { identifier[m_explicitEnd] operator[=] Other[null] operator[SEP] } Keyword[else] { identifier[m_explicitEnd] operator[=] identifier[endDate] operator[SEP] } }
public void marshall(GetJobOutputRequest getJobOutputRequest, ProtocolMarshaller protocolMarshaller) { if (getJobOutputRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getJobOutputRequest.getAccountId(), ACCOUNTID_BINDING); protocolMarshaller.marshall(getJobOutputRequest.getVaultName(), VAULTNAME_BINDING); protocolMarshaller.marshall(getJobOutputRequest.getJobId(), JOBID_BINDING); protocolMarshaller.marshall(getJobOutputRequest.getRange(), RANGE_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[getJobOutputRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.getJobOutputRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Invalid argument passed to marshall(...)")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None) else begin[{] None end[}] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getAccountId, postfix_operators=[], prefix_operators=[], qualifier=getJobOutputRequest, selectors=[], type_arguments=None), MemberReference(member=ACCOUNTID_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getVaultName, postfix_operators=[], prefix_operators=[], qualifier=getJobOutputRequest, selectors=[], type_arguments=None), MemberReference(member=VAULTNAME_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getJobId, postfix_operators=[], prefix_operators=[], qualifier=getJobOutputRequest, selectors=[], type_arguments=None), MemberReference(member=JOBID_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getRange, postfix_operators=[], prefix_operators=[], qualifier=getJobOutputRequest, selectors=[], type_arguments=None), MemberReference(member=RANGE_BINDING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=marshall, postfix_operators=[], prefix_operators=[], qualifier=protocolMarshaller, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unable to marshall request to JSON: "), operandr=MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operator=+), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SdkClientException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[GetJobOutputRequest] identifier[getJobOutputRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[getJobOutputRequest] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[try] { identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[getJobOutputRequest] operator[SEP] identifier[getAccountId] operator[SEP] operator[SEP] , identifier[ACCOUNTID_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[getJobOutputRequest] operator[SEP] identifier[getVaultName] operator[SEP] operator[SEP] , identifier[VAULTNAME_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[getJobOutputRequest] operator[SEP] identifier[getJobId] operator[SEP] operator[SEP] , identifier[JOBID_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[getJobOutputRequest] operator[SEP] identifier[getRange] operator[SEP] operator[SEP] , identifier[RANGE_BINDING] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[SdkClientException] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } }
static int implicitValence(int elem, int q, int val) { switch (elem) { case 1: // H case 3: // Li case 11: // Na case 19: // K case 37: // Rb case 55: // Cs case 87: // Fr if (q == 0 && val <= 1) return 1; break; case 4: // Be case 12: // Mg case 20: // Ca case 38: // Sr case 56: // Ba case 88: // Ra switch (q) { case 0: if (val <= 2) return 2; break; case 1: if (val <= 1) return 1; break; } break; case 5: // B switch (q) { case -4: if (val <= 1) return 1; break; case -3: if (val <= 2) return 2; break; case -2: if (val <= 3) return 3; if (val <= 5) return 5; break; case -1: if (val <= 4) return 4; break; case 0: if (val <= 3) return 3; break; case 1: if (val <= 2) return 2; break; case 2: if (val <= 1) return 1; break; } break; case 6: // C switch (q) { case -3: if (val <= 1) return 1; break; case -2: if (val <= 2) return 2; break; case -1: if (val <= 3) return 3; if (val <= 5) return 5; break; case 0: if (val <= 4) return 4; break; case 1: if (val <= 3) return 3; break; case 2: if (val <= 2) return 2; break; case 3: if (val <= 1) return 1; break; } break; case 7: // N switch (q) { case -2: if (val <= 1) return 1; break; case -1: if (val <= 2) return 2; break; case 0: if (val <= 3) return 3; if (val <= 5) return 5; break; case 1: if (val <= 4) return 4; break; case 2: if (val <= 3) return 3; break; case 3: if (val <= 2) return 2; break; case 4: if (val <= 1) return 1; break; } break; case 8: // O switch (q) { case -1: if (val <= 1) return 1; break; case 0: if (val <= 2) return 2; break; case 1: if (val <= 3) return 3; if (val <= 5) return 5; break; case 2: if (val <= 4) return 4; break; case 3: if (val <= 3) return 3; break; case 4: if (val <= 2) return 2; break; case 5: if (val <= 1) return 1; break; } break; case 9: // F switch (q) { case 0: if (val <= 1) return 1; break; case 1: if (val <= 2) return 2; break; case 2: if (val <= 3) return 3; if (val <= 5) return 5; break; case 3: if (val <= 4) return 4; break; case 4: if (val <= 3) return 3; break; case 5: if (val <= 2) return 2; break; case 6: if (val <= 1) return 1; break; } break; case 13: // Al switch (q) { case -4: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case -3: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case -2: if (val <= 3) return 3; if (val <= 5) return 5; break; case -1: if (val <= 4) return 4; break; case 0: if (val <= 3) return 3; break; case 1: if (val <= 2) return 2; break; case 2: if (val <= 1) return 1; break; } break; case 14: // Si switch (q) { case -3: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case -2: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case -1: if (val <= 3) return 3; if (val <= 5) return 5; break; case 0: if (val <= 4) return 4; break; case 1: if (val <= 3) return 3; break; case 2: if (val <= 2) return 2; break; case 3: if (val <= 1) return 1; break; } break; case 15: // P switch (q) { case -2: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case -1: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case 0: if (val <= 3) return 3; if (val <= 5) return 5; break; case 1: if (val <= 4) return 4; break; case 2: if (val <= 3) return 3; break; case 3: if (val <= 2) return 2; break; case 4: if (val <= 1) return 1; break; } break; case 16: // S switch (q) { case -1: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case 0: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case 1: if (val <= 3) return 3; if (val <= 5) return 5; break; case 2: if (val <= 4) return 4; break; case 3: if (val <= 3) return 3; break; case 4: if (val <= 2) return 2; break; case 5: if (val <= 1) return 1; break; } break; case 17: // Cl switch (q) { case 0: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case 1: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case 2: if (val <= 3) return 3; if (val <= 5) return 5; break; case 3: if (val <= 4) return 4; break; case 4: if (val <= 3) return 3; break; case 5: if (val <= 2) return 2; break; case 6: if (val <= 1) return 1; break; } break; case 31: // Ga switch (q) { case -4: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case -3: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case -2: if (val <= 3) return 3; if (val <= 5) return 5; break; case -1: if (val <= 4) return 4; break; case 0: if (val <= 3) return 3; break; case 2: if (val <= 1) return 1; break; } break; case 32: // Ge switch (q) { case -3: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case -2: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case -1: if (val <= 3) return 3; if (val <= 5) return 5; break; case 0: if (val <= 4) return 4; break; case 1: if (val <= 3) return 3; break; case 3: if (val <= 1) return 1; break; } break; case 33: // As switch (q) { case -2: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case -1: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case 0: if (val <= 3) return 3; if (val <= 5) return 5; break; case 1: if (val <= 4) return 4; break; case 2: if (val <= 3) return 3; break; case 4: if (val <= 1) return 1; break; } break; case 34: // Se switch (q) { case -1: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case 0: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case 1: if (val <= 3) return 3; if (val <= 5) return 5; break; case 2: if (val <= 4) return 4; break; case 3: if (val <= 3) return 3; break; case 5: if (val <= 1) return 1; break; } break; case 35: // Br switch (q) { case 0: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case 1: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case 2: if (val <= 3) return 3; if (val <= 5) return 5; break; case 3: if (val <= 4) return 4; break; case 4: if (val <= 3) return 3; break; case 6: if (val <= 1) return 1; break; } break; case 49: // In switch (q) { case -4: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case -3: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case -2: if (val <= 3) return 3; if (val <= 5) return 5; break; case -1: if (val <= 2) return 2; if (val <= 4) return 4; break; case 0: if (val <= 3) return 3; break; case 2: if (val <= 1) return 1; break; } break; case 50: // Sn case 82: // Pb switch (q) { case -3: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case -2: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case -1: if (val <= 3) return 3; if (val <= 5) return 5; break; case 0: if (val <= 2) return 2; if (val <= 4) return 4; break; case 1: if (val <= 3) return 3; break; case 3: if (val <= 1) return 1; break; } break; case 51: // Sb case 83: // Bi switch (q) { case -2: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case -1: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case 0: if (val <= 3) return 3; if (val <= 5) return 5; break; case 1: if (val <= 2) return 2; if (val <= 4) return 4; break; case 2: if (val <= 3) return 3; break; case 4: if (val <= 1) return 1; break; } break; case 52: // Te case 84: // Po switch (q) { case -1: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case 0: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case 1: if (val <= 3) return 3; if (val <= 5) return 5; break; case 2: if (val <= 2) return 2; if (val <= 4) return 4; break; case 3: if (val <= 3) return 3; break; case 5: if (val <= 1) return 1; break; } break; case 53: // I case 85: // At switch (q) { case 0: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case 1: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case 2: if (val <= 3) return 3; if (val <= 5) return 5; break; case 3: if (val <= 2) return 2; if (val <= 4) return 4; break; case 4: if (val <= 3) return 3; break; case 6: if (val <= 1) return 1; break; } break; case 81: // Tl switch (q) { case -4: if (val <= 1) return 1; if (val <= 3) return 3; if (val <= 5) return 5; if (val <= 7) return 7; break; case -3: if (val <= 2) return 2; if (val <= 4) return 4; if (val <= 6) return 6; break; case -2: if (val <= 3) return 3; if (val <= 5) return 5; break; case -1: if (val <= 2) return 2; if (val <= 4) return 4; break; case 0: if (val <= 1) return 1; if (val <= 3) return 3; break; } break; } return val; }
class class_name[name] begin[{] method[implicitValence, return_type[type[int]], modifier[static], parameter[elem, q, val]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=11), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=19), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=37), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=55), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=87)], statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), operandr=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), operator=&&), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=12), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=20), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=38), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=56), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=88)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=9)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=13)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=14)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=15)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=16)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=17)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=31)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=32)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=33)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=34)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=35)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=49)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=50), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=82)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=51), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=83)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=52), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=84)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=53), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=85)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=81)], statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=4)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=7), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=3)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=6), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=2)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=5), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), label=None)), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), label=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), operator=<=), else_statement=None, label=None, then_statement=ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3), label=None)), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=q, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=elem, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) return[member[.val]] end[}] END[}]
Keyword[static] Keyword[int] identifier[implicitValence] operator[SEP] Keyword[int] identifier[elem] , Keyword[int] identifier[q] , Keyword[int] identifier[val] operator[SEP] { Keyword[switch] operator[SEP] identifier[elem] operator[SEP] { Keyword[case] Other[1] operator[:] Keyword[case] Other[3] operator[:] Keyword[case] Other[11] operator[:] Keyword[case] Other[19] operator[:] Keyword[case] Other[37] operator[:] Keyword[case] Other[55] operator[:] Keyword[case] Other[87] operator[:] Keyword[if] operator[SEP] identifier[q] operator[==] Other[0] operator[&&] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] Keyword[case] Other[12] operator[:] Keyword[case] Other[20] operator[:] Keyword[case] Other[38] operator[:] Keyword[case] Other[56] operator[:] Keyword[case] Other[88] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[5] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[6] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[7] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[8] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[5] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[9] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[5] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[6] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[13] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[14] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[15] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[16] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[5] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[17] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[5] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[6] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[31] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[32] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[33] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[34] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[5] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[35] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[6] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[49] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[50] operator[:] Keyword[case] Other[82] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[51] operator[:] Keyword[case] Other[83] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[52] operator[:] Keyword[case] Other[84] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[5] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[53] operator[:] Keyword[case] Other[85] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[6] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] Keyword[case] Other[81] operator[:] Keyword[switch] operator[SEP] identifier[q] operator[SEP] { Keyword[case] operator[-] Other[4] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[7] operator[SEP] Keyword[return] Other[7] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[3] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[6] operator[SEP] Keyword[return] Other[6] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[2] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[5] operator[SEP] Keyword[return] Other[5] operator[SEP] Keyword[break] operator[SEP] Keyword[case] operator[-] Other[1] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[2] operator[SEP] Keyword[return] Other[2] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[4] operator[SEP] Keyword[return] Other[4] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[0] operator[:] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[1] operator[SEP] Keyword[return] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[val] operator[<=] Other[3] operator[SEP] Keyword[return] Other[3] operator[SEP] Keyword[break] operator[SEP] } Keyword[break] operator[SEP] } Keyword[return] identifier[val] operator[SEP] }
public boolean removeSearchFieldMapping(CmsLuceneField field, CmsSearchFieldMapping mapping) throws CmsIllegalStateException { if (field.getMappings().size() < 2) { throw new CmsIllegalStateException( Messages.get().container( Messages.ERR_FIELD_MAPPING_DELETE_2, mapping.getType().toString(), field.getName())); } else { if (LOG.isInfoEnabled()) { LOG.info( Messages.get().getBundle().key( Messages.LOG_REMOVE_FIELD_MAPPING_INDEX_2, mapping.toString(), field.getName())); } return field.getMappings().remove(mapping); } }
class class_name[name] begin[{] method[removeSearchFieldMapping, return_type[type[boolean]], modifier[public], parameter[field, mapping]] begin[{] if[binary_operation[call[field.getMappings, parameter[]], <, literal[2]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=Messages, selectors=[MethodInvocation(arguments=[MemberReference(member=ERR_FIELD_MAPPING_DELETE_2, postfix_operators=[], prefix_operators=[], qualifier=Messages, selectors=[]), MethodInvocation(arguments=[], member=getType, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[MethodInvocation(arguments=[], member=toString, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=field, selectors=[], type_arguments=None)], member=container, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CmsIllegalStateException, sub_type=None)), label=None) else begin[{] if[call[LOG.isInfoEnabled, parameter[]]] begin[{] call[LOG.info, parameter[call[Messages.get, parameter[]]]] else begin[{] None end[}] return[call[field.getMappings, parameter[]]] end[}] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[removeSearchFieldMapping] operator[SEP] identifier[CmsLuceneField] identifier[field] , identifier[CmsSearchFieldMapping] identifier[mapping] operator[SEP] Keyword[throws] identifier[CmsIllegalStateException] { Keyword[if] operator[SEP] identifier[field] operator[SEP] identifier[getMappings] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[<] Other[2] operator[SEP] { Keyword[throw] Keyword[new] identifier[CmsIllegalStateException] operator[SEP] identifier[Messages] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[container] operator[SEP] identifier[Messages] operator[SEP] identifier[ERR_FIELD_MAPPING_DELETE_2] , identifier[mapping] operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] , identifier[field] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[if] operator[SEP] identifier[LOG] operator[SEP] identifier[isInfoEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[LOG] operator[SEP] identifier[info] operator[SEP] identifier[Messages] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[getBundle] operator[SEP] operator[SEP] operator[SEP] identifier[key] operator[SEP] identifier[Messages] operator[SEP] identifier[LOG_REMOVE_FIELD_MAPPING_INDEX_2] , identifier[mapping] operator[SEP] identifier[toString] operator[SEP] operator[SEP] , identifier[field] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[field] operator[SEP] identifier[getMappings] operator[SEP] operator[SEP] operator[SEP] identifier[remove] operator[SEP] identifier[mapping] operator[SEP] operator[SEP] } }
private void setLegacyParam(String legacyParamName, Object paramValue) { if (!m_bWarnedLegacyParam) { logger.warn("Parameter '{}': Legacy parameter format is being phased-out. " + "Please use new module/parameter format.", legacyParamName); m_bWarnedLegacyParam = true; } String moduleName = g_legacyToModuleMap.get(legacyParamName); if (moduleName == null) { logger.warn("Skipping unknown legacy parameter: {}", legacyParamName); } else { setModuleParam(moduleName, legacyParamName, paramValue); } }
class class_name[name] begin[{] method[setLegacyParam, return_type[void], modifier[private], parameter[legacyParamName, paramValue]] begin[{] if[member[.m_bWarnedLegacyParam]] begin[{] call[logger.warn, parameter[binary_operation[literal["Parameter '{}': Legacy parameter format is being phased-out. "], +, literal["Please use new module/parameter format."]], member[.legacyParamName]]] assign[member[.m_bWarnedLegacyParam], literal[true]] else begin[{] None end[}] local_variable[type[String], moduleName] if[binary_operation[member[.moduleName], ==, literal[null]]] begin[{] call[logger.warn, parameter[literal["Skipping unknown legacy parameter: {}"], member[.legacyParamName]]] else begin[{] call[.setModuleParam, parameter[member[.moduleName], member[.legacyParamName], member[.paramValue]]] end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[setLegacyParam] operator[SEP] identifier[String] identifier[legacyParamName] , identifier[Object] identifier[paramValue] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[m_bWarnedLegacyParam] operator[SEP] { identifier[logger] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[+] literal[String] , identifier[legacyParamName] operator[SEP] operator[SEP] identifier[m_bWarnedLegacyParam] operator[=] literal[boolean] operator[SEP] } identifier[String] identifier[moduleName] operator[=] identifier[g_legacyToModuleMap] operator[SEP] identifier[get] operator[SEP] identifier[legacyParamName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[moduleName] operator[==] Other[null] operator[SEP] { identifier[logger] operator[SEP] identifier[warn] operator[SEP] literal[String] , identifier[legacyParamName] operator[SEP] operator[SEP] } Keyword[else] { identifier[setModuleParam] operator[SEP] identifier[moduleName] , identifier[legacyParamName] , identifier[paramValue] operator[SEP] operator[SEP] } }
public static void skip(final DataInput in) throws IOException { final int length = in.readInt(); skipFully(in, length); }
class class_name[name] begin[{] method[skip, return_type[void], modifier[public static], parameter[in]] begin[{] local_variable[type[int], length] call[.skipFully, parameter[member[.in], member[.length]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[skip] operator[SEP] Keyword[final] identifier[DataInput] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] Keyword[int] identifier[length] operator[=] identifier[in] operator[SEP] identifier[readInt] operator[SEP] operator[SEP] operator[SEP] identifier[skipFully] operator[SEP] identifier[in] , identifier[length] operator[SEP] operator[SEP] }
public void update(int n, byte[] b, int off, int len, ManifestEntryVerifier mev) throws IOException { if (n != -1) { if (parsingBlockOrSF) { baos.write(b, off, n); } else { mev.update(b, off, n); } } else { processEntry(mev); } }
class class_name[name] begin[{] method[update, return_type[void], modifier[public], parameter[n, b, off, len, mev]] begin[{] if[binary_operation[member[.n], !=, literal[1]]] begin[{] if[member[.parsingBlockOrSF]] begin[{] call[baos.write, parameter[member[.b], member[.off], member[.n]]] else begin[{] call[mev.update, parameter[member[.b], member[.off], member[.n]]] end[}] else begin[{] call[.processEntry, parameter[member[.mev]]] end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[update] operator[SEP] Keyword[int] identifier[n] , Keyword[byte] operator[SEP] operator[SEP] identifier[b] , Keyword[int] identifier[off] , Keyword[int] identifier[len] , identifier[ManifestEntryVerifier] identifier[mev] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[n] operator[!=] operator[-] Other[1] operator[SEP] { Keyword[if] operator[SEP] identifier[parsingBlockOrSF] operator[SEP] { identifier[baos] operator[SEP] identifier[write] operator[SEP] identifier[b] , identifier[off] , identifier[n] operator[SEP] operator[SEP] } Keyword[else] { identifier[mev] operator[SEP] identifier[update] operator[SEP] identifier[b] , identifier[off] , identifier[n] operator[SEP] operator[SEP] } } Keyword[else] { identifier[processEntry] operator[SEP] identifier[mev] operator[SEP] operator[SEP] } }
public alluxio.grpc.ReadPType getReadType() { alluxio.grpc.ReadPType result = alluxio.grpc.ReadPType.valueOf(readType_); return result == null ? alluxio.grpc.ReadPType.NO_CACHE : result; }
class class_name[name] begin[{] method[getReadType, return_type[type[alluxio]], modifier[public], parameter[]] begin[{] local_variable[type[alluxio], result] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_true=MemberReference(member=NO_CACHE, postfix_operators=[], prefix_operators=[], qualifier=alluxio.grpc.ReadPType, selectors=[]))] end[}] END[}]
Keyword[public] identifier[alluxio] operator[SEP] identifier[grpc] operator[SEP] identifier[ReadPType] identifier[getReadType] operator[SEP] operator[SEP] { identifier[alluxio] operator[SEP] identifier[grpc] operator[SEP] identifier[ReadPType] identifier[result] operator[=] identifier[alluxio] operator[SEP] identifier[grpc] operator[SEP] identifier[ReadPType] operator[SEP] identifier[valueOf] operator[SEP] identifier[readType_] operator[SEP] operator[SEP] Keyword[return] identifier[result] operator[==] Other[null] operator[?] identifier[alluxio] operator[SEP] identifier[grpc] operator[SEP] identifier[ReadPType] operator[SEP] identifier[NO_CACHE] operator[:] identifier[result] operator[SEP] }
@XmlElementDecl(namespace = "http://www.opengis.net/citygml/building/2.0", name = "CeilingSurface", substitutionHeadNamespace = "http://www.opengis.net/citygml/building/2.0", substitutionHeadName = "_BoundarySurface") public JAXBElement<CeilingSurfaceType> createCeilingSurface(CeilingSurfaceType value) { return new JAXBElement<CeilingSurfaceType>(_CeilingSurface_QNAME, CeilingSurfaceType.class, null, value); }
class class_name[name] begin[{] method[createCeilingSurface, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_CeilingSurface_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CeilingSurfaceType, sub_type=None)), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=CeilingSurfaceType, sub_type=None))], dimensions=None, name=JAXBElement, sub_type=None))] end[}] END[}]
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[substitutionHeadNamespace] operator[=] literal[String] , identifier[substitutionHeadName] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[CeilingSurfaceType] operator[>] identifier[createCeilingSurface] operator[SEP] identifier[CeilingSurfaceType] identifier[value] operator[SEP] { Keyword[return] Keyword[new] identifier[JAXBElement] operator[<] identifier[CeilingSurfaceType] operator[>] operator[SEP] identifier[_CeilingSurface_QNAME] , identifier[CeilingSurfaceType] operator[SEP] Keyword[class] , Other[null] , identifier[value] operator[SEP] operator[SEP] }
public PagedList<Resource> listResource(final Integer top) { ServiceResponse<Page<Resource>> response = listResourceSinglePageAsync(top).toBlocking().single(); return new PagedList<Resource>(response.body()) { @Override public Page<Resource> nextPage(String nextPageLink) { return listResourceNextSinglePageAsync(nextPageLink).toBlocking().single().body(); } }; }
class class_name[name] begin[{] method[listResource, return_type[type[PagedList]], modifier[public], parameter[top]] begin[{] local_variable[type[ServiceResponse], response] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=body, postfix_operators=[], prefix_operators=[], qualifier=response, selectors=[], type_arguments=None)], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=nextPageLink, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=listResourceNextSinglePageAsync, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[], member=toBlocking, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=single, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=body, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None)], documentation=None, modifiers={'public'}, name=nextPage, parameters=[FormalParameter(annotations=[], modifiers=set(), name=nextPageLink, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None), varargs=False)], return_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Resource, sub_type=None))], dimensions=[], name=Page, sub_type=None), throws=None, type_parameters=None)], constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Resource, sub_type=None))], dimensions=None, name=PagedList, sub_type=None))] end[}] END[}]
Keyword[public] identifier[PagedList] operator[<] identifier[Resource] operator[>] identifier[listResource] operator[SEP] Keyword[final] identifier[Integer] identifier[top] operator[SEP] { identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[Resource] operator[>] operator[>] identifier[response] operator[=] identifier[listResourceSinglePageAsync] operator[SEP] identifier[top] operator[SEP] operator[SEP] identifier[toBlocking] operator[SEP] operator[SEP] operator[SEP] identifier[single] operator[SEP] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[PagedList] operator[<] identifier[Resource] operator[>] operator[SEP] identifier[response] operator[SEP] identifier[body] operator[SEP] operator[SEP] operator[SEP] { annotation[@] identifier[Override] Keyword[public] identifier[Page] operator[<] identifier[Resource] operator[>] identifier[nextPage] operator[SEP] identifier[String] identifier[nextPageLink] operator[SEP] { Keyword[return] identifier[listResourceNextSinglePageAsync] operator[SEP] identifier[nextPageLink] operator[SEP] operator[SEP] identifier[toBlocking] operator[SEP] operator[SEP] operator[SEP] identifier[single] operator[SEP] operator[SEP] operator[SEP] identifier[body] operator[SEP] operator[SEP] operator[SEP] } } operator[SEP] }
public ModelView fromJSON(Model mo, JSONObject in) throws JSONConverterException { checkKeys(in, ModelViewConverter.IDENTIFIER); Object id = in.get(ModelViewConverter.IDENTIFIER); ModelViewConverter<? extends ModelView> c = json2java.get(id.toString()); if (c == null) { throw new JSONConverterException("No converter available for a view having id '" + id + "'"); } return c.fromJSON(mo, in); }
class class_name[name] begin[{] method[fromJSON, return_type[type[ModelView]], modifier[public], parameter[mo, in]] begin[{] call[.checkKeys, parameter[member[.in], member[ModelViewConverter.IDENTIFIER]]] local_variable[type[Object], id] local_variable[type[ModelViewConverter], c] if[binary_operation[member[.c], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="No converter available for a view having id '"), operandr=MemberReference(member=id, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="'"), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=JSONConverterException, sub_type=None)), label=None) else begin[{] None end[}] return[call[c.fromJSON, parameter[member[.mo], member[.in]]]] end[}] END[}]
Keyword[public] identifier[ModelView] identifier[fromJSON] operator[SEP] identifier[Model] identifier[mo] , identifier[JSONObject] identifier[in] operator[SEP] Keyword[throws] identifier[JSONConverterException] { identifier[checkKeys] operator[SEP] identifier[in] , identifier[ModelViewConverter] operator[SEP] identifier[IDENTIFIER] operator[SEP] operator[SEP] identifier[Object] identifier[id] operator[=] identifier[in] operator[SEP] identifier[get] operator[SEP] identifier[ModelViewConverter] operator[SEP] identifier[IDENTIFIER] operator[SEP] operator[SEP] identifier[ModelViewConverter] operator[<] operator[?] Keyword[extends] identifier[ModelView] operator[>] identifier[c] operator[=] identifier[json2java] operator[SEP] identifier[get] operator[SEP] identifier[id] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[c] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[JSONConverterException] operator[SEP] literal[String] operator[+] identifier[id] operator[+] literal[String] operator[SEP] operator[SEP] } Keyword[return] identifier[c] operator[SEP] identifier[fromJSON] operator[SEP] identifier[mo] , identifier[in] operator[SEP] operator[SEP] }
private void extractAnnotation() { for (Class<? extends IFile> clazz : LISTE_CLASS) { Map<ITag, AnnotationData> maps = new HashMap<ITag, AnnotationData>(); Set<AnnotationData> set = new TreeSet<AnnotationData>(); Field[] fields = clazz.getDeclaredFields(); for (Field field : fields) { AnnotationData param = new AnnotationData(); field.setAccessible(true); param.setField(field); Data annotation = field.getAnnotation(Data.class); if (annotation != null) { param.initFromAnnotation(annotation); maps.put(param.getTag(), param); try { set.add((AnnotationData) param.clone()); } catch (CloneNotSupportedException e) { // do nothing } } } mapSet.put(clazz.getName(), set); map.put(clazz.getName(), maps); } }
class class_name[name] begin[{] method[extractAnnotation, return_type[void], modifier[private], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=ITag, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=AnnotationData, sub_type=None))], dimensions=None, name=HashMap, sub_type=None)), name=maps)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=ITag, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=AnnotationData, sub_type=None))], dimensions=[], name=Map, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=AnnotationData, sub_type=None))], dimensions=None, name=TreeSet, sub_type=None)), name=set)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=AnnotationData, sub_type=None))], dimensions=[], name=Set, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getDeclaredFields, postfix_operators=[], prefix_operators=[], qualifier=clazz, selectors=[], type_arguments=None), name=fields)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=Field, sub_type=None)), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=AnnotationData, sub_type=None)), name=param)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=AnnotationData, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=setAccessible, postfix_operators=[], prefix_operators=[], qualifier=field, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=field, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setField, postfix_operators=[], prefix_operators=[], qualifier=param, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Data, sub_type=None))], member=getAnnotation, postfix_operators=[], prefix_operators=[], qualifier=field, selectors=[], type_arguments=None), name=annotation)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Data, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=annotation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=annotation, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=initFromAnnotation, postfix_operators=[], prefix_operators=[], qualifier=param, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getTag, postfix_operators=[], prefix_operators=[], qualifier=param, selectors=[], type_arguments=None), MemberReference(member=param, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=maps, selectors=[], type_arguments=None), label=None), TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Cast(expression=MethodInvocation(arguments=[], member=clone, postfix_operators=[], prefix_operators=[], qualifier=param, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=AnnotationData, sub_type=None))], member=add, postfix_operators=[], prefix_operators=[], qualifier=set, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['CloneNotSupportedException']))], finally_block=None, label=None, resources=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=fields, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=field)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Field, sub_type=None))), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=clazz, selectors=[], type_arguments=None), MemberReference(member=set, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=mapSet, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=clazz, selectors=[], type_arguments=None), MemberReference(member=maps, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=map, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=LISTE_CLASS, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=clazz)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=extends, type=ReferenceType(arguments=None, dimensions=[], name=IFile, sub_type=None))], dimensions=[], name=Class, sub_type=None))), label=None) end[}] END[}]
Keyword[private] Keyword[void] identifier[extractAnnotation] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[IFile] operator[>] identifier[clazz] operator[:] identifier[LISTE_CLASS] operator[SEP] { identifier[Map] operator[<] identifier[ITag] , identifier[AnnotationData] operator[>] identifier[maps] operator[=] Keyword[new] identifier[HashMap] operator[<] identifier[ITag] , identifier[AnnotationData] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[Set] operator[<] identifier[AnnotationData] operator[>] identifier[set] operator[=] Keyword[new] identifier[TreeSet] operator[<] identifier[AnnotationData] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[Field] operator[SEP] operator[SEP] identifier[fields] operator[=] identifier[clazz] operator[SEP] identifier[getDeclaredFields] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Field] identifier[field] operator[:] identifier[fields] operator[SEP] { identifier[AnnotationData] identifier[param] operator[=] Keyword[new] identifier[AnnotationData] operator[SEP] operator[SEP] operator[SEP] identifier[field] operator[SEP] identifier[setAccessible] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[param] operator[SEP] identifier[setField] operator[SEP] identifier[field] operator[SEP] operator[SEP] identifier[Data] identifier[annotation] operator[=] identifier[field] operator[SEP] identifier[getAnnotation] operator[SEP] identifier[Data] operator[SEP] Keyword[class] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[annotation] operator[!=] Other[null] operator[SEP] { identifier[param] operator[SEP] identifier[initFromAnnotation] operator[SEP] identifier[annotation] operator[SEP] operator[SEP] identifier[maps] operator[SEP] identifier[put] operator[SEP] identifier[param] operator[SEP] identifier[getTag] operator[SEP] operator[SEP] , identifier[param] operator[SEP] operator[SEP] Keyword[try] { identifier[set] operator[SEP] identifier[add] operator[SEP] operator[SEP] identifier[AnnotationData] operator[SEP] identifier[param] operator[SEP] identifier[clone] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[CloneNotSupportedException] identifier[e] operator[SEP] { } } } identifier[mapSet] operator[SEP] identifier[put] operator[SEP] identifier[clazz] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[set] operator[SEP] operator[SEP] identifier[map] operator[SEP] identifier[put] operator[SEP] identifier[clazz] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[maps] operator[SEP] operator[SEP] } }
static RawPacket nextPacket(final InputStream is) throws IOException { byte[] lengthBuffer = readLengthSeq(is); int length = (lengthBuffer[0] & 0xff) + ((lengthBuffer[1] & 0xff) << 8) + ((lengthBuffer[2] & 0xff) << 16); if (length == -1) { return null; } if (length < 0) { throw new IOException("Got negative packet size: " + length); } final int packetSeq = lengthBuffer[3]; final byte[] rawBytes = new byte[length]; final int nr = ReadUtil.safeRead(is, rawBytes); if (nr != length) { throw new IOException("EOF. Expected " + length + ", got " + nr); } return new RawPacket(ByteBuffer.wrap(rawBytes).order(ByteOrder.LITTLE_ENDIAN), packetSeq); }
class class_name[name] begin[{] method[nextPacket, return_type[type[RawPacket]], modifier[static], parameter[is]] begin[{] local_variable[type[byte], lengthBuffer] local_variable[type[int], length] if[binary_operation[member[.length], ==, literal[1]]] begin[{] return[literal[null]] else begin[{] None end[}] if[binary_operation[member[.length], <, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Got negative packet size: "), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IOException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[int], packetSeq] local_variable[type[byte], rawBytes] local_variable[type[int], nr] if[binary_operation[member[.nr], !=, member[.length]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="EOF. Expected "), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=", got "), operator=+), operandr=MemberReference(member=nr, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IOException, sub_type=None)), label=None) else begin[{] None end[}] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=rawBytes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=wrap, postfix_operators=[], prefix_operators=[], qualifier=ByteBuffer, selectors=[MethodInvocation(arguments=[MemberReference(member=LITTLE_ENDIAN, postfix_operators=[], prefix_operators=[], qualifier=ByteOrder, selectors=[])], member=order, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), MemberReference(member=packetSeq, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RawPacket, sub_type=None))] end[}] END[}]
Keyword[static] identifier[RawPacket] identifier[nextPacket] operator[SEP] Keyword[final] identifier[InputStream] identifier[is] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[byte] operator[SEP] operator[SEP] identifier[lengthBuffer] operator[=] identifier[readLengthSeq] operator[SEP] identifier[is] operator[SEP] operator[SEP] Keyword[int] identifier[length] operator[=] operator[SEP] identifier[lengthBuffer] operator[SEP] Other[0] operator[SEP] operator[&] literal[Integer] operator[SEP] operator[+] operator[SEP] operator[SEP] identifier[lengthBuffer] operator[SEP] Other[1] operator[SEP] operator[&] literal[Integer] operator[SEP] operator[<<] Other[8] operator[SEP] operator[+] operator[SEP] operator[SEP] identifier[lengthBuffer] operator[SEP] Other[2] operator[SEP] operator[&] literal[Integer] operator[SEP] operator[<<] Other[16] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[length] operator[==] operator[-] Other[1] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[if] operator[SEP] identifier[length] operator[<] Other[0] operator[SEP] { Keyword[throw] Keyword[new] identifier[IOException] operator[SEP] literal[String] operator[+] identifier[length] operator[SEP] operator[SEP] } Keyword[final] Keyword[int] identifier[packetSeq] operator[=] identifier[lengthBuffer] operator[SEP] Other[3] operator[SEP] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[rawBytes] operator[=] Keyword[new] Keyword[byte] operator[SEP] identifier[length] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[nr] operator[=] identifier[ReadUtil] operator[SEP] identifier[safeRead] operator[SEP] identifier[is] , identifier[rawBytes] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[nr] operator[!=] identifier[length] operator[SEP] { Keyword[throw] Keyword[new] identifier[IOException] operator[SEP] literal[String] operator[+] identifier[length] operator[+] literal[String] operator[+] identifier[nr] operator[SEP] operator[SEP] } Keyword[return] Keyword[new] identifier[RawPacket] operator[SEP] identifier[ByteBuffer] operator[SEP] identifier[wrap] operator[SEP] identifier[rawBytes] operator[SEP] operator[SEP] identifier[order] operator[SEP] identifier[ByteOrder] operator[SEP] identifier[LITTLE_ENDIAN] operator[SEP] , identifier[packetSeq] operator[SEP] operator[SEP] }
@Override public <T extends BullhornEntity, L extends ListWrapper<T>> L findMultipleEntity(Class<T> type, Set<Integer> idList, Set<String> fieldSet) { return this.handleGetMultipleEntities(type, idList, fieldSet, ParamFactory.entityParams()); }
class class_name[name] begin[{] method[findMultipleEntity, return_type[type[L]], modifier[public], parameter[type, idList, fieldSet]] begin[{] return[THIS[call[None.handleGetMultipleEntities, parameter[member[.type], member[.idList], member[.fieldSet], call[ParamFactory.entityParams, parameter[]]]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[BullhornEntity] , identifier[L] Keyword[extends] identifier[ListWrapper] operator[<] identifier[T] operator[>] operator[>] identifier[L] identifier[findMultipleEntity] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] , identifier[Set] operator[<] identifier[Integer] operator[>] identifier[idList] , identifier[Set] operator[<] identifier[String] operator[>] identifier[fieldSet] operator[SEP] { Keyword[return] Keyword[this] operator[SEP] identifier[handleGetMultipleEntities] operator[SEP] identifier[type] , identifier[idList] , identifier[fieldSet] , identifier[ParamFactory] operator[SEP] identifier[entityParams] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public double add(int index, double delta) { magnitude -= vector[index] * vector[index]; vector[index] += delta; magnitude += vector[index] * vector[index]; return vector[index]; }
class class_name[name] begin[{] method[add, return_type[type[double]], modifier[public], parameter[index, delta]] begin[{] assign[member[.magnitude], binary_operation[member[.vector], *, member[.vector]]] assign[member[.vector], member[.delta]] assign[member[.magnitude], binary_operation[member[.vector], *, member[.vector]]] return[member[.vector]] end[}] END[}]
Keyword[public] Keyword[double] identifier[add] operator[SEP] Keyword[int] identifier[index] , Keyword[double] identifier[delta] operator[SEP] { identifier[magnitude] operator[-=] identifier[vector] operator[SEP] identifier[index] operator[SEP] operator[*] identifier[vector] operator[SEP] identifier[index] operator[SEP] operator[SEP] identifier[vector] operator[SEP] identifier[index] operator[SEP] operator[+=] identifier[delta] operator[SEP] identifier[magnitude] operator[+=] identifier[vector] operator[SEP] identifier[index] operator[SEP] operator[*] identifier[vector] operator[SEP] identifier[index] operator[SEP] operator[SEP] Keyword[return] identifier[vector] operator[SEP] identifier[index] operator[SEP] operator[SEP] }
@NullSafe public static double max(final double... values) { double maxValue = Double.NaN; if (values != null) { for (double value : values) { maxValue = (Double.isNaN(maxValue) ? value : Math.max(maxValue, value)); } } return maxValue; }
class class_name[name] begin[{] method[max, return_type[type[double]], modifier[public static], parameter[values]] begin[{] local_variable[type[double], maxValue] if[binary_operation[member[.values], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=maxValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=maxValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isNaN, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), if_false=MethodInvocation(arguments=[MemberReference(member=maxValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=max, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), if_true=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=values, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=value)], modifiers=set(), type=BasicType(dimensions=[], name=double))), label=None) else begin[{] None end[}] return[member[.maxValue]] end[}] END[}]
annotation[@] identifier[NullSafe] Keyword[public] Keyword[static] Keyword[double] identifier[max] operator[SEP] Keyword[final] Keyword[double] operator[...] identifier[values] operator[SEP] { Keyword[double] identifier[maxValue] operator[=] identifier[Double] operator[SEP] identifier[NaN] operator[SEP] Keyword[if] operator[SEP] identifier[values] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] Keyword[double] identifier[value] operator[:] identifier[values] operator[SEP] { identifier[maxValue] operator[=] operator[SEP] identifier[Double] operator[SEP] identifier[isNaN] operator[SEP] identifier[maxValue] operator[SEP] operator[?] identifier[value] operator[:] identifier[Math] operator[SEP] identifier[max] operator[SEP] identifier[maxValue] , identifier[value] operator[SEP] operator[SEP] operator[SEP] } } Keyword[return] identifier[maxValue] operator[SEP] }
public static IntegerVector subtract(IntegerVector vector1, IntegerVector vector2) { if (vector2.length() != vector1.length()) throw new IllegalArgumentException( "Vectors of different sizes cannot be added"); // If vector is a sparse vector, simply get the non zero values and // add them to this instance. if (vector2 instanceof SparseVector) subtractSparseValues(vector1, vector2); else if (vector2 instanceof TernaryVector) subtractTernaryValues(vector1, (TernaryVector)vector2); else { // Otherwise, inspect all values of vector, and only add the non // zero values. for (int i = 0; i < vector2.length(); ++i) { int value = vector2.get(i); // In the case that vector1 is sparse, only add non zero values. if (value != 0d) vector1.add(i, -1 * value); } } return vector1; }
class class_name[name] begin[{] method[subtract, return_type[type[IntegerVector]], modifier[public static], parameter[vector1, vector2]] begin[{] if[binary_operation[call[vector2.length, parameter[]], !=, call[vector1.length, parameter[]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Vectors of different sizes cannot be added")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[member[.vector2], instanceof, type[SparseVector]]] begin[{] call[.subtractSparseValues, parameter[member[.vector1], member[.vector2]]] else begin[{] if[binary_operation[member[.vector2], instanceof, type[TernaryVector]]] begin[{] call[.subtractTernaryValues, parameter[member[.vector1], Cast(expression=MemberReference(member=vector2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=TernaryVector, sub_type=None))]] else begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=vector2, selectors=[], type_arguments=None), name=value)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0d), operator=!=), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1), operandr=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*)], member=add, postfix_operators=[], prefix_operators=[], qualifier=vector1, selectors=[], type_arguments=None), label=None))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=vector2, selectors=[], type_arguments=None), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=[], prefix_operators=['++'], qualifier=, selectors=[])]), label=None) end[}] end[}] return[member[.vector1]] end[}] END[}]
Keyword[public] Keyword[static] identifier[IntegerVector] identifier[subtract] operator[SEP] identifier[IntegerVector] identifier[vector1] , identifier[IntegerVector] identifier[vector2] operator[SEP] { Keyword[if] operator[SEP] identifier[vector2] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[!=] identifier[vector1] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[vector2] Keyword[instanceof] identifier[SparseVector] operator[SEP] identifier[subtractSparseValues] operator[SEP] identifier[vector1] , identifier[vector2] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[vector2] Keyword[instanceof] identifier[TernaryVector] operator[SEP] identifier[subtractTernaryValues] operator[SEP] identifier[vector1] , operator[SEP] identifier[TernaryVector] operator[SEP] identifier[vector2] operator[SEP] operator[SEP] Keyword[else] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[vector2] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[++] identifier[i] operator[SEP] { Keyword[int] identifier[value] operator[=] identifier[vector2] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[value] operator[!=] literal[Float] operator[SEP] identifier[vector1] operator[SEP] identifier[add] operator[SEP] identifier[i] , operator[-] Other[1] operator[*] identifier[value] operator[SEP] operator[SEP] } } Keyword[return] identifier[vector1] operator[SEP] }
public static <T> T with(HttpRequest request, Supplier<T> callable) { HttpRequest existing = REQUEST.get(); boolean isSet = false; try { if (request != existing) { isSet = true; REQUEST.set(request); } return callable.get(); } finally { if (isSet) { REQUEST.remove(); } } }
class class_name[name] begin[{] method[with, return_type[type[T]], modifier[public static], parameter[request, callable]] begin[{] local_variable[type[HttpRequest], existing] local_variable[type[boolean], isSet] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=existing, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=isSet, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=set, postfix_operators=[], prefix_operators=[], qualifier=REQUEST, selectors=[], type_arguments=None), label=None)])), ReturnStatement(expression=MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=callable, selectors=[], type_arguments=None), label=None)], catches=None, finally_block=[IfStatement(condition=MemberReference(member=isSet, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=remove, postfix_operators=[], prefix_operators=[], qualifier=REQUEST, selectors=[], type_arguments=None), label=None)]))], label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[with] operator[SEP] identifier[HttpRequest] identifier[request] , identifier[Supplier] operator[<] identifier[T] operator[>] identifier[callable] operator[SEP] { identifier[HttpRequest] identifier[existing] operator[=] identifier[REQUEST] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[isSet] operator[=] literal[boolean] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] identifier[request] operator[!=] identifier[existing] operator[SEP] { identifier[isSet] operator[=] literal[boolean] operator[SEP] identifier[REQUEST] operator[SEP] identifier[set] operator[SEP] identifier[request] operator[SEP] operator[SEP] } Keyword[return] identifier[callable] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] } Keyword[finally] { Keyword[if] operator[SEP] identifier[isSet] operator[SEP] { identifier[REQUEST] operator[SEP] identifier[remove] operator[SEP] operator[SEP] operator[SEP] } } }
protected File getStoreFile(StoreReference store) { if (store instanceof FileStoreReference) { return ((FileStoreReference) store).getFile(); } throw new IllegalArgumentException(String.format("Unsupported store reference [%s] for this implementation.", store.getClass().getName())); }
class class_name[name] begin[{] method[getStoreFile, return_type[type[File]], modifier[protected], parameter[store]] begin[{] if[binary_operation[member[.store], instanceof, type[FileStoreReference]]] begin[{] return[Cast(expression=MemberReference(member=store, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=FileStoreReference, sub_type=None))] else begin[{] None end[}] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unsupported store reference [%s] for this implementation."), MethodInvocation(arguments=[], member=getClass, postfix_operators=[], prefix_operators=[], qualifier=store, selectors=[MethodInvocation(arguments=[], member=getName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=format, postfix_operators=[], prefix_operators=[], qualifier=String, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) end[}] END[}]
Keyword[protected] identifier[File] identifier[getStoreFile] operator[SEP] identifier[StoreReference] identifier[store] operator[SEP] { Keyword[if] operator[SEP] identifier[store] Keyword[instanceof] identifier[FileStoreReference] operator[SEP] { Keyword[return] operator[SEP] operator[SEP] identifier[FileStoreReference] operator[SEP] identifier[store] operator[SEP] operator[SEP] identifier[getFile] operator[SEP] operator[SEP] operator[SEP] } Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[store] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public static <A> Codec<ISeq<A>, AnyGene<A>> ofVector( final Supplier<? extends A> supplier, final Predicate<? super A> alleleValidator, final Predicate<? super ISeq<A>> alleleSeqValidator, final int length ) { requireNonNull(supplier); requireNonNull(alleleSeqValidator); requireNonNull(alleleSeqValidator); require.positive(length); return Codec.of( Genotype.of(AnyChromosome .of(supplier, alleleValidator, alleleSeqValidator, length)), gt -> gt.getChromosome().stream() .map(Gene::getAllele) .collect(ISeq.toISeq()) ); }
class class_name[name] begin[{] method[ofVector, return_type[type[Codec]], modifier[public static], parameter[supplier, alleleValidator, alleleSeqValidator, length]] begin[{] call[.requireNonNull, parameter[member[.supplier]]] call[.requireNonNull, parameter[member[.alleleSeqValidator]]] call[.requireNonNull, parameter[member[.alleleSeqValidator]]] call[require.positive, parameter[member[.length]]] return[call[Codec.of, parameter[call[Genotype.of, parameter[call[AnyChromosome.of, parameter[member[.supplier], member[.alleleValidator], member[.alleleSeqValidator], member[.length]]]]], LambdaExpression(body=MethodInvocation(arguments=[], member=getChromosome, postfix_operators=[], prefix_operators=[], qualifier=gt, selectors=[MethodInvocation(arguments=[], member=stream, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MethodReference(expression=MemberReference(member=Gene, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), method=MemberReference(member=getAllele, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type_arguments=[])], member=map, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[MethodInvocation(arguments=[], member=toISeq, postfix_operators=[], prefix_operators=[], qualifier=ISeq, selectors=[], type_arguments=None)], member=collect, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), parameters=[MemberReference(member=gt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])])]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[A] operator[>] identifier[Codec] operator[<] identifier[ISeq] operator[<] identifier[A] operator[>] , identifier[AnyGene] operator[<] identifier[A] operator[>] operator[>] identifier[ofVector] operator[SEP] Keyword[final] identifier[Supplier] operator[<] operator[?] Keyword[extends] identifier[A] operator[>] identifier[supplier] , Keyword[final] identifier[Predicate] operator[<] operator[?] Keyword[super] identifier[A] operator[>] identifier[alleleValidator] , Keyword[final] identifier[Predicate] operator[<] operator[?] Keyword[super] identifier[ISeq] operator[<] identifier[A] operator[>] operator[>] identifier[alleleSeqValidator] , Keyword[final] Keyword[int] identifier[length] operator[SEP] { identifier[requireNonNull] operator[SEP] identifier[supplier] operator[SEP] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[alleleSeqValidator] operator[SEP] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[alleleSeqValidator] operator[SEP] operator[SEP] identifier[require] operator[SEP] identifier[positive] operator[SEP] identifier[length] operator[SEP] operator[SEP] Keyword[return] identifier[Codec] operator[SEP] identifier[of] operator[SEP] identifier[Genotype] operator[SEP] identifier[of] operator[SEP] identifier[AnyChromosome] operator[SEP] identifier[of] operator[SEP] identifier[supplier] , identifier[alleleValidator] , identifier[alleleSeqValidator] , identifier[length] operator[SEP] operator[SEP] , identifier[gt] operator[->] identifier[gt] operator[SEP] identifier[getChromosome] operator[SEP] operator[SEP] operator[SEP] identifier[stream] operator[SEP] operator[SEP] operator[SEP] identifier[map] operator[SEP] identifier[Gene] operator[::] identifier[getAllele] operator[SEP] operator[SEP] identifier[collect] operator[SEP] identifier[ISeq] operator[SEP] identifier[toISeq] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
@VisibleForTesting Block createNextBlockWithCoinbase(long version, byte[] pubKey, final int height) { return createNextBlock(null, version, (TransactionOutPoint) null, Utils.currentTimeSeconds(), pubKey, FIFTY_COINS, height); }
class class_name[name] begin[{] method[createNextBlockWithCoinbase, return_type[type[Block]], modifier[default], parameter[version, pubKey, height]] begin[{] return[call[.createNextBlock, parameter[literal[null], member[.version], Cast(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), type=ReferenceType(arguments=None, dimensions=[], name=TransactionOutPoint, sub_type=None)), call[Utils.currentTimeSeconds, parameter[]], member[.pubKey], member[.FIFTY_COINS], member[.height]]]] end[}] END[}]
annotation[@] identifier[VisibleForTesting] identifier[Block] identifier[createNextBlockWithCoinbase] operator[SEP] Keyword[long] identifier[version] , Keyword[byte] operator[SEP] operator[SEP] identifier[pubKey] , Keyword[final] Keyword[int] identifier[height] operator[SEP] { Keyword[return] identifier[createNextBlock] operator[SEP] Other[null] , identifier[version] , operator[SEP] identifier[TransactionOutPoint] operator[SEP] Other[null] , identifier[Utils] operator[SEP] identifier[currentTimeSeconds] operator[SEP] operator[SEP] , identifier[pubKey] , identifier[FIFTY_COINS] , identifier[height] operator[SEP] operator[SEP] }
public MACAddressSection toEUI(boolean extended) { MACAddressSegment[] segs = toEUISegments(extended); if(segs == null) { return null; } MACAddressCreator creator = getMACNetwork().getAddressCreator(); return createSectionInternal(creator, segs, Math.max(0, addressSegmentIndex - 4) << 1, extended); }
class class_name[name] begin[{] method[toEUI, return_type[type[MACAddressSection]], modifier[public], parameter[extended]] begin[{] local_variable[type[MACAddressSegment], segs] if[binary_operation[member[.segs], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[MACAddressCreator], creator] return[call[.createSectionInternal, parameter[member[.creator], member[.segs], binary_operation[call[Math.max, parameter[literal[0], binary_operation[member[.addressSegmentIndex], -, literal[4]]]], <<, literal[1]], member[.extended]]]] end[}] END[}]
Keyword[public] identifier[MACAddressSection] identifier[toEUI] operator[SEP] Keyword[boolean] identifier[extended] operator[SEP] { identifier[MACAddressSegment] operator[SEP] operator[SEP] identifier[segs] operator[=] identifier[toEUISegments] operator[SEP] identifier[extended] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[segs] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } identifier[MACAddressCreator] identifier[creator] operator[=] identifier[getMACNetwork] operator[SEP] operator[SEP] operator[SEP] identifier[getAddressCreator] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[createSectionInternal] operator[SEP] identifier[creator] , identifier[segs] , identifier[Math] operator[SEP] identifier[max] operator[SEP] Other[0] , identifier[addressSegmentIndex] operator[-] Other[4] operator[SEP] operator[<<] Other[1] , identifier[extended] operator[SEP] operator[SEP] }
private static <T> void log(RedwoodChannels channels, String description, Iterable<T> iterable) { Redwood.startTrack(description); if (iterable == null) { channels.log("(iterable is null)"); } else { int index = 0; for (T item : iterable) { if (dispatchable(item)) { log(channels, "Index " + index, item); } else { channels.logf("Index %d: %s", index, item); } index++; } if (index == 0) { channels.log("(empty)"); } } Redwood.endTrack(description); }
class class_name[name] begin[{] method[log, return_type[void], modifier[private static], parameter[channels, description, iterable]] begin[{] call[Redwood.startTrack, parameter[member[.description]]] if[binary_operation[member[.iterable], ==, literal[null]]] begin[{] call[channels.log, parameter[literal["(iterable is null)"]]] else begin[{] local_variable[type[int], index] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=item, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=dispatchable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Index %d: %s"), MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=item, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=logf, postfix_operators=[], prefix_operators=[], qualifier=channels, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=channels, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Index "), operandr=MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), MemberReference(member=item, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=log, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MemberReference(member=index, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=iterable, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=item)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None))), label=None) if[binary_operation[member[.index], ==, literal[0]]] begin[{] call[channels.log, parameter[literal["(empty)"]]] else begin[{] None end[}] end[}] call[Redwood.endTrack, parameter[member[.description]]] end[}] END[}]
Keyword[private] Keyword[static] operator[<] identifier[T] operator[>] Keyword[void] identifier[log] operator[SEP] identifier[RedwoodChannels] identifier[channels] , identifier[String] identifier[description] , identifier[Iterable] operator[<] identifier[T] operator[>] identifier[iterable] operator[SEP] { identifier[Redwood] operator[SEP] identifier[startTrack] operator[SEP] identifier[description] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[iterable] operator[==] Other[null] operator[SEP] { identifier[channels] operator[SEP] identifier[log] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[else] { Keyword[int] identifier[index] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[T] identifier[item] operator[:] identifier[iterable] operator[SEP] { Keyword[if] operator[SEP] identifier[dispatchable] operator[SEP] identifier[item] operator[SEP] operator[SEP] { identifier[log] operator[SEP] identifier[channels] , literal[String] operator[+] identifier[index] , identifier[item] operator[SEP] operator[SEP] } Keyword[else] { identifier[channels] operator[SEP] identifier[logf] operator[SEP] literal[String] , identifier[index] , identifier[item] operator[SEP] operator[SEP] } identifier[index] operator[++] operator[SEP] } Keyword[if] operator[SEP] identifier[index] operator[==] Other[0] operator[SEP] { identifier[channels] operator[SEP] identifier[log] operator[SEP] literal[String] operator[SEP] operator[SEP] } } identifier[Redwood] operator[SEP] identifier[endTrack] operator[SEP] identifier[description] operator[SEP] operator[SEP] }
public void addProperties(final String[] annotationProperties, final PropertyReplacer propertyReplacer) { if (annotationProperties != null) { for (String annotationProperty : annotationProperties) { if (propertyReplacer != null) { annotationProperty = propertyReplacer.replaceProperties(annotationProperty); } final int index = annotationProperty.indexOf('='); String propertyName; String propertyValue; if (index != -1) { propertyName = annotationProperty.substring(0, index); propertyValue = annotationProperty.length() > index ? annotationProperty.substring(index + 1, annotationProperty.length()) : ""; } else { propertyName = annotationProperty; propertyValue = ""; } this.properties.put(propertyName, propertyValue); } } }
class class_name[name] begin[{] method[addProperties, return_type[void], modifier[public], parameter[annotationProperties, propertyReplacer]] begin[{] if[binary_operation[member[.annotationProperties], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=propertyReplacer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=annotationProperty, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=annotationProperty, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=replaceProperties, postfix_operators=[], prefix_operators=[], qualifier=propertyReplacer, selectors=[], type_arguments=None)), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='=')], member=indexOf, postfix_operators=[], prefix_operators=[], qualifier=annotationProperty, selectors=[], type_arguments=None), name=index)], modifiers={'final'}, type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=propertyName)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=propertyValue)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1), operator=!=), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=propertyName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=annotationProperty, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=propertyValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="")), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=propertyName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=substring, postfix_operators=[], prefix_operators=[], qualifier=annotationProperty, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=propertyValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=annotationProperty, selectors=[], type_arguments=None), operandr=MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=>), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=""), if_true=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+), MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=annotationProperty, selectors=[], type_arguments=None)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=annotationProperty, selectors=[], type_arguments=None))), label=None)])), StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=properties, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[MemberReference(member=propertyName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=propertyValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=annotationProperties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=annotationProperty)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[addProperties] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[annotationProperties] , Keyword[final] identifier[PropertyReplacer] identifier[propertyReplacer] operator[SEP] { Keyword[if] operator[SEP] identifier[annotationProperties] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[annotationProperty] operator[:] identifier[annotationProperties] operator[SEP] { Keyword[if] operator[SEP] identifier[propertyReplacer] operator[!=] Other[null] operator[SEP] { identifier[annotationProperty] operator[=] identifier[propertyReplacer] operator[SEP] identifier[replaceProperties] operator[SEP] identifier[annotationProperty] operator[SEP] operator[SEP] } Keyword[final] Keyword[int] identifier[index] operator[=] identifier[annotationProperty] operator[SEP] identifier[indexOf] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[String] identifier[propertyName] operator[SEP] identifier[String] identifier[propertyValue] operator[SEP] Keyword[if] operator[SEP] identifier[index] operator[!=] operator[-] Other[1] operator[SEP] { identifier[propertyName] operator[=] identifier[annotationProperty] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[index] operator[SEP] operator[SEP] identifier[propertyValue] operator[=] identifier[annotationProperty] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] identifier[index] operator[?] identifier[annotationProperty] operator[SEP] identifier[substring] operator[SEP] identifier[index] operator[+] Other[1] , identifier[annotationProperty] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[:] literal[String] operator[SEP] } Keyword[else] { identifier[propertyName] operator[=] identifier[annotationProperty] operator[SEP] identifier[propertyValue] operator[=] literal[String] operator[SEP] } Keyword[this] operator[SEP] identifier[properties] operator[SEP] identifier[put] operator[SEP] identifier[propertyName] , identifier[propertyValue] operator[SEP] operator[SEP] } } }
public void invoke(Object entity) throws EventListenerException { if (!method.isAccessible()) method.setAccessible(true); try { method.invoke(entity, new Object[] {}); } catch (IllegalArgumentException e) { throw new EventListenerException(e); } catch (IllegalAccessException e) { throw new EventListenerException(e); } catch (InvocationTargetException e) { throw new EventListenerException(e); } }
class class_name[name] begin[{] method[invoke, return_type[void], modifier[public], parameter[entity]] begin[{] if[call[method.isAccessible, parameter[]]] begin[{] call[method.setAccessible, parameter[literal[true]]] else begin[{] None end[}] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=entity, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Object, sub_type=None))], member=invoke, postfix_operators=[], prefix_operators=[], qualifier=method, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=EventListenerException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IllegalArgumentException'])), CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=EventListenerException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IllegalAccessException'])), CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=EventListenerException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['InvocationTargetException']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[invoke] operator[SEP] identifier[Object] identifier[entity] operator[SEP] Keyword[throws] identifier[EventListenerException] { Keyword[if] operator[SEP] operator[!] identifier[method] operator[SEP] identifier[isAccessible] operator[SEP] operator[SEP] operator[SEP] identifier[method] operator[SEP] identifier[setAccessible] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[try] { identifier[method] operator[SEP] identifier[invoke] operator[SEP] identifier[entity] , Keyword[new] identifier[Object] operator[SEP] operator[SEP] { } operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IllegalArgumentException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[EventListenerException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IllegalAccessException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[EventListenerException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[InvocationTargetException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[EventListenerException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } }
public static KeyStore toKeyStore(InputStream keyStoreInputStream, char [] keyStorePassword) throws CertificateException { Assert.notNull(keyStoreInputStream, "InputStream of key store is mandatory"); Assert.notNull(keyStorePassword, "Password for key store is mandatory"); try { KeyStore keystore = KeyStore.getInstance("PKCS12"); keystore.load(keyStoreInputStream, keyStorePassword); return keystore; } catch (IOException | NoSuchAlgorithmException | KeyStoreException ex) { throw new IllegalStateException("Failed to load signing information", ex); } }
class class_name[name] begin[{] method[toKeyStore, return_type[type[KeyStore]], modifier[public static], parameter[keyStoreInputStream, keyStorePassword]] begin[{] call[Assert.notNull, parameter[member[.keyStoreInputStream], literal["InputStream of key store is mandatory"]]] call[Assert.notNull, parameter[member[.keyStorePassword], literal["Password for key store is mandatory"]]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="PKCS12")], member=getInstance, postfix_operators=[], prefix_operators=[], qualifier=KeyStore, selectors=[], type_arguments=None), name=keystore)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=KeyStore, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=keyStoreInputStream, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=keyStorePassword, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=load, postfix_operators=[], prefix_operators=[], qualifier=keystore, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=MemberReference(member=keystore, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Failed to load signing information"), MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalStateException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['IOException', 'NoSuchAlgorithmException', 'KeyStoreException']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[static] identifier[KeyStore] identifier[toKeyStore] operator[SEP] identifier[InputStream] identifier[keyStoreInputStream] , Keyword[char] operator[SEP] operator[SEP] identifier[keyStorePassword] operator[SEP] Keyword[throws] identifier[CertificateException] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[keyStoreInputStream] , literal[String] operator[SEP] operator[SEP] identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[keyStorePassword] , literal[String] operator[SEP] operator[SEP] Keyword[try] { identifier[KeyStore] identifier[keystore] operator[=] identifier[KeyStore] operator[SEP] identifier[getInstance] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[keystore] operator[SEP] identifier[load] operator[SEP] identifier[keyStoreInputStream] , identifier[keyStorePassword] operator[SEP] operator[SEP] Keyword[return] identifier[keystore] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] operator[|] identifier[NoSuchAlgorithmException] operator[|] identifier[KeyStoreException] identifier[ex] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[String] , identifier[ex] operator[SEP] operator[SEP] } }
@Nullable public CorsPolicy getPolicy(String origin, PathMappingContext pathMappingContext) { requireNonNull(origin, "origin"); if (isAnyOriginSupported()) { return Iterables.getFirst(policies, null); } final String lowerCaseOrigin = Ascii.toLowerCase(origin); final boolean isNullOrigin = CorsService.NULL_ORIGIN.equals(lowerCaseOrigin); for (final CorsPolicy policy : policies) { if (isNullOrigin && policy.isNullOriginAllowed() && isPathMatched(policy, pathMappingContext)) { return policy; } else if (!isNullOrigin && policy.origins().contains(lowerCaseOrigin) && isPathMatched(policy, pathMappingContext)) { return policy; } } return null; }
class class_name[name] begin[{] method[getPolicy, return_type[type[CorsPolicy]], modifier[public], parameter[origin, pathMappingContext]] begin[{] call[.requireNonNull, parameter[member[.origin], literal["origin"]]] if[call[.isAnyOriginSupported, parameter[]]] begin[{] return[call[Iterables.getFirst, parameter[member[.policies], literal[null]]]] else begin[{] None end[}] local_variable[type[String], lowerCaseOrigin] local_variable[type[boolean], isNullOrigin] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=isNullOrigin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=isNullOriginAllowed, postfix_operators=[], prefix_operators=[], qualifier=policy, selectors=[], type_arguments=None), operator=&&), operandr=MethodInvocation(arguments=[MemberReference(member=policy, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=pathMappingContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isPathMatched, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=&&), else_statement=IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=isNullOrigin, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=origins, postfix_operators=[], prefix_operators=[], qualifier=policy, selectors=[MethodInvocation(arguments=[MemberReference(member=lowerCaseOrigin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), operator=&&), operandr=MethodInvocation(arguments=[MemberReference(member=policy, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=pathMappingContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isPathMatched, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=MemberReference(member=policy, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=MemberReference(member=policy, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=policies, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=policy)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=CorsPolicy, sub_type=None))), label=None) return[literal[null]] end[}] END[}]
annotation[@] identifier[Nullable] Keyword[public] identifier[CorsPolicy] identifier[getPolicy] operator[SEP] identifier[String] identifier[origin] , identifier[PathMappingContext] identifier[pathMappingContext] operator[SEP] { identifier[requireNonNull] operator[SEP] identifier[origin] , literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[isAnyOriginSupported] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[Iterables] operator[SEP] identifier[getFirst] operator[SEP] identifier[policies] , Other[null] operator[SEP] operator[SEP] } Keyword[final] identifier[String] identifier[lowerCaseOrigin] operator[=] identifier[Ascii] operator[SEP] identifier[toLowerCase] operator[SEP] identifier[origin] operator[SEP] operator[SEP] Keyword[final] Keyword[boolean] identifier[isNullOrigin] operator[=] identifier[CorsService] operator[SEP] identifier[NULL_ORIGIN] operator[SEP] identifier[equals] operator[SEP] identifier[lowerCaseOrigin] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[CorsPolicy] identifier[policy] operator[:] identifier[policies] operator[SEP] { Keyword[if] operator[SEP] identifier[isNullOrigin] operator[&&] identifier[policy] operator[SEP] identifier[isNullOriginAllowed] operator[SEP] operator[SEP] operator[&&] identifier[isPathMatched] operator[SEP] identifier[policy] , identifier[pathMappingContext] operator[SEP] operator[SEP] { Keyword[return] identifier[policy] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] operator[!] identifier[isNullOrigin] operator[&&] identifier[policy] operator[SEP] identifier[origins] operator[SEP] operator[SEP] operator[SEP] identifier[contains] operator[SEP] identifier[lowerCaseOrigin] operator[SEP] operator[&&] identifier[isPathMatched] operator[SEP] identifier[policy] , identifier[pathMappingContext] operator[SEP] operator[SEP] { Keyword[return] identifier[policy] operator[SEP] } } Keyword[return] Other[null] operator[SEP] }
@Override public void onMessage(WebSocket webSocket, String message) { JsonObject json = new JsonParser().parse(message).getAsJsonObject(); if (json.has(ERROR)) { String error = json.get(ERROR).getAsString(); // Only call onError() if a real error occurred. The STT service sends // {"error" : "No speech detected for 5s"} for valid timeouts, configured by // RecognizeUsingWebSocketOptions.Builder.inactivityTimeout() if (!error.startsWith(TIMEOUT_PREFIX)) { callback.onError(new RuntimeException(error)); } else { // notify that the service timeouts because of inactivity callback.onInactivityTimeout(new RuntimeException(error)); } } else if (json.has(RESULTS) || json.has(SPEAKER_LABELS)) { callback.onTranscription(GSON.fromJson(message, SpeechRecognitionResults.class)); } else if (json.has(STATE)) { // A listen state after everything has been sent over indicates everything has been processed if (!isListening) { isListening = true; } else { callback.onTranscriptionComplete(); socket.close(CLOSE_NORMAL, "Transcription completed"); return; } // notify that the service is ready to receive audio callback.onListening(); } }
class class_name[name] begin[{] method[onMessage, return_type[void], modifier[public], parameter[webSocket, message]] begin[{] local_variable[type[JsonObject], json] if[call[json.has, parameter[member[.ERROR]]]] begin[{] local_variable[type[String], error] if[call[error.startsWith, parameter[member[.TIMEOUT_PREFIX]]]] begin[{] call[callback.onError, parameter[ClassCreator(arguments=[MemberReference(member=error, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RuntimeException, sub_type=None))]] else begin[{] call[callback.onInactivityTimeout, parameter[ClassCreator(arguments=[MemberReference(member=error, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RuntimeException, sub_type=None))]] end[}] else begin[{] if[binary_operation[call[json.has, parameter[member[.RESULTS]]], ||, call[json.has, parameter[member[.SPEAKER_LABELS]]]]] begin[{] call[callback.onTranscription, parameter[call[GSON.fromJson, parameter[member[.message], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SpeechRecognitionResults, sub_type=None))]]]] else begin[{] if[call[json.has, parameter[member[.STATE]]]] begin[{] if[member[.isListening]] begin[{] assign[member[.isListening], literal[true]] else begin[{] call[callback.onTranscriptionComplete, parameter[]] call[socket.close, parameter[member[.CLOSE_NORMAL], literal["Transcription completed"]]] return[None] end[}] call[callback.onListening, parameter[]] else begin[{] None end[}] end[}] end[}] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[onMessage] operator[SEP] identifier[WebSocket] identifier[webSocket] , identifier[String] identifier[message] operator[SEP] { identifier[JsonObject] identifier[json] operator[=] Keyword[new] identifier[JsonParser] operator[SEP] operator[SEP] operator[SEP] identifier[parse] operator[SEP] identifier[message] operator[SEP] operator[SEP] identifier[getAsJsonObject] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[json] operator[SEP] identifier[has] operator[SEP] identifier[ERROR] operator[SEP] operator[SEP] { identifier[String] identifier[error] operator[=] identifier[json] operator[SEP] identifier[get] operator[SEP] identifier[ERROR] operator[SEP] operator[SEP] identifier[getAsString] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[error] operator[SEP] identifier[startsWith] operator[SEP] identifier[TIMEOUT_PREFIX] operator[SEP] operator[SEP] { identifier[callback] operator[SEP] identifier[onError] operator[SEP] Keyword[new] identifier[RuntimeException] operator[SEP] identifier[error] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[callback] operator[SEP] identifier[onInactivityTimeout] operator[SEP] Keyword[new] identifier[RuntimeException] operator[SEP] identifier[error] operator[SEP] operator[SEP] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[json] operator[SEP] identifier[has] operator[SEP] identifier[RESULTS] operator[SEP] operator[||] identifier[json] operator[SEP] identifier[has] operator[SEP] identifier[SPEAKER_LABELS] operator[SEP] operator[SEP] { identifier[callback] operator[SEP] identifier[onTranscription] operator[SEP] identifier[GSON] operator[SEP] identifier[fromJson] operator[SEP] identifier[message] , identifier[SpeechRecognitionResults] operator[SEP] Keyword[class] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[json] operator[SEP] identifier[has] operator[SEP] identifier[STATE] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isListening] operator[SEP] { identifier[isListening] operator[=] literal[boolean] operator[SEP] } Keyword[else] { identifier[callback] operator[SEP] identifier[onTranscriptionComplete] operator[SEP] operator[SEP] operator[SEP] identifier[socket] operator[SEP] identifier[close] operator[SEP] identifier[CLOSE_NORMAL] , literal[String] operator[SEP] operator[SEP] Keyword[return] operator[SEP] } identifier[callback] operator[SEP] identifier[onListening] operator[SEP] operator[SEP] operator[SEP] } }
public BBox calcBBox2D() { check("calcRouteBBox"); BBox bounds = BBox.createInverse(false); for (int i = 0; i < pointList.getSize(); i++) { bounds.update(pointList.getLatitude(i), pointList.getLongitude(i)); } return bounds; }
class class_name[name] begin[{] method[calcBBox2D, return_type[type[BBox]], modifier[public], parameter[]] begin[{] call[.check, parameter[literal["calcRouteBBox"]]] local_variable[type[BBox], bounds] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getLatitude, postfix_operators=[], prefix_operators=[], qualifier=pointList, selectors=[], type_arguments=None), MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getLongitude, postfix_operators=[], prefix_operators=[], qualifier=pointList, selectors=[], type_arguments=None)], member=update, postfix_operators=[], prefix_operators=[], qualifier=bounds, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=getSize, postfix_operators=[], prefix_operators=[], qualifier=pointList, selectors=[], type_arguments=None), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[member[.bounds]] end[}] END[}]
Keyword[public] identifier[BBox] identifier[calcBBox2D] operator[SEP] operator[SEP] { identifier[check] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[BBox] identifier[bounds] operator[=] identifier[BBox] operator[SEP] identifier[createInverse] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[pointList] operator[SEP] identifier[getSize] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[bounds] operator[SEP] identifier[update] operator[SEP] identifier[pointList] operator[SEP] identifier[getLatitude] operator[SEP] identifier[i] operator[SEP] , identifier[pointList] operator[SEP] identifier[getLongitude] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[bounds] operator[SEP] }
public SuppressAnnotationType createSuppressAnnotation() { final SuppressAnnotationType s = new SuppressAnnotationType(); s.setProject(getProject()); suppressAnnotations.add(s); return s; }
class class_name[name] begin[{] method[createSuppressAnnotation, return_type[type[SuppressAnnotationType]], modifier[public], parameter[]] begin[{] local_variable[type[SuppressAnnotationType], s] call[s.setProject, parameter[call[.getProject, parameter[]]]] call[suppressAnnotations.add, parameter[member[.s]]] return[member[.s]] end[}] END[}]
Keyword[public] identifier[SuppressAnnotationType] identifier[createSuppressAnnotation] operator[SEP] operator[SEP] { Keyword[final] identifier[SuppressAnnotationType] identifier[s] operator[=] Keyword[new] identifier[SuppressAnnotationType] operator[SEP] operator[SEP] operator[SEP] identifier[s] operator[SEP] identifier[setProject] operator[SEP] identifier[getProject] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[suppressAnnotations] operator[SEP] identifier[add] operator[SEP] identifier[s] operator[SEP] operator[SEP] Keyword[return] identifier[s] operator[SEP] }
public SingleFieldBuilder<MType, BType, IType> setMessage( MType message) { if (message == null) { throw new NullPointerException(); } this.message = message; if (builder != null) { builder.dispose(); builder = null; } onChanged(); return this; }
class class_name[name] begin[{] method[setMessage, return_type[type[SingleFieldBuilder]], modifier[public], parameter[message]] begin[{] if[binary_operation[member[.message], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=NullPointerException, sub_type=None)), label=None) else begin[{] None end[}] assign[THIS[member[None.message]], member[.message]] if[binary_operation[member[.builder], !=, literal[null]]] begin[{] call[builder.dispose, parameter[]] assign[member[.builder], literal[null]] else begin[{] None end[}] call[.onChanged, parameter[]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[SingleFieldBuilder] operator[<] identifier[MType] , identifier[BType] , identifier[IType] operator[>] identifier[setMessage] operator[SEP] identifier[MType] identifier[message] operator[SEP] { Keyword[if] operator[SEP] identifier[message] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] operator[SEP] operator[SEP] } Keyword[this] operator[SEP] identifier[message] operator[=] identifier[message] operator[SEP] Keyword[if] operator[SEP] identifier[builder] operator[!=] Other[null] operator[SEP] { identifier[builder] operator[SEP] identifier[dispose] operator[SEP] operator[SEP] operator[SEP] identifier[builder] operator[=] Other[null] operator[SEP] } identifier[onChanged] operator[SEP] operator[SEP] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
public static void shutdown() { UdpResources resources = udpResources.getAndSet(null); if (resources != null) { resources._dispose(); } }
class class_name[name] begin[{] method[shutdown, return_type[void], modifier[public static], parameter[]] begin[{] local_variable[type[UdpResources], resources] if[binary_operation[member[.resources], !=, literal[null]]] begin[{] call[resources._dispose, parameter[]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[shutdown] operator[SEP] operator[SEP] { identifier[UdpResources] identifier[resources] operator[=] identifier[udpResources] operator[SEP] identifier[getAndSet] operator[SEP] Other[null] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[resources] operator[!=] Other[null] operator[SEP] { identifier[resources] operator[SEP] identifier[_dispose] operator[SEP] operator[SEP] operator[SEP] } }
static String pullFontPathFromTextAppearance(final Context context, AttributeSet attrs, int[] attributeId) { if (attributeId == null || attrs == null) { return null; } int textAppearanceId = -1; final TypedArray typedArrayAttr = context.obtainStyledAttributes(attrs, ANDROID_ATTR_TEXT_APPEARANCE); if (typedArrayAttr != null) { try { textAppearanceId = typedArrayAttr.getResourceId(0, -1); } catch (Exception ignored) { // Failed for some reason return null; } finally { typedArrayAttr.recycle(); } } final TypedArray textAppearanceAttrs = context.obtainStyledAttributes(textAppearanceId, attributeId); if (textAppearanceAttrs != null) { try { return textAppearanceAttrs.getString(0); } catch (Exception ignore) { // Failed for some reason. return null; } finally { textAppearanceAttrs.recycle(); } } return null; }
class class_name[name] begin[{] method[pullFontPathFromTextAppearance, return_type[type[String]], modifier[static], parameter[context, attrs, attributeId]] begin[{] if[binary_operation[binary_operation[member[.attributeId], ==, literal[null]], ||, binary_operation[member[.attrs], ==, literal[null]]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[int], textAppearanceId] local_variable[type[TypedArray], typedArrayAttr] if[binary_operation[member[.typedArrayAttr], !=, literal[null]]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=textAppearanceId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], member=getResourceId, postfix_operators=[], prefix_operators=[], qualifier=typedArrayAttr, selectors=[], type_arguments=None)), label=None)], catches=[CatchClause(block=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ignored, types=['Exception']))], finally_block=[StatementExpression(expression=MethodInvocation(arguments=[], member=recycle, postfix_operators=[], prefix_operators=[], qualifier=typedArrayAttr, selectors=[], type_arguments=None), label=None)], label=None, resources=None) else begin[{] None end[}] local_variable[type[TypedArray], textAppearanceAttrs] if[binary_operation[member[.textAppearanceAttrs], !=, literal[null]]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=getString, postfix_operators=[], prefix_operators=[], qualifier=textAppearanceAttrs, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ignore, types=['Exception']))], finally_block=[StatementExpression(expression=MethodInvocation(arguments=[], member=recycle, postfix_operators=[], prefix_operators=[], qualifier=textAppearanceAttrs, selectors=[], type_arguments=None), label=None)], label=None, resources=None) else begin[{] None end[}] return[literal[null]] end[}] END[}]
Keyword[static] identifier[String] identifier[pullFontPathFromTextAppearance] operator[SEP] Keyword[final] identifier[Context] identifier[context] , identifier[AttributeSet] identifier[attrs] , Keyword[int] operator[SEP] operator[SEP] identifier[attributeId] operator[SEP] { Keyword[if] operator[SEP] identifier[attributeId] operator[==] Other[null] operator[||] identifier[attrs] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[int] identifier[textAppearanceId] operator[=] operator[-] Other[1] operator[SEP] Keyword[final] identifier[TypedArray] identifier[typedArrayAttr] operator[=] identifier[context] operator[SEP] identifier[obtainStyledAttributes] operator[SEP] identifier[attrs] , identifier[ANDROID_ATTR_TEXT_APPEARANCE] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[typedArrayAttr] operator[!=] Other[null] operator[SEP] { Keyword[try] { identifier[textAppearanceId] operator[=] identifier[typedArrayAttr] operator[SEP] identifier[getResourceId] operator[SEP] Other[0] , operator[-] Other[1] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[ignored] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[finally] { identifier[typedArrayAttr] operator[SEP] identifier[recycle] operator[SEP] operator[SEP] operator[SEP] } } Keyword[final] identifier[TypedArray] identifier[textAppearanceAttrs] operator[=] identifier[context] operator[SEP] identifier[obtainStyledAttributes] operator[SEP] identifier[textAppearanceId] , identifier[attributeId] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[textAppearanceAttrs] operator[!=] Other[null] operator[SEP] { Keyword[try] { Keyword[return] identifier[textAppearanceAttrs] operator[SEP] identifier[getString] operator[SEP] Other[0] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[ignore] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[finally] { identifier[textAppearanceAttrs] operator[SEP] identifier[recycle] operator[SEP] operator[SEP] operator[SEP] } } Keyword[return] Other[null] operator[SEP] }
public static boolean isPowerPacker(RandomAccessInputStream input) throws IOException { long pos = input.getFilePointer(); input.seek(0); byte [] ppId = new byte [4]; input.read(ppId, 0, 4); input.seek(pos); return Helpers.retrieveAsString(ppId, 0, 4).equals("PP20"); }
class class_name[name] begin[{] method[isPowerPacker, return_type[type[boolean]], modifier[public static], parameter[input]] begin[{] local_variable[type[long], pos] call[input.seek, parameter[literal[0]]] local_variable[type[byte], ppId] call[input.read, parameter[member[.ppId], literal[0], literal[4]]] call[input.seek, parameter[member[.pos]]] return[call[Helpers.retrieveAsString, parameter[member[.ppId], literal[0], literal[4]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[boolean] identifier[isPowerPacker] operator[SEP] identifier[RandomAccessInputStream] identifier[input] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[long] identifier[pos] operator[=] identifier[input] operator[SEP] identifier[getFilePointer] operator[SEP] operator[SEP] operator[SEP] identifier[input] operator[SEP] identifier[seek] operator[SEP] Other[0] operator[SEP] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[ppId] operator[=] Keyword[new] Keyword[byte] operator[SEP] Other[4] operator[SEP] operator[SEP] identifier[input] operator[SEP] identifier[read] operator[SEP] identifier[ppId] , Other[0] , Other[4] operator[SEP] operator[SEP] identifier[input] operator[SEP] identifier[seek] operator[SEP] identifier[pos] operator[SEP] operator[SEP] Keyword[return] identifier[Helpers] operator[SEP] identifier[retrieveAsString] operator[SEP] identifier[ppId] , Other[0] , Other[4] operator[SEP] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] }
public String registerBlockListener(BlockListener listener) throws InvalidArgumentException { if (shutdown) { throw new InvalidArgumentException(format("Channel %s has been shutdown.", name)); } if (null == listener) { throw new InvalidArgumentException("Listener parameter is null."); } String handle = new BL(listener).getHandle(); logger.trace(format("Register event BlockEvent listener %s", handle)); return handle; }
class class_name[name] begin[{] method[registerBlockListener, return_type[type[String]], modifier[public], parameter[listener]] begin[{] if[member[.shutdown]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Channel %s has been shutdown."), MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=format, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InvalidArgumentException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[literal[null], ==, member[.listener]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Listener parameter is null.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InvalidArgumentException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[String], handle] call[logger.trace, parameter[call[.format, parameter[literal["Register event BlockEvent listener %s"], member[.handle]]]]] return[member[.handle]] end[}] END[}]
Keyword[public] identifier[String] identifier[registerBlockListener] operator[SEP] identifier[BlockListener] identifier[listener] operator[SEP] Keyword[throws] identifier[InvalidArgumentException] { Keyword[if] operator[SEP] identifier[shutdown] operator[SEP] { Keyword[throw] Keyword[new] identifier[InvalidArgumentException] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[name] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] Other[null] operator[==] identifier[listener] operator[SEP] { Keyword[throw] Keyword[new] identifier[InvalidArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[String] identifier[handle] operator[=] Keyword[new] identifier[BL] operator[SEP] identifier[listener] operator[SEP] operator[SEP] identifier[getHandle] operator[SEP] operator[SEP] operator[SEP] identifier[logger] operator[SEP] identifier[trace] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[handle] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[handle] operator[SEP] }
public <E extends V> E popAs(final Class<E> c, final int down) { return c.cast(pop(down)); }
class class_name[name] begin[{] method[popAs, return_type[type[E]], modifier[public], parameter[c, down]] begin[{] return[call[c.cast, parameter[call[.pop, parameter[member[.down]]]]]] end[}] END[}]
Keyword[public] operator[<] identifier[E] Keyword[extends] identifier[V] operator[>] identifier[E] identifier[popAs] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[E] operator[>] identifier[c] , Keyword[final] Keyword[int] identifier[down] operator[SEP] { Keyword[return] identifier[c] operator[SEP] identifier[cast] operator[SEP] identifier[pop] operator[SEP] identifier[down] operator[SEP] operator[SEP] operator[SEP] }
public static void write(final PrivateKey privateKey, final @NonNull OutputStream outputStream) throws IOException { final byte[] privateKeyBytes = privateKey.getEncoded(); final PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(privateKeyBytes); outputStream.write(keySpec.getEncoded()); outputStream.close(); }
class class_name[name] begin[{] method[write, return_type[void], modifier[public static], parameter[privateKey, outputStream]] begin[{] local_variable[type[byte], privateKeyBytes] local_variable[type[PKCS8EncodedKeySpec], keySpec] call[outputStream.write, parameter[call[keySpec.getEncoded, parameter[]]]] call[outputStream.close, parameter[]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[write] operator[SEP] Keyword[final] identifier[PrivateKey] identifier[privateKey] , Keyword[final] annotation[@] identifier[NonNull] identifier[OutputStream] identifier[outputStream] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[privateKeyBytes] operator[=] identifier[privateKey] operator[SEP] identifier[getEncoded] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[PKCS8EncodedKeySpec] identifier[keySpec] operator[=] Keyword[new] identifier[PKCS8EncodedKeySpec] operator[SEP] identifier[privateKeyBytes] operator[SEP] operator[SEP] identifier[outputStream] operator[SEP] identifier[write] operator[SEP] identifier[keySpec] operator[SEP] identifier[getEncoded] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[outputStream] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] }
static Point2D toAwtPoint(Point2d point) { return new Point2D.Double(point.x, point.y); }
class class_name[name] begin[{] method[toAwtPoint, return_type[type[Point2D]], modifier[static], parameter[point]] begin[{] return[ClassCreator(arguments=[MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=point, selectors=[]), MemberReference(member=y, postfix_operators=[], prefix_operators=[], qualifier=point, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Point2D, sub_type=ReferenceType(arguments=None, dimensions=None, name=Double, sub_type=None)))] end[}] END[}]
Keyword[static] identifier[Point2D] identifier[toAwtPoint] operator[SEP] identifier[Point2d] identifier[point] operator[SEP] { Keyword[return] Keyword[new] identifier[Point2D] operator[SEP] identifier[Double] operator[SEP] identifier[point] operator[SEP] identifier[x] , identifier[point] operator[SEP] identifier[y] operator[SEP] operator[SEP] }
public void setDMName(String newDMName) { String oldDMName = dmName; dmName = newDMName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.EDM__DM_NAME, oldDMName, dmName)); }
class class_name[name] begin[{] method[setDMName, return_type[void], modifier[public], parameter[newDMName]] begin[{] local_variable[type[String], oldDMName] assign[member[.dmName], member[.newDMName]] if[call[.eNotificationRequired, parameter[]]] begin[{] call[.eNotify, parameter[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=SET, postfix_operators=[], prefix_operators=[], qualifier=Notification, selectors=[]), MemberReference(member=EDM__DM_NAME, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[]), MemberReference(member=oldDMName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=dmName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ENotificationImpl, sub_type=None))]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[setDMName] operator[SEP] identifier[String] identifier[newDMName] operator[SEP] { identifier[String] identifier[oldDMName] operator[=] identifier[dmName] operator[SEP] identifier[dmName] operator[=] identifier[newDMName] operator[SEP] Keyword[if] operator[SEP] identifier[eNotificationRequired] operator[SEP] operator[SEP] operator[SEP] identifier[eNotify] operator[SEP] Keyword[new] identifier[ENotificationImpl] operator[SEP] Keyword[this] , identifier[Notification] operator[SEP] identifier[SET] , identifier[AfplibPackage] operator[SEP] identifier[EDM__DM_NAME] , identifier[oldDMName] , identifier[dmName] operator[SEP] operator[SEP] operator[SEP] }
public Optional<Application> show(long applicationId) { return HTTP.GET(String.format("/v2/applications/%d.json", applicationId), APPLICATION); }
class class_name[name] begin[{] method[show, return_type[type[Optional]], modifier[public], parameter[applicationId]] begin[{] return[call[HTTP.GET, parameter[call[String.format, parameter[literal["/v2/applications/%d.json"], member[.applicationId]]], member[.APPLICATION]]]] end[}] END[}]
Keyword[public] identifier[Optional] operator[<] identifier[Application] operator[>] identifier[show] operator[SEP] Keyword[long] identifier[applicationId] operator[SEP] { Keyword[return] identifier[HTTP] operator[SEP] identifier[GET] operator[SEP] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[applicationId] operator[SEP] , identifier[APPLICATION] operator[SEP] operator[SEP] }
private _ValueReferenceWrapper getValueReference( final ValueExpression valueExpression, final FacesContext context) { ELContext elCtx = context.getELContext(); if (_ExternalSpecifications.isUnifiedELAvailable()) { // unified el 2.2 is available --> we can use ValueExpression.getValueReference() // we can't access ValueExpression.getValueReference() directly here, because // Class loading would fail in applications with el-api versions prior to 2.2 _ValueReferenceWrapper wrapper = _BeanValidatorUELUtils.getUELValueReferenceWrapper(valueExpression, elCtx); if (wrapper != null) { if (wrapper.getProperty() == null) { // Fix for issue in Glassfish EL-impl-2.2.3 if (firstValueReferenceWarning && log.isLoggable(Level.WARNING)) { firstValueReferenceWarning = false; log.warning("ValueReference.getProperty() is null. " + "Falling back to classic ValueReference resolving. " + "This fallback may hurt performance. " + "This may be caused by a bug your EL implementation. " + "Glassfish EL-impl-2.2.3 is known for this issue. " + "Try switching to a different EL implementation."); } } else { return wrapper; } } } // get base object and property name the "old-fashioned" way return _ValueReferenceResolver.resolve(valueExpression, elCtx); }
class class_name[name] begin[{] method[getValueReference, return_type[type[_ValueReferenceWrapper]], modifier[private], parameter[valueExpression, context]] begin[{] local_variable[type[ELContext], elCtx] if[call[_ExternalSpecifications.isUnifiedELAvailable, parameter[]]] begin[{] local_variable[type[_ValueReferenceWrapper], wrapper] if[binary_operation[member[.wrapper], !=, literal[null]]] begin[{] if[binary_operation[call[wrapper.getProperty, parameter[]], ==, literal[null]]] begin[{] if[binary_operation[member[.firstValueReferenceWarning], &&, call[log.isLoggable, parameter[member[Level.WARNING]]]]] begin[{] assign[member[.firstValueReferenceWarning], literal[false]] call[log.warning, parameter[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[literal["ValueReference.getProperty() is null. "], +, literal["Falling back to classic ValueReference resolving. "]], +, literal["This fallback may hurt performance. "]], +, literal["This may be caused by a bug your EL implementation. "]], +, literal["Glassfish EL-impl-2.2.3 is known for this issue. "]], +, literal["Try switching to a different EL implementation."]]]] else begin[{] None end[}] else begin[{] return[member[.wrapper]] end[}] else begin[{] None end[}] else begin[{] None end[}] return[call[_ValueReferenceResolver.resolve, parameter[member[.valueExpression], member[.elCtx]]]] end[}] END[}]
Keyword[private] identifier[_ValueReferenceWrapper] identifier[getValueReference] operator[SEP] Keyword[final] identifier[ValueExpression] identifier[valueExpression] , Keyword[final] identifier[FacesContext] identifier[context] operator[SEP] { identifier[ELContext] identifier[elCtx] operator[=] identifier[context] operator[SEP] identifier[getELContext] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[_ExternalSpecifications] operator[SEP] identifier[isUnifiedELAvailable] operator[SEP] operator[SEP] operator[SEP] { identifier[_ValueReferenceWrapper] identifier[wrapper] operator[=] identifier[_BeanValidatorUELUtils] operator[SEP] identifier[getUELValueReferenceWrapper] operator[SEP] identifier[valueExpression] , identifier[elCtx] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[wrapper] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[wrapper] operator[SEP] identifier[getProperty] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[firstValueReferenceWarning] operator[&&] identifier[log] operator[SEP] identifier[isLoggable] operator[SEP] identifier[Level] operator[SEP] identifier[WARNING] operator[SEP] operator[SEP] { identifier[firstValueReferenceWarning] operator[=] literal[boolean] operator[SEP] identifier[log] operator[SEP] identifier[warning] operator[SEP] literal[String] operator[+] literal[String] operator[+] literal[String] operator[+] literal[String] operator[+] literal[String] operator[+] literal[String] operator[SEP] operator[SEP] } } Keyword[else] { Keyword[return] identifier[wrapper] operator[SEP] } } } Keyword[return] identifier[_ValueReferenceResolver] operator[SEP] identifier[resolve] operator[SEP] identifier[valueExpression] , identifier[elCtx] operator[SEP] operator[SEP] }
protected boolean isEqual(GregorianTimezoneRule rule) { return ( this.getTimeOfDay().equals(rule.getTimeOfDay()) && (this.getDayOverflow() == rule.getDayOverflow()) && (this.getIndicator() == rule.getIndicator()) && (this.getSavings() == rule.getSavings()) && (this.month == rule.month)); }
class class_name[name] begin[{] method[isEqual, return_type[type[boolean]], modifier[protected], parameter[rule]] begin[{] return[binary_operation[binary_operation[binary_operation[binary_operation[THIS[call[None.getTimeOfDay, parameter[]]call[None.equals, parameter[call[rule.getTimeOfDay, parameter[]]]]], &&, binary_operation[THIS[call[None.getDayOverflow, parameter[]]], ==, call[rule.getDayOverflow, parameter[]]]], &&, binary_operation[THIS[call[None.getIndicator, parameter[]]], ==, call[rule.getIndicator, parameter[]]]], &&, binary_operation[THIS[call[None.getSavings, parameter[]]], ==, call[rule.getSavings, parameter[]]]], &&, binary_operation[THIS[member[None.month]], ==, member[rule.month]]]] end[}] END[}]
Keyword[protected] Keyword[boolean] identifier[isEqual] operator[SEP] identifier[GregorianTimezoneRule] identifier[rule] operator[SEP] { Keyword[return] operator[SEP] Keyword[this] operator[SEP] identifier[getTimeOfDay] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[rule] operator[SEP] identifier[getTimeOfDay] operator[SEP] operator[SEP] operator[SEP] operator[&&] operator[SEP] Keyword[this] operator[SEP] identifier[getDayOverflow] operator[SEP] operator[SEP] operator[==] identifier[rule] operator[SEP] identifier[getDayOverflow] operator[SEP] operator[SEP] operator[SEP] operator[&&] operator[SEP] Keyword[this] operator[SEP] identifier[getIndicator] operator[SEP] operator[SEP] operator[==] identifier[rule] operator[SEP] identifier[getIndicator] operator[SEP] operator[SEP] operator[SEP] operator[&&] operator[SEP] Keyword[this] operator[SEP] identifier[getSavings] operator[SEP] operator[SEP] operator[==] identifier[rule] operator[SEP] identifier[getSavings] operator[SEP] operator[SEP] operator[SEP] operator[&&] operator[SEP] Keyword[this] operator[SEP] identifier[month] operator[==] identifier[rule] operator[SEP] identifier[month] operator[SEP] operator[SEP] operator[SEP] }
public static JsonHash fromParser(JsonPullParser parser) throws IOException, JsonFormatException { State state = parser.getEventType(); if (state == State.VALUE_NULL) { return null; } else if (state != State.START_HASH) { throw new JsonFormatException("unexpected token. token=" + state, parser); } JsonHash jsonHash = new JsonHash(); while ((state = parser.lookAhead()) != State.END_HASH) { state = parser.getEventType(); if (state != State.KEY) { throw new JsonFormatException("unexpected token. token=" + state, parser); } String key = parser.getValueString(); state = parser.lookAhead(); jsonHash.put(key, getValue(parser), state); } parser.getEventType(); return jsonHash; }
class class_name[name] begin[{] method[fromParser, return_type[type[JsonHash]], modifier[public static], parameter[parser]] begin[{] local_variable[type[State], state] if[binary_operation[member[.state], ==, member[State.VALUE_NULL]]] begin[{] return[literal[null]] else begin[{] if[binary_operation[member[.state], !=, member[State.START_HASH]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="unexpected token. token="), operandr=MemberReference(member=state, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), MemberReference(member=parser, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=JsonFormatException, sub_type=None)), label=None) else begin[{] None end[}] end[}] local_variable[type[JsonHash], jsonHash] while[binary_operation[assign[member[.state], call[parser.lookAhead, parameter[]]], !=, member[State.END_HASH]]] begin[{] assign[member[.state], call[parser.getEventType, parameter[]]] if[binary_operation[member[.state], !=, member[State.KEY]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="unexpected token. token="), operandr=MemberReference(member=state, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), MemberReference(member=parser, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=JsonFormatException, sub_type=None)), label=None) else begin[{] None end[}] local_variable[type[String], key] assign[member[.state], call[parser.lookAhead, parameter[]]] call[jsonHash.put, parameter[member[.key], call[.getValue, parameter[member[.parser]]], member[.state]]] end[}] call[parser.getEventType, parameter[]] return[member[.jsonHash]] end[}] END[}]
Keyword[public] Keyword[static] identifier[JsonHash] identifier[fromParser] operator[SEP] identifier[JsonPullParser] identifier[parser] operator[SEP] Keyword[throws] identifier[IOException] , identifier[JsonFormatException] { identifier[State] identifier[state] operator[=] identifier[parser] operator[SEP] identifier[getEventType] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[state] operator[==] identifier[State] operator[SEP] identifier[VALUE_NULL] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[state] operator[!=] identifier[State] operator[SEP] identifier[START_HASH] operator[SEP] { Keyword[throw] Keyword[new] identifier[JsonFormatException] operator[SEP] literal[String] operator[+] identifier[state] , identifier[parser] operator[SEP] operator[SEP] } identifier[JsonHash] identifier[jsonHash] operator[=] Keyword[new] identifier[JsonHash] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[state] operator[=] identifier[parser] operator[SEP] identifier[lookAhead] operator[SEP] operator[SEP] operator[SEP] operator[!=] identifier[State] operator[SEP] identifier[END_HASH] operator[SEP] { identifier[state] operator[=] identifier[parser] operator[SEP] identifier[getEventType] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[state] operator[!=] identifier[State] operator[SEP] identifier[KEY] operator[SEP] { Keyword[throw] Keyword[new] identifier[JsonFormatException] operator[SEP] literal[String] operator[+] identifier[state] , identifier[parser] operator[SEP] operator[SEP] } identifier[String] identifier[key] operator[=] identifier[parser] operator[SEP] identifier[getValueString] operator[SEP] operator[SEP] operator[SEP] identifier[state] operator[=] identifier[parser] operator[SEP] identifier[lookAhead] operator[SEP] operator[SEP] operator[SEP] identifier[jsonHash] operator[SEP] identifier[put] operator[SEP] identifier[key] , identifier[getValue] operator[SEP] identifier[parser] operator[SEP] , identifier[state] operator[SEP] operator[SEP] } identifier[parser] operator[SEP] identifier[getEventType] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[jsonHash] operator[SEP] }
public static String wrapIfMissing(final String str, final String wrapWith) { if (isEmpty(str) || isEmpty(wrapWith)) { return str; } final StringBuilder builder = new StringBuilder(str.length() + wrapWith.length() + wrapWith.length()); if (!str.startsWith(wrapWith)) { builder.append(wrapWith); } builder.append(str); if (!str.endsWith(wrapWith)) { builder.append(wrapWith); } return builder.toString(); }
class class_name[name] begin[{] method[wrapIfMissing, return_type[type[String]], modifier[public static], parameter[str, wrapWith]] begin[{] if[binary_operation[call[.isEmpty, parameter[member[.str]]], ||, call[.isEmpty, parameter[member[.wrapWith]]]]] begin[{] return[member[.str]] else begin[{] None end[}] local_variable[type[StringBuilder], builder] if[call[str.startsWith, parameter[member[.wrapWith]]]] begin[{] call[builder.append, parameter[member[.wrapWith]]] else begin[{] None end[}] call[builder.append, parameter[member[.str]]] if[call[str.endsWith, parameter[member[.wrapWith]]]] begin[{] call[builder.append, parameter[member[.wrapWith]]] else begin[{] None end[}] return[call[builder.toString, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[wrapIfMissing] operator[SEP] Keyword[final] identifier[String] identifier[str] , Keyword[final] identifier[String] identifier[wrapWith] operator[SEP] { Keyword[if] operator[SEP] identifier[isEmpty] operator[SEP] identifier[str] operator[SEP] operator[||] identifier[isEmpty] operator[SEP] identifier[wrapWith] operator[SEP] operator[SEP] { Keyword[return] identifier[str] operator[SEP] } Keyword[final] identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] identifier[str] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[+] identifier[wrapWith] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[+] identifier[wrapWith] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[str] operator[SEP] identifier[startsWith] operator[SEP] identifier[wrapWith] operator[SEP] operator[SEP] { identifier[builder] operator[SEP] identifier[append] operator[SEP] identifier[wrapWith] operator[SEP] operator[SEP] } identifier[builder] operator[SEP] identifier[append] operator[SEP] identifier[str] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[str] operator[SEP] identifier[endsWith] operator[SEP] identifier[wrapWith] operator[SEP] operator[SEP] { identifier[builder] operator[SEP] identifier[append] operator[SEP] identifier[wrapWith] operator[SEP] operator[SEP] } Keyword[return] identifier[builder] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
public Request header(String name, Object value) { if (headers == null) { headers = new LinkedHashMap<String, Object>(); } headers.put(name, value); return this; }
class class_name[name] begin[{] method[header, return_type[type[Request]], modifier[public], parameter[name, value]] begin[{] if[binary_operation[member[.headers], ==, literal[null]]] begin[{] assign[member[.headers], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None))], dimensions=None, name=LinkedHashMap, sub_type=None))] else begin[{] None end[}] call[headers.put, parameter[member[.name], member[.value]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[Request] identifier[header] operator[SEP] identifier[String] identifier[name] , identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[headers] operator[==] Other[null] operator[SEP] { identifier[headers] operator[=] Keyword[new] identifier[LinkedHashMap] operator[<] identifier[String] , identifier[Object] operator[>] operator[SEP] operator[SEP] operator[SEP] } identifier[headers] operator[SEP] identifier[put] operator[SEP] identifier[name] , identifier[value] operator[SEP] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
public static <T> boolean any(final Iterable<T> sequence, final Predicate<? super T> predicate) { for (T t : sequence) { if (predicate.test(t)) { return true; } } return false; }
class class_name[name] begin[{] method[any, return_type[type[boolean]], modifier[public static], parameter[sequence, predicate]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=t, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=test, postfix_operators=[], prefix_operators=[], qualifier=predicate, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=sequence, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=t)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None))), label=None) return[literal[false]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[boolean] identifier[any] operator[SEP] Keyword[final] identifier[Iterable] operator[<] identifier[T] operator[>] identifier[sequence] , Keyword[final] identifier[Predicate] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifier[predicate] operator[SEP] { Keyword[for] operator[SEP] identifier[T] identifier[t] operator[:] identifier[sequence] operator[SEP] { Keyword[if] operator[SEP] identifier[predicate] operator[SEP] identifier[test] operator[SEP] identifier[t] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } } Keyword[return] literal[boolean] operator[SEP] }
@Reference(cardinality=ReferenceCardinality.OPTIONAL, policyOption=ReferencePolicyOption.GREEDY) protected void setExpressionFactoryService(ServiceReference<ELFactoryWrapperForCDI> expressionFactoryService) { this.expressionFactoryService.setReference(expressionFactoryService); }
class class_name[name] begin[{] method[setExpressionFactoryService, return_type[void], modifier[protected], parameter[expressionFactoryService]] begin[{] THIS[member[None.expressionFactoryService]call[None.setReference, parameter[member[.expressionFactoryService]]]] end[}] END[}]
annotation[@] identifier[Reference] operator[SEP] identifier[cardinality] operator[=] identifier[ReferenceCardinality] operator[SEP] identifier[OPTIONAL] , identifier[policyOption] operator[=] identifier[ReferencePolicyOption] operator[SEP] identifier[GREEDY] operator[SEP] Keyword[protected] Keyword[void] identifier[setExpressionFactoryService] operator[SEP] identifier[ServiceReference] operator[<] identifier[ELFactoryWrapperForCDI] operator[>] identifier[expressionFactoryService] operator[SEP] { Keyword[this] operator[SEP] identifier[expressionFactoryService] operator[SEP] identifier[setReference] operator[SEP] identifier[expressionFactoryService] operator[SEP] operator[SEP] }
public ArrayList<JTSFeature> getFeatures(String id, double lon, double lat, double distanceInMeters, List<Param> optionalParams) throws Exception { DescribeService describeService = getDescribeServiceByID(id); double[] bbox = Calculator.boundingCoordinates(lon, lat, distanceInMeters); return getFeatures(id, optionalParams, describeService, bbox[0], bbox[1], bbox[2], bbox[3], lon, lat); }
class class_name[name] begin[{] method[getFeatures, return_type[type[ArrayList]], modifier[public], parameter[id, lon, lat, distanceInMeters, optionalParams]] begin[{] local_variable[type[DescribeService], describeService] local_variable[type[double], bbox] return[call[.getFeatures, parameter[member[.id], member[.optionalParams], member[.describeService], member[.bbox], member[.bbox], member[.bbox], member[.bbox], member[.lon], member[.lat]]]] end[}] END[}]
Keyword[public] identifier[ArrayList] operator[<] identifier[JTSFeature] operator[>] identifier[getFeatures] operator[SEP] identifier[String] identifier[id] , Keyword[double] identifier[lon] , Keyword[double] identifier[lat] , Keyword[double] identifier[distanceInMeters] , identifier[List] operator[<] identifier[Param] operator[>] identifier[optionalParams] operator[SEP] Keyword[throws] identifier[Exception] { identifier[DescribeService] identifier[describeService] operator[=] identifier[getDescribeServiceByID] operator[SEP] identifier[id] operator[SEP] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[bbox] operator[=] identifier[Calculator] operator[SEP] identifier[boundingCoordinates] operator[SEP] identifier[lon] , identifier[lat] , identifier[distanceInMeters] operator[SEP] operator[SEP] Keyword[return] identifier[getFeatures] operator[SEP] identifier[id] , identifier[optionalParams] , identifier[describeService] , identifier[bbox] operator[SEP] Other[0] operator[SEP] , identifier[bbox] operator[SEP] Other[1] operator[SEP] , identifier[bbox] operator[SEP] Other[2] operator[SEP] , identifier[bbox] operator[SEP] Other[3] operator[SEP] , identifier[lon] , identifier[lat] operator[SEP] operator[SEP] }
public void finish () throws IOException { if ( !this.finished ) { this.finished = true; writeEnd (); } try { this.out.close (); } catch ( final XMLStreamException e ) { throw new IOException ( e ); } }
class class_name[name] begin[{] method[finish, return_type[void], modifier[public], parameter[]] begin[{] if[THIS[member[None.finished]]] begin[{] assign[THIS[member[None.finished]], literal[true]] call[.writeEnd, parameter[]] else begin[{] None end[}] TryStatement(block=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=out, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None), MethodInvocation(arguments=[], member=close, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IOException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['XMLStreamException']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[finish] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] operator[!] Keyword[this] operator[SEP] identifier[finished] operator[SEP] { Keyword[this] operator[SEP] identifier[finished] operator[=] literal[boolean] operator[SEP] identifier[writeEnd] operator[SEP] operator[SEP] operator[SEP] } Keyword[try] { Keyword[this] operator[SEP] identifier[out] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] Keyword[final] identifier[XMLStreamException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[IOException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } }
protected static int toDigit(final char ch, final int index) throws IllegalArgumentException { final int digit = Character.digit(ch, 16); if (digit == -1) { throw new IllegalArgumentException("Illegal hexadecimal character " + ch + " at index " + index); } return digit; }
class class_name[name] begin[{] method[toDigit, return_type[type[int]], modifier[static protected], parameter[ch, index]] begin[{] local_variable[type[int], digit] if[binary_operation[member[.digit], ==, literal[1]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Illegal hexadecimal character "), operandr=MemberReference(member=ch, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" at index "), operator=+), operandr=MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] return[member[.digit]] end[}] END[}]
Keyword[protected] Keyword[static] Keyword[int] identifier[toDigit] operator[SEP] Keyword[final] Keyword[char] identifier[ch] , Keyword[final] Keyword[int] identifier[index] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { Keyword[final] Keyword[int] identifier[digit] operator[=] identifier[Character] operator[SEP] identifier[digit] operator[SEP] identifier[ch] , Other[16] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[digit] operator[==] operator[-] Other[1] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[ch] operator[+] literal[String] operator[+] identifier[index] operator[SEP] operator[SEP] } Keyword[return] identifier[digit] operator[SEP] }
public static DoubleBinding tan(final ObservableDoubleValue a) { return createDoubleBinding(() -> Math.tan(a.get()), a); }
class class_name[name] begin[{] method[tan, return_type[type[DoubleBinding]], modifier[public static], parameter[a]] begin[{] return[call[.createDoubleBinding, parameter[LambdaExpression(body=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[], type_arguments=None)], member=tan, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), parameters=[]), member[.a]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[DoubleBinding] identifier[tan] operator[SEP] Keyword[final] identifier[ObservableDoubleValue] identifier[a] operator[SEP] { Keyword[return] identifier[createDoubleBinding] operator[SEP] operator[SEP] operator[SEP] operator[->] identifier[Math] operator[SEP] identifier[tan] operator[SEP] identifier[a] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] , identifier[a] operator[SEP] operator[SEP] }
public String nextToken() throws ParserException { int start = pos; checkPosition(); boolean done = false; while (!done && pos < s.length()) { int c = s.charAt(pos); if (c <= 31 // || c == 127 // || c == '(' // || c == ')' // || c == '<' // || c == '>' // || c == '@' // || c == ',' // || c == ';' // || c == ':' // || c == '\\' // || c == '"' // || c == '/' // || c == '[' // || c == ']' // || c == '?' // || c == '=' // || c == '{' // || c == '}' // || Character.isWhitespace((char) c)) { done = true; } else { ++pos; } } if (start == pos) { throw new ParserException(); } return s.substring(start, pos); }
class class_name[name] begin[{] method[nextToken, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[int], start] call[.checkPosition, parameter[]] local_variable[type[boolean], done] while[binary_operation[member[.done], &&, binary_operation[member[.pos], <, call[s.length, parameter[]]]]] begin[{] local_variable[type[int], c] if[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[member[.c], <=, literal[31]], ||, binary_operation[member[.c], ==, literal[127]]], ||, binary_operation[member[.c], ==, literal['(']]], ||, binary_operation[member[.c], ==, literal[')']]], ||, binary_operation[member[.c], ==, literal['<']]], ||, binary_operation[member[.c], ==, literal['>']]], ||, binary_operation[member[.c], ==, literal['@']]], ||, binary_operation[member[.c], ==, literal[',']]], ||, binary_operation[member[.c], ==, literal[';']]], ||, binary_operation[member[.c], ==, literal[':']]], ||, binary_operation[member[.c], ==, literal['\\']]], ||, binary_operation[member[.c], ==, literal['"']]], ||, binary_operation[member[.c], ==, literal['/']]], ||, binary_operation[member[.c], ==, literal['[']]], ||, binary_operation[member[.c], ==, literal[']']]], ||, binary_operation[member[.c], ==, literal['?']]], ||, binary_operation[member[.c], ==, literal['=']]], ||, binary_operation[member[.c], ==, literal['{']]], ||, binary_operation[member[.c], ==, literal['}']]], ||, call[Character.isWhitespace, parameter[Cast(expression=MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=char))]]]] begin[{] assign[member[.done], literal[true]] else begin[{] member[.pos] end[}] end[}] if[binary_operation[member[.start], ==, member[.pos]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ParserException, sub_type=None)), label=None) else begin[{] None end[}] return[call[s.substring, parameter[member[.start], member[.pos]]]] end[}] END[}]
Keyword[public] identifier[String] identifier[nextToken] operator[SEP] operator[SEP] Keyword[throws] identifier[ParserException] { Keyword[int] identifier[start] operator[=] identifier[pos] operator[SEP] identifier[checkPosition] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[done] operator[=] literal[boolean] operator[SEP] Keyword[while] operator[SEP] operator[!] identifier[done] operator[&&] identifier[pos] operator[<] identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] { Keyword[int] identifier[c] operator[=] identifier[s] operator[SEP] identifier[charAt] operator[SEP] identifier[pos] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[c] operator[<=] Other[31] operator[||] identifier[c] operator[==] Other[127] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[c] operator[==] literal[String] operator[||] identifier[Character] operator[SEP] identifier[isWhitespace] operator[SEP] operator[SEP] Keyword[char] operator[SEP] identifier[c] operator[SEP] operator[SEP] { identifier[done] operator[=] literal[boolean] operator[SEP] } Keyword[else] { operator[++] identifier[pos] operator[SEP] } } Keyword[if] operator[SEP] identifier[start] operator[==] identifier[pos] operator[SEP] { Keyword[throw] Keyword[new] identifier[ParserException] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[s] operator[SEP] identifier[substring] operator[SEP] identifier[start] , identifier[pos] operator[SEP] operator[SEP] }
public Producer<Void> getEncodedImagePrefetchProducerSequence(ImageRequest imageRequest) { validateEncodedImageRequest(imageRequest); switch (imageRequest.getSourceUriType()) { case SOURCE_TYPE_NETWORK: return getNetworkFetchToEncodedMemoryPrefetchSequence(); case SOURCE_TYPE_LOCAL_VIDEO_FILE: case SOURCE_TYPE_LOCAL_IMAGE_FILE: return getLocalFileFetchToEncodedMemoryPrefetchSequence(); default: final Uri uri = imageRequest.getSourceUri(); throw new IllegalArgumentException( "Unsupported uri scheme for encoded image fetch! Uri is: " + getShortenedUriString(uri)); } }
class class_name[name] begin[{] method[getEncodedImagePrefetchProducerSequence, return_type[type[Producer]], modifier[public], parameter[imageRequest]] begin[{] call[.validateEncodedImageRequest, parameter[member[.imageRequest]]] SwitchStatement(cases=[SwitchStatementCase(case=['SOURCE_TYPE_NETWORK'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[], member=getNetworkFetchToEncodedMemoryPrefetchSequence, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['SOURCE_TYPE_LOCAL_VIDEO_FILE', 'SOURCE_TYPE_LOCAL_IMAGE_FILE'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[], member=getLocalFileFetchToEncodedMemoryPrefetchSequence, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=[], statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getSourceUri, postfix_operators=[], prefix_operators=[], qualifier=imageRequest, selectors=[], type_arguments=None), name=uri)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=Uri, sub_type=None)), ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unsupported uri scheme for encoded image fetch! Uri is: "), operandr=MethodInvocation(arguments=[MemberReference(member=uri, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getShortenedUriString, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None)])], expression=MethodInvocation(arguments=[], member=getSourceUriType, postfix_operators=[], prefix_operators=[], qualifier=imageRequest, selectors=[], type_arguments=None), label=None) end[}] END[}]
Keyword[public] identifier[Producer] operator[<] identifier[Void] operator[>] identifier[getEncodedImagePrefetchProducerSequence] operator[SEP] identifier[ImageRequest] identifier[imageRequest] operator[SEP] { identifier[validateEncodedImageRequest] operator[SEP] identifier[imageRequest] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[imageRequest] operator[SEP] identifier[getSourceUriType] operator[SEP] operator[SEP] operator[SEP] { Keyword[case] identifier[SOURCE_TYPE_NETWORK] operator[:] Keyword[return] identifier[getNetworkFetchToEncodedMemoryPrefetchSequence] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[SOURCE_TYPE_LOCAL_VIDEO_FILE] operator[:] Keyword[case] identifier[SOURCE_TYPE_LOCAL_IMAGE_FILE] operator[:] Keyword[return] identifier[getLocalFileFetchToEncodedMemoryPrefetchSequence] operator[SEP] operator[SEP] operator[SEP] Keyword[default] operator[:] Keyword[final] identifier[Uri] identifier[uri] operator[=] identifier[imageRequest] operator[SEP] identifier[getSourceUri] operator[SEP] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[getShortenedUriString] operator[SEP] identifier[uri] operator[SEP] operator[SEP] operator[SEP] } }
public synchronized void schedule() { // Avoid scheduling a timer that was destroyed on another thread and // avoid scheduling a timer twice, which might be attempted if two // threads concurrently attempt to cancel and then both rollback. if (ivTaskHandler == null && !ivDestroyed) { // Create the timer task handler (Runnable/Listener) and schedule the task ivTaskHandler = ivContainer.getEJBRuntime().createNonPersistentTimerTaskHandler(this); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "schedule: scheduling timer for " + ivExpiration + " / " + new Date(ivExpiration)); ivTaskHandler.schedule(ivExpiration); } else { if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) Tr.debug(tc, "schedule: timer already scheduled or destroyed : destroyed=" + ivDestroyed); } }
class class_name[name] begin[{] method[schedule, return_type[void], modifier[synchronized public], parameter[]] begin[{] if[binary_operation[binary_operation[member[.ivTaskHandler], ==, literal[null]], &&, member[.ivDestroyed]]] begin[{] assign[member[.ivTaskHandler], call[ivContainer.getEJBRuntime, parameter[]]] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[member[.tc], binary_operation[binary_operation[binary_operation[literal["schedule: scheduling timer for "], +, member[.ivExpiration]], +, literal[" / "]], +, ClassCreator(arguments=[MemberReference(member=ivExpiration, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Date, sub_type=None))]]] else begin[{] None end[}] call[ivTaskHandler.schedule, parameter[member[.ivExpiration]]] else begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{] call[Tr.debug, parameter[member[.tc], binary_operation[literal["schedule: timer already scheduled or destroyed : destroyed="], +, member[.ivDestroyed]]]] else begin[{] None end[}] end[}] end[}] END[}]
Keyword[public] Keyword[synchronized] Keyword[void] identifier[schedule] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ivTaskHandler] operator[==] Other[null] operator[&&] operator[!] identifier[ivDestroyed] operator[SEP] { identifier[ivTaskHandler] operator[=] identifier[ivContainer] operator[SEP] identifier[getEJBRuntime] operator[SEP] operator[SEP] operator[SEP] identifier[createNonPersistentTimerTaskHandler] operator[SEP] Keyword[this] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[debug] operator[SEP] identifier[tc] , literal[String] operator[+] identifier[ivExpiration] operator[+] literal[String] operator[+] Keyword[new] identifier[Date] operator[SEP] identifier[ivExpiration] operator[SEP] operator[SEP] operator[SEP] identifier[ivTaskHandler] operator[SEP] identifier[schedule] operator[SEP] identifier[ivExpiration] operator[SEP] operator[SEP] } Keyword[else] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] identifier[Tr] operator[SEP] identifier[debug] operator[SEP] identifier[tc] , literal[String] operator[+] identifier[ivDestroyed] operator[SEP] operator[SEP] } }
public static HttpResponse doGetResponse(String url) throws Exception { return doGetResponse(url, null, null, null); }
class class_name[name] begin[{] method[doGetResponse, return_type[type[HttpResponse]], modifier[public static], parameter[url]] begin[{] return[call[.doGetResponse, parameter[member[.url], literal[null], literal[null], literal[null]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[HttpResponse] identifier[doGetResponse] operator[SEP] identifier[String] identifier[url] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[return] identifier[doGetResponse] operator[SEP] identifier[url] , Other[null] , Other[null] , Other[null] operator[SEP] operator[SEP] }
public FloatBuffer slice () { byteBuffer.limit(limit << 2); byteBuffer.position(position << 2); FloatBuffer result = new FloatBuffer(byteBuffer.slice()); byteBuffer.clear(); return result; }
class class_name[name] begin[{] method[slice, return_type[type[FloatBuffer]], modifier[public], parameter[]] begin[{] call[byteBuffer.limit, parameter[binary_operation[member[.limit], <<, literal[2]]]] call[byteBuffer.position, parameter[binary_operation[member[.position], <<, literal[2]]]] local_variable[type[FloatBuffer], result] call[byteBuffer.clear, parameter[]] return[member[.result]] end[}] END[}]
Keyword[public] identifier[FloatBuffer] identifier[slice] operator[SEP] operator[SEP] { identifier[byteBuffer] operator[SEP] identifier[limit] operator[SEP] identifier[limit] operator[<<] Other[2] operator[SEP] operator[SEP] identifier[byteBuffer] operator[SEP] identifier[position] operator[SEP] identifier[position] operator[<<] Other[2] operator[SEP] operator[SEP] identifier[FloatBuffer] identifier[result] operator[=] Keyword[new] identifier[FloatBuffer] operator[SEP] identifier[byteBuffer] operator[SEP] identifier[slice] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[byteBuffer] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[result] operator[SEP] }
public static void printDoc(final Document doc) { try { final Transformer trans = TransformerFactory.newInstance() .newTransformer(); trans.setOutputProperty(OutputKeys.INDENT, "yes"); trans.transform(new DOMSource(doc), new StreamResult(System.out)); } catch (final TransformerConfigurationException e) { LOG.error("Could not configure transformer", e); } catch (final TransformerFactoryConfigurationError e) { LOG.error("Could not configure transformer factory", e); } catch (final TransformerException e) { LOG.error("Error running transformation", e); } }
class class_name[name] begin[{] method[printDoc, return_type[void], modifier[public static], parameter[doc]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=newInstance, postfix_operators=[], prefix_operators=[], qualifier=TransformerFactory, selectors=[MethodInvocation(arguments=[], member=newTransformer, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=trans)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=Transformer, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=INDENT, postfix_operators=[], prefix_operators=[], qualifier=OutputKeys, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="yes")], member=setOutputProperty, postfix_operators=[], prefix_operators=[], qualifier=trans, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=doc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=DOMSource, sub_type=None)), ClassCreator(arguments=[MemberReference(member=out, postfix_operators=[], prefix_operators=[], qualifier=System, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=StreamResult, sub_type=None))], member=transform, postfix_operators=[], prefix_operators=[], qualifier=trans, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Could not configure transformer"), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['TransformerConfigurationException'])), CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Could not configure transformer factory"), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['TransformerFactoryConfigurationError'])), CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Error running transformation"), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['TransformerException']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[printDoc] operator[SEP] Keyword[final] identifier[Document] identifier[doc] operator[SEP] { Keyword[try] { Keyword[final] identifier[Transformer] identifier[trans] operator[=] identifier[TransformerFactory] operator[SEP] identifier[newInstance] operator[SEP] operator[SEP] operator[SEP] identifier[newTransformer] operator[SEP] operator[SEP] operator[SEP] identifier[trans] operator[SEP] identifier[setOutputProperty] operator[SEP] identifier[OutputKeys] operator[SEP] identifier[INDENT] , literal[String] operator[SEP] operator[SEP] identifier[trans] operator[SEP] identifier[transform] operator[SEP] Keyword[new] identifier[DOMSource] operator[SEP] identifier[doc] operator[SEP] , Keyword[new] identifier[StreamResult] operator[SEP] identifier[System] operator[SEP] identifier[out] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] Keyword[final] identifier[TransformerConfigurationException] identifier[e] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] literal[String] , identifier[e] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] Keyword[final] identifier[TransformerFactoryConfigurationError] identifier[e] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] literal[String] , identifier[e] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] Keyword[final] identifier[TransformerException] identifier[e] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] literal[String] , identifier[e] operator[SEP] operator[SEP] } }
public String getServiceClassName() { Class<?> serviceClass = getServiceClass(); if (serviceClass != null) return serviceClass.getName(); String serviceClassName = context.getProperty(BundleConstants.SERVICE_CLASS); // Don't use getProperty - endless loop if (serviceClassName == null) { if (service != null) serviceClassName = service.getClass().getName(); else serviceClassName = this.getClass().getName(); } return serviceClassName; }
class class_name[name] begin[{] method[getServiceClassName, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[Class], serviceClass] if[binary_operation[member[.serviceClass], !=, literal[null]]] begin[{] return[call[serviceClass.getName, parameter[]]] else begin[{] None end[}] local_variable[type[String], serviceClassName] if[binary_operation[member[.serviceClassName], ==, literal[null]]] begin[{] if[binary_operation[member[.service], !=, literal[null]]] begin[{] assign[member[.serviceClassName], call[service.getClass, parameter[]]] else begin[{] assign[member[.serviceClassName], THIS[call[None.getClass, parameter[]]call[None.getName, parameter[]]]] end[}] else begin[{] None end[}] return[member[.serviceClassName]] end[}] END[}]
Keyword[public] identifier[String] identifier[getServiceClassName] operator[SEP] operator[SEP] { identifier[Class] operator[<] operator[?] operator[>] identifier[serviceClass] operator[=] identifier[getServiceClass] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[serviceClass] operator[!=] Other[null] operator[SEP] Keyword[return] identifier[serviceClass] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[serviceClassName] operator[=] identifier[context] operator[SEP] identifier[getProperty] operator[SEP] identifier[BundleConstants] operator[SEP] identifier[SERVICE_CLASS] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[serviceClassName] operator[==] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[service] operator[!=] Other[null] operator[SEP] identifier[serviceClassName] operator[=] identifier[service] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] Keyword[else] identifier[serviceClassName] operator[=] Keyword[this] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[serviceClassName] operator[SEP] }
protected void cleanUpArchiver( AbstractArchiver archiver ) { try { Method cleanUpMethod = AbstractArchiver.class.getDeclaredMethod( "cleanUp" ); cleanUpMethod.setAccessible( true ); cleanUpMethod.invoke( archiver ); } catch ( Exception e ) { getLog().warn( "\"" + e.getMessage() + "\" exception while invoking AbstractArchiver.cleanUp() using reflection. Ignoring." ); } }
class class_name[name] begin[{] method[cleanUpArchiver, return_type[void], modifier[protected], parameter[archiver]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="cleanUp")], member=getDeclaredMethod, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=AbstractArchiver, sub_type=None)), name=cleanUpMethod)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Method, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=setAccessible, postfix_operators=[], prefix_operators=[], qualifier=cleanUpMethod, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=archiver, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=invoke, postfix_operators=[], prefix_operators=[], qualifier=cleanUpMethod, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=getLog, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="\""), operandr=MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="\" exception while invoking AbstractArchiver.cleanUp() using reflection. Ignoring."), operator=+)], member=warn, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[protected] Keyword[void] identifier[cleanUpArchiver] operator[SEP] identifier[AbstractArchiver] identifier[archiver] operator[SEP] { Keyword[try] { identifier[Method] identifier[cleanUpMethod] operator[=] identifier[AbstractArchiver] operator[SEP] Keyword[class] operator[SEP] identifier[getDeclaredMethod] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[cleanUpMethod] operator[SEP] identifier[setAccessible] operator[SEP] literal[boolean] operator[SEP] operator[SEP] identifier[cleanUpMethod] operator[SEP] identifier[invoke] operator[SEP] identifier[archiver] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[getLog] operator[SEP] operator[SEP] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[+] literal[String] operator[SEP] operator[SEP] } }
public @Nullable List<ComapiValidationFailure> getValidationFailures() { if (errorBody != null && !errorBody.isEmpty()) { ComapiValidationFailures failures = null; try { failures = new Parser().parse(errorBody, ComapiValidationFailures.class); } catch (Exception e) { return null; } return failures.validationFailures; } return null; }
class class_name[name] begin[{] method[getValidationFailures, return_type[type[List]], modifier[public], parameter[]] begin[{] if[binary_operation[binary_operation[member[.errorBody], !=, literal[null]], &&, call[errorBody.isEmpty, parameter[]]]] begin[{] local_variable[type[ComapiValidationFailures], failures] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=failures, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MemberReference(member=errorBody, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=ComapiValidationFailures, sub_type=None))], member=parse, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=Parser, sub_type=None))), label=None)], catches=[CatchClause(block=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) return[member[failures.validationFailures]] else begin[{] None end[}] return[literal[null]] end[}] END[}]
Keyword[public] annotation[@] identifier[Nullable] identifier[List] operator[<] identifier[ComapiValidationFailure] operator[>] identifier[getValidationFailures] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[errorBody] operator[!=] Other[null] operator[&&] operator[!] identifier[errorBody] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { identifier[ComapiValidationFailures] identifier[failures] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[failures] operator[=] Keyword[new] identifier[Parser] operator[SEP] operator[SEP] operator[SEP] identifier[parse] operator[SEP] identifier[errorBody] , identifier[ComapiValidationFailures] operator[SEP] Keyword[class] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[return] identifier[failures] operator[SEP] identifier[validationFailures] operator[SEP] } Keyword[return] Other[null] operator[SEP] }
private int calculatePositionViaBreakingBackwards(int numOfBreaks, BreakIterator breakIterator, int position) { breakIterator.preceding(position); for (int i = 1; i < numOfBreaks; i++) { breakIterator.previous(); } return breakIterator.current(); }
class class_name[name] begin[{] method[calculatePositionViaBreakingBackwards, return_type[type[int]], modifier[private], parameter[numOfBreaks, breakIterator, position]] begin[{] call[breakIterator.preceding, parameter[member[.position]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=previous, postfix_operators=[], prefix_operators=[], qualifier=breakIterator, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=numOfBreaks, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[call[breakIterator.current, parameter[]]] end[}] END[}]
Keyword[private] Keyword[int] identifier[calculatePositionViaBreakingBackwards] operator[SEP] Keyword[int] identifier[numOfBreaks] , identifier[BreakIterator] identifier[breakIterator] , Keyword[int] identifier[position] operator[SEP] { identifier[breakIterator] operator[SEP] identifier[preceding] operator[SEP] identifier[position] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[1] operator[SEP] identifier[i] operator[<] identifier[numOfBreaks] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[breakIterator] operator[SEP] identifier[previous] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[breakIterator] operator[SEP] identifier[current] operator[SEP] operator[SEP] operator[SEP] }
public double[] paa(double[] ts, int paaSize) throws SAXException { // fix the length int len = ts.length; if (len < paaSize) { throw new SAXException("PAA size can't be greater than the timeseries size."); } // check for the trivial case if (len == paaSize) { return Arrays.copyOf(ts, ts.length); } else { double[] paa = new double[paaSize]; double pointsPerSegment = (double) len / (double) paaSize; double[] breaks = new double[paaSize + 1]; for (int i = 0; i < paaSize + 1; i++) { breaks[i] = i * pointsPerSegment; } for (int i = 0; i < paaSize; i++) { double segStart = breaks[i]; double segEnd = breaks[i + 1]; double fractionStart = Math.ceil(segStart) - segStart; double fractionEnd = segEnd - Math.floor(segEnd); int fullStart = Double.valueOf(Math.floor(segStart)).intValue(); int fullEnd = Double.valueOf(Math.ceil(segEnd)).intValue(); double[] segment = Arrays.copyOfRange(ts, fullStart, fullEnd); if (fractionStart > 0) { segment[0] = segment[0] * fractionStart; } if (fractionEnd > 0) { segment[segment.length - 1] = segment[segment.length - 1] * fractionEnd; } double elementsSum = 0.0; for (double e : segment) { elementsSum = elementsSum + e; } paa[i] = elementsSum / pointsPerSegment; } return paa; } }
class class_name[name] begin[{] method[paa, return_type[type[double]], modifier[public], parameter[ts, paaSize]] begin[{] local_variable[type[int], len] if[binary_operation[member[.len], <, member[.paaSize]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="PAA size can't be greater than the timeseries size.")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=SAXException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[member[.len], ==, member[.paaSize]]] begin[{] return[call[Arrays.copyOf, parameter[member[.ts], member[ts.length]]]] else begin[{] local_variable[type[double], paa] local_variable[type[double], pointsPerSegment] local_variable[type[double], breaks] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=breaks, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=pointsPerSegment, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MemberReference(member=paaSize, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=breaks, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=segStart)], modifiers=set(), type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=breaks, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+))]), name=segEnd)], modifiers=set(), type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=segStart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=ceil, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), operandr=MemberReference(member=segStart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-), name=fractionStart)], modifiers=set(), type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=BinaryOperation(operandl=MemberReference(member=segEnd, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[MemberReference(member=segEnd, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floor, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), operator=-), name=fractionEnd)], modifiers=set(), type=BasicType(dimensions=[], name=double)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=segStart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floor, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[MethodInvocation(arguments=[], member=intValue, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=fullStart)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=segEnd, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=ceil, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[MethodInvocation(arguments=[], member=intValue, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=fullEnd)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=ts, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=fullStart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=fullEnd, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=copyOfRange, postfix_operators=[], prefix_operators=[], qualifier=Arrays, selectors=[], type_arguments=None), name=segment)], modifiers=set(), type=BasicType(dimensions=[None], name=double)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=fractionStart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=segment, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), type==, value=BinaryOperation(operandl=MemberReference(member=segment, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), operandr=MemberReference(member=fractionStart, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*)), label=None)])), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=fractionEnd, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=segment, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=segment, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-))]), type==, value=BinaryOperation(operandl=MemberReference(member=segment, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=segment, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-))]), operandr=MemberReference(member=fractionEnd, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=*)), label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0.0), name=elementsSum)], modifiers=set(), type=BasicType(dimensions=[], name=double)), ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=elementsSum, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MemberReference(member=elementsSum, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=segment, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=e)], modifiers=set(), type=BasicType(dimensions=[], name=double))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=paa, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=BinaryOperation(operandl=MemberReference(member=elementsSum, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=pointsPerSegment, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=/)), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=paaSize, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) return[member[.paa]] end[}] end[}] END[}]
Keyword[public] Keyword[double] operator[SEP] operator[SEP] identifier[paa] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[ts] , Keyword[int] identifier[paaSize] operator[SEP] Keyword[throws] identifier[SAXException] { Keyword[int] identifier[len] operator[=] identifier[ts] operator[SEP] identifier[length] operator[SEP] Keyword[if] operator[SEP] identifier[len] operator[<] identifier[paaSize] operator[SEP] { Keyword[throw] Keyword[new] identifier[SAXException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[len] operator[==] identifier[paaSize] operator[SEP] { Keyword[return] identifier[Arrays] operator[SEP] identifier[copyOf] operator[SEP] identifier[ts] , identifier[ts] operator[SEP] identifier[length] operator[SEP] operator[SEP] } Keyword[else] { Keyword[double] operator[SEP] operator[SEP] identifier[paa] operator[=] Keyword[new] Keyword[double] operator[SEP] identifier[paaSize] operator[SEP] operator[SEP] Keyword[double] identifier[pointsPerSegment] operator[=] operator[SEP] Keyword[double] operator[SEP] identifier[len] operator[/] operator[SEP] Keyword[double] operator[SEP] identifier[paaSize] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[breaks] operator[=] Keyword[new] Keyword[double] operator[SEP] identifier[paaSize] operator[+] Other[1] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[paaSize] operator[+] Other[1] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[breaks] operator[SEP] identifier[i] operator[SEP] operator[=] identifier[i] operator[*] identifier[pointsPerSegment] operator[SEP] } Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[paaSize] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[double] identifier[segStart] operator[=] identifier[breaks] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[double] identifier[segEnd] operator[=] identifier[breaks] operator[SEP] identifier[i] operator[+] Other[1] operator[SEP] operator[SEP] Keyword[double] identifier[fractionStart] operator[=] identifier[Math] operator[SEP] identifier[ceil] operator[SEP] identifier[segStart] operator[SEP] operator[-] identifier[segStart] operator[SEP] Keyword[double] identifier[fractionEnd] operator[=] identifier[segEnd] operator[-] identifier[Math] operator[SEP] identifier[floor] operator[SEP] identifier[segEnd] operator[SEP] operator[SEP] Keyword[int] identifier[fullStart] operator[=] identifier[Double] operator[SEP] identifier[valueOf] operator[SEP] identifier[Math] operator[SEP] identifier[floor] operator[SEP] identifier[segStart] operator[SEP] operator[SEP] operator[SEP] identifier[intValue] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[fullEnd] operator[=] identifier[Double] operator[SEP] identifier[valueOf] operator[SEP] identifier[Math] operator[SEP] identifier[ceil] operator[SEP] identifier[segEnd] operator[SEP] operator[SEP] operator[SEP] identifier[intValue] operator[SEP] operator[SEP] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[segment] operator[=] identifier[Arrays] operator[SEP] identifier[copyOfRange] operator[SEP] identifier[ts] , identifier[fullStart] , identifier[fullEnd] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[fractionStart] operator[>] Other[0] operator[SEP] { identifier[segment] operator[SEP] Other[0] operator[SEP] operator[=] identifier[segment] operator[SEP] Other[0] operator[SEP] operator[*] identifier[fractionStart] operator[SEP] } Keyword[if] operator[SEP] identifier[fractionEnd] operator[>] Other[0] operator[SEP] { identifier[segment] operator[SEP] identifier[segment] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] operator[=] identifier[segment] operator[SEP] identifier[segment] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] operator[*] identifier[fractionEnd] operator[SEP] } Keyword[double] identifier[elementsSum] operator[=] literal[Float] operator[SEP] Keyword[for] operator[SEP] Keyword[double] identifier[e] operator[:] identifier[segment] operator[SEP] { identifier[elementsSum] operator[=] identifier[elementsSum] operator[+] identifier[e] operator[SEP] } identifier[paa] operator[SEP] identifier[i] operator[SEP] operator[=] identifier[elementsSum] operator[/] identifier[pointsPerSegment] operator[SEP] } Keyword[return] identifier[paa] operator[SEP] } }
private static boolean doIsAssignableFrom(Type left, Type right, boolean failOpen) { if (left.equals(right)) { return true; } if (left.getSort() != right.getSort()) { return false; } if (left.getSort() != Type.OBJECT) { return false; // all other sorts require exact equality (even arrays) } // for object types we really need to know type hierarchy information to test for whether // right is assignable to left. Optional<Class<?>> leftClass = objectTypeToClassCache.getUnchecked(left); Optional<Class<?>> rightClass = objectTypeToClassCache.getUnchecked(right); if (!leftClass.isPresent() || !rightClass.isPresent()) { // This means one of the types being compared is a generated object. So we can't easily check // it. Just delegate responsibility to the verifier. return failOpen; } return leftClass.get().isAssignableFrom(rightClass.get()); }
class class_name[name] begin[{] method[doIsAssignableFrom, return_type[type[boolean]], modifier[private static], parameter[left, right, failOpen]] begin[{] if[call[left.equals, parameter[member[.right]]]] begin[{] return[literal[true]] else begin[{] None end[}] if[binary_operation[call[left.getSort, parameter[]], !=, call[right.getSort, parameter[]]]] begin[{] return[literal[false]] else begin[{] None end[}] if[binary_operation[call[left.getSort, parameter[]], !=, member[Type.OBJECT]]] begin[{] return[literal[false]] else begin[{] None end[}] local_variable[type[Optional], leftClass] local_variable[type[Optional], rightClass] if[binary_operation[call[leftClass.isPresent, parameter[]], ||, call[rightClass.isPresent, parameter[]]]] begin[{] return[member[.failOpen]] else begin[{] None end[}] return[call[leftClass.get, parameter[]]] end[}] END[}]
Keyword[private] Keyword[static] Keyword[boolean] identifier[doIsAssignableFrom] operator[SEP] identifier[Type] identifier[left] , identifier[Type] identifier[right] , Keyword[boolean] identifier[failOpen] operator[SEP] { Keyword[if] operator[SEP] identifier[left] operator[SEP] identifier[equals] operator[SEP] identifier[right] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] identifier[left] operator[SEP] identifier[getSort] operator[SEP] operator[SEP] operator[!=] identifier[right] operator[SEP] identifier[getSort] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] identifier[left] operator[SEP] identifier[getSort] operator[SEP] operator[SEP] operator[!=] identifier[Type] operator[SEP] identifier[OBJECT] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } identifier[Optional] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[leftClass] operator[=] identifier[objectTypeToClassCache] operator[SEP] identifier[getUnchecked] operator[SEP] identifier[left] operator[SEP] operator[SEP] identifier[Optional] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[rightClass] operator[=] identifier[objectTypeToClassCache] operator[SEP] identifier[getUnchecked] operator[SEP] identifier[right] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[leftClass] operator[SEP] identifier[isPresent] operator[SEP] operator[SEP] operator[||] operator[!] identifier[rightClass] operator[SEP] identifier[isPresent] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[failOpen] operator[SEP] } Keyword[return] identifier[leftClass] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[isAssignableFrom] operator[SEP] identifier[rightClass] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
protected void removeEmptyMappings(CmsObject cms, CmsFile file, CmsXmlContent content) throws CmsException { List<CmsResource> siblings = null; CmsObject rootCms = null; Iterator<Map.Entry<String, List<String>>> allMappings = m_elementMappings.entrySet().iterator(); while (allMappings.hasNext()) { Map.Entry<String, List<String>> e = allMappings.next(); String path = e.getKey(); List<String> mappings = e.getValue(); if (mappings == null) { // nothing to do if we have no mappings at all continue; } if ((siblings == null) || (rootCms == null)) { // create OpenCms user context initialized with "/" as site root to read all siblings rootCms = OpenCms.initCmsObject(cms); rootCms.getRequestContext().setSiteRoot("/"); siblings = rootCms.readSiblings(content.getFile().getRootPath(), CmsResourceFilter.IGNORE_EXPIRATION); } for (int v = mappings.size() - 1; v >= 0; v--) { String mapping = mappings.get(v); if (mapping.startsWith(MAPTO_ATTRIBUTE) || mapping.startsWith(MAPTO_PROPERTY_LIST) || mapping.startsWith(MAPTO_PROPERTY)) { for (int i = 0; i < siblings.size(); i++) { // get siblings filename and locale String filename = siblings.get(i).getRootPath(); Locale locale = OpenCms.getLocaleManager().getDefaultLocale(rootCms, filename); if (!content.hasLocale(locale)) { // only remove property if the locale fits continue; } if (content.hasValue(path, locale)) { // value is available, property must be kept continue; } if (mapping.startsWith(MAPTO_PROPERTY_LIST) || mapping.startsWith(MAPTO_PROPERTY)) { String property; boolean shared = false; if (mapping.startsWith(MAPTO_PROPERTY_LIST_INDIVIDUAL)) { property = mapping.substring(MAPTO_PROPERTY_LIST_INDIVIDUAL.length()); } else if (mapping.startsWith(MAPTO_PROPERTY_LIST_SHARED)) { property = mapping.substring(MAPTO_PROPERTY_LIST_SHARED.length()); shared = true; } else if (mapping.startsWith(MAPTO_PROPERTY_LIST)) { property = mapping.substring(MAPTO_PROPERTY_LIST.length()); } else if (mapping.startsWith(MAPTO_PROPERTY_SHARED)) { property = mapping.substring(MAPTO_PROPERTY_SHARED.length()); shared = true; } else if (mapping.startsWith(MAPTO_PROPERTY_INDIVIDUAL)) { property = mapping.substring(MAPTO_PROPERTY_INDIVIDUAL.length()); } else { property = mapping.substring(MAPTO_PROPERTY.length()); } rootCms.writePropertyObject( filename, new CmsProperty( property, CmsProperty.DELETE_VALUE, shared ? CmsProperty.DELETE_VALUE : null)); } else if (mapping.startsWith(MAPTO_ATTRIBUTE)) { if (mapping.equals(MAPTO_ATTRIBUTE + ATTRIBUTE_DATERELEASED)) { rootCms.setDateReleased(filename, CmsResource.DATE_RELEASED_DEFAULT, false); if (filename.equals(rootCms.getSitePath(file))) { file.setDateReleased(CmsResource.DATE_RELEASED_DEFAULT); } } else if (mapping.equals(MAPTO_ATTRIBUTE + ATTRIBUTE_DATEEXPIRED)) { rootCms.setDateExpired(filename, CmsResource.DATE_EXPIRED_DEFAULT, false); if (filename.equals(rootCms.getSitePath(file))) { file.setDateExpired(CmsResource.DATE_EXPIRED_DEFAULT); } } } } } else if (mapping.startsWith(MAPTO_PERMISSION)) { for (int i = 0; i < siblings.size(); i++) { // get siblings filename and locale String filename = siblings.get(i).getRootPath(); Locale locale = OpenCms.getLocaleManager().getDefaultLocale(rootCms, filename); if (!content.hasLocale(locale)) { // only remove property if the locale fits continue; } if (content.hasValue(path, locale)) { // value is available, property must be kept continue; } // remove all existing permissions from the file List<CmsAccessControlEntry> aces = rootCms.getAccessControlEntries(filename, false); for (Iterator<CmsAccessControlEntry> j = aces.iterator(); j.hasNext();) { CmsAccessControlEntry ace = j.next(); if (ace.getPrincipal().equals(CmsAccessControlEntry.PRINCIPAL_ALL_OTHERS_ID)) { // remove the entry "All others", which has to be treated in a special way rootCms.rmacc( filename, CmsAccessControlEntry.PRINCIPAL_ALL_OTHERS_NAME, CmsAccessControlEntry.PRINCIPAL_ALL_OTHERS_ID.toString()); } else { // this is a group or user principal I_CmsPrincipal principal = CmsPrincipal.readPrincipal(rootCms, ace.getPrincipal()); if (principal.isGroup()) { rootCms.rmacc(filename, I_CmsPrincipal.PRINCIPAL_GROUP, principal.getName()); } else if (principal.isUser()) { rootCms.rmacc(filename, I_CmsPrincipal.PRINCIPAL_USER, principal.getName()); } } } } } } } }
class class_name[name] begin[{] method[removeEmptyMappings, return_type[void], modifier[protected], parameter[cms, file, content]] begin[{] local_variable[type[List], siblings] local_variable[type[CmsObject], rootCms] local_variable[type[Iterator], allMappings] while[call[allMappings.hasNext, parameter[]]] begin[{] local_variable[type[Map], e] local_variable[type[String], path] local_variable[type[List], mappings] if[binary_operation[member[.mappings], ==, literal[null]]] begin[{] ContinueStatement(goto=None, label=None) else begin[{] None end[}] if[binary_operation[binary_operation[member[.siblings], ==, literal[null]], ||, binary_operation[member[.rootCms], ==, literal[null]]]] begin[{] assign[member[.rootCms], call[OpenCms.initCmsObject, parameter[member[.cms]]]] call[rootCms.getRequestContext, parameter[]] assign[member[.siblings], call[rootCms.readSiblings, parameter[call[content.getFile, parameter[]], member[CmsResourceFilter.IGNORE_EXPIRATION]]]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=v, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=mappings, selectors=[], type_arguments=None), name=mapping)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=MAPTO_ATTRIBUTE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=startsWith, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=MAPTO_PROPERTY_LIST, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=startsWith, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), operator=||), operandr=MethodInvocation(arguments=[MemberReference(member=MAPTO_PROPERTY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=startsWith, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), operator=||), else_statement=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=MAPTO_PERMISSION, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=startsWith, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=siblings, selectors=[MethodInvocation(arguments=[], member=getRootPath, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=filename)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getLocaleManager, postfix_operators=[], prefix_operators=[], qualifier=OpenCms, selectors=[MethodInvocation(arguments=[MemberReference(member=rootCms, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=filename, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getDefaultLocale, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=locale)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Locale, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=locale, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=hasLocale, postfix_operators=[], prefix_operators=['!'], qualifier=content, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ContinueStatement(goto=None, label=None)])), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=path, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=locale, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=hasValue, postfix_operators=[], prefix_operators=[], qualifier=content, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ContinueStatement(goto=None, label=None)])), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=filename, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=getAccessControlEntries, postfix_operators=[], prefix_operators=[], qualifier=rootCms, selectors=[], type_arguments=None), name=aces)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=CmsAccessControlEntry, sub_type=None))], dimensions=[], name=List, sub_type=None)), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=next, postfix_operators=[], prefix_operators=[], qualifier=j, selectors=[], type_arguments=None), name=ace)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CmsAccessControlEntry, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[], member=getPrincipal, postfix_operators=[], prefix_operators=[], qualifier=ace, selectors=[MethodInvocation(arguments=[MemberReference(member=PRINCIPAL_ALL_OTHERS_ID, postfix_operators=[], prefix_operators=[], qualifier=CmsAccessControlEntry, selectors=[])], member=equals, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=rootCms, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getPrincipal, postfix_operators=[], prefix_operators=[], qualifier=ace, selectors=[], type_arguments=None)], member=readPrincipal, postfix_operators=[], prefix_operators=[], qualifier=CmsPrincipal, selectors=[], type_arguments=None), name=principal)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=I_CmsPrincipal, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[], member=isGroup, postfix_operators=[], prefix_operators=[], qualifier=principal, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[], member=isUser, postfix_operators=[], prefix_operators=[], qualifier=principal, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=filename, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=PRINCIPAL_USER, postfix_operators=[], prefix_operators=[], qualifier=I_CmsPrincipal, selectors=[]), MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=principal, selectors=[], type_arguments=None)], member=rmacc, postfix_operators=[], prefix_operators=[], qualifier=rootCms, selectors=[], type_arguments=None), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=filename, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=PRINCIPAL_GROUP, postfix_operators=[], prefix_operators=[], qualifier=I_CmsPrincipal, selectors=[]), MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=principal, selectors=[], type_arguments=None)], member=rmacc, postfix_operators=[], prefix_operators=[], qualifier=rootCms, selectors=[], type_arguments=None), label=None)]))]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=filename, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=PRINCIPAL_ALL_OTHERS_NAME, postfix_operators=[], prefix_operators=[], qualifier=CmsAccessControlEntry, selectors=[]), MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=CmsAccessControlEntry.PRINCIPAL_ALL_OTHERS_ID, selectors=[], type_arguments=None)], member=rmacc, postfix_operators=[], prefix_operators=[], qualifier=rootCms, selectors=[], type_arguments=None), label=None)]))]), control=ForControl(condition=MethodInvocation(arguments=[], member=hasNext, postfix_operators=[], prefix_operators=[], qualifier=j, selectors=[], type_arguments=None), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=MethodInvocation(arguments=[], member=iterator, postfix_operators=[], prefix_operators=[], qualifier=aces, selectors=[], type_arguments=None), name=j)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=CmsAccessControlEntry, sub_type=None))], dimensions=[], name=Iterator, sub_type=None)), update=None), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=siblings, selectors=[], type_arguments=None), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=get, postfix_operators=[], prefix_operators=[], qualifier=siblings, selectors=[MethodInvocation(arguments=[], member=getRootPath, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=filename)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getLocaleManager, postfix_operators=[], prefix_operators=[], qualifier=OpenCms, selectors=[MethodInvocation(arguments=[MemberReference(member=rootCms, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=filename, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getDefaultLocale, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=locale)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Locale, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=locale, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=hasLocale, postfix_operators=[], prefix_operators=['!'], qualifier=content, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ContinueStatement(goto=None, label=None)])), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=path, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=locale, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=hasValue, postfix_operators=[], prefix_operators=[], qualifier=content, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ContinueStatement(goto=None, label=None)])), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=MAPTO_PROPERTY_LIST, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=startsWith, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=MAPTO_PROPERTY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=startsWith, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), operator=||), else_statement=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=MAPTO_ATTRIBUTE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=startsWith, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=MAPTO_ATTRIBUTE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=ATTRIBUTE_DATERELEASED, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=equals, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=MAPTO_ATTRIBUTE, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=ATTRIBUTE_DATEEXPIRED, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=equals, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=filename, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=DATE_EXPIRED_DEFAULT, postfix_operators=[], prefix_operators=[], qualifier=CmsResource, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=setDateExpired, postfix_operators=[], prefix_operators=[], qualifier=rootCms, selectors=[], type_arguments=None), label=None), IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=file, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getSitePath, postfix_operators=[], prefix_operators=[], qualifier=rootCms, selectors=[], type_arguments=None)], member=equals, postfix_operators=[], prefix_operators=[], qualifier=filename, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=DATE_EXPIRED_DEFAULT, postfix_operators=[], prefix_operators=[], qualifier=CmsResource, selectors=[])], member=setDateExpired, postfix_operators=[], prefix_operators=[], qualifier=file, selectors=[], type_arguments=None), label=None)]))])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=filename, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=DATE_RELEASED_DEFAULT, postfix_operators=[], prefix_operators=[], qualifier=CmsResource, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false)], member=setDateReleased, postfix_operators=[], prefix_operators=[], qualifier=rootCms, selectors=[], type_arguments=None), label=None), IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=file, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getSitePath, postfix_operators=[], prefix_operators=[], qualifier=rootCms, selectors=[], type_arguments=None)], member=equals, postfix_operators=[], prefix_operators=[], qualifier=filename, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=DATE_RELEASED_DEFAULT, postfix_operators=[], prefix_operators=[], qualifier=CmsResource, selectors=[])], member=setDateReleased, postfix_operators=[], prefix_operators=[], qualifier=file, selectors=[], type_arguments=None), label=None)]))]))])), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=property)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false), name=shared)], modifiers=set(), type=BasicType(dimensions=[], name=boolean)), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=MAPTO_PROPERTY_LIST_INDIVIDUAL, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=startsWith, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=MAPTO_PROPERTY_LIST_SHARED, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=startsWith, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=MAPTO_PROPERTY_LIST, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=startsWith, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=MAPTO_PROPERTY_SHARED, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=startsWith, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=MAPTO_PROPERTY_INDIVIDUAL, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=startsWith, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=property, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=MAPTO_PROPERTY, selectors=[], type_arguments=None)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None)), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=property, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=MAPTO_PROPERTY_INDIVIDUAL, selectors=[], type_arguments=None)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None)), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=property, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=MAPTO_PROPERTY_SHARED, selectors=[], type_arguments=None)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=shared, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=property, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=MAPTO_PROPERTY_LIST, selectors=[], type_arguments=None)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None)), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=property, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=MAPTO_PROPERTY_LIST_SHARED, selectors=[], type_arguments=None)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None)), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=shared, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)), label=None)])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=property, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=MAPTO_PROPERTY_LIST_INDIVIDUAL, selectors=[], type_arguments=None)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None)), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=filename, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassCreator(arguments=[MemberReference(member=property, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=DELETE_VALUE, postfix_operators=[], prefix_operators=[], qualifier=CmsProperty, selectors=[]), TernaryExpression(condition=MemberReference(member=shared, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), if_true=MemberReference(member=DELETE_VALUE, postfix_operators=[], prefix_operators=[], qualifier=CmsProperty, selectors=[]))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=CmsProperty, sub_type=None))], member=writePropertyObject, postfix_operators=[], prefix_operators=[], qualifier=rootCms, selectors=[], type_arguments=None), label=None)]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=siblings, selectors=[], type_arguments=None), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None)]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=v, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>=), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=BinaryOperation(operandl=MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=mappings, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-), name=v)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=v, postfix_operators=['--'], prefix_operators=[], qualifier=, selectors=[])]), label=None) end[}] end[}] END[}]
Keyword[protected] Keyword[void] identifier[removeEmptyMappings] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[CmsFile] identifier[file] , identifier[CmsXmlContent] identifier[content] operator[SEP] Keyword[throws] identifier[CmsException] { identifier[List] operator[<] identifier[CmsResource] operator[>] identifier[siblings] operator[=] Other[null] operator[SEP] identifier[CmsObject] identifier[rootCms] operator[=] Other[null] operator[SEP] identifier[Iterator] operator[<] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[List] operator[<] identifier[String] operator[>] operator[>] operator[>] identifier[allMappings] operator[=] identifier[m_elementMappings] operator[SEP] identifier[entrySet] operator[SEP] operator[SEP] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[allMappings] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] { identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[List] operator[<] identifier[String] operator[>] operator[>] identifier[e] operator[=] identifier[allMappings] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[path] operator[=] identifier[e] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[mappings] operator[=] identifier[e] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[mappings] operator[==] Other[null] operator[SEP] { Keyword[continue] operator[SEP] } Keyword[if] operator[SEP] operator[SEP] identifier[siblings] operator[==] Other[null] operator[SEP] operator[||] operator[SEP] identifier[rootCms] operator[==] Other[null] operator[SEP] operator[SEP] { identifier[rootCms] operator[=] identifier[OpenCms] operator[SEP] identifier[initCmsObject] operator[SEP] identifier[cms] operator[SEP] operator[SEP] identifier[rootCms] operator[SEP] identifier[getRequestContext] operator[SEP] operator[SEP] operator[SEP] identifier[setSiteRoot] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[siblings] operator[=] identifier[rootCms] operator[SEP] identifier[readSiblings] operator[SEP] identifier[content] operator[SEP] identifier[getFile] operator[SEP] operator[SEP] operator[SEP] identifier[getRootPath] operator[SEP] operator[SEP] , identifier[CmsResourceFilter] operator[SEP] identifier[IGNORE_EXPIRATION] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] Keyword[int] identifier[v] operator[=] identifier[mappings] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[-] Other[1] operator[SEP] identifier[v] operator[>=] Other[0] operator[SEP] identifier[v] operator[--] operator[SEP] { identifier[String] identifier[mapping] operator[=] identifier[mappings] operator[SEP] identifier[get] operator[SEP] identifier[v] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[mapping] operator[SEP] identifier[startsWith] operator[SEP] identifier[MAPTO_ATTRIBUTE] operator[SEP] operator[||] identifier[mapping] operator[SEP] identifier[startsWith] operator[SEP] identifier[MAPTO_PROPERTY_LIST] operator[SEP] operator[||] identifier[mapping] operator[SEP] identifier[startsWith] operator[SEP] identifier[MAPTO_PROPERTY] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[siblings] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[String] identifier[filename] operator[=] identifier[siblings] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[getRootPath] operator[SEP] operator[SEP] operator[SEP] identifier[Locale] identifier[locale] operator[=] identifier[OpenCms] operator[SEP] identifier[getLocaleManager] operator[SEP] operator[SEP] operator[SEP] identifier[getDefaultLocale] operator[SEP] identifier[rootCms] , identifier[filename] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[content] operator[SEP] identifier[hasLocale] operator[SEP] identifier[locale] operator[SEP] operator[SEP] { Keyword[continue] operator[SEP] } Keyword[if] operator[SEP] identifier[content] operator[SEP] identifier[hasValue] operator[SEP] identifier[path] , identifier[locale] operator[SEP] operator[SEP] { Keyword[continue] operator[SEP] } Keyword[if] operator[SEP] identifier[mapping] operator[SEP] identifier[startsWith] operator[SEP] identifier[MAPTO_PROPERTY_LIST] operator[SEP] operator[||] identifier[mapping] operator[SEP] identifier[startsWith] operator[SEP] identifier[MAPTO_PROPERTY] operator[SEP] operator[SEP] { identifier[String] identifier[property] operator[SEP] Keyword[boolean] identifier[shared] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[mapping] operator[SEP] identifier[startsWith] operator[SEP] identifier[MAPTO_PROPERTY_LIST_INDIVIDUAL] operator[SEP] operator[SEP] { identifier[property] operator[=] identifier[mapping] operator[SEP] identifier[substring] operator[SEP] identifier[MAPTO_PROPERTY_LIST_INDIVIDUAL] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[mapping] operator[SEP] identifier[startsWith] operator[SEP] identifier[MAPTO_PROPERTY_LIST_SHARED] operator[SEP] operator[SEP] { identifier[property] operator[=] identifier[mapping] operator[SEP] identifier[substring] operator[SEP] identifier[MAPTO_PROPERTY_LIST_SHARED] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[shared] operator[=] literal[boolean] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[mapping] operator[SEP] identifier[startsWith] operator[SEP] identifier[MAPTO_PROPERTY_LIST] operator[SEP] operator[SEP] { identifier[property] operator[=] identifier[mapping] operator[SEP] identifier[substring] operator[SEP] identifier[MAPTO_PROPERTY_LIST] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[mapping] operator[SEP] identifier[startsWith] operator[SEP] identifier[MAPTO_PROPERTY_SHARED] operator[SEP] operator[SEP] { identifier[property] operator[=] identifier[mapping] operator[SEP] identifier[substring] operator[SEP] identifier[MAPTO_PROPERTY_SHARED] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[shared] operator[=] literal[boolean] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[mapping] operator[SEP] identifier[startsWith] operator[SEP] identifier[MAPTO_PROPERTY_INDIVIDUAL] operator[SEP] operator[SEP] { identifier[property] operator[=] identifier[mapping] operator[SEP] identifier[substring] operator[SEP] identifier[MAPTO_PROPERTY_INDIVIDUAL] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[property] operator[=] identifier[mapping] operator[SEP] identifier[substring] operator[SEP] identifier[MAPTO_PROPERTY] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[rootCms] operator[SEP] identifier[writePropertyObject] operator[SEP] identifier[filename] , Keyword[new] identifier[CmsProperty] operator[SEP] identifier[property] , identifier[CmsProperty] operator[SEP] identifier[DELETE_VALUE] , identifier[shared] operator[?] identifier[CmsProperty] operator[SEP] identifier[DELETE_VALUE] operator[:] Other[null] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[mapping] operator[SEP] identifier[startsWith] operator[SEP] identifier[MAPTO_ATTRIBUTE] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[mapping] operator[SEP] identifier[equals] operator[SEP] identifier[MAPTO_ATTRIBUTE] operator[+] identifier[ATTRIBUTE_DATERELEASED] operator[SEP] operator[SEP] { identifier[rootCms] operator[SEP] identifier[setDateReleased] operator[SEP] identifier[filename] , identifier[CmsResource] operator[SEP] identifier[DATE_RELEASED_DEFAULT] , literal[boolean] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[filename] operator[SEP] identifier[equals] operator[SEP] identifier[rootCms] operator[SEP] identifier[getSitePath] operator[SEP] identifier[file] operator[SEP] operator[SEP] operator[SEP] { identifier[file] operator[SEP] identifier[setDateReleased] operator[SEP] identifier[CmsResource] operator[SEP] identifier[DATE_RELEASED_DEFAULT] operator[SEP] operator[SEP] } } Keyword[else] Keyword[if] operator[SEP] identifier[mapping] operator[SEP] identifier[equals] operator[SEP] identifier[MAPTO_ATTRIBUTE] operator[+] identifier[ATTRIBUTE_DATEEXPIRED] operator[SEP] operator[SEP] { identifier[rootCms] operator[SEP] identifier[setDateExpired] operator[SEP] identifier[filename] , identifier[CmsResource] operator[SEP] identifier[DATE_EXPIRED_DEFAULT] , literal[boolean] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[filename] operator[SEP] identifier[equals] operator[SEP] identifier[rootCms] operator[SEP] identifier[getSitePath] operator[SEP] identifier[file] operator[SEP] operator[SEP] operator[SEP] { identifier[file] operator[SEP] identifier[setDateExpired] operator[SEP] identifier[CmsResource] operator[SEP] identifier[DATE_EXPIRED_DEFAULT] operator[SEP] operator[SEP] } } } } } Keyword[else] Keyword[if] operator[SEP] identifier[mapping] operator[SEP] identifier[startsWith] operator[SEP] identifier[MAPTO_PERMISSION] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[siblings] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[String] identifier[filename] operator[=] identifier[siblings] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[getRootPath] operator[SEP] operator[SEP] operator[SEP] identifier[Locale] identifier[locale] operator[=] identifier[OpenCms] operator[SEP] identifier[getLocaleManager] operator[SEP] operator[SEP] operator[SEP] identifier[getDefaultLocale] operator[SEP] identifier[rootCms] , identifier[filename] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[content] operator[SEP] identifier[hasLocale] operator[SEP] identifier[locale] operator[SEP] operator[SEP] { Keyword[continue] operator[SEP] } Keyword[if] operator[SEP] identifier[content] operator[SEP] identifier[hasValue] operator[SEP] identifier[path] , identifier[locale] operator[SEP] operator[SEP] { Keyword[continue] operator[SEP] } identifier[List] operator[<] identifier[CmsAccessControlEntry] operator[>] identifier[aces] operator[=] identifier[rootCms] operator[SEP] identifier[getAccessControlEntries] operator[SEP] identifier[filename] , literal[boolean] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Iterator] operator[<] identifier[CmsAccessControlEntry] operator[>] identifier[j] operator[=] identifier[aces] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] identifier[j] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { identifier[CmsAccessControlEntry] identifier[ace] operator[=] identifier[j] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ace] operator[SEP] identifier[getPrincipal] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[CmsAccessControlEntry] operator[SEP] identifier[PRINCIPAL_ALL_OTHERS_ID] operator[SEP] operator[SEP] { identifier[rootCms] operator[SEP] identifier[rmacc] operator[SEP] identifier[filename] , identifier[CmsAccessControlEntry] operator[SEP] identifier[PRINCIPAL_ALL_OTHERS_NAME] , identifier[CmsAccessControlEntry] operator[SEP] identifier[PRINCIPAL_ALL_OTHERS_ID] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[I_CmsPrincipal] identifier[principal] operator[=] identifier[CmsPrincipal] operator[SEP] identifier[readPrincipal] operator[SEP] identifier[rootCms] , identifier[ace] operator[SEP] identifier[getPrincipal] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[principal] operator[SEP] identifier[isGroup] operator[SEP] operator[SEP] operator[SEP] { identifier[rootCms] operator[SEP] identifier[rmacc] operator[SEP] identifier[filename] , identifier[I_CmsPrincipal] operator[SEP] identifier[PRINCIPAL_GROUP] , identifier[principal] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[principal] operator[SEP] identifier[isUser] operator[SEP] operator[SEP] operator[SEP] { identifier[rootCms] operator[SEP] identifier[rmacc] operator[SEP] identifier[filename] , identifier[I_CmsPrincipal] operator[SEP] identifier[PRINCIPAL_USER] , identifier[principal] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } } } } } } }
public void stateChanged (ChangeEvent e) { JSlider source = (JSlider)e.getSource(); if (!source.getValueIsAdjusting()) { _value.setText(Integer.toString(source.getValue())); } }
class class_name[name] begin[{] method[stateChanged, return_type[void], modifier[public], parameter[e]] begin[{] local_variable[type[JSlider], source] if[call[source.getValueIsAdjusting, parameter[]]] begin[{] call[_value.setText, parameter[call[Integer.toString, parameter[call[source.getValue, parameter[]]]]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[stateChanged] operator[SEP] identifier[ChangeEvent] identifier[e] operator[SEP] { identifier[JSlider] identifier[source] operator[=] operator[SEP] identifier[JSlider] operator[SEP] identifier[e] operator[SEP] identifier[getSource] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[source] operator[SEP] identifier[getValueIsAdjusting] operator[SEP] operator[SEP] operator[SEP] { identifier[_value] operator[SEP] identifier[setText] operator[SEP] identifier[Integer] operator[SEP] identifier[toString] operator[SEP] identifier[source] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } }
public List<String> parse(String[] args, int pos) { List<String> parameters = new ArrayList<String>(); for(; pos < args.length; pos++) { if (args[pos].charAt(0) == '-' && args[pos].length() > 1) { String opt = args[pos].substring(1); if (options.containsKey(opt)) options.put(opt, Boolean.TRUE); else { try { Long.parseLong(args[pos]); parameters.add(args[pos]); } catch (NumberFormatException e) { throw new IllegalArgumentException("Illegal option " + args[pos]); } } } else parameters.add(args[pos]); } int psize = parameters.size(); if (psize < minPar || psize > maxPar) throw new IllegalArgumentException("Illegal number of arguments"); return parameters; }
class class_name[name] begin[{] method[parse, return_type[type[List]], modifier[public], parameter[args, pos]] begin[{] local_variable[type[List], parameters] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=pos, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=charAt, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='-'), operator===), operandr=BinaryOperation(operandl=MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=pos, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[], member=length, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=>), operator=&&), else_statement=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=pos, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])], member=add, postfix_operators=[], prefix_operators=[], qualifier=parameters, selectors=[], type_arguments=None), label=None), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=pos, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=substring, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), name=opt)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=opt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=containsKey, postfix_operators=[], prefix_operators=[], qualifier=options, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=pos, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])], member=parseLong, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=pos, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])], member=add, postfix_operators=[], prefix_operators=[], qualifier=parameters, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Illegal option "), operandr=MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=pos, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['NumberFormatException']))], finally_block=None, label=None, resources=None)]), label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=opt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=TRUE, postfix_operators=[], prefix_operators=[], qualifier=Boolean, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=options, selectors=[], type_arguments=None), label=None))]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=pos, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=args, selectors=[]), operator=<), init=None, update=[MemberReference(member=pos, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) local_variable[type[int], psize] if[binary_operation[binary_operation[member[.psize], <, member[.minPar]], ||, binary_operation[member[.psize], >, member[.maxPar]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Illegal number of arguments")], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] return[member[.parameters]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[parse] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] , Keyword[int] identifier[pos] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[parameters] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] operator[SEP] identifier[pos] operator[<] identifier[args] operator[SEP] identifier[length] operator[SEP] identifier[pos] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[args] operator[SEP] identifier[pos] operator[SEP] operator[SEP] identifier[charAt] operator[SEP] Other[0] operator[SEP] operator[==] literal[String] operator[&&] identifier[args] operator[SEP] identifier[pos] operator[SEP] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[1] operator[SEP] { identifier[String] identifier[opt] operator[=] identifier[args] operator[SEP] identifier[pos] operator[SEP] operator[SEP] identifier[substring] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[options] operator[SEP] identifier[containsKey] operator[SEP] identifier[opt] operator[SEP] operator[SEP] identifier[options] operator[SEP] identifier[put] operator[SEP] identifier[opt] , identifier[Boolean] operator[SEP] identifier[TRUE] operator[SEP] operator[SEP] Keyword[else] { Keyword[try] { identifier[Long] operator[SEP] identifier[parseLong] operator[SEP] identifier[args] operator[SEP] identifier[pos] operator[SEP] operator[SEP] operator[SEP] identifier[parameters] operator[SEP] identifier[add] operator[SEP] identifier[args] operator[SEP] identifier[pos] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[NumberFormatException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[+] identifier[args] operator[SEP] identifier[pos] operator[SEP] operator[SEP] operator[SEP] } } } Keyword[else] identifier[parameters] operator[SEP] identifier[add] operator[SEP] identifier[args] operator[SEP] identifier[pos] operator[SEP] operator[SEP] operator[SEP] } Keyword[int] identifier[psize] operator[=] identifier[parameters] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[psize] operator[<] identifier[minPar] operator[||] identifier[psize] operator[>] identifier[maxPar] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[parameters] operator[SEP] }
@Override public boolean isOpaque(SynthContext ctx) { // Force Table CellRenderers to be opaque if ("Table.cellRenderer".equals(ctx.getComponent().getName())) { return true; } Boolean opaque = (Boolean) get(ctx, "opaque"); return opaque == null ? false : opaque; }
class class_name[name] begin[{] method[isOpaque, return_type[type[boolean]], modifier[public], parameter[ctx]] begin[{] if[literal["Table.cellRenderer"]] begin[{] return[literal[true]] else begin[{] None end[}] local_variable[type[Boolean], opaque] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=opaque, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=MemberReference(member=opaque, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=false))] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isOpaque] operator[SEP] identifier[SynthContext] identifier[ctx] operator[SEP] { Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[ctx] operator[SEP] identifier[getComponent] operator[SEP] operator[SEP] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } identifier[Boolean] identifier[opaque] operator[=] operator[SEP] identifier[Boolean] operator[SEP] identifier[get] operator[SEP] identifier[ctx] , literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[opaque] operator[==] Other[null] operator[?] literal[boolean] operator[:] identifier[opaque] operator[SEP] }
private synchronized static StopRecognition init(String key, KV<String, StopRecognition> kv, boolean reload) { StopRecognition stopRecognition = kv.getV(); if (stopRecognition != null) { if (reload) { stopRecognition.clear(); } else { return stopRecognition; } } else { stopRecognition = new StopRecognition(); } try { LOG.debug("begin init FILTER !"); long start = System.currentTimeMillis(); String temp = null; String[] strs = null; try (BufferedReader br = IOUtil.getReader(PathToStream.stream(kv.getK()), "UTF-8")) { while ((temp = br.readLine()) != null) { if (StringUtil.isNotBlank(temp)) { strs = temp.split("\t"); if (strs.length == 1) { stopRecognition.insertStopWords(strs[0]); } else { switch (strs[1]) { case "nature": stopRecognition.insertStopNatures(strs[0]); break; case "regex": stopRecognition.insertStopRegexes(strs[0]); break; default: stopRecognition.insertStopWords(strs[0]); break; } } } } } LOG.info("load stop use time:" + (System.currentTimeMillis() - start) + " path is : " + kv.getK()); kv.setV(stopRecognition); return stopRecognition; } catch (Exception e) { LOG.error("Init Stop library error :" + e.getMessage() + ", path: " + kv.getK()); STOP.remove(key); return null; } }
class class_name[name] begin[{] method[init, return_type[type[StopRecognition]], modifier[synchronized private static], parameter[key, kv, reload]] begin[{] local_variable[type[StopRecognition], stopRecognition] if[binary_operation[member[.stopRecognition], !=, literal[null]]] begin[{] if[member[.reload]] begin[{] call[stopRecognition.clear, parameter[]] else begin[{] return[member[.stopRecognition]] end[}] else begin[{] assign[member[.stopRecognition], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=StopRecognition, sub_type=None))] end[}] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="begin init FILTER !")], member=debug, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=currentTimeMillis, postfix_operators=[], prefix_operators=[], qualifier=System, selectors=[], type_arguments=None), name=start)], modifiers=set(), type=BasicType(dimensions=[], name=long)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), name=temp)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), name=strs)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[None], name=String, sub_type=None)), TryStatement(block=[WhileStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=temp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isNotBlank, postfix_operators=[], prefix_operators=[], qualifier=StringUtil, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=strs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="\t")], member=split, postfix_operators=[], prefix_operators=[], qualifier=temp, selectors=[], type_arguments=None)), label=None), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=strs, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator===), else_statement=BlockStatement(label=None, statements=[SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="nature")], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=strs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))])], member=insertStopNatures, postfix_operators=[], prefix_operators=[], qualifier=stopRecognition, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="regex")], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=strs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))])], member=insertStopRegexes, postfix_operators=[], prefix_operators=[], qualifier=stopRecognition, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=strs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))])], member=insertStopWords, postfix_operators=[], prefix_operators=[], qualifier=stopRecognition, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)])], expression=MemberReference(member=strs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1))]), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=strs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))])], member=insertStopWords, postfix_operators=[], prefix_operators=[], qualifier=stopRecognition, selectors=[], type_arguments=None), label=None)]))]))]), condition=BinaryOperation(operandl=Assignment(expressionl=MemberReference(member=temp, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=readLine, postfix_operators=[], prefix_operators=[], qualifier=br, selectors=[], type_arguments=None)), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), label=None)], catches=None, finally_block=None, label=None, resources=[TryResource(annotations=[], modifiers=set(), name=br, type=ReferenceType(arguments=None, dimensions=[], name=BufferedReader, sub_type=None), value=MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getK, postfix_operators=[], prefix_operators=[], qualifier=kv, selectors=[], type_arguments=None)], member=stream, postfix_operators=[], prefix_operators=[], qualifier=PathToStream, selectors=[], type_arguments=None), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="UTF-8")], member=getReader, postfix_operators=[], prefix_operators=[], qualifier=IOUtil, selectors=[], type_arguments=None))]), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="load stop use time:"), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=currentTimeMillis, postfix_operators=[], prefix_operators=[], qualifier=System, selectors=[], type_arguments=None), operandr=MemberReference(member=start, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=-), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" path is : "), operator=+), operandr=MethodInvocation(arguments=[], member=getK, postfix_operators=[], prefix_operators=[], qualifier=kv, selectors=[], type_arguments=None), operator=+)], member=info, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=stopRecognition, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setV, postfix_operators=[], prefix_operators=[], qualifier=kv, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=MemberReference(member=stopRecognition, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Init Stop library error :"), operandr=MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=", path: "), operator=+), operandr=MethodInvocation(arguments=[], member=getK, postfix_operators=[], prefix_operators=[], qualifier=kv, selectors=[], type_arguments=None), operator=+)], member=error, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=remove, postfix_operators=[], prefix_operators=[], qualifier=STOP, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['Exception']))], finally_block=None, label=None, resources=None) end[}] END[}]
Keyword[private] Keyword[synchronized] Keyword[static] identifier[StopRecognition] identifier[init] operator[SEP] identifier[String] identifier[key] , identifier[KV] operator[<] identifier[String] , identifier[StopRecognition] operator[>] identifier[kv] , Keyword[boolean] identifier[reload] operator[SEP] { identifier[StopRecognition] identifier[stopRecognition] operator[=] identifier[kv] operator[SEP] identifier[getV] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[stopRecognition] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[reload] operator[SEP] { identifier[stopRecognition] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[return] identifier[stopRecognition] operator[SEP] } } Keyword[else] { identifier[stopRecognition] operator[=] Keyword[new] identifier[StopRecognition] operator[SEP] operator[SEP] operator[SEP] } Keyword[try] { identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[long] identifier[start] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[temp] operator[=] Other[null] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[strs] operator[=] Other[null] operator[SEP] Keyword[try] operator[SEP] identifier[BufferedReader] identifier[br] operator[=] identifier[IOUtil] operator[SEP] identifier[getReader] operator[SEP] identifier[PathToStream] operator[SEP] identifier[stream] operator[SEP] identifier[kv] operator[SEP] identifier[getK] operator[SEP] operator[SEP] operator[SEP] , literal[String] operator[SEP] operator[SEP] { Keyword[while] operator[SEP] operator[SEP] identifier[temp] operator[=] identifier[br] operator[SEP] identifier[readLine] operator[SEP] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtil] operator[SEP] identifier[isNotBlank] operator[SEP] identifier[temp] operator[SEP] operator[SEP] { identifier[strs] operator[=] identifier[temp] operator[SEP] identifier[split] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[strs] operator[SEP] identifier[length] operator[==] Other[1] operator[SEP] { identifier[stopRecognition] operator[SEP] identifier[insertStopWords] operator[SEP] identifier[strs] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[switch] operator[SEP] identifier[strs] operator[SEP] Other[1] operator[SEP] operator[SEP] { Keyword[case] literal[String] operator[:] identifier[stopRecognition] operator[SEP] identifier[insertStopNatures] operator[SEP] identifier[strs] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] literal[String] operator[:] identifier[stopRecognition] operator[SEP] identifier[insertStopRegexes] operator[SEP] identifier[strs] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] identifier[stopRecognition] operator[SEP] identifier[insertStopWords] operator[SEP] identifier[strs] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] } } } } } identifier[LOG] operator[SEP] identifier[info] operator[SEP] literal[String] operator[+] operator[SEP] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[-] identifier[start] operator[SEP] operator[+] literal[String] operator[+] identifier[kv] operator[SEP] identifier[getK] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[kv] operator[SEP] identifier[setV] operator[SEP] identifier[stopRecognition] operator[SEP] operator[SEP] Keyword[return] identifier[stopRecognition] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[kv] operator[SEP] identifier[getK] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[STOP] operator[SEP] identifier[remove] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[return] Other[null] operator[SEP] } }
@Override public TokenStream tokenStream(String fieldName, Reader reader) { if (indexingConfig != null) { Analyzer propertyAnalyzer = indexingConfig.getPropertyAnalyzer(fieldName); if (propertyAnalyzer != null) { return propertyAnalyzer.tokenStream(fieldName, reader); } } return defaultAnalyzer.tokenStream(fieldName, reader); }
class class_name[name] begin[{] method[tokenStream, return_type[type[TokenStream]], modifier[public], parameter[fieldName, reader]] begin[{] if[binary_operation[member[.indexingConfig], !=, literal[null]]] begin[{] local_variable[type[Analyzer], propertyAnalyzer] if[binary_operation[member[.propertyAnalyzer], !=, literal[null]]] begin[{] return[call[propertyAnalyzer.tokenStream, parameter[member[.fieldName], member[.reader]]]] else begin[{] None end[}] else begin[{] None end[}] return[call[defaultAnalyzer.tokenStream, parameter[member[.fieldName], member[.reader]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[TokenStream] identifier[tokenStream] operator[SEP] identifier[String] identifier[fieldName] , identifier[Reader] identifier[reader] operator[SEP] { Keyword[if] operator[SEP] identifier[indexingConfig] operator[!=] Other[null] operator[SEP] { identifier[Analyzer] identifier[propertyAnalyzer] operator[=] identifier[indexingConfig] operator[SEP] identifier[getPropertyAnalyzer] operator[SEP] identifier[fieldName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[propertyAnalyzer] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[propertyAnalyzer] operator[SEP] identifier[tokenStream] operator[SEP] identifier[fieldName] , identifier[reader] operator[SEP] operator[SEP] } } Keyword[return] identifier[defaultAnalyzer] operator[SEP] identifier[tokenStream] operator[SEP] identifier[fieldName] , identifier[reader] operator[SEP] operator[SEP] }
public boolean offer(E e, long timeout, TimeUnit unit) throws InterruptedException { if (e == null) throw new NullPointerException(); if (transferer.transfer(e, true, unit.toNanos(timeout)) != null) return true; if (!Thread.interrupted()) return false; throw new InterruptedException(); }
class class_name[name] begin[{] method[offer, return_type[type[boolean]], modifier[public], parameter[e, timeout, unit]] begin[{] if[binary_operation[member[.e], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=NullPointerException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[call[transferer.transfer, parameter[member[.e], literal[true], call[unit.toNanos, parameter[member[.timeout]]]]], !=, literal[null]]] begin[{] return[literal[true]] else begin[{] None end[}] if[call[Thread.interrupted, parameter[]]] begin[{] return[literal[false]] else begin[{] None end[}] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=InterruptedException, sub_type=None)), label=None) end[}] END[}]
Keyword[public] Keyword[boolean] identifier[offer] operator[SEP] identifier[E] identifier[e] , Keyword[long] identifier[timeout] , identifier[TimeUnit] identifier[unit] operator[SEP] Keyword[throws] identifier[InterruptedException] { Keyword[if] operator[SEP] identifier[e] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[transferer] operator[SEP] identifier[transfer] operator[SEP] identifier[e] , literal[boolean] , identifier[unit] operator[SEP] identifier[toNanos] operator[SEP] identifier[timeout] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[Thread] operator[SEP] identifier[interrupted] operator[SEP] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[throw] Keyword[new] identifier[InterruptedException] operator[SEP] operator[SEP] operator[SEP] }
public int enrichXml(final MMOs root) throws SQLException { int count = 0; // TODO: take out the print statements for (final MMO mmo : root.getMMO()) { for (final Utterance utterance : mmo.getUtterances().getUtterance()) { for (final Phrase phrase : utterance.getPhrases().getPhrase()) { System.out.printf("Phrase: %s\n", phrase.getPhraseText()); for (final Mapping mapping : phrase.getMappings().getMapping()) { System.out.printf("Score: %s\n", mapping.getMappingScore()); for (final Candidate candidate : mapping.getMappingCandidates().getCandidate()) { final Collection<String> semTypes = new ArrayList<>(); for (final SemType st : candidate.getSemTypes().getSemType()) { semTypes.add(st.getvalue()); } // the actual line of work count += addSnomedId(candidate) ? 1 : 0; System.out.printf(" %-5s %-9s %s %s %s %s\n", candidate.getCandidateScore(), candidate.getCandidateCUI(), candidate.getSnomedId(), candidate.getCandidatePreferred(), semTypes, candidate.getSources().getSource()); } } System.out.println(); } } } return count; }
class class_name[name] begin[{] method[enrichXml, return_type[type[int]], modifier[public], parameter[root]] begin[{] local_variable[type[int], count] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Phrase: %s\n"), MethodInvocation(arguments=[], member=getPhraseText, postfix_operators=[], prefix_operators=[], qualifier=phrase, selectors=[], type_arguments=None)], member=printf, postfix_operators=[], prefix_operators=[], qualifier=System.out, selectors=[], type_arguments=None), label=None), ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Score: %s\n"), MethodInvocation(arguments=[], member=getMappingScore, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[], type_arguments=None)], member=printf, postfix_operators=[], prefix_operators=[], qualifier=System.out, selectors=[], type_arguments=None), label=None), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=[], dimensions=None, name=ArrayList, sub_type=None)), name=semTypes)], modifiers={'final'}, type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=Collection, sub_type=None)), ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getvalue, postfix_operators=[], prefix_operators=[], qualifier=st, selectors=[], type_arguments=None)], member=add, postfix_operators=[], prefix_operators=[], qualifier=semTypes, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getSemTypes, postfix_operators=[], prefix_operators=[], qualifier=candidate, selectors=[MethodInvocation(arguments=[], member=getSemType, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=st)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=SemType, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=count, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=+=, value=TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=candidate, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addSnomedId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1))), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" %-5s %-9s %s %s %s %s\n"), MethodInvocation(arguments=[], member=getCandidateScore, postfix_operators=[], prefix_operators=[], qualifier=candidate, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getCandidateCUI, postfix_operators=[], prefix_operators=[], qualifier=candidate, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getSnomedId, postfix_operators=[], prefix_operators=[], qualifier=candidate, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getCandidatePreferred, postfix_operators=[], prefix_operators=[], qualifier=candidate, selectors=[], type_arguments=None), MemberReference(member=semTypes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getSources, postfix_operators=[], prefix_operators=[], qualifier=candidate, selectors=[MethodInvocation(arguments=[], member=getSource, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None)], member=printf, postfix_operators=[], prefix_operators=[], qualifier=System.out, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getMappingCandidates, postfix_operators=[], prefix_operators=[], qualifier=mapping, selectors=[MethodInvocation(arguments=[], member=getCandidate, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=candidate)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=Candidate, sub_type=None))), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getMappings, postfix_operators=[], prefix_operators=[], qualifier=phrase, selectors=[MethodInvocation(arguments=[], member=getMapping, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=mapping)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=Mapping, sub_type=None))), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=println, postfix_operators=[], prefix_operators=[], qualifier=System.out, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getPhrases, postfix_operators=[], prefix_operators=[], qualifier=utterance, selectors=[MethodInvocation(arguments=[], member=getPhrase, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=phrase)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=Phrase, sub_type=None))), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getUtterances, postfix_operators=[], prefix_operators=[], qualifier=mmo, selectors=[MethodInvocation(arguments=[], member=getUtterance, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=utterance)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=Utterance, sub_type=None))), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getMMO, postfix_operators=[], prefix_operators=[], qualifier=root, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=mmo)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=MMO, sub_type=None))), label=None) return[member[.count]] end[}] END[}]
Keyword[public] Keyword[int] identifier[enrichXml] operator[SEP] Keyword[final] identifier[MMOs] identifier[root] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[MMO] identifier[mmo] operator[:] identifier[root] operator[SEP] identifier[getMMO] operator[SEP] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identifier[Utterance] identifier[utterance] operator[:] identifier[mmo] operator[SEP] identifier[getUtterances] operator[SEP] operator[SEP] operator[SEP] identifier[getUtterance] operator[SEP] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identifier[Phrase] identifier[phrase] operator[:] identifier[utterance] operator[SEP] identifier[getPhrases] operator[SEP] operator[SEP] operator[SEP] identifier[getPhrase] operator[SEP] operator[SEP] operator[SEP] { identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[printf] operator[SEP] literal[String] , identifier[phrase] operator[SEP] identifier[getPhraseText] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[Mapping] identifier[mapping] operator[:] identifier[phrase] operator[SEP] identifier[getMappings] operator[SEP] operator[SEP] operator[SEP] identifier[getMapping] operator[SEP] operator[SEP] operator[SEP] { identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[printf] operator[SEP] literal[String] , identifier[mapping] operator[SEP] identifier[getMappingScore] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[Candidate] identifier[candidate] operator[:] identifier[mapping] operator[SEP] identifier[getMappingCandidates] operator[SEP] operator[SEP] operator[SEP] identifier[getCandidate] operator[SEP] operator[SEP] operator[SEP] { Keyword[final] identifier[Collection] operator[<] identifier[String] operator[>] identifier[semTypes] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[SemType] identifier[st] operator[:] identifier[candidate] operator[SEP] identifier[getSemTypes] operator[SEP] operator[SEP] operator[SEP] identifier[getSemType] operator[SEP] operator[SEP] operator[SEP] { identifier[semTypes] operator[SEP] identifier[add] operator[SEP] identifier[st] operator[SEP] identifier[getvalue] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[count] operator[+=] identifier[addSnomedId] operator[SEP] identifier[candidate] operator[SEP] operator[?] Other[1] operator[:] Other[0] operator[SEP] identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[printf] operator[SEP] literal[String] , identifier[candidate] operator[SEP] identifier[getCandidateScore] operator[SEP] operator[SEP] , identifier[candidate] operator[SEP] identifier[getCandidateCUI] operator[SEP] operator[SEP] , identifier[candidate] operator[SEP] identifier[getSnomedId] operator[SEP] operator[SEP] , identifier[candidate] operator[SEP] identifier[getCandidatePreferred] operator[SEP] operator[SEP] , identifier[semTypes] , identifier[candidate] operator[SEP] identifier[getSources] operator[SEP] operator[SEP] operator[SEP] identifier[getSource] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[println] operator[SEP] operator[SEP] operator[SEP] } } } Keyword[return] identifier[count] operator[SEP] }
public JsonNode apply(final JsonNode node) { requireNonNull(node, "node"); JsonNode ret = node.deepCopy(); for (final JsonPatchOperation operation : operations) { ret = operation.apply(ret); } return ret; }
class class_name[name] begin[{] method[apply, return_type[type[JsonNode]], modifier[public], parameter[node]] begin[{] call[.requireNonNull, parameter[member[.node], literal["node"]]] local_variable[type[JsonNode], ret] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=ret, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=ret, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=apply, postfix_operators=[], prefix_operators=[], qualifier=operation, selectors=[], type_arguments=None)), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=operations, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=operation)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=JsonPatchOperation, sub_type=None))), label=None) return[member[.ret]] end[}] END[}]
Keyword[public] identifier[JsonNode] identifier[apply] operator[SEP] Keyword[final] identifier[JsonNode] identifier[node] operator[SEP] { identifier[requireNonNull] operator[SEP] identifier[node] , literal[String] operator[SEP] operator[SEP] identifier[JsonNode] identifier[ret] operator[=] identifier[node] operator[SEP] identifier[deepCopy] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[final] identifier[JsonPatchOperation] identifier[operation] operator[:] identifier[operations] operator[SEP] { identifier[ret] operator[=] identifier[operation] operator[SEP] identifier[apply] operator[SEP] identifier[ret] operator[SEP] operator[SEP] } Keyword[return] identifier[ret] operator[SEP] }
public static String normalizePath(final String path, final boolean isFileOrJarURL) { final boolean hasPercent = path.indexOf('%') >= 0; if (!hasPercent && path.indexOf('\\') < 0 && !path.endsWith("/")) { return path; } else { final int len = path.length(); final StringBuilder buf = new StringBuilder(); // Only "file:" and "jar:" URLs are %-decoded (issue 255) if (hasPercent && isFileOrJarURL) { // Perform '%'-decoding of path segment int prevEndMatchIdx = 0; final Matcher matcher = percentMatcher.matcher(path); while (matcher.find()) { final int startMatchIdx = matcher.start(); final int endMatchIdx = matcher.end(); translateSeparator(path, prevEndMatchIdx, startMatchIdx, /* stripFinalSeparator = */ false, buf); unescapePercentEncoding(path, startMatchIdx, endMatchIdx, buf); prevEndMatchIdx = endMatchIdx; } translateSeparator(path, prevEndMatchIdx, len, /* stripFinalSeparator = */ true, buf); } else { // Fast path -- no '%', or "http(s)://" or "jrt:" URL, or non-"file:" or non-"jar:" URL translateSeparator(path, 0, len, /* stripFinalSeparator = */ true, buf); return buf.toString(); } return buf.toString(); } }
class class_name[name] begin[{] method[normalizePath, return_type[type[String]], modifier[public static], parameter[path, isFileOrJarURL]] begin[{] local_variable[type[boolean], hasPercent] if[binary_operation[binary_operation[member[.hasPercent], &&, binary_operation[call[path.indexOf, parameter[literal['\\']]], <, literal[0]]], &&, call[path.endsWith, parameter[literal["/"]]]]] begin[{] return[member[.path]] else begin[{] local_variable[type[int], len] local_variable[type[StringBuilder], buf] if[binary_operation[member[.hasPercent], &&, member[.isFileOrJarURL]]] begin[{] local_variable[type[int], prevEndMatchIdx] local_variable[type[Matcher], matcher] while[call[matcher.find, parameter[]]] begin[{] local_variable[type[int], startMatchIdx] local_variable[type[int], endMatchIdx] call[.translateSeparator, parameter[member[.path], member[.prevEndMatchIdx], member[.startMatchIdx], literal[false], member[.buf]]] call[.unescapePercentEncoding, parameter[member[.path], member[.startMatchIdx], member[.endMatchIdx], member[.buf]]] assign[member[.prevEndMatchIdx], member[.endMatchIdx]] end[}] call[.translateSeparator, parameter[member[.path], member[.prevEndMatchIdx], member[.len], literal[true], member[.buf]]] else begin[{] call[.translateSeparator, parameter[member[.path], literal[0], member[.len], literal[true], member[.buf]]] return[call[buf.toString, parameter[]]] end[}] return[call[buf.toString, parameter[]]] end[}] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[normalizePath] operator[SEP] Keyword[final] identifier[String] identifier[path] , Keyword[final] Keyword[boolean] identifier[isFileOrJarURL] operator[SEP] { Keyword[final] Keyword[boolean] identifier[hasPercent] operator[=] identifier[path] operator[SEP] identifier[indexOf] operator[SEP] literal[String] operator[SEP] operator[>=] Other[0] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[hasPercent] operator[&&] identifier[path] operator[SEP] identifier[indexOf] operator[SEP] literal[String] operator[SEP] operator[<] Other[0] operator[&&] operator[!] identifier[path] operator[SEP] identifier[endsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] { Keyword[return] identifier[path] operator[SEP] } Keyword[else] { Keyword[final] Keyword[int] identifier[len] operator[=] identifier[path] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[StringBuilder] identifier[buf] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[hasPercent] operator[&&] identifier[isFileOrJarURL] operator[SEP] { Keyword[int] identifier[prevEndMatchIdx] operator[=] Other[0] operator[SEP] Keyword[final] identifier[Matcher] identifier[matcher] operator[=] identifier[percentMatcher] operator[SEP] identifier[matcher] operator[SEP] identifier[path] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[matcher] operator[SEP] identifier[find] operator[SEP] operator[SEP] operator[SEP] { Keyword[final] Keyword[int] identifier[startMatchIdx] operator[=] identifier[matcher] operator[SEP] identifier[start] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[endMatchIdx] operator[=] identifier[matcher] operator[SEP] identifier[end] operator[SEP] operator[SEP] operator[SEP] identifier[translateSeparator] operator[SEP] identifier[path] , identifier[prevEndMatchIdx] , identifier[startMatchIdx] , literal[boolean] , identifier[buf] operator[SEP] operator[SEP] identifier[unescapePercentEncoding] operator[SEP] identifier[path] , identifier[startMatchIdx] , identifier[endMatchIdx] , identifier[buf] operator[SEP] operator[SEP] identifier[prevEndMatchIdx] operator[=] identifier[endMatchIdx] operator[SEP] } identifier[translateSeparator] operator[SEP] identifier[path] , identifier[prevEndMatchIdx] , identifier[len] , literal[boolean] , identifier[buf] operator[SEP] operator[SEP] } Keyword[else] { identifier[translateSeparator] operator[SEP] identifier[path] , Other[0] , identifier[len] , literal[boolean] , identifier[buf] operator[SEP] operator[SEP] Keyword[return] identifier[buf] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[buf] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] } }
public ArrayList<String> license_windows_new_GET(String ip, OvhLicenseTypeEnum serviceType, OvhWindowsSqlVersionEnum sqlVersion, OvhWindowsOsVersionEnum version) throws IOException { String qPath = "/order/license/windows/new"; StringBuilder sb = path(qPath); query(sb, "ip", ip); query(sb, "serviceType", serviceType); query(sb, "sqlVersion", sqlVersion); query(sb, "version", version); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, t1); }
class class_name[name] begin[{] method[license_windows_new_GET, return_type[type[ArrayList]], modifier[public], parameter[ip, serviceType, sqlVersion, version]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] call[.query, parameter[member[.sb], literal["ip"], member[.ip]]] call[.query, parameter[member[.sb], literal["serviceType"], member[.serviceType]]] call[.query, parameter[member[.sb], literal["sqlVersion"], member[.sqlVersion]]] call[.query, parameter[member[.sb], literal["version"], member[.version]]] local_variable[type[String], resp] return[call[.convertTo, parameter[member[.resp], member[.t1]]]] end[}] END[}]
Keyword[public] identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[license_windows_new_GET] operator[SEP] identifier[String] identifier[ip] , identifier[OvhLicenseTypeEnum] identifier[serviceType] , identifier[OvhWindowsSqlVersionEnum] identifier[sqlVersion] , identifier[OvhWindowsOsVersionEnum] identifier[version] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[qPath] operator[=] literal[String] operator[SEP] identifier[StringBuilder] identifier[sb] operator[=] identifier[path] operator[SEP] identifier[qPath] operator[SEP] operator[SEP] identifier[query] operator[SEP] identifier[sb] , literal[String] , identifier[ip] operator[SEP] operator[SEP] identifier[query] operator[SEP] identifier[sb] , literal[String] , identifier[serviceType] operator[SEP] operator[SEP] identifier[query] operator[SEP] identifier[sb] , literal[String] , identifier[sqlVersion] operator[SEP] operator[SEP] identifier[query] operator[SEP] identifier[sb] , literal[String] , identifier[version] operator[SEP] operator[SEP] identifier[String] identifier[resp] operator[=] identifier[exec] operator[SEP] identifier[qPath] , literal[String] , identifier[sb] operator[SEP] identifier[toString] operator[SEP] operator[SEP] , Other[null] operator[SEP] operator[SEP] Keyword[return] identifier[convertTo] operator[SEP] identifier[resp] , identifier[t1] operator[SEP] operator[SEP] }
private void parseParameters(String[] args) { Properties props = new Properties(); for (int i=0; i<args.length; i++) { if (args[i].startsWith("-")) // parameter: { String op = args[i].substring(2); switch (args[i].toLowerCase().charAt(1)) { case 'i': props.setProperty(ModContainer.PROPERTY_PLAYER_ISP, Integer.toString(Integer.parseInt(op.substring(0,1)))); break; case 's': props.setProperty(ModContainer.PROPERTY_PLAYER_STEREO, (op.charAt(0)=='+')?"2":"1"); break; case 'w': props.setProperty(ModContainer.PROPERTY_PLAYER_WIDESTEREOMIX, (op.charAt(0)=='+')?"TRUE":"FALSE"); break; case 'n': props.setProperty(ModContainer.PROPERTY_PLAYER_NOISEREDUCTION, (op.charAt(0)=='+')?"TRUE":"FALSE"); break; case 'm': props.setProperty(ModContainer.PROPERTY_PLAYER_MEGABASS, (op.charAt(0)=='+')?"TRUE":"FALSE"); break; case 'l': props.setProperty(ModContainer.PROPERTY_PLAYER_NOLOOPS, Integer.toString(Integer.parseInt(op.substring(0,1)))); break; case 't': props.setProperty(ModContainer.PROPERTY_PLAYER_MSBUFFERSIZE, Integer.toString(Integer.parseInt(op.substring(0,1)))); break; case 'h': shuffle = op.charAt(0)=='+'; break; case 'j': repeat = op.charAt(0)=='+'; break; case 'b': int sampleSizeInBits = Integer.parseInt(op); if (sampleSizeInBits!=8 && sampleSizeInBits!=16 && sampleSizeInBits!=24) throw new RuntimeException("samplesize of " + sampleSizeInBits + " is not supported"); props.setProperty(ModContainer.PROPERTY_PLAYER_BITSPERSAMPLE, Integer.toString(sampleSizeInBits)); break; case 'r': props.setProperty(ModContainer.PROPERTY_PLAYER_FREQUENCY, Integer.toString(Integer.parseInt(op))); break; case 'e': wavFileName = new File(op); break; case 'v': initialVolume = Float.parseFloat(op); default: throw new RuntimeException("Unknown parameter: " + args[i].charAt(1)); } } else { String fileName = args[i]; try { modFileName = new URL(fileName); } catch (MalformedURLException ex) // This is evil, but I dont want to test on local files myself... { try { modFileName = (new File(fileName)).toURI().toURL(); } catch (MalformedURLException exe) // This is even more evil... { Log.error("This is not parsable: " + fileName, ex); System.exit(-1); } } } } MultimediaContainerManager.configureContainer(props); }
class class_name[name] begin[{] method[parseParameters, return_type[void], modifier[private], parameter[args]] begin[{] local_variable[type[Properties], props] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="-")], member=startsWith, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), name=fileName)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=modFileName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MemberReference(member=fileName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=URL, sub_type=None))), label=None)], catches=[CatchClause(block=[TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=modFileName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MemberReference(member=fileName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[], member=toURI, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=toURL, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=File, sub_type=None))), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="This is not parsable: "), operandr=MemberReference(member=fileName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), MemberReference(member=ex, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=Log, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=['-'], qualifier=None, selectors=[], value=1)], member=exit, postfix_operators=[], prefix_operators=[], qualifier=System, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=exe, types=['MalformedURLException']))], finally_block=None, label=None, resources=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ex, types=['MalformedURLException']))], finally_block=None, label=None, resources=None)]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], member=substring, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), name=op)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='i')], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=PROPERTY_PLAYER_ISP, postfix_operators=[], prefix_operators=[], qualifier=ModContainer, selectors=[]), MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=op, selectors=[], type_arguments=None)], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)], member=toString, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)], member=setProperty, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='s')], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=PROPERTY_PLAYER_STEREO, postfix_operators=[], prefix_operators=[], qualifier=ModContainer, selectors=[]), TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=charAt, postfix_operators=[], prefix_operators=[], qualifier=op, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='+'), operator===), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="1"), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="2"))], member=setProperty, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='w')], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=PROPERTY_PLAYER_WIDESTEREOMIX, postfix_operators=[], prefix_operators=[], qualifier=ModContainer, selectors=[]), TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=charAt, postfix_operators=[], prefix_operators=[], qualifier=op, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='+'), operator===), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="FALSE"), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="TRUE"))], member=setProperty, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='n')], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=PROPERTY_PLAYER_NOISEREDUCTION, postfix_operators=[], prefix_operators=[], qualifier=ModContainer, selectors=[]), TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=charAt, postfix_operators=[], prefix_operators=[], qualifier=op, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='+'), operator===), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="FALSE"), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="TRUE"))], member=setProperty, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='m')], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=PROPERTY_PLAYER_MEGABASS, postfix_operators=[], prefix_operators=[], qualifier=ModContainer, selectors=[]), TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=charAt, postfix_operators=[], prefix_operators=[], qualifier=op, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='+'), operator===), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="FALSE"), if_true=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="TRUE"))], member=setProperty, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='l')], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=PROPERTY_PLAYER_NOLOOPS, postfix_operators=[], prefix_operators=[], qualifier=ModContainer, selectors=[]), MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=op, selectors=[], type_arguments=None)], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)], member=toString, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)], member=setProperty, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='t')], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=PROPERTY_PLAYER_MSBUFFERSIZE, postfix_operators=[], prefix_operators=[], qualifier=ModContainer, selectors=[]), MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=op, selectors=[], type_arguments=None)], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)], member=toString, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)], member=setProperty, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='h')], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=shuffle, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=charAt, postfix_operators=[], prefix_operators=[], qualifier=op, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='+'), operator===)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='j')], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=repeat, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=BinaryOperation(operandl=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=charAt, postfix_operators=[], prefix_operators=[], qualifier=op, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='+'), operator===)), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='b')], statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=op, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None), name=sampleSizeInBits)], modifiers=set(), type=BasicType(dimensions=[], name=int)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=sampleSizeInBits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=8), operator=!=), operandr=BinaryOperation(operandl=MemberReference(member=sampleSizeInBits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=16), operator=!=), operator=&&), operandr=BinaryOperation(operandl=MemberReference(member=sampleSizeInBits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=24), operator=!=), operator=&&), else_statement=None, label=None, then_statement=ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="samplesize of "), operandr=MemberReference(member=sampleSizeInBits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" is not supported"), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RuntimeException, sub_type=None)), label=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=PROPERTY_PLAYER_BITSPERSAMPLE, postfix_operators=[], prefix_operators=[], qualifier=ModContainer, selectors=[]), MethodInvocation(arguments=[MemberReference(member=sampleSizeInBits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=toString, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)], member=setProperty, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='r')], statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=PROPERTY_PLAYER_FREQUENCY, postfix_operators=[], prefix_operators=[], qualifier=ModContainer, selectors=[]), MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=op, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)], member=toString, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None)], member=setProperty, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[], type_arguments=None), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='e')], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=wavFileName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MemberReference(member=op, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=File, sub_type=None))), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='v')], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=initialVolume, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=op, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parseFloat, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None)), label=None)]), SwitchStatementCase(case=[], statements=[ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Unknown parameter: "), operandr=MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=charAt, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), operator=+)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=RuntimeException, sub_type=None)), label=None)])], expression=MemberReference(member=args, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), MethodInvocation(arguments=[], member=toLowerCase, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=charAt, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)]), label=None)]))]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=args, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=i)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) call[MultimediaContainerManager.configureContainer, parameter[member[.props]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[parseParameters] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] { identifier[Properties] identifier[props] operator[=] Keyword[new] identifier[Properties] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[args] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[args] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[startsWith] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[String] identifier[op] operator[=] identifier[args] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[substring] operator[SEP] Other[2] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[args] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[toLowerCase] operator[SEP] operator[SEP] operator[SEP] identifier[charAt] operator[SEP] Other[1] operator[SEP] operator[SEP] { Keyword[case] literal[String] operator[:] identifier[props] operator[SEP] identifier[setProperty] operator[SEP] identifier[ModContainer] operator[SEP] identifier[PROPERTY_PLAYER_ISP] , identifier[Integer] operator[SEP] identifier[toString] operator[SEP] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[op] operator[SEP] identifier[substring] operator[SEP] Other[0] , Other[1] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] literal[String] operator[:] identifier[props] operator[SEP] identifier[setProperty] operator[SEP] identifier[ModContainer] operator[SEP] identifier[PROPERTY_PLAYER_STEREO] , operator[SEP] identifier[op] operator[SEP] identifier[charAt] operator[SEP] Other[0] operator[SEP] operator[==] literal[String] operator[SEP] operator[?] literal[String] operator[:] literal[String] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] literal[String] operator[:] identifier[props] operator[SEP] identifier[setProperty] operator[SEP] identifier[ModContainer] operator[SEP] identifier[PROPERTY_PLAYER_WIDESTEREOMIX] , operator[SEP] identifier[op] operator[SEP] identifier[charAt] operator[SEP] Other[0] operator[SEP] operator[==] literal[String] operator[SEP] operator[?] literal[String] operator[:] literal[String] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] literal[String] operator[:] identifier[props] operator[SEP] identifier[setProperty] operator[SEP] identifier[ModContainer] operator[SEP] identifier[PROPERTY_PLAYER_NOISEREDUCTION] , operator[SEP] identifier[op] operator[SEP] identifier[charAt] operator[SEP] Other[0] operator[SEP] operator[==] literal[String] operator[SEP] operator[?] literal[String] operator[:] literal[String] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] literal[String] operator[:] identifier[props] operator[SEP] identifier[setProperty] operator[SEP] identifier[ModContainer] operator[SEP] identifier[PROPERTY_PLAYER_MEGABASS] , operator[SEP] identifier[op] operator[SEP] identifier[charAt] operator[SEP] Other[0] operator[SEP] operator[==] literal[String] operator[SEP] operator[?] literal[String] operator[:] literal[String] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] literal[String] operator[:] identifier[props] operator[SEP] identifier[setProperty] operator[SEP] identifier[ModContainer] operator[SEP] identifier[PROPERTY_PLAYER_NOLOOPS] , identifier[Integer] operator[SEP] identifier[toString] operator[SEP] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[op] operator[SEP] identifier[substring] operator[SEP] Other[0] , Other[1] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] literal[String] operator[:] identifier[props] operator[SEP] identifier[setProperty] operator[SEP] identifier[ModContainer] operator[SEP] identifier[PROPERTY_PLAYER_MSBUFFERSIZE] , identifier[Integer] operator[SEP] identifier[toString] operator[SEP] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[op] operator[SEP] identifier[substring] operator[SEP] Other[0] , Other[1] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] literal[String] operator[:] identifier[shuffle] operator[=] identifier[op] operator[SEP] identifier[charAt] operator[SEP] Other[0] operator[SEP] operator[==] literal[String] operator[SEP] Keyword[break] operator[SEP] Keyword[case] literal[String] operator[:] identifier[repeat] operator[=] identifier[op] operator[SEP] identifier[charAt] operator[SEP] Other[0] operator[SEP] operator[==] literal[String] operator[SEP] Keyword[break] operator[SEP] Keyword[case] literal[String] operator[:] Keyword[int] identifier[sampleSizeInBits] operator[=] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[op] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[sampleSizeInBits] operator[!=] Other[8] operator[&&] identifier[sampleSizeInBits] operator[!=] Other[16] operator[&&] identifier[sampleSizeInBits] operator[!=] Other[24] operator[SEP] Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SEP] literal[String] operator[+] identifier[sampleSizeInBits] operator[+] literal[String] operator[SEP] operator[SEP] identifier[props] operator[SEP] identifier[setProperty] operator[SEP] identifier[ModContainer] operator[SEP] identifier[PROPERTY_PLAYER_BITSPERSAMPLE] , identifier[Integer] operator[SEP] identifier[toString] operator[SEP] identifier[sampleSizeInBits] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] literal[String] operator[:] identifier[props] operator[SEP] identifier[setProperty] operator[SEP] identifier[ModContainer] operator[SEP] identifier[PROPERTY_PLAYER_FREQUENCY] , identifier[Integer] operator[SEP] identifier[toString] operator[SEP] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[op] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] literal[String] operator[:] identifier[wavFileName] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[op] operator[SEP] operator[SEP] Keyword[break] operator[SEP] Keyword[case] literal[String] operator[:] identifier[initialVolume] operator[=] identifier[Float] operator[SEP] identifier[parseFloat] operator[SEP] identifier[op] operator[SEP] operator[SEP] Keyword[default] operator[:] Keyword[throw] Keyword[new] identifier[RuntimeException] operator[SEP] literal[String] operator[+] identifier[args] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[charAt] operator[SEP] Other[1] operator[SEP] operator[SEP] operator[SEP] } } Keyword[else] { identifier[String] identifier[fileName] operator[=] identifier[args] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[try] { identifier[modFileName] operator[=] Keyword[new] identifier[URL] operator[SEP] identifier[fileName] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[MalformedURLException] identifier[ex] operator[SEP] { Keyword[try] { identifier[modFileName] operator[=] operator[SEP] Keyword[new] identifier[File] operator[SEP] identifier[fileName] operator[SEP] operator[SEP] operator[SEP] identifier[toURI] operator[SEP] operator[SEP] operator[SEP] identifier[toURL] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[MalformedURLException] identifier[exe] operator[SEP] { identifier[Log] operator[SEP] identifier[error] operator[SEP] literal[String] operator[+] identifier[fileName] , identifier[ex] operator[SEP] operator[SEP] identifier[System] operator[SEP] identifier[exit] operator[SEP] operator[-] Other[1] operator[SEP] operator[SEP] } } } } identifier[MultimediaContainerManager] operator[SEP] identifier[configureContainer] operator[SEP] identifier[props] operator[SEP] operator[SEP] }