code
stringlengths
63
466k
code_sememe
stringlengths
141
3.79M
token_type
stringlengths
274
1.23M
public static String relativize(final String path, final File parentDir, final boolean removeInitialFileSep) { // Check sanity Validate.notNull(path, "path"); Validate.notNull(parentDir, "parentDir"); final String ...
class class_name[name] begin[{] method[relativize, return_type[type[String]], modifier[public static], parameter[path, parentDir, removeInitialFileSep]] begin[{] call[Validate.notNull, parameter[member[.path], literal["path"]]] call[Validate.notNull, parameter[member[.parentDir]...
Keyword[public] Keyword[static] identifier[String] identifier[relativize] operator[SEP] Keyword[final] identifier[String] identifier[path] , Keyword[final] identifier[File] identifier[parentDir] , Keyword[final] Keyword[boolean] identifier[removeInitialFileSep] operator[SEP] { identifier[Validate] operator[SEP...
public static String from(int state) { switch (state) { case Bundle.ACTIVE: return ACTIVE; case Bundle.INSTALLED: return INSTALLED; case Bundle.RESOLVED: return RESOLVED; case Bundle.STARTING: return ...
class class_name[name] begin[{] method[from, return_type[type[String]], modifier[public static], parameter[state]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=ACTIVE, postfix_operators=[], prefix_operators=[], qualifier=Bundle, selectors=[])], statements=[ReturnStat...
Keyword[public] Keyword[static] identifier[String] identifier[from] operator[SEP] Keyword[int] identifier[state] operator[SEP] { Keyword[switch] operator[SEP] identifier[state] operator[SEP] { Keyword[case] identifier[Bundle] operator[SEP] identifier[ACTIVE] operator[:] Keyword[return] identifier[ACT...
public Range addMember(Resource first, Resource... rest) throws IllegalArgumentException { if (this.members == null) { this.members = new ArrayList<>(); } List<Resource> membersToAdd = Lists.asList(first, rest); membersToAdd.forEach(this::checkMember); this.members.addAll(membersToAdd); re...
class class_name[name] begin[{] method[addMember, return_type[type[Range]], modifier[public], parameter[first, rest]] begin[{] if[binary_operation[THIS[member[None.members]], ==, literal[null]]] begin[{] assign[THIS[member[None.members]], ClassCreator(arguments=[], body=...
Keyword[public] identifier[Range] identifier[addMember] operator[SEP] identifier[Resource] identifier[first] , identifier[Resource] operator[...] identifier[rest] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[members] operat...
protected SubscriptionMessage generateGenericSubscriptionMessage() { SubscriptionMessage subMessage = new SubscriptionMessage(); subMessage.setRules(this.rules); subMessage.setMessageType(SubscriptionMessage.SUBSCRIPTION_MESSAGE_ID); return subMessage; }
class class_name[name] begin[{] method[generateGenericSubscriptionMessage, return_type[type[SubscriptionMessage]], modifier[protected], parameter[]] begin[{] local_variable[type[SubscriptionMessage], subMessage] call[subMessage.setRules, parameter[THIS[member[None.rules]]]] ...
Keyword[protected] identifier[SubscriptionMessage] identifier[generateGenericSubscriptionMessage] operator[SEP] operator[SEP] { identifier[SubscriptionMessage] identifier[subMessage] operator[=] Keyword[new] identifier[SubscriptionMessage] operator[SEP] operator[SEP] operator[SEP] identifier[subMessage] operator...
private void loadAllParts() throws IOException { // Get first boundary String line = _in.readLine(); if (!line.equals(_boundary)) { log.warn(line); throw new IOException("Missing initial multi part boundary"); } // Read each pa...
class class_name[name] begin[{] method[loadAllParts, return_type[void], modifier[private], parameter[]] begin[{] local_variable[type[String], line] if[call[line.equals, parameter[member[._boundary]]]] begin[{] call[log.warn, parameter[member[.line]]] ...
Keyword[private] Keyword[void] identifier[loadAllParts] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[line] operator[=] identifier[_in] operator[SEP] identifier[readLine] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] identifi...
public boolean unpackBoolean() throws IOException { byte b = readByte(); if (b == Code.FALSE) { return false; } else if (b == Code.TRUE) { return true; } throw unexpected("boolean", b); }
class class_name[name] begin[{] method[unpackBoolean, return_type[type[boolean]], modifier[public], parameter[]] begin[{] local_variable[type[byte], b] if[binary_operation[member[.b], ==, member[Code.FALSE]]] begin[{] return[literal[false]] else begin[{] ...
Keyword[public] Keyword[boolean] identifier[unpackBoolean] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[byte] identifier[b] operator[=] identifier[readByte] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[b] operator[==] identifier[Code] operator[SE...
private Action buildAction(String path) { Action action = (Action) ActionContext.getContext().getContextMap().get("dispatch_action"); if (null == action) { action = new Action(); String newPath = path; if (path.startsWith("?")) { newPath = getServletPath(ServletActionContext.getRequest...
class class_name[name] begin[{] method[buildAction, return_type[type[Action]], modifier[private], parameter[path]] begin[{] local_variable[type[Action], action] if[binary_operation[literal[null], ==, member[.action]]] begin[{] assign[member[.action], ClassCreator...
Keyword[private] identifier[Action] identifier[buildAction] operator[SEP] identifier[String] identifier[path] operator[SEP] { identifier[Action] identifier[action] operator[=] operator[SEP] identifier[Action] operator[SEP] identifier[ActionContext] operator[SEP] identifier[getContext] operator[SEP] operator[SEP]...
private List<JoinableResourceBundle> getBundlesFromName(List<String> names, List<JoinableResourceBundle> bundles) { List<JoinableResourceBundle> resultBundles = new ArrayList<>(); for (String name : names) { for (JoinableResourceBundle bundle : bundles) { if (bundle.getName().equals(name)) { resultBund...
class class_name[name] begin[{] method[getBundlesFromName, return_type[type[List]], modifier[private], parameter[names, bundles]] begin[{] local_variable[type[List], resultBundles] ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=BlockStatement(label=None, statements=[...
Keyword[private] identifier[List] operator[<] identifier[JoinableResourceBundle] operator[>] identifier[getBundlesFromName] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[names] , identifier[List] operator[<] identifier[JoinableResourceBundle] operator[>] identifier[bundles] opera...
private DocletTag findParamDocByNameOrIndex(String name, int paramIndex, List<DocletTag> tags) { for (DocletTag tag : tags) { if (name.equals(tag.getParameters().get(0))) { return tag; } } if (paramIndex < tags.size()) { return tags.get(paramIn...
class class_name[name] begin[{] method[findParamDocByNameOrIndex, return_type[type[DocletTag]], modifier[private], parameter[name, paramIndex, tags]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[], member...
Keyword[private] identifier[DocletTag] identifier[findParamDocByNameOrIndex] operator[SEP] identifier[String] identifier[name] , Keyword[int] identifier[paramIndex] , identifier[List] operator[<] identifier[DocletTag] operator[>] identifier[tags] operator[SEP] { Keyword[for] operator[SEP] identifier[DocletTag]...
public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case FULL_CLASS_NAME: return is_set_full_class_name(); case ARGS_LIST: return is_set_args_list(); } throw new IllegalStateException(); }
class class_name[name] begin[{] method[isSet, return_type[type[boolean]], modifier[public], parameter[field]] begin[{] if[binary_operation[member[.field], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=None, po...
Keyword[public] Keyword[boolean] identifier[isSet] operator[SEP] identifier[_Fields] identifier[field] operator[SEP] { Keyword[if] operator[SEP] identifier[field] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operator[SEP] operator[SEP] opera...
public void marshall(CreateJobRequest createJobRequest, ProtocolMarshaller protocolMarshaller) { if (createJobRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(createJobRequest.getPipelineId(...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[createJobRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.createJobRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(postf...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[CreateJobRequest] identifier[createJobRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[createJobRequest] operator[==] Other[null] operator[SEP] { Ke...
private List<String> convertObjectToListOfStringValues(Object value) { if (value != null) { List<String> valueList = new ArrayList<>(); if (value instanceof Collection) { Collection valueCollection = (Collection) value; for (Object val : valueCollecti...
class class_name[name] begin[{] method[convertObjectToListOfStringValues, return_type[type[List]], modifier[private], parameter[value]] begin[{] if[binary_operation[member[.value], !=, literal[null]]] begin[{] local_variable[type[List], valueList] if[binary_o...
Keyword[private] identifier[List] operator[<] identifier[String] operator[>] identifier[convertObjectToListOfStringValues] operator[SEP] identifier[Object] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[!=] Other[null] operator[SEP] { identifier[List] operator[<...
public static void dispose() { if (xml2containerMap != null) { for (SpringContainer container : xml2containerMap.values()) { container.dispose(); } xml2containerMap.clear(); } }
class class_name[name] begin[{] method[dispose, return_type[void], modifier[public static], parameter[]] begin[{] if[binary_operation[member[.xml2containerMap], !=, literal[null]]] begin[{] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Metho...
Keyword[public] Keyword[static] Keyword[void] identifier[dispose] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[xml2containerMap] operator[!=] Other[null] operator[SEP] { Keyword[for] operator[SEP] identifier[SpringContainer] identifier[container] operator[:] identifier[xml2conta...
public OtpMsg receiveMsg() throws OtpErlangExit { final OtpMsg m = (OtpMsg) queue.get(); switch (m.type()) { case OtpMsg.exitTag: case OtpMsg.exit2Tag: try { final OtpErlangObject o = m.getMsg(); throw new OtpErlangExit(o, m.getSenderPid()); ...
class class_name[name] begin[{] method[receiveMsg, return_type[type[OtpMsg]], modifier[public], parameter[]] begin[{] local_variable[type[OtpMsg], m] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=exitTag, postfix_operators=[], prefix_operators=[], qualifier=OtpMsg, sel...
Keyword[public] identifier[OtpMsg] identifier[receiveMsg] operator[SEP] operator[SEP] Keyword[throws] identifier[OtpErlangExit] { Keyword[final] identifier[OtpMsg] identifier[m] operator[=] operator[SEP] identifier[OtpMsg] operator[SEP] identifier[queue] operator[SEP] identifier[get] operator[SEP] operator[SEP] ...
public ValidationPlanResult append(Collection<ValidationResult> results) { if (results == null) { return this; } for (ValidationResult message : results) { addResult(message); } return this; }
class class_name[name] begin[{] method[append, return_type[type[ValidationPlanResult]], modifier[public], parameter[results]] begin[{] if[binary_operation[member[.results], ==, literal[null]]] begin[{] return[THIS[]] else begin[{] None end[}] ForStatement(bod...
Keyword[public] identifier[ValidationPlanResult] identifier[append] operator[SEP] identifier[Collection] operator[<] identifier[ValidationResult] operator[>] identifier[results] operator[SEP] { Keyword[if] operator[SEP] identifier[results] operator[==] Other[null] operator[SEP] { Keyword[return] Keywo...
public ResourceBundle mergeWithGlobal(ResourceBundle resourceBundle) { if (globalResourceBundle == null) { if (resourceBundle == null) { return EMPTY_RESOURCE_BUNDLE; } else { return new ResourceBundleWrapper(resourceBundle); } } else { if (resourceBundle == null) { return new ResourceBundle...
class class_name[name] begin[{] method[mergeWithGlobal, return_type[type[ResourceBundle]], modifier[public], parameter[resourceBundle]] begin[{] if[binary_operation[member[.globalResourceBundle], ==, literal[null]]] begin[{] if[binary_operation[member[.resourceBundle], =...
Keyword[public] identifier[ResourceBundle] identifier[mergeWithGlobal] operator[SEP] identifier[ResourceBundle] identifier[resourceBundle] operator[SEP] { Keyword[if] operator[SEP] identifier[globalResourceBundle] operator[==] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[resourceBu...
public void error(String format, Object arg) { formatAndLog(Log.ERROR, format, arg); }
class class_name[name] begin[{] method[error, return_type[void], modifier[public], parameter[format, arg]] begin[{] call[.formatAndLog, parameter[member[Log.ERROR], member[.format], member[.arg]]] end[}] END[}]
Keyword[public] Keyword[void] identifier[error] operator[SEP] identifier[String] identifier[format] , identifier[Object] identifier[arg] operator[SEP] { identifier[formatAndLog] operator[SEP] identifier[Log] operator[SEP] identifier[ERROR] , identifier[format] , identifier[arg] operator[SEP] operator[SEP] } ...
public void bind() { if (serviceObject != null) { return; } final Context context = contextRef.get(); if (context == null) { return; } // TODO make it configurable final Intent intent = new Intent(context, GoroService.class); intent.setAction(getInterfaceClass().getName()); if (DEBUG_...
class class_name[name] begin[{] method[bind, return_type[void], modifier[public], parameter[]] begin[{] if[binary_operation[member[.serviceObject], !=, literal[null]]] begin[{] return[None] else begin[{] None end[}] local_variable[type[Context], context] ...
Keyword[public] Keyword[void] identifier[bind] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[serviceObject] operator[!=] Other[null] operator[SEP] { Keyword[return] operator[SEP] } Keyword[final] identifier[Context] identifier[context] operator[=] identifier[contextR...
public static <T extends TypeDefinition> ElementMatcher.Junction<T> isVariable(String symbol) { return isVariable(named(symbol)); }
class class_name[name] begin[{] method[isVariable, return_type[type[ElementMatcher]], modifier[public static], parameter[symbol]] begin[{] return[call[.isVariable, parameter[call[.named, parameter[member[.symbol]]]]]] end[}] END[}]
Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[TypeDefinition] operator[>] identifier[ElementMatcher] operator[SEP] identifier[Junction] operator[<] identifier[T] operator[>] identifier[isVariable] operator[SEP] identifier[String] identifier[symbol] operator[SEP] { Keyword[...
private void addSubSlide(final Node defaultSubSlide) { this.subSlides.add(model().getStepPosition(), defaultSubSlide); this.slideContent.getChildren().add(defaultSubSlide); StackPane.setAlignment(defaultSubSlide, Pos.CENTER); }
class class_name[name] begin[{] method[addSubSlide, return_type[void], modifier[private], parameter[defaultSubSlide]] begin[{] THIS[member[None.subSlides]call[None.add, parameter[call[.model, parameter[]], member[.defaultSubSlide]]]] THIS[member[None.slideContent]call[None.getCh...
Keyword[private] Keyword[void] identifier[addSubSlide] operator[SEP] Keyword[final] identifier[Node] identifier[defaultSubSlide] operator[SEP] { Keyword[this] operator[SEP] identifier[subSlides] operator[SEP] identifier[add] operator[SEP] identifier[model] operator[SEP] operator[SEP] operator[SEP] identifier[get...
protected int deleteChildren(final TicketGrantingTicket ticket) { val count = new AtomicInteger(0); val services = ticket.getServices(); if (services != null && !services.isEmpty()) { services.keySet().forEach(ticketId -> { if (deleteSingleTicket(ticketId)) { ...
class class_name[name] begin[{] method[deleteChildren, return_type[type[int]], modifier[protected], parameter[ticket]] begin[{] local_variable[type[val], count] local_variable[type[val], services] if[binary_operation[binary_operation[member[.services], !=, literal[null]], &&, ca...
Keyword[protected] Keyword[int] identifier[deleteChildren] operator[SEP] Keyword[final] identifier[TicketGrantingTicket] identifier[ticket] operator[SEP] { identifier[val] identifier[count] operator[=] Keyword[new] identifier[AtomicInteger] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[val] ident...
public static void showDialog(BufferedImage img) { ImageIcon icon = new ImageIcon(); icon.setImage(img); JOptionPane.showMessageDialog(null, icon); }
class class_name[name] begin[{] method[showDialog, return_type[void], modifier[public static], parameter[img]] begin[{] local_variable[type[ImageIcon], icon] call[icon.setImage, parameter[member[.img]]] call[JOptionPane.showMessageDialog, parameter[literal[null], member[...
Keyword[public] Keyword[static] Keyword[void] identifier[showDialog] operator[SEP] identifier[BufferedImage] identifier[img] operator[SEP] { identifier[ImageIcon] identifier[icon] operator[=] Keyword[new] identifier[ImageIcon] operator[SEP] operator[SEP] operator[SEP] identifier[icon] operator[SEP] identifier[se...
public HiltItemStack setName(String name) { createItemMeta(); ItemMeta itemMeta = getItemMeta(); itemMeta.setDisplayName(name != null ? name.replace("\\s+", " ") : null); setItemMeta(itemMeta); return this; }
class class_name[name] begin[{] method[setName, return_type[type[HiltItemStack]], modifier[public], parameter[name]] begin[{] call[.createItemMeta, parameter[]] local_variable[type[ItemMeta], itemMeta] call[itemMeta.setDisplayName, parameter[TernaryExpression(condition=B...
Keyword[public] identifier[HiltItemStack] identifier[setName] operator[SEP] identifier[String] identifier[name] operator[SEP] { identifier[createItemMeta] operator[SEP] operator[SEP] operator[SEP] identifier[ItemMeta] identifier[itemMeta] operator[=] identifier[getItemMeta] operator[SEP] operator[SEP] operator[S...
private boolean mapProperty(JSONObject root, JSONObject node, String key, String... mapping) throws JSONException { boolean deleteProperty = false; for (String value : mapping) { Matcher matcher = MAPPED_PATTERN.matcher(value); if (matcher.matches()) { // this is a mapped property, we will d...
class class_name[name] begin[{] method[mapProperty, return_type[type[boolean]], modifier[private], parameter[root, node, key, mapping]] begin[{] local_variable[type[boolean], deleteProperty] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declar...
Keyword[private] Keyword[boolean] identifier[mapProperty] operator[SEP] identifier[JSONObject] identifier[root] , identifier[JSONObject] identifier[node] , identifier[String] identifier[key] , identifier[String] operator[...] identifier[mapping] operator[SEP] Keyword[throws] identifier[JSONException] { Keywor...
private void handleDeclaration(char c) throws XMLStreamException { String keyw = null; /* We need to ensure that PEs do not span declaration boundaries * (similar to element nesting wrt. GE expansion for xml content). * This VC is defined in xml 1.0, section 2.8 as ...
class class_name[name] begin[{] method[handleDeclaration, return_type[void], modifier[private], parameter[c]] begin[{] local_variable[type[String], keyw] assign[member[.mCurrDepth], literal[1]] TryStatement(block=[DoStatement(body=BlockStatement(label=None, statements=[IfStateme...
Keyword[private] Keyword[void] identifier[handleDeclaration] operator[SEP] Keyword[char] identifier[c] operator[SEP] Keyword[throws] identifier[XMLStreamException] { identifier[String] identifier[keyw] operator[=] Other[null] operator[SEP] identifier[mCurrDepth] operator[=] Other[1] operator[SEP] Keyword[try] {...
@SuppressWarnings("unchecked") @Override public void eSet(int featureID, Object newValue) { switch (featureID) { case TypesPackage.JVM_ANNOTATION_TARGET__ANNOTATIONS: getAnnotations().clear(); getAnnotations().addAll((Collection<? extends JvmAnnotationReference>)newValue); return; } super.eSet...
class class_name[name] begin[{] method[eSet, return_type[void], modifier[public], parameter[featureID, newValue]] begin[{] SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=JVM_ANNOTATION_TARGET__ANNOTATIONS, postfix_operators=[], prefix_operators=[], qualifier=TypesPackage, selec...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eSet] operator[SEP] Keyword[int] identifier[featureID] , identifier[Object] identifier[newValue] operator[SEP] { Keyword[switch] operator[SEP] identi...
@SuppressWarnings("deprecation") public BUILDER setAllowedValues(String ... allowedValues) { assert allowedValues!= null; this.allowedValues = new ModelNode[allowedValues.length]; for (int i = 0; i < allowedValues.length; i++) { this.allowedValues[i] = new ModelNode(allowedValues...
class class_name[name] begin[{] method[setAllowedValues, return_type[type[BUILDER]], modifier[public], parameter[allowedValues]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=allowedValues, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operan...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[BUILDER] identifier[setAllowedValues] operator[SEP] identifier[String] operator[...] identifier[allowedValues] operator[SEP] { Keyword[assert] identifier[allowedValues] operator[!=] Other[null] opera...
private void calculateIntersectPoints() { intersectPoints.clear(); /** order intersect points clockwise **/ //left edge if (center.x - menuBounds.left < expandedRadius) { int dy = (int) Math.sqrt(Math.pow(expandedRadius, 2) - Math.pow(center.x - menuBounds.left, 2)); ...
class class_name[name] begin[{] method[calculateIntersectPoints, return_type[void], modifier[private], parameter[]] begin[{] call[intersectPoints.clear, parameter[]] if[binary_operation[binary_operation[member[center.x], -, member[menuBounds.left]], <, member[.expandedRadius]]] ...
Keyword[private] Keyword[void] identifier[calculateIntersectPoints] operator[SEP] operator[SEP] { identifier[intersectPoints] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[center] operator[SEP] identifier[x] operator[-] identifier[menuBounds] opera...
public java.util.Map<String, String> getEncryptionContext() { if (encryptionContext == null) { encryptionContext = new com.ibm.cloud.objectstorage.internal.SdkInternalMap<String, String>(); } return encryptionContext; }
class class_name[name] begin[{] method[getEncryptionContext, return_type[type[java]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.encryptionContext], ==, literal[null]]] begin[{] assign[member[.encryptionContext], ClassCreator(arguments=[], body=N...
Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[getEncryptionContext] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[encryptionContext] operator[==] Other[null] operator[S...
public int getTrackNumberNumeric() { String number = getTrackNumber(); if(number == null) return -1; try { return Integer.parseInt(number); } catch(NumberFormatException e) { return -1; } }
class class_name[name] begin[{] method[getTrackNumberNumeric, return_type[type[int]], modifier[public], parameter[]] begin[{] local_variable[type[String], number] if[binary_operation[member[.number], ==, literal[null]]] begin[{] return[literal[1]] else begin[{] None end[...
Keyword[public] Keyword[int] identifier[getTrackNumberNumeric] operator[SEP] operator[SEP] { identifier[String] identifier[number] operator[=] identifier[getTrackNumber] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[number] operator[==] Other[null] operator[SEP] Keyword[return] o...
protected void notifyUpdate(String key, Map<String, Object> value) { if (value.size() == 1) { Map.Entry<String, Object> entry = value.entrySet().iterator().next(); notifyUpdate(entry.getKey(), entry.getValue()); return; } for (ISharedObjectListener liste...
class class_name[name] begin[{] method[notifyUpdate, return_type[void], modifier[protected], parameter[key, value]] begin[{] if[binary_operation[call[value.size, parameter[]], ==, literal[1]]] begin[{] local_variable[type[Map], entry] call[.notifyUpdate, para...
Keyword[protected] Keyword[void] identifier[notifyUpdate] operator[SEP] identifier[String] identifier[key] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[value] operator[SEP] { Keyword[if] operator[SEP] identifier[value] operator[SEP] identifier[size] operator[SEP]...
public static void touch(Resource res) throws IOException { if (res.exists()) { res.setLastModified(System.currentTimeMillis()); } else { res.createFile(true); } }
class class_name[name] begin[{] method[touch, return_type[void], modifier[public static], parameter[res]] begin[{] if[call[res.exists, parameter[]]] begin[{] call[res.setLastModified, parameter[call[System.currentTimeMillis, parameter[]]]] else begin[{] ...
Keyword[public] Keyword[static] Keyword[void] identifier[touch] operator[SEP] identifier[Resource] identifier[res] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[if] operator[SEP] identifier[res] operator[SEP] identifier[exists] operator[SEP] operator[SEP] operator[SEP] { identifier[r...
final int getFieldId() { int id; if (_field_name_type == null) { throw new IllegalStateException("the field has not be set"); } switch (_field_name_type) { case STRING: try { id = add_symbol(_field_name); } ...
class class_name[name] begin[{] method[getFieldId, return_type[type[int]], modifier[final], parameter[]] begin[{] local_variable[type[int], id] if[binary_operation[member[._field_name_type], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Liter...
Keyword[final] Keyword[int] identifier[getFieldId] operator[SEP] operator[SEP] { Keyword[int] identifier[id] operator[SEP] Keyword[if] operator[SEP] identifier[_field_name_type] operator[==] Other[null] operator[SEP] { Keyword[throw] Keyword[new] identifier[IllegalStateException] operator[SEP] literal...
public static CPTaxCategory remove(long CPTaxCategoryId) throws com.liferay.commerce.product.exception.NoSuchCPTaxCategoryException { return getPersistence().remove(CPTaxCategoryId); }
class class_name[name] begin[{] method[remove, return_type[type[CPTaxCategory]], modifier[public static], parameter[CPTaxCategoryId]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CPTaxCategory] identifier[remove] operator[SEP] Keyword[long] identifier[CPTaxCategoryId] operator[SEP] Keyword[throws] identifier[com] operator[SEP] identifier[liferay] operator[SEP] identifier[commerce] operator[SEP] identifier[product] operator[SEP] identifier[exception] op...
public static boolean isAlreadyRegisteredIn(ObjectMapper mapper) { Assert.notNull(mapper, "ObjectMapper must not be null!"); return LinkMixin.class.equals(mapper.findMixInClassFor(Link.class)); }
class class_name[name] begin[{] method[isAlreadyRegisteredIn, return_type[type[boolean]], modifier[public static], parameter[mapper]] begin[{] call[Assert.notNull, parameter[member[.mapper], literal["ObjectMapper must not be null!"]]] return[ClassReference(postfix_operators=[], prefix_o...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isAlreadyRegisteredIn] operator[SEP] identifier[ObjectMapper] identifier[mapper] operator[SEP] { identifier[Assert] operator[SEP] identifier[notNull] operator[SEP] identifier[mapper] , literal[String] operator[SEP] operator[SEP] Keyword[return] identif...
public void addDatastream(Datastream datastream, boolean addNewVersion) throws ServerException { assertNotInvalidated(); assertNotPendingRemoval(); // use this call to handle versionable m_obj.addDatastreamVersion(datastream, addNewVersion); }
class class_name[name] begin[{] method[addDatastream, return_type[void], modifier[public], parameter[datastream, addNewVersion]] begin[{] call[.assertNotInvalidated, parameter[]] call[.assertNotPendingRemoval, parameter[]] call[m_obj.addDatastreamVersion, paramet...
Keyword[public] Keyword[void] identifier[addDatastream] operator[SEP] identifier[Datastream] identifier[datastream] , Keyword[boolean] identifier[addNewVersion] operator[SEP] Keyword[throws] identifier[ServerException] { identifier[assertNotInvalidated] operator[SEP] operator[SEP] operator[SEP] identifier[asser...
public List<String> preview(int limit, boolean noHeaderLine) { E.illegalArgumentIf(limit < 1, "limit must be positive integer"); return fetch(noHeaderLine ? 1 : 0, limit); }
class class_name[name] begin[{] method[preview, return_type[type[List]], modifier[public], parameter[limit, noHeaderLine]] begin[{] call[E.illegalArgumentIf, parameter[binary_operation[member[.limit], <, literal[1]], literal["limit must be positive integer"]]] return[call[.fetch, parame...
Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[preview] operator[SEP] Keyword[int] identifier[limit] , Keyword[boolean] identifier[noHeaderLine] operator[SEP] { identifier[E] operator[SEP] identifier[illegalArgumentIf] operator[SEP] identifier[limit] operator[<] Other[1] ...
public FaceDetail withEmotions(Emotion... emotions) { if (this.emotions == null) { setEmotions(new java.util.ArrayList<Emotion>(emotions.length)); } for (Emotion ele : emotions) { this.emotions.add(ele); } return this; }
class class_name[name] begin[{] method[withEmotions, return_type[type[FaceDetail]], modifier[public], parameter[emotions]] begin[{] if[binary_operation[THIS[member[None.emotions]], ==, literal[null]]] begin[{] call[.setEmotions, parameter[ClassCreator(arguments=[MemberRe...
Keyword[public] identifier[FaceDetail] identifier[withEmotions] operator[SEP] identifier[Emotion] operator[...] identifier[emotions] operator[SEP] { Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[emotions] operator[==] Other[null] operator[SEP] { identifier[setEmotions] operator[SEP]...
public Map<String, Boolean> getNamesOfConfigurationSources() { final Map<String, Boolean> result = new LinkedHashMap<String, Boolean>(); for (ConfigurationSource configurationSource : configurationSources) { result.put(configurationSource.getName(), configurationSource.isSavingPossible()); } return result; ...
class class_name[name] begin[{] method[getNamesOfConfigurationSources, return_type[type[Map]], modifier[public], parameter[]] begin[{] local_variable[type[Map], result] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvo...
Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Boolean] operator[>] identifier[getNamesOfConfigurationSources] operator[SEP] operator[SEP] { Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Boolean] operator[>] identifier[result] operator[=] Keyword[new] i...
public T text(CharSequence text, boolean goneIfEmpty) { if (goneIfEmpty && (text == null || text.length() == 0)) { return gone(); } else { return text(text); } }
class class_name[name] begin[{] method[text, return_type[type[T]], modifier[public], parameter[text, goneIfEmpty]] begin[{] if[binary_operation[member[.goneIfEmpty], &&, binary_operation[binary_operation[member[.text], ==, literal[null]], ||, binary_operation[call[text.length, parameter[]], ==,...
Keyword[public] identifier[T] identifier[text] operator[SEP] identifier[CharSequence] identifier[text] , Keyword[boolean] identifier[goneIfEmpty] operator[SEP] { Keyword[if] operator[SEP] identifier[goneIfEmpty] operator[&&] operator[SEP] identifier[text] operator[==] Other[null] operator[||] identifier[text] o...
public Alias getAlias(String aliasName) { Alias result = null; for (Alias item : getAliasesList()) { if (item.getName().equals(aliasName)) { result = item; } } return result; }
class class_name[name] begin[{] method[getAlias, return_type[type[Alias]], modifier[public], parameter[aliasName]] begin[{] local_variable[type[Alias], result] ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getName, postfix_o...
Keyword[public] identifier[Alias] identifier[getAlias] operator[SEP] identifier[String] identifier[aliasName] operator[SEP] { identifier[Alias] identifier[result] operator[=] Other[null] operator[SEP] Keyword[for] operator[SEP] identifier[Alias] identifier[item] operator[:] identifier[getAliasesList] operator[S...
private void optimize(NavPath path) { int pt = 0; while (pt < path.length()-2) { float sx = path.getX(pt); float sy = path.getY(pt); float nx = path.getX(pt+2); float ny = path.getY(pt+2); if (isClear(sx,sy,nx,ny,0.1f)) { path.remove(pt+1); } else { pt++; } } }
class class_name[name] begin[{] method[optimize, return_type[void], modifier[private], parameter[path]] begin[{] local_variable[type[int], pt] while[binary_operation[member[.pt], <, binary_operation[call[path.length, parameter[]], -, literal[2]]]] begin[{] local_variable[typ...
Keyword[private] Keyword[void] identifier[optimize] operator[SEP] identifier[NavPath] identifier[path] operator[SEP] { Keyword[int] identifier[pt] operator[=] Other[0] operator[SEP] Keyword[while] operator[SEP] identifier[pt] operator[<] identifier[path] operator[SEP] identifier[length] operator[SEP] operator[SE...
public AddressBuilderPath setDecoded(CharSequence name, Object... values) { parent.setDecoded(name, values); return this; }
class class_name[name] begin[{] method[setDecoded, return_type[type[AddressBuilderPath]], modifier[public], parameter[name, values]] begin[{] call[parent.setDecoded, parameter[member[.name], member[.values]]] return[THIS[]] end[}] END[}]
Keyword[public] identifier[AddressBuilderPath] identifier[setDecoded] operator[SEP] identifier[CharSequence] identifier[name] , identifier[Object] operator[...] identifier[values] operator[SEP] { identifier[parent] operator[SEP] identifier[setDecoded] operator[SEP] identifier[name] , identifier[values] operato...
@Override public String getXAExceptionContents(XAException xae) { StringBuilder xsb = new StringBuilder(350); try { Class<?> c = WSManagedConnectionFactoryImpl.priv.loadClass(mcf.jdbcDriverLoader, "oracle.jdbc.xa.OracleXAException"); if (c.isInstance(xae)) { ...
class class_name[name] begin[{] method[getXAExceptionContents, return_type[type[String]], modifier[public], parameter[xae]] begin[{] local_variable[type[StringBuilder], xsb] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=M...
annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getXAExceptionContents] operator[SEP] identifier[XAException] identifier[xae] operator[SEP] { identifier[StringBuilder] identifier[xsb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] Other[350] operator[SEP] operat...
private IndexedContainer getContainerForType(WidgetType type, boolean realOnly, String ou) throws CmsException { IndexedContainer res = null; List<FontIcon> icon = new ArrayList<FontIcon>(); if (!OpenCms.getRoleManager().hasRole(m_cms, CmsRole.ACCOUNT_MANAGER)) { List<CmsGroup> grou...
class class_name[name] begin[{] method[getContainerForType, return_type[type[IndexedContainer]], modifier[private], parameter[type, realOnly, ou]] begin[{] local_variable[type[IndexedContainer], res] local_variable[type[List], icon] if[call[OpenCms.getRoleManager, parameter[]]] ...
Keyword[private] identifier[IndexedContainer] identifier[getContainerForType] operator[SEP] identifier[WidgetType] identifier[type] , Keyword[boolean] identifier[realOnly] , identifier[String] identifier[ou] operator[SEP] Keyword[throws] identifier[CmsException] { identifier[IndexedContainer] identifier[res] o...
public static final Object getImpl(Object obj) { InvocationHandler handler; return Proxy.isProxyClass(obj.getClass()) && (handler = Proxy.getInvocationHandler(obj)) instanceof WSJdbcTracer ? ((WSJdbcTracer) handler).impl : obj; }
class class_name[name] begin[{] method[getImpl, return_type[type[Object]], modifier[final public static], parameter[obj]] begin[{] local_variable[type[InvocationHandler], handler] return[TernaryExpression(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MethodInvocation(arguments=...
Keyword[public] Keyword[static] Keyword[final] identifier[Object] identifier[getImpl] operator[SEP] identifier[Object] identifier[obj] operator[SEP] { identifier[InvocationHandler] identifier[handler] operator[SEP] Keyword[return] identifier[Proxy] operator[SEP] identifier[isProxyClass] operator[SEP] identifier[...
public boolean matches(Labels runtimeLabels) { if ((runtimeLabels == null) || runtimeLabels.isEmpty()) { return true; } if (this.labels.isEmpty()) { return true; } for (String expression : this.labels) { if (matches(expression, runtimeLabels))...
class class_name[name] begin[{] method[matches, return_type[type[boolean]], modifier[public], parameter[runtimeLabels]] begin[{] if[binary_operation[binary_operation[member[.runtimeLabels], ==, literal[null]], ||, call[runtimeLabels.isEmpty, parameter[]]]] begin[{] return[literal[tr...
Keyword[public] Keyword[boolean] identifier[matches] operator[SEP] identifier[Labels] identifier[runtimeLabels] operator[SEP] { Keyword[if] operator[SEP] operator[SEP] identifier[runtimeLabels] operator[==] Other[null] operator[SEP] operator[||] identifier[runtimeLabels] operator[SEP] identifier[isEmpty] operato...
static GeometricParity geometric(IAtomContainer mol, int l, int r, int l1, int l2, int r1, int r2) { // we need all points for 2D as they may be skewed, i.e. // // \ // C=C // |\ // C H Point2d l2d = mol.getAtom(l).getPoint2d(); Point2d r2d = mol.g...
class class_name[name] begin[{] method[geometric, return_type[type[GeometricParity]], modifier[static], parameter[mol, l, r, l1, l2, r1, r2]] begin[{] local_variable[type[Point2d], l2d] local_variable[type[Point2d], r2d] local_variable[type[Point2d], l12d] local_variable[type[Po...
Keyword[static] identifier[GeometricParity] identifier[geometric] operator[SEP] identifier[IAtomContainer] identifier[mol] , Keyword[int] identifier[l] , Keyword[int] identifier[r] , Keyword[int] identifier[l1] , Keyword[int] identifier[l2] , Keyword[int] identifier[r1] , Keyword[int] identifier[r2] operator[SEP]...
public static void copyDirectory( File source, File target ) throws IOException { Utils.createDirectory( target ); for( File sourceFile : listAllFiles( source, false )) { String path = computeFileRelativeLocation( source, sourceFile ); File targetFile = new File( target, path ); Utils.createDirectory( ta...
class class_name[name] begin[{] method[copyDirectory, return_type[void], modifier[public static], parameter[source, target]] begin[{] call[Utils.createDirectory, parameter[member[.target]]] ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[],...
Keyword[public] Keyword[static] Keyword[void] identifier[copyDirectory] operator[SEP] identifier[File] identifier[source] , identifier[File] identifier[target] operator[SEP] Keyword[throws] identifier[IOException] { identifier[Utils] operator[SEP] identifier[createDirectory] operator[SEP] identifier[target] ope...
@Override public void setValue(Pin pin, Number value) { super.setValue(pin, value.doubleValue()); }
class class_name[name] begin[{] method[setValue, return_type[void], modifier[public], parameter[pin, value]] begin[{] SuperMethodInvocation(arguments=[MemberReference(member=pin, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=doubleVa...
annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setValue] operator[SEP] identifier[Pin] identifier[pin] , identifier[Number] identifier[value] operator[SEP] { Keyword[super] operator[SEP] identifier[setValue] operator[SEP] identifier[pin] , identifier[value] operator[SEP] identifier...
public static OPTICSPlot plotForClusterOrder(ClusterOrder co, VisualizerContext context) { // Check for an existing plot // ArrayList<OPTICSPlot<D>> plots = ResultUtil.filterResults(co, // OPTICSPlot.class); // if (plots.size() > 0) { // return plots.get(0); // } final StylingPolicy policy =...
class class_name[name] begin[{] method[plotForClusterOrder, return_type[type[OPTICSPlot]], modifier[public static], parameter[co, context]] begin[{] local_variable[type[StylingPolicy], policy] local_variable[type[OPTICSPlot], opticsplot] return[member[.opticsplot]] end[}] END[}]
Keyword[public] Keyword[static] identifier[OPTICSPlot] identifier[plotForClusterOrder] operator[SEP] identifier[ClusterOrder] identifier[co] , identifier[VisualizerContext] identifier[context] operator[SEP] { Keyword[final] identifier[StylingPolicy] identifier[policy] operator[=] identifier[context] operator[SE...
public static <E> Set<E> intersection(Set<E> s1, Set<E> s2) { Set<E> s = new HashSet<E>(); s.addAll(s1); s.retainAll(s2); return s; }
class class_name[name] begin[{] method[intersection, return_type[type[Set]], modifier[public static], parameter[s1, s2]] begin[{] local_variable[type[Set], s] call[s.addAll, parameter[member[.s1]]] call[s.retainAll, parameter[member[.s2]]] return[member[.s]] ...
Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[Set] operator[<] identifier[E] operator[>] identifier[intersection] operator[SEP] identifier[Set] operator[<] identifier[E] operator[>] identifier[s1] , identifier[Set] operator[<] identifier[E] operator[>] identifier[s2] operator[SEP] {...
public final ChannelAddress newChannelAddress(URI location, Map<String, Object> options) { String locationSchemeName = location.getScheme(); String schemeName = getSchemeName(); if (locationSchemeName == null || !locationSchemeName.equals(schemeName)) { throw new ChannelException(St...
class class_name[name] begin[{] method[newChannelAddress, return_type[type[ChannelAddress]], modifier[final public], parameter[location, options]] begin[{] local_variable[type[String], locationSchemeName] local_variable[type[String], schemeName] if[binary_operation[binary_operat...
Keyword[public] Keyword[final] identifier[ChannelAddress] identifier[newChannelAddress] operator[SEP] identifier[URI] identifier[location] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[options] operator[SEP] { identifier[String] identifier[locationSchemeName] oper...
public static CommerceTierPriceEntry fetchByC_LtM_Last( long commercePriceEntryId, int minQuantity, OrderByComparator<CommerceTierPriceEntry> orderByComparator) { return getPersistence() .fetchByC_LtM_Last(commercePriceEntryId, minQuantity, orderByComparator); }
class class_name[name] begin[{] method[fetchByC_LtM_Last, return_type[type[CommerceTierPriceEntry]], modifier[public static], parameter[commercePriceEntryId, minQuantity, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceTierPriceEntry] identifier[fetchByC_LtM_Last] operator[SEP] Keyword[long] identifier[commercePriceEntryId] , Keyword[int] identifier[minQuantity] , identifier[OrderByComparator] operator[<] identifier[CommerceTierPriceEntry] operator[>] identifier[orderByComparator] ...
private File generate(String pattern, int generation, int unique) throws IOException { File file = null; String word = ""; int ix = 0; boolean sawg = false; boolean sawu = false; while (ix < pattern.length()) { char ch = pattern.charAt(ix); ix++; ...
class class_name[name] begin[{] method[generate, return_type[type[File]], modifier[private], parameter[pattern, generation, unique]] begin[{] local_variable[type[File], file] local_variable[type[String], word] local_variable[type[int], ix] local_variable[type[boolean], sawg] ...
Keyword[private] identifier[File] identifier[generate] operator[SEP] identifier[String] identifier[pattern] , Keyword[int] identifier[generation] , Keyword[int] identifier[unique] operator[SEP] Keyword[throws] identifier[IOException] { identifier[File] identifier[file] operator[=] Other[null] operator[SEP] ide...
private int[] getColumnList(OrderedHashSet set, Table table) { if (set == null) { return null; } return table.getColumnIndexes(set); }
class class_name[name] begin[{] method[getColumnList, return_type[type[int]], modifier[private], parameter[set, table]] begin[{] if[binary_operation[member[.set], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] return[call[table.g...
Keyword[private] Keyword[int] operator[SEP] operator[SEP] identifier[getColumnList] operator[SEP] identifier[OrderedHashSet] identifier[set] , identifier[Table] identifier[table] operator[SEP] { Keyword[if] operator[SEP] identifier[set] operator[==] Other[null] operator[SEP] { Keyword[return] Other[n...
public static ResponseStatusDetails convert(final ByteBuf input) { if (input.readableBytes() <= 0) { return null; } try { byte[] inputBytes = new byte[input.readableBytes()]; input.readBytes(inputBytes); HashMap<String,HashMap<String, String>> res...
class class_name[name] begin[{] method[convert, return_type[type[ResponseStatusDetails]], modifier[public static], parameter[input]] begin[{] if[binary_operation[call[input.readableBytes, parameter[]], <=, literal[0]]] begin[{] return[literal[null]] else begin[{] None ...
Keyword[public] Keyword[static] identifier[ResponseStatusDetails] identifier[convert] operator[SEP] Keyword[final] identifier[ByteBuf] identifier[input] operator[SEP] { Keyword[if] operator[SEP] identifier[input] operator[SEP] identifier[readableBytes] operator[SEP] operator[SEP] operator[<=] Other[0] operator[S...
public boolean open(boolean async, DelayCalculator delayCalculator) { if (open.compareAndSet(false, true)) { assert lock != null; notificator = Executors.newSingleThreadExecutor(new NotificationThreadFactory()); // lock webcam for other Java (only) processes lock.lock(); // open webca...
class class_name[name] begin[{] method[open, return_type[type[boolean]], modifier[public], parameter[async, delayCalculator]] begin[{] if[call[open.compareAndSet, parameter[literal[false], literal[true]]]] begin[{] AssertStatement(condition=BinaryOperation(operandl=MemberReference(m...
Keyword[public] Keyword[boolean] identifier[open] operator[SEP] Keyword[boolean] identifier[async] , identifier[DelayCalculator] identifier[delayCalculator] operator[SEP] { Keyword[if] operator[SEP] identifier[open] operator[SEP] identifier[compareAndSet] operator[SEP] literal[boolean] , literal[boolean] opera...
@Override public Object findByInterface(String application, String interfaceName) throws EJBException, RemoteException { return ejbLinkResolver.findByInterface(application, interfaceName); }
class class_name[name] begin[{] method[findByInterface, return_type[type[Object]], modifier[public], parameter[application, interfaceName]] begin[{] return[call[ejbLinkResolver.findByInterface, parameter[member[.application], member[.interfaceName]]]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[findByInterface] operator[SEP] identifier[String] identifier[application] , identifier[String] identifier[interfaceName] operator[SEP] Keyword[throws] identifier[EJBException] , identifier[RemoteException] { Keyword[return] identi...
public void windowUpdateRatio(float ratio) { assert ctx == null || ctx.executor().inEventLoop(); checkValidRatio(ratio); windowUpdateRatio = ratio; }
class class_name[name] begin[{] method[windowUpdateRatio, return_type[void], modifier[public], parameter[ratio]] begin[{] AssertStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=ctx, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operand...
Keyword[public] Keyword[void] identifier[windowUpdateRatio] operator[SEP] Keyword[float] identifier[ratio] operator[SEP] { Keyword[assert] identifier[ctx] operator[==] Other[null] operator[||] identifier[ctx] operator[SEP] identifier[executor] operator[SEP] operator[SEP] operator[SEP] identifier[inEventLoop] ope...
private Expr parseRangeExpression(EnclosingScope scope, boolean terminated) { int start = index; Expr lhs = parseAdditiveExpression(scope, true); match(DotDot); Expr rhs = parseAdditiveExpression(scope, true); Expr range = new Expr.ArrayRange(Type.Void, lhs, rhs); return annotateSourceLocation(range, start)...
class class_name[name] begin[{] method[parseRangeExpression, return_type[type[Expr]], modifier[private], parameter[scope, terminated]] begin[{] local_variable[type[int], start] local_variable[type[Expr], lhs] call[.match, parameter[member[.DotDot]]] local_variable[type[E...
Keyword[private] identifier[Expr] identifier[parseRangeExpression] operator[SEP] identifier[EnclosingScope] identifier[scope] , Keyword[boolean] identifier[terminated] operator[SEP] { Keyword[int] identifier[start] operator[=] identifier[index] operator[SEP] identifier[Expr] identifier[lhs] operator[=] identifi...
public void marshall(TagResourceRequest tagResourceRequest, ProtocolMarshaller protocolMarshaller) { if (tagResourceRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(tagResourceRequest.getArn...
class class_name[name] begin[{] method[marshall, return_type[void], modifier[public], parameter[tagResourceRequest, protocolMarshaller]] begin[{] if[binary_operation[member[.tagResourceRequest], ==, literal[null]]] begin[{] ThrowStatement(expression=ClassCreator(arguments=[Literal(p...
Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[TagResourceRequest] identifier[tagResourceRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] { Keyword[if] operator[SEP] identifier[tagResourceRequest] operator[==] Other[null] operator[SEP] { ...
public static MsmsPipelineAnalysis parse(Path path) throws FileParsingException { try { XMLStreamReader xsr = JaxbUtils.createXmlStreamReader(path, false); MsmsPipelineAnalysis msmsPipelineAnalysis = JaxbUtils .unmarshal(MsmsPipelineAnalysis.class, xsr); return msmsPipelineAnalysis; ...
class class_name[name] begin[{] method[parse, return_type[type[MsmsPipelineAnalysis]], modifier[public static], parameter[path]] begin[{] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberReference(m...
Keyword[public] Keyword[static] identifier[MsmsPipelineAnalysis] identifier[parse] operator[SEP] identifier[Path] identifier[path] operator[SEP] Keyword[throws] identifier[FileParsingException] { Keyword[try] { identifier[XMLStreamReader] identifier[xsr] operator[=] identifier[JaxbUtils] operator[SEP]...
public static Class<?>[] primitivesToWrappers(final Class<?>... classes) { if (classes == null) { return null; } if (classes.length == 0) { return classes; } final Class<?>[] convertedClasses = new Class[classes.length]; for (int i = 0; i < class...
class class_name[name] begin[{] method[primitivesToWrappers, return_type[type[Class]], modifier[public static], parameter[classes]] begin[{] if[binary_operation[member[.classes], ==, literal[null]]] begin[{] return[literal[null]] else begin[{] None end[}] ...
Keyword[public] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] operator[SEP] operator[SEP] identifier[primitivesToWrappers] operator[SEP] Keyword[final] identifier[Class] operator[<] operator[?] operator[>] operator[...] identifier[classes] operator[SEP] { Keyword[if] operator[SEP] identif...
public OvhCredential currentCredential_GET() throws IOException { String qPath = "/auth/currentCredential"; StringBuilder sb = path(qPath); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, OvhCredential.class); }
class class_name[name] begin[{] method[currentCredential_GET, return_type[type[OvhCredential]], modifier[public], parameter[]] begin[{] local_variable[type[String], qPath] local_variable[type[StringBuilder], sb] local_variable[type[String], resp] return[call[.convertTo, paramete...
Keyword[public] identifier[OvhCredential] identifier[currentCredential_GET] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] { identifier[String] identifier[qPath] operator[=] literal[String] operator[SEP] identifier[StringBuilder] identifier[sb] operator[=] identifier[path] operator[SEP] iden...
public void setLinkWithSitesTreeSelection(boolean enabled) { linkWithSitesTreeButton.setSelected(enabled); if (enabled) { extension.setShowJustInScope(false); final JTree sitesTree = view.getSiteTreePanel().getTreeSite(); final TreePath selectionPath = sitesTree....
class class_name[name] begin[{] method[setLinkWithSitesTreeSelection, return_type[void], modifier[public], parameter[enabled]] begin[{] call[linkWithSitesTreeButton.setSelected, parameter[member[.enabled]]] if[member[.enabled]] begin[{] call[extension.set...
Keyword[public] Keyword[void] identifier[setLinkWithSitesTreeSelection] operator[SEP] Keyword[boolean] identifier[enabled] operator[SEP] { identifier[linkWithSitesTreeButton] operator[SEP] identifier[setSelected] operator[SEP] identifier[enabled] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[e...
public Config setTopicConfigs(Map<String, TopicConfig> topicConfigs) { this.topicConfigs.clear(); this.topicConfigs.putAll(topicConfigs); for (final Entry<String, TopicConfig> entry : this.topicConfigs.entrySet()) { entry.getValue().setName(entry.getKey()); } return t...
class class_name[name] begin[{] method[setTopicConfigs, return_type[type[Config]], modifier[public], parameter[topicConfigs]] begin[{] THIS[member[None.topicConfigs]call[None.clear, parameter[]]] THIS[member[None.topicConfigs]call[None.putAll, parameter[member[.topicConfigs]]]] ...
Keyword[public] identifier[Config] identifier[setTopicConfigs] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[TopicConfig] operator[>] identifier[topicConfigs] operator[SEP] { Keyword[this] operator[SEP] identifier[topicConfigs] operator[SEP] identifier[clear] operator[SEP] operator[S...
public <B, C> DecomposableMatchBuilder2<T, B, C> decomposeFirst( DecomposableMatchBuilder2<A, B, C> first) { Objects.requireNonNull(first); Map<Integer, DecomposableMatchBuilder> buildersByIndex = Maps.treeMapOf(extractedIndex, first); List<Matcher<Object>> matchers = getChildMatchers(buildersByInde...
class class_name[name] begin[{] method[decomposeFirst, return_type[type[DecomposableMatchBuilder2]], modifier[public], parameter[first]] begin[{] call[Objects.requireNonNull, parameter[member[.first]]] local_variable[type[Map], buildersByIndex] local_variable[type[List], matcher...
Keyword[public] operator[<] identifier[B] , identifier[C] operator[>] identifier[DecomposableMatchBuilder2] operator[<] identifier[T] , identifier[B] , identifier[C] operator[>] identifier[decomposeFirst] operator[SEP] identifier[DecomposableMatchBuilder2] operator[<] identifier[A] , identifier[B] , identifier[C] ...
@Override public boolean isExtension() { if (isExtension == null) { if (archive.getType() == ArchiveType.ON_DEMAND_LIB) { isExtension = false; } else { Set<String> extensionClazz = archive.getExtensionClasses(); isExtension = extensionC...
class class_name[name] begin[{] method[isExtension, return_type[type[boolean]], modifier[public], parameter[]] begin[{] if[binary_operation[member[.isExtension], ==, literal[null]]] begin[{] if[binary_operation[call[archive.getType, parameter[]], ==, member[ArchiveType.O...
annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isExtension] operator[SEP] operator[SEP] { Keyword[if] operator[SEP] identifier[isExtension] operator[==] Other[null] operator[SEP] { Keyword[if] operator[SEP] identifier[archive] operator[SEP] identifier[getType] operator[...
public Method findBestMethodWithSignature( String methodName, Class<?>... argumentsClasses ) throws NoSuchMethodException, SecurityException { return findBestMethodWithSignature(methodName, true, argumentsClasses); }
class class_name[name] begin[{] method[findBestMethodWithSignature, return_type[type[Method]], modifier[public], parameter[methodName, argumentsClasses]] begin[{] return[call[.findBestMethodWithSignature, parameter[member[.methodName], literal[true], member[.argumentsClasses]]]] end[}] END[}]
Keyword[public] identifier[Method] identifier[findBestMethodWithSignature] operator[SEP] identifier[String] identifier[methodName] , identifier[Class] operator[<] operator[?] operator[>] operator[...] identifier[argumentsClasses] operator[SEP] Keyword[throws] identifier[NoSuchMethodException] , identifier[SecurityExc...
public static String getText(URL url) throws IOException { return getText(url, CharsetToolkit.getDefaultSystemCharset().name()); }
class class_name[name] begin[{] method[getText, return_type[type[String]], modifier[public static], parameter[url]] begin[{] return[call[.getText, parameter[member[.url], call[CharsetToolkit.getDefaultSystemCharset, parameter[]]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[String] identifier[getText] operator[SEP] identifier[URL] identifier[url] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] identifier[getText] operator[SEP] identifier[url] , identifier[CharsetToolkit] operator[SEP] identifier[getDefaultSystemCha...
public PreparedStatement prepareStatement(final String _sql, final String[] _strings) throws SQLException { return getConnection().prepareStatement(_sql, _strings); }
class class_name[name] begin[{] method[prepareStatement, return_type[type[PreparedStatement]], modifier[public], parameter[_sql, _strings]] begin[{] return[call[.getConnection, parameter[]]] end[}] END[}]
Keyword[public] identifier[PreparedStatement] identifier[prepareStatement] operator[SEP] Keyword[final] identifier[String] identifier[_sql] , Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[_strings] operator[SEP] Keyword[throws] identifier[SQLException] { Keyword[return] identifier[get...
protected void execute(StoreOperation storeOperation, MavenProject rootModule, Set<MavenProject> executedModules) throws MojoExecutionException, MojoFailureException { synchronized (cachingStoreProvider) { Store store = getStore(rootModule); if (isResetStoreBeforeExecution() ...
class class_name[name] begin[{] method[execute, return_type[void], modifier[protected], parameter[storeOperation, rootModule, executedModules]] begin[{] SYNCHRONIZED[member[.cachingStoreProvider]] BEGIN[{] local_variable[type[Store], store] if[binary_operatio...
Keyword[protected] Keyword[void] identifier[execute] operator[SEP] identifier[StoreOperation] identifier[storeOperation] , identifier[MavenProject] identifier[rootModule] , identifier[Set] operator[<] identifier[MavenProject] operator[>] identifier[executedModules] operator[SEP] Keyword[throws] identifier[MojoExecuti...
public static BankCardMagneticTrack from(final String rawTrackData) { final Track1FormatB track1 = Track1FormatB.from(rawTrackData); final Track2 track2 = Track2.from(rawTrackData); final Track3 track3 = Track3.from(rawTrackData); return new BankCardMagneticTrack(rawTrackData, track1, track2, track3)...
class class_name[name] begin[{] method[from, return_type[type[BankCardMagneticTrack]], modifier[public static], parameter[rawTrackData]] begin[{] local_variable[type[Track1FormatB], track1] local_variable[type[Track2], track2] local_variable[type[Track3], track3] return[ClassCre...
Keyword[public] Keyword[static] identifier[BankCardMagneticTrack] identifier[from] operator[SEP] Keyword[final] identifier[String] identifier[rawTrackData] operator[SEP] { Keyword[final] identifier[Track1FormatB] identifier[track1] operator[=] identifier[Track1FormatB] operator[SEP] identifier[from] operator[SEP...
@Override public GlobalsModel addGlobal(GlobalModel global) { addChildModel(global); _globals.add(global); return this; }
class class_name[name] begin[{] method[addGlobal, return_type[type[GlobalsModel]], modifier[public], parameter[global]] begin[{] call[.addChildModel, parameter[member[.global]]] call[_globals.add, parameter[member[.global]]] return[THIS[]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[GlobalsModel] identifier[addGlobal] operator[SEP] identifier[GlobalModel] identifier[global] operator[SEP] { identifier[addChildModel] operator[SEP] identifier[global] operator[SEP] operator[SEP] identifier[_globals] operator[SEP] identifier[add] oper...
public Enumeration<URL> getResources(String name) throws IOException { List<Enumeration<URL>> enumerations = new ArrayList<Enumeration<URL>>(parents.size() + 1); for (ClassLoader parent : parents) { enumerations.add(parent.getResources(name)); } enumerations.add(super.getReso...
class class_name[name] begin[{] method[getResources, return_type[type[Enumeration]], modifier[public], parameter[name]] begin[{] local_variable[type[List], enumerations] ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInv...
Keyword[public] identifier[Enumeration] operator[<] identifier[URL] operator[>] identifier[getResources] operator[SEP] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[IOException] { identifier[List] operator[<] identifier[Enumeration] operator[<] identifier[URL] operator[>] operator[...
@Override public BoundingBox getBoundingBox(Projection projection) { Contents contents = geometryColumns.getContents(); BoundingBox boundingBox = contents.getBoundingBox(projection); return boundingBox; }
class class_name[name] begin[{] method[getBoundingBox, return_type[type[BoundingBox]], modifier[public], parameter[projection]] begin[{] local_variable[type[Contents], contents] local_variable[type[BoundingBox], boundingBox] return[member[.boundingBox]] end[}] END[}]
annotation[@] identifier[Override] Keyword[public] identifier[BoundingBox] identifier[getBoundingBox] operator[SEP] identifier[Projection] identifier[projection] operator[SEP] { identifier[Contents] identifier[contents] operator[=] identifier[geometryColumns] operator[SEP] identifier[getContents] operator[SEP] o...
public GenerationFileHandler rotate(String storeSuffix, String activeSuffix) throws IOException { return rotate(storeSuffix, activeSuffix, false); }
class class_name[name] begin[{] method[rotate, return_type[type[GenerationFileHandler]], modifier[public], parameter[storeSuffix, activeSuffix]] begin[{] return[call[.rotate, parameter[member[.storeSuffix], member[.activeSuffix], literal[false]]]] end[}] END[}]
Keyword[public] identifier[GenerationFileHandler] identifier[rotate] operator[SEP] identifier[String] identifier[storeSuffix] , identifier[String] identifier[activeSuffix] operator[SEP] Keyword[throws] identifier[IOException] { Keyword[return] identifier[rotate] operator[SEP] identifier[storeSuffix] , identifi...
public static SecretKey deserializeSecretKey(byte[] keyData, String algorithm) { LOGGER.trace("deserialize secret key from data using algorithm \"{}\"", algorithm); return new SecretKeySpec(keyData, algorithm); }
class class_name[name] begin[{] method[deserializeSecretKey, return_type[type[SecretKey]], modifier[public static], parameter[keyData, algorithm]] begin[{] call[LOGGER.trace, parameter[literal["deserialize secret key from data using algorithm \"{}\""], member[.algorithm]]] return[ClassC...
Keyword[public] Keyword[static] identifier[SecretKey] identifier[deserializeSecretKey] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[keyData] , identifier[String] identifier[algorithm] operator[SEP] { identifier[LOGGER] operator[SEP] identifier[trace] operator[SEP] literal[String] , identi...
public void add(CharRange cond) { if (set.isEmpty()) { set.add(cond); } else { List<CharRange> remlist = new ArrayList<CharRange>(); List<CharRange> addlist = new ArrayList<CharRange>(); boolean is = false; ...
class class_name[name] begin[{] method[add, return_type[void], modifier[public], parameter[cond]] begin[{] if[call[set.isEmpty, parameter[]]] begin[{] call[set.add, parameter[member[.cond]]] else begin[{] local_variable[type[List], remlist] ...
Keyword[public] Keyword[void] identifier[add] operator[SEP] identifier[CharRange] identifier[cond] operator[SEP] { Keyword[if] operator[SEP] identifier[set] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] { identifier[set] operator[SEP] identifier[add] operator[SEP] identif...
public void updateExpiration( final MemcachedBackupSession session ) throws InterruptedException { if ( _log.isDebugEnabled() ) { _log.debug( "Updating expiration time for session " + session.getId() ); } if ( !_memcachedNodesManager.getSessionIdFormat().isValid( session.getId() ) )...
class class_name[name] begin[{] method[updateExpiration, return_type[void], modifier[public], parameter[session]] begin[{] if[call[_log.isDebugEnabled, parameter[]]] begin[{] call[_log.debug, parameter[binary_operation[literal["Updating expiration time for session "], +,...
Keyword[public] Keyword[void] identifier[updateExpiration] operator[SEP] Keyword[final] identifier[MemcachedBackupSession] identifier[session] operator[SEP] Keyword[throws] identifier[InterruptedException] { Keyword[if] operator[SEP] identifier[_log] operator[SEP] identifier[isDebugEnabled] operator[SEP] operato...
protected final QB generateQuery(final Map<String, List<Object>> query) { QB queryBuilder = null; if (this.queryAttributeMapping != null) { for (final Map.Entry<String, Set<String>> queryAttrEntry : this.queryAttributeMapping.entrySet()) { final String queryAttr = queryAttrE...
class class_name[name] begin[{] method[generateQuery, return_type[type[QB]], modifier[final protected], parameter[query]] begin[{] local_variable[type[QB], queryBuilder] if[binary_operation[THIS[member[None.queryAttributeMapping]], !=, literal[null]]] begin[{] ForStatement(b...
Keyword[protected] Keyword[final] identifier[QB] identifier[generateQuery] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[Object] operator[>] operator[>] identifier[query] operator[SEP] { identifier[QB] identifier[queryBuilder] operator[=] O...
public XYSeries addSeries(String seriesName, int[] xData, int[] yData, int[] errorBars) { return addSeries( seriesName, Utils.getDoubleArrayFromIntArray(xData), Utils.getDoubleArrayFromIntArray(yData), Utils.getDoubleArrayFromIntArray(errorBars), DataType.Number); }
class class_name[name] begin[{] method[addSeries, return_type[type[XYSeries]], modifier[public], parameter[seriesName, xData, yData, errorBars]] begin[{] return[call[.addSeries, parameter[member[.seriesName], call[Utils.getDoubleArrayFromIntArray, parameter[member[.xData]]], call[Utils.getDoubleArrayFr...
Keyword[public] identifier[XYSeries] identifier[addSeries] operator[SEP] identifier[String] identifier[seriesName] , Keyword[int] operator[SEP] operator[SEP] identifier[xData] , Keyword[int] operator[SEP] operator[SEP] identifier[yData] , Keyword[int] operator[SEP] operator[SEP] identifier[errorBars] operator[SEP] ...
public static Conference createConference(final Map<String, Object> params) throws Exception { return createConference(BandwidthClient.getInstance(), params); }
class class_name[name] begin[{] method[createConference, return_type[type[Conference]], modifier[public static], parameter[params]] begin[{] return[call[.createConference, parameter[call[BandwidthClient.getInstance, parameter[]], member[.params]]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[Conference] identifier[createConference] operator[SEP] Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[params] operator[SEP] Keyword[throws] identifier[Exception] { Keyword[return] identifier[createConference] o...
public static List<String> getElements(File file, String charset) { List<String> list = new ArrayList<>(); try (BufferedReader br = new BufferedReader( new InputStreamReader(java.nio.file.Files.newInputStream(file.toPath()), charset))) { StringBuilder sb = new StringBuilder(4096); String line...
class class_name[name] begin[{] method[getElements, return_type[type[List]], modifier[public static], parameter[file, charset]] begin[{] local_variable[type[List], list] TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Class...
Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[getElements] operator[SEP] identifier[File] identifier[file] , identifier[String] identifier[charset] operator[SEP] { identifier[List] operator[<] identifier[String] operator[>] identifier[list] operator[=] Ke...
@Override public int getLogSummaryExpiry(String originalAppenderName) { return CONFIGURATION.getIntProperty( "netflix.blitz4j." + originalAppenderName + ".discardEntryExpireSeconds", Integer.valueOf(this.getPropertyValue("netflix.blitz4j." ...
class class_name[name] begin[{] method[getLogSummaryExpiry, return_type[type[int]], modifier[public], parameter[originalAppenderName]] begin[{] return[call[CONFIGURATION.getIntProperty, parameter[binary_operation[binary_operation[literal["netflix.blitz4j."], +, member[.originalAppenderName]], +, litera...
annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[getLogSummaryExpiry] operator[SEP] identifier[String] identifier[originalAppenderName] operator[SEP] { Keyword[return] identifier[CONFIGURATION] operator[SEP] identifier[getIntProperty] operator[SEP] literal[String] operator[+] identifier...
protected synchronized Thread start(boolean forceRestart) { if (!forceRestart && isFixingActive()) { fixThread.interrupt(); } if (forceRestart || !isFixingActive()) { fixThread = new FixThread(); fixThread.start(); } return fixThread; }
class class_name[name] begin[{] method[start, return_type[type[Thread]], modifier[synchronized protected], parameter[forceRestart]] begin[{] if[binary_operation[member[.forceRestart], &&, call[.isFixingActive, parameter[]]]] begin[{] call[fixThread.interrupt, parameter[]...
Keyword[protected] Keyword[synchronized] identifier[Thread] identifier[start] operator[SEP] Keyword[boolean] identifier[forceRestart] operator[SEP] { Keyword[if] operator[SEP] operator[!] identifier[forceRestart] operator[&&] identifier[isFixingActive] operator[SEP] operator[SEP] operator[SEP] { ident...
public void sendMessage(Message message) throws NotConnectedException, InterruptedException { message.setTo(room); message.setType(Message.Type.groupchat); connection.sendStanza(message); }
class class_name[name] begin[{] method[sendMessage, return_type[void], modifier[public], parameter[message]] begin[{] call[message.setTo, parameter[member[.room]]] call[message.setType, parameter[member[Message.Type.groupchat]]] call[connection.sendStanza, parame...
Keyword[public] Keyword[void] identifier[sendMessage] operator[SEP] identifier[Message] identifier[message] operator[SEP] Keyword[throws] identifier[NotConnectedException] , identifier[InterruptedException] { identifier[message] operator[SEP] identifier[setTo] operator[SEP] identifier[room] operator[SEP] operat...
private void jButtonDelStreamActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonDelStreamActionPerformed this.streamModel.removeRow(this.jTableStreams.getSelectedRow()); }
class class_name[name] begin[{] method[jButtonDelStreamActionPerformed, return_type[void], modifier[private], parameter[evt]] begin[{] THIS[member[None.streamModel]call[None.removeRow, parameter[THIS[member[None.jTableStreams]call[None.getSelectedRow, parameter[]]]]]] end[}] END[}]
Keyword[private] Keyword[void] identifier[jButtonDelStreamActionPerformed] operator[SEP] identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[event] operator[SEP] identifier[ActionEvent] identifier[evt] operator[SEP] { Keyword[this] operator[SEP] identifier[streamModel] operator[SEP] identifie...
public static boolean isValidXMLName(String s) { // Catch the empty string or null. if (s == null || "".equals(s)) { return false; } // Since the string isn't empty, check that the first character is a // valid starting character. if (!isXMLNameStart(s.codePointAt(0))) { return false; } // Loop...
class class_name[name] begin[{] method[isValidXMLName, return_type[type[boolean]], modifier[public static], parameter[s]] begin[{] if[binary_operation[binary_operation[member[.s], ==, literal[null]], ||, literal[""]]] begin[{] return[literal[false]] else begin[{] None ...
Keyword[public] Keyword[static] Keyword[boolean] identifier[isValidXMLName] operator[SEP] identifier[String] identifier[s] operator[SEP] { Keyword[if] operator[SEP] identifier[s] operator[==] Other[null] operator[||] literal[String] operator[SEP] identifier[equals] operator[SEP] identifier[s] operator[SEP] opera...
public Optional<EdgeLabel> getOutEdgeLabel(String edgeLabelName) { EdgeLabel edgeLabel = getOutEdgeLabels().get(this.schema.getName() + "." + edgeLabelName); if (edgeLabel != null) { return Optional.of(edgeLabel); } return Optional.empty(); }
class class_name[name] begin[{] method[getOutEdgeLabel, return_type[type[Optional]], modifier[public], parameter[edgeLabelName]] begin[{] local_variable[type[EdgeLabel], edgeLabel] if[binary_operation[member[.edgeLabel], !=, literal[null]]] begin[{] return[call[Optional.of, ...
Keyword[public] identifier[Optional] operator[<] identifier[EdgeLabel] operator[>] identifier[getOutEdgeLabel] operator[SEP] identifier[String] identifier[edgeLabelName] operator[SEP] { identifier[EdgeLabel] identifier[edgeLabel] operator[=] identifier[getOutEdgeLabels] operator[SEP] operator[SEP] operator[SEP] ...
private void buildDependencyTree() throws DependencyTreeBuilderException { if ( rootNode == null ) { rootNode = dependencyTreeBuilder.buildDependencyTree( project, localRepository, artifactFactory, artifac...
class class_name[name] begin[{] method[buildDependencyTree, return_type[void], modifier[private], parameter[]] begin[{] if[binary_operation[member[.rootNode], ==, literal[null]]] begin[{] assign[member[.rootNode], call[dependencyTreeBuilder.buildDependencyTree, parameter...
Keyword[private] Keyword[void] identifier[buildDependencyTree] operator[SEP] operator[SEP] Keyword[throws] identifier[DependencyTreeBuilderException] { Keyword[if] operator[SEP] identifier[rootNode] operator[==] Other[null] operator[SEP] { identifier[rootNode] operator[=] identifier[dependencyTreeBuil...
public void applyServiceAccount(ServiceAccount serviceAccount, String sourceName) throws Exception { String namespace = getNamespace(); String id = getName(serviceAccount); Objects.requireNonNull(id, "No name for " + serviceAccount + " " + sourceName); if (isServicesOnlyMode()) { ...
class class_name[name] begin[{] method[applyServiceAccount, return_type[void], modifier[public], parameter[serviceAccount, sourceName]] begin[{] local_variable[type[String], namespace] local_variable[type[String], id] call[Objects.requireNonNull, parameter[member[.id], binary_op...
Keyword[public] Keyword[void] identifier[applyServiceAccount] operator[SEP] identifier[ServiceAccount] identifier[serviceAccount] , identifier[String] identifier[sourceName] operator[SEP] Keyword[throws] identifier[Exception] { identifier[String] identifier[namespace] operator[=] identifier[getNamespace] operat...
public static CommerceWarehouse fetchByG_C_First(long groupId, long commerceCountryId, OrderByComparator<CommerceWarehouse> orderByComparator) { return getPersistence() .fetchByG_C_First(groupId, commerceCountryId, orderByComparator); }
class class_name[name] begin[{] method[fetchByG_C_First, return_type[type[CommerceWarehouse]], modifier[public static], parameter[groupId, commerceCountryId, orderByComparator]] begin[{] return[call[.getPersistence, parameter[]]] end[}] END[}]
Keyword[public] Keyword[static] identifier[CommerceWarehouse] identifier[fetchByG_C_First] operator[SEP] Keyword[long] identifier[groupId] , Keyword[long] identifier[commerceCountryId] , identifier[OrderByComparator] operator[<] identifier[CommerceWarehouse] operator[>] identifier[orderByComparator] operator[SEP] { ...
@CheckReturnValue public RestAction<List<Message>> retrieveFuture(int amount) { if (amount > 100 || amount < 1) throw new IllegalArgumentException("Message retrieval limit is between 1 and 100 messages. No more, no less. Limit provided: " + amount); if (history.isEmpty()) ...
class class_name[name] begin[{] method[retrieveFuture, return_type[type[RestAction]], modifier[public], parameter[amount]] begin[{] if[binary_operation[binary_operation[member[.amount], >, literal[100]], ||, binary_operation[member[.amount], <, literal[1]]]] begin[{] ThrowStatement(expression=C...
annotation[@] identifier[CheckReturnValue] Keyword[public] identifier[RestAction] operator[<] identifier[List] operator[<] identifier[Message] operator[>] operator[>] identifier[retrieveFuture] operator[SEP] Keyword[int] identifier[amount] operator[SEP] { Keyword[if] operator[SEP] identifier[amount] operator[>] ...
@SuppressWarnings("unchecked") public static Object getMBean(final Class c, final String name) throws Throwable { final MBeanServer server = getMbeanServer(); // return MBeanProxyExt.create(c, name, server); return JMX.newMBeanProxy(server, new ObjectName(name), c); }
class class_name[name] begin[{] method[getMBean, return_type[type[Object]], modifier[public static], parameter[c, name]] begin[{] local_variable[type[MBeanServer], server] return[call[JMX.newMBeanProxy, parameter[member[.server], ClassCreator(arguments=[MemberReference(member=name, postfix_oper...
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[Object] identifier[getMBean] operator[SEP] Keyword[final] identifier[Class] identifier[c] , Keyword[final] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[Throw...
public JobScheduleTerminateHeaders withLastModified(DateTime lastModified) { if (lastModified == null) { this.lastModified = null; } else { this.lastModified = new DateTimeRfc1123(lastModified); } return this; }
class class_name[name] begin[{] method[withLastModified, return_type[type[JobScheduleTerminateHeaders]], modifier[public], parameter[lastModified]] begin[{] if[binary_operation[member[.lastModified], ==, literal[null]]] begin[{] assign[THIS[member[None.lastModified]], li...
Keyword[public] identifier[JobScheduleTerminateHeaders] identifier[withLastModified] operator[SEP] identifier[DateTime] identifier[lastModified] operator[SEP] { Keyword[if] operator[SEP] identifier[lastModified] operator[==] Other[null] operator[SEP] { Keyword[this] operator[SEP] identifier[lastModifi...
public String computeSignature(String requestMethod, String targetUrl, Map<String, String> params) { return computeSignature(requestMethod, targetUrl, params, consumerSecret, tokenSecret); }
class class_name[name] begin[{] method[computeSignature, return_type[type[String]], modifier[public], parameter[requestMethod, targetUrl, params]] begin[{] return[call[.computeSignature, parameter[member[.requestMethod], member[.targetUrl], member[.params], member[.consumerSecret], member[.tokenSecret]...
Keyword[public] identifier[String] identifier[computeSignature] operator[SEP] identifier[String] identifier[requestMethod] , identifier[String] identifier[targetUrl] , identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[params] operator[SEP] { Keyword[return] identifier[...
private static String getFreeVariable(Expression2 expression, int index, Scope scope) { Expression2 sub = expression.getSubexpression(index); if (sub.isConstant()) { String constant = sub.getConstant(); if (!constant.equals(LAMBDA) && !scope.isBound(constant)) { return sub.getConstant(); ...
class class_name[name] begin[{] method[getFreeVariable, return_type[type[String]], modifier[private static], parameter[expression, index, scope]] begin[{] local_variable[type[Expression2], sub] if[call[sub.isConstant, parameter[]]] begin[{] local_variable[type[String], const...
Keyword[private] Keyword[static] identifier[String] identifier[getFreeVariable] operator[SEP] identifier[Expression2] identifier[expression] , Keyword[int] identifier[index] , identifier[Scope] identifier[scope] operator[SEP] { identifier[Expression2] identifier[sub] operator[=] identifier[expression] operator...
static void replaceEntry(PollArrayWrapper source, int sindex, PollArrayWrapper target, int tindex) { target.putDescriptor(tindex, source.getDescriptor(sindex)); target.putEventOps(tindex, source.getEventOps(sindex)); target.putReventOps(tindex, source.getReventOps(sindex));...
class class_name[name] begin[{] method[replaceEntry, return_type[void], modifier[static], parameter[source, sindex, target, tindex]] begin[{] call[target.putDescriptor, parameter[member[.tindex], call[source.getDescriptor, parameter[member[.sindex]]]]] call[target.putEventOps, p...
Keyword[static] Keyword[void] identifier[replaceEntry] operator[SEP] identifier[PollArrayWrapper] identifier[source] , Keyword[int] identifier[sindex] , identifier[PollArrayWrapper] identifier[target] , Keyword[int] identifier[tindex] operator[SEP] { identifier[target] operator[SEP] identifier[putDescriptor] ...