code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static void setLocation(HttpServletRequest request, HttpServletResponse response, String location) { if(request.getAttribute(IS_INCLUDED_REQUEST_ATTRIBUTE_NAME) == null) { // Not included, setHeader directly response.setHeader("Location", location); } else { // Is included, set attribute so top leve...
class class_name[name] begin[{] method[setLocation, return_type[void], modifier[public static], parameter[request, response, location]] begin[{] if[binary_operation[call[request.getAttribute, parameter[member[.IS_INCLUDED_REQUEST_ATTRIBUTE_NAME]]], ==, literal[null]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[void] identifier[setLocation] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[HttpServletResponse] identifier[response] , identifier[String] identifier[location] operator[SEP] { Keyword[if] operator[SEP] identifier[request] operator[SEP] ide...
boolean add(DatagramPacket packet) { if (count == packets.length) { // We already filled up to UIO_MAX_IOV messages. This is the max allowed per sendmmsg(...) call, we will // try again later. return false; } ByteBuf content = packet.content(); int len...
class class_name[name] begin[{] method[add, return_type[type[boolean]], modifier[default], parameter[packet]] begin[{] if[binary_operation[member[.count], ==, member[packets.length]]] begin[{] return[literal[false]] else begin[{] None end[}] local_variable[ty...
Keyword[boolean] identifier[add] operator[SEP] identifier[DatagramPacket] identifier[packet] operator[SEP] { Keyword[if] operator[SEP] identifier[count] operator[==] identifier[packets] operator[SEP] identifier[length] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } iden...
@Override public Handle<K, V> insert(K key, V value) { if (other != this) { throw new IllegalStateException("A heap cannot be used after a meld"); } if (key == null) { throw new NullPointerException("Null keys not permitted"); } /* * Create a ...
class class_name[name] begin[{] method[insert, return_type[type[Handle]], modifier[public], parameter[key, value]] begin[{] if[binary_operation[member[.other], !=, THIS[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], ...
annotation[@] identifier[Override] Keyword[public] identifier[Handle] operator[<] identifier[K] , identifier[V] operator[>] identifier[insert] operator[SEP] identifier[K] identifier[key] , identifier[V] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[other] operator[!=] Keyword[this] ope...
public Observable<ServiceResponse<Page<JobInner>>> listByExperimentNextWithServiceResponseAsync(final String nextPageLink) { return listByExperimentNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<JobInner>>, Observable<ServiceResponse<Page<JobInner>>>>() { ...
class class_name[name] begin[{] method[listByExperimentNextWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{] return[call[.listByExperimentNextSinglePageAsync, parameter[member[.nextPageLink]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[JobInner] operator[>] operator[>] operator[>] identifier[listByExperimentNextWithServiceResponseAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator[SEP]...
public boolean toBoolean(Object val) { if (val == null) { return false; } else if (val instanceof Boolean) { return ((Boolean) val).booleanValue(); } else if (val instanceof Number) { double number = toDouble(val); return !Double.isNaN(number) && number != 0.d; } else...
class class_name[name] begin[{] method[toBoolean, return_type[type[boolean]], modifier[public], parameter[val]] begin[{] if[binary_operation[member[.val], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] if[binary_operation[member[.val], instance...
Keyword[public] Keyword[boolean] identifier[toBoolean] operator[SEP] identifier[Object] identifier[val] operator[SEP] { Keyword[if] operator[SEP] identifier[val] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[else] Keyword[if] operator[S...
private void readNextPage() throws IOException { processNextPage(); while (currentPageType != PAGE_META_TYPE_1 && currentPageType != PAGE_META_TYPE_2 && currentPageType != PAGE_MIX_TYPE && currentPageType != PAGE_DATA_TYPE) { if (eof) { return; } ...
class class_name[name] begin[{] method[readNextPage, return_type[void], modifier[private], parameter[]] begin[{] call[.processNextPage, parameter[]] while[binary_operation[binary_operation[binary_operation[binary_operation[member[.currentPageType], !=, member[.PAGE_META_TYPE_1]]...
Keyword[private] Keyword[void] identifier[readNextPage] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[processNextPage] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[currentPageType] operator[!=] identifier[PAGE_META_TYPE_1] operator[&&] ident...
@Override public EEnum getIfcActionRequestTypeEnum() { if (ifcActionRequestTypeEnumEEnum == null) { ifcActionRequestTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(904); } return ifcActionRequestTypeEnumEEnum; }
class class_name[name] begin[{] method[getIfcActionRequestTypeEnum, return_type[type[EEnum]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcActionRequestTypeEnumEEnum], ==, literal[null]]] begin[{] assign[member[.ifcActionRequestTypeEnumEEnum], C...
annotation[@] identifier[Override] Keyword[public] identifier[EEnum] identifier[getIfcActionRequestTypeEnum] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcActionRequestTypeEnumEEnum] operator[==] Other[null] operator[SEP] { identifier[ifcActionRequestTypeEnumEEnum] operator[=] ...
protected Map<String, String> getGalleryOpenParams( CmsObject cms, CmsMessages messages, I_CmsWidgetParameter param, String resource, long hashId) { Map<String, String> result = new HashMap<String, String>(); result.put(I_CmsGalleryProviderConstants.CONFIG_GALLER...
class class_name[name] begin[{] method[getGalleryOpenParams, return_type[type[Map]], modifier[protected], parameter[cms, messages, param, resource, hashId]] begin[{] local_variable[type[Map], result] call[result.put, parameter[member[I_CmsGalleryProviderConstants.CONFIG_GALLERY_MODE], m...
Keyword[protected] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[getGalleryOpenParams] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[CmsMessages] identifier[messages] , identifier[I_CmsWidgetParameter] identifier[param] , identifier[String] identifier[...
public static double getNormalizationFactor(IAtomContainer container) { double bondlength = 0.0; double ratio; /* * Desired bond length for storing structures in MDL mol files This * should probably be set externally (from system wide settings) */ double desire...
class class_name[name] begin[{] method[getNormalizationFactor, return_type[type[double]], modifier[public static], parameter[container]] begin[{] local_variable[type[double], bondlength] local_variable[type[double], ratio] local_variable[type[double], desiredBondLength] local_va...
Keyword[public] Keyword[static] Keyword[double] identifier[getNormalizationFactor] operator[SEP] identifier[IAtomContainer] identifier[container] operator[SEP] { Keyword[double] identifier[bondlength] operator[=] literal[Float] operator[SEP] Keyword[double] identifier[ratio] operator[SEP] Keyword[double] identif...
public static String getResponseDesc(int code) { String[] iab_msgs = ("0:OK/1:User Canceled/2:Unknown/" + "3:Billing Unavailable/4:Item unavailable/" + "5:Developer Error/6:Error/7:Item Already Owned/" + "8:Item not owned").split("/"); String[] iabhelper_m...
class class_name[name] begin[{] method[getResponseDesc, return_type[type[String]], modifier[public static], parameter[code]] begin[{] local_variable[type[String], iab_msgs] local_variable[type[String], iabhelper_msgs] if[binary_operation[member[.code], <=, member[.IABHELPER_ERRO...
Keyword[public] Keyword[static] identifier[String] identifier[getResponseDesc] operator[SEP] Keyword[int] identifier[code] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[iab_msgs] operator[=] operator[SEP] literal[String] operator[+] literal[String] operator[+] literal[String] operator...
@Override public void cacheResult( CommerceNotificationAttachment commerceNotificationAttachment) { entityCache.putResult(CommerceNotificationAttachmentModelImpl.ENTITY_CACHE_ENABLED, CommerceNotificationAttachmentImpl.class, commerceNotificationAttachment.getPrimaryKey(), commerceNotificationAttachment);...
class class_name[name] begin[{] method[cacheResult, return_type[void], modifier[public], parameter[commerceNotificationAttachment]] begin[{] call[entityCache.putResult, parameter[member[CommerceNotificationAttachmentModelImpl.ENTITY_CACHE_ENABLED], ClassReference(postfix_operators=[], prefix_op...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[cacheResult] operator[SEP] identifier[CommerceNotificationAttachment] identifier[commerceNotificationAttachment] operator[SEP] { identifier[entityCache] operator[SEP] identifier[putResult] operator[SEP] identifier[CommerceNotificationAtt...
public void endMonitoring() { if (debug) LogD("End monitoring"); commitEditor(); long start = settings.getLong(KEY_MONITOR_START, 0); if (start == 0) { if (debug) LogD("Monitor error. End monitoring called before start."); return; } editor.putLong(...
class class_name[name] begin[{] method[endMonitoring, return_type[void], modifier[public], parameter[]] begin[{] if[member[.debug]] begin[{] call[.LogD, parameter[literal["End monitoring"]]] else begin[{] None end[}] call[.commitEditor, parameter[]] ...
Keyword[public] Keyword[void] identifier[endMonitoring] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[debug] operator[SEP] identifier[LogD] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[commitEditor] operator[SEP] operator[SEP] operator[SEP] Keyword[long] identifier[st...
public static String escapeJson(final String text) { return escapeJson(text, JsonEscapeType.SINGLE_ESCAPE_CHARS_DEFAULT_TO_UHEXA, JsonEscapeLevel.LEVEL_2_ALL_NON_ASCII_PLUS_BASIC_ESCAPE_SET); }
class class_name[name] begin[{] method[escapeJson, return_type[type[String]], modifier[public static], parameter[text]] begin[{] return[call[.escapeJson, parameter[member[.text], member[JsonEscapeType.SINGLE_ESCAPE_CHARS_DEFAULT_TO_UHEXA], member[JsonEscapeLevel.LEVEL_2_ALL_NON_ASCII_PLUS_BASIC_ESCAPE_...
Keyword[public] Keyword[static] identifier[String] identifier[escapeJson] operator[SEP] Keyword[final] identifier[String] identifier[text] operator[SEP] { Keyword[return] identifier[escapeJson] operator[SEP] identifier[text] , identifier[JsonEscapeType] operator[SEP] identifier[SINGLE_ESCAPE_CHARS_DEFAULT_TO_UH...
@ApiModelProperty(example = "null", value = "Specifies a tab on the document where you want the recipient to enter a date. Date tabs are single-line fields that allow date information to be entered in any format. The tooltip for this tab recommends entering the date as MM/DD/YYYY, but this is not enforced. The format e...
class class_name[name] begin[{] method[getDateTabs, return_type[type[java]], modifier[public], parameter[]] begin[{] return[member[.dateTabs]] end[}] END[}]
annotation[@] identifier[ApiModelProperty] operator[SEP] identifier[example] operator[=] literal[String] , identifier[value] operator[=] literal[String] operator[SEP] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[com] operator[SEP] identifier[docu...
@Override public List<CommerceNotificationTemplate> findByG_E(long groupId, boolean enabled, int start, int end) { return findByG_E(groupId, enabled, start, end, null); }
class class_name[name] begin[{] method[findByG_E, return_type[type[List]], modifier[public], parameter[groupId, enabled, start, end]] begin[{] return[call[.findByG_E, parameter[member[.groupId], member[.enabled], member[.start], member[.end], literal[null]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CommerceNotificationTemplate] operator[>] identifier[findByG_E] operator[SEP] Keyword[long] identifier[groupId] , Keyword[boolean] identifier[enabled] , Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SE...
public static Object withInputStream(File file, @ClosureParams(value = SimpleType.class, options = "java.io.InputStream") Closure closure) throws IOException { return IOGroovyMethods.withStream(newInputStream(file), closure); }
class class_name[name] begin[{] method[withInputStream, return_type[type[Object]], modifier[public static], parameter[file, closure]] begin[{] return[call[IOGroovyMethods.withStream, parameter[call[.newInputStream, parameter[member[.file]]], member[.closure]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Object] identifier[withInputStream] operator[SEP] identifier[File] identifier[file] , annotation[@] identifier[ClosureParams] operator[SEP] identifier[value] operator[=] identifier[SimpleType] operator[SEP] Keyword[class] , identifier[options] operator[=] literal[String] ope...
public int equivalenceCode() { int result = 29 + (STRUCTURE_FORMAT != null ? STRUCTURE_FORMAT.hashCode() : 0); result = 29 * result + (STRUCTURE_DATA != null ? STRUCTURE_DATA.hashCode() : 0); return result; }
class class_name[name] begin[{] method[equivalenceCode, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], result] assign[member[.result], binary_operation[binary_operation[literal[29], *, member[.result]], +, TernaryExpression(condition=BinaryOper...
Keyword[public] Keyword[int] identifier[equivalenceCode] operator[SEP] operator[SEP] { Keyword[int] identifier[result] operator[=] Other[29] operator[+] operator[SEP] identifier[STRUCTURE_FORMAT] operator[!=] Other[null] operator[?] identifier[STRUCTURE_FORMAT] operator[SEP] identifier[hashCode] operator[SEP] op...
public void addAndOverwriteProperties(Map<String, String> additionalProperties) { additionalProperties.values().removeAll(Collections.singleton(null)); for (Map.Entry<String, String> additionalPropertiesMap : additionalProperties.entrySet()) { if (!additionalPropertiesMap.getValue().trim().i...
class class_name[name] begin[{] method[addAndOverwriteProperties, return_type[void], modifier[public], parameter[additionalProperties]] begin[{] call[additionalProperties.values, parameter[]] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation...
Keyword[public] Keyword[void] identifier[addAndOverwriteProperties] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[additionalProperties] operator[SEP] { identifier[additionalProperties] operator[SEP] identifier[values] operator[SEP] operator[SEP] operato...
@Override public void putCharacter(char c) throws IOException { if(TerminalTextUtils.isPrintableCharacter(c)) { writeToTerminal(translateCharacter(c)); } }
class class_name[name] begin[{] method[putCharacter, return_type[void], modifier[public], parameter[c]] begin[{] if[call[TerminalTextUtils.isPrintableCharacter, parameter[member[.c]]]] begin[{] call[.writeToTerminal, parameter[call[.translateCharacter, parameter[member[....
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[putCharacter] operator[SEP] Keyword[char] identifier[c] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[TerminalTextUtils] operator[SEP] identifier[isPrintableCharacter] operator[SEP] identifi...
public String expand(String macro) { if (!isMacro(macro)) { return macro; } String definition = macros.get(Config.canonical(macro)); if (null == definition) { warn("possible missing definition of macro[%s]", macro); } return null == definition ? ma...
class class_name[name] begin[{] method[expand, return_type[type[String]], modifier[public], parameter[macro]] begin[{] if[call[.isMacro, parameter[member[.macro]]]] begin[{] return[member[.macro]] else begin[{] None end[}] local_variable[type[String], definit...
Keyword[public] identifier[String] identifier[expand] operator[SEP] identifier[String] identifier[macro] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isMacro] operator[SEP] identifier[macro] operator[SEP] operator[SEP] { Keyword[return] identifier[macro] operator[SEP] } ...
private static void addEquivalentsComplexes(PhysicalEntity pe, boolean outer, Set<PhysicalEntity> pes) { Set<PhysicalEntity> set = outer ? pe.getMemberPhysicalEntityOf() : pe.getMemberPhysicalEntity(); for (PhysicalEntity related : set) { for (Complex cmp : related.getComponentOf()) { getRelated...
class class_name[name] begin[{] method[addEquivalentsComplexes, return_type[void], modifier[private static], parameter[pe, outer, pes]] begin[{] local_variable[type[Set], set] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[State...
Keyword[private] Keyword[static] Keyword[void] identifier[addEquivalentsComplexes] operator[SEP] identifier[PhysicalEntity] identifier[pe] , Keyword[boolean] identifier[outer] , identifier[Set] operator[<] identifier[PhysicalEntity] operator[>] identifier[pes] operator[SEP] { identifier[Set] operator[<] identi...
private boolean isMatch(String methodName) { for(String pattern : txMethods) { if(StringHelper.simpleMatch(pattern, methodName)) { return true; } } return false; }
class class_name[name] begin[{] method[isMatch, return_type[type[boolean]], modifier[private], parameter[methodName]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=pattern, postfix_operators=[], prefix_operator...
Keyword[private] Keyword[boolean] identifier[isMatch] operator[SEP] identifier[String] identifier[methodName] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[pattern] operator[:] identifier[txMethods] operator[SEP] { Keyword[if] operator[SEP] identifier[StringHelper] operator...
public Glyph.State createStateVar(EntityFeature ef, ObjectFactory factory) { if (ef instanceof FragmentFeature) { FragmentFeature ff = (FragmentFeature) ef; SequenceLocation loc = ff.getFeatureLocation(); if (loc instanceof SequenceInterval) { SequenceInterval si = (SequenceInterval) loc; Seque...
class class_name[name] begin[{] method[createStateVar, return_type[type[Glyph]], modifier[public], parameter[ef, factory]] begin[{] if[binary_operation[member[.ef], instanceof, type[FragmentFeature]]] begin[{] local_variable[type[FragmentFeature], ff] local_variable[type...
Keyword[public] identifier[Glyph] operator[SEP] identifier[State] identifier[createStateVar] operator[SEP] identifier[EntityFeature] identifier[ef] , identifier[ObjectFactory] identifier[factory] operator[SEP] { Keyword[if] operator[SEP] identifier[ef] Keyword[instanceof] identifier[FragmentFeature] operator[SE...
public Middleware init(@NotNull final Yoke yoke, @NotNull final String mount) { if (initialized) { throw new RuntimeException("Already Initialized!"); } this.yoke = yoke; this.mount = mount; this.initialized = true; return this; }
class class_name[name] begin[{] method[init, return_type[type[Middleware]], modifier[public], parameter[yoke, mount]] begin[{] if[member[.initialized]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selec...
Keyword[public] identifier[Middleware] identifier[init] operator[SEP] annotation[@] identifier[NotNull] Keyword[final] identifier[Yoke] identifier[yoke] , annotation[@] identifier[NotNull] Keyword[final] identifier[String] identifier[mount] operator[SEP] { Keyword[if] operator[SEP] identifier[initialized] opera...
public static byte[] fileToBytes(File path) throws IOException { FileInputStream fin = new FileInputStream(path); byte[] buffer = new byte[(int) fin.getChannel().size()]; try { if (fin.read(buffer) == -1) { throw new IOException("File " + path.getAbsolutePath() + " is...
class class_name[name] begin[{] method[fileToBytes, return_type[type[byte]], modifier[public static], parameter[path]] begin[{] local_variable[type[FileInputStream], fin] local_variable[type[byte], buffer] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MethodInvocati...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[fileToBytes] operator[SEP] identifier[File] identifier[path] operator[SEP] Keyword[throws] identifier[IOException] { identifier[FileInputStream] identifier[fin] operator[=] Keyword[new] identifier[FileInputStream] operator[SEP] ...
@Override public CPDAvailabilityEstimate fetchCPDAvailabilityEstimateByUuidAndGroupId( String uuid, long groupId) { return cpdAvailabilityEstimatePersistence.fetchByUUID_G(uuid, groupId); }
class class_name[name] begin[{] method[fetchCPDAvailabilityEstimateByUuidAndGroupId, return_type[type[CPDAvailabilityEstimate]], modifier[public], parameter[uuid, groupId]] begin[{] return[call[cpdAvailabilityEstimatePersistence.fetchByUUID_G, parameter[member[.uuid], member[.groupId]]]] end[}] END...
annotation[@] identifier[Override] Keyword[public] identifier[CPDAvailabilityEstimate] identifier[fetchCPDAvailabilityEstimateByUuidAndGroupId] operator[SEP] identifier[String] identifier[uuid] , Keyword[long] identifier[groupId] operator[SEP] { Keyword[return] identifier[cpdAvailabilityEstimatePersistence] ope...
public void setHelperWorkspace(@NonNull String key, Pointer value){ if(helperWorkspacePointers == null){ helperWorkspacePointers = new HashMap<>(); } helperWorkspacePointers.put(key, value); }
class class_name[name] begin[{] method[setHelperWorkspace, return_type[void], modifier[public], parameter[key, value]] begin[{] if[binary_operation[member[.helperWorkspacePointers], ==, literal[null]]] begin[{] assign[member[.helperWorkspacePointers], ClassCreator(argume...
Keyword[public] Keyword[void] identifier[setHelperWorkspace] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[key] , identifier[Pointer] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[helperWorkspacePointers] operator[==] Other[null] operator[SEP] { ...
@Override public boolean isValid(Object obj, ConstraintValidatorContext constraintContext) { // Si l'Objet est null if(obj == null) return acceptNullObject; // Si l'Objet est un tableau if(obj.getClass().isArray()) { // Taille int size = Array.getLength(obj); // On retourne l...
class class_name[name] begin[{] method[isValid, return_type[type[boolean]], modifier[public], parameter[obj, constraintContext]] begin[{] if[binary_operation[member[.obj], ==, literal[null]]] begin[{] return[member[.acceptNullObject]] else begin[{] None end[}] if...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isValid] operator[SEP] identifier[Object] identifier[obj] , identifier[ConstraintValidatorContext] identifier[constraintContext] operator[SEP] { Keyword[if] operator[SEP] identifier[obj] operator[==] Other[null] operator[SEP] Keyword...
public void setProduct(String product) { mProduct = product == null ? DEFAULT_PRODUCT : BDBProduct.forString(product); }
class class_name[name] begin[{] method[setProduct, return_type[void], modifier[public], parameter[product]] begin[{] assign[member[.mProduct], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=product, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]...
Keyword[public] Keyword[void] identifier[setProduct] operator[SEP] identifier[String] identifier[product] operator[SEP] { identifier[mProduct] operator[=] identifier[product] operator[==] Other[null] operator[?] identifier[DEFAULT_PRODUCT] operator[:] identifier[BDBProduct] operator[SEP] identifier[forString] o...
private String getObtainRequestPath(String requestID, Boolean byResourceID, Boolean byDocID, Boolean idsOnly, String resumptionToken) { String path = obtainPath; if (resumptionToken != null) { path += "?" + resumptionTokenParam + "=" + resumptionToken; return...
class class_name[name] begin[{] method[getObtainRequestPath, return_type[type[String]], modifier[private], parameter[requestID, byResourceID, byDocID, idsOnly, resumptionToken]] begin[{] local_variable[type[String], path] if[binary_operation[member[.resumptionToken], !=, literal[null]]]...
Keyword[private] identifier[String] identifier[getObtainRequestPath] operator[SEP] identifier[String] identifier[requestID] , identifier[Boolean] identifier[byResourceID] , identifier[Boolean] identifier[byDocID] , identifier[Boolean] identifier[idsOnly] , identifier[String] identifier[resumptionToken] operator[SEP...
@Test @AllowedFFDC // The tested exceptions cause FFDC so we have to allow for this. @Mode(TestMode.FULL) @SkipForRepeat(SkipForRepeat.EE8_FEATURES) public void launchFaultToleranceTCKEE7() throws Exception { MvnUtils.runTCKMvnCmd(server, "com.ibm.ws.microprofile.faulttolerance_fat_tck", this.ge...
class class_name[name] begin[{] method[launchFaultToleranceTCKEE7, return_type[void], modifier[public], parameter[]] begin[{] call[MvnUtils.runTCKMvnCmd, parameter[member[.server], literal["com.ibm.ws.microprofile.faulttolerance_fat_tck"], binary_operation[THIS[call[None.getClass, parameter[]]]...
annotation[@] identifier[Test] annotation[@] identifier[AllowedFFDC] annotation[@] identifier[Mode] operator[SEP] identifier[TestMode] operator[SEP] identifier[FULL] operator[SEP] annotation[@] identifier[SkipForRepeat] operator[SEP] identifier[SkipForRepeat] operator[SEP] identifier[EE8_FEATURES] operator[SEP] Keyword...
public void registerConnectionInfo(String host, int port) { assertArgumentNotNull("passhostword", host); final Properties props = session.getProperties(); props.setProperty(resolveProtocolKey(MAIL_SMTP_HOST), host); props.setProperty(resolveProtocolKey(MAIL_SMTP_PORT), String.valueOf(por...
class class_name[name] begin[{] method[registerConnectionInfo, return_type[void], modifier[public], parameter[host, port]] begin[{] call[.assertArgumentNotNull, parameter[literal["passhostword"], member[.host]]] local_variable[type[Properties], props] call[props.setPrope...
Keyword[public] Keyword[void] identifier[registerConnectionInfo] operator[SEP] identifier[String] identifier[host] , Keyword[int] identifier[port] operator[SEP] { identifier[assertArgumentNotNull] operator[SEP] literal[String] , identifier[host] operator[SEP] operator[SEP] Keyword[final] identifier[Properties]...
@Override public void close() { AppEngineTransaction tx = transaction.get(); if (tx != null) { tx.rollback(); } }
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[AppEngineTransaction], tx] if[binary_operation[member[.tx], !=, literal[null]]] begin[{] call[tx.rollback, parameter[]] else begin...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] { identifier[AppEngineTransaction] identifier[tx] operator[=] identifier[transaction] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[tx] ope...
private void addGalleryEntries(CmsGalleryTreeItem parent, List<CmsGalleryFolderEntry> galleries) { for (CmsGalleryFolderEntry galleryFolder : galleries) { CmsGalleryTreeItem folderItem = createGalleryFolderItem(galleryFolder); parent.addChild(folderItem); m_galleryTreeItems....
class class_name[name] begin[{] method[addGalleryEntries, return_type[void], modifier[private], parameter[parent, galleries]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvoc...
Keyword[private] Keyword[void] identifier[addGalleryEntries] operator[SEP] identifier[CmsGalleryTreeItem] identifier[parent] , identifier[List] operator[<] identifier[CmsGalleryFolderEntry] operator[>] identifier[galleries] operator[SEP] { Keyword[for] operator[SEP] identifier[CmsGalleryFolderEntry] identifier[...
private void generateCommunity(final Metadata m, final Element e) { if (m.getCommunity() == null) { return; } final Element communityElement = new Element("community", NS); if (m.getCommunity().getStarRating() != null) { final Element starRatingElement = new Eleme...
class class_name[name] begin[{] method[generateCommunity, return_type[void], modifier[private], parameter[m, e]] begin[{] if[binary_operation[call[m.getCommunity, parameter[]], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] local_variable...
Keyword[private] Keyword[void] identifier[generateCommunity] operator[SEP] Keyword[final] identifier[Metadata] identifier[m] , Keyword[final] identifier[Element] identifier[e] operator[SEP] { Keyword[if] operator[SEP] identifier[m] operator[SEP] identifier[getCommunity] operator[SEP] operator[SEP] operator[==] ...
public String[] searchId(final String idRegex) { synchronized (this.idSearchResponses) { if (!this.wmi.searchIdRegex(idRegex)) { log.warn("Attempted to search for a null Identifier regex. Not sending."); return new String[] {}; } do { log.debug("Waiting for response."); ...
class class_name[name] begin[{] method[searchId, return_type[type[String]], modifier[public], parameter[idRegex]] begin[{] SYNCHRONIZED[THIS[member[None.idSearchResponses]]] BEGIN[{] if[THIS[member[None.wmi]call[None.searchIdRegex, parameter[member[.idRegex]]]]] begin[{]...
Keyword[public] identifier[String] operator[SEP] operator[SEP] identifier[searchId] operator[SEP] Keyword[final] identifier[String] identifier[idRegex] operator[SEP] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] identifier[idSearchResponses] operator[SEP] { Keyword[if] operator[SEP...
public static void createBlockPath(String path, String workerDataFolderPermissions) throws IOException { try { createStorageDirPath(PathUtils.getParent(path), workerDataFolderPermissions); } catch (InvalidPathException e) { throw new IOException("Failed to create block path, get parent path of...
class class_name[name] begin[{] method[createBlockPath, return_type[void], modifier[public static], parameter[path, workerDataFolderPermissions]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=path, postfix_oper...
Keyword[public] Keyword[static] Keyword[void] identifier[createBlockPath] operator[SEP] identifier[String] identifier[path] , identifier[String] identifier[workerDataFolderPermissions] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { identifier[createStorageDirPath] operator[SEP...
@Override public CreateThingTypeResult createThingType(CreateThingTypeRequest request) { request = beforeClientExecution(request); return executeCreateThingType(request); }
class class_name[name] begin[{] method[createThingType, return_type[type[CreateThingTypeResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCreateThingType, parameter[member[.req...
annotation[@] identifier[Override] Keyword[public] identifier[CreateThingTypeResult] identifier[createThingType] operator[SEP] identifier[CreateThingTypeRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] o...
public static List<File> unzipSkipHidden(File file) { return unzip(file, name -> name.startsWith(".") || name.startsWith("_") ? null : name); }
class class_name[name] begin[{] method[unzipSkipHidden, return_type[type[List]], modifier[public static], parameter[file]] begin[{] return[call[.unzip, parameter[member[.file], LambdaExpression(body=TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[Literal(postfix_operato...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[File] operator[>] identifier[unzipSkipHidden] operator[SEP] identifier[File] identifier[file] operator[SEP] { Keyword[return] identifier[unzip] operator[SEP] identifier[file] , identifier[name] operator[->] identifier[name] operator[SEP] id...
@Before("call(* com.arpnetworking.steno.LogBuilder.log())") public void addToContextLineAndMethod(final JoinPoint joinPoint) { final SourceLocation sourceLocation = joinPoint.getSourceLocation(); final LogBuilder targetLogBuilder = (LogBuilder) joinPoint.getTarget(); targetLogBuilder.addCont...
class class_name[name] begin[{] method[addToContextLineAndMethod, return_type[void], modifier[public], parameter[joinPoint]] begin[{] local_variable[type[SourceLocation], sourceLocation] local_variable[type[LogBuilder], targetLogBuilder] call[targetLogBuilder.addContext, paramet...
annotation[@] identifier[Before] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[addToContextLineAndMethod] operator[SEP] Keyword[final] identifier[JoinPoint] identifier[joinPoint] operator[SEP] { Keyword[final] identifier[SourceLocation] identifier[sourceLocation] operator[=...
public boolean beginInvalidatingRegion() { if (trace) { log.trace("Started invalidating region " + cache.getName()); } boolean ok = true; long now = timeSource.nextTimestamp(); // deny all puts until endInvalidatingRegion is called; at that time the region should be already // in INVALID state, therefore...
class class_name[name] begin[{] method[beginInvalidatingRegion, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[member[.trace]] begin[{] call[log.trace, parameter[binary_operation[literal["Started invalidating region "], +, call[cache.getName, para...
Keyword[public] Keyword[boolean] identifier[beginInvalidatingRegion] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[trace] operator[SEP] { identifier[log] operator[SEP] identifier[trace] operator[SEP] literal[String] operator[+] identifier[cache] operator[SEP] identifier[getName] o...
public String getRequiredConfigAttribute(Map<String, Object> props, String key) { return getRequiredConfigAttributeWithDefaultValueAndConfigId(props, key, null, null); }
class class_name[name] begin[{] method[getRequiredConfigAttribute, return_type[type[String]], modifier[public], parameter[props, key]] begin[{] return[call[.getRequiredConfigAttributeWithDefaultValueAndConfigId, parameter[member[.props], member[.key], literal[null], literal[null]]]] end[}] END[}]
Keyword[public] identifier[String] identifier[getRequiredConfigAttribute] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[props] , identifier[String] identifier[key] operator[SEP] { Keyword[return] identifier[getRequiredConfigAttributeWithDefaultValueAnd...
@Override public ResponseList<Status> getRetweets(long statusId) throws TwitterException { return factory.createStatusList(get(conf.getRestBaseURL() + "statuses/retweets/" + statusId + ".json?count=100")); }
class class_name[name] begin[{] method[getRetweets, return_type[type[ResponseList]], modifier[public], parameter[statusId]] begin[{] return[call[factory.createStatusList, parameter[call[.get, parameter[binary_operation[binary_operation[binary_operation[call[conf.getRestBaseURL, parameter[]], +, literal...
annotation[@] identifier[Override] Keyword[public] identifier[ResponseList] operator[<] identifier[Status] operator[>] identifier[getRetweets] operator[SEP] Keyword[long] identifier[statusId] operator[SEP] Keyword[throws] identifier[TwitterException] { Keyword[return] identifier[factory] operator[SEP] identifier...
private boolean isResourceResponse(Object response) { boolean singleResource = response.getClass().getAnnotation(JsonApiResource.class) != null; boolean resourceList = ResourceListBase.class.isAssignableFrom(response.getClass()); return singleResource || resourceList; }
class class_name[name] begin[{] method[isResourceResponse, return_type[type[boolean]], modifier[private], parameter[response]] begin[{] local_variable[type[boolean], singleResource] local_variable[type[boolean], resourceList] return[binary_operation[member[.singleResource], ||, member[....
Keyword[private] Keyword[boolean] identifier[isResourceResponse] operator[SEP] identifier[Object] identifier[response] operator[SEP] { Keyword[boolean] identifier[singleResource] operator[=] identifier[response] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getAnnotation...
@NotNull public static FastVector instanceFields2Attributes(int classIndex, List<? extends Attribute> instanceFields) throws FOSException { checkNotNull(instanceFields, "Instance fields cannot be null"); FastVector result = new FastVector(instanceFields.size()); classIndex = classIndex == -...
class class_name[name] begin[{] method[instanceFields2Attributes, return_type[type[FastVector]], modifier[public static], parameter[classIndex, instanceFields]] begin[{] call[.checkNotNull, parameter[member[.instanceFields], literal["Instance fields cannot be null"]]] local_variable[typ...
annotation[@] identifier[NotNull] Keyword[public] Keyword[static] identifier[FastVector] identifier[instanceFields2Attributes] operator[SEP] Keyword[int] identifier[classIndex] , identifier[List] operator[<] operator[?] Keyword[extends] identifier[Attribute] operator[>] identifier[instanceFields] operator[SEP] Keyword...
public static CommerceWarehouse fetchByGroupId_Last(long groupId, OrderByComparator<CommerceWarehouse> orderByComparator) { return getPersistence().fetchByGroupId_Last(groupId, orderByComparator); }
class class_name[name] begin[{] method[fetchByGroupId_Last, return_type[type[CommerceWarehouse]], modifier[public static], parameter[groupId, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceWarehouse] identifier[fetchByGroupId_Last] operator[SEP] Keyword[long] identifier[groupId] , identifier[OrderByComparator] operator[<] identifier[CommerceWarehouse] operator[>] identifier[orderByComparator] operator[SEP] { Keyword[return] identifier[getPersiste...
public void setActiveView(View v, int position) { final View oldView = mActiveView; mActiveView = v; mActivePosition = position; if (mAllowIndicatorAnimation && oldView != null) { startAnimatingIndicator(); } invalidate(); }
class class_name[name] begin[{] method[setActiveView, return_type[void], modifier[public], parameter[v, position]] begin[{] local_variable[type[View], oldView] assign[member[.mActiveView], member[.v]] assign[member[.mActivePosition], member[.position]] if...
Keyword[public] Keyword[void] identifier[setActiveView] operator[SEP] identifier[View] identifier[v] , Keyword[int] identifier[position] operator[SEP] { Keyword[final] identifier[View] identifier[oldView] operator[=] identifier[mActiveView] operator[SEP] identifier[mActiveView] operator[=] identifier[v] operato...
private static Properties _newInitedProp(String templateDir, String charset) { final Properties properties = new Properties(); properties.setProperty(Velocity.FILE_RESOURCE_LOADER_PATH, templateDir); properties.setProperty(Velocity.ENCODING_DEFAULT, charset); properties.setProperty(Velocity.INPUT_ENCODING...
class class_name[name] begin[{] method[_newInitedProp, return_type[type[Properties]], modifier[private static], parameter[templateDir, charset]] begin[{] local_variable[type[Properties], properties] call[properties.setProperty, parameter[member[Velocity.FILE_RESOURCE_LOADER_PATH], membe...
Keyword[private] Keyword[static] identifier[Properties] identifier[_newInitedProp] operator[SEP] identifier[String] identifier[templateDir] , identifier[String] identifier[charset] operator[SEP] { Keyword[final] identifier[Properties] identifier[properties] operator[=] Keyword[new] identifier[Properties] operat...
public Object get(final String name) { Object bean = this.beans.get(name); if (bean != null) { return bean; } return resolveBeanIfAbsent(name); }
class class_name[name] begin[{] method[get, return_type[type[Object]], modifier[public], parameter[name]] begin[{] local_variable[type[Object], bean] if[binary_operation[member[.bean], !=, literal[null]]] begin[{] return[member[.bean]] else begin[{] None end[...
Keyword[public] identifier[Object] identifier[get] operator[SEP] Keyword[final] identifier[String] identifier[name] operator[SEP] { identifier[Object] identifier[bean] operator[=] Keyword[this] operator[SEP] identifier[beans] operator[SEP] identifier[get] operator[SEP] identifier[name] operator[SEP] operator[SEP...
@SuppressWarnings("rawtypes") private static PluginDefinition parsePluginDefinition(final ClassLoader cl, final Element plugin) throws PluginConfigurationException { // Check if the plugin definition is inside its own file if (getAttributeValue(plugin, "definedIn", false) != null) { Str...
class class_name[name] begin[{] method[parsePluginDefinition, return_type[type[PluginDefinition]], modifier[private static], parameter[cl, plugin]] begin[{] if[binary_operation[call[.getAttributeValue, parameter[member[.plugin], literal["definedIn"], literal[false]]], !=, literal[null]]] begin[...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[static] identifier[PluginDefinition] identifier[parsePluginDefinition] operator[SEP] Keyword[final] identifier[ClassLoader] identifier[cl] , Keyword[final] identifier[Element] identifier[plugin] operator[SEP...
public static String sanitize(final String msg) { var modifiedMessage = msg; if (StringUtils.isNotBlank(msg) && !Boolean.getBoolean("CAS_TICKET_ID_SANITIZE_SKIP")) { val matcher = TICKET_ID_PATTERN.matcher(msg); while (matcher.find()) { val match = matcher.group()...
class class_name[name] begin[{] method[sanitize, return_type[type[String]], modifier[public static], parameter[msg]] begin[{] local_variable[type[var], modifiedMessage] if[binary_operation[call[StringUtils.isNotBlank, parameter[member[.msg]]], &&, call[Boolean.getBoolean, parameter[lite...
Keyword[public] Keyword[static] identifier[String] identifier[sanitize] operator[SEP] Keyword[final] identifier[String] identifier[msg] operator[SEP] { identifier[var] identifier[modifiedMessage] operator[=] identifier[msg] operator[SEP] Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[...
public void sendComposingNotification(Jid to, String packetID) throws NotConnectedException, InterruptedException { // Create the message to send Message msg = new Message(to); // Create a MessageEvent Package and add it to the message MessageEvent messageEvent = new MessageEvent(); ...
class class_name[name] begin[{] method[sendComposingNotification, return_type[void], modifier[public], parameter[to, packetID]] begin[{] local_variable[type[Message], msg] local_variable[type[MessageEvent], messageEvent] call[messageEvent.setComposing, parameter[literal[true]]] ...
Keyword[public] Keyword[void] identifier[sendComposingNotification] operator[SEP] identifier[Jid] identifier[to] , identifier[String] identifier[packetID] operator[SEP] Keyword[throws] identifier[NotConnectedException] , identifier[InterruptedException] { identifier[Message] identifier[msg] operator[=] Keyword...
protected boolean isHistoryEventProduced(HistoryEventType eventType, Job job) { ProcessEngineConfigurationImpl configuration = Context.getProcessEngineConfiguration(); HistoryLevel historyLevel = configuration.getHistoryLevel(); return historyLevel.isHistoryEventProduced(eventType, job); }
class class_name[name] begin[{] method[isHistoryEventProduced, return_type[type[boolean]], modifier[protected], parameter[eventType, job]] begin[{] local_variable[type[ProcessEngineConfigurationImpl], configuration] local_variable[type[HistoryLevel], historyLevel] return[call[historyLev...
Keyword[protected] Keyword[boolean] identifier[isHistoryEventProduced] operator[SEP] identifier[HistoryEventType] identifier[eventType] , identifier[Job] identifier[job] operator[SEP] { identifier[ProcessEngineConfigurationImpl] identifier[configuration] operator[=] identifier[Context] operator[SEP] identifier[...
protected final void writeString(final Writer writer, final String line) throws IOException { if (line != null) { writer.write(line + '\n'); } else { writer.write('\n'); } }
class class_name[name] begin[{] method[writeString, return_type[void], modifier[final protected], parameter[writer, line]] begin[{] if[binary_operation[member[.line], !=, literal[null]]] begin[{] call[writer.write, parameter[binary_operation[member[.line], +, literal['\n...
Keyword[protected] Keyword[final] Keyword[void] identifier[writeString] operator[SEP] Keyword[final] identifier[Writer] identifier[writer] , Keyword[final] identifier[String] identifier[line] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[line] operator[!=] Other[nu...
void initialize(HostContext hostContext) throws InvalidKeyException, URISyntaxException, StorageException { this.hostContext = hostContext; if (this.storageContainerName == null) { this.storageContainerName = this.hostContext.getEventHubPath(); } // Validate that the event ...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[default], parameter[hostContext]] begin[{] assign[THIS[member[None.hostContext]], member[.hostContext]] if[binary_operation[THIS[member[None.storageContainerName]], ==, literal[null]]] begin[{] ...
Keyword[void] identifier[initialize] operator[SEP] identifier[HostContext] identifier[hostContext] operator[SEP] Keyword[throws] identifier[InvalidKeyException] , identifier[URISyntaxException] , identifier[StorageException] { Keyword[this] operator[SEP] identifier[hostContext] operator[=] identifier[hostConte...
@Override public boolean getThenSetBit(int index, boolean value) { index = adjIndex(index); checkMutability(); int i = index >> ADDRESS_BITS; int m = 1 << (index & ADDRESS_MASK); boolean v = (bits[i] & m) != 0; if (value) { bits[i] |= m; } else { bits[i] &= ~m; } return v; }
class class_name[name] begin[{] method[getThenSetBit, return_type[type[boolean]], modifier[public], parameter[index, value]] begin[{] assign[member[.index], call[.adjIndex, parameter[member[.index]]]] call[.checkMutability, parameter[]] local_variable[type[int], i] ...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[getThenSetBit] operator[SEP] Keyword[int] identifier[index] , Keyword[boolean] identifier[value] operator[SEP] { identifier[index] operator[=] identifier[adjIndex] operator[SEP] identifier[index] operator[SEP] operator[SEP] identifie...
public static String escapeXml11(final String text) { return escapeXml(text, XmlEscapeSymbols.XML11_SYMBOLS, XmlEscapeType.CHARACTER_ENTITY_REFERENCES_DEFAULT_TO_HEXA, XmlEscapeLevel.LEVEL_2_ALL_NON_ASCII_PLUS_MARKUP_SIGNIFICANT); }
class class_name[name] begin[{] method[escapeXml11, return_type[type[String]], modifier[public static], parameter[text]] begin[{] return[call[.escapeXml, parameter[member[.text], member[XmlEscapeSymbols.XML11_SYMBOLS], member[XmlEscapeType.CHARACTER_ENTITY_REFERENCES_DEFAULT_TO_HEXA], member[XmlEscapeL...
Keyword[public] Keyword[static] identifier[String] identifier[escapeXml11] operator[SEP] Keyword[final] identifier[String] identifier[text] operator[SEP] { Keyword[return] identifier[escapeXml] operator[SEP] identifier[text] , identifier[XmlEscapeSymbols] operator[SEP] identifier[XML11_SYMBOLS] , identifier[Xm...
protected void selectFormDefaultPortlet(final F report) { final Set<AggregatedPortletMapping> portlets = this.getPortlets(); if (!portlets.isEmpty()) { report.getPortlets().add(portlets.iterator().next().getFname()); } }
class class_name[name] begin[{] method[selectFormDefaultPortlet, return_type[void], modifier[protected], parameter[report]] begin[{] local_variable[type[Set], portlets] if[call[portlets.isEmpty, parameter[]]] begin[{] call[report.getPortlets, parameter[]] ...
Keyword[protected] Keyword[void] identifier[selectFormDefaultPortlet] operator[SEP] Keyword[final] identifier[F] identifier[report] operator[SEP] { Keyword[final] identifier[Set] operator[<] identifier[AggregatedPortletMapping] operator[>] identifier[portlets] operator[=] Keyword[this] operator[SEP] identifier[g...
private IAtomContainer toFragment(int[] vertices) { int n = vertices.length; Set<IAtom> atoms = new HashSet<IAtom>(n > 3 ? n + 1 + n / 3 : n); List<IBond> bonds = new ArrayList<IBond>(); // fill the atom set for (int v : vertices) { atoms.add(container.getAtom(v));...
class class_name[name] begin[{] method[toFragment, return_type[type[IAtomContainer]], modifier[private], parameter[vertices]] begin[{] local_variable[type[int], n] local_variable[type[Set], atoms] local_variable[type[List], bonds] ForStatement(body=BlockStatement(label=None, sta...
Keyword[private] identifier[IAtomContainer] identifier[toFragment] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[vertices] operator[SEP] { Keyword[int] identifier[n] operator[=] identifier[vertices] operator[SEP] identifier[length] operator[SEP] identifier[Set] operator[<] identifier[IAtom] o...
public static Type[] resolveTypeVariables(final Type[] types, final Map<String, Type> generics) { return resolveTypeVariables(types, generics, false); }
class class_name[name] begin[{] method[resolveTypeVariables, return_type[type[Type]], modifier[public static], parameter[types, generics]] begin[{] return[call[.resolveTypeVariables, parameter[member[.types], member[.generics], literal[false]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Type] operator[SEP] operator[SEP] identifier[resolveTypeVariables] operator[SEP] Keyword[final] identifier[Type] operator[SEP] operator[SEP] identifier[types] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Type] operator[>] identifier[generics] ...
public void setupA1(DMatrixRMaj A) { A.data[0] = X20*( X01*X12 - X02*X11 ) + X10*( -X01*X22 + X02*X21 ) + X00*( X11*X22 - X12*X21 ); A.data[1] = Y02*( Y10*Y21 - Y11*Y20 ) + Y00*( Y11*Y22 - Y12*Y21 ) + Y01*( -Y10*Y22 + Y12*Y20 ); A.data[2] = X22*( X00*Y11 - X01*Y10 - X10*Y01 + X11*Y00 ) + X20*( X01*Y12 - X02*Y11 -...
class class_name[name] begin[{] method[setupA1, return_type[void], modifier[public], parameter[A]] begin[{] assign[member[A.data], binary_operation[binary_operation[binary_operation[member[.X20], *, binary_operation[binary_operation[member[.X01], *, member[.X12]], -, binary_operation[member[.X0...
Keyword[public] Keyword[void] identifier[setupA1] operator[SEP] identifier[DMatrixRMaj] identifier[A] operator[SEP] { identifier[A] operator[SEP] identifier[data] operator[SEP] Other[0] operator[SEP] operator[=] identifier[X20] operator[*] operator[SEP] identifier[X01] operator[*] identifier[X12] operator[-] ide...
private Map<String, String[]> createToolParams(CmsWorkplace wp, String url, Map<String, String[]> params) { Map<String, String[]> newParams = new HashMap<String, String[]>(); // add query parameters to the parameter map if required if (url.indexOf("?") > 0) { String query = url.subs...
class class_name[name] begin[{] method[createToolParams, return_type[type[Map]], modifier[private], parameter[wp, url, params]] begin[{] local_variable[type[Map], newParams] if[binary_operation[call[url.indexOf, parameter[literal["?"]]], >, literal[0]]] begin[{] local_variab...
Keyword[private] identifier[Map] operator[<] identifier[String] , identifier[String] operator[SEP] operator[SEP] operator[>] identifier[createToolParams] operator[SEP] identifier[CmsWorkplace] identifier[wp] , identifier[String] identifier[url] , identifier[Map] operator[<] identifier[String] , identifier[String] o...
public AbstractZooCommand withParam(String name, String value) { parameters.put(name, value); return this; }
class class_name[name] begin[{] method[withParam, return_type[type[AbstractZooCommand]], modifier[public], parameter[name, value]] begin[{] call[parameters.put, parameter[member[.name], member[.value]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[AbstractZooCommand] identifier[withParam] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[value] operator[SEP] { identifier[parameters] operator[SEP] identifier[put] operator[SEP] identifier[name] , identifier[value] operator[SEP] operator[SEP] Keywo...
@Override public void removeByUuid_C(String uuid, long companyId) { for (CPMeasurementUnit cpMeasurementUnit : findByUuid_C(uuid, companyId, QueryUtil.ALL_POS, QueryUtil.ALL_POS, null)) { remove(cpMeasurementUnit); } }
class class_name[name] begin[{] method[removeByUuid_C, return_type[void], modifier[public], parameter[uuid, companyId]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=cpMeasurementUnit, postfix_operator...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[removeByUuid_C] operator[SEP] identifier[String] identifier[uuid] , Keyword[long] identifier[companyId] operator[SEP] { Keyword[for] operator[SEP] identifier[CPMeasurementUnit] identifier[cpMeasurementUnit] operator[:] identifier[findB...
public static boolean isISODate(final String val) throws BadDateException { try { if (val.length() != 8) { return false; } fromISODate(val); return true; } catch (Throwable t) { return false; } }
class class_name[name] begin[{] method[isISODate, return_type[type[boolean]], modifier[public static], parameter[val]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=length, postfix_operators=[], prefix_operators=[], qualifier=val, sele...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isISODate] operator[SEP] Keyword[final] identifier[String] identifier[val] operator[SEP] Keyword[throws] identifier[BadDateException] { Keyword[try] { Keyword[if] operator[SEP] identifier[val] operator[SEP] identifier[length] operator[SEP] op...
@Override @FFDCIgnore(NumberFormatException.class) public int getHttpPort(String hostAlias) { int pos = hostAlias.lastIndexOf(':'); if (pos > -1 && pos < hostAlias.length()) { try { int port = Integer.valueOf(hostAlias.substring(pos + 1)); for (Endpoin...
class class_name[name] begin[{] method[getHttpPort, return_type[type[int]], modifier[public], parameter[hostAlias]] begin[{] local_variable[type[int], pos] if[binary_operation[binary_operation[member[.pos], >, literal[1]], &&, binary_operation[member[.pos], <, call[hostAlias.length, par...
annotation[@] identifier[Override] annotation[@] identifier[FFDCIgnore] operator[SEP] identifier[NumberFormatException] operator[SEP] Keyword[class] operator[SEP] Keyword[public] Keyword[int] identifier[getHttpPort] operator[SEP] identifier[String] identifier[hostAlias] operator[SEP] { Keyword[int] identifier[po...
public void md5final(byte[] digest) { /* "final" is a poor method name in Java. :v) */ int count; int p; // in original code, this is a pointer; in this java code // it's an index into the array this->in. /* Compute number of bytes mod 64 */ count = (int) ((bits >>> 3) & 0x3F); /* Set the ...
class class_name[name] begin[{] method[md5final, return_type[void], modifier[public], parameter[digest]] begin[{] local_variable[type[int], count] local_variable[type[int], p] assign[member[.count], Cast(expression=BinaryOperation(operandl=BinaryOperation(operandl=MemberReferenc...
Keyword[public] Keyword[void] identifier[md5final] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[digest] operator[SEP] { Keyword[int] identifier[count] operator[SEP] Keyword[int] identifier[p] operator[SEP] identifier[count] operator[=] operator[SEP] Keyword[int] operator[SEP] operator[SEP] ...
@Override public CommerceWishListItem findByCProductId_Last(long CProductId, OrderByComparator<CommerceWishListItem> orderByComparator) throws NoSuchWishListItemException { CommerceWishListItem commerceWishListItem = fetchByCProductId_Last(CProductId, orderByComparator); if (commerceWishListItem != null) ...
class class_name[name] begin[{] method[findByCProductId_Last, return_type[type[CommerceWishListItem]], modifier[public], parameter[CProductId, orderByComparator]] begin[{] local_variable[type[CommerceWishListItem], commerceWishListItem] if[binary_operation[member[.commerceWishListItem],...
annotation[@] identifier[Override] Keyword[public] identifier[CommerceWishListItem] identifier[findByCProductId_Last] operator[SEP] Keyword[long] identifier[CProductId] , identifier[OrderByComparator] operator[<] identifier[CommerceWishListItem] operator[>] identifier[orderByComparator] operator[SEP] Keyword[throws] i...
public boolean containsAll(Collection other) { if (other instanceof IntRange) { final IntRange range = (IntRange) other; return this.getFrom() <= range.getFrom() && range.getTo() <= this.getTo(); } return super.containsAll(other); }
class class_name[name] begin[{] method[containsAll, return_type[type[boolean]], modifier[public], parameter[other]] begin[{] if[binary_operation[member[.other], instanceof, type[IntRange]]] begin[{] local_variable[type[IntRange], range] return[binary_operation[binary_ope...
Keyword[public] Keyword[boolean] identifier[containsAll] operator[SEP] identifier[Collection] identifier[other] operator[SEP] { Keyword[if] operator[SEP] identifier[other] Keyword[instanceof] identifier[IntRange] operator[SEP] { Keyword[final] identifier[IntRange] identifier[range] operator[=] operato...
public Any insert(int data) throws DevFailed { Any out_any = alloc_any(); out_any.insert_long(data); return out_any; }
class class_name[name] begin[{] method[insert, return_type[type[Any]], modifier[public], parameter[data]] begin[{] local_variable[type[Any], out_any] call[out_any.insert_long, parameter[member[.data]]] return[member[.out_any]] end[}] END[}]
Keyword[public] identifier[Any] identifier[insert] operator[SEP] Keyword[int] identifier[data] operator[SEP] Keyword[throws] identifier[DevFailed] { identifier[Any] identifier[out_any] operator[=] identifier[alloc_any] operator[SEP] operator[SEP] operator[SEP] identifier[out_any] operator[SEP] identifier[insert_...
private void setWorkingDays(ProjectCalendar mpxjCalendar, Calendars gpCalendar) { DayTypes dayTypes = gpCalendar.getDayTypes(); DefaultWeek defaultWeek = dayTypes.getDefaultWeek(); if (defaultWeek == null) { mpxjCalendar.setWorkingDay(Day.SUNDAY, false); mpxjCalendar.setWork...
class class_name[name] begin[{] method[setWorkingDays, return_type[void], modifier[private], parameter[mpxjCalendar, gpCalendar]] begin[{] local_variable[type[DayTypes], dayTypes] local_variable[type[DefaultWeek], defaultWeek] if[binary_operation[member[.defaultWeek], ==, litera...
Keyword[private] Keyword[void] identifier[setWorkingDays] operator[SEP] identifier[ProjectCalendar] identifier[mpxjCalendar] , identifier[Calendars] identifier[gpCalendar] operator[SEP] { identifier[DayTypes] identifier[dayTypes] operator[=] identifier[gpCalendar] operator[SEP] identifier[getDayTypes] operator[...
public ModifyClusterIamRolesRequest withRemoveIamRoles(String... removeIamRoles) { if (this.removeIamRoles == null) { setRemoveIamRoles(new com.amazonaws.internal.SdkInternalList<String>(removeIamRoles.length)); } for (String ele : removeIamRoles) { this.removeIamRoles.ad...
class class_name[name] begin[{] method[withRemoveIamRoles, return_type[type[ModifyClusterIamRolesRequest]], modifier[public], parameter[removeIamRoles]] begin[{] if[binary_operation[THIS[member[None.removeIamRoles]], ==, literal[null]]] begin[{] call[.setRemoveIamRoles, ...
Keyword[public] identifier[ModifyClusterIamRolesRequest] identifier[withRemoveIamRoles] operator[SEP] identifier[String] operator[...] identifier[removeIamRoles] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[removeIamRoles] operator[==] Other[null] operator[SEP] { id...
public static void timeCheck(String extra) { if (startCheckTime > 0) { long now = System.currentTimeMillis(); long diff = now - nextCheckTime; nextCheckTime = now; Log.d(Log.SUBSYSTEM.TRACING, "FPSCounter", "[%d, %d] timeCheck: %s", now, diff, extra); } ...
class class_name[name] begin[{] method[timeCheck, return_type[void], modifier[public static], parameter[extra]] begin[{] if[binary_operation[member[.startCheckTime], >, literal[0]]] begin[{] local_variable[type[long], now] local_variable[type[long], diff] ...
Keyword[public] Keyword[static] Keyword[void] identifier[timeCheck] operator[SEP] identifier[String] identifier[extra] operator[SEP] { Keyword[if] operator[SEP] identifier[startCheckTime] operator[>] Other[0] operator[SEP] { Keyword[long] identifier[now] operator[=] identifier[System] operator[SEP] id...
public void addOrUpdateActivity(ActivityInfo activityInfo) { addComponent( activityFilters, p -> p.activities, (p, a) -> p.activities = a, new ActivityInfo(activityInfo), true); }
class class_name[name] begin[{] method[addOrUpdateActivity, return_type[void], modifier[public], parameter[activityInfo]] begin[{] call[.addComponent, parameter[member[.activityFilters], LambdaExpression(body=MemberReference(member=activities, postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] Keyword[void] identifier[addOrUpdateActivity] operator[SEP] identifier[ActivityInfo] identifier[activityInfo] operator[SEP] { identifier[addComponent] operator[SEP] identifier[activityFilters] , identifier[p] operator[->] identifier[p] operator[SEP] identifier[activities] , operator[SEP] identi...
public synchronized void sendNotification(String text, U userData, long timestamp) { map.allValues() .forEach((ListenerWrapper w)->executor.execute(()->w.sendNotification(text, userData, timestamp))); }
class class_name[name] begin[{] method[sendNotification, return_type[void], modifier[synchronized public], parameter[text, userData, timestamp]] begin[{] call[map.allValues, parameter[]] end[}] END[}]
Keyword[public] Keyword[synchronized] Keyword[void] identifier[sendNotification] operator[SEP] identifier[String] identifier[text] , identifier[U] identifier[userData] , Keyword[long] identifier[timestamp] operator[SEP] { identifier[map] operator[SEP] identifier[allValues] operator[SEP] operator[SEP] operator[...
public void startRelease(ProductMilestone milestone, String accessToken) { ProductMilestoneRelease release = triggerRelease(milestone, accessToken); productMilestoneReleaseRepository.save(release); }
class class_name[name] begin[{] method[startRelease, return_type[void], modifier[public], parameter[milestone, accessToken]] begin[{] local_variable[type[ProductMilestoneRelease], release] call[productMilestoneReleaseRepository.save, parameter[member[.release]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[startRelease] operator[SEP] identifier[ProductMilestone] identifier[milestone] , identifier[String] identifier[accessToken] operator[SEP] { identifier[ProductMilestoneRelease] identifier[release] operator[=] identifier[triggerRelease] operator[SEP] identifier[milestone] ...
public boolean check() { if (childNodes == null) { return true; } // children int siblingElementIndex = 0; for (int i = 0, childNodesSize = childNodes.size(); i < childNodesSize; i++) { Node childNode = childNodes.get(i); if (childNode.siblingIndex != i) { return false; } if (childNode....
class class_name[name] begin[{] method[check, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.childNodes], ==, literal[null]]] begin[{] return[literal[true]] else begin[{] None end[}] local_variable[type[int], s...
Keyword[public] Keyword[boolean] identifier[check] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[childNodes] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[int] identifier[siblingElementIndex] operator[=] Other[0] op...
public boolean lint(String s) { // return true if either the specific option is enabled, or // they are all enabled without the specific one being // disabled return isSet(XLINT_CUSTOM, s) || (isSet(XLINT) || isSet(XLINT_CUSTOM, "all")) && isUnset(...
class class_name[name] begin[{] method[lint, return_type[type[boolean]], modifier[public], parameter[s]] begin[{] return[binary_operation[call[.isSet, parameter[member[.XLINT_CUSTOM], member[.s]]], ||, binary_operation[binary_operation[call[.isSet, parameter[member[.XLINT]]], ||, call[.isSet, parameter...
Keyword[public] Keyword[boolean] identifier[lint] operator[SEP] identifier[String] identifier[s] operator[SEP] { Keyword[return] identifier[isSet] operator[SEP] identifier[XLINT_CUSTOM] , identifier[s] operator[SEP] operator[||] operator[SEP] identifier[isSet] operator[SEP] identifier[XLINT] operator[SEP] opera...
public String toJsonP(final String callback, final Object data) { synchronized (lock) { try { return callback + "(" + stringify((JsonNode) mapper.valueToTree(data)) + ");"; } catch (Exception e) { throw new RuntimeException(e); } } ...
class class_name[name] begin[{] method[toJsonP, return_type[type[String]], modifier[public], parameter[callback, data]] begin[{] SYNCHRONIZED[member[.lock]] BEGIN[{] TryStatement(block=[ReturnStatement(expression=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(oper...
Keyword[public] identifier[String] identifier[toJsonP] operator[SEP] Keyword[final] identifier[String] identifier[callback] , Keyword[final] identifier[Object] identifier[data] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[lock] operator[SEP] { Keyword[try] { Keyword[r...
private <K, V> CacheConfiguration<K, V> adjustConfigurationWithCacheManagerDefaults(String alias, CacheConfiguration<K, V> config) { ClassLoader cacheClassLoader = config.getClassLoader(); List<ServiceConfiguration<?>> configurationList = new ArrayList<>(); configurationList.addAll(config.getServiceConfigu...
class class_name[name] begin[{] method[adjustConfigurationWithCacheManagerDefaults, return_type[type[CacheConfiguration]], modifier[private], parameter[alias, config]] begin[{] local_variable[type[ClassLoader], cacheClassLoader] local_variable[type[List], configurationList] call...
Keyword[private] operator[<] identifier[K] , identifier[V] operator[>] identifier[CacheConfiguration] operator[<] identifier[K] , identifier[V] operator[>] identifier[adjustConfigurationWithCacheManagerDefaults] operator[SEP] identifier[String] identifier[alias] , identifier[CacheConfiguration] operator[<] identifie...
public void setXOset(Integer newXOset) { Integer oldXOset = xOset; xOset = newXOset; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, AfplibPackage.PGP1__XOSET, oldXOset, xOset)); }
class class_name[name] begin[{] method[setXOset, return_type[void], modifier[public], parameter[newXOset]] begin[{] local_variable[type[Integer], oldXOset] assign[member[.xOset], member[.newXOset]] if[call[.eNotificationRequired, parameter[]]] begin[{] call[....
Keyword[public] Keyword[void] identifier[setXOset] operator[SEP] identifier[Integer] identifier[newXOset] operator[SEP] { identifier[Integer] identifier[oldXOset] operator[=] identifier[xOset] operator[SEP] identifier[xOset] operator[=] identifier[newXOset] operator[SEP] Keyword[if] operator[SEP] identifier[eNot...
public static pqpolicy_stats[] get(nitro_service service) throws Exception{ pqpolicy_stats obj = new pqpolicy_stats(); pqpolicy_stats[] response = (pqpolicy_stats[])obj.stat_resources(service); return response; }
class class_name[name] begin[{] method[get, return_type[type[pqpolicy_stats]], modifier[public static], parameter[service]] begin[{] local_variable[type[pqpolicy_stats], obj] local_variable[type[pqpolicy_stats], response] return[member[.response]] end[}] END[}]
Keyword[public] Keyword[static] identifier[pqpolicy_stats] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] operator[SEP] Keyword[throws] identifier[Exception] { identifier[pqpolicy_stats] identifier[obj] operator[=] Keyword[new] identifier[pqpolicy_stats] o...
public static Forbidden of(int errorCode, Throwable cause) { touchPayload().errorCode(errorCode).cause(cause); return _INSTANCE; }
class class_name[name] begin[{] method[of, return_type[type[Forbidden]], modifier[public static], parameter[errorCode, cause]] begin[{] call[.touchPayload, parameter[]] return[member[._INSTANCE]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Forbidden] identifier[of] operator[SEP] Keyword[int] identifier[errorCode] , identifier[Throwable] identifier[cause] operator[SEP] { identifier[touchPayload] operator[SEP] operator[SEP] operator[SEP] identifier[errorCode] operator[SEP] identifier[errorCode] operator[SE...
public static PlotCanvas screeplot(PCA pca) { int n = pca.getVarianceProportion().length; double[] lowerBound = {0, 0.0}; double[] upperBound = {n + 1, 1.0}; PlotCanvas canvas = new PlotCanvas(lowerBound, upperBound, false); canvas.setAxisLabels("Principal Component", "Proporti...
class class_name[name] begin[{] method[screeplot, return_type[type[PlotCanvas]], modifier[public static], parameter[pca]] begin[{] local_variable[type[int], n] local_variable[type[double], lowerBound] local_variable[type[double], upperBound] local_variable[type[PlotCanvas], canv...
Keyword[public] Keyword[static] identifier[PlotCanvas] identifier[screeplot] operator[SEP] identifier[PCA] identifier[pca] operator[SEP] { Keyword[int] identifier[n] operator[=] identifier[pca] operator[SEP] identifier[getVarianceProportion] operator[SEP] operator[SEP] operator[SEP] identifier[length] operator[S...
public void applyDefaults() { if (getName() == null) { setName(DEFAULT_NAME); } if (getFeatureStyles().size() == 0) { getFeatureStyles().add(new FeatureStyleInfo()); } for (FeatureStyleInfo featureStyle : getFeatureStyles()) { featureStyle.applyDefaults(); } if (getLabelStyle().getLabelAttributeN...
class class_name[name] begin[{] method[applyDefaults, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[call[.getName, parameter[]], ==, literal[null]]] begin[{] call[.setName, parameter[member[.DEFAULT_NAME]]] else begin[{] None ...
Keyword[public] Keyword[void] identifier[applyDefaults] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { identifier[setName] operator[SEP] identifier[DEFAULT_NAME] operator[SEP] operator[SEP] } ...
private void computeSiteSelector(HttpServletRequest request) { boolean selectorForType = TYPE_SIBLING.equals(getTreeType()) || TYPE_COPY.equals(getTreeType()) || TYPE_PAGELINK.equals(getTreeType()) || TYPE_PREFERENCES.equals(getTreeType()); boolean showFromRequest = ...
class class_name[name] begin[{] method[computeSiteSelector, return_type[void], modifier[private], parameter[request]] begin[{] local_variable[type[boolean], selectorForType] local_variable[type[boolean], showFromRequest] if[binary_operation[member[.selectorForType], ||, member[....
Keyword[private] Keyword[void] identifier[computeSiteSelector] operator[SEP] identifier[HttpServletRequest] identifier[request] operator[SEP] { Keyword[boolean] identifier[selectorForType] operator[=] identifier[TYPE_SIBLING] operator[SEP] identifier[equals] operator[SEP] identifier[getTreeType] operator[SEP] op...
public final void clear() { for (int i = 0; i < fields.length; ) { stamp[i] = fields[i] = 0; // UNSET == 0 isSet[i++] = false; } areAllFieldsSet = areFieldsSet = false; isTimeSet = false; }
class class_name[name] begin[{] method[clear, return_type[void], modifier[final public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=stamp, postfix_operators=[], prefix_operators=[], qualifie...
Keyword[public] Keyword[final] Keyword[void] identifier[clear] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[fields] operator[SEP] identifier[length] operator[SEP] operator[SEP] { identifier[s...
public Observable<OperationStatusResponseInner> beginDeleteInstancesAsync(String resourceGroupName, String vmScaleSetName, List<String> instanceIds) { return beginDeleteInstancesWithServiceResponseAsync(resourceGroupName, vmScaleSetName, instanceIds).map(new Func1<ServiceResponse<OperationStatusResponseInner>, ...
class class_name[name] begin[{] method[beginDeleteInstancesAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, vmScaleSetName, instanceIds]] begin[{] return[call[.beginDeleteInstancesWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.vmScaleSetName]...
Keyword[public] identifier[Observable] operator[<] identifier[OperationStatusResponseInner] operator[>] identifier[beginDeleteInstancesAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[vmScaleSetName] , identifier[List] operator[<] identifier[String] operator[>] ide...
public int update(String sql, Object... paras) { Connection conn = null; try { conn = config.getConnection(); return update(config, conn, sql, paras); } catch (Exception e) { throw new ActiveRecordException(e); } finally { config.close(conn); } }
class class_name[name] begin[{] method[update, return_type[type[int]], modifier[public], parameter[sql, paras]] begin[{] local_variable[type[Connection], conn] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=conn, postfix_operators=[], prefix_ope...
Keyword[public] Keyword[int] identifier[update] operator[SEP] identifier[String] identifier[sql] , identifier[Object] operator[...] identifier[paras] operator[SEP] { identifier[Connection] identifier[conn] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[conn] operator[=] identifier[co...
protected boolean preCompileStubs(File sourceDirectory, File classDirectory, IProgressMonitor progress) { assert progress != null; progress.subTask(Messages.SarlBatchCompiler_50); return runJavaCompiler(classDirectory, Collections.singletonList(sourceDirectory), getClassPath(), false, false, progress); }
class class_name[name] begin[{] method[preCompileStubs, return_type[type[boolean]], modifier[protected], parameter[sourceDirectory, classDirectory, progress]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=progress, postfix_operators=[], prefix_operators=[], qualifie...
Keyword[protected] Keyword[boolean] identifier[preCompileStubs] operator[SEP] identifier[File] identifier[sourceDirectory] , identifier[File] identifier[classDirectory] , identifier[IProgressMonitor] identifier[progress] operator[SEP] { Keyword[assert] identifier[progress] operator[!=] Other[null] operator[SEP...
protected final Set<String> inferThriftFieldIds() { Set<String> fieldsWithConflictingIds = new HashSet<>(); // group fields by explicit name or by name extracted from field, method or property Multimap<String, FieldMetadata> fieldsByExplicitOrExtractedName = Multimaps.index(fields, getOrExt...
class class_name[name] begin[{] method[inferThriftFieldIds, return_type[type[Set]], modifier[final protected], parameter[]] begin[{] local_variable[type[Set], fieldsWithConflictingIds] local_variable[type[Multimap], fieldsByExplicitOrExtractedName] call[.inferThriftFieldIds, par...
Keyword[protected] Keyword[final] identifier[Set] operator[<] identifier[String] operator[>] identifier[inferThriftFieldIds] operator[SEP] operator[SEP] { identifier[Set] operator[<] identifier[String] operator[>] identifier[fieldsWithConflictingIds] operator[=] Keyword[new] identifier[HashSet] operator[<] opera...
private Map<String, Scope> getSubMap(Map<String, Map<String, Scope>> parent, String key) { Map<String, Scope> context = parent.get(key); if (context != null) return context; context = MapFactory.<String, Scope>getConcurrentMap(); parent.put(key, context); return context; }
class class_name[name] begin[{] method[getSubMap, return_type[type[Map]], modifier[private], parameter[parent, key]] begin[{] local_variable[type[Map], context] if[binary_operation[member[.context], !=, literal[null]]] begin[{] return[member[.context]] else begin[{] None ...
Keyword[private] identifier[Map] operator[<] identifier[String] , identifier[Scope] operator[>] identifier[getSubMap] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Map] operator[<] identifier[String] , identifier[Scope] operator[>] operator[>] identifier[parent] , identifier[String] iden...
public static String capitalizeFirst( String s ) { if (StringUtil.isEmpty( s )) return s; StringBuilder sb = new StringBuilder(); sb.append( s.substring( 0, 1 ).toUpperCase() ); sb.append( s.substring( 1 ) ); return sb.toString(); }
class class_name[name] begin[{] method[capitalizeFirst, return_type[type[String]], modifier[public static], parameter[s]] begin[{] if[call[StringUtil.isEmpty, parameter[member[.s]]]] begin[{] return[member[.s]] else begin[{] None end[}] local_variable[type[StringBuilder]...
Keyword[public] Keyword[static] identifier[String] identifier[capitalizeFirst] operator[SEP] identifier[String] identifier[s] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtil] operator[SEP] identifier[isEmpty] operator[SEP] identifier[s] operator[SEP] operator[SEP] Keyword[return] identifier[s] op...
public static boolean isMessagingEngineReloading(final String meUuid) { final String methodName = "isMessagingEngineReloading"; if (TRACE.isEntryEnabled()) { SibTr.entry(TRACE, methodName, meUuid); } final boolean reloading = RELOADING_MESSAGING_ENGINES.contains(meUuid); ...
class class_name[name] begin[{] method[isMessagingEngineReloading, return_type[type[boolean]], modifier[public static], parameter[meUuid]] begin[{] local_variable[type[String], methodName] if[call[TRACE.isEntryEnabled, parameter[]]] begin[{] call[SibTr.entry, par...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isMessagingEngineReloading] operator[SEP] Keyword[final] identifier[String] identifier[meUuid] operator[SEP] { Keyword[final] identifier[String] identifier[methodName] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifier[TRACE]...
public Map<K, List<V>> asMap() { Map<K, List<V>> view = new LinkedHashMap<K, List<V>>(map.size()); for (Map.Entry<K, List<V>> entry : map.entrySet()) { K key = entry.getKey(); List<V> value = entry.getValue(); view.put(key, Collections.unmodifiableList(value)); } return Collections.unmodifiableMap(view...
class class_name[name] begin[{] method[asMap, return_type[type[Map]], modifier[public], parameter[]] begin[{] local_variable[type[Map], view] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initiali...
Keyword[public] identifier[Map] operator[<] identifier[K] , identifier[List] operator[<] identifier[V] operator[>] operator[>] identifier[asMap] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[K] , identifier[List] operator[<] identifier[V] operator[>] operator[>] identifier[view] operator...
public void sendInteger2(int val) throws IOException { if (val < Short.MIN_VALUE || val > Short.MAX_VALUE) { throw new IOException("Tried to send an out-of-range integer as a 2-byte value: " + val); } int2Buf[0] = (byte) (val >>> 8); int2Buf[1] = (byte) val; pgOutput.write(int2Buf); }
class class_name[name] begin[{] method[sendInteger2, return_type[void], modifier[public], parameter[val]] begin[{] if[binary_operation[binary_operation[member[.val], <, member[Short.MIN_VALUE]], ||, binary_operation[member[.val], >, member[Short.MAX_VALUE]]]] begin[{] ThrowStatement...
Keyword[public] Keyword[void] identifier[sendInteger2] operator[SEP] Keyword[int] identifier[val] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[val] operator[<] identifier[Short] operator[SEP] identifier[MIN_VALUE] operator[||] identifier[val] operator[>] identifier...
private void init(Context context, AttributeSet attrs) { initAttributes(context, attrs); initPaintObjects(); initDimensions(); initPadding(); initFloatingLabelAnimator(); initOnItemSelectedListener(); setMinimumHeight(getPaddingTop() + getPaddingBottom() + minCon...
class class_name[name] begin[{] method[init, return_type[void], modifier[private], parameter[context, attrs]] begin[{] call[.initAttributes, parameter[member[.context], member[.attrs]]] call[.initPaintObjects, parameter[]] call[.initDimensions, parameter[]] ...
Keyword[private] Keyword[void] identifier[init] operator[SEP] identifier[Context] identifier[context] , identifier[AttributeSet] identifier[attrs] operator[SEP] { identifier[initAttributes] operator[SEP] identifier[context] , identifier[attrs] operator[SEP] operator[SEP] identifier[initPaintObjects] operator[S...
public ServiceFuture<DataLakeAnalyticsAccountInner> updateAsync(String resourceGroupName, String accountName, UpdateDataLakeAnalyticsAccountParameters parameters, final ServiceCallback<DataLakeAnalyticsAccountInner> serviceCallback) { return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGrou...
class class_name[name] begin[{] method[updateAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, accountName, parameters, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.updateWithServiceResponseAsync, parameter[member[.resourceGrou...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[DataLakeAnalyticsAccountInner] operator[>] identifier[updateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[accountName] , identifier[UpdateDataLakeAnalyticsAccountParameters] identifier[parameters] ...
public CircuitGroupResetAckMessage createGRA() { CircuitGroupResetAckMessage msg = new CircuitGroupResetAckMessageImpl(_GRA_HOLDER.mandatoryCodes, _GRA_HOLDER.mandatoryVariableCodes, _GRA_HOLDER.optionalCodes, _GRA_HOLDER.mandatoryCodeToIndex, _GRA_HOLDER.mandatoryVariableCodeToI...
class class_name[name] begin[{] method[createGRA, return_type[type[CircuitGroupResetAckMessage]], modifier[public], parameter[]] begin[{] local_variable[type[CircuitGroupResetAckMessage], msg] return[member[.msg]] end[}] END[}]
Keyword[public] identifier[CircuitGroupResetAckMessage] identifier[createGRA] operator[SEP] operator[SEP] { identifier[CircuitGroupResetAckMessage] identifier[msg] operator[=] Keyword[new] identifier[CircuitGroupResetAckMessageImpl] operator[SEP] identifier[_GRA_HOLDER] operator[SEP] identifier[mandatoryCodes] ,...
public static CompletedCheckpointStore createCompletedCheckpoints( CuratorFramework client, Configuration configuration, JobID jobId, int maxNumberOfCheckpointsToRetain, Executor executor) throws Exception { checkNotNull(configuration, "Configuration"); String checkpointsPath = configuration.getStr...
class class_name[name] begin[{] method[createCompletedCheckpoints, return_type[type[CompletedCheckpointStore]], modifier[public static], parameter[client, configuration, jobId, maxNumberOfCheckpointsToRetain, executor]] begin[{] call[.checkNotNull, parameter[member[.configuration], literal["Con...
Keyword[public] Keyword[static] identifier[CompletedCheckpointStore] identifier[createCompletedCheckpoints] operator[SEP] identifier[CuratorFramework] identifier[client] , identifier[Configuration] identifier[configuration] , identifier[JobID] identifier[jobId] , Keyword[int] identifier[maxNumberOfCheckpointsToRetai...