code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static Node getNodeBySpaceAndId(String nameSpace, String zealotId) { String filePath = XmlContext.INSTANCE.getXmlPathMap().get(nameSpace); Document doc = XmlNodeHelper.getDocument(filePath); return doc == null ? null : XmlNodeHelper.getZealotNodeById(doc, zealotId); }
class class_name[name] begin[{] method[getNodeBySpaceAndId, return_type[type[Node]], modifier[public static], parameter[nameSpace, zealotId]] begin[{] local_variable[type[String], filePath] local_variable[type[Document], doc] return[TernaryExpression(condition=BinaryOperation(operandl=M...
Keyword[public] Keyword[static] identifier[Node] identifier[getNodeBySpaceAndId] operator[SEP] identifier[String] identifier[nameSpace] , identifier[String] identifier[zealotId] operator[SEP] { identifier[String] identifier[filePath] operator[=] identifier[XmlContext] operator[SEP] identifier[INSTANCE] operator...
protected void paintBits (Graphics2D gfx, int layer, Rectangle dirty) { _metamgr.paintMedia(gfx, layer, dirty); }
class class_name[name] begin[{] method[paintBits, return_type[void], modifier[protected], parameter[gfx, layer, dirty]] begin[{] call[_metamgr.paintMedia, parameter[member[.gfx], member[.layer], member[.dirty]]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[paintBits] operator[SEP] identifier[Graphics2D] identifier[gfx] , Keyword[int] identifier[layer] , identifier[Rectangle] identifier[dirty] operator[SEP] { identifier[_metamgr] operator[SEP] identifier[paintMedia] operator[SEP] identifier[gfx] , identifier[layer] , ...
public static base_responses delete(nitro_service client, ntpserver resources[]) throws Exception { base_responses result = null; if (resources != null && resources.length > 0) { ntpserver deleteresources[] = new ntpserver[resources.length]; for (int i=0;i<resources.length;i++){ deleteresources[i] = new n...
class class_name[name] begin[{] method[delete, return_type[type[base_responses]], modifier[public static], parameter[client, resources]] begin[{] local_variable[type[base_responses], result] if[binary_operation[binary_operation[member[.resources], !=, literal[null]], &&, binary_operatio...
Keyword[public] Keyword[static] identifier[base_responses] identifier[delete] operator[SEP] identifier[nitro_service] identifier[client] , identifier[ntpserver] identifier[resources] operator[SEP] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[base_responses] identifier[result] o...
private static void changeScene(@NonNull Scene scene, @Nullable Transition transition) { final ViewGroup sceneRoot = scene.getSceneRoot(); if (!sPendingTransitions.contains(sceneRoot)) { Transition transitionClone = null; if (isTransitionsAllowed()) { sPendingTra...
class class_name[name] begin[{] method[changeScene, return_type[void], modifier[private static], parameter[scene, transition]] begin[{] local_variable[type[ViewGroup], sceneRoot] if[call[sPendingTransitions.contains, parameter[member[.sceneRoot]]]] begin[{] local_variable[ty...
Keyword[private] Keyword[static] Keyword[void] identifier[changeScene] operator[SEP] annotation[@] identifier[NonNull] identifier[Scene] identifier[scene] , annotation[@] identifier[Nullable] identifier[Transition] identifier[transition] operator[SEP] { Keyword[final] identifier[ViewGroup] identifier[sceneRoot]...
public long getTotalBytesOnTiersOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.Long> map = internalGetTotalBytesOnTiers().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumen...
class class_name[name] begin[{] method[getTotalBytesOnTiersOrThrow, return_type[type[long]], modifier[public], parameter[key]] begin[{] if[binary_operation[member[.key], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arg...
Keyword[public] Keyword[long] identifier[getTotalBytesOnTiersOrThrow] operator[SEP] identifier[java] operator[SEP] identifier[lang] operator[SEP] identifier[String] identifier[key] operator[SEP] { Keyword[if] operator[SEP] identifier[key] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword...
private void doUndeploy(final Message<JsonObject> message) { // If we're undeploying a network then it needs to be handled differently by // selecting the node on which the network is deployed. String type = message.body().getString("type"); if (type.equals("network")) { doUndeployNetwork(message)...
class class_name[name] begin[{] method[doUndeploy, return_type[void], modifier[private], parameter[message]] begin[{] local_variable[type[String], type] if[call[type.equals, parameter[literal["network"]]]] begin[{] call[.doUndeployNetwork, parameter[member[.messa...
Keyword[private] Keyword[void] identifier[doUndeploy] operator[SEP] Keyword[final] identifier[Message] operator[<] identifier[JsonObject] operator[>] identifier[message] operator[SEP] { identifier[String] identifier[type] operator[=] identifier[message] operator[SEP] identifier[body] operator[SEP] operator[SEP] ...
public static void appendEpochMillis(StringBuilder buf, long timeMillis) { buf.append(dateTimeFormatter.format(Instant.ofEpochMilli(timeMillis))) .append('(').append(timeMillis).append(')'); }
class class_name[name] begin[{] method[appendEpochMillis, return_type[void], modifier[public static], parameter[buf, timeMillis]] begin[{] call[buf.append, parameter[call[dateTimeFormatter.format, parameter[call[Instant.ofEpochMilli, parameter[member[.timeMillis]]]]]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[appendEpochMillis] operator[SEP] identifier[StringBuilder] identifier[buf] , Keyword[long] identifier[timeMillis] operator[SEP] { identifier[buf] operator[SEP] identifier[append] operator[SEP] identifier[dateTimeFormatter] operator[SEP] identifier[format]...
public static BasicCredentials parse(String input) { if (input == null) { return null; } Matcher matcher = CHALLENGE_PATTERN.matcher(input); if (matcher.matches() == false) { return new BasicCredentials(null, null); } ...
class class_name[name] begin[{] method[parse, return_type[type[BasicCredentials]], modifier[public static], parameter[input]] begin[{] if[binary_operation[member[.input], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] local_varia...
Keyword[public] Keyword[static] identifier[BasicCredentials] identifier[parse] operator[SEP] identifier[String] identifier[input] operator[SEP] { Keyword[if] operator[SEP] identifier[input] operator[==] Other[null] operator[SEP] { Keyword[return] Other[null] operator[SEP] } identifier[Ma...
public List<Pair<Integer, Integer>> commonPrefixSearch(byte[] key, int offset, int maxResults) { ArrayList<Pair<Integer, Integer>> result = new ArrayList<Pair<Integer, Integer>>(); i...
class class_name[name] begin[{] method[commonPrefixSearch, return_type[type[List]], modifier[public], parameter[key, offset, maxResults]] begin[{] local_variable[type[ArrayList], result] local_variable[type[int], unit] local_variable[type[int], nodePos] assign[member[.no...
Keyword[public] identifier[List] operator[<] identifier[Pair] operator[<] identifier[Integer] , identifier[Integer] operator[>] operator[>] identifier[commonPrefixSearch] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[key] , Keyword[int] identifier[offset] , Keyword[int] identifier[maxResults] op...
public static String stringFor(int n) { switch (n) { case CUBLAS_GEMM_DEFAULT: return "CUBLAS_GEMM_DEFAULT"; case CUBLAS_GEMM_ALGO0: return "CUBLAS_GEMM_ALGO0"; case CUBLAS_GEMM_ALGO1: return "CUBLAS_GEMM_ALGO1"; case CUBLAS_GEMM_ALGO2: return "...
class class_name[name] begin[{] method[stringFor, return_type[type[String]], modifier[public static], parameter[n]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['CUBLAS_GEMM_DEFAULT'], statements=[ReturnStatement(expression=Literal(postfix_operators=[], prefix_operators=[], qualifier=None,...
Keyword[public] Keyword[static] identifier[String] identifier[stringFor] operator[SEP] Keyword[int] identifier[n] operator[SEP] { Keyword[switch] operator[SEP] identifier[n] operator[SEP] { Keyword[case] identifier[CUBLAS_GEMM_DEFAULT] operator[:] Keyword[return] literal[String] operator[SEP] Keyword...
public static List<BeanMappingObject> parseMapping(Class src, Class target) throws BeanMappingException { List<BeanMappingObject> result = new ArrayList<BeanMappingObject>(2); PropertyDescriptor[] targetPds = ReflectionHelper.getPropertyDescriptors(target); PropertyDescriptor[] srcPds = Reflecti...
class class_name[name] begin[{] method[parseMapping, return_type[type[List]], modifier[public static], parameter[src, target]] begin[{] local_variable[type[List], result] local_variable[type[PropertyDescriptor], targetPds] local_variable[type[PropertyDescriptor], srcPds] local_v...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[BeanMappingObject] operator[>] identifier[parseMapping] operator[SEP] identifier[Class] identifier[src] , identifier[Class] identifier[target] operator[SEP] Keyword[throws] identifier[BeanMappingException] { identifier[List] operator[<] ide...
Bitmap generateGradient() { int[][] pixels = new int[1080][1920]; for (int y = 0; y < 1080; y++) { for (int x = 0; x < 1920; x++) { int r = (int) (y / 1080f * 255); int g = (int) (x / 1920f * 255); int b = (int) ((Math.hypot(x, y) / Math.hypot(1080, 1920)) * 255); pixels[y]...
class class_name[name] begin[{] method[generateGradient, return_type[type[Bitmap]], modifier[default], parameter[]] begin[{] local_variable[type[int], pixels] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclarati...
identifier[Bitmap] identifier[generateGradient] operator[SEP] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[pixels] operator[=] Keyword[new] Keyword[int] operator[SEP] Other[1080] operator[SEP] operator[SEP] Other[1920] operator[SEP] operator[SEP] Keyword[for] op...
@Override public WSStepThreadExecutionAggregate getStepExecutionAggregateFromJobExecutionNumberAndStepName(long jobInstanceId, short jobExecNum, ...
class class_name[name] begin[{] method[getStepExecutionAggregateFromJobExecutionNumberAndStepName, return_type[type[WSStepThreadExecutionAggregate]], modifier[public], parameter[jobInstanceId, jobExecNum, stepName]] begin[{] if[binary_operation[member[.authService], !=, literal[null]]] begin[{]...
annotation[@] identifier[Override] Keyword[public] identifier[WSStepThreadExecutionAggregate] identifier[getStepExecutionAggregateFromJobExecutionNumberAndStepName] operator[SEP] Keyword[long] identifier[jobInstanceId] , Keyword[short] identifier[jobExecNum] , identifier[String] identifier[stepName] operator[SEP] Key...
public static boolean isUptodate( PlexusIoResource source, long destinationDate ) { final long s = source.getLastModified(); if ( s == PlexusIoResource.UNKNOWN_MODIFICATION_DATE ) { return false; } if ( destinationDate == 0 ) { return false; ...
class class_name[name] begin[{] method[isUptodate, return_type[type[boolean]], modifier[public static], parameter[source, destinationDate]] begin[{] local_variable[type[long], s] if[binary_operation[member[.s], ==, member[PlexusIoResource.UNKNOWN_MODIFICATION_DATE]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isUptodate] operator[SEP] identifier[PlexusIoResource] identifier[source] , Keyword[long] identifier[destinationDate] operator[SEP] { Keyword[final] Keyword[long] identifier[s] operator[=] identifier[source] operator[SEP] identifier[getLastModified] op...
private void action(int d) throws IOException, JSMinException { switch (d) { case 1: write(theA); if ((theY == '\n' || theY == ' ') && (theA == '+' || theA == '-' || theA == '*' || theA == '/') && (theB == '+' || theB == '-' || theB == '*' || theB == '/')) { write(theY); } case 2: theA = theB...
class class_name[name] begin[{] method[action, return_type[void], modifier[private], parameter[d]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=1)], statements=[StatementExpression(expression=MethodInvoc...
Keyword[private] Keyword[void] identifier[action] operator[SEP] Keyword[int] identifier[d] operator[SEP] Keyword[throws] identifier[IOException] , identifier[JSMinException] { Keyword[switch] operator[SEP] identifier[d] operator[SEP] { Keyword[case] Other[1] operator[:] identifier[write] operator[SE...
public static Optional<Optional<byte[]>> readMaybeOptRangedBytes(ByteBuf bf) { Optional<Integer> l = readMaybeSignedInt(bf); if (l.isPresent()) { int length = l.get(); if (length < 0) { return Optional.of(Optional.empty()); } else { Optional<byte[]> rb = re...
class class_name[name] begin[{] method[readMaybeOptRangedBytes, return_type[type[Optional]], modifier[public static], parameter[bf]] begin[{] local_variable[type[Optional], l] if[call[l.isPresent, parameter[]]] begin[{] local_variable[type[int], length] ...
Keyword[public] Keyword[static] identifier[Optional] operator[<] identifier[Optional] operator[<] Keyword[byte] operator[SEP] operator[SEP] operator[>] operator[>] identifier[readMaybeOptRangedBytes] operator[SEP] identifier[ByteBuf] identifier[bf] operator[SEP] { identifier[Optional] operator[<] identifier[Inte...
void translate() { make.at(pos.getStartPosition()); JCClassDecl owner = classDef((ClassSymbol)mapVar.owner); // synthetic static final int[] $SwitchMap$Color = new int[Color.values().length]; MethodSymbol valuesMethod = lookupMethod(pos, ...
class class_name[name] begin[{] method[translate, return_type[void], modifier[default], parameter[]] begin[{] call[make.at, parameter[call[pos.getStartPosition, parameter[]]]] local_variable[type[JCClassDecl], owner] local_variable[type[MethodSymbol], valuesMethod] local...
Keyword[void] identifier[translate] operator[SEP] operator[SEP] { identifier[make] operator[SEP] identifier[at] operator[SEP] identifier[pos] operator[SEP] identifier[getStartPosition] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[JCClassDecl] identifier[owner] operator[=] identifier[classDe...
public static ZonedDateTime of( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneId zone) { LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); return ofLocal(dt, zone, null); }
class class_name[name] begin[{] method[of, return_type[type[ZonedDateTime]], modifier[public static], parameter[year, month, dayOfMonth, hour, minute, second, nanoOfSecond, zone]] begin[{] local_variable[type[LocalDateTime], dt] return[call[.ofLocal, parameter[member[.dt], member[.zone], litera...
Keyword[public] Keyword[static] identifier[ZonedDateTime] identifier[of] operator[SEP] Keyword[int] identifier[year] , Keyword[int] identifier[month] , Keyword[int] identifier[dayOfMonth] , Keyword[int] identifier[hour] , Keyword[int] identifier[minute] , Keyword[int] identifier[second] , Keyword[int] identifier[...
@Override public UniversalIdIntQueueMessage fromBytes(byte[] data) { try { UniversalIdIntQueueMessage other = BaseUniversalQueueMessage.fromBytes(data, UniversalIdIntQueueMessage.class); fromMap(other.toMap()); return this; } catch (Instantiati...
class class_name[name] begin[{] method[fromBytes, return_type[type[UniversalIdIntQueueMessage]], modifier[public], parameter[data]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReferenc...
annotation[@] identifier[Override] Keyword[public] identifier[UniversalIdIntQueueMessage] identifier[fromBytes] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] operator[SEP] { Keyword[try] { identifier[UniversalIdIntQueueMessage] identifier[other] operator[=] identifier[BaseUn...
public static TranslatableComponent of(final @NonNull String key, final @Nullable TextColor color) { return builder(key) .color(color) .build(); }
class class_name[name] begin[{] method[of, return_type[type[TranslatableComponent]], modifier[public static], parameter[key, color]] begin[{] return[call[.builder, parameter[member[.key]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[TranslatableComponent] identifier[of] operator[SEP] Keyword[final] annotation[@] identifier[NonNull] identifier[String] identifier[key] , Keyword[final] annotation[@] identifier[Nullable] identifier[TextColor] identifier[color] operator[SEP] { Keyword[return] identifie...
public void process( D derivX , D derivY , GrayU8 binaryEdges ) { InputSanityCheck.checkSameShape(derivX,derivY,binaryEdges); int w = derivX.width-regionSize+1; int h = derivY.height-regionSize+1; foundLines.reshape(derivX.width / regionSize, derivX.height / regionSize); foundLines.reset(); // avoid par...
class class_name[name] begin[{] method[process, return_type[void], modifier[public], parameter[derivX, derivY, binaryEdges]] begin[{] call[InputSanityCheck.checkSameShape, parameter[member[.derivX], member[.derivY], member[.binaryEdges]]] local_variable[type[int], w] local_varia...
Keyword[public] Keyword[void] identifier[process] operator[SEP] identifier[D] identifier[derivX] , identifier[D] identifier[derivY] , identifier[GrayU8] identifier[binaryEdges] operator[SEP] { identifier[InputSanityCheck] operator[SEP] identifier[checkSameShape] operator[SEP] identifier[derivX] , identifier[d...
public static BufferedImage toBuffered(RenderedImage pOriginal, int pType) { // Don't convert if it already is BufferedImage and correct type if ((pOriginal instanceof BufferedImage) && ((BufferedImage) pOriginal).getType() == pType) { return (BufferedImage) pOriginal; } ...
class class_name[name] begin[{] method[toBuffered, return_type[type[BufferedImage]], modifier[public static], parameter[pOriginal, pType]] begin[{] if[binary_operation[binary_operation[member[.pOriginal], instanceof, type[BufferedImage]], &&, binary_operation[Cast(expression=MemberReference(mem...
Keyword[public] Keyword[static] identifier[BufferedImage] identifier[toBuffered] operator[SEP] identifier[RenderedImage] identifier[pOriginal] , Keyword[int] identifier[pType] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[pOriginal] Keyword[instanceof] identifier[BufferedImage] operator[SEP...
public void assignIDsToRigidPoints() { // return if it has already been assigned if( lookupRigid != null ) return; // Assign a unique ID to each point belonging to a rigid object // at the same time create a look up table that allows for the object that a point belongs to be quickly found lookupRigid = new...
class class_name[name] begin[{] method[assignIDsToRigidPoints, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.lookupRigid], !=, literal[null]]] begin[{] return[None] else begin[{] None end[}] assign[member[.lookupRigid], Ar...
Keyword[public] Keyword[void] identifier[assignIDsToRigidPoints] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[lookupRigid] operator[!=] Other[null] operator[SEP] Keyword[return] operator[SEP] identifier[lookupRigid] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[getTotalRigi...
public boolean doesNotContainContinueOrBreak(Instruction _start, Instruction _extent) { boolean ok = true; boolean breakOrContinue = false; for (Instruction i = _start; i != null; i = i.getNextExpr()) { if (i.isBranch()) { if (i.asBranch().isForwardUnconditional() && i.asBranch()....
class class_name[name] begin[{] method[doesNotContainContinueOrBreak, return_type[type[boolean]], modifier[public], parameter[_start, _extent]] begin[{] local_variable[type[boolean], ok] local_variable[type[boolean], breakOrContinue] ForStatement(body=BlockStatement(label=None, statemen...
Keyword[public] Keyword[boolean] identifier[doesNotContainContinueOrBreak] operator[SEP] identifier[Instruction] identifier[_start] , identifier[Instruction] identifier[_extent] operator[SEP] { Keyword[boolean] identifier[ok] operator[=] literal[boolean] operator[SEP] Keyword[boolean] identifier[breakOrContinue...
protected boolean removeSegment(int segmentIndex) { if ((this.values == null) || (segmentIndex < 0) || (segmentIndex >= this.values.length - 1)) { return false; } if (this.values.length == 2) { this.values = null; this.size = 0; } else { final int count = this.values[segmentIndex + 1] - this.va...
class class_name[name] begin[{] method[removeSegment, return_type[type[boolean]], modifier[protected], parameter[segmentIndex]] begin[{] if[binary_operation[binary_operation[binary_operation[THIS[member[None.values]], ==, literal[null]], ||, binary_operation[member[.segmentIndex], <, literal[0]...
Keyword[protected] Keyword[boolean] identifier[removeSegment] operator[SEP] Keyword[int] identifier[segmentIndex] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[values] operator[==] Other[null] operator[SEP] operator[||] operator[SEP] identifier[segmentIndex] opera...
public static DecoratedKey getMinimalKey(DecoratedKey key) { return key.getKey().position() > 0 || key.getKey().hasRemaining() || !key.getKey().hasArray() ? new BufferDecoratedKey(key.getToken(), HeapAllocator.instance.clone(key.getKey())) ...
class class_name[name] begin[{] method[getMinimalKey, return_type[type[DecoratedKey]], modifier[public static], parameter[key]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getKey, postfix_op...
Keyword[public] Keyword[static] identifier[DecoratedKey] identifier[getMinimalKey] operator[SEP] identifier[DecoratedKey] identifier[key] operator[SEP] { Keyword[return] identifier[key] operator[SEP] identifier[getKey] operator[SEP] operator[SEP] operator[SEP] identifier[position] operator[SEP] operator[SEP] ope...
public static String xor(String string, String key) { return xor(string, CryptUtils.stringToKey(string)); }
class class_name[name] begin[{] method[xor, return_type[type[String]], modifier[public static], parameter[string, key]] begin[{] return[call[.xor, parameter[member[.string], call[CryptUtils.stringToKey, parameter[member[.string]]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[xor] operator[SEP] identifier[String] identifier[string] , identifier[String] identifier[key] operator[SEP] { Keyword[return] identifier[xor] operator[SEP] identifier[string] , identifier[CryptUtils] operator[SEP] identifier[stringToKey] operator[SE...
void toggleSelectOU() { boolean create = m_fieldCreateOU.getValue().booleanValue(); m_fieldSelectOU.setEnabled(!create); m_fieldSelectParentOU.setEnabled(create); m_fieldSelectOU.select("/"); }
class class_name[name] begin[{] method[toggleSelectOU, return_type[void], modifier[default], parameter[]] begin[{] local_variable[type[boolean], create] call[m_fieldSelectOU.setEnabled, parameter[member[.create]]] call[m_fieldSelectParentOU.setEnabled, parameter[member[....
Keyword[void] identifier[toggleSelectOU] operator[SEP] operator[SEP] { Keyword[boolean] identifier[create] operator[=] identifier[m_fieldCreateOU] operator[SEP] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] identifier[booleanValue] operator[SEP] operator[SEP] operator[SEP] identifier[m_fieldSele...
public WindowsFileSystemConfiguration withMaintenanceOperationsInProgress(String... maintenanceOperationsInProgress) { if (this.maintenanceOperationsInProgress == null) { setMaintenanceOperationsInProgress(new java.util.ArrayList<String>(maintenanceOperationsInProgress.length)); } fo...
class class_name[name] begin[{] method[withMaintenanceOperationsInProgress, return_type[type[WindowsFileSystemConfiguration]], modifier[public], parameter[maintenanceOperationsInProgress]] begin[{] if[binary_operation[THIS[member[None.maintenanceOperationsInProgress]], ==, literal[null]]] begin...
Keyword[public] identifier[WindowsFileSystemConfiguration] identifier[withMaintenanceOperationsInProgress] operator[SEP] identifier[String] operator[...] identifier[maintenanceOperationsInProgress] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[maintenanceOperationsInProgress] o...
public void setAlgorithm(SecretKeyFactoryAlgorithm secretKeyFactoryAlgorithm) { if (secretKeyFactoryAlgorithm == null) { throw new IllegalArgumentException("secretKeyFactoryAlgorithm cannot be null"); } String algorithmName = secretKeyFactoryAlgorithm.name(); try { SecretKeyFactory.getInstance(algorithmNa...
class class_name[name] begin[{] method[setAlgorithm, return_type[void], modifier[public], parameter[secretKeyFactoryAlgorithm]] begin[{] if[binary_operation[member[.secretKeyFactoryAlgorithm], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(pos...
Keyword[public] Keyword[void] identifier[setAlgorithm] operator[SEP] identifier[SecretKeyFactoryAlgorithm] identifier[secretKeyFactoryAlgorithm] operator[SEP] { Keyword[if] operator[SEP] identifier[secretKeyFactoryAlgorithm] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifi...
@Override public void declineCheckpoint(DeclineCheckpoint decline) { final CheckpointCoordinator checkpointCoordinator = executionGraph.getCheckpointCoordinator(); if (checkpointCoordinator != null) { getRpcService().execute(() -> { try { checkpointCoordinator.receiveDeclineMessage(decline); } cat...
class class_name[name] begin[{] method[declineCheckpoint, return_type[void], modifier[public], parameter[decline]] begin[{] local_variable[type[CheckpointCoordinator], checkpointCoordinator] if[binary_operation[member[.checkpointCoordinator], !=, literal[null]]] begin[{] ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[declineCheckpoint] operator[SEP] identifier[DeclineCheckpoint] identifier[decline] operator[SEP] { Keyword[final] identifier[CheckpointCoordinator] identifier[checkpointCoordinator] operator[=] identifier[executionGraph] operator[SEP] id...
public Binder prepend(Class<?> type, Object value) { return new Binder(this, new Insert(0, new Class[]{type}, value)); }
class class_name[name] begin[{] method[prepend, return_type[type[Binder]], modifier[public], parameter[type, value]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operat...
Keyword[public] identifier[Binder] identifier[prepend] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[type] , identifier[Object] identifier[value] operator[SEP] { Keyword[return] Keyword[new] identifier[Binder] operator[SEP] Keyword[this] , Keyword[new] identifier[Insert] operat...
public int compare(final ParentStep p1, final ParentStep p2) { return p1.getParent().getLine().compareTo(p2.getParent().getLine()); }
class class_name[name] begin[{] method[compare, return_type[type[int]], modifier[public], parameter[p1, p2]] begin[{] return[call[p1.getParent, parameter[]]] end[}] END[}]
Keyword[public] Keyword[int] identifier[compare] operator[SEP] Keyword[final] identifier[ParentStep] identifier[p1] , Keyword[final] identifier[ParentStep] identifier[p2] operator[SEP] { Keyword[return] identifier[p1] operator[SEP] identifier[getParent] operator[SEP] operator[SEP] operator[SEP] identifier[getLi...
public static Object[] cast(Class<?> type, Object arrayObj) throws NullPointerException, IllegalArgumentException { if (null == arrayObj) { throw new NullPointerException("Argument [arrayObj] is null !"); } if (false == arrayObj.getClass().isArray()) { throw new IllegalArgumentException("Argument [arra...
class class_name[name] begin[{] method[cast, return_type[type[Object]], modifier[public static], parameter[type, arrayObj]] begin[{] if[binary_operation[literal[null], ==, member[.arrayObj]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pr...
Keyword[public] Keyword[static] identifier[Object] operator[SEP] operator[SEP] identifier[cast] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[type] , identifier[Object] identifier[arrayObj] operator[SEP] Keyword[throws] identifier[NullPointerException] , identifier[IllegalArgumentExce...
public static base_response renumber(nitro_service client) throws Exception { nsacls renumberresource = new nsacls(); return renumberresource.perform_operation(client,"renumber"); }
class class_name[name] begin[{] method[renumber, return_type[type[base_response]], modifier[public static], parameter[client]] begin[{] local_variable[type[nsacls], renumberresource] return[call[renumberresource.perform_operation, parameter[member[.client], literal["renumber"]]]] end[}] END...
Keyword[public] Keyword[static] identifier[base_response] identifier[renumber] operator[SEP] identifier[nitro_service] identifier[client] operator[SEP] Keyword[throws] identifier[Exception] { identifier[nsacls] identifier[renumberresource] operator[=] Keyword[new] identifier[nsacls] operator[SEP] operator[SEP] o...
protected void createFlattenedDependencies( Model effectiveModel, List<Dependency> flattenedDependencies ) { getLog().debug( "Resolving dependencies of " + effectiveModel.getId() ); // this.project.getDependencies() already contains the inherited dependencies but also those from profiles //...
class class_name[name] begin[{] method[createFlattenedDependencies, return_type[void], modifier[protected], parameter[effectiveModel, flattenedDependencies]] begin[{] call[.getLog, parameter[]] local_variable[type[List], projectDependencies] ForStatement(body=BlockStatement(labe...
Keyword[protected] Keyword[void] identifier[createFlattenedDependencies] operator[SEP] identifier[Model] identifier[effectiveModel] , identifier[List] operator[<] identifier[Dependency] operator[>] identifier[flattenedDependencies] operator[SEP] { identifier[getLog] operator[SEP] operator[SEP] operator[SEP] ide...
protected boolean match(final URI uri) { final String methodName = "match"; final String uriStr = prepareUri(uri); if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) { Tr.debug(tc, methodName, this, uriStr, ignoreCase, wildcard); } if (this.matcher ==...
class class_name[name] begin[{] method[match, return_type[type[boolean]], modifier[protected], parameter[uri]] begin[{] local_variable[type[String], methodName] local_variable[type[String], uriStr] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, ca...
Keyword[protected] Keyword[boolean] identifier[match] operator[SEP] Keyword[final] identifier[URI] identifier[uri] operator[SEP] { Keyword[final] identifier[String] identifier[methodName] operator[=] literal[String] operator[SEP] Keyword[final] identifier[String] identifier[uriStr] operator[=] identifier[prepare...
private static double pointsDistance(Point a, Point b) { int dx = b.x - a.x; int dy = b.y - a.y; return Math.sqrt(dx * dx + dy * dy); }
class class_name[name] begin[{] method[pointsDistance, return_type[type[double]], modifier[private static], parameter[a, b]] begin[{] local_variable[type[int], dx] local_variable[type[int], dy] return[call[Math.sqrt, parameter[binary_operation[binary_operation[member[.dx], *, member[.dx...
Keyword[private] Keyword[static] Keyword[double] identifier[pointsDistance] operator[SEP] identifier[Point] identifier[a] , identifier[Point] identifier[b] operator[SEP] { Keyword[int] identifier[dx] operator[=] identifier[b] operator[SEP] identifier[x] operator[-] identifier[a] operator[SEP] identifier[x] oper...
@SafeVarargs public final RandomICAutomatonGenerator<SP, TP> withTransitionProperties(TP... possibleTps) { if (possibleTps.length == 0) { return withTransitionProperties(r -> null); } return withTransitionProperties(Arrays.asList(possibleTps)); }
class class_name[name] begin[{] method[withTransitionProperties, return_type[type[RandomICAutomatonGenerator]], modifier[final public], parameter[possibleTps]] begin[{] if[binary_operation[member[possibleTps.length], ==, literal[0]]] begin[{] return[call[.withTransitionProperties, p...
annotation[@] identifier[SafeVarargs] Keyword[public] Keyword[final] identifier[RandomICAutomatonGenerator] operator[<] identifier[SP] , identifier[TP] operator[>] identifier[withTransitionProperties] operator[SEP] identifier[TP] operator[...] identifier[possibleTps] operator[SEP] { Keyword[if] operator[SEP] id...
private static List<Fragment> planForConjunction(ConjunctionQuery query, TransactionOLTP tx) { // a query plan is an ordered list of fragments final List<Fragment> plan = new ArrayList<>(); // flatten all the possible fragments from the conjunction query (these become edges in the query graph) ...
class class_name[name] begin[{] method[planForConjunction, return_type[type[List]], modifier[private static], parameter[query, tx]] begin[{] local_variable[type[List], plan] local_variable[type[Set], allFragments] local_variable[type[Set], inferredFragments] call[allFrag...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[Fragment] operator[>] identifier[planForConjunction] operator[SEP] identifier[ConjunctionQuery] identifier[query] , identifier[TransactionOLTP] identifier[tx] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[Fragment]...
protected String getIndexName(String indexPrefix, long timestamp) { return new StringBuilder(indexPrefix).append('-') .append(fastDateFormat.format(timestamp)).toString(); }
class class_name[name] begin[{] method[getIndexName, return_type[type[String]], modifier[protected], parameter[indexPrefix, timestamp]] begin[{] return[ClassCreator(arguments=[MemberReference(member=indexPrefix, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, construct...
Keyword[protected] identifier[String] identifier[getIndexName] operator[SEP] identifier[String] identifier[indexPrefix] , Keyword[long] identifier[timestamp] operator[SEP] { Keyword[return] Keyword[new] identifier[StringBuilder] operator[SEP] identifier[indexPrefix] operator[SEP] operator[SEP] identifier[append...
public Pager<Label> getLabels(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException { return (new Pager<Label>(this, Label.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "labels")); }
class class_name[name] begin[{] method[getLabels, return_type[type[Pager]], modifier[public], parameter[projectIdOrPath, itemsPerPage]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), ClassReference(postfix_operators=[], prefix_oper...
Keyword[public] identifier[Pager] operator[<] identifier[Label] operator[>] identifier[getLabels] operator[SEP] identifier[Object] identifier[projectIdOrPath] , Keyword[int] identifier[itemsPerPage] operator[SEP] Keyword[throws] identifier[GitLabApiException] { Keyword[return] operator[SEP] Keyword[new] identif...
public int readLine(byte b[], int off, int len) throws IOException { int result, left = totalExpected - totalRead; if (left <= 0) { return -1; } else { result = ((ServletInputStream)in).readLine(b, off, Math.min(left, len)); } if (result > 0) { totalRead += result; } return...
class class_name[name] begin[{] method[readLine, return_type[type[int]], modifier[public], parameter[b, off, len]] begin[{] local_variable[type[int], result] if[binary_operation[member[.left], <=, literal[0]]] begin[{] return[literal[1]] else begin[{] ...
Keyword[public] Keyword[int] identifier[readLine] operator[SEP] Keyword[byte] identifier[b] operator[SEP] operator[SEP] , Keyword[int] identifier[off] , Keyword[int] identifier[len] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[int] identifier[result] , identifier[left] operator[=] identifie...
TouchPipeline getBasePipeline() { if (basePipeline == null) { basePipeline = new TouchPipeline(); String[] touchFilterNames = AccessController.doPrivileged( (PrivilegedAction<String>) () -> System.getProperty( "monocle.input.touchFilters", ...
class class_name[name] begin[{] method[getBasePipeline, return_type[type[TouchPipeline]], modifier[default], parameter[]] begin[{] if[binary_operation[member[.basePipeline], ==, literal[null]]] begin[{] assign[member[.basePipeline], ClassCreator(arguments=[], body=None, ...
identifier[TouchPipeline] identifier[getBasePipeline] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[basePipeline] operator[==] Other[null] operator[SEP] { identifier[basePipeline] operator[=] Keyword[new] identifier[TouchPipeline] operator[SEP] operator[SEP] operator[SEP] identifi...
public static Locale locale(ITemplate template) { if (null != template) { return template.__curLocale(); } Locale retval; RythmEngine engine = RythmEngine.get(); if (null != engine) { retval = engine.conf().locale(); } else { retval = R...
class class_name[name] begin[{] method[locale, return_type[type[Locale]], modifier[public static], parameter[template]] begin[{] if[binary_operation[literal[null], !=, member[.template]]] begin[{] return[call[template.__curLocale, parameter[]]] else begin[{] None end...
Keyword[public] Keyword[static] identifier[Locale] identifier[locale] operator[SEP] identifier[ITemplate] identifier[template] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[!=] identifier[template] operator[SEP] { Keyword[return] identifier[template] operator[SEP] identifier[__curLoca...
public MergeRequest cancelMergeRequest(Object projectIdOrPath, Integer mergeRequestIid) throws GitLabApiException { if (mergeRequestIid == null) { throw new RuntimeException("mergeRequestIid cannot be null"); } Response response = put(Response.Status.OK, null, "projects", getProjec...
class class_name[name] begin[{] method[cancelMergeRequest, return_type[type[MergeRequest]], modifier[public], parameter[projectIdOrPath, mergeRequestIid]] begin[{] if[binary_operation[member[.mergeRequestIid], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argum...
Keyword[public] identifier[MergeRequest] identifier[cancelMergeRequest] operator[SEP] identifier[Object] identifier[projectIdOrPath] , identifier[Integer] identifier[mergeRequestIid] operator[SEP] Keyword[throws] identifier[GitLabApiException] { Keyword[if] operator[SEP] identifier[mergeRequestIid] operator[==]...
@Override public int doEndTag() throws JspException { /* * Use the SQL statement specified by the sql attribute, if any, * otherwise use the body as the statement. */ String sqlStatement = null; if (sql != null) { sqlStatement = sql; } else if (bodyContent != null) { sqlStatement = bodyCo...
class class_name[name] begin[{] method[doEndTag, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[String], sqlStatement] if[binary_operation[member[.sql], !=, literal[null]]] begin[{] assign[member[.sqlStatement], member[.sql]] ...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[doEndTag] operator[SEP] operator[SEP] Keyword[throws] identifier[JspException] { identifier[String] identifier[sqlStatement] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[sql] operator[!=] Other[null] operator...
public void setName(final CompilerEnum name) throws BuildException { if (isReference()) { throw tooManyAttributes(); } final Compiler compiler = name.getCompiler(); setProcessor(compiler); }
class class_name[name] begin[{] method[setName, return_type[void], modifier[public], parameter[name]] begin[{] if[call[.isReference, parameter[]]] begin[{] ThrowStatement(expression=MethodInvocation(arguments=[], member=tooManyAttributes, postfix_operators=[], prefix_operators=[], q...
Keyword[public] Keyword[void] identifier[setName] operator[SEP] Keyword[final] identifier[CompilerEnum] identifier[name] operator[SEP] Keyword[throws] identifier[BuildException] { Keyword[if] operator[SEP] identifier[isReference] operator[SEP] operator[SEP] operator[SEP] { Keyword[throw] identifier[to...
protected void reopenCameraAtResolution(int cameraWidth, int cameraHeight) { if (Looper.getMainLooper().getThread() != Thread.currentThread()) { throw new RuntimeException("Attempted to reopenCameraAtResolution main looper thread!"); } boolean releaseLock = true; open.mLock.lock(); try { if (verbose) ...
class class_name[name] begin[{] method[reopenCameraAtResolution, return_type[void], modifier[protected], parameter[cameraWidth, cameraHeight]] begin[{] if[binary_operation[call[Looper.getMainLooper, parameter[]], !=, call[Thread.currentThread, parameter[]]]] begin[{] ThrowStatement(...
Keyword[protected] Keyword[void] identifier[reopenCameraAtResolution] operator[SEP] Keyword[int] identifier[cameraWidth] , Keyword[int] identifier[cameraHeight] operator[SEP] { Keyword[if] operator[SEP] identifier[Looper] operator[SEP] identifier[getMainLooper] operator[SEP] operator[SEP] operator[SEP] identifi...
public static CmsContentDefinition prefetch(HttpServletRequest request) throws CmsRpcException { CmsContentService srv = new CmsContentService(); srv.setCms(CmsFlexController.getCmsObject(request)); srv.setRequest(request); CmsContentDefinition result = null; try { r...
class class_name[name] begin[{] method[prefetch, return_type[type[CmsContentDefinition]], modifier[public static], parameter[request]] begin[{] local_variable[type[CmsContentService], srv] call[srv.setCms, parameter[call[CmsFlexController.getCmsObject, parameter[member[.request]]]]] ...
Keyword[public] Keyword[static] identifier[CmsContentDefinition] identifier[prefetch] operator[SEP] identifier[HttpServletRequest] identifier[request] operator[SEP] Keyword[throws] identifier[CmsRpcException] { identifier[CmsContentService] identifier[srv] operator[=] Keyword[new] identifier[CmsContentService] o...
protected HttpURLConnection generateConn() throws IOException { HttpURLConnection conn; conn = (HttpURLConnection) new URL(url).openConnection(); return conn; }
class class_name[name] begin[{] method[generateConn, return_type[type[HttpURLConnection]], modifier[protected], parameter[]] begin[{] local_variable[type[HttpURLConnection], conn] assign[member[.conn], Cast(expression=ClassCreator(arguments=[MemberReference(member=url, postfix_operators...
Keyword[protected] identifier[HttpURLConnection] identifier[generateConn] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[HttpURLConnection] identifier[conn] operator[SEP] identifier[conn] operator[=] operator[SEP] identifier[HttpURLConnection] operator[SEP] Keyword[new] identifi...
@NotNull public <R> Stream<R> mapIndexed(int from, int step, @NotNull IndexedFunction<? super T, ? extends R> mapper) { return new Stream<R>(params, new ObjMapIndexed<T, R>( new IndexedIterator<T>(from, step, iterator), mapper)); }
class class_name[name] begin[{] method[mapIndexed, return_type[type[Stream]], modifier[public], parameter[from, step, mapper]] begin[{] return[ClassCreator(arguments=[MemberReference(member=params, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassCreator(arguments=[ClassCreato...
annotation[@] identifier[NotNull] Keyword[public] operator[<] identifier[R] operator[>] identifier[Stream] operator[<] identifier[R] operator[>] identifier[mapIndexed] operator[SEP] Keyword[int] identifier[from] , Keyword[int] identifier[step] , annotation[@] identifier[NotNull] identifier[IndexedFunction] operator[<...
public boolean track(TopologyAPI.StreamId stream, long ts) { Long currentVal = streamToTs.get(stream); if (currentVal == null || ts > currentVal) { streamToTs.put(stream, ts); } return ts >= lastWaterMarkTs; }
class class_name[name] begin[{] method[track, return_type[type[boolean]], modifier[public], parameter[stream, ts]] begin[{] local_variable[type[Long], currentVal] if[binary_operation[binary_operation[member[.currentVal], ==, literal[null]], ||, binary_operation[member[.ts], >, member[.c...
Keyword[public] Keyword[boolean] identifier[track] operator[SEP] identifier[TopologyAPI] operator[SEP] identifier[StreamId] identifier[stream] , Keyword[long] identifier[ts] operator[SEP] { identifier[Long] identifier[currentVal] operator[=] identifier[streamToTs] operator[SEP] identifier[get] operator[SEP] ide...
public FieldList setHandle(Object bookmark, int iHandleType) throws DBException { FieldList record = super.setHandle(bookmark, iHandleType); Iterator<BaseTable> iterator = this.getTables(); while (iterator.hasNext()) { BaseTable table = iterator.next(); if ((t...
class class_name[name] begin[{] method[setHandle, return_type[type[FieldList]], modifier[public], parameter[bookmark, iHandleType]] begin[{] local_variable[type[FieldList], record] local_variable[type[Iterator], iterator] while[call[iterator.hasNext, parameter[]]] begin[{] ...
Keyword[public] identifier[FieldList] identifier[setHandle] operator[SEP] identifier[Object] identifier[bookmark] , Keyword[int] identifier[iHandleType] operator[SEP] Keyword[throws] identifier[DBException] { identifier[FieldList] identifier[record] operator[=] Keyword[super] operator[SEP] identifier[setHandle]...
public ChannelFuture connect(Session session, DatagramChannel datagramChannel, InetSocketAddress serverAddress, int timeout, TimeUnit unit) throws UnknownHostException, InterruptedException { if (null == datagramChannel) { throw new NullPointerException( "DatagramChannel passed to connect method c...
class class_name[name] begin[{] method[connect, return_type[type[ChannelFuture]], modifier[public], parameter[session, datagramChannel, serverAddress, timeout, unit]] begin[{] if[binary_operation[literal[null], ==, member[.datagramChannel]]] begin[{] ThrowStatement(expression=ClassC...
Keyword[public] identifier[ChannelFuture] identifier[connect] operator[SEP] identifier[Session] identifier[session] , identifier[DatagramChannel] identifier[datagramChannel] , identifier[InetSocketAddress] identifier[serverAddress] , Keyword[int] identifier[timeout] , identifier[TimeUnit] identifier[unit] operator[...
private static String simpleName(Class<?> clazz) { String name = clazz.getName(); // the nth anonymous class has a class name ending in "Outer$n" // and local inner classes have names ending in "Outer.$1Inner" name = name.replaceAll("\\$[0-9]+", "\\$"); // we want the name of t...
class class_name[name] begin[{] method[simpleName, return_type[type[String]], modifier[private static], parameter[clazz]] begin[{] local_variable[type[String], name] assign[member[.name], call[name.replaceAll, parameter[literal["\\$[0-9]+"], literal["\\$"]]]] local_variable[type...
Keyword[private] Keyword[static] identifier[String] identifier[simpleName] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { identifier[String] identifier[name] operator[=] identifier[clazz] operator[SEP] identifier[getName] operator[SEP] operator[SEP] operator...
public void add(String key, String value) { if(key == null) throw new IllegalArgumentException("Null keys not allowed."); if(value == null) throw new IllegalArgumentException("Null values not allowed."); List<String> vals = map.get(key); if(vals == null) ...
class class_name[name] begin[{] method[add, return_type[void], modifier[public], parameter[key, value]] begin[{] if[binary_operation[member[.key], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, se...
Keyword[public] Keyword[void] identifier[add] operator[SEP] identifier[String] identifier[key] , identifier[String] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[key] operator[==] Other[null] operator[SEP] Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] li...
public static CPMeasurementUnit fetchByG_P_T_Last(long groupId, boolean primary, int type, OrderByComparator<CPMeasurementUnit> orderByComparator) { return getPersistence() .fetchByG_P_T_Last(groupId, primary, type, orderByComparator); }
class class_name[name] begin[{] method[fetchByG_P_T_Last, return_type[type[CPMeasurementUnit]], modifier[public static], parameter[groupId, primary, type, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CPMeasurementUnit] identifier[fetchByG_P_T_Last] operator[SEP] Keyword[long] identifier[groupId] , Keyword[boolean] identifier[primary] , Keyword[int] identifier[type] , identifier[OrderByComparator] operator[<] identifier[CPMeasurementUnit] operator[>] identifier[orderByCo...
public IfcInventoryTypeEnum createIfcInventoryTypeEnumFromString(EDataType eDataType, String initialValue) { IfcInventoryTypeEnum result = IfcInventoryTypeEnum.get(initialValue); if (result == null) throw new IllegalArgumentException( "The value '" + initialValue + "' is not a valid enumerator of '" + e...
class class_name[name] begin[{] method[createIfcInventoryTypeEnumFromString, return_type[type[IfcInventoryTypeEnum]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[IfcInventoryTypeEnum], result] if[binary_operation[member[.result], ==, literal[null]]...
Keyword[public] identifier[IfcInventoryTypeEnum] identifier[createIfcInventoryTypeEnumFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[IfcInventoryTypeEnum] identifier[result] operator[=] identifier[IfcInventoryTypeEnu...
@Deprecated protected static ValidationBuilder convertTimestamp(String attributeName, String format){ return ModelDelegate.convertTimestamp(modelClass(), attributeName, format); }
class class_name[name] begin[{] method[convertTimestamp, return_type[type[ValidationBuilder]], modifier[static protected], parameter[attributeName, format]] begin[{] return[call[ModelDelegate.convertTimestamp, parameter[call[.modelClass, parameter[]], member[.attributeName], member[.format]]]] end[...
annotation[@] identifier[Deprecated] Keyword[protected] Keyword[static] identifier[ValidationBuilder] identifier[convertTimestamp] operator[SEP] identifier[String] identifier[attributeName] , identifier[String] identifier[format] operator[SEP] { Keyword[return] identifier[ModelDelegate] operator[SEP] identifier...
private MultipartBody createMultipartBody() throws Exception { List<Attachment> atts = new LinkedList<Attachment>(); atts.add(new Attachment("book1", "application/xml", new Book("JAXB", 1L))); atts.add(new Attachment("book2", "application/json", new Book("JSON", 2L))); atts.add...
class class_name[name] begin[{] method[createMultipartBody, return_type[type[MultipartBody]], modifier[private], parameter[]] begin[{] local_variable[type[List], atts] call[atts.add, parameter[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, sel...
Keyword[private] identifier[MultipartBody] identifier[createMultipartBody] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[List] operator[<] identifier[Attachment] operator[>] identifier[atts] operator[=] Keyword[new] identifier[LinkedList] operator[<] identifier[Attachment] operat...
@SuppressWarnings("unchecked") public <A extends Annotation> A getAnnotation(final Field field, final Class<A> annClass) throws AnnotationReadException { final Class<?> clazz = field.getDeclaringClass(); if(xmlInfo != null && xmlInfo.containsClassInfo(clazz.getName())) { ...
class class_name[name] begin[{] method[getAnnotation, return_type[type[A]], modifier[public], parameter[field, annClass]] begin[{] local_variable[type[Class], clazz] if[binary_operation[binary_operation[member[.xmlInfo], !=, literal[null]], &&, call[xmlInfo.containsClassInfo, parameter[...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[A] Keyword[extends] identifier[Annotation] operator[>] identifier[A] identifier[getAnnotation] operator[SEP] Keyword[final] identifier[Field] identifier[field] , Keyword[final] identifier[Class...
private <T> Observable.Transformer<T, T> applyInsertRetryPolicy() { return tObservable -> tObservable .retryWhen(errors -> { Observable<Integer> range = Observable.range(1, 2); return errors .zipWith(range, (t, i) -> { ...
class class_name[name] begin[{] method[applyInsertRetryPolicy, return_type[type[Observable]], modifier[private], parameter[]] begin[{] return[LambdaExpression(body=MethodInvocation(arguments=[LambdaExpression(body=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], ...
Keyword[private] operator[<] identifier[T] operator[>] identifier[Observable] operator[SEP] identifier[Transformer] operator[<] identifier[T] , identifier[T] operator[>] identifier[applyInsertRetryPolicy] operator[SEP] operator[SEP] { Keyword[return] identifier[tObservable] operator[->] identifier[tObservable] ...
protected void initConfiguration() { getTomcat().setBaseDir(baseDir.getAbsolutePath()); // Setup HTTP port listening getTomcat().setPort(getConfig().getPort()); // Setup vaadin production mode getContext().addParameter(PRODUCTION_MODE_PARAM, String.valueOf(getConfig().isProduct...
class class_name[name] begin[{] method[initConfiguration, return_type[void], modifier[protected], parameter[]] begin[{] call[.getTomcat, parameter[]] call[.getTomcat, parameter[]] call[.getContext, parameter[]] end[}] END[}]
Keyword[protected] Keyword[void] identifier[initConfiguration] operator[SEP] operator[SEP] { identifier[getTomcat] operator[SEP] operator[SEP] operator[SEP] identifier[setBaseDir] operator[SEP] identifier[baseDir] operator[SEP] identifier[getAbsolutePath] operator[SEP] operator[SEP] operator[SEP] operator[SEP] i...
public static MozuUrl validateTargetRuleUrl() { UrlFormatter formatter = new UrlFormatter("/api/commerce/targetrules/validate"); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
class class_name[name] begin[{] method[validateTargetRuleUrl, return_type[type[MozuUrl]], modifier[public static], parameter[]] begin[{] local_variable[type[UrlFormatter], formatter] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getResourceUrl, postfix_operators=[], prefi...
Keyword[public] Keyword[static] identifier[MozuUrl] identifier[validateTargetRuleUrl] operator[SEP] operator[SEP] { identifier[UrlFormatter] identifier[formatter] operator[=] Keyword[new] identifier[UrlFormatter] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[return] Keyword[new] identifier[Mo...
private InstalledIFixInformation findInstalledIFixes(File wlpInstallationDirectory, CommandConsole console, boolean verbose) { InstalledIFixInformation installedIFixInformation = new InstalledIFixInformation(); Set<IFixInfo> iFixInfos = IFixUtils.getInstalledIFixes(wlpInstallationDirectory, console); ...
class class_name[name] begin[{] method[findInstalledIFixes, return_type[type[InstalledIFixInformation]], modifier[private], parameter[wlpInstallationDirectory, console, verbose]] begin[{] local_variable[type[InstalledIFixInformation], installedIFixInformation] local_variable[type[Set], iFixInfo...
Keyword[private] identifier[InstalledIFixInformation] identifier[findInstalledIFixes] operator[SEP] identifier[File] identifier[wlpInstallationDirectory] , identifier[CommandConsole] identifier[console] , Keyword[boolean] identifier[verbose] operator[SEP] { identifier[InstalledIFixInformation] identifier[insta...
@Override public List<CommerceOrder> findByShippingAddressId(long shippingAddressId, int start, int end) { return findByShippingAddressId(shippingAddressId, start, end, null); }
class class_name[name] begin[{] method[findByShippingAddressId, return_type[type[List]], modifier[public], parameter[shippingAddressId, start, end]] begin[{] return[call[.findByShippingAddressId, parameter[member[.shippingAddressId], member[.start], member[.end], literal[null]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[CommerceOrder] operator[>] identifier[findByShippingAddressId] operator[SEP] Keyword[long] identifier[shippingAddressId] , Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SEP] { Keyword[return] ide...
public static HttpURLConnection getFileRanges(final URI uri, final FileRequestOptions fileOptions, final OperationContext opContext, final AccessCondition accessCondition, final String snapshotVersion) throws StorageException, IOException, URISyntaxException { final UriQueryBuilder buil...
class class_name[name] begin[{] method[getFileRanges, return_type[type[HttpURLConnection]], modifier[public static], parameter[uri, fileOptions, opContext, accessCondition, snapshotVersion]] begin[{] local_variable[type[UriQueryBuilder], builder] call[.addShareSnapshot, parameter[member...
Keyword[public] Keyword[static] identifier[HttpURLConnection] identifier[getFileRanges] operator[SEP] Keyword[final] identifier[URI] identifier[uri] , Keyword[final] identifier[FileRequestOptions] identifier[fileOptions] , Keyword[final] identifier[OperationContext] identifier[opContext] , Keyword[final] identifier[...
static Date toDate(double d) { GregorianCalendar ret = new GregorianCalendar(1899,11,30); int days = (int)d; d -= days; ret.add(Calendar.DATE,days); d *= 24; int hours = (int)d; ret.add(Calendar.HOUR,hours); d -= hours; d *= 60; // d += 0.5;...
class class_name[name] begin[{] method[toDate, return_type[type[Date]], modifier[static], parameter[d]] begin[{] local_variable[type[GregorianCalendar], ret] local_variable[type[int], days] assign[member[.d], member[.days]] call[ret.add, parameter[member[Calendar...
Keyword[static] identifier[Date] identifier[toDate] operator[SEP] Keyword[double] identifier[d] operator[SEP] { identifier[GregorianCalendar] identifier[ret] operator[=] Keyword[new] identifier[GregorianCalendar] operator[SEP] Other[1899] , Other[11] , Other[30] operator[SEP] operator[SEP] Keyword[int] identif...
public CacheKey create(final HttpServletRequest request) { notNull(request); CacheKey key = null; final String groupName = groupExtractor.getGroupName(request); final ResourceType resourceType = groupExtractor.getResourceType(request); final boolean minimize = isMinimized(request); if (groupName...
class class_name[name] begin[{] method[create, return_type[type[CacheKey]], modifier[public], parameter[request]] begin[{] call[.notNull, parameter[member[.request]]] local_variable[type[CacheKey], key] local_variable[type[String], groupName] local_variable[type[Resource...
Keyword[public] identifier[CacheKey] identifier[create] operator[SEP] Keyword[final] identifier[HttpServletRequest] identifier[request] operator[SEP] { identifier[notNull] operator[SEP] identifier[request] operator[SEP] operator[SEP] identifier[CacheKey] identifier[key] operator[=] Other[null] operator[SEP] Keyw...
public Vector getVector(String term) { SparseDoubleVector v = termToVector.get(term); return (v == null) ? null : Vectors.immutable( Vectors.subview(v, 0, basisMapping.numDimensions())); }
class class_name[name] begin[{] method[getVector, return_type[type[Vector]], modifier[public], parameter[term]] begin[{] local_variable[type[SparseDoubleVector], v] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=v, postfix_operators=[], prefix_operators=[], q...
Keyword[public] identifier[Vector] identifier[getVector] operator[SEP] identifier[String] identifier[term] operator[SEP] { identifier[SparseDoubleVector] identifier[v] operator[=] identifier[termToVector] operator[SEP] identifier[get] operator[SEP] identifier[term] operator[SEP] operator[SEP] Keyword[return] ope...
public void setFormatByArgumentIndex(int argumentIndex, Format newFormat) { if (msgPattern.hasNamedArguments()) { throw new IllegalArgumentException( "This method is not available in MessageFormat objects " + "that use alphanumeric argument names."); }...
class class_name[name] begin[{] method[setFormatByArgumentIndex, return_type[void], modifier[public], parameter[argumentIndex, newFormat]] begin[{] if[call[msgPattern.hasNamedArguments, parameter[]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl...
Keyword[public] Keyword[void] identifier[setFormatByArgumentIndex] operator[SEP] Keyword[int] identifier[argumentIndex] , identifier[Format] identifier[newFormat] operator[SEP] { Keyword[if] operator[SEP] identifier[msgPattern] operator[SEP] identifier[hasNamedArguments] operator[SEP] operator[SEP] operator[SEP...
public static void permuteRowInv(int permInv[], DMatrixSparseCSC input, DMatrixSparseCSC output) { if( input.numRows > permInv.length ) throw new IllegalArgumentException("permutation vector must have at least as many elements as input has rows"); output.reshape(input.numRows,input.numCols,...
class class_name[name] begin[{] method[permuteRowInv, return_type[void], modifier[public static], parameter[permInv, input, output]] begin[{] if[binary_operation[member[input.numRows], >, member[permInv.length]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operato...
Keyword[public] Keyword[static] Keyword[void] identifier[permuteRowInv] operator[SEP] Keyword[int] identifier[permInv] operator[SEP] operator[SEP] , identifier[DMatrixSparseCSC] identifier[input] , identifier[DMatrixSparseCSC] identifier[output] operator[SEP] { Keyword[if] operator[SEP] identifier[input] opera...
public static Number math(int op, Number left, Number right) { int type = getCompatibleType(left, right); if (type == TYPE_DOUBLE) { return math(op, left.doubleValue(), right.doubleValue()); } else if (type == TYPE_FLOAT) { return math(op, left.floatValue(), ri...
class class_name[name] begin[{] method[math, return_type[type[Number]], modifier[public static], parameter[op, left, right]] begin[{] local_variable[type[int], type] if[binary_operation[member[.type], ==, member[.TYPE_DOUBLE]]] begin[{] return[call[.math, parameter[member[.o...
Keyword[public] Keyword[static] identifier[Number] identifier[math] operator[SEP] Keyword[int] identifier[op] , identifier[Number] identifier[left] , identifier[Number] identifier[right] operator[SEP] { Keyword[int] identifier[type] operator[=] identifier[getCompatibleType] operator[SEP] identifier[left] , id...
public void setAllowedPrincipals(java.util.Collection<AllowedPrincipal> allowedPrincipals) { if (allowedPrincipals == null) { this.allowedPrincipals = null; return; } this.allowedPrincipals = new com.amazonaws.internal.SdkInternalList<AllowedPrincipal>(allowedPrincipals)...
class class_name[name] begin[{] method[setAllowedPrincipals, return_type[void], modifier[public], parameter[allowedPrincipals]] begin[{] if[binary_operation[member[.allowedPrincipals], ==, literal[null]]] begin[{] assign[THIS[member[None.allowedPrincipals]], literal[null...
Keyword[public] Keyword[void] identifier[setAllowedPrincipals] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[AllowedPrincipal] operator[>] identifier[allowedPrincipals] operator[SEP] { Keyword[if] operator[SEP] identifier[allowedPrincipa...
public double[] unhomogeneVector(double[] v) { assert (v.length == dim + 1); // TODO: this only works properly when trans[dim][dim] == 1.0, right? double[] dv = new double[dim]; double scale = v[dim]; assert (Math.abs(scale) > 0.0); for(int i = 0; i < dim; i++) { dv[i] = v[i] / scale; ...
class class_name[name] begin[{] method[unhomogeneVector, return_type[type[double]], modifier[public], parameter[v]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=length, postfix_operators=[], prefix_operators=[], qualifier=v, selectors=[]), operandr=BinaryOperation(...
Keyword[public] Keyword[double] operator[SEP] operator[SEP] identifier[unhomogeneVector] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[v] operator[SEP] { Keyword[assert] operator[SEP] identifier[v] operator[SEP] identifier[length] operator[==] identifier[dim] operator[+] Other[1] operator[...
protected void setupMethod(ActionMapping actionMapping) { final Class<?> actionType = actionMapping.getActionDef().getComponentClass(); for (Method declaredMethod : actionType.getDeclaredMethods()) { if (!isExecuteMethod(declaredMethod)) { continue; } ...
class class_name[name] begin[{] method[setupMethod, return_type[void], modifier[protected], parameter[actionMapping]] begin[{] local_variable[type[Class], actionType] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(membe...
Keyword[protected] Keyword[void] identifier[setupMethod] operator[SEP] identifier[ActionMapping] identifier[actionMapping] operator[SEP] { Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[actionType] operator[=] identifier[actionMapping] operator[SEP] identifier[getActionDef] opera...
public static CloudResourceBundleControl getInstance(ServiceAccount serviceAccount, long cacheExpiration, String inclusionPattern, String exclusionPattern) { return getInstance(serviceAccount, cacheExpiration, null, null, null); }
class class_name[name] begin[{] method[getInstance, return_type[type[CloudResourceBundleControl]], modifier[public static], parameter[serviceAccount, cacheExpiration, inclusionPattern, exclusionPattern]] begin[{] return[call[.getInstance, parameter[member[.serviceAccount], member[.cacheExpiration], lit...
Keyword[public] Keyword[static] identifier[CloudResourceBundleControl] identifier[getInstance] operator[SEP] identifier[ServiceAccount] identifier[serviceAccount] , Keyword[long] identifier[cacheExpiration] , identifier[String] identifier[inclusionPattern] , identifier[String] identifier[exclusionPattern] operator[S...
@Nonnull public static ESuccess flush (@Nullable final Flushable aFlushable) { if (aFlushable != null) try { aFlushable.flush (); return ESuccess.SUCCESS; } catch (final NullPointerException ex) { // Happens if a java.io.FilterOutputStream is already closed!...
class class_name[name] begin[{] method[flush, return_type[type[ESuccess]], modifier[public static], parameter[aFlushable]] begin[{] if[binary_operation[member[.aFlushable], !=, literal[null]]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=flus...
annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[ESuccess] identifier[flush] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[Flushable] identifier[aFlushable] operator[SEP] { Keyword[if] operator[SEP] identifier[aFlushable] operator[!=] Other[null] operator[...
private ParseTree parseAdditiveExpression() { SourcePosition start = getTreeStartLocation(); ParseTree left = parseMultiplicativeExpression(); while (peekAdditiveOperator()) { Token operator = nextToken(); ParseTree right = parseMultiplicativeExpression(); left = new BinaryOperatorTree(get...
class class_name[name] begin[{] method[parseAdditiveExpression, return_type[type[ParseTree]], modifier[private], parameter[]] begin[{] local_variable[type[SourcePosition], start] local_variable[type[ParseTree], left] while[call[.peekAdditiveOperator, parameter[]]] begin[{] ...
Keyword[private] identifier[ParseTree] identifier[parseAdditiveExpression] operator[SEP] operator[SEP] { identifier[SourcePosition] identifier[start] operator[=] identifier[getTreeStartLocation] operator[SEP] operator[SEP] operator[SEP] identifier[ParseTree] identifier[left] operator[=] identifier[parseMultiplic...
private JSType getJSType(Node n) { JSType type = n.getJSType(); if (type == null) { // TODO(bradfordcsmith): This branch indicates a compiler bug. It should throw an exception. return compiler.getTypeRegistry().getNativeType(JSTypeNative.UNKNOWN_TYPE); } else { return type; } }
class class_name[name] begin[{] method[getJSType, return_type[type[JSType]], modifier[private], parameter[n]] begin[{] local_variable[type[JSType], type] if[binary_operation[member[.type], ==, literal[null]]] begin[{] return[call[compiler.getTypeRegistry, parameter[]]] ...
Keyword[private] identifier[JSType] identifier[getJSType] operator[SEP] identifier[Node] identifier[n] operator[SEP] { identifier[JSType] identifier[type] operator[=] identifier[n] operator[SEP] identifier[getJSType] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[type] operator[==...
@Override public EClass getIfcElementQuantity() { if (ifcElementQuantityEClass == null) { ifcElementQuantityEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(226); } return ifcElementQuantityEClass; }
class class_name[name] begin[{] method[getIfcElementQuantity, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcElementQuantityEClass], ==, literal[null]]] begin[{] assign[member[.ifcElementQuantityEClass], Cast(expression=...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcElementQuantity] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcElementQuantityEClass] operator[==] Other[null] operator[SEP] { identifier[ifcElementQuantityEClass] operator[=] operator[SEP] i...
public Set<InternalQName> getSubtypes(final InternalQName nodeTypeName) { Set<InternalQName> resultSet = new HashSet<InternalQName>(); for (InternalQName ntName : nodeTypes.keySet()) { if (getSupertypes(ntName).contains(nodeTypeName)) { resultSet.add(ntName); ...
class class_name[name] begin[{] method[getSubtypes, return_type[type[Set]], modifier[public], parameter[nodeTypeName]] begin[{] local_variable[type[Set], resultSet] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=...
Keyword[public] identifier[Set] operator[<] identifier[InternalQName] operator[>] identifier[getSubtypes] operator[SEP] Keyword[final] identifier[InternalQName] identifier[nodeTypeName] operator[SEP] { identifier[Set] operator[<] identifier[InternalQName] operator[>] identifier[resultSet] operator[=] Keyword[new...
@Override public void doSubscribeNotificationsRequestEvent(ServerShSession session, SubscribeNotificationsRequest request) throws InternalException, IllegalDiameterStateException, RouteException, OverloadException { // TODO Auto-generated method stub }
class class_name[name] begin[{] method[doSubscribeNotificationsRequestEvent, return_type[void], modifier[public], parameter[session, request]] begin[{] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[doSubscribeNotificationsRequestEvent] operator[SEP] identifier[ServerShSession] identifier[session] , identifier[SubscribeNotificationsRequest] identifier[request] operator[SEP] Keyword[throws] identifier[InternalException] , identifier[Illeg...
@Override public EClass getIfcCommunicationsAppliance() { if (ifcCommunicationsApplianceEClass == null) { ifcCommunicationsApplianceEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(107); } return ifcCommunicationsApplianceEClass; }
class class_name[name] begin[{] method[getIfcCommunicationsAppliance, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcCommunicationsApplianceEClass], ==, literal[null]]] begin[{] assign[member[.ifcCommunicationsApplianceE...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcCommunicationsAppliance] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcCommunicationsApplianceEClass] operator[==] Other[null] operator[SEP] { identifier[ifcCommunicationsApplianceEClass] ope...
@Override public final T process( final Map<String, Object> pAddParam, final T pEntity, final IRequestData pRequestData) throws Exception { String fieldPathName = pRequestData.getParameter("fieldNameFilePath"); Method getterFieldPath = this.gettersRapiHolder .getFor(pEntity.getClass(), fieldPa...
class class_name[name] begin[{] method[process, return_type[type[T]], modifier[final public], parameter[pAddParam, pEntity, pRequestData]] begin[{] local_variable[type[String], fieldPathName] local_variable[type[Method], getterFieldPath] local_variable[type[String], filePath] ...
annotation[@] identifier[Override] Keyword[public] Keyword[final] identifier[T] identifier[process] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[pAddParam] , Keyword[final] identifier[T] identifier[pEntity] , Keyword[final] identifier[IReques...
public static Map<String, String> mapProperties(final Map<String, String> input, final Description desc) { final Map<String, String> mapping = desc.getPropertiesMapping(); if (null == mapping) { return input; } return performMapping(input, mapping, false); }
class class_name[name] begin[{] method[mapProperties, return_type[type[Map]], modifier[public static], parameter[input, desc]] begin[{] local_variable[type[Map], mapping] if[binary_operation[literal[null], ==, member[.mapping]]] begin[{] return[member[.input]] else b...
Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[mapProperties] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[input] , Keyword[final] identifier[Description] identifier[...
public ConformanceMessagingComponent addMessaging() { //3 ConformanceMessagingComponent t = new ConformanceMessagingComponent(); if (this.messaging == null) this.messaging = new ArrayList<ConformanceMessagingComponent>(); this.messaging.add(t); return t; }
class class_name[name] begin[{] method[addMessaging, return_type[type[ConformanceMessagingComponent]], modifier[public], parameter[]] begin[{] local_variable[type[ConformanceMessagingComponent], t] if[binary_operation[THIS[member[None.messaging]], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[ConformanceMessagingComponent] identifier[addMessaging] operator[SEP] operator[SEP] { identifier[ConformanceMessagingComponent] identifier[t] operator[=] Keyword[new] identifier[ConformanceMessagingComponent] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] Keyword[t...
public void writeBinary(final PacketOutputStream pos) throws IOException { Calendar calendar = Calendar.getInstance(timeZone); calendar.setTimeInMillis(date.getTime()); pos.write((byte) 7);//length pos.writeShort((short) calendar.get(Calendar.YEAR)); pos.write((byte) ((calendar.get(Calendar.MONTH) ...
class class_name[name] begin[{] method[writeBinary, return_type[void], modifier[public], parameter[pos]] begin[{] local_variable[type[Calendar], calendar] call[calendar.setTimeInMillis, parameter[call[date.getTime, parameter[]]]] call[pos.write, parameter[Cast(expression...
Keyword[public] Keyword[void] identifier[writeBinary] operator[SEP] Keyword[final] identifier[PacketOutputStream] identifier[pos] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Calendar] identifier[calendar] operator[=] identifier[Calendar] operator[SEP] identifier[getInstance] operator[SEP] ...
private synchronized void getAndSetRESTHandlerContainer(HttpServletRequest request) throws ServletException { if (REST_HANDLER_CONTAINER == null) { //Get the bundle context HttpSession session = request.getSession(); ServletContext sc = session.getServletContext(); ...
class class_name[name] begin[{] method[getAndSetRESTHandlerContainer, return_type[void], modifier[synchronized private], parameter[request]] begin[{] if[binary_operation[member[.REST_HANDLER_CONTAINER], ==, literal[null]]] begin[{] local_variable[type[HttpSession], session] ...
Keyword[private] Keyword[synchronized] Keyword[void] identifier[getAndSetRESTHandlerContainer] operator[SEP] identifier[HttpServletRequest] identifier[request] operator[SEP] Keyword[throws] identifier[ServletException] { Keyword[if] operator[SEP] identifier[REST_HANDLER_CONTAINER] operator[==] Other[null] operat...
public User createAdminUser(String passwordParam) { User adminUserCreate = new User(); adminUserCreate.setPasswordClear(passwordParam); return new User(this.putJson( adminUserCreate, WS.Path.User.Version1.userCreateAdmin())); }
class class_name[name] begin[{] method[createAdminUser, return_type[type[User]], modifier[public], parameter[passwordParam]] begin[{] local_variable[type[User], adminUserCreate] call[adminUserCreate.setPasswordClear, parameter[member[.passwordParam]]] return[ClassCreator(argumen...
Keyword[public] identifier[User] identifier[createAdminUser] operator[SEP] identifier[String] identifier[passwordParam] operator[SEP] { identifier[User] identifier[adminUserCreate] operator[=] Keyword[new] identifier[User] operator[SEP] operator[SEP] operator[SEP] identifier[adminUserCreate] operator[SEP] identi...
public void updateMasters(List<Long> masters, Map<Integer, Long> partitionMasters) { m_initiatorHSIds.clear(); m_initiatorHSIds.addAll(masters); ((MpTransactionState)getTransactionState()).updateMasters(masters, partitionMasters); }
class class_name[name] begin[{] method[updateMasters, return_type[void], modifier[public], parameter[masters, partitionMasters]] begin[{] call[m_initiatorHSIds.clear, parameter[]] call[m_initiatorHSIds.addAll, parameter[member[.masters]]] Cast(expression=MethodIn...
Keyword[public] Keyword[void] identifier[updateMasters] operator[SEP] identifier[List] operator[<] identifier[Long] operator[>] identifier[masters] , identifier[Map] operator[<] identifier[Integer] , identifier[Long] operator[>] identifier[partitionMasters] operator[SEP] { identifier[m_initiatorHSIds] operator...
public Element insertChildren(int index, Node... children) { Validate.notNull(children, "Children collection to be inserted must not be null."); int currentSize = childNodeSize(); if (index < 0) index += currentSize +1; // roll around Validate.isTrue(index >= 0 && index <= currentSize, "...
class class_name[name] begin[{] method[insertChildren, return_type[type[Element]], modifier[public], parameter[index, children]] begin[{] call[Validate.notNull, parameter[member[.children], literal["Children collection to be inserted must not be null."]]] local_variable[type[int], curre...
Keyword[public] identifier[Element] identifier[insertChildren] operator[SEP] Keyword[int] identifier[index] , identifier[Node] operator[...] identifier[children] operator[SEP] { identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[children] , literal[String] operator[SEP] operator[SE...
@Override public <I> Choice8<A, B, C, D, E, F, G, I> flatMap( Function<? super H, ? extends Monad<I, Choice8<A, B, C, D, E, F, G, ?>>> fn) { return match(Choice8::a, Choice8::b, Choice8::c, Choice8::d, Choice8::e, Choice8::f, Choice8::g, h -> fn.apply(h).coerce()); }
class class_name[name] begin[{] method[flatMap, return_type[type[Choice8]], modifier[public], parameter[fn]] begin[{] return[call[.match, parameter[MethodReference(expression=MemberReference(member=Choice8, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), method=MemberReference(mem...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[I] operator[>] identifier[Choice8] operator[<] identifier[A] , identifier[B] , identifier[C] , identifier[D] , identifier[E] , identifier[F] , identifier[G] , identifier[I] operator[>] identifier[flatMap] operator[SEP] identifier[Function]...
public static synchronized <T> T createNiceMockAndExpectNew(Class<T> type, Object... arguments) throws Exception { T mock = createNiceMock(type); IExpectationSetters<T> expectationSetters = expectNiceNew(type, arguments); if (expectationSetters != null) { expectationSetters.andReturn...
class class_name[name] begin[{] method[createNiceMockAndExpectNew, return_type[type[T]], modifier[synchronized public static], parameter[type, arguments]] begin[{] local_variable[type[T], mock] local_variable[type[IExpectationSetters], expectationSetters] if[binary_operation[mem...
Keyword[public] Keyword[static] Keyword[synchronized] operator[<] identifier[T] operator[>] identifier[T] identifier[createNiceMockAndExpectNew] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] , identifier[Object] operator[...] identifier[arguments] operator[SEP] Keyword[throws] ...
public static SimpleDataSet read(Path path, int lines_to_skip, Set<Integer> cat_cols) throws IOException { return read(path, DEFAULT_DELIMITER, lines_to_skip, DEFAULT_COMMENT, cat_cols); }
class class_name[name] begin[{] method[read, return_type[type[SimpleDataSet]], modifier[public static], parameter[path, lines_to_skip, cat_cols]] begin[{] return[call[.read, parameter[member[.path], member[.DEFAULT_DELIMITER], member[.lines_to_skip], member[.DEFAULT_COMMENT], member[.cat_cols]]]] e...
Keyword[public] Keyword[static] identifier[SimpleDataSet] identifier[read] operator[SEP] identifier[Path] identifier[path] , Keyword[int] identifier[lines_to_skip] , identifier[Set] operator[<] identifier[Integer] operator[>] identifier[cat_cols] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[...
@Nullable private static RawTextNode getAttributeValue( HtmlAttributeNode htmlAttributeNode, String name, ErrorReporter errorReporter) { StandaloneNode valueNode = htmlAttributeNode.getChild(1); if (valueNode instanceof HtmlAttributeValueNode) { HtmlAttributeValueNode attributeValueNode = (HtmlAtt...
class class_name[name] begin[{] method[getAttributeValue, return_type[type[RawTextNode]], modifier[private static], parameter[htmlAttributeNode, name, errorReporter]] begin[{] local_variable[type[StandaloneNode], valueNode] if[binary_operation[member[.valueNode], instanceof, type[HtmlAt...
annotation[@] identifier[Nullable] Keyword[private] Keyword[static] identifier[RawTextNode] identifier[getAttributeValue] operator[SEP] identifier[HtmlAttributeNode] identifier[htmlAttributeNode] , identifier[String] identifier[name] , identifier[ErrorReporter] identifier[errorReporter] operator[SEP] { identif...
public static void get(@NotNull String path, @NotNull Handler handler, @NotNull Set<Role> permittedRoles) { staticInstance().get(prefixPath(path), handler, permittedRoles); }
class class_name[name] begin[{] method[get, return_type[void], modifier[public static], parameter[path, handler, permittedRoles]] begin[{] call[.staticInstance, parameter[]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[get] operator[SEP] annotation[@] identifier[NotNull] identifier[String] identifier[path] , annotation[@] identifier[NotNull] identifier[Handler] identifier[handler] , annotation[@] identifier[NotNull] identifier[Set] operator[<] identifier[Role] operator[>] ide...
@Override public void authenticateWithBlackduck() throws IntegrationException { final URL securityUrl; try { securityUrl = new URL(getBaseUrl(), "j_spring_security_check"); } catch (final MalformedURLException e) { throw new IntegrationException("Error constructing th...
class class_name[name] begin[{] method[authenticateWithBlackduck, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[URL], securityUrl] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=securityUrl, postfix_operators=[],...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[authenticateWithBlackduck] operator[SEP] operator[SEP] Keyword[throws] identifier[IntegrationException] { Keyword[final] identifier[URL] identifier[securityUrl] operator[SEP] Keyword[try] { identifier[securityUrl] operator[=] ...
public void addArguments (final String [] arguments) { if (arguments != null) { for (final String argument : arguments) { addArgument (argument); } } }
class class_name[name] begin[{] method[addArguments, return_type[void], modifier[public], parameter[arguments]] begin[{] if[binary_operation[member[.arguments], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Metho...
Keyword[public] Keyword[void] identifier[addArguments] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[arguments] operator[SEP] { Keyword[if] operator[SEP] identifier[arguments] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] Keyword[final] id...