code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public List<Image> getTaggedImages(UUID projectId, GetTaggedImagesOptionalParameter getTaggedImagesOptionalParameter) { return getTaggedImagesWithServiceResponseAsync(projectId, getTaggedImagesOptionalParameter).toBlocking().single().body(); }
class class_name[name] begin[{] method[getTaggedImages, return_type[type[List]], modifier[public], parameter[projectId, getTaggedImagesOptionalParameter]] begin[{] return[call[.getTaggedImagesWithServiceResponseAsync, parameter[member[.projectId], member[.getTaggedImagesOptionalParameter]]]] end[}]...
Keyword[public] identifier[List] operator[<] identifier[Image] operator[>] identifier[getTaggedImages] operator[SEP] identifier[UUID] identifier[projectId] , identifier[GetTaggedImagesOptionalParameter] identifier[getTaggedImagesOptionalParameter] operator[SEP] { Keyword[return] identifier[getTaggedImagesWithSe...
public com.squareup.okhttp.Call getCorporationCorporationIdMiningExtractionsAsync(Integer corporationId, String datasource, String ifNoneMatch, Integer page, String token, final ApiCallback<List<CorporationMiningExtractionsResponse>> callback) throws ApiException { com.squareup.okhttp.C...
class class_name[name] begin[{] method[getCorporationCorporationIdMiningExtractionsAsync, return_type[type[com]], modifier[public], parameter[corporationId, datasource, ifNoneMatch, page, token, callback]] begin[{] local_variable[type[com], call] local_variable[type[Type], localVarReturnType] ...
Keyword[public] identifier[com] operator[SEP] identifier[squareup] operator[SEP] identifier[okhttp] operator[SEP] identifier[Call] identifier[getCorporationCorporationIdMiningExtractionsAsync] operator[SEP] identifier[Integer] identifier[corporationId] , identifier[String] identifier[datasource] , identifier[String] ...
@Modified(id = "importDeclarations") void modifiedImportDeclaration(ServiceReference<ImportDeclaration> importDeclarationSRef) { LOG.debug(linkerName + " : Modify the ImportDeclaration " + declarationsManager.getDeclaration(importDeclarationSRef)); synchronized (lock) { ...
class class_name[name] begin[{] method[modifiedImportDeclaration, return_type[void], modifier[default], parameter[importDeclarationSRef]] begin[{] call[LOG.debug, parameter[binary_operation[binary_operation[member[.linkerName], +, literal[" : Modify the ImportDeclaration "]], +, call[declaratio...
annotation[@] identifier[Modified] operator[SEP] identifier[id] operator[=] literal[String] operator[SEP] Keyword[void] identifier[modifiedImportDeclaration] operator[SEP] identifier[ServiceReference] operator[<] identifier[ImportDeclaration] operator[>] identifier[importDeclarationSRef] operator[SEP] { identifi...
public void marshall(Region region, ProtocolMarshaller protocolMarshaller) { if (region == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(region.getContinentCode(), CONTINENTCODE_BINDING); ...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[region, protocolMarshaller]] begin[{] if[binary_operation[member[.region], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pre...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[Region] identifier[region] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[region] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] iden...
@BetaApi( "The surface for long-running operations is not stable yet and may change in the future.") public final OperationFuture<Empty, OperationMetadata> deployModelAsync(ModelName name) { DeployModelRequest request = DeployModelRequest.newBuilder().setName(name == null ? null : name.toString())....
class class_name[name] begin[{] method[deployModelAsync, return_type[type[OperationFuture]], modifier[final public], parameter[name]] begin[{] local_variable[type[DeployModelRequest], request] return[call[.deployModelAsync, parameter[member[.request]]]] end[}] END[}]
annotation[@] identifier[BetaApi] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[final] identifier[OperationFuture] operator[<] identifier[Empty] , identifier[OperationMetadata] operator[>] identifier[deployModelAsync] operator[SEP] identifier[ModelName] identifier[name] operator[SEP] { ide...
public int getWidth(String whatchars) { int totalwidth = 0; IntObject intObject = null; int currentChar = 0; for (int i = 0; i < whatchars.length(); i++) { currentChar = whatchars.charAt(i); if (currentChar < 256) { intObject = charArray[currentChar]; } else { intObject = (IntObject)cu...
class class_name[name] begin[{] method[getWidth, return_type[type[int]], modifier[public], parameter[whatchars]] begin[{] local_variable[type[int], totalwidth] local_variable[type[IntObject], intObject] local_variable[type[int], currentChar] ForStatement(body=BlockStatement(labe...
Keyword[public] Keyword[int] identifier[getWidth] operator[SEP] identifier[String] identifier[whatchars] operator[SEP] { Keyword[int] identifier[totalwidth] operator[=] Other[0] operator[SEP] identifier[IntObject] identifier[intObject] operator[=] Other[null] operator[SEP] Keyword[int] identifier[currentChar] op...
public StringExpression min() { if (min == null) { min = Expressions.stringOperation(Ops.AggOps.MIN_AGG, mixin); } return min; }
class class_name[name] begin[{] method[min, return_type[type[StringExpression]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.min], ==, literal[null]]] begin[{] assign[member[.min], call[Expressions.stringOperation, parameter[member[Ops.AggOps.MIN_...
Keyword[public] identifier[StringExpression] identifier[min] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[min] operator[==] Other[null] operator[SEP] { identifier[min] operator[=] identifier[Expressions] operator[SEP] identifier[stringOperation] operator[SEP] identifier[Ops] oper...
public static base_response disable(nitro_service client, nsip resource) throws Exception { nsip disableresource = new nsip(); disableresource.ipaddress = resource.ipaddress; disableresource.td = resource.td; return disableresource.perform_operation(client,"disable"); }
class class_name[name] begin[{] method[disable, return_type[type[base_response]], modifier[public static], parameter[client, resource]] begin[{] local_variable[type[nsip], disableresource] assign[member[disableresource.ipaddress], member[resource.ipaddress]] assign[membe...
Keyword[public] Keyword[static] identifier[base_response] identifier[disable] operator[SEP] identifier[nitro_service] identifier[client] , identifier[nsip] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] { identifier[nsip] identifier[disableresource] operator[=] Keyword[new] identifier[...
protected List<AbstractTraceRegion> toInvertedTraceRegions(List<Pair<ILocationData, AbstractTraceRegion>> locations, SourceRelativeURI myPath) { List<AbstractTraceRegion> result = Lists.newArrayListWithCapacity(2); TraceRegion current = null; int currentEndOffset = 0; outer: for (int i = 0; i < locations.siz...
class class_name[name] begin[{] method[toInvertedTraceRegions, return_type[type[List]], modifier[protected], parameter[locations, myPath]] begin[{] local_variable[type[List], result] local_variable[type[TraceRegion], current] local_variable[type[int], currentEndOffset] ForStatem...
Keyword[protected] identifier[List] operator[<] identifier[AbstractTraceRegion] operator[>] identifier[toInvertedTraceRegions] operator[SEP] identifier[List] operator[<] identifier[Pair] operator[<] identifier[ILocationData] , identifier[AbstractTraceRegion] operator[>] operator[>] identifier[locations] , identifier[...
public void addParam(String strParam, Object obj) { String strValue = this.objectToString(obj); this.addParam(strParam, strValue); }
class class_name[name] begin[{] method[addParam, return_type[void], modifier[public], parameter[strParam, obj]] begin[{] local_variable[type[String], strValue] THIS[call[None.addParam, parameter[member[.strParam], member[.strValue]]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addParam] operator[SEP] identifier[String] identifier[strParam] , identifier[Object] identifier[obj] operator[SEP] { identifier[String] identifier[strValue] operator[=] Keyword[this] operator[SEP] identifier[objectToString] operator[SEP] identifier[obj] operator[SEP] ope...
public TimerType<T> end(java.util.Date end) { if (end != null) { childNode.getOrCreate("end").text(XMLDate.toXMLFormat(end)); return this; } return null; }
class class_name[name] begin[{] method[end, return_type[type[TimerType]], modifier[public], parameter[end]] begin[{] if[binary_operation[member[.end], !=, literal[null]]] begin[{] call[childNode.getOrCreate, parameter[literal["end"]]] return[THIS[]] e...
Keyword[public] identifier[TimerType] operator[<] identifier[T] operator[>] identifier[end] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Date] identifier[end] operator[SEP] { Keyword[if] operator[SEP] identifier[end] operator[!=] Other[null] operator[SEP] { id...
private Observable<Record> setFragmentInRecord(Record record, DocumentFragment<Lookup> frag) { if(frag.content(0) == null) { LOG.debug("Sub-document path not found"); return handleError(record, Errors.COUCHBASE_25, true); } for(SubdocMappingConfig subdocMapping : config.subdocMappingConfigs) { ...
class class_name[name] begin[{] method[setFragmentInRecord, return_type[type[Observable]], modifier[private], parameter[record, frag]] begin[{] if[binary_operation[call[frag.content, parameter[literal[0]]], ==, literal[null]]] begin[{] call[LOG.debug, parameter[literal["...
Keyword[private] identifier[Observable] operator[<] identifier[Record] operator[>] identifier[setFragmentInRecord] operator[SEP] identifier[Record] identifier[record] , identifier[DocumentFragment] operator[<] identifier[Lookup] operator[>] identifier[frag] operator[SEP] { Keyword[if] operator[SEP] identifier[f...
@Override public ModifyEventSubscriptionResult modifyEventSubscription(ModifyEventSubscriptionRequest request) { request = beforeClientExecution(request); return executeModifyEventSubscription(request); }
class class_name[name] begin[{] method[modifyEventSubscription, return_type[type[ModifyEventSubscriptionResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeModifyEventSubscriptio...
annotation[@] identifier[Override] Keyword[public] identifier[ModifyEventSubscriptionResult] identifier[modifyEventSubscription] operator[SEP] identifier[ModifyEventSubscriptionRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[...
public void marshall(DescribeSnapshotScheduleRequest describeSnapshotScheduleRequest, ProtocolMarshaller protocolMarshaller) { if (describeSnapshotScheduleRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[describeSnapshotScheduleRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.describeSnapshotScheduleRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCr...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeSnapshotScheduleRequest] identifier[describeSnapshotScheduleRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[describeSnapshotScheduleRequest] operator[...
@SuppressWarnings("unchecked") public EList<IfcPropertySetDefinition> getHasPropertySets() { return (EList<IfcPropertySetDefinition>) eGet(Ifc2x3tc1Package.Literals.IFC_TYPE_OBJECT__HAS_PROPERTY_SETS, true); }
class class_name[name] begin[{] method[getHasPropertySets, return_type[type[EList]], modifier[public], parameter[]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_TYPE_OBJECT__HAS_PROPERTY_SETS, postfix_operators=[], prefix_operators=[], qualifier=Ifc2x3tc1Packag...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[EList] operator[<] identifier[IfcPropertySetDefinition] operator[>] identifier[getHasPropertySets] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] identifier[EList] operator[<] identifier...
public static void save() { H.Response resp = H.Response.current(); H.Session session = H.Session.current(); serialize(session); H.Flash flash = H.Flash.current(); serialize(flash); }
class class_name[name] begin[{] method[save, return_type[void], modifier[public static], parameter[]] begin[{] local_variable[type[H], resp] local_variable[type[H], session] call[.serialize, parameter[member[.session]]] local_variable[type[H], flash] call...
Keyword[public] Keyword[static] Keyword[void] identifier[save] operator[SEP] operator[SEP] { identifier[H] operator[SEP] identifier[Response] identifier[resp] operator[=] identifier[H] operator[SEP] identifier[Response] operator[SEP] identifier[current] operator[SEP] operator[SEP] operator[SEP] identifier[H] ope...
@Override public boolean handle(Exception e, @Nonnull Run<?, ?> run, @Nonnull TaskListener listener) { Result toSet = Result.fromString(trimToEmpty(result)); listener.error("[GitHub Commit Status Setter] - %s, setting build result to %s", e.getMessage(), toSet); run.setResult(toSet); ...
class class_name[name] begin[{] method[handle, return_type[type[boolean]], modifier[public], parameter[e, run, listener]] begin[{] local_variable[type[Result], toSet] call[listener.error, parameter[literal["[GitHub Commit Status Setter] - %s, setting build result to %s"], call[e.getMess...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[handle] operator[SEP] identifier[Exception] identifier[e] , annotation[@] identifier[Nonnull] identifier[Run] operator[<] operator[?] , operator[?] operator[>] identifier[run] , annotation[@] identifier[Nonnull] identifier[TaskListener] i...
public static TraceId fromBytes(byte[] src, int srcOffset) { Utils.checkNotNull(src, "src"); return new TraceId( BigendianEncoding.longFromByteArray(src, srcOffset), BigendianEncoding.longFromByteArray(src, srcOffset + BigendianEncoding.LONG_BYTES)); }
class class_name[name] begin[{] method[fromBytes, return_type[type[TraceId]], modifier[public static], parameter[src, srcOffset]] begin[{] call[Utils.checkNotNull, parameter[member[.src], literal["src"]]] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=...
Keyword[public] Keyword[static] identifier[TraceId] identifier[fromBytes] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[src] , Keyword[int] identifier[srcOffset] operator[SEP] { identifier[Utils] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[src] , literal[String] operato...
Map<String, CmsClientProperty> getClientProperties(CmsObject cms, CmsResource res, boolean search) throws CmsException { List<CmsProperty> props = cms.readPropertyObjects(res, search); Map<String, CmsClientProperty> result = createClientProperties(props, false); return result; }
class class_name[name] begin[{] method[getClientProperties, return_type[type[Map]], modifier[default], parameter[cms, res, search]] begin[{] local_variable[type[List], props] local_variable[type[Map], result] return[member[.result]] end[}] END[}]
identifier[Map] operator[<] identifier[String] , identifier[CmsClientProperty] operator[>] identifier[getClientProperties] operator[SEP] identifier[CmsObject] identifier[cms] , identifier[CmsResource] identifier[res] , Keyword[boolean] identifier[search] operator[SEP] Keyword[throws] identifier[CmsException] { ...
private void readResource(net.sf.mpxj.planner.schema.Resource plannerResource) throws MPXJException { Resource mpxjResource = m_projectFile.addResource(); //mpxjResource.setResourceCalendar(m_projectFile.getBaseCalendarByUniqueID(getInteger(plannerResource.getCalendar()))); mpxjResource.setEmailAd...
class class_name[name] begin[{] method[readResource, return_type[void], modifier[private], parameter[plannerResource]] begin[{] local_variable[type[Resource], mpxjResource] call[mpxjResource.setEmailAddress, parameter[call[plannerResource.getEmail, parameter[]]]] call[mp...
Keyword[private] Keyword[void] identifier[readResource] operator[SEP] identifier[net] operator[SEP] identifier[sf] operator[SEP] identifier[mpxj] operator[SEP] identifier[planner] operator[SEP] identifier[schema] operator[SEP] identifier[Resource] identifier[plannerResource] operator[SEP] Keyword[throws] identifier[MPX...
public static void validObject(Object pContent, String pParamName) throws APPErrorException { if (null==pContent) { throw new APPErrorException(pParamName + " 不能为null"); } }
class class_name[name] begin[{] method[validObject, return_type[void], modifier[public static], parameter[pContent, pParamName]] begin[{] if[binary_operation[literal[null], ==, member[.pContent]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Me...
Keyword[public] Keyword[static] Keyword[void] identifier[validObject] operator[SEP] identifier[Object] identifier[pContent] , identifier[String] identifier[pParamName] operator[SEP] Keyword[throws] identifier[APPErrorException] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[pContent] operator[S...
private String provideRepresentation(int number) { String key; if (number == 0) key = "zero"; else if (number < 20) key = numNames[number]; else if (number < 100) { int unit = number % 10; key = tensNames[number / 10] + numNames[unit]; } ...
class class_name[name] begin[{] method[provideRepresentation, return_type[type[String]], modifier[private], parameter[number]] begin[{] local_variable[type[String], key] if[binary_operation[member[.number], ==, literal[0]]] begin[{] assign[member[.key], literal["zero"]] ...
Keyword[private] identifier[String] identifier[provideRepresentation] operator[SEP] Keyword[int] identifier[number] operator[SEP] { identifier[String] identifier[key] operator[SEP] Keyword[if] operator[SEP] identifier[number] operator[==] Other[0] operator[SEP] identifier[key] operator[=] literal[String] operato...
@Override public long until(Temporal endExclusive, TemporalUnit unit) { ChronoLocalDate end = getChronology().date(endExclusive); if (unit instanceof ChronoUnit) { return LocalDate.from(this).until(end, unit); // TODO: this is wrong } return unit.between(this, end); ...
class class_name[name] begin[{] method[until, return_type[type[long]], modifier[public], parameter[endExclusive, unit]] begin[{] local_variable[type[ChronoLocalDate], end] if[binary_operation[member[.unit], instanceof, type[ChronoUnit]]] begin[{] return[call[LocalDate.from, ...
annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[until] operator[SEP] identifier[Temporal] identifier[endExclusive] , identifier[TemporalUnit] identifier[unit] operator[SEP] { identifier[ChronoLocalDate] identifier[end] operator[=] identifier[getChronology] operator[SEP] operator[SEP]...
private void internalSetFiled(MethodVisitor mv, Accessor acc) { /** * FNC params * * 1 -> object to alter * * 2 -> id of field * * 3 -> new value */ mv.visitVarInsn(ALOAD, 1); mv.visitTypeInsn(CHECKCAST, classNameInternal); // get VELUE mv.visitVarInsn(ALOAD, 3); Type fieldType = ...
class class_name[name] begin[{] method[internalSetFiled, return_type[void], modifier[private], parameter[mv, acc]] begin[{] call[mv.visitVarInsn, parameter[member[.ALOAD], literal[1]]] call[mv.visitTypeInsn, parameter[member[.CHECKCAST], member[.classNameInternal]]] ...
Keyword[private] Keyword[void] identifier[internalSetFiled] operator[SEP] identifier[MethodVisitor] identifier[mv] , identifier[Accessor] identifier[acc] operator[SEP] { identifier[mv] operator[SEP] identifier[visitVarInsn] operator[SEP] identifier[ALOAD] , Other[1] operator[SEP] operator[SEP] identifier[mv] o...
public DecodingState finishDecode(ProtocolDecoderOutput out) throws Exception { DecodingState nextState; DecodingState state = getCurrentState(); try { for (;;) { DecodingState oldState = state; state = state.finishDecode(childOutput); ...
class class_name[name] begin[{] method[finishDecode, return_type[type[DecodingState]], modifier[public], parameter[out]] begin[{] local_variable[type[DecodingState], nextState] local_variable[type[DecodingState], state] TryStatement(block=[ForStatement(body=BlockStatement(label=None, st...
Keyword[public] identifier[DecodingState] identifier[finishDecode] operator[SEP] identifier[ProtocolDecoderOutput] identifier[out] operator[SEP] Keyword[throws] identifier[Exception] { identifier[DecodingState] identifier[nextState] operator[SEP] identifier[DecodingState] identifier[state] operator[=] identifier...
@CheckReturnValue @BackpressureSupport(BackpressureKind.UNBOUNDED_IN) @SchedulerSupport(SchedulerSupport.NONE) public final Single<T> lastOrError() { return RxJavaPlugins.onAssembly(new FlowableLastSingle<T>(this, null)); }
class class_name[name] begin[{] method[lastOrError, return_type[type[Single]], modifier[final public], parameter[]] begin[{] return[call[RxJavaPlugins.onAssembly, parameter[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), Literal(postfix_operators=[...
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[UNBOUNDED_IN] operator[SEP] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyw...
public boolean isAllowedCachedRight(final ContextEntry[] context, final Tuple tuple) { return constraints[0].isAllowedCachedRight(tuple, context[0]) && constraints[1].isAllowedCachedRight(tuple, context[1]) && constraints[2].isAllowedCachedRi...
class class_name[name] begin[{] method[isAllowedCachedRight, return_type[type[boolean]], modifier[public], parameter[context, tuple]] begin[{] return[binary_operation[binary_operation[binary_operation[member[.constraints], &&, member[.constraints]], &&, member[.constraints]], &&, member[.constraints]]]...
Keyword[public] Keyword[boolean] identifier[isAllowedCachedRight] operator[SEP] Keyword[final] identifier[ContextEntry] operator[SEP] operator[SEP] identifier[context] , Keyword[final] identifier[Tuple] identifier[tuple] operator[SEP] { Keyword[return] identifier[constraints] operator[SEP] Other[0] operator[SEP...
private void customLoad() { final String s = getCfg().getProperty("custom-loader"); if (s != null) { try { final CustomLoader customLoader = (CustomLoader) Class.forName(s).newInstance(); logItem("Custom Loader", s, "*"); customLoader.execute(t...
class class_name[name] begin[{] method[customLoad, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[String], s] if[binary_operation[member[.s], !=, literal[null]]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarator...
Keyword[private] Keyword[void] identifier[customLoad] operator[SEP] operator[SEP] { Keyword[final] identifier[String] identifier[s] operator[=] identifier[getCfg] operator[SEP] operator[SEP] operator[SEP] identifier[getProperty] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] ...
private void performSubmittedInlineWork(Work work) throws Exception { String attachmentName = work.getAttachmentName(); FileConversionContext conversionContext = new FileConversionContextImpl(work,documentDbDesign,mediaDir); DocumentDescriptor docDescriptor = conversionContext.getDocument(); Attachment...
class class_name[name] begin[{] method[performSubmittedInlineWork, return_type[void], modifier[private], parameter[work]] begin[{] local_variable[type[String], attachmentName] local_variable[type[FileConversionContext], conversionContext] local_variable[type[DocumentDescriptor], docDesc...
Keyword[private] Keyword[void] identifier[performSubmittedInlineWork] operator[SEP] identifier[Work] identifier[work] operator[SEP] Keyword[throws] identifier[Exception] { identifier[String] identifier[attachmentName] operator[=] identifier[work] operator[SEP] identifier[getAttachmentName] operator[SEP] operator...
private Element parseDesc(final File descFile) { try { parser.setPluginDir(descFile.getParentFile()); final Element root = parser.parse(descFile.getAbsoluteFile()); final Features f = parser.getFeatures(); final String id = f.getPluginId(); validatePlu...
class class_name[name] begin[{] method[parseDesc, return_type[type[Element]], modifier[private], parameter[descFile]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getParentFile, postfix_operators=[], prefix_operators=[], q...
Keyword[private] identifier[Element] identifier[parseDesc] operator[SEP] Keyword[final] identifier[File] identifier[descFile] operator[SEP] { Keyword[try] { identifier[parser] operator[SEP] identifier[setPluginDir] operator[SEP] identifier[descFile] operator[SEP] identifier[getParentFile] operator[SEP...
@Deprecated public static int flipBitmapRangeAndCardinalityChange(long[] bitmap, int start, int end) { int cardbefore = cardinalityInBitmapWordRange(bitmap, start, end); flipBitmapRange(bitmap, start,end); int cardafter = cardinalityInBitmapWordRange(bitmap, start, end); return cardafter - cardbefore;...
class class_name[name] begin[{] method[flipBitmapRangeAndCardinalityChange, return_type[type[int]], modifier[public static], parameter[bitmap, start, end]] begin[{] local_variable[type[int], cardbefore] call[.flipBitmapRange, parameter[member[.bitmap], member[.start], member[.end]]] ...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] Keyword[int] identifier[flipBitmapRangeAndCardinalityChange] operator[SEP] Keyword[long] operator[SEP] operator[SEP] identifier[bitmap] , Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SEP] { Keyword[int] identifier[ca...
public void drawCircles( double[][][] houghValues, byte[] circlespixels ) { // Copy original input pixels into output // circle location display image and // combine with saturation at 100 int roiaddr = 0; for( int y = offy; y < offy + height; y++ ) { for( int x = of...
class class_name[name] begin[{] method[drawCircles, return_type[void], modifier[public], parameter[houghValues, circlespixels]] begin[{] local_variable[type[int], roiaddr] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[Statement...
Keyword[public] Keyword[void] identifier[drawCircles] operator[SEP] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[houghValues] , Keyword[byte] operator[SEP] operator[SEP] identifier[circlespixels] operator[SEP] { Keyword[int] identifier[roiaddr] o...
private boolean chunkInStorage(String spaceId, String contentId, String checksum) { try { if (contentStore.contentExists(spaceId, contentId)) { // dc file exists Map<String, String> props = contentStore.getContentProperties(spaceId, contentId); Str...
class class_name[name] begin[{] method[chunkInStorage, return_type[type[boolean]], modifier[private], parameter[spaceId, contentId, checksum]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=spaceId, postfix_operators=[], prefix_operators=[], qualif...
Keyword[private] Keyword[boolean] identifier[chunkInStorage] operator[SEP] identifier[String] identifier[spaceId] , identifier[String] identifier[contentId] , identifier[String] identifier[checksum] operator[SEP] { Keyword[try] { Keyword[if] operator[SEP] identifier[contentStore] operator[SEP] ident...
public static int hash32(final byte[] data, int length, int seed) { // 'm' and 'r' are mixing constants generated offline. // They're not really 'magic', they just happen to work well. final int m = 0x5bd1e995; final int r = 24; // Initialize the hash to a random value i...
class class_name[name] begin[{] method[hash32, return_type[type[int]], modifier[public static], parameter[data, length, seed]] begin[{] local_variable[type[int], m] local_variable[type[int], r] local_variable[type[int], h] local_variable[type[int], length4] ForStatement(...
Keyword[public] Keyword[static] Keyword[int] identifier[hash32] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[int] identifier[length] , Keyword[int] identifier[seed] operator[SEP] { Keyword[final] Keyword[int] identifier[m] operator[=] literal[Integer] operat...
public static void downloadOSMFile(File file, Envelope geometryEnvelope) throws IOException { HttpURLConnection urlCon = (HttpURLConnection) createOsmUrl(geometryEnvelope).openConnection(); urlCon.setRequestMethod("GET"); urlCon.connect(); switch (urlCon.getResponseCode()) { ...
class class_name[name] begin[{] method[downloadOSMFile, return_type[void], modifier[public static], parameter[file, geometryEnvelope]] begin[{] local_variable[type[HttpURLConnection], urlCon] call[urlCon.setRequestMethod, parameter[literal["GET"]]] call[urlCon.connect, p...
Keyword[public] Keyword[static] Keyword[void] identifier[downloadOSMFile] operator[SEP] identifier[File] identifier[file] , identifier[Envelope] identifier[geometryEnvelope] operator[SEP] Keyword[throws] identifier[IOException] { identifier[HttpURLConnection] identifier[urlCon] operator[=] operator[SEP] identif...
private void enumerative( EnumDeclarationDescrBuilder declare ) { EnumLiteralDescrBuilder literal = null; String lit = null; try { Token enumLit = match( input, DRL5Lexer.ID, null, null, DroolsEditorType....
class class_name[name] begin[{] method[enumerative, return_type[void], modifier[private], parameter[declare]] begin[{] local_variable[type[EnumLiteralDescrBuilder], literal] local_variable[type[String], lit] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[Varia...
Keyword[private] Keyword[void] identifier[enumerative] operator[SEP] identifier[EnumDeclarationDescrBuilder] identifier[declare] operator[SEP] { identifier[EnumLiteralDescrBuilder] identifier[literal] operator[=] Other[null] operator[SEP] identifier[String] identifier[lit] operator[=] Other[null] operator[SEP] K...
private int setLastRow(int position) { if (position < 0) throw new IllegalStateException(); decompose(position, lastRow); int expectedRowCount = 0; for (int i = 0 ; i < lastRow.length ; i++) { int l = lastRow[i]; ...
class class_name[name] begin[{] method[setLastRow, return_type[type[int]], modifier[private], parameter[position]] begin[{] if[binary_operation[member[.position], <, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_op...
Keyword[private] Keyword[int] identifier[setLastRow] operator[SEP] Keyword[int] identifier[position] operator[SEP] { Keyword[if] operator[SEP] identifier[position] operator[<] Other[0] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] operator[SEP] operator[SEP] identifier...
protected synchronized boolean isBackgroundInvalidationInProgress() { boolean cleanupThreadRunning = false; if (this.cod.diskCleanupThread != null) { synchronized (cod.diskCleanupThread.dcMonitor) { cleanupThreadRunning = this.cod.diskCleanupThread.currentThread != null; ...
class class_name[name] begin[{] method[isBackgroundInvalidationInProgress, return_type[type[boolean]], modifier[synchronized protected], parameter[]] begin[{] local_variable[type[boolean], cleanupThreadRunning] if[binary_operation[THIS[member[None.cod]member[None.diskCleanupThread]], !=...
Keyword[protected] Keyword[synchronized] Keyword[boolean] identifier[isBackgroundInvalidationInProgress] operator[SEP] operator[SEP] { Keyword[boolean] identifier[cleanupThreadRunning] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[cod] operator[SEP] i...
public Rational getSampleAspectRatio() { long cPtr = VideoJNI.ContainerStream_getSampleAspectRatio(swigCPtr, this); return (cPtr == 0) ? null : new Rational(cPtr, false); }
class class_name[name] begin[{] method[getSampleAspectRatio, return_type[type[Rational]], modifier[public], parameter[]] begin[{] local_variable[type[long], cPtr] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=cPtr, postfix_operators=[], prefix_operators=[], ...
Keyword[public] identifier[Rational] identifier[getSampleAspectRatio] operator[SEP] operator[SEP] { Keyword[long] identifier[cPtr] operator[=] identifier[VideoJNI] operator[SEP] identifier[ContainerStream_getSampleAspectRatio] operator[SEP] identifier[swigCPtr] , Keyword[this] operator[SEP] operator[SEP] Keywor...
@Override @SuppressWarnings("unchecked") public <T> T[] toArray(T[] a) { int size = size(); if (a.length < size) { a = (T[])java.lang.reflect.Array.newInstance(a.getClass().getComponentType(), size); } int i = 0; for (Record r : values()) { a[i++] ...
class class_name[name] begin[{] method[toArray, return_type[type[T]], modifier[public], parameter[a]] begin[{] local_variable[type[int], size] if[binary_operation[member[a.length], <, member[.size]]] begin[{] assign[member[.a], Cast(expression=MethodInvocation(ar...
annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] operator[>] identifier[T] operator[SEP] operator[SEP] identifier[toArray] operator[SEP] identifier[T] operator[SEP] operator[SEP] identifier[a] operator[SEP...
public final Having havingClause() throws RecognitionException { Having having = null; Having h =null; try { // druidG.g:368:2: (h= complexHaving ) // druidG.g:368:4: h= complexHaving { pushFollow(FOLLOW_complexHaving_in_havingClause2584); h=complexHaving(); state._fsp--; having = h; }...
class class_name[name] begin[{] method[havingClause, return_type[type[Having]], modifier[final public], parameter[]] begin[{] local_variable[type[Having], having] local_variable[type[Having], h] TryStatement(block=[BlockStatement(label=None, statements=[StatementExpression(expression=Me...
Keyword[public] Keyword[final] identifier[Having] identifier[havingClause] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[Having] identifier[having] operator[=] Other[null] operator[SEP] identifier[Having] identifier[h] operator[=] Other[null] operator[SEP] Keyword[try]...
public void remove(Node node) { if (node==null) return; if( node instanceof InnerNode ) { throw new IllegalArgumentException( "Not allow to remove an inner node: "+NodeBase.getPath(node)); } LOG.info("Removing a node: "+NodeBase.getPath(node)); netlock.writeLock().lock(); try { ...
class class_name[name] begin[{] method[remove, return_type[void], modifier[public], parameter[node]] begin[{] if[binary_operation[member[.node], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] if[binary_operation[member[.node], instanceof, typ...
Keyword[public] Keyword[void] identifier[remove] operator[SEP] identifier[Node] identifier[node] operator[SEP] { Keyword[if] operator[SEP] identifier[node] operator[==] Other[null] operator[SEP] Keyword[return] operator[SEP] Keyword[if] operator[SEP] identifier[node] Keyword[instanceof] identifier[InnerNode] ope...
@XmlElementDecl(namespace = "", name = "rolladen") public JAXBElement<Boolean> createRolladen(Boolean value) { return new JAXBElement<Boolean>(_Rolladen_QNAME, Boolean.class, null, value); }
class class_name[name] begin[{] method[createRolladen, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_Rolladen_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operato...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[Boolean] operator[>] identifier[createRolladen] operator[SEP] identifier[Boolean] identifi...
public void marshall(AttachThingPrincipalRequest attachThingPrincipalRequest, ProtocolMarshaller protocolMarshaller) { if (attachThingPrincipalRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshal...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[attachThingPrincipalRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.attachThingPrincipalRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(ar...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[AttachThingPrincipalRequest] identifier[attachThingPrincipalRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[attachThingPrincipalRequest] operator[==] Other[nu...
public static boolean availableApplicationContextVersion(MAPApplicationContextName contextName, int contextVersion) { switch (contextName) { // -- Mobility Services // --- Location management services case networkLocUpContext: case locationCancellationContext: ...
class class_name[name] begin[{] method[availableApplicationContextVersion, return_type[type[boolean]], modifier[public static], parameter[contextName, contextVersion]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['networkLocUpContext', 'locationCancellationContext', 'gprsLocationUpdateCont...
Keyword[public] Keyword[static] Keyword[boolean] identifier[availableApplicationContextVersion] operator[SEP] identifier[MAPApplicationContextName] identifier[contextName] , Keyword[int] identifier[contextVersion] operator[SEP] { Keyword[switch] operator[SEP] identifier[contextName] operator[SEP] { K...
public Param value(List<String> values) { StringBuilder valuesSb = new StringBuilder(); for (int i = 0; i < values.size(); i++) { valuesSb.append(values.get(i)); if (i != (values.size() - 1)) { valuesSb.append("%7C"); // it represents a pipeline character | ...
class class_name[name] begin[{] method[value, return_type[type[Param]], modifier[public], parameter[values]] begin[{] local_variable[type[StringBuilder], valuesSb] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocatio...
Keyword[public] identifier[Param] identifier[value] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[values] operator[SEP] { identifier[StringBuilder] identifier[valuesSb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[for]...
@Override public void handleSilentException(@Nullable Throwable e) { new ReportBuilder() .exception(e) .customData(customData) .sendSilently() .build(reportExecutor); }
class class_name[name] begin[{] method[handleSilentException, return_type[void], modifier[public], parameter[e]] begin[{] ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInvocation(arguments=[Memb...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[handleSilentException] operator[SEP] annotation[@] identifier[Nullable] identifier[Throwable] identifier[e] operator[SEP] { Keyword[new] identifier[ReportBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[exception] operator[S...
public Observable<Page<PrivateZoneInner>> listAsync(final Integer top) { return listWithServiceResponseAsync(top) .map(new Func1<ServiceResponse<Page<PrivateZoneInner>>, Page<PrivateZoneInner>>() { @Override public Page<PrivateZoneInner> call(ServiceResponse<Page<Priv...
class class_name[name] begin[{] method[listAsync, return_type[type[Observable]], modifier[public], parameter[top]] begin[{] return[call[.listWithServiceResponseAsync, parameter[member[.top]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[Page] operator[<] identifier[PrivateZoneInner] operator[>] operator[>] identifier[listAsync] operator[SEP] Keyword[final] identifier[Integer] identifier[top] operator[SEP] { Keyword[return] identifier[listWithServiceResponseAsync] operator[SEP] identi...
public final EObject ruleXIfExpression() throws RecognitionException { EObject current = null; Token otherlv_1=null; Token otherlv_2=null; Token otherlv_4=null; Token otherlv_6=null; EObject lv_if_3_0 = null; EObject lv_then_5_0 = null; EObject lv_else_...
class class_name[name] begin[{] method[ruleXIfExpression, return_type[type[EObject]], modifier[final public], parameter[]] begin[{] local_variable[type[EObject], current] local_variable[type[Token], otherlv_1] local_variable[type[Token], otherlv_2] local_variable[type[Token], ot...
Keyword[public] Keyword[final] identifier[EObject] identifier[ruleXIfExpression] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[EObject] identifier[current] operator[=] Other[null] operator[SEP] identifier[Token] identifier[otherlv_1] operator[=] Other[null] operator[SE...
public void unregisterPropertyExclusions( Class target ) { if( target != null ) { Set set = (Set) exclusionMap.get( target ); if( set != null ) { set.clear(); } } }
class class_name[name] begin[{] method[unregisterPropertyExclusions, return_type[void], modifier[public], parameter[target]] begin[{] if[binary_operation[member[.target], !=, literal[null]]] begin[{] local_variable[type[Set], set] if[binary_operation[member[....
Keyword[public] Keyword[void] identifier[unregisterPropertyExclusions] operator[SEP] identifier[Class] identifier[target] operator[SEP] { Keyword[if] operator[SEP] identifier[target] operator[!=] Other[null] operator[SEP] { identifier[Set] identifier[set] operator[=] operator[SEP] identifier[Set] oper...
public void remove(String toRemove) { if (toRemove.contains("*")) { set.clear(); defaultContains = false; } else { if (defaultContains) { set.add(toRemove); } else { set.remove(toRemove); } } }
class class_name[name] begin[{] method[remove, return_type[void], modifier[public], parameter[toRemove]] begin[{] if[call[toRemove.contains, parameter[literal["*"]]]] begin[{] call[set.clear, parameter[]] assign[member[.defaultContains], literal[f...
Keyword[public] Keyword[void] identifier[remove] operator[SEP] identifier[String] identifier[toRemove] operator[SEP] { Keyword[if] operator[SEP] identifier[toRemove] operator[SEP] identifier[contains] operator[SEP] literal[String] operator[SEP] operator[SEP] { identifier[set] operator[SEP] identifier[...
public JsHandlerRegistration addGeometryEditSuspendHandler(final GeometryEditSuspendHandler handler) { org.geomajas.plugin.editing.client.event.GeometryEditSuspendHandler h; h = new org.geomajas.plugin.editing.client.event.GeometryEditSuspendHandler() { public void onGeometryEditSuspend(GeometryEditSuspendEvent...
class class_name[name] begin[{] method[addGeometryEditSuspendHandler, return_type[type[JsHandlerRegistration]], modifier[public], parameter[handler]] begin[{] local_variable[type[org], h] assign[member[.h], ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[], body=[Stateme...
Keyword[public] identifier[JsHandlerRegistration] identifier[addGeometryEditSuspendHandler] operator[SEP] Keyword[final] identifier[GeometryEditSuspendHandler] identifier[handler] operator[SEP] { identifier[org] operator[SEP] identifier[geomajas] operator[SEP] identifier[plugin] operator[SEP] identifier[editing]...
public void setPropertyFile(String... thePropertyFile) { Validate.notNull(thePropertyFile, "Property file can not be null"); myPropertyFile = Arrays.asList(thePropertyFile); }
class class_name[name] begin[{] method[setPropertyFile, return_type[void], modifier[public], parameter[thePropertyFile]] begin[{] call[Validate.notNull, parameter[member[.thePropertyFile], literal["Property file can not be null"]]] assign[member[.myPropertyFile], call[Arrays.asL...
Keyword[public] Keyword[void] identifier[setPropertyFile] operator[SEP] identifier[String] operator[...] identifier[thePropertyFile] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[thePropertyFile] , literal[String] operator[SEP] operator[SEP] identifier[myPropert...
public static RequestBody createRequestBody(final MediaType contentType, final InputStream stream) { return new RequestBody() { @Override public MediaType contentType() { return contentType; } @Override public v...
class class_name[name] begin[{] method[createRequestBody, return_type[type[RequestBody]], modifier[public static], parameter[contentType, stream]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[ReturnStatement(expression=M...
Keyword[public] Keyword[static] identifier[RequestBody] identifier[createRequestBody] operator[SEP] Keyword[final] identifier[MediaType] identifier[contentType] , Keyword[final] identifier[InputStream] identifier[stream] operator[SEP] { Keyword[return] Keyword[new] identifier[RequestBody] operator[SEP] operator...
private void syncNote(final Annotation note, final boolean overwrite) { if (note.start_time > 0 && (note.start_time < start_time || start_time == 0)) { start_time = note.start_time; } // handle user-accessible stuff if (!overwrite && !changed.get("end_time")) { end_time = note.end_time;...
class class_name[name] begin[{] method[syncNote, return_type[void], modifier[private], parameter[note, overwrite]] begin[{] if[binary_operation[binary_operation[member[note.start_time], >, literal[0]], &&, binary_operation[binary_operation[member[note.start_time], <, member[.start_time]], ||, b...
Keyword[private] Keyword[void] identifier[syncNote] operator[SEP] Keyword[final] identifier[Annotation] identifier[note] , Keyword[final] Keyword[boolean] identifier[overwrite] operator[SEP] { Keyword[if] operator[SEP] identifier[note] operator[SEP] identifier[start_time] operator[>] Other[0] operator[&&] opera...
public String computeTrackSignature(final String title, final SearchableItem artist, final int duration, final WaveformDetail waveformDetail, final BeatGrid beatGrid) { final String safeTitle = (title == null)? "" : title; final String artistName = (artist == null...
class class_name[name] begin[{] method[computeTrackSignature, return_type[type[String]], modifier[public], parameter[title, artist, duration, waveformDetail, beatGrid]] begin[{] local_variable[type[String], safeTitle] local_variable[type[String], artistName] TryStatement(block=[LocalVar...
Keyword[public] identifier[String] identifier[computeTrackSignature] operator[SEP] Keyword[final] identifier[String] identifier[title] , Keyword[final] identifier[SearchableItem] identifier[artist] , Keyword[final] Keyword[int] identifier[duration] , Keyword[final] identifier[WaveformDetail] identifier[waveformDetai...
public static Map<String, ImageArchiveManifestEntry> findEntriesByRepoTagPattern(String repoTagPattern, ImageArchiveManifest manifest) throws PatternSyntaxException { return findEntriesByRepoTagPattern(repoTagPattern == null ? null : Pattern.compile(repoTagPattern), manifest); }
class class_name[name] begin[{] method[findEntriesByRepoTagPattern, return_type[type[Map]], modifier[public static], parameter[repoTagPattern, manifest]] begin[{] return[call[.findEntriesByRepoTagPattern, parameter[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=repoTagPatte...
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[ImageArchiveManifestEntry] operator[>] identifier[findEntriesByRepoTagPattern] operator[SEP] identifier[String] identifier[repoTagPattern] , identifier[ImageArchiveManifest] identifier[manifest] operator[SEP] Keyword[throws] i...
private Feature[] parseForFeature(String jsonFile) { try (Reader reader = new InputStreamReader(new FileInputStream(jsonFile), StandardCharsets.UTF_8)) { Feature[] features = mapper.readValue(reader, Feature[].class); if (ArrayUtils.isEmpty(features)) { LOG.log(Level.INFO...
class class_name[name] begin[{] method[parseForFeature, return_type[type[Feature]], modifier[private], parameter[jsonFile]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member...
Keyword[private] identifier[Feature] operator[SEP] operator[SEP] identifier[parseForFeature] operator[SEP] identifier[String] identifier[jsonFile] operator[SEP] { Keyword[try] operator[SEP] identifier[Reader] identifier[reader] operator[=] Keyword[new] identifier[InputStreamReader] operator[SEP] Keyword[new] ide...
void clearPrivileges() { roles.clear(); directRightsMap.clear(); grantedRightsMap.clear(); fullRightsMap.clear(); isAdmin = false; }
class class_name[name] begin[{] method[clearPrivileges, return_type[void], modifier[default], parameter[]] begin[{] call[roles.clear, parameter[]] call[directRightsMap.clear, parameter[]] call[grantedRightsMap.clear, parameter[]] call[fullRightsMa...
Keyword[void] identifier[clearPrivileges] operator[SEP] operator[SEP] { identifier[roles] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[directRightsMap] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[grantedRightsMap] operator[SEP] iden...
public ParameterTool applyTo(ParameterTool parameterTool) throws RequiredParametersException { List<String> missingArguments = new LinkedList<>(); HashMap<String, String> newParameters = new HashMap<>(parameterTool.toMap()); for (Option o : data.values()) { if (newParameters.containsKey(o.getName())) { i...
class class_name[name] begin[{] method[applyTo, return_type[type[ParameterTool]], modifier[public], parameter[parameterTool]] begin[{] local_variable[type[List], missingArguments] local_variable[type[HashMap], newParameters] ForStatement(body=BlockStatement(label=None, statements=[IfSta...
Keyword[public] identifier[ParameterTool] identifier[applyTo] operator[SEP] identifier[ParameterTool] identifier[parameterTool] operator[SEP] Keyword[throws] identifier[RequiredParametersException] { identifier[List] operator[<] identifier[String] operator[>] identifier[missingArguments] operator[=] Keyword[new]...
protected boolean dispatchEvent (DEvent event, DObject target) { boolean notify = true; // assume always notify try { // do any internal management necessary based on this event EventHelper helper = _helpers.get(event.getClass()); if (helper != null) { ...
class class_name[name] begin[{] method[dispatchEvent, return_type[type[boolean]], modifier[protected], parameter[event, target]] begin[{] local_variable[type[boolean], notify] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer...
Keyword[protected] Keyword[boolean] identifier[dispatchEvent] operator[SEP] identifier[DEvent] identifier[event] , identifier[DObject] identifier[target] operator[SEP] { Keyword[boolean] identifier[notify] operator[=] literal[boolean] operator[SEP] Keyword[try] { identifier[EventHelper] identifier[he...
public void setSubFlowsData(Map<String, Long> runningPlansIds, Map<String, Long> beginStepsIds) { contextMap.put(RUNNING_PLANS_MAP, (Serializable) runningPlansIds); contextMap.put(BEGIN_STEPS_MAP, (Serializable) beginStepsIds); }
class class_name[name] begin[{] method[setSubFlowsData, return_type[void], modifier[public], parameter[runningPlansIds, beginStepsIds]] begin[{] call[contextMap.put, parameter[member[.RUNNING_PLANS_MAP], Cast(expression=MemberReference(member=runningPlansIds, postfix_operators=[], prefix_operat...
Keyword[public] Keyword[void] identifier[setSubFlowsData] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Long] operator[>] identifier[runningPlansIds] , identifier[Map] operator[<] identifier[String] , identifier[Long] operator[>] identifier[beginStepsIds] operator[SEP] { identifier...
protected void finalizeSamlResponse(final HttpServletRequest request, final HttpServletResponse response, final String serviceId, final Response samlResponse) throws Exception { if (request != null && response != null) { LOGGER.debug("Starting to encode SAML r...
class class_name[name] begin[{] method[finalizeSamlResponse, return_type[void], modifier[protected], parameter[request, response, serviceId, samlResponse]] begin[{] if[binary_operation[binary_operation[member[.request], !=, literal[null]], &&, binary_operation[member[.response], !=, literal[nul...
Keyword[protected] Keyword[void] identifier[finalizeSamlResponse] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[request] , Keyword[final] identifier[HttpServletResponse] identifier[response] , Keyword[final] identifier[String] identifier[serviceId] , Keyword[final] identifier[Response] ident...
public static ActivityStreamMessage from(final Event event) { final ActivityStreamMessage msg = new ActivityStreamMessage(); msg.id = event.getIdentifier().getIRIString(); msg.type = event.getTypes().stream().map(IRI::getIRIString) .map(type -> type.startsWith(AS.URI) ? type.substr...
class class_name[name] begin[{] method[from, return_type[type[ActivityStreamMessage]], modifier[public static], parameter[event]] begin[{] local_variable[type[ActivityStreamMessage], msg] assign[member[msg.id], call[event.getIdentifier, parameter[]]] assign[member[msg.ty...
Keyword[public] Keyword[static] identifier[ActivityStreamMessage] identifier[from] operator[SEP] Keyword[final] identifier[Event] identifier[event] operator[SEP] { Keyword[final] identifier[ActivityStreamMessage] identifier[msg] operator[=] Keyword[new] identifier[ActivityStreamMessage] operator[SEP] operator[SE...
public static ns_upgrade[] upgrade(nitro_service client, ns_upgrade[] resources) throws Exception { if(resources == null) throw new Exception("Null resource array"); if(resources.length == 1) return ((ns_upgrade[]) resources[0].perform_operation(client, "upgrade")); return ((ns_upgrade[])...
class class_name[name] begin[{] method[upgrade, return_type[type[ns_upgrade]], modifier[public static], parameter[client, resources]] begin[{] if[binary_operation[member[.resources], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pre...
Keyword[public] Keyword[static] identifier[ns_upgrade] operator[SEP] operator[SEP] identifier[upgrade] operator[SEP] identifier[nitro_service] identifier[client] , identifier[ns_upgrade] operator[SEP] operator[SEP] identifier[resources] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[if] operator[...
public String wherePKColumns(Class<?> entityClass, boolean useVersion) { StringBuilder sql = new StringBuilder(); sql.append("<where>"); //获取全部列 Set<EntityColumn> columnSet = EntityHelper.getPKColumns(entityClass); //当某个列有主键策略时,不需要考虑他的属性是否为空,因为如果为空,一定会根据主键策略给他生成一个值 for (E...
class class_name[name] begin[{] method[wherePKColumns, return_type[type[String]], modifier[public], parameter[entityClass, useVersion]] begin[{] local_variable[type[StringBuilder], sql] call[sql.append, parameter[literal["<where>"]]] local_variable[type[Set], columnSet] ...
Keyword[public] identifier[String] identifier[wherePKColumns] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[entityClass] , Keyword[boolean] identifier[useVersion] operator[SEP] { identifier[StringBuilder] identifier[sql] operator[=] Keyword[new] identifier[StringBuilder] operato...
public static IntSet differenceView (IntSet set1, IntSet set2) { return andView(set1, notView(set2)); }
class class_name[name] begin[{] method[differenceView, return_type[type[IntSet]], modifier[public static], parameter[set1, set2]] begin[{] return[call[.andView, parameter[member[.set1], call[.notView, parameter[member[.set2]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[IntSet] identifier[differenceView] operator[SEP] identifier[IntSet] identifier[set1] , identifier[IntSet] identifier[set2] operator[SEP] { Keyword[return] identifier[andView] operator[SEP] identifier[set1] , identifier[notView] operator[SEP] identifier[set2] operator[...
public static String encodeIncludingSpecialCharacters(String toEncode) { String encoded = urlencode(toEncode, "Unable to urlencode " + toEncode); for (Map.Entry<String, String> s : specialChars.entrySet()) { encoded = encoded.replace(s.getKey(), s.getValue()); } return encode...
class class_name[name] begin[{] method[encodeIncludingSpecialCharacters, return_type[type[String]], modifier[public static], parameter[toEncode]] begin[{] local_variable[type[String], encoded] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(exp...
Keyword[public] Keyword[static] identifier[String] identifier[encodeIncludingSpecialCharacters] operator[SEP] identifier[String] identifier[toEncode] operator[SEP] { identifier[String] identifier[encoded] operator[=] identifier[urlencode] operator[SEP] identifier[toEncode] , literal[String] operator[+] identifi...
private void extractAndAssignValue(String line, int lineNumber, ColumnInfo<Object> columnInfo, String columnStr, int linePos, Object target, ParseError parseError) { Object value = extractValue(line, lineNumber, columnInfo, columnStr, linePos, target, parseError); if (value == null) { assignParseErrorFields(p...
class class_name[name] begin[{] method[extractAndAssignValue, return_type[void], modifier[private], parameter[line, lineNumber, columnInfo, columnStr, linePos, target, parseError]] begin[{] local_variable[type[Object], value] if[binary_operation[member[.value], ==, literal[null]]] begin...
Keyword[private] Keyword[void] identifier[extractAndAssignValue] operator[SEP] identifier[String] identifier[line] , Keyword[int] identifier[lineNumber] , identifier[ColumnInfo] operator[<] identifier[Object] operator[>] identifier[columnInfo] , identifier[String] identifier[columnStr] , Keyword[int] identifier[lin...
public I_CmsFormatterBean getDefaultFormatter(final String containerTypes, final int containerWidth) { Optional<I_CmsFormatterBean> result = Iterables.tryFind( m_allFormatters, new MatchesTypeOrWidth(containerTypes, containerWidth)); return result.orNull(); }
class class_name[name] begin[{] method[getDefaultFormatter, return_type[type[I_CmsFormatterBean]], modifier[public], parameter[containerTypes, containerWidth]] begin[{] local_variable[type[Optional], result] return[call[result.orNull, parameter[]]] end[}] END[}]
Keyword[public] identifier[I_CmsFormatterBean] identifier[getDefaultFormatter] operator[SEP] Keyword[final] identifier[String] identifier[containerTypes] , Keyword[final] Keyword[int] identifier[containerWidth] operator[SEP] { identifier[Optional] operator[<] identifier[I_CmsFormatterBean] operator[>] identifie...
@XmlTransient public boolean isFormType(String formTypeParam) { if ((formTypeParam == null || formTypeParam.trim().isEmpty()) || (this.getFormType() == null || this.getFormType().trim().isEmpty())) { return false; } return formTypeParam.toLowerCase().equals(getFormType().toLowerCase()); }
class class_name[name] begin[{] method[isFormType, return_type[type[boolean]], modifier[public], parameter[formTypeParam]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.formTypeParam], ==, literal[null]], ||, call[formTypeParam.trim, parameter[]]], ||, binary_operation[...
annotation[@] identifier[XmlTransient] Keyword[public] Keyword[boolean] identifier[isFormType] operator[SEP] identifier[String] identifier[formTypeParam] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[formTypeParam] operator[==] Other[null] operator[||] identifier[formTypeParam] operator[SEP]...
public void processLinkListRelationshipInjections(final SpecNodeWithRelationships specNode, final Document doc, final boolean useFixedUrls) { processLinkListRelationshipInjections(specNode, doc, doc.getDocumentElement(), useFixedUrls); }
class class_name[name] begin[{] method[processLinkListRelationshipInjections, return_type[void], modifier[public], parameter[specNode, doc, useFixedUrls]] begin[{] call[.processLinkListRelationshipInjections, parameter[member[.specNode], member[.doc], call[doc.getDocumentElement, parameter[]], ...
Keyword[public] Keyword[void] identifier[processLinkListRelationshipInjections] operator[SEP] Keyword[final] identifier[SpecNodeWithRelationships] identifier[specNode] , Keyword[final] identifier[Document] identifier[doc] , Keyword[final] Keyword[boolean] identifier[useFixedUrls] operator[SEP] { identifier[pro...
public static Drawable getSelectableItemBackground(Context ctx){ int[] attrs = new int[] { R.attr.selectableItemBackground /* index 0 */}; TypedArray ta = ctx.obtainStyledAttributes(attrs); Drawable drawableFromTheme = ta.getDrawable(0 /* index */); ta.recycle(); return drawableF...
class class_name[name] begin[{] method[getSelectableItemBackground, return_type[type[Drawable]], modifier[public static], parameter[ctx]] begin[{] local_variable[type[int], attrs] local_variable[type[TypedArray], ta] local_variable[type[Drawable], drawableFromTheme] call...
Keyword[public] Keyword[static] identifier[Drawable] identifier[getSelectableItemBackground] operator[SEP] identifier[Context] identifier[ctx] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[attrs] operator[=] Keyword[new] Keyword[int] operator[SEP] operator[SEP] { identifier[R] op...
public static OutputStream get(IO.Writable io) { if (io instanceof IOFromOutputStream) return ((IOFromOutputStream)io).getOutputStream(); if (io instanceof IO.WritableByteStream) return new ByteStream((IO.WritableByteStream)io); return new Writable(io); }
class class_name[name] begin[{] method[get, return_type[type[OutputStream]], modifier[public static], parameter[io]] begin[{] if[binary_operation[member[.io], instanceof, type[IOFromOutputStream]]] begin[{] return[Cast(expression=MemberReference(member=io, postfix_operators=[], prefix_operators...
Keyword[public] Keyword[static] identifier[OutputStream] identifier[get] operator[SEP] identifier[IO] operator[SEP] identifier[Writable] identifier[io] operator[SEP] { Keyword[if] operator[SEP] identifier[io] Keyword[instanceof] identifier[IOFromOutputStream] operator[SEP] Keyword[return] operator[SEP] operator[...
Index getIndexForColumn(int col) { int i = bestIndexForColumn[col]; return i == -1 ? null : this.indexList[i]; }
class class_name[name] begin[{] method[getIndexForColumn, return_type[type[Index]], modifier[default], parameter[col]] begin[{] local_variable[type[int], i] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier...
identifier[Index] identifier[getIndexForColumn] operator[SEP] Keyword[int] identifier[col] operator[SEP] { Keyword[int] identifier[i] operator[=] identifier[bestIndexForColumn] operator[SEP] identifier[col] operator[SEP] operator[SEP] Keyword[return] identifier[i] operator[==] operator[-] Other[1] operator[?] Ot...
public static BigDecimal bernoulli(int n, MathContext mathContext) { if (n < 0) { throw new ArithmeticException("Illegal bernoulli(n) for n < 0: n = " + n); } BigRational b = BigRational.bernoulli(n); return b.toBigDecimal(mathContext); }
class class_name[name] begin[{] method[bernoulli, return_type[type[BigDecimal]], modifier[public static], parameter[n, mathContext]] begin[{] if[binary_operation[member[.n], <, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(p...
Keyword[public] Keyword[static] identifier[BigDecimal] identifier[bernoulli] operator[SEP] Keyword[int] identifier[n] , identifier[MathContext] identifier[mathContext] operator[SEP] { Keyword[if] operator[SEP] identifier[n] operator[<] Other[0] operator[SEP] { Keyword[throw] Keyword[new] identifier[A...
public void registerAnnotation(final Class<? extends Annotation> annotationType) { final ActionConfiguredBy actionConfiguredBy = annotationType.getAnnotation(ActionConfiguredBy.class); if (actionConfiguredBy == null) { throw new MadvocException("Action annotation is missing it's " + ActionConfiguredBy.class.get...
class class_name[name] begin[{] method[registerAnnotation, return_type[void], modifier[public], parameter[annotationType]] begin[{] local_variable[type[ActionConfiguredBy], actionConfiguredBy] if[binary_operation[member[.actionConfiguredBy], ==, literal[null]]] begin[{] Thro...
Keyword[public] Keyword[void] identifier[registerAnnotation] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Annotation] operator[>] identifier[annotationType] operator[SEP] { Keyword[final] identifier[ActionConfiguredBy] identifier[actionConfiguredBy] operator[...
public void setMemberName(String newMemberName) { String oldMemberName = memberName; memberName = newMemberName; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, XtypePackage.XIMPORT_DECLARATION__MEMBER_NAME, oldMemberName, memberName)); }
class class_name[name] begin[{] method[setMemberName, return_type[void], modifier[public], parameter[newMemberName]] begin[{] local_variable[type[String], oldMemberName] assign[member[.memberName], member[.newMemberName]] if[call[.eNotificationRequired, parameter[]]] beg...
Keyword[public] Keyword[void] identifier[setMemberName] operator[SEP] identifier[String] identifier[newMemberName] operator[SEP] { identifier[String] identifier[oldMemberName] operator[=] identifier[memberName] operator[SEP] identifier[memberName] operator[=] identifier[newMemberName] operator[SEP] Keyword[if] o...
public Observable<SourceRepositoryPropertiesInner> listSourceRepositoryPropertiesAsync(String resourceGroupName, String registryName, String buildTaskName) { return listSourceRepositoryPropertiesWithServiceResponseAsync(resourceGroupName, registryName, buildTaskName).map(new Func1<ServiceResponse<SourceReposito...
class class_name[name] begin[{] method[listSourceRepositoryPropertiesAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, registryName, buildTaskName]] begin[{] return[call[.listSourceRepositoryPropertiesWithServiceResponseAsync, parameter[member[.resourceGroupName], mem...
Keyword[public] identifier[Observable] operator[<] identifier[SourceRepositoryPropertiesInner] operator[>] identifier[listSourceRepositoryPropertiesAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[registryName] , identifier[String] identifier[buildTaskName] operato...
public void setCompactMode(int mode) { switch (mode) { case COMPACT_MODE_FIRST_COLUMN: m_compacteModeStyle.setValue(formCss().firstColumn()); break; case COMPACT_MODE_SECOND_COLUMN: m_compacteModeStyle.setValue(formCss().secondColum...
class class_name[name] begin[{] method[setCompactMode, return_type[void], modifier[public], parameter[mode]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['COMPACT_MODE_FIRST_COLUMN'], statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], memb...
Keyword[public] Keyword[void] identifier[setCompactMode] operator[SEP] Keyword[int] identifier[mode] operator[SEP] { Keyword[switch] operator[SEP] identifier[mode] operator[SEP] { Keyword[case] identifier[COMPACT_MODE_FIRST_COLUMN] operator[:] identifier[m_compacteModeStyle] operator[SEP] identifier[...
public double f(double[] x) throws JMetalException { double result = 0.0; result = Benchmark.hybrid_composition(x, theJob); result += mBias; // NOISE // Comment the next line to remove the noise result *= (1.0 + 0.2 * Math.abs(Benchmark.random.nextGaussian())); return (result); }
class class_name[name] begin[{] method[f, return_type[type[double]], modifier[public], parameter[x]] begin[{] local_variable[type[double], result] assign[member[.result], call[Benchmark.hybrid_composition, parameter[member[.x], member[.theJob]]]] assign[member[.result], ...
Keyword[public] Keyword[double] identifier[f] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[x] operator[SEP] Keyword[throws] identifier[JMetalException] { Keyword[double] identifier[result] operator[=] literal[Float] operator[SEP] identifier[result] operator[=] identifier[Benchmark] operat...
public static ArrayModifiableDBIDs[] partitionsFromIntegerLabels(DBIDs ids, IntegerDataStore assignment, int k) { int[] sizes = new int[k]; for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) { sizes[assignment.intValue(iter)] += 1; } ArrayModifiableDBIDs[] clusters = new ArrayModifiable...
class class_name[name] begin[{] method[partitionsFromIntegerLabels, return_type[type[ArrayModifiableDBIDs]], modifier[public static], parameter[ids, assignment, k]] begin[{] local_variable[type[int], sizes] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=...
Keyword[public] Keyword[static] identifier[ArrayModifiableDBIDs] operator[SEP] operator[SEP] identifier[partitionsFromIntegerLabels] operator[SEP] identifier[DBIDs] identifier[ids] , identifier[IntegerDataStore] identifier[assignment] , Keyword[int] identifier[k] operator[SEP] { Keyword[int] operator[SEP] oper...
static final void moveAndResize(final Memory srcMem, final int preambleLongs, final int srcLgArrLongs, final WritableMemory dstMem, final int dstLgArrLongs, final long thetaLong) { //Note: This copies the Memory data onto the heap and then at the end copies the result // back to Memory. Even if we tried t...
class class_name[name] begin[{] method[moveAndResize, return_type[void], modifier[final static], parameter[srcMem, preambleLongs, srcLgArrLongs, dstMem, dstLgArrLongs, thetaLong]] begin[{] local_variable[type[int], preBytes] call[srcMem.copyTo, parameter[literal[0], member[.dstMem], lit...
Keyword[static] Keyword[final] Keyword[void] identifier[moveAndResize] operator[SEP] Keyword[final] identifier[Memory] identifier[srcMem] , Keyword[final] Keyword[int] identifier[preambleLongs] , Keyword[final] Keyword[int] identifier[srcLgArrLongs] , Keyword[final] identifier[WritableMemory] identifier[dstMem] , K...
public void updateButtonVisibility( boolean hasEditButton, boolean hasAddButton, boolean hasRemoveButton, boolean hasSortButtons) { if (hasEditButton) { m_editButton.getElement().getStyle().clearDisplay(); } else { m_editButton.getElement().getSty...
class class_name[name] begin[{] method[updateButtonVisibility, return_type[void], modifier[public], parameter[hasEditButton, hasAddButton, hasRemoveButton, hasSortButtons]] begin[{] if[member[.hasEditButton]] begin[{] call[m_editButton.getElement, parameter[]] el...
Keyword[public] Keyword[void] identifier[updateButtonVisibility] operator[SEP] Keyword[boolean] identifier[hasEditButton] , Keyword[boolean] identifier[hasAddButton] , Keyword[boolean] identifier[hasRemoveButton] , Keyword[boolean] identifier[hasSortButtons] operator[SEP] { Keyword[if] operator[SEP] identifie...
public PlanetResponse getUniversePlanetsPlanetId(Integer planetId, String datasource, String ifNoneMatch) throws ApiException { ApiResponse<PlanetResponse> resp = getUniversePlanetsPlanetIdWithHttpInfo(planetId, datasource, ifNoneMatch); return resp.getData(); }
class class_name[name] begin[{] method[getUniversePlanetsPlanetId, return_type[type[PlanetResponse]], modifier[public], parameter[planetId, datasource, ifNoneMatch]] begin[{] local_variable[type[ApiResponse], resp] return[call[resp.getData, parameter[]]] end[}] END[}]
Keyword[public] identifier[PlanetResponse] identifier[getUniversePlanetsPlanetId] operator[SEP] identifier[Integer] identifier[planetId] , identifier[String] identifier[datasource] , identifier[String] identifier[ifNoneMatch] operator[SEP] Keyword[throws] identifier[ApiException] { identifier[ApiResponse] oper...
public <V> V runInTransaction( Callable<V> operation, int retryCountOnLockTimeout, String... keysToLock ) { // Start a transaction ... Transactions txns = repoEnv.getTransactions(); int retryCount = retryCountOnLockTimeout; try { Transactions.Transaction txn = txns.begin(); ...
class class_name[name] begin[{] method[runInTransaction, return_type[type[V]], modifier[public], parameter[operation, retryCountOnLockTimeout, keysToLock]] begin[{] local_variable[type[Transactions], txns] local_variable[type[int], retryCount] TryStatement(block=[LocalVariableDeclaratio...
Keyword[public] operator[<] identifier[V] operator[>] identifier[V] identifier[runInTransaction] operator[SEP] identifier[Callable] operator[<] identifier[V] operator[>] identifier[operation] , Keyword[int] identifier[retryCountOnLockTimeout] , identifier[String] operator[...] identifier[keysToLock] operator[SEP] { ...
@java.lang.Deprecated public java.util.Map<java.lang.String, java.lang.String> getEnvVariables() { return getEnvVariablesMap(); }
class class_name[name] begin[{] method[getEnvVariables, return_type[type[java]], modifier[public], parameter[]] begin[{] return[call[.getEnvVariablesMap, parameter[]]] end[}] END[}]
annotation[@] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[Deprecated] Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] , identifier[java] operator[SEP] ...
public Observable<WebhookInner> updateAsync(String resourceGroupName, String automationAccountName, String webhookName, WebhookUpdateParameters parameters) { return updateWithServiceResponseAsync(resourceGroupName, automationAccountName, webhookName, parameters).map(new Func1<ServiceResponse<WebhookInner>, Webh...
class class_name[name] begin[{] method[updateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, automationAccountName, webhookName, parameters]] begin[{] return[call[.updateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.automationAccountName], ...
Keyword[public] identifier[Observable] operator[<] identifier[WebhookInner] operator[>] identifier[updateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[automationAccountName] , identifier[String] identifier[webhookName] , identifier[WebhookUpdateParameters] iden...
public JsJmsObjectMessage createJmsObjectMessage() throws MessageCreateFailedException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "createJmsObjectMessage"); JsJmsObjectMessage msg = null; try { msg = new JsJmsObjectMessageImpl(MfpConstants.CONSTRUCTOR_NO_OP); ...
class class_name[name] begin[{] method[createJmsObjectMessage, return_type[type[JsJmsObjectMessage]], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.ent...
Keyword[public] identifier[JsJmsObjectMessage] identifier[createJmsObjectMessage] operator[SEP] operator[SEP] Keyword[throws] identifier[MessageCreateFailedException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] iden...
public void init(Properties properties) { super.init(properties); if (client == null) client = new HttpClient(); String strBaseURL = properties.getProperty(BASE_URL_PARAM); if (strBaseURL == null) { strBaseURL = "http://localhost/uploads/"; properties.setProperty(BASE_URL_PARAM, strBaseURL); } }
class class_name[name] begin[{] method[init, return_type[void], modifier[public], parameter[properties]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=properties, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=init, postfix_operators=[], prefix_...
Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[Properties] identifier[properties] operator[SEP] { Keyword[super] operator[SEP] identifier[init] operator[SEP] identifier[properties] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[client] operator[==] Other[null] operator[...
public void setDirectlyRelevantTypeQualifiers(MethodDescriptor methodDescriptor, Collection<TypeQualifierValue<?>> qualifiers) { methodToDirectlyRelevantQualifiersMap.put(methodDescriptor, qualifiers); allKnownQualifiers.addAll(qualifiers); }
class class_name[name] begin[{] method[setDirectlyRelevantTypeQualifiers, return_type[void], modifier[public], parameter[methodDescriptor, qualifiers]] begin[{] call[methodToDirectlyRelevantQualifiersMap.put, parameter[member[.methodDescriptor], member[.qualifiers]]] call[allKno...
Keyword[public] Keyword[void] identifier[setDirectlyRelevantTypeQualifiers] operator[SEP] identifier[MethodDescriptor] identifier[methodDescriptor] , identifier[Collection] operator[<] identifier[TypeQualifierValue] operator[<] operator[?] operator[>] operator[>] identifier[qualifiers] operator[SEP] { identifie...
@Override public synchronized void close(TaskAttemptContext context) throws IOException { try { this.officeWriter.close(); } finally { if (this.out!=null) { this.out.close(); } if (this.currentReader!=null) { this.currentReader.close(); } } }
class class_name[name] begin[{] method[close, return_type[void], modifier[synchronized public], parameter[context]] begin[{] TryStatement(block=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=officeWriter, postfix_operato...
annotation[@] identifier[Override] Keyword[public] Keyword[synchronized] Keyword[void] identifier[close] operator[SEP] identifier[TaskAttemptContext] identifier[context] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { Keyword[this] operator[SEP] identifier[officeWriter] operator...
@Override protected void ignoreDuplicatedChangeItemRequests() { if (getItems() != null) { final List<RESTAssignedPropertyTagCollectionItemV1> items = new ArrayList<RESTAssignedPropertyTagCollectionItemV1>(getItems()); // on the second loop, remove any items that are marked for both ...
class class_name[name] begin[{] method[ignoreDuplicatedChangeItemRequests, return_type[void], modifier[protected], parameter[]] begin[{] if[binary_operation[call[.getItems, parameter[]], !=, literal[null]]] begin[{] local_variable[type[List], items] ForStatement(body=Blo...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[ignoreDuplicatedChangeItemRequests] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[getItems] operator[SEP] operator[SEP] operator[!=] Other[null] operator[SEP] { Keyword[final] identifier[List] operator[...
public List<Object> removeAll(Object locator) { List<Object> components = new ArrayList<Object>(); if (locator == null) return components; synchronized (_lock) { for (int index = _references.size() - 1; index >= 0; index--) { Reference reference = _references.get(index); if (reference.match(locato...
class class_name[name] begin[{] method[removeAll, return_type[type[List]], modifier[public], parameter[locator]] begin[{] local_variable[type[List], components] if[binary_operation[member[.locator], ==, literal[null]]] begin[{] return[member[.components]] else begin[{] None ...
Keyword[public] identifier[List] operator[<] identifier[Object] operator[>] identifier[removeAll] operator[SEP] identifier[Object] identifier[locator] operator[SEP] { identifier[List] operator[<] identifier[Object] operator[>] identifier[components] operator[=] Keyword[new] identifier[ArrayList] operator[<] iden...
private void checkLocalSymbolTablePlacement(IonValue nextTopLevelValue) { // Check that nextTopLevelValue is indeed a top-level value assert nextTopLevelValue == nextTopLevelValue.topLevelValue(); SymbolTable nextSymTab = nextTopLevelValue.getSymbolTable(); if (nextSymTab == null) ...
class class_name[name] begin[{] method[checkLocalSymbolTablePlacement, return_type[void], modifier[private], parameter[nextTopLevelValue]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=nextTopLevelValue, postfix_operators=[], prefix_operators=[], qualifier=, selecto...
Keyword[private] Keyword[void] identifier[checkLocalSymbolTablePlacement] operator[SEP] identifier[IonValue] identifier[nextTopLevelValue] operator[SEP] { Keyword[assert] identifier[nextTopLevelValue] operator[==] identifier[nextTopLevelValue] operator[SEP] identifier[topLevelValue] operator[SEP] operator[SEP] o...
public Observable<Boolean> updateStoreForSentError(String conversationId, String tempId, String profileId) { return asObservable(new Executor<Boolean>() { @Override protected void execute(ChatStore store, Emitter<Boolean> emitter) { store.beginTransaction(); ...
class class_name[name] begin[{] method[updateStoreForSentError, return_type[type[Observable]], modifier[public], parameter[conversationId, tempId, profileId]] begin[{] return[call[.asObservable, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Over...
Keyword[public] identifier[Observable] operator[<] identifier[Boolean] operator[>] identifier[updateStoreForSentError] operator[SEP] identifier[String] identifier[conversationId] , identifier[String] identifier[tempId] , identifier[String] identifier[profileId] operator[SEP] { Keyword[return] identifier[asObse...
private Connection getConnection() { URL href = getHref(); checkArgument(href != null, "Invalid URL: " + element.attr("href")); return Jsoup.connect(href.toString()) .method(Method.GET) .cookies(document.getCookies()); }
class class_name[name] begin[{] method[getConnection, return_type[type[Connection]], modifier[private], parameter[]] begin[{] local_variable[type[URL], href] call[.checkArgument, parameter[binary_operation[member[.href], !=, literal[null]], binary_operation[literal["Invalid URL: "], +, ...
Keyword[private] identifier[Connection] identifier[getConnection] operator[SEP] operator[SEP] { identifier[URL] identifier[href] operator[=] identifier[getHref] operator[SEP] operator[SEP] operator[SEP] identifier[checkArgument] operator[SEP] identifier[href] operator[!=] Other[null] , literal[String] operator[...
public Map<TimestampMode, List<String>> getDefaultTimestampModes() { Map<TimestampMode, List<String>> result = new HashMap<TimestampMode, List<String>>(); for (String resourcetype : m_defaultTimestampModes.keySet()) { TimestampMode mode = m_defaultTimestampModes.get(resourcetype); ...
class class_name[name] begin[{] method[getDefaultTimestampModes, return_type[type[Map]], modifier[public], parameter[]] begin[{] local_variable[type[Map], result] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(di...
Keyword[public] identifier[Map] operator[<] identifier[TimestampMode] , identifier[List] operator[<] identifier[String] operator[>] operator[>] identifier[getDefaultTimestampModes] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[TimestampMode] , identifier[List] operator[<] identifier[Stri...
protected void resumeTransaction() { //create local variable - JIT performance improvement final boolean isTraceOn = com.ibm.websphere.ras.TraceComponent.isAnyTracingEnabled(); if (isTraceOn && LoggingUtil.SESSION_LOGGER_WAS.isLoggable(Level.FINE)) { LoggingUtil.SESSION_LOGGER_WAS.en...
class class_name[name] begin[{] method[resumeTransaction, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTraceOn], &&, call[LoggingUtil.SESSION_LOGGER_WAS.isLoggable, parameter[member[Level.FINE]]]]] b...
Keyword[protected] Keyword[void] identifier[resumeTransaction] operator[SEP] operator[SEP] { Keyword[final] Keyword[boolean] identifier[isTraceOn] operator[=] identifier[com] operator[SEP] identifier[ibm] operator[SEP] identifier[websphere] operator[SEP] identifier[ras] operator[SEP] identifier[TraceComponent] o...
protected <OTHER, X extends Comparable<? super X>> Specification<ENTITY> buildReferringEntitySpecification(final RangeFilter<X> filter, final SetAttribute<ENTITY, OTHER> reference, ...
class class_name[name] begin[{] method[buildReferringEntitySpecification, return_type[type[Specification]], modifier[protected], parameter[filter, reference, valueField]] begin[{] return[call[.buildReferringEntitySpecification, parameter[member[.filter], LambdaExpression(body=MethodInvocation(arguments...
Keyword[protected] operator[<] identifier[OTHER] , identifier[X] Keyword[extends] identifier[Comparable] operator[<] operator[?] Keyword[super] identifier[X] operator[>] operator[>] identifier[Specification] operator[<] identifier[ENTITY] operator[>] identifier[buildReferringEntitySpecification] operator[SEP] Keyword[...