code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
@Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.OBP__OA_POS_ID: setOAPosID(OA_POS_ID_EDEFAULT); return; case AfplibPackage.OBP__RG_LENGTH: setRGLength(RG_LENGTH_EDEFAULT); return; case AfplibPackage.OBP__XOA_OSET: setXoaOset(XOA_OSET_EDEFAULT); r...
class class_name[name] begin[{] method[eUnset, return_type[void], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=OBP__OA_POS_ID, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[Stat...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eUnset] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[OBP__OA_POS_ID] oper...
public static boolean checkIfAllLigandsAreDifferent(ILigand[] ligands) { for (int i = 0; i < (ligands.length - 1); i++) { if (cipRule.compare(ligands[i], ligands[i + 1]) == 0) return false; } return true; }
class class_name[name] begin[{] method[checkIfAllLigandsAreDifferent, return_type[type[boolean]], modifier[public static], parameter[ligands]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(mem...
Keyword[public] Keyword[static] Keyword[boolean] identifier[checkIfAllLigandsAreDifferent] operator[SEP] identifier[ILigand] operator[SEP] operator[SEP] identifier[ligands] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] operator[...
public Observable<ServiceResponse<Page<ResourceMetricInner>>> listMultiRoleMetricsSinglePageAsync(final String resourceGroupName, final String name) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } ...
class class_name[name] begin[{] method[listMultiRoleMetricsSinglePageAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, name]] begin[{] if[binary_operation[member[.resourceGroupName], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreat...
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[ResourceMetricInner] operator[>] operator[>] operator[>] identifier[listMultiRoleMetricsSinglePageAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , Key...
public int getLine() { if (_line >= 0) return _line; Attribute attr = getAttribute("LineNumberTable"); if (attr == null) { _line = 0; return _line; } _line = 0; return _line; }
class class_name[name] begin[{] method[getLine, return_type[type[int]], modifier[public], parameter[]] begin[{] if[binary_operation[member[._line], >=, literal[0]]] begin[{] return[member[._line]] else begin[{] None end[}] local_variable[type[Attribute], attr] ...
Keyword[public] Keyword[int] identifier[getLine] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[_line] operator[>=] Other[0] operator[SEP] Keyword[return] identifier[_line] operator[SEP] identifier[Attribute] identifier[attr] operator[=] identifier[getAttribute] operator[SEP] literal[String] ...
public ServiceFuture<FileServerInner> getAsync(String resourceGroupName, String workspaceName, String fileServerName, final ServiceCallback<FileServerInner> serviceCallback) { return ServiceFuture.fromResponse(getWithServiceResponseAsync(resourceGroupName, workspaceName, fileServerName), serviceCallback); }
class class_name[name] begin[{] method[getAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, workspaceName, fileServerName, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.getWithServiceResponseAsync, parameter[member[.resourceGrou...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[FileServerInner] operator[>] identifier[getAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[workspaceName] , identifier[String] identifier[fileServerName] , Keyword[final] identifier[ServiceCallback]...
public void removeChild(int index) { N child = children.remove(index); child.setParent(null); }
class class_name[name] begin[{] method[removeChild, return_type[void], modifier[public], parameter[index]] begin[{] local_variable[type[N], child] call[child.setParent, parameter[literal[null]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[removeChild] operator[SEP] Keyword[int] identifier[index] operator[SEP] { identifier[N] identifier[child] operator[=] identifier[children] operator[SEP] identifier[remove] operator[SEP] identifier[index] operator[SEP] operator[SEP] identifier[child] operator[SEP] identifi...
private static <T> T after(T target, Iterable<? extends T> iterable, T defaultValue) { Iterator<? extends T> iterator = iterable.iterator(); while (iterator.hasNext()) { if (iterator.next().equals(target)) { break; } } if (iterator.hasNext()) { return iterator.next(); } ...
class class_name[name] begin[{] method[after, return_type[type[T]], modifier[private static], parameter[target, iterable, defaultValue]] begin[{] local_variable[type[Iterator], iterator] while[call[iterator.hasNext, parameter[]]] begin[{] if[call[iterator.next, p...
Keyword[private] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[after] operator[SEP] identifier[T] identifier[target] , identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[iterable] , identifier[T] identifier[defaultValue] operator[SEP] {...
private void emitOpenAndVisitAttributes(HtmlOpenTagNode node, Expression tagName) { IncrementalDomCodeBuilder jsCodeBuilder = getJsCodeBuilder(); TemplateNode template = node.getNearestAncestor(TemplateNode.class); List<Expression> args = new ArrayList<>(); args.add(tagName); Map<String, Expression...
class class_name[name] begin[{] method[emitOpenAndVisitAttributes, return_type[void], modifier[private], parameter[node, tagName]] begin[{] local_variable[type[IncrementalDomCodeBuilder], jsCodeBuilder] local_variable[type[TemplateNode], template] local_variable[type[List], args] ...
Keyword[private] Keyword[void] identifier[emitOpenAndVisitAttributes] operator[SEP] identifier[HtmlOpenTagNode] identifier[node] , identifier[Expression] identifier[tagName] operator[SEP] { identifier[IncrementalDomCodeBuilder] identifier[jsCodeBuilder] operator[=] identifier[getJsCodeBuilder] operator[SEP] ope...
@Implementation protected static long nativeLoadFromFd(FileDescriptor file_descriptor, String friendly_name, boolean system, boolean force_shared_lib) { String friendly_name_utf8 = friendly_name; if (friendly_name_utf8 == null) { return 0; } throw new UnsupportedOperationException(); ...
class class_name[name] begin[{] method[nativeLoadFromFd, return_type[type[long]], modifier[static protected], parameter[file_descriptor, friendly_name, system, force_shared_lib]] begin[{] local_variable[type[String], friendly_name_utf8] if[binary_operation[member[.friendly_name_utf8], =...
annotation[@] identifier[Implementation] Keyword[protected] Keyword[static] Keyword[long] identifier[nativeLoadFromFd] operator[SEP] identifier[FileDescriptor] identifier[file_descriptor] , identifier[String] identifier[friendly_name] , Keyword[boolean] identifier[system] , Keyword[boolean] identifier[force_shared_l...
private void initialize() { LayoutInflater inflater = LayoutInflater.from(getContext()); inflater.inflate(R.layout.color_palette_item, this, true); colorView = findViewById(R.id.color_view); selectionView = findViewById(R.id.selection_view); adaptSelectionView(); }
class class_name[name] begin[{] method[initialize, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[LayoutInflater], inflater] call[inflater.inflate, parameter[member[R.layout.color_palette_item], THIS[], literal[true]]] assign[member[.colo...
Keyword[private] Keyword[void] identifier[initialize] operator[SEP] operator[SEP] { identifier[LayoutInflater] identifier[inflater] operator[=] identifier[LayoutInflater] operator[SEP] identifier[from] operator[SEP] identifier[getContext] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[inflate...
public static ntp_server[] get(nitro_service client) throws Exception { ntp_server resource = new ntp_server(); resource.validate("get"); return (ntp_server[]) resource.get_resources(client); }
class class_name[name] begin[{] method[get, return_type[type[ntp_server]], modifier[public static], parameter[client]] begin[{] local_variable[type[ntp_server], resource] call[resource.validate, parameter[literal["get"]]] return[Cast(expression=MethodInvocation(arguments=[Member...
Keyword[public] Keyword[static] identifier[ntp_server] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[client] operator[SEP] Keyword[throws] identifier[Exception] { identifier[ntp_server] identifier[resource] operator[=] Keyword[new] identifier[ntp_server] operator[...
public static final double findDouble(CharSequence cs, int beginIndex, int endIndex) { int begin = CharSequences.indexOf(cs, Primitives::isFloatDigit, beginIndex); int end = CharSequences.indexOf(cs, (c)->!Primitives.isFloatDigit(c), begin); return parseDouble(cs, begin, endIndex(end, en...
class class_name[name] begin[{] method[findDouble, return_type[type[double]], modifier[final public static], parameter[cs, beginIndex, endIndex]] begin[{] local_variable[type[int], begin] local_variable[type[int], end] return[call[.parseDouble, parameter[member[.cs], member[.begin], cal...
Keyword[public] Keyword[static] Keyword[final] Keyword[double] identifier[findDouble] operator[SEP] identifier[CharSequence] identifier[cs] , Keyword[int] identifier[beginIndex] , Keyword[int] identifier[endIndex] operator[SEP] { Keyword[int] identifier[begin] operator[=] identifier[CharSequences] operator[SEP...
public String[] getCategories() { List<String> l = m_parameters.getCategories(); return l.toArray(new String[l.size()]); }
class class_name[name] begin[{] method[getCategories, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[List], l] return[call[l.toArray, parameter[ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_operators=[], prefix_operators=[],...
Keyword[public] identifier[String] operator[SEP] operator[SEP] identifier[getCategories] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[l] operator[=] identifier[m_parameters] operator[SEP] identifier[getCategories] operator[SEP] operator[SEP] operator[SEP] K...
public void reset() { super.reset(); H1 = 0x67452301; H2 = 0xefcdab89; H3 = 0x98badcfe; H4 = 0x10325476; xOff = 0; for (int i = 0; i != X.length; i++) { X[i] = 0; } }
class class_name[name] begin[{] method[reset, return_type[void], modifier[public], parameter[]] begin[{] SuperMethodInvocation(arguments=[], member=reset, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None) assign[member[.H1], literal[0x...
Keyword[public] Keyword[void] identifier[reset] operator[SEP] operator[SEP] { Keyword[super] operator[SEP] identifier[reset] operator[SEP] operator[SEP] operator[SEP] identifier[H1] operator[=] literal[Integer] operator[SEP] identifier[H2] operator[=] literal[Integer] operator[SEP] identifier[H3] operator[=] lit...
public void pressSoftKeyboard(final int imeAction){ final EditText freshestEditText = viewFetcher.getFreshestView(viewFetcher.getCurrentViews(EditText.class, true)); if(freshestEditText != null){ inst.runOnMainSync(new Runnable() { public void run() { freshestEditText.onEditorAction(imeAction); ...
class class_name[name] begin[{] method[pressSoftKeyboard, return_type[void], modifier[public], parameter[imeAction]] begin[{] local_variable[type[EditText], freshestEditText] if[binary_operation[member[.freshestEditText], !=, literal[null]]] begin[{] call[inst.ru...
Keyword[public] Keyword[void] identifier[pressSoftKeyboard] operator[SEP] Keyword[final] Keyword[int] identifier[imeAction] operator[SEP] { Keyword[final] identifier[EditText] identifier[freshestEditText] operator[=] identifier[viewFetcher] operator[SEP] identifier[getFreshestView] operator[SEP] identifier[viewF...
public final CharSlice substring(int start, int end) { if (start < 0 || end > len || end < -len) { throw new IllegalArgumentException( String.format("[%d,%d] of slice length %d is not valid.", start, end, len)); } int l = end < 0 ? (len - start) + end : end - star...
class class_name[name] begin[{] method[substring, return_type[type[CharSlice]], modifier[final public], parameter[start, end]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.start], <, literal[0]], ||, binary_operation[member[.end], >, member[.len]]], ||, binary_operatio...
Keyword[public] Keyword[final] identifier[CharSlice] identifier[substring] operator[SEP] Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SEP] { Keyword[if] operator[SEP] identifier[start] operator[<] Other[0] operator[||] identifier[end] operator[>] identifier[len] operator[||] identifier...
public SSLSocketFactory getSSLSocketFactory(Map<String, Object> connectionInfo, Properties props) throws SSLException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(tc, "getSSLSocketFactory"); try { SSLConfig newConfig = null; String cont...
class class_name[name] begin[{] method[getSSLSocketFactory, return_type[type[SSLSocketFactory]], modifier[public], parameter[connectionInfo, props]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] ...
Keyword[public] identifier[SSLSocketFactory] identifier[getSSLSocketFactory] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[connectionInfo] , identifier[Properties] identifier[props] operator[SEP] Keyword[throws] identifier[SSLException] { Keyword[if] o...
@Override protected void perform(final Wave wave) { LOGGER.info("Display a pop up from JAT"); final Stage s = StageBuilder.create() .title("Sample Ui Command Test") .style(StageStyle.DECORATED) ...
class class_name[name] begin[{] method[perform, return_type[void], modifier[protected], parameter[wave]] begin[{] call[LOGGER.info, parameter[literal["Display a pop up from JAT"]]] local_variable[type[Stage], s] call[s.show, parameter[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[perform] operator[SEP] Keyword[final] identifier[Wave] identifier[wave] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[info] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[final] identifier[Stage] ident...
private int generateCrc(byte[] data, int off, int len, RecordType type) { Crc32c crc = new Crc32c(); crc.update(type.value()); crc.update(data, off, len); return (int) LevelDbConstants.maskCrc(crc.getValue()); }
class class_name[name] begin[{] method[generateCrc, return_type[type[int]], modifier[private], parameter[data, off, len, type]] begin[{] local_variable[type[Crc32c], crc] call[crc.update, parameter[call[type.value, parameter[]]]] call[crc.update, parameter[member[.data],...
Keyword[private] Keyword[int] identifier[generateCrc] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[int] identifier[off] , Keyword[int] identifier[len] , identifier[RecordType] identifier[type] operator[SEP] { identifier[Crc32c] identifier[crc] operator[=] Keyword[new] ide...
public void ltrim(final String key, final long start, final long end) { ltrim(SafeEncoder.encode(key), start, end); }
class class_name[name] begin[{] method[ltrim, return_type[void], modifier[public], parameter[key, start, end]] begin[{] call[.ltrim, parameter[call[SafeEncoder.encode, parameter[member[.key]]], member[.start], member[.end]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[ltrim] operator[SEP] Keyword[final] identifier[String] identifier[key] , Keyword[final] Keyword[long] identifier[start] , Keyword[final] Keyword[long] identifier[end] operator[SEP] { identifier[ltrim] operator[SEP] identifier[SafeEncoder] operator[SEP] identifier[encode...
private void fetchSystemCounters(PerformanceCountersHolder countersHolder) { //go through all threads and accumulate statistic only for live threads //all dead threads will be removed and statistics from them will be //later accumulated in #deadThreadsStatistic field, then result statistic from this field ...
class class_name[name] begin[{] method[fetchSystemCounters, return_type[void], modifier[private], parameter[countersHolder]] begin[{] local_variable[type[Collection], snapshots] local_variable[type[Collection], threadsToRemove] ForStatement(body=BlockStatement(label=None, statements=[Lo...
Keyword[private] Keyword[void] identifier[fetchSystemCounters] operator[SEP] identifier[PerformanceCountersHolder] identifier[countersHolder] operator[SEP] { Keyword[final] identifier[Collection] operator[<] identifier[ORawPair] operator[<] identifier[Thread] , identifier[PerformanceSnapshot] operator[>] operat...
private Response process(String accessToken) { // Call Authlete's /api/auth/userinfo API. UserInfoResponse response = getApiCaller().callUserInfo(accessToken); // 'action' in the response denotes the next action which // this service implementation should take. Action action...
class class_name[name] begin[{] method[process, return_type[type[Response]], modifier[private], parameter[accessToken]] begin[{] local_variable[type[UserInfoResponse], response] local_variable[type[Action], action] local_variable[type[String], content] SwitchStatement(cases=[Swi...
Keyword[private] identifier[Response] identifier[process] operator[SEP] identifier[String] identifier[accessToken] operator[SEP] { identifier[UserInfoResponse] identifier[response] operator[=] identifier[getApiCaller] operator[SEP] operator[SEP] operator[SEP] identifier[callUserInfo] operator[SEP] identifier[acc...
private final void consumeWhiteSpace(){ char c=cbuf[n]; while(c==CH_SPACE|| c==CH_LINEFEED || c==CH_TAB || c==CH_CARRIAGE_RETURN){ n++; c=cbuf[n]; } }
class class_name[name] begin[{] method[consumeWhiteSpace, return_type[void], modifier[final private], parameter[]] begin[{] local_variable[type[char], c] while[binary_operation[binary_operation[binary_operation[binary_operation[member[.c], ==, member[.CH_SPACE]], ||, binary_operation[me...
Keyword[private] Keyword[final] Keyword[void] identifier[consumeWhiteSpace] operator[SEP] operator[SEP] { Keyword[char] identifier[c] operator[=] identifier[cbuf] operator[SEP] identifier[n] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[c] operator[==] identifier[CH_SPACE] operator[||] iden...
public void setGlobalSecondaryIndexes(java.util.Collection<GlobalSecondaryIndexInfo> globalSecondaryIndexes) { if (globalSecondaryIndexes == null) { this.globalSecondaryIndexes = null; return; } this.globalSecondaryIndexes = new java.util.ArrayList<GlobalSecondaryIndexIn...
class class_name[name] begin[{] method[setGlobalSecondaryIndexes, return_type[void], modifier[public], parameter[globalSecondaryIndexes]] begin[{] if[binary_operation[member[.globalSecondaryIndexes], ==, literal[null]]] begin[{] assign[THIS[member[None.globalSecondaryInd...
Keyword[public] Keyword[void] identifier[setGlobalSecondaryIndexes] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[GlobalSecondaryIndexInfo] operator[>] identifier[globalSecondaryIndexes] operator[SEP] { Keyword[if] operator[SEP] identifi...
public static void wrapCheckedException(Statement statement) { try { statement.evaluate(); } catch (RuntimeException e) { throw e; } catch (Error e) { throw e; } catch (Throwable e) { throw new WrappedException(e); } }
class class_name[name] begin[{] method[wrapCheckedException, return_type[void], modifier[public static], parameter[statement]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=evaluate, postfix_operators=[], prefix_operators=[], qualifier=statement, sele...
Keyword[public] Keyword[static] Keyword[void] identifier[wrapCheckedException] operator[SEP] identifier[Statement] identifier[statement] operator[SEP] { Keyword[try] { identifier[statement] operator[SEP] identifier[evaluate] operator[SEP] operator[SEP] operator[SEP] } Keyword[catch] oper...
public List<Company> getByIds(List<Integer> ids) { List<Company> result = new ArrayList<Company>(); for (Integer id : ids) { result.add(companyMap.get(id)); } return result; }
class class_name[name] begin[{] method[getByIds, return_type[type[List]], modifier[public], parameter[ids]] begin[{] local_variable[type[List], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=...
Keyword[public] identifier[List] operator[<] identifier[Company] operator[>] identifier[getByIds] operator[SEP] identifier[List] operator[<] identifier[Integer] operator[>] identifier[ids] operator[SEP] { identifier[List] operator[<] identifier[Company] operator[>] identifier[result] operator[=] Keyword[new] ide...
@SuppressWarnings("unchecked") public static AliasedDiscoveryConfig newConfigFor(String tag) { if ("aws".equals(tag)) { return new AwsConfig(); } else if ("gcp".equals(tag)) { return new GcpConfig(); } else if ("azure".equals(tag)) { return new AzureConfig...
class class_name[name] begin[{] method[newConfigFor, return_type[type[AliasedDiscoveryConfig]], modifier[public static], parameter[tag]] begin[{] if[literal["aws"]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_op...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[AliasedDiscoveryConfig] identifier[newConfigFor] operator[SEP] identifier[String] identifier[tag] operator[SEP] { Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[eq...
public static SimulatorJobTracker startTracker(JobConf conf, long startTime, SimulatorEngine engine) throws IOException { SimulatorJobTracker result = null; try { SimulatorClock simClock = new SimulatorClock(startTime); result = new SimulatorJobTracker(conf, simClock, engine); result.taskSch...
class class_name[name] begin[{] method[startTracker, return_type[type[SimulatorJobTracker]], modifier[public static], parameter[conf, startTime, engine]] begin[{] local_variable[type[SimulatorJobTracker], result] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[Variable...
Keyword[public] Keyword[static] identifier[SimulatorJobTracker] identifier[startTracker] operator[SEP] identifier[JobConf] identifier[conf] , Keyword[long] identifier[startTime] , identifier[SimulatorEngine] identifier[engine] operator[SEP] Keyword[throws] identifier[IOException] { identifier[SimulatorJobTrack...
protected String extractGroupFromId(String columnName) { if (columnName == null || !columnName.contains(idSeparator)) return columnName; String[] tokens = columnName.split(idSeparator); if (tokens.length == 2) { return tokens[0]; } else { throw new IllegalArgument...
class class_name[name] begin[{] method[extractGroupFromId, return_type[type[String]], modifier[protected], parameter[columnName]] begin[{] if[binary_operation[binary_operation[member[.columnName], ==, literal[null]], ||, call[columnName.contains, parameter[member[.idSeparator]]]]] begin[{] retu...
Keyword[protected] identifier[String] identifier[extractGroupFromId] operator[SEP] identifier[String] identifier[columnName] operator[SEP] { Keyword[if] operator[SEP] identifier[columnName] operator[==] Other[null] operator[||] operator[!] identifier[columnName] operator[SEP] identifier[contains] operator[SEP] i...
protected DataContext createScriptDataContext( final Framework framework, final String project, final Map<String, Map<String, String>> context) { BaseDataContext localDataContext = new BaseDataContext(); localDataContext.merge(ScriptDataContextUtil.createScriptDataCon...
class class_name[name] begin[{] method[createScriptDataContext, return_type[type[DataContext]], modifier[protected], parameter[framework, project, context]] begin[{] local_variable[type[BaseDataContext], localDataContext] call[localDataContext.merge, parameter[call[ScriptDataContextUtil...
Keyword[protected] identifier[DataContext] identifier[createScriptDataContext] operator[SEP] Keyword[final] identifier[Framework] identifier[framework] , Keyword[final] identifier[String] identifier[project] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Map] operator[<] identifier[Stri...
@Override public void validate(ValidationHelper helper, Context context, String key, SecurityScheme t) { String reference = t.getRef(); if (reference != null && !reference.isEmpty()) { ValidatorUtils.referenceValidatorHelper(reference, t, helper, context, key); return; ...
class class_name[name] begin[{] method[validate, return_type[void], modifier[public], parameter[helper, context, key, t]] begin[{] local_variable[type[String], reference] if[binary_operation[binary_operation[member[.reference], !=, literal[null]], &&, call[reference.isEmpty, parameter[]...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[validate] operator[SEP] identifier[ValidationHelper] identifier[helper] , identifier[Context] identifier[context] , identifier[String] identifier[key] , identifier[SecurityScheme] identifier[t] operator[SEP] { identifier[String] ident...
@Override public ListComplianceStatusResult listComplianceStatus(ListComplianceStatusRequest request) { request = beforeClientExecution(request); return executeListComplianceStatus(request); }
class class_name[name] begin[{] method[listComplianceStatus, return_type[type[ListComplianceStatusResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeListComplianceStatus, parame...
annotation[@] identifier[Override] Keyword[public] identifier[ListComplianceStatusResult] identifier[listComplianceStatus] operator[SEP] identifier[ListComplianceStatusRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ...
public void setHit(java.util.Collection<Hit> hit) { if (hit == null) { this.hit = null; return; } this.hit = new com.amazonaws.internal.SdkInternalList<Hit>(hit); }
class class_name[name] begin[{] method[setHit, return_type[void], modifier[public], parameter[hit]] begin[{] if[binary_operation[member[.hit], ==, literal[null]]] begin[{] assign[THIS[member[None.hit]], literal[null]] return[None] else begin[{] None ...
Keyword[public] Keyword[void] identifier[setHit] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[Hit] operator[>] identifier[hit] operator[SEP] { Keyword[if] operator[SEP] identifier[hit] operator[==] Other[null] operator[SEP] { ...
@Override public <E> SetAttribute<X, E> getDeclaredSet(String paramName, Class<E> paramClass) { PluralAttribute<X, ?, ?> declaredAttrib = getDeclaredPluralAttribute(paramName); if (onCheckSetAttribute(declaredAttrib, paramClass)) { return (SetAttribute<X, E>) declaredAttrib;...
class class_name[name] begin[{] method[getDeclaredSet, return_type[type[SetAttribute]], modifier[public], parameter[paramName, paramClass]] begin[{] local_variable[type[PluralAttribute], declaredAttrib] if[call[.onCheckSetAttribute, parameter[member[.declaredAttrib], member[.paramClass]...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[E] operator[>] identifier[SetAttribute] operator[<] identifier[X] , identifier[E] operator[>] identifier[getDeclaredSet] operator[SEP] identifier[String] identifier[paramName] , identifier[Class] operator[<] identifier[E] operator[>] identifier...
public ProfilePolicyMetadata[] queryPolicyMetadata(String[] policyName, Profile profile) throws RuntimeFault, RemoteException { return getVimService().queryPolicyMetadata(getMOR(), policyName, profile == null ? null : profile.getMOR()); }
class class_name[name] begin[{] method[queryPolicyMetadata, return_type[type[ProfilePolicyMetadata]], modifier[public], parameter[policyName, profile]] begin[{] return[call[.getVimService, parameter[]]] end[}] END[}]
Keyword[public] identifier[ProfilePolicyMetadata] operator[SEP] operator[SEP] identifier[queryPolicyMetadata] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[policyName] , identifier[Profile] identifier[profile] operator[SEP] Keyword[throws] identifier[RuntimeFault] , identifier[RemoteExceptio...
public static MavenDependencyExclusion createExclusion(final String canonicalForm) throws IllegalArgumentException, CoordinateParseException { if (canonicalForm == null || canonicalForm.length() == 0) { throw new IllegalArgumentException("canonical form is required"); } final...
class class_name[name] begin[{] method[createExclusion, return_type[type[MavenDependencyExclusion]], modifier[public static], parameter[canonicalForm]] begin[{] if[binary_operation[binary_operation[member[.canonicalForm], ==, literal[null]], ||, binary_operation[call[canonicalForm.length, param...
Keyword[public] Keyword[static] identifier[MavenDependencyExclusion] identifier[createExclusion] operator[SEP] Keyword[final] identifier[String] identifier[canonicalForm] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] , identifier[CoordinateParseException] { Keyword[if] operator[SEP] identif...
public void fieldToData(ComponentCache componentCache, int iRowIndex, int iColumnIndex) { if (componentCache.m_rgcompoments[iColumnIndex] != null) { Object object = this.getModel().getValueAt(iRowIndex, iColumnIndex); String string = ""; if (object != null) ...
class class_name[name] begin[{] method[fieldToData, return_type[void], modifier[public], parameter[componentCache, iRowIndex, iColumnIndex]] begin[{] if[binary_operation[member[componentCache.m_rgcompoments], !=, literal[null]]] begin[{] local_variable[type[Object], object] ...
Keyword[public] Keyword[void] identifier[fieldToData] operator[SEP] identifier[ComponentCache] identifier[componentCache] , Keyword[int] identifier[iRowIndex] , Keyword[int] identifier[iColumnIndex] operator[SEP] { Keyword[if] operator[SEP] identifier[componentCache] operator[SEP] identifier[m_rgcompoments] op...
public <T> T get(final Object key) { @SuppressWarnings("unchecked") // cast is not safe but convenient T value = (T) additionalData.get(key); return value; }
class class_name[name] begin[{] method[get, return_type[type[T]], modifier[public], parameter[key]] begin[{] local_variable[type[T], value] return[member[.value]] end[}] END[}]
Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[get] operator[SEP] Keyword[final] identifier[Object] identifier[key] operator[SEP] { annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] identifier[T] identifier[value] operator[=] operator[SEP] iden...
public static String getFullQualifiedFieldName(final Class type, final Method method) { if (method != null) { // get the name of the type from passed type or method final String typeName; if (type != null) { typeName = type.getCanonicalName(); } ...
class class_name[name] begin[{] method[getFullQualifiedFieldName, return_type[type[String]], modifier[public static], parameter[type, method]] begin[{] if[binary_operation[member[.method], !=, literal[null]]] begin[{] local_variable[type[String], typeName] if...
Keyword[public] Keyword[static] identifier[String] identifier[getFullQualifiedFieldName] operator[SEP] Keyword[final] identifier[Class] identifier[type] , Keyword[final] identifier[Method] identifier[method] operator[SEP] { Keyword[if] operator[SEP] identifier[method] operator[!=] Other[null] operator[SEP] { ...
private void co_yield(boolean moreRemains) throws SAXException { // Horrendous kluge to run filter to completion. See below. if(fNoMoreEvents) return; try // Coroutine manager might throw no-such. { Object arg=Boolean.FALSE; if(moreRemains) { // Yield control, resume p...
class class_name[name] begin[{] method[co_yield, return_type[void], modifier[private], parameter[moreRemains]] begin[{] if[member[.fNoMoreEvents]] begin[{] return[None] else begin[{] None end[}] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[Va...
Keyword[private] Keyword[void] identifier[co_yield] operator[SEP] Keyword[boolean] identifier[moreRemains] operator[SEP] Keyword[throws] identifier[SAXException] { Keyword[if] operator[SEP] identifier[fNoMoreEvents] operator[SEP] Keyword[return] operator[SEP] Keyword[try] { identifier[Object] identifi...
private void validateCommandResult(ZooCommand command, TestContext context) { Message commandResult = getCommandResult(command); extractVariables(commandResult, context); if (log.isDebugEnabled()) { log.debug("Validating Zookeeper response"); } if (StringUtils.hasT...
class class_name[name] begin[{] method[validateCommandResult, return_type[void], modifier[private], parameter[command, context]] begin[{] local_variable[type[Message], commandResult] call[.extractVariables, parameter[member[.commandResult], member[.context]]] if[call[log...
Keyword[private] Keyword[void] identifier[validateCommandResult] operator[SEP] identifier[ZooCommand] identifier[command] , identifier[TestContext] identifier[context] operator[SEP] { identifier[Message] identifier[commandResult] operator[=] identifier[getCommandResult] operator[SEP] identifier[command] operato...
private void parsePlurals(JsonObject root, String type, Map<String, PluralData> map) { JsonObject node = resolve(root, "supplemental", type); for (Map.Entry<String, JsonElement> entry : node.entrySet()) { String language = entry.getKey(); PluralData data = new PluralData(); for (Map.Entry<Stri...
class class_name[name] begin[{] method[parsePlurals, return_type[void], modifier[private], parameter[root, type, map]] begin[{] local_variable[type[JsonObject], node] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarato...
Keyword[private] Keyword[void] identifier[parsePlurals] operator[SEP] identifier[JsonObject] identifier[root] , identifier[String] identifier[type] , identifier[Map] operator[<] identifier[String] , identifier[PluralData] operator[>] identifier[map] operator[SEP] { identifier[JsonObject] identifier[node] oper...
public Matrix4x3d rotateLocal(double ang, double x, double y, double z) { return rotateLocal(ang, x, y, z, this); }
class class_name[name] begin[{] method[rotateLocal, return_type[type[Matrix4x3d]], modifier[public], parameter[ang, x, y, z]] begin[{] return[call[.rotateLocal, parameter[member[.ang], member[.x], member[.y], member[.z], THIS[]]]] end[}] END[}]
Keyword[public] identifier[Matrix4x3d] identifier[rotateLocal] operator[SEP] Keyword[double] identifier[ang] , Keyword[double] identifier[x] , Keyword[double] identifier[y] , Keyword[double] identifier[z] operator[SEP] { Keyword[return] identifier[rotateLocal] operator[SEP] identifier[ang] , identifier[x] , ...
public void marshall(CancelKeyDeletionRequest cancelKeyDeletionRequest, ProtocolMarshaller protocolMarshaller) { if (cancelKeyDeletionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(cancelK...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[cancelKeyDeletionRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.cancelKeyDeletionRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argument...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[CancelKeyDeletionRequest] identifier[cancelKeyDeletionRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[cancelKeyDeletionRequest] operator[==] Other[null] opera...
public boolean cleanupDestination() throws SIRollbackException, SIConnectionLostException, SIIncorrectCallException, SIResourceException, SIErrorException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "cleanupDestination"); boolean cl...
class class_name[name] begin[{] method[cleanupDestination, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[m...
Keyword[public] Keyword[boolean] identifier[cleanupDestination] operator[SEP] operator[SEP] Keyword[throws] identifier[SIRollbackException] , identifier[SIConnectionLostException] , identifier[SIIncorrectCallException] , identifier[SIResourceException] , identifier[SIErrorException] { Keyword[if] operator[SE...
public static Type getParameterizedType(final Field field, final int index) { if (field != null) { if (field.getGenericType() instanceof ParameterizedType) { final ParameterizedType type = (ParameterizedType) field.getGenericType(); if ((type.getActualTypeArguments() ...
class class_name[name] begin[{] method[getParameterizedType, return_type[type[Type]], modifier[public static], parameter[field, index]] begin[{] if[binary_operation[member[.field], !=, literal[null]]] begin[{] if[binary_operation[call[field.getGenericType, parameter[]], ...
Keyword[public] Keyword[static] identifier[Type] identifier[getParameterizedType] operator[SEP] Keyword[final] identifier[Field] identifier[field] , Keyword[final] Keyword[int] identifier[index] operator[SEP] { Keyword[if] operator[SEP] identifier[field] operator[!=] Other[null] operator[SEP] { Keywo...
private boolean isNestedOrSandwichedMethodCall() { return typeCheckingContext.getEnclosingMethodCalls().size() > 1 || typeCheckingContext.getEnclosingConstructorCalls().size() > 0 || typeCheckingContext.getEnclosingPropertyExpressions().size() > 0; }
class class_name[name] begin[{] method[isNestedOrSandwichedMethodCall, return_type[type[boolean]], modifier[private], parameter[]] begin[{] return[binary_operation[binary_operation[binary_operation[call[typeCheckingContext.getEnclosingMethodCalls, parameter[]], >, literal[1]], ||, binary_operation[call...
Keyword[private] Keyword[boolean] identifier[isNestedOrSandwichedMethodCall] operator[SEP] operator[SEP] { Keyword[return] identifier[typeCheckingContext] operator[SEP] identifier[getEnclosingMethodCalls] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[>] Other[1] ...
public CreateDocumentResponse createDocument(File file, String title) { CreateDocumentRequest request = new CreateDocumentRequest(); String format; String filename = file.getName(); if (filename.lastIndexOf(".") == -1) { throw new BceClientException("Cannot get file format fr...
class class_name[name] begin[{] method[createDocument, return_type[type[CreateDocumentResponse]], modifier[public], parameter[file, title]] begin[{] local_variable[type[CreateDocumentRequest], request] local_variable[type[String], format] local_variable[type[String], filename] ...
Keyword[public] identifier[CreateDocumentResponse] identifier[createDocument] operator[SEP] identifier[File] identifier[file] , identifier[String] identifier[title] operator[SEP] { identifier[CreateDocumentRequest] identifier[request] operator[=] Keyword[new] identifier[CreateDocumentRequest] operator[SEP] oper...
@SuppressWarnings("unchecked") public <T> Comparator<T> getComparator(Class<T> clazz) { boolean useUnsafe = OGlobalConfiguration.MEMORY_USE_UNSAFE.getValueAsBoolean(); if (clazz.equals(byte[].class)) { if (useUnsafe && unsafeWasDetected) return (Comparator<T>) OUnsafeByteArrayComparator.INSTANC...
class class_name[name] begin[{] method[getComparator, return_type[type[Comparator]], modifier[public], parameter[clazz]] begin[{] local_variable[type[boolean], useUnsafe] if[call[clazz.equals, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] operator[>] identifier[Comparator] operator[<] identifier[T] operator[>] identifier[getComparator] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] oper...
public static boolean isDate(String str) { try { DateUtils.parseDate(str); return true; } catch (Exception e) { return false; } }
class class_name[name] begin[{] method[isDate, return_type[type[boolean]], modifier[public static], parameter[str]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=str, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isDate] operator[SEP] identifier[String] identifier[str] operator[SEP] { Keyword[try] { identifier[DateUtils] operator[SEP] identifier[parseDate] operator[SEP] identifier[str] operator[SEP] operator[SEP] Keyword[return] literal[boolean] opera...
public void addListener(KeyedMessage keyedMessage, VehicleMessage.Listener listener) { addListener(keyedMessage.getKey(), listener); }
class class_name[name] begin[{] method[addListener, return_type[void], modifier[public], parameter[keyedMessage, listener]] begin[{] call[.addListener, parameter[call[keyedMessage.getKey, parameter[]], member[.listener]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addListener] operator[SEP] identifier[KeyedMessage] identifier[keyedMessage] , identifier[VehicleMessage] operator[SEP] identifier[Listener] identifier[listener] operator[SEP] { identifier[addListener] operator[SEP] identifier[keyedMessage] operator[SEP] identifier[getKe...
public void stop () { if (_state == AL10.AL_STOPPED) { log.warning("Tried to stop stream that was already stopped."); return; } _source.stop(); _state = AL10.AL_STOPPED; }
class class_name[name] begin[{] method[stop, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[._state], ==, member[AL10.AL_STOPPED]]] begin[{] call[log.warning, parameter[literal["Tried to stop stream that was already stopped."]]] ...
Keyword[public] Keyword[void] identifier[stop] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[_state] operator[==] identifier[AL10] operator[SEP] identifier[AL_STOPPED] operator[SEP] { identifier[log] operator[SEP] identifier[warning] operator[SEP] literal[String] operator[SEP] ope...
public EClass getFNI() { if (fniEClass == null) { fniEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(265); } return fniEClass; }
class class_name[name] begin[{] method[getFNI, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.fniEClass], ==, literal[null]]] begin[{] assign[member[.fniEClass], Cast(expression=MethodInvocation(arguments=[MemberReference(m...
Keyword[public] identifier[EClass] identifier[getFNI] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[fniEClass] operator[==] Other[null] operator[SEP] { identifier[fniEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP] identifier[Re...
private boolean doForwardSubstitution() { if (!REDUNDANT_LOAD_ELIMINATION) { return false; } XField xfield = loadedFieldSet.getField(handle); if (xfield == null) { return false; } if(xfield.getSignature().equals("D") || xfield.getSignature().equa...
class class_name[name] begin[{] method[doForwardSubstitution, return_type[type[boolean]], modifier[private], parameter[]] begin[{] if[member[.REDUNDANT_LOAD_ELIMINATION]] begin[{] return[literal[false]] else begin[{] None end[}] local_variable[type[XField], x...
Keyword[private] Keyword[boolean] identifier[doForwardSubstitution] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[REDUNDANT_LOAD_ELIMINATION] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } identifier[XField] identifier[xfield] operator[=...
private List<File> getAllPossibleExternalConfigDirFilenames(final File configDirectory, final List<String> profiles) { val applicationName = casConfigurationPropertiesEnvironmentManager.getApplicationName(); val appNameLowerCase = applicationName.toLowerCase(); val fileNames = CollectionUtils.wr...
class class_name[name] begin[{] method[getAllPossibleExternalConfigDirFilenames, return_type[type[List]], modifier[private], parameter[configDirectory, profiles]] begin[{] local_variable[type[val], applicationName] local_variable[type[val], appNameLowerCase] local_variable[type[val], fi...
Keyword[private] identifier[List] operator[<] identifier[File] operator[>] identifier[getAllPossibleExternalConfigDirFilenames] operator[SEP] Keyword[final] identifier[File] identifier[configDirectory] , Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[profiles] operator[SEP] { ...
public void startElement (String namespaceURI, String localName, String qName, Attributes atts) throws SAXException { int entryType = -1; Vector entryArgs = new Vector(); if (localName.equals("Base")) { entryType = catalog.BASE; entryArgs.add(atts.getValue("HRef")); ...
class class_name[name] begin[{] method[startElement, return_type[void], modifier[public], parameter[namespaceURI, localName, qName, atts]] begin[{] local_variable[type[int], entryType] local_variable[type[Vector], entryArgs] if[call[localName.equals, parameter[literal["Base"]]]]...
Keyword[public] Keyword[void] identifier[startElement] operator[SEP] identifier[String] identifier[namespaceURI] , identifier[String] identifier[localName] , identifier[String] identifier[qName] , identifier[Attributes] identifier[atts] operator[SEP] Keyword[throws] identifier[SAXException] { Keyword[int] ide...
public static String imageTagAction( String src, CmsImageScaler scaler, Map<String, String> attributes, boolean partialTag, ServletRequest req) throws CmsException { return imageTagAction(src, scaler, attributes, partialTag, false, req); }
class class_name[name] begin[{] method[imageTagAction, return_type[type[String]], modifier[public static], parameter[src, scaler, attributes, partialTag, req]] begin[{] return[call[.imageTagAction, parameter[member[.src], member[.scaler], member[.attributes], member[.partialTag], literal[false], member...
Keyword[public] Keyword[static] identifier[String] identifier[imageTagAction] operator[SEP] identifier[String] identifier[src] , identifier[CmsImageScaler] identifier[scaler] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[attributes] , Keyword[boolean] identifier[partia...
public void await() { boolean intr = false; final Object lock = this.lock; try { synchronized (lock) { while (! readClosed) { try { lock.wait(); } catch (InterruptedException e) { ...
class class_name[name] begin[{] method[await, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[boolean], intr] local_variable[type[Object], lock] TryStatement(block=[SynchronizedStatement(block=[WhileStatement(body=BlockStatement(label=None, statements=[Try...
Keyword[public] Keyword[void] identifier[await] operator[SEP] operator[SEP] { Keyword[boolean] identifier[intr] operator[=] literal[boolean] operator[SEP] Keyword[final] identifier[Object] identifier[lock] operator[=] Keyword[this] operator[SEP] identifier[lock] operator[SEP] Keyword[try] { Keyword[sy...
protected boolean determineIfThrottled(ThrottleState state) { final long prevUncommitted = lastUncommitted; lastUncommitted = state.uncommittedJournalEntries; final String transportName = this.getClass().getSimpleName(); log.debug("Checking if transport {} should be throttled {}", trans...
class class_name[name] begin[{] method[determineIfThrottled, return_type[type[boolean]], modifier[protected], parameter[state]] begin[{] local_variable[type[long], prevUncommitted] assign[member[.lastUncommitted], member[state.uncommittedJournalEntries]] local_variable[type[Stri...
Keyword[protected] Keyword[boolean] identifier[determineIfThrottled] operator[SEP] identifier[ThrottleState] identifier[state] operator[SEP] { Keyword[final] Keyword[long] identifier[prevUncommitted] operator[=] identifier[lastUncommitted] operator[SEP] identifier[lastUncommitted] operator[=] identifier[state] o...
public SIBusMessage next() throws SISessionUnavailableException, SISessionDroppedException, SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SIErrorException, SINotAuthorizedException { if (...
class class_name[name] begin[{] method[next, return_type[type[SIBusMessage]], modifier[public], parameter[]] begin[{] if[call[tc.isEntryEnabled, parameter[]]] begin[{] call[SibTr.entry, parameter[THIS[], member[.tc], literal["next"]]] else begin[{] None end[}] ...
Keyword[public] identifier[SIBusMessage] identifier[next] operator[SEP] operator[SEP] Keyword[throws] identifier[SISessionUnavailableException] , identifier[SISessionDroppedException] , identifier[SIConnectionUnavailableException] , identifier[SIConnectionDroppedException] , identifier[SIResourceException] , ident...
public void setSeparatorColor(int separatorColor) { mSeparatorColor = separatorColor; Field[] pickerFields = NumberPicker.class.getDeclaredFields(); for (Field pf : pickerFields) { if (pf.getName().equals("mSelectionDivider")) { pf.setAccessible(true); ...
class class_name[name] begin[{] method[setSeparatorColor, return_type[void], modifier[public], parameter[separatorColor]] begin[{] assign[member[.mSeparatorColor], member[.separatorColor]] local_variable[type[Field], pickerFields] ForStatement(body=BlockStatement(label=None, sta...
Keyword[public] Keyword[void] identifier[setSeparatorColor] operator[SEP] Keyword[int] identifier[separatorColor] operator[SEP] { identifier[mSeparatorColor] operator[=] identifier[separatorColor] operator[SEP] identifier[Field] operator[SEP] operator[SEP] identifier[pickerFields] operator[=] identifier[NumberPi...
public void setCost(int index, Number value) { set(selectField(AssignmentFieldLists.CUSTOM_COST, index), value); }
class class_name[name] begin[{] method[setCost, return_type[void], modifier[public], parameter[index, value]] begin[{] call[.set, parameter[call[.selectField, parameter[member[AssignmentFieldLists.CUSTOM_COST], member[.index]]], member[.value]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setCost] operator[SEP] Keyword[int] identifier[index] , identifier[Number] identifier[value] operator[SEP] { identifier[set] operator[SEP] identifier[selectField] operator[SEP] identifier[AssignmentFieldLists] operator[SEP] identifier[CUSTOM_COST] , identifier[index] op...
public static Logger getLogger(Class<?> clazz){ if (clazz == null) { throw new IllegalArgumentException("The clazz must not be null."); } return LoggerFactory.getLogger(clazz.getName()); }
class class_name[name] begin[{] method[getLogger, return_type[type[Logger]], modifier[public static], parameter[clazz]] begin[{] if[binary_operation[member[.clazz], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_op...
Keyword[public] Keyword[static] identifier[Logger] identifier[getLogger] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { Keyword[if] operator[SEP] identifier[clazz] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[Ill...
private boolean updateSVScalar(String currentValue) { String newValue = m_dbObj.getFieldValue(m_fieldName); boolean bUpdated = false; if (Utils.isEmpty(newValue)) { if (!Utils.isEmpty(currentValue)) { m_dbTran.deleteScalarValueColumn(m_tableDef, m_dbObj.getObject...
class class_name[name] begin[{] method[updateSVScalar, return_type[type[boolean]], modifier[private], parameter[currentValue]] begin[{] local_variable[type[String], newValue] local_variable[type[boolean], bUpdated] if[call[Utils.isEmpty, parameter[member[.newValue]]]] begin[{] ...
Keyword[private] Keyword[boolean] identifier[updateSVScalar] operator[SEP] identifier[String] identifier[currentValue] operator[SEP] { identifier[String] identifier[newValue] operator[=] identifier[m_dbObj] operator[SEP] identifier[getFieldValue] operator[SEP] identifier[m_fieldName] operator[SEP] operator[SEP] ...
public static String format(int[] a, String sep) { return (a == null) ? "null" : (a.length == 0) ? "" : // formatTo(new StringBuilder(), a, sep).toString(); }
class class_name[name] begin[{] method[format, return_type[type[String]], modifier[public static], parameter[a, sep]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=a, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(pos...
Keyword[public] Keyword[static] identifier[String] identifier[format] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[a] , identifier[String] identifier[sep] operator[SEP] { Keyword[return] operator[SEP] identifier[a] operator[==] Other[null] operator[SEP] operator[?] literal[String] operator[...
protected Collection<? extends ItemHolder> items() { for (CompositePollItem item : all) { item.handler(globalHandler); } return all; }
class class_name[name] begin[{] method[items, return_type[type[Collection]], modifier[protected], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=globalHandler, postfix_operators=[], prefix_...
Keyword[protected] identifier[Collection] operator[<] operator[?] Keyword[extends] identifier[ItemHolder] operator[>] identifier[items] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[CompositePollItem] identifier[item] operator[:] identifier[all] operator[SEP] { identifier[item] ...
@Override public ValidationResult<?> validate(final OptionalConfigurationComponent<?> configurationComponent) { if (configurationComponent instanceof ValidatingConfigurationComponent) { @SuppressWarnings("rawtypes") final ValidatingConfigurationComponent<?> validatingComponent = (Val...
class class_name[name] begin[{] method[validate, return_type[type[ValidationResult]], modifier[public], parameter[configurationComponent]] begin[{] if[binary_operation[member[.configurationComponent], instanceof, type[ValidatingConfigurationComponent]]] begin[{] local_variable[type[...
annotation[@] identifier[Override] Keyword[public] identifier[ValidationResult] operator[<] operator[?] operator[>] identifier[validate] operator[SEP] Keyword[final] identifier[OptionalConfigurationComponent] operator[<] operator[?] operator[>] identifier[configurationComponent] operator[SEP] { Keyword[if] opera...
public final Deferred<Object> sinkDataPoint(final String metric, final long timestamp, final byte[] value, final Map<String, String> tags, final byte[] tsuid, final short flags) { if ((flags & Const.FLAG_FLOAT) != 0x0) { return publishDataPoint(metric, timestamp, Internal.extractFloat...
class class_name[name] begin[{] method[sinkDataPoint, return_type[type[Deferred]], modifier[final public], parameter[metric, timestamp, value, tags, tsuid, flags]] begin[{] if[binary_operation[binary_operation[member[.flags], &, member[Const.FLAG_FLOAT]], !=, literal[0x0]]] begin[{] ...
Keyword[public] Keyword[final] identifier[Deferred] operator[<] identifier[Object] operator[>] identifier[sinkDataPoint] operator[SEP] Keyword[final] identifier[String] identifier[metric] , Keyword[final] Keyword[long] identifier[timestamp] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[value] ...
private void createKeysIfNotExist() { if (!keyPairExists()) { try { final KeyPair keyPair = generateKeyPair(); save(keyPair); } catch (NoSuchAlgorithmException e) { LOGGER.error("An error occurred generating new keypair"); L...
class class_name[name] begin[{] method[createKeysIfNotExist, return_type[void], modifier[private], parameter[]] begin[{] if[call[.keyPairExists, parameter[]]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initial...
Keyword[private] Keyword[void] identifier[createKeysIfNotExist] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[keyPairExists] operator[SEP] operator[SEP] operator[SEP] { Keyword[try] { Keyword[final] identifier[KeyPair] identifier[keyPair] operator[=] ide...
public static HashSet<String> createSetFromProperty(String property) { HashSet<String> properties = new HashSet<String>(); if (property != null && !property.equals("null")) { // "([\\w]*)=([\\w]*);" Pattern params = Pattern.compile("([\\w]+)[;]*"); Matcher matcher = params.matcher(property.trim()); wh...
class class_name[name] begin[{] method[createSetFromProperty, return_type[type[HashSet]], modifier[public static], parameter[property]] begin[{] local_variable[type[HashSet], properties] if[binary_operation[binary_operation[member[.property], !=, literal[null]], &&, call[property.equals...
Keyword[public] Keyword[static] identifier[HashSet] operator[<] identifier[String] operator[>] identifier[createSetFromProperty] operator[SEP] identifier[String] identifier[property] operator[SEP] { identifier[HashSet] operator[<] identifier[String] operator[>] identifier[properties] operator[=] Keyword[new] ide...
@Bean public Javers getJavers(final PlatformTransactionManager txManager) { final JaversSqlRepository sqlRepository = SqlRepositoryBuilder.sqlRepository() .withConnectionProvider(new ConnectionProvider() { @Override public Connection getConnection() { final SessionImpl session = (SessionImpl) en...
class class_name[name] begin[{] method[getJavers, return_type[type[Javers]], modifier[public], parameter[txManager]] begin[{] local_variable[type[JaversSqlRepository], sqlRepository] return[call[TransactionalJaversBuilder.javers, parameter[]]] end[}] END[}]
annotation[@] identifier[Bean] Keyword[public] identifier[Javers] identifier[getJavers] operator[SEP] Keyword[final] identifier[PlatformTransactionManager] identifier[txManager] operator[SEP] { Keyword[final] identifier[JaversSqlRepository] identifier[sqlRepository] operator[=] identifier[SqlRepositoryBuilder] o...
String createMessage( final ILoggingEvent event, @Nullable final String eventName, @Nullable final String[] keys, @Nullable final Object[] values) { final String formatString = buildFormatString(eventName, keys); final LoggingEventWrapper eventWrapper = n...
class class_name[name] begin[{] method[createMessage, return_type[type[String]], modifier[default], parameter[event, eventName, keys, values]] begin[{] local_variable[type[String], formatString] local_variable[type[LoggingEventWrapper], eventWrapper] return[call[layout.doLayout, paramet...
identifier[String] identifier[createMessage] operator[SEP] Keyword[final] identifier[ILoggingEvent] identifier[event] , annotation[@] identifier[Nullable] Keyword[final] identifier[String] identifier[eventName] , annotation[@] identifier[Nullable] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifi...
public static void useProvider(String className,String handlerName) { _httpsProviderClass = null; JSSE_PROVIDER_CLASS =className; SSL_PROTOCOL_HANDLER =handlerName; }
class class_name[name] begin[{] method[useProvider, return_type[void], modifier[public static], parameter[className, handlerName]] begin[{] assign[member[._httpsProviderClass], literal[null]] assign[member[.JSSE_PROVIDER_CLASS], member[.className]] assign[member[...
Keyword[public] Keyword[static] Keyword[void] identifier[useProvider] operator[SEP] identifier[String] identifier[className] , identifier[String] identifier[handlerName] operator[SEP] { identifier[_httpsProviderClass] operator[=] Other[null] operator[SEP] identifier[JSSE_PROVIDER_CLASS] operator[=] identifier[c...
public void setStatement(Statement statement, QueryParameters params) throws SQLException { AssertUtils.assertNotNull(params); PreparedStatement preparedStmt = (PreparedStatement) statement; // check the parameter count, if we can ParameterMetaData pmd = null; int stmtCo...
class class_name[name] begin[{] method[setStatement, return_type[void], modifier[public], parameter[statement, params]] begin[{] call[AssertUtils.assertNotNull, parameter[member[.params]]] local_variable[type[PreparedStatement], preparedStmt] local_variable[type[ParameterMetaDat...
Keyword[public] Keyword[void] identifier[setStatement] operator[SEP] identifier[Statement] identifier[statement] , identifier[QueryParameters] identifier[params] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[AssertUtils] operator[SEP] identifier[assertNotNull] operator[SEP] identifier[para...
@Override public Object eGet(int featureID, boolean resolve, boolean coreType) { switch (featureID) { case TypesPackage.JVM_UNKNOWN_TYPE_REFERENCE__QUALIFIED_NAME: return getQualifiedName(); } return super.eGet(featureID, resolve, coreType); }
class class_name[name] begin[{] method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=JVM_UNKNOWN_TYPE_REFERENCE__QUALIFIED_NAME, postfix_operators=[], prefix_operators=[], qual...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { K...
public static void main(String[] args) throws Exception { EncryptionUtil util = new EncryptionUtil(); System.out.println("Enter text to encrypt: "); BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String input = reader.readLine(); if (null != input ...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] local_variable[type[EncryptionUtil], util] call[System.out.println, parameter[literal["Enter text to encrypt: "]]] local_variable[type[BufferedReader], reader] ...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] { identifier[EncryptionUtil] identifier[util] operator[=] Keyword[new] identifier[EncryptionUtil] operator[SEP] operator...
public static long transfer(final ReadableByteChannel source, final long count, final ByteBuffer throughBuffer, final WritableByteChannel sink) throws IOException { long total = 0L; while (total < count) { throughBuffer.clear(); if (count - total < throughBuffer.remaining()) { ...
class class_name[name] begin[{] method[transfer, return_type[type[long]], modifier[public static], parameter[source, count, throughBuffer, sink]] begin[{] local_variable[type[long], total] while[binary_operation[member[.total], <, member[.count]]] begin[{] call[t...
Keyword[public] Keyword[static] Keyword[long] identifier[transfer] operator[SEP] Keyword[final] identifier[ReadableByteChannel] identifier[source] , Keyword[final] Keyword[long] identifier[count] , Keyword[final] identifier[ByteBuffer] identifier[throughBuffer] , Keyword[final] identifier[WritableByteChannel] identi...
public static <E> E onMainThread(Class<E> callbackInterface, final E callback) { Utils.notNull(callbackInterface, "callbackInterface must not be null"); Utils.notNull(callback, "callback must not be null"); final Handler handler = new Handler(Looper.getMainLooper()); final String tag = callback.getClass().getS...
class class_name[name] begin[{] method[onMainThread, return_type[type[E]], modifier[public static], parameter[callbackInterface, callback]] begin[{] call[Utils.notNull, parameter[member[.callbackInterface], literal["callbackInterface must not be null"]]] call[Utils.notNull, para...
Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[E] identifier[onMainThread] operator[SEP] identifier[Class] operator[<] identifier[E] operator[>] identifier[callbackInterface] , Keyword[final] identifier[E] identifier[callback] operator[SEP] { identifier[Utils] operator[SEP] ide...
public static List<String> getArrayProperties(String p_expression, boolean p_recursive) { Object container = evalAsObject("#{" + p_expression + "}"); Class<? extends Object> c = container == null ? null : container.getClass(); List<String> propertyNames = new ArrayList<String>(); if (isPrimitive(c)) { prope...
class class_name[name] begin[{] method[getArrayProperties, return_type[type[List]], modifier[public static], parameter[p_expression, p_recursive]] begin[{] local_variable[type[Object], container] local_variable[type[Class], c] local_variable[type[List], propertyNames] if...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[getArrayProperties] operator[SEP] identifier[String] identifier[p_expression] , Keyword[boolean] identifier[p_recursive] operator[SEP] { identifier[Object] identifier[container] operator[=] identifier[evalAsOb...
public static InputStream getInputStreamHttp(URL pURL, Properties pProperties, boolean pFollowRedirects, int pTimeout) throws IOException { // Open the connection, and get the stream HttpURLConnection conn = createHttpURLConnection(pURL, pProperties, pFollowRedirects, pTimeout); //...
class class_name[name] begin[{] method[getInputStreamHttp, return_type[type[InputStream]], modifier[public static], parameter[pURL, pProperties, pFollowRedirects, pTimeout]] begin[{] local_variable[type[HttpURLConnection], conn] call[conn.setRequestMethod, parameter[member[.HTTP_GET]]] ...
Keyword[public] Keyword[static] identifier[InputStream] identifier[getInputStreamHttp] operator[SEP] identifier[URL] identifier[pURL] , identifier[Properties] identifier[pProperties] , Keyword[boolean] identifier[pFollowRedirects] , Keyword[int] identifier[pTimeout] operator[SEP] Keyword[throws] identifier[IOExcepti...
@Override public DescribeAccountAuditConfigurationResult describeAccountAuditConfiguration(DescribeAccountAuditConfigurationRequest request) { request = beforeClientExecution(request); return executeDescribeAccountAuditConfiguration(request); }
class class_name[name] begin[{] method[describeAccountAuditConfiguration, return_type[type[DescribeAccountAuditConfigurationResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDe...
annotation[@] identifier[Override] Keyword[public] identifier[DescribeAccountAuditConfigurationResult] identifier[describeAccountAuditConfiguration] operator[SEP] identifier[DescribeAccountAuditConfigurationRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecut...
boolean hasGetterPrefixInMethodName(Method method) { String methodName = method.getName(); if (methodName != null) { for (String prefix : GETTER_PREFIXES) { if (methodName.startsWith(prefix)) { return true; } } } ...
class class_name[name] begin[{] method[hasGetterPrefixInMethodName, return_type[type[boolean]], modifier[default], parameter[method]] begin[{] local_variable[type[String], methodName] if[binary_operation[member[.methodName], !=, literal[null]]] begin[{] ForStatement(body=Blo...
Keyword[boolean] identifier[hasGetterPrefixInMethodName] operator[SEP] identifier[Method] identifier[method] operator[SEP] { identifier[String] identifier[methodName] operator[=] identifier[method] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[me...
public ByteBuffer next(ByteBuffer inBytes) throws GeneralSecurityException { Preconditions.checkState(!isFinished(), "Handshake has already finished."); HandshakerReq.Builder req = HandshakerReq.newBuilder() .setNext( NextHandshakeMessageReq.newBuilder() ....
class class_name[name] begin[{] method[next, return_type[type[ByteBuffer]], modifier[public], parameter[inBytes]] begin[{] call[Preconditions.checkState, parameter[call[.isFinished, parameter[]], literal["Handshake has already finished."]]] local_variable[type[HandshakerReq], req] ...
Keyword[public] identifier[ByteBuffer] identifier[next] operator[SEP] identifier[ByteBuffer] identifier[inBytes] operator[SEP] Keyword[throws] identifier[GeneralSecurityException] { identifier[Preconditions] operator[SEP] identifier[checkState] operator[SEP] operator[!] identifier[isFinished] operator[SEP] opera...
public String getDateString(Date dateTarget, int iDateFormat) { stringBuffer.setLength(0); FieldPosition fieldPosition = new FieldPosition(iDateFormat); String string = null; string = dateFormat.format(dateTarget, stringBuffer, fieldPosition).toString(); int iBegin = fieldPos...
class class_name[name] begin[{] method[getDateString, return_type[type[String]], modifier[public], parameter[dateTarget, iDateFormat]] begin[{] call[stringBuffer.setLength, parameter[literal[0]]] local_variable[type[FieldPosition], fieldPosition] local_variable[type[String], str...
Keyword[public] identifier[String] identifier[getDateString] operator[SEP] identifier[Date] identifier[dateTarget] , Keyword[int] identifier[iDateFormat] operator[SEP] { identifier[stringBuffer] operator[SEP] identifier[setLength] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[FieldPosition] iden...
protected static void showSendBroadcastDialog(Set<String> ids, String caption, final CmsSessionsTable table) { final Window window = CmsBasicDialog.prepareWindow(); window.setCaption(caption); CmsBasicDialog dialog = new CmsSendBroadcastDialog(ids, CmsSessionsTable.getCloseRunnable(window, tab...
class class_name[name] begin[{] method[showSendBroadcastDialog, return_type[void], modifier[static protected], parameter[ids, caption, table]] begin[{] local_variable[type[Window], window] call[window.setCaption, parameter[member[.caption]]] local_variable[type[CmsBasicDialog], ...
Keyword[protected] Keyword[static] Keyword[void] identifier[showSendBroadcastDialog] operator[SEP] identifier[Set] operator[<] identifier[String] operator[>] identifier[ids] , identifier[String] identifier[caption] , Keyword[final] identifier[CmsSessionsTable] identifier[table] operator[SEP] { Keyword[final] i...
private void validate() { if (host.isEmpty()) { throw new IllegalArgumentException("host cannot be null"); } if (catalog == null) { throw new IllegalArgumentException("database cannot be null"); } if (table == null) { throw new IllegalArgument...
class class_name[name] begin[{] method[validate, return_type[void], modifier[private], parameter[]] begin[{] if[call[host.isEmpty, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]...
Keyword[private] Keyword[void] identifier[validate] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[host] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] literal[String] oper...
public Task<Void> remove(final CacheKey key) { Preconditions.checkNotNull(key); mStagingArea.remove(key); try { return Task.call( new Callable<Void>() { @Override public Void call() throws Exception { try { if (FrescoSystrace.isTracing())...
class class_name[name] begin[{] method[remove, return_type[type[Task]], modifier[public], parameter[key]] begin[{] call[Preconditions.checkNotNull, parameter[member[.key]]] call[mStagingArea.remove, parameter[member[.key]]] TryStatement(block=[ReturnStatement(expression=...
Keyword[public] identifier[Task] operator[<] identifier[Void] operator[>] identifier[remove] operator[SEP] Keyword[final] identifier[CacheKey] identifier[key] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[key] operator[SEP] operator[SEP] identifier[mSta...
public static File getRelativePathTo(File parent, final List<String> folders) { for (final String string : folders) { final File nextFolder = new File(parent, string); parent = nextFolder; } return parent; }
class class_name[name] begin[{] method[getRelativePathTo, return_type[type[File]], modifier[public static], parameter[parent, folders]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=C...
Keyword[public] Keyword[static] identifier[File] identifier[getRelativePathTo] operator[SEP] identifier[File] identifier[parent] , Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[folders] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] identifier[String] identifie...
@FFDCIgnore(SizeLimitExceededException.class) private Set<LdapEntry> populateResultSet(NamingEnumeration<SearchResult> neu, String base, int scope, List<String> inEntityTypes, String[] attrIds) throws WIMException { final String METHODNAME = "populateResultSet"; Set<LdapEntry> entities = new HashSe...
class class_name[name] begin[{] method[populateResultSet, return_type[type[Set]], modifier[private], parameter[neu, base, scope, inEntityTypes, attrIds]] begin[{] local_variable[type[String], METHODNAME] local_variable[type[Set], entities] TryStatement(block=[WhileStatement(body=BlockSt...
annotation[@] identifier[FFDCIgnore] operator[SEP] identifier[SizeLimitExceededException] operator[SEP] Keyword[class] operator[SEP] Keyword[private] identifier[Set] operator[<] identifier[LdapEntry] operator[>] identifier[populateResultSet] operator[SEP] identifier[NamingEnumeration] operator[<] identifier[SearchResul...
public String format(Date date) { Calendar cal = new GregorianCalendar(); cal.setTime(date); return DatatypeConverter.printDateTime(cal); }
class class_name[name] begin[{] method[format, return_type[type[String]], modifier[public], parameter[date]] begin[{] local_variable[type[Calendar], cal] call[cal.setTime, parameter[member[.date]]] return[call[DatatypeConverter.printDateTime, parameter[member[.cal]]]] end[}]...
Keyword[public] identifier[String] identifier[format] operator[SEP] identifier[Date] identifier[date] operator[SEP] { identifier[Calendar] identifier[cal] operator[=] Keyword[new] identifier[GregorianCalendar] operator[SEP] operator[SEP] operator[SEP] identifier[cal] operator[SEP] identifier[setTime] operator[SE...
public void clearDispatcher (InvocationMarshaller<?> marsh) { _omgr.requireEventThread(); // sanity check if (marsh == null) { log.warning("Refusing to unregister null marshaller.", new Exception()); return; } if (_dispatchers.remove(marsh.getInvocationCode(...
class class_name[name] begin[{] method[clearDispatcher, return_type[void], modifier[public], parameter[marsh]] begin[{] call[_omgr.requireEventThread, parameter[]] if[binary_operation[member[.marsh], ==, literal[null]]] begin[{] call[log.warning, paramete...
Keyword[public] Keyword[void] identifier[clearDispatcher] operator[SEP] identifier[InvocationMarshaller] operator[<] operator[?] operator[>] identifier[marsh] operator[SEP] { identifier[_omgr] operator[SEP] identifier[requireEventThread] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identif...
public Observable<DiagnosticCategoryInner> getSiteDiagnosticCategoryAsync(String resourceGroupName, String siteName, String diagnosticCategory) { return getSiteDiagnosticCategoryWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory).map(new Func1<ServiceResponse<DiagnosticCategoryInner>, Diag...
class class_name[name] begin[{] method[getSiteDiagnosticCategoryAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, siteName, diagnosticCategory]] begin[{] return[call[.getSiteDiagnosticCategoryWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.site...
Keyword[public] identifier[Observable] operator[<] identifier[DiagnosticCategoryInner] operator[>] identifier[getSiteDiagnosticCategoryAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[siteName] , identifier[String] identifier[diagnosticCategory] operator[SEP] { ...
@Override public FlowConfig get(ComplexResourceKey<FlowId, EmptyRecord> key) { String flowGroup = key.getKey().getFlowGroup(); String flowName = key.getKey().getFlowName(); FlowId flowId = new FlowId().setFlowGroup(flowGroup).setFlowName(flowName); return this.flowConfigsResourceHandler.getFlowConfig(...
class class_name[name] begin[{] method[get, return_type[type[FlowConfig]], modifier[public], parameter[key]] begin[{] local_variable[type[String], flowGroup] local_variable[type[String], flowName] local_variable[type[FlowId], flowId] return[THIS[member[None.flowConfigsResourceHa...
annotation[@] identifier[Override] Keyword[public] identifier[FlowConfig] identifier[get] operator[SEP] identifier[ComplexResourceKey] operator[<] identifier[FlowId] , identifier[EmptyRecord] operator[>] identifier[key] operator[SEP] { identifier[String] identifier[flowGroup] operator[=] identifier[key] operato...
public void peerConnectionDidOpenDataChannel(DataChannel newDataChannel) { if (null != dataChannel) { // Replacing the previous connection, so disable observer messages from the old instance dataChannel.unregisterObserver(); } else { new Handler(Looper.getMainLooper()...
class class_name[name] begin[{] method[peerConnectionDidOpenDataChannel, return_type[void], modifier[public], parameter[newDataChannel]] begin[{] if[binary_operation[literal[null], !=, member[.dataChannel]]] begin[{] call[dataChannel.unregisterObserver, parameter[]] ...
Keyword[public] Keyword[void] identifier[peerConnectionDidOpenDataChannel] operator[SEP] identifier[DataChannel] identifier[newDataChannel] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[!=] identifier[dataChannel] operator[SEP] { identifier[dataChannel] operator[SEP] identifier[unregi...
public static boolean isFloat(final String txt) { try { Float.parseFloat(txt); return true; } catch (final Exception e) { return false; } }
class class_name[name] begin[{] method[isFloat, return_type[type[boolean]], modifier[public static], parameter[txt]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=txt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])],...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isFloat] operator[SEP] Keyword[final] identifier[String] identifier[txt] operator[SEP] { Keyword[try] { identifier[Float] operator[SEP] identifier[parseFloat] operator[SEP] identifier[txt] operator[SEP] operator[SEP] Keyword[return] literal[b...
public synchronized void unuse() { assert(inUse); inUse = false; compiler = null; fileManager = null; fileManagerBase = null; smartFileManager = null; context = null; subTasks = null; }
class class_name[name] begin[{] method[unuse, return_type[void], modifier[synchronized public], parameter[]] begin[{] AssertStatement(condition=MemberReference(member=inUse, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), label=None, value=None) assign[member[.inUs...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[unuse] operator[SEP] operator[SEP] { Keyword[assert] operator[SEP] identifier[inUse] operator[SEP] operator[SEP] identifier[inUse] operator[=] literal[boolean] operator[SEP] identifier[compiler] operator[=] Other[null] operator[SEP] identifier[fileMa...
public void putSingleEntity(String keyName) { // [START putSingleEntity] Key key = datastore.newKeyFactory().setKind("MyKind").newKey(keyName); Entity.Builder entityBuilder = Entity.newBuilder(key); entityBuilder.set("propertyName", "value"); Entity entity = entityBuilder.build(); datastore.put(...
class class_name[name] begin[{] method[putSingleEntity, return_type[void], modifier[public], parameter[keyName]] begin[{] local_variable[type[Key], key] local_variable[type[Entity], entityBuilder] call[entityBuilder.set, parameter[literal["propertyName"], literal["value"]]] ...
Keyword[public] Keyword[void] identifier[putSingleEntity] operator[SEP] identifier[String] identifier[keyName] operator[SEP] { identifier[Key] identifier[key] operator[=] identifier[datastore] operator[SEP] identifier[newKeyFactory] operator[SEP] operator[SEP] operator[SEP] identifier[setKind] operator[SEP] lite...
public static InsnList combineObjectArrays(Variable destArrayVar, Variable firstArrayVar, Variable secondArrayVar) { Validate.notNull(destArrayVar); Validate.notNull(firstArrayVar); Validate.notNull(secondArrayVar); Validate.isTrue(destArrayVar.getType().equals(Type.getType(Object[].clas...
class class_name[name] begin[{] method[combineObjectArrays, return_type[type[InsnList]], modifier[public static], parameter[destArrayVar, firstArrayVar, secondArrayVar]] begin[{] call[Validate.notNull, parameter[member[.destArrayVar]]] call[Validate.notNull, parameter[member[.fi...
Keyword[public] Keyword[static] identifier[InsnList] identifier[combineObjectArrays] operator[SEP] identifier[Variable] identifier[destArrayVar] , identifier[Variable] identifier[firstArrayVar] , identifier[Variable] identifier[secondArrayVar] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNu...
public static Point3D_F64 transform(Se3_F64 se, Point4D_F64 origPt, Point3D_F64 tranPt ) { if( tranPt == null ) tranPt = new Point3D_F64(); DMatrixRMaj R = se.getR(); Vector3D_F64 T = se.getT(); double P11 = R.data[0], P12 = R.data[1], P13 = R.data[2], P14 = T.x; double P21 = R.data[3], P22 = R.data[4], ...
class class_name[name] begin[{] method[transform, return_type[type[Point3D_F64]], modifier[public static], parameter[se, origPt, tranPt]] begin[{] if[binary_operation[member[.tranPt], ==, literal[null]]] begin[{] assign[member[.tranPt], ClassCreator(arguments=[], body=None, construc...
Keyword[public] Keyword[static] identifier[Point3D_F64] identifier[transform] operator[SEP] identifier[Se3_F64] identifier[se] , identifier[Point4D_F64] identifier[origPt] , identifier[Point3D_F64] identifier[tranPt] operator[SEP] { Keyword[if] operator[SEP] identifier[tranPt] operator[==] Other[null] operator...
public static Response call(String server, String service, boolean suppress, DataObject data, String... params) { List<String> list = new ArrayList<String>(Arrays.asList(params)); for (Field field: data.getClass().getFields()) { if (Modifier.isStatic(field.getModifiers())) continue; ...
class class_name[name] begin[{] method[call, return_type[type[Response]], modifier[public static], parameter[server, service, suppress, data, params]] begin[{] local_variable[type[List], list] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(argume...
Keyword[public] Keyword[static] identifier[Response] identifier[call] operator[SEP] identifier[String] identifier[server] , identifier[String] identifier[service] , Keyword[boolean] identifier[suppress] , identifier[DataObject] identifier[data] , identifier[String] operator[...] identifier[params] operator[SEP] { ...