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[...
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] oper...
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 ...
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] { id...
@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=[],...
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[=] identi...
StatementDMQL compileMergeStatement(RangeVariable[] outerRanges) { boolean[] insertColumnCheckList; int[] insertColumnMap = null; int[] updateColumnMap = null; int[] baseUpdateColumnMap; Table table; RangeVariable targetRange; ...
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] ...
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[...
@Override public IPortletUrlBuilder getPortletUrlBuilder(IPortletWindowId portletWindowId) { IPortletUrlBuilder portletUrlBuilder; portletUrlBuilder = this.portletUrlBuilders.get(portletWindowId); if (portletUrlBuilder == null) { portletUrlBuilder = Concurren...
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]c...
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] operat...
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]; ...
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[.sunLongit...
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[...
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[.getQu...
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[ge...
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=[...
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] { ...
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 -> { ...
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...
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; ...
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[u...
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] identifie...
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=Bina...
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...
@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[...
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.s...
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[...
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] , identif...
public void marshall(ListFleetsRequest listFleetsRequest, ProtocolMarshaller protocolMarshaller) { if (listFleetsRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listFleetsRequest.getNextTok...
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(pos...
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] { ...
@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[.componentResourc...
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...
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 ); ...
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(exp...
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] Ke...
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] , identi...
@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[m...
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[...
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=...
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] op...
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( ...
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 ...
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[deb...
@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] operat...
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[SE...
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] iden...
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; ...
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(expre...
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] operato...
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++) { ...
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=[], pref...
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] operato...
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 (Cascade...
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 en...
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] operat...
@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.AN...
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(argumen...
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] , ...
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 != n...
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[Cla...
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[getRes...
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_operato...
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...
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]]]...
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[instanc...
@Subscribe @SneakyThrows public final synchronized void renew(final DataSourceChangedEvent dataSourceChangedEvent) { dataSource.close(); dataSource = new ShardingDataSource(DataSourceConverter.getDataSourceMap(dataSourceChangedEvent.getDataSourceConfigurations()), dataSource.getShardingContext()...
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(...
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] i...
@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[s...
protected Encrypter getEncrypter(final Object samlObject, final SamlRegisteredService service, final SamlRegisteredServiceServiceProviderMetadataFacade adaptor, final KeyEncryptionParameters keyEncParams, ...
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.KeyPlace...
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...
@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["sourc...
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] o...
@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_oper...
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[RecordPag...
public void setElasticGpuAssociations(java.util.Collection<ElasticGpuAssociation> elasticGpuAssociations) { if (elasticGpuAssociations == null) { this.elasticGpuAssociations = null; return; } this.elasticGpuAssociations = new com.amazonaws.internal.SdkInternalList<Elasti...
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.elasticGpuAssociat...
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[...
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 == ...
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] ...
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[Strin...
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(argu...
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] ide...
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)); } hashServic...
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[{] ...
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[hash...
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) { ...
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_...
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...
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...
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] operat...
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] = '\'...
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''"]] ...
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[...
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(); ...
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[typ...
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[F...
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) { ...
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]...
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] identif...
@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[setContextVa...
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, par...
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[generateSourcePublicMet...
public SourceSnippet createMethodCallWithInjection(MethodLiteral<?, ?> method, String invokeeName, NameGenerator nameGenerator, List<InjectorMethod> methodsOutput) throws NoSourceNameException { String[] params = new String[method.getParameterTypes().size()]; return createMethodCallWithInjection(met...
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[.met...
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] opera...
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=L...
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] opera...
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 = ...
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=com...
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] o...
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, postf...
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] Key...
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(argume...
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[ActionInterceptorC...
public void serviceActive(ReceivableService receivableService) { for (ReceivableEvent receivableEvent : receivableService.getReceivableEvents()) { Set<ServiceID> servicesReceivingEvent = eventID2serviceIDs.get(receivableEvent.getEventType()); if (servicesReceivingEvent == null) { servicesReceivingEvent = ne...
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...
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[getReceivableEve...
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; i...
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_o...
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]...
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...
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[{] r...
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...
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=?"; f...
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[{] Non...
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] o...
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.asMa...
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, sele...
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[GitLabApiExcep...
@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=...
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...
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 overr...
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[bin...
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] oper...
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.destin...
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]]]]...
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[!=] Othe...
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_CONS...
@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[.reques...
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] oper...
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 subscr...
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, paramete...
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] i...
@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=[], quali...
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] opera...
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[{] retu...
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...
public void marshall(GetMediaForFragmentListRequest getMediaForFragmentListRequest, ProtocolMarshaller protocolMarshaller) { if (getMediaForFragmentListRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshalle...
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=ClassCrea...
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[==]...
boolean isSchemaAuthorisation(Grantee grantee) { Iterator schemas = allSchemaNameIterator(); while (schemas.hasNext()) { String schemaName = (String) schemas.next(); if (grantee.equals(toSchemaOwner(schemaName))) { return true; } } ...
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] ...
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] ...
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 Calend...
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[....
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[==] Ot...
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(); WritableD...
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[WritableD...
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] identi...
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=...
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_TO...
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[....
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...
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 requ...
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[{] retur...
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[jsonSpoE...
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]]] loc...
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[=] Keywo...
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=, s...
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[?] identif...
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.equalsIgnoreC...
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] identifi...
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], tc...
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] operato...
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) { ...
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] ...
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[CommitTaskAc...
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) { t...
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]...
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] ...
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"); ...
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[{] ...
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[L...
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.e...
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[....
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[collapsing...
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...
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...
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_A...
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...
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, le...
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=[]), oper...
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] op...
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...
public WsFederationCredential createCredentialFromToken(final Assertion assertion) { val retrievedOn = ZonedDateTime.now(ZoneOffset.UTC); LOGGER.debug("Retrieved on [{}]", retrievedOn); val credential = new WsFederationCredential(); credential.setRetrievedOn(retrievedOn); credent...
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]]] ...
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[Zo...
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[]] e...
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[S...
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=[Met...
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] op...
private synchronized void updateEffectiveLevel(ClassLoader loader) { if (loader == null) loader = _systemClassLoader; int oldEffectiveLevel = getEffectiveLevel(loader); Level newEffectiveLevel = calculateEffectiveLevel(loader); /* if (loader == _systemClassLoader) { _finestEffec...
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[{] No...
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...
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...
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[...
@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....
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...
@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 urucho...
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[mem...
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] operato...
@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...
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[<] o...
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=r...
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...
@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] operato...
@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 + pr...
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]]] beg...
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] ...
@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, parame...
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] ...
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[BoxRequestsUse...
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[ca...
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[ret...
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,...
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"]]] ...
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] Key...
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...
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=...
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[workPa...