code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static String getMandatoryConfig(Configuration config, String key) throws IOException { String value = config.get(key); if (Strings.isNullOrEmpty(value)) { throw new IOException("Must supply a value for configuration setting: " + key); } return value; }
class class_name[name] begin[{] method[getMandatoryConfig, return_type[type[String]], modifier[public static], parameter[config, key]] begin[{] local_variable[type[String], value] if[call[Strings.isNullOrEmpty, parameter[member[.value]]]] begin[{] ThrowStatement(expression=C...
Keyword[public] Keyword[static] identifier[String] identifier[getMandatoryConfig] operator[SEP] identifier[Configuration] identifier[config] , identifier[String] identifier[key] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[value] operator[=] identifier[config] operator[S...
@WithBridgeMethods(value = MySQLQuery.class, castRequired = true) public C into(String var) { return addFlag(Position.END, "\ninto " + var); }
class class_name[name] begin[{] method[into, return_type[type[C]], modifier[public], parameter[var]] begin[{] return[call[.addFlag, parameter[member[Position.END], binary_operation[literal["\ninto "], +, member[.var]]]]] end[}] END[}]
annotation[@] identifier[WithBridgeMethods] operator[SEP] identifier[value] operator[=] identifier[MySQLQuery] operator[SEP] Keyword[class] , identifier[castRequired] operator[=] literal[boolean] operator[SEP] Keyword[public] identifier[C] identifier[into] operator[SEP] identifier[String] identifier[var] operator[SEP]...
public DMatrixRMaj getQ() { DMatrixRMaj Q = CommonOps_DDRM.identity(QR.numRows); DMatrixRMaj Q_k = new DMatrixRMaj(QR.numRows,QR.numRows); DMatrixRMaj u = new DMatrixRMaj(QR.numRows,1); DMatrixRMaj temp = new DMatrixRMaj(1,1); int N = Math.min(QR.numCols,QR.numRows); /...
class class_name[name] begin[{] method[getQ, return_type[type[DMatrixRMaj]], modifier[public], parameter[]] begin[{] local_variable[type[DMatrixRMaj], Q] local_variable[type[DMatrixRMaj], Q_k] local_variable[type[DMatrixRMaj], u] local_variable[type[DMatrixRMaj], temp] l...
Keyword[public] identifier[DMatrixRMaj] identifier[getQ] operator[SEP] operator[SEP] { identifier[DMatrixRMaj] identifier[Q] operator[=] identifier[CommonOps_DDRM] operator[SEP] identifier[identity] operator[SEP] identifier[QR] operator[SEP] identifier[numRows] operator[SEP] operator[SEP] identifier[DMatrixRMaj]...
private static void updateCheckConflict( Map<TemporalField, Long> fieldValues, TemporalField targetField, TemporalField changeField, long changeValue) { Long old = fieldValues.put(changeField, changeValue); if (old != null && changeValue != old.lo...
class class_name[name] begin[{] method[updateCheckConflict, return_type[void], modifier[private static], parameter[fieldValues, targetField, changeField, changeValue]] begin[{] local_variable[type[Long], old] if[binary_operation[binary_operation[member[.old], !=, literal[null]], &&, bin...
Keyword[private] Keyword[static] Keyword[void] identifier[updateCheckConflict] operator[SEP] identifier[Map] operator[<] identifier[TemporalField] , identifier[Long] operator[>] identifier[fieldValues] , identifier[TemporalField] identifier[targetField] , identifier[TemporalField] identifier[changeField] , Keyword[...
@Override public SortedMap<String, Meter> getMeters(MetricFilter filter) { return getSimplyNamedMetrics(Meter.class, Optional.of(filter)); }
class class_name[name] begin[{] method[getMeters, return_type[type[SortedMap]], modifier[public], parameter[filter]] begin[{] return[call[.getSimplyNamedMetrics, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=ReferenceType(arguments=None, dimensions=N...
annotation[@] identifier[Override] Keyword[public] identifier[SortedMap] operator[<] identifier[String] , identifier[Meter] operator[>] identifier[getMeters] operator[SEP] identifier[MetricFilter] identifier[filter] operator[SEP] { Keyword[return] identifier[getSimplyNamedMetrics] operator[SEP] identifier[Meter...
static TranslateTextResponse translateTextWithGlossary( String projectId, String location, String name, String text, String sourceLanguageCode, String targetLanguageCode) { try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) { Locati...
class class_name[name] begin[{] method[translateTextWithGlossary, return_type[type[TranslateTextResponse]], modifier[static], parameter[projectId, location, name, text, sourceLanguageCode, targetLanguageCode]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDe...
Keyword[static] identifier[TranslateTextResponse] identifier[translateTextWithGlossary] operator[SEP] identifier[String] identifier[projectId] , identifier[String] identifier[location] , identifier[String] identifier[name] , identifier[String] identifier[text] , identifier[String] identifier[sourceLanguageCode] , ...
public Object saveState(FacesContext context) { if (context == null) { throw new NullPointerException(); } // If initial state has been marked, we don't need to // save any state. if (initialStateMarked()) { return null; } // At ...
class class_name[name] begin[{] method[saveState, return_type[type[Object]], modifier[public], parameter[context]] begin[{] if[binary_operation[member[.context], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=N...
Keyword[public] identifier[Object] identifier[saveState] operator[SEP] identifier[FacesContext] identifier[context] operator[SEP] { Keyword[if] operator[SEP] identifier[context] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[NullPointerException] operator[SEP] operator...
@Override public DisableImportFindingsForProductResult disableImportFindingsForProduct(DisableImportFindingsForProductRequest request) { request = beforeClientExecution(request); return executeDisableImportFindingsForProduct(request); }
class class_name[name] begin[{] method[disableImportFindingsForProduct, return_type[type[DisableImportFindingsForProductResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeDisabl...
annotation[@] identifier[Override] Keyword[public] identifier[DisableImportFindingsForProductResult] identifier[disableImportFindingsForProduct] operator[SEP] identifier[DisableImportFindingsForProductRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] o...
public static Map makeMap(Mapper mapper, Enumeration en, boolean includeNull) { HashMap h = new HashMap(); for (; en.hasMoreElements();) { Object k = en.nextElement(); Object v = mapper.map(k); if (includeNull || v != null) { h.put(k, v); }...
class class_name[name] begin[{] method[makeMap, return_type[type[Map]], modifier[public static], parameter[mapper, en, includeNull]] begin[{] local_variable[type[HashMap], h] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableD...
Keyword[public] Keyword[static] identifier[Map] identifier[makeMap] operator[SEP] identifier[Mapper] identifier[mapper] , identifier[Enumeration] identifier[en] , Keyword[boolean] identifier[includeNull] operator[SEP] { identifier[HashMap] identifier[h] operator[=] Keyword[new] identifier[HashMap] operator[SEP...
public static boolean blockColourMatches(IBlockState bs, List<Colour> allowedColours) { for (IProperty prop : bs.getProperties().keySet()) { if (prop.getName().equals("color") && prop.getValueClass() == net.minecraft.item.EnumDyeColor.class) { // The block in ...
class class_name[name] begin[{] method[blockColourMatches, return_type[type[boolean]], modifier[public static], parameter[bs, allowedColours]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getName, ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[blockColourMatches] operator[SEP] identifier[IBlockState] identifier[bs] , identifier[List] operator[<] identifier[Colour] operator[>] identifier[allowedColours] operator[SEP] { Keyword[for] operator[SEP] identifier[IProperty] identifier[prop] operator...
private TaskDef getTaskDefFromDB(String name) { final String READ_ONE_TASKDEF_QUERY = "SELECT json_data FROM meta_task_def WHERE name = ?"; return queryWithTransaction(READ_ONE_TASKDEF_QUERY, q -> q.addParameter(name).executeAndFetchFirst(TaskDef.class)); }
class class_name[name] begin[{] method[getTaskDefFromDB, return_type[type[TaskDef]], modifier[private], parameter[name]] begin[{] local_variable[type[String], READ_ONE_TASKDEF_QUERY] return[call[.queryWithTransaction, parameter[member[.READ_ONE_TASKDEF_QUERY], LambdaExpression(body=MethodInvoca...
Keyword[private] identifier[TaskDef] identifier[getTaskDefFromDB] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[final] identifier[String] identifier[READ_ONE_TASKDEF_QUERY] operator[=] literal[String] operator[SEP] Keyword[return] identifier[queryWithTransaction] operator[SEP] identif...
public static String getFirstUpperName(String name) { if (StringUtils.isBlank(name)) { return null; } String firstChar = name.substring(0, 1).toUpperCase(); return firstChar + name.substring(1); }
class class_name[name] begin[{] method[getFirstUpperName, return_type[type[String]], modifier[public static], parameter[name]] begin[{] if[call[StringUtils.isBlank, parameter[member[.name]]]] begin[{] return[literal[null]] else begin[{] None end[}] local_vari...
Keyword[public] Keyword[static] identifier[String] identifier[getFirstUpperName] operator[SEP] identifier[String] identifier[name] operator[SEP] { Keyword[if] operator[SEP] identifier[StringUtils] operator[SEP] identifier[isBlank] operator[SEP] identifier[name] operator[SEP] operator[SEP] { Keyword[re...
public <X> X cast(final Class<X> cls) { if (cls == null) { throw new IllegalArgumentException("Parameter 'cls' muss angegeben werden"); } final Class<?> beanClass = bean.getClass(); if (cls.isAssignableFrom(beanClass)) { return cls.cast(bean); } t...
class class_name[name] begin[{] method[cast, return_type[type[X]], modifier[public], parameter[cls]] begin[{] if[binary_operation[member[.cls], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier...
Keyword[public] operator[<] identifier[X] operator[>] identifier[X] identifier[cast] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[X] operator[>] identifier[cls] operator[SEP] { Keyword[if] operator[SEP] identifier[cls] operator[==] Other[null] operator[SEP] { Keyword[throw] Ke...
@Transactional public Object getField(ProcessInstance processInstance, FieldDescriptor fd) { Object o = getContextDAO().getContext(processInstance.getObjectInstance()); String prefix="get"; if (fd.getType().endsWith("Boolean")) { prefix="is"; } String name=prefix+StringUtils.capitalize(fd.getName()); tr...
class class_name[name] begin[{] method[getField, return_type[type[Object]], modifier[public], parameter[processInstance, fd]] begin[{] local_variable[type[Object], o] local_variable[type[String], prefix] if[call[fd.getType, parameter[]]] begin[{] assign[m...
annotation[@] identifier[Transactional] Keyword[public] identifier[Object] identifier[getField] operator[SEP] identifier[ProcessInstance] identifier[processInstance] , identifier[FieldDescriptor] identifier[fd] operator[SEP] { identifier[Object] identifier[o] operator[=] identifier[getContextDAO] operator[SEP] ...
private String _getCookiePath(ExternalContext externalContext) { String contextPath = externalContext.getRequestContextPath(); if (contextPath == null || "".equals(contextPath)) { contextPath = "/"; } return contextPath; }
class class_name[name] begin[{] method[_getCookiePath, return_type[type[String]], modifier[private], parameter[externalContext]] begin[{] local_variable[type[String], contextPath] if[binary_operation[binary_operation[member[.contextPath], ==, literal[null]], ||, literal[""]]] begin[{] ...
Keyword[private] identifier[String] identifier[_getCookiePath] operator[SEP] identifier[ExternalContext] identifier[externalContext] operator[SEP] { identifier[String] identifier[contextPath] operator[=] identifier[externalContext] operator[SEP] identifier[getRequestContextPath] operator[SEP] operator[SEP] opera...
public <T extends Widget & Checkable> boolean uncheck(T checkableWidget) { if (hasChild(checkableWidget)) { return checkInternal(checkableWidget, false); } return false; }
class class_name[name] begin[{] method[uncheck, return_type[type[boolean]], modifier[public], parameter[checkableWidget]] begin[{] if[call[.hasChild, parameter[member[.checkableWidget]]]] begin[{] return[call[.checkInternal, parameter[member[.checkableWidget], literal[false]]]] ...
Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[Widget] operator[&] identifier[Checkable] operator[>] Keyword[boolean] identifier[uncheck] operator[SEP] identifier[T] identifier[checkableWidget] operator[SEP] { Keyword[if] operator[SEP] identifier[hasChild] operator[SEP] identifier[checkabl...
private void addDayHeadLabels() { for (JLabel it : getDayHeadLabels()) { it.setVerticalAlignment(JLabel.CENTER); it.setHorizontalAlignment(JLabel.CENTER); daysPanel.add(it); } }
class class_name[name] begin[{] method[addDayHeadLabels, return_type[void], modifier[private], parameter[]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=CENTER, postfix_operators=[], prefix_operators=...
Keyword[private] Keyword[void] identifier[addDayHeadLabels] operator[SEP] operator[SEP] { Keyword[for] operator[SEP] identifier[JLabel] identifier[it] operator[:] identifier[getDayHeadLabels] operator[SEP] operator[SEP] operator[SEP] { identifier[it] operator[SEP] identifier[setVerticalAlignment] ope...
private Schema readUnion(JsonReader reader, Set<String> knownRecords) throws IOException { ImmutableList.Builder<Schema> unionSchemas = ImmutableList.builder(); reader.beginArray(); while (reader.peek() != JsonToken.END_ARRAY) { unionSchemas.add(read(reader, knownRecords)); } reader.endArray()...
class class_name[name] begin[{] method[readUnion, return_type[type[Schema]], modifier[private], parameter[reader, knownRecords]] begin[{] local_variable[type[ImmutableList], unionSchemas] call[reader.beginArray, parameter[]] while[binary_operation[call[reader.peek, param...
Keyword[private] identifier[Schema] identifier[readUnion] operator[SEP] identifier[JsonReader] identifier[reader] , identifier[Set] operator[<] identifier[String] operator[>] identifier[knownRecords] operator[SEP] Keyword[throws] identifier[IOException] { identifier[ImmutableList] operator[SEP] identifier[Build...
private static String[] readArgsFile(String argsFile) throws IOException { final ArrayList<String> lines = new ArrayList<String>(); final BufferedReader reader = new BufferedReader( new InputStreamReader( new FileInputStream(argsFile), "UTF-8")); try { String line; while ((li...
class class_name[name] begin[{] method[readArgsFile, return_type[type[String]], modifier[private static], parameter[argsFile]] begin[{] local_variable[type[ArrayList], lines] local_variable[type[BufferedReader], reader] TryStatement(block=[LocalVariableDeclaration(annotations=[], declar...
Keyword[private] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[readArgsFile] operator[SEP] identifier[String] identifier[argsFile] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[final] identifier[ArrayList] operator[<] identifier[String] operator[>] identifier[lines] ...
public Object request(String method, boolean hasBody, Closure configClosure) throws ClientProtocolException, IOException { return this.doRequest(this.defaultURI.toURI(), method, this.defaultContentType, hasBody, configClosure); }
class class_name[name] begin[{] method[request, return_type[type[Object]], modifier[public], parameter[method, hasBody, configClosure]] begin[{] return[THIS[call[None.doRequest, parameter[THIS[member[None.defaultURI]call[None.toURI, parameter[]]], member[.method], THIS[member[None.defaultContentType]],...
Keyword[public] identifier[Object] identifier[request] operator[SEP] identifier[String] identifier[method] , Keyword[boolean] identifier[hasBody] , identifier[Closure] identifier[configClosure] operator[SEP] Keyword[throws] identifier[ClientProtocolException] , identifier[IOException] { Keyword[return] Keywor...
public java.util.List<CodingDt> getCode() { if (myCode == null) { myCode = new java.util.ArrayList<CodingDt>(); } return myCode; }
class class_name[name] begin[{] method[getCode, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.myCode], ==, literal[null]]] begin[{] assign[member[.myCode], ClassCreator(arguments=[], body=None, constructor_type_arguments=Non...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[CodingDt] operator[>] identifier[getCode] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[myCode] operator[==] Other[null] operator[SEP] { identifier[myCode] operato...
public String substitute(List<String> values) throws IllegalArgumentException { if (values == null) { throw new IllegalArgumentException("values is null"); } Iterator<String> iter = values.iterator(); StringBuilder sb = new StringBuilder(); for (UriChunk chunk : uriCh...
class class_name[name] begin[{] method[substitute, return_type[type[String]], modifier[public], parameter[values]] begin[{] if[binary_operation[member[.values], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operat...
Keyword[public] identifier[String] identifier[substitute] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[values] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { Keyword[if] operator[SEP] identifier[values] operator[==] Other[null] operator[SEP] { ...
private static Node getConstantDeclValue(Node name) { Node parent = name.getParent(); if (parent == null) { return null; } if (name.isName()) { if (parent.isConst()) { return name.getFirstChild(); } else if (!parent.isVar()) { return null; } JSDocInfo jsdoc ...
class class_name[name] begin[{] method[getConstantDeclValue, return_type[type[Node]], modifier[private static], parameter[name]] begin[{] local_variable[type[Node], parent] if[binary_operation[member[.parent], ==, literal[null]]] begin[{] return[literal[null]] else b...
Keyword[private] Keyword[static] identifier[Node] identifier[getConstantDeclValue] operator[SEP] identifier[Node] identifier[name] operator[SEP] { identifier[Node] identifier[parent] operator[=] identifier[name] operator[SEP] identifier[getParent] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SE...
protected void invokeHandler(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException { String name = OpenCmsCore.getInstance().getPathInfo(req).substring(HANDLE_PATH.length()); I_CmsRequestHandler handler = OpenCmsCore.getInstance().getRequestHandler(name); if ((ha...
class class_name[name] begin[{] method[invokeHandler, return_type[void], modifier[protected], parameter[req, res]] begin[{] local_variable[type[String], name] local_variable[type[I_CmsRequestHandler], handler] if[binary_operation[binary_operation[member[.handler], ==, literal[nu...
Keyword[protected] Keyword[void] identifier[invokeHandler] operator[SEP] identifier[HttpServletRequest] identifier[req] , identifier[HttpServletResponse] identifier[res] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ServletException] { identifier[String] identifier[name] operator[=] identi...
public void fireEvent(EventModel event) throws IllegalIDException, org.intellimate.izou.events.MultipleEventsException { if(events == null) return; if(events.isEmpty()) { events.add(event); } else { throw new org.intellimate.izou.events.MultipleEventsException(); ...
class class_name[name] begin[{] method[fireEvent, return_type[void], modifier[public], parameter[event]] begin[{] if[binary_operation[member[.events], ==, literal[null]]] begin[{] return[None] else begin[{] None end[}] if[call[events.isEmpty, parameter[]]] begin[...
Keyword[public] Keyword[void] identifier[fireEvent] operator[SEP] identifier[EventModel] identifier[event] operator[SEP] Keyword[throws] identifier[IllegalIDException] , identifier[org] operator[SEP] identifier[intellimate] operator[SEP] identifier[izou] operator[SEP] identifier[events] operator[SEP] identifier[Multip...
@Override public AutoscalePolicyFilter or(AutoscalePolicyFilter otherFilter) { checkNotNull(otherFilter, "Other filter must be not a null"); evaluation = new OrEvaluation<>(evaluation, otherFilter, AutoscalePolicyMetadata::getName); return this; }
class class_name[name] begin[{] method[or, return_type[type[AutoscalePolicyFilter]], modifier[public], parameter[otherFilter]] begin[{] call[.checkNotNull, parameter[member[.otherFilter], literal["Other filter must be not a null"]]] assign[member[.evaluation], ClassCreator(argum...
annotation[@] identifier[Override] Keyword[public] identifier[AutoscalePolicyFilter] identifier[or] operator[SEP] identifier[AutoscalePolicyFilter] identifier[otherFilter] operator[SEP] { identifier[checkNotNull] operator[SEP] identifier[otherFilter] , literal[String] operator[SEP] operator[SEP] identifier[eval...
private String getConcatenationPattern(ULocale locale) { ICUResourceBundle rb = (ICUResourceBundle) UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, locale); ICUResourceBundle dtPatternsRb = rb.getWithFallback("calendar/gregorian/DateTimePatterns"); ICUResourceBundle concatenationPattern...
class class_name[name] begin[{] method[getConcatenationPattern, return_type[type[String]], modifier[private], parameter[locale]] begin[{] local_variable[type[ICUResourceBundle], rb] local_variable[type[ICUResourceBundle], dtPatternsRb] local_variable[type[ICUResourceBundle], concatenati...
Keyword[private] identifier[String] identifier[getConcatenationPattern] operator[SEP] identifier[ULocale] identifier[locale] operator[SEP] { identifier[ICUResourceBundle] identifier[rb] operator[=] operator[SEP] identifier[ICUResourceBundle] operator[SEP] identifier[UResourceBundle] operator[SEP] identifier[getB...
@Override public <T extends TreeNode> T readTree(JsonParser p) throws IOException { if (_treeCodec == null) { _noTreeCodec("write TreeNode"); } return _treeCodec.readTree(p); }
class class_name[name] begin[{] method[readTree, return_type[type[T]], modifier[public], parameter[p]] begin[{] if[binary_operation[member[._treeCodec], ==, literal[null]]] begin[{] call[._noTreeCodec, parameter[literal["write TreeNode"]]] else begin[{] None ...
annotation[@] identifier[Override] Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[TreeNode] operator[>] identifier[T] identifier[readTree] operator[SEP] identifier[JsonParser] identifier[p] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[_treeCo...
protected static String serialize(Serializable serializable) throws JMSException { if (serializable == null) { return null; } String serializedString; ObjectOutputStream objectOutputStream = null; try { ByteArrayOutputStream bytesOut = new ByteArrayOutputS...
class class_name[name] begin[{] method[serialize, return_type[type[String]], modifier[static protected], parameter[serializable]] begin[{] if[binary_operation[member[.serializable], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[protected] Keyword[static] identifier[String] identifier[serialize] operator[SEP] identifier[Serializable] identifier[serializable] operator[SEP] Keyword[throws] identifier[JMSException] { Keyword[if] operator[SEP] identifier[serializable] operator[==] Other[null] operator[SEP] { Keyword[retur...
public static <T extends Enum<T> & Defaultable> Properties getDefaultProperties(Class<T> keyType, Translator<T> translator) { Properties defaults = new Properties(); for (T key : keyType.getEnumConstants()) ...
class class_name[name] begin[{] method[getDefaultProperties, return_type[type[Properties]], modifier[public static], parameter[keyType, translator]] begin[{] local_variable[type[Properties], defaults] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Method...
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Enum] operator[<] identifier[T] operator[>] operator[&] identifier[Defaultable] operator[>] identifier[Properties] identifier[getDefaultProperties] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[keyTy...
public Parameter<T> build() { if (this.name == null) { throw new IllegalArgumentException("Name is missing."); } if (this.type == null) { throw new IllegalArgumentException("Type is missing."); } return new Parameter<T>( this.name, this.type, this.applicationId, ...
class class_name[name] begin[{] method[build, return_type[type[Parameter]], modifier[public], parameter[]] begin[{] if[binary_operation[THIS[member[None.name]], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operat...
Keyword[public] identifier[Parameter] operator[<] identifier[T] operator[>] identifier[build] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[name] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] o...
@Override public void setParameters(Object[] params) throws CDKException { if (params.length > 1) { throw new CDKException("weight only expects one parameter"); } if (!(params[0] instanceof String)) { throw new CDKException("The parameter must be of type String"); ...
class class_name[name] begin[{] method[setParameters, return_type[void], modifier[public], parameter[params]] begin[{] if[binary_operation[member[params.length], >, literal[1]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setParameters] operator[SEP] identifier[Object] operator[SEP] operator[SEP] identifier[params] operator[SEP] Keyword[throws] identifier[CDKException] { Keyword[if] operator[SEP] identifier[params] operator[SEP] identifier[length] operato...
public static UnitResponse doCheck(WhereAction action, Map map) { String[] whereArray = action.searchConditions(); if (whereArray != null) { for (String whereFragment : whereArray) { if (!action.ignoreWhereFragment(whereFragment, map)) { return UnitRespons...
class class_name[name] begin[{] method[doCheck, return_type[type[UnitResponse]], modifier[public static], parameter[action, map]] begin[{] local_variable[type[String], whereArray] if[binary_operation[member[.whereArray], !=, literal[null]]] begin[{] ForStatement(body=BlockSt...
Keyword[public] Keyword[static] identifier[UnitResponse] identifier[doCheck] operator[SEP] identifier[WhereAction] identifier[action] , identifier[Map] identifier[map] operator[SEP] { identifier[String] operator[SEP] operator[SEP] identifier[whereArray] operator[=] identifier[action] operator[SEP] identifier[se...
public TimelineItem insertTimelineItem(TimelineItem item) throws IOException { return getMirror().timeline().insert(item).execute(); }
class class_name[name] begin[{] method[insertTimelineItem, return_type[type[TimelineItem]], modifier[public], parameter[item]] begin[{] return[call[.getMirror, parameter[]]] end[}] END[}]
Keyword[public] identifier[TimelineItem] identifier[insertTimelineItem] operator[SEP] identifier[TimelineItem] identifier[item] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] identifier[getMirror] operator[SEP] operator[SEP] operator[SEP] identifier[timeline] operator[SEP] operator[SEP] ...
public byte getByte(int index) { checkIndexLength(index, SizeOf.SIZE_OF_BYTE); return unsafe.getByte(base, address + index); }
class class_name[name] begin[{] method[getByte, return_type[type[byte]], modifier[public], parameter[index]] begin[{] call[.checkIndexLength, parameter[member[.index], member[SizeOf.SIZE_OF_BYTE]]] return[call[unsafe.getByte, parameter[member[.base], binary_operation[member[.address], +...
Keyword[public] Keyword[byte] identifier[getByte] operator[SEP] Keyword[int] identifier[index] operator[SEP] { identifier[checkIndexLength] operator[SEP] identifier[index] , identifier[SizeOf] operator[SEP] identifier[SIZE_OF_BYTE] operator[SEP] operator[SEP] Keyword[return] identifier[unsafe] operator[SEP] ide...
protected void checkTransactionSupported(Connection conn) throws SQLException, DbRuntimeException { if (null == isSupportTransaction) { isSupportTransaction = conn.getMetaData().supportsTransactions(); } if (false == isSupportTransaction) { throw new DbRuntimeException("Transaction not supported for cu...
class class_name[name] begin[{] method[checkTransactionSupported, return_type[void], modifier[protected], parameter[conn]] begin[{] if[binary_operation[literal[null], ==, member[.isSupportTransaction]]] begin[{] assign[member[.isSupportTransaction], call[conn.getMetaData...
Keyword[protected] Keyword[void] identifier[checkTransactionSupported] operator[SEP] identifier[Connection] identifier[conn] operator[SEP] Keyword[throws] identifier[SQLException] , identifier[DbRuntimeException] { Keyword[if] operator[SEP] Other[null] operator[==] identifier[isSupportTransaction] operator[SEP]...
@Override public CommercePriceListAccountRel findByC_C(long commerceAccountId, long commercePriceListId) throws NoSuchPriceListAccountRelException { CommercePriceListAccountRel commercePriceListAccountRel = fetchByC_C(commerceAccountId, commercePriceListId); if (commercePriceListAccountRel == null) { Str...
class class_name[name] begin[{] method[findByC_C, return_type[type[CommercePriceListAccountRel]], modifier[public], parameter[commerceAccountId, commercePriceListId]] begin[{] local_variable[type[CommercePriceListAccountRel], commercePriceListAccountRel] if[binary_operation[member[.comm...
annotation[@] identifier[Override] Keyword[public] identifier[CommercePriceListAccountRel] identifier[findByC_C] operator[SEP] Keyword[long] identifier[commerceAccountId] , Keyword[long] identifier[commercePriceListId] operator[SEP] Keyword[throws] identifier[NoSuchPriceListAccountRelException] { identifier[Com...
public double[][] getL() { double[][] L = new double[m][n]; L[0][0] = 1.; for(int i = 1; i < m; i++) { final double[] Li = L[i]; System.arraycopy(LU[i], 0, Li, 0, Math.min(i, n)); if (i < n) { Li[i] = 1.; } } return L; }
class class_name[name] begin[{] method[getL, return_type[type[double]], modifier[public], parameter[]] begin[{] local_variable[type[double], L] assign[member[.L], literal[1.]] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], decla...
Keyword[public] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[getL] operator[SEP] operator[SEP] { Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[L] operator[=] Keyword[new] Keyword[double] operator[SEP] identifier[m] operator[SEP] operator[...
private static Object getCellValue(Cell cell) throws Exception { Object value = null; if (cell instanceof ErrorCell) { value = null; } else if (cell instanceof LabelCell) { value = ((LabelCell) cell).getString(); } else if (cell instanceof NumberCell) { ...
class class_name[name] begin[{] method[getCellValue, return_type[type[Object]], modifier[private static], parameter[cell]] begin[{] local_variable[type[Object], value] if[binary_operation[member[.cell], instanceof, type[ErrorCell]]] begin[{] assign[member[.value]...
Keyword[private] Keyword[static] identifier[Object] identifier[getCellValue] operator[SEP] identifier[Cell] identifier[cell] operator[SEP] Keyword[throws] identifier[Exception] { identifier[Object] identifier[value] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[cell] Keyword[instance...
public static InputStream getFirstAvailableStream(Collection<String> names) { ResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(IOUtils.class.getClassLoader()); for (String name : names) { try { InputStream stream = getInputStreamWithResolver(resolver, name); if (stream != null) ...
class class_name[name] begin[{] method[getFirstAvailableStream, return_type[type[InputStream]], modifier[public static], parameter[names]] begin[{] local_variable[type[ResourcePatternResolver], resolver] ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[LocalVariableD...
Keyword[public] Keyword[static] identifier[InputStream] identifier[getFirstAvailableStream] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[names] operator[SEP] { identifier[ResourcePatternResolver] identifier[resolver] operator[=] Keyword[new] identifier[PathMatchingRe...
public boolean isApplicable(Signature s) { // to make sure what the isAssignableFrom method means: // Object.class.isAssignableFrom(String.class) == true if (this.signature.length == s.signature.length) { for (int i = 0; i < this.signature.length; i++) { Class<?> type = s.signature[i]; ...
class class_name[name] begin[{] method[isApplicable, return_type[type[boolean]], modifier[public], parameter[s]] begin[{] if[binary_operation[THIS[member[None.signature]member[None.length]], ==, member[s.signature.length]]] begin[{] ForStatement(body=BlockStatement(label=None, state...
Keyword[public] Keyword[boolean] identifier[isApplicable] operator[SEP] identifier[Signature] identifier[s] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[signature] operator[SEP] identifier[length] operator[==] identifier[s] operator[SEP] identifier[signature] operator[SEP] ide...
public void setAreHeadersSticky(boolean areHeadersSticky) { mAreHeadersSticky = areHeadersSticky; if (!areHeadersSticky) { clearHeader(); } else { updateOrClearHeader(mList.getFixedFirstVisibleItem()); } // invalidating the list will trigger dispatchDraw()...
class class_name[name] begin[{] method[setAreHeadersSticky, return_type[void], modifier[public], parameter[areHeadersSticky]] begin[{] assign[member[.mAreHeadersSticky], member[.areHeadersSticky]] if[member[.areHeadersSticky]] begin[{] call[.clearHeader, ...
Keyword[public] Keyword[void] identifier[setAreHeadersSticky] operator[SEP] Keyword[boolean] identifier[areHeadersSticky] operator[SEP] { identifier[mAreHeadersSticky] operator[=] identifier[areHeadersSticky] operator[SEP] Keyword[if] operator[SEP] operator[!] identifier[areHeadersSticky] operator[SEP] { ...
public <OOO> HttpServerInterceptorChain<I, O, II, OOO> nextWithResponseTransform(final TransformingInterceptor<II, OO, II, OOO> next) { return new HttpServerInterceptorChain<>(new TransformingInterceptor<I, O, II, OOO>() { @Override public RequestHandler<I, O> intercept(RequestHandler<II...
class class_name[name] begin[{] method[nextWithResponseTransform, return_type[type[HttpServerInterceptorChain]], modifier[public], parameter[next]] begin[{] return[ClassCreator(arguments=[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[Ret...
Keyword[public] operator[<] identifier[OOO] operator[>] identifier[HttpServerInterceptorChain] operator[<] identifier[I] , identifier[O] , identifier[II] , identifier[OOO] operator[>] identifier[nextWithResponseTransform] operator[SEP] Keyword[final] identifier[TransformingInterceptor] operator[<] identifier[II] , ...
public static CeSymmResult analyze(Atom[] atoms) throws StructureException { CESymmParameters params = new CESymmParameters(); return analyze(atoms, params); }
class class_name[name] begin[{] method[analyze, return_type[type[CeSymmResult]], modifier[public static], parameter[atoms]] begin[{] local_variable[type[CESymmParameters], params] return[call[.analyze, parameter[member[.atoms], member[.params]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CeSymmResult] identifier[analyze] operator[SEP] identifier[Atom] operator[SEP] operator[SEP] identifier[atoms] operator[SEP] Keyword[throws] identifier[StructureException] { identifier[CESymmParameters] identifier[params] operator[=] Keyword[new] identifier[CESymmParame...
public void solve() { if (this.isSolved()) return; explain = false; session.setGlobal("explain", explain); if( steppingFactHandle != null ){ session.delete( steppingFactHandle ); steppingFactHandle = null; stepping = null; } this.sessio...
class class_name[name] begin[{] method[solve, return_type[void], modifier[public], parameter[]] begin[{] if[THIS[call[None.isSolved, parameter[]]]] begin[{] return[None] else begin[{] None end[}] assign[member[.explain], literal[false]] call[sessi...
Keyword[public] Keyword[void] identifier[solve] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[isSolved] operator[SEP] operator[SEP] operator[SEP] Keyword[return] operator[SEP] identifier[explain] operator[=] literal[boolean] operator[SEP] identifier[session] opera...
public Node<E> offerAndGetNode(E e) { mPutLock.lock(); try { Node newNode = mNodePool.borrowNode(e); if (mSize.get() > 0) newNode.mPrev = mTail; mTail.mNext = newNode; if (mSize.get() <= 1) { mPollLock.lock(); ...
class class_name[name] begin[{] method[offerAndGetNode, return_type[type[Node]], modifier[public], parameter[e]] begin[{] call[mPutLock.lock, parameter[]] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvoca...
Keyword[public] identifier[Node] operator[<] identifier[E] operator[>] identifier[offerAndGetNode] operator[SEP] identifier[E] identifier[e] operator[SEP] { identifier[mPutLock] operator[SEP] identifier[lock] operator[SEP] operator[SEP] operator[SEP] Keyword[try] { identifier[Node] identifier[newNode]...
public Iterable<long[]> availableCoordinates() { List<long[]> coordinates = new ArrayList<long[]>(); for (Long r : rows.keySet()) { Matrix m = rows.get(r); for (long[] c : m.availableCoordinates()) { coordinates.add(Coordinates.plus(c, new long[] { r, 0 })); } } return coordinates; }
class class_name[name] begin[{] method[availableCoordinates, return_type[type[Iterable]], modifier[public], parameter[]] begin[{] local_variable[type[List], coordinates] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclar...
Keyword[public] identifier[Iterable] operator[<] Keyword[long] operator[SEP] operator[SEP] operator[>] identifier[availableCoordinates] operator[SEP] operator[SEP] { identifier[List] operator[<] Keyword[long] operator[SEP] operator[SEP] operator[>] identifier[coordinates] operator[=] Keyword[new] identifier[Arra...
public void restoreAllTablesFromCsv(Context ctx, SQLiteDatabase db, String suffix) { for (TableHelper table : getTableHelpers()) { table.restore(db, ctx, suffix); } }
class class_name[name] begin[{] method[restoreAllTablesFromCsv, return_type[void], modifier[public], parameter[ctx, db, suffix]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=db, postfix_operators=[], ...
Keyword[public] Keyword[void] identifier[restoreAllTablesFromCsv] operator[SEP] identifier[Context] identifier[ctx] , identifier[SQLiteDatabase] identifier[db] , identifier[String] identifier[suffix] operator[SEP] { Keyword[for] operator[SEP] identifier[TableHelper] identifier[table] operator[:] identifier[ge...
private Object bootstrapSinksFromDisk() { Preconditions.checkState(sinks.isEmpty(), "Already bootstrapped?!"); final File baseDir = tuningConfig.getBasePersistDirectory(); if (!baseDir.exists()) { return null; } final File[] files = baseDir.listFiles(); if (files == null) { retur...
class class_name[name] begin[{] method[bootstrapSinksFromDisk, return_type[type[Object]], modifier[private], parameter[]] begin[{] call[Preconditions.checkState, parameter[call[sinks.isEmpty, parameter[]], literal["Already bootstrapped?!"]]] local_variable[type[File], baseDir] ...
Keyword[private] identifier[Object] identifier[bootstrapSinksFromDisk] operator[SEP] operator[SEP] { identifier[Preconditions] operator[SEP] identifier[checkState] operator[SEP] identifier[sinks] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] , literal[String] operator[SEP] operator[SEP] Keyword[...
public static void addFileOpener(ServletContext servletContext, FileOpener fileOpener, String ... extensions) { synchronized(fileOpenersLock) { @SuppressWarnings("unchecked") Map<String,FileOpener> fileOpeners = (Map<String,FileOpener>)servletContext.getAttribute(FILE_OPENERS_REQUEST_ATTRIBUTE_NAME); if(file...
class class_name[name] begin[{] method[addFileOpener, return_type[void], modifier[public static], parameter[servletContext, fileOpener, extensions]] begin[{] SYNCHRONIZED[member[.fileOpenersLock]] BEGIN[{] local_variable[type[Map], fileOpeners] if[binary_oper...
Keyword[public] Keyword[static] Keyword[void] identifier[addFileOpener] operator[SEP] identifier[ServletContext] identifier[servletContext] , identifier[FileOpener] identifier[fileOpener] , identifier[String] operator[...] identifier[extensions] operator[SEP] { Keyword[synchronized] operator[SEP] identifier[fi...
public void addRepositoryClass(I_CmsRepository repository) throws CmsConfigurationException { // check if new repositories can still be added if (m_frozen) { throw new CmsConfigurationException(Messages.get().container(Messages.ERR_NO_CONFIG_AFTER_STARTUP_0)); } m_repository...
class class_name[name] begin[{] method[addRepositoryClass, return_type[void], modifier[public], parameter[repository]] begin[{] if[member[.m_frozen]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[], prefix_op...
Keyword[public] Keyword[void] identifier[addRepositoryClass] operator[SEP] identifier[I_CmsRepository] identifier[repository] operator[SEP] Keyword[throws] identifier[CmsConfigurationException] { Keyword[if] operator[SEP] identifier[m_frozen] operator[SEP] { Keyword[throw] Keyword[new] identifier[CmsC...
@FindbugsSuppressWarnings("JLM_JSR166_UTILCONCURRENT_MONITORENTER") protected int getOrAddMapping(ObjectStreamClass desc) throws IOException { SerializableDataKey probe = new SerializableDataKey(desc, false); Integer rep = (Integer) lookup.get(probe); if (rep == null) { synchronized (lookup) { ...
class class_name[name] begin[{] method[getOrAddMapping, return_type[type[int]], modifier[protected], parameter[desc]] begin[{] local_variable[type[SerializableDataKey], probe] local_variable[type[Integer], rep] if[binary_operation[member[.rep], ==, literal[null]]] begin[{] ...
annotation[@] identifier[FindbugsSuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] Keyword[int] identifier[getOrAddMapping] operator[SEP] identifier[ObjectStreamClass] identifier[desc] operator[SEP] Keyword[throws] identifier[IOException] { identifier[SerializableDataKey] identifie...
public void setCellOnMouseUp(String onMouseUp) { _cellState.registerAttribute(AbstractHtmlState.ATTR_JAVASCRIPT, HtmlConstants.ONMOUSEUP, onMouseUp); }
class class_name[name] begin[{] method[setCellOnMouseUp, return_type[void], modifier[public], parameter[onMouseUp]] begin[{] call[_cellState.registerAttribute, parameter[member[AbstractHtmlState.ATTR_JAVASCRIPT], member[HtmlConstants.ONMOUSEUP], member[.onMouseUp]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[setCellOnMouseUp] operator[SEP] identifier[String] identifier[onMouseUp] operator[SEP] { identifier[_cellState] operator[SEP] identifier[registerAttribute] operator[SEP] identifier[AbstractHtmlState] operator[SEP] identifier[ATTR_JAVASCRIPT] , identifier[HtmlConstants] o...
@Override public ListObjectChildrenResult listObjectChildren(ListObjectChildrenRequest request) { request = beforeClientExecution(request); return executeListObjectChildren(request); }
class class_name[name] begin[{] method[listObjectChildren, return_type[type[ListObjectChildrenResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeListObjectChildren, parameter[me...
annotation[@] identifier[Override] Keyword[public] identifier[ListObjectChildrenResult] identifier[listObjectChildren] operator[SEP] identifier[ListObjectChildrenRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operat...
@Override public void visit(Event event) { assert this.kh != null : "kh wasn't set"; Event e = new Event(propId, this.uniqueIdProvider.getInstance()); e.setInterval(event.getInterval()); e.setSourceSystem(SourceSystem.DERIVED); e.setCreateDate(new Date()); this.kh.ins...
class class_name[name] begin[{] method[visit, return_type[void], modifier[public], parameter[event]] begin[{] AssertStatement(condition=BinaryOperation(operandl=This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=kh, postfix_operators=None, prefix_operators...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[visit] operator[SEP] identifier[Event] identifier[event] operator[SEP] { Keyword[assert] Keyword[this] operator[SEP] identifier[kh] operator[!=] Other[null] operator[:] literal[String] operator[SEP] identifier[Event] identifier[e] opera...
public static void w(String s, Throwable t) { log(Level.WARNING, s, t); }
class class_name[name] begin[{] method[w, return_type[void], modifier[public static], parameter[s, t]] begin[{] call[.log, parameter[member[Level.WARNING], member[.s], member[.t]]] end[}] END[}]
Keyword[public] Keyword[static] Keyword[void] identifier[w] operator[SEP] identifier[String] identifier[s] , identifier[Throwable] identifier[t] operator[SEP] { identifier[log] operator[SEP] identifier[Level] operator[SEP] identifier[WARNING] , identifier[s] , identifier[t] operator[SEP] operator[SEP] }
public final void setCurrentByte(final int n) { if (SwingUtilities.isEventDispatchThread()) { setCurrentByteIntern(n); } else { try { SwingUtilities.invokeLater(new Runnable() { public void run() { setCurrentByteI...
class class_name[name] begin[{] method[setCurrentByte, return_type[void], modifier[final public], parameter[n]] begin[{] if[call[SwingUtilities.isEventDispatchThread, parameter[]]] begin[{] call[.setCurrentByteIntern, parameter[member[.n]]] else begin[{] ...
Keyword[public] Keyword[final] Keyword[void] identifier[setCurrentByte] operator[SEP] Keyword[final] Keyword[int] identifier[n] operator[SEP] { Keyword[if] operator[SEP] identifier[SwingUtilities] operator[SEP] identifier[isEventDispatchThread] operator[SEP] operator[SEP] operator[SEP] { identifier[se...
public JvmAnnotationReference annotationRef(/* @Nullable */ String annotationTypeName, /* @Nullable */ String... values) { if (context == null || annotationTypeName == null) return null; JvmAnnotationReference result = typesFactory.createJvmAnnotationReference(); JvmType jvmType = references.findDeclaredType(a...
class class_name[name] begin[{] method[annotationRef, return_type[type[JvmAnnotationReference]], modifier[public], parameter[annotationTypeName, values]] begin[{] if[binary_operation[binary_operation[member[.context], ==, literal[null]], ||, binary_operation[member[.annotationTypeName], ==, lit...
Keyword[public] identifier[JvmAnnotationReference] identifier[annotationRef] operator[SEP] identifier[String] identifier[annotationTypeName] , identifier[String] operator[...] identifier[values] operator[SEP] { Keyword[if] operator[SEP] identifier[context] operator[==] Other[null] operator[||] identifier[annota...
@Override public void makeNoise(BufferedImage image) { int width = image.getWidth(); int height = image.getHeight(); // the curve from where the points are taken CubicCurve2D cc = new CubicCurve2D.Float(width * .1f, height * RAND.nextFloat(), width * .1f, height ...
class class_name[name] begin[{] method[makeNoise, return_type[void], modifier[public], parameter[image]] begin[{] local_variable[type[int], width] local_variable[type[int], height] local_variable[type[CubicCurve2D], cc] local_variable[type[PathIterator], pi] local_variab...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[makeNoise] operator[SEP] identifier[BufferedImage] identifier[image] operator[SEP] { Keyword[int] identifier[width] operator[=] identifier[image] operator[SEP] identifier[getWidth] operator[SEP] operator[SEP] operator[SEP] Keyword[int] i...
@Override public CreateDynamicThingGroupResult createDynamicThingGroup(CreateDynamicThingGroupRequest request) { request = beforeClientExecution(request); return executeCreateDynamicThingGroup(request); }
class class_name[name] begin[{] method[createDynamicThingGroup, return_type[type[CreateDynamicThingGroupResult]], modifier[public], parameter[request]] begin[{] assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]] return[call[.executeCreateDynamicThingGrou...
annotation[@] identifier[Override] Keyword[public] identifier[CreateDynamicThingGroupResult] identifier[createDynamicThingGroup] operator[SEP] identifier[CreateDynamicThingGroupRequest] identifier[request] operator[SEP] { identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[...
@Override public String getClassName() { String name = getProperty(AbstractNode.name); if (name == null) { final String _sourceType = getSchemaNodeSourceType(); final String _targetType = getSchemaNodeTargetType(); final String _relType = SchemaHelper.cleanPropertyName(getRelationshipType()); nam...
class class_name[name] begin[{] method[getClassName, return_type[type[String]], modifier[public], parameter[]] begin[{] local_variable[type[String], name] if[binary_operation[member[.name], ==, literal[null]]] begin[{] local_variable[type[String], _sourceType] lo...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getClassName] operator[SEP] operator[SEP] { identifier[String] identifier[name] operator[=] identifier[getProperty] operator[SEP] identifier[AbstractNode] operator[SEP] identifier[name] operator[SEP] operator[SEP] Keyword[if] operat...
public static Writer newWriter(OutputStream stream, String charset) throws UnsupportedEncodingException { return new OutputStreamWriter(stream, charset); }
class class_name[name] begin[{] method[newWriter, return_type[type[Writer]], modifier[public static], parameter[stream, charset]] begin[{] return[ClassCreator(arguments=[MemberReference(member=stream, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=charset, ...
Keyword[public] Keyword[static] identifier[Writer] identifier[newWriter] operator[SEP] identifier[OutputStream] identifier[stream] , identifier[String] identifier[charset] operator[SEP] Keyword[throws] identifier[UnsupportedEncodingException] { Keyword[return] Keyword[new] identifier[OutputStreamWriter] operato...
public String retrieveServiceStatus(String service, String cluster) throws Exception { String status = ""; String endPoint = "/service/deploy-api/deploy/status/service?service=" + service; String element = "$.status"; Future response; this.setRestProtocol("https://"); th...
class class_name[name] begin[{] method[retrieveServiceStatus, return_type[type[String]], modifier[public], parameter[service, cluster]] begin[{] local_variable[type[String], status] local_variable[type[String], endPoint] local_variable[type[String], element] local_variable[type[...
Keyword[public] identifier[String] identifier[retrieveServiceStatus] operator[SEP] identifier[String] identifier[service] , identifier[String] identifier[cluster] operator[SEP] Keyword[throws] identifier[Exception] { identifier[String] identifier[status] operator[=] literal[String] operator[SEP] identifier[Stri...
@Override public void setStatusCode(int code) { StatusCodes val = null; try { val = StatusCodes.getByOrdinal(code); } catch (IndexOutOfBoundsException e) { // no FFDC required // nothing to do, just make the undefined value below } // this...
class class_name[name] begin[{] method[setStatusCode, return_type[void], modifier[public], parameter[code]] begin[{] local_variable[type[StatusCodes], val] TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=val, postfix_operators=[], prefix_operator...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setStatusCode] operator[SEP] Keyword[int] identifier[code] operator[SEP] { identifier[StatusCodes] identifier[val] operator[=] Other[null] operator[SEP] Keyword[try] { identifier[val] operator[=] identifier[StatusCodes] operat...
@SuppressWarnings("unchecked") private static <T extends Comparable<T>> int compare(T o1, T o2) { if (o1 instanceof PMessage && o2 instanceof PMessage) { return compareMessages((PMessage) o1, (PMessage) o2); } return o1.compareTo(o2); }
class class_name[name] begin[{] method[compare, return_type[type[int]], modifier[private static], parameter[o1, o2]] begin[{] if[binary_operation[binary_operation[member[.o1], instanceof, type[PMessage]], &&, binary_operation[member[.o2], instanceof, type[PMessage]]]] begin[{] retur...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Comparable] operator[<] identifier[T] operator[>] operator[>] Keyword[int] identifier[compare] operator[SEP] identifier[T] identifier[o1] , ident...
@Override public List<IAtomType> readAtomTypes(IChemObjectBuilder builder) throws IOException { List<IAtomType> atomTypes = new ArrayList<IAtomType>(); if (ins == null) { // trying the default //logger.debug("readAtomTypes getResourceAsStream:" // ...
class class_name[name] begin[{] method[readAtomTypes, return_type[type[List]], modifier[public], parameter[builder]] begin[{] local_variable[type[List], atomTypes] if[binary_operation[member[.ins], ==, literal[null]]] begin[{] assign[member[.ins], THIS[call[None....
annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[IAtomType] operator[>] identifier[readAtomTypes] operator[SEP] identifier[IChemObjectBuilder] identifier[builder] operator[SEP] Keyword[throws] identifier[IOException] { identifier[List] operator[<] identifier[IAtomType] o...
public Interval toInterval(DateTimeZone zone) { zone = DateTimeUtils.getZone(zone); DateTime start = toDateTimeAtStartOfDay(zone); DateTime end = plusDays(1).toDateTimeAtStartOfDay(zone); return new Interval(start, end); }
class class_name[name] begin[{] method[toInterval, return_type[type[Interval]], modifier[public], parameter[zone]] begin[{] assign[member[.zone], call[DateTimeUtils.getZone, parameter[member[.zone]]]] local_variable[type[DateTime], start] local_variable[type[DateTime], end] ...
Keyword[public] identifier[Interval] identifier[toInterval] operator[SEP] identifier[DateTimeZone] identifier[zone] operator[SEP] { identifier[zone] operator[=] identifier[DateTimeUtils] operator[SEP] identifier[getZone] operator[SEP] identifier[zone] operator[SEP] operator[SEP] identifier[DateTime] identifier[s...
public String extractResource(XEvent event) { XAttribute attribute = event.getAttributes().get(KEY_RESOURCE); if (attribute == null) { return null; } else { return ((XAttributeLiteral) attribute).getValue(); } }
class class_name[name] begin[{] method[extractResource, return_type[type[String]], modifier[public], parameter[event]] begin[{] local_variable[type[XAttribute], attribute] if[binary_operation[member[.attribute], ==, literal[null]]] begin[{] return[literal[null]] else...
Keyword[public] identifier[String] identifier[extractResource] operator[SEP] identifier[XEvent] identifier[event] operator[SEP] { identifier[XAttribute] identifier[attribute] operator[=] identifier[event] operator[SEP] identifier[getAttributes] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[S...
public void getCreditHistory(@NonNull final String afterId, final int length, @NonNull final CreditHistoryOrder order, BranchListResponseListener callback) { getCreditHistory(null, afterId, length, order, callback); }
class class_name[name] begin[{] method[getCreditHistory, return_type[void], modifier[public], parameter[afterId, length, order, callback]] begin[{] call[.getCreditHistory, parameter[literal[null], member[.afterId], member[.length], member[.order], member[.callback]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[getCreditHistory] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[String] identifier[afterId] , Keyword[final] Keyword[int] identifier[length] , annotation[@] identifier[NonNull] Keyword[final] identifier[CreditHistoryOrder] identifier[order] , ident...
private CompositeExpression parseSemVerExpression() { CompositeExpression expr; if (tokens.positiveLookahead(NOT)) { tokens.consume(); consumeNextToken(LEFT_PAREN); expr = not(parseSemVerExpression()); consumeNextToken(RIGHT_PAREN); } else if (toke...
class class_name[name] begin[{] method[parseSemVerExpression, return_type[type[CompositeExpression]], modifier[private], parameter[]] begin[{] local_variable[type[CompositeExpression], expr] if[call[tokens.positiveLookahead, parameter[member[.NOT]]]] begin[{] cal...
Keyword[private] identifier[CompositeExpression] identifier[parseSemVerExpression] operator[SEP] operator[SEP] { identifier[CompositeExpression] identifier[expr] operator[SEP] Keyword[if] operator[SEP] identifier[tokens] operator[SEP] identifier[positiveLookahead] operator[SEP] identifier[NOT] operator[SEP] oper...
private void initialize(ReadOnlyVector3 a, ReadOnlyVector3 b, ReadOnlyVector3 c ) { final int verts = 3; _meshData.setVertexBuffer(BufferUtils.createVector3Buffer(3)); _meshData.setNormalBuffer(BufferUtils.createVector3Buffer(3)); final FloatBuffer tbuf = BufferUtils.createVector2Bu...
class class_name[name] begin[{] method[initialize, return_type[void], modifier[private], parameter[a, b, c]] begin[{] local_variable[type[int], verts] call[_meshData.setVertexBuffer, parameter[call[BufferUtils.createVector3Buffer, parameter[literal[3]]]]] call[_meshData....
Keyword[private] Keyword[void] identifier[initialize] operator[SEP] identifier[ReadOnlyVector3] identifier[a] , identifier[ReadOnlyVector3] identifier[b] , identifier[ReadOnlyVector3] identifier[c] operator[SEP] { Keyword[final] Keyword[int] identifier[verts] operator[=] Other[3] operator[SEP] identifier[_mesh...
public static void convertRoot(ConfigurationImpl configuration, DocletEnvironment docEnv, DocPath outputdir) throws DocFileIOException, SimpleDocletException { new SourceToHTMLConverter(configuration, docEnv, outputdir).generate(); }
class class_name[name] begin[{] method[convertRoot, return_type[void], modifier[public static], parameter[configuration, docEnv, outputdir]] begin[{] ClassCreator(arguments=[MemberReference(member=configuration, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReferen...
Keyword[public] Keyword[static] Keyword[void] identifier[convertRoot] operator[SEP] identifier[ConfigurationImpl] identifier[configuration] , identifier[DocletEnvironment] identifier[docEnv] , identifier[DocPath] identifier[outputdir] operator[SEP] Keyword[throws] identifier[DocFileIOException] , identifier[SimpleDo...
public static long getCurrentSegmentGeneration(Directory directory) throws IOException { String[] files = directory.list(); if (files == null) throw new IOException("cannot read directory " + directory + ": list() returned null"); return getCurrentSegmentGeneration(files); }
class class_name[name] begin[{] method[getCurrentSegmentGeneration, return_type[type[long]], modifier[public static], parameter[directory]] begin[{] local_variable[type[String], files] if[binary_operation[member[.files], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreato...
Keyword[public] Keyword[static] Keyword[long] identifier[getCurrentSegmentGeneration] operator[SEP] identifier[Directory] identifier[directory] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] operator[SEP] operator[SEP] identifier[files] operator[=] identifier[directory] operator[SEP] ...
private static void grantPermissions(Context ctx, Uri uri){ Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); List<ResolveInfo> resolvedIntentActivities = ctx.getPackageManager().queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); for (ResolveInfo resolvedIntentInfo : re...
class class_name[name] begin[{] method[grantPermissions, return_type[void], modifier[private static], parameter[ctx, uri]] begin[{] local_variable[type[Intent], intent] local_variable[type[List], resolvedIntentActivities] ForStatement(body=BlockStatement(label=None, statements=[LocalVar...
Keyword[private] Keyword[static] Keyword[void] identifier[grantPermissions] operator[SEP] identifier[Context] identifier[ctx] , identifier[Uri] identifier[uri] operator[SEP] { identifier[Intent] identifier[intent] operator[=] Keyword[new] identifier[Intent] operator[SEP] identifier[MediaStore] operator[SEP] ide...
public Counter<L> scoresOf(Datum<L, F> example) { if(example instanceof RVFDatum<?, ?>)return scoresOfRVFDatum((RVFDatum<L,F>)example); Collection<F> feats = example.asFeatures(); int[] features = new int[feats.size()]; int i = 0; for (F f : feats) { int index = featureIndex.indexOf(f); ...
class class_name[name] begin[{] method[scoresOf, return_type[type[Counter]], modifier[public], parameter[example]] begin[{] if[binary_operation[member[.example], instanceof, type[RVFDatum]]] begin[{] return[call[.scoresOfRVFDatum, parameter[Cast(expression=MemberReference(member=example, postfi...
Keyword[public] identifier[Counter] operator[<] identifier[L] operator[>] identifier[scoresOf] operator[SEP] identifier[Datum] operator[<] identifier[L] , identifier[F] operator[>] identifier[example] operator[SEP] { Keyword[if] operator[SEP] identifier[example] Keyword[instanceof] identifier[RVFDatum] operator...
public static String getPrettyMapOfContiguousPartitionRunLengths(final Cluster cluster, int zoneId) { Map<Integer, Integer> runLengthToCount = getMapOfContiguousPartitionRunLengths(cluster, ...
class class_name[name] begin[{] method[getPrettyMapOfContiguousPartitionRunLengths, return_type[type[String]], modifier[public static], parameter[cluster, zoneId]] begin[{] local_variable[type[Map], runLengthToCount] local_variable[type[String], prettyHistogram] local_variable[type[bool...
Keyword[public] Keyword[static] identifier[String] identifier[getPrettyMapOfContiguousPartitionRunLengths] operator[SEP] Keyword[final] identifier[Cluster] identifier[cluster] , Keyword[int] identifier[zoneId] operator[SEP] { identifier[Map] operator[<] identifier[Integer] , identifier[Integer] operator[>] ide...
@Trivial void initForRepeatingTask(boolean isFixedRate, long initialDelay, long interval) { this.initialDelay = initialDelay; this.interval = interval; this.isFixedRate = isFixedRate; }
class class_name[name] begin[{] method[initForRepeatingTask, return_type[void], modifier[default], parameter[isFixedRate, initialDelay, interval]] begin[{] assign[THIS[member[None.initialDelay]], member[.initialDelay]] assign[THIS[member[None.interval]], member[.interval]] ...
annotation[@] identifier[Trivial] Keyword[void] identifier[initForRepeatingTask] operator[SEP] Keyword[boolean] identifier[isFixedRate] , Keyword[long] identifier[initialDelay] , Keyword[long] identifier[interval] operator[SEP] { Keyword[this] operator[SEP] identifier[initialDelay] operator[=] identifier[initi...
public ClickCallback<T> setConfirmChoices (String confirm, String abort) { _confirmChoices = new String[] { confirm, abort }; return this; }
class class_name[name] begin[{] method[setConfirmChoices, return_type[type[ClickCallback]], modifier[public], parameter[confirm, abort]] begin[{] assign[member[._confirmChoices], ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[MemberReference(member=confirm, postfix_o...
Keyword[public] identifier[ClickCallback] operator[<] identifier[T] operator[>] identifier[setConfirmChoices] operator[SEP] identifier[String] identifier[confirm] , identifier[String] identifier[abort] operator[SEP] { identifier[_confirmChoices] operator[=] Keyword[new] identifier[String] operator[SEP] operator...
public com.google.api.ads.adwords.axis.v201809.cm.Label[] getLabels() { return labels; }
class class_name[name] begin[{] method[getLabels, return_type[type[com]], modifier[public], parameter[]] begin[{] return[member[.labels]] 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[cm] operator[SEP] identifier[Label] operator[SEP] operator[SEP] identif...
public Email bcc(final String personalName, final String bcc) { return bcc(new EmailAddress(personalName, bcc)); }
class class_name[name] begin[{] method[bcc, return_type[type[Email]], modifier[public], parameter[personalName, bcc]] begin[{] return[call[.bcc, parameter[ClassCreator(arguments=[MemberReference(member=personalName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(m...
Keyword[public] identifier[Email] identifier[bcc] operator[SEP] Keyword[final] identifier[String] identifier[personalName] , Keyword[final] identifier[String] identifier[bcc] operator[SEP] { Keyword[return] identifier[bcc] operator[SEP] Keyword[new] identifier[EmailAddress] operator[SEP] identifier[personalName...
public void addHole( Polygon poly ) { if( _holes == null ) { _holes = new ArrayList<Polygon>(); } _holes.add( poly ); // XXX: tests could be made here to be sure it is fully inside // addSubtraction( poly.getPoints() ); }
class class_name[name] begin[{] method[addHole, return_type[void], modifier[public], parameter[poly]] begin[{] if[binary_operation[member[._holes], ==, literal[null]]] begin[{] assign[member[._holes], ClassCreator(arguments=[], body=None, constructor_type_arguments=None,...
Keyword[public] Keyword[void] identifier[addHole] operator[SEP] identifier[Polygon] identifier[poly] operator[SEP] { Keyword[if] operator[SEP] identifier[_holes] operator[==] Other[null] operator[SEP] { identifier[_holes] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[Polygon] o...
public UserListResult getUserList(int start, int count) throws APIConnectionException, APIRequestException { return _userClient.getUserList(start, count); }
class class_name[name] begin[{] method[getUserList, return_type[type[UserListResult]], modifier[public], parameter[start, count]] begin[{] return[call[_userClient.getUserList, parameter[member[.start], member[.count]]]] end[}] END[}]
Keyword[public] identifier[UserListResult] identifier[getUserList] operator[SEP] Keyword[int] identifier[start] , Keyword[int] identifier[count] operator[SEP] Keyword[throws] identifier[APIConnectionException] , identifier[APIRequestException] { Keyword[return] identifier[_userClient] operator[SEP] identifier[...
static String xsdRawContentParse(Node node) { Node child = node.getFirstChild(); StringBuilder stringBuilder = new StringBuilder(); while (child != null) { if (child.getNodeType() == Node.TEXT_NODE) { stringBuilder.append(child.getTextContent()); } ...
class class_name[name] begin[{] method[xsdRawContentParse, return_type[type[String]], modifier[static], parameter[node]] begin[{] local_variable[type[Node], child] local_variable[type[StringBuilder], stringBuilder] while[binary_operation[member[.child], !=, literal[null]]] begin...
Keyword[static] identifier[String] identifier[xsdRawContentParse] operator[SEP] identifier[Node] identifier[node] operator[SEP] { identifier[Node] identifier[child] operator[=] identifier[node] operator[SEP] identifier[getFirstChild] operator[SEP] operator[SEP] operator[SEP] identifier[StringBuilder] identifier[...
public static void transpose(DMatrixSparseCSC A , DMatrixSparseCSC C , @Nullable IGrowArray gw ) { int []work = adjust(gw,A.numRows,A.numRows); C.reshape(A.numCols,A.numRows,A.nz_length); // compute the histogram for each row in 'a' int idx0 = A.col_idx[0]; for (int j = 1; j <= ...
class class_name[name] begin[{] method[transpose, return_type[void], modifier[public static], parameter[A, C, gw]] begin[{] local_variable[type[int], work] call[C.reshape, parameter[member[A.numCols], member[A.numRows], member[A.nz_length]]] local_variable[type[int], idx0] ...
Keyword[public] Keyword[static] Keyword[void] identifier[transpose] operator[SEP] identifier[DMatrixSparseCSC] identifier[A] , identifier[DMatrixSparseCSC] identifier[C] , annotation[@] identifier[Nullable] identifier[IGrowArray] identifier[gw] operator[SEP] { Keyword[int] operator[SEP] operator[SEP] identifie...
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "includeAllowableActions", scope = GetChildren.class) public JAXBElement<Boolean> createGetChildrenIncludeAllowableActions( Boolean value) { return new JAXBElement<Boolean>( _GetObjectOfLatestVersionIncludeAllowable...
class class_name[name] begin[{] method[createGetChildrenIncludeAllowableActions, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{] return[ClassCreator(arguments=[MemberReference(member=_GetObjectOfLatestVersionIncludeAllowableActions_QNAME, postfix_operators=[], prefix_operat...
annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[scope] operator[=] identifier[GetChildren] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[Bool...
protected IScope createStaticFeatureScope( XAbstractFeatureCall featureCall, XExpression receiver, LightweightTypeReference receiverType, TypeBucket receiverBucket, IScope parent, IFeatureScopeSession session) { return new StaticFeatureScope(parent, session, featureCall, receiver, receiverType, rece...
class class_name[name] begin[{] method[createStaticFeatureScope, return_type[type[IScope]], modifier[protected], parameter[featureCall, receiver, receiverType, receiverBucket, parent, session]] begin[{] return[ClassCreator(arguments=[MemberReference(member=parent, postfix_operators=[], prefix_operators...
Keyword[protected] identifier[IScope] identifier[createStaticFeatureScope] operator[SEP] identifier[XAbstractFeatureCall] identifier[featureCall] , identifier[XExpression] identifier[receiver] , identifier[LightweightTypeReference] identifier[receiverType] , identifier[TypeBucket] identifier[receiverBucket] , ident...
public static Option createFlag(String name, String description) { return new Option(Type.FLAG, name, 0, description); }
class class_name[name] begin[{] method[createFlag, return_type[type[Option]], modifier[public static], parameter[name, description]] begin[{] return[ClassCreator(arguments=[MemberReference(member=FLAG, postfix_operators=[], prefix_operators=[], qualifier=Type, selectors=[]), MemberReference(member=name...
Keyword[public] Keyword[static] identifier[Option] identifier[createFlag] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[description] operator[SEP] { Keyword[return] Keyword[new] identifier[Option] operator[SEP] identifier[Type] operator[SEP] identifier[FLAG] , identifier[nam...
public LdapEntry getEntityByIdentifier(IdentifierType id, List<String> inEntityTypes, List<String> propNames, boolean getMbrshipAttr, boolean getMbrAttr) throws WIMException { return getEntityByIdentifier(id.getExternalName(), id.getExternalId(), id.getUniqueName(), ...
class class_name[name] begin[{] method[getEntityByIdentifier, return_type[type[LdapEntry]], modifier[public], parameter[id, inEntityTypes, propNames, getMbrshipAttr, getMbrAttr]] begin[{] return[call[.getEntityByIdentifier, parameter[call[id.getExternalName, parameter[]], call[id.getExternalId, paramet...
Keyword[public] identifier[LdapEntry] identifier[getEntityByIdentifier] operator[SEP] identifier[IdentifierType] identifier[id] , identifier[List] operator[<] identifier[String] operator[>] identifier[inEntityTypes] , identifier[List] operator[<] identifier[String] operator[>] identifier[propNames] , Keyword[boolean...
public static void dumpPositions(AiMesh mesh) { if (!mesh.hasPositions()) { System.out.println("mesh has no vertex positions"); return; } for (int i = 0; i < mesh.getNumVertices(); i++) { System.out.println("[" + mesh.getPositionX(...
class class_name[name] begin[{] method[dumpPositions, return_type[void], modifier[public static], parameter[mesh]] begin[{] if[call[mesh.hasPositions, parameter[]]] begin[{] call[System.out.println, parameter[literal["mesh has no vertex positions"]]] return[N...
Keyword[public] Keyword[static] Keyword[void] identifier[dumpPositions] operator[SEP] identifier[AiMesh] identifier[mesh] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[mesh] operator[SEP] identifier[hasPositions] operator[SEP] operator[SEP] operator[SEP] { identifier[System] operato...
public String getSubSummaryRow(final File path) throws IOException { Counts sum = subDirSum(path); return String.format("<tr bgcolor=\"%s\"><th style=\"text-align: left\">%s</th><td>%s</td></tr>", color(sum), FitUtils.htmlSafeFile(dirHelper.abs2rel(new File("").getAbsolutePath(), path.getAbsolutePath())), sum....
class class_name[name] begin[{] method[getSubSummaryRow, return_type[type[String]], modifier[public], parameter[path]] begin[{] local_variable[type[Counts], sum] return[call[String.format, parameter[literal["<tr bgcolor=\"%s\"><th style=\"text-align: left\">%s</th><td>%s</td></tr>"], call[.colo...
Keyword[public] identifier[String] identifier[getSubSummaryRow] operator[SEP] Keyword[final] identifier[File] identifier[path] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Counts] identifier[sum] operator[=] identifier[subDirSum] operator[SEP] identifier[path] operator[SEP] operator[SEP] Ke...
public String getTableNames(boolean bAddQuotes) { return (m_tableName == null) ? Record.formatTableNames(PART_FILE, bAddQuotes) : super.getTableNames(bAddQuotes); }
class class_name[name] begin[{] method[getTableNames, return_type[type[String]], modifier[public], parameter[bAddQuotes]] begin[{] return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=m_tableName, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operan...
Keyword[public] identifier[String] identifier[getTableNames] operator[SEP] Keyword[boolean] identifier[bAddQuotes] operator[SEP] { Keyword[return] operator[SEP] identifier[m_tableName] operator[==] Other[null] operator[SEP] operator[?] identifier[Record] operator[SEP] identifier[formatTableNames] operator[SEP] i...
public void setElements( final List<? extends Binding> bindings ) { if (bindings == null || bindings.size() == 0) { clear(); return; } for (Binding binding : bindings) { if (binding == null) { thr...
class class_name[name] begin[{] method[setElements, return_type[void], modifier[public], parameter[bindings]] begin[{] if[binary_operation[binary_operation[member[.bindings], ==, literal[null]], ||, binary_operation[call[bindings.size, parameter[]], ==, literal[0]]]] begin[{] ...
Keyword[public] Keyword[void] identifier[setElements] operator[SEP] Keyword[final] identifier[List] operator[<] operator[?] Keyword[extends] identifier[Binding] operator[>] identifier[bindings] operator[SEP] { Keyword[if] operator[SEP] identifier[bindings] operator[==] Other[null] operator[||] identifier[binding...
public Object getValue(ELContext context, Object base, Object property) { if (context == null) { throw new NullPointerException(); } if (base != null && base.getClass().isArray()) { context.setPropertyResolved(base, ...
class class_name[name] begin[{] method[getValue, return_type[type[Object]], modifier[public], parameter[context, base, property]] begin[{] if[binary_operation[member[.context], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_t...
Keyword[public] identifier[Object] identifier[getValue] operator[SEP] identifier[ELContext] identifier[context] , identifier[Object] identifier[base] , identifier[Object] identifier[property] operator[SEP] { Keyword[if] operator[SEP] identifier[context] operator[==] Other[null] operator[SEP] { Keywo...
public static xen_smx_gsbvpx_image delete(nitro_service client, xen_smx_gsbvpx_image resource) throws Exception { resource.validate("delete"); return ((xen_smx_gsbvpx_image[]) resource.delete_resource(client))[0]; }
class class_name[name] begin[{] method[delete, return_type[type[xen_smx_gsbvpx_image]], modifier[public static], parameter[client, resource]] begin[{] call[resource.validate, parameter[literal["delete"]]] return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=client, ...
Keyword[public] Keyword[static] identifier[xen_smx_gsbvpx_image] identifier[delete] operator[SEP] identifier[nitro_service] identifier[client] , identifier[xen_smx_gsbvpx_image] identifier[resource] operator[SEP] Keyword[throws] identifier[Exception] { identifier[resource] operator[SEP] identifier[validate] ope...
public static BufferedReader getReader(Path path, Charset charset) throws IORuntimeException { return IoUtil.getReader(getInputStream(path), charset); }
class class_name[name] begin[{] method[getReader, return_type[type[BufferedReader]], modifier[public static], parameter[path, charset]] begin[{] return[call[IoUtil.getReader, parameter[call[.getInputStream, parameter[member[.path]]], member[.charset]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[BufferedReader] identifier[getReader] operator[SEP] identifier[Path] identifier[path] , identifier[Charset] identifier[charset] operator[SEP] Keyword[throws] identifier[IORuntimeException] { Keyword[return] identifier[IoUtil] operator[SEP] identifier[getReader] operato...
public static INDArray sinh(INDArray in, boolean copy) { return Nd4j.getExecutioner().exec(new Sinh(in, (copy ? in.ulike() : in))); }
class class_name[name] begin[{] method[sinh, return_type[type[INDArray]], modifier[public static], parameter[in, copy]] begin[{] return[call[Nd4j.getExecutioner, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[INDArray] identifier[sinh] operator[SEP] identifier[INDArray] identifier[in] , Keyword[boolean] identifier[copy] operator[SEP] { Keyword[return] identifier[Nd4j] operator[SEP] identifier[getExecutioner] operator[SEP] operator[SEP] operator[SEP] identifier[exec] operato...
@Override public SQLException attempt() { try { Connection con = this.connectionSpec.getOrCreate(); con.setReadOnly(true); try { Statement stmt = con.createStatement( ResultSet.TYPE_FORWARD_ONLY, ResultSet.CO...
class class_name[name] begin[{] method[attempt, return_type[type[SQLException]], modifier[public], parameter[]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=This(postfix_operators=[], prefix_operators=[], qualifier=None...
annotation[@] identifier[Override] Keyword[public] identifier[SQLException] identifier[attempt] operator[SEP] operator[SEP] { Keyword[try] { identifier[Connection] identifier[con] operator[=] Keyword[this] operator[SEP] identifier[connectionSpec] operator[SEP] identifier[getOrCreate] operator[SEP] ope...
public void setCountIndicatorEnabled(boolean enabled) { if(piCount != null && btShowResult != null && txtStatus != null) { if(enabled) { if(!piCount.isVisible()) { piCount.setVisible(true); piCount.setEnabled(true); } } btShowResult.se...
class class_name[name] begin[{] method[setCountIndicatorEnabled, return_type[void], modifier[public], parameter[enabled]] begin[{] if[binary_operation[binary_operation[binary_operation[member[.piCount], !=, literal[null]], &&, binary_operation[member[.btShowResult], !=, literal[null]]], &&, bin...
Keyword[public] Keyword[void] identifier[setCountIndicatorEnabled] operator[SEP] Keyword[boolean] identifier[enabled] operator[SEP] { Keyword[if] operator[SEP] identifier[piCount] operator[!=] Other[null] operator[&&] identifier[btShowResult] operator[!=] Other[null] operator[&&] identifier[txtStatus] operator[!...
@Override public File getFile(final JTable table) throws IOException { // impression directe, pas de fichier // (Remarque : le code pour exporter et / ou imprimer en pdf est disponible, mais cela nécessiterait de déployer la dépendance iText sur le poste client) try { table.print(); } catch (final Pri...
class class_name[name] begin[{] method[getFile, return_type[type[File]], modifier[public], parameter[table]] begin[{] TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=print, postfix_operators=[], prefix_operators=[], qualifier=table, selectors=[], type_arguments=...
annotation[@] identifier[Override] Keyword[public] identifier[File] identifier[getFile] operator[SEP] Keyword[final] identifier[JTable] identifier[table] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[try] { identifier[table] operator[SEP] identifier[print] operator[SEP] operator[SEP]...
public static Object generateExample(AbstractSerializableParameter<?> parameter) { switch (parameter.getType()) { case "integer": return 0; case "number": return 0.0; case "boolean": return true; case "string": ...
class class_name[name] begin[{] method[generateExample, return_type[type[Object]], modifier[public static], parameter[parameter]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="integer")], statements=[Ret...
Keyword[public] Keyword[static] identifier[Object] identifier[generateExample] operator[SEP] identifier[AbstractSerializableParameter] operator[<] operator[?] operator[>] identifier[parameter] operator[SEP] { Keyword[switch] operator[SEP] identifier[parameter] operator[SEP] identifier[getType] operator[SEP] oper...