code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
@SuppressWarnings("unchecked")
@Override
public EList<IfcValue> getEnumerationValues() {
return (EList<IfcValue>) eGet(Ifc4Package.Literals.IFC_PROPERTY_ENUMERATED_VALUE__ENUMERATION_VALUES, true);
} | class class_name[name] begin[{]
method[getEnumerationValues, return_type[type[EList]], modifier[public], parameter[]] begin[{]
return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_PROPERTY_ENUMERATED_VALUE__ENUMERATION_VALUES, postfix_operators=[], prefix_operators=[], qualifie... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[EList] operator[<] identifier[IfcValue] operator[>] identifier[getEnumerationValues] operator[SEP] operator[SEP] {
Keyword[return] operator[SEP] identifier[EList] o... |
protected PGPPublicKey findPublicKey(InputStream publicKey, KeyFilter<PGPPublicKey> keyFilter ) {
LOGGER.trace("findPublicKey(InputStream, KeyFilter<PGPPublicKey>)");
LOGGER.trace("Public Key: {}, Key Filter: {}", publicKey == null ? "not set" : "set", keyFilter == null ? "not set" : "set");
return retrieve... | class class_name[name] begin[{]
method[findPublicKey, return_type[type[PGPPublicKey]], modifier[protected], parameter[publicKey, keyFilter]] begin[{]
call[LOGGER.trace, parameter[literal["findPublicKey(InputStream, KeyFilter<PGPPublicKey>)"]]]
call[LOGGER.trace, parameter[litera... | Keyword[protected] identifier[PGPPublicKey] identifier[findPublicKey] operator[SEP] identifier[InputStream] identifier[publicKey] , identifier[KeyFilter] operator[<] identifier[PGPPublicKey] operator[>] identifier[keyFilter] operator[SEP] {
identifier[LOGGER] operator[SEP] identifier[trace] operator[SEP] litera... |
public AdvisorListResultInner listByServer(String resourceGroupName, String serverName) {
return listByServerWithServiceResponseAsync(resourceGroupName, serverName).toBlocking().single().body();
} | class class_name[name] begin[{]
method[listByServer, return_type[type[AdvisorListResultInner]], modifier[public], parameter[resourceGroupName, serverName]] begin[{]
return[call[.listByServerWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.serverName]]]]
end[}]
END[}] | Keyword[public] identifier[AdvisorListResultInner] identifier[listByServer] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[serverName] operator[SEP] {
Keyword[return] identifier[listByServerWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] , i... |
public List<Class<?>> resolveFieldGenerics(final Field field) {
return switchContext4field(field).resolveGenericsOf(field.getGenericType());
} | class class_name[name] begin[{]
method[resolveFieldGenerics, return_type[type[List]], modifier[public], parameter[field]] begin[{]
return[call[.switchContext4field, parameter[member[.field]]]]
end[}]
END[}] | Keyword[public] identifier[List] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[resolveFieldGenerics] operator[SEP] Keyword[final] identifier[Field] identifier[field] operator[SEP] {
Keyword[return] identifier[switchContext4field] operator[SEP] identifier[field] operator... |
public ConstantNameAndTypeInfo addConstantNameAndType(String name,
Descriptor type) {
return (ConstantNameAndTypeInfo)addConstant(new ConstantNameAndTypeInfo(this, name, type));
} | class class_name[name] begin[{]
method[addConstantNameAndType, return_type[type[ConstantNameAndTypeInfo]], modifier[public], parameter[name, type]] begin[{]
return[Cast(expression=MethodInvocation(arguments=[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selecto... | Keyword[public] identifier[ConstantNameAndTypeInfo] identifier[addConstantNameAndType] operator[SEP] identifier[String] identifier[name] , identifier[Descriptor] identifier[type] operator[SEP] {
Keyword[return] operator[SEP] identifier[ConstantNameAndTypeInfo] operator[SEP] identifier[addConstant] operator[SEP]... |
protected void writeText(IoSession session, String text, ProtocolDecoderOutput out) {
out.write(text);
} | class class_name[name] begin[{]
method[writeText, return_type[void], modifier[protected], parameter[session, text, out]] begin[{]
call[out.write, parameter[member[.text]]]
end[}]
END[}] | Keyword[protected] Keyword[void] identifier[writeText] operator[SEP] identifier[IoSession] identifier[session] , identifier[String] identifier[text] , identifier[ProtocolDecoderOutput] identifier[out] operator[SEP] {
identifier[out] operator[SEP] identifier[write] operator[SEP] identifier[text] operator[SEP] o... |
private static IReactionScheme setScheme(IReaction reaction, IReactionSet reactionSet) {
IReactionScheme reactionScheme = reaction.getBuilder().newInstance(IReactionScheme.class);
IReactionSet reactConSet = extractSubsequentReaction(reaction, reactionSet);
if (reactConSet.getReactionCount() != ... | class class_name[name] begin[{]
method[setScheme, return_type[type[IReactionScheme]], modifier[private static], parameter[reaction, reactionSet]] begin[{]
local_variable[type[IReactionScheme], reactionScheme]
local_variable[type[IReactionSet], reactConSet]
if[binary_operation[ca... | Keyword[private] Keyword[static] identifier[IReactionScheme] identifier[setScheme] operator[SEP] identifier[IReaction] identifier[reaction] , identifier[IReactionSet] identifier[reactionSet] operator[SEP] {
identifier[IReactionScheme] identifier[reactionScheme] operator[=] identifier[reaction] operator[SEP] ide... |
private void handleMulti(@NonNull String[] permissionNames) {
List<String> permissions = declinedPermissionsAsList(context, permissionNames);
if (permissions.isEmpty()) {
permissionCallback.onPermissionGranted(permissionNames);
return;
}
boolean hasAlertWindowPerm... | class class_name[name] begin[{]
method[handleMulti, return_type[void], modifier[private], parameter[permissionNames]] begin[{]
local_variable[type[List], permissions]
if[call[permissions.isEmpty, parameter[]]] begin[{]
call[permissionCallback.onPermissionGranted,... | Keyword[private] Keyword[void] identifier[handleMulti] operator[SEP] annotation[@] identifier[NonNull] identifier[String] operator[SEP] operator[SEP] identifier[permissionNames] operator[SEP] {
identifier[List] operator[<] identifier[String] operator[>] identifier[permissions] operator[=] identifier[declinedPerm... |
public void marshall(Invite invite, ProtocolMarshaller protocolMarshaller) {
if (invite == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(invite.getInviteId(), INVITEID_BINDING);
protocol... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[invite, protocolMarshaller]] begin[{]
if[binary_operation[member[.invite], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], pre... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[Invite] identifier[invite] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[invite] operator[==] Other[null] operator[SEP] {
Keyword[throw] Keyword[new] iden... |
public Object[] setEnableNonFilter(Object[] rgobjEnable, boolean bHasNext, boolean bBreak, boolean bAfterRequery, boolean bSelectEOF, boolean bFieldListeners)
{
boolean bEnable = (rgobjEnable == null) ? false : true;
if (bFieldListeners)
{
if (rgobjEnable == null)
... | class class_name[name] begin[{]
method[setEnableNonFilter, return_type[type[Object]], modifier[public], parameter[rgobjEnable, bHasNext, bBreak, bAfterRequery, bSelectEOF, bFieldListeners]] begin[{]
local_variable[type[boolean], bEnable]
if[member[.bFieldListeners]] begin[{]
... | Keyword[public] identifier[Object] operator[SEP] operator[SEP] identifier[setEnableNonFilter] operator[SEP] identifier[Object] operator[SEP] operator[SEP] identifier[rgobjEnable] , Keyword[boolean] identifier[bHasNext] , Keyword[boolean] identifier[bBreak] , Keyword[boolean] identifier[bAfterRequery] , Keyword[bool... |
public static CalendarYear from(GregorianDate date) {
PlainDate iso = PlainDate.from(date); // includes validation
return CalendarYear.of(iso.getYear());
} | class class_name[name] begin[{]
method[from, return_type[type[CalendarYear]], modifier[public static], parameter[date]] begin[{]
local_variable[type[PlainDate], iso]
return[call[CalendarYear.of, parameter[call[iso.getYear, parameter[]]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[CalendarYear] identifier[from] operator[SEP] identifier[GregorianDate] identifier[date] operator[SEP] {
identifier[PlainDate] identifier[iso] operator[=] identifier[PlainDate] operator[SEP] identifier[from] operator[SEP] identifier[date] operator[SEP] operator[SEP] Keyw... |
@XmlElementDecl(namespace = "http://www.w3.org/1999/xlink", name = "locator")
public JAXBElement<LocatorType> createLocator(LocatorType value) {
return new JAXBElement<LocatorType>(_Locator_QNAME, LocatorType.class, null, value);
} | class class_name[name] begin[{]
method[createLocator, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=_Locator_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_operators... | annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[LocatorType] operator[>] identifier[createLocator] operator[SEP] identifier[LocatorType] i... |
public String getLatLonBoundaryAsWKT(int maxPointsInYEdge, int maxPointsInXEdge) {
List<LatLonPointNoNormalize> points = calcConnectedLatLonBoundaryPoints(maxPointsInYEdge, maxPointsInXEdge);
StringBuilder sb = new StringBuilder("POLYGON((");
for (LatLonPointNoNormalize point : points) {
sb.append(St... | class class_name[name] begin[{]
method[getLatLonBoundaryAsWKT, return_type[type[String]], modifier[public], parameter[maxPointsInYEdge, maxPointsInXEdge]] begin[{]
local_variable[type[List], points]
local_variable[type[StringBuilder], sb]
ForStatement(body=BlockStatement(label=None, sta... | Keyword[public] identifier[String] identifier[getLatLonBoundaryAsWKT] operator[SEP] Keyword[int] identifier[maxPointsInYEdge] , Keyword[int] identifier[maxPointsInXEdge] operator[SEP] {
identifier[List] operator[<] identifier[LatLonPointNoNormalize] operator[>] identifier[points] operator[=] identifier[calcConn... |
public final LocatedString contentLocatedSubstringByContentOffsets(
final OffsetRange<CharOffset> contentOffsets) {
final UnicodeFriendlyString substringText = content().substringByCodePoints(contentOffsets);
final List<CharacterRegion> substringOffsets =
offsetsOfSubstringByContentCodepointOffset... | class class_name[name] begin[{]
method[contentLocatedSubstringByContentOffsets, return_type[type[LocatedString]], modifier[final public], parameter[contentOffsets]] begin[{]
local_variable[type[UnicodeFriendlyString], substringText]
local_variable[type[List], substringOffsets]
return[Cl... | Keyword[public] Keyword[final] identifier[LocatedString] identifier[contentLocatedSubstringByContentOffsets] operator[SEP] Keyword[final] identifier[OffsetRange] operator[<] identifier[CharOffset] operator[>] identifier[contentOffsets] operator[SEP] {
Keyword[final] identifier[UnicodeFriendlyString] identifier[s... |
@Override
public boolean eIsSet(int featureID) {
switch (featureID) {
case BpsimPackage.WEIBULL_DISTRIBUTION_TYPE__SCALE:
return isSetScale();
case BpsimPackage.WEIBULL_DISTRIBUTION_TYPE__SHAPE:
return isSetShape();
}
return super.eIsSet(featureID);
} | class class_name[name] begin[{]
method[eIsSet, return_type[type[boolean]], modifier[public], parameter[featureID]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=WEIBULL_DISTRIBUTION_TYPE__SCALE, postfix_operators=[], prefix_operators=[], qualifier=BpsimPackage, select... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[eIsSet] operator[SEP] Keyword[int] identifier[featureID] operator[SEP] {
Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] {
Keyword[case] identifier[BpsimPackage] operator[SEP] identifier[WEIBULL_DISTRIBUTI... |
private void init() {
if (placeholder == null) {
IdentificationManager.getInstance().registerIdentification(this);
Optional<Identification> identification = IdentificationManager.getInstance().getIdentification(this);
if (!identification.isPresent()) {
throw n... | class class_name[name] begin[{]
method[init, return_type[void], modifier[private], parameter[]] begin[{]
if[binary_operation[member[.placeholder], ==, literal[null]]] begin[{]
call[IdentificationManager.getInstance, parameter[]]
local_variable[type[Optional],... | Keyword[private] Keyword[void] identifier[init] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[placeholder] operator[==] Other[null] operator[SEP] {
identifier[IdentificationManager] operator[SEP] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[register... |
private void unprotectedUpdateCount(INode[] inodes, int numOfINodes,
long nsDelta, long dsDelta) {
for(int i=0; i < numOfINodes; i++) {
if (inodes[i].isQuotaSet()) { // a directory with quota
INodeDirectoryWithQuota node =(INodeDirectoryWithQuota)inodes[i];
... | class class_name[name] begin[{]
method[unprotectedUpdateCount, return_type[void], modifier[private], parameter[inodes, numOfINodes, nsDelta, dsDelta]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MemberReference(member=inodes, postfix_operators=[], prefix_oper... | Keyword[private] Keyword[void] identifier[unprotectedUpdateCount] operator[SEP] identifier[INode] operator[SEP] operator[SEP] identifier[inodes] , Keyword[int] identifier[numOfINodes] , Keyword[long] identifier[nsDelta] , Keyword[long] identifier[dsDelta] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int... |
public <V> void sput(FieldId<?, V> fieldId, Local<? extends V> source) {
addInstruction(new ThrowingCstInsn(Rops.opPutStatic(source.type.ropType), sourcePosition,
RegisterSpecList.make(source.spec()), catches, fieldId.constant));
} | class class_name[name] begin[{]
method[sput, return_type[void], modifier[public], parameter[fieldId, source]] begin[{]
call[.addInstruction, parameter[ClassCreator(arguments=[MethodInvocation(arguments=[MemberReference(member=ropType, postfix_operators=[], prefix_operators=[], qualifier=source.... | Keyword[public] operator[<] identifier[V] operator[>] Keyword[void] identifier[sput] operator[SEP] identifier[FieldId] operator[<] operator[?] , identifier[V] operator[>] identifier[fieldId] , identifier[Local] operator[<] operator[?] Keyword[extends] identifier[V] operator[>] identifier[source] operator[SEP] {
... |
private void parseDoNotAllowDuplicateSetCookies(Map<?, ?> props) {
//PI31734 - prevent multiple Set-Cookies with the same name
String value = (String) props.get(HttpConfigConstants.PROPNAME_DO_NOT_ALLOW_DUPLICATE_SET_COOKIES);
if (null != value) {
this.doNotAllowDuplicateSetCookies =... | class class_name[name] begin[{]
method[parseDoNotAllowDuplicateSetCookies, return_type[void], modifier[private], parameter[props]] begin[{]
local_variable[type[String], value]
if[binary_operation[literal[null], !=, member[.value]]] begin[{]
assign[THIS[member[Non... | Keyword[private] Keyword[void] identifier[parseDoNotAllowDuplicateSetCookies] operator[SEP] identifier[Map] operator[<] operator[?] , operator[?] operator[>] identifier[props] operator[SEP] {
identifier[String] identifier[value] operator[=] operator[SEP] identifier[String] operator[SEP] identifier[props] operat... |
public static ItemViewHolder createViewHolder(View view, Class<? extends ItemViewHolder> itemViewHolderClass) {
try {
Constructor<? extends ItemViewHolder> constructor = itemViewHolderClass.getConstructor(View.class);
return constructor.newInstance(view);
} catch (IllegalAccessEx... | class class_name[name] begin[{]
method[createViewHolder, return_type[type[ItemViewHolder]], modifier[public static], parameter[view, itemViewHolderClass]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(ar... | Keyword[public] Keyword[static] identifier[ItemViewHolder] identifier[createViewHolder] operator[SEP] identifier[View] identifier[view] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[ItemViewHolder] operator[>] identifier[itemViewHolderClass] operator[SEP] {
Keyword[try] {
id... |
@SuppressLint("CommitTransaction")
private static FragmentTransaction transit(FragmentManager fm, int transit) {
return fm != null ? fm.beginTransaction().setTransition(transit) : null;
} | class class_name[name] begin[{]
method[transit, return_type[type[FragmentTransaction]], modifier[private static], parameter[fm, transit]] begin[{]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=fm, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]),... | annotation[@] identifier[SuppressLint] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[static] identifier[FragmentTransaction] identifier[transit] operator[SEP] identifier[FragmentManager] identifier[fm] , Keyword[int] identifier[transit] operator[SEP] {
Keyword[return] identifier[fm] opera... |
public static void checkNotNull(Object object, String errorMessage){
try {
Preconditions.checkNotNull(object, errorMessage);
} catch (NullPointerException exception) {
throw new ApplicationException(ApplicationException.Code.INVALID_INPUT, errorMessage);
}
} | class class_name[name] begin[{]
method[checkNotNull, return_type[void], modifier[public static], parameter[object, errorMessage]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=object, postfix_operators=[], prefix_operators=[], qualifier=,... | Keyword[public] Keyword[static] Keyword[void] identifier[checkNotNull] operator[SEP] identifier[Object] identifier[object] , identifier[String] identifier[errorMessage] operator[SEP] {
Keyword[try] {
identifier[Preconditions] operator[SEP] identifier[checkNotNull] operator[SEP] identifier[object] , ... |
@Override
public FileApiResponse deleteFile(Class<? extends FileEntity> type, Integer entityId, Integer fileId) {
return this.handleDeleteFile(type, entityId, fileId);
} | class class_name[name] begin[{]
method[deleteFile, return_type[type[FileApiResponse]], modifier[public], parameter[type, entityId, fileId]] begin[{]
return[THIS[call[None.handleDeleteFile, parameter[member[.type], member[.entityId], member[.fileId]]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[FileApiResponse] identifier[deleteFile] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[FileEntity] operator[>] identifier[type] , identifier[Integer] identifier[entityId] , identifier[Integer] identifier[fileId] operato... |
public void webEvent(final WebEvent webEvent) {
if (LOG.isDebugEnabled()) {
LOG.debug("Sending web event " + webEvent + " for bundle "
+ webEvent.getBundleName());
}
synchronized (listeners) {
callListeners(webEvent);
states.put(webEvent.getBundleId(), webEvent);
}
final String to... | class class_name[name] begin[{]
method[webEvent, return_type[void], modifier[public], parameter[webEvent]] begin[{]
if[call[LOG.isDebugEnabled, parameter[]]] begin[{]
call[LOG.debug, parameter[binary_operation[binary_operation[binary_operation[literal["Sending web event ... | Keyword[public] Keyword[void] identifier[webEvent] operator[SEP] Keyword[final] identifier[WebEvent] identifier[webEvent] operator[SEP] {
Keyword[if] operator[SEP] identifier[LOG] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator[SEP] operator[SEP] {
identifier[LOG] operator[SEP] identif... |
void dumpAssociationTables()
{
Enumeration associations = m_patternTable.elements();
while (associations.hasMoreElements())
{
TemplateSubPatternAssociation head =
(TemplateSubPatternAssociation) associations.nextElement();
while (null != head)
{
System.out.print("(" + ... | class class_name[name] begin[{]
method[dumpAssociationTables, return_type[void], modifier[default], parameter[]] begin[{]
local_variable[type[Enumeration], associations]
while[call[associations.hasMoreElements, parameter[]]] begin[{]
local_variable[type[TemplateSubPatternAss... | Keyword[void] identifier[dumpAssociationTables] operator[SEP] operator[SEP] {
identifier[Enumeration] identifier[associations] operator[=] identifier[m_patternTable] operator[SEP] identifier[elements] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[associations] operator[SEP] id... |
public DiscoverInputSchemaResult withParsedInputRecords(java.util.Collection<java.util.List<String>> parsedInputRecords) {
setParsedInputRecords(parsedInputRecords);
return this;
} | class class_name[name] begin[{]
method[withParsedInputRecords, return_type[type[DiscoverInputSchemaResult]], modifier[public], parameter[parsedInputRecords]] begin[{]
call[.setParsedInputRecords, parameter[member[.parsedInputRecords]]]
return[THIS[]]
end[}]
END[}] | Keyword[public] identifier[DiscoverInputSchemaResult] identifier[withParsedInputRecords] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[String] operator[>... |
@Override
public boolean isOrdered() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "isOrdered");
boolean returnValue = getTarget().isOrdered();
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.exit(tc, "isOrd... | class class_name[name] begin[{]
method[isOrdered, return_type[type[boolean]], modifier[public], parameter[]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, parameter[member[.tc... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isOrdered] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnable... |
private static void fireResponseReceivedEvent(OperationContext opContext, HttpURLConnection request,
RequestResult result) {
if (opContext.getResponseReceivedEventHandler().hasListeners()
|| OperationContext.getGlobalResponseReceivedEventHandler().hasListeners()) {
Respon... | class class_name[name] begin[{]
method[fireResponseReceivedEvent, return_type[void], modifier[private static], parameter[opContext, request, result]] begin[{]
if[binary_operation[call[opContext.getResponseReceivedEventHandler, parameter[]], ||, call[OperationContext.getGlobalResponseReceivedEve... | Keyword[private] Keyword[static] Keyword[void] identifier[fireResponseReceivedEvent] operator[SEP] identifier[OperationContext] identifier[opContext] , identifier[HttpURLConnection] identifier[request] , identifier[RequestResult] identifier[result] operator[SEP] {
Keyword[if] operator[SEP] identifier[opContext... |
public static void setupGroupsAndUsers(InstallContext ctx,
Map<String, List<String>> groups,
Map<String, List<String>> systemUsers,
Map<String, List<String>> users) throws PackageException {
... | class class_name[name] begin[{]
method[setupGroupsAndUsers, return_type[void], modifier[public static], parameter[ctx, groups, systemUsers, users]] begin[{]
local_variable[type[UserManagementService], userManagementService]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarator... | Keyword[public] Keyword[static] Keyword[void] identifier[setupGroupsAndUsers] operator[SEP] identifier[InstallContext] identifier[ctx] , identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[String] operator[>] operator[>] identifier[groups] , identifier[Map] operator[<] identifier... |
public void i(String format, Object... args) {
println(LogLevel.INFO, format, args);
} | class class_name[name] begin[{]
method[i, return_type[void], modifier[public], parameter[format, args]] begin[{]
call[.println, parameter[member[LogLevel.INFO], member[.format], member[.args]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[i] operator[SEP] identifier[String] identifier[format] , identifier[Object] operator[...] identifier[args] operator[SEP] {
identifier[println] operator[SEP] identifier[LogLevel] operator[SEP] identifier[INFO] , identifier[format] , identifier[args] operator[SEP] operat... |
public static void v(String format, Object... args) {
assertInitialization();
sLogger.v(format, args);
} | class class_name[name] begin[{]
method[v, return_type[void], modifier[public static], parameter[format, args]] begin[{]
call[.assertInitialization, parameter[]]
call[sLogger.v, parameter[member[.format], member[.args]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[void] identifier[v] operator[SEP] identifier[String] identifier[format] , identifier[Object] operator[...] identifier[args] operator[SEP] {
identifier[assertInitialization] operator[SEP] operator[SEP] operator[SEP] identifier[sLogger] operator[SEP] identifier[v] operator[... |
public ElementUI getNextSibling(boolean visibleOnly) {
ElementUI parent = getParent();
if (parent != null) {
int count = parent.getChildCount();
for (int i = getIndex() + 1; i < count; i++) {
ElementUI child = (ElementUI) parent.getChild(i);
... | class class_name[name] begin[{]
method[getNextSibling, return_type[type[ElementUI]], modifier[public], parameter[visibleOnly]] begin[{]
local_variable[type[ElementUI], parent]
if[binary_operation[member[.parent], !=, literal[null]]] begin[{]
local_variable[type[int], count]
... | Keyword[public] identifier[ElementUI] identifier[getNextSibling] operator[SEP] Keyword[boolean] identifier[visibleOnly] operator[SEP] {
identifier[ElementUI] identifier[parent] operator[=] identifier[getParent] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[parent] operator[!=] Ot... |
public CmsGroup readGroup(CmsRequestContext context, CmsProject project) {
CmsDbContext dbc = m_dbContextFactory.getDbContext(context);
CmsGroup result = null;
try {
result = m_driverManager.readGroup(dbc, project);
} finally {
dbc.clear();
}
retu... | class class_name[name] begin[{]
method[readGroup, return_type[type[CmsGroup]], modifier[public], parameter[context, project]] begin[{]
local_variable[type[CmsDbContext], dbc]
local_variable[type[CmsGroup], result]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl... | Keyword[public] identifier[CmsGroup] identifier[readGroup] operator[SEP] identifier[CmsRequestContext] identifier[context] , identifier[CmsProject] identifier[project] operator[SEP] {
identifier[CmsDbContext] identifier[dbc] operator[=] identifier[m_dbContextFactory] operator[SEP] identifier[getDbContext] opera... |
public final void ruleXAnnotationElementValue() throws RecognitionException {
int stackSize = keepStackSize();
try {
// InternalXbaseWithAnnotations.g:146:2: ( ( ( rule__XAnnotationElementValue__Alternatives ) ) )
// InternalXbaseWithAnnotations.g:147:2: ( ( rule__XA... | class class_name[name] begin[{]
method[ruleXAnnotationElementValue, return_type[void], modifier[final public], parameter[]] begin[{]
local_variable[type[int], stackSize]
TryStatement(block=[BlockStatement(label=None, statements=[BlockStatement(label=None, statements=[IfStatement(condition=Binar... | Keyword[public] Keyword[final] Keyword[void] identifier[ruleXAnnotationElementValue] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] {
Keyword[int] identifier[stackSize] operator[=] identifier[keepStackSize] operator[SEP] operator[SEP] operator[SEP] Keyword[try] {
{
... |
@Execute
public HtmlResponse details(final String dictId, final int crudMode, final long id) {
verifyCrudMode(crudMode, CrudMode.DETAILS, dictId);
saveToken();
return asDetailsHtml().useForm(
EditForm.class,
op -> {
op.setup(form -> {
... | class class_name[name] begin[{]
method[details, return_type[type[HtmlResponse]], modifier[public], parameter[dictId, crudMode, id]] begin[{]
call[.verifyCrudMode, parameter[member[.crudMode], member[CrudMode.DETAILS], member[.dictId]]]
call[.saveToken, parameter[]]
retur... | annotation[@] identifier[Execute] Keyword[public] identifier[HtmlResponse] identifier[details] operator[SEP] Keyword[final] identifier[String] identifier[dictId] , Keyword[final] Keyword[int] identifier[crudMode] , Keyword[final] Keyword[long] identifier[id] operator[SEP] {
identifier[verifyCrudMode] operator[... |
static String[] toNoNullStringArray(final Collection<String> collection) {
if (collection == null) {
return ArrayUtils.EMPTY_STRING_ARRAY;
}
return toNoNullStringArray(collection.toArray());
} | class class_name[name] begin[{]
method[toNoNullStringArray, return_type[type[String]], modifier[static], parameter[collection]] begin[{]
if[binary_operation[member[.collection], ==, literal[null]]] begin[{]
return[member[ArrayUtils.EMPTY_STRING_ARRAY]]
else begin[{]
None
... | Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[toNoNullStringArray] operator[SEP] Keyword[final] identifier[Collection] operator[<] identifier[String] operator[>] identifier[collection] operator[SEP] {
Keyword[if] operator[SEP] identifier[collection] operator[==] Other[null] operator[S... |
protected <O> Map<O, IntList> partition(List<? extends O> classcolumn) {
Map<O, IntList> classes = new HashMap<>();
Iterator<? extends O> iter = classcolumn.iterator();
for(int i = 0; iter.hasNext(); i++) {
O lbl = iter.next();
IntList ids = classes.get(lbl);
if(ids == null) {
ids ... | class class_name[name] begin[{]
method[partition, return_type[type[Map]], modifier[protected], parameter[classcolumn]] begin[{]
local_variable[type[Map], classes]
local_variable[type[Iterator], iter]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annot... | Keyword[protected] operator[<] identifier[O] operator[>] identifier[Map] operator[<] identifier[O] , identifier[IntList] operator[>] identifier[partition] operator[SEP] identifier[List] operator[<] operator[?] Keyword[extends] identifier[O] operator[>] identifier[classcolumn] operator[SEP] {
identifier[Map] ope... |
public void addInterface(String interfaceName) {
if (!mInterfaceSet.contains(interfaceName)) {
mInterfaces.add(mCp.addConstantClass(interfaceName));
mInterfaceSet.add(interfaceName);
}
} | class class_name[name] begin[{]
method[addInterface, return_type[void], modifier[public], parameter[interfaceName]] begin[{]
if[call[mInterfaceSet.contains, parameter[member[.interfaceName]]]] begin[{]
call[mInterfaces.add, parameter[call[mCp.addConstantClass, parameter[... | Keyword[public] Keyword[void] identifier[addInterface] operator[SEP] identifier[String] identifier[interfaceName] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[mInterfaceSet] operator[SEP] identifier[contains] operator[SEP] identifier[interfaceName] operator[SEP] operator[SEP] {
ide... |
@Override
public InputStream getInputStream() throws IOException {
InputStream inputStream = fileItem.getInputStream();
return (inputStream != null ? inputStream : new ByteArrayInputStream(new byte[0]));
} | class class_name[name] begin[{]
method[getInputStream, return_type[type[InputStream]], modifier[public], parameter[]] begin[{]
local_variable[type[InputStream], inputStream]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=inputStream, postfix_operators=[], pre... | annotation[@] identifier[Override] Keyword[public] identifier[InputStream] identifier[getInputStream] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[InputStream] identifier[inputStream] operator[=] identifier[fileItem] operator[SEP] identifier[getInputStream] operator[SEP] opera... |
public static byte[] longToBytes(long rmid)
{
return new byte[] { (byte)(rmid>>56), (byte)(rmid>>48), (byte)(rmid>>40), (byte)(rmid>>32),
(byte)(rmid>>24), (byte)(rmid>>16), (byte)(rmid>>8), (byte)(rmid)};
} | class class_name[name] begin[{]
method[longToBytes, return_type[type[byte]], modifier[public static], parameter[rmid]] begin[{]
return[ArrayCreator(dimensions=[None], initializer=ArrayInitializer(initializers=[Cast(expression=BinaryOperation(operandl=MemberReference(member=rmid, postfix_operators=[], p... | Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[longToBytes] operator[SEP] Keyword[long] identifier[rmid] operator[SEP] {
Keyword[return] Keyword[new] Keyword[byte] operator[SEP] operator[SEP] {
operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[rmi... |
public void flush() throws IOException {
final ByteBuffer data = ByteBuffer.allocate(
getCapacity() * FatDirectoryEntry.SIZE + (volumeLabel != null ? FatDirectoryEntry.SIZE : 0));
for (FatDirectoryEntry entry : this.entries) {
if (entry != null) {
... | class class_name[name] begin[{]
method[flush, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[ByteBuffer], data]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=entry, postfix_operators... | Keyword[public] Keyword[void] identifier[flush] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[final] identifier[ByteBuffer] identifier[data] operator[=] identifier[ByteBuffer] operator[SEP] identifier[allocate] operator[SEP] identifier[getCapacity] operator[SEP] operator[SEP] oper... |
public double[] getScaleDenominators() {
double[] dest = new double[this.scaleDenominators.length];
System.arraycopy(this.scaleDenominators, 0, dest, 0, this.scaleDenominators.length);
return dest;
} | class class_name[name] begin[{]
method[getScaleDenominators, return_type[type[double]], modifier[public], parameter[]] begin[{]
local_variable[type[double], dest]
call[System.arraycopy, parameter[THIS[member[None.scaleDenominators]], literal[0], member[.dest], literal[0], THIS[member[No... | Keyword[public] Keyword[double] operator[SEP] operator[SEP] identifier[getScaleDenominators] operator[SEP] operator[SEP] {
Keyword[double] operator[SEP] operator[SEP] identifier[dest] operator[=] Keyword[new] Keyword[double] operator[SEP] Keyword[this] operator[SEP] identifier[scaleDenominators] operator[SEP] id... |
public final static String byteArrayAsHex(final byte[] buf, final int limit) {
final StringBuilder sb = new StringBuilder();
for (int i = 0; i < limit; ++i) {
if ((i % 16) == 0) { // print offset
sb.append(nativeAsHex(i, 32)).append(" ");
} else if (((i) % 8) == 0) { // split on qword
sb.append(" ");... | class class_name[name] begin[{]
method[byteArrayAsHex, return_type[type[String]], modifier[final public static], parameter[buf, limit]] begin[{]
local_variable[type[StringBuilder], sb]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=Binary... | Keyword[public] Keyword[final] Keyword[static] identifier[String] identifier[byteArrayAsHex] operator[SEP] Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[buf] , Keyword[final] Keyword[int] identifier[limit] operator[SEP] {
Keyword[final] identifier[StringBuilder] identifier[sb] operator[=] ... |
public int read4BE() throws OtpErlangDecodeException {
final byte[] b = new byte[4];
try {
super.read(b);
} catch (final IOException e) {
throw new OtpErlangDecodeException("Cannot read from input stream");
}
return (b[0] << 24 & 0xff000000) + (b[1] << 16 ... | class class_name[name] begin[{]
method[read4BE, return_type[type[int]], modifier[public], parameter[]] begin[{]
local_variable[type[byte], b]
TryStatement(block=[StatementExpression(expression=SuperMethodInvocation(arguments=[MemberReference(member=b, postfix_operators=[], prefix_operators=[], ... | Keyword[public] Keyword[int] identifier[read4BE] operator[SEP] operator[SEP] Keyword[throws] identifier[OtpErlangDecodeException] {
Keyword[final] Keyword[byte] operator[SEP] operator[SEP] identifier[b] operator[=] Keyword[new] Keyword[byte] operator[SEP] Other[4] operator[SEP] operator[SEP] Keyword[try] {
... |
public static MemberFetcher fetcher(final String pathServiceSid,
final String pathChannelSid,
final String pathSid) {
return new MemberFetcher(pathServiceSid, pathChannelSid, pathSid);
} | class class_name[name] begin[{]
method[fetcher, return_type[type[MemberFetcher]], modifier[public static], parameter[pathServiceSid, pathChannelSid, pathSid]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=pathServiceSid, postfix_operators=[], prefix_operators=[], qualifier=, selectors=... | Keyword[public] Keyword[static] identifier[MemberFetcher] identifier[fetcher] operator[SEP] Keyword[final] identifier[String] identifier[pathServiceSid] , Keyword[final] identifier[String] identifier[pathChannelSid] , Keyword[final] identifier[String] identifier[pathSid] operator[SEP] {
Keyword[return] Keyword... |
static boolean jaxTemplate(String href) {
Matcher m = JAX_RS_TEMPLATE.matcher(href);
return m.matches();
} | class class_name[name] begin[{]
method[jaxTemplate, return_type[type[boolean]], modifier[static], parameter[href]] begin[{]
local_variable[type[Matcher], m]
return[call[m.matches, parameter[]]]
end[}]
END[}] | Keyword[static] Keyword[boolean] identifier[jaxTemplate] operator[SEP] identifier[String] identifier[href] operator[SEP] {
identifier[Matcher] identifier[m] operator[=] identifier[JAX_RS_TEMPLATE] operator[SEP] identifier[matcher] operator[SEP] identifier[href] operator[SEP] operator[SEP] Keyword[return] identif... |
public String getName() {
if (null == this.name && null != this.byteArray) {
try {
this.name = new String(this.byteArray, HeaderStorage.ENGLISH_CHARSET);
} catch (UnsupportedEncodingException uee) {
// no FFDC required
// Invalid key name
... | class class_name[name] begin[{]
method[getName, return_type[type[String]], modifier[public], parameter[]] begin[{]
if[binary_operation[binary_operation[literal[null], ==, THIS[member[None.name]]], &&, binary_operation[literal[null], !=, THIS[member[None.byteArray]]]]] begin[{]
TrySt... | Keyword[public] identifier[String] identifier[getName] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] Other[null] operator[==] Keyword[this] operator[SEP] identifier[name] operator[&&] Other[null] operator[!=] Keyword[this] operator[SEP] identifier[byteArray] operator[SEP] {
Keyword[try] {
... |
private Status runSparkJob(JavaSparkContext sc, PrintWriter reportWriter) {
// Generate a list of integer for testing
List<Integer> nums = IntStream.rangeClosed(1, mPartitions).boxed().collect(Collectors.toList());
JavaRDD<Integer> dataSet = sc.parallelize(nums, mPartitions);
// Run a Spark job to che... | class class_name[name] begin[{]
method[runSparkJob, return_type[type[Status]], modifier[private], parameter[sc, reportWriter]] begin[{]
local_variable[type[List], nums]
local_variable[type[JavaRDD], dataSet]
local_variable[type[JavaPairRDD], extractedStatus]
local_variable[type[... | Keyword[private] identifier[Status] identifier[runSparkJob] operator[SEP] identifier[JavaSparkContext] identifier[sc] , identifier[PrintWriter] identifier[reportWriter] operator[SEP] {
identifier[List] operator[<] identifier[Integer] operator[>] identifier[nums] operator[=] identifier[IntStream] operator[SEP] i... |
public Object get(int index) {
return HprofInstanceValue.getTypeValue(dumpBuffer, offset + ((long)index * (long)elSize), type).toString();
} | class class_name[name] begin[{]
method[get, return_type[type[Object]], modifier[public], parameter[index]] begin[{]
return[call[HprofInstanceValue.getTypeValue, parameter[member[.dumpBuffer], binary_operation[member[.offset], +, binary_operation[Cast(expression=MemberReference(member=index, postfix_ope... | Keyword[public] identifier[Object] identifier[get] operator[SEP] Keyword[int] identifier[index] operator[SEP] {
Keyword[return] identifier[HprofInstanceValue] operator[SEP] identifier[getTypeValue] operator[SEP] identifier[dumpBuffer] , identifier[offset] operator[+] operator[SEP] operator[SEP] Keyword[long] op... |
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
circle = circlePaths.get(0);
circle.center[0] = maxLength * mInterpolatedTime;
RectF ball1 = new RectF();
ball1.left = circle.center[0] - circle.radius;
ball1.top = circle.center[1] - circle.radiu... | class class_name[name] begin[{]
method[onDraw, return_type[void], modifier[protected], parameter[canvas]] begin[{]
SuperMethodInvocation(arguments=[MemberReference(member=canvas, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=onDraw, postfix_operators=[], prefix_o... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[onDraw] operator[SEP] identifier[Canvas] identifier[canvas] operator[SEP] {
Keyword[super] operator[SEP] identifier[onDraw] operator[SEP] identifier[canvas] operator[SEP] operator[SEP] identifier[circle] operator[=] identifier[circleP... |
public OvhExchangeServiceProtocol organizationName_service_exchangeService_protocol_GET(String organizationName, String exchangeService) throws IOException {
String qPath = "/email/exchange/{organizationName}/service/{exchangeService}/protocol";
StringBuilder sb = path(qPath, organizationName, exchangeService);
S... | class class_name[name] begin[{]
method[organizationName_service_exchangeService_protocol_GET, return_type[type[OvhExchangeServiceProtocol]], modifier[public], parameter[organizationName, exchangeService]] begin[{]
local_variable[type[String], qPath]
local_variable[type[StringBuilder], sb]
... | Keyword[public] identifier[OvhExchangeServiceProtocol] identifier[organizationName_service_exchangeService_protocol_GET] operator[SEP] identifier[String] identifier[organizationName] , identifier[String] identifier[exchangeService] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] ident... |
public static boolean canAcceptParent(Class<? extends ElementBase> childClass,
Class<? extends ElementBase> parentClass) {
return allowedParentClasses.isRelated(childClass, parentClass);
} | class class_name[name] begin[{]
method[canAcceptParent, return_type[type[boolean]], modifier[public static], parameter[childClass, parentClass]] begin[{]
return[call[allowedParentClasses.isRelated, parameter[member[.childClass], member[.parentClass]]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[boolean] identifier[canAcceptParent] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[ElementBase] operator[>] identifier[childClass] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[ElementBase] operator[>] identifier[pa... |
public void addMultipleItems(int times, final Object... values) {
for (int i = 0; i < times; i++) {
addItemAsArray(values);
}
} | class class_name[name] begin[{]
method[addMultipleItems, return_type[void], modifier[public], parameter[times, values]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=values, postfix_operators=[], prefi... | Keyword[public] Keyword[void] identifier[addMultipleItems] operator[SEP] Keyword[int] identifier[times] , Keyword[final] identifier[Object] operator[...] identifier[values] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifi... |
public static void insertFromBooleanArray(final boolean[] booleanValues,
final DeviceData deviceDataArgin, final int dataType) throws DevFailed {
// by default for xdim = 1, send the sum.
boolean firstBoolean = false;
if (booleanValues.length > 0) {
firstBoolean = booleanValues[0];
}
Integer intValue = ... | class class_name[name] begin[{]
method[insertFromBooleanArray, return_type[void], modifier[public static], parameter[booleanValues, deviceDataArgin, dataType]] begin[{]
local_variable[type[boolean], firstBoolean]
if[binary_operation[member[booleanValues.length], >, literal[0]]] begin[{]... | Keyword[public] Keyword[static] Keyword[void] identifier[insertFromBooleanArray] operator[SEP] Keyword[final] Keyword[boolean] operator[SEP] operator[SEP] identifier[booleanValues] , Keyword[final] identifier[DeviceData] identifier[deviceDataArgin] , Keyword[final] Keyword[int] identifier[dataType] operator[SEP] Keyw... |
private static void putTypes(Class<?> cls, Class<?> expectedCls, Class<?> commonBaseCls, Type[] types) {
poll();
genericInterfacesCache.put(new ClassesKey(referenceQueue, cls, expectedCls, commonBaseCls), types);
} | class class_name[name] begin[{]
method[putTypes, return_type[void], modifier[private static], parameter[cls, expectedCls, commonBaseCls, types]] begin[{]
call[.poll, parameter[]]
call[genericInterfacesCache.put, parameter[ClassCreator(arguments=[MemberReference(member=referenceQ... | Keyword[private] Keyword[static] Keyword[void] identifier[putTypes] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[cls] , identifier[Class] operator[<] operator[?] operator[>] identifier[expectedCls] , identifier[Class] operator[<] operator[?] operator[>] identifier[commonBaseCls] , i... |
public Packer setFillBoth(final boolean how) {
if (how == true) {
gc.fill = GridBagConstraints.BOTH;
gc.weightx = 1;
gc.weighty = 1;
} else {
gc.weightx = 0;
gc.weighty = 0;
gc.fill = 0;
}
setConstraints(comp, gc);
... | class class_name[name] begin[{]
method[setFillBoth, return_type[type[Packer]], modifier[public], parameter[how]] begin[{]
if[binary_operation[member[.how], ==, literal[true]]] begin[{]
assign[member[gc.fill], member[GridBagConstraints.BOTH]]
assig... | Keyword[public] identifier[Packer] identifier[setFillBoth] operator[SEP] Keyword[final] Keyword[boolean] identifier[how] operator[SEP] {
Keyword[if] operator[SEP] identifier[how] operator[==] literal[boolean] operator[SEP] {
identifier[gc] operator[SEP] identifier[fill] operator[=] identifier[GridBagC... |
public Object invoke (Object object, String methodName, Object... args) {
return invoke(object, getIndex(methodName, args == null ? 0 : args.length), args);
} | class class_name[name] begin[{]
method[invoke, return_type[type[Object]], modifier[public], parameter[object, methodName, args]] begin[{]
return[call[.invoke, parameter[member[.object], call[.getIndex, parameter[member[.methodName], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(m... | Keyword[public] identifier[Object] identifier[invoke] operator[SEP] identifier[Object] identifier[object] , identifier[String] identifier[methodName] , identifier[Object] operator[...] identifier[args] operator[SEP] {
Keyword[return] identifier[invoke] operator[SEP] identifier[object] , identifier[getIndex] o... |
private String updateRemoteHost(String remoteHost){
String [] splitStr = remoteHost.split("\\.");
remoteHost = new StringBuilder(remoteHost).insert(splitStr[0].length(), "-all").toString();
return remoteHost;
} | class class_name[name] begin[{]
method[updateRemoteHost, return_type[type[String]], modifier[private], parameter[remoteHost]] begin[{]
local_variable[type[String], splitStr]
assign[member[.remoteHost], ClassCreator(arguments=[MemberReference(member=remoteHost, postfix_operators=[], pref... | Keyword[private] identifier[String] identifier[updateRemoteHost] operator[SEP] identifier[String] identifier[remoteHost] operator[SEP] {
identifier[String] operator[SEP] operator[SEP] identifier[splitStr] operator[=] identifier[remoteHost] operator[SEP] identifier[split] operator[SEP] literal[String] operator[SE... |
protected XMLObject newAttributeValue(final Object value, final String valueType, final QName elementName) {
if (XSString.class.getSimpleName().equalsIgnoreCase(valueType)) {
val builder = new XSStringBuilder();
val attrValueObj = builder.buildObject(elementName, XSString.TYPE_NAME);
... | class class_name[name] begin[{]
method[newAttributeValue, return_type[type[XMLObject]], modifier[protected], parameter[value, valueType, elementName]] begin[{]
if[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[], member=getSimpleName... | Keyword[protected] identifier[XMLObject] identifier[newAttributeValue] operator[SEP] Keyword[final] identifier[Object] identifier[value] , Keyword[final] identifier[String] identifier[valueType] , Keyword[final] identifier[QName] identifier[elementName] operator[SEP] {
Keyword[if] operator[SEP] identifier[XSSt... |
public static PoolInfo createPoolInfo(PoolInfoStrings poolInfoStrings) {
if (poolInfoStrings == null) {
return null;
}
return new PoolInfo(poolInfoStrings.getPoolGroupName(),
poolInfoStrings.getPoolName());
} | class class_name[name] begin[{]
method[createPoolInfo, return_type[type[PoolInfo]], modifier[public static], parameter[poolInfoStrings]] begin[{]
if[binary_operation[member[.poolInfoStrings], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}... | Keyword[public] Keyword[static] identifier[PoolInfo] identifier[createPoolInfo] operator[SEP] identifier[PoolInfoStrings] identifier[poolInfoStrings] operator[SEP] {
Keyword[if] operator[SEP] identifier[poolInfoStrings] operator[==] Other[null] operator[SEP] {
Keyword[return] Other[null] operator[SEP]... |
private void downloadConservation(Species species, String assembly, Path speciesFolder)
throws IOException, InterruptedException {
logger.info("Downloading conservation information ...");
Path conservationFolder = speciesFolder.resolve("conservation");
if (species.getScientificName(... | class class_name[name] begin[{]
method[downloadConservation, return_type[void], modifier[private], parameter[species, assembly, speciesFolder]] begin[{]
call[logger.info, parameter[literal["Downloading conservation information ..."]]]
local_variable[type[Path], conservationFolder]
... | Keyword[private] Keyword[void] identifier[downloadConservation] operator[SEP] identifier[Species] identifier[species] , identifier[String] identifier[assembly] , identifier[Path] identifier[speciesFolder] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InterruptedException] {
identifier[log... |
protected List<ExtensionComponent<T>> load() {
LOGGER.fine(() -> String.format("Loading ExtensionList '%s'", extensionType.getName()));
if (LOGGER.isLoggable(Level.FINER)) {
LOGGER.log(Level.FINER, String.format("Loading ExtensionList '%s' from", extensionType.getName()), new Throwable("Only... | class class_name[name] begin[{]
method[load, return_type[type[List]], modifier[protected], parameter[]] begin[{]
call[LOGGER.fine, parameter[LambdaExpression(body=MethodInvocation(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="Loading Extensio... | Keyword[protected] identifier[List] operator[<] identifier[ExtensionComponent] operator[<] identifier[T] operator[>] operator[>] identifier[load] operator[SEP] operator[SEP] {
identifier[LOGGER] operator[SEP] identifier[fine] operator[SEP] operator[SEP] operator[SEP] operator[->] identifier[String] operator[SEP]... |
@Override
public void cacheResult(List<CommerceRegion> commerceRegions) {
for (CommerceRegion commerceRegion : commerceRegions) {
if (entityCache.getResult(
CommerceRegionModelImpl.ENTITY_CACHE_ENABLED,
CommerceRegionImpl.class, commerceRegion.getPrimaryKey()) == null) {
cacheResult(commerceRegion... | class class_name[name] begin[{]
method[cacheResult, return_type[void], modifier[public], parameter[commerceRegions]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[MemberReference(member=ENTITY_CACHE_ENABLED, ... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[cacheResult] operator[SEP] identifier[List] operator[<] identifier[CommerceRegion] operator[>] identifier[commerceRegions] operator[SEP] {
Keyword[for] operator[SEP] identifier[CommerceRegion] identifier[commerceRegion] operator[:] iden... |
public FessMessages addErrorsLoginFailure(String property) {
assertPropertyNotNull(property);
add(property, new UserMessage(ERRORS_LOGIN_FAILURE));
return this;
} | class class_name[name] begin[{]
method[addErrorsLoginFailure, return_type[type[FessMessages]], modifier[public], parameter[property]] begin[{]
call[.assertPropertyNotNull, parameter[member[.property]]]
call[.add, parameter[member[.property], ClassCreator(arguments=[MemberReferen... | Keyword[public] identifier[FessMessages] identifier[addErrorsLoginFailure] operator[SEP] identifier[String] identifier[property] operator[SEP] {
identifier[assertPropertyNotNull] operator[SEP] identifier[property] operator[SEP] operator[SEP] identifier[add] operator[SEP] identifier[property] , Keyword[new] iden... |
public EEnum getIfcTransportElementTypeEnum() {
if (ifcTransportElementTypeEnumEEnum == null) {
ifcTransportElementTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(920);
}
return ifcTransportElementTypeEnumEEnum;
} | class class_name[name] begin[{]
method[getIfcTransportElementTypeEnum, return_type[type[EEnum]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.ifcTransportElementTypeEnumEEnum], ==, literal[null]]] begin[{]
assign[member[.ifcTransportElementTypeEnum... | Keyword[public] identifier[EEnum] identifier[getIfcTransportElementTypeEnum] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifcTransportElementTypeEnumEEnum] operator[==] Other[null] operator[SEP] {
identifier[ifcTransportElementTypeEnumEEnum] operator[=] operator[SEP] identifier[E... |
protected void entity() {
nextChar();
String name = null;
if (ch == '#') {
int namep = bp;
nextChar();
if (isDecimalDigit(ch)) {
nextChar();
while (isDecimalDigit(ch))
nextChar();
name = new S... | class class_name[name] begin[{]
method[entity, return_type[void], modifier[protected], parameter[]] begin[{]
call[.nextChar, parameter[]]
local_variable[type[String], name]
if[binary_operation[member[.ch], ==, literal['#']]] begin[{]
local_variable[type[int],... | Keyword[protected] Keyword[void] identifier[entity] operator[SEP] operator[SEP] {
identifier[nextChar] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[name] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[ch] operator[==] literal[String] operator[SEP] {
... |
static void closeLink(CommsConnection conn) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "closeLink", conn);
conn.setSchemaSet(null);
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(tc, "closeLink");
} | class class_name[name] begin[{]
method[closeLink, return_type[void], modifier[static], parameter[conn]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, parameter[member[.tc], li... | Keyword[static] Keyword[void] identifier[closeLink] operator[SEP] identifier[CommsConnection] identifier[conn] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntr... |
private Object composeColumnValue(CqlMetadata cqlMetadata, byte[] thriftColumnValue, byte[] thriftColumnName) {
Map<ByteBuffer, String> schemaTypes = cqlMetadata.getValue_types();
AbstractType<?> type = null;
try {
type = TypeParser.parse(schemaTypes.get(ByteBuffer.wrap(thriftColumnN... | class class_name[name] begin[{]
method[composeColumnValue, return_type[type[Object]], modifier[private], parameter[cqlMetadata, thriftColumnValue, thriftColumnName]] begin[{]
local_variable[type[Map], schemaTypes]
local_variable[type[AbstractType], type]
TryStatement(block=[StatementExp... | Keyword[private] identifier[Object] identifier[composeColumnValue] operator[SEP] identifier[CqlMetadata] identifier[cqlMetadata] , Keyword[byte] operator[SEP] operator[SEP] identifier[thriftColumnValue] , Keyword[byte] operator[SEP] operator[SEP] identifier[thriftColumnName] operator[SEP] {
identifier[Map] ope... |
@Nullable
public static BigDecimal parseBigDecimal (@Nullable final String sStr,
@Nonnegative final int nScale,
@Nonnull final RoundingMode eRoundingMode)
{
return parseBigDecimal (sStr, nScale, eRoundingMode, null);
} | class class_name[name] begin[{]
method[parseBigDecimal, return_type[type[BigDecimal]], modifier[public static], parameter[sStr, nScale, eRoundingMode]] begin[{]
return[call[.parseBigDecimal, parameter[member[.sStr], member[.nScale], member[.eRoundingMode], literal[null]]]]
end[}]
END[}] | annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[BigDecimal] identifier[parseBigDecimal] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[String] identifier[sStr] , annotation[@] identifier[Nonnegative] Keyword[final] Keyword[int] identifier[nScale] , annotation[... |
public Hop withParameter(String name, Object value) {
Assert.hasText(name, "Name must not be null or empty!");
HashMap<String, Object> parameters = new HashMap<>(this.parameters);
parameters.put(name, value);
return new Hop(this.rel, parameters, this.headers);
} | class class_name[name] begin[{]
method[withParameter, return_type[type[Hop]], modifier[public], parameter[name, value]] begin[{]
call[Assert.hasText, parameter[member[.name], literal["Name must not be null or empty!"]]]
local_variable[type[HashMap], parameters]
call[para... | Keyword[public] identifier[Hop] identifier[withParameter] operator[SEP] identifier[String] identifier[name] , identifier[Object] identifier[value] operator[SEP] {
identifier[Assert] operator[SEP] identifier[hasText] operator[SEP] identifier[name] , literal[String] operator[SEP] operator[SEP] identifier[HashMap... |
public ListenableFuture<Results> verify(Iterable<Dataset> datasets) {
return this.exeSvc.submit(getRunner(datasets));
} | class class_name[name] begin[{]
method[verify, return_type[type[ListenableFuture]], modifier[public], parameter[datasets]] begin[{]
return[THIS[member[None.exeSvc]call[None.submit, parameter[call[.getRunner, parameter[member[.datasets]]]]]]]
end[}]
END[}] | Keyword[public] identifier[ListenableFuture] operator[<] identifier[Results] operator[>] identifier[verify] operator[SEP] identifier[Iterable] operator[<] identifier[Dataset] operator[>] identifier[datasets] operator[SEP] {
Keyword[return] Keyword[this] operator[SEP] identifier[exeSvc] operator[SEP] identifier[s... |
public static SparkValueFunction fromConfig(Config config, String key) {
return fromPatternList(config.getConfigList(key));
} | class class_name[name] begin[{]
method[fromConfig, return_type[type[SparkValueFunction]], modifier[public static], parameter[config, key]] begin[{]
return[call[.fromPatternList, parameter[call[config.getConfigList, parameter[member[.key]]]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[SparkValueFunction] identifier[fromConfig] operator[SEP] identifier[Config] identifier[config] , identifier[String] identifier[key] operator[SEP] {
Keyword[return] identifier[fromPatternList] operator[SEP] identifier[config] operator[SEP] identifier[getConfigList] oper... |
public boolean setPosition(float position) {
if (playing) {
requiredPosition = -1;
positioning = true;
playing = false;
boolean result = sound.setPosition(position);
playing = true;
positioning = false;
return result;
} else {
requiredPosition = position;
return false;
... | class class_name[name] begin[{]
method[setPosition, return_type[type[boolean]], modifier[public], parameter[position]] begin[{]
if[member[.playing]] begin[{]
assign[member[.requiredPosition], literal[1]]
assign[member[.positioning], literal[true]]... | Keyword[public] Keyword[boolean] identifier[setPosition] operator[SEP] Keyword[float] identifier[position] operator[SEP] {
Keyword[if] operator[SEP] identifier[playing] operator[SEP] {
identifier[requiredPosition] operator[=] operator[-] Other[1] operator[SEP] identifier[positioning] operator[=] liter... |
public void setDiscoveredResourceList(java.util.Collection<DiscoveredResource> discoveredResourceList) {
if (discoveredResourceList == null) {
this.discoveredResourceList = null;
return;
}
this.discoveredResourceList = new java.util.ArrayList<DiscoveredResource>(discover... | class class_name[name] begin[{]
method[setDiscoveredResourceList, return_type[void], modifier[public], parameter[discoveredResourceList]] begin[{]
if[binary_operation[member[.discoveredResourceList], ==, literal[null]]] begin[{]
assign[THIS[member[None.discoveredResource... | Keyword[public] Keyword[void] identifier[setDiscoveredResourceList] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[DiscoveredResource] operator[>] identifier[discoveredResourceList] operator[SEP] {
Keyword[if] operator[SEP] identifier[dis... |
public void log(String msg) {
if (theLog != null) {
theLog.println(msg);
} else {
System.err.println(msg);
}
} | class class_name[name] begin[{]
method[log, return_type[void], modifier[public], parameter[msg]] begin[{]
if[binary_operation[member[.theLog], !=, literal[null]]] begin[{]
call[theLog.println, parameter[member[.msg]]]
else begin[{]
call[Sy... | Keyword[public] Keyword[void] identifier[log] operator[SEP] identifier[String] identifier[msg] operator[SEP] {
Keyword[if] operator[SEP] identifier[theLog] operator[!=] Other[null] operator[SEP] {
identifier[theLog] operator[SEP] identifier[println] operator[SEP] identifier[msg] operator[SEP] operator... |
public Object getFirst(String name) {
Object value = get(name);
if (value instanceof Collection<?>) {
@SuppressWarnings("unchecked")
Collection<Object> collectionValue = (Collection<Object>) value;
Iterator<Object> iterator = collectionValue.iterator();
return iterator.hasNext() ? iterat... | class class_name[name] begin[{]
method[getFirst, return_type[type[Object]], modifier[public], parameter[name]] begin[{]
local_variable[type[Object], value]
if[binary_operation[member[.value], instanceof, type[Collection]]] begin[{]
local_variable[type[Collection], collection... | Keyword[public] identifier[Object] identifier[getFirst] operator[SEP] identifier[String] identifier[name] operator[SEP] {
identifier[Object] identifier[value] operator[=] identifier[get] operator[SEP] identifier[name] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[value] Keyword[instanceof] ide... |
public static BooleanCliParam fromDef(BooleanParamDef def) {
return new BooleanCliParam(def.getIdentifier(), def.getDefaultValueSupplier(), def.isNullable());
} | class class_name[name] begin[{]
method[fromDef, return_type[type[BooleanCliParam]], modifier[public static], parameter[def]] begin[{]
return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getIdentifier, postfix_operators=[], prefix_operators=[], qualifier=def, selectors=[], type_argument... | Keyword[public] Keyword[static] identifier[BooleanCliParam] identifier[fromDef] operator[SEP] identifier[BooleanParamDef] identifier[def] operator[SEP] {
Keyword[return] Keyword[new] identifier[BooleanCliParam] operator[SEP] identifier[def] operator[SEP] identifier[getIdentifier] operator[SEP] operator[SEP] , i... |
public QueryParams buildQueryParams(QueryParamsParserContext context) {
try {
return queryParamsParser.parse(context);
} catch (KatharsisException e) {
throw e;
} catch (RuntimeException e) {
throw new ParametersDeserializationException(e.getMessage(), e);
... | class class_name[name] begin[{]
method[buildQueryParams, return_type[type[QueryParams]], modifier[public], parameter[context]] begin[{]
TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=context, postfix_operators=[], prefix_operators=[], qualifier=, selec... | Keyword[public] identifier[QueryParams] identifier[buildQueryParams] operator[SEP] identifier[QueryParamsParserContext] identifier[context] operator[SEP] {
Keyword[try] {
Keyword[return] identifier[queryParamsParser] operator[SEP] identifier[parse] operator[SEP] identifier[context] operator[SEP] opera... |
public Closeable onSubscribeChannelEvent(final Consumer<BitfinexStreamSymbol> listener) {
subscribeChannelConsumers.offer(listener);
return () -> subscribeChannelConsumers.remove(listener);
} | class class_name[name] begin[{]
method[onSubscribeChannelEvent, return_type[type[Closeable]], modifier[public], parameter[listener]] begin[{]
call[subscribeChannelConsumers.offer, parameter[member[.listener]]]
return[LambdaExpression(body=MethodInvocation(arguments=[MemberReference(memb... | Keyword[public] identifier[Closeable] identifier[onSubscribeChannelEvent] operator[SEP] Keyword[final] identifier[Consumer] operator[<] identifier[BitfinexStreamSymbol] operator[>] identifier[listener] operator[SEP] {
identifier[subscribeChannelConsumers] operator[SEP] identifier[offer] operator[SEP] identifier[... |
public static pqpolicy get(nitro_service service, String policyname) throws Exception{
pqpolicy obj = new pqpolicy();
obj.set_policyname(policyname);
pqpolicy response = (pqpolicy) obj.get_resource(service);
return response;
} | class class_name[name] begin[{]
method[get, return_type[type[pqpolicy]], modifier[public static], parameter[service, policyname]] begin[{]
local_variable[type[pqpolicy], obj]
call[obj.set_policyname, parameter[member[.policyname]]]
local_variable[type[pqpolicy], response]
... | Keyword[public] Keyword[static] identifier[pqpolicy] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[policyname] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[pqpolicy] identifier[obj] operator[=] Keyword[new] identifier[pqpolicy] op... |
public static Geometry geometryFromWkt(String wkt, int importFlags,
Geometry.Type geometryType) {
OperatorImportFromWkt op = (OperatorImportFromWkt) factory
.getOperator(Operator.Type.ImportFromWkt);
return op.execute(importFlags, geometryType, wkt, null);
} | class class_name[name] begin[{]
method[geometryFromWkt, return_type[type[Geometry]], modifier[public static], parameter[wkt, importFlags, geometryType]] begin[{]
local_variable[type[OperatorImportFromWkt], op]
return[call[op.execute, parameter[member[.importFlags], member[.geometryType], member... | Keyword[public] Keyword[static] identifier[Geometry] identifier[geometryFromWkt] operator[SEP] identifier[String] identifier[wkt] , Keyword[int] identifier[importFlags] , identifier[Geometry] operator[SEP] identifier[Type] identifier[geometryType] operator[SEP] {
identifier[OperatorImportFromWkt] identifier[op... |
public static void main(String arg[]) {
UtmProjection utm = new UtmProjection(17, true);
LatLonPoint ll = utm.projToLatLon(577.8000000000001, 2951.8);
System.out.printf("%15.12f %15.12f%n", ll.getLatitude(), ll.getLongitude());
assert Misc.nearlyEquals(ll.getLongitude(), -80.21802662821469, 1.0e-8);... | class class_name[name] begin[{]
method[main, return_type[void], modifier[public static], parameter[arg]] begin[{]
local_variable[type[UtmProjection], utm]
local_variable[type[LatLonPoint], ll]
call[System.out.printf, parameter[literal["%15.12f %15.12f%n"], call[ll.getLatitude, p... | Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] identifier[arg] operator[SEP] operator[SEP] operator[SEP] {
identifier[UtmProjection] identifier[utm] operator[=] Keyword[new] identifier[UtmProjection] operator[SEP] Other[17] , literal[boolean] operator[SEP] operat... |
private String escape(String rawActivityName) {
boolean lastIsUnderScore = false;
StringBuffer sb = new StringBuffer();
for (int i=0; i<rawActivityName.length(); i++) {
char ch = rawActivityName.charAt(i);
if (Character.isLetterOrDigit(ch)) {
sb.append(ch)... | class class_name[name] begin[{]
method[escape, return_type[type[String]], modifier[private], parameter[rawActivityName]] begin[{]
local_variable[type[boolean], lastIsUnderScore]
local_variable[type[StringBuffer], sb]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariable... | Keyword[private] identifier[String] identifier[escape] operator[SEP] identifier[String] identifier[rawActivityName] operator[SEP] {
Keyword[boolean] identifier[lastIsUnderScore] operator[=] literal[boolean] operator[SEP] identifier[StringBuffer] identifier[sb] operator[=] Keyword[new] identifier[StringBuffer] op... |
public static MultiTaskListener instance(Context context) {
MultiTaskListener instance = context.get(taskListenerKey);
if (instance == null)
instance = new MultiTaskListener(context);
return instance;
} | class class_name[name] begin[{]
method[instance, return_type[type[MultiTaskListener]], modifier[public static], parameter[context]] begin[{]
local_variable[type[MultiTaskListener], instance]
if[binary_operation[member[.instance], ==, literal[null]]] begin[{]
assign[member[.i... | Keyword[public] Keyword[static] identifier[MultiTaskListener] identifier[instance] operator[SEP] identifier[Context] identifier[context] operator[SEP] {
identifier[MultiTaskListener] identifier[instance] operator[=] identifier[context] operator[SEP] identifier[get] operator[SEP] identifier[taskListenerKey] opera... |
private ParseTree parseThrowStatement() {
SourcePosition start = getTreeStartLocation();
eat(TokenType.THROW);
ParseTree value = null;
if (peekImplicitSemiColon()) {
reportError("semicolon/newline not allowed after 'throw'");
} else {
value = parseExpression();
}
eatPossibleImpli... | class class_name[name] begin[{]
method[parseThrowStatement, return_type[type[ParseTree]], modifier[private], parameter[]] begin[{]
local_variable[type[SourcePosition], start]
call[.eat, parameter[member[TokenType.THROW]]]
local_variable[type[ParseTree], value]
if... | Keyword[private] identifier[ParseTree] identifier[parseThrowStatement] operator[SEP] operator[SEP] {
identifier[SourcePosition] identifier[start] operator[=] identifier[getTreeStartLocation] operator[SEP] operator[SEP] operator[SEP] identifier[eat] operator[SEP] identifier[TokenType] operator[SEP] identifier[THR... |
private void rollback(Transaction txn, Exception cause) throws Exception {
try {
txn.rollback();
} catch (Exception e) {
logger.debug(e, "Error while rolling back transaction " + txn);
} finally {
throw cause;
}
} | class class_name[name] begin[{]
method[rollback, return_type[void], modifier[private], parameter[txn, cause]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=rollback, postfix_operators=[], prefix_operators=[], qualifier=txn, selectors=[], type_argument... | Keyword[private] Keyword[void] identifier[rollback] operator[SEP] identifier[Transaction] identifier[txn] , identifier[Exception] identifier[cause] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[try] {
identifier[txn] operator[SEP] identifier[rollback] operator[SEP] operator[SEP] opera... |
public Coin getValueSentFromMe(TransactionBag wallet) throws ScriptException {
// This is tested in WalletTest.
Coin v = Coin.ZERO;
for (TransactionInput input : inputs) {
// This input is taking value from a transaction in our wallet. To discover the value,
// we must fi... | class class_name[name] begin[{]
method[getValueSentFromMe, return_type[type[Coin]], modifier[public], parameter[wallet]] begin[{]
local_variable[type[Coin], v]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimen... | Keyword[public] identifier[Coin] identifier[getValueSentFromMe] operator[SEP] identifier[TransactionBag] identifier[wallet] operator[SEP] Keyword[throws] identifier[ScriptException] {
identifier[Coin] identifier[v] operator[=] identifier[Coin] operator[SEP] identifier[ZERO] operator[SEP] Keyword[for] operator[SE... |
public final String callMethod(String method) {
parent.assertConnected();
return debugger.callFunctionOnObject(method, objectId);
} | class class_name[name] begin[{]
method[callMethod, return_type[type[String]], modifier[final public], parameter[method]] begin[{]
call[parent.assertConnected, parameter[]]
return[call[debugger.callFunctionOnObject, parameter[member[.method], member[.objectId]]]]
end[}]
END[}] | Keyword[public] Keyword[final] identifier[String] identifier[callMethod] operator[SEP] identifier[String] identifier[method] operator[SEP] {
identifier[parent] operator[SEP] identifier[assertConnected] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[debugger] operator[SEP] identifier[callFun... |
Rule MeterNum() {
return Sequence(
MeterNum2(),
OptionalS(
Sequence(
OneOrMore(SP()),
MeterNum2()
)
)
).label(MeterNum).suppressSubnodes();
} | class class_name[name] begin[{]
method[MeterNum, return_type[type[Rule]], modifier[default], parameter[]] begin[{]
return[call[.Sequence, parameter[call[.MeterNum2, parameter[]], call[.OptionalS, parameter[call[.Sequence, parameter[call[.OneOrMore, parameter[call[.SP, parameter[]]]], call[.MeterNum2, p... | identifier[Rule] identifier[MeterNum] operator[SEP] operator[SEP] {
Keyword[return] identifier[Sequence] operator[SEP] identifier[MeterNum2] operator[SEP] operator[SEP] , identifier[OptionalS] operator[SEP] identifier[Sequence] operator[SEP] identifier[OneOrMore] operator[SEP] identifier[SP] operator[SEP] opera... |
public View getIdenticalView(View view) {
if(view == null){
return null;
}
View viewToReturn = null;
List<? extends View> visibleViews = RobotiumUtils.removeInvisibleViews(getCurrentViews(view.getClass(), true));
for(View v : visibleViews){
if(areViewsIdentical(v, view)){
viewToReturn = v;
brea... | class class_name[name] begin[{]
method[getIdenticalView, return_type[type[View]], modifier[public], parameter[view]] begin[{]
if[binary_operation[member[.view], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
local_variable[type[V... | Keyword[public] identifier[View] identifier[getIdenticalView] operator[SEP] identifier[View] identifier[view] operator[SEP] {
Keyword[if] operator[SEP] identifier[view] operator[==] Other[null] operator[SEP] {
Keyword[return] Other[null] operator[SEP]
}
identifier[View] identifier[viewTo... |
private void currentDatasourceChange() {
OBDADataSource source = obdaModel.getDatasource();
comboListener.setNotify(false);
String driverClass = source.getParameter(RDBMSourceParameterConstants.DATABASE_DRIVER);
if(driverClass == null || driverClass.isEmpty())
{
txtJ... | class class_name[name] begin[{]
method[currentDatasourceChange, return_type[void], modifier[private], parameter[]] begin[{]
local_variable[type[OBDADataSource], source]
call[comboListener.setNotify, parameter[literal[false]]]
local_variable[type[String], driverClass]
... | Keyword[private] Keyword[void] identifier[currentDatasourceChange] operator[SEP] operator[SEP] {
identifier[OBDADataSource] identifier[source] operator[=] identifier[obdaModel] operator[SEP] identifier[getDatasource] operator[SEP] operator[SEP] operator[SEP] identifier[comboListener] operator[SEP] identifier[set... |
@Override
public WorkItemHandlerModel setClazz(Class<?> clazz) {
String c = clazz != null ? clazz.getName() : null;
setModelAttribute("class", c);
return this;
} | class class_name[name] begin[{]
method[setClazz, return_type[type[WorkItemHandlerModel]], modifier[public], parameter[clazz]] begin[{]
local_variable[type[String], c]
call[.setModelAttribute, parameter[literal["class"], member[.c]]]
return[THIS[]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[WorkItemHandlerModel] identifier[setClazz] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[SEP] {
identifier[String] identifier[c] operator[=] identifier[clazz] operator[!=] Other[null] operator[?] identi... |
public OvhSetting xdsl_setting_GET() throws IOException {
String qPath = "/me/xdsl/setting";
StringBuilder sb = path(qPath);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, OvhSetting.class);
} | class class_name[name] begin[{]
method[xdsl_setting_GET, return_type[type[OvhSetting]], modifier[public], parameter[]] begin[{]
local_variable[type[String], qPath]
local_variable[type[StringBuilder], sb]
local_variable[type[String], resp]
return[call[.convertTo, parameter[member... | Keyword[public] identifier[OvhSetting] identifier[xdsl_setting_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] identifier[q... |
private void updateCoord(MouseEvent event)
{
oldX = x;
oldY = y;
x = event.getXOnScreen();
y = event.getYOnScreen();
wx = event.getX();
wy = event.getY();
mx = x - oldX;
my = y - oldY;
} | class class_name[name] begin[{]
method[updateCoord, return_type[void], modifier[private], parameter[event]] begin[{]
assign[member[.oldX], member[.x]]
assign[member[.oldY], member[.y]]
assign[member[.x], call[event.getXOnScreen, parameter[]]]
assi... | Keyword[private] Keyword[void] identifier[updateCoord] operator[SEP] identifier[MouseEvent] identifier[event] operator[SEP] {
identifier[oldX] operator[=] identifier[x] operator[SEP] identifier[oldY] operator[=] identifier[y] operator[SEP] identifier[x] operator[=] identifier[event] operator[SEP] identifier[getX... |
@CanIgnoreReturnValue
@Override
public V put(R rowKey, C columnKey, @NullableDecl V value) {
checkNotNull(rowKey);
checkNotNull(columnKey);
Integer rowIndex = rowKeyToIndex.get(rowKey);
checkArgument(rowIndex != null, "Row %s not in %s", rowKey, rowList);
Integer columnIndex = columnKeyToIndex.g... | class class_name[name] begin[{]
method[put, return_type[type[V]], modifier[public], parameter[rowKey, columnKey, value]] begin[{]
call[.checkNotNull, parameter[member[.rowKey]]]
call[.checkNotNull, parameter[member[.columnKey]]]
local_variable[type[Integer], rowIndex]
... | annotation[@] identifier[CanIgnoreReturnValue] annotation[@] identifier[Override] Keyword[public] identifier[V] identifier[put] operator[SEP] identifier[R] identifier[rowKey] , identifier[C] identifier[columnKey] , annotation[@] identifier[NullableDecl] identifier[V] identifier[value] operator[SEP] {
identifie... |
@Nullable
@Override
public final List<Difference> visitAnnotation(@Nullable JavaAnnotationElement oldAnnotation,
@Nullable JavaAnnotationElement newAnnotation) {
depth++;
List<Difference> ret = doVisitAnnotation(oldAnnotation, newAnnotation);
depth--;
return ret;
} | class class_name[name] begin[{]
method[visitAnnotation, return_type[type[List]], modifier[final public], parameter[oldAnnotation, newAnnotation]] begin[{]
member[.depth]
local_variable[type[List], ret]
member[.depth]
return[member[.ret]]
end[}]
END[}] | annotation[@] identifier[Nullable] annotation[@] identifier[Override] Keyword[public] Keyword[final] identifier[List] operator[<] identifier[Difference] operator[>] identifier[visitAnnotation] operator[SEP] annotation[@] identifier[Nullable] identifier[JavaAnnotationElement] identifier[oldAnnotation] , annotation[@] i... |
public Element createElementNS(String namespaceURI, String qualifiedName)
throws DOMException
{
error(XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED);
return null;
} | class class_name[name] begin[{]
method[createElementNS, return_type[type[Element]], modifier[public], parameter[namespaceURI, qualifiedName]] begin[{]
call[.error, parameter[member[XMLErrorResources.ER_FUNCTION_NOT_SUPPORTED]]]
return[literal[null]]
end[}]
END[}] | Keyword[public] identifier[Element] identifier[createElementNS] operator[SEP] identifier[String] identifier[namespaceURI] , identifier[String] identifier[qualifiedName] operator[SEP] Keyword[throws] identifier[DOMException] {
identifier[error] operator[SEP] identifier[XMLErrorResources] operator[SEP] identifier... |
@Deprecated
public static boolean setCipherSuite(long ctx, String ciphers) throws Exception {
return setCipherSuite(ctx, ciphers, false);
} | class class_name[name] begin[{]
method[setCipherSuite, return_type[type[boolean]], modifier[public static], parameter[ctx, ciphers]] begin[{]
return[call[.setCipherSuite, parameter[member[.ctx], member[.ciphers], literal[false]]]]
end[}]
END[}] | annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] Keyword[boolean] identifier[setCipherSuite] operator[SEP] Keyword[long] identifier[ctx] , identifier[String] identifier[ciphers] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[return] identifier[setCipherSuite] operator[SEP] ide... |
public static String generateLink(Geometry geom, boolean withMarker) {
if (geom == null) {
return null;
}
Envelope env = geom.getEnvelopeInternal();
StringBuilder sb = new StringBuilder("http://www.openstreetmap.org/?");
sb.append("minlon=").append(env.getMinX());
... | class class_name[name] begin[{]
method[generateLink, return_type[type[String]], modifier[public static], parameter[geom, withMarker]] begin[{]
if[binary_operation[member[.geom], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
loca... | Keyword[public] Keyword[static] identifier[String] identifier[generateLink] operator[SEP] identifier[Geometry] identifier[geom] , Keyword[boolean] identifier[withMarker] operator[SEP] {
Keyword[if] operator[SEP] identifier[geom] operator[==] Other[null] operator[SEP] {
Keyword[return] Other[null] ope... |
public static final String crypt(String original) {
java.util.Random randomGenerator = new java.util.Random();
int numSaltChars = saltChars.length;
String salt;
salt = (new StringBuffer()).append(saltChars[Math.abs(randomGenerator.nextInt()) % numSaltChars]).append(saltChars[Math.abs(randomGenerator.nextInt()) % nu... | class class_name[name] begin[{]
method[crypt, return_type[type[String]], modifier[final public static], parameter[original]] begin[{]
local_variable[type[java], randomGenerator]
local_variable[type[int], numSaltChars]
local_variable[type[String], salt]
assign[member[.sal... | Keyword[public] Keyword[static] Keyword[final] identifier[String] identifier[crypt] operator[SEP] identifier[String] identifier[original] operator[SEP] {
identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Random] identifier[randomGenerator] operator[=] Keyword[new] identifier[java] operator... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.