code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static UniversalIdIntQueueMessage newInstance(byte[] content) { UniversalIdIntQueueMessage msg = newInstance(); msg.setContent(content); return msg; }
class class_name[name] begin[{] method[newInstance, return_type[type[UniversalIdIntQueueMessage]], modifier[public static], parameter[content]] begin[{] local_variable[type[UniversalIdIntQueueMessage], msg] call[msg.setContent, parameter[member[.content]]] return[member[.msg]] ...
Keyword[public] Keyword[static] identifier[UniversalIdIntQueueMessage] identifier[newInstance] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[content] operator[SEP] { identifier[UniversalIdIntQueueMessage] identifier[msg] operator[=] identifier[newInstance] operator[SEP] operator[SEP] operato...
public static <T> FilterOperation createEnumeratedFilter( NavigableMap<T, Set<String>> keySetByEnumeratedValue, Converter<T> converter, Collection<Constraint> constraints, ...
class class_name[name] begin[{] method[createEnumeratedFilter, return_type[type[FilterOperation]], modifier[public static], parameter[keySetByEnumeratedValue, converter, constraints, variables]] begin[{] if[call[keySetByEnumeratedValue.isEmpty, parameter[]]] begin[{] return[member[.EMPTY_FILTER...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[FilterOperation] identifier[createEnumeratedFilter] operator[SEP] identifier[NavigableMap] operator[<] identifier[T] , identifier[Set] operator[<] identifier[String] operator[>] operator[>] identifier[keySetByEnumeratedValue] , identifie...
public boolean profile_setFBML(CharSequence fbmlMarkup, Integer userId) throws FacebookException, IOException { return extractBoolean(this.callMethod(FacebookMethod.PROFILE_SET_FBML, new Pair<String, CharSequence>("uid", Integer.toString(userId)), ...
class class_name[name] begin[{] method[profile_setFBML, return_type[type[boolean]], modifier[public], parameter[fbmlMarkup, userId]] begin[{] return[call[.extractBoolean, parameter[THIS[call[None.callMethod, parameter[member[FacebookMethod.PROFILE_SET_FBML], ClassCreator(arguments=[Literal(postfix_oper...
Keyword[public] Keyword[boolean] identifier[profile_setFBML] operator[SEP] identifier[CharSequence] identifier[fbmlMarkup] , identifier[Integer] identifier[userId] operator[SEP] Keyword[throws] identifier[FacebookException] , identifier[IOException] { Keyword[return] identifier[extractBoolean] operator[SEP] Ke...
@Override public boolean eIsSet(int featureID) { switch (featureID) { case AfplibPackage.BDM__DM_NAME: return DM_NAME_EDEFAULT == null ? dmName != null : !DM_NAME_EDEFAULT.equals(dmName); case AfplibPackage.BDM__DAT_FMT: return DAT_FMT_EDEFAULT == null ? datFmt != null : !DAT_FMT_EDEFAULT.equals(datFmt...
class class_name[name] begin[{] method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=BDM__DM_NAME, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statement...
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[BDM__DM_NAME] ope...
static Parser<?> eof(final String message) { return new Parser<Object>() { @Override boolean apply(ParseContext ctxt) { if (ctxt.isEof()) return true; ctxt.missing(message); return false; } @Override public String toString() { return message; } }; ...
class class_name[name] begin[{] method[eof, return_type[type[Parser]], modifier[static], parameter[message]] begin[{] return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[IfStatement(condition=MethodInvocation(arguments=[], member=isEof,...
Keyword[static] identifier[Parser] operator[<] operator[?] operator[>] identifier[eof] operator[SEP] Keyword[final] identifier[String] identifier[message] operator[SEP] { Keyword[return] Keyword[new] identifier[Parser] operator[<] identifier[Object] operator[>] operator[SEP] operator[SEP] { annotation...
public Object getPersistentState() { Map<String, Object> persistentState = new HashMap<String, Object>(); persistentState.put("processDefinitionId", this.processDefinitionId); persistentState.put("businessKey", this.businessKey); persistentState.put("activityId", this.activityId); persistentState.put("is...
class class_name[name] begin[{] method[getPersistentState, return_type[type[Object]], modifier[public], parameter[]] begin[{] local_variable[type[Map], persistentState] call[persistentState.put, parameter[literal["processDefinitionId"], THIS[member[None.processDefinitionId]]]] ...
Keyword[public] identifier[Object] identifier[getPersistentState] operator[SEP] operator[SEP] { identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[persistentState] operator[=] Keyword[new] identifier[HashMap] operator[<] identifier[String] , identifier[Object] operator[>...
public Object remove(Object key) { synchronized (_cacheL2) { if (!_cacheL1.containsKey(key) && !_cacheL2.containsKey(key)) { // nothing to remove return null; } Object retval; Map newMap; synchro...
class class_name[name] begin[{] method[remove, return_type[type[Object]], modifier[public], parameter[key]] begin[{] SYNCHRONIZED[member[._cacheL2]] BEGIN[{] if[binary_operation[call[_cacheL1.containsKey, parameter[member[.key]]], &&, call[_cacheL2.containsKey, parameter...
Keyword[public] identifier[Object] identifier[remove] operator[SEP] identifier[Object] identifier[key] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[_cacheL2] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[_cacheL1] operator[SEP] identifier[containsKey] operator[SEP]...
public boolean isSupported(DateTimeFieldType type) { if (type == null) { return false; } return type.getField(getChronology()).isSupported(); }
class class_name[name] begin[{] method[isSupported, return_type[type[boolean]], modifier[public], parameter[type]] begin[{] if[binary_operation[member[.type], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None end[}] return[call[type.getFi...
Keyword[public] Keyword[boolean] identifier[isSupported] operator[SEP] identifier[DateTimeFieldType] identifier[type] operator[SEP] { Keyword[if] operator[SEP] identifier[type] operator[==] Other[null] operator[SEP] { Keyword[return] literal[boolean] operator[SEP] } Keyword[return] ident...
public String buildSelectElementLanguage(String attributes, String resourceName, Locale selectedLocale) { // get locale names based on properties and global settings List<Locale> locales = OpenCms.getLocaleManager().getAvailableLocales(getCms(), resourceName); List<String> options = new ArrayLi...
class class_name[name] begin[{] method[buildSelectElementLanguage, return_type[type[String]], modifier[public], parameter[attributes, resourceName, selectedLocale]] begin[{] local_variable[type[List], locales] local_variable[type[List], options] local_variable[type[List], selectList] ...
Keyword[public] identifier[String] identifier[buildSelectElementLanguage] operator[SEP] identifier[String] identifier[attributes] , identifier[String] identifier[resourceName] , identifier[Locale] identifier[selectedLocale] operator[SEP] { identifier[List] operator[<] identifier[Locale] operator[>] identifier[...
public NotificationChain basicSetTimeParameters(TimeParameters newTimeParameters, NotificationChain msgs) { TimeParameters oldTimeParameters = timeParameters; timeParameters = newTimeParameters; if (eNotificationRequired()) { ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BpsimP...
class class_name[name] begin[{] method[basicSetTimeParameters, return_type[type[NotificationChain]], modifier[public], parameter[newTimeParameters, msgs]] begin[{] local_variable[type[TimeParameters], oldTimeParameters] assign[member[.timeParameters], member[.newTimeParameters]] ...
Keyword[public] identifier[NotificationChain] identifier[basicSetTimeParameters] operator[SEP] identifier[TimeParameters] identifier[newTimeParameters] , identifier[NotificationChain] identifier[msgs] operator[SEP] { identifier[TimeParameters] identifier[oldTimeParameters] operator[=] identifier[timeParameters]...
@Nullable @TargetApi(Build.VERSION_CODES.LOLLIPOP) public static Size optSize(@Nullable Bundle bundle, @Nullable String key) { return optSize(bundle, key, null); }
class class_name[name] begin[{] method[optSize, return_type[type[Size]], modifier[public static], parameter[bundle, key]] begin[{] return[call[.optSize, parameter[member[.bundle], member[.key], literal[null]]]] end[}] END[}]
annotation[@] identifier[Nullable] annotation[@] identifier[TargetApi] operator[SEP] identifier[Build] operator[SEP] identifier[VERSION_CODES] operator[SEP] identifier[LOLLIPOP] operator[SEP] Keyword[public] Keyword[static] identifier[Size] identifier[optSize] operator[SEP] annotation[@] identifier[Nullable] identifier...
private static Set<GeoPosition> getMapGeoBounds(JXMapViewer mapViewer) { Set<GeoPosition> set = new HashSet<GeoPosition>(); TileFactory tileFactory = mapViewer.getTileFactory(); int zoom = mapViewer.getZoom(); Rectangle2D bounds = mapViewer.getViewportBounds(); Point2D pt = n...
class class_name[name] begin[{] method[getMapGeoBounds, return_type[type[Set]], modifier[private static], parameter[mapViewer]] begin[{] local_variable[type[Set], set] local_variable[type[TileFactory], tileFactory] local_variable[type[int], zoom] local_variable[type[Rectangle2D]...
Keyword[private] Keyword[static] identifier[Set] operator[<] identifier[GeoPosition] operator[>] identifier[getMapGeoBounds] operator[SEP] identifier[JXMapViewer] identifier[mapViewer] operator[SEP] { identifier[Set] operator[<] identifier[GeoPosition] operator[>] identifier[set] operator[=] Keyword[new] identif...
private boolean isTokenNumberParsable(State state, String token) { if (token.isEmpty()) { return true; } return state.mDouble.reset(token).matches(); }
class class_name[name] begin[{] method[isTokenNumberParsable, return_type[type[boolean]], modifier[private], parameter[state, token]] begin[{] if[call[token.isEmpty, parameter[]]] begin[{] return[literal[true]] else begin[{] None end[}] return[call[state.mDou...
Keyword[private] Keyword[boolean] identifier[isTokenNumberParsable] operator[SEP] identifier[State] identifier[state] , identifier[String] identifier[token] operator[SEP] { Keyword[if] operator[SEP] identifier[token] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { Keywor...
public static Cookies cookies(Cookie cookie, Cookie... additionalCookies) { AssertParameter.notNull(cookie, "Cookie"); final List<Cookie> cookieList = new LinkedList<Cookie>(); cookieList.add(cookie); Collections.addAll(cookieList, additionalCookies); return new Cookies(cookieLis...
class class_name[name] begin[{] method[cookies, return_type[type[Cookies]], modifier[public static], parameter[cookie, additionalCookies]] begin[{] call[AssertParameter.notNull, parameter[member[.cookie], literal["Cookie"]]] local_variable[type[List], cookieList] call[co...
Keyword[public] Keyword[static] identifier[Cookies] identifier[cookies] operator[SEP] identifier[Cookie] identifier[cookie] , identifier[Cookie] operator[...] identifier[additionalCookies] operator[SEP] { identifier[AssertParameter] operator[SEP] identifier[notNull] operator[SEP] identifier[cookie] , literal[S...
public OperationStatusResponseInner revokeAccess(String resourceGroupName, String diskName) { return revokeAccessWithServiceResponseAsync(resourceGroupName, diskName).toBlocking().last().body(); }
class class_name[name] begin[{] method[revokeAccess, return_type[type[OperationStatusResponseInner]], modifier[public], parameter[resourceGroupName, diskName]] begin[{] return[call[.revokeAccessWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.diskName]]]] end[}] END[}]
Keyword[public] identifier[OperationStatusResponseInner] identifier[revokeAccess] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[diskName] operator[SEP] { Keyword[return] identifier[revokeAccessWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] ...
public ElementBase realize(ElementBase parent) { if (!deleted && real == null) { real = getDefinition().createElement(parent, null, false); } else if (deleted && real != null) { real.remove(true); real = null; } return real; }
class class_name[name] begin[{] method[realize, return_type[type[ElementBase]], modifier[public], parameter[parent]] begin[{] if[binary_operation[member[.deleted], &&, binary_operation[member[.real], ==, literal[null]]]] begin[{] assign[member[.real], call[.getDefinition...
Keyword[public] identifier[ElementBase] identifier[realize] operator[SEP] identifier[ElementBase] identifier[parent] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[deleted] operator[&&] identifier[real] operator[==] Other[null] operator[SEP] { identifier[real] operator[=] identifier[...
static HeapUpdateDoublesSketch newInstance(final int k) { final HeapUpdateDoublesSketch hqs = new HeapUpdateDoublesSketch(k); final int baseBufAlloc = 2 * Math.min(DoublesSketch.MIN_K, k); //the min is important hqs.n_ = 0; hqs.combinedBuffer_ = new double[baseBufAlloc]; hqs.baseBufferCount_ = 0; ...
class class_name[name] begin[{] method[newInstance, return_type[type[HeapUpdateDoublesSketch]], modifier[static], parameter[k]] begin[{] local_variable[type[HeapUpdateDoublesSketch], hqs] local_variable[type[int], baseBufAlloc] assign[member[hqs.n_], literal[0]] ...
Keyword[static] identifier[HeapUpdateDoublesSketch] identifier[newInstance] operator[SEP] Keyword[final] Keyword[int] identifier[k] operator[SEP] { Keyword[final] identifier[HeapUpdateDoublesSketch] identifier[hqs] operator[=] Keyword[new] identifier[HeapUpdateDoublesSketch] operator[SEP] identifier[k] operator[...
public static int cudnnSetFilterNdDescriptor( cudnnFilterDescriptor filterDesc, int dataType, /** image data type */ int format, int nbDims, int[] filterDimA) { return checkResult(cudnnSetFilterNdDescriptorNative(filterDesc, dataType, format, nbDims, filterDimA)); ...
class class_name[name] begin[{] method[cudnnSetFilterNdDescriptor, return_type[type[int]], modifier[public static], parameter[filterDesc, dataType, format, nbDims, filterDimA]] begin[{] return[call[.checkResult, parameter[call[.cudnnSetFilterNdDescriptorNative, parameter[member[.filterDesc], member[.da...
Keyword[public] Keyword[static] Keyword[int] identifier[cudnnSetFilterNdDescriptor] operator[SEP] identifier[cudnnFilterDescriptor] identifier[filterDesc] , Keyword[int] identifier[dataType] , Keyword[int] identifier[format] , Keyword[int] identifier[nbDims] , Keyword[int] operator[SEP] operator[SEP] identifier[fil...
public Parser<RECORD> addParseTarget(final Method method, final List<String> fieldValues) { return addParseTarget(method, SetterPolicy.ALWAYS, fieldValues); }
class class_name[name] begin[{] method[addParseTarget, return_type[type[Parser]], modifier[public], parameter[method, fieldValues]] begin[{] return[call[.addParseTarget, parameter[member[.method], member[SetterPolicy.ALWAYS], member[.fieldValues]]]] end[}] END[}]
Keyword[public] identifier[Parser] operator[<] identifier[RECORD] operator[>] identifier[addParseTarget] operator[SEP] Keyword[final] identifier[Method] identifier[method] , Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[fieldValues] operator[SEP] { Keyword[return] identif...
protected double getNewCentroidScore(int newCentroidIndex, DoubleVector dataPoint) { double newScore = VectorMath.dotProduct(completeCentroid, dataPoint); newScore += simToComplete[newCentroidIndex]; newScore /= modifiedMagnitude(centroids[newCentroidInde...
class class_name[name] begin[{] method[getNewCentroidScore, return_type[type[double]], modifier[protected], parameter[newCentroidIndex, dataPoint]] begin[{] local_variable[type[double], newScore] assign[member[.newScore], member[.simToComplete]] assign[member[.newScore],...
Keyword[protected] Keyword[double] identifier[getNewCentroidScore] operator[SEP] Keyword[int] identifier[newCentroidIndex] , identifier[DoubleVector] identifier[dataPoint] operator[SEP] { Keyword[double] identifier[newScore] operator[=] identifier[VectorMath] operator[SEP] identifier[dotProduct] operator[SEP] i...
private static int SA_IS(BaseArray T, int[] SA, int fs, int n, int k, boolean isbwt) { BaseArray C, B, RA; int i, j, c, m, p, q, plen, qlen, name, pidx = 0; int c0, c1; boolean diff; /* stage 1: reduce the problem by at least 1/2 sort all the S-substrings */ if (k <= ...
class class_name[name] begin[{] method[SA_IS, return_type[type[int]], modifier[private static], parameter[T, SA, fs, n, k, isbwt]] begin[{] local_variable[type[BaseArray], C] local_variable[type[int], i] local_variable[type[int], c0] local_variable[type[boolean], diff] ...
Keyword[private] Keyword[static] Keyword[int] identifier[SA_IS] operator[SEP] identifier[BaseArray] identifier[T] , Keyword[int] operator[SEP] operator[SEP] identifier[SA] , Keyword[int] identifier[fs] , Keyword[int] identifier[n] , Keyword[int] identifier[k] , Keyword[boolean] identifier[isbwt] operator[SEP] { ...
private static String classNameOf(TypeElement type, String delimiter) { String name = type.getSimpleName().toString(); while (type.getEnclosingElement() instanceof TypeElement) { type = (TypeElement) type.getEnclosingElement(); name = type.getSimpleName() + delimiter + name; } return name; ...
class class_name[name] begin[{] method[classNameOf, return_type[type[String]], modifier[private static], parameter[type, delimiter]] begin[{] local_variable[type[String], name] while[binary_operation[call[type.getEnclosingElement, parameter[]], instanceof, type[TypeElement]]] begin[{] ...
Keyword[private] Keyword[static] identifier[String] identifier[classNameOf] operator[SEP] identifier[TypeElement] identifier[type] , identifier[String] identifier[delimiter] operator[SEP] { identifier[String] identifier[name] operator[=] identifier[type] operator[SEP] identifier[getSimpleName] operator[SEP] ope...
public static double convertAlgebra(double value, Algebra src, Algebra dst) { if (dst.equals(src)) { return value; } else if (src.equals(RealAlgebra.getInstance())) { return dst.fromReal(value); } else if (src.equals(LogSemiring.getInstance())) { return dst.fr...
class class_name[name] begin[{] method[convertAlgebra, return_type[type[double]], modifier[public static], parameter[value, src, dst]] begin[{] if[call[dst.equals, parameter[member[.src]]]] begin[{] return[member[.value]] else begin[{] if[call[src.equals, paramet...
Keyword[public] Keyword[static] Keyword[double] identifier[convertAlgebra] operator[SEP] Keyword[double] identifier[value] , identifier[Algebra] identifier[src] , identifier[Algebra] identifier[dst] operator[SEP] { Keyword[if] operator[SEP] identifier[dst] operator[SEP] identifier[equals] operator[SEP] identif...
public boolean onScroll(final MotionEvent pEvent1, final MotionEvent pEvent2, final float pDistanceX, final float pDistanceY, final MapView pMapView) { return false; }
class class_name[name] begin[{] method[onScroll, return_type[type[boolean]], modifier[public], parameter[pEvent1, pEvent2, pDistanceX, pDistanceY, pMapView]] begin[{] return[literal[false]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[onScroll] operator[SEP] Keyword[final] identifier[MotionEvent] identifier[pEvent1] , Keyword[final] identifier[MotionEvent] identifier[pEvent2] , Keyword[final] Keyword[float] identifier[pDistanceX] , Keyword[final] Keyword[float] identifier[pDistanceY] , Keyword[final] i...
public List<ContentsId> getIds(String type) { List<ContentsId> contentsIds = null; ContentsDao contentsDao = geoPackage.getContentsDao(); try { if (contentsIdDao.isTableExists()) { QueryBuilder<Contents, String> contentsQueryBuilder = contentsDao .queryBuilder(); QueryBuilder<ContentsId, Lon...
class class_name[name] begin[{] method[getIds, return_type[type[List]], modifier[public], parameter[type]] begin[{] local_variable[type[List], contentsIds] local_variable[type[ContentsDao], contentsDao] TryStatement(block=[IfStatement(condition=MethodInvocation(arguments=[], member=isTa...
Keyword[public] identifier[List] operator[<] identifier[ContentsId] operator[>] identifier[getIds] operator[SEP] identifier[String] identifier[type] operator[SEP] { identifier[List] operator[<] identifier[ContentsId] operator[>] identifier[contentsIds] operator[=] Other[null] operator[SEP] identifier[ContentsDao...
@Override public ListFunctionsResult listFunctions(ListFunctionsRequest request) { request = beforeClientExecution(request); return executeListFunctions(request); }
class class_name[name] begin[{] method[listFunctions, return_type[type[ListFunctionsResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeListFunctions, parameter[member[.request]]...
annotation[@] identifier[Override] Keyword[public] identifier[ListFunctionsResult] identifier[listFunctions] operator[SEP] identifier[ListFunctionsRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operato...
public String toQueryString(Criteria criteria, CriteriaQueryBuilder queryBuilder) { StringBuilder builder = new StringBuilder(); builder.append( "NEW " ); builder.append( clazz.getName() ); builder.append( '(' ); builder.append( projectionList.toQueryString(criteria, queryBuilder) ); builder.ap...
class class_name[name] begin[{] method[toQueryString, return_type[type[String]], modifier[public], parameter[criteria, queryBuilder]] begin[{] local_variable[type[StringBuilder], builder] call[builder.append, parameter[literal["NEW "]]] call[builder.append, parameter[cal...
Keyword[public] identifier[String] identifier[toQueryString] operator[SEP] identifier[Criteria] identifier[criteria] , identifier[CriteriaQueryBuilder] identifier[queryBuilder] operator[SEP] { identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator...
public DirectoryStream<Path> newDirectoryStream(Path dir) { try { return new WrappingDirectoryStream(Files.newDirectoryStream(dir)); } catch (IOException e) { return null; } }
class class_name[name] begin[{] method[newDirectoryStream, return_type[type[DirectoryStream]], modifier[public], parameter[dir]] begin[{] TryStatement(block=[ReturnStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=dir, postfix_operators=[], prefix_operators...
Keyword[public] identifier[DirectoryStream] operator[<] identifier[Path] operator[>] identifier[newDirectoryStream] operator[SEP] identifier[Path] identifier[dir] operator[SEP] { Keyword[try] { Keyword[return] Keyword[new] identifier[WrappingDirectoryStream] operator[SEP] identifier[Files] operator[SE...
@Override public CircuitGroupResetAckMessage createGRA(int cic) { CircuitGroupResetAckMessage msg = createGRA(); CircuitIdentificationCode code = this.parameterFactory.createCircuitIdentificationCode(); code.setCIC(cic); msg.setCircuitIdentificationCode(code); return msg; ...
class class_name[name] begin[{] method[createGRA, return_type[type[CircuitGroupResetAckMessage]], modifier[public], parameter[cic]] begin[{] local_variable[type[CircuitGroupResetAckMessage], msg] local_variable[type[CircuitIdentificationCode], code] call[code.setCIC, parameter[m...
annotation[@] identifier[Override] Keyword[public] identifier[CircuitGroupResetAckMessage] identifier[createGRA] operator[SEP] Keyword[int] identifier[cic] operator[SEP] { identifier[CircuitGroupResetAckMessage] identifier[msg] operator[=] identifier[createGRA] operator[SEP] operator[SEP] operator[SEP] identifie...
public ClassFeatureSet initialize(JavaClass javaClass) { this.className = javaClass.getClassName(); this.isInterface = javaClass.isInterface(); addFeature(CLASS_NAME_KEY + transformClassName(javaClass.getClassName())); for (Method method : javaClass.getMethods()) { if (!isS...
class class_name[name] begin[{] method[initialize, return_type[type[ClassFeatureSet]], modifier[public], parameter[javaClass]] begin[{] assign[THIS[member[None.className]], call[javaClass.getClassName, parameter[]]] assign[THIS[member[None.isInterface]], call[javaClass.isInterfa...
Keyword[public] identifier[ClassFeatureSet] identifier[initialize] operator[SEP] identifier[JavaClass] identifier[javaClass] operator[SEP] { Keyword[this] operator[SEP] identifier[className] operator[=] identifier[javaClass] operator[SEP] identifier[getClassName] operator[SEP] operator[SEP] operator[SEP] Keyword...
public void setExtraHeight(int cell, float height) { if (cell < 0 || cell >= cells.length) return; extraHeights[cell] = height; }
class class_name[name] begin[{] method[setExtraHeight, return_type[void], modifier[public], parameter[cell, height]] begin[{] if[binary_operation[binary_operation[member[.cell], <, literal[0]], ||, binary_operation[member[.cell], >=, member[cells.length]]]] begin[{] return[None] else be...
Keyword[public] Keyword[void] identifier[setExtraHeight] operator[SEP] Keyword[int] identifier[cell] , Keyword[float] identifier[height] operator[SEP] { Keyword[if] operator[SEP] identifier[cell] operator[<] Other[0] operator[||] identifier[cell] operator[>=] identifier[cells] operator[SEP] identifier[length] o...
@SuppressWarnings({ "null", "unused" }) public @NotNull SuffixBuilder put(@NotNull String key, @NotNull Object value) { if (key == null) { throw new IllegalArgumentException("Key must not be null"); } if (value != null) { validateValueType(value); parameterMap.put(key, value); } ...
class class_name[name] begin[{] method[put, return_type[type[SuffixBuilder]], modifier[public], parameter[key, value]] begin[{] if[binary_operation[member[.key], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_opera...
annotation[@] identifier[SuppressWarnings] operator[SEP] { literal[String] , literal[String] } operator[SEP] Keyword[public] annotation[@] identifier[NotNull] identifier[SuffixBuilder] identifier[put] operator[SEP] annotation[@] identifier[NotNull] identifier[String] identifier[key] , annotation[@] identifi...
private void mergePackage( InternalKnowledgePackage pkg, InternalKnowledgePackage newPkg ) { // Merge imports final Map<String, ImportDeclaration> imports = pkg.getImports(); imports.putAll(newPkg.getImports()); // Merge static imports for (String ...
class class_name[name] begin[{] method[mergePackage, return_type[void], modifier[private], parameter[pkg, newPkg]] begin[{] local_variable[type[Map], imports] call[imports.putAll, parameter[call[newPkg.getImports, parameter[]]]] ForStatement(body=BlockStatement(label=None, state...
Keyword[private] Keyword[void] identifier[mergePackage] operator[SEP] identifier[InternalKnowledgePackage] identifier[pkg] , identifier[InternalKnowledgePackage] identifier[newPkg] operator[SEP] { Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[ImportDeclaration] operator[>] identifi...
public static Kernel createKernel(KernelConfiguration configuration) { KernelCoreFactory factory = new KernelCoreFactory(); return factory.create(configuration); }
class class_name[name] begin[{] method[createKernel, return_type[type[Kernel]], modifier[public static], parameter[configuration]] begin[{] local_variable[type[KernelCoreFactory], factory] return[call[factory.create, parameter[member[.configuration]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Kernel] identifier[createKernel] operator[SEP] identifier[KernelConfiguration] identifier[configuration] operator[SEP] { identifier[KernelCoreFactory] identifier[factory] operator[=] Keyword[new] identifier[KernelCoreFactory] operator[SEP] operator[SEP] operator[SEP] Ke...
@Override public Object format(Object value) { if (value == null) { return nullStringValue; } if(value.getClass().isArray()) { return asList(value); } else if (value instanceof Date) { Date date = (Date) value; if (date.getTime() % ONE_DA...
class class_name[name] begin[{] method[format, return_type[type[Object]], modifier[public], parameter[value]] begin[{] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[member[.nullStringValue]] else begin[{] None end[}] if[call[...
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[format] operator[SEP] identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] { Keyword[return] identifier[nullStringValue] operator[SEP] ...
public static Font getFont(Properties attributes) { fontImp.defaultEmbedding = defaultEmbedding; fontImp.defaultEncoding = defaultEncoding; return fontImp.getFont(attributes); }
class class_name[name] begin[{] method[getFont, return_type[type[Font]], modifier[public static], parameter[attributes]] begin[{] assign[member[fontImp.defaultEmbedding], member[.defaultEmbedding]] assign[member[fontImp.defaultEncoding], member[.defaultEncoding]] return[...
Keyword[public] Keyword[static] identifier[Font] identifier[getFont] operator[SEP] identifier[Properties] identifier[attributes] operator[SEP] { identifier[fontImp] operator[SEP] identifier[defaultEmbedding] operator[=] identifier[defaultEmbedding] operator[SEP] identifier[fontImp] operator[SEP] identifier[defau...
@PublicAPI(usage = ACCESS) public Optional<Object> get(String property) { return Optional.fromNullable(values.get(property)); }
class class_name[name] begin[{] method[get, return_type[type[Optional]], modifier[public], parameter[property]] begin[{] return[call[Optional.fromNullable, parameter[call[values.get, parameter[member[.property]]]]]] end[}] END[}]
annotation[@] identifier[PublicAPI] operator[SEP] identifier[usage] operator[=] identifier[ACCESS] operator[SEP] Keyword[public] identifier[Optional] operator[<] identifier[Object] operator[>] identifier[get] operator[SEP] identifier[String] identifier[property] operator[SEP] { Keyword[return] identifier[Optiona...
public static <T> ObjectName register(Class<T> interfaceClass, String key, String value) throws MBeanException { return register(interfaceClass, getObjectName(interfaceClass, key, value)); }
class class_name[name] begin[{] method[register, return_type[type[ObjectName]], modifier[public static], parameter[interfaceClass, key, value]] begin[{] return[call[.register, parameter[member[.interfaceClass], call[.getObjectName, parameter[member[.interfaceClass], member[.key], member[.value]]]]]] ...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[ObjectName] identifier[register] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[interfaceClass] , identifier[String] identifier[key] , identifier[String] identifier[value] operator[SEP] Keyword[throws] i...
public static <T> void isNotSame( final T argument, String argumentName, final T object, String objectName ) { if (argument == object) { if (objectName == null) objectName = getObjectNam...
class class_name[name] begin[{] method[isNotSame, return_type[void], modifier[public static], parameter[argument, argumentName, object, objectName]] begin[{] if[binary_operation[member[.argument], ==, member[.object]]] begin[{] if[binary_operation[member[.objectName], ==...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] Keyword[void] identifier[isNotSame] operator[SEP] Keyword[final] identifier[T] identifier[argument] , identifier[String] identifier[argumentName] , Keyword[final] identifier[T] identifier[object] , identifier[String] identifier[objectName] operato...
@Override public List<String> getKeywords(String text) throws ApiException { if (isEmpty(text)) { throw new IllegalArgumentException(NULL_TEXT_MSG); } LOG.debug("Retrieve keywords for the text: " + text); return this.api.getKeywordsForText(text, retinaName); }
class class_name[name] begin[{] method[getKeywords, return_type[type[List]], modifier[public], parameter[text]] begin[{] if[call[.isEmpty, parameter[member[.text]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=NULL_TEXT_MSG, postfix_operators=[]...
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getKeywords] operator[SEP] identifier[String] identifier[text] operator[SEP] Keyword[throws] identifier[ApiException] { Keyword[if] operator[SEP] identifier[isEmpty] operator[SEP] identifier[...
@Override public Request searchForFacetValuesAsync(@NonNull String facetName, @NonNull String facetText, @Nullable Query query, @Nullable final RequestOptions requestOptions, @NonNull final CompletionHandler handler) { try { final String path = "/1/indexes/" + getEncodedIndexName() + "/facets/" ...
class class_name[name] begin[{] method[searchForFacetValuesAsync, return_type[type[Request]], modifier[public], parameter[facetName, facetText, query, requestOptions, handler]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializ...
annotation[@] identifier[Override] Keyword[public] identifier[Request] identifier[searchForFacetValuesAsync] operator[SEP] annotation[@] identifier[NonNull] identifier[String] identifier[facetName] , annotation[@] identifier[NonNull] identifier[String] identifier[facetText] , annotation[@] identifier[Nullable] identi...
@Override public ListT<W,T> scanLeft(final Monoid<T> monoid) { return (ListT<W,T>) FoldableTransformerSeq.super.scanLeft(monoid); }
class class_name[name] begin[{] method[scanLeft, return_type[type[ListT]], modifier[public], parameter[monoid]] begin[{] return[Cast(expression=MemberReference(member=FoldableTransformerSeq, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[SuperMethodInvocation(arguments=[MemberReferen...
annotation[@] identifier[Override] Keyword[public] identifier[ListT] operator[<] identifier[W] , identifier[T] operator[>] identifier[scanLeft] operator[SEP] Keyword[final] identifier[Monoid] operator[<] identifier[T] operator[>] identifier[monoid] operator[SEP] { Keyword[return] operator[SEP] identifier[ListT]...
private NumberFormat parseFormatter(Context context, Arguments args) { final String format = args.get(FORMAT_PARAM_NAME); final Locale locale = context.get(LOCALE); if (format != null) { return new DecimalFormat(format, DecimalFormatSymbols.getInstance(locale)); }...
class class_name[name] begin[{] method[parseFormatter, return_type[type[NumberFormat]], modifier[private], parameter[context, args]] begin[{] local_variable[type[String], format] local_variable[type[Locale], locale] if[binary_operation[member[.format], !=, literal[null]]] begin[...
Keyword[private] identifier[NumberFormat] identifier[parseFormatter] operator[SEP] identifier[Context] identifier[context] , identifier[Arguments] identifier[args] operator[SEP] { Keyword[final] identifier[String] identifier[format] operator[=] identifier[args] operator[SEP] identifier[get] operator[SEP] identi...
@POST @Path("create") @Consumes(MediaType.APPLICATION_FORM_URLENCODED) public Response createFromBasicAuth() throws Exception { return doCreateFromBasicAuth(null); }
class class_name[name] begin[{] method[createFromBasicAuth, return_type[type[Response]], modifier[public], parameter[]] begin[{] return[call[.doCreateFromBasicAuth, parameter[literal[null]]]] end[}] END[}]
annotation[@] identifier[POST] annotation[@] identifier[Path] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Consumes] operator[SEP] identifier[MediaType] operator[SEP] identifier[APPLICATION_FORM_URLENCODED] operator[SEP] Keyword[public] identifier[Response] identifier[createFromBasicAuth] operat...
protected void copy(I_CmsRepositoryItem item, InputStream is, ServletOutputStream ostream) throws IOException { IOException exception = null; InputStream resourceInputStream = null; // Optimization: If the binary content has already been loaded, send // it directly if (!item.is...
class class_name[name] begin[{] method[copy, return_type[void], modifier[protected], parameter[item, is, ostream]] begin[{] local_variable[type[IOException], exception] local_variable[type[InputStream], resourceInputStream] if[call[item.isCollection, parameter[]]] begin[{] ...
Keyword[protected] Keyword[void] identifier[copy] operator[SEP] identifier[I_CmsRepositoryItem] identifier[item] , identifier[InputStream] identifier[is] , identifier[ServletOutputStream] identifier[ostream] operator[SEP] Keyword[throws] identifier[IOException] { identifier[IOException] identifier[exception] o...
@Override public List<String> getSqlPathList() { List<String> list = Collections.list(this.sqlInfos.keys()); Collections.sort(list); return list; }
class class_name[name] begin[{] method[getSqlPathList, return_type[type[List]], modifier[public], parameter[]] begin[{] local_variable[type[List], list] call[Collections.sort, parameter[member[.list]]] return[member[.list]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getSqlPathList] operator[SEP] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[list] operator[=] identifier[Collections] operator[SEP] identifier[list] o...
public static <K, V, T extends Comparable<? super T>, U> AbstractGroupExpression<Pair<K, V>, SortedMap<T, U>> sortedMap(GroupExpression<K, T> key, GroupExpression<V, U> value) { return new...
class class_name[name] begin[{] method[sortedMap, return_type[type[AbstractGroupExpression]], modifier[public static], parameter[key, value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=key, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=...
Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] , identifier[T] Keyword[extends] identifier[Comparable] operator[<] operator[?] Keyword[super] identifier[T] operator[>] , identifier[U] operator[>] identifier[AbstractGroupExpression] operator[<] identifier[Pair] operator[<] identifier[K] , ...
public final ResourceException isValid(int newAction) { try { setState(newAction, true); } catch (TransactionException exp) { FFDCFilter.processException(exp, "com.ibm.ws.rsadapter.spi.WSStateManager.isValid", "385", this); return exp; } return null; ...
class class_name[name] begin[{] method[isValid, return_type[type[ResourceException]], modifier[final public], parameter[newAction]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=newAction, postfix_operators=[], prefix_operators=[], qualif...
Keyword[public] Keyword[final] identifier[ResourceException] identifier[isValid] operator[SEP] Keyword[int] identifier[newAction] operator[SEP] { Keyword[try] { identifier[setState] operator[SEP] identifier[newAction] , literal[boolean] operator[SEP] operator[SEP] } Keyword[catch] opera...
private static boolean isOnePassable(List<BooleanEncodedValue> checkEncoders, IntsRef edgeFlags) { for (BooleanEncodedValue accessEnc : checkEncoders) { if (accessEnc.getBool(false, edgeFlags) || accessEnc.getBool(true, edgeFlags)) return true; } return false; }
class class_name[name] begin[{] method[isOnePassable, return_type[type[boolean]], modifier[private static], parameter[checkEncoders, edgeFlags]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[Literal(postfix_o...
Keyword[private] Keyword[static] Keyword[boolean] identifier[isOnePassable] operator[SEP] identifier[List] operator[<] identifier[BooleanEncodedValue] operator[>] identifier[checkEncoders] , identifier[IntsRef] identifier[edgeFlags] operator[SEP] { Keyword[for] operator[SEP] identifier[BooleanEncodedValue] iden...
public Set<String> editMention( String mention ) { Set<String> result = new HashSet<String>(); result.add( mention.trim().toLowerCase() ); return result; }
class class_name[name] begin[{] method[editMention, return_type[type[Set]], modifier[public], parameter[mention]] begin[{] local_variable[type[Set], result] call[result.add, parameter[call[mention.trim, parameter[]]]] return[member[.result]] end[}] END[}]
Keyword[public] identifier[Set] operator[<] identifier[String] operator[>] identifier[editMention] operator[SEP] identifier[String] identifier[mention] operator[SEP] { identifier[Set] operator[<] identifier[String] operator[>] identifier[result] operator[=] Keyword[new] identifier[HashSet] operator[<] identifier...
public void accumulateBug(BugInstance bug, BytecodeScanningDetector visitor) { SourceLineAnnotation source = SourceLineAnnotation.fromVisitedInstruction(visitor); accumulateBug(bug, source); }
class class_name[name] begin[{] method[accumulateBug, return_type[void], modifier[public], parameter[bug, visitor]] begin[{] local_variable[type[SourceLineAnnotation], source] call[.accumulateBug, parameter[member[.bug], member[.source]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[accumulateBug] operator[SEP] identifier[BugInstance] identifier[bug] , identifier[BytecodeScanningDetector] identifier[visitor] operator[SEP] { identifier[SourceLineAnnotation] identifier[source] operator[=] identifier[SourceLineAnnotation] operator[SEP] identifier[fromV...
public List<Entry> getDirectChildren(Dn parent) throws NoSuchNodeException, MissingParentException { return extractEntriesFromCursor(searchOneLevel(parent)); }
class class_name[name] begin[{] method[getDirectChildren, return_type[type[List]], modifier[public], parameter[parent]] begin[{] return[call[.extractEntriesFromCursor, parameter[call[.searchOneLevel, parameter[member[.parent]]]]]] end[}] END[}]
Keyword[public] identifier[List] operator[<] identifier[Entry] operator[>] identifier[getDirectChildren] operator[SEP] identifier[Dn] identifier[parent] operator[SEP] Keyword[throws] identifier[NoSuchNodeException] , identifier[MissingParentException] { Keyword[return] identifier[extractEntriesFromCursor] opera...
static Optional<XmlElement> getErrorElement(XmlElement rootXmlElement) { Optional<XmlElement> elem = rootXmlElement.getChildOpt("error"); if (elem.isPresent()) { ApiException error = elem.transform(toApiException()).get(); log.error(error.getCode() + ": " + error.getValue()); } return elem; ...
class class_name[name] begin[{] method[getErrorElement, return_type[type[Optional]], modifier[static], parameter[rootXmlElement]] begin[{] local_variable[type[Optional], elem] if[call[elem.isPresent, parameter[]]] begin[{] local_variable[type[ApiException], error] ...
Keyword[static] identifier[Optional] operator[<] identifier[XmlElement] operator[>] identifier[getErrorElement] operator[SEP] identifier[XmlElement] identifier[rootXmlElement] operator[SEP] { identifier[Optional] operator[<] identifier[XmlElement] operator[>] identifier[elem] operator[=] identifier[rootXmlElemen...
private String getMatchedFigureKeyword(String line) { for (String keyword : Config.FIGURE_KEYWORDS) { if (line.startsWith(keyword)) { return keyword; } } return null; }
class class_name[name] begin[{] method[getMatchedFigureKeyword, return_type[type[String]], modifier[private], parameter[line]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=keyword, postfix_operators=[], prefix...
Keyword[private] identifier[String] identifier[getMatchedFigureKeyword] operator[SEP] identifier[String] identifier[line] operator[SEP] { Keyword[for] operator[SEP] identifier[String] identifier[keyword] operator[:] identifier[Config] operator[SEP] identifier[FIGURE_KEYWORDS] operator[SEP] { Keyword[...
static <T> void crossover( final MSeq<T> that, final MSeq<T> other, final int[] indexes ) { for (int i = 0; i < indexes.length - 1; i += 2) { final int start = indexes[i]; final int end = indexes[i + 1]; that.swap(start, end, other, start); } if (indexes.length%2 == 1) { final int index = inde...
class class_name[name] begin[{] method[crossover, return_type[void], modifier[static], parameter[that, other, indexes]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(m...
Keyword[static] operator[<] identifier[T] operator[>] Keyword[void] identifier[crossover] operator[SEP] Keyword[final] identifier[MSeq] operator[<] identifier[T] operator[>] identifier[that] , Keyword[final] identifier[MSeq] operator[<] identifier[T] operator[>] identifier[other] , Keyword[final] Keyword[int] operato...
private void advanceTime(NFAState nfaState, long timestamp) throws Exception { try (SharedBufferAccessor<IN> sharedBufferAccessor = partialMatches.getAccessor()) { Collection<Tuple2<Map<String, List<IN>>, Long>> timedOut = nfa.advanceTime(sharedBufferAccessor, nfaState, timestamp); if (!timedOut.isEmpty())...
class class_name[name] begin[{] method[advanceTime, return_type[void], modifier[private], parameter[nfaState, timestamp]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(member=s...
Keyword[private] Keyword[void] identifier[advanceTime] operator[SEP] identifier[NFAState] identifier[nfaState] , Keyword[long] identifier[timestamp] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[try] operator[SEP] identifier[SharedBufferAccessor] operator[<] identifier[IN] operator[>] identifier...
public Instance getInstance() { System.out.println("\nGet Instance"); // [START bigtable_get_instance] Instance instance = null; try { instance = adminClient.getInstance(instanceId); System.out.println("Instance ID: " + instance.getId()); System.out.println("Display Name: " + instance....
class class_name[name] begin[{] method[getInstance, return_type[type[Instance]], modifier[public], parameter[]] begin[{] call[System.out.println, parameter[literal["\nGet Instance"]]] local_variable[type[Instance], instance] TryStatement(block=[StatementExpression(expression=Ass...
Keyword[public] identifier[Instance] identifier[getInstance] operator[SEP] operator[SEP] { identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[println] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[Instance] identifier[instance] operator[=] Other[null] operator[SEP] K...
public static JavaType findRootType(JavaType contentType) { if (contentType.hasGenericTypes()) { return findRootType(contentType.containedType(0)); } else { return contentType; } }
class class_name[name] begin[{] method[findRootType, return_type[type[JavaType]], modifier[public static], parameter[contentType]] begin[{] if[call[contentType.hasGenericTypes, parameter[]]] begin[{] return[call[.findRootType, parameter[call[contentType.containedType, parameter[lite...
Keyword[public] Keyword[static] identifier[JavaType] identifier[findRootType] operator[SEP] identifier[JavaType] identifier[contentType] operator[SEP] { Keyword[if] operator[SEP] identifier[contentType] operator[SEP] identifier[hasGenericTypes] operator[SEP] operator[SEP] operator[SEP] { Keyword[retur...
public void createTableStyleRelationship(String featureTable) { createStyleRelationship( getMappingTableName(TABLE_MAPPING_TABLE_STYLE, featureTable), featureTable, ContentsId.TABLE_NAME, StyleTable.TABLE_NAME); }
class class_name[name] begin[{] method[createTableStyleRelationship, return_type[void], modifier[public], parameter[featureTable]] begin[{] call[.createStyleRelationship, parameter[call[.getMappingTableName, parameter[member[.TABLE_MAPPING_TABLE_STYLE], member[.featureTable]]], member[.featureT...
Keyword[public] Keyword[void] identifier[createTableStyleRelationship] operator[SEP] identifier[String] identifier[featureTable] operator[SEP] { identifier[createStyleRelationship] operator[SEP] identifier[getMappingTableName] operator[SEP] identifier[TABLE_MAPPING_TABLE_STYLE] , identifier[featureTable] operat...
private void addCoord(Chunk chunk, BlockPos pos) { chunks(chunk).add(chunk, pos); }
class class_name[name] begin[{] method[addCoord, return_type[void], modifier[private], parameter[chunk, pos]] begin[{] call[.chunks, parameter[member[.chunk]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[addCoord] operator[SEP] identifier[Chunk] identifier[chunk] , identifier[BlockPos] identifier[pos] operator[SEP] { identifier[chunks] operator[SEP] identifier[chunk] operator[SEP] operator[SEP] identifier[add] operator[SEP] identifier[chunk] , identifier[pos] operator[...
public void setLedOn(final boolean ON) { if (null == ledOn) { _ledOn = ON; fireUpdateEvent(LED_EVENT); } else { ledOn.set(ON); } }
class class_name[name] begin[{] method[setLedOn, return_type[void], modifier[public], parameter[ON]] begin[{] if[binary_operation[literal[null], ==, member[.ledOn]]] begin[{] assign[member[._ledOn], member[.ON]] call[.fireUpdateEvent, parameter[me...
Keyword[public] Keyword[void] identifier[setLedOn] operator[SEP] Keyword[final] Keyword[boolean] identifier[ON] operator[SEP] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[ledOn] operator[SEP] { identifier[_ledOn] operator[=] identifier[ON] operator[SEP] identifier[fireUpdateEvent] o...
public JobScheduleExistsOptions withIfUnmodifiedSince(DateTime ifUnmodifiedSince) { if (ifUnmodifiedSince == null) { this.ifUnmodifiedSince = null; } else { this.ifUnmodifiedSince = new DateTimeRfc1123(ifUnmodifiedSince); } return this; }
class class_name[name] begin[{] method[withIfUnmodifiedSince, return_type[type[JobScheduleExistsOptions]], modifier[public], parameter[ifUnmodifiedSince]] begin[{] if[binary_operation[member[.ifUnmodifiedSince], ==, literal[null]]] begin[{] assign[THIS[member[None.ifUnmo...
Keyword[public] identifier[JobScheduleExistsOptions] identifier[withIfUnmodifiedSince] operator[SEP] identifier[DateTime] identifier[ifUnmodifiedSince] operator[SEP] { Keyword[if] operator[SEP] identifier[ifUnmodifiedSince] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifie...
public void getImageRelativeToViewAbsoluteTransform(Matrix outMatrix) { outMatrix.setRectToRect(IDENTITY_RECT, mTransformedImageBounds, Matrix.ScaleToFit.FILL); }
class class_name[name] begin[{] method[getImageRelativeToViewAbsoluteTransform, return_type[void], modifier[public], parameter[outMatrix]] begin[{] call[outMatrix.setRectToRect, parameter[member[.IDENTITY_RECT], member[.mTransformedImageBounds], member[Matrix.ScaleToFit.FILL]]] end[}] END[}...
Keyword[public] Keyword[void] identifier[getImageRelativeToViewAbsoluteTransform] operator[SEP] identifier[Matrix] identifier[outMatrix] operator[SEP] { identifier[outMatrix] operator[SEP] identifier[setRectToRect] operator[SEP] identifier[IDENTITY_RECT] , identifier[mTransformedImageBounds] , identifier[Matri...
public static double[] random(double lo, double hi, int n) { double[] x = new double[n]; random.get().nextDoubles(x, lo, hi); return x; }
class class_name[name] begin[{] method[random, return_type[type[double]], modifier[public static], parameter[lo, hi, n]] begin[{] local_variable[type[double], x] call[random.get, parameter[]] return[member[.x]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[double] operator[SEP] operator[SEP] identifier[random] operator[SEP] Keyword[double] identifier[lo] , Keyword[double] identifier[hi] , Keyword[int] identifier[n] operator[SEP] { Keyword[double] operator[SEP] operator[SEP] identifier[x] operator[=] Keyword[new] Keyword[do...
public void handleQueueMemberRemovedEvent(QueueMemberRemovedEvent event) { final AsteriskQueueImpl queue = getInternalQueueByName(event.getQueue()); if (queue == null) { logger.error("Ignored QueueMemberRemovedEvent for unknown queue " + event.getQueue()); return; ...
class class_name[name] begin[{] method[handleQueueMemberRemovedEvent, return_type[void], modifier[public], parameter[event]] begin[{] local_variable[type[AsteriskQueueImpl], queue] if[binary_operation[member[.queue], ==, literal[null]]] begin[{] call[logger.error...
Keyword[public] Keyword[void] identifier[handleQueueMemberRemovedEvent] operator[SEP] identifier[QueueMemberRemovedEvent] identifier[event] operator[SEP] { Keyword[final] identifier[AsteriskQueueImpl] identifier[queue] operator[=] identifier[getInternalQueueByName] operator[SEP] identifier[event] operator[SEP] i...
public Observable<TroubleshootingResultInner> beginGetTroubleshootingAsync(String resourceGroupName, String networkWatcherName, TroubleshootingParameters parameters) { return beginGetTroubleshootingWithServiceResponseAsync(resourceGroupName, networkWatcherName, parameters).map(new Func1<ServiceResponse<Troubles...
class class_name[name] begin[{] method[beginGetTroubleshootingAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, networkWatcherName, parameters]] begin[{] return[call[.beginGetTroubleshootingWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.networ...
Keyword[public] identifier[Observable] operator[<] identifier[TroubleshootingResultInner] operator[>] identifier[beginGetTroubleshootingAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[networkWatcherName] , identifier[TroubleshootingParameters] identifier[parameter...
public static void write(Writer writer, CharSequence cs) throws IOException { if (null != cs && null != writer) { writer.write(cs.toString()); writer.flush(); } }
class class_name[name] begin[{] method[write, return_type[void], modifier[public static], parameter[writer, cs]] begin[{] if[binary_operation[binary_operation[literal[null], !=, member[.cs]], &&, binary_operation[literal[null], !=, member[.writer]]]] begin[{] call[writer...
Keyword[public] Keyword[static] Keyword[void] identifier[write] operator[SEP] identifier[Writer] identifier[writer] , identifier[CharSequence] identifier[cs] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] Other[null] operator[!=] identifier[cs] operator[&&] Other[null] operato...
protected void addContents(Character uc, List<? extends Doc> memberlist, Content contentTree) { addHeading(uc, contentTree); int memberListSize = memberlist.size(); // Display the list only if there are elements to be displayed. if (memberListSize > 0) { Content d...
class class_name[name] begin[{] method[addContents, return_type[void], modifier[protected], parameter[uc, memberlist, contentTree]] begin[{] call[.addHeading, parameter[member[.uc], member[.contentTree]]] local_variable[type[int], memberListSize] if[binary_operation[memb...
Keyword[protected] Keyword[void] identifier[addContents] operator[SEP] identifier[Character] identifier[uc] , identifier[List] operator[<] operator[?] Keyword[extends] identifier[Doc] operator[>] identifier[memberlist] , identifier[Content] identifier[contentTree] operator[SEP] { identifier[addHeading] operato...
@Override public void updateStoreDefinition(StoreDefinition storeDef) { this.storeDef = storeDef; if(storeDef.hasRetentionPeriod()) this.retentionTimeMs = storeDef.getRetentionDays() * Time.MS_PER_DAY; }
class class_name[name] begin[{] method[updateStoreDefinition, return_type[void], modifier[public], parameter[storeDef]] begin[{] assign[THIS[member[None.storeDef]], member[.storeDef]] if[call[storeDef.hasRetentionPeriod, parameter[]]] begin[{] assign[THIS[member[None...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[updateStoreDefinition] operator[SEP] identifier[StoreDefinition] identifier[storeDef] operator[SEP] { Keyword[this] operator[SEP] identifier[storeDef] operator[=] identifier[storeDef] operator[SEP] Keyword[if] operator[SEP] identifier[st...
public <S extends Storable> void register(Class<S> type, Cursor<S> cursor) { mLock.lock(); try { checkClosed(); if (mCursors == null) { mCursors = new IdentityHashMap<Class<?>, CursorList<TransactionImpl<Txn>>>(); } CursorList<Tran...
class class_name[name] begin[{] method[register, return_type[void], modifier[public], parameter[type, cursor]] begin[{] call[mLock.lock, parameter[]] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=checkClosed, postfix_operators=[], prefix_operat...
Keyword[public] operator[<] identifier[S] Keyword[extends] identifier[Storable] operator[>] Keyword[void] identifier[register] operator[SEP] identifier[Class] operator[<] identifier[S] operator[>] identifier[type] , identifier[Cursor] operator[<] identifier[S] operator[>] identifier[cursor] operator[SEP] { iden...
@Override public boolean contains(Object value) { final Iterator<Comparable> iter = new StepIterator(this, 1); if (value == null) { return false; } while (iter.hasNext()) { if (DefaultTypeTransformation.compareEqual(value, iter.next())) return true; } ...
class class_name[name] begin[{] method[contains, return_type[type[boolean]], modifier[public], parameter[value]] begin[{] local_variable[type[Iterator], iter] if[binary_operation[member[.value], ==, literal[null]]] begin[{] return[literal[false]] else begin[{] None ...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[contains] operator[SEP] identifier[Object] identifier[value] operator[SEP] { Keyword[final] identifier[Iterator] operator[<] identifier[Comparable] operator[>] identifier[iter] operator[=] Keyword[new] identifier[StepIterator] operato...
public void addPrimaryKeysIfSourced() { final List<Column> primaryKeyColumns = getTable().getPrimaryKeys(); if (primaryKeyColumns == null || primaryKeyColumns.isEmpty()) { logger.info("No primary keys defined for table {}, not pre-selecting primary keys", getTable().getName()); r...
class class_name[name] begin[{] method[addPrimaryKeysIfSourced, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[List], primaryKeyColumns] if[binary_operation[binary_operation[member[.primaryKeyColumns], ==, literal[null]], ||, call[primaryKeyColumns.isEmpt...
Keyword[public] Keyword[void] identifier[addPrimaryKeysIfSourced] operator[SEP] operator[SEP] { Keyword[final] identifier[List] operator[<] identifier[Column] operator[>] identifier[primaryKeyColumns] operator[=] identifier[getTable] operator[SEP] operator[SEP] operator[SEP] identifier[getPrimaryKeys] operator[S...
protected UniversalIdIntQueueMessage _takeWithRetries(Connection conn, int numRetries, int maxRetries) { try { UniversalIdIntQueueMessage msg = null; long ephemeralId = QueueUtils.IDGEN.generateId64(); int numRows = getJdbcHelper().execute(conn, SQL_UPDATE_EPHEMER...
class class_name[name] begin[{] method[_takeWithRetries, return_type[type[UniversalIdIntQueueMessage]], modifier[protected], parameter[conn, numRetries, maxRetries]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(...
Keyword[protected] identifier[UniversalIdIntQueueMessage] identifier[_takeWithRetries] operator[SEP] identifier[Connection] identifier[conn] , Keyword[int] identifier[numRetries] , Keyword[int] identifier[maxRetries] operator[SEP] { Keyword[try] { identifier[UniversalIdIntQueueMessage] identifier[ms...
public static void renameScope( Object oldScopeKey, Object newScopeKey, HttpServletRequest request ) { assert ! ( request instanceof ScopedRequest ); String requestAttr = getScopedName( OVERRIDE_REQUEST_ATTR, oldScopeKey ); String responseAttr = getScopedName( OVERRIDE_RESPONSE_ATTR...
class class_name[name] begin[{] method[renameScope, return_type[void], modifier[public static], parameter[oldScopeKey, newScopeKey, request]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=request, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]),...
Keyword[public] Keyword[static] Keyword[void] identifier[renameScope] operator[SEP] identifier[Object] identifier[oldScopeKey] , identifier[Object] identifier[newScopeKey] , identifier[HttpServletRequest] identifier[request] operator[SEP] { Keyword[assert] operator[!] operator[SEP] identifier[request] Keyword[...
public int prepare(Xid xid) throws XAException { if (!warned) { log.prepareCalledOnLocaltx(); } warned = true; return XAResource.XA_OK; }
class class_name[name] begin[{] method[prepare, return_type[type[int]], modifier[public], parameter[xid]] begin[{] if[member[.warned]] begin[{] call[log.prepareCalledOnLocaltx, parameter[]] else begin[{] None end[}] assign[member[.warned],...
Keyword[public] Keyword[int] identifier[prepare] operator[SEP] identifier[Xid] identifier[xid] operator[SEP] Keyword[throws] identifier[XAException] { Keyword[if] operator[SEP] operator[!] identifier[warned] operator[SEP] { identifier[log] operator[SEP] identifier[prepareCalledOnLocaltx] operator[SEP]...
public void marshall(UpdateResourceDefinitionRequest updateResourceDefinitionRequest, ProtocolMarshaller protocolMarshaller) { if (updateResourceDefinitionRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarsha...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[updateResourceDefinitionRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.updateResourceDefinitionRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCr...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UpdateResourceDefinitionRequest] identifier[updateResourceDefinitionRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[updateResourceDefinitionRequest] operator[...
void setPageNavLengthAsString(String pageNavLength) { if (CmsStringUtil.isEmpty(pageNavLength)) { return; } try { m_pageNavLength = Integer.parseInt(pageNavLength); } catch (NumberFormatException e) { // intentionally left blank } }
class class_name[name] begin[{] method[setPageNavLengthAsString, return_type[void], modifier[default], parameter[pageNavLength]] begin[{] if[call[CmsStringUtil.isEmpty, parameter[member[.pageNavLength]]]] begin[{] return[None] else begin[{] None end[}] TrySta...
Keyword[void] identifier[setPageNavLengthAsString] operator[SEP] identifier[String] identifier[pageNavLength] operator[SEP] { Keyword[if] operator[SEP] identifier[CmsStringUtil] operator[SEP] identifier[isEmpty] operator[SEP] identifier[pageNavLength] operator[SEP] operator[SEP] { Keyword[return] oper...
@DoesServiceRequest public void create(final long size) throws StorageException, URISyntaxException { this.create(size, null /* accessCondition */, null /* options */, null /* opContext */); }
class class_name[name] begin[{] method[create, return_type[void], modifier[public], parameter[size]] begin[{] THIS[call[None.create, parameter[member[.size], literal[null], literal[null], literal[null]]]] end[}] END[}]
annotation[@] identifier[DoesServiceRequest] Keyword[public] Keyword[void] identifier[create] operator[SEP] Keyword[final] Keyword[long] identifier[size] operator[SEP] Keyword[throws] identifier[StorageException] , identifier[URISyntaxException] { Keyword[this] operator[SEP] identifier[create] operator[SEP] ide...
public static void setViewFields(final Object object, final Activity activity) { setViewFields(object, new ViewFinder() { @Override public View findViewById(int viewId) { return activity.findViewById(viewId); } }); }
class class_name[name] begin[{] method[setViewFields, return_type[void], modifier[public static], parameter[object, activity]] begin[{] call[.setViewFields, parameter[member[.object], ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=...
Keyword[public] Keyword[static] Keyword[void] identifier[setViewFields] operator[SEP] Keyword[final] identifier[Object] identifier[object] , Keyword[final] identifier[Activity] identifier[activity] operator[SEP] { identifier[setViewFields] operator[SEP] identifier[object] , Keyword[new] identifier[ViewFinder] ...
public void sendDataPacket(String cmd, String nodeID, Context ctx, byte[] bytes, long sequence) { FastBuildTree msg = new FastBuildTree(7); // Add required properties (version, sender's nodeID, request ID) msg.putUnsafe("ver", PROTOCOL_VERSION); msg.putUnsafe("sender", this.nodeID); msg.putUnsafe("id",...
class class_name[name] begin[{] method[sendDataPacket, return_type[void], modifier[public], parameter[cmd, nodeID, ctx, bytes, sequence]] begin[{] local_variable[type[FastBuildTree], msg] call[msg.putUnsafe, parameter[literal["ver"], member[.PROTOCOL_VERSION]]] call[msg....
Keyword[public] Keyword[void] identifier[sendDataPacket] operator[SEP] identifier[String] identifier[cmd] , identifier[String] identifier[nodeID] , identifier[Context] identifier[ctx] , Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , Keyword[long] identifier[sequence] operator[SEP] { identifier...
private static void setSystemProperties() { // KernelBootstrap also sets these properties in case the bootstrap // agent wasn't used for some reason. String loggingManager = System.getProperty("java.util.logging.manager"); //if (loggingManager == null) // System.setProperty("...
class class_name[name] begin[{] method[setSystemProperties, return_type[void], modifier[private static], parameter[]] begin[{] local_variable[type[String], loggingManager] local_variable[type[String], managementBuilderInitial] if[binary_operation[member[.managementBuilderInitial...
Keyword[private] Keyword[static] Keyword[void] identifier[setSystemProperties] operator[SEP] operator[SEP] { identifier[String] identifier[loggingManager] operator[=] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[String] identifier[m...
public Instance filterInstance(Instance x) { if(dataset==null){ initialize(x); } double z_[] = new double[H+1]; int d = x.numAttributes() - 1; // suppose one class attribute (at the end) for(int k = 0; k < H; k++) { // for each hidden unit ... double a_k = 0.; // k-th activation (dot p...
class class_name[name] begin[{] method[filterInstance, return_type[type[Instance]], modifier[public], parameter[x]] begin[{] if[binary_operation[member[.dataset], ==, literal[null]]] begin[{] call[.initialize, parameter[member[.x]]] else begin[{] None end...
Keyword[public] identifier[Instance] identifier[filterInstance] operator[SEP] identifier[Instance] identifier[x] operator[SEP] { Keyword[if] operator[SEP] identifier[dataset] operator[==] Other[null] operator[SEP] { identifier[initialize] operator[SEP] identifier[x] operator[SEP] operator[SEP] ...
public void preInvoke( InterceptorContext context, InterceptorChain chain ) throws InterceptorException { preAction( ( ActionInterceptorContext ) context, chain ); }
class class_name[name] begin[{] method[preInvoke, return_type[void], modifier[public], parameter[context, chain]] begin[{] call[.preAction, parameter[Cast(expression=MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), type=ReferenceType(argument...
Keyword[public] Keyword[void] identifier[preInvoke] operator[SEP] identifier[InterceptorContext] identifier[context] , identifier[InterceptorChain] identifier[chain] operator[SEP] Keyword[throws] identifier[InterceptorException] { identifier[preAction] operator[SEP] operator[SEP] identifier[ActionInterceptorCon...
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "projectedCRSRef") public JAXBElement<ProjectedCRSRefType> createProjectedCRSRef(ProjectedCRSRefType value) { return new JAXBElement<ProjectedCRSRefType>(_ProjectedCRSRef_QNAME, ProjectedCRSRefType.class, null, value); }
class class_name[name] begin[{] method[createProjectedCRSRef, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_ProjectedCRSRef_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(p...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[ProjectedCRSRefType] operator[>] identifier[createProjectedCRSRef] operator[SEP] identifie...
public Routed<T> route(String path) { final String[] tokens = Pattern.removeSlashAtBothEnds(path).split("/"); final Map<String, String> params = new HashMap<String, String>(); boolean matched = true; for (final Pattern<T> pattern : patterns) { final String[] currTok...
class class_name[name] begin[{] method[route, return_type[type[Routed]], modifier[public], parameter[path]] begin[{] local_variable[type[String], tokens] local_variable[type[Map], params] local_variable[type[boolean], matched] ForStatement(body=BlockStatement(label=None, stateme...
Keyword[public] identifier[Routed] operator[<] identifier[T] operator[>] identifier[route] operator[SEP] identifier[String] identifier[path] operator[SEP] { Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[tokens] operator[=] identifier[Pattern] operator[SEP] identifier[removeSlashAtBothE...
public static Object getMappedProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, Exception { if(bean == null) throw new IllegalArgumentException("No bean specified"); if(name == null) throw new Ill...
class class_name[name] begin[{] method[getMappedProperty, return_type[type[Object]], modifier[public static], parameter[bean, name]] begin[{] if[binary_operation[member[.bean], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_op...
Keyword[public] Keyword[static] identifier[Object] identifier[getMappedProperty] operator[SEP] identifier[Object] identifier[bean] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[IllegalAccessException] , identifier[InvocationTargetException] , identifier[NoSuchMethodException] , iden...
private ExtractResult extractHtmlTemplate(String url, HtmlTemplate htmlTemplate, Document doc) { //一个页面模板对应一个抽取结果 ExtractResult extractResult = new ExtractResult(); extractResult.setUrl(url); extractResult.setTableName(htmlTemplate.getTableName()); List<CssPath> cssPaths = htmlTe...
class class_name[name] begin[{] method[extractHtmlTemplate, return_type[type[ExtractResult]], modifier[private], parameter[url, htmlTemplate, doc]] begin[{] local_variable[type[ExtractResult], extractResult] call[extractResult.setUrl, parameter[member[.url]]] call[extrac...
Keyword[private] identifier[ExtractResult] identifier[extractHtmlTemplate] operator[SEP] identifier[String] identifier[url] , identifier[HtmlTemplate] identifier[htmlTemplate] , identifier[Document] identifier[doc] operator[SEP] { identifier[ExtractResult] identifier[extractResult] operator[=] Keyword[new] ide...
public static Integer imports(Configurer configurer) { Check.notNull(configurer); if (configurer.hasNode(NODE_GROUP)) { final String group = configurer.getText(NODE_GROUP); try { return Integer.valueOf(group); } ...
class class_name[name] begin[{] method[imports, return_type[type[Integer]], modifier[public static], parameter[configurer]] begin[{] call[Check.notNull, parameter[member[.configurer]]] if[call[configurer.hasNode, parameter[member[.NODE_GROUP]]]] begin[{] local_variab...
Keyword[public] Keyword[static] identifier[Integer] identifier[imports] operator[SEP] identifier[Configurer] identifier[configurer] operator[SEP] { identifier[Check] operator[SEP] identifier[notNull] operator[SEP] identifier[configurer] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[configurer]...
public void error( Object messagePattern, Object arg ) { if( m_delegate.isErrorEnabled() ) { String msgStr = (String) messagePattern; msgStr = MessageFormatter.format( msgStr, arg ); m_delegate.error( msgStr, null ); } }
class class_name[name] begin[{] method[error, return_type[void], modifier[public], parameter[messagePattern, arg]] begin[{] if[call[m_delegate.isErrorEnabled, parameter[]]] begin[{] local_variable[type[String], msgStr] assign[member[.msgStr], call[MessageForm...
Keyword[public] Keyword[void] identifier[error] operator[SEP] identifier[Object] identifier[messagePattern] , identifier[Object] identifier[arg] operator[SEP] { Keyword[if] operator[SEP] identifier[m_delegate] operator[SEP] identifier[isErrorEnabled] operator[SEP] operator[SEP] operator[SEP] { identi...
JavaURLContext createJavaURLContext(Hashtable<?, ?> envmt, Name name) { return new JavaURLContext(envmt, helperServices, name); }
class class_name[name] begin[{] method[createJavaURLContext, return_type[type[JavaURLContext]], modifier[default], parameter[envmt, name]] begin[{] return[ClassCreator(arguments=[MemberReference(member=envmt, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=h...
identifier[JavaURLContext] identifier[createJavaURLContext] operator[SEP] identifier[Hashtable] operator[<] operator[?] , operator[?] operator[>] identifier[envmt] , identifier[Name] identifier[name] operator[SEP] { Keyword[return] Keyword[new] identifier[JavaURLContext] operator[SEP] identifier[envmt] , iden...
private static void establecerDireccionIP(final String direccion) { String aux = new String(); String ip = new String(); for (int i=0; i<direccion.length(); i++) { if (direccion.charAt(i) != '.') { aux = aux.concat(String.valueOf(direccion.charAt(i))); ...
class class_name[name] begin[{] method[establecerDireccionIP, return_type[void], modifier[private static], parameter[direccion]] begin[{] local_variable[type[String], aux] local_variable[type[String], ip] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=Bin...
Keyword[private] Keyword[static] Keyword[void] identifier[establecerDireccionIP] operator[SEP] Keyword[final] identifier[String] identifier[direccion] operator[SEP] { identifier[String] identifier[aux] operator[=] Keyword[new] identifier[String] operator[SEP] operator[SEP] operator[SEP] identifier[String] identi...
public GetIndividualProfilesRequest withMICR(final String routingNumber, final String accountNumber) { this.routingNumber = routingNumber; this.accountNumber = accountNumber; return this; }
class class_name[name] begin[{] method[withMICR, return_type[type[GetIndividualProfilesRequest]], modifier[public], parameter[routingNumber, accountNumber]] begin[{] assign[THIS[member[None.routingNumber]], member[.routingNumber]] assign[THIS[member[None.accountNumber]], member[...
Keyword[public] identifier[GetIndividualProfilesRequest] identifier[withMICR] operator[SEP] Keyword[final] identifier[String] identifier[routingNumber] , Keyword[final] identifier[String] identifier[accountNumber] operator[SEP] { Keyword[this] operator[SEP] identifier[routingNumber] operator[=] identifier[routi...
@Override public EClass getIfcProductSelect() { if (ifcProductSelectEClass == null) { ifcProductSelectEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI) .getEClassifiers().get(1151); } return ifcProductSelectEClass; }
class class_name[name] begin[{] method[getIfcProductSelect, return_type[type[EClass]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.ifcProductSelectEClass], ==, literal[null]]] begin[{] assign[member[.ifcProductSelectEClass], Cast(expression=Method...
annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcProductSelect] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[ifcProductSelectEClass] operator[==] Other[null] operator[SEP] { identifier[ifcProductSelectEClass] operator[=] operator[SEP] identif...
public static List<GeneName> getGeneNames(InputStream inStream) throws IOException{ ArrayList<GeneName> geneNames = new ArrayList<GeneName>(); BufferedReader reader = new BufferedReader(new InputStreamReader(inStream)); // skip reading first line (it is the legend) String line = reader.readLine(); while ((...
class class_name[name] begin[{] method[getGeneNames, return_type[type[List]], modifier[public static], parameter[inStream]] begin[{] local_variable[type[ArrayList], geneNames] local_variable[type[BufferedReader], reader] local_variable[type[String], line] while[binary_op...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[GeneName] operator[>] identifier[getGeneNames] operator[SEP] identifier[InputStream] identifier[inStream] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ArrayList] operator[<] identifier[GeneName] operator[>] identifier[g...
public static GetStatusPOptions toGetStatusOptions(ExistsPOptions existsOptions) { GetStatusPOptions.Builder getStatusOptionsBuilder = GetStatusPOptions.newBuilder(); if (existsOptions.hasCommonOptions()) { getStatusOptionsBuilder.setCommonOptions(existsOptions.getCommonOptions()); } if (existsOpt...
class class_name[name] begin[{] method[toGetStatusOptions, return_type[type[GetStatusPOptions]], modifier[public static], parameter[existsOptions]] begin[{] local_variable[type[GetStatusPOptions], getStatusOptionsBuilder] if[call[existsOptions.hasCommonOptions, parameter[]]] begin[{] ...
Keyword[public] Keyword[static] identifier[GetStatusPOptions] identifier[toGetStatusOptions] operator[SEP] identifier[ExistsPOptions] identifier[existsOptions] operator[SEP] { identifier[GetStatusPOptions] operator[SEP] identifier[Builder] identifier[getStatusOptionsBuilder] operator[=] identifier[GetStatusPOpti...
private int ssMedian3(int Td, int PA, int v1, int v2, int v3) { if (T[start + Td + SA[PA + SA[v1]]] > T[start + Td + SA[PA + SA[v2]]]) { int t = v1; v1 = v2; v2 = t; } if (T[start + Td + SA[PA + SA[v2]]] > T[start + Td + SA[PA + SA[v3]]]) { if (T[s...
class class_name[name] begin[{] method[ssMedian3, return_type[type[int]], modifier[private], parameter[Td, PA, v1, v2, v3]] begin[{] if[binary_operation[member[.T], >, member[.T]]] begin[{] local_variable[type[int], t] assign[member[.v1], member[.v2]] ...
Keyword[private] Keyword[int] identifier[ssMedian3] operator[SEP] Keyword[int] identifier[Td] , Keyword[int] identifier[PA] , Keyword[int] identifier[v1] , Keyword[int] identifier[v2] , Keyword[int] identifier[v3] operator[SEP] { Keyword[if] operator[SEP] identifier[T] operator[SEP] identifier[start] operato...
protected void transformUsername(final UsernamePasswordCredential userPass) throws AccountNotFoundException { if (StringUtils.isBlank(userPass.getUsername())) { throw new AccountNotFoundException("Username is null."); } LOGGER.debug("Transforming credential username via [{}]", this.p...
class class_name[name] begin[{] method[transformUsername, return_type[void], modifier[protected], parameter[userPass]] begin[{] if[call[StringUtils.isBlank, parameter[call[userPass.getUsername, parameter[]]]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfi...
Keyword[protected] Keyword[void] identifier[transformUsername] operator[SEP] Keyword[final] identifier[UsernamePasswordCredential] identifier[userPass] operator[SEP] Keyword[throws] identifier[AccountNotFoundException] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isBlank] operator...
@Override public CalendarDateRange makeCalendarDateRange(ucar.nc2.time.Calendar cal) { CalendarDateUnit cdu = CalendarDateUnit.of(cal, timeUnit.getField(), refDate); CalendarDate start = cdu.makeCalendarDate( timeUnit.getValue() * timeIntervals.get(0).getBounds2()); CalendarDate end = cdu.makeCalendarDate...
class class_name[name] begin[{] method[makeCalendarDateRange, return_type[type[CalendarDateRange]], modifier[public], parameter[cal]] begin[{] local_variable[type[CalendarDateUnit], cdu] local_variable[type[CalendarDate], start] local_variable[type[CalendarDate], end] return[cal...
annotation[@] identifier[Override] Keyword[public] identifier[CalendarDateRange] identifier[makeCalendarDateRange] operator[SEP] identifier[ucar] operator[SEP] identifier[nc2] operator[SEP] identifier[time] operator[SEP] identifier[Calendar] identifier[cal] operator[SEP] { identifier[CalendarDateUnit] identifier...
public static csvserver_copolicy_binding[] get(nitro_service service, String name) throws Exception{ csvserver_copolicy_binding obj = new csvserver_copolicy_binding(); obj.set_name(name); csvserver_copolicy_binding response[] = (csvserver_copolicy_binding[]) obj.get_resources(service); return response; }
class class_name[name] begin[{] method[get, return_type[type[csvserver_copolicy_binding]], modifier[public static], parameter[service, name]] begin[{] local_variable[type[csvserver_copolicy_binding], obj] call[obj.set_name, parameter[member[.name]]] local_variable[type[csvserver...
Keyword[public] Keyword[static] identifier[csvserver_copolicy_binding] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Exception] { identifier[csvserver_copolicy_binding] identi...
protected XmlPullParser loadXml(String source) throws UnsupportedEncodingException, XmlPullParserException, IOException { return loadXml(new ByteArrayInputStream(source.getBytes("UTF-8"))); }
class class_name[name] begin[{] method[loadXml, return_type[type[XmlPullParser]], modifier[protected], parameter[source]] begin[{] return[call[.loadXml, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="...
Keyword[protected] identifier[XmlPullParser] identifier[loadXml] operator[SEP] identifier[String] identifier[source] operator[SEP] Keyword[throws] identifier[UnsupportedEncodingException] , identifier[XmlPullParserException] , identifier[IOException] { Keyword[return] identifier[loadXml] operator[SEP] Keyword[...