code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static void setBadHostsAndRacks(Set<String> racks, Set<String> hosts) { badRacks = racks; badHosts = hosts; }
class class_name[name] begin[{] method[setBadHostsAndRacks, return_type[void], modifier[public static], parameter[racks, hosts]] begin[{] assign[member[.badRacks], member[.racks]] assign[member[.badHosts], member[.hosts]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[setBadHostsAndRacks] operator[SEP] identifier[Set] operator[<] identifier[String] operator[>] identifier[racks] , identifier[Set] operator[<] identifier[String] operator[>] identifier[hosts] operator[SEP] { identifier[badRacks] operator[=] identifier[rack...
public static final boolean isFolderType(int typeId) { try { return OpenCms.getResourceManager().getResourceType(typeId).isFolder(); } catch (CmsLoaderException e) { if (LOG.isWarnEnabled()) { LOG.warn(Messages.get().getBundle().key(Messages.ERR_UNKNOWN_RESOURCE_...
class class_name[name] begin[{] method[isFolderType, return_type[type[boolean]], modifier[final public static], parameter[typeId]] begin[{] TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[], member=getResourceManager, postfix_operators=[], prefix_operators=[], qualifier=OpenC...
Keyword[public] Keyword[static] Keyword[final] Keyword[boolean] identifier[isFolderType] operator[SEP] Keyword[int] identifier[typeId] operator[SEP] { Keyword[try] { Keyword[return] identifier[OpenCms] operator[SEP] identifier[getResourceManager] operator[SEP] operator[SEP] operator[SEP] identifier[ge...
protected void findCreds() { if (System.getProperty(ACCESS_KEY) != null && System.getProperty(ACCESS_SECRET) != null) { accessKey = System.getProperty(ACCESS_KEY); secretKey = System.getProperty(ACCESS_SECRET); } else if (System.getenv(AWS_ACCESS_KEY) != null && System.g...
class class_name[name] begin[{] method[findCreds, return_type[void], modifier[protected], parameter[]] begin[{] if[binary_operation[binary_operation[call[System.getProperty, parameter[member[.ACCESS_KEY]]], !=, literal[null]], &&, binary_operation[call[System.getProperty, parameter[member[.ACCE...
Keyword[protected] Keyword[void] identifier[findCreds] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[System] operator[SEP] identifier[getProperty] operator[SEP] identifier[ACCESS_KEY] operator[SEP] operator[!=] Other[null] operator[&&] identifier[System] operator[SEP] identifier[getProperty]...
public static String doDelete(String host, String path, Map<String, String> headers, Map<String, String> queries, Map<String, String> body) throws Exception { return EntityUtils.toString(doDeleteResponse(host, ...
class class_name[name] begin[{] method[doDelete, return_type[type[String]], modifier[public static], parameter[host, path, headers, queries, body]] begin[{] return[call[EntityUtils.toString, parameter[call[.doDeleteResponse, parameter[member[.host], member[.path], member[.headers], member[.queries], ca...
Keyword[public] Keyword[static] identifier[String] identifier[doDelete] operator[SEP] identifier[String] identifier[host] , identifier[String] identifier[path] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[headers] , identifier[Map] operator[<] identifier[String] , id...
public void update(long aStarted, long aDaemon, long aCurrent){ current.setValueAsLong(aCurrent); started.setValueAsLong(aStarted); daemon.setValueAsLong(aDaemon); minCurrent.setValueIfLesserThanCurrentAsLong(aCurrent); maxCurrent.setValueIfGreaterThanCurrentAsLong(aCurrent); }
class class_name[name] begin[{] method[update, return_type[void], modifier[public], parameter[aStarted, aDaemon, aCurrent]] begin[{] call[current.setValueAsLong, parameter[member[.aCurrent]]] call[started.setValueAsLong, parameter[member[.aStarted]]] call[daemon....
Keyword[public] Keyword[void] identifier[update] operator[SEP] Keyword[long] identifier[aStarted] , Keyword[long] identifier[aDaemon] , Keyword[long] identifier[aCurrent] operator[SEP] { identifier[current] operator[SEP] identifier[setValueAsLong] operator[SEP] identifier[aCurrent] operator[SEP] operator[SEP] ...
static DataSetDto toDataSetDto(final IDataSet dataSet) { List<List<Object>> table = new ArrayList<>(dataSet.rowCount()); for (IDsRow r : dataSet) { List<Object> row = new ArrayList<>(r.cellCount()); for (IDsCell c : r) { row.add(c.getValue()....
class class_name[name] begin[{] method[toDataSetDto, return_type[type[DataSetDto]], modifier[static], parameter[dataSet]] begin[{] local_variable[type[List], table] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(...
Keyword[static] identifier[DataSetDto] identifier[toDataSetDto] operator[SEP] Keyword[final] identifier[IDataSet] identifier[dataSet] operator[SEP] { identifier[List] operator[<] identifier[List] operator[<] identifier[Object] operator[>] operator[>] identifier[table] operator[=] Keyword[new] identifier[ArrayLis...
public static DatasourceDependencyBuilder kafkaDependency(final List<Datasource> datasources) { return new DatasourceDependencyBuilder() .withDatasources(datasources) .withType(DatasourceDependency.TYPE_QUEUE) .withSubtype(DatasourceDependency.SUBTYPE_KAFKA); ...
class class_name[name] begin[{] method[kafkaDependency, return_type[type[DatasourceDependencyBuilder]], modifier[public static], parameter[datasources]] begin[{] return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, sele...
Keyword[public] Keyword[static] identifier[DatasourceDependencyBuilder] identifier[kafkaDependency] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[Datasource] operator[>] identifier[datasources] operator[SEP] { Keyword[return] Keyword[new] identifier[DatasourceDependencyBuilder] operator[SE...
public Pipeline<T> set(int index, Function<T, T> function) { return set(index, function.getClass().getName(), function); }
class class_name[name] begin[{] method[set, return_type[type[Pipeline]], modifier[public], parameter[index, function]] begin[{] return[call[.set, parameter[member[.index], call[function.getClass, parameter[]], member[.function]]]] end[}] END[}]
Keyword[public] identifier[Pipeline] operator[<] identifier[T] operator[>] identifier[set] operator[SEP] Keyword[int] identifier[index] , identifier[Function] operator[<] identifier[T] , identifier[T] operator[>] identifier[function] operator[SEP] { Keyword[return] identifier[set] operator[SEP] identifier[inde...
public static void setIconImage(final String resourceName, final Window window) throws IOException { final InputStream isLogo = ClassExtensions.getResourceAsStream(resourceName); final BufferedImage biLogo = ImageIO.read(isLogo); window.setIconImage(biLogo); }
class class_name[name] begin[{] method[setIconImage, return_type[void], modifier[public static], parameter[resourceName, window]] begin[{] local_variable[type[InputStream], isLogo] local_variable[type[BufferedImage], biLogo] call[window.setIconImage, parameter[member[.biLogo]]] ...
Keyword[public] Keyword[static] Keyword[void] identifier[setIconImage] operator[SEP] Keyword[final] identifier[String] identifier[resourceName] , Keyword[final] identifier[Window] identifier[window] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] identifier[InputStream] identifier[isLogo]...
public List<String> getMatchingRecordFields(String namespaceRegex, String scopeRegex, String metricRegex, String tagKeyRegex, String tagValueRegex, FieldSelector type, int limit) throws IOException, TokenExpiredException { StringBuilder urlBuilder = _buildBaseUrl(namespaceRegex, scopeRegex, metricRegex,...
class class_name[name] begin[{] method[getMatchingRecordFields, return_type[type[List]], modifier[public], parameter[namespaceRegex, scopeRegex, metricRegex, tagKeyRegex, tagValueRegex, type, limit]] begin[{] local_variable[type[StringBuilder], urlBuilder] call[urlBuilder.append, parame...
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getMatchingRecordFields] operator[SEP] identifier[String] identifier[namespaceRegex] , identifier[String] identifier[scopeRegex] , identifier[String] identifier[metricRegex] , identifier[String] identifier[tagKeyRegex] , identifi...
public QueryPersistor augment(DomainObjectMatch<?> domainObjectMatch, String as) { if (this.augmentations == null) this.augmentations = new HashMap<DomainObjectMatch<?>, String>(); this.augmentations.put(domainObjectMatch, as); return this; }
class class_name[name] begin[{] method[augment, return_type[type[QueryPersistor]], modifier[public], parameter[domainObjectMatch, as]] begin[{] if[binary_operation[THIS[member[None.augmentations]], ==, literal[null]]] begin[{] assign[THIS[member[None.augmentations]], ClassCreator(ar...
Keyword[public] identifier[QueryPersistor] identifier[augment] operator[SEP] identifier[DomainObjectMatch] operator[<] operator[?] operator[>] identifier[domainObjectMatch] , identifier[String] identifier[as] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[augmentations] operato...
private String getTokenOrBlank(final List<String> tokens, final int reverseIndex) { final int length = tokens.size(); final int index = length - reverseIndex - 1; if (index >= 0 && length > 0 && index < length) { return tokens.get(index); } return ""; }
class class_name[name] begin[{] method[getTokenOrBlank, return_type[type[String]], modifier[private], parameter[tokens, reverseIndex]] begin[{] local_variable[type[int], length] local_variable[type[int], index] if[binary_operation[binary_operation[binary_operation[member[.index]...
Keyword[private] identifier[String] identifier[getTokenOrBlank] operator[SEP] Keyword[final] identifier[List] operator[<] identifier[String] operator[>] identifier[tokens] , Keyword[final] Keyword[int] identifier[reverseIndex] operator[SEP] { Keyword[final] Keyword[int] identifier[length] operator[=] identifier...
protected static String getStringPropertyFromProperties( Properties propertiesParam, String propertyKeyParam ) { if(propertiesParam == null || propertiesParam.isEmpty()) { return null; } return propertiesParam.getProperty(propertyKeyParam); }
class class_name[name] begin[{] method[getStringPropertyFromProperties, return_type[type[String]], modifier[static protected], parameter[propertiesParam, propertyKeyParam]] begin[{] if[binary_operation[binary_operation[member[.propertiesParam], ==, literal[null]], ||, call[propertiesParam.isEmp...
Keyword[protected] Keyword[static] identifier[String] identifier[getStringPropertyFromProperties] operator[SEP] identifier[Properties] identifier[propertiesParam] , identifier[String] identifier[propertyKeyParam] operator[SEP] { Keyword[if] operator[SEP] identifier[propertiesParam] operator[==] Other[null] oper...
protected void addPackageTreeLinks(Content contentTree) { //Do nothing if only unnamed package is used if (isUnnamedPackage()) { return; } if (!classesOnly) { Content span = HtmlTree.SPAN(HtmlStyle.packageHierarchyLabel, contents.packageHierarc...
class class_name[name] begin[{] method[addPackageTreeLinks, return_type[void], modifier[protected], parameter[contentTree]] begin[{] if[call[.isUnnamedPackage, parameter[]]] begin[{] return[None] else begin[{] None end[}] if[member[.classesOnly]] begi...
Keyword[protected] Keyword[void] identifier[addPackageTreeLinks] operator[SEP] identifier[Content] identifier[contentTree] operator[SEP] { Keyword[if] operator[SEP] identifier[isUnnamedPackage] operator[SEP] operator[SEP] operator[SEP] { Keyword[return] operator[SEP] } Keyword[if] operat...
public static void fill(Object entity) { final Class<?> entityClass = entity.getClass(); if (N.isEntity(entityClass) == false) { throw new IllegalArgumentException(entityClass.getCanonicalName() + " is not a valid entity class with property getter/setter method"); } ...
class class_name[name] begin[{] method[fill, return_type[void], modifier[public static], parameter[entity]] begin[{] local_variable[type[Class], entityClass] if[binary_operation[call[N.isEntity, parameter[member[.entityClass]]], ==, literal[false]]] begin[{] ThrowStatement(e...
Keyword[public] Keyword[static] Keyword[void] identifier[fill] operator[SEP] identifier[Object] identifier[entity] operator[SEP] { Keyword[final] identifier[Class] operator[<] operator[?] operator[>] identifier[entityClass] operator[=] identifier[entity] operator[SEP] identifier[getClass] operator[SEP] operator[...
@SuppressWarnings("unchecked") public Class<? extends T> defineClass() { if (generatedClass == null) { synchronized (this) { if (generatedClass == null) { try { // first check that the proxy has not already been created ...
class class_name[name] begin[{] method[defineClass, return_type[type[Class]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.generatedClass], ==, literal[null]]] begin[{] SYNCHRONIZED[THIS[]] BEGIN[{] if[binary_operati...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[defineClass] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[generatedClass] operator[==] Other...
public static JavaRDD<String> listPaths(JavaSparkContext sc, String path, boolean recursive, Set<String> allowedExtensions) throws IOException { return listPaths(sc, path, recursive, allowedExtensions, sc.hadoopConfiguration()); }
class class_name[name] begin[{] method[listPaths, return_type[type[JavaRDD]], modifier[public static], parameter[sc, path, recursive, allowedExtensions]] begin[{] return[call[.listPaths, parameter[member[.sc], member[.path], member[.recursive], member[.allowedExtensions], call[sc.hadoopConfiguration, p...
Keyword[public] Keyword[static] identifier[JavaRDD] operator[<] identifier[String] operator[>] identifier[listPaths] operator[SEP] identifier[JavaSparkContext] identifier[sc] , identifier[String] identifier[path] , Keyword[boolean] identifier[recursive] , identifier[Set] operator[<] identifier[String] operator[>] id...
public CalendarDays plus(CalendarDays other) { return CalendarDays.of(Math.addExact(this.days, other.days)); }
class class_name[name] begin[{] method[plus, return_type[type[CalendarDays]], modifier[public], parameter[other]] begin[{] return[call[CalendarDays.of, parameter[call[Math.addExact, parameter[THIS[member[None.days]], member[other.days]]]]]] end[}] END[}]
Keyword[public] identifier[CalendarDays] identifier[plus] operator[SEP] identifier[CalendarDays] identifier[other] operator[SEP] { Keyword[return] identifier[CalendarDays] operator[SEP] identifier[of] operator[SEP] identifier[Math] operator[SEP] identifier[addExact] operator[SEP] Keyword[this] operator[SEP] iden...
@SneakyThrows protected String generateToken(final Service service, final Map<String, String> parameters) { val ticketId = parameters.get(CasProtocolConstants.PARAMETER_TICKET); return this.tokenTicketBuilder.build(ticketId, service); }
class class_name[name] begin[{] method[generateToken, return_type[type[String]], modifier[protected], parameter[service, parameters]] begin[{] local_variable[type[val], ticketId] return[THIS[member[None.tokenTicketBuilder]call[None.build, parameter[member[.ticketId], member[.service]]]]] en...
annotation[@] identifier[SneakyThrows] Keyword[protected] identifier[String] identifier[generateToken] operator[SEP] Keyword[final] identifier[Service] identifier[service] , Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[parameters] operator[SEP] { ide...
public static double[] add(double[] array, double element) { double[] newArray = (double[])copyArrayGrow1(array, Double.TYPE); newArray[newArray.length - 1] = element; return newArray; }
class class_name[name] begin[{] method[add, return_type[type[double]], modifier[public static], parameter[array, element]] begin[{] local_variable[type[double], newArray] assign[member[.newArray], member[.element]] return[member[.newArray]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[double] operator[SEP] operator[SEP] identifier[add] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[array] , Keyword[double] identifier[element] operator[SEP] { Keyword[double] operator[SEP] operator[SEP] identifier[newArray] operator[=] operator[SEP]...
private void showErrorText(@Nullable final CharSequence errorText) { if (textInputLayout != null) { if (TextUtils.isEmpty(errorText)) { textInputLayout.setError(null); textInputLayout.setErrorEnabled(false); adaptHelperTextColor(); } else {...
class class_name[name] begin[{] method[showErrorText, return_type[void], modifier[private], parameter[errorText]] begin[{] if[binary_operation[member[.textInputLayout], !=, literal[null]]] begin[{] if[call[TextUtils.isEmpty, parameter[member[.errorText]]]] begin[{] ...
Keyword[private] Keyword[void] identifier[showErrorText] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[CharSequence] identifier[errorText] operator[SEP] { Keyword[if] operator[SEP] identifier[textInputLayout] operator[!=] Other[null] operator[SEP] { Keyword[if] operator[SE...
public static String propToColumn(String propName) { char[] arr = propName.toCharArray(); for(int i = 0; i < arr.length; i++) { if(Character.isUpperCase(arr[i])) { String s1 = propName.substring(0, i); String s = "_" + Character.toLowerCase(arr[i]); String s2 = propName.substring(i+1); return pro...
class class_name[name] begin[{] method[propToColumn, return_type[type[String]], modifier[public static], parameter[propName]] begin[{] local_variable[type[char], arr] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(membe...
Keyword[public] Keyword[static] identifier[String] identifier[propToColumn] operator[SEP] identifier[String] identifier[propName] operator[SEP] { Keyword[char] operator[SEP] operator[SEP] identifier[arr] operator[=] identifier[propName] operator[SEP] identifier[toCharArray] operator[SEP] operator[SEP] operator[S...
protected static double computeH(final int i, double[] dist_i, double[] pij_i, double mbeta) { double sumP = 0.; // Skip point "i", break loop in two: for(int j = 0; j < i; j++) { sumP += (pij_i[j] = FastMath.exp(dist_i[j] * mbeta)); } for(int j = i + 1; j < dist_i.length; j++) { sumP +=...
class class_name[name] begin[{] method[computeH, return_type[type[double]], modifier[static protected], parameter[i, dist_i, pij_i, mbeta]] begin[{] local_variable[type[double], sumP] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=...
Keyword[protected] Keyword[static] Keyword[double] identifier[computeH] operator[SEP] Keyword[final] Keyword[int] identifier[i] , Keyword[double] operator[SEP] operator[SEP] identifier[dist_i] , Keyword[double] operator[SEP] operator[SEP] identifier[pij_i] , Keyword[double] identifier[mbeta] operator[SEP] { K...
public static List<Class> resolveHierarchy(Class<?> type) { Class<?> superclass = type.getSuperclass(); List<Class> hierarchy = new ArrayList<>(); if (superclass != null) { populateHierarchyInterfaces(type, hierarchy); while (superclass != Object.class) { ...
class class_name[name] begin[{] method[resolveHierarchy, return_type[type[List]], modifier[public static], parameter[type]] begin[{] local_variable[type[Class], superclass] local_variable[type[List], hierarchy] if[binary_operation[member[.superclass], !=, literal[null]]] begin[{...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Class] operator[>] identifier[resolveHierarchy] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[type] operator[SEP] { identifier[Class] operator[<] operator[?] operator[>] identifier[superclass] operator[=] ide...
private static ImageDescriptor createUnManagedCached(String prefix, String name) { return new CachedImageDescriptor(create(prefix, name, true)); }
class class_name[name] begin[{] method[createUnManagedCached, return_type[type[ImageDescriptor]], modifier[private static], parameter[prefix, name]] begin[{] return[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=prefix, postfix_operators=[], prefix_operators=[], qualifier=, ...
Keyword[private] Keyword[static] identifier[ImageDescriptor] identifier[createUnManagedCached] operator[SEP] identifier[String] identifier[prefix] , identifier[String] identifier[name] operator[SEP] { Keyword[return] Keyword[new] identifier[CachedImageDescriptor] operator[SEP] identifier[create] operator[SEP] i...
@Override public void encodeBegin(FacesContext context) throws IOException { // Initialize attributes String src = (String) getAttributes().get("src"); // src is mandatory if (null == src) throw new IllegalStateException("The src attribute is mandatory for the Jawr image path tag. "); HttpServletReques...
class class_name[name] begin[{] method[encodeBegin, return_type[void], modifier[public], parameter[context]] begin[{] local_variable[type[String], src] if[binary_operation[literal[null], ==, member[.src]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operat...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[encodeBegin] operator[SEP] identifier[FacesContext] identifier[context] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[src] operator[=] operator[SEP] identifier[String] operator[SEP] identifier[getA...
public float[] DM_RPKG(int isword, int nword, int decimalScale) throws IOException { // from DM_RPKG // read the data packing type float[] data; int ipktyp = DM_RINT(isword); int iiword = isword + 1; int lendat = nword - 1; if (ipktyp == MDGNON) { // no packing data = new fl...
class class_name[name] begin[{] method[DM_RPKG, return_type[type[float]], modifier[public], parameter[isword, nword, decimalScale]] begin[{] local_variable[type[float], data] local_variable[type[int], ipktyp] local_variable[type[int], iiword] local_variable[type[int], lendat] ...
Keyword[public] Keyword[float] operator[SEP] operator[SEP] identifier[DM_RPKG] operator[SEP] Keyword[int] identifier[isword] , Keyword[int] identifier[nword] , Keyword[int] identifier[decimalScale] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[float] operator[SEP] operator[SEP] identifier[dat...
public static <T> Set<T> minus(Set<T> self, Object removeMe) { Comparator comparator = (self instanceof SortedSet) ? ((SortedSet) self).comparator() : null; final Set<T> ansSet = createSimilarSet(self); for (T t : self) { boolean areEqual = (comparator != null)? (comparator.compare(t...
class class_name[name] begin[{] method[minus, return_type[type[Set]], modifier[public static], parameter[self, removeMe]] begin[{] local_variable[type[Comparator], comparator] local_variable[type[Set], ansSet] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclara...
Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Set] operator[<] identifier[T] operator[>] identifier[minus] operator[SEP] identifier[Set] operator[<] identifier[T] operator[>] identifier[self] , identifier[Object] identifier[removeMe] operator[SEP] { identifier[Comparator] iden...
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); byte[] tempEyeCatcher = new byte[Constants.EYE_CATCHER_LENGTH]; //d164415start int bytesRead = 0; for (int offset = 0; offset < Constants.EYE_CATCHER_L...
class class_name[name] begin[{] method[readObject, return_type[void], modifier[private], parameter[in]] begin[{] call[in.defaultReadObject, parameter[]] local_variable[type[byte], tempEyeCatcher] local_variable[type[int], bytesRead] ForStatement(body=BlockStatement(label...
Keyword[private] Keyword[void] identifier[readObject] operator[SEP] identifier[java] operator[SEP] identifier[io] operator[SEP] identifier[ObjectInputStream] identifier[in] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] { identifier[in] operator[SEP] identifier[defaul...
@Override public void visitSelect(JCFieldAccess tree) { if (context == null || !analyzer.lambdaFieldAccessFilter(tree)) { super.visitSelect(tree); } else { int prevPos = make.pos; try { make.at(tree); LambdaTranslationContext lambd...
class class_name[name] begin[{] method[visitSelect, return_type[void], modifier[public], parameter[tree]] begin[{] if[binary_operation[binary_operation[member[.context], ==, literal[null]], ||, call[analyzer.lambdaFieldAccessFilter, parameter[member[.tree]]]]] begin[{] S...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[visitSelect] operator[SEP] identifier[JCFieldAccess] identifier[tree] operator[SEP] { Keyword[if] operator[SEP] identifier[context] operator[==] Other[null] operator[||] operator[!] identifier[analyzer] operator[SEP] identifier[lambdaFie...
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'") @JsonProperty("last_login") public Date getLastLogin() { return lastLogin; }
class class_name[name] begin[{] method[getLastLogin, return_type[type[Date]], modifier[public], parameter[]] begin[{] return[member[.lastLogin]] end[}] END[}]
annotation[@] identifier[JsonFormat] operator[SEP] identifier[shape] operator[=] identifier[JsonFormat] operator[SEP] identifier[Shape] operator[SEP] identifier[STRING] , identifier[pattern] operator[=] literal[String] operator[SEP] annotation[@] identifier[JsonProperty] operator[SEP] literal[String] operator[SEP] Key...
public static String deleteWhitespace(String str) { if (isEmpty(str)) { return str; } int sz = str.length(); char[] chs = new char[sz]; int count = 0; for (int i = 0; i < sz; i++) { if (!Character.isWhitespace(str.charAt(i))) { chs[count++] = str.cha...
class class_name[name] begin[{] method[deleteWhitespace, return_type[type[String]], modifier[public static], parameter[str]] begin[{] if[call[.isEmpty, parameter[member[.str]]]] begin[{] return[member[.str]] else begin[{] None end[}] local_variable[type[int],...
Keyword[public] Keyword[static] identifier[String] identifier[deleteWhitespace] operator[SEP] identifier[String] identifier[str] operator[SEP] { Keyword[if] operator[SEP] identifier[isEmpty] operator[SEP] identifier[str] operator[SEP] operator[SEP] { Keyword[return] identifier[str] operator[SEP] ...
public synchronized int getSize() { try { ByteArrayOutputStream bOut = new ByteArrayOutputStream(); ObjectOutputStream oOut = new ObjectOutputStream(bOut); oOut.writeObject(historyStore); bOut.close(); return bOut.size(); } catch (IOException e...
class class_name[name] begin[{] method[getSize, return_type[type[int]], modifier[synchronized public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arg...
Keyword[public] Keyword[synchronized] Keyword[int] identifier[getSize] operator[SEP] operator[SEP] { Keyword[try] { identifier[ByteArrayOutputStream] identifier[bOut] operator[=] Keyword[new] identifier[ByteArrayOutputStream] operator[SEP] operator[SEP] operator[SEP] identifier[ObjectOutputStream] ide...
protected final void setDerivedEndType() { m_endType = getPatternType().equals(PatternType.NONE) || getPatternType().equals(PatternType.INDIVIDUAL) ? EndType.SINGLE : null != getSeriesEndDate() ? EndType.DATE : EndType.TIMES; }
class class_name[name] begin[{] method[setDerivedEndType, return_type[void], modifier[final protected], parameter[]] begin[{] assign[member[.m_endType], TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getPatternType, postfix_operators=[], prefix_operat...
Keyword[protected] Keyword[final] Keyword[void] identifier[setDerivedEndType] operator[SEP] operator[SEP] { identifier[m_endType] operator[=] identifier[getPatternType] operator[SEP] operator[SEP] operator[SEP] identifier[equals] operator[SEP] identifier[PatternType] operator[SEP] identifier[NONE] operator[SEP] ...
@Override protected void parseStateVector(StreamTokenizer streamTokenizer) throws FSMParseException, IOException { Boolean accepting = null; for (int i = 0; i <= acceptIndex && streamTokenizer.nextToken() == StreamTokenizer.TT_WORD && accepting == null; i++) { f...
class class_name[name] begin[{] method[parseStateVector, return_type[void], modifier[protected], parameter[streamTokenizer]] begin[{] local_variable[type[Boolean], accepting] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableD...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[parseStateVector] operator[SEP] identifier[StreamTokenizer] identifier[streamTokenizer] operator[SEP] Keyword[throws] identifier[FSMParseException] , identifier[IOException] { identifier[Boolean] identifier[accepting] operator[=] Oth...
public int getCardinality() { int cardinality = 1; for (FieldPartitioner fieldPartitioner : fieldPartitioners) { if (fieldPartitioner.getCardinality() == FieldPartitioner.UNKNOWN_CARDINALITY) { return FieldPartitioner.UNKNOWN_CARDINALITY; } cardinality *= fieldPartitioner.getCardinalit...
class class_name[name] begin[{] method[getCardinality, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[int], cardinality] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], me...
Keyword[public] Keyword[int] identifier[getCardinality] operator[SEP] operator[SEP] { Keyword[int] identifier[cardinality] operator[=] Other[1] operator[SEP] Keyword[for] operator[SEP] identifier[FieldPartitioner] identifier[fieldPartitioner] operator[:] identifier[fieldPartitioners] operator[SEP] { ...
public boolean the(Sampler<Boolean> variable, Ticker ticker) { return the(variable, ticker, isQuietlyTrue()); }
class class_name[name] begin[{] method[the, return_type[type[boolean]], modifier[public], parameter[variable, ticker]] begin[{] return[call[.the, parameter[member[.variable], member[.ticker], call[.isQuietlyTrue, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[boolean] identifier[the] operator[SEP] identifier[Sampler] operator[<] identifier[Boolean] operator[>] identifier[variable] , identifier[Ticker] identifier[ticker] operator[SEP] { Keyword[return] identifier[the] operator[SEP] identifier[variable] , identifier[ticker] , identifier[isQui...
public static void main(String[] args) throws IOException { if(args.length==0) { System.err.println("Error: missing DESTINATION argument."); System.err.format("usage: java -cp termsuite-core.jar %s DESTINATION%n", ResourceExporter.class.getCanonicalName()); System.exit(1); } else { String pathStr = args...
class class_name[name] begin[{] method[main, return_type[void], modifier[public static], parameter[args]] begin[{] if[binary_operation[member[args.length], ==, literal[0]]] begin[{] call[System.err.println, parameter[literal["Error: missing DESTINATION argument."]]] ...
Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[args] operator[SEP] identifier[length] operator[==] Other[0] operator[SEP] { ...
public Element redirectToDom(Closure c) { SAXContentHandler sc = new SAXContentHandler(); with(new XMLOutput(sc),c); return sc.getDocument().getRootElement(); }
class class_name[name] begin[{] method[redirectToDom, return_type[type[Element]], modifier[public], parameter[c]] begin[{] local_variable[type[SAXContentHandler], sc] call[.with, parameter[ClassCreator(arguments=[MemberReference(member=sc, postfix_operators=[], prefix_operators=[], qual...
Keyword[public] identifier[Element] identifier[redirectToDom] operator[SEP] identifier[Closure] identifier[c] operator[SEP] { identifier[SAXContentHandler] identifier[sc] operator[=] Keyword[new] identifier[SAXContentHandler] operator[SEP] operator[SEP] operator[SEP] identifier[with] operator[SEP] Keyword[new] i...
private void addComplexAsMember(Complex cx, Glyph container) { // Create a glyph for the inner complex Glyph inner = createComplexMember(cx, container); for (PhysicalEntity mem : cx.getComponent()) { if (mem instanceof Complex) { // Recursive call for inner complexes addComplexAsMember((Complex) ...
class class_name[name] begin[{] method[addComplexAsMember, return_type[void], modifier[private], parameter[cx, container]] begin[{] local_variable[type[Glyph], inner] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=m...
Keyword[private] Keyword[void] identifier[addComplexAsMember] operator[SEP] identifier[Complex] identifier[cx] , identifier[Glyph] identifier[container] operator[SEP] { identifier[Glyph] identifier[inner] operator[=] identifier[createComplexMember] operator[SEP] identifier[cx] , identifier[container] operator[...
@CheckReturnValue @BackpressureSupport(BackpressureKind.FULL) @SchedulerSupport(SchedulerSupport.NONE) public final <R> Flowable<R> publish(Function<? super Flowable<T>, ? extends Publisher<? extends R>> selector, int prefetch) { ObjectHelper.requireNonNull(selector, "selector is null"); Obj...
class class_name[name] begin[{] method[publish, return_type[type[Flowable]], modifier[final public], parameter[selector, prefetch]] begin[{] call[ObjectHelper.requireNonNull, parameter[member[.selector], literal["selector is null"]]] call[ObjectHelper.verifyPositive, parameter[m...
annotation[@] identifier[CheckReturnValue] annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[FULL] operator[SEP] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[publ...
protected int addPacket(OggPacket packet, int offset) { if(packet.isBeginningOfStream()) { isBOS = true; } if(packet.isEndOfStream()) { isEOS = true; } // Add on in 255 byte chunks int size = packet.getData().length; for(int i = numLVs; i<...
class class_name[name] begin[{] method[addPacket, return_type[type[int]], modifier[protected], parameter[packet, offset]] begin[{] if[call[packet.isBeginningOfStream, parameter[]]] begin[{] assign[member[.isBOS], literal[true]] else begin[{] None end[}] ...
Keyword[protected] Keyword[int] identifier[addPacket] operator[SEP] identifier[OggPacket] identifier[packet] , Keyword[int] identifier[offset] operator[SEP] { Keyword[if] operator[SEP] identifier[packet] operator[SEP] identifier[isBeginningOfStream] operator[SEP] operator[SEP] operator[SEP] { identif...
protected static void waitForDeliveryStreamToBecomeAvailable(String deliveryStreamName) throws Exception { LOG.info("Waiting for " + deliveryStreamName + " to become ACTIVE..."); long startTime = System.currentTimeMillis(); long endTime = startTime + (10 * 60 * 1000); while (System.cur...
class class_name[name] begin[{] method[waitForDeliveryStreamToBecomeAvailable, return_type[void], modifier[static protected], parameter[deliveryStreamName]] begin[{] call[LOG.info, parameter[binary_operation[binary_operation[literal["Waiting for "], +, member[.deliveryStreamName]], +, literal["...
Keyword[protected] Keyword[static] Keyword[void] identifier[waitForDeliveryStreamToBecomeAvailable] operator[SEP] identifier[String] identifier[deliveryStreamName] operator[SEP] Keyword[throws] identifier[Exception] { identifier[LOG] operator[SEP] identifier[info] operator[SEP] literal[String] operator[+] identi...
public <V> void waitUntil(Sampler<V> variable, Matcher<? super V> criteria) { waitUntil(variable, eventually(), criteria); }
class class_name[name] begin[{] method[waitUntil, return_type[void], modifier[public], parameter[variable, criteria]] begin[{] call[.waitUntil, parameter[member[.variable], call[.eventually, parameter[]], member[.criteria]]] end[}] END[}]
Keyword[public] operator[<] identifier[V] operator[>] Keyword[void] identifier[waitUntil] operator[SEP] identifier[Sampler] operator[<] identifier[V] operator[>] identifier[variable] , identifier[Matcher] operator[<] operator[?] Keyword[super] identifier[V] operator[>] identifier[criteria] operator[SEP] { ident...
public final void mWS() throws RecognitionException { try { int _type = WS; int _channel = DEFAULT_TOKEN_CHANNEL; // druidG.g:669:2: ( ( ' ' | '\\t' | NEWLINE )+ ) // druidG.g:669:4: ( ' ' | '\\t' | NEWLINE )+ { // druidG.g:669:4: ( ' ' | '\\t' | NEWLINE )+ int cnt37=0; loop37: while (true)...
class class_name[name] begin[{] method[mWS, return_type[void], modifier[final public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(member=WS, postfix_operators=[], prefix_operators=[], qual...
Keyword[public] Keyword[final] Keyword[void] identifier[mWS] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { Keyword[try] { Keyword[int] identifier[_type] operator[=] identifier[WS] operator[SEP] Keyword[int] identifier[_channel] operator[=] identifier[DEFAULT_TOKEN_CHAN...
private Push findPushInLeftJoinRootedSubtree(IntermediateQuery query, ImmutableExpression expression, JoinOrFilterNode providerNode, LeftJoinNode currentNode) { Quer...
class class_name[name] begin[{] method[findPushInLeftJoinRootedSubtree, return_type[type[Push]], modifier[private], parameter[query, expression, providerNode, currentNode]] begin[{] local_variable[type[QueryNode], leftChild] return[TernaryExpression(condition=MethodInvocation(arguments=[MemberR...
Keyword[private] identifier[Push] identifier[findPushInLeftJoinRootedSubtree] operator[SEP] identifier[IntermediateQuery] identifier[query] , identifier[ImmutableExpression] identifier[expression] , identifier[JoinOrFilterNode] identifier[providerNode] , identifier[LeftJoinNode] identifier[currentNode] operator[SEP]...
public void findSSSP() { Record<N, E> initRec = new Record<>(init, 0.0f); if (records.put(init, initRec) != null) { throw new IllegalStateException("Search has already been performed!"); } SmartDynamicPriorityQueue<Record<N, E>> pq = BinaryHeap.create(graph.size()); ...
class class_name[name] begin[{] method[findSSSP, return_type[void], modifier[public], parameter[]] begin[{] local_variable[type[Record], initRec] if[binary_operation[call[records.put, parameter[member[.init], member[.initRec]]], !=, literal[null]]] begin[{] ThrowStatement(ex...
Keyword[public] Keyword[void] identifier[findSSSP] operator[SEP] operator[SEP] { identifier[Record] operator[<] identifier[N] , identifier[E] operator[>] identifier[initRec] operator[=] Keyword[new] identifier[Record] operator[<] operator[>] operator[SEP] identifier[init] , literal[Float] operator[SEP] operato...
public static String leafScoreFromDistribution(double[] classDistribution, Instances instances) { double sum = 0, maxCount = 0; int maxIndex = 0; if (classDistribution != null) { sum = Utils.sum(classDistribution); maxIndex = Utils.maxIndex(classDistribution); ...
class class_name[name] begin[{] method[leafScoreFromDistribution, return_type[type[String]], modifier[public static], parameter[classDistribution, instances]] begin[{] local_variable[type[double], sum] local_variable[type[int], maxIndex] if[binary_operation[member[.classDistribu...
Keyword[public] Keyword[static] identifier[String] identifier[leafScoreFromDistribution] operator[SEP] Keyword[double] operator[SEP] operator[SEP] identifier[classDistribution] , identifier[Instances] identifier[instances] operator[SEP] { Keyword[double] identifier[sum] operator[=] Other[0] , identifier[maxCou...
public IServletConfig getServletInfo(String string) { if (string == null || string.isEmpty()){ Tr.debug(tc, "getServletInfo", "servlet name is null/empty. Use internal servlet name " + NULLSERVLETNAME); string = NULLSERVLETNAME; } return (IServletConfig) this.servletInfo...
class class_name[name] begin[{] method[getServletInfo, return_type[type[IServletConfig]], modifier[public], parameter[string]] begin[{] if[binary_operation[binary_operation[member[.string], ==, literal[null]], ||, call[string.isEmpty, parameter[]]]] begin[{] call[Tr.debu...
Keyword[public] identifier[IServletConfig] identifier[getServletInfo] operator[SEP] identifier[String] identifier[string] operator[SEP] { Keyword[if] operator[SEP] identifier[string] operator[==] Other[null] operator[||] identifier[string] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SE...
public static <S, T extends Plugin<S>> OrderAwarePluginRegistry<T, S> of(List<? extends T> plugins, Comparator<? super T> comparator) { Assert.notNull(plugins, "Plugins must not be null!"); Assert.notNull(comparator, "Comparator must not be null!"); return new OrderAwarePluginRegistry<>(plugins, comparator);...
class class_name[name] begin[{] method[of, return_type[type[OrderAwarePluginRegistry]], modifier[public static], parameter[plugins, comparator]] begin[{] call[Assert.notNull, parameter[member[.plugins], literal["Plugins must not be null!"]]] call[Assert.notNull, parameter[member...
Keyword[public] Keyword[static] operator[<] identifier[S] , identifier[T] Keyword[extends] identifier[Plugin] operator[<] identifier[S] operator[>] operator[>] identifier[OrderAwarePluginRegistry] operator[<] identifier[T] , identifier[S] operator[>] identifier[of] operator[SEP] identifier[List] operator[<] operator[...
public boolean crosses(Span s) { int sstart = s.getStart(); //either s's start is in this or this' start is in s return(!this.contains(s) && !s.contains(this) && (getStart() <= sstart && sstart < getEnd() || sstart <= getStart() && getStart() < s.getEnd())); }
class class_name[name] begin[{] method[crosses, return_type[type[boolean]], modifier[public], parameter[s]] begin[{] local_variable[type[int], sstart] return[binary_operation[binary_operation[THIS[call[None.contains, parameter[member[.s]]]], &&, call[s.contains, parameter[THIS[]]]], &&, binary_...
Keyword[public] Keyword[boolean] identifier[crosses] operator[SEP] identifier[Span] identifier[s] operator[SEP] { Keyword[int] identifier[sstart] operator[=] identifier[s] operator[SEP] identifier[getStart] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] operator[!] Keyword[this] operator...
public final static void addAnnotationToConnection(final int position, final String annotation, final HELM2Notation helm2notation) { helm2notation.getListOfConnections().get(position).setAnnotation(annotation); }
class class_name[name] begin[{] method[addAnnotationToConnection, return_type[void], modifier[final public static], parameter[position, annotation, helm2notation]] begin[{] call[helm2notation.getListOfConnections, parameter[]] end[}] END[}]
Keyword[public] Keyword[final] Keyword[static] Keyword[void] identifier[addAnnotationToConnection] operator[SEP] Keyword[final] Keyword[int] identifier[position] , Keyword[final] identifier[String] identifier[annotation] , Keyword[final] identifier[HELM2Notation] identifier[helm2notation] operator[SEP] { ident...
public String typeArgument() throws RecognitionException { String typeArgument = ""; try { int first = input.index(), last = first; int next = input.LA(1); switch (next) { case DRL6Lexer.QUESTION: match(input, ...
class class_name[name] begin[{] method[typeArgument, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[String], typeArgument] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvoca...
Keyword[public] identifier[String] identifier[typeArgument] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] { identifier[String] identifier[typeArgument] operator[=] literal[String] operator[SEP] Keyword[try] { Keyword[int] identifier[first] operator[=] identifier[input] o...
public CompletableFuture<Void> accept(T event) { List<CompletableFuture<Void>> futures = new ArrayList<>(listeners.size()); for (ListenerHolder listener : listeners) { if (listener.context != null) { futures.add(listener.context.execute(() -> listener.listener.accept(event))); } else { ...
class class_name[name] begin[{] method[accept, return_type[type[CompletableFuture]], modifier[public], parameter[event]] begin[{] local_variable[type[List], futures] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=co...
Keyword[public] identifier[CompletableFuture] operator[<] identifier[Void] operator[>] identifier[accept] operator[SEP] identifier[T] identifier[event] operator[SEP] { identifier[List] operator[<] identifier[CompletableFuture] operator[<] identifier[Void] operator[>] operator[>] identifier[futures] operator[=] K...
private static String getDefaultNamedOutputFormatInstanceFile(JobContext job) { return job.getConfiguration().get(DEFAULT_MO_PREFIX + FORMAT_INSTANCE_FILE, null); }
class class_name[name] begin[{] method[getDefaultNamedOutputFormatInstanceFile, return_type[type[String]], modifier[private static], parameter[job]] begin[{] return[call[job.getConfiguration, parameter[]]] end[}] END[}]
Keyword[private] Keyword[static] identifier[String] identifier[getDefaultNamedOutputFormatInstanceFile] operator[SEP] identifier[JobContext] identifier[job] operator[SEP] { Keyword[return] identifier[job] operator[SEP] identifier[getConfiguration] operator[SEP] operator[SEP] operator[SEP] identifier[get] operato...
private String subDirForId(String id) { String path = objs + UNIX_PATH_SEPERATOR + id.substring(0, SUBDIR_POLICY); safeMkdir(path); return path; }
class class_name[name] begin[{] method[subDirForId, return_type[type[String]], modifier[private], parameter[id]] begin[{] local_variable[type[String], path] call[.safeMkdir, parameter[member[.path]]] return[member[.path]] end[}] END[}]
Keyword[private] identifier[String] identifier[subDirForId] operator[SEP] identifier[String] identifier[id] operator[SEP] { identifier[String] identifier[path] operator[=] identifier[objs] operator[+] identifier[UNIX_PATH_SEPERATOR] operator[+] identifier[id] operator[SEP] identifier[substring] operator[SEP] Oth...
public @NotNull QueryBuilder append(@NotNull String sql, @NotNull Collection<?> args) { query.append(requireNonNull(sql)); addArguments(args); return this; }
class class_name[name] begin[{] method[append, return_type[type[QueryBuilder]], modifier[public], parameter[sql, args]] begin[{] call[query.append, parameter[call[.requireNonNull, parameter[member[.sql]]]]] call[.addArguments, parameter[member[.args]]] return[THIS[]] ...
Keyword[public] annotation[@] identifier[NotNull] identifier[QueryBuilder] identifier[append] operator[SEP] annotation[@] identifier[NotNull] identifier[String] identifier[sql] , annotation[@] identifier[NotNull] identifier[Collection] operator[<] operator[?] operator[>] identifier[args] operator[SEP] { identif...
private List<Class<? extends RelationshipInterface>> getRelationClassCandidatesForRelType(final String relType) { List<Class<? extends RelationshipInterface>> candidates = new ArrayList(); for (final Class<? extends RelationshipInterface> candidate : getRelationshipEntities().values()) { Relation rel = instan...
class class_name[name] begin[{] method[getRelationClassCandidatesForRelType, return_type[type[List]], modifier[private], parameter[relType]] begin[{] local_variable[type[List], candidates] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarat...
Keyword[private] identifier[List] operator[<] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[RelationshipInterface] operator[>] operator[>] identifier[getRelationClassCandidatesForRelType] operator[SEP] Keyword[final] identifier[String] identifier[relType] operator[SEP] { identifier[List] ...
void timestampFormat(DateFormat format, String... attributes) { convertWith(new DateToStringConverter(format), attributes); convertWith(new StringToTimestampConverter(format), attributes); }
class class_name[name] begin[{] method[timestampFormat, return_type[void], modifier[default], parameter[format, attributes]] begin[{] call[.convertWith, parameter[ClassCreator(arguments=[MemberReference(member=format, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=N...
Keyword[void] identifier[timestampFormat] operator[SEP] identifier[DateFormat] identifier[format] , identifier[String] operator[...] identifier[attributes] operator[SEP] { identifier[convertWith] operator[SEP] Keyword[new] identifier[DateToStringConverter] operator[SEP] identifier[format] operator[SEP] , ident...
public ClientTransaction sendRequest(Request request) throws SipException, TransactionUnavailableException { ensureCorrectDialogLocalTag(request); final ClientTransactionWrapper ctw = ra.getProviderWrapper().getNewDialogActivityClientTransaction(this,request); if (request.getMethod().equals(Request.INVITE)) la...
class class_name[name] begin[{] method[sendRequest, return_type[type[ClientTransaction]], modifier[public], parameter[request]] begin[{] call[.ensureCorrectDialogLocalTag, parameter[member[.request]]] local_variable[type[ClientTransactionWrapper], ctw] if[call[request.ge...
Keyword[public] identifier[ClientTransaction] identifier[sendRequest] operator[SEP] identifier[Request] identifier[request] operator[SEP] Keyword[throws] identifier[SipException] , identifier[TransactionUnavailableException] { identifier[ensureCorrectDialogLocalTag] operator[SEP] identifier[request] operator[SE...
public boolean setMainKey(boolean bDisplayOption, Boolean boolSetModified, boolean bSetIfModified) { super.setMainKey(bDisplayOption, boolSetModified, bSetIfModified); boolean bNonNulls = false; // Default to yes, all keys are null. if (m_fldMainFile != null) if ((m_bSetFilterIf...
class class_name[name] begin[{] method[setMainKey, return_type[type[boolean]], modifier[public], parameter[bDisplayOption, boolSetModified, bSetIfModified]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=bDisplayOption, postfix_operators=[], prefix_operators=[], qualifier=, se...
Keyword[public] Keyword[boolean] identifier[setMainKey] operator[SEP] Keyword[boolean] identifier[bDisplayOption] , identifier[Boolean] identifier[boolSetModified] , Keyword[boolean] identifier[bSetIfModified] operator[SEP] { Keyword[super] operator[SEP] identifier[setMainKey] operator[SEP] identifier[bDisplay...
@Override public ListAvailableZonesResult listAvailableZones(ListAvailableZonesRequest request) { request = beforeClientExecution(request); return executeListAvailableZones(request); }
class class_name[name] begin[{] method[listAvailableZones, return_type[type[ListAvailableZonesResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeListAvailableZones, parameter[me...
annotation[@] identifier[Override] Keyword[public] identifier[ListAvailableZonesResult] identifier[listAvailableZones] operator[SEP] identifier[ListAvailableZonesRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operat...
public ReceiveMessageRequest withAttributeNames(String... attributeNames) { if (this.attributeNames == null) { setAttributeNames(new com.amazonaws.internal.SdkInternalList<String>(attributeNames.length)); } for (String ele : attributeNames) { this.attributeNames.add(ele);...
class class_name[name] begin[{] method[withAttributeNames, return_type[type[ReceiveMessageRequest]], modifier[public], parameter[attributeNames]] begin[{] if[binary_operation[THIS[member[None.attributeNames]], ==, literal[null]]] begin[{] call[.setAttributeNames, paramet...
Keyword[public] identifier[ReceiveMessageRequest] identifier[withAttributeNames] operator[SEP] identifier[String] operator[...] identifier[attributeNames] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[attributeNames] operator[==] Other[null] operator[SEP] { identifie...
public Assignment outcomeToAssignment(Object[] outcome) { Preconditions.checkArgument(outcome.length == nums.length, "outcome %s cannot be assigned to %s (wrong number of values)", outcome, this); return Assignment.fromSortedArrays(nums, outcome); }
class class_name[name] begin[{] method[outcomeToAssignment, return_type[type[Assignment]], modifier[public], parameter[outcome]] begin[{] call[Preconditions.checkArgument, parameter[binary_operation[member[outcome.length], ==, member[nums.length]], literal["outcome %s cannot be assigned to %s (...
Keyword[public] identifier[Assignment] identifier[outcomeToAssignment] operator[SEP] identifier[Object] operator[SEP] operator[SEP] identifier[outcome] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkArgument] operator[SEP] identifier[outcome] operator[SEP] identifier[length] operator[==]...
@Override public UpdateMatchmakingConfigurationResult updateMatchmakingConfiguration(UpdateMatchmakingConfigurationRequest request) { request = beforeClientExecution(request); return executeUpdateMatchmakingConfiguration(request); }
class class_name[name] begin[{] method[updateMatchmakingConfiguration, return_type[type[UpdateMatchmakingConfigurationResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeUpdateMa...
annotation[@] identifier[Override] Keyword[public] identifier[UpdateMatchmakingConfigurationResult] identifier[updateMatchmakingConfiguration] operator[SEP] identifier[UpdateMatchmakingConfigurationRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] oper...
private void setupTextField() { searchFld = new CustomTextField(); GlyphFont fontAwesome = GlyphFontRegistry.font("FontAwesome"); Glyph glyph = fontAwesome.create(FontAwesome.Glyph.SEARCH).color(Color.GRAY); glyph.setPadding(new Insets(0, 3, 0, 5)); searchFld.setLeft(glyph); }
class class_name[name] begin[{] method[setupTextField, return_type[void], modifier[private], parameter[]] begin[{] assign[member[.searchFld], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=Refe...
Keyword[private] Keyword[void] identifier[setupTextField] operator[SEP] operator[SEP] { identifier[searchFld] operator[=] Keyword[new] identifier[CustomTextField] operator[SEP] operator[SEP] operator[SEP] identifier[GlyphFont] identifier[fontAwesome] operator[=] identifier[GlyphFontRegistry] operator[SEP] identi...
public void postProcess() { if (foreignColumnName != null) { foreignAutoRefresh = true; } if (foreignAutoRefresh && maxForeignAutoRefreshLevel == NO_MAX_FOREIGN_AUTO_REFRESH_LEVEL_SPECIFIED) { maxForeignAutoRefreshLevel = DatabaseField.DEFAULT_MAX_FOREIGN_AUTO_REFRESH_LEVEL; } }
class class_name[name] begin[{] method[postProcess, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.foreignColumnName], !=, literal[null]]] begin[{] assign[member[.foreignAutoRefresh], literal[true]] else begin[{] None ...
Keyword[public] Keyword[void] identifier[postProcess] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[foreignColumnName] operator[!=] Other[null] operator[SEP] { identifier[foreignAutoRefresh] operator[=] literal[boolean] operator[SEP] } Keyword[if] operator[SEP] ident...
private String removeSpacesInDN(String DN) { String attrs[] = DN.split(","); StringBuilder result = new StringBuilder(); for (int i = 0; i < attrs.length; i++) { if (attrs[i].indexOf("=") >= 0) result.append(attrs[i].trim()); else result.ap...
class class_name[name] begin[{] method[removeSpacesInDN, return_type[type[String]], modifier[private], parameter[DN]] begin[{] local_variable[type[String], attrs] local_variable[type[StringBuilder], result] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=B...
Keyword[private] identifier[String] identifier[removeSpacesInDN] operator[SEP] identifier[String] identifier[DN] operator[SEP] { identifier[String] identifier[attrs] operator[SEP] operator[SEP] operator[=] identifier[DN] operator[SEP] identifier[split] operator[SEP] literal[String] operator[SEP] operator[SEP] id...
public List<SystemEventListener> getViewListenersForEventClass(Class<? extends SystemEvent> systemEvent) { if (systemEvent == null) { throw new NullPointerException(); } if (viewListeners != null) { return viewListeners.get(systemEvent); } return null; ...
class class_name[name] begin[{] method[getViewListenersForEventClass, return_type[type[List]], modifier[public], parameter[systemEvent]] begin[{] if[binary_operation[member[.systemEvent], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, co...
Keyword[public] identifier[List] operator[<] identifier[SystemEventListener] operator[>] identifier[getViewListenersForEventClass] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[SystemEvent] operator[>] identifier[systemEvent] operator[SEP] { Keyword[if] operator[SEP] identif...
public void setLineJoinImage(String lineJoinImage) { String val = setNonEmptyValueAttribute(lineJoinImage); if (val != null) _iState.setLineJoinImage(setNonEmptyValueAttribute(val)); }
class class_name[name] begin[{] method[setLineJoinImage, return_type[void], modifier[public], parameter[lineJoinImage]] begin[{] local_variable[type[String], val] if[binary_operation[member[.val], !=, literal[null]]] begin[{] call[_iState.setLineJoinImage, parameter[call[.se...
Keyword[public] Keyword[void] identifier[setLineJoinImage] operator[SEP] identifier[String] identifier[lineJoinImage] operator[SEP] { identifier[String] identifier[val] operator[=] identifier[setNonEmptyValueAttribute] operator[SEP] identifier[lineJoinImage] operator[SEP] operator[SEP] Keyword[if] operator[SEP] ...
OmemoMessage.Sent createKeyTransportElement(OmemoManager.LoggedInOmemoManager managerGuard, Set<OmemoDevice> contactsDevices, byte[] key, byte[] iv) throws Interrup...
class class_name[name] begin[{] method[createKeyTransportElement, return_type[type[OmemoMessage]], modifier[default], parameter[managerGuard, contactsDevices, key, iv]] begin[{] return[call[.encrypt, parameter[member[.managerGuard], member[.contactsDevices], member[.key], member[.iv], literal[null]]]] ...
identifier[OmemoMessage] operator[SEP] identifier[Sent] identifier[createKeyTransportElement] operator[SEP] identifier[OmemoManager] operator[SEP] identifier[LoggedInOmemoManager] identifier[managerGuard] , identifier[Set] operator[<] identifier[OmemoDevice] operator[>] identifier[contactsDevices] , Keyword[byte] ope...
public Milestone closeGroupMilestone(Object groupIdOrPath, Integer milestoneId) throws GitLabApiException { if (milestoneId == null) { throw new RuntimeException("milestoneId cannot be null"); } GitLabApiForm formData = new GitLabApiForm().withParam("state_event", MilestoneState.CL...
class class_name[name] begin[{] method[closeGroupMilestone, return_type[type[Milestone]], modifier[public], parameter[groupIdOrPath, milestoneId]] begin[{] if[binary_operation[member[.milestoneId], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Litera...
Keyword[public] identifier[Milestone] identifier[closeGroupMilestone] operator[SEP] identifier[Object] identifier[groupIdOrPath] , identifier[Integer] identifier[milestoneId] operator[SEP] Keyword[throws] identifier[GitLabApiException] { Keyword[if] operator[SEP] identifier[milestoneId] operator[==] Other[null]...
public ClassNode getFromClassCache(String name) { // We use here the class cache cachedClasses to prevent // calls to ClassLoader#loadClass. Disabling this cache will // cause a major performance hit. ClassNode cached = cachedClasses.get(name); return cached; }
class class_name[name] begin[{] method[getFromClassCache, return_type[type[ClassNode]], modifier[public], parameter[name]] begin[{] local_variable[type[ClassNode], cached] return[member[.cached]] end[}] END[}]
Keyword[public] identifier[ClassNode] identifier[getFromClassCache] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[ClassNode] identifier[cached] operator[=] identifier[cachedClasses] operator[SEP] identifier[get] operator[SEP] identifier[name] operator[SEP] operator[SEP] Keyword[ret...
private Set<ApiResourceMetadata> checkResource(JCodeModel bodyCodeModel, String baseUrl, RamlResource resource, ApiResourceMetadata controller, RamlRoot document) { Set<ApiResourceMetadata> controllers = new LinkedHashSet<>(); // append resource URL to url. String url = baseUrl + resource.getRelativeUri(); i...
class class_name[name] begin[{] method[checkResource, return_type[type[Set]], modifier[private], parameter[bodyCodeModel, baseUrl, resource, controller, document]] begin[{] local_variable[type[Set], controllers] local_variable[type[String], url] if[binary_operation[binary_operat...
Keyword[private] identifier[Set] operator[<] identifier[ApiResourceMetadata] operator[>] identifier[checkResource] operator[SEP] identifier[JCodeModel] identifier[bodyCodeModel] , identifier[String] identifier[baseUrl] , identifier[RamlResource] identifier[resource] , identifier[ApiResourceMetadata] identifier[contr...
private String hashAndGetName() { group.getInstructions().accept(this); for (final FieldNode node: group.getFields()) hasher.putObject(node, FieldNodeFunnel.INSTANCE); final byte[] hash = new byte[10]; hasher.hash().writeBytesTo(hash, 0, 10); final String prefix =...
class class_name[name] begin[{] method[hashAndGetName, return_type[type[String]], modifier[private], parameter[]] begin[{] call[group.getInstructions, parameter[]] ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=node, postfix_operators...
Keyword[private] identifier[String] identifier[hashAndGetName] operator[SEP] operator[SEP] { identifier[group] operator[SEP] identifier[getInstructions] operator[SEP] operator[SEP] operator[SEP] identifier[accept] operator[SEP] Keyword[this] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[final] i...
public String generateName(String name) { checkName(name); names.add(name); int count = names.count(name); if (count == 1) { return name; } return name + collisionSeparator + (count - 1); }
class class_name[name] begin[{] method[generateName, return_type[type[String]], modifier[public], parameter[name]] begin[{] call[.checkName, parameter[member[.name]]] call[names.add, parameter[member[.name]]] local_variable[type[int], count] if[binary_ope...
Keyword[public] identifier[String] identifier[generateName] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[checkName] operator[SEP] identifier[name] operator[SEP] operator[SEP] identifier[names] operator[SEP] identifier[add] operator[SEP] identifier[name] operator[SEP] operator[SEP]...
public ServiceFuture<List<VaultUsageInner>> listByVaultsAsync(String resourceGroupName, String vaultName, final ServiceCallback<List<VaultUsageInner>> serviceCallback) { return ServiceFuture.fromResponse(listByVaultsWithServiceResponseAsync(resourceGroupName, vaultName), serviceCallback); }
class class_name[name] begin[{] method[listByVaultsAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, vaultName, serviceCallback]] begin[{] return[call[ServiceFuture.fromResponse, parameter[call[.listByVaultsWithServiceResponseAsync, parameter[member[.resourceGroupN...
Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[VaultUsageInner] operator[>] operator[>] identifier[listByVaultsAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[vaultName] , Keyword[final] identifier[ServiceCallback] op...
public static CliDirectory fromDef(CommandDirectoryDef def) { final Trie<CliDirectory> childDirectories = createChildDirectories(def); final Trie<CliCommand> childCommands = createChildCommands(def); final CliDirectory directory = new CliDirectory(def.getIdentifier(), childDirectories, childComm...
class class_name[name] begin[{] method[fromDef, return_type[type[CliDirectory]], modifier[public static], parameter[def]] begin[{] local_variable[type[Trie], childDirectories] local_variable[type[Trie], childCommands] local_variable[type[CliDirectory], directory] ForStatement(bo...
Keyword[public] Keyword[static] identifier[CliDirectory] identifier[fromDef] operator[SEP] identifier[CommandDirectoryDef] identifier[def] operator[SEP] { Keyword[final] identifier[Trie] operator[<] identifier[CliDirectory] operator[>] identifier[childDirectories] operator[=] identifier[createChildDirectories] o...
public void marshall(EndpointBatchItem endpointBatchItem, ProtocolMarshaller protocolMarshaller) { if (endpointBatchItem == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(endpointBatchItem.getAddress...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[endpointBatchItem, protocolMarshaller]] begin[{] if[binary_operation[member[.endpointBatchItem], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(pos...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[EndpointBatchItem] identifier[endpointBatchItem] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[endpointBatchItem] operator[==] Other[null] operator[SEP] { ...
private IChemFile readChemFile(IChemFile cf) throws CDKException { // have to do stuff here try { String line = null; while ((line = input.readLine()) != null) { if (line.startsWith("INChI=") || line.startsWith("InChI=")) { // ok, the fun start...
class class_name[name] begin[{] method[readChemFile, return_type[type[IChemFile]], modifier[private], parameter[cf]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Literal(postfix_operators=[], prefix_operators=[], qualif...
Keyword[private] identifier[IChemFile] identifier[readChemFile] operator[SEP] identifier[IChemFile] identifier[cf] operator[SEP] Keyword[throws] identifier[CDKException] { Keyword[try] { identifier[String] identifier[line] operator[=] Other[null] operator[SEP] Keyword[while] operator[SEP] operator[SEP...
public void addSipApplication(String sipApplicationName, SipContext sipApplication) { DispatcherFSM.Event ev = fsm.new Event(DispatcherFSM.EventType.ADD_APP); ev.data.put(CONTEXT_EV_DATA, sipApplication); fsm.fireEvent(ev); }
class class_name[name] begin[{] method[addSipApplication, return_type[void], modifier[public], parameter[sipApplicationName, sipApplication]] begin[{] local_variable[type[DispatcherFSM], ev] call[ev.data.put, parameter[member[.CONTEXT_EV_DATA], member[.sipApplication]]] ...
Keyword[public] Keyword[void] identifier[addSipApplication] operator[SEP] identifier[String] identifier[sipApplicationName] , identifier[SipContext] identifier[sipApplication] operator[SEP] { identifier[DispatcherFSM] operator[SEP] identifier[Event] identifier[ev] operator[=] identifier[fsm] operator[SEP] Keywo...
@Conditioned @Quand("Je passe au dessus de '(.*)-(.*)'[\\.|\\?]") @When("I pass over '(.*)-(.*)'[\\.|\\?]") public void passOver(String page, String elementName, List<GherkinStepCondition> conditions) throws TechnicalException, FailureException { passOver(Page.getInstance(page).getPageElementByK...
class class_name[name] begin[{] method[passOver, return_type[void], modifier[public], parameter[page, elementName, conditions]] begin[{] call[.passOver, parameter[call[Page.getInstance, parameter[member[.page]]]]] end[}] END[}]
annotation[@] identifier[Conditioned] annotation[@] identifier[Quand] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[When] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[passOver] operator[SEP] identifier[String] identifier[page] , identifier[String] identifi...
public Pager<Milestone> getMilestones(Object projectIdOrPath, int itemsPerPage) throws GitLabApiException { return (new Pager<Milestone>(this, Milestone.class, itemsPerPage, null, "projects", getProjectIdOrPath(projectIdOrPath), "milestones")); }
class class_name[name] begin[{] method[getMilestones, return_type[type[Pager]], modifier[public], parameter[projectIdOrPath, itemsPerPage]] begin[{] return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), ClassReference(postfix_operators=[], prefix_...
Keyword[public] identifier[Pager] operator[<] identifier[Milestone] operator[>] identifier[getMilestones] operator[SEP] identifier[Object] identifier[projectIdOrPath] , Keyword[int] identifier[itemsPerPage] operator[SEP] Keyword[throws] identifier[GitLabApiException] { Keyword[return] operator[SEP] Keyword[new]...
public Map<Long, Post> selectPostMap(final Collection<Long> postIds, final boolean withResolve) throws SQLException { Map<Long, Post> postMap = Maps.newHashMapWithExpectedSize(postIds.size()); Connection conn = null; Statement stmt = null; ResultSet rs = null; Timer.Context ctx = metrics...
class class_name[name] begin[{] method[selectPostMap, return_type[type[Map]], modifier[public], parameter[postIds, withResolve]] begin[{] local_variable[type[Map], postMap] local_variable[type[Connection], conn] local_variable[type[Statement], stmt] local_variable[type[ResultSet...
Keyword[public] identifier[Map] operator[<] identifier[Long] , identifier[Post] operator[>] identifier[selectPostMap] operator[SEP] Keyword[final] identifier[Collection] operator[<] identifier[Long] operator[>] identifier[postIds] , Keyword[final] Keyword[boolean] identifier[withResolve] operator[SEP] Keyword[throws]...
@Override public void visitCode(final Code obj) { if (sourceLines == null) { return; } if (isAbstract) { return; } if (Values.STATIC_INITIALIZER.equals(methodName) || Values.CONSTRUCTOR.equals(methodName)) { return; } int...
class class_name[name] begin[{] method[visitCode, return_type[void], modifier[public], parameter[obj]] begin[{] if[binary_operation[member[.sourceLines], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] if[member[.isAbstract]] begin...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[visitCode] operator[SEP] Keyword[final] identifier[Code] identifier[obj] operator[SEP] { Keyword[if] operator[SEP] identifier[sourceLines] operator[==] Other[null] operator[SEP] { Keyword[return] operator[SEP] } ...
public DateTimeFormatter withPivotYear(Integer pivotYear) { if (iPivotYear == pivotYear || (iPivotYear != null && iPivotYear.equals(pivotYear))) { return this; } return new DateTimeFormatter(iPrinter, iParser, iLocale, iOffsetParsed, iChrono, iZone, pivotYear, iDefaul...
class class_name[name] begin[{] method[withPivotYear, return_type[type[DateTimeFormatter]], modifier[public], parameter[pivotYear]] begin[{] if[binary_operation[binary_operation[member[.iPivotYear], ==, member[.pivotYear]], ||, binary_operation[binary_operation[member[.iPivotYear], !=, literal[...
Keyword[public] identifier[DateTimeFormatter] identifier[withPivotYear] operator[SEP] identifier[Integer] identifier[pivotYear] operator[SEP] { Keyword[if] operator[SEP] identifier[iPivotYear] operator[==] identifier[pivotYear] operator[||] operator[SEP] identifier[iPivotYear] operator[!=] Other[null] operator[&...
private static <T> List<Method> getMethods(Class<T> type, String... names) { Assert.notNull(type, "Missing class to search for methods!"); Assert.notNullOrEmpty(names, "Missing method names to search for!"); Map<String, Method> candidates = new HashMap<>(); for (Method method : type.getMethods()) { if (Mo...
class class_name[name] begin[{] method[getMethods, return_type[type[List]], modifier[private static], parameter[type, names]] begin[{] call[Assert.notNull, parameter[member[.type], literal["Missing class to search for methods!"]]] call[Assert.notNullOrEmpty, parameter[member[.na...
Keyword[private] Keyword[static] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[Method] operator[>] identifier[getMethods] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] , identifier[String] operator[...] identifier[names] operator[SEP] { id...
public com.google.api.ads.adwords.axis.v201809.rm.NumberKey getKey() { return key; }
class class_name[name] begin[{] method[getKey, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.key]] end[}] END[}]
Keyword[public] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[adwords] operator[SEP] identifier[axis] operator[SEP] identifier[v201809] operator[SEP] identifier[rm] operator[SEP] identifier[NumberKey] identifier[getKey] operator[SEP...
protected static int readInt(byte[] bytes, int offset, int length) { int result = 0; for (int i = 0; i < length; ++i) { result <<= 8; result += bytes[offset + i] & 0xFF; } return result; }
class class_name[name] begin[{] method[readInt, return_type[type[int]], modifier[static protected], parameter[bytes, offset, length]] begin[{] local_variable[type[int], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberR...
Keyword[protected] Keyword[static] Keyword[int] identifier[readInt] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , Keyword[int] identifier[offset] , Keyword[int] identifier[length] operator[SEP] { Keyword[int] identifier[result] operator[=] Other[0] operator[SEP] Keyword[for] opera...
private int setExceptionalCompletion(Throwable ex) { int s = recordExceptionalCompletion(ex); if ((s & DONE_MASK) == EXCEPTIONAL) internalPropagateException(ex); return s; }
class class_name[name] begin[{] method[setExceptionalCompletion, return_type[type[int]], modifier[private], parameter[ex]] begin[{] local_variable[type[int], s] if[binary_operation[binary_operation[member[.s], &, member[.DONE_MASK]], ==, member[.EXCEPTIONAL]]] begin[{] call[...
Keyword[private] Keyword[int] identifier[setExceptionalCompletion] operator[SEP] identifier[Throwable] identifier[ex] operator[SEP] { Keyword[int] identifier[s] operator[=] identifier[recordExceptionalCompletion] operator[SEP] identifier[ex] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] ide...
@Override public final void addBatch(String s) throws SQLException { batchSql.add(s); stmt.addBatch(s); }
class class_name[name] begin[{] method[addBatch, return_type[void], modifier[final public], parameter[s]] begin[{] call[batchSql.add, parameter[member[.s]]] call[stmt.addBatch, parameter[member[.s]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[void] identifier[addBatch] operator[SEP] identifier[String] identifier[s] operator[SEP] Keyword[throws] identifier[SQLException] { identifier[batchSql] operator[SEP] identifier[add] operator[SEP] identifier[s] operator[SEP] operator[SEP] i...
private Collection<String> getCertServerNames(X509Certificate x509) throws CertificateParsingException { Collection<String> serverNames = new LinkedHashSet<>(); /* Add CN for the certificate */ String certCN = getCertCN(x509); serverNames.add(certCN); /* Add alternativ...
class class_name[name] begin[{] method[getCertServerNames, return_type[type[Collection]], modifier[private], parameter[x509]] begin[{] local_variable[type[Collection], serverNames] local_variable[type[String], certCN] call[serverNames.add, parameter[member[.certCN]]] Try...
Keyword[private] identifier[Collection] operator[<] identifier[String] operator[>] identifier[getCertServerNames] operator[SEP] identifier[X509Certificate] identifier[x509] operator[SEP] Keyword[throws] identifier[CertificateParsingException] { identifier[Collection] operator[<] identifier[String] operator[>] id...
public List<Flow> fetchFlowsWithConfig(String cluster, String username, String batchDesc, String signature, int limit, String... configProps) throws IOException { LOG.info(String.format( "Fetching last %d matching jobs for cluster=%s, user.name=%s, " + "batch.desc=%s, pig.logical.pla...
class class_name[name] begin[{] method[fetchFlowsWithConfig, return_type[type[List]], modifier[public], parameter[cluster, username, batchDesc, signature, limit, configProps]] begin[{] call[LOG.info, parameter[call[String.format, parameter[binary_operation[literal["Fetching last %d matching job...
Keyword[public] identifier[List] operator[<] identifier[Flow] operator[>] identifier[fetchFlowsWithConfig] operator[SEP] identifier[String] identifier[cluster] , identifier[String] identifier[username] , identifier[String] identifier[batchDesc] , identifier[String] identifier[signature] , Keyword[int] identifier[li...
@Override public void close() throws IOException { try { if (this.logicallyClosed.compareAndSet(false, true) && available) { // 中断连接监视线程 if (this.threadWatch != null) { this.threadWatch.interrupt(); this.threadWatch = null; } ThriftConnectionHandle<T> handle = null; try { hand...
class class_name[name] begin[{] method[close, return_type[void], modifier[public], parameter[]] begin[{] TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=logicallyClosed, postfix_operator...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[logicallyClosed] operator[SEP] identifier[compareAndSet] operator[SEP...
private Path makeRelative(String initial, Path p) { String scheme = this.uri.getScheme(); String authority = this.uri.getAuthority(); Path root = new Path(Path.SEPARATOR); if (root.compareTo(p) == 0) return new Path(scheme, authority, initial); Path retPath = new Path(p.getName()); Path pa...
class class_name[name] begin[{] method[makeRelative, return_type[type[Path]], modifier[private], parameter[initial, p]] begin[{] local_variable[type[String], scheme] local_variable[type[String], authority] local_variable[type[Path], root] if[binary_operation[call[root.co...
Keyword[private] identifier[Path] identifier[makeRelative] operator[SEP] identifier[String] identifier[initial] , identifier[Path] identifier[p] operator[SEP] { identifier[String] identifier[scheme] operator[=] Keyword[this] operator[SEP] identifier[uri] operator[SEP] identifier[getScheme] operator[SEP] operato...
@Override protected void send() { String msg = namespace + '|' + nodeID + '|' + port; // Send broadcast packet DatagramSocket udpSocket = null; try { byte[] bytes = msg.getBytes(); udpSocket = new DatagramSocket(); udpSocket.setBroadcast(true); udpSocket.setReuseAddress(udpReuseAddr); ...
class class_name[name] begin[{] method[send, return_type[void], modifier[protected], parameter[]] begin[{] local_variable[type[String], msg] local_variable[type[DatagramSocket], udpSocket] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimen...
annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[send] operator[SEP] operator[SEP] { identifier[String] identifier[msg] operator[=] identifier[namespace] operator[+] literal[String] operator[+] identifier[nodeID] operator[+] literal[String] operator[+] identifier[port] operator[SEP]...
public static base_response enable(nitro_service client, String id) throws Exception { Interface enableresource = new Interface(); enableresource.id = id; return enableresource.perform_operation(client,"enable"); }
class class_name[name] begin[{] method[enable, return_type[type[base_response]], modifier[public static], parameter[client, id]] begin[{] local_variable[type[Interface], enableresource] assign[member[enableresource.id], member[.id]] return[call[enableresource.perform_operation, ...
Keyword[public] Keyword[static] identifier[base_response] identifier[enable] operator[SEP] identifier[nitro_service] identifier[client] , identifier[String] identifier[id] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Interface] identifier[enableresource] operator[=] Keyword[new] identifier[I...
@Override public Iterable<ExpressionTemplateMatch> match(JCTree target, Context context) { if (target instanceof JCExpression) { JCExpression targetExpr = (JCExpression) target; Optional<Unifier> unifier = unify(targetExpr, new Unifier(context)).first(); if (unifier.isPresent()) { return...
class class_name[name] begin[{] method[match, return_type[type[Iterable]], modifier[public], parameter[target, context]] begin[{] if[binary_operation[member[.target], instanceof, type[JCExpression]]] begin[{] local_variable[type[JCExpression], targetExpr] local_variable[...
annotation[@] identifier[Override] Keyword[public] identifier[Iterable] operator[<] identifier[ExpressionTemplateMatch] operator[>] identifier[match] operator[SEP] identifier[JCTree] identifier[target] , identifier[Context] identifier[context] operator[SEP] { Keyword[if] operator[SEP] identifier[target] Keyword...
public RouteFilterRuleInner beginCreateOrUpdate(String resourceGroupName, String routeFilterName, String ruleName, RouteFilterRuleInner routeFilterRuleParameters) { return beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, routeFilterName, ruleName, routeFilterRuleParameters).toBlocking().single().b...
class class_name[name] begin[{] method[beginCreateOrUpdate, return_type[type[RouteFilterRuleInner]], modifier[public], parameter[resourceGroupName, routeFilterName, ruleName, routeFilterRuleParameters]] begin[{] return[call[.beginCreateOrUpdateWithServiceResponseAsync, parameter[member[.resourceGroupNa...
Keyword[public] identifier[RouteFilterRuleInner] identifier[beginCreateOrUpdate] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[routeFilterName] , identifier[String] identifier[ruleName] , identifier[RouteFilterRuleInner] identifier[routeFilterRuleParameters] operator[...
public static String getEffectiveURI(WebContext ctx) { String uri = ctx.getRequestedURI(); if (uri.startsWith("/s3")) { uri = uri.substring(3); } if (uri.startsWith("/")) { uri = uri.substring(1); } return uri; }
class class_name[name] begin[{] method[getEffectiveURI, return_type[type[String]], modifier[public static], parameter[ctx]] begin[{] local_variable[type[String], uri] if[call[uri.startsWith, parameter[literal["/s3"]]]] begin[{] assign[member[.uri], call[uri.subst...
Keyword[public] Keyword[static] identifier[String] identifier[getEffectiveURI] operator[SEP] identifier[WebContext] identifier[ctx] operator[SEP] { identifier[String] identifier[uri] operator[=] identifier[ctx] operator[SEP] identifier[getRequestedURI] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operat...