code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public List<JAXBElement<Object>> get_GenericApplicationPropertyOfTextureParameterization() { if (_GenericApplicationPropertyOfTextureParameterization == null) { _GenericApplicationPropertyOfTextureParameterization = new ArrayList<JAXBElement<Object>>(); } return this._GenericApplicat...
class class_name[name] begin[{] method[get_GenericApplicationPropertyOfTextureParameterization, return_type[type[List]], modifier[public], parameter[]] begin[{] if[binary_operation[member[._GenericApplicationPropertyOfTextureParameterization], ==, literal[null]]] begin[{] ...
Keyword[public] identifier[List] operator[<] identifier[JAXBElement] operator[<] identifier[Object] operator[>] operator[>] identifier[get_GenericApplicationPropertyOfTextureParameterization] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[_GenericApplicationPropertyOfTextureParameterization] ...
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException { notificationBroadcaster.addNotificationListener(listener, filter, handback); }
class class_name[name] begin[{] method[addNotificationListener, return_type[void], modifier[public], parameter[listener, filter, handback]] begin[{] call[notificationBroadcaster.addNotificationListener, parameter[member[.listener], member[.filter], member[.handback]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[addNotificationListener] operator[SEP] identifier[NotificationListener] identifier[listener] , identifier[NotificationFilter] identifier[filter] , identifier[Object] identifier[handback] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { identifier[not...
public void setDelete(Term term) { this.op = Op.DELETE; this.doc = null; this.term = term; }
class class_name[name] begin[{] method[setDelete, return_type[void], modifier[public], parameter[term]] begin[{] assign[THIS[member[None.op]], member[Op.DELETE]] assign[THIS[member[None.doc]], literal[null]] assign[THIS[member[None.term]], member[.term]] end[...
Keyword[public] Keyword[void] identifier[setDelete] operator[SEP] identifier[Term] identifier[term] operator[SEP] { Keyword[this] operator[SEP] identifier[op] operator[=] identifier[Op] operator[SEP] identifier[DELETE] operator[SEP] Keyword[this] operator[SEP] identifier[doc] operator[=] Other[null] operator[SEP...
public void marshall(HlsCaptionLanguageMapping hlsCaptionLanguageMapping, ProtocolMarshaller protocolMarshaller) { if (hlsCaptionLanguageMapping == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(hlsC...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[hlsCaptionLanguageMapping, protocolMarshaller]] begin[{] if[binary_operation[member[.hlsCaptionLanguageMapping], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argume...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[HlsCaptionLanguageMapping] identifier[hlsCaptionLanguageMapping] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[hlsCaptionLanguageMapping] operator[==] Other[null] op...
@Override public double getValue() { return new BigDecimal(System.nanoTime(), MathContext.DECIMAL128).divide(new BigDecimal(currentTime.getNumberOfMilliSeconds(), MathContext.DECIMAL128), MathContext.DECIMAL128).doubleValue(); }
class class_name[name] begin[{] method[getValue, return_type[type[double]], modifier[public], parameter[]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=nanoTime, postfix_operators=[], prefix_operators=[], qualifier=System, selectors=[], type_arguments=None), MemberRefer...
annotation[@] identifier[Override] Keyword[public] Keyword[double] identifier[getValue] operator[SEP] operator[SEP] { Keyword[return] Keyword[new] identifier[BigDecimal] operator[SEP] identifier[System] operator[SEP] identifier[nanoTime] operator[SEP] operator[SEP] , identifier[MathContext] operator[SEP] identi...
public static void addSeqRes(Chain modelChain, String sequence) { List<Group> seqResGroups = modelChain.getSeqResGroups(); GroupType chainType = getChainType(modelChain.getAtomGroups()); for(int i=0; i<sequence.length(); i++){ char singleLetterCode = sequence.charAt(i); Group group = null; if(seqResGroup...
class class_name[name] begin[{] method[addSeqRes, return_type[void], modifier[public static], parameter[modelChain, sequence]] begin[{] local_variable[type[List], seqResGroups] local_variable[type[GroupType], chainType] ForStatement(body=BlockStatement(label=None, statements=[LocalVaria...
Keyword[public] Keyword[static] Keyword[void] identifier[addSeqRes] operator[SEP] identifier[Chain] identifier[modelChain] , identifier[String] identifier[sequence] operator[SEP] { identifier[List] operator[<] identifier[Group] operator[>] identifier[seqResGroups] operator[=] identifier[modelChain] operator[SEP...
@SuppressWarnings("unchecked") public void addEvaluatorDefinition( String className ) { try { Class<EvaluatorDefinition> defClass = (Class<EvaluatorDefinition>) this.classloader.loadClass( className ); EvaluatorDefinition def = defClass.newInstance(); addEvaluatorDefiniti...
class class_name[name] begin[{] method[addEvaluatorDefinition, return_type[void], modifier[public], parameter[className]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cast(expression=This(postfix_operators=[], prefix_op...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[addEvaluatorDefinition] operator[SEP] identifier[String] identifier[className] operator[SEP] { Keyword[try] { identifier[Class] operator[<] identifier[EvaluatorDefinition] op...
public static String simplifyPath(String pathname) { if (N.isNullOrEmpty(pathname)) { return "."; } pathname = pathname.replace('\\', '/'); // split the path apart String[] components = pathSplitter.splitToArray(pathname); List<String> path = new Ar...
class class_name[name] begin[{] method[simplifyPath, return_type[type[String]], modifier[public static], parameter[pathname]] begin[{] if[call[N.isNullOrEmpty, parameter[member[.pathname]]]] begin[{] return[literal["."]] else begin[{] None end[}] assi...
Keyword[public] Keyword[static] identifier[String] identifier[simplifyPath] operator[SEP] identifier[String] identifier[pathname] operator[SEP] { Keyword[if] operator[SEP] identifier[N] operator[SEP] identifier[isNullOrEmpty] operator[SEP] identifier[pathname] operator[SEP] operator[SEP] { Keyword[ret...
@SuppressWarnings("unchecked") @Override public final <IC extends Component<?>> IC findInnerComponent(final InnerComponent<IC> innerComponent) { if (!getInnerComponentMap().isPresent() || !getInnerComponentMap().get().containsKey(innerComponent)) { // This InnerModel should be initialized ...
class class_name[name] begin[{] method[findInnerComponent, return_type[type[IC]], modifier[final public], parameter[innerComponent]] begin[{] if[binary_operation[call[.getInnerComponentMap, parameter[]], ||, call[.getInnerComponentMap, parameter[]]]] begin[{] call[.addIn...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] Keyword[final] operator[<] identifier[IC] Keyword[extends] identifier[Component] operator[<] operator[?] operator[>] operator[>] identifier[IC] identifier[findInnerComponent] operato...
public void transform( GrayU8 binary ) { ImageMiscOps.fill(transform, 0); originX = binary.width/2; originY = binary.height/2; r_max = Math.sqrt(originX*originX+originY*originY); for( int y = 0; y < binary.height; y++ ) { int start = binary.startIndex + y*binary.stride; int stop = start + binary.widt...
class class_name[name] begin[{] method[transform, return_type[void], modifier[public], parameter[binary]] begin[{] call[ImageMiscOps.fill, parameter[member[.transform], literal[0]]] assign[member[.originX], binary_operation[member[binary.width], /, literal[2]]] a...
Keyword[public] Keyword[void] identifier[transform] operator[SEP] identifier[GrayU8] identifier[binary] operator[SEP] { identifier[ImageMiscOps] operator[SEP] identifier[fill] operator[SEP] identifier[transform] , Other[0] operator[SEP] operator[SEP] identifier[originX] operator[=] identifier[binary] operator[S...
@Override public void configure() throws Exception { LOG.debug("Started REST data stream source at port {}.", port); from("netty4-http:http://0.0.0.0:" + port + "/?matchOnUriPrefix=true&httpMethodRestrict=OPTIONS,GET,POST,PUT,DELETE"). choice(). when(header(HTTP_...
class class_name[name] begin[{] method[configure, return_type[void], modifier[public], parameter[]] begin[{] call[LOG.debug, parameter[literal["Started REST data stream source at port {}."], member[.port]]] call[.from, parameter[binary_operation[binary_operation[literal["netty4-...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[configure] operator[SEP] operator[SEP] Keyword[throws] identifier[Exception] { identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] , identifier[port] operator[SEP] operator[SEP] identifier[from] operator[SEP] l...
public SearchNode search(QueueSearchState<O, T> initSearch, Collection<T> startStates, int maxSteps, int searchSteps) throws SearchNotExhaustiveException { // Initialize the queue with the start states set up in search nodes if this has not already been done. // This will only be done on the...
class class_name[name] begin[{] method[search, return_type[type[SearchNode]], modifier[public], parameter[initSearch, startStates, maxSteps, searchSteps]] begin[{] local_variable[type[Queue], queue] local_variable[type[UnaryPredicate], goalPredicate] while[call[queue.isEmpty, pa...
Keyword[public] identifier[SearchNode] identifier[search] operator[SEP] identifier[QueueSearchState] operator[<] identifier[O] , identifier[T] operator[>] identifier[initSearch] , identifier[Collection] operator[<] identifier[T] operator[>] identifier[startStates] , Keyword[int] identifier[maxSteps] , Keyword[int] ...
private void setHex() { String hRed = Integer.toHexString(getRed()); String hGreen = Integer.toHexString(getGreen()); String hBlue = Integer.toHexString(getBlue()); if (hRed.length() == 0) { hRed = "00"; } if (hRed.length() == 1) { hRed...
class class_name[name] begin[{] method[setHex, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[String], hRed] local_variable[type[String], hGreen] local_variable[type[String], hBlue] if[binary_operation[call[hRed.length, parameter[]], ==, ...
Keyword[private] Keyword[void] identifier[setHex] operator[SEP] operator[SEP] { identifier[String] identifier[hRed] operator[=] identifier[Integer] operator[SEP] identifier[toHexString] operator[SEP] identifier[getRed] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[hGreen] ...
public ValidatorType<TldTaglibType<T>> getOrCreateValidator() { Node node = childNode.getOrCreate("validator"); ValidatorType<TldTaglibType<T>> validator = new ValidatorTypeImpl<TldTaglibType<T>>(this, "validator", childNode, node); return validator; }
class class_name[name] begin[{] method[getOrCreateValidator, return_type[type[ValidatorType]], modifier[public], parameter[]] begin[{] local_variable[type[Node], node] local_variable[type[ValidatorType], validator] return[member[.validator]] end[}] END[}]
Keyword[public] identifier[ValidatorType] operator[<] identifier[TldTaglibType] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateValidator] operator[SEP] operator[SEP] { identifier[Node] identifier[node] operator[=] identifier[childNode] operator[SEP] identifier[getOrCreate] operator[SEP] ...
private void addAnnotationInfo(Doc doc, AnnotationDesc[] descList, Content htmltree) { addAnnotationInfo(0, doc, descList, true, htmltree); }
class class_name[name] begin[{] method[addAnnotationInfo, return_type[void], modifier[private], parameter[doc, descList, htmltree]] begin[{] call[.addAnnotationInfo, parameter[literal[0], member[.doc], member[.descList], literal[true], member[.htmltree]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[addAnnotationInfo] operator[SEP] identifier[Doc] identifier[doc] , identifier[AnnotationDesc] operator[SEP] operator[SEP] identifier[descList] , identifier[Content] identifier[htmltree] operator[SEP] { identifier[addAnnotationInfo] operator[SEP] Other[0] , identifier[...
public static void setDrawerVerticalPadding(View v, int level) { int verticalPadding = v.getContext().getResources().getDimensionPixelSize(R.dimen.material_drawer_vertical_padding); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { v.setPaddingRelative(verticalPadding * lev...
class class_name[name] begin[{] method[setDrawerVerticalPadding, return_type[void], modifier[public static], parameter[v, level]] begin[{] local_variable[type[int], verticalPadding] if[binary_operation[member[Build.VERSION.SDK_INT], >=, member[Build.VERSION_CODES.JELLY_BEAN_MR1]]] begin...
Keyword[public] Keyword[static] Keyword[void] identifier[setDrawerVerticalPadding] operator[SEP] identifier[View] identifier[v] , Keyword[int] identifier[level] operator[SEP] { Keyword[int] identifier[verticalPadding] operator[=] identifier[v] operator[SEP] identifier[getContext] operator[SEP] operator[SEP] ope...
public void calcElementSize() { int total = 0; for (Variable v : members) { total += v.getElementSize() * v.getSize(); } elementSize = total; }
class class_name[name] begin[{] method[calcElementSize, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[int], total] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=total, postfi...
Keyword[public] Keyword[void] identifier[calcElementSize] operator[SEP] operator[SEP] { Keyword[int] identifier[total] operator[=] Other[0] operator[SEP] Keyword[for] operator[SEP] identifier[Variable] identifier[v] operator[:] identifier[members] operator[SEP] { identifier[total] operator[+=] identi...
@SuppressWarnings("PMD.LawOfDemeter") public byte[] decrypt(final byte[] cipherText, final IvParameterSpec initializationVector) { try { final Cipher cipher = Cipher.getInstance(getCipherTransformation()); cipher.init(DECRYPT_MODE, getEncryptionKeySpec(), initializationVector); ...
class class_name[name] begin[{] method[decrypt, return_type[type[byte]], modifier[public], parameter[cipherText, initializationVector]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvo...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[decrypt] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[cipherText] , Keyword[final] identifier[IvParameterSpec] identifier[init...
private void installPrePackagedUIManagerDefaults() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); UIManager.put("Tree.line", "Angled"); UIManager.put("Tree.leafIcon", null); UIManager.put("Tree.closedIcon", null); UIManage...
class class_name[name] begin[{] method[installPrePackagedUIManagerDefaults, return_type[void], modifier[private], parameter[]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getSystemLookAndFeelClassName, postfix_operators=[...
Keyword[private] Keyword[void] identifier[installPrePackagedUIManagerDefaults] operator[SEP] operator[SEP] { Keyword[try] { identifier[UIManager] operator[SEP] identifier[setLookAndFeel] operator[SEP] identifier[UIManager] operator[SEP] identifier[getSystemLookAndFeelClassName] operator[SEP] operator[...
public static Font getFont (String name, int style) { return new Font(name, style, getDefaultFont().getSize()); }
class class_name[name] begin[{] method[getFont, return_type[type[Font]], modifier[public static], parameter[name, style]] begin[{] return[ClassCreator(arguments=[MemberReference(member=name, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=style, postfix_oper...
Keyword[public] Keyword[static] identifier[Font] identifier[getFont] operator[SEP] identifier[String] identifier[name] , Keyword[int] identifier[style] operator[SEP] { Keyword[return] Keyword[new] identifier[Font] operator[SEP] identifier[name] , identifier[style] , identifier[getDefaultFont] operator[SEP] op...
public V put(K pKey, V pValue) { if (!pKey.isCompatibleValue(pValue)) { throw new IllegalArgumentException("incompatible value for key"); } return entries.put(pKey, pValue); }
class class_name[name] begin[{] method[put, return_type[type[V]], modifier[public], parameter[pKey, pValue]] begin[{] if[call[pKey.isCompatibleValue, parameter[member[.pValue]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operator...
Keyword[public] identifier[V] identifier[put] operator[SEP] identifier[K] identifier[pKey] , identifier[V] identifier[pValue] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[pKey] operator[SEP] identifier[isCompatibleValue] operator[SEP] identifier[pValue] operator[SEP] operator[SEP] { ...
private MapCollections<E, E> getCollection() { if (mCollections == null) { mCollections = new MapCollections<E, E>() { @Override protected int colGetSize() { return mSize; } @Override protected Objec...
class class_name[name] begin[{] method[getCollection, return_type[type[MapCollections]], modifier[private], parameter[]] begin[{] if[binary_operation[member[.mCollections], ==, literal[null]]] begin[{] assign[member[.mCollections], ClassCreator(arguments=[], body=[Method...
Keyword[private] identifier[MapCollections] operator[<] identifier[E] , identifier[E] operator[>] identifier[getCollection] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[mCollections] operator[==] Other[null] operator[SEP] { identifier[mCollections] operator[=] Keyword[new] ident...
@Override public double getLearningRate(int iterCount, int i) { // We use the learning rate suggested in Leon Bottou's (2012) SGD Tricks paper. // // \gamma_t = \frac{\gamma_0}{(1 + \gamma_0 \lambda t)^p} // // For SGD p = 1.0, for ASGD p = 0.75 if (prm.power == 1.0)...
class class_name[name] begin[{] method[getLearningRate, return_type[type[double]], modifier[public], parameter[iterCount, i]] begin[{] if[binary_operation[member[prm.power], ==, literal[1.0]]] begin[{] return[binary_operation[member[prm.initialLr], /, binary_operation[literal[1], +,...
annotation[@] identifier[Override] Keyword[public] Keyword[double] identifier[getLearningRate] operator[SEP] Keyword[int] identifier[iterCount] , Keyword[int] identifier[i] operator[SEP] { Keyword[if] operator[SEP] identifier[prm] operator[SEP] identifier[power] operator[==] literal[Float] operator[SEP] { ...
public static InetSocketAddress getInetSocketAddress(String endpoint) { String[] array = endpoint.split(":"); return new InetSocketAddress(array[0], Integer.parseInt(array[1])); }
class class_name[name] begin[{] method[getInetSocketAddress, return_type[type[InetSocketAddress]], modifier[public static], parameter[endpoint]] begin[{] local_variable[type[String], array] return[ClassCreator(arguments=[MemberReference(member=array, postfix_operators=[], prefix_operators=[], q...
Keyword[public] Keyword[static] identifier[InetSocketAddress] identifier[getInetSocketAddress] operator[SEP] identifier[String] identifier[endpoint] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[array] operator[=] identifier[endpoint] operator[SEP] identifier[split] operator[SEP] lite...
public ServiceFuture<List<MetricDefinitionInner>> listMetricDefinitionsAsync(String resourceGroupName, String accountName, String databaseRid, final ServiceCallback<List<MetricDefinitionInner>> serviceCallback) { return ServiceFuture.fromResponse(listMetricDefinitionsWithServiceResponseAsync(resourceGroupName, ...
class class_name[name] begin[{] method[listMetricDefinitionsAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, accountName, databaseRid, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.listMetricDefinitionsWithServiceResponseAsync,...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[MetricDefinitionInner] operator[>] operator[>] identifier[listMetricDefinitionsAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[accountName] , identifier[String] identifie...
public static StackManipulation of(Serializable value) { if (value == null) { return NullConstant.INSTANCE; } try { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); ObjectOutputStream objectOutputStream = new ObjectOutputStream(byteAr...
class class_name[name] begin[{] method[of, return_type[type[StackManipulation]], modifier[public static], parameter[value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[member[NullConstant.INSTANCE]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[StackManipulation] identifier[of] operator[SEP] identifier[Serializable] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[NullConstant] operator[SEP] identifier[I...
public com.google.api.ads.admanager.axis.v201811.CostAdjustment getCostAdjustment() { return costAdjustment; }
class class_name[name] begin[{] method[getCostAdjustment, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.costAdjustment]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201811] operator[SEP] identifier[CostAdjustment] identifier[getCostAdjustment] operator[SEP] operator[...
public String getPreselectOption(String siteRoot, List<CmsSiteSelectorOption> options) { if ((siteRoot == null) || options.isEmpty()) { return null; } for (CmsSiteSelectorOption option : options) { if (CmsStringUtil.joinPaths(siteRoot, "/").equals(CmsStringUtil.joinPaths...
class class_name[name] begin[{] method[getPreselectOption, return_type[type[String]], modifier[public], parameter[siteRoot, options]] begin[{] if[binary_operation[binary_operation[member[.siteRoot], ==, literal[null]], ||, call[options.isEmpty, parameter[]]]] begin[{] return[literal...
Keyword[public] identifier[String] identifier[getPreselectOption] operator[SEP] identifier[String] identifier[siteRoot] , identifier[List] operator[<] identifier[CmsSiteSelectorOption] operator[>] identifier[options] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[siteRoot] operator[==] Other...
public static byte[] encryptPassword(final String password, final byte[] seed, String passwordCharacterEncoding) throws NoSuchAlgorithmException, UnsupportedEncodingException { if (password == null || password.isEmpty()) { return new byte[0]; } final MessageDigest messageDigest = Message...
class class_name[name] begin[{] method[encryptPassword, return_type[type[byte]], modifier[public static], parameter[password, seed, passwordCharacterEncoding]] begin[{] if[binary_operation[binary_operation[member[.password], ==, literal[null]], ||, call[password.isEmpty, parameter[]]]] begin[{]...
Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[encryptPassword] operator[SEP] Keyword[final] identifier[String] identifier[password] , Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[seed] , identifier[String] identifier[passwordCharacterEncoding] operator[SEP...
@Override public void gemm(char Order, char TransA, char TransB, double alpha, INDArray A, INDArray B, double beta, INDArray C) { if (Nd4j.getExecutioner().getProfilingMode() == OpExecutioner.ProfilingMode.ALL) OpProfiler.getInstance().processBlasCall(true, A, B, C); ...
class class_name[name] begin[{] method[gemm, return_type[void], modifier[public], parameter[Order, TransA, TransB, alpha, A, B, beta, C]] begin[{] if[binary_operation[call[Nd4j.getExecutioner, parameter[]], ==, member[OpExecutioner.ProfilingMode.ALL]]] begin[{] call[OpProfiler.getIn...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[gemm] operator[SEP] Keyword[char] identifier[Order] , Keyword[char] identifier[TransA] , Keyword[char] identifier[TransB] , Keyword[double] identifier[alpha] , identifier[INDArray] identifier[A] , identifier[INDArray] identifier[B] , Keyw...
public void set( List<Point2D_F64> list ) { vertexes.resize(list.size()); for (int i = 0; i < list.size(); i++) { vertexes.data[i].set( list.get(i)); } }
class class_name[name] begin[{] method[set, return_type[void], modifier[public], parameter[list]] begin[{] call[vertexes.resize, parameter[call[list.size, parameter[]]]] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MemberReference(member=data, ...
Keyword[public] Keyword[void] identifier[set] operator[SEP] identifier[List] operator[<] identifier[Point2D_F64] operator[>] identifier[list] operator[SEP] { identifier[vertexes] operator[SEP] identifier[resize] operator[SEP] identifier[list] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SE...
@Override protected int addNodeRecord(NodeData data) throws SQLException, InvalidItemStateException, RepositoryException { // check if parent exists if (isParentValidationNeeded(data.getParentIdentifier())) { ResultSet item = findItemByIdentifier(data.getParentIdentifier()); tr...
class class_name[name] begin[{] method[addNodeRecord, return_type[type[int]], modifier[protected], parameter[data]] begin[{] if[call[.isParentValidationNeeded, parameter[call[data.getParentIdentifier, parameter[]]]]] begin[{] local_variable[type[ResultSet], item] TryStat...
annotation[@] identifier[Override] Keyword[protected] Keyword[int] identifier[addNodeRecord] operator[SEP] identifier[NodeData] identifier[data] operator[SEP] Keyword[throws] identifier[SQLException] , identifier[InvalidItemStateException] , identifier[RepositoryException] { Keyword[if] operator[SEP] identifie...
public static Tag parseTag(InputStream inputStream) throws IOException, ConverterException { VINT id = readVINT(inputStream); VINT size = readVINT(inputStream); return TagFactory.createTag(id, size, inputStream); }
class class_name[name] begin[{] method[parseTag, return_type[type[Tag]], modifier[public static], parameter[inputStream]] begin[{] local_variable[type[VINT], id] local_variable[type[VINT], size] return[call[TagFactory.createTag, parameter[member[.id], member[.size], member[.inputStream]...
Keyword[public] Keyword[static] identifier[Tag] identifier[parseTag] operator[SEP] identifier[InputStream] identifier[inputStream] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ConverterException] { identifier[VINT] identifier[id] operator[=] identifier[readVINT] operator[SEP] identifier[in...
protected LabelNode getLabelNode(final Label l) { if (!(l.info instanceof LabelNode)) { l.info = new LabelNode(); } return (LabelNode) l.info; }
class class_name[name] begin[{] method[getLabelNode, return_type[type[LabelNode]], modifier[protected], parameter[l]] begin[{] if[binary_operation[member[l.info], instanceof, type[LabelNode]]] begin[{] assign[member[l.info], ClassCreator(arguments=[], body=None, construc...
Keyword[protected] identifier[LabelNode] identifier[getLabelNode] operator[SEP] Keyword[final] identifier[Label] identifier[l] operator[SEP] { Keyword[if] operator[SEP] operator[!] operator[SEP] identifier[l] operator[SEP] identifier[info] Keyword[instanceof] identifier[LabelNode] operator[SEP] operator[SEP] { ...
public void restoreOldProperties(Map<String,String> oldProperties, Record record) { this.restoreOldProperty(oldProperties, record.getDatabaseName() + BaseDatabase.DBSHARED_PARAM_SUFFIX); this.restoreOldProperty(oldProperties, record.getDatabaseName() + BaseDatabase.DBUSER_PARAM_SUFFIX); this...
class class_name[name] begin[{] method[restoreOldProperties, return_type[void], modifier[public], parameter[oldProperties, record]] begin[{] THIS[call[None.restoreOldProperty, parameter[member[.oldProperties], binary_operation[call[record.getDatabaseName, parameter[]], +, member[BaseDatabase.DB...
Keyword[public] Keyword[void] identifier[restoreOldProperties] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[oldProperties] , identifier[Record] identifier[record] operator[SEP] { Keyword[this] operator[SEP] identifier[restoreOldProperty] operator[SEP]...
public void marshall(UpdateWebhookRequest updateWebhookRequest, ProtocolMarshaller protocolMarshaller) { if (updateWebhookRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(updateWebhookReques...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[updateWebhookRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.updateWebhookRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Liter...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UpdateWebhookRequest] identifier[updateWebhookRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[updateWebhookRequest] operator[==] Other[null] operator[SEP] { ...
private void ones(int n) { if (n > value.length) value = new int[n]; Arrays.fill(value, -1); offset = 0; intLen = n; }
class class_name[name] begin[{] method[ones, return_type[void], modifier[private], parameter[n]] begin[{] if[binary_operation[member[.n], >, member[value.length]]] begin[{] assign[member[.value], ArrayCreator(dimensions=[MemberReference(member=n, postfix_operators=[], prefix_operato...
Keyword[private] Keyword[void] identifier[ones] operator[SEP] Keyword[int] identifier[n] operator[SEP] { Keyword[if] operator[SEP] identifier[n] operator[>] identifier[value] operator[SEP] identifier[length] operator[SEP] identifier[value] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[n] operato...
public static String file(File file) throws IOException { InputStream in = null; try { in = new FileInputStream(file); return stream(in, file.length()); } finally { if (in != null) { try { in.close(); } catch...
class class_name[name] begin[{] method[file, return_type[type[String]], modifier[public static], parameter[file]] begin[{] local_variable[type[InputStream], in] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=in, postfix_operators=[], prefix_oper...
Keyword[public] Keyword[static] identifier[String] identifier[file] operator[SEP] identifier[File] identifier[file] operator[SEP] Keyword[throws] identifier[IOException] { identifier[InputStream] identifier[in] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[in] operator[=] Keyword[new...
@Override public boolean eIsSet(int featureID) { switch (featureID) { case AfplibPackage.LINE_DATA_OBJECT_POSITION_MIGRATION__TEMP_ORIENT: return TEMP_ORIENT_EDEFAULT == null ? tempOrient != null : !TEMP_ORIENT_EDEFAULT.equals(tempOrient); } return super.eIsSet(featureID); }
class class_name[name] begin[{] method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=LINE_DATA_OBJECT_POSITION_MIGRATION__TEMP_ORIENT, postfix_operators=[], prefix_operators=[], qualifier=Afpl...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[eIsSet] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[LINE_DATA_OBJECT_...
public static Character[] wrap(char... values) { if (null == values) { return null; } final int length = values.length; if (0 == length) { return new Character[0]; } final Character[] array = new Character[length]; for (int i = 0; i < length; i++) { array[i] = Character.valueOf(values...
class class_name[name] begin[{] method[wrap, return_type[type[Character]], modifier[public static], parameter[values]] begin[{] if[binary_operation[literal[null], ==, member[.values]]] begin[{] return[literal[null]] else begin[{] None end[}] local_variable[ty...
Keyword[public] Keyword[static] identifier[Character] operator[SEP] operator[SEP] identifier[wrap] operator[SEP] Keyword[char] operator[...] identifier[values] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[values] operator[SEP] { Keyword[return] Other[null] operator[SEP...
public void write(final Metadata metadata, final String pathToMetadata, final List<? extends MetadataJavaDoc> javadocTags) { try { final DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance(); final DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); ...
class class_name[name] begin[{] method[write, return_type[void], modifier[public], parameter[metadata, pathToMetadata, javadocTags]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], member=new...
Keyword[public] Keyword[void] identifier[write] operator[SEP] Keyword[final] identifier[Metadata] identifier[metadata] , Keyword[final] identifier[String] identifier[pathToMetadata] , Keyword[final] identifier[List] operator[<] operator[?] Keyword[extends] identifier[MetadataJavaDoc] operator[>] identifier[javadocTag...
protected int findWhereKeyword(String sql) { char[] chars = sql.toLowerCase().toCharArray(); char[] whereChars = "where".toCharArray(); int i = 0; boolean inString = false; //TODO: Cater for comments? int inWhere = 0; while (i < chars.length) { switch (chars[i...
class class_name[name] begin[{] method[findWhereKeyword, return_type[type[int]], modifier[protected], parameter[sql]] begin[{] local_variable[type[char], chars] local_variable[type[char], whereChars] local_variable[type[int], i] local_variable[type[boolean], inString] lo...
Keyword[protected] Keyword[int] identifier[findWhereKeyword] operator[SEP] identifier[String] identifier[sql] operator[SEP] { Keyword[char] operator[SEP] operator[SEP] identifier[chars] operator[=] identifier[sql] operator[SEP] identifier[toLowerCase] operator[SEP] operator[SEP] operator[SEP] identifier[toCharAr...
protected void appendWordFeatures( IWord word ) { //add the pinyin to the pool if ( config.APPEND_CJK_PINYIN && config.LOAD_CJK_PINYIN && word.getPinyin() != null ) { IWord pinyin = new Word(word.getPinyin(), IWord.T_CJK_PINYIN); pinyin.setPosition(word.getPo...
class class_name[name] begin[{] method[appendWordFeatures, return_type[void], modifier[protected], parameter[word]] begin[{] if[binary_operation[binary_operation[member[config.APPEND_CJK_PINYIN], &&, member[config.LOAD_CJK_PINYIN]], &&, binary_operation[call[word.getPinyin, parameter[]], !=, li...
Keyword[protected] Keyword[void] identifier[appendWordFeatures] operator[SEP] identifier[IWord] identifier[word] operator[SEP] { Keyword[if] operator[SEP] identifier[config] operator[SEP] identifier[APPEND_CJK_PINYIN] operator[&&] identifier[config] operator[SEP] identifier[LOAD_CJK_PINYIN] operator[&&] identifi...
@Override public void verifyMIC ( byte[] data, byte[] mic ) throws CIFSException { try { this.gssContext.verifyMIC(mic, 0, mic.length, data, 0, data.length, new MessageProp(false)); } catch ( GSSException e ) { throw new CIFSException("Failed to verify MIC", e); ...
class class_name[name] begin[{] method[verifyMIC, return_type[void], modifier[public], parameter[data, mic]] begin[{] TryStatement(block=[StatementExpression(expression=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=gssContext, postfix_operators=None, ...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[verifyMIC] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[byte] operator[SEP] operator[SEP] identifier[mic] operator[SEP] Keyword[throws] identifier[CIFSException] { Keyword[try] { Keyword[...
public static double pow(double a, double b) { /* * Wright out a^b as 2^(b log2(a)) and then replace a with 'm 2^e' to get * 2^(b * log2(m*2^e)) which simplifies to * m^b 2^(b e) when m, e, and b are positive. * * m & e are by IEEE defintion positive ...
class class_name[name] begin[{] method[pow, return_type[type[double]], modifier[public static], parameter[a, b]] begin[{] if[binary_operation[member[.b], <, literal[0]]] begin[{] return[binary_operation[literal[1], /, call[.pow, parameter[member[.a], member[.b]]]]] else begin[{] None ...
Keyword[public] Keyword[static] Keyword[double] identifier[pow] operator[SEP] Keyword[double] identifier[a] , Keyword[double] identifier[b] operator[SEP] { Keyword[if] operator[SEP] identifier[b] operator[<] Other[0] operator[SEP] Keyword[return] Other[1] operator[/] identifier[pow] operator[SEP] identifier[a] ...
public static String getCallSimpleName(XAbstractFeatureCall featureCall, ILogicalContainerProvider logicalContainerProvider, IdentifiableSimpleNameProvider featureNameProvider, Function0<? extends String> nullKeyword, Function0<? extends String> thisKeyword, Function0<? extends String> superKeyword, F...
class class_name[name] begin[{] method[getCallSimpleName, return_type[type[String]], modifier[public static], parameter[featureCall, logicalContainerProvider, featureNameProvider, nullKeyword, thisKeyword, superKeyword, referenceNameLambda]] begin[{] local_variable[type[String], name] local_var...
Keyword[public] Keyword[static] identifier[String] identifier[getCallSimpleName] operator[SEP] identifier[XAbstractFeatureCall] identifier[featureCall] , identifier[ILogicalContainerProvider] identifier[logicalContainerProvider] , identifier[IdentifiableSimpleNameProvider] identifier[featureNameProvider] , identifie...
public void marshall(DeploymentCanarySettings deploymentCanarySettings, ProtocolMarshaller protocolMarshaller) { if (deploymentCanarySettings == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deploym...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[deploymentCanarySettings, protocolMarshaller]] begin[{] if[binary_operation[member[.deploymentCanarySettings], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(argument...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeploymentCanarySettings] identifier[deploymentCanarySettings] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deploymentCanarySettings] operator[==] Other[null] opera...
public static double pixelYToLatitude(double pixelY, long mapSize) { if (pixelY < 0 || pixelY > mapSize) { throw new IllegalArgumentException("invalid pixelY coordinate " + mapSize + ": " + pixelY); } double y = 0.5 - (pixelY / mapSize); return 90 - 360 * Math.atan(Math.exp(-...
class class_name[name] begin[{] method[pixelYToLatitude, return_type[type[double]], modifier[public static], parameter[pixelY, mapSize]] begin[{] if[binary_operation[binary_operation[member[.pixelY], <, literal[0]], ||, binary_operation[member[.pixelY], >, member[.mapSize]]]] begin[{] ...
Keyword[public] Keyword[static] Keyword[double] identifier[pixelYToLatitude] operator[SEP] Keyword[double] identifier[pixelY] , Keyword[long] identifier[mapSize] operator[SEP] { Keyword[if] operator[SEP] identifier[pixelY] operator[<] Other[0] operator[||] identifier[pixelY] operator[>] identifier[mapSize] oper...
public static BytesEncryptor standard(CharSequence password, CharSequence salt) { return new AndroidAesBytesEncryptor(password.toString(), salt, AndroidKeyGenerators.secureRandom(16)); }
class class_name[name] begin[{] method[standard, return_type[type[BytesEncryptor]], modifier[public static], parameter[password, salt]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=toString, postfix_operators=[], prefix_operators=[], qualifier=password, selectors=[], ty...
Keyword[public] Keyword[static] identifier[BytesEncryptor] identifier[standard] operator[SEP] identifier[CharSequence] identifier[password] , identifier[CharSequence] identifier[salt] operator[SEP] { Keyword[return] Keyword[new] identifier[AndroidAesBytesEncryptor] operator[SEP] identifier[password] operator[SE...
public RESTClient<RS, ERS> urlSegment(Object value) { if (value != null) { if (url.charAt(url.length() - 1) != '/') { url.append('/'); } url.append(value.toString()); } return this; }
class class_name[name] begin[{] method[urlSegment, return_type[type[RESTClient]], modifier[public], parameter[value]] begin[{] if[binary_operation[member[.value], !=, literal[null]]] begin[{] if[binary_operation[call[url.charAt, parameter[binary_operation[call[url.length...
Keyword[public] identifier[RESTClient] operator[<] identifier[RS] , identifier[ERS] operator[>] identifier[urlSegment] operator[SEP] identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SEP] iden...
RangeSet getConditions() { RangeSet is = new RangeSet(); for (CharRange ic : transitions.keySet()) { if (ic != null) { is.add(ic); } } return is; }
class class_name[name] begin[{] method[getConditions, return_type[type[RangeSet]], modifier[default], parameter[]] begin[{] local_variable[type[RangeSet], is] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=ic, postf...
identifier[RangeSet] identifier[getConditions] operator[SEP] operator[SEP] { identifier[RangeSet] identifier[is] operator[=] Keyword[new] identifier[RangeSet] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[CharRange] identifier[ic] operator[:] identifier[transitions] operator[SE...
public static AbstractMatrix getInstance(int rows, int cols, Class<?> cls) { return new AbstractMatrix(rows, Array.newInstance(cls, rows*cols)); }
class class_name[name] begin[{] method[getInstance, return_type[type[AbstractMatrix]], modifier[public static], parameter[rows, cols, cls]] begin[{] return[ClassCreator(arguments=[MemberReference(member=rows, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(argumen...
Keyword[public] Keyword[static] identifier[AbstractMatrix] identifier[getInstance] operator[SEP] Keyword[int] identifier[rows] , Keyword[int] identifier[cols] , identifier[Class] operator[<] operator[?] operator[>] identifier[cls] operator[SEP] { Keyword[return] Keyword[new] identifier[AbstractMatrix] operator...
@Api public void setCursorString(String cursor) { try { Cursor c = Cursor.valueOf(cursor.toUpperCase()); setCursor(c); } catch (Exception e) { // NOSONAR // Let us assume the cursor points to an image: this.cursor = cursor; if (!cursor.contains("url")) { this.cursor = "url('" + cursor + "'),auto...
class class_name[name] begin[{] method[setCursorString, return_type[void], modifier[public], parameter[cursor]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MethodInvocation(arguments=[], mem...
annotation[@] identifier[Api] Keyword[public] Keyword[void] identifier[setCursorString] operator[SEP] identifier[String] identifier[cursor] operator[SEP] { Keyword[try] { identifier[Cursor] identifier[c] operator[=] identifier[Cursor] operator[SEP] identifier[valueOf] operator[SEP] identifier[cursor] ...
public CreatePullRuleResponse createPullRule(CreatePullRuleRequest request) { InternalRequest internalRequest = createRequest(request, HttpMethodName.POST, PULL_RULE); return this.invokeHttpClient(internalRequest, CreatePullRuleResponse.class); }
class class_name[name] begin[{] method[createPullRule, return_type[type[CreatePullRuleResponse]], modifier[public], parameter[request]] begin[{] local_variable[type[InternalRequest], internalRequest] return[THIS[call[None.invokeHttpClient, parameter[member[.internalRequest], ClassReference(post...
Keyword[public] identifier[CreatePullRuleResponse] identifier[createPullRule] operator[SEP] identifier[CreatePullRuleRequest] identifier[request] operator[SEP] { identifier[InternalRequest] identifier[internalRequest] operator[=] identifier[createRequest] operator[SEP] identifier[request] , identifier[HttpMetho...
public void reuse(Tag tag) { tag.release(); Queue<Tag> queue = getQueue(tag.getClass().getName()); queue.add(tag); }
class class_name[name] begin[{] method[reuse, return_type[void], modifier[public], parameter[tag]] begin[{] call[tag.release, parameter[]] local_variable[type[Queue], queue] call[queue.add, parameter[member[.tag]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[reuse] operator[SEP] identifier[Tag] identifier[tag] operator[SEP] { identifier[tag] operator[SEP] identifier[release] operator[SEP] operator[SEP] operator[SEP] identifier[Queue] operator[<] identifier[Tag] operator[>] identifier[queue] operator[=] identifier[getQueue] op...
public Long getLoggedUserId() { HttpSession session = getRequest().getSession(false); return session == null ? null : (Long) session.getAttribute("loggedUserId"); }
class class_name[name] begin[{] method[getLoggedUserId, return_type[type[Long]], modifier[public], parameter[]] begin[{] local_variable[type[HttpSession], session] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=session, postfix_operators=[], prefix_operators=...
Keyword[public] identifier[Long] identifier[getLoggedUserId] operator[SEP] operator[SEP] { identifier[HttpSession] identifier[session] operator[=] identifier[getRequest] operator[SEP] operator[SEP] operator[SEP] identifier[getSession] operator[SEP] literal[boolean] operator[SEP] operator[SEP] Keyword[return] ide...
public void setValue( Object newValue ) { int[] newSelection = (int[]) newValue; if( hasChanged(currentSelection, newSelection) ) { int[] oldValue = currentSelection; currentSelection = newSelection; fireValueChange(oldValue, currentSelection); if( !ski...
class class_name[name] begin[{] method[setValue, return_type[void], modifier[public], parameter[newValue]] begin[{] local_variable[type[int], newSelection] if[call[.hasChanged, parameter[member[.currentSelection], member[.newSelection]]]] begin[{] local_variable[type[int], o...
Keyword[public] Keyword[void] identifier[setValue] operator[SEP] identifier[Object] identifier[newValue] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifier[newSelection] operator[=] operator[SEP] Keyword[int] operator[SEP] operator[SEP] operator[SEP] identifier[newValue] operator[SEP] Keyword[if...
public ApnsClientBuilder setTrustedServerCertificateChain(final InputStream certificateInputStream) { this.trustedServerCertificatePemFile = null; this.trustedServerCertificateInputStream = certificateInputStream; this.trustedServerCertificates = null; return this; }
class class_name[name] begin[{] method[setTrustedServerCertificateChain, return_type[type[ApnsClientBuilder]], modifier[public], parameter[certificateInputStream]] begin[{] assign[THIS[member[None.trustedServerCertificatePemFile]], literal[null]] assign[THIS[member[None.trustedS...
Keyword[public] identifier[ApnsClientBuilder] identifier[setTrustedServerCertificateChain] operator[SEP] Keyword[final] identifier[InputStream] identifier[certificateInputStream] operator[SEP] { Keyword[this] operator[SEP] identifier[trustedServerCertificatePemFile] operator[=] Other[null] operator[SEP] Keyword[...
public static BoundingBox getBoundingBox(Tile upperLeft, Tile lowerRight) { BoundingBox ul = upperLeft.getBoundingBox(); BoundingBox lr = lowerRight.getBoundingBox(); return ul.extendBoundingBox(lr); }
class class_name[name] begin[{] method[getBoundingBox, return_type[type[BoundingBox]], modifier[public static], parameter[upperLeft, lowerRight]] begin[{] local_variable[type[BoundingBox], ul] local_variable[type[BoundingBox], lr] return[call[ul.extendBoundingBox, parameter[member[.lr]]...
Keyword[public] Keyword[static] identifier[BoundingBox] identifier[getBoundingBox] operator[SEP] identifier[Tile] identifier[upperLeft] , identifier[Tile] identifier[lowerRight] operator[SEP] { identifier[BoundingBox] identifier[ul] operator[=] identifier[upperLeft] operator[SEP] identifier[getBoundingBox] oper...
public static Optional<MuteEvent> createMuteEvent(Identification source) { if (source == null) return Optional.empty(); try { MuteEvent muteRequest = new MuteEvent(source); return Optional.of(muteRequest); } catch (IllegalArgumentException e) { ret...
class class_name[name] begin[{] method[createMuteEvent, return_type[type[Optional]], modifier[public static], parameter[source]] begin[{] if[binary_operation[member[.source], ==, literal[null]]] begin[{] return[call[Optional.empty, parameter[]]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[Optional] operator[<] identifier[MuteEvent] operator[>] identifier[createMuteEvent] operator[SEP] identifier[Identification] identifier[source] operator[SEP] { Keyword[if] operator[SEP] identifier[source] operator[==] Other[null] operator[SEP] Keyword[return] identifier...
public void drawCursor(GuiRenderer renderer) { if (!isFocused()) return; long elaspedTime = startTimer - System.currentTimeMillis(); if ((elaspedTime / 500) % 2 != 0) return; cursorShape.render(renderer); }
class class_name[name] begin[{] method[drawCursor, return_type[void], modifier[public], parameter[renderer]] begin[{] if[call[.isFocused, parameter[]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[long], elaspedTime] if[binary_opera...
Keyword[public] Keyword[void] identifier[drawCursor] operator[SEP] identifier[GuiRenderer] identifier[renderer] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[isFocused] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] Keyword[long] identifier[elaspedTime] operator[=] ide...
@Nonnull @ReturnsMutableCopy public static CommonsLinkedHashSet <String> getExplodedToOrderedSet (@Nonnull final String sSep, @Nullable final String sElements) { return getExploded (sSep, sElements, -1, new CommonsLinkedHashSet <> ()); }
class class_name[name] begin[{] method[getExplodedToOrderedSet, return_type[type[CommonsLinkedHashSet]], modifier[public static], parameter[sSep, sElements]] begin[{] return[call[.getExploded, parameter[member[.sSep], member[.sElements], literal[1], ClassCreator(arguments=[], body=None, constructor_typ...
annotation[@] identifier[Nonnull] annotation[@] identifier[ReturnsMutableCopy] Keyword[public] Keyword[static] identifier[CommonsLinkedHashSet] operator[<] identifier[String] operator[>] identifier[getExplodedToOrderedSet] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[String] identifier[sSep...
public void load() { Source source = getSource(); Target target = getTarget(); source.beginExport(); target.beginImport(); Set<String> propertyNames = mode.equals(MappingMode.AUTO) ? target.getPropertyNames() : sou...
class class_name[name] begin[{] method[load, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Source], source] local_variable[type[Target], target] call[source.beginExport, parameter[]] call[target.beginImport, parameter[]] l...
Keyword[public] Keyword[void] identifier[load] operator[SEP] operator[SEP] { identifier[Source] identifier[source] operator[=] identifier[getSource] operator[SEP] operator[SEP] operator[SEP] identifier[Target] identifier[target] operator[=] identifier[getTarget] operator[SEP] operator[SEP] operator[SEP] identifi...
public KeySignParameters withValue(byte[] value) { if (value == null) { this.value = null; } else { this.value = Base64Url.encode(value); } return this; }
class class_name[name] begin[{] method[withValue, return_type[type[KeySignParameters]], modifier[public], parameter[value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] assign[THIS[member[None.value]], literal[null]] else begin[{] ...
Keyword[public] identifier[KeySignParameters] identifier[withValue] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[value] operator[=] O...
public void move(MovingParams params) { LOGGER.trace("About to move the Action Button: X-axis delta = {}, Y-axis delta = {}", params.getXAxisDelta(), params.getYAxisDelta()); mover.move(params); }
class class_name[name] begin[{] method[move, return_type[void], modifier[public], parameter[params]] begin[{] call[LOGGER.trace, parameter[literal["About to move the Action Button: X-axis delta = {}, Y-axis delta = {}"], call[params.getXAxisDelta, parameter[]], call[params.getYAxisDelta, parame...
Keyword[public] Keyword[void] identifier[move] operator[SEP] identifier[MovingParams] identifier[params] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[trace] operator[SEP] literal[String] , identifier[params] operator[SEP] identifier[getXAxisDelta] operator[SEP] operator[SEP] , identifier[params]...
public static void makeLikeButton(Activity context, CompoundButton button, Entity entity, LikeButtonListener listener) { proxy.makeLikeButton(context, button, entity, listener); }
class class_name[name] begin[{] method[makeLikeButton, return_type[void], modifier[public static], parameter[context, button, entity, listener]] begin[{] call[proxy.makeLikeButton, parameter[member[.context], member[.button], member[.entity], member[.listener]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[makeLikeButton] operator[SEP] identifier[Activity] identifier[context] , identifier[CompoundButton] identifier[button] , identifier[Entity] identifier[entity] , identifier[LikeButtonListener] identifier[listener] operator[SEP] { identifier[proxy] operat...
public void marshall(ListCuratedEnvironmentImagesRequest listCuratedEnvironmentImagesRequest, ProtocolMarshaller protocolMarshaller) { if (listCuratedEnvironmentImagesRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { } catc...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[listCuratedEnvironmentImagesRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.listCuratedEnvironmentImagesRequest], ==, literal[null]]] begin[{] ThrowStatement(expression...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ListCuratedEnvironmentImagesRequest] identifier[listCuratedEnvironmentImagesRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[listCuratedEnvironmentImagesReques...
public void readDwgTextV15(int[] data, int offset) throws Exception { int bitPos = offset; bitPos = readObjectHeaderV15(data, bitPos); Vector v = DwgUtil.getRawChar(data, bitPos); bitPos = ((Integer)v.get(0)).intValue(); int dflag = ((Integer)v.get(1)).intValue(); dataFlag = dflag; if ((dflag & 0x1)==0) {...
class class_name[name] begin[{] method[readDwgTextV15, return_type[void], modifier[public], parameter[data, offset]] begin[{] local_variable[type[int], bitPos] assign[member[.bitPos], call[.readObjectHeaderV15, parameter[member[.data], member[.bitPos]]]] local_variable[type[Vect...
Keyword[public] Keyword[void] identifier[readDwgTextV15] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[data] , Keyword[int] identifier[offset] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[int] identifier[bitPos] operator[=] identifier[offset] operator[SEP] identifier[bitPos]...
public static String encode(final String decoded) { try { return s_codec.encode(decoded); } catch (EncoderException e) { throw new IllegalStateException(Bundle.getErrorString("URLCodec_encodeException", new String[] {e.getMessage()}), e); } }
class class_name[name] begin[{] method[encode, return_type[type[String]], modifier[public static], parameter[decoded]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=decoded, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])...
Keyword[public] Keyword[static] identifier[String] identifier[encode] operator[SEP] Keyword[final] identifier[String] identifier[decoded] operator[SEP] { Keyword[try] { Keyword[return] identifier[s_codec] operator[SEP] identifier[encode] operator[SEP] identifier[decoded] operator[SEP] operator[SEP] ...
protected final void addConverter(String name, String converterId, Class<? extends TagHandler> type) { _factories.put(name, new UserConverterHandlerFactory(converterId, type)); }
class class_name[name] begin[{] method[addConverter, return_type[void], modifier[final protected], parameter[name, converterId, type]] begin[{] call[_factories.put, parameter[member[.name], ClassCreator(arguments=[MemberReference(member=converterId, postfix_operators=[], prefix_operators=[], qu...
Keyword[protected] Keyword[final] Keyword[void] identifier[addConverter] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[converterId] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[TagHandler] operator[>] identifier[type] operator[SEP] { identifier[_fa...
public BDDReserved2 createBDDReserved2FromString(EDataType eDataType, String initialValue) { BDDReserved2 result = BDDReserved2.get(initialValue); if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); return result; ...
class class_name[name] begin[{] method[createBDDReserved2FromString, return_type[type[BDDReserved2]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[BDDReserved2], result] if[binary_operation[member[.result], ==, literal[null]]] begin[{] ThrowStatemen...
Keyword[public] identifier[BDDReserved2] identifier[createBDDReserved2FromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[BDDReserved2] identifier[result] operator[=] identifier[BDDReserved2] operator[SEP] identifier[get]...
public Map<HK, List<HV>> multiGet(Collection<HK> keys) { return ops.multiGet(getKey(), getField(), keys); }
class class_name[name] begin[{] method[multiGet, return_type[type[Map]], modifier[public], parameter[keys]] begin[{] return[call[ops.multiGet, parameter[call[.getKey, parameter[]], call[.getField, parameter[]], member[.keys]]]] end[}] END[}]
Keyword[public] identifier[Map] operator[<] identifier[HK] , identifier[List] operator[<] identifier[HV] operator[>] operator[>] identifier[multiGet] operator[SEP] identifier[Collection] operator[<] identifier[HK] operator[>] identifier[keys] operator[SEP] { Keyword[return] identifier[ops] operator[SEP] identif...
private void onDataSetStaleEvent(@Observes DataSetStaleEvent event) { checkNotNull("event", event); String uuid = event.getDataSetDef().getUUID(); // Remove any stale data existing on the client. // This will force next lookup requests to push a refreshed data set. ...
class class_name[name] begin[{] method[onDataSetStaleEvent, return_type[void], modifier[private], parameter[event]] begin[{] call[.checkNotNull, parameter[literal["event"], member[.event]]] local_variable[type[String], uuid] call[clientDataSetManager.removeDataSet, param...
Keyword[private] Keyword[void] identifier[onDataSetStaleEvent] operator[SEP] annotation[@] identifier[Observes] identifier[DataSetStaleEvent] identifier[event] operator[SEP] { identifier[checkNotNull] operator[SEP] literal[String] , identifier[event] operator[SEP] operator[SEP] identifier[String] identifier[uui...
public static String getTableQualifiedName(String clusterName, String dbName, String tableName) { return getTableQualifiedName(clusterName, dbName, tableName, false); }
class class_name[name] begin[{] method[getTableQualifiedName, return_type[type[String]], modifier[public static], parameter[clusterName, dbName, tableName]] begin[{] return[call[.getTableQualifiedName, parameter[member[.clusterName], member[.dbName], member[.tableName], literal[false]]]] end[}] END...
Keyword[public] Keyword[static] identifier[String] identifier[getTableQualifiedName] operator[SEP] identifier[String] identifier[clusterName] , identifier[String] identifier[dbName] , identifier[String] identifier[tableName] operator[SEP] { Keyword[return] identifier[getTableQualifiedName] operator[SEP] identi...
public void sessionHeartbeat(long sessionId) { synchronized (mSessions) { if (mSessions.containsKey(sessionId)) { mSessions.get(sessionId).heartbeat(); } else { int sessionTimeoutMs = (int) ServerConfiguration .getMs(PropertyKey.WORKER_SESSION_TIMEOUT_MS); mSessions.p...
class class_name[name] begin[{] method[sessionHeartbeat, return_type[void], modifier[public], parameter[sessionId]] begin[{] SYNCHRONIZED[member[.mSessions]] BEGIN[{] if[call[mSessions.containsKey, parameter[member[.sessionId]]]] begin[{] ...
Keyword[public] Keyword[void] identifier[sessionHeartbeat] operator[SEP] Keyword[long] identifier[sessionId] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[mSessions] operator[SEP] { Keyword[if] operator[SEP] identifier[mSessions] operator[SEP] identifier[containsKey] operator[SEP] ide...
public T text(String text) throws IOException { if (text != null) { writer.write(text); } return (T) this; }
class class_name[name] begin[{] method[text, return_type[type[T]], modifier[public], parameter[text]] begin[{] if[binary_operation[member[.text], !=, literal[null]]] begin[{] call[writer.write, parameter[member[.text]]] else begin[{] None end[}] r...
Keyword[public] identifier[T] identifier[text] operator[SEP] identifier[String] identifier[text] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[text] operator[!=] Other[null] operator[SEP] { identifier[writer] operator[SEP] identifier[write] operator[SEP] ...
public Observable<TaskInner> getAsync(String resourceGroupName, String registryName, String taskName) { return getWithServiceResponseAsync(resourceGroupName, registryName, taskName).map(new Func1<ServiceResponse<TaskInner>, TaskInner>() { @Override public TaskInner call(ServiceResponse<T...
class class_name[name] begin[{] method[getAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, registryName, taskName]] begin[{] return[call[.getWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.registryName], member[.taskName]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[TaskInner] operator[>] identifier[getAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[registryName] , identifier[String] identifier[taskName] operator[SEP] { Keyword[return] identifier[getWithServ...
public synchronized long getLocalityWait(ResourceType type, LocalityLevel level) { if (level == LocalityLevel.ANY) { return 0L; } Long wait = level == LocalityLevel.NODE ? typeToNodeWait.get(type) : typeToRackWait.get(type); if (wait == null) { ...
class class_name[name] begin[{] method[getLocalityWait, return_type[type[long]], modifier[synchronized public], parameter[type, level]] begin[{] if[binary_operation[member[.level], ==, member[LocalityLevel.ANY]]] begin[{] return[literal[0L]] else begin[{] None end[}]...
Keyword[public] Keyword[synchronized] Keyword[long] identifier[getLocalityWait] operator[SEP] identifier[ResourceType] identifier[type] , identifier[LocalityLevel] identifier[level] operator[SEP] { Keyword[if] operator[SEP] identifier[level] operator[==] identifier[LocalityLevel] operator[SEP] identifier[ANY] o...
private static String makeMessage(int lineNumber, String line, String tline, String msg) { int columnNumber = (tline != null ? line.indexOf(tline) : 0); StringBuilder sb = new StringBuilder(); if (msg != null) { sb.append(msg); } sb.append(" [lineNumber: ").append(lin...
class class_name[name] begin[{] method[makeMessage, return_type[type[String]], modifier[private static], parameter[lineNumber, line, tline, msg]] begin[{] local_variable[type[int], columnNumber] local_variable[type[StringBuilder], sb] if[binary_operation[member[.msg], !=, litera...
Keyword[private] Keyword[static] identifier[String] identifier[makeMessage] operator[SEP] Keyword[int] identifier[lineNumber] , identifier[String] identifier[line] , identifier[String] identifier[tline] , identifier[String] identifier[msg] operator[SEP] { Keyword[int] identifier[columnNumber] operator[=] oper...
public String replaceAll(String replacement) { reset(); StringBuffer buffer = new StringBuffer(input.length()); while (find()) { appendReplacement(buffer, replacement); } return appendTail(buffer).toString(); }
class class_name[name] begin[{] method[replaceAll, return_type[type[String]], modifier[public], parameter[replacement]] begin[{] call[.reset, parameter[]] local_variable[type[StringBuffer], buffer] while[call[.find, parameter[]]] begin[{] call[.ap...
Keyword[public] identifier[String] identifier[replaceAll] operator[SEP] identifier[String] identifier[replacement] operator[SEP] { identifier[reset] operator[SEP] operator[SEP] operator[SEP] identifier[StringBuffer] identifier[buffer] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] identifier[inp...
private boolean isLifecycleCallbackGlobalTx(int methodId) { EJBMethodInfoImpl[] methodInfos = home.beanMetaData.lifecycleInterceptorMethodInfos; return methodInfos != null && methodInfos[methodId].getTransactionAttribute() == TransactionAttribute.TX_REQUIRES_NEW; }
class class_name[name] begin[{] method[isLifecycleCallbackGlobalTx, return_type[type[boolean]], modifier[private], parameter[methodId]] begin[{] local_variable[type[EJBMethodInfoImpl], methodInfos] return[binary_operation[binary_operation[member[.methodInfos], !=, literal[null]], &&, binary_ope...
Keyword[private] Keyword[boolean] identifier[isLifecycleCallbackGlobalTx] operator[SEP] Keyword[int] identifier[methodId] operator[SEP] { identifier[EJBMethodInfoImpl] operator[SEP] operator[SEP] identifier[methodInfos] operator[=] identifier[home] operator[SEP] identifier[beanMetaData] operator[SEP] identifier[...
public void onSave(StubAmp stub, Result<Void> result) { try { MethodAmp onDelete = _onDelete; MethodAmp onSave = _onSave; if (stub.state().isDelete() && onDelete != null) { onDelete.query(HeadersNull.NULL, result, stub); } else if (onSave != null) { //QueryRefA...
class class_name[name] begin[{] method[onSave, return_type[void], modifier[public], parameter[stub, result]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=_onDelete, postfix_operators=[], prefix_op...
Keyword[public] Keyword[void] identifier[onSave] operator[SEP] identifier[StubAmp] identifier[stub] , identifier[Result] operator[<] identifier[Void] operator[>] identifier[result] operator[SEP] { Keyword[try] { identifier[MethodAmp] identifier[onDelete] operator[=] identifier[_onDelete] operator[SEP...
public void restoreAfterSafeModeRestart() { for (Integer pendingRequestId : pendingRequestsList) { ResourceRequestInfo request = idToRequest.get(pendingRequestId); incrementRequestCount(request.getType(), 1); addPendingRequest(request); } for (Integer grantedRequestId : idToGrant.keySet()...
class class_name[name] begin[{] method[restoreAfterSafeModeRestart, return_type[void], modifier[public], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(ar...
Keyword[public] Keyword[void] identifier[restoreAfterSafeModeRestart] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[Integer] identifier[pendingRequestId] operator[:] identifier[pendingRequestsList] operator[SEP] { identifier[ResourceRequestInfo] identifier[request] operator[=] i...
public static FSError findNested(Throwable top) { for (Throwable t = top; t != null; t = t.getCause()) { if (t instanceof FSError) return (FSError) t; } return null; }
class class_name[name] begin[{] method[findNested, return_type[type[FSError]], modifier[public static], parameter[top]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=t, postfix_operators=[], prefix_operators=[], q...
Keyword[public] Keyword[static] identifier[FSError] identifier[findNested] operator[SEP] identifier[Throwable] identifier[top] operator[SEP] { Keyword[for] operator[SEP] identifier[Throwable] identifier[t] operator[=] identifier[top] operator[SEP] identifier[t] operator[!=] Other[null] operator[SEP] identifier[t...
static boolean charEqualsIgnoreCase(char c1, char c2) { return c1 == c2 || Character.toUpperCase(c1) == Character.toUpperCase(c2) || Character.toLowerCase(c1) == Character.toLowerCase(c2); }
class class_name[name] begin[{] method[charEqualsIgnoreCase, return_type[type[boolean]], modifier[static], parameter[c1, c2]] begin[{] return[binary_operation[binary_operation[binary_operation[member[.c1], ==, member[.c2]], ||, binary_operation[call[Character.toUpperCase, parameter[member[.c1]]], ==, c...
Keyword[static] Keyword[boolean] identifier[charEqualsIgnoreCase] operator[SEP] Keyword[char] identifier[c1] , Keyword[char] identifier[c2] operator[SEP] { Keyword[return] identifier[c1] operator[==] identifier[c2] operator[||] identifier[Character] operator[SEP] identifier[toUpperCase] operator[SEP] identifier...
@Override public DoubleMatrix1D getMatrixScalingFactorsSymm(DoubleMatrix2D A) { DoubleFactory1D F1 = DoubleFactory1D.dense; DoubleFactory2D F2 = DoubleFactory2D.sparse; int dim = A.columns(); DoubleMatrix1D D1 = F1.make(dim, 1); DoubleMatrix2D AK = A.copy(); DoubleMatrix2D DR = F2.identity(dim); ...
class class_name[name] begin[{] method[getMatrixScalingFactorsSymm, return_type[type[DoubleMatrix1D]], modifier[public], parameter[A]] begin[{] local_variable[type[DoubleFactory1D], F1] local_variable[type[DoubleFactory2D], F2] local_variable[type[int], dim] local_variable[type[...
annotation[@] identifier[Override] Keyword[public] identifier[DoubleMatrix1D] identifier[getMatrixScalingFactorsSymm] operator[SEP] identifier[DoubleMatrix2D] identifier[A] operator[SEP] { identifier[DoubleFactory1D] identifier[F1] operator[=] identifier[DoubleFactory1D] operator[SEP] identifier[dense] operator[...
public final <T> void addOption(Class<T> cls, String name, String description) { addOption(cls, name, description, null); }
class class_name[name] begin[{] method[addOption, return_type[void], modifier[final public], parameter[cls, name, description]] begin[{] call[.addOption, parameter[member[.cls], member[.name], member[.description], literal[null]]] end[}] END[}]
Keyword[public] Keyword[final] operator[<] identifier[T] operator[>] Keyword[void] identifier[addOption] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[cls] , identifier[String] identifier[name] , identifier[String] identifier[description] operator[SEP] { identifier[addOption]...
public JobGraph compileJobGraph(OptimizedPlan program) { this.jobGraph = new JobGraph(program.getJobName()); this.vertices = new HashMap<PlanNode, AbstractJobVertex>(); this.chainedTasks = new HashMap<PlanNode, TaskInChain>(); this.chainedTasksInSequence = new ArrayList<TaskInChain>(); this.auxVertices = new ...
class class_name[name] begin[{] method[compileJobGraph, return_type[type[JobGraph]], modifier[public], parameter[program]] begin[{] assign[THIS[member[None.jobGraph]], ClassCreator(arguments=[MethodInvocation(arguments=[], member=getJobName, postfix_operators=[], prefix_operators=[], qualifier=...
Keyword[public] identifier[JobGraph] identifier[compileJobGraph] operator[SEP] identifier[OptimizedPlan] identifier[program] operator[SEP] { Keyword[this] operator[SEP] identifier[jobGraph] operator[=] Keyword[new] identifier[JobGraph] operator[SEP] identifier[program] operator[SEP] identifier[getJobName] operat...
public CliCommandBuilder setScriptFile(final Path path) { if (path == null) { addCliArgument(CliArgument.FILE, null); } else { // Make sure the path exists if (Files.notExists(path)) { throw LauncherMessages.MESSAGES.pathDoesNotExist(path); ...
class class_name[name] begin[{] method[setScriptFile, return_type[type[CliCommandBuilder]], modifier[public], parameter[path]] begin[{] if[binary_operation[member[.path], ==, literal[null]]] begin[{] call[.addCliArgument, parameter[member[CliArgument.FILE], literal[null]...
Keyword[public] identifier[CliCommandBuilder] identifier[setScriptFile] operator[SEP] Keyword[final] identifier[Path] identifier[path] operator[SEP] { Keyword[if] operator[SEP] identifier[path] operator[==] Other[null] operator[SEP] { identifier[addCliArgument] operator[SEP] identifier[CliArgument] op...
public synchronized void waitForStart() throws ServerException, ClientException, IOException { try { while(!isStarted() && !hasError()) { wait(); } } catch(InterruptedException e) { // break } checkError(); }
class class_name[name] begin[{] method[waitForStart, return_type[void], modifier[synchronized public], parameter[]] begin[{] TryStatement(block=[WhileStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[], member=wait, postfix_operators=[], pr...
Keyword[public] Keyword[synchronized] Keyword[void] identifier[waitForStart] operator[SEP] operator[SEP] Keyword[throws] identifier[ServerException] , identifier[ClientException] , identifier[IOException] { Keyword[try] { Keyword[while] operator[SEP] operator[!] identifier[isStarted] operator[SEP] o...
public final void setMaximumActiveTransactions(int maximumActiveTransactions , Transaction transaction) throws ObjectManagerException { if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled()) trace.entry(this, cclass ...
class class_name[name] begin[{] method[setMaximumActiveTransactions, return_type[void], modifier[final public], parameter[maximumActiveTransactions, transaction]] begin[{] if[binary_operation[call[Tracing.isAnyTracingEnabled, parameter[]], &&, call[trace.isEntryEnabled, parameter[]]]] begin[{] ...
Keyword[public] Keyword[final] Keyword[void] identifier[setMaximumActiveTransactions] operator[SEP] Keyword[int] identifier[maximumActiveTransactions] , identifier[Transaction] identifier[transaction] operator[SEP] Keyword[throws] identifier[ObjectManagerException] { Keyword[if] operator[SEP] identifier[Tracing...
@Override public void eUnset(int featureID) { switch (featureID) { case AfplibPackage.BBC__BCDO_NAME: setBCdoName(BCDO_NAME_EDEFAULT); return; case AfplibPackage.BBC__TRIPLETS: getTriplets().clear(); return; } super.eUnset(featureID); }
class class_name[name] begin[{] method[eUnset, return_type[void], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=BBC__BCDO_NAME, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements=[Stat...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eUnset] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] { Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] { Keyword[case] identifier[AfplibPackage] operator[SEP] identifier[BBC__BCDO_NAME] oper...
public EClass getIfcBuildingStorey() { if (ifcBuildingStoreyEClass == null) { ifcBuildingStoreyEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(61); } return ifcBuildingStoreyEClass; }
class class_name[name] begin[{] method[getIfcBuildingStorey, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcBuildingStoreyEClass], ==, literal[null]]] begin[{] assign[member[.ifcBuildingStoreyEClass], Cast(expression=Met...
Keyword[public] identifier[EClass] identifier[getIfcBuildingStorey] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcBuildingStoreyEClass] operator[==] Other[null] operator[SEP] { identifier[ifcBuildingStoreyEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identi...
public void setDeterminer(String v) { if (Token_Type.featOkTst && ((Token_Type)jcasType).casFeat_determiner == null) jcasType.jcas.throwFeatMissing("determiner", "edu.cmu.lti.oaqa.type.nlp.Token"); jcasType.ll_cas.ll_setStringValue(addr, ((Token_Type)jcasType).casFeatCode_determiner, v);}
class class_name[name] begin[{] method[setDeterminer, return_type[void], modifier[public], parameter[v]] begin[{] if[binary_operation[member[Token_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, select...
Keyword[public] Keyword[void] identifier[setDeterminer] operator[SEP] identifier[String] identifier[v] operator[SEP] { Keyword[if] operator[SEP] identifier[Token_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[Token_Type] operator[SEP] identifier[jcasType] operator[S...
@Ensures("result == isQualifiedName(name.replace('/', '.'))") public static boolean isBinaryName(String name) { if (name == null || name.isEmpty()) { return false; } String[] parts = name.split("/"); for (String part : parts) { if (!isSimpleName(part)) { return false; } }...
class class_name[name] begin[{] method[isBinaryName, return_type[type[boolean]], modifier[public static], parameter[name]] begin[{] if[binary_operation[binary_operation[member[.name], ==, literal[null]], ||, call[name.isEmpty, parameter[]]]] begin[{] return[literal[false]] e...
annotation[@] identifier[Ensures] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[boolean] identifier[isBinaryName] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[name] operator[==] Other[null] operator[||] identifier[nam...
public CalendarPeriodAssociative<T> Trim( CalendarPeriodAssociative<T> calendarPeriod ) { List<PeriodAssociative<T>> result = new ArrayList<PeriodAssociative<T>>(); int count1 = periods.size(); int count2 = calendarPeriod.getPeriods().size(); int i = 0; int j = 0; while( i < count1 && j < count2 ) { ...
class class_name[name] begin[{] method[Trim, return_type[type[CalendarPeriodAssociative]], modifier[public], parameter[calendarPeriod]] begin[{] local_variable[type[List], result] local_variable[type[int], count1] local_variable[type[int], count2] local_variable[type[int], i] ...
Keyword[public] identifier[CalendarPeriodAssociative] operator[<] identifier[T] operator[>] identifier[Trim] operator[SEP] identifier[CalendarPeriodAssociative] operator[<] identifier[T] operator[>] identifier[calendarPeriod] operator[SEP] { identifier[List] operator[<] identifier[PeriodAssociative] operator[<] ...
public FactorGraph getConnectedComponent(VariableNumMap vars) { return FactorGraph.getConnectedComponent(vars, variableFactorMap, factorVariableMap, variables, Arrays.asList(factors), Arrays.asList(factorNames), conditionedVariables, conditionedValues, inferenceHint); }
class class_name[name] begin[{] method[getConnectedComponent, return_type[type[FactorGraph]], modifier[public], parameter[vars]] begin[{] return[call[FactorGraph.getConnectedComponent, parameter[member[.vars], member[.variableFactorMap], member[.factorVariableMap], member[.variables], call[Arrays.asLis...
Keyword[public] identifier[FactorGraph] identifier[getConnectedComponent] operator[SEP] identifier[VariableNumMap] identifier[vars] operator[SEP] { Keyword[return] identifier[FactorGraph] operator[SEP] identifier[getConnectedComponent] operator[SEP] identifier[vars] , identifier[variableFactorMap] , identifier...
@Activate protected void activate(Map<String, Object> properties) { if (properties == null) return; String uri = getURI(properties); if (uri == null) return; uri = normalize(uri); JAXRSClientConfigHolder.addConfig(this.toString(), uri, filterProps(prop...
class class_name[name] begin[{] method[activate, return_type[void], modifier[protected], parameter[properties]] begin[{] if[binary_operation[member[.properties], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[String], uri] ...
annotation[@] identifier[Activate] Keyword[protected] Keyword[void] identifier[activate] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[properties] operator[SEP] { Keyword[if] operator[SEP] identifier[properties] operator[==] Other[null] operator[SEP] Ke...
@SuppressWarnings("fallthrough") private void beforeValue() throws IOException { switch (peekScope()) { case NONEMPTY_DOCUMENT: if (!lenient) { throw new IllegalStateException( "JSON must have only one top-level value."); } // fall-through case EMPTY_DOC...
class class_name[name] begin[{] method[beforeValue, return_type[void], modifier[private], parameter[]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=['NONEMPTY_DOCUMENT'], statements=[IfStatement(condition=MemberReference(member=lenient, postfix_operators=[], prefix_operators=['!'], qualifie...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[void] identifier[beforeValue] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[switch] operator[SEP] identifier[peekScope] operator[SEP] operator[SEP] operator[SEP] { ...
@Override public Long ssExpire(byte[] key, byte[] field, long expireSeconds) { try { if (isPipelined()) { pipeline(new JedisResult(pipeline.ssexpire(key, field, expireSeconds))); return null; } return this.client.ssexpire(key, field, expir...
class class_name[name] begin[{] method[ssExpire, return_type[type[Long]], modifier[public], parameter[key, field, expireSeconds]] begin[{] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=isPipelined, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], ty...
annotation[@] identifier[Override] Keyword[public] identifier[Long] identifier[ssExpire] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[key] , Keyword[byte] operator[SEP] operator[SEP] identifier[field] , Keyword[long] identifier[expireSeconds] operator[SEP] { Keyword[try] { Keyw...