code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public void createLinks(ServiceReference<S> declarationBinderRef) {
for (D declaration : linkerManagement.getMatchedDeclaration()) {
if (linkerManagement.canBeLinked(declaration, declarationBinderRef)) {
linkerManagement.link(declaration, declarationBinderRef);
}
... | class class_name[name] begin[{]
method[createLinks, return_type[void], modifier[public], parameter[declarationBinderRef]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=declaration, postfix_operators=[], prefix_... | Keyword[public] Keyword[void] identifier[createLinks] operator[SEP] identifier[ServiceReference] operator[<] identifier[S] operator[>] identifier[declarationBinderRef] operator[SEP] {
Keyword[for] operator[SEP] identifier[D] identifier[declaration] operator[:] identifier[linkerManagement] operator[SEP] identifi... |
public List<Return> executeEvents(final EventType _eventType,
final Object... _objectTuples)
throws EFapsException
{
List<Return> ret = new ArrayList<>();
final AbstractCommand command;
if (this.callingCmdUUID == null) {
command = thi... | class class_name[name] begin[{]
method[executeEvents, return_type[type[List]], modifier[public], parameter[_eventType, _objectTuples]] begin[{]
local_variable[type[List], ret]
local_variable[type[AbstractCommand], command]
if[binary_operation[THIS[member[None.callingCmdUUID]], =... | Keyword[public] identifier[List] operator[<] identifier[Return] operator[>] identifier[executeEvents] operator[SEP] Keyword[final] identifier[EventType] identifier[_eventType] , Keyword[final] identifier[Object] operator[...] identifier[_objectTuples] operator[SEP] Keyword[throws] identifier[EFapsException] {
i... |
void heterogenousUnion(final HLL other) {
/*
* The logic here is divided into two sections: unions with an EMPTY
* HLL, and unions between EXPLICIT/SPARSE/FULL
* HLL.
*
* Between those two sections, all possible heterogeneous unions are
* covered. Should ano... | class class_name[name] begin[{]
method[heterogenousUnion, return_type[void], modifier[default], parameter[other]] begin[{]
if[call[HLLType.EMPTY.equals, parameter[member[.type]]]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=['EXPLICIT'], statements=[BlockStatement(label... | Keyword[void] identifier[heterogenousUnion] operator[SEP] Keyword[final] identifier[HLL] identifier[other] operator[SEP] {
Keyword[if] operator[SEP] identifier[HLLType] operator[SEP] identifier[EMPTY] operator[SEP] identifier[equals] operator[SEP] identifier[type] operator[SEP] operator[SEP] {
Keyword... |
@Override
public boolean addData(IoBuffer data) {
if (data.limit() == 0) {
return true;
}
if (!this.canHandleData(data)) {
return false;
}
byte first = data.get();
//log.trace("First byte: {}", HexDump.toHexString(first));
dat... | class class_name[name] begin[{]
method[addData, return_type[type[boolean]], modifier[public], parameter[data]] begin[{]
if[binary_operation[call[data.limit, parameter[]], ==, literal[0]]] begin[{]
return[literal[true]]
else begin[{]
None
end[}]
if[THI... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[addData] operator[SEP] identifier[IoBuffer] identifier[data] operator[SEP] {
Keyword[if] operator[SEP] identifier[data] operator[SEP] identifier[limit] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] {
Keywo... |
public boolean isMatched(String value, Boolean defaultValue)
{
// @todo: there isn't a defaultValue for radio button, what should we do here?
if (value == null)
return false;
if (_match != null)
return value.equals(_match);
if (_defaultRadio != null)
... | class class_name[name] begin[{]
method[isMatched, return_type[type[boolean]], modifier[public], parameter[value, defaultValue]] begin[{]
if[binary_operation[member[.value], ==, literal[null]]] begin[{]
return[literal[false]]
else begin[{]
None
end[}]
if[binary_op... | Keyword[public] Keyword[boolean] identifier[isMatched] operator[SEP] identifier[String] identifier[value] , identifier[Boolean] identifier[defaultValue] operator[SEP] {
Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[if] o... |
private static <K,V> boolean colorOf(TreeMapEntry<K,V> p) {
return (p == null ? BLACK : p.color);
} | class class_name[name] begin[{]
method[colorOf, return_type[type[boolean]], modifier[private static], parameter[p]] begin[{]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=p, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postf... | Keyword[private] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] Keyword[boolean] identifier[colorOf] operator[SEP] identifier[TreeMapEntry] operator[<] identifier[K] , identifier[V] operator[>] identifier[p] operator[SEP] {
Keyword[return] operator[SEP] identifier[p] operator[==] Other[n... |
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "depth", scope = GetTypeDescendants.class)
public JAXBElement<BigInteger> createGetTypeDescendantsDepth(
BigInteger value) {
return new JAXBElement<BigInteger>(_GetDescendantsDepth_QNAME,
BigInteger.class, GetTypeDe... | class class_name[name] begin[{]
method[createGetTypeDescendantsDepth, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=_GetDescendantsDepth_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Clas... | annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[scope] operator[=] identifier[GetTypeDescendants] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifi... |
private void debug(String message, Throwable t) {
if (debugEnabled) {
long currentTime = System.currentTimeMillis();
long timeSinceProcessingStart = currentTime - processingStartedAt;
System.err.println(timeSinceProcessingStart + " ["
+ localClusterName + "] " + message);
if (t != null) {
t.print... | class class_name[name] begin[{]
method[debug, return_type[void], modifier[private], parameter[message, t]] begin[{]
if[member[.debugEnabled]] begin[{]
local_variable[type[long], currentTime]
local_variable[type[long], timeSinceProcessingStart]
cal... | Keyword[private] Keyword[void] identifier[debug] operator[SEP] identifier[String] identifier[message] , identifier[Throwable] identifier[t] operator[SEP] {
Keyword[if] operator[SEP] identifier[debugEnabled] operator[SEP] {
Keyword[long] identifier[currentTime] operator[=] identifier[System] operator[... |
private String resolveServiceEntry(String serviceType, String domain,
DirContext ctx) {
String result = null;
try {
String query = new StringBuilder("_").append(serviceType).append("._tcp.")
.append(domain).toString();
Attribute dnsRecord = lookup(query, ctx, "SRV");
// There are maybe more records... | class class_name[name] begin[{]
method[resolveServiceEntry, return_type[type[String]], modifier[private], parameter[serviceType, domain, ctx]] begin[{]
local_variable[type[String], result]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[]... | Keyword[private] identifier[String] identifier[resolveServiceEntry] operator[SEP] identifier[String] identifier[serviceType] , identifier[String] identifier[domain] , identifier[DirContext] identifier[ctx] operator[SEP] {
identifier[String] identifier[result] operator[=] Other[null] operator[SEP] Keyword[try] ... |
public boolean prescreen(Code code, Method method) {
if (method.isSynthetic()) {
return false;
}
CodeException[] ce = code.getExceptionTable();
if (CollectionUtils.isEmpty(ce)) {
return false;
}
BitSet bytecodeSet = getClassContext().getBytecodeS... | class class_name[name] begin[{]
method[prescreen, return_type[type[boolean]], modifier[public], parameter[code, method]] begin[{]
if[call[method.isSynthetic, parameter[]]] begin[{]
return[literal[false]]
else begin[{]
None
end[}]
local_variable[type[CodeExcep... | Keyword[public] Keyword[boolean] identifier[prescreen] operator[SEP] identifier[Code] identifier[code] , identifier[Method] identifier[method] operator[SEP] {
Keyword[if] operator[SEP] identifier[method] operator[SEP] identifier[isSynthetic] operator[SEP] operator[SEP] operator[SEP] {
Keyword[return]... |
public static ArrayList<ConfigSource> getDefaultSources(ClassLoader classloader) {
ArrayList<ConfigSource> sources = new ArrayList<>();
sources.add(new SystemConfigSource());
sources.add(new EnvConfig13Source());
sources.add(new AppPropertyConfigSource());
sources.add(new Server... | class class_name[name] begin[{]
method[getDefaultSources, return_type[type[ArrayList]], modifier[public static], parameter[classloader]] begin[{]
local_variable[type[ArrayList], sources]
call[sources.add, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, p... | Keyword[public] Keyword[static] identifier[ArrayList] operator[<] identifier[ConfigSource] operator[>] identifier[getDefaultSources] operator[SEP] identifier[ClassLoader] identifier[classloader] operator[SEP] {
identifier[ArrayList] operator[<] identifier[ConfigSource] operator[>] identifier[sources] operator[=]... |
@Override
public UpdateVirtualRouterResult updateVirtualRouter(UpdateVirtualRouterRequest request) {
request = beforeClientExecution(request);
return executeUpdateVirtualRouter(request);
} | class class_name[name] begin[{]
method[updateVirtualRouter, return_type[type[UpdateVirtualRouterResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeUpdateVirtualRouter, parameter... | annotation[@] identifier[Override] Keyword[public] identifier[UpdateVirtualRouterResult] identifier[updateVirtualRouter] operator[SEP] identifier[UpdateVirtualRouterRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ope... |
public int getId(int index) {
if (index >= mLayerState.mNum) {
throw new IndexOutOfBoundsException();
}
return mLayerState.mChildren[index].mId;
} | class class_name[name] begin[{]
method[getId, return_type[type[int]], modifier[public], parameter[index]] begin[{]
if[binary_operation[member[.index], >=, member[mLayerState.mNum]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments=N... | Keyword[public] Keyword[int] identifier[getId] operator[SEP] Keyword[int] identifier[index] operator[SEP] {
Keyword[if] operator[SEP] identifier[index] operator[>=] identifier[mLayerState] operator[SEP] identifier[mNum] operator[SEP] {
Keyword[throw] Keyword[new] identifier[IndexOutOfBoundsException] ... |
private void resubmit(long commandSequence, OperationAttempt<?, ?> attempt) {
// If the client's response sequence number is greater than the given command sequence number,
// the cluster likely has a new leader, and we need to reset the sequencing in the leader by
// sending a keep-alive request.
// En... | class class_name[name] begin[{]
method[resubmit, return_type[void], modifier[private], parameter[commandSequence, attempt]] begin[{]
local_variable[type[long], responseSequence]
if[binary_operation[binary_operation[member[.commandSequence], <, member[.responseSequence]], &&, binary_oper... | Keyword[private] Keyword[void] identifier[resubmit] operator[SEP] Keyword[long] identifier[commandSequence] , identifier[OperationAttempt] operator[<] operator[?] , operator[?] operator[>] identifier[attempt] operator[SEP] {
Keyword[long] identifier[responseSequence] operator[=] identifier[state] operator[SEP]... |
public <T> AsyncIterator<Map.Entry<String, VersionedMetadata<T>>> getAllEntries(String tableName, Function<byte[], T> fromBytes) {
return new ContinuationTokenAsyncIterator<>(token -> getEntriesPaginated(tableName, token, 1000, fromBytes)
.thenApplyAsync(result -> {
token.rel... | class class_name[name] begin[{]
method[getAllEntries, return_type[type[AsyncIterator]], modifier[public], parameter[tableName, fromBytes]] begin[{]
return[ClassCreator(arguments=[LambdaExpression(body=MethodInvocation(arguments=[MemberReference(member=tableName, postfix_operators=[], prefix_operators=[... | Keyword[public] operator[<] identifier[T] operator[>] identifier[AsyncIterator] operator[<] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[VersionedMetadata] operator[<] identifier[T] operator[>] operator[>] operator[>] identifier[getAllEntries] operator[SEP] identifier[Str... |
public byte[] serializeToBytes(final Serializable o) {
byte[] bytes = null;
try (final ByteArrayOutputStream baos = new ByteArrayOutputStream();
final ObjectOutputStream oos = new ObjectOutputStream(baos)) {
oos.writeObject(o);
oos.flush();
bytes = baos.t... | class class_name[name] begin[{]
method[serializeToBytes, return_type[type[byte]], modifier[public], parameter[o]] begin[{]
local_variable[type[byte], bytes]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=o, postfix_operators=[], prefix_oper... | Keyword[public] Keyword[byte] operator[SEP] operator[SEP] identifier[serializeToBytes] operator[SEP] Keyword[final] identifier[Serializable] identifier[o] operator[SEP] {
Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] operator[=] Other[null] operator[SEP] Keyword[try] operator[SEP] Keyword[final] id... |
public DateFuncSup add(def<DateSeperator> dateFunction) {
date.setTime(date.getTime() + dateFunction.apply(new DateSeperator()).parse());
return this;
} | class class_name[name] begin[{]
method[add, return_type[type[DateFuncSup]], modifier[public], parameter[dateFunction]] begin[{]
call[date.setTime, parameter[binary_operation[call[date.getTime, parameter[]], +, call[dateFunction.apply, parameter[ClassCreator(arguments=[], body=None, constructor_... | Keyword[public] identifier[DateFuncSup] identifier[add] operator[SEP] identifier[def] operator[<] identifier[DateSeperator] operator[>] identifier[dateFunction] operator[SEP] {
identifier[date] operator[SEP] identifier[setTime] operator[SEP] identifier[date] operator[SEP] identifier[getTime] operator[SEP] operat... |
@Override
public Page<AvailablePhoneNumberCountry> nextPage(final Page<AvailablePhoneNumberCountry> page,
final TwilioRestClient client) {
Request request = new Request(
HttpMethod.GET,
page.getNextPageUrl(
Domain... | class class_name[name] begin[{]
method[nextPage, return_type[type[Page]], modifier[public], parameter[page, client]] begin[{]
local_variable[type[Request], request]
return[call[.pageForRequest, parameter[member[.client], member[.request]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[Page] operator[<] identifier[AvailablePhoneNumberCountry] operator[>] identifier[nextPage] operator[SEP] Keyword[final] identifier[Page] operator[<] identifier[AvailablePhoneNumberCountry] operator[>] identifier[page] , Keyword[final] identifier[TwilioRestC... |
public Observable<ServiceResponseWithHeaders<Page<JobPreparationAndReleaseTaskExecutionInformation>, JobListPreparationAndReleaseTaskStatusHeaders>> listPreparationAndReleaseTaskStatusNextSinglePageAsync(final String nextPageLink, final JobListPreparationAndReleaseTaskStatusNextOptions jobListPreparationAndReleaseTaskS... | class class_name[name] begin[{]
method[listPreparationAndReleaseTaskStatusNextSinglePageAsync, return_type[type[Observable]], modifier[public], parameter[nextPageLink, jobListPreparationAndReleaseTaskStatusNextOptions]] begin[{]
if[binary_operation[member[.nextPageLink], ==, literal[null]]] beg... | Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponseWithHeaders] operator[<] identifier[Page] operator[<] identifier[JobPreparationAndReleaseTaskExecutionInformation] operator[>] , identifier[JobListPreparationAndReleaseTaskStatusHeaders] operator[>] operator[>] identifier[listPreparationAndRe... |
public static Object asType(Object object, Class type) throws Throwable {
if (object == null) object = NullObject.getNullObject();
return invokeMethodN(object.getClass(), object, "asType", new Object[]{type});
} | class class_name[name] begin[{]
method[asType, return_type[type[Object]], modifier[public static], parameter[object, type]] begin[{]
if[binary_operation[member[.object], ==, literal[null]]] begin[{]
assign[member[.object], call[NullObject.getNullObject, parameter[]]]
else be... | Keyword[public] Keyword[static] identifier[Object] identifier[asType] operator[SEP] identifier[Object] identifier[object] , identifier[Class] identifier[type] operator[SEP] Keyword[throws] identifier[Throwable] {
Keyword[if] operator[SEP] identifier[object] operator[==] Other[null] operator[SEP] identifier[obje... |
public OvhOrder cdn_dedicated_serviceName_quota_duration_POST(String serviceName, String duration, OvhOrderQuotaEnum quota) throws IOException {
String qPath = "/order/cdn/dedicated/{serviceName}/quota/{duration}";
StringBuilder sb = path(qPath, serviceName, duration);
HashMap<String, Object>o = new HashMap<Strin... | class class_name[name] begin[{]
method[cdn_dedicated_serviceName_quota_duration_POST, return_type[type[OvhOrder]], modifier[public], parameter[serviceName, duration, quota]] begin[{]
local_variable[type[String], qPath]
local_variable[type[StringBuilder], sb]
local_variable[type[HashMap]... | Keyword[public] identifier[OvhOrder] identifier[cdn_dedicated_serviceName_quota_duration_POST] operator[SEP] identifier[String] identifier[serviceName] , identifier[String] identifier[duration] , identifier[OvhOrderQuotaEnum] identifier[quota] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[... |
public void copyFileFrom(InputStream src, boolean append) throws CopyFileFromException {
ChannelSftp sftp;
try {
sftp = alloc();
try {
sftp.put(src, escape(slashPath), append ? ChannelSftp.APPEND : ChannelSftp.OVERWRITE);
} finally {
f... | class class_name[name] begin[{]
method[copyFileFrom, return_type[void], modifier[public], parameter[src, append]] begin[{]
local_variable[type[ChannelSftp], sftp]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=sftp, postfix_operators=[], prefix_... | Keyword[public] Keyword[void] identifier[copyFileFrom] operator[SEP] identifier[InputStream] identifier[src] , Keyword[boolean] identifier[append] operator[SEP] Keyword[throws] identifier[CopyFileFromException] {
identifier[ChannelSftp] identifier[sftp] operator[SEP] Keyword[try] {
identifier[sftp] o... |
void findMavenArtifacts(Enumeration<URL> mavenDirs) throws IOException, SAXException, XPathExpressionException, ParserConfigurationException {
XPath xpath = XPathFactory.newInstance().newXPath();
DocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();
// don't allow externa... | class class_name[name] begin[{]
method[findMavenArtifacts, return_type[void], modifier[default], parameter[mavenDirs]] begin[{]
local_variable[type[XPath], xpath]
local_variable[type[DocumentBuilderFactory], builderFactory]
call[builderFactory.setFeature, parameter[member[XMLCon... | Keyword[void] identifier[findMavenArtifacts] operator[SEP] identifier[Enumeration] operator[<] identifier[URL] operator[>] identifier[mavenDirs] operator[SEP] Keyword[throws] identifier[IOException] , identifier[SAXException] , identifier[XPathExpressionException] , identifier[ParserConfigurationException] {
... |
double qobs(int dummy, double[] xt) {
int x = (int) (xt[0]);
double p = Math.random();
double[] distr = accumP[x];
int i, left = 0, right = distr.length - 1;
// Find and return least i s.t. p <= distr[i]
while (left <= right) {
// Here distr[left-1] <= p <= di... | class class_name[name] begin[{]
method[qobs, return_type[type[double]], modifier[default], parameter[dummy, xt]] begin[{]
local_variable[type[int], x]
local_variable[type[double], p]
local_variable[type[double], distr]
local_variable[type[int], i]
while[binary_op... | Keyword[double] identifier[qobs] operator[SEP] Keyword[int] identifier[dummy] , Keyword[double] operator[SEP] operator[SEP] identifier[xt] operator[SEP] {
Keyword[int] identifier[x] operator[=] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[xt] operator[SEP] Other[0] operator[SEP] operator[SE... |
public static void printOnce(Object msg) {
if (messagesCache.get(msg.hashCode()) == null) {
JK.printBlock(msg);
messagesCache.put(msg.hashCode(), msg);
}
} | class class_name[name] begin[{]
method[printOnce, return_type[void], modifier[public static], parameter[msg]] begin[{]
if[binary_operation[call[messagesCache.get, parameter[call[msg.hashCode, parameter[]]]], ==, literal[null]]] begin[{]
call[JK.printBlock, parameter[memb... | Keyword[public] Keyword[static] Keyword[void] identifier[printOnce] operator[SEP] identifier[Object] identifier[msg] operator[SEP] {
Keyword[if] operator[SEP] identifier[messagesCache] operator[SEP] identifier[get] operator[SEP] identifier[msg] operator[SEP] identifier[hashCode] operator[SEP] operator[SEP] opera... |
@Override
public Route getRouteFor(HttpMethod method, String uri, Request request) {
// Compute the list of matching routes - only the path is check in this first stage
List<Route> list = new ArrayList<>(1);
//TODO This can be faster by using an immutable list.
list.addAll(copy().str... | class class_name[name] begin[{]
method[getRouteFor, return_type[type[Route]], modifier[public], parameter[method, uri, request]] begin[{]
local_variable[type[List], list]
call[list.addAll, parameter[call[.copy, parameter[]]]]
if[call[list.isEmpty, parameter[]]] begin[{]
... | annotation[@] identifier[Override] Keyword[public] identifier[Route] identifier[getRouteFor] operator[SEP] identifier[HttpMethod] identifier[method] , identifier[String] identifier[uri] , identifier[Request] identifier[request] operator[SEP] {
identifier[List] operator[<] identifier[Route] operator[>] identifi... |
private User addUser(String userName)
{
User user = new User();
PersonalDetail personalDetail = new PersonalDetail(userName, userName + "Password", "Single");
user.setUserId(userName);
user.setEmailId(userName + "@" + userName + ".com");
user.setFirstName(userName);
... | class class_name[name] begin[{]
method[addUser, return_type[type[User]], modifier[private], parameter[userName]] begin[{]
local_variable[type[User], user]
local_variable[type[PersonalDetail], personalDetail]
call[user.setUserId, parameter[member[.userName]]]
call... | Keyword[private] identifier[User] identifier[addUser] operator[SEP] identifier[String] identifier[userName] operator[SEP] {
identifier[User] identifier[user] operator[=] Keyword[new] identifier[User] operator[SEP] operator[SEP] operator[SEP] identifier[PersonalDetail] identifier[personalDetail] operator[=] Keywo... |
public static Option create(String opt) throws IllegalArgumentException
{
Option option = null;
try
{
// create the option
option = new Option(opt, description);
// set the option properties
option.setLongOpt(longopt);
option.setRe... | class class_name[name] begin[{]
method[create, return_type[type[Option]], modifier[public static], parameter[opt]] begin[{]
local_variable[type[Option], option]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=option, postfix_operators=[], prefix_... | Keyword[public] Keyword[static] identifier[Option] identifier[create] operator[SEP] identifier[String] identifier[opt] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] {
identifier[Option] identifier[option] operator[=] Other[null] operator[SEP] Keyword[try] {
identifier[option] oper... |
private static List<BuiltInQProfile.Builder> toQualityProfileBuilders(Map.Entry<String, Map<String, BuiltInQualityProfile>> rulesProfilesByLanguageAndName,
Map<RuleKey, RuleDefinitionDto> rulesByRuleKey) {
String language = rulesProfilesByLanguageAndName.getKey();
// use a LinkedHashMap to keep order of ins... | class class_name[name] begin[{]
method[toQualityProfileBuilders, return_type[type[List]], modifier[private static], parameter[rulesProfilesByLanguageAndName, rulesByRuleKey]] begin[{]
local_variable[type[String], language]
local_variable[type[Map], qualityProfileBuildersByName]
ForState... | Keyword[private] Keyword[static] identifier[List] operator[<] identifier[BuiltInQProfile] operator[SEP] identifier[Builder] operator[>] identifier[toQualityProfileBuilders] operator[SEP] identifier[Map] operator[SEP] identifier[Entry] operator[<] identifier[String] , identifier[Map] operator[<] identifier[String] , i... |
protected final CreateApplicationEventRequest createBaseApplicationEventRequest() {
final CreateApplicationEventRequest eventRequest = new CreateApplicationEventRequest();
final UserAccount userAccount = getUserAccountFromSecurityContext();
if (userAccount != null) {
eventRequest.setUserId(userAccount.ge... | class class_name[name] begin[{]
method[createBaseApplicationEventRequest, return_type[type[CreateApplicationEventRequest]], modifier[final protected], parameter[]] begin[{]
local_variable[type[CreateApplicationEventRequest], eventRequest]
local_variable[type[UserAccount], userAccount]
... | Keyword[protected] Keyword[final] identifier[CreateApplicationEventRequest] identifier[createBaseApplicationEventRequest] operator[SEP] operator[SEP] {
Keyword[final] identifier[CreateApplicationEventRequest] identifier[eventRequest] operator[=] Keyword[new] identifier[CreateApplicationEventRequest] operator[SEP... |
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AfplibPackage.FNC__RETIRED:
return getRetired();
case AfplibPackage.FNC__PAT_TECH:
return getPatTech();
case AfplibPackage.FNC__RESERVED1:
return getReserved1();
case AfplibPackage.FNC__... | class class_name[name] begin[{]
method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=FNC__RETIRED, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors... | annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] {
Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] {
K... |
public static List<MasterState> triggerMasterHooks(
Collection<MasterTriggerRestoreHook<?>> hooks,
long checkpointId,
long timestamp,
Executor executor,
Time timeout) throws FlinkException {
final ArrayList<MasterState> states = new ArrayList<>(hooks.size());
for (MasterTriggerRestoreHook<?> hook :... | class class_name[name] begin[{]
method[triggerMasterHooks, return_type[type[List]], modifier[public static], parameter[hooks, checkpointId, timestamp, executor, timeout]] begin[{]
local_variable[type[ArrayList], states]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDecla... | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[MasterState] operator[>] identifier[triggerMasterHooks] operator[SEP] identifier[Collection] operator[<] identifier[MasterTriggerRestoreHook] operator[<] operator[?] operator[>] operator[>] identifier[hooks] , Keyword[long] identifier[checkpointId... |
public ConsoleLog getConsoleOutputText(int bufferOffset, boolean crumbFlag) throws IOException {
List<NameValuePair> formData = new ArrayList<>();
formData.add(new BasicNameValuePair("start", Integer.toString(bufferOffset)));
String path = getUrl() + "logText/progressiveText";
HttpRespon... | class class_name[name] begin[{]
method[getConsoleOutputText, return_type[type[ConsoleLog]], modifier[public], parameter[bufferOffset, crumbFlag]] begin[{]
local_variable[type[List], formData]
call[formData.add, parameter[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_opera... | Keyword[public] identifier[ConsoleLog] identifier[getConsoleOutputText] operator[SEP] Keyword[int] identifier[bufferOffset] , Keyword[boolean] identifier[crumbFlag] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[List] operator[<] identifier[NameValuePair] operator[>] identifier[formData] ope... |
final ConnectionPoolConnection open() {
ConnectionPoolConnection conn = availableQueue.poll();
if(conn != null) {
if(!testOnLogicalOpen) {
conn.logicalOpen();
conn.state.set(ConnectionPoolConnection.STATE_OPEN);
} else {
try {
conn.logical... | class class_name[name] begin[{]
method[open, return_type[type[ConnectionPoolConnection]], modifier[final], parameter[]] begin[{]
local_variable[type[ConnectionPoolConnection], conn]
if[binary_operation[member[.conn], !=, literal[null]]] begin[{]
if[member[.testOn... | Keyword[final] identifier[ConnectionPoolConnection] identifier[open] operator[SEP] operator[SEP] {
identifier[ConnectionPoolConnection] identifier[conn] operator[=] identifier[availableQueue] operator[SEP] identifier[poll] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[conn] opera... |
private void extractQuaternionFromQ( SimpleMatrix q ) {
SimpleEVD<SimpleMatrix> evd = q.eig();
int indexMax = evd.getIndexMax();
SimpleMatrix v_max = evd.getEigenVector( indexMax );
quat.w = (double) v_max.get( 0 );
quat.x = (double) v_max.get( 1 );
quat.y = (double) v_max.get( 2 );
quat.z = (double) v_... | class class_name[name] begin[{]
method[extractQuaternionFromQ, return_type[void], modifier[private], parameter[q]] begin[{]
local_variable[type[SimpleEVD], evd]
local_variable[type[int], indexMax]
local_variable[type[SimpleMatrix], v_max]
assign[member[quat.w], Cast(expr... | Keyword[private] Keyword[void] identifier[extractQuaternionFromQ] operator[SEP] identifier[SimpleMatrix] identifier[q] operator[SEP] {
identifier[SimpleEVD] operator[<] identifier[SimpleMatrix] operator[>] identifier[evd] operator[=] identifier[q] operator[SEP] identifier[eig] operator[SEP] operator[SEP] operato... |
public ICollectionItemOptions getCollectionItemOptions(String key)
{
Object object = this.options.get(key);
if (object instanceof ICollectionItemOptions)
return (ICollectionItemOptions) object;
return null;
} | class class_name[name] begin[{]
method[getCollectionItemOptions, return_type[type[ICollectionItemOptions]], modifier[public], parameter[key]] begin[{]
local_variable[type[Object], object]
if[binary_operation[member[.object], instanceof, type[ICollectionItemOptions]]] begin[{]
return[Cas... | Keyword[public] identifier[ICollectionItemOptions] identifier[getCollectionItemOptions] operator[SEP] identifier[String] identifier[key] operator[SEP] {
identifier[Object] identifier[object] operator[=] Keyword[this] operator[SEP] identifier[options] operator[SEP] identifier[get] operator[SEP] identifier[key] op... |
private static Set<String> getNonIgnoredChildTypes(ImmutableManagementResourceRegistration mrr) {
final Set<String> result = new LinkedHashSet<>();
for (PathElement pe : mrr.getChildAddresses(PathAddress.EMPTY_ADDRESS)) {
ImmutableManagementResourceRegistration childMrr = mrr.getSubModel(Pat... | class class_name[name] begin[{]
method[getNonIgnoredChildTypes, return_type[type[Set]], modifier[private static], parameter[mrr]] begin[{]
local_variable[type[Set], result]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDec... | Keyword[private] Keyword[static] identifier[Set] operator[<] identifier[String] operator[>] identifier[getNonIgnoredChildTypes] operator[SEP] identifier[ImmutableManagementResourceRegistration] identifier[mrr] operator[SEP] {
Keyword[final] identifier[Set] operator[<] identifier[String] operator[>] identifier[re... |
public String getIllegalValueAsString() {
String value = iStringValue;
if (value == null) {
value = String.valueOf(iNumberValue);
}
return value;
} | class class_name[name] begin[{]
method[getIllegalValueAsString, return_type[type[String]], modifier[public], parameter[]] begin[{]
local_variable[type[String], value]
if[binary_operation[member[.value], ==, literal[null]]] begin[{]
assign[member[.value], call[Str... | Keyword[public] identifier[String] identifier[getIllegalValueAsString] operator[SEP] operator[SEP] {
identifier[String] identifier[value] operator[=] identifier[iStringValue] operator[SEP] Keyword[if] operator[SEP] identifier[value] operator[==] Other[null] operator[SEP] {
identifier[value] operator[=... |
@CanIgnoreReturnValue
public boolean removeExactly(@Nullable Object element, int occurrences) {
if (occurrences == 0) {
return true;
}
CollectPreconditions.checkPositive(occurrences, "occurences");
AtomicInteger existingCounter = Maps.safeGet(countMap, element);
if (existingCounter == null)... | class class_name[name] begin[{]
method[removeExactly, return_type[type[boolean]], modifier[public], parameter[element, occurrences]] begin[{]
if[binary_operation[member[.occurrences], ==, literal[0]]] begin[{]
return[literal[true]]
else begin[{]
None
end[}]
... | annotation[@] identifier[CanIgnoreReturnValue] Keyword[public] Keyword[boolean] identifier[removeExactly] operator[SEP] annotation[@] identifier[Nullable] identifier[Object] identifier[element] , Keyword[int] identifier[occurrences] operator[SEP] {
Keyword[if] operator[SEP] identifier[occurrences] operator[==] ... |
public Object getNext(KCall call) {
if (map.get(call.getProcedure().getId()) == null) {
Object context = call.getProcess().getContext();
// getting data by reflection
Method readMethod = null;
try {
readMethod = new PropertyDescriptor(pipelineDataName,
context.getClass()).getReadMethod();
... | class class_name[name] begin[{]
method[getNext, return_type[type[Object]], modifier[public], parameter[call]] begin[{]
if[binary_operation[call[map.get, parameter[call[call.getProcedure, parameter[]]]], ==, literal[null]]] begin[{]
local_variable[type[Object], context]
l... | Keyword[public] identifier[Object] identifier[getNext] operator[SEP] identifier[KCall] identifier[call] operator[SEP] {
Keyword[if] operator[SEP] identifier[map] operator[SEP] identifier[get] operator[SEP] identifier[call] operator[SEP] identifier[getProcedure] operator[SEP] operator[SEP] operator[SEP] identifie... |
public Nfs3ReadRequest makeReadRequest(byte[] fileHandle, long offset, int size) throws FileNotFoundException {
return new Nfs3ReadRequest(fileHandle, offset, size, _credential);
} | class class_name[name] begin[{]
method[makeReadRequest, return_type[type[Nfs3ReadRequest]], modifier[public], parameter[fileHandle, offset, size]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=fileHandle, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberRefer... | Keyword[public] identifier[Nfs3ReadRequest] identifier[makeReadRequest] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[fileHandle] , Keyword[long] identifier[offset] , Keyword[int] identifier[size] operator[SEP] Keyword[throws] identifier[FileNotFoundException] {
Keyword[return] Keyword[new... |
public void marshall(EnvironmentMember environmentMember, ProtocolMarshaller protocolMarshaller) {
if (environmentMember == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(environmentMember.getPermiss... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[environmentMember, protocolMarshaller]] begin[{]
if[binary_operation[member[.environmentMember], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(pos... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[EnvironmentMember] identifier[environmentMember] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[environmentMember] operator[==] Other[null] operator[SEP] {
... |
static TrialContext makeContext(UUID trialId, int trialNumber, Experiment experiment) {
return new TrialContext(trialId, trialNumber, experiment);
} | class class_name[name] begin[{]
method[makeContext, return_type[type[TrialContext]], modifier[static], parameter[trialId, trialNumber, experiment]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=trialId, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReferen... | Keyword[static] identifier[TrialContext] identifier[makeContext] operator[SEP] identifier[UUID] identifier[trialId] , Keyword[int] identifier[trialNumber] , identifier[Experiment] identifier[experiment] operator[SEP] {
Keyword[return] Keyword[new] identifier[TrialContext] operator[SEP] identifier[trialId] , i... |
public static <T> Mono<T> fromFuture(Supplier<? extends CompletableFuture<? extends T>> futureSupplier) {
return defer(() -> onAssembly(new MonoCompletionStage<>(futureSupplier.get())));
} | class class_name[name] begin[{]
method[fromFuture, return_type[type[Mono]], modifier[public static], parameter[futureSupplier]] begin[{]
return[call[.defer, parameter[LambdaExpression(body=MethodInvocation(arguments=[ClassCreator(arguments=[MethodInvocation(arguments=[], member=get, postfix_operators=[... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Mono] operator[<] identifier[T] operator[>] identifier[fromFuture] operator[SEP] identifier[Supplier] operator[<] operator[?] Keyword[extends] identifier[CompletableFuture] operator[<] operator[?] Keyword[extends] identifier[T] operator[>]... |
public void loadFrom(String modelfile) throws IOException,
ClassNotFoundException {
ObjectInputStream in = new ObjectInputStream(new BufferedInputStream(
new GZIPInputStream(new FileInputStream(modelfile))));
templets = (TempletGroup) in.readObject();
cl = (Linear) in.readObject();
in.close();
} | class class_name[name] begin[{]
method[loadFrom, return_type[void], modifier[public], parameter[modelfile]] begin[{]
local_variable[type[ObjectInputStream], in]
assign[member[.templets], Cast(expression=MethodInvocation(arguments=[], member=readObject, postfix_operators=[], prefix_opera... | Keyword[public] Keyword[void] identifier[loadFrom] operator[SEP] identifier[String] identifier[modelfile] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] {
identifier[ObjectInputStream] identifier[in] operator[=] Keyword[new] identifier[ObjectInputStream] operator[SEP]... |
public void setLongAttribute(String name, Long value) {
Attribute attribute = getAttributes().get(name);
if (!(attribute instanceof LongAttribute)) {
throw new IllegalStateException("Cannot set boolean value on attribute with different type, " +
attribute.getClass().getName() + " setting value " + value);
... | class class_name[name] begin[{]
method[setLongAttribute, return_type[void], modifier[public], parameter[name, value]] begin[{]
local_variable[type[Attribute], attribute]
if[binary_operation[member[.attribute], instanceof, type[LongAttribute]]] begin[{]
ThrowStatement(express... | Keyword[public] Keyword[void] identifier[setLongAttribute] operator[SEP] identifier[String] identifier[name] , identifier[Long] identifier[value] operator[SEP] {
identifier[Attribute] identifier[attribute] operator[=] identifier[getAttributes] operator[SEP] operator[SEP] operator[SEP] identifier[get] operator[S... |
private void checkAccess(List<Operation> operations, QueryContext queryContext) {
for (Operation operation : operations) {
checkAccess(operation, queryContext);
}
} | class class_name[name] begin[{]
method[checkAccess, return_type[void], modifier[private], parameter[operations, queryContext]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=operation, postfix_operators... | Keyword[private] Keyword[void] identifier[checkAccess] operator[SEP] identifier[List] operator[<] identifier[Operation] operator[>] identifier[operations] , identifier[QueryContext] identifier[queryContext] operator[SEP] {
Keyword[for] operator[SEP] identifier[Operation] identifier[operation] operator[:] ident... |
public void callback(final Callback callback)
{
Runnable runnable = new Runnable()
{
@Override
public void run()
{
try
{
callback.result(queryId, awaitResult());
}
catch (Exception... | class class_name[name] begin[{]
method[callback, return_type[void], modifier[public], parameter[callback]] begin[{]
local_variable[type[Runnable], runnable]
call[EXECUTOR_SERVICE.submit, parameter[member[.runnable]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[callback] operator[SEP] Keyword[final] identifier[Callback] identifier[callback] operator[SEP] {
identifier[Runnable] identifier[runnable] operator[=] Keyword[new] identifier[Runnable] operator[SEP] operator[SEP] {
annotation[@] identifier[Override] Keyword[pub... |
private void updateChunksInProjectVersions(final DatabaseTransOperator transOperator,
final int projectId, final int version, final int chunk)
throws ProjectManagerException {
final String UPDATE_PROJECT_NUM_CHUNKS =
"UPDATE project_versions SET num_chunks=? WHERE project_id=? AND version=?";
... | class class_name[name] begin[{]
method[updateChunksInProjectVersions, return_type[void], modifier[private], parameter[transOperator, projectId, version, chunk]] begin[{]
local_variable[type[String], UPDATE_PROJECT_NUM_CHUNKS]
TryStatement(block=[StatementExpression(expression=MethodInvocation(a... | Keyword[private] Keyword[void] identifier[updateChunksInProjectVersions] operator[SEP] Keyword[final] identifier[DatabaseTransOperator] identifier[transOperator] , Keyword[final] Keyword[int] identifier[projectId] , Keyword[final] Keyword[int] identifier[version] , Keyword[final] Keyword[int] identifier[chunk] opera... |
private void loadLastSavedPreferences() {
fLastSelectedTemplateName = ""; //$NON-NLS-1$
boolean setSelection = false;
String templateName = GlassmakerUIPlugin.getDefault().getPreferenceStore().getString(HTMLUIPreferenceNames.NEW_FILE_TEMPLATE_NAME);
if (templateName == null || templateName.length() == 0) {
t... | class class_name[name] begin[{]
method[loadLastSavedPreferences, return_type[void], modifier[private], parameter[]] begin[{]
assign[member[.fLastSelectedTemplateName], literal[""]]
local_variable[type[boolean], setSelection]
local_variable[type[String], templateName]
... | Keyword[private] Keyword[void] identifier[loadLastSavedPreferences] operator[SEP] operator[SEP] {
identifier[fLastSelectedTemplateName] operator[=] literal[String] operator[SEP] Keyword[boolean] identifier[setSelection] operator[=] literal[boolean] operator[SEP] identifier[String] identifier[templateName] operat... |
private static void performVersionChecks(String minSpringVersion) {
if (minSpringVersion == null) {
return;
}
// Check Spring Compatibility
String springVersion = SpringVersion.getVersion();
String version = getVersion();
if (disableChecks(springVersion, version)) {
return;
}
logger.info("You ar... | class class_name[name] begin[{]
method[performVersionChecks, return_type[void], modifier[private static], parameter[minSpringVersion]] begin[{]
if[binary_operation[member[.minSpringVersion], ==, literal[null]]] begin[{]
return[None]
else begin[{]
None
end[}]
... | Keyword[private] Keyword[static] Keyword[void] identifier[performVersionChecks] operator[SEP] identifier[String] identifier[minSpringVersion] operator[SEP] {
Keyword[if] operator[SEP] identifier[minSpringVersion] operator[==] Other[null] operator[SEP] {
Keyword[return] operator[SEP]
}
id... |
public IndexFacesRequest withDetectionAttributes(String... detectionAttributes) {
if (this.detectionAttributes == null) {
setDetectionAttributes(new java.util.ArrayList<String>(detectionAttributes.length));
}
for (String ele : detectionAttributes) {
this.detectionAttribut... | class class_name[name] begin[{]
method[withDetectionAttributes, return_type[type[IndexFacesRequest]], modifier[public], parameter[detectionAttributes]] begin[{]
if[binary_operation[THIS[member[None.detectionAttributes]], ==, literal[null]]] begin[{]
call[.setDetectionAtt... | Keyword[public] identifier[IndexFacesRequest] identifier[withDetectionAttributes] operator[SEP] identifier[String] operator[...] identifier[detectionAttributes] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[detectionAttributes] operator[==] Other[null] operator[SEP] {
... |
protected static void showKillDialog(Set<String> ids, String caption, final CmsSessionsTable table) {
final Window window = CmsBasicDialog.prepareWindow();
window.setCaption(caption);
window.setContent(new CmsKillSessionDialog(ids, getCloseRunnable(window, table)));
A_CmsUI.get().addWin... | class class_name[name] begin[{]
method[showKillDialog, return_type[void], modifier[static protected], parameter[ids, caption, table]] begin[{]
local_variable[type[Window], window]
call[window.setCaption, parameter[member[.caption]]]
call[window.setContent, parameter[Clas... | Keyword[protected] Keyword[static] Keyword[void] identifier[showKillDialog] operator[SEP] identifier[Set] operator[<] identifier[String] operator[>] identifier[ids] , identifier[String] identifier[caption] , Keyword[final] identifier[CmsSessionsTable] identifier[table] operator[SEP] {
Keyword[final] identifier... |
public MembershipType saveMembershipType(MembershipType mt, boolean broadcast) throws Exception
{
Session session = service.getStorageSession();
try
{
return saveMembershipType(session, (MembershipTypeImpl)mt, broadcast);
}
finally
{
session.logout();
}
... | class class_name[name] begin[{]
method[saveMembershipType, return_type[type[MembershipType]], modifier[public], parameter[mt, broadcast]] begin[{]
local_variable[type[Session], session]
TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=session, po... | Keyword[public] identifier[MembershipType] identifier[saveMembershipType] operator[SEP] identifier[MembershipType] identifier[mt] , Keyword[boolean] identifier[broadcast] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[Session] identifier[session] operator[=] identifier[service] operator[SEP] i... |
public static <T extends Proposition> Map<String, List<T>> createPropositionMap(
List<T> propositions) {
Map<String, List<T>> result = new HashMap<>();
if (propositions != null) {
for (T prop : propositions) {
String propId = prop.getId();
List<T... | class class_name[name] begin[{]
method[createPropositionMap, return_type[type[Map]], modifier[public static], parameter[propositions]] begin[{]
local_variable[type[Map], result]
if[binary_operation[member[.propositions], !=, literal[null]]] begin[{]
ForStatement(body=BlockSt... | Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Proposition] operator[>] identifier[Map] operator[<] identifier[String] , identifier[List] operator[<] identifier[T] operator[>] operator[>] identifier[createPropositionMap] operator[SEP] identifier[List] operator[<] identifier[T] op... |
@XmlElementDecl(namespace = "", name = "dreizeiler")
public JAXBElement<String> createDreizeiler(String value) {
return new JAXBElement<String>(_Dreizeiler_QNAME, String.class, null, value);
} | class class_name[name] begin[{]
method[createDreizeiler, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=_Dreizeiler_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(postfix_ope... | annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[String] operator[>] identifier[createDreizeiler] operator[SEP] identifier[String] identifi... |
private static String initializeBaseDir() {
LOGGER.entering();
String repoFolderName = System.getProperty(ARTIFACT_BASE_CONFIG_PROPERTY,
ConfigParser.parse().getString(ARTIFACT_BASE_CONFIG_PROPERTY, "repository"));
repoFolderName = StringUtils.defaultIfEmpty(repoFolderName, "repo... | class class_name[name] begin[{]
method[initializeBaseDir, return_type[type[String]], modifier[private static], parameter[]] begin[{]
call[LOGGER.entering, parameter[]]
local_variable[type[String], repoFolderName]
assign[member[.repoFolderName], call[StringUtils.defaultIf... | Keyword[private] Keyword[static] identifier[String] identifier[initializeBaseDir] operator[SEP] operator[SEP] {
identifier[LOGGER] operator[SEP] identifier[entering] operator[SEP] operator[SEP] operator[SEP] identifier[String] identifier[repoFolderName] operator[=] identifier[System] operator[SEP] identifier[get... |
public void assignExclusiveSegments(NetworkBufferPool networkBufferPool, int networkBuffersPerChannel) throws IOException {
checkState(this.isCreditBased, "Bug in input gate setup logic: exclusive buffers only exist with credit-based flow control.");
checkState(this.networkBufferPool == null, "Bug in input gate set... | class class_name[name] begin[{]
method[assignExclusiveSegments, return_type[void], modifier[public], parameter[networkBufferPool, networkBuffersPerChannel]] begin[{]
call[.checkState, parameter[THIS[member[None.isCreditBased]], literal["Bug in input gate setup logic: exclusive buffers only exis... | Keyword[public] Keyword[void] identifier[assignExclusiveSegments] operator[SEP] identifier[NetworkBufferPool] identifier[networkBufferPool] , Keyword[int] identifier[networkBuffersPerChannel] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[checkState] operator[SEP] Keyword[this] operator[SEP]... |
private void flatten(List<DataDescriptor> result, List<DataDescriptor> tree) {
for (DataDescriptor key : tree) {
if (key.bad) {
root.isBad = true;
result.add(key); // add it anyway so we can see it in debug
continue;
}
if ((key.f == 3) && (key.subKeys != null)) {... | class class_name[name] begin[{]
method[flatten, return_type[void], modifier[private], parameter[result, tree]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MemberReference(member=bad, postfix_operators=[], prefix_operators=[], qualifier=key, selectors=[]), els... | Keyword[private] Keyword[void] identifier[flatten] operator[SEP] identifier[List] operator[<] identifier[DataDescriptor] operator[>] identifier[result] , identifier[List] operator[<] identifier[DataDescriptor] operator[>] identifier[tree] operator[SEP] {
Keyword[for] operator[SEP] identifier[DataDescriptor] ide... |
protected boolean setResult(Object result) {
for (; ; ) {
Object currentState = this.state;
if (isDoneState(currentState)) {
return false;
}
if (STATE.compareAndSet(this, currentState, result)) {
done();
notifyThre... | class class_name[name] begin[{]
method[setResult, return_type[type[boolean]], modifier[protected], parameter[result]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=This(postfix_operat... | Keyword[protected] Keyword[boolean] identifier[setResult] operator[SEP] identifier[Object] identifier[result] operator[SEP] {
Keyword[for] operator[SEP] operator[SEP] operator[SEP] operator[SEP] {
identifier[Object] identifier[currentState] operator[=] Keyword[this] operator[SEP] identifier[state] ope... |
public static <T> Collector<T, ?, ParetoFront<T>>
toParetoFront(final Comparator<? super T> dominance) {
return Collector.of(
() -> new ParetoFront<>(dominance),
ParetoFront::add,
ParetoFront::merge
);
} | class class_name[name] begin[{]
method[toParetoFront, return_type[type[Collector]], modifier[public static], parameter[dominance]] begin[{]
return[call[Collector.of, parameter[LambdaExpression(body=ClassCreator(arguments=[MemberReference(member=dominance, postfix_operators=[], prefix_operators=[], qual... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Collector] operator[<] identifier[T] , operator[?] , identifier[ParetoFront] operator[<] identifier[T] operator[>] operator[>] identifier[toParetoFront] operator[SEP] Keyword[final] identifier[Comparator] operator[<] operator[?] Keyword[... |
private boolean createMQLinkMPResources(
MQLinkHandler mqLinkHandler,
MQLinkDefinition mqld,
LocalizationDefinition linkLocalizationDefinition,
... | class class_name[name] begin[{]
method[createMQLinkMPResources, return_type[type[boolean]], modifier[private], parameter[mqLinkHandler, mqld, linkLocalizationDefinition, virtualLinkDefinition, linkLocalizingMEs, transaction, linkCreated]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTr... | Keyword[private] Keyword[boolean] identifier[createMQLinkMPResources] operator[SEP] identifier[MQLinkHandler] identifier[mqLinkHandler] , identifier[MQLinkDefinition] identifier[mqld] , identifier[LocalizationDefinition] identifier[linkLocalizationDefinition] , identifier[VirtualLinkDefinition] identifier[virtualLin... |
public String escapePath(final String text, final String encoding) {
return UriEscape.escapeUriPath(text, encoding);
} | class class_name[name] begin[{]
method[escapePath, return_type[type[String]], modifier[public], parameter[text, encoding]] begin[{]
return[call[UriEscape.escapeUriPath, parameter[member[.text], member[.encoding]]]]
end[}]
END[}] | Keyword[public] identifier[String] identifier[escapePath] operator[SEP] Keyword[final] identifier[String] identifier[text] , Keyword[final] identifier[String] identifier[encoding] operator[SEP] {
Keyword[return] identifier[UriEscape] operator[SEP] identifier[escapeUriPath] operator[SEP] identifier[text] , iden... |
public static boolean isFromOrSuppressedThrowable(Throwable throwable, Class<? extends Throwable> exceptionClass, boolean checkCause) {
return convertFromOrSuppressedThrowable(throwable, exceptionClass, checkCause) != null;
} | class class_name[name] begin[{]
method[isFromOrSuppressedThrowable, return_type[type[boolean]], modifier[public static], parameter[throwable, exceptionClass, checkCause]] begin[{]
return[binary_operation[call[.convertFromOrSuppressedThrowable, parameter[member[.throwable], member[.exceptionClass], memb... | Keyword[public] Keyword[static] Keyword[boolean] identifier[isFromOrSuppressedThrowable] operator[SEP] identifier[Throwable] identifier[throwable] , identifier[Class] operator[<] operator[?] Keyword[extends] identifier[Throwable] operator[>] identifier[exceptionClass] , Keyword[boolean] identifier[checkCause] operato... |
public void processTasks(List<Row> bars, List<Row> expandedTasks, List<Row> tasks, List<Row> milestones)
{
List<Row> parentBars = buildRowHierarchy(bars, expandedTasks, tasks, milestones);
createTasks(m_project, "", parentBars);
deriveProjectCalendar();
updateStructure();
} | class class_name[name] begin[{]
method[processTasks, return_type[void], modifier[public], parameter[bars, expandedTasks, tasks, milestones]] begin[{]
local_variable[type[List], parentBars]
call[.createTasks, parameter[member[.m_project], literal[""], member[.parentBars]]]
... | Keyword[public] Keyword[void] identifier[processTasks] operator[SEP] identifier[List] operator[<] identifier[Row] operator[>] identifier[bars] , identifier[List] operator[<] identifier[Row] operator[>] identifier[expandedTasks] , identifier[List] operator[<] identifier[Row] operator[>] identifier[tasks] , identifier... |
static public Key[] exit(Key... keep) {
List<Key> keylist = new ArrayList<>();
if( keep != null )
for( Key k : keep ) if (k != null) keylist.add(k);
Object[] arrkeep = keylist.toArray();
Arrays.sort(arrkeep);
Stack<HashSet<Key>> keys = _scope.get()._keys;
if (keys.size() > 0) {
Futur... | class class_name[name] begin[{]
method[exit, return_type[type[Key]], modifier[public static], parameter[keep]] begin[{]
local_variable[type[List], keylist]
if[binary_operation[member[.keep], !=, literal[null]]] begin[{]
ForStatement(body=IfStatement(condition=BinaryOperation(operandl=Me... | Keyword[static] Keyword[public] identifier[Key] operator[SEP] operator[SEP] identifier[exit] operator[SEP] identifier[Key] operator[...] identifier[keep] operator[SEP] {
identifier[List] operator[<] identifier[Key] operator[>] identifier[keylist] operator[=] Keyword[new] identifier[ArrayList] operator[<] operato... |
protected String htmlComponent(CmsSetupComponent component) {
StringBuffer html = new StringBuffer(256);
html.append("\t<tr>\n");
html.append("\t\t<td>\n");
html.append("\t\t\t<input type='checkbox' name='availableComponents' value='");
html.append(component.getId());
ht... | class class_name[name] begin[{]
method[htmlComponent, return_type[type[String]], modifier[protected], parameter[component]] begin[{]
local_variable[type[StringBuffer], html]
call[html.append, parameter[literal["\t<tr>\n"]]]
call[html.append, parameter[literal["\t\t<td>\n... | Keyword[protected] identifier[String] identifier[htmlComponent] operator[SEP] identifier[CmsSetupComponent] identifier[component] operator[SEP] {
identifier[StringBuffer] identifier[html] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] Other[256] operator[SEP] operator[SEP] identifier[html] opera... |
protected Class<?> findTagClass (String tag, ClassLoader classLoader) throws ClassNotFoundException {
return Class.forName(tag, true, classLoader);
} | class class_name[name] begin[{]
method[findTagClass, return_type[type[Class]], modifier[protected], parameter[tag, classLoader]] begin[{]
return[call[Class.forName, parameter[member[.tag], literal[true], member[.classLoader]]]]
end[}]
END[}] | Keyword[protected] identifier[Class] operator[<] operator[?] operator[>] identifier[findTagClass] operator[SEP] identifier[String] identifier[tag] , identifier[ClassLoader] identifier[classLoader] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] {
Keyword[return] identifier[Class] operator[SEP] ... |
protected String getResourceBase() {
if (useEmbeddedWebroot) { // option
final String path = WEBROOT_RESOURCE_PATH;
final URL webroot = getClass().getResource(path);
if (webroot == null) {
throw new IllegalStateException("Not found the webroot resource: path="... | class class_name[name] begin[{]
method[getResourceBase, return_type[type[String]], modifier[protected], parameter[]] begin[{]
if[member[.useEmbeddedWebroot]] begin[{]
local_variable[type[String], path]
local_variable[type[URL], webroot]
if[binary_... | Keyword[protected] identifier[String] identifier[getResourceBase] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[useEmbeddedWebroot] operator[SEP] {
Keyword[final] identifier[String] identifier[path] operator[=] identifier[WEBROOT_RESOURCE_PATH] operator[SEP] Keyword[final] identif... |
private void setBar( final double VALUE ) {
currentValueAngle = Helper.clamp(90.0, 270.0, ( VALUE - minValue ) * angleStep + 90.0);
double smallHeight = 0.675 * height;
double tinyHeight = 0.3 * height;
double currentValueSin = Math.sin(-Math.toRadians(currentValueAngle));
... | class class_name[name] begin[{]
method[setBar, return_type[void], modifier[private], parameter[VALUE]] begin[{]
assign[member[.currentValueAngle], call[Helper.clamp, parameter[literal[90.0], literal[270.0], binary_operation[binary_operation[binary_operation[member[.VALUE], -, member[.minValue]]... | Keyword[private] Keyword[void] identifier[setBar] operator[SEP] Keyword[final] Keyword[double] identifier[VALUE] operator[SEP] {
identifier[currentValueAngle] operator[=] identifier[Helper] operator[SEP] identifier[clamp] operator[SEP] literal[Float] , literal[Float] , operator[SEP] identifier[VALUE] operator[... |
public void debug(String message, Map<String, Object> custom) {
debug(null, custom, message);
} | class class_name[name] begin[{]
method[debug, return_type[void], modifier[public], parameter[message, custom]] begin[{]
call[.debug, parameter[literal[null], member[.custom], member[.message]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[debug] operator[SEP] identifier[String] identifier[message] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[custom] operator[SEP] {
identifier[debug] operator[SEP] Other[null] , identifier[custom] , identifier[message] oper... |
protected List<PropertyData> getCachedCleanChildPropertiesData(NodeData nodeData)
{
if (cache.isEnabled())
{
List<PropertyData> childProperties = cache.getChildProperties(nodeData);
if (childProperties != null)
{
boolean skip = false;
for (PropertyData ... | class class_name[name] begin[{]
method[getCachedCleanChildPropertiesData, return_type[type[List]], modifier[protected], parameter[nodeData]] begin[{]
if[call[cache.isEnabled, parameter[]]] begin[{]
local_variable[type[List], childProperties]
if[binary_operati... | Keyword[protected] identifier[List] operator[<] identifier[PropertyData] operator[>] identifier[getCachedCleanChildPropertiesData] operator[SEP] identifier[NodeData] identifier[nodeData] operator[SEP] {
Keyword[if] operator[SEP] identifier[cache] operator[SEP] identifier[isEnabled] operator[SEP] operator[SEP] op... |
public static <T extends AVUser> AVQuery<T> getUserQuery(Class<T> clazz) {
return new AVQuery<T>(CLASS_NAME, clazz);
} | class class_name[name] begin[{]
method[getUserQuery, return_type[type[AVQuery]], modifier[public static], parameter[clazz]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=CLASS_NAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=clazz, post... | Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[AVUser] operator[>] identifier[AVQuery] operator[<] identifier[T] operator[>] identifier[getUserQuery] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] operator[SEP] {
Keyword[return] Keyw... |
@Override
public double doubleValue() {
@SuppressWarnings("cast")
double dValue = (double) (value & UNSIGNED_MASK);
if (value < 0) {
dValue += 0x1.0p63;
}
return dValue;
} | class class_name[name] begin[{]
method[doubleValue, return_type[type[double]], modifier[public], parameter[]] begin[{]
local_variable[type[double], dValue]
if[binary_operation[member[.value], <, literal[0]]] begin[{]
assign[member[.dValue], literal[0x1.0p63]]
... | annotation[@] identifier[Override] Keyword[public] Keyword[double] identifier[doubleValue] operator[SEP] operator[SEP] {
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[double] identifier[dValue] operator[=] operator[SEP] Keyword[double] operator[SEP] operator[SEP] ... |
@Override
public DeleteVpnConnectionResult deleteVpnConnection(DeleteVpnConnectionRequest request) {
request = beforeClientExecution(request);
return executeDeleteVpnConnection(request);
} | class class_name[name] begin[{]
method[deleteVpnConnection, return_type[type[DeleteVpnConnectionResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeDeleteVpnConnection, parameter... | annotation[@] identifier[Override] Keyword[public] identifier[DeleteVpnConnectionResult] identifier[deleteVpnConnection] operator[SEP] identifier[DeleteVpnConnectionRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] ope... |
public void beginDelete(String resourceGroupName, String topicName) {
beginDeleteWithServiceResponseAsync(resourceGroupName, topicName).toBlocking().single().body();
} | class class_name[name] begin[{]
method[beginDelete, return_type[void], modifier[public], parameter[resourceGroupName, topicName]] begin[{]
call[.beginDeleteWithServiceResponseAsync, parameter[member[.resourceGroupName], member[.topicName]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[beginDelete] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[topicName] operator[SEP] {
identifier[beginDeleteWithServiceResponseAsync] operator[SEP] identifier[resourceGroupName] , identifier[topicName] operator[SEP] opera... |
public Request searchAsync(@Nullable Query query, @Nullable CompletionHandler completionHandler) {
return searchAsync(query, /* requestOptions: */ null, completionHandler);
} | class class_name[name] begin[{]
method[searchAsync, return_type[type[Request]], modifier[public], parameter[query, completionHandler]] begin[{]
return[call[.searchAsync, parameter[member[.query], literal[null], member[.completionHandler]]]]
end[}]
END[}] | Keyword[public] identifier[Request] identifier[searchAsync] operator[SEP] annotation[@] identifier[Nullable] identifier[Query] identifier[query] , annotation[@] identifier[Nullable] identifier[CompletionHandler] identifier[completionHandler] operator[SEP] {
Keyword[return] identifier[searchAsync] operator[SEP] ... |
public void preInitGraphs(Map<String, byte[]> newSmallGraphs,
Map<String, byte[]> newSmallOtherGraphs, Map<String, byte[]> newLargeGraphs) {
pdfCoreReport.preInitGraphs(newSmallGraphs, newSmallOtherGraphs, newLargeGraphs);
} | class class_name[name] begin[{]
method[preInitGraphs, return_type[void], modifier[public], parameter[newSmallGraphs, newSmallOtherGraphs, newLargeGraphs]] begin[{]
call[pdfCoreReport.preInitGraphs, parameter[member[.newSmallGraphs], member[.newSmallOtherGraphs], member[.newLargeGraphs]]]
en... | Keyword[public] Keyword[void] identifier[preInitGraphs] operator[SEP] identifier[Map] operator[<] identifier[String] , Keyword[byte] operator[SEP] operator[SEP] operator[>] identifier[newSmallGraphs] , identifier[Map] operator[<] identifier[String] , Keyword[byte] operator[SEP] operator[SEP] operator[>] identifier[n... |
public static void fireOnChange(Saveable o, XmlFile file) {
for (SaveableListener l : all()) {
try {
l.onChange(o,file);
} catch (ThreadDeath t) {
throw t;
} catch (Throwable t) {
Logger.getLogger(SaveableListener.class.getName(... | class class_name[name] begin[{]
method[fireOnChange, return_type[void], modifier[public static], parameter[o, file]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=o, postfix_operato... | Keyword[public] Keyword[static] Keyword[void] identifier[fireOnChange] operator[SEP] identifier[Saveable] identifier[o] , identifier[XmlFile] identifier[file] operator[SEP] {
Keyword[for] operator[SEP] identifier[SaveableListener] identifier[l] operator[:] identifier[all] operator[SEP] operator[SEP] operator[S... |
private MembershipsByUserWrapper findMembershipsByUser(Session session, String userName) throws Exception
{
Node userNode;
try
{
userNode = utils.getUserNode(session, userName);
}
catch (PathNotFoundException e)
{
return new MembershipsByUserWrapper(new ArrayList... | class class_name[name] begin[{]
method[findMembershipsByUser, return_type[type[MembershipsByUserWrapper]], modifier[private], parameter[session, userName]] begin[{]
local_variable[type[Node], userNode]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(mem... | Keyword[private] identifier[MembershipsByUserWrapper] identifier[findMembershipsByUser] operator[SEP] identifier[Session] identifier[session] , identifier[String] identifier[userName] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[Node] identifier[userNode] operator[SEP] Keyword[try] {
... |
public static int getBackgroundColor(Context context, AttributeSet attrs) {
int color = Color.TRANSPARENT;
if (isHaveAttribute(attrs, "background")) {
int styleId = attrs.getStyleAttribute();
int[] attributesArray = new int[]{android.R.attr.background};
try {
... | class class_name[name] begin[{]
method[getBackgroundColor, return_type[type[int]], modifier[public static], parameter[context, attrs]] begin[{]
local_variable[type[int], color]
if[call[.isHaveAttribute, parameter[member[.attrs], literal["background"]]]] begin[{]
local_variab... | Keyword[public] Keyword[static] Keyword[int] identifier[getBackgroundColor] operator[SEP] identifier[Context] identifier[context] , identifier[AttributeSet] identifier[attrs] operator[SEP] {
Keyword[int] identifier[color] operator[=] identifier[Color] operator[SEP] identifier[TRANSPARENT] operator[SEP] Keyword[... |
public void setShardAssigner(KinesisShardAssigner shardAssigner) {
this.shardAssigner = checkNotNull(shardAssigner, "function can not be null");
ClosureCleaner.clean(shardAssigner, true);
} | class class_name[name] begin[{]
method[setShardAssigner, return_type[void], modifier[public], parameter[shardAssigner]] begin[{]
assign[THIS[member[None.shardAssigner]], call[.checkNotNull, parameter[member[.shardAssigner], literal["function can not be null"]]]]
call[ClosureClea... | Keyword[public] Keyword[void] identifier[setShardAssigner] operator[SEP] identifier[KinesisShardAssigner] identifier[shardAssigner] operator[SEP] {
Keyword[this] operator[SEP] identifier[shardAssigner] operator[=] identifier[checkNotNull] operator[SEP] identifier[shardAssigner] , literal[String] operator[SEP] o... |
public final void entryRuleIdOrSuper() throws RecognitionException {
try {
// InternalXbase.g:1234:1: ( ruleIdOrSuper EOF )
// InternalXbase.g:1235:1: ruleIdOrSuper EOF
{
if ( state.backtracking==0 ) {
before(grammarAccess.getIdOrSuperRule());
... | class class_name[name] begin[{]
method[entryRuleIdOrSuper, return_type[void], modifier[final public], parameter[]] begin[{]
TryStatement(block=[BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=backtracking, postfix_operators=[], prefix_operato... | Keyword[public] Keyword[final] Keyword[void] identifier[entryRuleIdOrSuper] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] {
Keyword[try] {
{
Keyword[if] operator[SEP] identifier[state] operator[SEP] identifier[backtracking] operator[==] Other[0] operator[S... |
public AnnotationInfo getAnnotationInfo(final String annotationClassName) {
for(AnnotationInfo item : annotationInfos) {
if(item.getClassName().equals(annotationClassName)) {
return item;
}
}
return null;
} | class class_name[name] begin[{]
method[getAnnotationInfo, return_type[type[AnnotationInfo]], modifier[public], parameter[annotationClassName]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getClassName, postfix_operators=[]... | Keyword[public] identifier[AnnotationInfo] identifier[getAnnotationInfo] operator[SEP] Keyword[final] identifier[String] identifier[annotationClassName] operator[SEP] {
Keyword[for] operator[SEP] identifier[AnnotationInfo] identifier[item] operator[:] identifier[annotationInfos] operator[SEP] {
Keywo... |
public void marshall(MeterUsageRequest meterUsageRequest, ProtocolMarshaller protocolMarshaller) {
if (meterUsageRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(meterUsageRequest.getProduct... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[meterUsageRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.meterUsageRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(pos... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[MeterUsageRequest] identifier[meterUsageRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[meterUsageRequest] operator[==] Other[null] operator[SEP] {
... |
public void fork(K to, M msg)
{
if (maxParallelism == 0)
{
throw new IllegalArgumentException("maxParallelism == 0, fork() not allowed! Use switchTo.");
}
try
{
stopSemaphore.acquire();
parallelSet.add(getCurrentKey());
... | class class_name[name] begin[{]
method[fork, return_type[void], modifier[public], parameter[to, msg]] begin[{]
if[binary_operation[member[.maxParallelism], ==, literal[0]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], ... | Keyword[public] Keyword[void] identifier[fork] operator[SEP] identifier[K] identifier[to] , identifier[M] identifier[msg] operator[SEP] {
Keyword[if] operator[SEP] identifier[maxParallelism] operator[==] Other[0] operator[SEP] {
Keyword[throw] Keyword[new] identifier[IllegalArgumentException] operato... |
public long timeout()
{
final long now = now();
for (Entry<Timer, Long> entry : entries()) {
final Timer timer = entry.getKey();
final Long expiration = entry.getValue();
if (timer.alive) {
// Live timer, lets return the timeout
i... | class class_name[name] begin[{]
method[timeout, return_type[type[long]], modifier[public], parameter[]] begin[{]
local_variable[type[long], now]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initi... | Keyword[public] Keyword[long] identifier[timeout] operator[SEP] operator[SEP] {
Keyword[final] Keyword[long] identifier[now] operator[=] identifier[now] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Entry] operator[<] identifier[Timer] , identifier[Long] operator[>] identifier[... |
public List<String> getOutPorts() {
List<String> ports = new ArrayList<>();
JsonObject jsonPorts = config.getObject("ports");
if (jsonPorts == null) {
return ports;
}
JsonArray jsonOutPorts = jsonPorts.getArray("out");
if (jsonOutPorts == null) {
return ports;
}
for(Object js... | class class_name[name] begin[{]
method[getOutPorts, return_type[type[List]], modifier[public], parameter[]] begin[{]
local_variable[type[List], ports]
local_variable[type[JsonObject], jsonPorts]
if[binary_operation[member[.jsonPorts], ==, literal[null]]] begin[{]
ret... | Keyword[public] identifier[List] operator[<] identifier[String] operator[>] identifier[getOutPorts] operator[SEP] operator[SEP] {
identifier[List] operator[<] identifier[String] operator[>] identifier[ports] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operat... |
public static String[] toStringArray(Enumeration<String> enumeration) {
if (enumeration == null) {
return null;
}
List<String> list = java.util.Collections.list(enumeration);
return list.toArray(new String[list.size()]);
} | class class_name[name] begin[{]
method[toStringArray, return_type[type[String]], modifier[public static], parameter[enumeration]] begin[{]
if[binary_operation[member[.enumeration], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
l... | Keyword[public] Keyword[static] identifier[String] operator[SEP] operator[SEP] identifier[toStringArray] operator[SEP] identifier[Enumeration] operator[<] identifier[String] operator[>] identifier[enumeration] operator[SEP] {
Keyword[if] operator[SEP] identifier[enumeration] operator[==] Other[null] operator[SEP... |
public void log(String message, Map<String, Object> custom) {
log(null, custom, message, null);
} | class class_name[name] begin[{]
method[log, return_type[void], modifier[public], parameter[message, custom]] begin[{]
call[.log, parameter[literal[null], member[.custom], member[.message], literal[null]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[log] operator[SEP] identifier[String] identifier[message] , identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[custom] operator[SEP] {
identifier[log] operator[SEP] Other[null] , identifier[custom] , identifier[message] , Other... |
public void startElement(
StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes)
throws org.xml.sax.SAXException
{
KeyDeclaration kd = new KeyDeclaration(handler.getStylesheet(), handler.nextUid());
kd.setDOMBackPointer(handler.getOriginatingNod... | class class_name[name] begin[{]
method[startElement, return_type[void], modifier[public], parameter[handler, uri, localName, rawName, attributes]] begin[{]
local_variable[type[KeyDeclaration], kd]
call[kd.setDOMBackPointer, parameter[call[handler.getOriginatingNode, parameter[]]]]
... | Keyword[public] Keyword[void] identifier[startElement] operator[SEP] identifier[StylesheetHandler] identifier[handler] , identifier[String] identifier[uri] , identifier[String] identifier[localName] , identifier[String] identifier[rawName] , identifier[Attributes] identifier[attributes] operator[SEP] Keyword[throws... |
private void findSentenceIntervals(JCas jcas){
HashSet<Timex3Interval> timexesToRemove = new HashSet<Timex3Interval>();
FSIterator iterSentence = jcas.getAnnotationIndex(Sentence.type).iterator();
while (iterSentence.hasNext()) {
Sentence s=(Sentence)iterSentence.next();
String sString=s.getCoveredText()... | class class_name[name] begin[{]
method[findSentenceIntervals, return_type[void], modifier[private], parameter[jcas]] begin[{]
local_variable[type[HashSet], timexesToRemove]
local_variable[type[FSIterator], iterSentence]
while[call[iterSentence.hasNext, parameter[]]] begin[{]
... | Keyword[private] Keyword[void] identifier[findSentenceIntervals] operator[SEP] identifier[JCas] identifier[jcas] operator[SEP] {
identifier[HashSet] operator[<] identifier[Timex3Interval] operator[>] identifier[timexesToRemove] operator[=] Keyword[new] identifier[HashSet] operator[<] identifier[Timex3Interval] o... |
public void marshall(DescribeClustersRequest describeClustersRequest, ProtocolMarshaller protocolMarshaller) {
if (describeClustersRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(describeCl... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[describeClustersRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.describeClustersRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DescribeClustersRequest] identifier[describeClustersRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[describeClustersRequest] operator[==] Other[null] operator... |
public static cmppolicylabel_cmppolicy_binding[] get(nitro_service service, String labelname) throws Exception{
cmppolicylabel_cmppolicy_binding obj = new cmppolicylabel_cmppolicy_binding();
obj.set_labelname(labelname);
cmppolicylabel_cmppolicy_binding response[] = (cmppolicylabel_cmppolicy_binding[]) obj.get_re... | class class_name[name] begin[{]
method[get, return_type[type[cmppolicylabel_cmppolicy_binding]], modifier[public static], parameter[service, labelname]] begin[{]
local_variable[type[cmppolicylabel_cmppolicy_binding], obj]
call[obj.set_labelname, parameter[member[.labelname]]]
lo... | Keyword[public] Keyword[static] identifier[cmppolicylabel_cmppolicy_binding] operator[SEP] operator[SEP] identifier[get] operator[SEP] identifier[nitro_service] identifier[service] , identifier[String] identifier[labelname] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[cmppolicylabel_cmppolic... |
private static Stream<Class<?>> getSuperclassesAsStream(Class<?> clazz, boolean includeArgument) {
return Stream.concat(includeArgument ? Stream.of(clazz) : Stream.empty(),
Optional.ofNullable(clazz.getSuperclass())
.map(Stream::of)
... | class class_name[name] begin[{]
method[getSuperclassesAsStream, return_type[type[Stream]], modifier[private static], parameter[clazz, includeArgument]] begin[{]
return[call[Stream.concat, parameter[TernaryExpression(condition=MemberReference(member=includeArgument, postfix_operators=[], prefix_operator... | Keyword[private] Keyword[static] identifier[Stream] operator[<] identifier[Class] operator[<] operator[?] operator[>] operator[>] identifier[getSuperclassesAsStream] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] , Keyword[boolean] identifier[includeArgument] operator[SEP] {
... |
public Cell getCellByName(String cellName) {
Set<String> keys = cells.keySet();
for (String key : keys) {
List<Cell> cellList = cells.get(key);
for (Cell c : cellList) {
if (c.getCellName().equals(cellName)) {
return c;
}
... | class class_name[name] begin[{]
method[getCellByName, return_type[type[Cell]], modifier[public], parameter[cellName]] begin[{]
local_variable[type[Set], keys]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimens... | Keyword[public] identifier[Cell] identifier[getCellByName] operator[SEP] identifier[String] identifier[cellName] operator[SEP] {
identifier[Set] operator[<] identifier[String] operator[>] identifier[keys] operator[=] identifier[cells] operator[SEP] identifier[keySet] operator[SEP] operator[SEP] operator[SEP] Key... |
public final MetricDescriptor createMetricDescriptor(
String name, MetricDescriptor metricDescriptor) {
CreateMetricDescriptorRequest request =
CreateMetricDescriptorRequest.newBuilder()
.setName(name)
.setMetricDescriptor(metricDescriptor)
.build();
return cre... | class class_name[name] begin[{]
method[createMetricDescriptor, return_type[type[MetricDescriptor]], modifier[final public], parameter[name, metricDescriptor]] begin[{]
local_variable[type[CreateMetricDescriptorRequest], request]
return[call[.createMetricDescriptor, parameter[member[.request]]]]... | Keyword[public] Keyword[final] identifier[MetricDescriptor] identifier[createMetricDescriptor] operator[SEP] identifier[String] identifier[name] , identifier[MetricDescriptor] identifier[metricDescriptor] operator[SEP] {
identifier[CreateMetricDescriptorRequest] identifier[request] operator[=] identifier[Create... |
public static double[] getCol(double[][] m1, int col) {
double[] ret = new double[m1.length];
for(int i = 0; i < ret.length; i++) {
ret[i] = m1[i][col];
}
return ret;
} | class class_name[name] begin[{]
method[getCol, return_type[type[double]], modifier[public static], parameter[m1, col]] begin[{]
local_variable[type[double], ret]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member... | Keyword[public] Keyword[static] Keyword[double] operator[SEP] operator[SEP] identifier[getCol] operator[SEP] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[m1] , Keyword[int] identifier[col] operator[SEP] {
Keyword[double] operator[SEP] operator[SEP] identifier[ret] operator[... |
public final void entryRuleXSynchronizedExpression() throws RecognitionException {
try {
// InternalXbase.g:1484:1: ( ruleXSynchronizedExpression EOF )
// InternalXbase.g:1485:1: ruleXSynchronizedExpression EOF
{
if ( state.backtracking==0 ) {
befor... | class class_name[name] begin[{]
method[entryRuleXSynchronizedExpression, return_type[void], modifier[final public], parameter[]] begin[{]
TryStatement(block=[BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=backtracking, postfix_operators=[], ... | Keyword[public] Keyword[final] Keyword[void] identifier[entryRuleXSynchronizedExpression] operator[SEP] operator[SEP] Keyword[throws] identifier[RecognitionException] {
Keyword[try] {
{
Keyword[if] operator[SEP] identifier[state] operator[SEP] identifier[backtracking] operator[==] Other... |
public static byte[] intArrayToByteArray(int[] intArray) {
byte[] byteArray = new byte[intArray.length];
for (int i = 0; i < intArray.length; i++) {
byteArray[i] = intToByte(intArray[i]);
}
return byteArray;
} | class class_name[name] begin[{]
method[intArrayToByteArray, return_type[type[byte]], modifier[public static], parameter[intArray]] begin[{]
local_variable[type[byte], byteArray]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=Member... | Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[intArrayToByteArray] operator[SEP] Keyword[int] operator[SEP] operator[SEP] identifier[intArray] operator[SEP] {
Keyword[byte] operator[SEP] operator[SEP] identifier[byteArray] operator[=] Keyword[new] Keyword[byte] operator[SEP... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.