code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static void writeObjectToFileOrDie(@Nonnull final Object obj, @Nonnull final String file) throws IOException { writeObjectToFileOrDie(obj, file, LOGGER); }
class class_name[name] begin[{] method[writeObjectToFileOrDie, return_type[void], modifier[public static], parameter[obj, file]] begin[{] call[.writeObjectToFileOrDie, parameter[member[.obj], member[.file], member[.LOGGER]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[writeObjectToFileOrDie] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[Object] identifier[obj] , annotation[@] identifier[Nonnull] Keyword[final] identifier[String] identifier[file] operator[SEP] Keyword[throws] identifier[IOException]...
public static IntArray getInstance(int[] buffer, int offset, int length) { return getInstance(IntBuffer.wrap(buffer, offset, length)); }
class class_name[name] begin[{] method[getInstance, return_type[type[IntArray]], modifier[public static], parameter[buffer, offset, length]] begin[{] return[call[.getInstance, parameter[call[IntBuffer.wrap, parameter[member[.buffer], member[.offset], member[.length]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[IntArray] identifier[getInstance] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[buffer] , Keyword[int] identifier[offset] , Keyword[int] identifier[length] operator[SEP] { Keyword[return] identifier[getInstance] operator[SEP] identifier[IntBuffer] ...
public void select(boolean considerSelectableFlag) { SelectExtension<Item> selectExtension = mFastAdapter.getExtension(SelectExtension.class); if (selectExtension == null) { return; } for (Item item : AdapterUtil.getAllItems(mFastAdapter)) { selectExtension.select...
class class_name[name] begin[{] method[select, return_type[void], modifier[public], parameter[considerSelectableFlag]] begin[{] local_variable[type[SelectExtension], selectExtension] if[binary_operation[member[.selectExtension], ==, literal[null]]] begin[{] return[None] ...
Keyword[public] Keyword[void] identifier[select] operator[SEP] Keyword[boolean] identifier[considerSelectableFlag] operator[SEP] { identifier[SelectExtension] operator[<] identifier[Item] operator[>] identifier[selectExtension] operator[=] identifier[mFastAdapter] operator[SEP] identifier[getExtension] operator[...
public String getValue(CmsUser user) { String value = null; if (isAdditionalInfo()) { value = (String)user.getAdditionalInfo(getAddInfoKey()); } else { try { PropertyUtilsBean propUtils = new PropertyUtilsBean(); value = (String)propUtils....
class class_name[name] begin[{] method[getValue, return_type[type[String]], modifier[public], parameter[user]] begin[{] local_variable[type[String], value] if[call[.isAdditionalInfo, parameter[]]] begin[{] assign[member[.value], Cast(expression=MethodInvocation(a...
Keyword[public] identifier[String] identifier[getValue] operator[SEP] identifier[CmsUser] identifier[user] operator[SEP] { identifier[String] identifier[value] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[isAdditionalInfo] operator[SEP] operator[SEP] operator[SEP] { ident...
@Override public Rule label(final String label) { return new VarFramingMatcher(inner.label(label), variables); }
class class_name[name] begin[{] method[label, return_type[type[Rule]], modifier[public], parameter[label]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=label, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=label, postfix_opera...
annotation[@] identifier[Override] Keyword[public] identifier[Rule] identifier[label] operator[SEP] Keyword[final] identifier[String] identifier[label] operator[SEP] { Keyword[return] Keyword[new] identifier[VarFramingMatcher] operator[SEP] identifier[inner] operator[SEP] identifier[label] operator[SEP] identifi...
public<RET> RET same(SecuritySetter<HttpURLConnection> ss, Retryable<RET> retryable) throws APIException, CadiException, LocatorException { RET ret = null; boolean retry = true; int retries = 0; Rcli<HttpURLConnection> client = retryable.lastClient(); try { do { // if no previous state, get the best ...
class class_name[name] begin[{] method[same, return_type[type[RET]], modifier[public], parameter[ss, retryable]] begin[{] local_variable[type[RET], ret] local_variable[type[boolean], retry] local_variable[type[int], retries] local_variable[type[Rcli], client] TryStatemen...
Keyword[public] operator[<] identifier[RET] operator[>] identifier[RET] identifier[same] operator[SEP] identifier[SecuritySetter] operator[<] identifier[HttpURLConnection] operator[>] identifier[ss] , identifier[Retryable] operator[<] identifier[RET] operator[>] identifier[retryable] operator[SEP] Keyword[throws] iden...
public static <T> Callable<T> transferRequest(Callable<T> callable) { return wrap(callable, transferRequest()); }
class class_name[name] begin[{] method[transferRequest, return_type[type[Callable]], modifier[public static], parameter[callable]] begin[{] return[call[.wrap, parameter[member[.callable], call[.transferRequest, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Callable] operator[<] identifier[T] operator[>] identifier[transferRequest] operator[SEP] identifier[Callable] operator[<] identifier[T] operator[>] identifier[callable] operator[SEP] { Keyword[return] identifier[wrap] operator[SEP]...
private boolean isSP2Bond(IBond bond) { return bond.getAtomCount() == 2 && bond.getBegin().getHybridization() == Hybridization.SP2 && bond.getEnd().getHybridization() == Hybridization.SP2; }
class class_name[name] begin[{] method[isSP2Bond, return_type[type[boolean]], modifier[private], parameter[bond]] begin[{] return[binary_operation[binary_operation[binary_operation[call[bond.getAtomCount, parameter[]], ==, literal[2]], &&, binary_operation[call[bond.getBegin, parameter[]], ==, member[H...
Keyword[private] Keyword[boolean] identifier[isSP2Bond] operator[SEP] identifier[IBond] identifier[bond] operator[SEP] { Keyword[return] identifier[bond] operator[SEP] identifier[getAtomCount] operator[SEP] operator[SEP] operator[==] Other[2] operator[&&] identifier[bond] operator[SEP] identifier[getBegin] opera...
private void unbind(IActionTarget target) { if (targets.remove(target) && targets.isEmpty()) { getEventManager().unsubscribe(eventName, this); } }
class class_name[name] begin[{] method[unbind, return_type[void], modifier[private], parameter[target]] begin[{] if[binary_operation[call[targets.remove, parameter[member[.target]]], &&, call[targets.isEmpty, parameter[]]]] begin[{] call[.getEventManager, parameter[]] ...
Keyword[private] Keyword[void] identifier[unbind] operator[SEP] identifier[IActionTarget] identifier[target] operator[SEP] { Keyword[if] operator[SEP] identifier[targets] operator[SEP] identifier[remove] operator[SEP] identifier[target] operator[SEP] operator[&&] identifier[targets] operator[SEP] identifier[isEm...
public Long getValueLong(String label) { PrimitiveObject o = getPrimitiveObject(VALUE, label, ObjectUtil.LONG, "Long"); if (o == null) { return null; } return (Long) o.getObject(); }
class class_name[name] begin[{] method[getValueLong, return_type[type[Long]], modifier[public], parameter[label]] begin[{] local_variable[type[PrimitiveObject], o] if[binary_operation[member[.o], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None ...
Keyword[public] identifier[Long] identifier[getValueLong] operator[SEP] identifier[String] identifier[label] operator[SEP] { identifier[PrimitiveObject] identifier[o] operator[=] identifier[getPrimitiveObject] operator[SEP] identifier[VALUE] , identifier[label] , identifier[ObjectUtil] operator[SEP] identifier...
public long voicePreview(String wxName, String openId, String voice) { return preview(wxName, openId, "voice", voice); }
class class_name[name] begin[{] method[voicePreview, return_type[type[long]], modifier[public], parameter[wxName, openId, voice]] begin[{] return[call[.preview, parameter[member[.wxName], member[.openId], literal["voice"], member[.voice]]]] end[}] END[}]
Keyword[public] Keyword[long] identifier[voicePreview] operator[SEP] identifier[String] identifier[wxName] , identifier[String] identifier[openId] , identifier[String] identifier[voice] operator[SEP] { Keyword[return] identifier[preview] operator[SEP] identifier[wxName] , identifier[openId] , literal[String]...
public boolean destroyWorkspace( final String name, final WritableSessionCache removeSession ) { if (workspaceNames.contains(name)) { if (configuration.getPredefinedWorkspaceNames().contains(name)) { throw new UnsupportedOperationException(JcrI18n...
class class_name[name] begin[{] method[destroyWorkspace, return_type[type[boolean]], modifier[public], parameter[name, removeSession]] begin[{] if[call[workspaceNames.contains, parameter[member[.name]]]] begin[{] if[call[configuration.getPredefinedWorkspaceNames, paramet...
Keyword[public] Keyword[boolean] identifier[destroyWorkspace] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[WritableSessionCache] identifier[removeSession] operator[SEP] { Keyword[if] operator[SEP] identifier[workspaceNames] operator[SEP] identifier[contains] opera...
@CheckReturnValue public UnsignedLong times(UnsignedLong val) { return fromLongBits(value * checkNotNull(val).value); }
class class_name[name] begin[{] method[times, return_type[type[UnsignedLong]], modifier[public], parameter[val]] begin[{] return[call[.fromLongBits, parameter[binary_operation[member[.value], *, call[.checkNotNull, parameter[member[.val]]]]]]] end[}] END[}]
annotation[@] identifier[CheckReturnValue] Keyword[public] identifier[UnsignedLong] identifier[times] operator[SEP] identifier[UnsignedLong] identifier[val] operator[SEP] { Keyword[return] identifier[fromLongBits] operator[SEP] identifier[value] operator[*] identifier[checkNotNull] operator[SEP] identifier[val] ...
public boolean moveRasterLayerUp(RasterLayer layer) { int position = getLayerPosition(layer); return position >= 0 && moveRasterLayer(layer, position + 1); }
class class_name[name] begin[{] method[moveRasterLayerUp, return_type[type[boolean]], modifier[public], parameter[layer]] begin[{] local_variable[type[int], position] return[binary_operation[binary_operation[member[.position], >=, literal[0]], &&, call[.moveRasterLayer, parameter[member[.layer]...
Keyword[public] Keyword[boolean] identifier[moveRasterLayerUp] operator[SEP] identifier[RasterLayer] identifier[layer] operator[SEP] { Keyword[int] identifier[position] operator[=] identifier[getLayerPosition] operator[SEP] identifier[layer] operator[SEP] operator[SEP] Keyword[return] identifier[position] operat...
public boolean containLogsFrom(LogLevel level) { for (LogEvent log : this) { if (log.getLevel().compareTo(level) <= 0) { return true; } } return false; }
class class_name[name] begin[{] method[containLogsFrom, return_type[type[boolean]], modifier[public], parameter[level]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getLevel, postfix_operators=[], ...
Keyword[public] Keyword[boolean] identifier[containLogsFrom] operator[SEP] identifier[LogLevel] identifier[level] operator[SEP] { Keyword[for] operator[SEP] identifier[LogEvent] identifier[log] operator[:] Keyword[this] operator[SEP] { Keyword[if] operator[SEP] identifier[log] operator[SEP] identifie...
public void paintTabbedPaneTabAreaBackground(SynthContext context, Graphics g, int x, int y, int w, int h, int orientation) { if (orientation == JTabbedPane.LEFT) { AffineTransform transform = new AffineTransform(); transform.scale(-1, 1); transform.rotate(Math.toRadians(90)...
class class_name[name] begin[{] method[paintTabbedPaneTabAreaBackground, return_type[void], modifier[public], parameter[context, g, x, y, w, h, orientation]] begin[{] if[binary_operation[member[.orientation], ==, member[JTabbedPane.LEFT]]] begin[{] local_variable[type[AffineTransfor...
Keyword[public] Keyword[void] identifier[paintTabbedPaneTabAreaBackground] operator[SEP] identifier[SynthContext] identifier[context] , identifier[Graphics] identifier[g] , Keyword[int] identifier[x] , Keyword[int] identifier[y] , Keyword[int] identifier[w] , Keyword[int] identifier[h] , Keyword[int] identifier[o...
@Override public void eSet(int featureID, Object newValue) { switch (featureID) { case AfplibPackage.GSMX__MODE: setMODE((Integer)newValue); return; } super.eSet(featureID, newValue); }
class class_name[name] begin[{] method[eSet, return_type[void], modifier[public], parameter[featureID, newValue]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=GSMX__MODE, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eSet] operator[SEP] Keyword[int] identifier[featureID] , identifier[Object] identifier[newValue] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] oper...
public void sendMessage(String text) throws XMPPException { Message message = new Message(); message.setTo(participant); message.setType(Type.chat); message.setThread(threadID); message.setBody(text); chatManager.sendMessage(this, message); }
class class_name[name] begin[{] method[sendMessage, return_type[void], modifier[public], parameter[text]] begin[{] local_variable[type[Message], message] call[message.setTo, parameter[member[.participant]]] call[message.setType, parameter[member[Type.chat]]] ...
Keyword[public] Keyword[void] identifier[sendMessage] operator[SEP] identifier[String] identifier[text] operator[SEP] Keyword[throws] identifier[XMPPException] { identifier[Message] identifier[message] operator[=] Keyword[new] identifier[Message] operator[SEP] operator[SEP] operator[SEP] identifier[message] oper...
public void remove(Plot p) { shapes.remove(p); JComponent[] tb = p.getToolBar(); if (tb != null) { for (JComponent comp : tb) { toolbar.remove(comp); } } repaint(); }
class class_name[name] begin[{] method[remove, return_type[void], modifier[public], parameter[p]] begin[{] call[shapes.remove, parameter[member[.p]]] local_variable[type[JComponent], tb] if[binary_operation[member[.tb], !=, literal[null]]] begin[{] ForStateme...
Keyword[public] Keyword[void] identifier[remove] operator[SEP] identifier[Plot] identifier[p] operator[SEP] { identifier[shapes] operator[SEP] identifier[remove] operator[SEP] identifier[p] operator[SEP] operator[SEP] identifier[JComponent] operator[SEP] operator[SEP] identifier[tb] operator[=] identifier[p] ope...
public void fill3_1(byte[] bits, ByteBufferWrapper ab) { int bitoff = ab.get2(); int nbytes = ab.get2(); fill_1(bits, ab.position(), nbytes<<3, bitoff); ab.skip(nbytes); // Skip inline bitset }
class class_name[name] begin[{] method[fill3_1, return_type[void], modifier[public], parameter[bits, ab]] begin[{] local_variable[type[int], bitoff] local_variable[type[int], nbytes] call[.fill_1, parameter[member[.bits], call[ab.position, parameter[]], binary_operation[member[....
Keyword[public] Keyword[void] identifier[fill3_1] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bits] , identifier[ByteBufferWrapper] identifier[ab] operator[SEP] { Keyword[int] identifier[bitoff] operator[=] identifier[ab] operator[SEP] identifier[get2] operator[SEP] operator[SEP] operator...
public void addNavigationalInformationForInverseSide() { if ( log.isTraceEnabled() ) { log.trace( "Adding inverse navigational information for entity: " + MessageHelper.infoString( persister, id, persister.getFactory() ) ); } for ( int propertyIndex = 0; propertyIndex < persister.getEntityMetamodel().getPrope...
class class_name[name] begin[{] method[addNavigationalInformationForInverseSide, return_type[void], modifier[public], parameter[]] begin[{] if[call[log.isTraceEnabled, parameter[]]] begin[{] call[log.trace, parameter[binary_operation[literal["Adding inverse navigational ...
Keyword[public] Keyword[void] identifier[addNavigationalInformationForInverseSide] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[log] operator[SEP] identifier[isTraceEnabled] operator[SEP] operator[SEP] operator[SEP] { identifier[log] operator[SEP] identifier[trace] operator[SEP] ...
public static void setHeaderResponseDecorator(final Application application, final String footerFilterName) { application.setHeaderResponseDecorator(new IHeaderResponseDecorator() { @Override public IHeaderResponse decorate(final IHeaderResponse response) { return new JavaScriptFilteredIntoFooterHea...
class class_name[name] begin[{] method[setHeaderResponseDecorator, return_type[void], modifier[public static], parameter[application, footerFilterName]] begin[{] call[application.setHeaderResponseDecorator, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(ele...
Keyword[public] Keyword[static] Keyword[void] identifier[setHeaderResponseDecorator] operator[SEP] Keyword[final] identifier[Application] identifier[application] , Keyword[final] identifier[String] identifier[footerFilterName] operator[SEP] { identifier[application] operator[SEP] identifier[setHeaderResponseDec...
public static ZonalOffset ofTotalSeconds( int total, int fraction ) { if (fraction != 0) { return new ZonalOffset(total, fraction); } else if (total == 0) { return UTC; } else if ((total % (15 * 60)) == 0) { // Viertelstundenintervall Inte...
class class_name[name] begin[{] method[ofTotalSeconds, return_type[type[ZonalOffset]], modifier[public static], parameter[total, fraction]] begin[{] if[binary_operation[member[.fraction], !=, literal[0]]] begin[{] return[ClassCreator(arguments=[MemberReference(member=total, postfix_...
Keyword[public] Keyword[static] identifier[ZonalOffset] identifier[ofTotalSeconds] operator[SEP] Keyword[int] identifier[total] , Keyword[int] identifier[fraction] operator[SEP] { Keyword[if] operator[SEP] identifier[fraction] operator[!=] Other[0] operator[SEP] { Keyword[return] Keyword[new] identif...
final public Selector Primary(boolean negated) throws ParseException { Selector ans; int op = Operator.PLUS; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case 11: case TRUE: case FALSE: case IDENTIFIER: case QUOTED_IDENTIFIER: case INTEGER_LITERAL: case F...
class class_name[name] begin[{] method[Primary, return_type[type[Selector]], modifier[final public], parameter[negated]] begin[{] local_variable[type[Selector], ans] local_variable[type[int], op] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_opera...
Keyword[final] Keyword[public] identifier[Selector] identifier[Primary] operator[SEP] Keyword[boolean] identifier[negated] operator[SEP] Keyword[throws] identifier[ParseException] { identifier[Selector] identifier[ans] operator[SEP] Keyword[int] identifier[op] operator[=] identifier[Operator] operator[SEP] ident...
@Override protected D doDeserialize( String key, JsonDeserializationContext ctx ) { // TODO could probably find a better way to handle the parsing without try/catch // Default configuration for serializing keys is using ISO-8601, we try that one first // in ISO-8601 try { ...
class class_name[name] begin[{] method[doDeserialize, return_type[type[D]], modifier[protected], parameter[key, ctx]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qu...
annotation[@] identifier[Override] Keyword[protected] identifier[D] identifier[doDeserialize] operator[SEP] identifier[String] identifier[key] , identifier[JsonDeserializationContext] identifier[ctx] operator[SEP] { Keyword[try] { Keyword[return] identifier[deserializeDate] operator[SEP] identifier[I...
public CQLSSTableWriter addRow(Map<String, Object> values) throws InvalidRequestException, IOException { int size = boundNames.size(); List<ByteBuffer> rawValues = new ArrayList<>(size); for (int i = 0; i < size; i++) { ColumnSpecification spec = boundNames.get(i); ...
class class_name[name] begin[{] method[addRow, return_type[type[CQLSSTableWriter]], modifier[public], parameter[values]] begin[{] local_variable[type[int], size] local_variable[type[List], rawValues] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annot...
Keyword[public] identifier[CQLSSTableWriter] identifier[addRow] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[values] operator[SEP] Keyword[throws] identifier[InvalidRequestException] , identifier[IOException] { Keyword[int] identifier[size] operator[=...
public Map<String, Object> evaluateRequestTokenResponse(String responseBody) { Map<String, Object> response = new HashMap<String, Object>(); String endpoint = TwitterConstants.TWITTER_ENDPOINT_REQUEST_TOKEN; Map<String, String> responseValues = populateResponseValues(responseBody); Map...
class class_name[name] begin[{] method[evaluateRequestTokenResponse, return_type[type[Map]], modifier[public], parameter[responseBody]] begin[{] local_variable[type[Map], response] local_variable[type[String], endpoint] local_variable[type[Map], responseValues] local_variable[ty...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[evaluateRequestTokenResponse] operator[SEP] identifier[String] identifier[responseBody] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[response]...
public void deleteObject(DeleteObjectRequest request) { checkNotNull(request, "request should not be null."); assertStringNotNullOrEmpty(request.getKey(), "object key should not be null or empty"); this.invokeHttpClient(this.createRequest(request, HttpMethodName.DELETE), BosResponse.class); ...
class class_name[name] begin[{] method[deleteObject, return_type[void], modifier[public], parameter[request]] begin[{] call[.checkNotNull, parameter[member[.request], literal["request should not be null."]]] call[.assertStringNotNullOrEmpty, parameter[call[request.getKey, parame...
Keyword[public] Keyword[void] identifier[deleteObject] operator[SEP] identifier[DeleteObjectRequest] identifier[request] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[request] , literal[String] operator[SEP] operator[SEP] identifier[assertStringNotNullOrEmpty] operator[SEP] identifier[reques...
@JsOverlay public final void addJavaComputed(Function javaMethod, String computedPropertyName, ComputedKind kind) { ComputedOptions computedDefinition = getComputedOptions(computedPropertyName); if (computedDefinition == null) { computedDefinition = new ComputedOptions(); addComputedOptions(...
class class_name[name] begin[{] method[addJavaComputed, return_type[void], modifier[final public], parameter[javaMethod, computedPropertyName, kind]] begin[{] local_variable[type[ComputedOptions], computedDefinition] if[binary_operation[member[.computedDefinition], ==, literal[null]]] b...
annotation[@] identifier[JsOverlay] Keyword[public] Keyword[final] Keyword[void] identifier[addJavaComputed] operator[SEP] identifier[Function] identifier[javaMethod] , identifier[String] identifier[computedPropertyName] , identifier[ComputedKind] identifier[kind] operator[SEP] { identifier[ComputedOptions] id...
private boolean canContinueReading() throws IOException, InterruptedException { //If the reader is not ready, gives it some milliseconds //It is important to do that, because the ready method guarantees that the readline will not be blocking if (!this.reader.ready()) { Thread.sleep(t...
class class_name[name] begin[{] method[canContinueReading, return_type[type[boolean]], modifier[private], parameter[]] begin[{] if[THIS[member[None.reader]call[None.ready, parameter[]]]] begin[{] call[Thread.sleep, parameter[THIS[member[None.waitPause]]]] else be...
Keyword[private] Keyword[boolean] identifier[canContinueReading] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InterruptedException] { Keyword[if] operator[SEP] operator[!] Keyword[this] operator[SEP] identifier[reader] operator[SEP] identifier[ready] operator[SEP] operator[SE...
private void secondWalk(TreeNode v, double m, int level, double levelStart) { // construct the position from the prelim and the level information // The rootLocation affects the way how x and y are changed and in what // direction. double levelChangeSign = getLevelChangeSign(); boolean levelChangeOnYAxis = i...
class class_name[name] begin[{] method[secondWalk, return_type[void], modifier[private], parameter[v, m, level, levelStart]] begin[{] local_variable[type[double], levelChangeSign] local_variable[type[boolean], levelChangeOnYAxis] local_variable[type[double], levelSize] local_var...
Keyword[private] Keyword[void] identifier[secondWalk] operator[SEP] identifier[TreeNode] identifier[v] , Keyword[double] identifier[m] , Keyword[int] identifier[level] , Keyword[double] identifier[levelStart] operator[SEP] { Keyword[double] identifier[levelChangeSign] operator[=] identifier[getLevelChangeSign...
@Override protected Object doExec(Element element, Object scope, String propertyPath, Object... arguments) throws TemplateException { if (!propertyPath.equals(".") && ConverterRegistry.hasType(scope.getClass())) { throw new TemplateException("Operand is property path but scope is not an object."); } Obje...
class class_name[name] begin[{] method[doExec, return_type[type[Object]], modifier[protected], parameter[element, scope, propertyPath, arguments]] begin[{] if[binary_operation[call[propertyPath.equals, parameter[literal["."]]], &&, call[ConverterRegistry.hasType, parameter[call[scope.getClass, ...
annotation[@] identifier[Override] Keyword[protected] identifier[Object] identifier[doExec] operator[SEP] identifier[Element] identifier[element] , identifier[Object] identifier[scope] , identifier[String] identifier[propertyPath] , identifier[Object] operator[...] identifier[arguments] operator[SEP] Keyword[throws]...
@Override public void eSet(int featureID, Object newValue) { switch (featureID) { case AfplibPackage.EXTERNAL_ALGORITHM_RG__DIRCTN: setDIRCTN((Integer)newValue); return; case AfplibPackage.EXTERNAL_ALGORITHM_RG__PADBDRY: setPADBDRY((Integer)newValue); return; case AfplibPackage.EXTERNAL_ALGO...
class class_name[name] begin[{] method[eSet, return_type[void], modifier[public], parameter[featureID, newValue]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=EXTERNAL_ALGORITHM_RG__DIRCTN, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eSet] operator[SEP] Keyword[int] identifier[featureID] , identifier[Object] identifier[newValue] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] oper...
public final ListSessionEntityTypesPagedResponse listSessionEntityTypes(SessionName parent) { ListSessionEntityTypesRequest request = ListSessionEntityTypesRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); return listSessionEntityTypes(request);...
class class_name[name] begin[{] method[listSessionEntityTypes, return_type[type[ListSessionEntityTypesPagedResponse]], modifier[final public], parameter[parent]] begin[{] local_variable[type[ListSessionEntityTypesRequest], request] return[call[.listSessionEntityTypes, parameter[member[.request]...
Keyword[public] Keyword[final] identifier[ListSessionEntityTypesPagedResponse] identifier[listSessionEntityTypes] operator[SEP] identifier[SessionName] identifier[parent] operator[SEP] { identifier[ListSessionEntityTypesRequest] identifier[request] operator[=] identifier[ListSessionEntityTypesRequest] operator[S...
public boolean isClientWindowRenderModeEnabled(FacesContext context) { boolean result = false; Map<Object, Object> attrMap = context.getAttributes(); result = !attrMap.containsKey(PER_USE_CLIENT_WINDOW_URL_QUERY_PARAMETER_DISABLED_KEY); return result; }
class class_name[name] begin[{] method[isClientWindowRenderModeEnabled, return_type[type[boolean]], modifier[public], parameter[context]] begin[{] local_variable[type[boolean], result] local_variable[type[Map], attrMap] assign[member[.result], call[attrMap.containsKey, parameter...
Keyword[public] Keyword[boolean] identifier[isClientWindowRenderModeEnabled] operator[SEP] identifier[FacesContext] identifier[context] operator[SEP] { Keyword[boolean] identifier[result] operator[=] literal[boolean] operator[SEP] identifier[Map] operator[<] identifier[Object] , identifier[Object] operator[>] i...
static Set<DriverEventCode> getEnabledDriverEventCodes(final String enabledLoggerEventCodes) { if (null == enabledLoggerEventCodes || "".equals(enabledLoggerEventCodes)) { return EnumSet.noneOf(DriverEventCode.class); } final Set<DriverEventCode> eventCodeSet = new HashS...
class class_name[name] begin[{] method[getEnabledDriverEventCodes, return_type[type[Set]], modifier[static], parameter[enabledLoggerEventCodes]] begin[{] if[binary_operation[binary_operation[literal[null], ==, member[.enabledLoggerEventCodes]], ||, literal[""]]] begin[{] return[call...
Keyword[static] identifier[Set] operator[<] identifier[DriverEventCode] operator[>] identifier[getEnabledDriverEventCodes] operator[SEP] Keyword[final] identifier[String] identifier[enabledLoggerEventCodes] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[enabledLoggerEventCodes] ope...
public static JPanel makeButtonBox (Justification justification, Component... buttons) { JPanel box = new JPanel(new HGroupLayout(NONE, justification)); for (Component button : buttons) { box.add(button); box.setOpaque(false); } return box; }
class class_name[name] begin[{] method[makeButtonBox, return_type[type[JPanel]], modifier[public static], parameter[justification, buttons]] begin[{] local_variable[type[JPanel], box] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(argume...
Keyword[public] Keyword[static] identifier[JPanel] identifier[makeButtonBox] operator[SEP] identifier[Justification] identifier[justification] , identifier[Component] operator[...] identifier[buttons] operator[SEP] { identifier[JPanel] identifier[box] operator[=] Keyword[new] identifier[JPanel] operator[SEP] Ke...
public Response invokeGet(String resourcePath, MultivaluedMap<String, String> params) { logger.debug("GET {}, params: {}", getFullPath(resourcePath), params); return invokeSignedRequest(getApiClient(), accessKey, key(!JWT_PATH.equals(resourcePath)), GET, getEndpoint(), getFullPath(resourcePath), null, params, n...
class class_name[name] begin[{] method[invokeGet, return_type[type[Response]], modifier[public], parameter[resourcePath, params]] begin[{] call[logger.debug, parameter[literal["GET {}, params: {}"], call[.getFullPath, parameter[member[.resourcePath]]], member[.params]]] return[call[.inv...
Keyword[public] identifier[Response] identifier[invokeGet] operator[SEP] identifier[String] identifier[resourcePath] , identifier[MultivaluedMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[params] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] l...
public String get(String key, String defaultValue) { if( configs.containsKey(key) ){ return configs.get(key); } return defaultValue; }
class class_name[name] begin[{] method[get, return_type[type[String]], modifier[public], parameter[key, defaultValue]] begin[{] if[call[configs.containsKey, parameter[member[.key]]]] begin[{] return[call[configs.get, parameter[member[.key]]]] else begin[{] None end[}...
Keyword[public] identifier[String] identifier[get] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[defaultValue] operator[SEP] { Keyword[if] operator[SEP] identifier[configs] operator[SEP] identifier[containsKey] operator[SEP] identifier[key] operator[SEP] operator[SEP] { ...
public static ZMsg load(DataInputStream file) { if (file == null) { return null; } ZMsg rcvMsg = new ZMsg(); try { int msgSize = file.readInt(); if (msgSize > 0) { int msgNbr = 0; while (++msgNbr <= msgSize) { ...
class class_name[name] begin[{] method[load, return_type[type[ZMsg]], modifier[public static], parameter[file]] begin[{] if[binary_operation[member[.file], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[type[ZMsg],...
Keyword[public] Keyword[static] identifier[ZMsg] identifier[load] operator[SEP] identifier[DataInputStream] identifier[file] operator[SEP] { Keyword[if] operator[SEP] identifier[file] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } identifier[ZMsg] id...
@Override public V remove(final Object key) throws ConcurrentModificationException { checkKey(key); return (V)doRemove(key, KEY); }
class class_name[name] begin[{] method[remove, return_type[type[V]], modifier[public], parameter[key]] begin[{] call[.checkKey, parameter[member[.key]]] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, ...
annotation[@] identifier[Override] Keyword[public] identifier[V] identifier[remove] operator[SEP] Keyword[final] identifier[Object] identifier[key] operator[SEP] Keyword[throws] identifier[ConcurrentModificationException] { identifier[checkKey] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[re...
@Pure @Inline(value="$3.$4of($1, $2)", imported=Pair.class) public static <A, B> Pair<A, B> operator_mappedTo(A a, B b) { return Pair.of(a, b); }
class class_name[name] begin[{] method[operator_mappedTo, return_type[type[Pair]], modifier[public static], parameter[a, b]] begin[{] return[call[Pair.of, parameter[member[.a], member[.b]]]] end[}] END[}]
annotation[@] identifier[Pure] annotation[@] identifier[Inline] operator[SEP] identifier[value] operator[=] literal[String] , identifier[imported] operator[=] identifier[Pair] operator[SEP] Keyword[class] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[A] , identifier[B] operator[>] identifier[Pa...
public void setPriority(int value) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "setPriority", Integer.valueOf(value)); /* Set the cached value */ cachedPriority = Integer.valueOf(value); // Set the value into the message itself ...
class class_name[name] begin[{] method[setPriority, return_type[void], modifier[public], parameter[value]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[THIS[], memb...
Keyword[public] Keyword[void] identifier[setPriority] operator[SEP] Keyword[int] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] op...
@SuppressWarnings("unchecked") public <T> Map<String, ConfigItem<T>> getConfigItemMap(String key) { Map<String, ConfigItem<T>> configItemMap = (Map<String, ConfigItem<T>>) attributes.get(key); if (configItemMap == null) { configItemMap = new HashMap<String, ConfigItem<T>>(); ...
class class_name[name] begin[{] method[getConfigItemMap, return_type[type[Map]], modifier[public], parameter[key]] begin[{] local_variable[type[Map], configItemMap] if[binary_operation[member[.configItemMap], ==, literal[null]]] begin[{] assign[member[.configItem...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[T] operator[>] identifier[Map] operator[<] identifier[String] , identifier[ConfigItem] operator[<] identifier[T] operator[>] operator[>] identifier[getConfigItemMap] operator[SEP] identifier[St...
public static void collectAttributeValues(Attributes attributes, String name, Collection<Object> collection) { collectAttributeValues(attributes, name, collection, Object.class); }
class class_name[name] begin[{] method[collectAttributeValues, return_type[void], modifier[public static], parameter[attributes, name, collection]] begin[{] call[.collectAttributeValues, parameter[member[.attributes], member[.name], member[.collection], ClassReference(postfix_operators=[], pref...
Keyword[public] Keyword[static] Keyword[void] identifier[collectAttributeValues] operator[SEP] identifier[Attributes] identifier[attributes] , identifier[String] identifier[name] , identifier[Collection] operator[<] identifier[Object] operator[>] identifier[collection] operator[SEP] { identifier[collectAttribu...
public void addPhysicalPosition(final OPhysicalPosition iPPosition) throws IOException { final long[] pos; final boolean recycled; long offset; acquireExclusiveLock(); try { offset = holeSegment.popLastEntryPosition(); if (offset > -1) { // REUSE THE HOLE pos...
class class_name[name] begin[{] method[addPhysicalPosition, return_type[void], modifier[public], parameter[iPPosition]] begin[{] local_variable[type[long], pos] local_variable[type[boolean], recycled] local_variable[type[long], offset] call[.acquireExclusiveLock, paramet...
Keyword[public] Keyword[void] identifier[addPhysicalPosition] operator[SEP] Keyword[final] identifier[OPhysicalPosition] identifier[iPPosition] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] Keyword[long] operator[SEP] operator[SEP] identifier[pos] operator[SEP] Keyword[final] Keyword[boo...
@Override public void contextInitialized(ServletContextEvent event) { _registry.put(INSTANCE, new Pair<Service, Persistence>(this, null)); _context = event.getServletContext(); _application = _context.getContextPath(); _logger.config("application: " + _application); if (_app...
class class_name[name] begin[{] method[contextInitialized, return_type[void], modifier[public], parameter[event]] begin[{] call[_registry.put, parameter[member[.INSTANCE], ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), Literal(postfix_oper...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[contextInitialized] operator[SEP] identifier[ServletContextEvent] identifier[event] operator[SEP] { identifier[_registry] operator[SEP] identifier[put] operator[SEP] identifier[INSTANCE] , Keyword[new] identifier[Pair] operator[<] ident...
public void attachMessage(ConsumableKey consumerKey) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) { SibTr.entry(tc, "attachMessage", msgAttachedMember); SibTr.exit(tc, "attachMessage", consumerKey); } if(msgAttachedMember == null) msgAttachedMember = consumerKey...
class class_name[name] begin[{] method[attachMessage, return_type[void], modifier[public], parameter[consumerKey]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, pa...
Keyword[public] Keyword[void] identifier[attachMessage] operator[SEP] identifier[ConsumableKey] identifier[consumerKey] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifi...
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "includePolicyIds", scope = GetObject.class) public JAXBElement<Boolean> createGetObjectIncludePolicyIds(Boolean value) { return new JAXBElement<Boolean>( _GetObjectOfLatestVersionIncludePolicyIds_QNAME, Boolean.class, ...
class class_name[name] begin[{] method[createGetObjectIncludePolicyIds, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_GetObjectOfLatestVersionIncludePolicyIds_QNAME, postfix_operators=[], prefix_operators=[], qualifie...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[scope] operator[=] identifier[GetObject] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[Boolea...
boolean stageData(final byte[] line) throws IOException { if (this._rowCount % 10000 == 0) { LOGGER.debug( "rowCount: {}, currentSize: {}", this._rowCount, _currentSize); } _outstream.write(line); _currentSize += line.length; _outstream.write(newLineBytes); this._rowCount+...
class class_name[name] begin[{] method[stageData, return_type[type[boolean]], modifier[default], parameter[line]] begin[{] if[binary_operation[binary_operation[THIS[member[None._rowCount]], %, literal[10000]], ==, literal[0]]] begin[{] call[LOGGER.debug, parameter[litera...
Keyword[boolean] identifier[stageData] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[line] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[_rowCount] operator[%] Other[10000] operator[==] Other[0] operato...
private static boolean removeExactMatchCoveredExpressions( AbstractExpression coveringExpr, List<AbstractExpression> exprsToCover) { boolean hasMatch = false; Iterator<AbstractExpression> iter = exprsToCover.iterator(); while(iter.hasNext()) { AbstractExpression exprToCo...
class class_name[name] begin[{] method[removeExactMatchCoveredExpressions, return_type[type[boolean]], modifier[private static], parameter[coveringExpr, exprsToCover]] begin[{] local_variable[type[boolean], hasMatch] local_variable[type[Iterator], iter] while[call[iter.hasNext, ...
Keyword[private] Keyword[static] Keyword[boolean] identifier[removeExactMatchCoveredExpressions] operator[SEP] identifier[AbstractExpression] identifier[coveringExpr] , identifier[List] operator[<] identifier[AbstractExpression] operator[>] identifier[exprsToCover] operator[SEP] { Keyword[boolean] identifier[ha...
public int setState(boolean state, boolean bDisplayOption, int iMoveMode) { String tempString = "N"; if (state) tempString = "Y"; return this.setString(tempString, bDisplayOption, iMoveMode); // Move value to this field }
class class_name[name] begin[{] method[setState, return_type[type[int]], modifier[public], parameter[state, bDisplayOption, iMoveMode]] begin[{] local_variable[type[String], tempString] if[member[.state]] begin[{] assign[member[.tempString], literal["Y"]] else begin[...
Keyword[public] Keyword[int] identifier[setState] operator[SEP] Keyword[boolean] identifier[state] , Keyword[boolean] identifier[bDisplayOption] , Keyword[int] identifier[iMoveMode] operator[SEP] { identifier[String] identifier[tempString] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] ide...
@Override public boolean getAllowFailOverToBasicAuth() { if (allowFailOverToBasicAuth || (allowFailOverToAuthMethod != null && allowFailOverToAuthMethod.equalsIgnoreCase(LoginConfiguration.BASIC))) { return true; } else return false; }
class class_name[name] begin[{] method[getAllowFailOverToBasicAuth, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.allowFailOverToBasicAuth], ||, binary_operation[binary_operation[member[.allowFailOverToAuthMethod], !=, literal[null]], &&, call[a...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[getAllowFailOverToBasicAuth] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[allowFailOverToBasicAuth] operator[||] operator[SEP] identifier[allowFailOverToAuthMethod] operator[!=] Other[null] operator[&&] identifie...
@Override protected void validateIndex(int index, int bytesRequested) throws IOException { if (index < 0) { throw new BufferBoundsException(String.format("Attempt to read from buffer using a negative index (%d)", index)); } else if (bytesRequested < 0) { throw new BufferB...
class class_name[name] begin[{] method[validateIndex, return_type[void], modifier[protected], parameter[index, bytesRequested]] begin[{] if[binary_operation[member[.index], <, literal[0]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Literal...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[validateIndex] operator[SEP] Keyword[int] identifier[index] , Keyword[int] identifier[bytesRequested] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[index] operator[<] Other[0] operator[S...
public String getPrincipal(ContainerRequestContext httpRequest) { if (principalCookieName != null && httpRequest.getCookies().size() > 0) { Map<String, Cookie> cookies = httpRequest.getCookies(); for (Cookie cookie : cookies.values()) { if (principalCookieName.equals(cook...
class class_name[name] begin[{] method[getPrincipal, return_type[type[String]], modifier[public], parameter[httpRequest]] begin[{] if[binary_operation[binary_operation[member[.principalCookieName], !=, literal[null]], &&, binary_operation[call[httpRequest.getCookies, parameter[]], >, literal[0]...
Keyword[public] identifier[String] identifier[getPrincipal] operator[SEP] identifier[ContainerRequestContext] identifier[httpRequest] operator[SEP] { Keyword[if] operator[SEP] identifier[principalCookieName] operator[!=] Other[null] operator[&&] identifier[httpRequest] operator[SEP] identifier[getCookies] operat...
public static ByteBuffer blockingRead(SocketChannel so, long timeout, byte[] bytes) throws IOException { ByteBuffer b = ByteBuffer.wrap(bytes); if (bytes.length == 0) return b; final long timeoutTime = (timeout > 0) ? (System.currentTimeMillis() + timeout) : (Long.MAX_VALUE); while (b.remaining() != 0 &&...
class class_name[name] begin[{] method[blockingRead, return_type[type[ByteBuffer]], modifier[public static], parameter[so, timeout, bytes]] begin[{] local_variable[type[ByteBuffer], b] if[binary_operation[member[bytes.length], ==, literal[0]]] begin[{] return[member[.b]] else be...
Keyword[public] Keyword[static] identifier[ByteBuffer] identifier[blockingRead] operator[SEP] identifier[SocketChannel] identifier[so] , Keyword[long] identifier[timeout] , Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ByteBuffer]...
@Override public void run() { synchronized (this) { // Save current event pipeline and currently handled event // because a SynchronousEventPipeline can be called while // handling an event (from another event processor). InternalEventPipeline currentPipeline ...
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[]] begin[{] SYNCHRONIZED[THIS[]] BEGIN[{] local_variable[type[InternalEventPipeline], currentPipeline] local_variable[type[EventBase], currentEvent] TryStatement(block=...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] { identifier[InternalEventPipeline] identifier[currentPipeline] operator[=] identifier[FeedBackPipelineFilter] operator[SEP] id...
@InterfaceAudience.Public public void setCreateTarget(boolean createTarget) { properties.put(ReplicationField.CREATE_TARGET, createTarget); replicationInternal.setCreateTarget(createTarget); }
class class_name[name] begin[{] method[setCreateTarget, return_type[void], modifier[public], parameter[createTarget]] begin[{] call[properties.put, parameter[member[ReplicationField.CREATE_TARGET], member[.createTarget]]] call[replicationInternal.setCreateTarget, parameter[membe...
annotation[@] identifier[InterfaceAudience] operator[SEP] identifier[Public] Keyword[public] Keyword[void] identifier[setCreateTarget] operator[SEP] Keyword[boolean] identifier[createTarget] operator[SEP] { identifier[properties] operator[SEP] identifier[put] operator[SEP] identifier[ReplicationField] operator[S...
public static Storer createStorer() { Storer.Mode mode = Storer.Mode.fromString(DEPENDENCIES_FORMAT_V); if (mode == Storer.Mode.TXT) { return new TxtStorer(); } else if (mode == Storer.Mode.BIN) { return new BinStorer(); } else if (mode == Storer.Mode.PREFIX_TXT) ...
class class_name[name] begin[{] method[createStorer, return_type[type[Storer]], modifier[public static], parameter[]] begin[{] local_variable[type[Storer], mode] if[binary_operation[member[.mode], ==, member[Storer.Mode.TXT]]] begin[{] return[ClassCreator(arguments=[], body=...
Keyword[public] Keyword[static] identifier[Storer] identifier[createStorer] operator[SEP] operator[SEP] { identifier[Storer] operator[SEP] identifier[Mode] identifier[mode] operator[=] identifier[Storer] operator[SEP] identifier[Mode] operator[SEP] identifier[fromString] operator[SEP] identifier[DEPENDENCIES_FOR...
private synchronized void readProperties() { try { propertyFileURI = CatalogManager.class.getResource("/"+propertyFile); InputStream in = CatalogManager.class.getResourceAsStream("/"+propertyFile); if (in==null) { if (!ignoreMissingProperties) { System.err.println("Cannot find "+propertyFile)...
class class_name[name] begin[{] method[readProperties, return_type[void], modifier[synchronized private], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=propertyFileURI, postfix_operators=[], prefix_operators=[], qualifier=, select...
Keyword[private] Keyword[synchronized] Keyword[void] identifier[readProperties] operator[SEP] operator[SEP] { Keyword[try] { identifier[propertyFileURI] operator[=] identifier[CatalogManager] operator[SEP] Keyword[class] operator[SEP] identifier[getResource] operator[SEP] literal[String] operator[+] i...
@SuppressWarnings("unchecked") public static <T> T[] jsonArrayToArray(final JSONArray jsonArray, final Class<? extends T[]> newType) { if (null == jsonArray) { return (T[]) new Object[]{}; } final int newLength = jsonArray.length(); final Object[] original = new Object[n...
class class_name[name] begin[{] method[jsonArrayToArray, return_type[type[T]], modifier[public static], parameter[jsonArray, newType]] begin[{] if[binary_operation[literal[null], ==, member[.jsonArray]]] begin[{] return[Cast(expression=ArrayCreator(dimensions=[None], initializer=Arr...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] operator[SEP] operator[SEP] identifier[jsonArrayToArray] operator[SEP] Keyword[final] identifier[JSONArray] identifier[jsonArray] , Keyword[final] i...
Format getFormat() { final int ordinal; final Flavor f = getFlavor(); if ((f == Flavor.HYBRID) || (f == Flavor.SPARSE)) { ordinal = 2 | ( mergeFlag ? 0 : 1 ); //Hybrid is serialized as SPARSE } else { ordinal = ((slidingWindow != null) ? 4 : 0) | (((pairTable != null) && (pair...
class class_name[name] begin[{] method[getFormat, return_type[type[Format]], modifier[default], parameter[]] begin[{] local_variable[type[int], ordinal] local_variable[type[Flavor], f] if[binary_operation[binary_operation[member[.f], ==, member[Flavor.HYBRID]], ||, binary_operat...
identifier[Format] identifier[getFormat] operator[SEP] operator[SEP] { Keyword[final] Keyword[int] identifier[ordinal] operator[SEP] Keyword[final] identifier[Flavor] identifier[f] operator[=] identifier[getFlavor] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[f] op...
public void marshall(ListUsersRequest listUsersRequest, ProtocolMarshaller protocolMarshaller) { if (listUsersRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(listUsersRequest.getAccountId()...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[listUsersRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.listUsersRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postf...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ListUsersRequest] identifier[listUsersRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[listUsersRequest] operator[==] Other[null] operator[SEP] { Ke...
public void removeAll(TaskAttemptID taskId) throws IOException { String toBeDeleted = TaskTracker.getIntermediateOutputDir(jobId.toString(), taskId.toString()); if (asyncDiskService != null) { asyncDiskService.moveAndDeleteFromEachVolume(toBeDeleted); LOG.info("Move and then delete map ouput "...
class class_name[name] begin[{] method[removeAll, return_type[void], modifier[public], parameter[taskId]] begin[{] local_variable[type[String], toBeDeleted] if[binary_operation[member[.asyncDiskService], !=, literal[null]]] begin[{] call[asyncDiskService.moveAndD...
Keyword[public] Keyword[void] identifier[removeAll] operator[SEP] identifier[TaskAttemptID] identifier[taskId] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[toBeDeleted] operator[=] identifier[TaskTracker] operator[SEP] identifier[getIntermediateOutputDir] operator[SEP] id...
public synchronized BeanO createSingletonBeanO() { boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); if (isTraceOn && tc.isEntryEnabled()) Tr.entry(tc, "createSingletonBeanO: " + j2eeName); // F743-4950 - This check is done (unsynchronized) from createBeanO, but ...
class class_name[name] begin[{] method[createSingletonBeanO, return_type[type[BeanO]], modifier[synchronized public], parameter[]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTraceOn], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] ca...
Keyword[public] Keyword[synchronized] identifier[BeanO] identifier[createSingletonBeanO] operator[SEP] operator[SEP] { Keyword[boolean] identifier[isTraceOn] operator[=] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] id...
public static void updateParticipants(Encounter encounter) { if (encounter == null || encounter.getParticipant().isEmpty()) { return; } RPCParameter params = new RPCParameter(); for (EncounterParticipantComponent participant : encounter.getParticipant()) { Strin...
class class_name[name] begin[{] method[updateParticipants, return_type[void], modifier[public static], parameter[encounter]] begin[{] if[binary_operation[binary_operation[member[.encounter], ==, literal[null]], ||, call[encounter.getParticipant, parameter[]]]] begin[{] return[None] ...
Keyword[public] Keyword[static] Keyword[void] identifier[updateParticipants] operator[SEP] identifier[Encounter] identifier[encounter] operator[SEP] { Keyword[if] operator[SEP] identifier[encounter] operator[==] Other[null] operator[||] identifier[encounter] operator[SEP] identifier[getParticipant] operator[SEP]...
public final void evaluate() throws IllegalAccessException, InvocationTargetException { if (simple) tr.startCollection(); fTestMethod.invoke(fTarget, params); if (simple) tr.stopCollection(); }
class class_name[name] begin[{] method[evaluate, return_type[void], modifier[final public], parameter[]] begin[{] if[member[.simple]] begin[{] call[tr.startCollection, parameter[]] else begin[{] None end[}] call[fTestMethod.invoke, parameter[member[.f...
Keyword[public] Keyword[final] Keyword[void] identifier[evaluate] operator[SEP] operator[SEP] Keyword[throws] identifier[IllegalAccessException] , identifier[InvocationTargetException] { Keyword[if] operator[SEP] identifier[simple] operator[SEP] identifier[tr] operator[SEP] identifier[startCollection] operator[...
public ExtWebDriver getNewSession(boolean setAsCurrent) throws Exception { Map<String, String> options = sessionFactory.get().createDefaultOptions(); return getNewSessionDo(options, setAsCurrent); }
class class_name[name] begin[{] method[getNewSession, return_type[type[ExtWebDriver]], modifier[public], parameter[setAsCurrent]] begin[{] local_variable[type[Map], options] return[call[.getNewSessionDo, parameter[member[.options], member[.setAsCurrent]]]] end[}] END[}]
Keyword[public] identifier[ExtWebDriver] identifier[getNewSession] operator[SEP] Keyword[boolean] identifier[setAsCurrent] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[options] operator[=] identifier[sessionFacto...
public void setDate(final Date date) { if (date == null) { setPartialDate(null, null, null); } else { Calendar cal = Calendar.getInstance(); cal.setTime(date); Integer year = cal.get(Calendar.YEAR); Integer month = cal.get(Calendar.MONTH) + 1; Integer day = cal.get(Calendar.DAY_OF_MONTH); setPa...
class class_name[name] begin[{] method[setDate, return_type[void], modifier[public], parameter[date]] begin[{] if[binary_operation[member[.date], ==, literal[null]]] begin[{] call[.setPartialDate, parameter[literal[null], literal[null], literal[null]]] else begin...
Keyword[public] Keyword[void] identifier[setDate] operator[SEP] Keyword[final] identifier[Date] identifier[date] operator[SEP] { Keyword[if] operator[SEP] identifier[date] operator[==] Other[null] operator[SEP] { identifier[setPartialDate] operator[SEP] Other[null] , Other[null] , Other[null] operat...
public HttpServerBuilder connectors(List<Connector> connectors) { endpoint.setConnectors(connectors.toArray(new Connector[connectors.size()])); return this; }
class class_name[name] begin[{] method[connectors, return_type[type[HttpServerBuilder]], modifier[public], parameter[connectors]] begin[{] call[endpoint.setConnectors, parameter[call[connectors.toArray, parameter[ArrayCreator(dimensions=[MethodInvocation(arguments=[], member=size, postfix_opera...
Keyword[public] identifier[HttpServerBuilder] identifier[connectors] operator[SEP] identifier[List] operator[<] identifier[Connector] operator[>] identifier[connectors] operator[SEP] { identifier[endpoint] operator[SEP] identifier[setConnectors] operator[SEP] identifier[connectors] operator[SEP] identifier[toArr...
public static ContentSource getOutputContentSource(Configuration conf, String hostName) throws XccConfigException, IOException { String user = conf.get(OUTPUT_USERNAME, ""); String password = conf.get(OUTPUT_PASSWORD, ""); String port = conf.get(OUTPUT_PORT,"8000"); Stri...
class class_name[name] begin[{] method[getOutputContentSource, return_type[type[ContentSource]], modifier[public static], parameter[conf, hostName]] begin[{] local_variable[type[String], user] local_variable[type[String], password] local_variable[type[String], port] local_variab...
Keyword[public] Keyword[static] identifier[ContentSource] identifier[getOutputContentSource] operator[SEP] identifier[Configuration] identifier[conf] , identifier[String] identifier[hostName] operator[SEP] Keyword[throws] identifier[XccConfigException] , identifier[IOException] { identifier[String] identifier[...
public static ExpectedCondition<Boolean> not(final ExpectedCondition<?> condition) { return new ExpectedCondition<Boolean>() { @Override public Boolean apply(WebDriver driver) { Object result = condition.apply(driver); return result == null || result.equals(Boolean.FALSE); } ...
class class_name[name] begin[{] method[not, return_type[type[ExpectedCondition]], modifier[public static], parameter[condition]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[LocalVariableDeclaration(annotations=[], decla...
Keyword[public] Keyword[static] identifier[ExpectedCondition] operator[<] identifier[Boolean] operator[>] identifier[not] operator[SEP] Keyword[final] identifier[ExpectedCondition] operator[<] operator[?] operator[>] identifier[condition] operator[SEP] { Keyword[return] Keyword[new] identifier[ExpectedCondition]...
public Response invokePost(String resourcePath, Entity<?> entity) { logger.debug("POST {}, entity: {}", getFullPath(resourcePath), entity); return invokeSignedRequest(getApiClient(), accessKey, key(true), POST, getEndpoint(), getFullPath(resourcePath), null, null, entity); }
class class_name[name] begin[{] method[invokePost, return_type[type[Response]], modifier[public], parameter[resourcePath, entity]] begin[{] call[logger.debug, parameter[literal["POST {}, entity: {}"], call[.getFullPath, parameter[member[.resourcePath]]], member[.entity]]] return[call[.i...
Keyword[public] identifier[Response] identifier[invokePost] operator[SEP] identifier[String] identifier[resourcePath] , identifier[Entity] operator[<] operator[?] operator[>] identifier[entity] operator[SEP] { identifier[logger] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[getFull...
public static <T> T loadSpecificPlugin(final String name, final Class<T> type) { if (name.isEmpty()) { throw new IllegalArgumentException("Missing plugin name"); } ServiceLoader<T> serviceLoader = ServiceLoader.load(type); Iterator<T> it = serviceLoader.iterator(); if (!it.hasNext()) { ...
class class_name[name] begin[{] method[loadSpecificPlugin, return_type[type[T]], modifier[public static], parameter[name, type]] begin[{] if[call[name.isEmpty, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[],...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[T] identifier[loadSpecificPlugin] operator[SEP] Keyword[final] identifier[String] identifier[name] , Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] operator[SEP] { Keyword[if] operator[SEP] ...
static URL fixPureQueryTargets(URL base, String target) throws MalformedURLException { if (!target.startsWith("?")) return new URL(base, target); String basePath = base.getPath(); String baseRightMost = ""; int baseRightMostIdx = basePath.lastIndexOf("/"); ...
class class_name[name] begin[{] method[fixPureQueryTargets, return_type[type[URL]], modifier[static], parameter[base, target]] begin[{] if[call[target.startsWith, parameter[literal["?"]]]] begin[{] return[ClassCreator(arguments=[MemberReference(member=base, postfix_operators=[], prefix_operator...
Keyword[static] identifier[URL] identifier[fixPureQueryTargets] operator[SEP] identifier[URL] identifier[base] , identifier[String] identifier[target] operator[SEP] Keyword[throws] identifier[MalformedURLException] { Keyword[if] operator[SEP] operator[!] identifier[target] operator[SEP] identifier[startsWith] o...
public java.util.List<String> getAccountIdsToRemove() { if (accountIdsToRemove == null) { accountIdsToRemove = new com.amazonaws.internal.SdkInternalList<String>(); } return accountIdsToRemove; }
class class_name[name] begin[{] method[getAccountIdsToRemove, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.accountIdsToRemove], ==, literal[null]]] begin[{] assign[member[.accountIdsToRemove], ClassCreator(arguments=[], bod...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[getAccountIdsToRemove] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[accountIdsToRemove] operator[==] Other[null] operator[SEP] { id...
public GeoPackageMetadata get(long id) { GeoPackageMetadata metadata = null; String selection = GeoPackageMetadata.COLUMN_ID + " = ?"; String[] selectionArgs = new String[]{String.valueOf(id)}; Cursor cursor = db.query( GeoPackageMetadata.TABLE_NAME, GeoPa...
class class_name[name] begin[{] method[get, return_type[type[GeoPackageMetadata]], modifier[public], parameter[id]] begin[{] local_variable[type[GeoPackageMetadata], metadata] local_variable[type[String], selection] local_variable[type[String], selectionArgs] local_variable[type...
Keyword[public] identifier[GeoPackageMetadata] identifier[get] operator[SEP] Keyword[long] identifier[id] operator[SEP] { identifier[GeoPackageMetadata] identifier[metadata] operator[=] Other[null] operator[SEP] identifier[String] identifier[selection] operator[=] identifier[GeoPackageMetadata] operator[SEP] ide...
public <K> JavaPairRDD<K, Double> scoreExamplesMultiDataSet(JavaPairRDD<K, MultiDataSet> data, boolean includeRegularizationTerms) { return scoreExamplesMultiDataSet(data, includeRegularizationTerms, DEFAULT_EVAL_SCORE_BATCH_SIZE); }
class class_name[name] begin[{] method[scoreExamplesMultiDataSet, return_type[type[JavaPairRDD]], modifier[public], parameter[data, includeRegularizationTerms]] begin[{] return[call[.scoreExamplesMultiDataSet, parameter[member[.data], member[.includeRegularizationTerms], member[.DEFAULT_EVAL_SCORE_BATC...
Keyword[public] operator[<] identifier[K] operator[>] identifier[JavaPairRDD] operator[<] identifier[K] , identifier[Double] operator[>] identifier[scoreExamplesMultiDataSet] operator[SEP] identifier[JavaPairRDD] operator[<] identifier[K] , identifier[MultiDataSet] operator[>] identifier[data] , Keyword[boolean] ide...
private static int encode(Weekday... weekdays) { int bitmask = 0; for (Weekday weekday : weekdays) { bitmask = bitmask | (1 << weekday.ordinal()); } return bitmask; }
class class_name[name] begin[{] method[encode, return_type[type[int]], modifier[private static], parameter[weekdays]] begin[{] local_variable[type[int], bitmask] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member...
Keyword[private] Keyword[static] Keyword[int] identifier[encode] operator[SEP] identifier[Weekday] operator[...] identifier[weekdays] operator[SEP] { Keyword[int] identifier[bitmask] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[Weekday] identifier[weekday] operator[:] identifier[week...
private void runHeartbeatLoop() { final long interval = GlobalConfiguration.getInteger( ConfigConstants.TASK_MANAGER_HEARTBEAT_INTERVAL_KEY, ConfigConstants.DEFAULT_TASK_MANAGER_HEARTBEAT_INTERVAL); while (!shutdownStarted.get()) { // send heart beat try { LOG.debug("heartbeat"); this.job...
class class_name[name] begin[{] method[runHeartbeatLoop, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[long], interval] while[call[shutdownStarted.get, parameter[]]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocatio...
Keyword[private] Keyword[void] identifier[runHeartbeatLoop] operator[SEP] operator[SEP] { Keyword[final] Keyword[long] identifier[interval] operator[=] identifier[GlobalConfiguration] operator[SEP] identifier[getInteger] operator[SEP] identifier[ConfigConstants] operator[SEP] identifier[TASK_MANAGER_HEARTBEAT_IN...
protected boolean deleteDirectory(Path path, boolean cleanParent) throws IOException { boolean pathExists = deleteIfExistsRecursively(path); if(pathExists && cleanParent) { cleanEmptyParentDirectory(path.getParent()); return true; } return false; }
class class_name[name] begin[{] method[deleteDirectory, return_type[type[boolean]], modifier[protected], parameter[path, cleanParent]] begin[{] local_variable[type[boolean], pathExists] if[binary_operation[member[.pathExists], &&, member[.cleanParent]]] begin[{] ...
Keyword[protected] Keyword[boolean] identifier[deleteDirectory] operator[SEP] identifier[Path] identifier[path] , Keyword[boolean] identifier[cleanParent] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[boolean] identifier[pathExists] operator[=] identifier[deleteIfExistsRecursively] operator[SE...
private Set<String> getServerXmlFeatures(Set<String> origResult, File serverFile, List<File> parsedXmls) { Set<String> result = origResult; List<File> updatedParsedXmls = parsedXmls != null ? parsedXmls : new ArrayList<File>(); File canonicalServerFile; try { canonicalServerF...
class class_name[name] begin[{] method[getServerXmlFeatures, return_type[type[Set]], modifier[private], parameter[origResult, serverFile, parsedXmls]] begin[{] local_variable[type[Set], result] local_variable[type[List], updatedParsedXmls] local_variable[type[File], canonicalServerFile]...
Keyword[private] identifier[Set] operator[<] identifier[String] operator[>] identifier[getServerXmlFeatures] operator[SEP] identifier[Set] operator[<] identifier[String] operator[>] identifier[origResult] , identifier[File] identifier[serverFile] , identifier[List] operator[<] identifier[File] operator[>] identifier[...
protected int getDHOffset2(byte[] handshake, int bufferOffset) { bufferOffset += 768; int offset = handshake[bufferOffset] & 0xff; bufferOffset++; offset += handshake[bufferOffset] & 0xff; bufferOffset++; offset += handshake[bufferOffset] & 0xff; bufferOffs...
class class_name[name] begin[{] method[getDHOffset2, return_type[type[int]], modifier[protected], parameter[handshake, bufferOffset]] begin[{] assign[member[.bufferOffset], literal[768]] local_variable[type[int], offset] member[.bufferOffset] assign[membe...
Keyword[protected] Keyword[int] identifier[getDHOffset2] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[handshake] , Keyword[int] identifier[bufferOffset] operator[SEP] { identifier[bufferOffset] operator[+=] Other[768] operator[SEP] Keyword[int] identifier[offset] operator[=] identifier[han...
private int serialize(final int activePathIndex) { expandBuffers(); final int newState = size; final int start = activePath[activePathIndex]; final int len = nextArcOffset[activePathIndex] - start; System.arraycopy(serialized, start, serialized, newState, len); size += len; return newState...
class class_name[name] begin[{] method[serialize, return_type[type[int]], modifier[private], parameter[activePathIndex]] begin[{] call[.expandBuffers, parameter[]] local_variable[type[int], newState] local_variable[type[int], start] local_variable[type[int], len] ...
Keyword[private] Keyword[int] identifier[serialize] operator[SEP] Keyword[final] Keyword[int] identifier[activePathIndex] operator[SEP] { identifier[expandBuffers] operator[SEP] operator[SEP] operator[SEP] Keyword[final] Keyword[int] identifier[newState] operator[=] identifier[size] operator[SEP] Keyword[final] ...
public void setEmpty() { this.value = ""; this.leading = this.trailing = 0; this.isEmpty = true; if (this.previous != null) { this.previous.nextEmpty = true; } if (this.next != null) { this.next.prevEmpty = true; } }
class class_name[name] begin[{] method[setEmpty, return_type[void], modifier[public], parameter[]] begin[{] assign[THIS[member[None.value]], literal[""]] assign[THIS[member[None.leading]], assign[THIS[member[None.trailing]], literal[0]]] assign[THIS[member[None.i...
Keyword[public] Keyword[void] identifier[setEmpty] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[value] operator[=] literal[String] operator[SEP] Keyword[this] operator[SEP] identifier[leading] operator[=] Keyword[this] operator[SEP] identifier[trailing] operator[=] Other[0] operator[SEP] ...
private MessageEmitSvlt getMessageObj(final HttpServletRequest request, final MessageResources messages) { return (MessageEmitSvlt)StrutsUtil .getMessageObj(getId(), this, request, messages, getMessageObjAttrNa...
class class_name[name] begin[{] method[getMessageObj, return_type[type[MessageEmitSvlt]], modifier[private], parameter[request, messages]] begin[{] return[Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getId, postfix_operators=[], prefix_operators=[], qualifier=, sele...
Keyword[private] identifier[MessageEmitSvlt] identifier[getMessageObj] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[request] , Keyword[final] identifier[MessageResources] identifier[messages] operator[SEP] { Keyword[return] operator[SEP] identifier[MessageEmitSvlt] operator[SEP] identi...
@Override public FeatureDao getFeatureDao(GeometryColumns geometryColumns) { if (geometryColumns == null) { throw new GeoPackageException("Non null " + GeometryColumns.class.getSimpleName() + " is required to create " + FeatureDao.clas...
class class_name[name] begin[{] method[getFeatureDao, return_type[type[FeatureDao]], modifier[public], parameter[geometryColumns]] begin[{] if[binary_operation[member[.geometryColumns], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(op...
annotation[@] identifier[Override] Keyword[public] identifier[FeatureDao] identifier[getFeatureDao] operator[SEP] identifier[GeometryColumns] identifier[geometryColumns] operator[SEP] { Keyword[if] operator[SEP] identifier[geometryColumns] operator[==] Other[null] operator[SEP] { Keyword[throw] Keywor...
public boolean checkAndUpdateMEOwner(MELockOwner owner) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "checkAndUpdateMEOwner", "Owner="+owner); // Venu mock mock disableUUIDCheck for now in this version of Liberty profile. boolean disableUUIDCheck ...
class class_name[name] begin[{] method[checkAndUpdateMEOwner, return_type[type[boolean]], modifier[public], parameter[owner]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, par...
Keyword[public] Keyword[boolean] identifier[checkAndUpdateMEOwner] operator[SEP] identifier[MELockOwner] identifier[owner] operator[SEP] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] ident...
public static CPFriendlyURLEntry fetchByUuid_C_First(String uuid, long companyId, OrderByComparator<CPFriendlyURLEntry> orderByComparator) { return getPersistence() .fetchByUuid_C_First(uuid, companyId, orderByComparator); }
class class_name[name] begin[{] method[fetchByUuid_C_First, return_type[type[CPFriendlyURLEntry]], modifier[public static], parameter[uuid, companyId, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CPFriendlyURLEntry] identifier[fetchByUuid_C_First] operator[SEP] identifier[String] identifier[uuid] , Keyword[long] identifier[companyId] , identifier[OrderByComparator] operator[<] identifier[CPFriendlyURLEntry] operator[>] identifier[orderByComparator] operator[SEP] { ...
public static boolean inRange(Range range, double val) { return val >= range.min() && val <= range.max(); }
class class_name[name] begin[{] method[inRange, return_type[type[boolean]], modifier[public static], parameter[range, val]] begin[{] return[binary_operation[binary_operation[member[.val], >=, call[range.min, parameter[]]], &&, binary_operation[member[.val], <=, call[range.max, parameter[]]]]] end[}...
Keyword[public] Keyword[static] Keyword[boolean] identifier[inRange] operator[SEP] identifier[Range] identifier[range] , Keyword[double] identifier[val] operator[SEP] { Keyword[return] identifier[val] operator[>=] identifier[range] operator[SEP] identifier[min] operator[SEP] operator[SEP] operator[&&] identifie...
private void initializePath(String p_uriSpec) throws MalformedURIException { if (p_uriSpec == null) { throw new MalformedURIException( "Cannot initialize path from null string!"); } int index = 0; int start = 0; int end = p_uriSpec.length(); char testChar = '\0'; // pa...
class class_name[name] begin[{] method[initializePath, return_type[void], modifier[private], parameter[p_uriSpec]] begin[{] if[binary_operation[member[.p_uriSpec], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_ope...
Keyword[private] Keyword[void] identifier[initializePath] operator[SEP] identifier[String] identifier[p_uriSpec] operator[SEP] Keyword[throws] identifier[MalformedURIException] { Keyword[if] operator[SEP] identifier[p_uriSpec] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identi...
@SneakyThrows private void processExcelCellAnnotation(Field field, Object bean) { val ann = field.getAnnotation(ExcelCell.class); if (ann == null) return; Object fv = Fields.invokeField(field, bean); if (ann.sheetName()) { if (StringUtils.isNotEmpty(ann.replace())) { //...
class class_name[name] begin[{] method[processExcelCellAnnotation, return_type[void], modifier[private], parameter[field, bean]] begin[{] local_variable[type[val], ann] if[binary_operation[member[.ann], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] ...
annotation[@] identifier[SneakyThrows] Keyword[private] Keyword[void] identifier[processExcelCellAnnotation] operator[SEP] identifier[Field] identifier[field] , identifier[Object] identifier[bean] operator[SEP] { identifier[val] identifier[ann] operator[=] identifier[field] operator[SEP] identifier[getAnnotatio...
public int countResources(I_CmsPublishResourceCheck check) { int count = 0; for (CmsPublishGroup group : m_groups) { count += countResourcesInGroup(check, group.getResources()); } return count; }
class class_name[name] begin[{] method[countResources, return_type[type[int]], modifier[public], parameter[check]] begin[{] local_variable[type[int], count] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=coun...
Keyword[public] Keyword[int] identifier[countResources] operator[SEP] identifier[I_CmsPublishResourceCheck] identifier[check] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[CmsPublishGroup] identifier[group] operator[:] identifier[m_groups...
@Override public boolean isUseSsl() { String useSsl = getModelAttribute("useSsl"); return useSsl != null ? Boolean.parseBoolean(useSsl) : false; }
class class_name[name] begin[{] method[isUseSsl, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[String], useSsl] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=useSsl, postfix_operators=[], prefix_operators=[], qualifi...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isUseSsl] operator[SEP] operator[SEP] { identifier[String] identifier[useSsl] operator[=] identifier[getModelAttribute] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[useSsl] operator[!=] Other[nu...
@NonNull private Activity getActivity() { Activity result = null; if (activity != null) { result = activity; } else if (fragment != null) { result = fragment.getActivity(); } else if (fragmentSupport != null) { result = fragmentSupport.getActivity(...
class class_name[name] begin[{] method[getActivity, return_type[type[Activity]], modifier[private], parameter[]] begin[{] local_variable[type[Activity], result] if[binary_operation[member[.activity], !=, literal[null]]] begin[{] assign[member[.result], member[.ac...
annotation[@] identifier[NonNull] Keyword[private] identifier[Activity] identifier[getActivity] operator[SEP] operator[SEP] { identifier[Activity] identifier[result] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[activity] operator[!=] Other[null] operator[SEP] { identifier...
@Override public DescribeLagsResult describeLags(DescribeLagsRequest request) { request = beforeClientExecution(request); return executeDescribeLags(request); }
class class_name[name] begin[{] method[describeLags, return_type[type[DescribeLagsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDescribeLags, parameter[member[.request]]]] ...
annotation[@] identifier[Override] Keyword[public] identifier[DescribeLagsResult] identifier[describeLags] operator[SEP] identifier[DescribeLagsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[S...
public Observable<VirtualMachineScaleSetExtensionInner> getAsync(String resourceGroupName, String vmScaleSetName, String vmssExtensionName, String expand) { return getWithServiceResponseAsync(resourceGroupName, vmScaleSetName, vmssExtensionName, expand).map(new Func1<ServiceResponse<VirtualMachineScaleSetExtens...
class class_name[name] begin[{] method[getAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, vmScaleSetName, vmssExtensionName, expand]] begin[{] return[call[.getWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.vmScaleSetName], member[.vmssExtens...
Keyword[public] identifier[Observable] operator[<] identifier[VirtualMachineScaleSetExtensionInner] operator[>] identifier[getAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[vmScaleSetName] , identifier[String] identifier[vmssExtensionName] , identifier[String] i...
public void setValue(String[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { Value[] strValues = null; if (values != null) { strValues = new Value[values.length]; for (int i = 0; i < values.length; i+...
class class_name[name] begin[{] method[setValue, return_type[void], modifier[public], parameter[values]] begin[{] local_variable[type[Value], strValues] if[binary_operation[member[.values], !=, literal[null]]] begin[{] assign[member[.strValues], ArrayCreator(dime...
Keyword[public] Keyword[void] identifier[setValue] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[values] operator[SEP] Keyword[throws] identifier[ValueFormatException] , identifier[VersionException] , identifier[LockException] , identifier[ConstraintViolationException] , identifier[Reposit...
public Object required(TransactionCallback callback) throws Throwable { final boolean began = begin(); try { return callback.execute(this); } finally { if (began) { end(); } } }
class class_name[name] begin[{] method[required, return_type[type[Object]], modifier[public], parameter[callback]] begin[{] local_variable[type[boolean], began] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=N...
Keyword[public] identifier[Object] identifier[required] operator[SEP] identifier[TransactionCallback] identifier[callback] operator[SEP] Keyword[throws] identifier[Throwable] { Keyword[final] Keyword[boolean] identifier[began] operator[=] identifier[begin] operator[SEP] operator[SEP] operator[SEP] Keyword[try] ...
protected final FilePath preferredLocation(ToolInstallation tool, Node node) { if (node == null) { throw new IllegalArgumentException("must pass non-null node"); } String home = Util.fixEmptyAndTrim(tool.getHome()); if (home == null) { home = sanitize(tool.getDesc...
class class_name[name] begin[{] method[preferredLocation, return_type[type[FilePath]], modifier[final protected], parameter[tool, node]] begin[{] if[binary_operation[member[.node], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operato...
Keyword[protected] Keyword[final] identifier[FilePath] identifier[preferredLocation] operator[SEP] identifier[ToolInstallation] identifier[tool] , identifier[Node] identifier[node] operator[SEP] { Keyword[if] operator[SEP] identifier[node] operator[==] Other[null] operator[SEP] { Keyword[throw] Keywo...