code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public synchronized ApnsConnection obtain() { if (mPool.size() > 0) { ApnsConnection next = mPool.iterator().next(); mPool.remove(next); return next; } return null; }
class class_name[name] begin[{] method[obtain, return_type[type[ApnsConnection]], modifier[synchronized public], parameter[]] begin[{] if[binary_operation[call[mPool.size, parameter[]], >, literal[0]]] begin[{] local_variable[type[ApnsConnection], next] call[mPool.remove, parameter[member[.next]]] return[member[.next]] else begin[{] None end[}] return[literal[null]] end[}] END[}]
Keyword[public] Keyword[synchronized] identifier[ApnsConnection] identifier[obtain] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[mPool] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { identifier[ApnsConnection] identifier[next] operator[=] identifier[mPool] operator[SEP] identifier[iterator] operator[SEP] operator[SEP] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] identifier[mPool] operator[SEP] identifier[remove] operator[SEP] identifier[next] operator[SEP] operator[SEP] Keyword[return] identifier[next] operator[SEP] } Keyword[return] Other[null] operator[SEP] }
private void appendVersion(StringBuilder sb, long ver) { if (sb.length() > 0) { sb.append("."); } sb.append(ver); }
class class_name[name] begin[{] method[appendVersion, return_type[void], modifier[private], parameter[sb, ver]] begin[{] if[binary_operation[call[sb.length, parameter[]], >, literal[0]]] begin[{] call[sb.append, parameter[literal["."]]] else begin[{] None end[}] call[sb.append, parameter[member[.ver]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[appendVersion] operator[SEP] identifier[StringBuilder] identifier[sb] , Keyword[long] identifier[ver] operator[SEP] { Keyword[if] operator[SEP] identifier[sb] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { identifier[sb] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[ver] operator[SEP] operator[SEP] }
@Override public XBELDocument unmarshal(String s) throws JAXBException, IOException { final Unmarshaller unmarshaller = createNewUnmashaller(); return (XBELDocument) unmarshaller.unmarshal(new StringReader(s)); }
class class_name[name] begin[{] method[unmarshal, return_type[type[XBELDocument]], modifier[public], parameter[s]] begin[{] local_variable[type[Unmarshaller], unmarshaller] return[Cast(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=s, 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=StringReader, sub_type=None))], member=unmarshal, postfix_operators=[], prefix_operators=[], qualifier=unmarshaller, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=XBELDocument, sub_type=None))] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[XBELDocument] identifier[unmarshal] operator[SEP] identifier[String] identifier[s] operator[SEP] Keyword[throws] identifier[JAXBException] , identifier[IOException] { Keyword[final] identifier[Unmarshaller] identifier[unmarshaller] operator[=] identifier[createNewUnmashaller] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[XBELDocument] operator[SEP] identifier[unmarshaller] operator[SEP] identifier[unmarshal] operator[SEP] Keyword[new] identifier[StringReader] operator[SEP] identifier[s] operator[SEP] operator[SEP] operator[SEP] }
StatementDMQL compileMergeStatement(RangeVariable[] outerRanges) { boolean[] insertColumnCheckList; int[] insertColumnMap = null; int[] updateColumnMap = null; int[] baseUpdateColumnMap; Table table; RangeVariable targetRange; RangeVariable sourceRange; Expression mergeCondition; HsqlArrayList updateList = new HsqlArrayList(); Expression[] updateExpressions = null; HsqlArrayList insertList = new HsqlArrayList(); Expression insertExpression = null; read(); readThis(Tokens.INTO); targetRange = readSimpleRangeVariable(StatementTypes.MERGE); table = targetRange.rangeTable; readThis(Tokens.USING); sourceRange = readTableOrSubquery(); // parse ON search conditions readThis(Tokens.ON); mergeCondition = XreadBooleanValueExpression(); if (mergeCondition.getDataType() != Type.SQL_BOOLEAN) { throw Error.error(ErrorCode.X_42568); } RangeVariable[] fullRangeVars = new RangeVariable[] { sourceRange, targetRange }; RangeVariable[] sourceRangeVars = new RangeVariable[]{ sourceRange }; RangeVariable[] targetRangeVars = new RangeVariable[]{ targetRange }; // parse WHEN clause(s) and convert lists to arrays insertColumnMap = table.getColumnMap(); insertColumnCheckList = table.getNewColumnCheckList(); OrderedHashSet updateColNames = new OrderedHashSet(); OrderedHashSet insertColNames = new OrderedHashSet(); readMergeWhen(insertColNames, updateColNames, insertList, updateList, targetRangeVars, sourceRange); if (insertList.size() > 0) { int colCount = insertColNames.size(); if (colCount != 0) { insertColumnMap = table.getColumnIndexes(insertColNames); insertColumnCheckList = table.getColumnCheckList(insertColumnMap); } insertExpression = (Expression) insertList.get(0); setParameterTypes(insertExpression, table, insertColumnMap); } if (updateList.size() > 0) { updateExpressions = new Expression[updateList.size()]; updateList.toArray(updateExpressions); updateColumnMap = table.getColumnIndexes(updateColNames); } if (updateExpressions != null) { Table baseTable = table.getBaseTable(); baseUpdateColumnMap = updateColumnMap; if (table != baseTable) { baseUpdateColumnMap = new int[updateColumnMap.length]; ArrayUtil.projectRow(table.getBaseTableColumnMap(), updateColumnMap, baseUpdateColumnMap); } resolveUpdateExpressions(table, sourceRangeVars, updateColumnMap, updateExpressions, outerRanges); } HsqlList unresolved = null; unresolved = mergeCondition.resolveColumnReferences(fullRangeVars, null); ExpressionColumn.checkColumnsResolved(unresolved); mergeCondition.resolveTypes(session, null); if (mergeCondition.isParam()) { mergeCondition.dataType = Type.SQL_BOOLEAN; } if (mergeCondition.getDataType() != Type.SQL_BOOLEAN) { throw Error.error(ErrorCode.X_42568); } RangeVariableResolver resolver = new RangeVariableResolver(fullRangeVars, mergeCondition, compileContext); resolver.processConditions(); fullRangeVars = resolver.rangeVariables; if (insertExpression != null) { unresolved = insertExpression.resolveColumnReferences(sourceRangeVars, unresolved); ExpressionColumn.checkColumnsResolved(unresolved); insertExpression.resolveTypes(session, null); } StatementDMQL cs = new StatementDML(session, fullRangeVars, insertColumnMap, updateColumnMap, insertColumnCheckList, mergeCondition, insertExpression, updateExpressions, compileContext); return cs; }
class class_name[name] begin[{] method[compileMergeStatement, return_type[type[StatementDMQL]], modifier[default], parameter[outerRanges]] begin[{] local_variable[type[boolean], insertColumnCheckList] local_variable[type[int], insertColumnMap] local_variable[type[int], updateColumnMap] local_variable[type[int], baseUpdateColumnMap] local_variable[type[Table], table] local_variable[type[RangeVariable], targetRange] local_variable[type[RangeVariable], sourceRange] local_variable[type[Expression], mergeCondition] local_variable[type[HsqlArrayList], updateList] local_variable[type[Expression], updateExpressions] local_variable[type[HsqlArrayList], insertList] local_variable[type[Expression], insertExpression] call[.read, parameter[]] call[.readThis, parameter[member[Tokens.INTO]]] assign[member[.targetRange], call[.readSimpleRangeVariable, parameter[member[StatementTypes.MERGE]]]] assign[member[.table], member[targetRange.rangeTable]] call[.readThis, parameter[member[Tokens.USING]]] assign[member[.sourceRange], call[.readTableOrSubquery, parameter[]]] call[.readThis, parameter[member[Tokens.ON]]] assign[member[.mergeCondition], call[.XreadBooleanValueExpression, parameter[]]] if[binary_operation[call[mergeCondition.getDataType, parameter[]], !=, member[Type.SQL_BOOLEAN]]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[MemberReference(member=X_42568, postfix_operators=[], prefix_operators=[], qualifier=ErrorCode, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=Error, selectors=[], type_arguments=None), label=None) else begin[{] None end[}] local_variable[type[RangeVariable], fullRangeVars] local_variable[type[RangeVariable], sourceRangeVars] local_variable[type[RangeVariable], targetRangeVars] assign[member[.insertColumnMap], call[table.getColumnMap, parameter[]]] assign[member[.insertColumnCheckList], call[table.getNewColumnCheckList, parameter[]]] local_variable[type[OrderedHashSet], updateColNames] local_variable[type[OrderedHashSet], insertColNames] call[.readMergeWhen, parameter[member[.insertColNames], member[.updateColNames], member[.insertList], member[.updateList], member[.targetRangeVars], member[.sourceRange]]] if[binary_operation[call[insertList.size, parameter[]], >, literal[0]]] begin[{] local_variable[type[int], colCount] if[binary_operation[member[.colCount], !=, literal[0]]] begin[{] assign[member[.insertColumnMap], call[table.getColumnIndexes, parameter[member[.insertColNames]]]] assign[member[.insertColumnCheckList], call[table.getColumnCheckList, parameter[member[.insertColumnMap]]]] else begin[{] None end[}] assign[member[.insertExpression], Cast(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], member=get, postfix_operators=[], prefix_operators=[], qualifier=insertList, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Expression, sub_type=None))] call[.setParameterTypes, parameter[member[.insertExpression], member[.table], member[.insertColumnMap]]] else begin[{] None end[}] if[binary_operation[call[updateList.size, parameter[]], >, literal[0]]] begin[{] assign[member[.updateExpressions], ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=updateList, selectors=[], type_arguments=None)], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Expression, sub_type=None))] call[updateList.toArray, parameter[member[.updateExpressions]]] assign[member[.updateColumnMap], call[table.getColumnIndexes, parameter[member[.updateColNames]]]] else begin[{] None end[}] if[binary_operation[member[.updateExpressions], !=, literal[null]]] begin[{] local_variable[type[Table], baseTable] assign[member[.baseUpdateColumnMap], member[.updateColumnMap]] if[binary_operation[member[.table], !=, member[.baseTable]]] begin[{] assign[member[.baseUpdateColumnMap], ArrayCreator(dimensions=[MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=updateColumnMap, selectors=[])], initializer=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=None, name=int))] call[ArrayUtil.projectRow, parameter[call[table.getBaseTableColumnMap, parameter[]], member[.updateColumnMap], member[.baseUpdateColumnMap]]] else begin[{] None end[}] call[.resolveUpdateExpressions, parameter[member[.table], member[.sourceRangeVars], member[.updateColumnMap], member[.updateExpressions], member[.outerRanges]]] else begin[{] None end[}] local_variable[type[HsqlList], unresolved] assign[member[.unresolved], call[mergeCondition.resolveColumnReferences, parameter[member[.fullRangeVars], literal[null]]]] call[ExpressionColumn.checkColumnsResolved, parameter[member[.unresolved]]] call[mergeCondition.resolveTypes, parameter[member[.session], literal[null]]] if[call[mergeCondition.isParam, parameter[]]] begin[{] assign[member[mergeCondition.dataType], member[Type.SQL_BOOLEAN]] else begin[{] None end[}] if[binary_operation[call[mergeCondition.getDataType, parameter[]], !=, member[Type.SQL_BOOLEAN]]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[MemberReference(member=X_42568, postfix_operators=[], prefix_operators=[], qualifier=ErrorCode, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=Error, selectors=[], type_arguments=None), label=None) else begin[{] None end[}] local_variable[type[RangeVariableResolver], resolver] call[resolver.processConditions, parameter[]] assign[member[.fullRangeVars], member[resolver.rangeVariables]] if[binary_operation[member[.insertExpression], !=, literal[null]]] begin[{] assign[member[.unresolved], call[insertExpression.resolveColumnReferences, parameter[member[.sourceRangeVars], member[.unresolved]]]] call[ExpressionColumn.checkColumnsResolved, parameter[member[.unresolved]]] call[insertExpression.resolveTypes, parameter[member[.session], literal[null]]] else begin[{] None end[}] local_variable[type[StatementDMQL], cs] return[member[.cs]] end[}] END[}]
identifier[StatementDMQL] identifier[compileMergeStatement] operator[SEP] identifier[RangeVariable] operator[SEP] operator[SEP] identifier[outerRanges] operator[SEP] { Keyword[boolean] operator[SEP] operator[SEP] identifier[insertColumnCheckList] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[insertColumnMap] operator[=] Other[null] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[updateColumnMap] operator[=] Other[null] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[baseUpdateColumnMap] operator[SEP] identifier[Table] identifier[table] operator[SEP] identifier[RangeVariable] identifier[targetRange] operator[SEP] identifier[RangeVariable] identifier[sourceRange] operator[SEP] identifier[Expression] identifier[mergeCondition] operator[SEP] identifier[HsqlArrayList] identifier[updateList] operator[=] Keyword[new] identifier[HsqlArrayList] operator[SEP] operator[SEP] operator[SEP] identifier[Expression] operator[SEP] operator[SEP] identifier[updateExpressions] operator[=] Other[null] operator[SEP] identifier[HsqlArrayList] identifier[insertList] operator[=] Keyword[new] identifier[HsqlArrayList] operator[SEP] operator[SEP] operator[SEP] identifier[Expression] identifier[insertExpression] operator[=] Other[null] operator[SEP] identifier[read] operator[SEP] operator[SEP] operator[SEP] identifier[readThis] operator[SEP] identifier[Tokens] operator[SEP] identifier[INTO] operator[SEP] operator[SEP] identifier[targetRange] operator[=] identifier[readSimpleRangeVariable] operator[SEP] identifier[StatementTypes] operator[SEP] identifier[MERGE] operator[SEP] operator[SEP] identifier[table] operator[=] identifier[targetRange] operator[SEP] identifier[rangeTable] operator[SEP] identifier[readThis] operator[SEP] identifier[Tokens] operator[SEP] identifier[USING] operator[SEP] operator[SEP] identifier[sourceRange] operator[=] identifier[readTableOrSubquery] operator[SEP] operator[SEP] operator[SEP] identifier[readThis] operator[SEP] identifier[Tokens] operator[SEP] identifier[ON] operator[SEP] operator[SEP] identifier[mergeCondition] operator[=] identifier[XreadBooleanValueExpression] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[mergeCondition] operator[SEP] identifier[getDataType] operator[SEP] operator[SEP] operator[!=] identifier[Type] operator[SEP] identifier[SQL_BOOLEAN] operator[SEP] { Keyword[throw] identifier[Error] operator[SEP] identifier[error] operator[SEP] identifier[ErrorCode] operator[SEP] identifier[X_42568] operator[SEP] operator[SEP] } identifier[RangeVariable] operator[SEP] operator[SEP] identifier[fullRangeVars] operator[=] Keyword[new] identifier[RangeVariable] operator[SEP] operator[SEP] { identifier[sourceRange] , identifier[targetRange] } operator[SEP] identifier[RangeVariable] operator[SEP] operator[SEP] identifier[sourceRangeVars] operator[=] Keyword[new] identifier[RangeVariable] operator[SEP] operator[SEP] { identifier[sourceRange] } operator[SEP] identifier[RangeVariable] operator[SEP] operator[SEP] identifier[targetRangeVars] operator[=] Keyword[new] identifier[RangeVariable] operator[SEP] operator[SEP] { identifier[targetRange] } operator[SEP] identifier[insertColumnMap] operator[=] identifier[table] operator[SEP] identifier[getColumnMap] operator[SEP] operator[SEP] operator[SEP] identifier[insertColumnCheckList] operator[=] identifier[table] operator[SEP] identifier[getNewColumnCheckList] operator[SEP] operator[SEP] operator[SEP] identifier[OrderedHashSet] identifier[updateColNames] operator[=] Keyword[new] identifier[OrderedHashSet] operator[SEP] operator[SEP] operator[SEP] identifier[OrderedHashSet] identifier[insertColNames] operator[=] Keyword[new] identifier[OrderedHashSet] operator[SEP] operator[SEP] operator[SEP] identifier[readMergeWhen] operator[SEP] identifier[insertColNames] , identifier[updateColNames] , identifier[insertList] , identifier[updateList] , identifier[targetRangeVars] , identifier[sourceRange] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[insertList] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { Keyword[int] identifier[colCount] operator[=] identifier[insertColNames] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[colCount] operator[!=] Other[0] operator[SEP] { identifier[insertColumnMap] operator[=] identifier[table] operator[SEP] identifier[getColumnIndexes] operator[SEP] identifier[insertColNames] operator[SEP] operator[SEP] identifier[insertColumnCheckList] operator[=] identifier[table] operator[SEP] identifier[getColumnCheckList] operator[SEP] identifier[insertColumnMap] operator[SEP] operator[SEP] } identifier[insertExpression] operator[=] operator[SEP] identifier[Expression] operator[SEP] identifier[insertList] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[setParameterTypes] operator[SEP] identifier[insertExpression] , identifier[table] , identifier[insertColumnMap] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[updateList] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { identifier[updateExpressions] operator[=] Keyword[new] identifier[Expression] operator[SEP] identifier[updateList] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[updateList] operator[SEP] identifier[toArray] operator[SEP] identifier[updateExpressions] operator[SEP] operator[SEP] identifier[updateColumnMap] operator[=] identifier[table] operator[SEP] identifier[getColumnIndexes] operator[SEP] identifier[updateColNames] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[updateExpressions] operator[!=] Other[null] operator[SEP] { identifier[Table] identifier[baseTable] operator[=] identifier[table] operator[SEP] identifier[getBaseTable] operator[SEP] operator[SEP] operator[SEP] identifier[baseUpdateColumnMap] operator[=] identifier[updateColumnMap] operator[SEP] Keyword[if] operator[SEP] identifier[table] operator[!=] identifier[baseTable] operator[SEP] { identifier[baseUpdateColumnMap] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[updateColumnMap] operator[SEP] identifier[length] operator[SEP] operator[SEP] identifier[ArrayUtil] operator[SEP] identifier[projectRow] operator[SEP] identifier[table] operator[SEP] identifier[getBaseTableColumnMap] operator[SEP] operator[SEP] , identifier[updateColumnMap] , identifier[baseUpdateColumnMap] operator[SEP] operator[SEP] } identifier[resolveUpdateExpressions] operator[SEP] identifier[table] , identifier[sourceRangeVars] , identifier[updateColumnMap] , identifier[updateExpressions] , identifier[outerRanges] operator[SEP] operator[SEP] } identifier[HsqlList] identifier[unresolved] operator[=] Other[null] operator[SEP] identifier[unresolved] operator[=] identifier[mergeCondition] operator[SEP] identifier[resolveColumnReferences] operator[SEP] identifier[fullRangeVars] , Other[null] operator[SEP] operator[SEP] identifier[ExpressionColumn] operator[SEP] identifier[checkColumnsResolved] operator[SEP] identifier[unresolved] operator[SEP] operator[SEP] identifier[mergeCondition] operator[SEP] identifier[resolveTypes] operator[SEP] identifier[session] , Other[null] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[mergeCondition] operator[SEP] identifier[isParam] operator[SEP] operator[SEP] operator[SEP] { identifier[mergeCondition] operator[SEP] identifier[dataType] operator[=] identifier[Type] operator[SEP] identifier[SQL_BOOLEAN] operator[SEP] } Keyword[if] operator[SEP] identifier[mergeCondition] operator[SEP] identifier[getDataType] operator[SEP] operator[SEP] operator[!=] identifier[Type] operator[SEP] identifier[SQL_BOOLEAN] operator[SEP] { Keyword[throw] identifier[Error] operator[SEP] identifier[error] operator[SEP] identifier[ErrorCode] operator[SEP] identifier[X_42568] operator[SEP] operator[SEP] } identifier[RangeVariableResolver] identifier[resolver] operator[=] Keyword[new] identifier[RangeVariableResolver] operator[SEP] identifier[fullRangeVars] , identifier[mergeCondition] , identifier[compileContext] operator[SEP] operator[SEP] identifier[resolver] operator[SEP] identifier[processConditions] operator[SEP] operator[SEP] operator[SEP] identifier[fullRangeVars] operator[=] identifier[resolver] operator[SEP] identifier[rangeVariables] operator[SEP] Keyword[if] operator[SEP] identifier[insertExpression] operator[!=] Other[null] operator[SEP] { identifier[unresolved] operator[=] identifier[insertExpression] operator[SEP] identifier[resolveColumnReferences] operator[SEP] identifier[sourceRangeVars] , identifier[unresolved] operator[SEP] operator[SEP] identifier[ExpressionColumn] operator[SEP] identifier[checkColumnsResolved] operator[SEP] identifier[unresolved] operator[SEP] operator[SEP] identifier[insertExpression] operator[SEP] identifier[resolveTypes] operator[SEP] identifier[session] , Other[null] operator[SEP] operator[SEP] } identifier[StatementDMQL] identifier[cs] operator[=] Keyword[new] identifier[StatementDML] operator[SEP] identifier[session] , identifier[fullRangeVars] , identifier[insertColumnMap] , identifier[updateColumnMap] , identifier[insertColumnCheckList] , identifier[mergeCondition] , identifier[insertExpression] , identifier[updateExpressions] , identifier[compileContext] operator[SEP] operator[SEP] Keyword[return] identifier[cs] operator[SEP] }
@Override public IPortletUrlBuilder getPortletUrlBuilder(IPortletWindowId portletWindowId) { IPortletUrlBuilder portletUrlBuilder; portletUrlBuilder = this.portletUrlBuilders.get(portletWindowId); if (portletUrlBuilder == null) { portletUrlBuilder = ConcurrentMapUtils.putIfAbsent( this.portletUrlBuilders, portletWindowId, new PortletUrlBuilder(portletWindowId, this)); } return portletUrlBuilder; }
class class_name[name] begin[{] method[getPortletUrlBuilder, return_type[type[IPortletUrlBuilder]], modifier[public], parameter[portletWindowId]] begin[{] local_variable[type[IPortletUrlBuilder], portletUrlBuilder] assign[member[.portletUrlBuilder], THIS[member[None.portletUrlBuilders]call[None.get, parameter[member[.portletWindowId]]]]] if[binary_operation[member[.portletUrlBuilder], ==, literal[null]]] begin[{] assign[member[.portletUrlBuilder], call[ConcurrentMapUtils.putIfAbsent, parameter[THIS[member[None.portletUrlBuilders]], member[.portletWindowId], ClassCreator(arguments=[MemberReference(member=portletWindowId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=PortletUrlBuilder, sub_type=None))]]] else begin[{] None end[}] return[member[.portletUrlBuilder]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[IPortletUrlBuilder] identifier[getPortletUrlBuilder] operator[SEP] identifier[IPortletWindowId] identifier[portletWindowId] operator[SEP] { identifier[IPortletUrlBuilder] identifier[portletUrlBuilder] operator[SEP] identifier[portletUrlBuilder] operator[=] Keyword[this] operator[SEP] identifier[portletUrlBuilders] operator[SEP] identifier[get] operator[SEP] identifier[portletWindowId] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[portletUrlBuilder] operator[==] Other[null] operator[SEP] { identifier[portletUrlBuilder] operator[=] identifier[ConcurrentMapUtils] operator[SEP] identifier[putIfAbsent] operator[SEP] Keyword[this] operator[SEP] identifier[portletUrlBuilders] , identifier[portletWindowId] , Keyword[new] identifier[PortletUrlBuilder] operator[SEP] identifier[portletWindowId] , Keyword[this] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[portletUrlBuilder] operator[SEP] }
public double getSunLongitude() { // See page 86 of "Practial Astronomy with your Calculator", // by Peter Duffet-Smith, for details on the algorithm. if (sunLongitude == INVALID) { double[] result = getSunLongitude(getJulianDay()); sunLongitude = result[0]; meanAnomalySun = result[1]; } return sunLongitude; }
class class_name[name] begin[{] method[getSunLongitude, return_type[type[double]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.sunLongitude], ==, member[.INVALID]]] begin[{] local_variable[type[double], result] assign[member[.sunLongitude], member[.result]] assign[member[.meanAnomalySun], member[.result]] else begin[{] None end[}] return[member[.sunLongitude]] end[}] END[}]
Keyword[public] Keyword[double] identifier[getSunLongitude] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[sunLongitude] operator[==] identifier[INVALID] operator[SEP] { Keyword[double] operator[SEP] operator[SEP] identifier[result] operator[=] identifier[getSunLongitude] operator[SEP] identifier[getJulianDay] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[sunLongitude] operator[=] identifier[result] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[meanAnomalySun] operator[=] identifier[result] operator[SEP] Other[1] operator[SEP] operator[SEP] } Keyword[return] identifier[sunLongitude] operator[SEP] }
public String getApplicationUriWithQuery() { StringBuilder sb = new StringBuilder(); sb.append(getApplicationUri()); if (getQuery() != null) { sb.append('?').append(getQuery()); } return sb.toString(); }
class class_name[name] begin[{] method[getApplicationUriWithQuery, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[StringBuilder], sb] call[sb.append, parameter[call[.getApplicationUri, parameter[]]]] if[binary_operation[call[.getQuery, parameter[]], !=, literal[null]]] begin[{] call[sb.append, parameter[literal['?']]] else begin[{] None end[}] return[call[sb.toString, parameter[]]] end[}] END[}]
Keyword[public] identifier[String] identifier[getApplicationUriWithQuery] operator[SEP] operator[SEP] { identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[getApplicationUri] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[getQuery] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[sb] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[append] operator[SEP] identifier[getQuery] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[sb] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
private void addUndeclaredEntity(String name, Location loc, boolean isPe) { if (mUndeclaredEntity == null) { mUndeclaredEntity = new UndeclaredEntity(name, loc, isPe); } }
class class_name[name] begin[{] method[addUndeclaredEntity, return_type[void], modifier[private], parameter[name, loc, isPe]] begin[{] if[binary_operation[member[.mUndeclaredEntity], ==, literal[null]]] begin[{] assign[member[.mUndeclaredEntity], ClassCreator(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=loc, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isPe, 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=UndeclaredEntity, sub_type=None))] else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[addUndeclaredEntity] operator[SEP] identifier[String] identifier[name] , identifier[Location] identifier[loc] , Keyword[boolean] identifier[isPe] operator[SEP] { Keyword[if] operator[SEP] identifier[mUndeclaredEntity] operator[==] Other[null] operator[SEP] { identifier[mUndeclaredEntity] operator[=] Keyword[new] identifier[UndeclaredEntity] operator[SEP] identifier[name] , identifier[loc] , identifier[isPe] operator[SEP] operator[SEP] } }
public static void updateCollections(PropertyStorage storage, Transport transport) { storage.getProperties().forEach(e -> { if (Collection.class.isAssignableFrom(e.getKey().getType())) { // found a collection in properties ((Collection) e.getValue()).forEach(i -> { if (i instanceof FluentStyle) { ((FluentStyle) i).setTransport(transport); } }); } }); }
class class_name[name] begin[{] method[updateCollections, return_type[void], modifier[public static], parameter[storage, transport]] begin[{] call[storage.getProperties, parameter[]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[updateCollections] operator[SEP] identifier[PropertyStorage] identifier[storage] , identifier[Transport] identifier[transport] operator[SEP] { identifier[storage] operator[SEP] identifier[getProperties] operator[SEP] operator[SEP] operator[SEP] identifier[forEach] operator[SEP] identifier[e] operator[->] { Keyword[if] operator[SEP] identifier[Collection] operator[SEP] Keyword[class] operator[SEP] identifier[isAssignableFrom] operator[SEP] identifier[e] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[SEP] operator[SEP] { operator[SEP] operator[SEP] identifier[Collection] operator[SEP] identifier[e] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[forEach] operator[SEP] identifier[i] operator[->] { Keyword[if] operator[SEP] identifier[i] Keyword[instanceof] identifier[FluentStyle] operator[SEP] { operator[SEP] operator[SEP] identifier[FluentStyle] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[setTransport] operator[SEP] identifier[transport] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] }
public static base_response update(nitro_service client, nsacl6 resource) throws Exception { nsacl6 updateresource = new nsacl6(); updateresource.acl6name = resource.acl6name; updateresource.aclaction = resource.aclaction; updateresource.srcipv6 = resource.srcipv6; updateresource.srcipop = resource.srcipop; updateresource.srcipv6val = resource.srcipv6val; updateresource.srcport = resource.srcport; updateresource.srcportop = resource.srcportop; updateresource.srcportval = resource.srcportval; updateresource.destipv6 = resource.destipv6; updateresource.destipop = resource.destipop; updateresource.destipv6val = resource.destipv6val; updateresource.destport = resource.destport; updateresource.destportop = resource.destportop; updateresource.destportval = resource.destportval; updateresource.srcmac = resource.srcmac; updateresource.protocol = resource.protocol; updateresource.protocolnumber = resource.protocolnumber; updateresource.icmptype = resource.icmptype; updateresource.icmpcode = resource.icmpcode; updateresource.vlan = resource.vlan; updateresource.Interface = resource.Interface; updateresource.priority = resource.priority; updateresource.established = resource.established; return updateresource.update_resource(client); }
class class_name[name] begin[{] method[update, return_type[type[base_response]], modifier[public static], parameter[client, resource]] begin[{] local_variable[type[nsacl6], updateresource] assign[member[updateresource.acl6name], member[resource.acl6name]] assign[member[updateresource.aclaction], member[resource.aclaction]] assign[member[updateresource.srcipv6], member[resource.srcipv6]] assign[member[updateresource.srcipop], member[resource.srcipop]] assign[member[updateresource.srcipv6val], member[resource.srcipv6val]] assign[member[updateresource.srcport], member[resource.srcport]] assign[member[updateresource.srcportop], member[resource.srcportop]] assign[member[updateresource.srcportval], member[resource.srcportval]] assign[member[updateresource.destipv6], member[resource.destipv6]] assign[member[updateresource.destipop], member[resource.destipop]] assign[member[updateresource.destipv6val], member[resource.destipv6val]] assign[member[updateresource.destport], member[resource.destport]] assign[member[updateresource.destportop], member[resource.destportop]] assign[member[updateresource.destportval], member[resource.destportval]] assign[member[updateresource.srcmac], member[resource.srcmac]] assign[member[updateresource.protocol], member[resource.protocol]] assign[member[updateresource.protocolnumber], member[resource.protocolnumber]] assign[member[updateresource.icmptype], member[resource.icmptype]] assign[member[updateresource.icmpcode], member[resource.icmpcode]] assign[member[updateresource.vlan], member[resource.vlan]] assign[member[updateresource.Interface], member[resource.Interface]] assign[member[updateresource.priority], member[resource.priority]] assign[member[updateresource.established], member[resource.established]] return[call[updateresource.update_resource, parameter[member[.client]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[base_response] identifier[update] operator[SEP] identifier[nitro_service] identifier[client] , identifier[nsacl6] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] { identifier[nsacl6] identifier[updateresource] operator[=] Keyword[new] identifier[nsacl6] operator[SEP] operator[SEP] operator[SEP] identifier[updateresource] operator[SEP] identifier[acl6name] operator[=] identifier[resource] operator[SEP] identifier[acl6name] operator[SEP] identifier[updateresource] operator[SEP] identifier[aclaction] operator[=] identifier[resource] operator[SEP] identifier[aclaction] operator[SEP] identifier[updateresource] operator[SEP] identifier[srcipv6] operator[=] identifier[resource] operator[SEP] identifier[srcipv6] operator[SEP] identifier[updateresource] operator[SEP] identifier[srcipop] operator[=] identifier[resource] operator[SEP] identifier[srcipop] operator[SEP] identifier[updateresource] operator[SEP] identifier[srcipv6val] operator[=] identifier[resource] operator[SEP] identifier[srcipv6val] operator[SEP] identifier[updateresource] operator[SEP] identifier[srcport] operator[=] identifier[resource] operator[SEP] identifier[srcport] operator[SEP] identifier[updateresource] operator[SEP] identifier[srcportop] operator[=] identifier[resource] operator[SEP] identifier[srcportop] operator[SEP] identifier[updateresource] operator[SEP] identifier[srcportval] operator[=] identifier[resource] operator[SEP] identifier[srcportval] operator[SEP] identifier[updateresource] operator[SEP] identifier[destipv6] operator[=] identifier[resource] operator[SEP] identifier[destipv6] operator[SEP] identifier[updateresource] operator[SEP] identifier[destipop] operator[=] identifier[resource] operator[SEP] identifier[destipop] operator[SEP] identifier[updateresource] operator[SEP] identifier[destipv6val] operator[=] identifier[resource] operator[SEP] identifier[destipv6val] operator[SEP] identifier[updateresource] operator[SEP] identifier[destport] operator[=] identifier[resource] operator[SEP] identifier[destport] operator[SEP] identifier[updateresource] operator[SEP] identifier[destportop] operator[=] identifier[resource] operator[SEP] identifier[destportop] operator[SEP] identifier[updateresource] operator[SEP] identifier[destportval] operator[=] identifier[resource] operator[SEP] identifier[destportval] operator[SEP] identifier[updateresource] operator[SEP] identifier[srcmac] operator[=] identifier[resource] operator[SEP] identifier[srcmac] operator[SEP] identifier[updateresource] operator[SEP] identifier[protocol] operator[=] identifier[resource] operator[SEP] identifier[protocol] operator[SEP] identifier[updateresource] operator[SEP] identifier[protocolnumber] operator[=] identifier[resource] operator[SEP] identifier[protocolnumber] operator[SEP] identifier[updateresource] operator[SEP] identifier[icmptype] operator[=] identifier[resource] operator[SEP] identifier[icmptype] operator[SEP] identifier[updateresource] operator[SEP] identifier[icmpcode] operator[=] identifier[resource] operator[SEP] identifier[icmpcode] operator[SEP] identifier[updateresource] operator[SEP] identifier[vlan] operator[=] identifier[resource] operator[SEP] identifier[vlan] operator[SEP] identifier[updateresource] operator[SEP] identifier[Interface] operator[=] identifier[resource] operator[SEP] identifier[Interface] operator[SEP] identifier[updateresource] operator[SEP] identifier[priority] operator[=] identifier[resource] operator[SEP] identifier[priority] operator[SEP] identifier[updateresource] operator[SEP] identifier[established] operator[=] identifier[resource] operator[SEP] identifier[established] operator[SEP] Keyword[return] identifier[updateresource] operator[SEP] identifier[update_resource] operator[SEP] identifier[client] operator[SEP] operator[SEP] }
public static void noNullElements(Object[] array, String message) { if (array != null) { for (int i = 0; i < array.length; i++) { if (array[i] == null) { throw new IllegalArgumentException(message); } } } }
class class_name[name] begin[{] method[noNullElements, return_type[void], modifier[public static], parameter[array, message]] begin[{] if[binary_operation[member[.array], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=array, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, 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=[MemberReference(member=message, 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=IllegalArgumentException, sub_type=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=array, 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) else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[noNullElements] operator[SEP] identifier[Object] operator[SEP] operator[SEP] identifier[array] , identifier[String] identifier[message] operator[SEP] { Keyword[if] operator[SEP] identifier[array] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[array] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[array] operator[SEP] identifier[i] operator[SEP] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] identifier[message] operator[SEP] operator[SEP] } } } }
@NullableDecl public String formatDiff(@NullableDecl A actual, @NullableDecl E expected) { return null; }
class class_name[name] begin[{] method[formatDiff, return_type[type[String]], modifier[public], parameter[actual, expected]] begin[{] return[literal[null]] end[}] END[}]
annotation[@] identifier[NullableDecl] Keyword[public] identifier[String] identifier[formatDiff] operator[SEP] annotation[@] identifier[NullableDecl] identifier[A] identifier[actual] , annotation[@] identifier[NullableDecl] identifier[E] identifier[expected] operator[SEP] { Keyword[return] Other[null] operator[SEP] }
public int strId2IdxAdd(Map fmap) { strId2Idx(fmap); if (idx < 0) { idx = fmap.size(); fmap.put(strId, new Integer(idx)); } return idx; }
class class_name[name] begin[{] method[strId2IdxAdd, return_type[type[int]], modifier[public], parameter[fmap]] begin[{] call[.strId2Idx, parameter[member[.fmap]]] if[binary_operation[member[.idx], <, literal[0]]] begin[{] assign[member[.idx], call[fmap.size, parameter[]]] call[fmap.put, parameter[member[.strId], ClassCreator(arguments=[MemberReference(member=idx, 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=Integer, sub_type=None))]] else begin[{] None end[}] return[member[.idx]] end[}] END[}]
Keyword[public] Keyword[int] identifier[strId2IdxAdd] operator[SEP] identifier[Map] identifier[fmap] operator[SEP] { identifier[strId2Idx] operator[SEP] identifier[fmap] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[idx] operator[<] Other[0] operator[SEP] { identifier[idx] operator[=] identifier[fmap] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[fmap] operator[SEP] identifier[put] operator[SEP] identifier[strId] , Keyword[new] identifier[Integer] operator[SEP] identifier[idx] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[idx] operator[SEP] }
public static InputStream getRequiredStream(Class<?> root, String resourceName) { return getStream(root, resourceName, true); }
class class_name[name] begin[{] method[getRequiredStream, return_type[type[InputStream]], modifier[public static], parameter[root, resourceName]] begin[{] return[call[.getStream, parameter[member[.root], member[.resourceName], literal[true]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[InputStream] identifier[getRequiredStream] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[root] , identifier[String] identifier[resourceName] operator[SEP] { Keyword[return] identifier[getStream] operator[SEP] identifier[root] , identifier[resourceName] , literal[boolean] operator[SEP] operator[SEP] }
public void marshall(ListFleetsRequest listFleetsRequest, ProtocolMarshaller protocolMarshaller) { if (listFleetsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listFleetsRequest.getNextToken(), NEXTTOKEN_BINDING); protocolMarshaller.marshall(listFleetsRequest.getMaxResults(), MAXRESULTS_BINDING); protocolMarshaller.marshall(listFleetsRequest.getFilters(), FILTERS_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[listFleetsRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.listFleetsRequest], ==, 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=getNextToken, postfix_operators=[], prefix_operators=[], qualifier=listFleetsRequest, selectors=[], type_arguments=None), MemberReference(member=NEXTTOKEN_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=getMaxResults, postfix_operators=[], prefix_operators=[], qualifier=listFleetsRequest, selectors=[], type_arguments=None), MemberReference(member=MAXRESULTS_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=getFilters, postfix_operators=[], prefix_operators=[], qualifier=listFleetsRequest, selectors=[], type_arguments=None), MemberReference(member=FILTERS_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[ListFleetsRequest] identifier[listFleetsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[listFleetsRequest] 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[listFleetsRequest] operator[SEP] identifier[getNextToken] operator[SEP] operator[SEP] , identifier[NEXTTOKEN_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[listFleetsRequest] operator[SEP] identifier[getMaxResults] operator[SEP] operator[SEP] , identifier[MAXRESULTS_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[listFleetsRequest] operator[SEP] identifier[getFilters] operator[SEP] operator[SEP] , identifier[FILTERS_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] } }
@Override public Resource getScriptComponentResource(FacesContext context, Resource componentResource) { checkNull(context, "context"); checkNull(componentResource, "componentResource"); // TODO Auto-generated method stub return null; }
class class_name[name] begin[{] method[getScriptComponentResource, return_type[type[Resource]], modifier[public], parameter[context, componentResource]] begin[{] call[.checkNull, parameter[member[.context], literal["context"]]] call[.checkNull, parameter[member[.componentResource], literal["componentResource"]]] return[literal[null]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Resource] identifier[getScriptComponentResource] operator[SEP] identifier[FacesContext] identifier[context] , identifier[Resource] identifier[componentResource] operator[SEP] { identifier[checkNull] operator[SEP] identifier[context] , literal[String] operator[SEP] operator[SEP] identifier[checkNull] operator[SEP] identifier[componentResource] , literal[String] operator[SEP] operator[SEP] Keyword[return] Other[null] operator[SEP] }
public static String findManifestProperty( String propertyName ) { String result = null; InputStream is = null; try { is = ManifestUtils.class.getResourceAsStream( "/META-INF/MANIFEST.MF" ); Properties props = new Properties(); props.load( is ); result = findManifestProperty( props, propertyName ); } catch( IOException e ) { Logger logger = Logger.getLogger( ManifestUtils.class.getName()); logger.warning( "Could not read the bundle manifest. " + e.getMessage()); } finally { Utils.closeQuietly( is ); } return result; }
class class_name[name] begin[{] method[findManifestProperty, return_type[type[String]], modifier[public static], parameter[propertyName]] begin[{] local_variable[type[String], result] local_variable[type[InputStream], is] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=is, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="/META-INF/MANIFEST.MF")], member=getResourceAsStream, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=ManifestUtils, sub_type=None))), label=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=None, dimensions=None, name=Properties, sub_type=None)), name=props)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Properties, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=is, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=load, postfix_operators=[], prefix_operators=[], qualifier=props, selectors=[], type_arguments=None), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=props, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=propertyName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=findManifestProperty, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)), label=None)], catches=[CatchClause(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[], member=getName, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=ManifestUtils, sub_type=None))], member=getLogger, postfix_operators=[], prefix_operators=[], qualifier=Logger, selectors=[], type_arguments=None), name=logger)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Logger, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Could not read the bundle manifest. "), operandr=MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), operator=+)], member=warning, postfix_operators=[], prefix_operators=[], qualifier=logger, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException']))], finally_block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=is, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=closeQuietly, postfix_operators=[], prefix_operators=[], qualifier=Utils, selectors=[], type_arguments=None), label=None)], label=None, resources=None) return[member[.result]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[findManifestProperty] operator[SEP] identifier[String] identifier[propertyName] operator[SEP] { identifier[String] identifier[result] operator[=] Other[null] operator[SEP] identifier[InputStream] identifier[is] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[is] operator[=] identifier[ManifestUtils] operator[SEP] Keyword[class] operator[SEP] identifier[getResourceAsStream] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[Properties] identifier[props] operator[=] Keyword[new] identifier[Properties] operator[SEP] operator[SEP] operator[SEP] identifier[props] operator[SEP] identifier[load] operator[SEP] identifier[is] operator[SEP] operator[SEP] identifier[result] operator[=] identifier[findManifestProperty] operator[SEP] identifier[props] , identifier[propertyName] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { identifier[Logger] identifier[logger] operator[=] identifier[Logger] operator[SEP] identifier[getLogger] operator[SEP] identifier[ManifestUtils] operator[SEP] Keyword[class] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[logger] operator[SEP] identifier[warning] operator[SEP] literal[String] operator[+] identifier[e] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[finally] { identifier[Utils] operator[SEP] identifier[closeQuietly] operator[SEP] identifier[is] operator[SEP] operator[SEP] } Keyword[return] identifier[result] operator[SEP] }
public static void log(Logger logger, Level level, String message) { log(logger, level, message, NO_PARAMETERS); }
class class_name[name] begin[{] method[log, return_type[void], modifier[public static], parameter[logger, level, message]] begin[{] call[.log, parameter[member[.logger], member[.level], member[.message], member[.NO_PARAMETERS]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[log] operator[SEP] identifier[Logger] identifier[logger] , identifier[Level] identifier[level] , identifier[String] identifier[message] operator[SEP] { identifier[log] operator[SEP] identifier[logger] , identifier[level] , identifier[message] , identifier[NO_PARAMETERS] operator[SEP] operator[SEP] }
@Override public Request<CreateClientVpnEndpointRequest> getDryRunRequest() { Request<CreateClientVpnEndpointRequest> request = new CreateClientVpnEndpointRequestMarshaller().marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; }
class class_name[name] begin[{] method[getDryRunRequest, return_type[type[Request]], modifier[public], parameter[]] begin[{] local_variable[type[Request], request] call[request.addParameter, parameter[literal["DryRun"], call[Boolean.toString, parameter[literal[true]]]]] return[member[.request]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Request] operator[<] identifier[CreateClientVpnEndpointRequest] operator[>] identifier[getDryRunRequest] operator[SEP] operator[SEP] { identifier[Request] operator[<] identifier[CreateClientVpnEndpointRequest] operator[>] identifier[request] operator[=] Keyword[new] identifier[CreateClientVpnEndpointRequestMarshaller] operator[SEP] operator[SEP] operator[SEP] identifier[marshall] operator[SEP] Keyword[this] operator[SEP] operator[SEP] identifier[request] operator[SEP] identifier[addParameter] operator[SEP] literal[String] , identifier[Boolean] operator[SEP] identifier[toString] operator[SEP] literal[boolean] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[request] operator[SEP] }
public static String imgToBase64StrWithPrefix(byte[] imageBytes, String formatName) { formatName = formatName != null ? formatName : "jpeg"; return String.format("data:image/%s;base64,%s", formatName, CommonUtils.bytesToBase64Str(imageBytes)); }
class class_name[name] begin[{] method[imgToBase64StrWithPrefix, return_type[type[String]], modifier[public static], parameter[imageBytes, formatName]] begin[{] assign[member[.formatName], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=formatName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), if_false=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="jpeg"), if_true=MemberReference(member=formatName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))] return[call[String.format, parameter[literal["data:image/%s;base64,%s"], member[.formatName], call[CommonUtils.bytesToBase64Str, parameter[member[.imageBytes]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[imgToBase64StrWithPrefix] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[imageBytes] , identifier[String] identifier[formatName] operator[SEP] { identifier[formatName] operator[=] identifier[formatName] operator[!=] Other[null] operator[?] identifier[formatName] operator[:] literal[String] operator[SEP] Keyword[return] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[formatName] , identifier[CommonUtils] operator[SEP] identifier[bytesToBase64Str] operator[SEP] identifier[imageBytes] operator[SEP] operator[SEP] operator[SEP] }
public void visit(final WebApp webApp) { if (LOG.isDebugEnabled()) { LOG.debug("visiting webapp: {}", webApp); } NullArgumentException.validateNotNull(webApp, "Web app"); bundleClassLoader = new BundleClassLoader(webApp.getBundle()); Set<Bundle> wiredBundles = ClassPathUtil.getBundlesInClassSpace( webApp.getBundle(), new LinkedHashSet<>()); ArrayList<Bundle> bundles = new ArrayList<>(); bundles.add(webApp.getBundle()); bundles.addAll(wiredBundles); bundleClassLoader = new ResourceDelegatingBundleClassLoader(bundles); httpContext = new WebAppWebContainerContext( webContainer.createDefaultHttpContext(), webApp.getRootPath(), webApp.getBundle(), webApp.getMimeMappings()); webApp.setHttpContext(httpContext); //CHECKSTYLE:OFF try { webContainer.setContextParam(RegisterWebAppVisitorHS .convertInitParams(webApp.getContextParams()), httpContext); } catch (Exception ignore) { LOG.error(REGISTRATION_EXCEPTION_SKIPPING, ignore); } //CHECKSTYLE:ON // set login Config PAXWEB-210 if (webApp.getLoginConfigs() != null) { for (WebAppLoginConfig loginConfig : webApp.getLoginConfigs()) { visit(loginConfig); // TODO: what about more than one login // config? shouldn't it be just one? } } //CHECKSTYLE:OFF // set session timeout if (webApp.getSessionTimeout() != null) { try { webContainer.setSessionTimeout( Integer.parseInt(webApp.getSessionTimeout()), httpContext); } catch (Exception ignore) { LOG.error(REGISTRATION_EXCEPTION_SKIPPING, ignore); } } //CHECKSTYLE:ON WebAppCookieConfig scc = webApp.getSessionCookieConfig(); if (scc != null) { webContainer.setSessionCookieConfig(scc.getDomain(), scc.getName(), scc.getHttpOnly(), scc.getSecure(), scc.getPath(), scc.getMaxAge(), httpContext); } for (WebAppServletContainerInitializer servletContainerInitializer : webApp .getServletContainerInitializers()) { webContainer.registerServletContainerInitializer( servletContainerInitializer .getServletContainerInitializer(), servletContainerInitializer.getClasses(), httpContext); } ServletContainerInitializer initializer = dependencyHolder .getServletContainerInitializer(); if (initializer != null) { webContainer.registerServletContainerInitializer(initializer, null, httpContext); } webContainer.setConnectorsAndVirtualHosts(webApp.getConnectorList(), webApp.getVirtualHostList(), httpContext); if (webApp.getJettyWebXmlURL() != null) { webContainer.registerJettyWebXml(webApp.getJettyWebXmlURL(), httpContext); } LOG.debug("webcontainer begin!"); webContainer.begin(httpContext); //CHECKSTYLE:OFF LOG.debug("registering welcome files"); // register welcome files try { final String[] welcomeFiles = webApp.getWelcomeFiles(); if (welcomeFiles != null && welcomeFiles.length > 0) { webContainer.registerWelcomeFiles(welcomeFiles, true, // redirect httpContext); } } catch (Exception ignore) { LOG.error(REGISTRATION_EXCEPTION_SKIPPING, ignore); } LOG.debug("registering default resources"); // register resource jspServlet try { webContainer.registerResources("/", "default", httpContext); } catch (Exception ignore) { LOG.error(REGISTRATION_EXCEPTION_SKIPPING, ignore); } LOG.debug("registering jsps"); // register JSP support try { webContainer .registerJsps( // Fix for PAXWEB-208 new String[]{"*.jsp", "*.jspx", "*.jspf", "*.xsp", "*.JSP", "*.JSPX", "*.JSPF", "*.XSP"}, httpContext); } catch (UnsupportedOperationException ignore) { LOG.warn(ignore.getMessage()); } catch (Exception ignore) { LOG.error(REGISTRATION_EXCEPTION_SKIPPING, ignore); } //CHECKSTYLE:ON WebAppJspConfig jspConfigDescriptor = webApp.getJspConfigDescriptor(); if (jspConfigDescriptor != null) { for (WebAppTagLib webAppTagLib : jspConfigDescriptor.getTagLibConfigs()) { webContainer.registerJspConfigTagLibs(webAppTagLib.getTagLibLocation(), webAppTagLib.getTagLibUri(), httpContext); } for (WebAppJspPropertyGroup webAppJspPropertyGroup : jspConfigDescriptor.getJspPropertyGroups()) { Boolean elIgnored = webAppJspPropertyGroup.getElIgnored(); List<String> includeCodes = webAppJspPropertyGroup.getIncludeCodes(); List<String> includePreludes = webAppJspPropertyGroup.getIncludePreludes(); Boolean isXml = webAppJspPropertyGroup.getIsXml(); Boolean scriptingInvalid = webAppJspPropertyGroup.getScriptingInvalid(); List<String> urlPatterns = webAppJspPropertyGroup.getUrlPatterns(); webContainer.registerJspConfigPropertyGroup(includeCodes, includePreludes, urlPatterns, elIgnored, scriptingInvalid, isXml, httpContext); } } }
class class_name[name] begin[{] method[visit, return_type[void], modifier[public], parameter[webApp]] begin[{] if[call[LOG.isDebugEnabled, parameter[]]] begin[{] call[LOG.debug, parameter[literal["visiting webapp: {}"], member[.webApp]]] else begin[{] None end[}] call[NullArgumentException.validateNotNull, parameter[member[.webApp], literal["Web app"]]] assign[member[.bundleClassLoader], ClassCreator(arguments=[MethodInvocation(arguments=[], member=getBundle, postfix_operators=[], prefix_operators=[], qualifier=webApp, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BundleClassLoader, sub_type=None))] local_variable[type[Set], wiredBundles] local_variable[type[ArrayList], bundles] call[bundles.add, parameter[call[webApp.getBundle, parameter[]]]] call[bundles.addAll, parameter[member[.wiredBundles]]] assign[member[.bundleClassLoader], ClassCreator(arguments=[MemberReference(member=bundles, 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=ResourceDelegatingBundleClassLoader, sub_type=None))] assign[member[.httpContext], ClassCreator(arguments=[MethodInvocation(arguments=[], member=createDefaultHttpContext, postfix_operators=[], prefix_operators=[], qualifier=webContainer, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getRootPath, postfix_operators=[], prefix_operators=[], qualifier=webApp, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getBundle, postfix_operators=[], prefix_operators=[], qualifier=webApp, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getMimeMappings, postfix_operators=[], prefix_operators=[], qualifier=webApp, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=WebAppWebContainerContext, sub_type=None))] call[webApp.setHttpContext, parameter[member[.httpContext]]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getContextParams, postfix_operators=[], prefix_operators=[], qualifier=webApp, selectors=[], type_arguments=None)], member=convertInitParams, postfix_operators=[], prefix_operators=[], qualifier=RegisterWebAppVisitorHS, selectors=[], type_arguments=None), MemberReference(member=httpContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setContextParam, postfix_operators=[], prefix_operators=[], qualifier=webContainer, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=REGISTRATION_EXCEPTION_SKIPPING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=ignore, 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=ignore, types=['Exception']))], finally_block=None, label=None, resources=None) if[binary_operation[call[webApp.getLoginConfigs, parameter[]], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=loginConfig, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=visit, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getLoginConfigs, postfix_operators=[], prefix_operators=[], qualifier=webApp, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=loginConfig)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=WebAppLoginConfig, sub_type=None))), label=None) else begin[{] None end[}] if[binary_operation[call[webApp.getSessionTimeout, parameter[]], !=, literal[null]]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getSessionTimeout, postfix_operators=[], prefix_operators=[], qualifier=webApp, selectors=[], type_arguments=None)], member=parseInt, postfix_operators=[], prefix_operators=[], qualifier=Integer, selectors=[], type_arguments=None), MemberReference(member=httpContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setSessionTimeout, postfix_operators=[], prefix_operators=[], qualifier=webContainer, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=REGISTRATION_EXCEPTION_SKIPPING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=ignore, 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=ignore, types=['Exception']))], finally_block=None, label=None, resources=None) else begin[{] None end[}] local_variable[type[WebAppCookieConfig], scc] if[binary_operation[member[.scc], !=, literal[null]]] begin[{] call[webContainer.setSessionCookieConfig, parameter[call[scc.getDomain, parameter[]], call[scc.getName, parameter[]], call[scc.getHttpOnly, parameter[]], call[scc.getSecure, parameter[]], call[scc.getPath, parameter[]], call[scc.getMaxAge, parameter[]], member[.httpContext]]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getServletContainerInitializer, postfix_operators=[], prefix_operators=[], qualifier=servletContainerInitializer, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getClasses, postfix_operators=[], prefix_operators=[], qualifier=servletContainerInitializer, selectors=[], type_arguments=None), MemberReference(member=httpContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=registerServletContainerInitializer, postfix_operators=[], prefix_operators=[], qualifier=webContainer, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getServletContainerInitializers, postfix_operators=[], prefix_operators=[], qualifier=webApp, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=servletContainerInitializer)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=WebAppServletContainerInitializer, sub_type=None))), label=None) local_variable[type[ServletContainerInitializer], initializer] if[binary_operation[member[.initializer], !=, literal[null]]] begin[{] call[webContainer.registerServletContainerInitializer, parameter[member[.initializer], literal[null], member[.httpContext]]] else begin[{] None end[}] call[webContainer.setConnectorsAndVirtualHosts, parameter[call[webApp.getConnectorList, parameter[]], call[webApp.getVirtualHostList, parameter[]], member[.httpContext]]] if[binary_operation[call[webApp.getJettyWebXmlURL, parameter[]], !=, literal[null]]] begin[{] call[webContainer.registerJettyWebXml, parameter[call[webApp.getJettyWebXmlURL, parameter[]], member[.httpContext]]] else begin[{] None end[}] call[LOG.debug, parameter[literal["webcontainer begin!"]]] call[webContainer.begin, parameter[member[.httpContext]]] call[LOG.debug, parameter[literal["registering welcome files"]]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getWelcomeFiles, postfix_operators=[], prefix_operators=[], qualifier=webApp, selectors=[], type_arguments=None), name=welcomeFiles)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[None], name=String, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=welcomeFiles, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=welcomeFiles, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=welcomeFiles, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true), MemberReference(member=httpContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=registerWelcomeFiles, postfix_operators=[], prefix_operators=[], qualifier=webContainer, selectors=[], type_arguments=None), label=None)]))], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=REGISTRATION_EXCEPTION_SKIPPING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=ignore, 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=ignore, types=['Exception']))], finally_block=None, label=None, resources=None) call[LOG.debug, parameter[literal["registering default resources"]]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="/"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="default"), MemberReference(member=httpContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=registerResources, postfix_operators=[], prefix_operators=[], qualifier=webContainer, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=REGISTRATION_EXCEPTION_SKIPPING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=ignore, 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=ignore, types=['Exception']))], finally_block=None, label=None, resources=None) call[LOG.debug, parameter[literal["registering jsps"]]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="*.jsp"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="*.jspx"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="*.jspf"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="*.xsp"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="*.JSP"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="*.JSPX"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="*.JSPF"), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="*.XSP")]), postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=String, sub_type=None)), MemberReference(member=httpContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=registerJsps, postfix_operators=[], prefix_operators=[], qualifier=webContainer, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getMessage, postfix_operators=[], prefix_operators=[], qualifier=ignore, selectors=[], type_arguments=None)], member=warn, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=ignore, types=['UnsupportedOperationException'])), CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=REGISTRATION_EXCEPTION_SKIPPING, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=ignore, 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=ignore, types=['Exception']))], finally_block=None, label=None, resources=None) local_variable[type[WebAppJspConfig], jspConfigDescriptor] if[binary_operation[member[.jspConfigDescriptor], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getTagLibLocation, postfix_operators=[], prefix_operators=[], qualifier=webAppTagLib, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getTagLibUri, postfix_operators=[], prefix_operators=[], qualifier=webAppTagLib, selectors=[], type_arguments=None), MemberReference(member=httpContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=registerJspConfigTagLibs, postfix_operators=[], prefix_operators=[], qualifier=webContainer, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getTagLibConfigs, postfix_operators=[], prefix_operators=[], qualifier=jspConfigDescriptor, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=webAppTagLib)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=WebAppTagLib, sub_type=None))), label=None) ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getElIgnored, postfix_operators=[], prefix_operators=[], qualifier=webAppJspPropertyGroup, selectors=[], type_arguments=None), name=elIgnored)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Boolean, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getIncludeCodes, postfix_operators=[], prefix_operators=[], qualifier=webAppJspPropertyGroup, selectors=[], type_arguments=None), name=includeCodes)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=List, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getIncludePreludes, postfix_operators=[], prefix_operators=[], qualifier=webAppJspPropertyGroup, selectors=[], type_arguments=None), name=includePreludes)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=List, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getIsXml, postfix_operators=[], prefix_operators=[], qualifier=webAppJspPropertyGroup, selectors=[], type_arguments=None), name=isXml)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Boolean, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getScriptingInvalid, postfix_operators=[], prefix_operators=[], qualifier=webAppJspPropertyGroup, selectors=[], type_arguments=None), name=scriptingInvalid)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Boolean, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getUrlPatterns, postfix_operators=[], prefix_operators=[], qualifier=webAppJspPropertyGroup, selectors=[], type_arguments=None), name=urlPatterns)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=[], name=List, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=includeCodes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=includePreludes, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=urlPatterns, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=elIgnored, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=scriptingInvalid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=isXml, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=httpContext, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=registerJspConfigPropertyGroup, postfix_operators=[], prefix_operators=[], qualifier=webContainer, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getJspPropertyGroups, postfix_operators=[], prefix_operators=[], qualifier=jspConfigDescriptor, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=webAppJspPropertyGroup)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=WebAppJspPropertyGroup, sub_type=None))), label=None) else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[visit] operator[SEP] Keyword[final] identifier[WebApp] identifier[webApp] operator[SEP] { Keyword[if] operator[SEP] identifier[LOG] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[webApp] operator[SEP] operator[SEP] } identifier[NullArgumentException] operator[SEP] identifier[validateNotNull] operator[SEP] identifier[webApp] , literal[String] operator[SEP] operator[SEP] identifier[bundleClassLoader] operator[=] Keyword[new] identifier[BundleClassLoader] operator[SEP] identifier[webApp] operator[SEP] identifier[getBundle] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[Set] operator[<] identifier[Bundle] operator[>] identifier[wiredBundles] operator[=] identifier[ClassPathUtil] operator[SEP] identifier[getBundlesInClassSpace] operator[SEP] identifier[webApp] operator[SEP] identifier[getBundle] operator[SEP] operator[SEP] , Keyword[new] identifier[LinkedHashSet] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[ArrayList] operator[<] identifier[Bundle] operator[>] identifier[bundles] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[bundles] operator[SEP] identifier[add] operator[SEP] identifier[webApp] operator[SEP] identifier[getBundle] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[bundles] operator[SEP] identifier[addAll] operator[SEP] identifier[wiredBundles] operator[SEP] operator[SEP] identifier[bundleClassLoader] operator[=] Keyword[new] identifier[ResourceDelegatingBundleClassLoader] operator[SEP] identifier[bundles] operator[SEP] operator[SEP] identifier[httpContext] operator[=] Keyword[new] identifier[WebAppWebContainerContext] operator[SEP] identifier[webContainer] operator[SEP] identifier[createDefaultHttpContext] operator[SEP] operator[SEP] , identifier[webApp] operator[SEP] identifier[getRootPath] operator[SEP] operator[SEP] , identifier[webApp] operator[SEP] identifier[getBundle] operator[SEP] operator[SEP] , identifier[webApp] operator[SEP] identifier[getMimeMappings] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[webApp] operator[SEP] identifier[setHttpContext] operator[SEP] identifier[httpContext] operator[SEP] operator[SEP] Keyword[try] { identifier[webContainer] operator[SEP] identifier[setContextParam] operator[SEP] identifier[RegisterWebAppVisitorHS] operator[SEP] identifier[convertInitParams] operator[SEP] identifier[webApp] operator[SEP] identifier[getContextParams] operator[SEP] operator[SEP] operator[SEP] , identifier[httpContext] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[ignore] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] identifier[REGISTRATION_EXCEPTION_SKIPPING] , identifier[ignore] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[webApp] operator[SEP] identifier[getLoginConfigs] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[WebAppLoginConfig] identifier[loginConfig] operator[:] identifier[webApp] operator[SEP] identifier[getLoginConfigs] operator[SEP] operator[SEP] operator[SEP] { identifier[visit] operator[SEP] identifier[loginConfig] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[webApp] operator[SEP] identifier[getSessionTimeout] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { Keyword[try] { identifier[webContainer] operator[SEP] identifier[setSessionTimeout] operator[SEP] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[webApp] operator[SEP] identifier[getSessionTimeout] operator[SEP] operator[SEP] operator[SEP] , identifier[httpContext] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[ignore] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] identifier[REGISTRATION_EXCEPTION_SKIPPING] , identifier[ignore] operator[SEP] operator[SEP] } } identifier[WebAppCookieConfig] identifier[scc] operator[=] identifier[webApp] operator[SEP] identifier[getSessionCookieConfig] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[scc] operator[!=] Other[null] operator[SEP] { identifier[webContainer] operator[SEP] identifier[setSessionCookieConfig] operator[SEP] identifier[scc] operator[SEP] identifier[getDomain] operator[SEP] operator[SEP] , identifier[scc] operator[SEP] identifier[getName] operator[SEP] operator[SEP] , identifier[scc] operator[SEP] identifier[getHttpOnly] operator[SEP] operator[SEP] , identifier[scc] operator[SEP] identifier[getSecure] operator[SEP] operator[SEP] , identifier[scc] operator[SEP] identifier[getPath] operator[SEP] operator[SEP] , identifier[scc] operator[SEP] identifier[getMaxAge] operator[SEP] operator[SEP] , identifier[httpContext] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[WebAppServletContainerInitializer] identifier[servletContainerInitializer] operator[:] identifier[webApp] operator[SEP] identifier[getServletContainerInitializers] operator[SEP] operator[SEP] operator[SEP] { identifier[webContainer] operator[SEP] identifier[registerServletContainerInitializer] operator[SEP] identifier[servletContainerInitializer] operator[SEP] identifier[getServletContainerInitializer] operator[SEP] operator[SEP] , identifier[servletContainerInitializer] operator[SEP] identifier[getClasses] operator[SEP] operator[SEP] , identifier[httpContext] operator[SEP] operator[SEP] } identifier[ServletContainerInitializer] identifier[initializer] operator[=] identifier[dependencyHolder] operator[SEP] identifier[getServletContainerInitializer] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[initializer] operator[!=] Other[null] operator[SEP] { identifier[webContainer] operator[SEP] identifier[registerServletContainerInitializer] operator[SEP] identifier[initializer] , Other[null] , identifier[httpContext] operator[SEP] operator[SEP] } identifier[webContainer] operator[SEP] identifier[setConnectorsAndVirtualHosts] operator[SEP] identifier[webApp] operator[SEP] identifier[getConnectorList] operator[SEP] operator[SEP] , identifier[webApp] operator[SEP] identifier[getVirtualHostList] operator[SEP] operator[SEP] , identifier[httpContext] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[webApp] operator[SEP] identifier[getJettyWebXmlURL] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { identifier[webContainer] operator[SEP] identifier[registerJettyWebXml] operator[SEP] identifier[webApp] operator[SEP] identifier[getJettyWebXmlURL] operator[SEP] operator[SEP] , identifier[httpContext] operator[SEP] operator[SEP] } identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[webContainer] operator[SEP] identifier[begin] operator[SEP] identifier[httpContext] operator[SEP] operator[SEP] identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[try] { Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[welcomeFiles] operator[=] identifier[webApp] operator[SEP] identifier[getWelcomeFiles] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[welcomeFiles] operator[!=] Other[null] operator[&&] identifier[welcomeFiles] operator[SEP] identifier[length] operator[>] Other[0] operator[SEP] { identifier[webContainer] operator[SEP] identifier[registerWelcomeFiles] operator[SEP] identifier[welcomeFiles] , literal[boolean] , identifier[httpContext] operator[SEP] operator[SEP] } } Keyword[catch] operator[SEP] identifier[Exception] identifier[ignore] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] identifier[REGISTRATION_EXCEPTION_SKIPPING] , identifier[ignore] operator[SEP] operator[SEP] } identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[try] { identifier[webContainer] operator[SEP] identifier[registerResources] operator[SEP] literal[String] , literal[String] , identifier[httpContext] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[ignore] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] identifier[REGISTRATION_EXCEPTION_SKIPPING] , identifier[ignore] operator[SEP] operator[SEP] } identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[try] { identifier[webContainer] operator[SEP] identifier[registerJsps] operator[SEP] Keyword[new] identifier[String] operator[SEP] operator[SEP] { literal[String] , literal[String] , literal[String] , literal[String] , literal[String] , literal[String] , literal[String] , literal[String] } , identifier[httpContext] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[UnsupportedOperationException] identifier[ignore] operator[SEP] { identifier[LOG] operator[SEP] identifier[warn] operator[SEP] identifier[ignore] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[ignore] operator[SEP] { identifier[LOG] operator[SEP] identifier[error] operator[SEP] identifier[REGISTRATION_EXCEPTION_SKIPPING] , identifier[ignore] operator[SEP] operator[SEP] } identifier[WebAppJspConfig] identifier[jspConfigDescriptor] operator[=] identifier[webApp] operator[SEP] identifier[getJspConfigDescriptor] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[jspConfigDescriptor] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[WebAppTagLib] identifier[webAppTagLib] operator[:] identifier[jspConfigDescriptor] operator[SEP] identifier[getTagLibConfigs] operator[SEP] operator[SEP] operator[SEP] { identifier[webContainer] operator[SEP] identifier[registerJspConfigTagLibs] operator[SEP] identifier[webAppTagLib] operator[SEP] identifier[getTagLibLocation] operator[SEP] operator[SEP] , identifier[webAppTagLib] operator[SEP] identifier[getTagLibUri] operator[SEP] operator[SEP] , identifier[httpContext] operator[SEP] operator[SEP] } Keyword[for] operator[SEP] identifier[WebAppJspPropertyGroup] identifier[webAppJspPropertyGroup] operator[:] identifier[jspConfigDescriptor] operator[SEP] identifier[getJspPropertyGroups] operator[SEP] operator[SEP] operator[SEP] { identifier[Boolean] identifier[elIgnored] operator[=] identifier[webAppJspPropertyGroup] operator[SEP] identifier[getElIgnored] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[includeCodes] operator[=] identifier[webAppJspPropertyGroup] operator[SEP] identifier[getIncludeCodes] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[includePreludes] operator[=] identifier[webAppJspPropertyGroup] operator[SEP] identifier[getIncludePreludes] operator[SEP] operator[SEP] operator[SEP] identifier[Boolean] identifier[isXml] operator[=] identifier[webAppJspPropertyGroup] operator[SEP] identifier[getIsXml] operator[SEP] operator[SEP] operator[SEP] identifier[Boolean] identifier[scriptingInvalid] operator[=] identifier[webAppJspPropertyGroup] operator[SEP] identifier[getScriptingInvalid] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[urlPatterns] operator[=] identifier[webAppJspPropertyGroup] operator[SEP] identifier[getUrlPatterns] operator[SEP] operator[SEP] operator[SEP] identifier[webContainer] operator[SEP] identifier[registerJspConfigPropertyGroup] operator[SEP] identifier[includeCodes] , identifier[includePreludes] , identifier[urlPatterns] , identifier[elIgnored] , identifier[scriptingInvalid] , identifier[isXml] , identifier[httpContext] operator[SEP] operator[SEP] } } }
@Override protected UserTransaction findUserTransaction() throws Exception { return com.arjuna.ats.jta.UserTransaction.userTransaction(); }
class class_name[name] begin[{] method[findUserTransaction, return_type[type[UserTransaction]], modifier[protected], parameter[]] begin[{] return[call[com.arjuna.ats.jta.UserTransaction.userTransaction, parameter[]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] identifier[UserTransaction] identifier[findUserTransaction] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[return] identifier[com] operator[SEP] identifier[arjuna] operator[SEP] identifier[ats] operator[SEP] identifier[jta] operator[SEP] identifier[UserTransaction] operator[SEP] identifier[userTransaction] operator[SEP] operator[SEP] operator[SEP] }
public IpcLogEntry addTag(String k, String v) { this.additionalTags.put(k, v); return this; }
class class_name[name] begin[{] method[addTag, return_type[type[IpcLogEntry]], modifier[public], parameter[k, v]] begin[{] THIS[member[None.additionalTags]call[None.put, parameter[member[.k], member[.v]]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[IpcLogEntry] identifier[addTag] operator[SEP] identifier[String] identifier[k] , identifier[String] identifier[v] operator[SEP] { Keyword[this] operator[SEP] identifier[additionalTags] operator[SEP] identifier[put] operator[SEP] identifier[k] , identifier[v] operator[SEP] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
public static XMLBuilder parse(String xmlString) throws ParserConfigurationException, SAXException, IOException { return XMLBuilder.parse(xmlString, false, true); }
class class_name[name] begin[{] method[parse, return_type[type[XMLBuilder]], modifier[public static], parameter[xmlString]] begin[{] return[call[XMLBuilder.parse, parameter[member[.xmlString], literal[false], literal[true]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[XMLBuilder] identifier[parse] operator[SEP] identifier[String] identifier[xmlString] operator[SEP] Keyword[throws] identifier[ParserConfigurationException] , identifier[SAXException] , identifier[IOException] { Keyword[return] identifier[XMLBuilder] operator[SEP] identifier[parse] operator[SEP] identifier[xmlString] , literal[boolean] , literal[boolean] operator[SEP] operator[SEP] }
public Vector4f getRow(int row, Vector4f dest) throws IndexOutOfBoundsException { switch (row) { case 0: dest.x = m00; dest.y = m10; dest.z = m20; dest.w = m30; break; case 1: dest.x = m01; dest.y = m11; dest.z = m21; dest.w = m31; break; case 2: dest.x = m02; dest.y = m12; dest.z = m22; dest.w = m32; break; case 3: dest.x = m03; dest.y = m13; dest.z = m23; dest.w = m33; break; default: throw new IndexOutOfBoundsException(); } return dest; }
class class_name[name] begin[{] method[getRow, return_type[type[Vector4f]], modifier[public], parameter[row, dest]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m00, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=y, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m10, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=z, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m20, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=w, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m30, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m01, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=y, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m11, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=z, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m21, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=w, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m31, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=2)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m02, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=y, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m12, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=z, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m22, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=w, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m32, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=3)], statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m03, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=y, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m13, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=z, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m23, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=w, postfix_operators=[], prefix_operators=[], qualifier=dest, selectors=[]), type==, value=MemberReference(member=m33, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), BreakStatement(goto=None, label=None)]), SwitchStatementCase(case=[], statements=[ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=IndexOutOfBoundsException, sub_type=None)), label=None)])], expression=MemberReference(member=row, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None) return[member[.dest]] end[}] END[}]
Keyword[public] identifier[Vector4f] identifier[getRow] operator[SEP] Keyword[int] identifier[row] , identifier[Vector4f] identifier[dest] operator[SEP] Keyword[throws] identifier[IndexOutOfBoundsException] { Keyword[switch] operator[SEP] identifier[row] operator[SEP] { Keyword[case] Other[0] operator[:] identifier[dest] operator[SEP] identifier[x] operator[=] identifier[m00] operator[SEP] identifier[dest] operator[SEP] identifier[y] operator[=] identifier[m10] operator[SEP] identifier[dest] operator[SEP] identifier[z] operator[=] identifier[m20] operator[SEP] identifier[dest] operator[SEP] identifier[w] operator[=] identifier[m30] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[1] operator[:] identifier[dest] operator[SEP] identifier[x] operator[=] identifier[m01] operator[SEP] identifier[dest] operator[SEP] identifier[y] operator[=] identifier[m11] operator[SEP] identifier[dest] operator[SEP] identifier[z] operator[=] identifier[m21] operator[SEP] identifier[dest] operator[SEP] identifier[w] operator[=] identifier[m31] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[2] operator[:] identifier[dest] operator[SEP] identifier[x] operator[=] identifier[m02] operator[SEP] identifier[dest] operator[SEP] identifier[y] operator[=] identifier[m12] operator[SEP] identifier[dest] operator[SEP] identifier[z] operator[=] identifier[m22] operator[SEP] identifier[dest] operator[SEP] identifier[w] operator[=] identifier[m32] operator[SEP] Keyword[break] operator[SEP] Keyword[case] Other[3] operator[:] identifier[dest] operator[SEP] identifier[x] operator[=] identifier[m03] operator[SEP] identifier[dest] operator[SEP] identifier[y] operator[=] identifier[m13] operator[SEP] identifier[dest] operator[SEP] identifier[z] operator[=] identifier[m23] operator[SEP] identifier[dest] operator[SEP] identifier[w] operator[=] identifier[m33] operator[SEP] Keyword[break] operator[SEP] Keyword[default] operator[:] Keyword[throw] Keyword[new] identifier[IndexOutOfBoundsException] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[dest] operator[SEP] }
public static String toValidPackageName(String pkg) { if (pkg == null) { throw new IllegalArgumentException("Package should not be null"); } // Sanitizing package name StringBuilder sb = new StringBuilder(pkg.length()); for (int i = 0; i < pkg.length(); i++) { char c = pkg.charAt(i); // remove dots from the beginning and the end of the package if (c == '.' && (i == 0 || i == pkg.length() - 1)) { continue; } if (c == '.' || Character.isJavaIdentifierPart(c)) { sb.append(c); } } String packageName = sb.toString(); StringBuilder result = new StringBuilder(); String[] tokens = packageName.split("[.]"); for (String token : tokens) { if (result.length() > 0 && result.charAt(result.length() - 1) != '.') { result.append('.'); } if (JLSValidator.isReservedWord(token)) { result.append(token).append('_'); } else if (isNumber(token)) { // skip tokens as numbers and remove the appended '.' if exist if (result.length() > 0) result.deleteCharAt(result.length() - 1); } else { result.append(token); } } return result.toString(); }
class class_name[name] begin[{] method[toValidPackageName, return_type[type[String]], modifier[public static], parameter[pkg]] begin[{] if[binary_operation[member[.pkg], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Package should not be null")], 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[StringBuilder], sb] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=charAt, postfix_operators=[], prefix_operators=[], qualifier=pkg, selectors=[], type_arguments=None), name=c)], modifiers=set(), type=BasicType(dimensions=[], name=char)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='.'), operator===), operandr=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator===), operandr=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=pkg, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-), operator===), operator=||), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[ContinueStatement(goto=None, label=None)])), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='.'), operator===), operandr=MethodInvocation(arguments=[MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isJavaIdentifierPart, postfix_operators=[], prefix_operators=[], qualifier=Character, selectors=[], type_arguments=None), operator=||), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=c, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=sb, 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=pkg, 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) local_variable[type[String], packageName] local_variable[type[StringBuilder], result] local_variable[type[String], tokens] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-)], member=charAt, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='.'), operator=!=), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='.')], member=append, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), label=None)])), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=token, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isReservedWord, postfix_operators=[], prefix_operators=[], qualifier=JLSValidator, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=token, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isNumber, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=token, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), else_statement=None, label=None, then_statement=StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=-)], member=deleteCharAt, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), label=None))])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=token, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=append, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[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)], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=tokens, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=token)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))), label=None) return[call[result.toString, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[toValidPackageName] operator[SEP] identifier[String] identifier[pkg] operator[SEP] { Keyword[if] operator[SEP] identifier[pkg] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] identifier[pkg] operator[SEP] identifier[length] 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[pkg] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[char] identifier[c] operator[=] identifier[pkg] operator[SEP] identifier[charAt] operator[SEP] identifier[i] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[c] operator[==] literal[String] operator[&&] operator[SEP] identifier[i] operator[==] Other[0] operator[||] identifier[i] operator[==] identifier[pkg] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[-] Other[1] operator[SEP] operator[SEP] { Keyword[continue] operator[SEP] } Keyword[if] operator[SEP] identifier[c] operator[==] literal[String] operator[||] identifier[Character] operator[SEP] identifier[isJavaIdentifierPart] operator[SEP] identifier[c] operator[SEP] operator[SEP] { identifier[sb] operator[SEP] identifier[append] operator[SEP] identifier[c] operator[SEP] operator[SEP] } } identifier[String] identifier[packageName] operator[=] identifier[sb] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[StringBuilder] identifier[result] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[tokens] operator[=] identifier[packageName] operator[SEP] identifier[split] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[String] identifier[token] operator[:] identifier[tokens] operator[SEP] { Keyword[if] operator[SEP] identifier[result] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[0] operator[&&] identifier[result] operator[SEP] identifier[charAt] operator[SEP] identifier[result] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[-] Other[1] operator[SEP] operator[!=] literal[String] operator[SEP] { identifier[result] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[JLSValidator] operator[SEP] identifier[isReservedWord] operator[SEP] identifier[token] operator[SEP] operator[SEP] { identifier[result] operator[SEP] identifier[append] operator[SEP] identifier[token] operator[SEP] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[isNumber] operator[SEP] identifier[token] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[result] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] identifier[result] operator[SEP] identifier[deleteCharAt] operator[SEP] identifier[result] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[-] Other[1] operator[SEP] operator[SEP] } Keyword[else] { identifier[result] operator[SEP] identifier[append] operator[SEP] identifier[token] operator[SEP] operator[SEP] } } Keyword[return] identifier[result] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
public static String jpaCascade(PackageImportAdder importAdder, CascadeGetter... cascadeGetters) { if (cascadeGetters == null) { return ""; } // we look for the first non empty conf. // not that it could be a NONE conf => user does not want any cascade. for (CascadeGetter cascadeGetter : cascadeGetters) { if (cascadeGetter != null) { List<Cascade> cascadeConf = cascadeGetter.getCascades(); if (cascadeConf != null && cascadeConf.size() > 0) { List<CascadeType> cascades = convertJpaCascade(cascadeConf); // we could have removed the NONE element, so we check for emptiness. if (!cascades.isEmpty()) { for (CascadeType ct : cascades) { importAdder.addImport("static javax.persistence.CascadeType." + ct.name()); } AttributeBuilder ab = new AttributeBuilder(); ab.add("cascade", convertJpaCascadeToStrings(cascades)); return ab.getAttributes(); } else { return ""; // there was 1 element: NONE => user does not want anything, we bail out. } } } } return ""; }
class class_name[name] begin[{] method[jpaCascade, return_type[type[String]], modifier[public static], parameter[importAdder, cascadeGetters]] begin[{] if[binary_operation[member[.cascadeGetters], ==, literal[null]]] begin[{] return[literal[""]] else begin[{] None end[}] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=cascadeGetter, 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=[], member=getCascades, postfix_operators=[], prefix_operators=[], qualifier=cascadeGetter, selectors=[], type_arguments=None), name=cascadeConf)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=Cascade, sub_type=None))], dimensions=[], name=List, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=cascadeConf, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=BinaryOperation(operandl=MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=cascadeConf, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=>), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=cascadeConf, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=convertJpaCascade, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=cascades)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=CascadeType, sub_type=None))], dimensions=[], name=List, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[], member=isEmpty, postfix_operators=[], prefix_operators=['!'], qualifier=cascades, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=""), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="static javax.persistence.CascadeType."), operandr=MethodInvocation(arguments=[], member=name, postfix_operators=[], prefix_operators=[], qualifier=ct, selectors=[], type_arguments=None), operator=+)], member=addImport, postfix_operators=[], prefix_operators=[], qualifier=importAdder, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MemberReference(member=cascades, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=ct)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CascadeType, sub_type=None))), label=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=None, dimensions=None, name=AttributeBuilder, sub_type=None)), name=ab)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=AttributeBuilder, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="cascade"), MethodInvocation(arguments=[MemberReference(member=cascades, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=convertJpaCascadeToStrings, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=add, postfix_operators=[], prefix_operators=[], qualifier=ab, selectors=[], type_arguments=None), label=None), ReturnStatement(expression=MethodInvocation(arguments=[], member=getAttributes, postfix_operators=[], prefix_operators=[], qualifier=ab, selectors=[], type_arguments=None), label=None)]))]))]))]), control=EnhancedForControl(iterable=MemberReference(member=cascadeGetters, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=cascadeGetter)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CascadeGetter, sub_type=None))), label=None) return[literal[""]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[jpaCascade] operator[SEP] identifier[PackageImportAdder] identifier[importAdder] , identifier[CascadeGetter] operator[...] identifier[cascadeGetters] operator[SEP] { Keyword[if] operator[SEP] identifier[cascadeGetters] operator[==] Other[null] operator[SEP] { Keyword[return] literal[String] operator[SEP] } Keyword[for] operator[SEP] identifier[CascadeGetter] identifier[cascadeGetter] operator[:] identifier[cascadeGetters] operator[SEP] { Keyword[if] operator[SEP] identifier[cascadeGetter] operator[!=] Other[null] operator[SEP] { identifier[List] operator[<] identifier[Cascade] operator[>] identifier[cascadeConf] operator[=] identifier[cascadeGetter] operator[SEP] identifier[getCascades] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[cascadeConf] operator[!=] Other[null] operator[&&] identifier[cascadeConf] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { identifier[List] operator[<] identifier[CascadeType] operator[>] identifier[cascades] operator[=] identifier[convertJpaCascade] operator[SEP] identifier[cascadeConf] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[cascades] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[CascadeType] identifier[ct] operator[:] identifier[cascades] operator[SEP] { identifier[importAdder] operator[SEP] identifier[addImport] operator[SEP] literal[String] operator[+] identifier[ct] operator[SEP] identifier[name] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[AttributeBuilder] identifier[ab] operator[=] Keyword[new] identifier[AttributeBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[ab] operator[SEP] identifier[add] operator[SEP] literal[String] , identifier[convertJpaCascadeToStrings] operator[SEP] identifier[cascades] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[ab] operator[SEP] identifier[getAttributes] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { Keyword[return] literal[String] operator[SEP] } } } } Keyword[return] literal[String] operator[SEP] }
@SuppressWarnings("unchecked") public static <T> T parse(Reader reader, Class<T> type, Converter<Object, Map<String, Object>> mc) throws IOException, ParseException { return (T) parse(reader, new JSONVisitor(type, new JSONValue(mc), mc), JSONToken.ANY); }
class class_name[name] begin[{] method[parse, return_type[type[T]], modifier[public static], parameter[reader, type, mc]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=reader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassCreator(arguments=[MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassCreator(arguments=[MemberReference(member=mc, 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=JSONValue, sub_type=None)), MemberReference(member=mc, 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=JSONVisitor, sub_type=None)), MemberReference(member=ANY, postfix_operators=[], prefix_operators=[], qualifier=JSONToken, selectors=[])], member=parse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=T, sub_type=None))] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[parse] operator[SEP] identifier[Reader] identifier[reader] , identifier[Class] operator[<] identifier[T] operator[>] identifier[type] , identifier[Converter] operator[<] identifier[Object] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] operator[>] identifier[mc] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ParseException] { Keyword[return] operator[SEP] identifier[T] operator[SEP] identifier[parse] operator[SEP] identifier[reader] , Keyword[new] identifier[JSONVisitor] operator[SEP] identifier[type] , Keyword[new] identifier[JSONValue] operator[SEP] identifier[mc] operator[SEP] , identifier[mc] operator[SEP] , identifier[JSONToken] operator[SEP] identifier[ANY] operator[SEP] operator[SEP] }
public Class loadScriptByName(String scriptName) throws ResourceException, ScriptException { URLConnection conn = rc.getResourceConnection(scriptName); String path = conn.getURL().toExternalForm(); ScriptCacheEntry entry = scriptCache.get(path); Class clazz = null; if (entry != null) clazz = entry.scriptClass; try { if (isSourceNewer(entry)) { try { String encoding = conn.getContentEncoding() != null ? conn.getContentEncoding() : config.getSourceEncoding(); String content = IOGroovyMethods.getText(conn.getInputStream(), encoding); clazz = groovyLoader.parseClass(content, path); } catch (IOException e) { throw new ResourceException(e); } } } finally { forceClose(conn); } return clazz; }
class class_name[name] begin[{] method[loadScriptByName, return_type[type[Class]], modifier[public], parameter[scriptName]] begin[{] local_variable[type[URLConnection], conn] local_variable[type[String], path] local_variable[type[ScriptCacheEntry], entry] local_variable[type[Class], clazz] if[binary_operation[member[.entry], !=, literal[null]]] begin[{] assign[member[.clazz], member[entry.scriptClass]] else begin[{] None end[}] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=entry, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isSourceNewer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getContentEncoding, postfix_operators=[], prefix_operators=[], qualifier=conn, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), if_false=MethodInvocation(arguments=[], member=getSourceEncoding, postfix_operators=[], prefix_operators=[], qualifier=config, selectors=[], type_arguments=None), if_true=MethodInvocation(arguments=[], member=getContentEncoding, postfix_operators=[], prefix_operators=[], qualifier=conn, selectors=[], type_arguments=None)), name=encoding)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getInputStream, postfix_operators=[], prefix_operators=[], qualifier=conn, selectors=[], type_arguments=None), MemberReference(member=encoding, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getText, postfix_operators=[], prefix_operators=[], qualifier=IOGroovyMethods, selectors=[], type_arguments=None), name=content)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=clazz, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=content, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=path, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=parseClass, postfix_operators=[], prefix_operators=[], qualifier=groovyLoader, 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=ResourceException, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['IOException']))], finally_block=None, label=None, resources=None)]))], catches=None, finally_block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=conn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=forceClose, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], label=None, resources=None) return[member[.clazz]] end[}] END[}]
Keyword[public] identifier[Class] identifier[loadScriptByName] operator[SEP] identifier[String] identifier[scriptName] operator[SEP] Keyword[throws] identifier[ResourceException] , identifier[ScriptException] { identifier[URLConnection] identifier[conn] operator[=] identifier[rc] operator[SEP] identifier[getResourceConnection] operator[SEP] identifier[scriptName] operator[SEP] operator[SEP] identifier[String] identifier[path] operator[=] identifier[conn] operator[SEP] identifier[getURL] operator[SEP] operator[SEP] operator[SEP] identifier[toExternalForm] operator[SEP] operator[SEP] operator[SEP] identifier[ScriptCacheEntry] identifier[entry] operator[=] identifier[scriptCache] operator[SEP] identifier[get] operator[SEP] identifier[path] operator[SEP] operator[SEP] identifier[Class] identifier[clazz] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[entry] operator[!=] Other[null] operator[SEP] identifier[clazz] operator[=] identifier[entry] operator[SEP] identifier[scriptClass] operator[SEP] Keyword[try] { Keyword[if] operator[SEP] identifier[isSourceNewer] operator[SEP] identifier[entry] operator[SEP] operator[SEP] { Keyword[try] { identifier[String] identifier[encoding] operator[=] identifier[conn] operator[SEP] identifier[getContentEncoding] operator[SEP] operator[SEP] operator[!=] Other[null] operator[?] identifier[conn] operator[SEP] identifier[getContentEncoding] operator[SEP] operator[SEP] operator[:] identifier[config] operator[SEP] identifier[getSourceEncoding] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[content] operator[=] identifier[IOGroovyMethods] operator[SEP] identifier[getText] operator[SEP] identifier[conn] operator[SEP] identifier[getInputStream] operator[SEP] operator[SEP] , identifier[encoding] operator[SEP] operator[SEP] identifier[clazz] operator[=] identifier[groovyLoader] operator[SEP] identifier[parseClass] operator[SEP] identifier[content] , identifier[path] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[IOException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[ResourceException] operator[SEP] identifier[e] operator[SEP] operator[SEP] } } } Keyword[finally] { identifier[forceClose] operator[SEP] identifier[conn] operator[SEP] operator[SEP] } Keyword[return] identifier[clazz] operator[SEP] }
private static void fillZoneStrings(String localeId, String[][] result) { for (int i = 0; i < result.length; i++) { fillZoneStringNames(localeId, result[i]); } }
class class_name[name] begin[{] method[fillZoneStrings, return_type[void], modifier[private static], parameter[localeId, result]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=localeId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))])], member=fillZoneStringNames, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], 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=result, 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) end[}] END[}]
Keyword[private] Keyword[static] Keyword[void] identifier[fillZoneStrings] operator[SEP] identifier[String] identifier[localeId] , identifier[String] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[result] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[result] operator[SEP] identifier[length] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[fillZoneStringNames] operator[SEP] identifier[localeId] , identifier[result] operator[SEP] identifier[i] operator[SEP] operator[SEP] operator[SEP] } }
public void setPoolSize(int poolSize) { // Assert.isTrue(poolSize > 0, "'poolSize' must be 1 or higher"); this.poolSize = poolSize; if (this.scheduledExecutor instanceof ScheduledThreadPoolExecutor) { ((ScheduledThreadPoolExecutor) this.scheduledExecutor).setCorePoolSize(poolSize); } }
class class_name[name] begin[{] method[setPoolSize, return_type[void], modifier[public], parameter[poolSize]] begin[{] assign[THIS[member[None.poolSize]], member[.poolSize]] if[binary_operation[THIS[member[None.scheduledExecutor]], instanceof, type[ScheduledThreadPoolExecutor]]] begin[{] Cast(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=scheduledExecutor, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None)]), type=ReferenceType(arguments=None, dimensions=[], name=ScheduledThreadPoolExecutor, sub_type=None)) else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[setPoolSize] operator[SEP] Keyword[int] identifier[poolSize] operator[SEP] { Keyword[this] operator[SEP] identifier[poolSize] operator[=] identifier[poolSize] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[scheduledExecutor] Keyword[instanceof] identifier[ScheduledThreadPoolExecutor] operator[SEP] { operator[SEP] operator[SEP] identifier[ScheduledThreadPoolExecutor] operator[SEP] Keyword[this] operator[SEP] identifier[scheduledExecutor] operator[SEP] operator[SEP] identifier[setCorePoolSize] operator[SEP] identifier[poolSize] operator[SEP] operator[SEP] } }
@Subscribe @SneakyThrows public final synchronized void renew(final DataSourceChangedEvent dataSourceChangedEvent) { dataSource.close(); dataSource = new ShardingDataSource(DataSourceConverter.getDataSourceMap(dataSourceChangedEvent.getDataSourceConfigurations()), dataSource.getShardingContext().getShardingRule(), dataSource.getShardingContext().getShardingProperties().getProps()); }
class class_name[name] begin[{] method[renew, return_type[void], modifier[synchronized final public], parameter[dataSourceChangedEvent]] begin[{] call[dataSource.close, parameter[]] assign[member[.dataSource], ClassCreator(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getDataSourceConfigurations, postfix_operators=[], prefix_operators=[], qualifier=dataSourceChangedEvent, selectors=[], type_arguments=None)], member=getDataSourceMap, postfix_operators=[], prefix_operators=[], qualifier=DataSourceConverter, selectors=[], type_arguments=None), MethodInvocation(arguments=[], member=getShardingContext, postfix_operators=[], prefix_operators=[], qualifier=dataSource, selectors=[MethodInvocation(arguments=[], member=getShardingRule, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), MethodInvocation(arguments=[], member=getShardingContext, postfix_operators=[], prefix_operators=[], qualifier=dataSource, selectors=[MethodInvocation(arguments=[], member=getShardingProperties, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None), MethodInvocation(arguments=[], member=getProps, 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=ShardingDataSource, sub_type=None))] end[}] END[}]
annotation[@] identifier[Subscribe] annotation[@] identifier[SneakyThrows] Keyword[public] Keyword[final] Keyword[synchronized] Keyword[void] identifier[renew] operator[SEP] Keyword[final] identifier[DataSourceChangedEvent] identifier[dataSourceChangedEvent] operator[SEP] { identifier[dataSource] operator[SEP] identifier[close] operator[SEP] operator[SEP] operator[SEP] identifier[dataSource] operator[=] Keyword[new] identifier[ShardingDataSource] operator[SEP] identifier[DataSourceConverter] operator[SEP] identifier[getDataSourceMap] operator[SEP] identifier[dataSourceChangedEvent] operator[SEP] identifier[getDataSourceConfigurations] operator[SEP] operator[SEP] operator[SEP] , identifier[dataSource] operator[SEP] identifier[getShardingContext] operator[SEP] operator[SEP] operator[SEP] identifier[getShardingRule] operator[SEP] operator[SEP] , identifier[dataSource] operator[SEP] identifier[getShardingContext] operator[SEP] operator[SEP] operator[SEP] identifier[getShardingProperties] operator[SEP] operator[SEP] operator[SEP] identifier[getProps] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
@CheckReturnValue @SchedulerSupport(SchedulerSupport.NONE) public final Completable repeatWhen(Function<? super Flowable<Object>, ? extends Publisher<?>> handler) { return fromPublisher(toFlowable().repeatWhen(handler)); }
class class_name[name] begin[{] method[repeatWhen, return_type[type[Completable]], modifier[final public], parameter[handler]] begin[{] return[call[.fromPublisher, parameter[call[.toFlowable, parameter[]]]]] end[}] END[}]
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[public] Keyword[final] identifier[Completable] identifier[repeatWhen] operator[SEP] identifier[Function] operator[<] operator[?] Keyword[super] identifier[Flowable] operator[<] identifier[Object] operator[>] , operator[?] Keyword[extends] identifier[Publisher] operator[<] operator[?] operator[>] operator[>] identifier[handler] operator[SEP] { Keyword[return] identifier[fromPublisher] operator[SEP] identifier[toFlowable] operator[SEP] operator[SEP] operator[SEP] identifier[repeatWhen] operator[SEP] identifier[handler] operator[SEP] operator[SEP] operator[SEP] }
protected Encrypter getEncrypter(final Object samlObject, final SamlRegisteredService service, final SamlRegisteredServiceServiceProviderMetadataFacade adaptor, final KeyEncryptionParameters keyEncParams, final DataEncryptionParameters dataEncParams) { val encrypter = new Encrypter(dataEncParams, keyEncParams); encrypter.setKeyPlacement(Encrypter.KeyPlacement.PEER); return encrypter; }
class class_name[name] begin[{] method[getEncrypter, return_type[type[Encrypter]], modifier[protected], parameter[samlObject, service, adaptor, keyEncParams, dataEncParams]] begin[{] local_variable[type[val], encrypter] call[encrypter.setKeyPlacement, parameter[member[Encrypter.KeyPlacement.PEER]]] return[member[.encrypter]] end[}] END[}]
Keyword[protected] identifier[Encrypter] identifier[getEncrypter] operator[SEP] Keyword[final] identifier[Object] identifier[samlObject] , Keyword[final] identifier[SamlRegisteredService] identifier[service] , Keyword[final] identifier[SamlRegisteredServiceServiceProviderMetadataFacade] identifier[adaptor] , Keyword[final] identifier[KeyEncryptionParameters] identifier[keyEncParams] , Keyword[final] identifier[DataEncryptionParameters] identifier[dataEncParams] operator[SEP] { identifier[val] identifier[encrypter] operator[=] Keyword[new] identifier[Encrypter] operator[SEP] identifier[dataEncParams] , identifier[keyEncParams] operator[SEP] operator[SEP] identifier[encrypter] operator[SEP] identifier[setKeyPlacement] operator[SEP] identifier[Encrypter] operator[SEP] identifier[KeyPlacement] operator[SEP] identifier[PEER] operator[SEP] operator[SEP] Keyword[return] identifier[encrypter] operator[SEP] }
@SuppressWarnings("unchecked") public static <T> Ix<T> concat(Iterable<? extends T> source1, Iterable<? extends T> source2) { return concatArray(nullCheck(source1, "source1 is null"), nullCheck(source2, "source2 is null")); }
class class_name[name] begin[{] method[concat, return_type[type[Ix]], modifier[public static], parameter[source1, source2]] begin[{] return[call[.concatArray, parameter[call[.nullCheck, parameter[member[.source1], literal["source1 is null"]]], call[.nullCheck, parameter[member[.source2], literal["source2 is null"]]]]]] end[}] END[}]
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Ix] operator[<] identifier[T] operator[>] identifier[concat] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[source1] , identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[source2] operator[SEP] { Keyword[return] identifier[concatArray] operator[SEP] identifier[nullCheck] operator[SEP] identifier[source1] , literal[String] operator[SEP] , identifier[nullCheck] operator[SEP] identifier[source2] , literal[String] operator[SEP] operator[SEP] operator[SEP] }
@Override public long blocksAccessed() { double rpb = (double) (Buffer.BUFFER_SIZE / RecordPage.slotSize(p.schema())); return (int) Math.ceil(p.recordsOutput() / rpb); }
class class_name[name] begin[{] method[blocksAccessed, return_type[type[long]], modifier[public], parameter[]] begin[{] local_variable[type[double], rpb] return[Cast(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[], member=recordsOutput, postfix_operators=[], prefix_operators=[], qualifier=p, selectors=[], type_arguments=None), operandr=MemberReference(member=rpb, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=/)], member=ceil, postfix_operators=[], prefix_operators=[], qualifier=Math, selectors=[], type_arguments=None), type=BasicType(dimensions=[], name=int))] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[blocksAccessed] operator[SEP] operator[SEP] { Keyword[double] identifier[rpb] operator[=] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[Buffer] operator[SEP] identifier[BUFFER_SIZE] operator[/] identifier[RecordPage] operator[SEP] identifier[slotSize] operator[SEP] identifier[p] operator[SEP] identifier[schema] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[int] operator[SEP] identifier[Math] operator[SEP] identifier[ceil] operator[SEP] identifier[p] operator[SEP] identifier[recordsOutput] operator[SEP] operator[SEP] operator[/] identifier[rpb] operator[SEP] operator[SEP] }
public void setElasticGpuAssociations(java.util.Collection<ElasticGpuAssociation> elasticGpuAssociations) { if (elasticGpuAssociations == null) { this.elasticGpuAssociations = null; return; } this.elasticGpuAssociations = new com.amazonaws.internal.SdkInternalList<ElasticGpuAssociation>(elasticGpuAssociations); }
class class_name[name] begin[{] method[setElasticGpuAssociations, return_type[void], modifier[public], parameter[elasticGpuAssociations]] begin[{] if[binary_operation[member[.elasticGpuAssociations], ==, literal[null]]] begin[{] assign[THIS[member[None.elasticGpuAssociations]], literal[null]] return[None] else begin[{] None end[}] assign[THIS[member[None.elasticGpuAssociations]], ClassCreator(arguments=[MemberReference(member=elasticGpuAssociations, 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=ElasticGpuAssociation, sub_type=None))], dimensions=None, name=SdkInternalList, sub_type=None)))))] end[}] END[}]
Keyword[public] Keyword[void] identifier[setElasticGpuAssociations] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[ElasticGpuAssociation] operator[>] identifier[elasticGpuAssociations] operator[SEP] { Keyword[if] operator[SEP] identifier[elasticGpuAssociations] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[elasticGpuAssociations] operator[=] Other[null] operator[SEP] Keyword[return] operator[SEP] } Keyword[this] operator[SEP] identifier[elasticGpuAssociations] operator[=] Keyword[new] identifier[com] operator[SEP] identifier[amazonaws] operator[SEP] identifier[internal] operator[SEP] identifier[SdkInternalList] operator[<] identifier[ElasticGpuAssociation] operator[>] operator[SEP] identifier[elasticGpuAssociations] operator[SEP] operator[SEP] }
static public void recursiveCreateDirectory(FTPClient ftpClient, String path) throws IOException { logger.info("Create Directory: {}", path); int createDirectoryStatus = ftpClient.mkd(path); // makeDirectory... logger.debug("Create Directory Status: {}", createDirectoryStatus); if (createDirectoryStatus == FTP_FILE_NOT_FOUND) { int sepIdx = path.lastIndexOf('/'); if (sepIdx > -1) { String parentPath = path.substring(0, sepIdx); recursiveCreateDirectory(ftpClient, parentPath); logger.debug("2'nd CreateD irectory: {}", path); createDirectoryStatus = ftpClient.mkd(path); // makeDirectory... logger.debug("2'nd Create Directory Status: {}", createDirectoryStatus); } } }
class class_name[name] begin[{] method[recursiveCreateDirectory, return_type[void], modifier[public static], parameter[ftpClient, path]] begin[{] call[logger.info, parameter[literal["Create Directory: {}"], member[.path]]] local_variable[type[int], createDirectoryStatus] call[logger.debug, parameter[literal["Create Directory Status: {}"], member[.createDirectoryStatus]]] if[binary_operation[member[.createDirectoryStatus], ==, member[.FTP_FILE_NOT_FOUND]]] begin[{] local_variable[type[int], sepIdx] if[binary_operation[member[.sepIdx], >, literal[1]]] begin[{] local_variable[type[String], parentPath] call[.recursiveCreateDirectory, parameter[member[.ftpClient], member[.parentPath]]] call[logger.debug, parameter[literal["2'nd CreateD irectory: {}"], member[.path]]] assign[member[.createDirectoryStatus], call[ftpClient.mkd, parameter[member[.path]]]] call[logger.debug, parameter[literal["2'nd Create Directory Status: {}"], member[.createDirectoryStatus]]] else begin[{] None end[}] else begin[{] None end[}] end[}] END[}]
Keyword[static] Keyword[public] Keyword[void] identifier[recursiveCreateDirectory] operator[SEP] identifier[FTPClient] identifier[ftpClient] , identifier[String] identifier[path] operator[SEP] Keyword[throws] identifier[IOException] { identifier[logger] operator[SEP] identifier[info] operator[SEP] literal[String] , identifier[path] operator[SEP] operator[SEP] Keyword[int] identifier[createDirectoryStatus] operator[=] identifier[ftpClient] operator[SEP] identifier[mkd] operator[SEP] identifier[path] operator[SEP] operator[SEP] identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[createDirectoryStatus] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[createDirectoryStatus] operator[==] identifier[FTP_FILE_NOT_FOUND] operator[SEP] { Keyword[int] identifier[sepIdx] operator[=] identifier[path] operator[SEP] identifier[lastIndexOf] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[sepIdx] operator[>] operator[-] Other[1] operator[SEP] { identifier[String] identifier[parentPath] operator[=] identifier[path] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[sepIdx] operator[SEP] operator[SEP] identifier[recursiveCreateDirectory] operator[SEP] identifier[ftpClient] , identifier[parentPath] operator[SEP] operator[SEP] identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[path] operator[SEP] operator[SEP] identifier[createDirectoryStatus] operator[=] identifier[ftpClient] operator[SEP] identifier[mkd] operator[SEP] identifier[path] operator[SEP] operator[SEP] identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[createDirectoryStatus] operator[SEP] operator[SEP] } } }
public StructuredQueryDefinition andNot(StructuredQueryDefinition positive, StructuredQueryDefinition negative) { checkQuery(positive); checkQuery(negative); return new AndNotQuery(positive, negative); }
class class_name[name] begin[{] method[andNot, return_type[type[StructuredQueryDefinition]], modifier[public], parameter[positive, negative]] begin[{] call[.checkQuery, parameter[member[.positive]]] call[.checkQuery, parameter[member[.negative]]] return[ClassCreator(arguments=[MemberReference(member=positive, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=negative, 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=AndNotQuery, sub_type=None))] end[}] END[}]
Keyword[public] identifier[StructuredQueryDefinition] identifier[andNot] operator[SEP] identifier[StructuredQueryDefinition] identifier[positive] , identifier[StructuredQueryDefinition] identifier[negative] operator[SEP] { identifier[checkQuery] operator[SEP] identifier[positive] operator[SEP] operator[SEP] identifier[checkQuery] operator[SEP] identifier[negative] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[AndNotQuery] operator[SEP] identifier[positive] , identifier[negative] operator[SEP] operator[SEP] }
protected String digestEncodedPassword(final String encodedPassword, final Map<String, Object> values) { val hashService = new DefaultHashService(); if (StringUtils.isNotBlank(this.staticSalt)) { hashService.setPrivateSalt(ByteSource.Util.bytes(this.staticSalt)); } hashService.setHashAlgorithmName(this.algorithmName); if (values.containsKey(this.numberOfIterationsFieldName)) { val longAsStr = values.get(this.numberOfIterationsFieldName).toString(); hashService.setHashIterations(Integer.parseInt(longAsStr)); } else { hashService.setHashIterations(this.numberOfIterations); } if (!values.containsKey(this.saltFieldName)) { throw new IllegalArgumentException("Specified field name for salt does not exist in the results"); } val dynaSalt = values.get(this.saltFieldName).toString(); val request = new HashRequest.Builder() .setSalt(dynaSalt) .setSource(encodedPassword) .build(); return hashService.computeHash(request).toHex(); }
class class_name[name] begin[{] method[digestEncodedPassword, return_type[type[String]], modifier[protected], parameter[encodedPassword, values]] begin[{] local_variable[type[val], hashService] if[call[StringUtils.isNotBlank, parameter[THIS[member[None.staticSalt]]]]] begin[{] call[hashService.setPrivateSalt, parameter[call[ByteSource.Util.bytes, parameter[THIS[member[None.staticSalt]]]]]] else begin[{] None end[}] call[hashService.setHashAlgorithmName, parameter[THIS[member[None.algorithmName]]]] if[call[values.containsKey, parameter[THIS[member[None.numberOfIterationsFieldName]]]]] begin[{] local_variable[type[val], longAsStr] call[hashService.setHashIterations, parameter[call[Integer.parseInt, parameter[member[.longAsStr]]]]] else begin[{] call[hashService.setHashIterations, parameter[THIS[member[None.numberOfIterations]]]] end[}] if[call[values.containsKey, parameter[THIS[member[None.saltFieldName]]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Specified field name for salt does not exist in the results")], 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[val], dynaSalt] local_variable[type[val], request] return[call[hashService.computeHash, parameter[member[.request]]]] end[}] END[}]
Keyword[protected] identifier[String] identifier[digestEncodedPassword] operator[SEP] Keyword[final] identifier[String] identifier[encodedPassword] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[values] operator[SEP] { identifier[val] identifier[hashService] operator[=] Keyword[new] identifier[DefaultHashService] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isNotBlank] operator[SEP] Keyword[this] operator[SEP] identifier[staticSalt] operator[SEP] operator[SEP] { identifier[hashService] operator[SEP] identifier[setPrivateSalt] operator[SEP] identifier[ByteSource] operator[SEP] identifier[Util] operator[SEP] identifier[bytes] operator[SEP] Keyword[this] operator[SEP] identifier[staticSalt] operator[SEP] operator[SEP] operator[SEP] } identifier[hashService] operator[SEP] identifier[setHashAlgorithmName] operator[SEP] Keyword[this] operator[SEP] identifier[algorithmName] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[values] operator[SEP] identifier[containsKey] operator[SEP] Keyword[this] operator[SEP] identifier[numberOfIterationsFieldName] operator[SEP] operator[SEP] { identifier[val] identifier[longAsStr] operator[=] identifier[values] operator[SEP] identifier[get] operator[SEP] Keyword[this] operator[SEP] identifier[numberOfIterationsFieldName] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[hashService] operator[SEP] identifier[setHashIterations] operator[SEP] identifier[Integer] operator[SEP] identifier[parseInt] operator[SEP] identifier[longAsStr] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] { identifier[hashService] operator[SEP] identifier[setHashIterations] operator[SEP] Keyword[this] operator[SEP] identifier[numberOfIterations] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[values] operator[SEP] identifier[containsKey] operator[SEP] Keyword[this] operator[SEP] identifier[saltFieldName] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[val] identifier[dynaSalt] operator[=] identifier[values] operator[SEP] identifier[get] operator[SEP] Keyword[this] operator[SEP] identifier[saltFieldName] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] identifier[val] identifier[request] operator[=] Keyword[new] identifier[HashRequest] operator[SEP] identifier[Builder] operator[SEP] operator[SEP] operator[SEP] identifier[setSalt] operator[SEP] identifier[dynaSalt] operator[SEP] operator[SEP] identifier[setSource] operator[SEP] identifier[encodedPassword] operator[SEP] operator[SEP] identifier[build] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[hashService] operator[SEP] identifier[computeHash] operator[SEP] identifier[request] operator[SEP] operator[SEP] identifier[toHex] operator[SEP] operator[SEP] operator[SEP] }
public static FileUtils.FileCopyResult unzip(InputStream in, File outDir) throws IOException { try (final ZipInputStream zipIn = new ZipInputStream(in)) { final FileUtils.FileCopyResult result = new FileUtils.FileCopyResult(); ZipEntry entry; while ((entry = zipIn.getNextEntry()) != null) { final File file = new File(outDir, entry.getName()); validateZipOutputFile("", file, outDir); NativeIO.chunkedCopy(zipIn, file); result.addFile(file); zipIn.closeEntry(); } return result; } }
class class_name[name] begin[{] method[unzip, return_type[type[FileUtils]], modifier[public static], parameter[in, outDir]] begin[{] TryStatement(block=[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=FileUtils, sub_type=ReferenceType(arguments=None, dimensions=None, name=FileCopyResult, sub_type=None))), name=result)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=FileUtils, sub_type=ReferenceType(arguments=None, dimensions=None, name=FileCopyResult, sub_type=None))), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=None, name=entry)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ZipEntry, sub_type=None)), WhileStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=outDir, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=entry, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=File, sub_type=None)), name=file)], modifiers={'final'}, type=ReferenceType(arguments=None, dimensions=[], name=File, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=""), MemberReference(member=file, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=outDir, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=validateZipOutputFile, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=zipIn, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=file, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=chunkedCopy, postfix_operators=[], prefix_operators=[], qualifier=NativeIO, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=file, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=addFile, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=closeEntry, postfix_operators=[], prefix_operators=[], qualifier=zipIn, selectors=[], type_arguments=None), label=None)]), condition=BinaryOperation(operandl=Assignment(expressionl=MemberReference(member=entry, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getNextEntry, postfix_operators=[], prefix_operators=[], qualifier=zipIn, selectors=[], type_arguments=None)), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), label=None), ReturnStatement(expression=MemberReference(member=result, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)], catches=None, finally_block=None, label=None, resources=[TryResource(annotations=[], modifiers={'final'}, name=zipIn, type=ReferenceType(arguments=None, dimensions=[], name=ZipInputStream, sub_type=None), value=ClassCreator(arguments=[MemberReference(member=in, 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=ZipInputStream, sub_type=None)))]) end[}] END[}]
Keyword[public] Keyword[static] identifier[FileUtils] operator[SEP] identifier[FileCopyResult] identifier[unzip] operator[SEP] identifier[InputStream] identifier[in] , identifier[File] identifier[outDir] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] operator[SEP] Keyword[final] identifier[ZipInputStream] identifier[zipIn] operator[=] Keyword[new] identifier[ZipInputStream] operator[SEP] identifier[in] operator[SEP] operator[SEP] { Keyword[final] identifier[FileUtils] operator[SEP] identifier[FileCopyResult] identifier[result] operator[=] Keyword[new] identifier[FileUtils] operator[SEP] identifier[FileCopyResult] operator[SEP] operator[SEP] operator[SEP] identifier[ZipEntry] identifier[entry] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[entry] operator[=] identifier[zipIn] operator[SEP] identifier[getNextEntry] operator[SEP] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { Keyword[final] identifier[File] identifier[file] operator[=] Keyword[new] identifier[File] operator[SEP] identifier[outDir] , identifier[entry] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[validateZipOutputFile] operator[SEP] literal[String] , identifier[file] , identifier[outDir] operator[SEP] operator[SEP] identifier[NativeIO] operator[SEP] identifier[chunkedCopy] operator[SEP] identifier[zipIn] , identifier[file] operator[SEP] operator[SEP] identifier[result] operator[SEP] identifier[addFile] operator[SEP] identifier[file] operator[SEP] operator[SEP] identifier[zipIn] operator[SEP] identifier[closeEntry] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[result] operator[SEP] } }
public void setProductListingIds(java.util.Collection<String> productListingIds) { if (productListingIds == null) { this.productListingIds = null; return; } this.productListingIds = new java.util.ArrayList<String>(productListingIds); }
class class_name[name] begin[{] method[setProductListingIds, return_type[void], modifier[public], parameter[productListingIds]] begin[{] if[binary_operation[member[.productListingIds], ==, literal[null]]] begin[{] assign[THIS[member[None.productListingIds]], literal[null]] return[None] else begin[{] None end[}] assign[THIS[member[None.productListingIds]], ClassCreator(arguments=[MemberReference(member=productListingIds, 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=java, sub_type=ReferenceType(arguments=None, dimensions=None, name=util, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None))], dimensions=None, name=ArrayList, sub_type=None))))] end[}] END[}]
Keyword[public] Keyword[void] identifier[setProductListingIds] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[productListingIds] operator[SEP] { Keyword[if] operator[SEP] identifier[productListingIds] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[productListingIds] operator[=] Other[null] operator[SEP] Keyword[return] operator[SEP] } Keyword[this] operator[SEP] identifier[productListingIds] operator[=] Keyword[new] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[ArrayList] operator[<] identifier[String] operator[>] operator[SEP] identifier[productListingIds] operator[SEP] operator[SEP] }
public static String encodeX(byte[] a) { // check input if (a == null || a.length == 0) { return "X''"; } char[] out = new char[a.length * 2 + 3]; int i = 2; for (int j = 0; j < a.length; j++) { out[i++] = xdigits[(a[j] >> 4) & 0x0F]; out[i++] = xdigits[a[j] & 0x0F]; } out[0] = 'X'; out[1] = '\''; out[i] = '\''; return new String(out); }
class class_name[name] begin[{] method[encodeX, return_type[type[String]], modifier[public static], parameter[a]] begin[{] if[binary_operation[binary_operation[member[.a], ==, literal[null]], ||, binary_operation[member[a.length], ==, literal[0]]]] begin[{] return[literal["X''"]] else begin[{] None end[}] local_variable[type[char], out] local_variable[type[int], i] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=out, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=MemberReference(member=xdigits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=4), operator=>>), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0x0F), operator=&))])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=out, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=i, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]))]), type==, value=MemberReference(member=xdigits, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=BinaryOperation(operandl=MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0x0F), operator=&))])), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=a, selectors=[]), operator=<), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), name=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[])]), label=None) assign[member[.out], literal['X']] assign[member[.out], literal['\'']] assign[member[.out], literal['\'']] return[ClassCreator(arguments=[MemberReference(member=out, 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=String, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[encodeX] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[a] operator[SEP] { Keyword[if] operator[SEP] identifier[a] operator[==] Other[null] operator[||] identifier[a] operator[SEP] identifier[length] operator[==] Other[0] operator[SEP] { Keyword[return] literal[String] operator[SEP] } Keyword[char] operator[SEP] operator[SEP] identifier[out] operator[=] Keyword[new] Keyword[char] operator[SEP] identifier[a] operator[SEP] identifier[length] operator[*] Other[2] operator[+] Other[3] operator[SEP] operator[SEP] Keyword[int] identifier[i] operator[=] Other[2] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<] identifier[a] operator[SEP] identifier[length] operator[SEP] identifier[j] operator[++] operator[SEP] { identifier[out] operator[SEP] identifier[i] operator[++] operator[SEP] operator[=] identifier[xdigits] operator[SEP] operator[SEP] identifier[a] operator[SEP] identifier[j] operator[SEP] operator[>] operator[>] Other[4] operator[SEP] operator[&] literal[Integer] operator[SEP] operator[SEP] identifier[out] operator[SEP] identifier[i] operator[++] operator[SEP] operator[=] identifier[xdigits] operator[SEP] identifier[a] operator[SEP] identifier[j] operator[SEP] operator[&] literal[Integer] operator[SEP] operator[SEP] } identifier[out] operator[SEP] Other[0] operator[SEP] operator[=] literal[String] operator[SEP] identifier[out] operator[SEP] Other[1] operator[SEP] operator[=] literal[String] operator[SEP] identifier[out] operator[SEP] identifier[i] operator[SEP] operator[=] literal[String] operator[SEP] Keyword[return] Keyword[new] identifier[String] operator[SEP] identifier[out] operator[SEP] operator[SEP] }
public String dump() { final float maxMem = Runtime.getRuntime().maxMemory() / 1000000f; final float totMem = Runtime.getRuntime().totalMemory() / 1000000f; final float freeMem = maxMem - totMem; final long now = System.currentTimeMillis(); final StringBuilder buffer = new StringBuilder(); buffer.append("\nOrientDB profiler dump of "); buffer.append(new Date(now)); buffer.append(" after "); buffer.append((now - recording) / 1000); buffer.append(" secs of profiling"); buffer.append(String.format("\nFree memory: %2.2fMb (%2.2f%%) - Total memory: %2.2fMb - Max memory: %2.2fMb - CPUs: %d", freeMem, (freeMem * 100 / (float) maxMem), totMem, maxMem, Runtime.getRuntime().availableProcessors())); buffer.append("\n"); buffer.append(dumpHookValues()); buffer.append("\n"); buffer.append(dumpCounters()); buffer.append("\n\n"); buffer.append(dumpStats()); buffer.append("\n\n"); buffer.append(dumpChronos()); return buffer.toString(); }
class class_name[name] begin[{] method[dump, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[float], maxMem] local_variable[type[float], totMem] local_variable[type[float], freeMem] local_variable[type[long], now] local_variable[type[StringBuilder], buffer] call[buffer.append, parameter[literal["\nOrientDB profiler dump of "]]] call[buffer.append, parameter[ClassCreator(arguments=[MemberReference(member=now, 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))]] call[buffer.append, parameter[literal[" after "]]] call[buffer.append, parameter[binary_operation[binary_operation[member[.now], -, member[.recording]], /, literal[1000]]]] call[buffer.append, parameter[literal[" secs of profiling"]]] call[buffer.append, parameter[call[String.format, parameter[literal["\nFree memory: %2.2fMb (%2.2f%%) - Total memory: %2.2fMb - Max memory: %2.2fMb - CPUs: %d"], member[.freeMem], binary_operation[binary_operation[member[.freeMem], *, literal[100]], /, Cast(expression=MemberReference(member=maxMem, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=BasicType(dimensions=[], name=float))], member[.totMem], member[.maxMem], call[Runtime.getRuntime, parameter[]]]]]] call[buffer.append, parameter[literal["\n"]]] call[buffer.append, parameter[call[.dumpHookValues, parameter[]]]] call[buffer.append, parameter[literal["\n"]]] call[buffer.append, parameter[call[.dumpCounters, parameter[]]]] call[buffer.append, parameter[literal["\n\n"]]] call[buffer.append, parameter[call[.dumpStats, parameter[]]]] call[buffer.append, parameter[literal["\n\n"]]] call[buffer.append, parameter[call[.dumpChronos, parameter[]]]] return[call[buffer.toString, parameter[]]] end[}] END[}]
Keyword[public] identifier[String] identifier[dump] operator[SEP] operator[SEP] { Keyword[final] Keyword[float] identifier[maxMem] operator[=] identifier[Runtime] operator[SEP] identifier[getRuntime] operator[SEP] operator[SEP] operator[SEP] identifier[maxMemory] operator[SEP] operator[SEP] operator[/] literal[Float] operator[SEP] Keyword[final] Keyword[float] identifier[totMem] operator[=] identifier[Runtime] operator[SEP] identifier[getRuntime] operator[SEP] operator[SEP] operator[SEP] identifier[totalMemory] operator[SEP] operator[SEP] operator[/] literal[Float] operator[SEP] Keyword[final] Keyword[float] identifier[freeMem] operator[=] identifier[maxMem] operator[-] identifier[totMem] operator[SEP] Keyword[final] Keyword[long] identifier[now] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[StringBuilder] identifier[buffer] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] Keyword[new] identifier[Date] operator[SEP] identifier[now] operator[SEP] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] operator[SEP] identifier[now] operator[-] identifier[recording] operator[SEP] operator[/] Other[1000] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[freeMem] , operator[SEP] identifier[freeMem] operator[*] Other[100] operator[/] operator[SEP] Keyword[float] operator[SEP] identifier[maxMem] operator[SEP] , identifier[totMem] , identifier[maxMem] , identifier[Runtime] operator[SEP] identifier[getRuntime] operator[SEP] operator[SEP] operator[SEP] identifier[availableProcessors] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] identifier[dumpHookValues] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] identifier[dumpCounters] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] identifier[dumpStats] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[buffer] operator[SEP] identifier[append] operator[SEP] identifier[dumpChronos] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[buffer] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] }
public static JSONObject getIpInfo(String ip) throws IOException { String param = "?ip=" + ip; String ipInfoStr = getIpInfoByIp(URL.IP_INFO_URI + param); JSONObject jsonObject = JSON.parseObject(ipInfoStr); Integer code = (Integer) jsonObject.get("code"); if (code == 0) { return jsonObject.getJSONObject("data"); } return null; }
class class_name[name] begin[{] method[getIpInfo, return_type[type[JSONObject]], modifier[public static], parameter[ip]] begin[{] local_variable[type[String], param] local_variable[type[String], ipInfoStr] local_variable[type[JSONObject], jsonObject] local_variable[type[Integer], code] if[binary_operation[member[.code], ==, literal[0]]] begin[{] return[call[jsonObject.getJSONObject, parameter[literal["data"]]]] else begin[{] None end[}] return[literal[null]] end[}] END[}]
Keyword[public] Keyword[static] identifier[JSONObject] identifier[getIpInfo] operator[SEP] identifier[String] identifier[ip] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[param] operator[=] literal[String] operator[+] identifier[ip] operator[SEP] identifier[String] identifier[ipInfoStr] operator[=] identifier[getIpInfoByIp] operator[SEP] identifier[URL] operator[SEP] identifier[IP_INFO_URI] operator[+] identifier[param] operator[SEP] operator[SEP] identifier[JSONObject] identifier[jsonObject] operator[=] identifier[JSON] operator[SEP] identifier[parseObject] operator[SEP] identifier[ipInfoStr] operator[SEP] operator[SEP] identifier[Integer] identifier[code] operator[=] operator[SEP] identifier[Integer] operator[SEP] identifier[jsonObject] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[code] operator[==] Other[0] operator[SEP] { Keyword[return] identifier[jsonObject] operator[SEP] identifier[getJSONObject] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[return] Other[null] operator[SEP] }
@Override public ContextedException setContextValue(final String label, final Object value) { exceptionContext.setContextValue(label, value); return this; }
class class_name[name] begin[{] method[setContextValue, return_type[type[ContextedException]], modifier[public], parameter[label, value]] begin[{] call[exceptionContext.setContextValue, parameter[member[.label], member[.value]]] return[THIS[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[ContextedException] identifier[setContextValue] operator[SEP] Keyword[final] identifier[String] identifier[label] , Keyword[final] identifier[Object] identifier[value] operator[SEP] { identifier[exceptionContext] operator[SEP] identifier[setContextValue] operator[SEP] identifier[label] , identifier[value] operator[SEP] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
protected void generateMethod(SourceWriter sourceWriter, TreeLogger logger, GeneratorContext context, JMethod method) { generateSourcePublicMethodDeclaration(sourceWriter, method); generateMethodBody(sourceWriter, logger, context, method); generateSourceCloseBlock(sourceWriter); }
class class_name[name] begin[{] method[generateMethod, return_type[void], modifier[protected], parameter[sourceWriter, logger, context, method]] begin[{] call[.generateSourcePublicMethodDeclaration, parameter[member[.sourceWriter], member[.method]]] call[.generateMethodBody, parameter[member[.sourceWriter], member[.logger], member[.context], member[.method]]] call[.generateSourceCloseBlock, parameter[member[.sourceWriter]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[generateMethod] operator[SEP] identifier[SourceWriter] identifier[sourceWriter] , identifier[TreeLogger] identifier[logger] , identifier[GeneratorContext] identifier[context] , identifier[JMethod] identifier[method] operator[SEP] { identifier[generateSourcePublicMethodDeclaration] operator[SEP] identifier[sourceWriter] , identifier[method] operator[SEP] operator[SEP] identifier[generateMethodBody] operator[SEP] identifier[sourceWriter] , identifier[logger] , identifier[context] , identifier[method] operator[SEP] operator[SEP] identifier[generateSourceCloseBlock] operator[SEP] identifier[sourceWriter] operator[SEP] operator[SEP] }
public SourceSnippet createMethodCallWithInjection(MethodLiteral<?, ?> method, String invokeeName, NameGenerator nameGenerator, List<InjectorMethod> methodsOutput) throws NoSourceNameException { String[] params = new String[method.getParameterTypes().size()]; return createMethodCallWithInjection(method, invokeeName, params, nameGenerator, methodsOutput); }
class class_name[name] begin[{] method[createMethodCallWithInjection, return_type[type[SourceSnippet]], modifier[public], parameter[method, invokeeName, nameGenerator, methodsOutput]] begin[{] local_variable[type[String], params] return[call[.createMethodCallWithInjection, parameter[member[.method], member[.invokeeName], member[.params], member[.nameGenerator], member[.methodsOutput]]]] end[}] END[}]
Keyword[public] identifier[SourceSnippet] identifier[createMethodCallWithInjection] operator[SEP] identifier[MethodLiteral] operator[<] operator[?] , operator[?] operator[>] identifier[method] , identifier[String] identifier[invokeeName] , identifier[NameGenerator] identifier[nameGenerator] , identifier[List] operator[<] identifier[InjectorMethod] operator[>] identifier[methodsOutput] operator[SEP] Keyword[throws] identifier[NoSourceNameException] { identifier[String] operator[SEP] operator[SEP] identifier[params] operator[=] Keyword[new] identifier[String] operator[SEP] identifier[method] operator[SEP] identifier[getParameterTypes] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[createMethodCallWithInjection] operator[SEP] identifier[method] , identifier[invokeeName] , identifier[params] , identifier[nameGenerator] , identifier[methodsOutput] operator[SEP] operator[SEP] }
public T get() throws InterruptedException { if (!valueReady.await((long) (timeout * 1000), TimeUnit.MILLISECONDS)) { String msg = String.format("BlockingVariable.get() timed out after %1.2f seconds", timeout); throw new SpockTimeoutError(timeout, msg); } return value; }
class class_name[name] begin[{] method[get, return_type[type[T]], modifier[public], parameter[]] begin[{] if[call[valueReady.await, parameter[Cast(expression=BinaryOperation(operandl=MemberReference(member=timeout, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1000), operator=*), type=BasicType(dimensions=[], name=long)), member[TimeUnit.MILLISECONDS]]]] begin[{] local_variable[type[String], msg] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=timeout, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=msg, 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=SpockTimeoutError, sub_type=None)), label=None) else begin[{] None end[}] return[member[.value]] end[}] END[}]
Keyword[public] identifier[T] identifier[get] operator[SEP] operator[SEP] Keyword[throws] identifier[InterruptedException] { Keyword[if] operator[SEP] operator[!] identifier[valueReady] operator[SEP] identifier[await] operator[SEP] operator[SEP] Keyword[long] operator[SEP] operator[SEP] identifier[timeout] operator[*] Other[1000] operator[SEP] , identifier[TimeUnit] operator[SEP] identifier[MILLISECONDS] operator[SEP] operator[SEP] { identifier[String] identifier[msg] operator[=] identifier[String] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[timeout] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[SpockTimeoutError] operator[SEP] identifier[timeout] , identifier[msg] operator[SEP] operator[SEP] } Keyword[return] identifier[value] operator[SEP] }
public void setVisiblePanels(List<AbstractPanel> panels) { hideAllTabs(); for (Component component : fullTabList) { if (panels.contains(component)) { setVisible(component, true); } else if (component instanceof AbstractPanel) { AbstractPanel ap = (AbstractPanel) component; if (!canHidePanel(ap)) { setVisible(component, true); } else { ap.setParent(this); } } } if (getSelectedComponent() == null && getTabCount() > 0) { setSelectedIndex(0); } }
class class_name[name] begin[{] method[setVisiblePanels, return_type[void], modifier[public], parameter[panels]] begin[{] call[.hideAllTabs, parameter[]] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=component, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=contains, postfix_operators=[], prefix_operators=[], qualifier=panels, selectors=[], type_arguments=None), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=component, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=ReferenceType(arguments=None, dimensions=[], name=AbstractPanel, sub_type=None), operator=instanceof), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=MemberReference(member=component, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=AbstractPanel, sub_type=None)), name=ap)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=AbstractPanel, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=ap, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=canHidePanel, postfix_operators=[], prefix_operators=['!'], qualifier=, selectors=[], type_arguments=None), else_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[])], member=setParent, postfix_operators=[], prefix_operators=[], qualifier=ap, selectors=[], type_arguments=None), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=component, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=setVisible, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]))])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=component, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=true)], member=setVisible, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=fullTabList, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=component)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Component, sub_type=None))), label=None) if[binary_operation[binary_operation[call[.getSelectedComponent, parameter[]], ==, literal[null]], &&, binary_operation[call[.getTabCount, parameter[]], >, literal[0]]]] begin[{] call[.setSelectedIndex, parameter[literal[0]]] else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[void] identifier[setVisiblePanels] operator[SEP] identifier[List] operator[<] identifier[AbstractPanel] operator[>] identifier[panels] operator[SEP] { identifier[hideAllTabs] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Component] identifier[component] operator[:] identifier[fullTabList] operator[SEP] { Keyword[if] operator[SEP] identifier[panels] operator[SEP] identifier[contains] operator[SEP] identifier[component] operator[SEP] operator[SEP] { identifier[setVisible] operator[SEP] identifier[component] , literal[boolean] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[component] Keyword[instanceof] identifier[AbstractPanel] operator[SEP] { identifier[AbstractPanel] identifier[ap] operator[=] operator[SEP] identifier[AbstractPanel] operator[SEP] identifier[component] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[canHidePanel] operator[SEP] identifier[ap] operator[SEP] operator[SEP] { identifier[setVisible] operator[SEP] identifier[component] , literal[boolean] operator[SEP] operator[SEP] } Keyword[else] { identifier[ap] operator[SEP] identifier[setParent] operator[SEP] Keyword[this] operator[SEP] operator[SEP] } } } Keyword[if] operator[SEP] identifier[getSelectedComponent] operator[SEP] operator[SEP] operator[==] Other[null] operator[&&] identifier[getTabCount] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] { identifier[setSelectedIndex] operator[SEP] Other[0] operator[SEP] operator[SEP] } }
public static <E> ReadableSource<E> asSource(URI uri, Class<E> type) { return new DatasetSourceTarget<E>(uri, type); }
class class_name[name] begin[{] method[asSource, return_type[type[ReadableSource]], modifier[public static], parameter[uri, type]] begin[{] return[ClassCreator(arguments=[MemberReference(member=uri, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=type, 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=E, sub_type=None))], dimensions=None, name=DatasetSourceTarget, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[ReadableSource] operator[<] identifier[E] operator[>] identifier[asSource] operator[SEP] identifier[URI] identifier[uri] , identifier[Class] operator[<] identifier[E] operator[>] identifier[type] operator[SEP] { Keyword[return] Keyword[new] identifier[DatasetSourceTarget] operator[<] identifier[E] operator[>] operator[SEP] identifier[uri] , identifier[type] operator[SEP] operator[SEP] }
public void postInvoke( InterceptorContext context, InterceptorChain chain ) throws InterceptorException { postAction( ( ActionInterceptorContext ) context, chain ); }
class class_name[name] begin[{] method[postInvoke, return_type[void], modifier[public], parameter[context, chain]] begin[{] call[.postAction, parameter[Cast(expression=MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=ActionInterceptorContext, sub_type=None)), member[.chain]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[postInvoke] operator[SEP] identifier[InterceptorContext] identifier[context] , identifier[InterceptorChain] identifier[chain] operator[SEP] Keyword[throws] identifier[InterceptorException] { identifier[postAction] operator[SEP] operator[SEP] identifier[ActionInterceptorContext] operator[SEP] identifier[context] , identifier[chain] operator[SEP] operator[SEP] }
public void serviceActive(ReceivableService receivableService) { for (ReceivableEvent receivableEvent : receivableService.getReceivableEvents()) { Set<ServiceID> servicesReceivingEvent = eventID2serviceIDs.get(receivableEvent.getEventType()); if (servicesReceivingEvent == null) { servicesReceivingEvent = new HashSet<ServiceID>(); Set<ServiceID> anotherSet = eventID2serviceIDs.putIfAbsent(receivableEvent.getEventType(), servicesReceivingEvent); if (anotherSet != null) { servicesReceivingEvent = anotherSet; } } synchronized (servicesReceivingEvent) { servicesReceivingEvent.add(receivableService.getService()); } } }
class class_name[name] begin[{] method[serviceActive, return_type[void], modifier[public], parameter[receivableService]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getEventType, postfix_operators=[], prefix_operators=[], qualifier=receivableEvent, selectors=[], type_arguments=None)], member=get, postfix_operators=[], prefix_operators=[], qualifier=eventID2serviceIDs, selectors=[], type_arguments=None), name=servicesReceivingEvent)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=ServiceID, sub_type=None))], dimensions=[], name=Set, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=servicesReceivingEvent, 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=servicesReceivingEvent, 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=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=ServiceID, sub_type=None))], dimensions=None, name=HashSet, sub_type=None))), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getEventType, postfix_operators=[], prefix_operators=[], qualifier=receivableEvent, selectors=[], type_arguments=None), MemberReference(member=servicesReceivingEvent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=putIfAbsent, postfix_operators=[], prefix_operators=[], qualifier=eventID2serviceIDs, selectors=[], type_arguments=None), name=anotherSet)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=ServiceID, sub_type=None))], dimensions=[], name=Set, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=anotherSet, 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=servicesReceivingEvent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MemberReference(member=anotherSet, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)]))])), SynchronizedStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getService, postfix_operators=[], prefix_operators=[], qualifier=receivableService, selectors=[], type_arguments=None)], member=add, postfix_operators=[], prefix_operators=[], qualifier=servicesReceivingEvent, selectors=[], type_arguments=None), label=None)], label=None, lock=MemberReference(member=servicesReceivingEvent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]))]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getReceivableEvents, postfix_operators=[], prefix_operators=[], qualifier=receivableService, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=receivableEvent)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ReceivableEvent, sub_type=None))), label=None) end[}] END[}]
Keyword[public] Keyword[void] identifier[serviceActive] operator[SEP] identifier[ReceivableService] identifier[receivableService] operator[SEP] { Keyword[for] operator[SEP] identifier[ReceivableEvent] identifier[receivableEvent] operator[:] identifier[receivableService] operator[SEP] identifier[getReceivableEvents] operator[SEP] operator[SEP] operator[SEP] { identifier[Set] operator[<] identifier[ServiceID] operator[>] identifier[servicesReceivingEvent] operator[=] identifier[eventID2serviceIDs] operator[SEP] identifier[get] operator[SEP] identifier[receivableEvent] operator[SEP] identifier[getEventType] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[servicesReceivingEvent] operator[==] Other[null] operator[SEP] { identifier[servicesReceivingEvent] operator[=] Keyword[new] identifier[HashSet] operator[<] identifier[ServiceID] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[Set] operator[<] identifier[ServiceID] operator[>] identifier[anotherSet] operator[=] identifier[eventID2serviceIDs] operator[SEP] identifier[putIfAbsent] operator[SEP] identifier[receivableEvent] operator[SEP] identifier[getEventType] operator[SEP] operator[SEP] , identifier[servicesReceivingEvent] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[anotherSet] operator[!=] Other[null] operator[SEP] { identifier[servicesReceivingEvent] operator[=] identifier[anotherSet] operator[SEP] } } Keyword[synchronized] operator[SEP] identifier[servicesReceivingEvent] operator[SEP] { identifier[servicesReceivingEvent] operator[SEP] identifier[add] operator[SEP] identifier[receivableService] operator[SEP] identifier[getService] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } }
public boolean add(final K key, final S subcontainer, final V value) { final S curSubcontainer = this.subcontainerByKey.get(key); if (curSubcontainer == null) { // key does not exist if (this.mode == Mode.UPDATE) return false; } else { // key exists if (this.mode == Mode.CREATE) return false; if (subcontainer != curSubcontainer) { if (this.closed) throw new IllegalStateException( "MultiContainer put(" + key + ", " + value + ") in " + subcontainer); this.valueByKeyBySubcontainer.get(curSubcontainer).remove(key); } } if (subcontainer != curSubcontainer) this.subcontainerByKey.put(key, subcontainer); final Map<K, V> valueByKey = this.valueByKeyBySubcontainer.get(subcontainer); if (this.closed && !valueByKey.containsKey(key)) throw new IllegalStateException( "MultiContainer put(" + key + ", " + value + ") in " + subcontainer); else if (this.debug && !valueByKey.containsKey(key)) Logger.getLogger("debug").severe( "MultiContainer put(" + key + ", " + value + ") in " + subcontainer); valueByKey.put(key, value); return true; }
class class_name[name] begin[{] method[add, return_type[type[boolean]], modifier[public], parameter[key, subcontainer, value]] begin[{] local_variable[type[S], curSubcontainer] if[binary_operation[member[.curSubcontainer], ==, literal[null]]] begin[{] if[binary_operation[THIS[member[None.mode]], ==, member[Mode.UPDATE]]] begin[{] return[literal[false]] else begin[{] None end[}] else begin[{] if[binary_operation[THIS[member[None.mode]], ==, member[Mode.CREATE]]] begin[{] return[literal[false]] else begin[{] None end[}] if[binary_operation[member[.subcontainer], !=, member[.curSubcontainer]]] begin[{] if[THIS[member[None.closed]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="MultiContainer put("), operandr=MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=", "), operator=+), operandr=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=") in "), operator=+), operandr=MemberReference(member=subcontainer, 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=IllegalStateException, sub_type=None)), label=None) else begin[{] None end[}] THIS[member[None.valueByKeyBySubcontainer]call[None.get, parameter[member[.curSubcontainer]]]call[None.remove, parameter[member[.key]]]] else begin[{] None end[}] end[}] if[binary_operation[member[.subcontainer], !=, member[.curSubcontainer]]] begin[{] THIS[member[None.subcontainerByKey]call[None.put, parameter[member[.key], member[.subcontainer]]]] else begin[{] None end[}] local_variable[type[Map], valueByKey] if[binary_operation[THIS[member[None.closed]], &&, call[valueByKey.containsKey, parameter[member[.key]]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="MultiContainer put("), operandr=MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=", "), operator=+), operandr=MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=") in "), operator=+), operandr=MemberReference(member=subcontainer, 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=IllegalStateException, sub_type=None)), label=None) else begin[{] if[binary_operation[THIS[member[None.debug]], &&, call[valueByKey.containsKey, parameter[member[.key]]]]] begin[{] call[Logger.getLogger, parameter[literal["debug"]]] else begin[{] None end[}] end[}] call[valueByKey.put, parameter[member[.key], member[.value]]] return[literal[true]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[add] operator[SEP] Keyword[final] identifier[K] identifier[key] , Keyword[final] identifier[S] identifier[subcontainer] , Keyword[final] identifier[V] identifier[value] operator[SEP] { Keyword[final] identifier[S] identifier[curSubcontainer] operator[=] Keyword[this] operator[SEP] identifier[subcontainerByKey] operator[SEP] identifier[get] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[curSubcontainer] operator[==] Other[null] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[mode] operator[==] identifier[Mode] operator[SEP] identifier[UPDATE] operator[SEP] Keyword[return] literal[boolean] operator[SEP] } Keyword[else] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[mode] operator[==] identifier[Mode] operator[SEP] identifier[CREATE] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[subcontainer] operator[!=] identifier[curSubcontainer] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[closed] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[String] operator[+] identifier[key] operator[+] literal[String] operator[+] identifier[value] operator[+] literal[String] operator[+] identifier[subcontainer] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[valueByKeyBySubcontainer] operator[SEP] identifier[get] operator[SEP] identifier[curSubcontainer] operator[SEP] operator[SEP] identifier[remove] operator[SEP] identifier[key] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] identifier[subcontainer] operator[!=] identifier[curSubcontainer] operator[SEP] Keyword[this] operator[SEP] identifier[subcontainerByKey] operator[SEP] identifier[put] operator[SEP] identifier[key] , identifier[subcontainer] operator[SEP] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[K] , identifier[V] operator[>] identifier[valueByKey] operator[=] Keyword[this] operator[SEP] identifier[valueByKeyBySubcontainer] operator[SEP] identifier[get] operator[SEP] identifier[subcontainer] operator[SEP] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[closed] operator[&&] operator[!] identifier[valueByKey] operator[SEP] identifier[containsKey] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal[String] operator[+] identifier[key] operator[+] literal[String] operator[+] identifier[value] operator[+] literal[String] operator[+] identifier[subcontainer] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[debug] operator[&&] operator[!] identifier[valueByKey] operator[SEP] identifier[containsKey] operator[SEP] identifier[key] operator[SEP] operator[SEP] identifier[Logger] operator[SEP] identifier[getLogger] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[severe] operator[SEP] literal[String] operator[+] identifier[key] operator[+] literal[String] operator[+] identifier[value] operator[+] literal[String] operator[+] identifier[subcontainer] operator[SEP] operator[SEP] identifier[valueByKey] operator[SEP] identifier[put] operator[SEP] identifier[key] , identifier[value] operator[SEP] operator[SEP] Keyword[return] literal[boolean] operator[SEP] }
public BufferedImage createImage (int width, int height, int trans) { // DEBUG: override transparency for the moment on all images trans = Transparency.TRANSLUCENT; if (_gc != null) { return _gc.createCompatibleImage(width, height, trans); } else { // if we're running in headless mode, do everything in 24-bit return new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); } }
class class_name[name] begin[{] method[createImage, return_type[type[BufferedImage]], modifier[public], parameter[width, height, trans]] begin[{] assign[member[.trans], member[Transparency.TRANSLUCENT]] if[binary_operation[member[._gc], !=, literal[null]]] begin[{] return[call[_gc.createCompatibleImage, parameter[member[.width], member[.height], member[.trans]]]] else begin[{] return[ClassCreator(arguments=[MemberReference(member=width, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=height, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=TYPE_INT_ARGB, postfix_operators=[], prefix_operators=[], qualifier=BufferedImage, selectors=[])], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BufferedImage, sub_type=None))] end[}] end[}] END[}]
Keyword[public] identifier[BufferedImage] identifier[createImage] operator[SEP] Keyword[int] identifier[width] , Keyword[int] identifier[height] , Keyword[int] identifier[trans] operator[SEP] { identifier[trans] operator[=] identifier[Transparency] operator[SEP] identifier[TRANSLUCENT] operator[SEP] Keyword[if] operator[SEP] identifier[_gc] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[_gc] operator[SEP] identifier[createCompatibleImage] operator[SEP] identifier[width] , identifier[height] , identifier[trans] operator[SEP] operator[SEP] } Keyword[else] { Keyword[return] Keyword[new] identifier[BufferedImage] operator[SEP] identifier[width] , identifier[height] , identifier[BufferedImage] operator[SEP] identifier[TYPE_INT_ARGB] operator[SEP] operator[SEP] } }
protected List<Attribute> getAttributes1(String ownerType, Long ownerId) throws SQLException { List<Attribute> attrs = getAttributes0(ownerType, ownerId); if (attrs==null) return null; ResultSet rs; String query = "select RULE_SET_DETAILS from RULE_SET where RULE_SET_ID=?"; for (Attribute attr : attrs) { String v = attr.getAttributeValue(); if (v!=null && v.startsWith(Asset.ATTRIBUTE_OVERFLOW)) { Long assetId = new Long(v.substring(Asset.ATTRIBUTE_OVERFLOW.length()+1)); rs = db.runSelect(query, assetId); if (rs.next()) { attr.setAttributeValue(rs.getString(1)); } } } return attrs; }
class class_name[name] begin[{] method[getAttributes1, return_type[type[List]], modifier[protected], parameter[ownerType, ownerId]] begin[{] local_variable[type[List], attrs] if[binary_operation[member[.attrs], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[ResultSet], rs] local_variable[type[String], query] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getAttributeValue, postfix_operators=[], prefix_operators=[], qualifier=attr, selectors=[], type_arguments=None), name=v)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=String, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=v, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator=!=), operandr=MethodInvocation(arguments=[MemberReference(member=ATTRIBUTE_OVERFLOW, postfix_operators=[], prefix_operators=[], qualifier=Asset, selectors=[])], member=startsWith, postfix_operators=[], prefix_operators=[], qualifier=v, selectors=[], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=Asset.ATTRIBUTE_OVERFLOW, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1), operator=+)], member=substring, postfix_operators=[], prefix_operators=[], qualifier=v, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=Long, sub_type=None)), name=assetId)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Long, sub_type=None)), StatementExpression(expression=Assignment(expressionl=MemberReference(member=rs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[MemberReference(member=query, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=assetId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=runSelect, postfix_operators=[], prefix_operators=[], qualifier=db, selectors=[], type_arguments=None)), label=None), IfStatement(condition=MethodInvocation(arguments=[], member=next, postfix_operators=[], prefix_operators=[], qualifier=rs, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], member=getString, postfix_operators=[], prefix_operators=[], qualifier=rs, selectors=[], type_arguments=None)], member=setAttributeValue, postfix_operators=[], prefix_operators=[], qualifier=attr, selectors=[], type_arguments=None), label=None)]))]))]), control=EnhancedForControl(iterable=MemberReference(member=attrs, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=attr)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Attribute, sub_type=None))), label=None) return[member[.attrs]] end[}] END[}]
Keyword[protected] identifier[List] operator[<] identifier[Attribute] operator[>] identifier[getAttributes1] operator[SEP] identifier[String] identifier[ownerType] , identifier[Long] identifier[ownerId] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[List] operator[<] identifier[Attribute] operator[>] identifier[attrs] operator[=] identifier[getAttributes0] operator[SEP] identifier[ownerType] , identifier[ownerId] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[attrs] operator[==] Other[null] operator[SEP] Keyword[return] Other[null] operator[SEP] identifier[ResultSet] identifier[rs] operator[SEP] identifier[String] identifier[query] operator[=] literal[String] operator[SEP] Keyword[for] operator[SEP] identifier[Attribute] identifier[attr] operator[:] identifier[attrs] operator[SEP] { identifier[String] identifier[v] operator[=] identifier[attr] operator[SEP] identifier[getAttributeValue] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[v] operator[!=] Other[null] operator[&&] identifier[v] operator[SEP] identifier[startsWith] operator[SEP] identifier[Asset] operator[SEP] identifier[ATTRIBUTE_OVERFLOW] operator[SEP] operator[SEP] { identifier[Long] identifier[assetId] operator[=] Keyword[new] identifier[Long] operator[SEP] identifier[v] operator[SEP] identifier[substring] operator[SEP] identifier[Asset] operator[SEP] identifier[ATTRIBUTE_OVERFLOW] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[+] Other[1] operator[SEP] operator[SEP] operator[SEP] identifier[rs] operator[=] identifier[db] operator[SEP] identifier[runSelect] operator[SEP] identifier[query] , identifier[assetId] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[rs] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] { identifier[attr] operator[SEP] identifier[setAttributeValue] operator[SEP] identifier[rs] operator[SEP] identifier[getString] operator[SEP] Other[1] operator[SEP] operator[SEP] operator[SEP] } } } Keyword[return] identifier[attrs] operator[SEP] }
public Pager<MergeRequest> getMergeRequests(Object projectIdOrPath, MergeRequestState state, int itemsPerPage) throws GitLabApiException { Form formData = new GitLabApiForm() .withParam("state", state); return (new Pager<MergeRequest>(this, MergeRequest.class, itemsPerPage, formData.asMap(), "projects", getProjectIdOrPath(projectIdOrPath), "merge_requests")); }
class class_name[name] begin[{] method[getMergeRequests, return_type[type[Pager]], modifier[public], parameter[projectIdOrPath, state, itemsPerPage]] begin[{] local_variable[type[Form], formData] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=MergeRequest, sub_type=None)), MemberReference(member=itemsPerPage, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=asMap, postfix_operators=[], prefix_operators=[], qualifier=formData, selectors=[], type_arguments=None), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="projects"), MethodInvocation(arguments=[MemberReference(member=projectIdOrPath, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getProjectIdOrPath, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="merge_requests")], 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=MergeRequest, sub_type=None))], dimensions=None, name=Pager, sub_type=None))] end[}] END[}]
Keyword[public] identifier[Pager] operator[<] identifier[MergeRequest] operator[>] identifier[getMergeRequests] operator[SEP] identifier[Object] identifier[projectIdOrPath] , identifier[MergeRequestState] identifier[state] , Keyword[int] identifier[itemsPerPage] operator[SEP] Keyword[throws] identifier[GitLabApiException] { identifier[Form] identifier[formData] operator[=] Keyword[new] identifier[GitLabApiForm] operator[SEP] operator[SEP] operator[SEP] identifier[withParam] operator[SEP] literal[String] , identifier[state] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[new] identifier[Pager] operator[<] identifier[MergeRequest] operator[>] operator[SEP] Keyword[this] , identifier[MergeRequest] operator[SEP] Keyword[class] , identifier[itemsPerPage] , identifier[formData] operator[SEP] identifier[asMap] operator[SEP] operator[SEP] , literal[String] , identifier[getProjectIdOrPath] operator[SEP] identifier[projectIdOrPath] operator[SEP] , literal[String] operator[SEP] operator[SEP] operator[SEP] }
@Override public ResourceSet<Domain> read(final TwilioRestClient client) { return new ResourceSet<>(this, client, firstPage(client)); }
class class_name[name] begin[{] method[read, return_type[type[ResourceSet]], modifier[public], parameter[client]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=client, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[MemberReference(member=client, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=firstPage, 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=[], dimensions=None, name=ResourceSet, sub_type=None))] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[ResourceSet] operator[<] identifier[Domain] operator[>] identifier[read] operator[SEP] Keyword[final] identifier[TwilioRestClient] identifier[client] operator[SEP] { Keyword[return] Keyword[new] identifier[ResourceSet] operator[<] operator[>] operator[SEP] Keyword[this] , identifier[client] , identifier[firstPage] operator[SEP] identifier[client] operator[SEP] operator[SEP] operator[SEP] }
public static ParseSetup guessSetup( Key[] fkeys, ParseSetup userSetup ) { //Guess setup of each file and collect results GuessSetupTsk t = new GuessSetupTsk(userSetup); t.doAll(fkeys).getResult(); //Calc chunk-size // FIXME: should be a parser specific - or at least parser should be able to override defaults Iced ice = DKV.getGet(fkeys[0]); if (ice instanceof Frame && ((Frame) ice).vec(0) instanceof UploadFileVec) { t._gblSetup._chunk_size = FileVec.DFLT_CHUNK_SIZE; } else { t._gblSetup._chunk_size = FileVec.calcOptimalChunkSize(t._totalParseSize, t._gblSetup._number_columns, t._maxLineLength, Runtime.getRuntime().availableProcessors(), H2O.getCloudSize(), false /*use new heuristic*/, true); } return t._gblSetup; }
class class_name[name] begin[{] method[guessSetup, return_type[type[ParseSetup]], modifier[public static], parameter[fkeys, userSetup]] begin[{] local_variable[type[GuessSetupTsk], t] call[t.doAll, parameter[member[.fkeys]]] local_variable[type[Iced], ice] if[binary_operation[binary_operation[member[.ice], instanceof, type[Frame]], &&, binary_operation[Cast(expression=MemberReference(member=ice, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=Frame, sub_type=None)), instanceof, type[UploadFileVec]]]] begin[{] assign[member[t._gblSetup._chunk_size], member[FileVec.DFLT_CHUNK_SIZE]] else begin[{] assign[member[t._gblSetup._chunk_size], call[FileVec.calcOptimalChunkSize, parameter[member[t._totalParseSize], member[t._gblSetup._number_columns], member[t._maxLineLength], call[Runtime.getRuntime, parameter[]], call[H2O.getCloudSize, parameter[]], literal[false], literal[true]]]] end[}] return[member[t._gblSetup]] end[}] END[}]
Keyword[public] Keyword[static] identifier[ParseSetup] identifier[guessSetup] operator[SEP] identifier[Key] operator[SEP] operator[SEP] identifier[fkeys] , identifier[ParseSetup] identifier[userSetup] operator[SEP] { identifier[GuessSetupTsk] identifier[t] operator[=] Keyword[new] identifier[GuessSetupTsk] operator[SEP] identifier[userSetup] operator[SEP] operator[SEP] identifier[t] operator[SEP] identifier[doAll] operator[SEP] identifier[fkeys] operator[SEP] operator[SEP] identifier[getResult] operator[SEP] operator[SEP] operator[SEP] identifier[Iced] identifier[ice] operator[=] identifier[DKV] operator[SEP] identifier[getGet] operator[SEP] identifier[fkeys] operator[SEP] Other[0] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[ice] Keyword[instanceof] identifier[Frame] operator[&&] operator[SEP] operator[SEP] identifier[Frame] operator[SEP] identifier[ice] operator[SEP] operator[SEP] identifier[vec] operator[SEP] Other[0] operator[SEP] Keyword[instanceof] identifier[UploadFileVec] operator[SEP] { identifier[t] operator[SEP] identifier[_gblSetup] operator[SEP] identifier[_chunk_size] operator[=] identifier[FileVec] operator[SEP] identifier[DFLT_CHUNK_SIZE] operator[SEP] } Keyword[else] { identifier[t] operator[SEP] identifier[_gblSetup] operator[SEP] identifier[_chunk_size] operator[=] identifier[FileVec] operator[SEP] identifier[calcOptimalChunkSize] operator[SEP] identifier[t] operator[SEP] identifier[_totalParseSize] , identifier[t] operator[SEP] identifier[_gblSetup] operator[SEP] identifier[_number_columns] , identifier[t] operator[SEP] identifier[_maxLineLength] , identifier[Runtime] operator[SEP] identifier[getRuntime] operator[SEP] operator[SEP] operator[SEP] identifier[availableProcessors] operator[SEP] operator[SEP] , identifier[H2O] operator[SEP] identifier[getCloudSize] operator[SEP] operator[SEP] , literal[boolean] , literal[boolean] operator[SEP] operator[SEP] } Keyword[return] identifier[t] operator[SEP] identifier[_gblSetup] operator[SEP] }
public void setDestinationSSECustomerKey(SSECustomerKey sseKey) { if (sseKey != null && this.sseAwsKeyManagementParams != null) { throw new IllegalArgumentException( "Either SSECustomerKey or SSEAwsKeyManagementParams must not be set at the same time."); } this.destinationSSECustomerKey = sseKey; }
class class_name[name] begin[{] method[setDestinationSSECustomerKey, return_type[void], modifier[public], parameter[sseKey]] begin[{] if[binary_operation[binary_operation[member[.sseKey], !=, literal[null]], &&, binary_operation[THIS[member[None.sseAwsKeyManagementParams]], !=, literal[null]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Either SSECustomerKey or SSEAwsKeyManagementParams must not be set at the same time.")], 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[}] assign[THIS[member[None.destinationSSECustomerKey]], member[.sseKey]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setDestinationSSECustomerKey] operator[SEP] identifier[SSECustomerKey] identifier[sseKey] operator[SEP] { Keyword[if] operator[SEP] identifier[sseKey] operator[!=] Other[null] operator[&&] Keyword[this] operator[SEP] identifier[sseAwsKeyManagementParams] operator[!=] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] operator[SEP] operator[SEP] } Keyword[this] operator[SEP] identifier[destinationSSECustomerKey] operator[=] identifier[sseKey] operator[SEP] }
public void incrementSync(String distributedObjectName, int count) { getOrPutIfAbsent(eventCounterMap, distributedObjectName, EVENT_COUNTER_CONSTRUCTOR_FN) .incrementSyncCount(count); }
class class_name[name] begin[{] method[incrementSync, return_type[void], modifier[public], parameter[distributedObjectName, count]] begin[{] call[.getOrPutIfAbsent, parameter[member[.eventCounterMap], member[.distributedObjectName], member[.EVENT_COUNTER_CONSTRUCTOR_FN]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[incrementSync] operator[SEP] identifier[String] identifier[distributedObjectName] , Keyword[int] identifier[count] operator[SEP] { identifier[getOrPutIfAbsent] operator[SEP] identifier[eventCounterMap] , identifier[distributedObjectName] , identifier[EVENT_COUNTER_CONSTRUCTOR_FN] operator[SEP] operator[SEP] identifier[incrementSyncCount] operator[SEP] identifier[count] operator[SEP] operator[SEP] }
@Override public IndexDocumentsResult indexDocuments(IndexDocumentsRequest request) { request = beforeClientExecution(request); return executeIndexDocuments(request); }
class class_name[name] begin[{] method[indexDocuments, return_type[type[IndexDocumentsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeIndexDocuments, parameter[member[.request]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[IndexDocumentsResult] identifier[indexDocuments] operator[SEP] identifier[IndexDocumentsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keyword[return] identifier[executeIndexDocuments] operator[SEP] identifier[request] operator[SEP] operator[SEP] }
protected void doUnsubscribe (int oid, Subscriber<?> target) { DObject dobj = _ocache.get(oid); if (dobj != null) { dobj.removeSubscriber(target); } else if (_client.isFailureLoggable(Client.FailureType.UNSUBSCRIBE_NOT_PROXIED)) { log.info("Requested to remove subscriber from non-proxied object", "oid", oid, "sub", target); } }
class class_name[name] begin[{] method[doUnsubscribe, return_type[void], modifier[protected], parameter[oid, target]] begin[{] local_variable[type[DObject], dobj] if[binary_operation[member[.dobj], !=, literal[null]]] begin[{] call[dobj.removeSubscriber, parameter[member[.target]]] else begin[{] if[call[_client.isFailureLoggable, parameter[member[Client.FailureType.UNSUBSCRIBE_NOT_PROXIED]]]] begin[{] call[log.info, parameter[literal["Requested to remove subscriber from non-proxied object"], literal["oid"], member[.oid], literal["sub"], member[.target]]] else begin[{] None end[}] end[}] end[}] END[}]
Keyword[protected] Keyword[void] identifier[doUnsubscribe] operator[SEP] Keyword[int] identifier[oid] , identifier[Subscriber] operator[<] operator[?] operator[>] identifier[target] operator[SEP] { identifier[DObject] identifier[dobj] operator[=] identifier[_ocache] operator[SEP] identifier[get] operator[SEP] identifier[oid] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[dobj] operator[!=] Other[null] operator[SEP] { identifier[dobj] operator[SEP] identifier[removeSubscriber] operator[SEP] identifier[target] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[_client] operator[SEP] identifier[isFailureLoggable] operator[SEP] identifier[Client] operator[SEP] identifier[FailureType] operator[SEP] identifier[UNSUBSCRIBE_NOT_PROXIED] operator[SEP] operator[SEP] { identifier[log] operator[SEP] identifier[info] operator[SEP] literal[String] , literal[String] , identifier[oid] , literal[String] , identifier[target] operator[SEP] operator[SEP] } }
@Override protected final void runOneIteration() throws Exception { try { sendEvent(produceEvent()); } catch (Exception e){ LOGGER.error(MessageFormatter.format("Cannot produce event with id {}", eventId).getMessage(), e); } }
class class_name[name] begin[{] method[runOneIteration, return_type[void], modifier[final protected], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=produceEvent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=sendEvent, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Cannot produce event with id {}"), MemberReference(member=eventId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=format, postfix_operators=[], prefix_operators=[], qualifier=MessageFormatter, selectors=[MethodInvocation(arguments=[], member=getMessage, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), MemberReference(member=e, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=error, postfix_operators=[], prefix_operators=[], qualifier=LOGGER, selectors=[], 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[}]
annotation[@] identifier[Override] Keyword[protected] Keyword[final] Keyword[void] identifier[runOneIteration] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[try] { identifier[sendEvent] operator[SEP] identifier[produceEvent] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[Exception] identifier[e] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[error] operator[SEP] identifier[MessageFormatter] operator[SEP] identifier[format] operator[SEP] literal[String] , identifier[eventId] operator[SEP] operator[SEP] identifier[getMessage] operator[SEP] operator[SEP] , identifier[e] operator[SEP] operator[SEP] } }
public static FlowType getKey(int ordinal) { if (ordinal >= 0 && ordinal < _values.length) { return _values[ordinal]; } return null; }
class class_name[name] begin[{] method[getKey, return_type[type[FlowType]], modifier[public static], parameter[ordinal]] begin[{] if[binary_operation[binary_operation[member[.ordinal], >=, literal[0]], &&, binary_operation[member[.ordinal], <, member[_values.length]]]] begin[{] return[member[._values]] else begin[{] None end[}] return[literal[null]] end[}] END[}]
Keyword[public] Keyword[static] identifier[FlowType] identifier[getKey] operator[SEP] Keyword[int] identifier[ordinal] operator[SEP] { Keyword[if] operator[SEP] identifier[ordinal] operator[>=] Other[0] operator[&&] identifier[ordinal] operator[<] identifier[_values] operator[SEP] identifier[length] operator[SEP] { Keyword[return] identifier[_values] operator[SEP] identifier[ordinal] operator[SEP] operator[SEP] } Keyword[return] Other[null] operator[SEP] }
public void marshall(GetMediaForFragmentListRequest getMediaForFragmentListRequest, ProtocolMarshaller protocolMarshaller) { if (getMediaForFragmentListRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(getMediaForFragmentListRequest.getStreamName(), STREAMNAME_BINDING); protocolMarshaller.marshall(getMediaForFragmentListRequest.getFragments(), FRAGMENTS_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[getMediaForFragmentListRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.getMediaForFragmentListRequest], ==, 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=getStreamName, postfix_operators=[], prefix_operators=[], qualifier=getMediaForFragmentListRequest, selectors=[], type_arguments=None), MemberReference(member=STREAMNAME_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=getFragments, postfix_operators=[], prefix_operators=[], qualifier=getMediaForFragmentListRequest, selectors=[], type_arguments=None), MemberReference(member=FRAGMENTS_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[GetMediaForFragmentListRequest] identifier[getMediaForFragmentListRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[getMediaForFragmentListRequest] 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[getMediaForFragmentListRequest] operator[SEP] identifier[getStreamName] operator[SEP] operator[SEP] , identifier[STREAMNAME_BINDING] operator[SEP] operator[SEP] identifier[protocolMarshaller] operator[SEP] identifier[marshall] operator[SEP] identifier[getMediaForFragmentListRequest] operator[SEP] identifier[getFragments] operator[SEP] operator[SEP] , identifier[FRAGMENTS_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] } }
boolean isSchemaAuthorisation(Grantee grantee) { Iterator schemas = allSchemaNameIterator(); while (schemas.hasNext()) { String schemaName = (String) schemas.next(); if (grantee.equals(toSchemaOwner(schemaName))) { return true; } } return false; }
class class_name[name] begin[{] method[isSchemaAuthorisation, return_type[type[boolean]], modifier[default], parameter[grantee]] begin[{] local_variable[type[Iterator], schemas] while[call[schemas.hasNext, parameter[]]] begin[{] local_variable[type[String], schemaName] if[call[grantee.equals, parameter[call[.toSchemaOwner, parameter[member[.schemaName]]]]]] begin[{] return[literal[true]] else begin[{] None end[}] end[}] return[literal[false]] end[}] END[}]
Keyword[boolean] identifier[isSchemaAuthorisation] operator[SEP] identifier[Grantee] identifier[grantee] operator[SEP] { identifier[Iterator] identifier[schemas] operator[=] identifier[allSchemaNameIterator] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[schemas] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] { identifier[String] identifier[schemaName] operator[=] operator[SEP] identifier[String] operator[SEP] identifier[schemas] operator[SEP] identifier[next] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[grantee] operator[SEP] identifier[equals] operator[SEP] identifier[toSchemaOwner] operator[SEP] identifier[schemaName] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } } Keyword[return] literal[boolean] operator[SEP] }
public ProjectCalendar getBaselineCalendar() { // // Attempt to locate the calendar normally used by baselines // If this isn't present, fall back to using the default // project calendar. // ProjectCalendar result = getCalendarByName("Used for Microsoft Project 98 Baseline Calendar"); if (result == null) { result = getDefaultCalendar(); } return result; }
class class_name[name] begin[{] method[getBaselineCalendar, return_type[type[ProjectCalendar]], modifier[public], parameter[]] begin[{] local_variable[type[ProjectCalendar], result] if[binary_operation[member[.result], ==, literal[null]]] begin[{] assign[member[.result], call[.getDefaultCalendar, parameter[]]] else begin[{] None end[}] return[member[.result]] end[}] END[}]
Keyword[public] identifier[ProjectCalendar] identifier[getBaselineCalendar] operator[SEP] operator[SEP] { identifier[ProjectCalendar] identifier[result] operator[=] identifier[getCalendarByName] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[result] operator[==] Other[null] operator[SEP] { identifier[result] operator[=] identifier[getDefaultCalendar] operator[SEP] operator[SEP] operator[SEP] } Keyword[return] identifier[result] operator[SEP] }
public OutlierResult run(Database database, Relation<V> relation) { final int dbsize = relation.size(); ArrayList<ArrayList<DBIDs>> ranges = buildRanges(relation); Heap<Individuum>.UnorderedIter individuums = (new EvolutionarySearch(relation, ranges, m, rnd.getSingleThreadedRandom())).run(); WritableDoubleDataStore outlierScore = DataStoreUtil.makeDoubleStorage(relation.getDBIDs(), DataStoreFactory.HINT_HOT | DataStoreFactory.HINT_STATIC); for(; individuums.valid(); individuums.advance()) { DBIDs ids = computeSubspaceForGene(individuums.get().getGene(), ranges); double sparsityC = sparsity(ids.size(), dbsize, k, phi); for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) { double prev = outlierScore.doubleValue(iter); if(Double.isNaN(prev) || sparsityC < prev) { outlierScore.putDouble(iter, sparsityC); } } } DoubleMinMax minmax = new DoubleMinMax(); for(DBIDIter iditer = relation.iterDBIDs(); iditer.valid(); iditer.advance()) { double val = outlierScore.doubleValue(iditer); if(Double.isNaN(val)) { outlierScore.putDouble(iditer, val = 0.); } minmax.put(val); } DoubleRelation scoreResult = new MaterializedDoubleRelation("AggarwalYuEvolutionary", "aggarwal-yu-outlier", outlierScore, relation.getDBIDs()); OutlierScoreMeta meta = new InvertedOutlierScoreMeta(minmax.getMin(), minmax.getMax(), Double.NEGATIVE_INFINITY, 0.0); return new OutlierResult(meta, scoreResult); }
class class_name[name] begin[{] method[run, return_type[type[OutlierResult]], modifier[public], parameter[database, relation]] begin[{] local_variable[type[int], dbsize] local_variable[type[ArrayList], ranges] local_variable[type[Heap], individuums] local_variable[type[WritableDoubleDataStore], outlierScore] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=individuums, selectors=[MethodInvocation(arguments=[], member=getGene, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), MemberReference(member=ranges, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=computeSubspaceForGene, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=ids)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=DBIDs, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[], qualifier=ids, selectors=[], type_arguments=None), MemberReference(member=dbsize, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=k, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=phi, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=sparsity, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=sparsityC)], modifiers=set(), type=BasicType(dimensions=[], name=double)), ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=iter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=outlierScore, selectors=[], type_arguments=None), name=prev)], modifiers=set(), type=BasicType(dimensions=[], name=double)), IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=prev, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isNaN, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), operandr=BinaryOperation(operandl=MemberReference(member=sparsityC, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=prev, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=<), operator=||), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=iter, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=sparsityC, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=putDouble, postfix_operators=[], prefix_operators=[], qualifier=outlierScore, selectors=[], type_arguments=None), label=None)]))]), control=ForControl(condition=MethodInvocation(arguments=[], member=valid, postfix_operators=[], prefix_operators=[], qualifier=iter, selectors=[], type_arguments=None), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=MethodInvocation(arguments=[], member=iter, postfix_operators=[], prefix_operators=[], qualifier=ids, selectors=[], type_arguments=None), name=iter)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=DBIDIter, sub_type=None)), update=[MethodInvocation(arguments=[], member=advance, postfix_operators=[], prefix_operators=[], qualifier=iter, selectors=[], type_arguments=None)]), label=None)]), control=ForControl(condition=MethodInvocation(arguments=[], member=valid, postfix_operators=[], prefix_operators=[], qualifier=individuums, selectors=[], type_arguments=None), init=None, update=[MethodInvocation(arguments=[], member=advance, postfix_operators=[], prefix_operators=[], qualifier=individuums, selectors=[], type_arguments=None)]), label=None) local_variable[type[DoubleMinMax], minmax] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=iditer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=outlierScore, selectors=[], type_arguments=None), name=val)], modifiers=set(), type=BasicType(dimensions=[], name=double)), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=isNaN, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=iditer, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Assignment(expressionl=MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0.))], member=putDouble, postfix_operators=[], prefix_operators=[], qualifier=outlierScore, selectors=[], type_arguments=None), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=val, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=put, postfix_operators=[], prefix_operators=[], qualifier=minmax, selectors=[], type_arguments=None), label=None)]), control=ForControl(condition=MethodInvocation(arguments=[], member=valid, postfix_operators=[], prefix_operators=[], qualifier=iditer, selectors=[], type_arguments=None), init=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=MethodInvocation(arguments=[], member=iterDBIDs, postfix_operators=[], prefix_operators=[], qualifier=relation, selectors=[], type_arguments=None), name=iditer)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=DBIDIter, sub_type=None)), update=[MethodInvocation(arguments=[], member=advance, postfix_operators=[], prefix_operators=[], qualifier=iditer, selectors=[], type_arguments=None)]), label=None) local_variable[type[DoubleRelation], scoreResult] local_variable[type[OutlierScoreMeta], meta] return[ClassCreator(arguments=[MemberReference(member=meta, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=scoreResult, 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=OutlierResult, sub_type=None))] end[}] END[}]
Keyword[public] identifier[OutlierResult] identifier[run] operator[SEP] identifier[Database] identifier[database] , identifier[Relation] operator[<] identifier[V] operator[>] identifier[relation] operator[SEP] { Keyword[final] Keyword[int] identifier[dbsize] operator[=] identifier[relation] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[ArrayList] operator[<] identifier[ArrayList] operator[<] identifier[DBIDs] operator[>] operator[>] identifier[ranges] operator[=] identifier[buildRanges] operator[SEP] identifier[relation] operator[SEP] operator[SEP] identifier[Heap] operator[<] identifier[Individuum] operator[>] operator[SEP] identifier[UnorderedIter] identifier[individuums] operator[=] operator[SEP] Keyword[new] identifier[EvolutionarySearch] operator[SEP] identifier[relation] , identifier[ranges] , identifier[m] , identifier[rnd] operator[SEP] identifier[getSingleThreadedRandom] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[run] operator[SEP] operator[SEP] operator[SEP] identifier[WritableDoubleDataStore] identifier[outlierScore] operator[=] identifier[DataStoreUtil] operator[SEP] identifier[makeDoubleStorage] operator[SEP] identifier[relation] operator[SEP] identifier[getDBIDs] operator[SEP] operator[SEP] , identifier[DataStoreFactory] operator[SEP] identifier[HINT_HOT] operator[|] identifier[DataStoreFactory] operator[SEP] identifier[HINT_STATIC] operator[SEP] operator[SEP] Keyword[for] operator[SEP] operator[SEP] identifier[individuums] operator[SEP] identifier[valid] operator[SEP] operator[SEP] operator[SEP] identifier[individuums] operator[SEP] identifier[advance] operator[SEP] operator[SEP] operator[SEP] { identifier[DBIDs] identifier[ids] operator[=] identifier[computeSubspaceForGene] operator[SEP] identifier[individuums] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[getGene] operator[SEP] operator[SEP] , identifier[ranges] operator[SEP] operator[SEP] Keyword[double] identifier[sparsityC] operator[=] identifier[sparsity] operator[SEP] identifier[ids] operator[SEP] identifier[size] operator[SEP] operator[SEP] , identifier[dbsize] , identifier[k] , identifier[phi] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[DBIDIter] identifier[iter] operator[=] identifier[ids] operator[SEP] identifier[iter] operator[SEP] operator[SEP] operator[SEP] identifier[iter] operator[SEP] identifier[valid] operator[SEP] operator[SEP] operator[SEP] identifier[iter] operator[SEP] identifier[advance] operator[SEP] operator[SEP] operator[SEP] { Keyword[double] identifier[prev] operator[=] identifier[outlierScore] operator[SEP] identifier[doubleValue] operator[SEP] identifier[iter] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[Double] operator[SEP] identifier[isNaN] operator[SEP] identifier[prev] operator[SEP] operator[||] identifier[sparsityC] operator[<] identifier[prev] operator[SEP] { identifier[outlierScore] operator[SEP] identifier[putDouble] operator[SEP] identifier[iter] , identifier[sparsityC] operator[SEP] operator[SEP] } } } identifier[DoubleMinMax] identifier[minmax] operator[=] Keyword[new] identifier[DoubleMinMax] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[DBIDIter] identifier[iditer] operator[=] identifier[relation] operator[SEP] identifier[iterDBIDs] operator[SEP] operator[SEP] operator[SEP] identifier[iditer] operator[SEP] identifier[valid] operator[SEP] operator[SEP] operator[SEP] identifier[iditer] operator[SEP] identifier[advance] operator[SEP] operator[SEP] operator[SEP] { Keyword[double] identifier[val] operator[=] identifier[outlierScore] operator[SEP] identifier[doubleValue] operator[SEP] identifier[iditer] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[Double] operator[SEP] identifier[isNaN] operator[SEP] identifier[val] operator[SEP] operator[SEP] { identifier[outlierScore] operator[SEP] identifier[putDouble] operator[SEP] identifier[iditer] , identifier[val] operator[=] literal[Float] operator[SEP] operator[SEP] } identifier[minmax] operator[SEP] identifier[put] operator[SEP] identifier[val] operator[SEP] operator[SEP] } identifier[DoubleRelation] identifier[scoreResult] operator[=] Keyword[new] identifier[MaterializedDoubleRelation] operator[SEP] literal[String] , literal[String] , identifier[outlierScore] , identifier[relation] operator[SEP] identifier[getDBIDs] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[OutlierScoreMeta] identifier[meta] operator[=] Keyword[new] identifier[InvertedOutlierScoreMeta] operator[SEP] identifier[minmax] operator[SEP] identifier[getMin] operator[SEP] operator[SEP] , identifier[minmax] operator[SEP] identifier[getMax] operator[SEP] operator[SEP] , identifier[Double] operator[SEP] identifier[NEGATIVE_INFINITY] , literal[Float] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[OutlierResult] operator[SEP] identifier[meta] , identifier[scoreResult] operator[SEP] operator[SEP] }
public final void mRCURLY() throws RecognitionException { try { int _type = RCURLY; int _channel = DEFAULT_TOKEN_CHANNEL; // druidG.g:576:8: ( '}' ) // druidG.g:576:11: '}' { match('}'); } state.type = _type; state.channel = _channel; } finally { // do for sure before leaving } }
class class_name[name] begin[{] method[mRCURLY, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=RCURLY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), name=_type)], modifiers=set(), type=BasicType(dimensions=[], name=int)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=DEFAULT_TOKEN_CHANNEL, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), name=_channel)], modifiers=set(), type=BasicType(dimensions=[], name=int)), BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value='}')], member=match, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)]), StatementExpression(expression=Assignment(expressionl=MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=state, selectors=[]), type==, value=MemberReference(member=_type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=channel, postfix_operators=[], prefix_operators=[], qualifier=state, selectors=[]), type==, value=MemberReference(member=_channel, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None)], catches=None, finally_block=[], label=None, resources=None) end[}] END[}]
Keyword[public] Keyword[final] Keyword[void] identifier[mRCURLY] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[RCURLY] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TOKEN_CHANNEL] operator[SEP] { identifier[match] operator[SEP] literal[String] operator[SEP] operator[SEP] } identifier[state] operator[SEP] identifier[type] operator[=] identifier[_type] operator[SEP] identifier[state] operator[SEP] identifier[channel] operator[=] identifier[_channel] operator[SEP] } Keyword[finally] { } }
public boolean inConstructor(Environment env) { PDefinition encl = env.getEnclosingDefinition(); if (encl != null) { return isConstructor(encl); } return false; }
class class_name[name] begin[{] method[inConstructor, return_type[type[boolean]], modifier[public], parameter[env]] begin[{] local_variable[type[PDefinition], encl] if[binary_operation[member[.encl], !=, literal[null]]] begin[{] return[call[.isConstructor, parameter[member[.encl]]]] else begin[{] None end[}] return[literal[false]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[inConstructor] operator[SEP] identifier[Environment] identifier[env] operator[SEP] { identifier[PDefinition] identifier[encl] operator[=] identifier[env] operator[SEP] identifier[getEnclosingDefinition] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[encl] operator[!=] Other[null] operator[SEP] { Keyword[return] identifier[isConstructor] operator[SEP] identifier[encl] operator[SEP] operator[SEP] } Keyword[return] literal[boolean] operator[SEP] }
private List<Triplet<URI, URI, Object>> parseSpoUpdates(JsonElement jsonSpoEntries) { if (jsonSpoEntries == null || jsonSpoEntries.isJsonNull()) { return ImmutableList.of(); } ImmutableList.Builder<Triplet<URI, URI, Object>> result = ImmutableList.builder(); JsonObject request = jsonSpoEntries.getAsJsonObject(); JsonArray updates = request.getAsJsonArray("updates"); JsonObject update; URI subject; URI property; Object object = null; for (JsonElement updateEntry : updates) { update = updateEntry.getAsJsonObject(); if (update.has("subject") && update.has("property") && update.has("object")) { try { subject = new URI(update.get("subject").getAsString()); property = new URI(update.get("property").getAsString()); JsonPrimitive objectElmt = update.get("object").getAsJsonPrimitive(); if (objectElmt.isNumber()) { object = (Double) objectElmt.getAsDouble(); } else if (objectElmt.isString()) { // Try with a URL and fallback to String if it is not object = new URI(objectElmt.getAsString()); if (!((URI)object).isAbsolute()) { object = objectElmt.getAsString(); } } result.add(new Triplet(subject, property, object)); } catch (URISyntaxException e) { log.warn("Skipping entry..."); e.printStackTrace(); } } } // Build the result return result.build(); }
class class_name[name] begin[{] method[parseSpoUpdates, return_type[type[List]], modifier[private], parameter[jsonSpoEntries]] begin[{] if[binary_operation[binary_operation[member[.jsonSpoEntries], ==, literal[null]], ||, call[jsonSpoEntries.isJsonNull, parameter[]]]] begin[{] return[call[ImmutableList.of, parameter[]]] else begin[{] None end[}] local_variable[type[ImmutableList], result] local_variable[type[JsonObject], request] local_variable[type[JsonArray], updates] local_variable[type[JsonObject], update] local_variable[type[URI], subject] local_variable[type[URI], property] local_variable[type[Object], object] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=update, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getAsJsonObject, postfix_operators=[], prefix_operators=[], qualifier=updateEntry, selectors=[], type_arguments=None)), label=None), IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="subject")], member=has, postfix_operators=[], prefix_operators=[], qualifier=update, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="property")], member=has, postfix_operators=[], prefix_operators=[], qualifier=update, selectors=[], type_arguments=None), operator=&&), operandr=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="object")], member=has, postfix_operators=[], prefix_operators=[], qualifier=update, selectors=[], type_arguments=None), operator=&&), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=subject, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="subject")], member=get, postfix_operators=[], prefix_operators=[], qualifier=update, selectors=[MethodInvocation(arguments=[], member=getAsString, 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=URI, sub_type=None))), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=property, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="property")], member=get, postfix_operators=[], prefix_operators=[], qualifier=update, selectors=[MethodInvocation(arguments=[], member=getAsString, 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=URI, sub_type=None))), label=None), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="object")], member=get, postfix_operators=[], prefix_operators=[], qualifier=update, selectors=[MethodInvocation(arguments=[], member=getAsJsonPrimitive, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type_arguments=None), name=objectElmt)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=JsonPrimitive, sub_type=None)), IfStatement(condition=MethodInvocation(arguments=[], member=isNumber, postfix_operators=[], prefix_operators=[], qualifier=objectElmt, selectors=[], type_arguments=None), else_statement=IfStatement(condition=MethodInvocation(arguments=[], member=isString, postfix_operators=[], prefix_operators=[], qualifier=objectElmt, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=object, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=ClassCreator(arguments=[MethodInvocation(arguments=[], member=getAsString, postfix_operators=[], prefix_operators=[], qualifier=objectElmt, selectors=[], type_arguments=None)], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=URI, sub_type=None))), label=None), IfStatement(condition=Cast(expression=MemberReference(member=object, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(arguments=None, dimensions=[], name=URI, sub_type=None)), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=object, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=MethodInvocation(arguments=[], member=getAsString, postfix_operators=[], prefix_operators=[], qualifier=objectElmt, selectors=[], type_arguments=None)), label=None)]))])), label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=object, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type==, value=Cast(expression=MethodInvocation(arguments=[], member=getAsDouble, postfix_operators=[], prefix_operators=[], qualifier=objectElmt, selectors=[], type_arguments=None), type=ReferenceType(arguments=None, dimensions=[], name=Double, sub_type=None))), label=None)])), StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=subject, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=property, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=object, 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=Triplet, sub_type=None))], member=add, postfix_operators=[], prefix_operators=[], qualifier=result, selectors=[], type_arguments=None), label=None)], catches=[CatchClause(block=[StatementExpression(expression=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Skipping entry...")], member=warn, postfix_operators=[], prefix_operators=[], qualifier=log, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[], member=printStackTrace, postfix_operators=[], prefix_operators=[], qualifier=e, selectors=[], type_arguments=None), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['URISyntaxException']))], finally_block=None, label=None, resources=None)]))]), control=EnhancedForControl(iterable=MemberReference(member=updates, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=updateEntry)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=JsonElement, sub_type=None))), label=None) return[call[result.build, parameter[]]] end[}] END[}]
Keyword[private] identifier[List] operator[<] identifier[Triplet] operator[<] identifier[URI] , identifier[URI] , identifier[Object] operator[>] operator[>] identifier[parseSpoUpdates] operator[SEP] identifier[JsonElement] identifier[jsonSpoEntries] operator[SEP] { Keyword[if] operator[SEP] identifier[jsonSpoEntries] operator[==] Other[null] operator[||] identifier[jsonSpoEntries] operator[SEP] identifier[isJsonNull] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[ImmutableList] operator[SEP] identifier[of] operator[SEP] operator[SEP] operator[SEP] } identifier[ImmutableList] operator[SEP] identifier[Builder] operator[<] identifier[Triplet] operator[<] identifier[URI] , identifier[URI] , identifier[Object] operator[>] operator[>] identifier[result] operator[=] identifier[ImmutableList] operator[SEP] identifier[builder] operator[SEP] operator[SEP] operator[SEP] identifier[JsonObject] identifier[request] operator[=] identifier[jsonSpoEntries] operator[SEP] identifier[getAsJsonObject] operator[SEP] operator[SEP] operator[SEP] identifier[JsonArray] identifier[updates] operator[=] identifier[request] operator[SEP] identifier[getAsJsonArray] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[JsonObject] identifier[update] operator[SEP] identifier[URI] identifier[subject] operator[SEP] identifier[URI] identifier[property] operator[SEP] identifier[Object] identifier[object] operator[=] Other[null] operator[SEP] Keyword[for] operator[SEP] identifier[JsonElement] identifier[updateEntry] operator[:] identifier[updates] operator[SEP] { identifier[update] operator[=] identifier[updateEntry] operator[SEP] identifier[getAsJsonObject] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[update] operator[SEP] identifier[has] operator[SEP] literal[String] operator[SEP] operator[&&] identifier[update] operator[SEP] identifier[has] operator[SEP] literal[String] operator[SEP] operator[&&] identifier[update] operator[SEP] identifier[has] operator[SEP] literal[String] operator[SEP] operator[SEP] { Keyword[try] { identifier[subject] operator[=] Keyword[new] identifier[URI] operator[SEP] identifier[update] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[getAsString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[property] operator[=] Keyword[new] identifier[URI] operator[SEP] identifier[update] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[getAsString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[JsonPrimitive] identifier[objectElmt] operator[=] identifier[update] operator[SEP] identifier[get] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[getAsJsonPrimitive] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[objectElmt] operator[SEP] identifier[isNumber] operator[SEP] operator[SEP] operator[SEP] { identifier[object] operator[=] operator[SEP] identifier[Double] operator[SEP] identifier[objectElmt] operator[SEP] identifier[getAsDouble] operator[SEP] operator[SEP] operator[SEP] } Keyword[else] Keyword[if] operator[SEP] identifier[objectElmt] operator[SEP] identifier[isString] operator[SEP] operator[SEP] operator[SEP] { identifier[object] operator[=] Keyword[new] identifier[URI] operator[SEP] identifier[objectElmt] operator[SEP] identifier[getAsString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] operator[SEP] operator[SEP] identifier[URI] operator[SEP] identifier[object] operator[SEP] operator[SEP] identifier[isAbsolute] operator[SEP] operator[SEP] operator[SEP] { identifier[object] operator[=] identifier[objectElmt] operator[SEP] identifier[getAsString] operator[SEP] operator[SEP] operator[SEP] } } identifier[result] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[Triplet] operator[SEP] identifier[subject] , identifier[property] , identifier[object] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[URISyntaxException] identifier[e] operator[SEP] { identifier[log] operator[SEP] identifier[warn] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[e] operator[SEP] identifier[printStackTrace] operator[SEP] operator[SEP] operator[SEP] } } } Keyword[return] identifier[result] operator[SEP] identifier[build] operator[SEP] operator[SEP] operator[SEP] }
public static mpsuser[] get_filtered(nitro_service service, String filter) throws Exception { mpsuser obj = new mpsuser(); options option = new options(); option.set_filter(filter); mpsuser[] response = (mpsuser[]) obj.getfiltered(service, option); return response; }
class class_name[name] begin[{] method[get_filtered, return_type[type[mpsuser]], modifier[public static], parameter[service, filter]] begin[{] local_variable[type[mpsuser], obj] local_variable[type[options], option] call[option.set_filter, parameter[member[.filter]]] local_variable[type[mpsuser], response] return[member[.response]] end[}] END[}]
Keyword[public] Keyword[static] identifier[mpsuser] operator[SEP] operator[SEP] identifier[get_filtered] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[filter] operator[SEP] Keyword[throws] identifier[Exception] { identifier[mpsuser] identifier[obj] operator[=] Keyword[new] identifier[mpsuser] operator[SEP] operator[SEP] operator[SEP] identifier[options] identifier[option] operator[=] Keyword[new] identifier[options] operator[SEP] operator[SEP] operator[SEP] identifier[option] operator[SEP] identifier[set_filter] operator[SEP] identifier[filter] operator[SEP] operator[SEP] identifier[mpsuser] operator[SEP] operator[SEP] identifier[response] operator[=] operator[SEP] identifier[mpsuser] operator[SEP] operator[SEP] operator[SEP] identifier[obj] operator[SEP] identifier[getfiltered] operator[SEP] identifier[service] , identifier[option] operator[SEP] operator[SEP] Keyword[return] identifier[response] operator[SEP] }
public static String getKeyName(String resourcename, boolean online) { return resourcename.concat(online ? CmsFlexCache.CACHE_ONLINESUFFIX : CmsFlexCache.CACHE_OFFLINESUFFIX); }
class class_name[name] begin[{] method[getKeyName, return_type[type[String]], modifier[public static], parameter[resourcename, online]] begin[{] return[call[resourcename.concat, parameter[TernaryExpression(condition=MemberReference(member=online, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), if_false=MemberReference(member=CACHE_OFFLINESUFFIX, postfix_operators=[], prefix_operators=[], qualifier=CmsFlexCache, selectors=[]), if_true=MemberReference(member=CACHE_ONLINESUFFIX, postfix_operators=[], prefix_operators=[], qualifier=CmsFlexCache, selectors=[]))]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[getKeyName] operator[SEP] identifier[String] identifier[resourcename] , Keyword[boolean] identifier[online] operator[SEP] { Keyword[return] identifier[resourcename] operator[SEP] identifier[concat] operator[SEP] identifier[online] operator[?] identifier[CmsFlexCache] operator[SEP] identifier[CACHE_ONLINESUFFIX] operator[:] identifier[CmsFlexCache] operator[SEP] identifier[CACHE_OFFLINESUFFIX] operator[SEP] operator[SEP] }
private boolean isJawrImageTag(ComponentTag tag) { String tagName = tag.getName(); return (tagName.equalsIgnoreCase("img") || (tagName .equalsIgnoreCase("input") && tag.getAttribute("type").equals( "image"))); }
class class_name[name] begin[{] method[isJawrImageTag, return_type[type[boolean]], modifier[private], parameter[tag]] begin[{] local_variable[type[String], tagName] return[binary_operation[call[tagName.equalsIgnoreCase, parameter[literal["img"]]], ||, binary_operation[call[tagName.equalsIgnoreCase, parameter[literal["input"]]], &&, call[tag.getAttribute, parameter[literal["type"]]]]]] end[}] END[}]
Keyword[private] Keyword[boolean] identifier[isJawrImageTag] operator[SEP] identifier[ComponentTag] identifier[tag] operator[SEP] { identifier[String] identifier[tagName] operator[=] identifier[tag] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[tagName] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] literal[String] operator[SEP] operator[||] operator[SEP] identifier[tagName] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] literal[String] operator[SEP] operator[&&] identifier[tag] operator[SEP] identifier[getAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[equals] operator[SEP] literal[String] operator[SEP] operator[SEP] operator[SEP] operator[SEP] }
public static TcpClientTransport create(String bindAddress, int port) { Objects.requireNonNull(bindAddress, "bindAddress must not be null"); TcpClient tcpClient = TcpClient.create().host(bindAddress).port(port); return create(tcpClient); }
class class_name[name] begin[{] method[create, return_type[type[TcpClientTransport]], modifier[public static], parameter[bindAddress, port]] begin[{] call[Objects.requireNonNull, parameter[member[.bindAddress], literal["bindAddress must not be null"]]] local_variable[type[TcpClient], tcpClient] return[call[.create, parameter[member[.tcpClient]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[TcpClientTransport] identifier[create] operator[SEP] identifier[String] identifier[bindAddress] , Keyword[int] identifier[port] operator[SEP] { identifier[Objects] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[bindAddress] , literal[String] operator[SEP] operator[SEP] identifier[TcpClient] identifier[tcpClient] operator[=] identifier[TcpClient] operator[SEP] identifier[create] operator[SEP] operator[SEP] operator[SEP] identifier[host] operator[SEP] identifier[bindAddress] operator[SEP] operator[SEP] identifier[port] operator[SEP] identifier[port] operator[SEP] operator[SEP] Keyword[return] identifier[create] operator[SEP] identifier[tcpClient] operator[SEP] operator[SEP] }
List<CommitTaskAction> getCommitActions(TaskTrackerStatus tts) { synchronized (lockObject) { List<CommitTaskAction> saveList = new ArrayList<CommitTaskAction>(); List<TaskStatus> taskStatuses = tts.getTaskReports(); if (taskStatuses != null) { for (TaskStatus taskStatus : taskStatuses) { if (taskStatus.getRunState() == TaskStatus.State.COMMIT_PENDING) { TaskAttemptID taskId = taskStatus.getTaskID(); TaskInProgress tip = taskLookupTable.getTIP(taskId); if (tip == null) { continue; } if (tip.shouldCommit(taskId)) { CommitTaskAction commitAction = new CommitTaskAction(taskId); saveList.add(commitAction); LOG.debug(tts.getTrackerName() + " -> CommitTaskAction: " + taskId); } } } } return saveList; } }
class class_name[name] begin[{] method[getCommitActions, return_type[type[List]], modifier[default], parameter[tts]] begin[{] SYNCHRONIZED[member[.lockObject]] BEGIN[{] local_variable[type[List], saveList] local_variable[type[List], taskStatuses] if[binary_operation[member[.taskStatuses], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getRunState, postfix_operators=[], prefix_operators=[], qualifier=taskStatus, selectors=[], type_arguments=None), operandr=MemberReference(member=COMMIT_PENDING, postfix_operators=[], prefix_operators=[], qualifier=TaskStatus.State, selectors=[]), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=getTaskID, postfix_operators=[], prefix_operators=[], qualifier=taskStatus, selectors=[], type_arguments=None), name=taskId)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TaskAttemptID, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=taskId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getTIP, postfix_operators=[], prefix_operators=[], qualifier=taskLookupTable, selectors=[], type_arguments=None), name=tip)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TaskInProgress, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=tip, 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=[ContinueStatement(goto=None, label=None)])), IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=taskId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=shouldCommit, postfix_operators=[], prefix_operators=[], qualifier=tip, selectors=[], type_arguments=None), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[MemberReference(member=taskId, 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=CommitTaskAction, sub_type=None)), name=commitAction)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=CommitTaskAction, sub_type=None)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=commitAction, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=add, postfix_operators=[], prefix_operators=[], qualifier=saveList, selectors=[], type_arguments=None), label=None), StatementExpression(expression=MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getTrackerName, postfix_operators=[], prefix_operators=[], qualifier=tts, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=" -> CommitTaskAction: "), operator=+), operandr=MemberReference(member=taskId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator=+)], member=debug, postfix_operators=[], prefix_operators=[], qualifier=LOG, selectors=[], type_arguments=None), label=None)]))]))]), control=EnhancedForControl(iterable=MemberReference(member=taskStatuses, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=taskStatus)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=TaskStatus, sub_type=None))), label=None) else begin[{] None end[}] return[member[.saveList]] END[}] end[}] END[}]
identifier[List] operator[<] identifier[CommitTaskAction] operator[>] identifier[getCommitActions] operator[SEP] identifier[TaskTrackerStatus] identifier[tts] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[lockObject] operator[SEP] { identifier[List] operator[<] identifier[CommitTaskAction] operator[>] identifier[saveList] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[CommitTaskAction] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[List] operator[<] identifier[TaskStatus] operator[>] identifier[taskStatuses] operator[=] identifier[tts] operator[SEP] identifier[getTaskReports] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[taskStatuses] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[TaskStatus] identifier[taskStatus] operator[:] identifier[taskStatuses] operator[SEP] { Keyword[if] operator[SEP] identifier[taskStatus] operator[SEP] identifier[getRunState] operator[SEP] operator[SEP] operator[==] identifier[TaskStatus] operator[SEP] identifier[State] operator[SEP] identifier[COMMIT_PENDING] operator[SEP] { identifier[TaskAttemptID] identifier[taskId] operator[=] identifier[taskStatus] operator[SEP] identifier[getTaskID] operator[SEP] operator[SEP] operator[SEP] identifier[TaskInProgress] identifier[tip] operator[=] identifier[taskLookupTable] operator[SEP] identifier[getTIP] operator[SEP] identifier[taskId] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[tip] operator[==] Other[null] operator[SEP] { Keyword[continue] operator[SEP] } Keyword[if] operator[SEP] identifier[tip] operator[SEP] identifier[shouldCommit] operator[SEP] identifier[taskId] operator[SEP] operator[SEP] { identifier[CommitTaskAction] identifier[commitAction] operator[=] Keyword[new] identifier[CommitTaskAction] operator[SEP] identifier[taskId] operator[SEP] operator[SEP] identifier[saveList] operator[SEP] identifier[add] operator[SEP] identifier[commitAction] operator[SEP] operator[SEP] identifier[LOG] operator[SEP] identifier[debug] operator[SEP] identifier[tts] operator[SEP] identifier[getTrackerName] operator[SEP] operator[SEP] operator[+] literal[String] operator[+] identifier[taskId] operator[SEP] operator[SEP] } } } } Keyword[return] identifier[saveList] operator[SEP] } }
public static void validArraySlice(final int sliceFrom, final int sliceLength, final int arrayLength, final String message) { if (sliceFrom < 0 || sliceLength < 0) { throw new IndexOutOfBoundsException(message); } if (sliceFrom + sliceLength > arrayLength) { throw new IndexOutOfBoundsException(message); } }
class class_name[name] begin[{] method[validArraySlice, return_type[void], modifier[public static], parameter[sliceFrom, sliceLength, arrayLength, message]] begin[{] if[binary_operation[binary_operation[member[.sliceFrom], <, literal[0]], ||, binary_operation[member[.sliceLength], <, literal[0]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=message, 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=IndexOutOfBoundsException, sub_type=None)), label=None) else begin[{] None end[}] if[binary_operation[binary_operation[member[.sliceFrom], +, member[.sliceLength]], >, member[.arrayLength]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=message, 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=IndexOutOfBoundsException, sub_type=None)), label=None) else begin[{] None end[}] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[validArraySlice] operator[SEP] Keyword[final] Keyword[int] identifier[sliceFrom] , Keyword[final] Keyword[int] identifier[sliceLength] , Keyword[final] Keyword[int] identifier[arrayLength] , Keyword[final] identifier[String] identifier[message] operator[SEP] { Keyword[if] operator[SEP] identifier[sliceFrom] operator[<] Other[0] operator[||] identifier[sliceLength] operator[<] Other[0] operator[SEP] { Keyword[throw] Keyword[new] identifier[IndexOutOfBoundsException] operator[SEP] identifier[message] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[sliceFrom] operator[+] identifier[sliceLength] operator[>] identifier[arrayLength] operator[SEP] { Keyword[throw] Keyword[new] identifier[IndexOutOfBoundsException] operator[SEP] identifier[message] operator[SEP] operator[SEP] } }
private void writeJsonInteger(long num) throws IOException { context.write(); String str = Long.toString(num); boolean escapeNum = context.escapeNum(); if (escapeNum) { transport.write(QUOTE); } try { byte[] buf = str.getBytes("UTF-8"); transport.write(buf); } catch (UnsupportedEncodingException e) { throw new AssertionError(e); } if (escapeNum) { transport.write(QUOTE); } }
class class_name[name] begin[{] method[writeJsonInteger, return_type[void], modifier[private], parameter[num]] begin[{] call[context.write, parameter[]] local_variable[type[String], str] local_variable[type[boolean], escapeNum] if[member[.escapeNum]] begin[{] call[transport.write, parameter[member[.QUOTE]]] else begin[{] None end[}] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="UTF-8")], member=getBytes, postfix_operators=[], prefix_operators=[], qualifier=str, selectors=[], type_arguments=None), name=buf)], modifiers=set(), type=BasicType(dimensions=[None], name=byte)), StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=buf, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=write, postfix_operators=[], prefix_operators=[], qualifier=transport, 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=AssertionError, sub_type=None)), label=None)], label=None, parameter=CatchClauseParameter(annotations=None, modifiers=None, name=e, types=['UnsupportedEncodingException']))], finally_block=None, label=None, resources=None) if[member[.escapeNum]] begin[{] call[transport.write, parameter[member[.QUOTE]]] else begin[{] None end[}] end[}] END[}]
Keyword[private] Keyword[void] identifier[writeJsonInteger] operator[SEP] Keyword[long] identifier[num] operator[SEP] Keyword[throws] identifier[IOException] { identifier[context] operator[SEP] identifier[write] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[str] operator[=] identifier[Long] operator[SEP] identifier[toString] operator[SEP] identifier[num] operator[SEP] operator[SEP] Keyword[boolean] identifier[escapeNum] operator[=] identifier[context] operator[SEP] identifier[escapeNum] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[escapeNum] operator[SEP] { identifier[transport] operator[SEP] identifier[write] operator[SEP] identifier[QUOTE] operator[SEP] operator[SEP] } Keyword[try] { Keyword[byte] operator[SEP] operator[SEP] identifier[buf] operator[=] identifier[str] operator[SEP] identifier[getBytes] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[transport] operator[SEP] identifier[write] operator[SEP] identifier[buf] operator[SEP] operator[SEP] } Keyword[catch] operator[SEP] identifier[UnsupportedEncodingException] identifier[e] operator[SEP] { Keyword[throw] Keyword[new] identifier[AssertionError] operator[SEP] identifier[e] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] identifier[escapeNum] operator[SEP] { identifier[transport] operator[SEP] identifier[write] operator[SEP] identifier[QUOTE] operator[SEP] operator[SEP] } }
private static int remapTerms(KamNode collapsing, KamNode collapseTo, PreparedStatement utps) throws SQLException { int collapsingId = collapsing.getId(); int collapseToId = collapseTo.getId(); utps.setInt(1, collapseToId); utps.setInt(2, collapsingId); return utps.executeUpdate(); }
class class_name[name] begin[{] method[remapTerms, return_type[type[int]], modifier[private static], parameter[collapsing, collapseTo, utps]] begin[{] local_variable[type[int], collapsingId] local_variable[type[int], collapseToId] call[utps.setInt, parameter[literal[1], member[.collapseToId]]] call[utps.setInt, parameter[literal[2], member[.collapsingId]]] return[call[utps.executeUpdate, parameter[]]] end[}] END[}]
Keyword[private] Keyword[static] Keyword[int] identifier[remapTerms] operator[SEP] identifier[KamNode] identifier[collapsing] , identifier[KamNode] identifier[collapseTo] , identifier[PreparedStatement] identifier[utps] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[int] identifier[collapsingId] operator[=] identifier[collapsing] operator[SEP] identifier[getId] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[collapseToId] operator[=] identifier[collapseTo] operator[SEP] identifier[getId] operator[SEP] operator[SEP] operator[SEP] identifier[utps] operator[SEP] identifier[setInt] operator[SEP] Other[1] , identifier[collapseToId] operator[SEP] operator[SEP] identifier[utps] operator[SEP] identifier[setInt] operator[SEP] Other[2] , identifier[collapsingId] operator[SEP] operator[SEP] Keyword[return] identifier[utps] operator[SEP] identifier[executeUpdate] operator[SEP] operator[SEP] operator[SEP] }
public static void getGenotype(int index, Integer alleles[]) { // index++; // double value = (-3 + Math.sqrt(1 + 8 * index)) / 2; // slower than the iterating version, right? // alleles[1] = new Double(Math.ceil(value)).intValue(); // alleles[0] = alleles[1] - ((alleles[1] + 1) * (alleles[1] +2) / 2 - index); int cursor = 0; final int MAX_ALLOWED_ALLELES = 100; // should we allow more than 100 alleles? for (int i = 0; i < MAX_ALLOWED_ALLELES; i++) { for (int j = 0; j <= i; j++) { if (cursor == index) { alleles[0] = j; alleles[1] = i; return; } cursor++; } } }
class class_name[name] begin[{] method[getGenotype, return_type[void], modifier[public static], parameter[index, alleles]] begin[{] local_variable[type[int], cursor] local_variable[type[int], MAX_ALLOWED_ALLELES] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=cursor, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=index, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=None, label=None, then_statement=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=alleles, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))]), type==, value=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), StatementExpression(expression=Assignment(expressionl=MemberReference(member=alleles, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1))]), type==, value=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), label=None), ReturnStatement(expression=None, label=None)])), StatementExpression(expression=MemberReference(member=cursor, postfix_operators=['++'], prefix_operators=[], qualifier=, selectors=[]), label=None)]), control=ForControl(condition=BinaryOperation(operandl=MemberReference(member=j, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=i, 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=j)], modifiers=set(), type=BasicType(dimensions=[], name=int)), update=[MemberReference(member=j, 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=MAX_ALLOWED_ALLELES, 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) end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[getGenotype] operator[SEP] Keyword[int] identifier[index] , identifier[Integer] identifier[alleles] operator[SEP] operator[SEP] operator[SEP] { Keyword[int] identifier[cursor] operator[=] Other[0] operator[SEP] Keyword[final] Keyword[int] identifier[MAX_ALLOWED_ALLELES] operator[=] Other[100] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[MAX_ALLOWED_ALLELES] operator[SEP] identifier[i] operator[++] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[j] operator[=] Other[0] operator[SEP] identifier[j] operator[<=] identifier[i] operator[SEP] identifier[j] operator[++] operator[SEP] { Keyword[if] operator[SEP] identifier[cursor] operator[==] identifier[index] operator[SEP] { identifier[alleles] operator[SEP] Other[0] operator[SEP] operator[=] identifier[j] operator[SEP] identifier[alleles] operator[SEP] Other[1] operator[SEP] operator[=] identifier[i] operator[SEP] Keyword[return] operator[SEP] } identifier[cursor] operator[++] operator[SEP] } } }
public void addDirectedRoute(final TrustGraphNodeId from, final TrustGraphNodeId to) { final TrustGraphNode fromNode = nodes.get(from); fromNode.getRoutingTable().addNeighbor(to); }
class class_name[name] begin[{] method[addDirectedRoute, return_type[void], modifier[public], parameter[from, to]] begin[{] local_variable[type[TrustGraphNode], fromNode] call[fromNode.getRoutingTable, parameter[]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addDirectedRoute] operator[SEP] Keyword[final] identifier[TrustGraphNodeId] identifier[from] , Keyword[final] identifier[TrustGraphNodeId] identifier[to] operator[SEP] { Keyword[final] identifier[TrustGraphNode] identifier[fromNode] operator[=] identifier[nodes] operator[SEP] identifier[get] operator[SEP] identifier[from] operator[SEP] operator[SEP] identifier[fromNode] operator[SEP] identifier[getRoutingTable] operator[SEP] operator[SEP] operator[SEP] identifier[addNeighbor] operator[SEP] identifier[to] operator[SEP] operator[SEP] }
Type fold2(int opcode, Type left, Type right) { try { if (opcode > ByteCodes.preMask) { // we are seeing a composite instruction of the form xcmp; ifxx. // In this case fold both instructions separately. Type t1 = fold2(opcode >> ByteCodes.preShift, left, right); return (t1.constValue() == null) ? t1 : fold1(opcode & ByteCodes.preMask, t1); } else { Object l = left.constValue(); Object r = right.constValue(); switch (opcode) { case iadd: return syms.intType.constType(intValue(l) + intValue(r)); case isub: return syms.intType.constType(intValue(l) - intValue(r)); case imul: return syms.intType.constType(intValue(l) * intValue(r)); case idiv: return syms.intType.constType(intValue(l) / intValue(r)); case imod: return syms.intType.constType(intValue(l) % intValue(r)); case iand: return (left.hasTag(BOOLEAN) ? syms.booleanType : syms.intType) .constType(intValue(l) & intValue(r)); case bool_and: return syms.booleanType.constType(b2i((intValue(l) & intValue(r)) != 0)); case ior: return (left.hasTag(BOOLEAN) ? syms.booleanType : syms.intType) .constType(intValue(l) | intValue(r)); case bool_or: return syms.booleanType.constType(b2i((intValue(l) | intValue(r)) != 0)); case ixor: return (left.hasTag(BOOLEAN) ? syms.booleanType : syms.intType) .constType(intValue(l) ^ intValue(r)); case ishl: case ishll: return syms.intType.constType(intValue(l) << intValue(r)); case ishr: case ishrl: return syms.intType.constType(intValue(l) >> intValue(r)); case iushr: case iushrl: return syms.intType.constType(intValue(l) >>> intValue(r)); case if_icmpeq: return syms.booleanType.constType( b2i(intValue(l) == intValue(r))); case if_icmpne: return syms.booleanType.constType( b2i(intValue(l) != intValue(r))); case if_icmplt: return syms.booleanType.constType( b2i(intValue(l) < intValue(r))); case if_icmpgt: return syms.booleanType.constType( b2i(intValue(l) > intValue(r))); case if_icmple: return syms.booleanType.constType( b2i(intValue(l) <= intValue(r))); case if_icmpge: return syms.booleanType.constType( b2i(intValue(l) >= intValue(r))); case ladd: return syms.longType.constType( Long.valueOf(longValue(l) + longValue(r))); case lsub: return syms.longType.constType( Long.valueOf(longValue(l) - longValue(r))); case lmul: return syms.longType.constType( Long.valueOf(longValue(l) * longValue(r))); case ldiv: return syms.longType.constType( Long.valueOf(longValue(l) / longValue(r))); case lmod: return syms.longType.constType( Long.valueOf(longValue(l) % longValue(r))); case land: return syms.longType.constType( Long.valueOf(longValue(l) & longValue(r))); case lor: return syms.longType.constType( Long.valueOf(longValue(l) | longValue(r))); case lxor: return syms.longType.constType( Long.valueOf(longValue(l) ^ longValue(r))); case lshl: case lshll: return syms.longType.constType( Long.valueOf(longValue(l) << intValue(r))); case lshr: case lshrl: return syms.longType.constType( Long.valueOf(longValue(l) >> intValue(r))); case lushr: return syms.longType.constType( Long.valueOf(longValue(l) >>> intValue(r))); case lcmp: if (longValue(l) < longValue(r)) return syms.intType.constType(minusOne); else if (longValue(l) > longValue(r)) return syms.intType.constType(one); else return syms.intType.constType(zero); case fadd: return syms.floatType.constType( Float.valueOf(floatValue(l) + floatValue(r))); case fsub: return syms.floatType.constType( Float.valueOf(floatValue(l) - floatValue(r))); case fmul: return syms.floatType.constType( Float.valueOf(floatValue(l) * floatValue(r))); case fdiv: return syms.floatType.constType( Float.valueOf(floatValue(l) / floatValue(r))); case fmod: return syms.floatType.constType( Float.valueOf(floatValue(l) % floatValue(r))); case fcmpg: case fcmpl: if (floatValue(l) < floatValue(r)) return syms.intType.constType(minusOne); else if (floatValue(l) > floatValue(r)) return syms.intType.constType(one); else if (floatValue(l) == floatValue(r)) return syms.intType.constType(zero); else if (opcode == fcmpg) return syms.intType.constType(one); else return syms.intType.constType(minusOne); case dadd: return syms.doubleType.constType( Double.valueOf(doubleValue(l) + doubleValue(r))); case dsub: return syms.doubleType.constType( Double.valueOf(doubleValue(l) - doubleValue(r))); case dmul: return syms.doubleType.constType( Double.valueOf(doubleValue(l) * doubleValue(r))); case ddiv: return syms.doubleType.constType( Double.valueOf(doubleValue(l) / doubleValue(r))); case dmod: return syms.doubleType.constType( Double.valueOf(doubleValue(l) % doubleValue(r))); case dcmpg: case dcmpl: if (doubleValue(l) < doubleValue(r)) return syms.intType.constType(minusOne); else if (doubleValue(l) > doubleValue(r)) return syms.intType.constType(one); else if (doubleValue(l) == doubleValue(r)) return syms.intType.constType(zero); else if (opcode == dcmpg) return syms.intType.constType(one); else return syms.intType.constType(minusOne); case if_acmpeq: return syms.booleanType.constType(b2i(l.equals(r))); case if_acmpne: return syms.booleanType.constType(b2i(!l.equals(r))); case string_add: return syms.stringType.constType( left.stringValue() + right.stringValue()); default: return null; } } } catch (ArithmeticException e) { return null; } }
class class_name[name] begin[{] method[fold2, return_type[type[Type]], modifier[default], parameter[opcode, left, right]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=opcode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=preMask, postfix_operators=[], prefix_operators=[], qualifier=ByteCodes, selectors=[]), operator=>), else_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=constValue, postfix_operators=[], prefix_operators=[], qualifier=left, selectors=[], type_arguments=None), name=l)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=constValue, postfix_operators=[], prefix_operators=[], qualifier=right, selectors=[], type_arguments=None), name=r)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Object, sub_type=None)), SwitchStatement(cases=[SwitchStatementCase(case=['iadd'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=+)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['isub'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=-)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['imul'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=*)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['idiv'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=/)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['imod'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=%)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['iand'], statements=[ReturnStatement(expression=TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=BOOLEAN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=hasTag, postfix_operators=[], prefix_operators=[], qualifier=left, selectors=[], type_arguments=None), if_false=MemberReference(member=intType, postfix_operators=[], prefix_operators=[], qualifier=syms, selectors=[]), if_true=MemberReference(member=booleanType, postfix_operators=[], prefix_operators=[], qualifier=syms, selectors=[])), label=None)]), SwitchStatementCase(case=['bool_and'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=&), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=!=)], member=b2i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.booleanType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['ior'], statements=[ReturnStatement(expression=TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=BOOLEAN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=hasTag, postfix_operators=[], prefix_operators=[], qualifier=left, selectors=[], type_arguments=None), if_false=MemberReference(member=intType, postfix_operators=[], prefix_operators=[], qualifier=syms, selectors=[]), if_true=MemberReference(member=booleanType, postfix_operators=[], prefix_operators=[], qualifier=syms, selectors=[])), label=None)]), SwitchStatementCase(case=['bool_or'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=|), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0), operator=!=)], member=b2i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.booleanType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['ixor'], statements=[ReturnStatement(expression=TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=BOOLEAN, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=hasTag, postfix_operators=[], prefix_operators=[], qualifier=left, selectors=[], type_arguments=None), if_false=MemberReference(member=intType, postfix_operators=[], prefix_operators=[], qualifier=syms, selectors=[]), if_true=MemberReference(member=booleanType, postfix_operators=[], prefix_operators=[], qualifier=syms, selectors=[])), label=None)]), SwitchStatementCase(case=['ishl', 'ishll'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=<<)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['ishr', 'ishrl'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=>>)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['iushr', 'iushrl'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=>>>)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['if_icmpeq'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator===)], member=b2i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.booleanType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['if_icmpne'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=!=)], member=b2i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.booleanType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['if_icmplt'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=<)], member=b2i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.booleanType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['if_icmpgt'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=>)], member=b2i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.booleanType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['if_icmple'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=<=)], member=b2i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.booleanType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['if_icmpge'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=>=)], member=b2i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.booleanType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['ladd'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=+)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.longType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['lsub'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=-)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.longType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['lmul'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=*)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.longType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['ldiv'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=/)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.longType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['lmod'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=%)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.longType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['land'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=&)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.longType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['lor'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=|)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.longType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['lxor'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=^)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.longType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['lshl', 'lshll'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=<<)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.longType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['lshr', 'lshrl'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=>>)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.longType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['lushr'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=intValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=>>>)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Long, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.longType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['lcmp'], statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=<), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=longValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=>), else_statement=ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=zero, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None), label=None, then_statement=ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=one, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)), label=None, then_statement=ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=minusOne, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None))]), SwitchStatementCase(case=['fadd'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=+)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.floatType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['fsub'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=-)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.floatType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['fmul'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=*)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.floatType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['fdiv'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=/)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.floatType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['fmod'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=%)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Float, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.floatType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['fcmpg', 'fcmpl'], statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=<), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=>), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=floatValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=opcode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=fcmpg, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=minusOne, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None), label=None, then_statement=ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=one, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)), label=None, then_statement=ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=zero, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)), label=None, then_statement=ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=one, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)), label=None, then_statement=ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=minusOne, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None))]), SwitchStatementCase(case=['dadd'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=+)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.doubleType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['dsub'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=-)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.doubleType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['dmul'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=*)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.doubleType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['ddiv'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=/)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.doubleType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['dmod'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=%)], member=valueOf, postfix_operators=[], prefix_operators=[], qualifier=Double, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.doubleType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['dcmpg', 'dcmpl'], statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=<), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator=>), else_statement=IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=l, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=doubleValue, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), operator===), else_statement=IfStatement(condition=BinaryOperation(operandl=MemberReference(member=opcode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=dcmpg, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operator===), else_statement=ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=minusOne, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None), label=None, then_statement=ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=one, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)), label=None, then_statement=ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=zero, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)), label=None, then_statement=ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=one, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None)), label=None, then_statement=ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=minusOne, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.intType, selectors=[], type_arguments=None), label=None))]), SwitchStatementCase(case=['if_acmpeq'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equals, postfix_operators=[], prefix_operators=[], qualifier=l, selectors=[], type_arguments=None)], member=b2i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.booleanType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['if_acmpne'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=r, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=equals, postfix_operators=[], prefix_operators=['!'], qualifier=l, selectors=[], type_arguments=None)], member=b2i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.booleanType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=['string_add'], statements=[ReturnStatement(expression=MethodInvocation(arguments=[BinaryOperation(operandl=MethodInvocation(arguments=[], member=stringValue, postfix_operators=[], prefix_operators=[], qualifier=left, selectors=[], type_arguments=None), operandr=MethodInvocation(arguments=[], member=stringValue, postfix_operators=[], prefix_operators=[], qualifier=right, selectors=[], type_arguments=None), operator=+)], member=constType, postfix_operators=[], prefix_operators=[], qualifier=syms.stringType, selectors=[], type_arguments=None), label=None)]), SwitchStatementCase(case=[], statements=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), label=None)])], expression=MemberReference(member=opcode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None)]), label=None, then_statement=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=opcode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=preShift, postfix_operators=[], prefix_operators=[], qualifier=ByteCodes, selectors=[]), operator=>>), MemberReference(member=left, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=right, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fold2, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), name=t1)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=Type, sub_type=None)), ReturnStatement(expression=TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=constValue, postfix_operators=[], prefix_operators=[], qualifier=t1, selectors=[], type_arguments=None), operandr=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), operator===), if_false=MethodInvocation(arguments=[BinaryOperation(operandl=MemberReference(member=opcode, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=preMask, postfix_operators=[], prefix_operators=[], qualifier=ByteCodes, selectors=[]), operator=&), MemberReference(member=t1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=fold1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), if_true=MemberReference(member=t1, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])), 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=['ArithmeticException']))], finally_block=None, label=None, resources=None) end[}] END[}]
identifier[Type] identifier[fold2] operator[SEP] Keyword[int] identifier[opcode] , identifier[Type] identifier[left] , identifier[Type] identifier[right] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[opcode] operator[>] identifier[ByteCodes] operator[SEP] identifier[preMask] operator[SEP] { identifier[Type] identifier[t1] operator[=] identifier[fold2] operator[SEP] identifier[opcode] operator[>] operator[>] identifier[ByteCodes] operator[SEP] identifier[preShift] , identifier[left] , identifier[right] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[t1] operator[SEP] identifier[constValue] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] operator[?] identifier[t1] operator[:] identifier[fold1] operator[SEP] identifier[opcode] operator[&] identifier[ByteCodes] operator[SEP] identifier[preMask] , identifier[t1] operator[SEP] operator[SEP] } Keyword[else] { identifier[Object] identifier[l] operator[=] identifier[left] operator[SEP] identifier[constValue] operator[SEP] operator[SEP] operator[SEP] identifier[Object] identifier[r] operator[=] identifier[right] operator[SEP] identifier[constValue] operator[SEP] operator[SEP] operator[SEP] Keyword[switch] operator[SEP] identifier[opcode] operator[SEP] { Keyword[case] identifier[iadd] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[+] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[isub] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[-] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[imul] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[*] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[idiv] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[/] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[imod] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[%] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[iand] operator[:] Keyword[return] operator[SEP] identifier[left] operator[SEP] identifier[hasTag] operator[SEP] identifier[BOOLEAN] operator[SEP] operator[?] identifier[syms] operator[SEP] identifier[booleanType] operator[:] identifier[syms] operator[SEP] identifier[intType] operator[SEP] operator[SEP] identifier[constType] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[&] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[bool_and] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[booleanType] operator[SEP] identifier[constType] operator[SEP] identifier[b2i] operator[SEP] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[&] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[!=] Other[0] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[ior] operator[:] Keyword[return] operator[SEP] identifier[left] operator[SEP] identifier[hasTag] operator[SEP] identifier[BOOLEAN] operator[SEP] operator[?] identifier[syms] operator[SEP] identifier[booleanType] operator[:] identifier[syms] operator[SEP] identifier[intType] operator[SEP] operator[SEP] identifier[constType] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[|] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[bool_or] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[booleanType] operator[SEP] identifier[constType] operator[SEP] identifier[b2i] operator[SEP] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[|] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[!=] Other[0] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[ixor] operator[:] Keyword[return] operator[SEP] identifier[left] operator[SEP] identifier[hasTag] operator[SEP] identifier[BOOLEAN] operator[SEP] operator[?] identifier[syms] operator[SEP] identifier[booleanType] operator[:] identifier[syms] operator[SEP] identifier[intType] operator[SEP] operator[SEP] identifier[constType] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[^] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[ishl] operator[:] Keyword[case] identifier[ishll] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[<<] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[ishr] operator[:] Keyword[case] identifier[ishrl] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[>] operator[>] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[iushr] operator[:] Keyword[case] identifier[iushrl] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[>] operator[>] operator[>] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[if_icmpeq] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[booleanType] operator[SEP] identifier[constType] operator[SEP] identifier[b2i] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[==] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[if_icmpne] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[booleanType] operator[SEP] identifier[constType] operator[SEP] identifier[b2i] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[!=] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[if_icmplt] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[booleanType] operator[SEP] identifier[constType] operator[SEP] identifier[b2i] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[<] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[if_icmpgt] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[booleanType] operator[SEP] identifier[constType] operator[SEP] identifier[b2i] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[>] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[if_icmple] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[booleanType] operator[SEP] identifier[constType] operator[SEP] identifier[b2i] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[<=] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[if_icmpge] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[booleanType] operator[SEP] identifier[constType] operator[SEP] identifier[b2i] operator[SEP] identifier[intValue] operator[SEP] identifier[l] operator[SEP] operator[>=] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[ladd] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[longType] operator[SEP] identifier[constType] operator[SEP] identifier[Long] operator[SEP] identifier[valueOf] operator[SEP] identifier[longValue] operator[SEP] identifier[l] operator[SEP] operator[+] identifier[longValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[lsub] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[longType] operator[SEP] identifier[constType] operator[SEP] identifier[Long] operator[SEP] identifier[valueOf] operator[SEP] identifier[longValue] operator[SEP] identifier[l] operator[SEP] operator[-] identifier[longValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[lmul] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[longType] operator[SEP] identifier[constType] operator[SEP] identifier[Long] operator[SEP] identifier[valueOf] operator[SEP] identifier[longValue] operator[SEP] identifier[l] operator[SEP] operator[*] identifier[longValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[ldiv] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[longType] operator[SEP] identifier[constType] operator[SEP] identifier[Long] operator[SEP] identifier[valueOf] operator[SEP] identifier[longValue] operator[SEP] identifier[l] operator[SEP] operator[/] identifier[longValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[lmod] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[longType] operator[SEP] identifier[constType] operator[SEP] identifier[Long] operator[SEP] identifier[valueOf] operator[SEP] identifier[longValue] operator[SEP] identifier[l] operator[SEP] operator[%] identifier[longValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[land] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[longType] operator[SEP] identifier[constType] operator[SEP] identifier[Long] operator[SEP] identifier[valueOf] operator[SEP] identifier[longValue] operator[SEP] identifier[l] operator[SEP] operator[&] identifier[longValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[lor] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[longType] operator[SEP] identifier[constType] operator[SEP] identifier[Long] operator[SEP] identifier[valueOf] operator[SEP] identifier[longValue] operator[SEP] identifier[l] operator[SEP] operator[|] identifier[longValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[lxor] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[longType] operator[SEP] identifier[constType] operator[SEP] identifier[Long] operator[SEP] identifier[valueOf] operator[SEP] identifier[longValue] operator[SEP] identifier[l] operator[SEP] operator[^] identifier[longValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[lshl] operator[:] Keyword[case] identifier[lshll] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[longType] operator[SEP] identifier[constType] operator[SEP] identifier[Long] operator[SEP] identifier[valueOf] operator[SEP] identifier[longValue] operator[SEP] identifier[l] operator[SEP] operator[<<] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[lshr] operator[:] Keyword[case] identifier[lshrl] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[longType] operator[SEP] identifier[constType] operator[SEP] identifier[Long] operator[SEP] identifier[valueOf] operator[SEP] identifier[longValue] operator[SEP] identifier[l] operator[SEP] operator[>] operator[>] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[lushr] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[longType] operator[SEP] identifier[constType] operator[SEP] identifier[Long] operator[SEP] identifier[valueOf] operator[SEP] identifier[longValue] operator[SEP] identifier[l] operator[SEP] operator[>] operator[>] operator[>] identifier[intValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[lcmp] operator[:] Keyword[if] operator[SEP] identifier[longValue] operator[SEP] identifier[l] operator[SEP] operator[<] identifier[longValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[minusOne] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[longValue] operator[SEP] identifier[l] operator[SEP] operator[>] identifier[longValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[one] operator[SEP] operator[SEP] Keyword[else] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[zero] operator[SEP] operator[SEP] Keyword[case] identifier[fadd] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[floatType] operator[SEP] identifier[constType] operator[SEP] identifier[Float] operator[SEP] identifier[valueOf] operator[SEP] identifier[floatValue] operator[SEP] identifier[l] operator[SEP] operator[+] identifier[floatValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[fsub] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[floatType] operator[SEP] identifier[constType] operator[SEP] identifier[Float] operator[SEP] identifier[valueOf] operator[SEP] identifier[floatValue] operator[SEP] identifier[l] operator[SEP] operator[-] identifier[floatValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[fmul] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[floatType] operator[SEP] identifier[constType] operator[SEP] identifier[Float] operator[SEP] identifier[valueOf] operator[SEP] identifier[floatValue] operator[SEP] identifier[l] operator[SEP] operator[*] identifier[floatValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[fdiv] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[floatType] operator[SEP] identifier[constType] operator[SEP] identifier[Float] operator[SEP] identifier[valueOf] operator[SEP] identifier[floatValue] operator[SEP] identifier[l] operator[SEP] operator[/] identifier[floatValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[fmod] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[floatType] operator[SEP] identifier[constType] operator[SEP] identifier[Float] operator[SEP] identifier[valueOf] operator[SEP] identifier[floatValue] operator[SEP] identifier[l] operator[SEP] operator[%] identifier[floatValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[fcmpg] operator[:] Keyword[case] identifier[fcmpl] operator[:] Keyword[if] operator[SEP] identifier[floatValue] operator[SEP] identifier[l] operator[SEP] operator[<] identifier[floatValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[minusOne] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[floatValue] operator[SEP] identifier[l] operator[SEP] operator[>] identifier[floatValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[one] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[floatValue] operator[SEP] identifier[l] operator[SEP] operator[==] identifier[floatValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[zero] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[opcode] operator[==] identifier[fcmpg] operator[SEP] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[one] operator[SEP] operator[SEP] Keyword[else] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[minusOne] operator[SEP] operator[SEP] Keyword[case] identifier[dadd] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[doubleType] operator[SEP] identifier[constType] operator[SEP] identifier[Double] operator[SEP] identifier[valueOf] operator[SEP] identifier[doubleValue] operator[SEP] identifier[l] operator[SEP] operator[+] identifier[doubleValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[dsub] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[doubleType] operator[SEP] identifier[constType] operator[SEP] identifier[Double] operator[SEP] identifier[valueOf] operator[SEP] identifier[doubleValue] operator[SEP] identifier[l] operator[SEP] operator[-] identifier[doubleValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[dmul] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[doubleType] operator[SEP] identifier[constType] operator[SEP] identifier[Double] operator[SEP] identifier[valueOf] operator[SEP] identifier[doubleValue] operator[SEP] identifier[l] operator[SEP] operator[*] identifier[doubleValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[ddiv] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[doubleType] operator[SEP] identifier[constType] operator[SEP] identifier[Double] operator[SEP] identifier[valueOf] operator[SEP] identifier[doubleValue] operator[SEP] identifier[l] operator[SEP] operator[/] identifier[doubleValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[dmod] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[doubleType] operator[SEP] identifier[constType] operator[SEP] identifier[Double] operator[SEP] identifier[valueOf] operator[SEP] identifier[doubleValue] operator[SEP] identifier[l] operator[SEP] operator[%] identifier[doubleValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[dcmpg] operator[:] Keyword[case] identifier[dcmpl] operator[:] Keyword[if] operator[SEP] identifier[doubleValue] operator[SEP] identifier[l] operator[SEP] operator[<] identifier[doubleValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[minusOne] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[doubleValue] operator[SEP] identifier[l] operator[SEP] operator[>] identifier[doubleValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[one] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[doubleValue] operator[SEP] identifier[l] operator[SEP] operator[==] identifier[doubleValue] operator[SEP] identifier[r] operator[SEP] operator[SEP] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[zero] operator[SEP] operator[SEP] Keyword[else] Keyword[if] operator[SEP] identifier[opcode] operator[==] identifier[dcmpg] operator[SEP] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[one] operator[SEP] operator[SEP] Keyword[else] Keyword[return] identifier[syms] operator[SEP] identifier[intType] operator[SEP] identifier[constType] operator[SEP] identifier[minusOne] operator[SEP] operator[SEP] Keyword[case] identifier[if_acmpeq] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[booleanType] operator[SEP] identifier[constType] operator[SEP] identifier[b2i] operator[SEP] identifier[l] operator[SEP] identifier[equals] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[if_acmpne] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[booleanType] operator[SEP] identifier[constType] operator[SEP] identifier[b2i] operator[SEP] operator[!] identifier[l] operator[SEP] identifier[equals] operator[SEP] identifier[r] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[case] identifier[string_add] operator[:] Keyword[return] identifier[syms] operator[SEP] identifier[stringType] operator[SEP] identifier[constType] operator[SEP] identifier[left] operator[SEP] identifier[stringValue] operator[SEP] operator[SEP] operator[+] identifier[right] operator[SEP] identifier[stringValue] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[default] operator[:] Keyword[return] Other[null] operator[SEP] } } } Keyword[catch] operator[SEP] identifier[ArithmeticException] identifier[e] operator[SEP] { Keyword[return] Other[null] operator[SEP] } }
public PackedDecimal add(BigDecimal summand) { BigDecimal summe = toBigDecimal().add(summand); return PackedDecimal.valueOf(summe); }
class class_name[name] begin[{] method[add, return_type[type[PackedDecimal]], modifier[public], parameter[summand]] begin[{] local_variable[type[BigDecimal], summe] return[call[PackedDecimal.valueOf, parameter[member[.summe]]]] end[}] END[}]
Keyword[public] identifier[PackedDecimal] identifier[add] operator[SEP] identifier[BigDecimal] identifier[summand] operator[SEP] { identifier[BigDecimal] identifier[summe] operator[=] identifier[toBigDecimal] operator[SEP] operator[SEP] operator[SEP] identifier[add] operator[SEP] identifier[summand] operator[SEP] operator[SEP] Keyword[return] identifier[PackedDecimal] operator[SEP] identifier[valueOf] operator[SEP] identifier[summe] operator[SEP] operator[SEP] }
public WsFederationCredential createCredentialFromToken(final Assertion assertion) { val retrievedOn = ZonedDateTime.now(ZoneOffset.UTC); LOGGER.debug("Retrieved on [{}]", retrievedOn); val credential = new WsFederationCredential(); credential.setRetrievedOn(retrievedOn); credential.setId(assertion.getID()); credential.setIssuer(assertion.getIssuer()); credential.setIssuedOn(ZonedDateTime.parse(assertion.getIssueInstant().toDateTimeISO().toString())); val conditions = assertion.getConditions(); if (conditions != null) { credential.setNotBefore(ZonedDateTime.parse(conditions.getNotBefore().toDateTimeISO().toString())); credential.setNotOnOrAfter(ZonedDateTime.parse(conditions.getNotOnOrAfter().toDateTimeISO().toString())); if (!conditions.getAudienceRestrictionConditions().isEmpty()) { credential.setAudience(conditions.getAudienceRestrictionConditions().get(0).getAudiences().get(0).getUri()); } } if (!assertion.getAuthenticationStatements().isEmpty()) { credential.setAuthenticationMethod(assertion.getAuthenticationStatements().get(0).getAuthenticationMethod()); } //retrieve an attributes from the assertion val attributes = new HashMap<String, List<Object>>(); assertion.getAttributeStatements().stream().flatMap(attributeStatement -> attributeStatement.getAttributes().stream()).forEach(item -> { LOGGER.debug("Processed attribute: [{}]", item.getAttributeName()); final List<Object> itemList = item.getAttributeValues().stream() .map(xmlObject -> ((XSAny) xmlObject).getTextContent()) .collect(Collectors.toList()); if (!itemList.isEmpty()) { attributes.put(item.getAttributeName(), itemList); } }); credential.setAttributes(attributes); LOGGER.debug("Credential: [{}]", credential); return credential; }
class class_name[name] begin[{] method[createCredentialFromToken, return_type[type[WsFederationCredential]], modifier[public], parameter[assertion]] begin[{] local_variable[type[val], retrievedOn] call[LOGGER.debug, parameter[literal["Retrieved on [{}]"], member[.retrievedOn]]] local_variable[type[val], credential] call[credential.setRetrievedOn, parameter[member[.retrievedOn]]] call[credential.setId, parameter[call[assertion.getID, parameter[]]]] call[credential.setIssuer, parameter[call[assertion.getIssuer, parameter[]]]] call[credential.setIssuedOn, parameter[call[ZonedDateTime.parse, parameter[call[assertion.getIssueInstant, parameter[]]]]]] local_variable[type[val], conditions] if[binary_operation[member[.conditions], !=, literal[null]]] begin[{] call[credential.setNotBefore, parameter[call[ZonedDateTime.parse, parameter[call[conditions.getNotBefore, parameter[]]]]]] call[credential.setNotOnOrAfter, parameter[call[ZonedDateTime.parse, parameter[call[conditions.getNotOnOrAfter, parameter[]]]]]] if[call[conditions.getAudienceRestrictionConditions, parameter[]]] begin[{] call[credential.setAudience, parameter[call[conditions.getAudienceRestrictionConditions, parameter[]]]] else begin[{] None end[}] else begin[{] None end[}] if[call[assertion.getAuthenticationStatements, parameter[]]] begin[{] call[credential.setAuthenticationMethod, parameter[call[assertion.getAuthenticationStatements, parameter[]]]] else begin[{] None end[}] local_variable[type[val], attributes] call[assertion.getAttributeStatements, parameter[]] call[credential.setAttributes, parameter[member[.attributes]]] call[LOGGER.debug, parameter[literal["Credential: [{}]"], member[.credential]]] return[member[.credential]] end[}] END[}]
Keyword[public] identifier[WsFederationCredential] identifier[createCredentialFromToken] operator[SEP] Keyword[final] identifier[Assertion] identifier[assertion] operator[SEP] { identifier[val] identifier[retrievedOn] operator[=] identifier[ZonedDateTime] operator[SEP] identifier[now] operator[SEP] identifier[ZoneOffset] operator[SEP] identifier[UTC] operator[SEP] operator[SEP] identifier[LOGGER] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[retrievedOn] operator[SEP] operator[SEP] identifier[val] identifier[credential] operator[=] Keyword[new] identifier[WsFederationCredential] operator[SEP] operator[SEP] operator[SEP] identifier[credential] operator[SEP] identifier[setRetrievedOn] operator[SEP] identifier[retrievedOn] operator[SEP] operator[SEP] identifier[credential] operator[SEP] identifier[setId] operator[SEP] identifier[assertion] operator[SEP] identifier[getID] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[credential] operator[SEP] identifier[setIssuer] operator[SEP] identifier[assertion] operator[SEP] identifier[getIssuer] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[credential] operator[SEP] identifier[setIssuedOn] operator[SEP] identifier[ZonedDateTime] operator[SEP] identifier[parse] operator[SEP] identifier[assertion] operator[SEP] identifier[getIssueInstant] operator[SEP] operator[SEP] operator[SEP] identifier[toDateTimeISO] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[val] identifier[conditions] operator[=] identifier[assertion] operator[SEP] identifier[getConditions] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[conditions] operator[!=] Other[null] operator[SEP] { identifier[credential] operator[SEP] identifier[setNotBefore] operator[SEP] identifier[ZonedDateTime] operator[SEP] identifier[parse] operator[SEP] identifier[conditions] operator[SEP] identifier[getNotBefore] operator[SEP] operator[SEP] operator[SEP] identifier[toDateTimeISO] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[credential] operator[SEP] identifier[setNotOnOrAfter] operator[SEP] identifier[ZonedDateTime] operator[SEP] identifier[parse] operator[SEP] identifier[conditions] operator[SEP] identifier[getNotOnOrAfter] operator[SEP] operator[SEP] operator[SEP] identifier[toDateTimeISO] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[conditions] operator[SEP] identifier[getAudienceRestrictionConditions] operator[SEP] operator[SEP] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { identifier[credential] operator[SEP] identifier[setAudience] operator[SEP] identifier[conditions] operator[SEP] identifier[getAudienceRestrictionConditions] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[getAudiences] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[getUri] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } } Keyword[if] operator[SEP] operator[!] identifier[assertion] operator[SEP] identifier[getAuthenticationStatements] operator[SEP] operator[SEP] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { identifier[credential] operator[SEP] identifier[setAuthenticationMethod] operator[SEP] identifier[assertion] operator[SEP] identifier[getAuthenticationStatements] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[getAuthenticationMethod] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[val] identifier[attributes] operator[=] Keyword[new] identifier[HashMap] operator[<] identifier[String] , identifier[List] operator[<] identifier[Object] operator[>] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[assertion] operator[SEP] identifier[getAttributeStatements] operator[SEP] operator[SEP] operator[SEP] identifier[stream] operator[SEP] operator[SEP] operator[SEP] identifier[flatMap] operator[SEP] identifier[attributeStatement] operator[->] identifier[attributeStatement] operator[SEP] identifier[getAttributes] operator[SEP] operator[SEP] operator[SEP] identifier[stream] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[forEach] operator[SEP] identifier[item] operator[->] { identifier[LOGGER] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[item] operator[SEP] identifier[getAttributeName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[Object] operator[>] identifier[itemList] operator[=] identifier[item] operator[SEP] identifier[getAttributeValues] operator[SEP] operator[SEP] operator[SEP] identifier[stream] operator[SEP] operator[SEP] operator[SEP] identifier[map] operator[SEP] identifier[xmlObject] operator[->] operator[SEP] operator[SEP] identifier[XSAny] operator[SEP] identifier[xmlObject] operator[SEP] operator[SEP] identifier[getTextContent] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[collect] operator[SEP] identifier[Collectors] operator[SEP] identifier[toList] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[itemList] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { identifier[attributes] operator[SEP] identifier[put] operator[SEP] identifier[item] operator[SEP] identifier[getAttributeName] operator[SEP] operator[SEP] , identifier[itemList] operator[SEP] operator[SEP] } } operator[SEP] operator[SEP] identifier[credential] operator[SEP] identifier[setAttributes] operator[SEP] identifier[attributes] operator[SEP] operator[SEP] identifier[LOGGER] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[credential] operator[SEP] operator[SEP] Keyword[return] identifier[credential] operator[SEP] }
public DataBulkRequest insertBefore(CRUDRequest request, CRUDRequest before) { this.requests.add(requests.indexOf(before), request); return this; }
class class_name[name] begin[{] method[insertBefore, return_type[type[DataBulkRequest]], modifier[public], parameter[request, before]] begin[{] THIS[member[None.requests]call[None.add, parameter[call[requests.indexOf, parameter[member[.before]]], member[.request]]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[DataBulkRequest] identifier[insertBefore] operator[SEP] identifier[CRUDRequest] identifier[request] , identifier[CRUDRequest] identifier[before] operator[SEP] { Keyword[this] operator[SEP] identifier[requests] operator[SEP] identifier[add] operator[SEP] identifier[requests] operator[SEP] identifier[indexOf] operator[SEP] identifier[before] operator[SEP] , identifier[request] operator[SEP] operator[SEP] Keyword[return] Keyword[this] operator[SEP] }
public static String decodeBase64(String content, Charset charset, TestContext context) { return new DecodeBase64Function().execute(Arrays.asList(content, charset.displayName()), context); }
class class_name[name] begin[{] method[decodeBase64, return_type[type[String]], modifier[public static], parameter[content, charset, context]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=content, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=displayName, postfix_operators=[], prefix_operators=[], qualifier=charset, selectors=[], type_arguments=None)], member=asList, postfix_operators=[], prefix_operators=[], qualifier=Arrays, selectors=[], type_arguments=None), MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=execute, postfix_operators=None, prefix_operators=None, qualifier=None, selectors=None, type_arguments=None)], type=ReferenceType(arguments=None, dimensions=None, name=DecodeBase64Function, sub_type=None))] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[decodeBase64] operator[SEP] identifier[String] identifier[content] , identifier[Charset] identifier[charset] , identifier[TestContext] identifier[context] operator[SEP] { Keyword[return] Keyword[new] identifier[DecodeBase64Function] operator[SEP] operator[SEP] operator[SEP] identifier[execute] operator[SEP] identifier[Arrays] operator[SEP] identifier[asList] operator[SEP] identifier[content] , identifier[charset] operator[SEP] identifier[displayName] operator[SEP] operator[SEP] operator[SEP] , identifier[context] operator[SEP] operator[SEP] }
private synchronized void updateEffectiveLevel(ClassLoader loader) { if (loader == null) loader = _systemClassLoader; int oldEffectiveLevel = getEffectiveLevel(loader); Level newEffectiveLevel = calculateEffectiveLevel(loader); /* if (loader == _systemClassLoader) { _finestEffectiveLevel = newEffectiveLevel; _finestEffectiveLevelValue = newEffectiveLevel.intValue(); super.setLevel(_finestEffectiveLevel); } */ if (oldEffectiveLevel == newEffectiveLevel.intValue() && loader != _systemClassLoader) return; _finestEffectiveLevel = newEffectiveLevel; _hasLocalEffectiveLevel = false; updateEffectiveLevelPart(_systemClassLoader); updateEffectiveLevelPart(loader); for (int i = 0; i < _loaders.size(); i++) { WeakReference<ClassLoader> loaderRef = _loaders.get(i); ClassLoader classLoader = loaderRef.get(); if (classLoader != null) updateEffectiveLevelPart(classLoader); } super.setLevel(_finestEffectiveLevel); _finestEffectiveLevelValue = _finestEffectiveLevel.intValue(); updateChildren(); }
class class_name[name] begin[{] method[updateEffectiveLevel, return_type[void], modifier[synchronized private], parameter[loader]] begin[{] if[binary_operation[member[.loader], ==, literal[null]]] begin[{] assign[member[.loader], member[._systemClassLoader]] else begin[{] None end[}] local_variable[type[int], oldEffectiveLevel] local_variable[type[Level], newEffectiveLevel] if[binary_operation[binary_operation[member[.oldEffectiveLevel], ==, call[newEffectiveLevel.intValue, parameter[]]], &&, binary_operation[member[.loader], !=, member[._systemClassLoader]]]] begin[{] return[None] else begin[{] None end[}] assign[member[._finestEffectiveLevel], member[.newEffectiveLevel]] assign[member[._hasLocalEffectiveLevel], literal[false]] call[.updateEffectiveLevelPart, parameter[member[._systemClassLoader]]] call[.updateEffectiveLevelPart, parameter[member[.loader]]] 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=_loaders, selectors=[], type_arguments=None), name=loaderRef)], modifiers=set(), type=ReferenceType(arguments=[TypeArgument(pattern_type=None, type=ReferenceType(arguments=None, dimensions=[], name=ClassLoader, sub_type=None))], dimensions=[], name=WeakReference, sub_type=None)), LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=loaderRef, selectors=[], type_arguments=None), name=classLoader)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=ClassLoader, sub_type=None)), IfStatement(condition=BinaryOperation(operandl=MemberReference(member=classLoader, 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=MethodInvocation(arguments=[MemberReference(member=classLoader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=updateEffectiveLevelPart, postfix_operators=[], prefix_operators=[], qualifier=, 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=_loaders, 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) SuperMethodInvocation(arguments=[MemberReference(member=_finestEffectiveLevel, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setLevel, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) assign[member[._finestEffectiveLevelValue], call[_finestEffectiveLevel.intValue, parameter[]]] call[.updateChildren, parameter[]] end[}] END[}]
Keyword[private] Keyword[synchronized] Keyword[void] identifier[updateEffectiveLevel] operator[SEP] identifier[ClassLoader] identifier[loader] operator[SEP] { Keyword[if] operator[SEP] identifier[loader] operator[==] Other[null] operator[SEP] identifier[loader] operator[=] identifier[_systemClassLoader] operator[SEP] Keyword[int] identifier[oldEffectiveLevel] operator[=] identifier[getEffectiveLevel] operator[SEP] identifier[loader] operator[SEP] operator[SEP] identifier[Level] identifier[newEffectiveLevel] operator[=] identifier[calculateEffectiveLevel] operator[SEP] identifier[loader] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[oldEffectiveLevel] operator[==] identifier[newEffectiveLevel] operator[SEP] identifier[intValue] operator[SEP] operator[SEP] operator[&&] identifier[loader] operator[!=] identifier[_systemClassLoader] operator[SEP] Keyword[return] operator[SEP] identifier[_finestEffectiveLevel] operator[=] identifier[newEffectiveLevel] operator[SEP] identifier[_hasLocalEffectiveLevel] operator[=] literal[boolean] operator[SEP] identifier[updateEffectiveLevelPart] operator[SEP] identifier[_systemClassLoader] operator[SEP] operator[SEP] identifier[updateEffectiveLevelPart] operator[SEP] identifier[loader] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[_loaders] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] identifier[i] operator[++] operator[SEP] { identifier[WeakReference] operator[<] identifier[ClassLoader] operator[>] identifier[loaderRef] operator[=] identifier[_loaders] operator[SEP] identifier[get] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[ClassLoader] identifier[classLoader] operator[=] identifier[loaderRef] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[classLoader] operator[!=] Other[null] operator[SEP] identifier[updateEffectiveLevelPart] operator[SEP] identifier[classLoader] operator[SEP] operator[SEP] } Keyword[super] operator[SEP] identifier[setLevel] operator[SEP] identifier[_finestEffectiveLevel] operator[SEP] operator[SEP] identifier[_finestEffectiveLevelValue] operator[=] identifier[_finestEffectiveLevel] operator[SEP] identifier[intValue] operator[SEP] operator[SEP] operator[SEP] identifier[updateChildren] operator[SEP] operator[SEP] operator[SEP] }
public static <T extends CharSequence> T validateGeneral(T value, String errorMsg) throws ValidateException { if (false == isGeneral(value)) { throw new ValidateException(errorMsg); } return value; }
class class_name[name] begin[{] method[validateGeneral, return_type[type[T]], modifier[public static], parameter[value, errorMsg]] begin[{] if[binary_operation[literal[false], ==, call[.isGeneral, parameter[member[.value]]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=errorMsg, 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=ValidateException, sub_type=None)), label=None) else begin[{] None end[}] return[member[.value]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[CharSequence] operator[>] identifier[T] identifier[validateGeneral] operator[SEP] identifier[T] identifier[value] , identifier[String] identifier[errorMsg] operator[SEP] Keyword[throws] identifier[ValidateException] { Keyword[if] operator[SEP] literal[boolean] operator[==] identifier[isGeneral] operator[SEP] identifier[value] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[ValidateException] operator[SEP] identifier[errorMsg] operator[SEP] operator[SEP] } Keyword[return] identifier[value] operator[SEP] }
@Nonnull public static LocalDate getCurrentOrNextWorkDay () { LocalDate aDT = PDTFactory.getCurrentLocalDate (); while (PDTHelper.isWeekend (aDT)) aDT = aDT.plusDays (1); return aDT; }
class class_name[name] begin[{] method[getCurrentOrNextWorkDay, return_type[type[LocalDate]], modifier[public static], parameter[]] begin[{] local_variable[type[LocalDate], aDT] while[call[PDTHelper.isWeekend, parameter[member[.aDT]]]] begin[{] assign[member[.aDT], call[aDT.plusDays, parameter[literal[1]]]] end[}] return[member[.aDT]] end[}] END[}]
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[LocalDate] identifier[getCurrentOrNextWorkDay] operator[SEP] operator[SEP] { identifier[LocalDate] identifier[aDT] operator[=] identifier[PDTFactory] operator[SEP] identifier[getCurrentLocalDate] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[PDTHelper] operator[SEP] identifier[isWeekend] operator[SEP] identifier[aDT] operator[SEP] operator[SEP] identifier[aDT] operator[=] identifier[aDT] operator[SEP] identifier[plusDays] operator[SEP] Other[1] operator[SEP] operator[SEP] Keyword[return] identifier[aDT] operator[SEP] }
@Override protected void doInitialize() throws IOException { String path = getClass().getProtectionDomain().getCodeSource().getLocation().getPath(); int index = path.lastIndexOf("/lib/"); // Inicjalizacja repozytoriów z zasobami dla poszczególnych poziomów: if(index != -1) { // Rzeczywiste środowisko uruchomieniowe (uruchomienie z linni komend): basePath = path.substring(0, index) + "/templates"; settingsPath = path.substring(0, index) + "/conf/tempel.xml"; librariesPath = path.substring(0, index) + "/templates/lib"; repositoryPath = path.substring(0, index) + "/templates/repo"; } else { // Deweloperskie środowisko uruchomieniowe (uruchomienie z eclipse'a): path = System.getProperty("user.dir"); basePath = path + "/src/test/templates/app"; settingsPath = path + "/src/test/templates/app/tempel.xml"; librariesPath = path + "/src/test/templates/app/lib"; repositoryPath = path + "/src/test/templates/app/repo"; } initialized = readAppTemplates(templateRepository); }
class class_name[name] begin[{] method[doInitialize, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[String], path] local_variable[type[int], index] if[binary_operation[member[.index], !=, literal[1]]] begin[{] assign[member[.basePath], binary_operation[call[path.substring, parameter[literal[0], member[.index]]], +, literal["/templates"]]] assign[member[.settingsPath], binary_operation[call[path.substring, parameter[literal[0], member[.index]]], +, literal["/conf/tempel.xml"]]] assign[member[.librariesPath], binary_operation[call[path.substring, parameter[literal[0], member[.index]]], +, literal["/templates/lib"]]] assign[member[.repositoryPath], binary_operation[call[path.substring, parameter[literal[0], member[.index]]], +, literal["/templates/repo"]]] else begin[{] assign[member[.path], call[System.getProperty, parameter[literal["user.dir"]]]] assign[member[.basePath], binary_operation[member[.path], +, literal["/src/test/templates/app"]]] assign[member[.settingsPath], binary_operation[member[.path], +, literal["/src/test/templates/app/tempel.xml"]]] assign[member[.librariesPath], binary_operation[member[.path], +, literal["/src/test/templates/app/lib"]]] assign[member[.repositoryPath], binary_operation[member[.path], +, literal["/src/test/templates/app/repo"]]] end[}] assign[member[.initialized], call[.readAppTemplates, parameter[member[.templateRepository]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[doInitialize] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[path] operator[=] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getProtectionDomain] operator[SEP] operator[SEP] operator[SEP] identifier[getCodeSource] operator[SEP] operator[SEP] operator[SEP] identifier[getLocation] operator[SEP] operator[SEP] operator[SEP] identifier[getPath] operator[SEP] operator[SEP] operator[SEP] Keyword[int] identifier[index] operator[=] identifier[path] operator[SEP] identifier[lastIndexOf] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[index] operator[!=] operator[-] Other[1] operator[SEP] { identifier[basePath] operator[=] identifier[path] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[index] operator[SEP] operator[+] literal[String] operator[SEP] identifier[settingsPath] operator[=] identifier[path] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[index] operator[SEP] operator[+] literal[String] operator[SEP] identifier[librariesPath] operator[=] identifier[path] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[index] operator[SEP] operator[+] literal[String] operator[SEP] identifier[repositoryPath] operator[=] identifier[path] operator[SEP] identifier[substring] operator[SEP] Other[0] , identifier[index] operator[SEP] operator[+] literal[String] operator[SEP] } Keyword[else] { identifier[path] operator[=] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[basePath] operator[=] identifier[path] operator[+] literal[String] operator[SEP] identifier[settingsPath] operator[=] identifier[path] operator[+] literal[String] operator[SEP] identifier[librariesPath] operator[=] identifier[path] operator[+] literal[String] operator[SEP] identifier[repositoryPath] operator[=] identifier[path] operator[+] literal[String] operator[SEP] } identifier[initialized] operator[=] identifier[readAppTemplates] operator[SEP] identifier[templateRepository] operator[SEP] operator[SEP] }
@Override public Collection<String> getCacheNames() { Set<String> cacheNames = new HashSet<>(); for (org.cache2k.Cache<?,?> cache : manager.getActiveCaches()) { cacheNames.add(cache.getName()); } cacheNames.addAll(configuredCacheNames); return Collections.unmodifiableSet(cacheNames); }
class class_name[name] begin[{] method[getCacheNames, return_type[type[Collection]], modifier[public], parameter[]] begin[{] local_variable[type[Set], cacheNames] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getName, postfix_operators=[], prefix_operators=[], qualifier=cache, selectors=[], type_arguments=None)], member=add, postfix_operators=[], prefix_operators=[], qualifier=cacheNames, selectors=[], type_arguments=None), label=None)]), control=EnhancedForControl(iterable=MethodInvocation(arguments=[], member=getActiveCaches, postfix_operators=[], prefix_operators=[], qualifier=manager, selectors=[], type_arguments=None), var=VariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=None, initializer=None, name=cache)], modifiers=set(), type=ReferenceType(arguments=None, dimensions=[], name=org, sub_type=ReferenceType(arguments=None, dimensions=None, name=cache2k, sub_type=ReferenceType(arguments=[TypeArgument(pattern_type=?, type=None), TypeArgument(pattern_type=?, type=None)], dimensions=None, name=Cache, sub_type=None))))), label=None) call[cacheNames.addAll, parameter[member[.configuredCacheNames]]] return[call[Collections.unmodifiableSet, parameter[member[.cacheNames]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Collection] operator[<] identifier[String] operator[>] identifier[getCacheNames] operator[SEP] operator[SEP] { identifier[Set] operator[<] identifier[String] operator[>] identifier[cacheNames] operator[=] Keyword[new] identifier[HashSet] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[org] operator[SEP] identifier[cache2k] operator[SEP] identifier[Cache] operator[<] operator[?] , operator[?] operator[>] identifier[cache] operator[:] identifier[manager] operator[SEP] identifier[getActiveCaches] operator[SEP] operator[SEP] operator[SEP] { identifier[cacheNames] operator[SEP] identifier[add] operator[SEP] identifier[cache] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] operator[SEP] } identifier[cacheNames] operator[SEP] identifier[addAll] operator[SEP] identifier[configuredCacheNames] operator[SEP] operator[SEP] Keyword[return] identifier[Collections] operator[SEP] identifier[unmodifiableSet] operator[SEP] identifier[cacheNames] operator[SEP] operator[SEP] }
public static Iterable<VcfRecord> records(final InputStream inputStream) throws IOException { checkNotNull(inputStream); try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream))) { return records(reader); } }
class class_name[name] begin[{] method[records, return_type[type[Iterable]], modifier[public static], parameter[inputStream]] begin[{] call[.checkNotNull, parameter[member[.inputStream]]] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=reader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=records, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments=None), label=None)], catches=None, finally_block=None, label=None, resources=[TryResource(annotations=[], modifiers=set(), name=reader, type=ReferenceType(arguments=None, dimensions=[], name=BufferedReader, sub_type=None), value=ClassCreator(arguments=[ClassCreator(arguments=[MemberReference(member=inputStream, 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=InputStreamReader, sub_type=None))], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=ReferenceType(arguments=None, dimensions=None, name=BufferedReader, sub_type=None)))]) end[}] END[}]
Keyword[public] Keyword[static] identifier[Iterable] operator[<] identifier[VcfRecord] operator[>] identifier[records] operator[SEP] Keyword[final] identifier[InputStream] identifier[inputStream] operator[SEP] Keyword[throws] identifier[IOException] { identifier[checkNotNull] operator[SEP] identifier[inputStream] operator[SEP] operator[SEP] Keyword[try] operator[SEP] identifier[BufferedReader] identifier[reader] operator[=] Keyword[new] identifier[BufferedReader] operator[SEP] Keyword[new] identifier[InputStreamReader] operator[SEP] identifier[inputStream] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] identifier[records] operator[SEP] identifier[reader] operator[SEP] operator[SEP] } }
@Override public List<CommerceNotificationAttachment> findByUuid_C(String uuid, long companyId) { return findByUuid_C(uuid, companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null); }
class class_name[name] begin[{] method[findByUuid_C, return_type[type[List]], modifier[public], parameter[uuid, companyId]] begin[{] return[call[.findByUuid_C, parameter[member[.uuid], member[.companyId], member[QueryUtil.ALL_POS], member[QueryUtil.ALL_POS], literal[null]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CommerceNotificationAttachment] operator[>] identifier[findByUuid_C] operator[SEP] identifier[String] identifier[uuid] , Keyword[long] identifier[companyId] operator[SEP] { Keyword[return] identifier[findByUuid_C] operator[SEP] identifier[uuid] , identifier[companyId] , identifier[QueryUtil] operator[SEP] identifier[ALL_POS] , identifier[QueryUtil] operator[SEP] identifier[ALL_POS] , Other[null] operator[SEP] operator[SEP] }
@Override public CommerceDiscountRule findByPrimaryKey(Serializable primaryKey) throws NoSuchDiscountRuleException { CommerceDiscountRule commerceDiscountRule = fetchByPrimaryKey(primaryKey); if (commerceDiscountRule == null) { if (_log.isDebugEnabled()) { _log.debug(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); } throw new NoSuchDiscountRuleException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey); } return commerceDiscountRule; }
class class_name[name] begin[{] method[findByPrimaryKey, return_type[type[CommerceDiscountRule]], modifier[public], parameter[primaryKey]] begin[{] local_variable[type[CommerceDiscountRule], commerceDiscountRule] if[binary_operation[member[.commerceDiscountRule], ==, literal[null]]] begin[{] if[call[_log.isDebugEnabled, parameter[]]] begin[{] call[_log.debug, parameter[binary_operation[member[._NO_SUCH_ENTITY_WITH_PRIMARY_KEY], +, member[.primaryKey]]]] else begin[{] None end[}] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=MemberReference(member=_NO_SUCH_ENTITY_WITH_PRIMARY_KEY, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=MemberReference(member=primaryKey, 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=NoSuchDiscountRuleException, sub_type=None)), label=None) else begin[{] None end[}] return[member[.commerceDiscountRule]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[CommerceDiscountRule] identifier[findByPrimaryKey] operator[SEP] identifier[Serializable] identifier[primaryKey] operator[SEP] Keyword[throws] identifier[NoSuchDiscountRuleException] { identifier[CommerceDiscountRule] identifier[commerceDiscountRule] operator[=] identifier[fetchByPrimaryKey] operator[SEP] identifier[primaryKey] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[commerceDiscountRule] operator[==] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[_log] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[_log] operator[SEP] identifier[debug] operator[SEP] identifier[_NO_SUCH_ENTITY_WITH_PRIMARY_KEY] operator[+] identifier[primaryKey] operator[SEP] operator[SEP] } Keyword[throw] Keyword[new] identifier[NoSuchDiscountRuleException] operator[SEP] identifier[_NO_SUCH_ENTITY_WITH_PRIMARY_KEY] operator[+] identifier[primaryKey] operator[SEP] operator[SEP] } Keyword[return] identifier[commerceDiscountRule] operator[SEP] }
@Override public DeleteIdentityPolicyResult deleteIdentityPolicy(DeleteIdentityPolicyRequest request) { request = beforeClientExecution(request); return executeDeleteIdentityPolicy(request); }
class class_name[name] begin[{] method[deleteIdentityPolicy, return_type[type[DeleteIdentityPolicyResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDeleteIdentityPolicy, parameter[member[.request]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[DeleteIdentityPolicyResult] identifier[deleteIdentityPolicy] operator[SEP] identifier[DeleteIdentityPolicyRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keyword[return] identifier[executeDeleteIdentityPolicy] operator[SEP] identifier[request] operator[SEP] operator[SEP] }
public BoxRequestsUser.GetUserInfo getUserInfoRequest(String id) { BoxRequestsUser.GetUserInfo request = new BoxRequestsUser.GetUserInfo(getUserInformationUrl(id), mSession); return request; }
class class_name[name] begin[{] method[getUserInfoRequest, return_type[type[BoxRequestsUser]], modifier[public], parameter[id]] begin[{] local_variable[type[BoxRequestsUser], request] return[member[.request]] end[}] END[}]
Keyword[public] identifier[BoxRequestsUser] operator[SEP] identifier[GetUserInfo] identifier[getUserInfoRequest] operator[SEP] identifier[String] identifier[id] operator[SEP] { identifier[BoxRequestsUser] operator[SEP] identifier[GetUserInfo] identifier[request] operator[=] Keyword[new] identifier[BoxRequestsUser] operator[SEP] identifier[GetUserInfo] operator[SEP] identifier[getUserInformationUrl] operator[SEP] identifier[id] operator[SEP] , identifier[mSession] operator[SEP] operator[SEP] Keyword[return] identifier[request] operator[SEP] }
public static String convertToBase64(String source) { if (source == null) { return null; } return Base64.encodeBase64URLSafeString(StringUtils.getBytesUtf8(source)); }
class class_name[name] begin[{] method[convertToBase64, return_type[type[String]], modifier[public static], parameter[source]] begin[{] if[binary_operation[member[.source], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] return[call[Base64.encodeBase64URLSafeString, parameter[call[StringUtils.getBytesUtf8, parameter[member[.source]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[convertToBase64] operator[SEP] identifier[String] identifier[source] operator[SEP] { Keyword[if] operator[SEP] identifier[source] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } Keyword[return] identifier[Base64] operator[SEP] identifier[encodeBase64URLSafeString] operator[SEP] identifier[StringUtils] operator[SEP] identifier[getBytesUtf8] operator[SEP] identifier[source] operator[SEP] operator[SEP] operator[SEP] }
private static int getSampleSize(@NonNull final Pair<Integer, Integer> imageDimensions, final int maxWidth, final int maxHeight) { Condition.INSTANCE.ensureNotNull(imageDimensions, "The image dimensions may not be null"); Condition.INSTANCE.ensureAtLeast(maxWidth, 1, "The maximum width must be at least 1"); Condition.INSTANCE.ensureAtLeast(maxHeight, 1, "The maximum height must be at least 1"); int width = imageDimensions.first; int height = imageDimensions.second; int sampleSize = 1; if (width > maxWidth || height > maxHeight) { int halfWidth = width / 2; int halfHeight = height / 2; while ((halfWidth / sampleSize) > maxWidth && (halfHeight / sampleSize) > maxHeight) { sampleSize *= 2; } } return sampleSize; }
class class_name[name] begin[{] method[getSampleSize, return_type[type[int]], modifier[private static], parameter[imageDimensions, maxWidth, maxHeight]] begin[{] call[Condition.INSTANCE.ensureNotNull, parameter[member[.imageDimensions], literal["The image dimensions may not be null"]]] call[Condition.INSTANCE.ensureAtLeast, parameter[member[.maxWidth], literal[1], literal["The maximum width must be at least 1"]]] call[Condition.INSTANCE.ensureAtLeast, parameter[member[.maxHeight], literal[1], literal["The maximum height must be at least 1"]]] local_variable[type[int], width] local_variable[type[int], height] local_variable[type[int], sampleSize] if[binary_operation[binary_operation[member[.width], >, member[.maxWidth]], ||, binary_operation[member[.height], >, member[.maxHeight]]]] begin[{] local_variable[type[int], halfWidth] local_variable[type[int], halfHeight] while[binary_operation[binary_operation[binary_operation[member[.halfWidth], /, member[.sampleSize]], >, member[.maxWidth]], &&, binary_operation[binary_operation[member[.halfHeight], /, member[.sampleSize]], >, member[.maxHeight]]]] begin[{] assign[member[.sampleSize], literal[2]] end[}] else begin[{] None end[}] return[member[.sampleSize]] end[}] END[}]
Keyword[private] Keyword[static] Keyword[int] identifier[getSampleSize] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[Pair] operator[<] identifier[Integer] , identifier[Integer] operator[>] identifier[imageDimensions] , Keyword[final] Keyword[int] identifier[maxWidth] , Keyword[final] Keyword[int] identifier[maxHeight] operator[SEP] { identifier[Condition] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[ensureNotNull] operator[SEP] identifier[imageDimensions] , literal[String] operator[SEP] operator[SEP] identifier[Condition] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[ensureAtLeast] operator[SEP] identifier[maxWidth] , Other[1] , literal[String] operator[SEP] operator[SEP] identifier[Condition] operator[SEP] identifier[INSTANCE] operator[SEP] identifier[ensureAtLeast] operator[SEP] identifier[maxHeight] , Other[1] , literal[String] operator[SEP] operator[SEP] Keyword[int] identifier[width] operator[=] identifier[imageDimensions] operator[SEP] identifier[first] operator[SEP] Keyword[int] identifier[height] operator[=] identifier[imageDimensions] operator[SEP] identifier[second] operator[SEP] Keyword[int] identifier[sampleSize] operator[=] Other[1] operator[SEP] Keyword[if] operator[SEP] identifier[width] operator[>] identifier[maxWidth] operator[||] identifier[height] operator[>] identifier[maxHeight] operator[SEP] { Keyword[int] identifier[halfWidth] operator[=] identifier[width] operator[/] Other[2] operator[SEP] Keyword[int] identifier[halfHeight] operator[=] identifier[height] operator[/] Other[2] operator[SEP] Keyword[while] operator[SEP] operator[SEP] identifier[halfWidth] operator[/] identifier[sampleSize] operator[SEP] operator[>] identifier[maxWidth] operator[&&] operator[SEP] identifier[halfHeight] operator[/] identifier[sampleSize] operator[SEP] operator[>] identifier[maxHeight] operator[SEP] { identifier[sampleSize] operator[*=] Other[2] operator[SEP] } } Keyword[return] identifier[sampleSize] operator[SEP] }
public void setWorkPath(String workPath) throws CmsIllegalArgumentException { if (CmsStringUtil.isEmptyOrWhitespaceOnly(workPath)) { throw new CmsIllegalArgumentException(Messages.get().container(Messages.GUI_ERR_WIDGETVALUE_EMPTY_0)); } // test if it is a valid path: if (!m_cms.existsResource(workPath)) { throw new CmsIllegalArgumentException( Messages.get().container(Messages.GUI_ERR_TAGREPLACE_WORKPATH_1, workPath)); } m_workPath = workPath; }
class class_name[name] begin[{] method[setWorkPath, return_type[void], modifier[public], parameter[workPath]] begin[{] if[call[CmsStringUtil.isEmptyOrWhitespaceOnly, parameter[member[.workPath]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=Messages, selectors=[MethodInvocation(arguments=[MemberReference(member=GUI_ERR_WIDGETVALUE_EMPTY_0, postfix_operators=[], prefix_operators=[], qualifier=Messages, selectors=[])], 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=CmsIllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] if[call[m_cms.existsResource, parameter[member[.workPath]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_operators=[], qualifier=Messages, selectors=[MethodInvocation(arguments=[MemberReference(member=GUI_ERR_TAGREPLACE_WORKPATH_1, postfix_operators=[], prefix_operators=[], qualifier=Messages, selectors=[]), MemberReference(member=workPath, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], 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=CmsIllegalArgumentException, sub_type=None)), label=None) else begin[{] None end[}] assign[member[.m_workPath], member[.workPath]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setWorkPath] operator[SEP] identifier[String] identifier[workPath] operator[SEP] Keyword[throws] identifier[CmsIllegalArgumentException] { Keyword[if] operator[SEP] identifier[CmsStringUtil] operator[SEP] identifier[isEmptyOrWhitespaceOnly] operator[SEP] identifier[workPath] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[CmsIllegalArgumentException] operator[SEP] identifier[Messages] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[container] operator[SEP] identifier[Messages] operator[SEP] identifier[GUI_ERR_WIDGETVALUE_EMPTY_0] operator[SEP] operator[SEP] operator[SEP] } Keyword[if] operator[SEP] operator[!] identifier[m_cms] operator[SEP] identifier[existsResource] operator[SEP] identifier[workPath] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[CmsIllegalArgumentException] operator[SEP] identifier[Messages] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] identifier[container] operator[SEP] identifier[Messages] operator[SEP] identifier[GUI_ERR_TAGREPLACE_WORKPATH_1] , identifier[workPath] operator[SEP] operator[SEP] operator[SEP] } identifier[m_workPath] operator[=] identifier[workPath] operator[SEP] }