code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public final void add(ObservableDoubleValue dependency) { requireNonNull(dependency, "Parameter 'dependency' is null"); if (!dependencies.contains(dependency)) { dependencies.add(dependency); bind(dependency); invalidate(); } else { LOGGER.warn(...
class class_name[name] begin[{] method[add, return_type[void], modifier[final public], parameter[dependency]] begin[{] call[.requireNonNull, parameter[member[.dependency], literal["Parameter 'dependency' is null"]]] if[call[dependencies.contains, parameter[member[.dependency]]]]...
Keyword[public] Keyword[final] Keyword[void] identifier[add] operator[SEP] identifier[ObservableDoubleValue] identifier[dependency] operator[SEP] { identifier[requireNonNull] operator[SEP] identifier[dependency] , literal[String] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[depen...
public FacesConfigFlowDefinitionSwitchCaseType<FacesConfigFlowDefinitionSwitchType<T>> getOrCreateCase() { List<Node> nodeList = childNode.get("case"); if (nodeList != null && nodeList.size() > 0) { return new FacesConfigFlowDefinitionSwitchCaseTypeImpl<FacesConfigFlowDefinitionSwitchType...
class class_name[name] begin[{] method[getOrCreateCase, return_type[type[FacesConfigFlowDefinitionSwitchCaseType]], modifier[public], parameter[]] begin[{] local_variable[type[List], nodeList] if[binary_operation[binary_operation[member[.nodeList], !=, literal[null]], &&, binary_operati...
Keyword[public] identifier[FacesConfigFlowDefinitionSwitchCaseType] operator[<] identifier[FacesConfigFlowDefinitionSwitchType] operator[<] identifier[T] operator[>] operator[>] identifier[getOrCreateCase] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[Node] operator[>] identifier[nodeList...
private <T> void bindObjectToJavaNameSpaces(NameSpaceBinder<T> binder, T bindingObject, HomeRecord hr, boolean singleGlobalInterface, ...
class class_name[name] begin[{] method[bindObjectToJavaNameSpaces, return_type[void], modifier[private], parameter[binder, bindingObject, hr, singleGlobalInterface, interfaceName, interfaceIndex, local]] begin[{] local_variable[type[boolean], isTraceOn] if[binary_operation[member[.isTra...
Keyword[private] operator[<] identifier[T] operator[>] Keyword[void] identifier[bindObjectToJavaNameSpaces] operator[SEP] identifier[NameSpaceBinder] operator[<] identifier[T] operator[>] identifier[binder] , identifier[T] identifier[bindingObject] , identifier[HomeRecord] identifier[hr] , Keyword[boolean] identifie...
public boolean effectiveCharges(IAtomContainer mol) { int[][] adjList = mol.getProperty(MMFF_ADJLIST_CACHE); GraphUtil.EdgeToBondMap edgeMap = mol.getProperty(MMFF_EDGEMAP_CACHE); if (adjList == null || edgeMap == null) throw new IllegalArgumentException("Invoke assignAtomTypes fir...
class class_name[name] begin[{] method[effectiveCharges, return_type[type[boolean]], modifier[public], parameter[mol]] begin[{] local_variable[type[int], adjList] local_variable[type[GraphUtil], edgeMap] if[binary_operation[binary_operation[member[.adjList], ==, literal[null]], ...
Keyword[public] Keyword[boolean] identifier[effectiveCharges] operator[SEP] identifier[IAtomContainer] identifier[mol] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[adjList] operator[=] identifier[mol] operator[SEP] identifier[getProperty] operator[SEP] identifie...
public static DrawBlock getDrawBlockFromBlockState(IBlockState state, List<IProperty> extraProperties) { if (state == null) return null; DrawBlock block = new DrawBlock(); Object blockName = Block.REGISTRY.getNameForObject(state.getBlock()); if (blockName instanceof Reso...
class class_name[name] begin[{] method[getDrawBlockFromBlockState, return_type[type[DrawBlock]], modifier[public static], parameter[state, extraProperties]] begin[{] if[binary_operation[member[.state], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[DrawBlock] identifier[getDrawBlockFromBlockState] operator[SEP] identifier[IBlockState] identifier[state] , identifier[List] operator[<] identifier[IProperty] operator[>] identifier[extraProperties] operator[SEP] { Keyword[if] operator[SEP] identifier[state] operator[=...
public static String getDatasetUri(Table table) { return HIVE_DATASETS_CONFIG_PREFIX + table.getDbName() + Path.SEPARATOR + table.getTableName(); }
class class_name[name] begin[{] method[getDatasetUri, return_type[type[String]], modifier[public static], parameter[table]] begin[{] return[binary_operation[binary_operation[binary_operation[member[.HIVE_DATASETS_CONFIG_PREFIX], +, call[table.getDbName, parameter[]]], +, member[Path.SEPARATOR]], +, cal...
Keyword[public] Keyword[static] identifier[String] identifier[getDatasetUri] operator[SEP] identifier[Table] identifier[table] operator[SEP] { Keyword[return] identifier[HIVE_DATASETS_CONFIG_PREFIX] operator[+] identifier[table] operator[SEP] identifier[getDbName] operator[SEP] operator[SEP] operator[+] identifi...
@Override public Object getValue(double evaluationTime, Model model) { if(model instanceof MonteCarloSimulationModel) { try { return getValue(evaluationTime, (MonteCarloSimulationModel)model); } catch (CalculationException e) { return null; } } else { throw new IllegalArgumentException("The p...
class class_name[name] begin[{] method[getValue, return_type[type[Object]], modifier[public], parameter[evaluationTime, model]] begin[{] if[binary_operation[member[.model], instanceof, type[MonteCarloSimulationModel]]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodIn...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[getValue] operator[SEP] Keyword[double] identifier[evaluationTime] , identifier[Model] identifier[model] operator[SEP] { Keyword[if] operator[SEP] identifier[model] Keyword[instanceof] identifier[MonteCarloSimulationModel] operator...
protected int require (int required) throws KryoException { int remaining = limit - position; if (remaining >= required) return remaining; if (required > capacity) throw new KryoException("Buffer too small: capacity: " + capacity + ", required: " + required); int count; // Try to fill the buffer. if...
class class_name[name] begin[{] method[require, return_type[type[int]], modifier[protected], parameter[required]] begin[{] local_variable[type[int], remaining] if[binary_operation[member[.remaining], >=, member[.required]]] begin[{] return[member[.remaining]] else begin[{] None ...
Keyword[protected] Keyword[int] identifier[require] operator[SEP] Keyword[int] identifier[required] operator[SEP] Keyword[throws] identifier[KryoException] { Keyword[int] identifier[remaining] operator[=] identifier[limit] operator[-] identifier[position] operator[SEP] Keyword[if] operator[SEP] identifier[remain...
public Observable<ServiceResponse<Page<JobCredentialInner>>> listByAgentNextWithServiceResponseAsync(final String nextPageLink) { return listByAgentNextSinglePageAsync(nextPageLink) .concatMap(new Func1<ServiceResponse<Page<JobCredentialInner>>, Observable<ServiceResponse<Page<JobCredentialInner>>>>...
class class_name[name] begin[{] method[listByAgentNextWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink]] begin[{] return[call[.listByAgentNextSinglePageAsync, parameter[member[.nextPageLink]]]] end[}] END[}]
Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[JobCredentialInner] operator[>] operator[>] operator[>] identifier[listByAgentNextWithServiceResponseAsync] operator[SEP] Keyword[final] identifier[String] identifier[nextPageLink] operator...
public boolean isRecordMatch(Record record) { Map<String,Object> properties = this.getProperties(); String strTableName = (String)properties.get(TABLE_NAME); // Object dsBookmark = this.getBookmark(DBConstants.BOOKMARK_HANDLE); if (record != null) if (record.getTableNames(...
class class_name[name] begin[{] method[isRecordMatch, return_type[type[boolean]], modifier[public], parameter[record]] begin[{] local_variable[type[Map], properties] local_variable[type[String], strTableName] if[binary_operation[member[.record], !=, literal[null]]] begin[{] ...
Keyword[public] Keyword[boolean] identifier[isRecordMatch] operator[SEP] identifier[Record] identifier[record] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[properties] operator[=] Keyword[this] operator[SEP] identifier[getProperties] operator[SEP] op...
public static BigInteger convertVarNumberToBigInteger(byte[] rawData) { BigInteger result=BigInteger.ZERO; if (rawData!=null) { if (rawData.length>0) { result = new BigInteger(1,rawData); // we know it is always positive } } return result; }
class class_name[name] begin[{] method[convertVarNumberToBigInteger, return_type[type[BigInteger]], modifier[public static], parameter[rawData]] begin[{] local_variable[type[BigInteger], result] if[binary_operation[member[.rawData], !=, literal[null]]] begin[{] i...
Keyword[public] Keyword[static] identifier[BigInteger] identifier[convertVarNumberToBigInteger] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[rawData] operator[SEP] { identifier[BigInteger] identifier[result] operator[=] identifier[BigInteger] operator[SEP] identifier[ZERO] operator[SEP] Key...
private boolean renderURL(URL urlstring, URL baseUrl, OutputStream out) throws IOException, SAXException { // Open the network connection DocumentSource docSource = new DefaultDocumentSource(urlstring); // Parse the input document DOMSource parser = new DefaultDOMSource(docSource); Document doc = parser....
class class_name[name] begin[{] method[renderURL, return_type[type[boolean]], modifier[private], parameter[urlstring, baseUrl, out]] begin[{] local_variable[type[DocumentSource], docSource] local_variable[type[DOMSource], parser] local_variable[type[Document], doc] local_variabl...
Keyword[private] Keyword[boolean] identifier[renderURL] operator[SEP] identifier[URL] identifier[urlstring] , identifier[URL] identifier[baseUrl] , identifier[OutputStream] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] , identifier[SAXException] { identifier[DocumentSource] identifier[...
public void printUsage(OutputStream os) { int count = 0; PrintStream out = UTF8.printStream(os); for (String option : optionList) { if (optionGroups.containsKey(count)) { out.println(" " + optionGroups.get(count)); } count++; if ...
class class_name[name] begin[{] method[printUsage, return_type[void], modifier[public], parameter[os]] begin[{] local_variable[type[int], count] local_variable[type[PrintStream], out] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(argumen...
Keyword[public] Keyword[void] identifier[printUsage] operator[SEP] identifier[OutputStream] identifier[os] operator[SEP] { Keyword[int] identifier[count] operator[=] Other[0] operator[SEP] identifier[PrintStream] identifier[out] operator[=] identifier[UTF8] operator[SEP] identifier[printStream] operator[SEP] ide...
public static boolean isZip(String fName) { if (Strings.isNullOrEmpty(fName)) { return false; } return fName.endsWith(ZIP_SUFFIX); // Technically a file named `.zip` would be fine }
class class_name[name] begin[{] method[isZip, return_type[type[boolean]], modifier[public static], parameter[fName]] begin[{] if[call[Strings.isNullOrEmpty, parameter[member[.fName]]]] begin[{] return[literal[false]] else begin[{] None end[}] return[call[fNam...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isZip] operator[SEP] identifier[String] identifier[fName] operator[SEP] { Keyword[if] operator[SEP] identifier[Strings] operator[SEP] identifier[isNullOrEmpty] operator[SEP] identifier[fName] operator[SEP] operator[SEP] { Keyword[return] lite...
private Iterator<Row<ByteBuffer, UUID>> rowScan(final DeltaPlacement placement, final ByteBufferRange rowRange, final ByteBufferRange columnRange, final LimitCounte...
class class_name[name] begin[{] method[rowScan, return_type[type[Iterator]], modifier[private], parameter[placement, rowRange, columnRange, limit, consistency]] begin[{] return[call[.rowScan, parameter[member[.placement], call[placement.getDeltaColumnFamily, parameter[]], member[.rowRange], member[.col...
Keyword[private] identifier[Iterator] operator[<] identifier[Row] operator[<] identifier[ByteBuffer] , identifier[UUID] operator[>] operator[>] identifier[rowScan] operator[SEP] Keyword[final] identifier[DeltaPlacement] identifier[placement] , Keyword[final] identifier[ByteBufferRange] identifier[rowRange] , Keyword...
protected boolean isSlowTracker(String taskTracker) { if (trackerMapStats.get(taskTracker) != null && trackerMapStats.get(taskTracker).mean() - mapTaskStats.mean() > mapTaskStats.std()*slowNodeThreshold) { if (LOG.isDebugEnabled()) { LOG.debug("Tracker " + taskTracker + " d...
class class_name[name] begin[{] method[isSlowTracker, return_type[type[boolean]], modifier[protected], parameter[taskTracker]] begin[{] if[binary_operation[binary_operation[call[trackerMapStats.get, parameter[member[.taskTracker]]], !=, literal[null]], &&, binary_operation[binary_operation[call...
Keyword[protected] Keyword[boolean] identifier[isSlowTracker] operator[SEP] identifier[String] identifier[taskTracker] operator[SEP] { Keyword[if] operator[SEP] identifier[trackerMapStats] operator[SEP] identifier[get] operator[SEP] identifier[taskTracker] operator[SEP] operator[!=] Other[null] operator[&&] iden...
public org.inferred.freebuilder.processor.property.Property.Builder setNullableBoxedType( TypeMirror boxedType) { if (boxedType != null) { return setBoxedType(boxedType); } else { return clearBoxedType(); } }
class class_name[name] begin[{] method[setNullableBoxedType, return_type[type[org]], modifier[public], parameter[boxedType]] begin[{] if[binary_operation[member[.boxedType], !=, literal[null]]] begin[{] return[call[.setBoxedType, parameter[member[.boxedType]]]] else begin[{]...
Keyword[public] identifier[org] operator[SEP] identifier[inferred] operator[SEP] identifier[freebuilder] operator[SEP] identifier[processor] operator[SEP] identifier[property] operator[SEP] identifier[Property] operator[SEP] identifier[Builder] identifier[setNullableBoxedType] operator[SEP] identifier[TypeMirror] ident...
@Deprecated public final void setPattern(Expression p, String wildcardMultiChar, String wildcardOneChar, String escapeString) { setPattern(p.toString(), wildcardMultiChar, wildcardOneChar, escapeString); }
class class_name[name] begin[{] method[setPattern, return_type[void], modifier[final public], parameter[p, wildcardMultiChar, wildcardOneChar, escapeString]] begin[{] call[.setPattern, parameter[call[p.toString, parameter[]], member[.wildcardMultiChar], member[.wildcardOneChar], member[.escapeS...
annotation[@] identifier[Deprecated] Keyword[public] Keyword[final] Keyword[void] identifier[setPattern] operator[SEP] identifier[Expression] identifier[p] , identifier[String] identifier[wildcardMultiChar] , identifier[String] identifier[wildcardOneChar] , identifier[String] identifier[escapeString] operator[SEP] ...
public static Object convertValue(String text, String typeName) throws ClassNotFoundException, IntrospectionException { // see if it is a primitive type first Class<?> typeClass = getPrimitiveTypeForName(typeName); if (typeClass == null) { ClassLoader loader = Thread.currentThread()....
class class_name[name] begin[{] method[convertValue, return_type[type[Object]], modifier[public static], parameter[text, typeName]] begin[{] local_variable[type[Class], typeClass] if[binary_operation[member[.typeClass], ==, literal[null]]] begin[{] local_variable[type[ClassL...
Keyword[public] Keyword[static] identifier[Object] identifier[convertValue] operator[SEP] identifier[String] identifier[text] , identifier[String] identifier[typeName] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] , identifier[IntrospectionException] { identifier[Class] operator[<] operator[...
public void viewUpdated() { BufferedImage active = null; if( controls.selectedView == 0 ) { active = original; } else if( controls.selectedView == 1 ) { synchronized (lockProcessing) { VisualizeBinaryData.renderBinary(detector.getBinary(), false, work); } active = work; work.setRGB(0, 0, work.g...
class class_name[name] begin[{] method[viewUpdated, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[BufferedImage], active] if[binary_operation[member[controls.selectedView], ==, literal[0]]] begin[{] assign[member[.active], member[...
Keyword[public] Keyword[void] identifier[viewUpdated] operator[SEP] operator[SEP] { identifier[BufferedImage] identifier[active] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[controls] operator[SEP] identifier[selectedView] operator[==] Other[0] operator[SEP] { identifier[...
public ColumnConfig setValueDate(String valueDate) throws DateParseException { if ((valueDate == null) || "null".equalsIgnoreCase(valueDate)) { this.valueDate = null; } else if (NowAndTodayUtil.isNowOrTodayFormat(valueDate)) { this.valueDate = NowAndTodayUtil.doNowOrToday(valueDa...
class class_name[name] begin[{] method[setValueDate, return_type[type[ColumnConfig]], modifier[public], parameter[valueDate]] begin[{] if[binary_operation[binary_operation[member[.valueDate], ==, literal[null]], ||, literal["null"]]] begin[{] assign[THIS[member[None.valu...
Keyword[public] identifier[ColumnConfig] identifier[setValueDate] operator[SEP] identifier[String] identifier[valueDate] operator[SEP] Keyword[throws] identifier[DateParseException] { Keyword[if] operator[SEP] operator[SEP] identifier[valueDate] operator[==] Other[null] operator[SEP] operator[||] literal[String]...
public StringBuilder formatMeasurePerUnit( Measure measure, MeasureUnit perUnit, StringBuilder appendTo, FieldPosition pos) { MeasureUnit resolvedUnit = MeasureUnit.resolveUnitPerUnit( measure.getUnit(), perUnit); if (resolvedUnit != null) ...
class class_name[name] begin[{] method[formatMeasurePerUnit, return_type[type[StringBuilder]], modifier[public], parameter[measure, perUnit, appendTo, pos]] begin[{] local_variable[type[MeasureUnit], resolvedUnit] if[binary_operation[member[.resolvedUnit], !=, literal[null]]] begin[{] ...
Keyword[public] identifier[StringBuilder] identifier[formatMeasurePerUnit] operator[SEP] identifier[Measure] identifier[measure] , identifier[MeasureUnit] identifier[perUnit] , identifier[StringBuilder] identifier[appendTo] , identifier[FieldPosition] identifier[pos] operator[SEP] { identifier[MeasureUnit] id...
public void save(String comment) throws DataException, ApplicationUnavailableException { assetID = instance.commit(this, comment); stubAssetID = null; }
class class_name[name] begin[{] method[save, return_type[void], modifier[public], parameter[comment]] begin[{] assign[member[.assetID], call[instance.commit, parameter[THIS[], member[.comment]]]] assign[member[.stubAssetID], literal[null]] end[}] END[}]
Keyword[public] Keyword[void] identifier[save] operator[SEP] identifier[String] identifier[comment] operator[SEP] Keyword[throws] identifier[DataException] , identifier[ApplicationUnavailableException] { identifier[assetID] operator[=] identifier[instance] operator[SEP] identifier[commit] operator[SEP] Keyword[...
private void deregisterServices() { Iterator<ServiceRegistration<?>> serviceIterator = serviceRegistrations.iterator(); while (serviceIterator.hasNext()) { ServiceRegistration<?> serviceReference = serviceIterator.next(); serviceReference.unregister(); serviceIterator.remove(); } }
class class_name[name] begin[{] method[deregisterServices, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[Iterator], serviceIterator] while[call[serviceIterator.hasNext, parameter[]]] begin[{] local_variable[type[ServiceRegistration], service...
Keyword[private] Keyword[void] identifier[deregisterServices] operator[SEP] operator[SEP] { identifier[Iterator] operator[<] identifier[ServiceRegistration] operator[<] operator[?] operator[>] operator[>] identifier[serviceIterator] operator[=] identifier[serviceRegistrations] operator[SEP] identifier[iterator] ...
public String keyDefault(String keyName, String defaultValue) { return getMessages().keyDefault(keyName, defaultValue); }
class class_name[name] begin[{] method[keyDefault, return_type[type[String]], modifier[public], parameter[keyName, defaultValue]] begin[{] return[call[.getMessages, parameter[]]] end[}] END[}]
Keyword[public] identifier[String] identifier[keyDefault] operator[SEP] identifier[String] identifier[keyName] , identifier[String] identifier[defaultValue] operator[SEP] { Keyword[return] identifier[getMessages] operator[SEP] operator[SEP] operator[SEP] identifier[keyDefault] operator[SEP] identifier[keyName] ...
public static EraPreference hispanicBetween( PlainDate start, PlainDate end ) { return new EraPreference(HistoricEra.HISPANIC, start, end); }
class class_name[name] begin[{] method[hispanicBetween, return_type[type[EraPreference]], modifier[public static], parameter[start, end]] begin[{] return[ClassCreator(arguments=[MemberReference(member=HISPANIC, postfix_operators=[], prefix_operators=[], qualifier=HistoricEra, selectors=[]), MemberRefer...
Keyword[public] Keyword[static] identifier[EraPreference] identifier[hispanicBetween] operator[SEP] identifier[PlainDate] identifier[start] , identifier[PlainDate] identifier[end] operator[SEP] { Keyword[return] Keyword[new] identifier[EraPreference] operator[SEP] identifier[HistoricEra] operator[SEP] identifie...
public byte[] sendUnbind(OutputStream os, int sequenceNumber) throws IOException { byte[] b = pduComposer.unbind(sequenceNumber); writeAndFlush(os, b); return b; }
class class_name[name] begin[{] method[sendUnbind, return_type[type[byte]], modifier[public], parameter[os, sequenceNumber]] begin[{] local_variable[type[byte], b] call[.writeAndFlush, parameter[member[.os], member[.b]]] return[member[.b]] end[}] END[}]
Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[sendUnbind] operator[SEP] identifier[OutputStream] identifier[os] , Keyword[int] identifier[sequenceNumber] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[byte] operator[SEP] operator[SEP] identifier[b] operator[=] identifier[...
private <T> List<? super T> bind(final ResultSet results, final Class<T> klass, final List<? super T> instances) throws SQLException { if (results == null) { throw new NullPointerException("results is null"); } if (klass == null) { throw new NullPointerExcepti...
class class_name[name] begin[{] method[bind, return_type[type[List]], modifier[private], parameter[results, klass, instances]] begin[{] if[binary_operation[member[.results], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], ...
Keyword[private] operator[<] identifier[T] operator[>] identifier[List] operator[<] operator[?] Keyword[super] identifier[T] operator[>] identifier[bind] operator[SEP] Keyword[final] identifier[ResultSet] identifier[results] , Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[klass] , ...
public static PlatformBitmapFactory buildPlatformBitmapFactory( PoolFactory poolFactory, PlatformDecoder platformDecoder) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { return new ArtBitmapFactory(poolFactory.getBitmapPool()); } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.H...
class class_name[name] begin[{] method[buildPlatformBitmapFactory, return_type[type[PlatformBitmapFactory]], modifier[public static], parameter[poolFactory, platformDecoder]] begin[{] if[binary_operation[member[Build.VERSION.SDK_INT], >=, member[Build.VERSION_CODES.LOLLIPOP]]] begin[{] ...
Keyword[public] Keyword[static] identifier[PlatformBitmapFactory] identifier[buildPlatformBitmapFactory] operator[SEP] identifier[PoolFactory] identifier[poolFactory] , identifier[PlatformDecoder] identifier[platformDecoder] operator[SEP] { Keyword[if] operator[SEP] identifier[Build] operator[SEP] identifier[VE...
public UnitVectorProperty secondAxisProperty() { if (this.saxis == null) { this.saxis = new UnitVectorProperty(this, MathFXAttributeNames.SECOND_AXIS, getGeomFactory()); } return this.saxis; }
class class_name[name] begin[{] method[secondAxisProperty, return_type[type[UnitVectorProperty]], modifier[public], parameter[]] begin[{] if[binary_operation[THIS[member[None.saxis]], ==, literal[null]]] begin[{] assign[THIS[member[None.saxis]], ClassCreator(arguments=[T...
Keyword[public] identifier[UnitVectorProperty] identifier[secondAxisProperty] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[saxis] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[saxis] operator[=] Keyword[new] identifier...
public void hideColumn(int modelColumn) { int viewColumn = table.convertColumnIndexToView(modelColumn); if (viewColumn != -1) { TableColumn column = columnModel.getColumn(viewColumn); hideColumn(column); } }
class class_name[name] begin[{] method[hideColumn, return_type[void], modifier[public], parameter[modelColumn]] begin[{] local_variable[type[int], viewColumn] if[binary_operation[member[.viewColumn], !=, literal[1]]] begin[{] local_variable[type[TableColumn], column] ...
Keyword[public] Keyword[void] identifier[hideColumn] operator[SEP] Keyword[int] identifier[modelColumn] operator[SEP] { Keyword[int] identifier[viewColumn] operator[=] identifier[table] operator[SEP] identifier[convertColumnIndexToView] operator[SEP] identifier[modelColumn] operator[SEP] operator[SEP] Keyword[if...
@Override public void activate(RuleBlock ruleBlock) { if (FuzzyLite.isDebugging()) { FuzzyLite.logger().log(Level.FINE, "Activation: {0} {1}", new String[]{getClass().getName(), parameters()}); } TNorm conjunction = ruleBlock.getConjunction(); SNorm di...
class class_name[name] begin[{] method[activate, return_type[void], modifier[public], parameter[ruleBlock]] begin[{] if[call[FuzzyLite.isDebugging, parameter[]]] begin[{] call[FuzzyLite.logger, parameter[]] else begin[{] None end[}] local_variable...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[activate] operator[SEP] identifier[RuleBlock] identifier[ruleBlock] operator[SEP] { Keyword[if] operator[SEP] identifier[FuzzyLite] operator[SEP] identifier[isDebugging] operator[SEP] operator[SEP] operator[SEP] { identifier[F...
public void commitAddedRules() { // commit changes in the context initialization rules ChainableContextInitRule nextContextInitRule; Chain<ChainableContextInitRule> contextInitRuleChain; nextContextInitRule = addedContextInitRules_; contextInitRuleChain = getContextInitRuleChain(); while (nextContextInitRu...
class class_name[name] begin[{] method[commitAddedRules, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[ChainableContextInitRule], nextContextInitRule] local_variable[type[Chain], contextInitRuleChain] assign[member[.nextContextInitRule], member[....
Keyword[public] Keyword[void] identifier[commitAddedRules] operator[SEP] operator[SEP] { identifier[ChainableContextInitRule] identifier[nextContextInitRule] operator[SEP] identifier[Chain] operator[<] identifier[ChainableContextInitRule] operator[>] identifier[contextInitRuleChain] operator[SEP] identifier[next...
public static synchronized RenderEngine getInstance(String name) { if (null == availableEngines) { availableEngines = new HashMap(); } //Logger.debug("Engines: " + availableEngines); return (RenderEngine) availableEngines.get(name); }
class class_name[name] begin[{] method[getInstance, return_type[type[RenderEngine]], modifier[synchronized public static], parameter[name]] begin[{] if[binary_operation[literal[null], ==, member[.availableEngines]]] begin[{] assign[member[.availableEngines], ClassCreator...
Keyword[public] Keyword[static] Keyword[synchronized] identifier[RenderEngine] identifier[getInstance] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[availableEngines] operator[SEP] { identifier[availableEngines] operator...
public static Method[] getAllMethods(Class<?> clazz) { Method[] allMethods = allClassMethodsCache.get(clazz); if (allMethods == null) { // Allows a race between concurrent threads coming for clazz's methods at the same time, // but the race seems to be harmless. allMe...
class class_name[name] begin[{] method[getAllMethods, return_type[type[Method]], modifier[public static], parameter[clazz]] begin[{] local_variable[type[Method], allMethods] if[binary_operation[member[.allMethods], ==, literal[null]]] begin[{] assign[member[.allM...
Keyword[public] Keyword[static] identifier[Method] operator[SEP] operator[SEP] identifier[getAllMethods] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] { identifier[Method] operator[SEP] operator[SEP] identifier[allMethods] operator[=] identifier[allClassMetho...
private JButton getSelectButton() { if (selectButton == null) { selectButton = new JButton(); selectButton.setText(Constant.messages.getString("siteselect.button.select")); selectButton.setEnabled(false); // Enabled when a node is selected selectButton.addActionListener(new java.awt.event.ActionListe...
class class_name[name] begin[{] method[getSelectButton, return_type[type[JButton]], modifier[private], parameter[]] begin[{] if[binary_operation[member[.selectButton], ==, literal[null]]] begin[{] assign[member[.selectButton], ClassCreator(arguments=[], body=None, constr...
Keyword[private] identifier[JButton] identifier[getSelectButton] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[selectButton] operator[==] Other[null] operator[SEP] { identifier[selectButton] operator[=] Keyword[new] identifier[JButton] operator[SEP] operator[SEP] operator[SEP] ide...
public double get2DHV(List<? extends Solution<?>> solutionSet) { double hv = 0.0; if (solutionSet.size() > 0) { hv = Math.abs((solutionSet.get(0).getObjective(0) - referencePoint.getValue(0)) * (solutionSet.get(0).getObjective(1) - referencePoint.getValue(1))); for (int i = 1; i < solutio...
class class_name[name] begin[{] method[get2DHV, return_type[type[double]], modifier[public], parameter[solutionSet]] begin[{] local_variable[type[double], hv] if[binary_operation[call[solutionSet.size, parameter[]], >, literal[0]]] begin[{] assign[member[.hv], ca...
Keyword[public] Keyword[double] identifier[get2DHV] operator[SEP] identifier[List] operator[<] operator[?] Keyword[extends] identifier[Solution] operator[<] operator[?] operator[>] operator[>] identifier[solutionSet] operator[SEP] { Keyword[double] identifier[hv] operator[=] literal[Float] operator[SEP] Keyword[...
public static <K, V> ScanIterator<V> sscan(RedisSetCommands<K, V> commands, K key) { return sscan(commands, key, Optional.empty()); }
class class_name[name] begin[{] method[sscan, return_type[type[ScanIterator]], modifier[public static], parameter[commands, key]] begin[{] return[call[.sscan, parameter[member[.commands], member[.key], call[Optional.empty, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[ScanIterator] operator[<] identifier[V] operator[>] identifier[sscan] operator[SEP] identifier[RedisSetCommands] operator[<] identifier[K] , identifier[V] operator[>] identifier[commands] , identifier[K] identifier[key] ...
public void formatDate(int year, int month, int day, boolean extended, Appendable buffer) { try { // year String yearString = String.valueOf(year); buffer.append(yearString); if (extended) { buffer.append('-'); } // month String monthString = String.valueOf(month);...
class class_name[name] begin[{] method[formatDate, return_type[void], modifier[public], parameter[year, month, day, extended, buffer]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberRefer...
Keyword[public] Keyword[void] identifier[formatDate] operator[SEP] Keyword[int] identifier[year] , Keyword[int] identifier[month] , Keyword[int] identifier[day] , Keyword[boolean] identifier[extended] , identifier[Appendable] identifier[buffer] operator[SEP] { Keyword[try] { identifier[String] ide...
private void maybeAddGoogScopeUsage(NodeTraversal t, Node n, Node parent) { checkState(NodeUtil.isNameDeclaration(n)); if (n.hasOneChild() && parent == googScopeBlock) { Node rhs = n.getFirstFirstChild(); if (rhs != null && rhs.isQualifiedName()) { Node root = NodeUtil.getRootOfQualifiedName...
class class_name[name] begin[{] method[maybeAddGoogScopeUsage, return_type[void], modifier[private], parameter[t, n, parent]] begin[{] call[.checkState, parameter[call[NodeUtil.isNameDeclaration, parameter[member[.n]]]]] if[binary_operation[call[n.hasOneChild, parameter[]], &&, ...
Keyword[private] Keyword[void] identifier[maybeAddGoogScopeUsage] operator[SEP] identifier[NodeTraversal] identifier[t] , identifier[Node] identifier[n] , identifier[Node] identifier[parent] operator[SEP] { identifier[checkState] operator[SEP] identifier[NodeUtil] operator[SEP] identifier[isNameDeclaration] op...
public static CPOptionCategory fetchByG_K(long groupId, String key, boolean retrieveFromCache) { return getPersistence().fetchByG_K(groupId, key, retrieveFromCache); }
class class_name[name] begin[{] method[fetchByG_K, return_type[type[CPOptionCategory]], modifier[public static], parameter[groupId, key, retrieveFromCache]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CPOptionCategory] identifier[fetchByG_K] operator[SEP] Keyword[long] identifier[groupId] , identifier[String] identifier[key] , Keyword[boolean] identifier[retrieveFromCache] operator[SEP] { Keyword[return] identifier[getPersistence] operator[SEP] operator[SEP] operat...
public <T extends MvpPresenter> void add(String tag, T instance) { mPresenters.put(tag, instance); }
class class_name[name] begin[{] method[add, return_type[void], modifier[public], parameter[tag, instance]] begin[{] call[mPresenters.put, parameter[member[.tag], member[.instance]]] end[}] END[}]
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[MvpPresenter] operator[>] Keyword[void] identifier[add] operator[SEP] identifier[String] identifier[tag] , identifier[T] identifier[instance] operator[SEP] { identifier[mPresenters] operator[SEP] identifier[put] operator[SEP] identifier[tag] ...
private static int[] ensureSize(int[] tab, int length) { if (tab.length < length) { tab = null; tab = new int[length]; } return tab; }
class class_name[name] begin[{] method[ensureSize, return_type[type[int]], modifier[private static], parameter[tab, length]] begin[{] if[binary_operation[member[tab.length], <, member[.length]]] begin[{] assign[member[.tab], literal[null]] assign[...
Keyword[private] Keyword[static] Keyword[int] operator[SEP] operator[SEP] identifier[ensureSize] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[tab] , Keyword[int] identifier[length] operator[SEP] { Keyword[if] operator[SEP] identifier[tab] operator[SEP] identifier[length] operator[<] identif...
void add(MutableBigInteger addend) { int x = intLen; int y = addend.intLen; int resultLen = (intLen > addend.intLen ? intLen : addend.intLen); int[] result = (value.length < resultLen ? new int[resultLen] : value); int rstart = result.length-1; long sum; long car...
class class_name[name] begin[{] method[add, return_type[void], modifier[default], parameter[addend]] begin[{] local_variable[type[int], x] local_variable[type[int], y] local_variable[type[int], resultLen] local_variable[type[int], result] local_variable[type[int], rstart...
Keyword[void] identifier[add] operator[SEP] identifier[MutableBigInteger] identifier[addend] operator[SEP] { Keyword[int] identifier[x] operator[=] identifier[intLen] operator[SEP] Keyword[int] identifier[y] operator[=] identifier[addend] operator[SEP] identifier[intLen] operator[SEP] Keyword[int] identifier[res...
public void marshall(ServiceSummary serviceSummary, ProtocolMarshaller protocolMarshaller) { if (serviceSummary == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(serviceSummary.getId(), ID_BINDING); ...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[serviceSummary, protocolMarshaller]] begin[{] if[binary_operation[member[.serviceSummary], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_o...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ServiceSummary] identifier[serviceSummary] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[serviceSummary] operator[==] Other[null] operator[SEP] { Keyword[...
@Nullable public SoyType getType(String typeName) { SoyType result = BUILTIN_TYPES.get(typeName); if (result != null) { return result; } synchronized (lock) { result = protoTypeCache.get(typeName); if (result == null) { GenericDescriptor descriptor = descriptors.get(typeName)...
class class_name[name] begin[{] method[getType, return_type[type[SoyType]], modifier[public], parameter[typeName]] begin[{] local_variable[type[SoyType], result] if[binary_operation[member[.result], !=, literal[null]]] begin[{] return[member[.result]] else begin[{] N...
annotation[@] identifier[Nullable] Keyword[public] identifier[SoyType] identifier[getType] operator[SEP] identifier[String] identifier[typeName] operator[SEP] { identifier[SoyType] identifier[result] operator[=] identifier[BUILTIN_TYPES] operator[SEP] identifier[get] operator[SEP] identifier[typeName] operator[S...
public static void register(MetricsRegistry metricsRegistry) { checkNotNull(metricsRegistry, "metricsRegistry"); File file = new File(System.getProperty("user.home")); metricsRegistry.register(file, "file.partition[user.home].freeSpace", MANDATORY, File::getFreeSpace); metricsRegistry.r...
class class_name[name] begin[{] method[register, return_type[void], modifier[public static], parameter[metricsRegistry]] begin[{] call[.checkNotNull, parameter[member[.metricsRegistry], literal["metricsRegistry"]]] local_variable[type[File], file] call[metricsRegistry.re...
Keyword[public] Keyword[static] Keyword[void] identifier[register] operator[SEP] identifier[MetricsRegistry] identifier[metricsRegistry] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[metricsRegistry] , literal[String] operator[SEP] operator[SEP] identifier[File] identifier[file] operator[=] ...
int getLocalityLevel(TaskInProgress tip, TaskTrackerStatus tts) { Node tracker = jobtracker.getNode(tts.getHost()); int level = this.maxLevel; // find the right level across split locations for (String local : maps[tip.getIdWithinJob()].getSplitLocations()) { Node datanode = jobtracker.getNode(loc...
class class_name[name] begin[{] method[getLocalityLevel, return_type[type[int]], modifier[default], parameter[tip, tts]] begin[{] local_variable[type[Node], tracker] local_variable[type[int], level] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annota...
Keyword[int] identifier[getLocalityLevel] operator[SEP] identifier[TaskInProgress] identifier[tip] , identifier[TaskTrackerStatus] identifier[tts] operator[SEP] { identifier[Node] identifier[tracker] operator[=] identifier[jobtracker] operator[SEP] identifier[getNode] operator[SEP] identifier[tts] operator[SEP]...
public boolean executeWithoutAccessCheck() throws EFapsException { boolean ret = false; if (isMarked4execute()) { if (getInstanceList().size() > 0) { ret = executeOneCompleteStmt(createSQLStatement(), this.allSelects); } if (ret) { ...
class class_name[name] begin[{] method[executeWithoutAccessCheck, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[boolean], ret] if[call[.isMarked4execute, parameter[]]] begin[{] if[binary_operation[call[.getInstanceList, p...
Keyword[public] Keyword[boolean] identifier[executeWithoutAccessCheck] operator[SEP] operator[SEP] Keyword[throws] identifier[EFapsException] { Keyword[boolean] identifier[ret] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[isMarked4execute] operator[SEP] operator[SEP] operator[S...
protected static List<String> buildDefaultTrustedDirs() { List<String> tDirs = new ArrayList<String>(); tDirs.add(DEFAULT_VOMS_DIR); return tDirs; }
class class_name[name] begin[{] method[buildDefaultTrustedDirs, return_type[type[List]], modifier[static protected], parameter[]] begin[{] local_variable[type[List], tDirs] call[tDirs.add, parameter[member[.DEFAULT_VOMS_DIR]]] return[member[.tDirs]] end[}] END[}]
Keyword[protected] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[buildDefaultTrustedDirs] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[tDirs] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[Stri...
@Override public DisplayPolicy getDisplayPolicy() { if (_asset.getWlpInformation() == null) { return null; } return _asset.getWlpInformation().getDisplayPolicy(); }
class class_name[name] begin[{] method[getDisplayPolicy, return_type[type[DisplayPolicy]], modifier[public], parameter[]] begin[{] if[binary_operation[call[_asset.getWlpInformation, parameter[]], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None e...
annotation[@] identifier[Override] Keyword[public] identifier[DisplayPolicy] identifier[getDisplayPolicy] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[_asset] operator[SEP] identifier[getWlpInformation] operator[SEP] operator[SEP] operator[==] Other[null] operator[SEP] { Keyword[...
public Observable<VirtualNetworkRuleInner> updateAsync(String resourceGroupName, String accountName, String virtualNetworkRuleName, UpdateVirtualNetworkRuleParameters parameters) { return updateWithServiceResponseAsync(resourceGroupName, accountName, virtualNetworkRuleName, parameters).map(new Func1<ServiceResp...
class class_name[name] begin[{] method[updateAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, accountName, virtualNetworkRuleName, parameters]] begin[{] return[call[.updateWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.accountName], member[.v...
Keyword[public] identifier[Observable] operator[<] identifier[VirtualNetworkRuleInner] operator[>] identifier[updateAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[accountName] , identifier[String] identifier[virtualNetworkRuleName] , identifier[UpdateVirtualNetw...
public ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo cxRequestInfo) throws ResourceException { ManagedConnection result = null; Iterator it = connectionSet.iterator(); while (result == ...
class class_name[name] begin[{] method[matchManagedConnections, return_type[type[ManagedConnection]], modifier[public], parameter[connectionSet, subject, cxRequestInfo]] begin[{] local_variable[type[ManagedConnection], result] local_variable[type[Iterator], it] while[binary_oper...
Keyword[public] identifier[ManagedConnection] identifier[matchManagedConnections] operator[SEP] identifier[Set] identifier[connectionSet] , identifier[Subject] identifier[subject] , identifier[ConnectionRequestInfo] identifier[cxRequestInfo] operator[SEP] Keyword[throws] identifier[ResourceException] { identif...
public ServerState createServerStateFromString(EDataType eDataType, String initialValue) { ServerState result = ServerState.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[createServerStateFromString, return_type[type[ServerState]], modifier[public], parameter[eDataType, initialValue]] begin[{] local_variable[type[ServerState], result] if[binary_operation[member[.result], ==, literal[null]]] begin[{] ThrowStatement(e...
Keyword[public] identifier[ServerState] identifier[createServerStateFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] { identifier[ServerState] identifier[result] operator[=] identifier[ServerState] operator[SEP] identifier[get] ope...
public com.google.api.ads.admanager.axis.v201811.ComputedStatus getStatus() { return status; }
class class_name[name] begin[{] method[getStatus, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.status]] 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[ComputedStatus] identifier[getStatus] operator[SEP] operator[SEP] { ...
private static void copyClassAnnotations(final ClassNode cNode, final ClassNode helper) { List<AnnotationNode> annotations = cNode.getAnnotations(); for (AnnotationNode annotation : annotations) { if (!annotation.getClassNode().equals(Traits.TRAIT_CLASSNODE)) { helper.addAnno...
class class_name[name] begin[{] method[copyClassAnnotations, return_type[void], modifier[private static], parameter[cNode, helper]] begin[{] local_variable[type[List], annotations] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], memb...
Keyword[private] Keyword[static] Keyword[void] identifier[copyClassAnnotations] operator[SEP] Keyword[final] identifier[ClassNode] identifier[cNode] , Keyword[final] identifier[ClassNode] identifier[helper] operator[SEP] { identifier[List] operator[<] identifier[AnnotationNode] operator[>] identifier[annotation...
public UriTemplateBuilder fragment(VarSpec... var) throws UriTemplateBuilderException { if (hasExpressionWithOperator(Operator.FRAGMENT)) { throw new UriTemplateBuilderException("The template already has a fragment expression and this would not result in a valid URI"); } ...
class class_name[name] begin[{] method[fragment, return_type[type[UriTemplateBuilder]], modifier[public], parameter[var]] begin[{] if[call[.hasExpressionWithOperator, parameter[member[Operator.FRAGMENT]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_op...
Keyword[public] identifier[UriTemplateBuilder] identifier[fragment] operator[SEP] identifier[VarSpec] operator[...] identifier[var] operator[SEP] Keyword[throws] identifier[UriTemplateBuilderException] { Keyword[if] operator[SEP] identifier[hasExpressionWithOperator] operator[SEP] identifier[Operator] operator[S...
public URL registerInMemoryResource(final InMemoryMappingFile file) { URL url = DoPrivHelper.newInMemoryMappingFileURL(file); _resourceMap.put(file.getName(), url); return url; }
class class_name[name] begin[{] method[registerInMemoryResource, return_type[type[URL]], modifier[public], parameter[file]] begin[{] local_variable[type[URL], url] call[_resourceMap.put, parameter[call[file.getName, parameter[]], member[.url]]] return[member[.url]] end[}] EN...
Keyword[public] identifier[URL] identifier[registerInMemoryResource] operator[SEP] Keyword[final] identifier[InMemoryMappingFile] identifier[file] operator[SEP] { identifier[URL] identifier[url] operator[=] identifier[DoPrivHelper] operator[SEP] identifier[newInMemoryMappingFileURL] operator[SEP] identifier[file...
public BatchResponse[] send(Batch batchRequest) throws ApiException { if(batchRequest.getRequests().size() > this.BATCH_MAX_SIZE) { return sendMultipartBatchRequest(batchRequest); } String responseStr = sendRequest(batchRequest); try { Object[] responses = this...
class class_name[name] begin[{] method[send, return_type[type[BatchResponse]], modifier[public], parameter[batchRequest]] begin[{] if[binary_operation[call[batchRequest.getRequests, parameter[]], >, THIS[member[None.BATCH_MAX_SIZE]]]] begin[{] return[call[.sendMultipartBatchRequest,...
Keyword[public] identifier[BatchResponse] operator[SEP] operator[SEP] identifier[send] operator[SEP] identifier[Batch] identifier[batchRequest] operator[SEP] Keyword[throws] identifier[ApiException] { Keyword[if] operator[SEP] identifier[batchRequest] operator[SEP] identifier[getRequests] operator[SEP] operator[...
public String encrypt(final String value) { try { return encrypt(value.getBytes("UTF8")); } catch (Exception ex) { throw OException.wrapException(new OSecurityException("OSymmetricKey.encrypt() Exception: " + ex.getMessage()), ex); } }
class class_name[name] begin[{] method[encrypt, return_type[type[String]], modifier[public], parameter[value]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[],...
Keyword[public] identifier[String] identifier[encrypt] operator[SEP] Keyword[final] identifier[String] identifier[value] operator[SEP] { Keyword[try] { Keyword[return] identifier[encrypt] operator[SEP] identifier[value] operator[SEP] identifier[getBytes] operator[SEP] literal[String] operator[SEP] ope...
public long getUniqueValue() throws PersistenceException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "getUniqueValue"); long retval; synchronized (_globalUniqueLock) { if (_globalUnique == _globalUniqueThreshold) ...
class class_name[name] begin[{] method[getUniqueValue, return_type[type[long]], modifier[public], parameter[]] begin[{] if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{] call[SibTr.entry, parameter[member[....
Keyword[public] Keyword[long] identifier[getUniqueValue] operator[SEP] operator[SEP] Keyword[throws] identifier[PersistenceException] { Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifi...
protected <T extends InvocationMarshaller<?>> T addProvider ( InvocationProvider prov, Class<T> mclass) { T marsh = _invmgr.registerProvider(prov, mclass); _marshallers.add(marsh); return marsh; }
class class_name[name] begin[{] method[addProvider, return_type[type[T]], modifier[protected], parameter[prov, mclass]] begin[{] local_variable[type[T], marsh] call[_marshallers.add, parameter[member[.marsh]]] return[member[.marsh]] end[}] END[}]
Keyword[protected] operator[<] identifier[T] Keyword[extends] identifier[InvocationMarshaller] operator[<] operator[?] operator[>] operator[>] identifier[T] identifier[addProvider] operator[SEP] identifier[InvocationProvider] identifier[prov] , identifier[Class] operator[<] identifier[T] operator[>] identifier[mclass]...
public EClass getIfcForceMeasure() { if (ifcForceMeasureEClass == null) { ifcForceMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI) .getEClassifiers().get(679); } return ifcForceMeasureEClass; }
class class_name[name] begin[{] method[getIfcForceMeasure, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcForceMeasureEClass], ==, literal[null]]] begin[{] assign[member[.ifcForceMeasureEClass], Cast(expression=MethodInv...
Keyword[public] identifier[EClass] identifier[getIfcForceMeasure] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcForceMeasureEClass] operator[==] Other[null] operator[SEP] { identifier[ifcForceMeasureEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[E...
public final Object evaluate(final String expression, final Map<String, Object> context) { JexlContext jexlContext = new MapContext(context); try { JexlEngine jexl = JEXL_LOCAL.get(); Map<String, Expression> expMap = JEXL_MAP_LOCAL.get(); Expression jexlExpression = expMap.get(expression); if ...
class class_name[name] begin[{] method[evaluate, return_type[type[Object]], modifier[final public], parameter[expression, context]] begin[{] local_variable[type[JexlContext], jexlContext] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[],...
Keyword[public] Keyword[final] identifier[Object] identifier[evaluate] operator[SEP] Keyword[final] identifier[String] identifier[expression] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[context] operator[SEP] { identifier[JexlContext] identifier[j...
public static void and2by2(BitmapContainer container, SparseBitmap bitmap1, SparseBitmap bitmap2) { int it1 = 0; int it2 = 0; int p1 = bitmap1.buffer.get(it1), p2 = bitmap2.buffer.get(it2); int buff; while (true) { if (p1 < p2) { if (it1 + 2 >= bitmap1.buffer.size()) break; it1 += 2; p1...
class class_name[name] begin[{] method[and2by2, return_type[void], modifier[public static], parameter[container, bitmap1, bitmap2]] begin[{] local_variable[type[int], it1] local_variable[type[int], it2] local_variable[type[int], p1] local_variable[type[int], buff] ...
Keyword[public] Keyword[static] Keyword[void] identifier[and2by2] operator[SEP] identifier[BitmapContainer] identifier[container] , identifier[SparseBitmap] identifier[bitmap1] , identifier[SparseBitmap] identifier[bitmap2] operator[SEP] { Keyword[int] identifier[it1] operator[=] Other[0] operator[SEP] Keyword...
public static File getExistingFileOrCache(String fileLocation) { File result = getDiskCache2().getExistingFileOrCache(fileLocation); if (result == null && Grib.debugGbxIndexOnly && fileLocation.endsWith(".gbx9.ncx4")) { // might create only from gbx9 for debugging int length = fileLocation.length(); ...
class class_name[name] begin[{] method[getExistingFileOrCache, return_type[type[File]], modifier[public static], parameter[fileLocation]] begin[{] local_variable[type[File], result] if[binary_operation[binary_operation[binary_operation[member[.result], ==, literal[null]], &&, member[Gri...
Keyword[public] Keyword[static] identifier[File] identifier[getExistingFileOrCache] operator[SEP] identifier[String] identifier[fileLocation] operator[SEP] { identifier[File] identifier[result] operator[=] identifier[getDiskCache2] operator[SEP] operator[SEP] operator[SEP] identifier[getExistingFileOrCache] oper...
public void setUserGroupRoleService( com.liferay.portal.kernel.service.UserGroupRoleService userGroupRoleService) { this.userGroupRoleService = userGroupRoleService; }
class class_name[name] begin[{] method[setUserGroupRoleService, return_type[void], modifier[public], parameter[userGroupRoleService]] begin[{] assign[THIS[member[None.userGroupRoleService]], member[.userGroupRoleService]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setUserGroupRoleService] operator[SEP] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[portal] operator[SEP] identifier[kernel] operator[SEP] identifier[service] operator[SEP] identifier[UserGroupRoleService] identifier[userGroupRoleService] operator[S...
public String toJSONString(final boolean compact) { final StringBuilder builder = new StringBuilder(); formatAsJSON(builder, 0, !compact); return builder.toString(); }
class class_name[name] begin[{] method[toJSONString, return_type[type[String]], modifier[public], parameter[compact]] begin[{] local_variable[type[StringBuilder], builder] call[.formatAsJSON, parameter[member[.builder], literal[0], member[.compact]]] return[call[builder.toString...
Keyword[public] identifier[String] identifier[toJSONString] operator[SEP] Keyword[final] Keyword[boolean] identifier[compact] operator[SEP] { Keyword[final] identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[format...
private void checkForPotentialFilenameConflict() throws JournalException { File[] journalFiles = MultiFileJournalHelper .getSortedArrayOfJournalFiles(journalDirectory, filenamePrefix); if (journalFiles.length =...
class class_name[name] begin[{] method[checkForPotentialFilenameConflict, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[File], journalFiles] if[binary_operation[member[journalFiles.length], ==, literal[0]]] begin[{] return[None] else...
Keyword[private] Keyword[void] identifier[checkForPotentialFilenameConflict] operator[SEP] operator[SEP] Keyword[throws] identifier[JournalException] { identifier[File] operator[SEP] operator[SEP] identifier[journalFiles] operator[=] identifier[MultiFileJournalHelper] operator[SEP] identifier[getSortedArrayOfJou...
@Override public void writeImport(Definition def, Writer out) throws IOException { out.write("package " + def.getRaPackage() + ";\n\n"); out.write("import javax.naming.NamingException;\n"); out.write("import javax.naming.Reference;\n\n"); out.write("import javax.resource.ResourceException;...
class class_name[name] begin[{] method[writeImport, return_type[void], modifier[public], parameter[def, out]] begin[{] call[out.write, parameter[binary_operation[binary_operation[literal["package "], +, call[def.getRaPackage, parameter[]]], +, literal[";\n\n"]]]] call[out.write,...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[writeImport] operator[SEP] identifier[Definition] identifier[def] , identifier[Writer] identifier[out] operator[SEP] Keyword[throws] identifier[IOException] { identifier[out] operator[SEP] identifier[write] operator[SEP] literal[String]...
public static UnixUserGroupInformation login(Configuration conf, boolean save ) throws LoginException { UnixUserGroupInformation ugi = readFromConf(conf, UGI_PROPERTY_NAME); if (ugi == null) { ugi = login(); LOG.debug("Unix Login: " + ugi); if (save) { saveToConf(conf, UGI_PROPER...
class class_name[name] begin[{] method[login, return_type[type[UnixUserGroupInformation]], modifier[public static], parameter[conf, save]] begin[{] local_variable[type[UnixUserGroupInformation], ugi] if[binary_operation[member[.ugi], ==, literal[null]]] begin[{] ...
Keyword[public] Keyword[static] identifier[UnixUserGroupInformation] identifier[login] operator[SEP] identifier[Configuration] identifier[conf] , Keyword[boolean] identifier[save] operator[SEP] Keyword[throws] identifier[LoginException] { identifier[UnixUserGroupInformation] identifier[ugi] operator[=] identifi...
public static Version from(int major, int minor, int patch) { return new Version(com.github.zafarkhaja.semver.Version.forIntegers(major, minor, patch)); }
class class_name[name] begin[{] method[from, return_type[type[Version]], modifier[public static], parameter[major, minor, patch]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=major, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Membe...
Keyword[public] Keyword[static] identifier[Version] identifier[from] operator[SEP] Keyword[int] identifier[major] , Keyword[int] identifier[minor] , Keyword[int] identifier[patch] operator[SEP] { Keyword[return] Keyword[new] identifier[Version] operator[SEP] identifier[com] operator[SEP] identifier[github] ope...
public void setInHeader(boolean inHeader) { super.setInHeader(inHeader); for(int i = 0; i < this.chunks.size(); i++) { ((RtfBasicElement) this.chunks.get(i)).setInHeader(inHeader); } }
class class_name[name] begin[{] method[setInHeader, return_type[void], modifier[public], parameter[inHeader]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=inHeader, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=setInHeader, postfix_operators=[...
Keyword[public] Keyword[void] identifier[setInHeader] operator[SEP] Keyword[boolean] identifier[inHeader] operator[SEP] { Keyword[super] operator[SEP] identifier[setInHeader] operator[SEP] identifier[inHeader] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] ...
static BsonDocument executeCommand(final ReadBinding binding, final String database, final CommandCreator commandCreator, final boolean retryReads) { return executeCommand(binding, database, commandCreator, new BsonDocumentCodec(), retryReads); }
class class_name[name] begin[{] method[executeCommand, return_type[type[BsonDocument]], modifier[static], parameter[binding, database, commandCreator, retryReads]] begin[{] return[call[.executeCommand, parameter[member[.binding], member[.database], member[.commandCreator], ClassCreator(arguments=[], bo...
Keyword[static] identifier[BsonDocument] identifier[executeCommand] operator[SEP] Keyword[final] identifier[ReadBinding] identifier[binding] , Keyword[final] identifier[String] identifier[database] , Keyword[final] identifier[CommandCreator] identifier[commandCreator] , Keyword[final] Keyword[boolean] identifier[ret...
public void connectRtcp(SocketAddress remoteAddress) { this.rtcpChannel.setRemotePeer(remoteAddress); if(logger.isDebugEnabled()) { logger.debug(this.mediaType + " RTCP channel " + this.ssrc + " has connected to remote peer " + remoteAddress.toString()); } }
class class_name[name] begin[{] method[connectRtcp, return_type[void], modifier[public], parameter[remoteAddress]] begin[{] THIS[member[None.rtcpChannel]call[None.setRemotePeer, parameter[member[.remoteAddress]]]] if[call[logger.isDebugEnabled, parameter[]]] begin[{] ...
Keyword[public] Keyword[void] identifier[connectRtcp] operator[SEP] identifier[SocketAddress] identifier[remoteAddress] operator[SEP] { Keyword[this] operator[SEP] identifier[rtcpChannel] operator[SEP] identifier[setRemotePeer] operator[SEP] identifier[remoteAddress] operator[SEP] operator[SEP] Keyword[if] opera...
public static MutableRoaringBitmap add(MutableRoaringBitmap rb, final long rangeStart, final long rangeEnd) { rangeSanityCheck(rangeStart,rangeEnd); if (rangeStart >= rangeEnd) { return rb.clone(); // empty range } final int hbStart = BufferUtil.toIntUnsigned(BufferUtil.highbits(rangeStart)...
class class_name[name] begin[{] method[add, return_type[type[MutableRoaringBitmap]], modifier[public static], parameter[rb, rangeStart, rangeEnd]] begin[{] call[.rangeSanityCheck, parameter[member[.rangeStart], member[.rangeEnd]]] if[binary_operation[member[.rangeStart], >=, mem...
Keyword[public] Keyword[static] identifier[MutableRoaringBitmap] identifier[add] operator[SEP] identifier[MutableRoaringBitmap] identifier[rb] , Keyword[final] Keyword[long] identifier[rangeStart] , Keyword[final] Keyword[long] identifier[rangeEnd] operator[SEP] { identifier[rangeSanityCheck] operator[SEP] ide...
private Set<String> getOcspUrls(Certificate bcCert) { TBSCertificate bcTbsCert = bcCert.getTBSCertificate(); Extensions bcExts = bcTbsCert.getExtensions(); if (bcExts == null) { throw new RuntimeException("Failed to get Tbs Certificate."); } Set<String> ocsp = new HashSet<>(); for (...
class class_name[name] begin[{] method[getOcspUrls, return_type[type[Set]], modifier[private], parameter[bcCert]] begin[{] local_variable[type[TBSCertificate], bcTbsCert] local_variable[type[Extensions], bcExts] if[binary_operation[member[.bcExts], ==, literal[null]]] begin[{] ...
Keyword[private] identifier[Set] operator[<] identifier[String] operator[>] identifier[getOcspUrls] operator[SEP] identifier[Certificate] identifier[bcCert] operator[SEP] { identifier[TBSCertificate] identifier[bcTbsCert] operator[=] identifier[bcCert] operator[SEP] identifier[getTBSCertificate] operator[SEP] op...
public final void retry(final ConnectionState state, final RetryHandler retryHandler, final ConnectionFailHandler failHandler) throws RetryCancelled { if (state.retryCount == 0) { state.msBeforeRetry = this.startRetryTime; } state.retryCount++; state.uriIndex = state.retryCount % state.uris.lengt...
class class_name[name] begin[{] method[retry, return_type[void], modifier[final public], parameter[state, retryHandler, failHandler]] begin[{] if[binary_operation[member[state.retryCount], ==, literal[0]]] begin[{] assign[member[state.msBeforeRetry], THIS[member[None.sta...
Keyword[public] Keyword[final] Keyword[void] identifier[retry] operator[SEP] Keyword[final] identifier[ConnectionState] identifier[state] , Keyword[final] identifier[RetryHandler] identifier[retryHandler] , Keyword[final] identifier[ConnectionFailHandler] identifier[failHandler] operator[SEP] Keyword[throws] identifi...
private static List<String> normalizeStarImports(List<String> starImports) { List<String> result = new ArrayList<String>(starImports.size()); for (String starImport : starImports) { if (starImport.endsWith(".*")) { result.add(starImport); } else if (starImport.end...
class class_name[name] begin[{] method[normalizeStarImports, return_type[type[List]], modifier[private static], parameter[starImports]] begin[{] local_variable[type[List], result] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[Literal(...
Keyword[private] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[normalizeStarImports] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[starImports] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[re...
protected UserApiKey fetchApiKeyInternal(final ObjectId id) { final StitchAuthRequest.Builder reqBuilder = new StitchAuthRequest.Builder(); reqBuilder .withMethod(Method.GET) .withPath(routes.getApiKeyRouteForId(id.toHexString())) .withRefreshToken(); return getRequestCli...
class class_name[name] begin[{] method[fetchApiKeyInternal, return_type[type[UserApiKey]], modifier[protected], parameter[id]] begin[{] local_variable[type[StitchAuthRequest], reqBuilder] call[reqBuilder.withMethod, parameter[member[Method.GET]]] return[call[.getRequestClient, p...
Keyword[protected] identifier[UserApiKey] identifier[fetchApiKeyInternal] operator[SEP] Keyword[final] identifier[ObjectId] identifier[id] operator[SEP] { Keyword[final] identifier[StitchAuthRequest] operator[SEP] identifier[Builder] identifier[reqBuilder] operator[=] Keyword[new] identifier[StitchAuthRequest] o...
public void processPrerequisiteInjections(final SpecNodeWithRelationships specNode, final Document doc, final boolean useFixedUrls) { processPrerequisiteInjections(specNode, doc, doc.getDocumentElement(), useFixedUrls); }
class class_name[name] begin[{] method[processPrerequisiteInjections, return_type[void], modifier[public], parameter[specNode, doc, useFixedUrls]] begin[{] call[.processPrerequisiteInjections, parameter[member[.specNode], member[.doc], call[doc.getDocumentElement, parameter[]], member[.useFixed...
Keyword[public] Keyword[void] identifier[processPrerequisiteInjections] operator[SEP] Keyword[final] identifier[SpecNodeWithRelationships] identifier[specNode] , Keyword[final] identifier[Document] identifier[doc] , Keyword[final] Keyword[boolean] identifier[useFixedUrls] operator[SEP] { identifier[processPrer...
public static String oxford(final Object[] items, final int limit, final String limitStr, final Locale locale) { return withinLocale(new Callable<String>() { @Override public String call() throws Exception { return oxford(items, limit, limitStr); ...
class class_name[name] begin[{] method[oxford, return_type[type[String]], modifier[public static], parameter[items, limit, limitStr, locale]] begin[{] return[call[.withinLocale, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[Ret...
Keyword[public] Keyword[static] identifier[String] identifier[oxford] operator[SEP] Keyword[final] identifier[Object] operator[SEP] operator[SEP] identifier[items] , Keyword[final] Keyword[int] identifier[limit] , Keyword[final] identifier[String] identifier[limitStr] , Keyword[final] identifier[Locale] identifier[l...
@Override public Future<U> link(U current, BasicProfile to) { return toScala(doLink(current, to)); }
class class_name[name] begin[{] method[link, return_type[type[Future]], modifier[public], parameter[current, to]] begin[{] return[call[.toScala, parameter[call[.doLink, parameter[member[.current], member[.to]]]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Future] operator[<] identifier[U] operator[>] identifier[link] operator[SEP] identifier[U] identifier[current] , identifier[BasicProfile] identifier[to] operator[SEP] { Keyword[return] identifier[toScala] operator[SEP] identifier[doLink] operator[SEP...
public static <PS, SEG, S> ReadOnlyStyledDocument<PS, SEG, S> fromString(String str, PS paragraphStyle, S style, TextOps<SEG, S> segmentOps) { Matcher m = LINE_TERMINATOR.matcher(str); int n = 1; while(m.find()) ++n; List<Paragraph<PS, SEG, S>> res = new ArrayList<>(n); int sta...
class class_name[name] begin[{] method[fromString, return_type[type[ReadOnlyStyledDocument]], modifier[public static], parameter[str, paragraphStyle, style, segmentOps]] begin[{] local_variable[type[Matcher], m] local_variable[type[int], n] while[call[m.find, parameter[]]] begin...
Keyword[public] Keyword[static] operator[<] identifier[PS] , identifier[SEG] , identifier[S] operator[>] identifier[ReadOnlyStyledDocument] operator[<] identifier[PS] , identifier[SEG] , identifier[S] operator[>] identifier[fromString] operator[SEP] identifier[String] identifier[str] , identifier[PS] identifier[pa...
@Override public void run() { Date actualExecutionTime = new Date(); super.run(); Date completionTime = new Date(); synchronized (this.triggerContextMonitor) { this.triggerContext.update(this.scheduledExecutionTime, actualExecutionTime, completionTime); if (!t...
class class_name[name] begin[{] method[run, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Date], actualExecutionTime] SuperMethodInvocation(arguments=[], member=run, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] { identifier[Date] identifier[actualExecutionTime] operator[=] Keyword[new] identifier[Date] operator[SEP] operator[SEP] operator[SEP] Keyword[super] operator[SEP] identifier[run] operator[SEP] operator[S...
public StackTraceElement getStackTraceElement(Throwable throwable, int n) { try { return (StackTraceElement) getElementMethod.invoke(javaLangAccess, throwable, n); } catch (InvocationTargetException e) { // The only case we should expect to see here normally is a wrapped IndexOutOfBoundsException. ...
class class_name[name] begin[{] method[getStackTraceElement, return_type[type[StackTraceElement]], modifier[public], parameter[throwable, n]] begin[{] TryStatement(block=[ReturnStatement(expression=Cast(expression=MethodInvocation(arguments=[MemberReference(member=javaLangAccess, postfix_operators=[], ...
Keyword[public] identifier[StackTraceElement] identifier[getStackTraceElement] operator[SEP] identifier[Throwable] identifier[throwable] , Keyword[int] identifier[n] operator[SEP] { Keyword[try] { Keyword[return] operator[SEP] identifier[StackTraceElement] operator[SEP] identifier[getElementMethod] o...
private Stmt.Block parseBlock(EnclosingScope scope, boolean isLoop) { // First, determine the initial indentation of this block based on the // first statement (or null if there is no statement). Indent indent = getIndent(); // We must clone the environment here, in order to ensure variables // declared withi...
class class_name[name] begin[{] method[parseBlock, return_type[type[Stmt]], modifier[private], parameter[scope, isLoop]] begin[{] local_variable[type[Indent], indent] local_variable[type[EnclosingScope], blockScope] if[binary_operation[binary_operation[member[.indent], ==, liter...
Keyword[private] identifier[Stmt] operator[SEP] identifier[Block] identifier[parseBlock] operator[SEP] identifier[EnclosingScope] identifier[scope] , Keyword[boolean] identifier[isLoop] operator[SEP] { identifier[Indent] identifier[indent] operator[=] identifier[getIndent] operator[SEP] operator[SEP] operator[S...
public void handleCandlestickCollection(final BitfinexCandlestickSymbol symbol, final Collection<BitfinexCandle> ticksBuffer) { candleCallbacks.handleEventsCollection(symbol, ticksBuffer); }
class class_name[name] begin[{] method[handleCandlestickCollection, return_type[void], modifier[public], parameter[symbol, ticksBuffer]] begin[{] call[candleCallbacks.handleEventsCollection, parameter[member[.symbol], member[.ticksBuffer]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[handleCandlestickCollection] operator[SEP] Keyword[final] identifier[BitfinexCandlestickSymbol] identifier[symbol] , Keyword[final] identifier[Collection] operator[<] identifier[BitfinexCandle] operator[>] identifier[ticksBuffer] operator[SEP] { identifier[candleCallback...
public MemcachedBackupSession deserialize( final byte[] data, final SessionManager manager ) { if ( data == null ) { return null; } try { final DeserializationResult deserializationResult = deserializeSessionFields( data, manager ); final byte[] attributesData...
class class_name[name] begin[{] method[deserialize, return_type[type[MemcachedBackupSession]], modifier[public], parameter[data, manager]] begin[{] if[binary_operation[member[.data], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[public] identifier[MemcachedBackupSession] identifier[deserialize] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[final] identifier[SessionManager] identifier[manager] operator[SEP] { Keyword[if] operator[SEP] identifier[data] operator[==] Other[null] o...
public static long getLong(String pStr) { if (isEmpty(pStr)) { return 0; } long value = 0; try { value = Long.parseLong(pStr); } catch (NumberFormatException nm) { } return value; }
class class_name[name] begin[{] method[getLong, return_type[type[long]], modifier[public static], parameter[pStr]] begin[{] if[call[.isEmpty, parameter[member[.pStr]]]] begin[{] return[literal[0]] else begin[{] None end[}] local_variable[type[long], value] ...
Keyword[public] Keyword[static] Keyword[long] identifier[getLong] operator[SEP] identifier[String] identifier[pStr] operator[SEP] { Keyword[if] operator[SEP] identifier[isEmpty] operator[SEP] identifier[pStr] operator[SEP] operator[SEP] { Keyword[return] Other[0] operator[SEP] } Keyword[...
public String getFor(String personalIdentificationNumber) { for (RedirectUrl redirectUrl : urls) { if (redirectUrl.signer.equals(personalIdentificationNumber)) { return redirectUrl.url; } } throw new IllegalArgumentException("Unable to find redirect URL fo...
class class_name[name] begin[{] method[getFor, return_type[type[String]], modifier[public], parameter[personalIdentificationNumber]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=personalIdentificationNumber, p...
Keyword[public] identifier[String] identifier[getFor] operator[SEP] identifier[String] identifier[personalIdentificationNumber] operator[SEP] { Keyword[for] operator[SEP] identifier[RedirectUrl] identifier[redirectUrl] operator[:] identifier[urls] operator[SEP] { Keyword[if] operator[SEP] identifier[...
@Search() public List<Patient> findPatientsByName(@RequiredParam(name = Patient.SP_FAMILY) StringDt theFamilyName) { LinkedList<Patient> retVal = new LinkedList<Patient>(); /* * Look for all patients matching the name */ for (Deque<Patient> nextPatientList : myIdToPatientVersions.values()) { Patient ne...
class class_name[name] begin[{] method[findPatientsByName, return_type[type[List]], modifier[public], parameter[theFamilyName]] begin[{] local_variable[type[LinkedList], retVal] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[Variab...
annotation[@] identifier[Search] operator[SEP] operator[SEP] Keyword[public] identifier[List] operator[<] identifier[Patient] operator[>] identifier[findPatientsByName] operator[SEP] annotation[@] identifier[RequiredParam] operator[SEP] identifier[name] operator[=] identifier[Patient] operator[SEP] identifier[SP_FAMILY...
public void marshall(DeviceDefinitionVersion deviceDefinitionVersion, ProtocolMarshaller protocolMarshaller) { if (deviceDefinitionVersion == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(deviceDefi...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[deviceDefinitionVersion, protocolMarshaller]] begin[{] if[binary_operation[member[.deviceDefinitionVersion], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeviceDefinitionVersion] identifier[deviceDefinitionVersion] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[deviceDefinitionVersion] operator[==] Other[null] operator...
void recomputeProgress() { if (isComplete()) { this.progress = 1; // update the counters and the state TaskStatus completedStatus = taskStatuses.get(getSuccessfulTaskid()); this.counters = completedStatus.getCounters(); this.state = completedStatus.getStateString(); } else if (fail...
class class_name[name] begin[{] method[recomputeProgress, return_type[void], modifier[default], parameter[]] begin[{] if[call[.isComplete, parameter[]]] begin[{] assign[THIS[member[None.progress]], literal[1]] local_variable[type[TaskStatus], completedStatus]...
Keyword[void] identifier[recomputeProgress] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isComplete] operator[SEP] operator[SEP] operator[SEP] { Keyword[this] operator[SEP] identifier[progress] operator[=] Other[1] operator[SEP] identifier[TaskStatus] identifier[completedStatus] ...
@Override public T transformElement(Tuple2<Object, LinkedMapWritable> tuple, DeepJobConfig<T, ? extends DeepJobConfig> config) { try { return (T) UtilES.getObjectFromJson(config.getEntityClass(), tuple._2()); } catch (Exception e) { LOG.error("C...
class class_name[name] begin[{] method[transformElement, return_type[type[T]], modifier[public], parameter[tuple, config]] begin[{] TryStatement(block=[ReturnStatement(expression=Cast(expression=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getEntityClass, postfix_operators=[], pref...
annotation[@] identifier[Override] Keyword[public] identifier[T] identifier[transformElement] operator[SEP] identifier[Tuple2] operator[<] identifier[Object] , identifier[LinkedMapWritable] operator[>] identifier[tuple] , identifier[DeepJobConfig] operator[<] identifier[T] , operator[?] Keyword[extends] identifier[D...
public ValueVo getConfItemByParameter(Long appId, Long envId, String version, String key) { Config config = configDao.getByParameter(appId, envId, version, key, DisConfigTypeEnum.ITEM); if (config == null) { return ConfigUtils.getErrorVo("cannot find this config"); } ValueV...
class class_name[name] begin[{] method[getConfItemByParameter, return_type[type[ValueVo]], modifier[public], parameter[appId, envId, version, key]] begin[{] local_variable[type[Config], config] if[binary_operation[member[.config], ==, literal[null]]] begin[{] return[call[Con...
Keyword[public] identifier[ValueVo] identifier[getConfItemByParameter] operator[SEP] identifier[Long] identifier[appId] , identifier[Long] identifier[envId] , identifier[String] identifier[version] , identifier[String] identifier[key] operator[SEP] { identifier[Config] identifier[config] operator[=] identifie...
public static RedissonReactiveClient createReactive(Config config) { RedissonReactive react = new RedissonReactive(config); if (config.isReferenceEnabled()) { react.enableRedissonReferenceSupport(); } return react; }
class class_name[name] begin[{] method[createReactive, return_type[type[RedissonReactiveClient]], modifier[public static], parameter[config]] begin[{] local_variable[type[RedissonReactive], react] if[call[config.isReferenceEnabled, parameter[]]] begin[{] call[rea...
Keyword[public] Keyword[static] identifier[RedissonReactiveClient] identifier[createReactive] operator[SEP] identifier[Config] identifier[config] operator[SEP] { identifier[RedissonReactive] identifier[react] operator[=] Keyword[new] identifier[RedissonReactive] operator[SEP] identifier[config] operator[SEP] ope...
public List<String> createReviews(String teamName, String urlContentType, List<CreateReviewBodyItem> createReviewBody, CreateReviewsOptionalParameter createReviewsOptionalParameter) { return createReviewsWithServiceResponseAsync(teamName, urlContentType, createReviewBody, createReviewsOptionalParameter).toBlock...
class class_name[name] begin[{] method[createReviews, return_type[type[List]], modifier[public], parameter[teamName, urlContentType, createReviewBody, createReviewsOptionalParameter]] begin[{] return[call[.createReviewsWithServiceResponseAsync, parameter[member[.teamName], member[.urlContentType], memb...
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[createReviews] operator[SEP] identifier[String] identifier[teamName] , identifier[String] identifier[urlContentType] , identifier[List] operator[<] identifier[CreateReviewBodyItem] operator[>] identifier[createReviewBody] , identi...
public static String identityToString(Object o) { return o == null ? null : o.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(o)); }
class class_name[name] begin[{] method[identityToString, return_type[type[String]], modifier[public static], parameter[o]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=o, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Litera...
Keyword[public] Keyword[static] identifier[String] identifier[identityToString] operator[SEP] identifier[Object] identifier[o] operator[SEP] { Keyword[return] identifier[o] operator[==] Other[null] operator[?] Other[null] operator[:] identifier[o] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] o...
public Pair<RangeBigInteger,RangeBigInteger> removeIntersect(RangeBigInteger o) { if (o.max.compareTo(min) < 0 || o.min.compareTo(max) > 0) // o is outside: no intersection return new Pair<>(copy(), null); if (o.min.compareTo(min) <= 0) { // nothing before if (o.max.compareTo(max) >= 0) return ne...
class class_name[name] begin[{] method[removeIntersect, return_type[type[Pair]], modifier[public], parameter[o]] begin[{] if[binary_operation[binary_operation[call[o.max.compareTo, parameter[member[.min]]], <, literal[0]], ||, binary_operation[call[o.min.compareTo, parameter[member[.max]]], >, ...
Keyword[public] identifier[Pair] operator[<] identifier[RangeBigInteger] , identifier[RangeBigInteger] operator[>] identifier[removeIntersect] operator[SEP] identifier[RangeBigInteger] identifier[o] operator[SEP] { Keyword[if] operator[SEP] identifier[o] operator[SEP] identifier[max] operator[SEP] identifier[co...