code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public Annotation getEnclosingSpan() {
if (DictTerm_Type.featOkTst && ((DictTerm_Type)jcasType).casFeat_enclosingSpan == null)
jcasType.jcas.throwFeatMissing("enclosingSpan", "org.apache.uima.conceptMapper.DictTerm");
return (Annotation)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ... | class class_name[name] begin[{]
method[getEnclosingSpan, return_type[type[Annotation]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[DictTerm_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], q... | Keyword[public] identifier[Annotation] identifier[getEnclosingSpan] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[DictTerm_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[DictTerm_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[SE... |
public java.util.List<com.google.rpc.Help.Link> getLinksList() {
return links_;
} | class class_name[name] begin[{]
method[getLinksList, return_type[type[java]], modifier[public], parameter[]] begin[{]
return[member[.links_]]
end[}]
END[}] | Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[rpc] operator[SEP] identifier[Help] operator[SEP] identifier[Link] operator[>] identifier[getLinksList] operator[SEP] operator[SEP] {
... |
private static String generateSignature(AuthToken token) {
StringBuilder builder = new StringBuilder();
builder.append(token.getPrincipal());
builder.append("||"); //$NON-NLS-1$
builder.append(token.getExpiresOn().getTime());
builder.append("||"); //$NON-NLS-1$
builder.ap... | class class_name[name] begin[{]
method[generateSignature, return_type[type[String]], modifier[private static], parameter[token]] begin[{]
local_variable[type[StringBuilder], builder]
call[builder.append, parameter[call[token.getPrincipal, parameter[]]]]
call[builder.appe... | Keyword[private] Keyword[static] identifier[String] identifier[generateSignature] operator[SEP] identifier[AuthToken] identifier[token] operator[SEP] {
identifier[StringBuilder] identifier[builder] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[builder] op... |
@Nullable
public static Age fromPanasonicString(@NotNull String s)
{
if (s.length() != 19 || s.startsWith("9999:99:99"))
return null;
try {
int years = Integer.parseInt(s.substring(0, 4));
int months = Integer.parseInt(s.substring(5, 7));
int days... | class class_name[name] begin[{]
method[fromPanasonicString, return_type[type[Age]], modifier[public static], parameter[s]] begin[{]
if[binary_operation[binary_operation[call[s.length, parameter[]], !=, literal[19]], ||, call[s.startsWith, parameter[literal["9999:99:99"]]]]] begin[{]
return[lite... | annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[Age] identifier[fromPanasonicString] operator[SEP] annotation[@] identifier[NotNull] identifier[String] identifier[s] operator[SEP] {
Keyword[if] operator[SEP] identifier[s] operator[SEP] identifier[length] operator[SEP] operator[SEP] ... |
@Override
public void connect(String server, int port, String application, IPendingServiceCallback connectCallback) {
log.debug("connect server: {} port {} application {} connectCallback {}", new Object[] { server, port, application, connectCallback });
connect(server, port, makeDefaultConnection... | class class_name[name] begin[{]
method[connect, return_type[void], modifier[public], parameter[server, port, application, connectCallback]] begin[{]
call[log.debug, parameter[literal["connect server: {} port {} application {} connectCallback {}"], ArrayCreator(dimensions=[None], initializer=Arr... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[connect] operator[SEP] identifier[String] identifier[server] , Keyword[int] identifier[port] , identifier[String] identifier[application] , identifier[IPendingServiceCallback] identifier[connectCallback] operator[SEP] {
identifier[log... |
@Override
public int parseArgument(Options opts, String[] args, int i) throws BadCommandLineException {
initLoggerIfNecessary(opts);
int recognized = 0;
String arg = args[i];
logger.trace("Argument[" + i + "] = " + arg);
if (arg.equals(getArgumentName(ConfigurationOption.APPLY_PLURAL_FORM.optionN... | class class_name[name] begin[{]
method[parseArgument, return_type[type[int]], modifier[public], parameter[opts, args, i]] begin[{]
call[.initLoggerIfNecessary, parameter[member[.opts]]]
local_variable[type[int], recognized]
local_variable[type[String], arg]
call[... | annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[parseArgument] operator[SEP] identifier[Options] identifier[opts] , identifier[String] operator[SEP] operator[SEP] identifier[args] , Keyword[int] identifier[i] operator[SEP] Keyword[throws] identifier[BadCommandLineException] {
identif... |
public PublicKey unwrapPublicKeyByKey(byte[] key,Key unwrapKey)
{
try {
if(key==null || key.length<=0 || unwrapKey==null)
{
return null;
}
Cipher cipher=Cipher.getInstance(algorithm);
//使用私钥包裹模式
cipher.init(Cipher.UNWRAP_MODE,unwrapKey);
return (PublicKey) cipher.unwrap(key, algo... | class class_name[name] begin[{]
method[unwrapPublicKeyByKey, return_type[type[PublicKey]], modifier[public], parameter[key, unwrapKey]] begin[{]
TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=BinaryOperation(operandl=MemberReference(member=key, postfix_opera... | Keyword[public] identifier[PublicKey] identifier[unwrapPublicKeyByKey] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[key] , identifier[Key] identifier[unwrapKey] operator[SEP] {
Keyword[try] {
Keyword[if] operator[SEP] identifier[key] operator[==] Other[null] operator[||] identif... |
@Override
public DeleteAccountResult deleteAccount(DeleteAccountRequest request) {
request = beforeClientExecution(request);
return executeDeleteAccount(request);
} | class class_name[name] begin[{]
method[deleteAccount, return_type[type[DeleteAccountResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeDeleteAccount, parameter[member[.request]]... | annotation[@] identifier[Override] Keyword[public] identifier[DeleteAccountResult] identifier[deleteAccount] operator[SEP] identifier[DeleteAccountRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operato... |
@Override
public void close(int requestNumber) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "close", "" + requestNumber);
BrowserSession browserSession = mainConsumer.getBrowserSession();
try {
browserSession.close();
... | class class_name[name] begin[{]
method[close, return_type[void], modifier[public], parameter[requestNumber]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, parameter[THIS[], me... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[close] operator[SEP] Keyword[int] identifier[requestNumber] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operat... |
@Override
public Version put(K key, V value) {
return put(key, new Versioned<V>(value));
} | class class_name[name] begin[{]
method[put, return_type[type[Version]], modifier[public], parameter[key, value]] begin[{]
return[call[.put, parameter[member[.key], ClassCreator(arguments=[MemberReference(member=value, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], body=None, con... | annotation[@] identifier[Override] Keyword[public] identifier[Version] identifier[put] operator[SEP] identifier[K] identifier[key] , identifier[V] identifier[value] operator[SEP] {
Keyword[return] identifier[put] operator[SEP] identifier[key] , Keyword[new] identifier[Versioned] operator[<] identifier[V] opera... |
protected CmsUserSearchParameters getSearchParams() throws CmsException {
CmsListState state = getListState();
CmsUserSearchParameters params = new CmsUserSearchParameters();
String searchFilter = state.getFilter();
params.setSearchFilter(searchFilter);
params.setFilterCore(true... | class class_name[name] begin[{]
method[getSearchParams, return_type[type[CmsUserSearchParameters]], modifier[protected], parameter[]] begin[{]
local_variable[type[CmsListState], state]
local_variable[type[CmsUserSearchParameters], params]
local_variable[type[String], searchFilter]
... | Keyword[protected] identifier[CmsUserSearchParameters] identifier[getSearchParams] operator[SEP] operator[SEP] Keyword[throws] identifier[CmsException] {
identifier[CmsListState] identifier[state] operator[=] identifier[getListState] operator[SEP] operator[SEP] operator[SEP] identifier[CmsUserSearchParameters] i... |
public static void boundImage( GrayF64 img , double min , double max ) {
ImplPixelMath.boundImage(img,min,max);
} | class class_name[name] begin[{]
method[boundImage, return_type[void], modifier[public static], parameter[img, min, max]] begin[{]
call[ImplPixelMath.boundImage, parameter[member[.img], member[.min], member[.max]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[void] identifier[boundImage] operator[SEP] identifier[GrayF64] identifier[img] , Keyword[double] identifier[min] , Keyword[double] identifier[max] operator[SEP] {
identifier[ImplPixelMath] operator[SEP] identifier[boundImage] operator[SEP] identifier[img] , identifier[m... |
public static Class<?> unwrapArrayType(Class<?> type) {
Class<?> clazz = (Class<?>) primToWrapArrayClasses.inverse().get(type);
return null != clazz ? clazz : type;
} | class class_name[name] begin[{]
method[unwrapArrayType, return_type[type[Class]], modifier[public static], parameter[type]] begin[{]
local_variable[type[Class], clazz]
return[TernaryExpression(condition=BinaryOperation(operandl=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, ... | Keyword[public] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] identifier[unwrapArrayType] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[type] operator[SEP] {
identifier[Class] operator[<] operator[?] operator[>] identifier[clazz] operator[=] operator[SEP] ... |
public static CreateSubscriptionRequest createSubscription() throws IOException {
String uri = uri("estimates", "create_subscription");
return new CreateSubscriptionRequest(Method.POST, uri);
} | class class_name[name] begin[{]
method[createSubscription, return_type[type[CreateSubscriptionRequest]], modifier[public static], parameter[]] begin[{]
local_variable[type[String], uri]
return[ClassCreator(arguments=[MemberReference(member=POST, postfix_operators=[], prefix_operators=[], qualif... | Keyword[public] Keyword[static] identifier[CreateSubscriptionRequest] identifier[createSubscription] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] identifier[uri] operator[=] identifier[uri] operator[SEP] literal[String] , literal[String] operator[SEP] operator[SEP] Ke... |
@Override
public void format(final LoggingEvent event, final StringBuffer toAppendTo) {
if(event instanceof FoundationLof4jLoggingEvent){
FoundationLof4jLoggingEvent foundationLof4jLoggingEvent = (FoundationLof4jLoggingEvent)event;
Marker marker = foundationLof4jLoggingEvent.getSlf4jMarker();
mar... | class class_name[name] begin[{]
method[format, return_type[void], modifier[public], parameter[event, toAppendTo]] begin[{]
if[binary_operation[member[.event], instanceof, type[FoundationLof4jLoggingEvent]]] begin[{]
local_variable[type[FoundationLof4jLoggingEvent], foundationLof4jLo... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[format] operator[SEP] Keyword[final] identifier[LoggingEvent] identifier[event] , Keyword[final] identifier[StringBuffer] identifier[toAppendTo] operator[SEP] {
Keyword[if] operator[SEP] identifier[event] Keyword[instanceof] identifier[... |
private static int checkTypeArgument(final String signature, int pos) {
// TypeArgument:
// * | ( ( + | - )? FieldTypeSignature )
char c = getChar(signature, pos);
if (c == '*') {
return pos + 1;
} else if (c == '+' || c == '-') {
pos++;
}
... | class class_name[name] begin[{]
method[checkTypeArgument, return_type[type[int]], modifier[private static], parameter[signature, pos]] begin[{]
local_variable[type[char], c]
if[binary_operation[member[.c], ==, literal['*']]] begin[{]
return[binary_operation[member[.pos], +, ... | Keyword[private] Keyword[static] Keyword[int] identifier[checkTypeArgument] operator[SEP] Keyword[final] identifier[String] identifier[signature] , Keyword[int] identifier[pos] operator[SEP] {
Keyword[char] identifier[c] operator[=] identifier[getChar] operator[SEP] identifier[signature] , identifier[pos] oper... |
public String getDebugModeBuildTimeGenerationPath(String path) {
int idx = path.indexOf("?");
String debugModeGeneratorPath = path.substring(0, idx);
debugModeGeneratorPath = debugModeGeneratorPath.replaceAll("\\.", "/");
int jawrGenerationParamIdx = path.indexOf(JawrRequestHandler.GENERATION_PARAM);
String... | class class_name[name] begin[{]
method[getDebugModeBuildTimeGenerationPath, return_type[type[String]], modifier[public], parameter[path]] begin[{]
local_variable[type[int], idx]
local_variable[type[String], debugModeGeneratorPath]
assign[member[.debugModeGeneratorPath], call[deb... | Keyword[public] identifier[String] identifier[getDebugModeBuildTimeGenerationPath] operator[SEP] identifier[String] identifier[path] operator[SEP] {
Keyword[int] identifier[idx] operator[=] identifier[path] operator[SEP] identifier[indexOf] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[Str... |
@Override
public AssociateServiceRoleToAccountResult associateServiceRoleToAccount(AssociateServiceRoleToAccountRequest request) {
request = beforeClientExecution(request);
return executeAssociateServiceRoleToAccount(request);
} | class class_name[name] begin[{]
method[associateServiceRoleToAccount, return_type[type[AssociateServiceRoleToAccountResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeAssociateS... | annotation[@] identifier[Override] Keyword[public] identifier[AssociateServiceRoleToAccountResult] identifier[associateServiceRoleToAccount] operator[SEP] identifier[AssociateServiceRoleToAccountRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operato... |
@CheckReturnValue
@NonNull
@SchedulerSupport(SchedulerSupport.NONE)
public static <T> Observable<T> just(T item) {
ObjectHelper.requireNonNull(item, "item is null");
return RxJavaPlugins.onAssembly(new ObservableJust<T>(item));
} | class class_name[name] begin[{]
method[just, return_type[type[Observable]], modifier[public static], parameter[item]] begin[{]
call[ObjectHelper.requireNonNull, parameter[member[.item], literal["item is null"]]]
return[call[RxJavaPlugins.onAssembly, parameter[ClassCreator(arguments=[Mem... | annotation[@] identifier[CheckReturnValue] annotation[@] identifier[NonNull] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Observable] operator[<] identif... |
static Transliterator getBasicInstance(String id, String canonID) {
StringBuffer s = new StringBuffer();
Transliterator t = registry.get(id, s);
if (s.length() != 0) {
// assert(t==0);
// Instantiate an alias
t = getInstance(s.toString(), FORWARD);
}
... | class class_name[name] begin[{]
method[getBasicInstance, return_type[type[Transliterator]], modifier[static], parameter[id, canonID]] begin[{]
local_variable[type[StringBuffer], s]
local_variable[type[Transliterator], t]
if[binary_operation[call[s.length, parameter[]], !=, liter... | Keyword[static] identifier[Transliterator] identifier[getBasicInstance] operator[SEP] identifier[String] identifier[id] , identifier[String] identifier[canonID] operator[SEP] {
identifier[StringBuffer] identifier[s] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] operator[SEP] operator[SEP] iden... |
@Override
public void searchMCS(boolean bondTypeMatch) {
SingleMapping singleMapping = new SingleMapping();
List<Map<IAtom, IAtom>> mappings = null;
try {
if (this.smartSource == null) {
mappings = singleMapping.getOverLaps(source, target, removeHydrogen);
... | class class_name[name] begin[{]
method[searchMCS, return_type[void], modifier[public], parameter[bondTypeMatch]] begin[{]
local_variable[type[SingleMapping], singleMapping]
local_variable[type[List], mappings]
TryStatement(block=[IfStatement(condition=BinaryOperation(operandl=This(postf... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[searchMCS] operator[SEP] Keyword[boolean] identifier[bondTypeMatch] operator[SEP] {
identifier[SingleMapping] identifier[singleMapping] operator[=] Keyword[new] identifier[SingleMapping] operator[SEP] operator[SEP] operator[SEP] identifi... |
public CompositeCounter wrapCounter(MonitoredCounter templateCounter) {
List<Counter> subCounters = Lists
.<Counter> newArrayList(templateCounter);
subCounters.addAll(getSubCounters(templateCounter.getName(),
templateCounter.getDescription(), templateCounter.getUnit()));
return new CompositeCounter(subCou... | class class_name[name] begin[{]
method[wrapCounter, return_type[type[CompositeCounter]], modifier[public], parameter[templateCounter]] begin[{]
local_variable[type[List], subCounters]
call[subCounters.addAll, parameter[call[.getSubCounters, parameter[call[templateCounter.getName, parame... | Keyword[public] identifier[CompositeCounter] identifier[wrapCounter] operator[SEP] identifier[MonitoredCounter] identifier[templateCounter] operator[SEP] {
identifier[List] operator[<] identifier[Counter] operator[>] identifier[subCounters] operator[=] identifier[Lists] operator[SEP] operator[<] identifier[Count... |
public void restoreAllMockVolume(final Collection<MockVolume> volumes) {
allMockVolumes.clear();
if (null != volumes) {
for (MockVolume instance : volumes) {
allMockVolumes.put(instance.getVolumeId(), instance);
}
}
} | class class_name[name] begin[{]
method[restoreAllMockVolume, return_type[void], modifier[public], parameter[volumes]] begin[{]
call[allMockVolumes.clear, parameter[]]
if[binary_operation[literal[null], !=, member[.volumes]]] begin[{]
ForStatement(body=BlockStatement(... | Keyword[public] Keyword[void] identifier[restoreAllMockVolume] operator[SEP] Keyword[final] identifier[Collection] operator[<] identifier[MockVolume] operator[>] identifier[volumes] operator[SEP] {
identifier[allMockVolumes] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] Keyword[if] op... |
@SuppressWarnings("static-method")
protected boolean isUnpureOperationPrototype(XtendFunction operation) {
if (operation == null
|| operation.isAbstract() || operation.isDispatch() || operation.isNative()
|| operation.getExpression() == null) {
return true;
}
final XtendTypeDeclaration declaringType =... | class class_name[name] begin[{]
method[isUnpureOperationPrototype, return_type[type[boolean]], modifier[protected], parameter[operation]] begin[{]
if[binary_operation[binary_operation[binary_operation[binary_operation[binary_operation[member[.operation], ==, literal[null]], ||, call[operation.i... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] Keyword[boolean] identifier[isUnpureOperationPrototype] operator[SEP] identifier[XtendFunction] identifier[operation] operator[SEP] {
Keyword[if] operator[SEP] identifier[operation] operator[==] Other[null] ... |
public OHLCSeries updateOHLCSeries(
String seriesName,
List<?> newXData,
List<? extends Number> newOpenData,
List<? extends Number> newHighData,
List<? extends Number> newLowData,
List<? extends Number> newCloseData) {
DataType dataType = getDataType(newXData);
switch (dataT... | class class_name[name] begin[{]
method[updateOHLCSeries, return_type[type[OHLCSeries]], modifier[public], parameter[seriesName, newXData, newOpenData, newHighData, newLowData, newCloseData]] begin[{]
local_variable[type[DataType], dataType]
SwitchStatement(cases=[SwitchStatementCase(case=['Date... | Keyword[public] identifier[OHLCSeries] identifier[updateOHLCSeries] operator[SEP] identifier[String] identifier[seriesName] , identifier[List] operator[<] operator[?] operator[>] identifier[newXData] , identifier[List] operator[<] operator[?] Keyword[extends] identifier[Number] operator[>] identifier[newOpenData] , ... |
public static String generateRemoteFilepathForNode(
final INodeEntry node,
final IRundeckProject project,
final IFramework framework,
final String scriptfileName,
final String fileExtension,
final String identity
)
{
return util.gen... | class class_name[name] begin[{]
method[generateRemoteFilepathForNode, return_type[type[String]], modifier[public static], parameter[node, project, framework, scriptfileName, fileExtension, identity]] begin[{]
return[call[util.generateRemoteFilepathForNode, parameter[member[.node], member[.project], mem... | Keyword[public] Keyword[static] identifier[String] identifier[generateRemoteFilepathForNode] operator[SEP] Keyword[final] identifier[INodeEntry] identifier[node] , Keyword[final] identifier[IRundeckProject] identifier[project] , Keyword[final] identifier[IFramework] identifier[framework] , Keyword[final] identifier[... |
@Override
public ObservableList<Item> getPropertySheetItems() {
ObservableList<Item> items = super.getPropertySheetItems();
items.add(new Item() {
@Override
public Optional<ObservableValue<?>> getObservableValue() {
return Optional.of(showNavigationProperty(... | class class_name[name] begin[{]
method[getPropertySheetItems, return_type[type[ObservableList]], modifier[public], parameter[]] begin[{]
local_variable[type[ObservableList], items]
call[items.add, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(eleme... | annotation[@] identifier[Override] Keyword[public] identifier[ObservableList] operator[<] identifier[Item] operator[>] identifier[getPropertySheetItems] operator[SEP] operator[SEP] {
identifier[ObservableList] operator[<] identifier[Item] operator[>] identifier[items] operator[=] Keyword[super] operator[SEP] ide... |
@JSFProperty(tagExcluded = true)
public String getViewId()
{
return (String) getStateHelper().get(PropertyKeys.viewId);
} | class class_name[name] begin[{]
method[getViewId, return_type[type[String]], modifier[public], parameter[]] begin[{]
return[Cast(expression=MethodInvocation(arguments=[], member=getStateHelper, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInvocation(arguments=[MemberReference... | annotation[@] identifier[JSFProperty] operator[SEP] identifier[tagExcluded] operator[=] literal[boolean] operator[SEP] Keyword[public] identifier[String] identifier[getViewId] operator[SEP] operator[SEP] {
Keyword[return] operator[SEP] identifier[String] operator[SEP] identifier[getStateHelper] operator[SEP] ope... |
@Override
public boolean add(@NonNull Disposable disposable) {
ObjectHelper.requireNonNull(disposable, "disposable is null");
if (!disposed) {
synchronized (this) {
if (!disposed) {
OpenHashSet<Disposable> set = resources;
if (set =... | class class_name[name] begin[{]
method[add, return_type[type[boolean]], modifier[public], parameter[disposable]] begin[{]
call[ObjectHelper.requireNonNull, parameter[member[.disposable], literal["disposable is null"]]]
if[member[.disposed]] begin[{]
SYNCH... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[add] operator[SEP] annotation[@] identifier[NonNull] identifier[Disposable] identifier[disposable] operator[SEP] {
identifier[ObjectHelper] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[disposable] , literal[Strin... |
protected Object getCacheManager() {
CacheManager cacheManager = CacheManager.getInstance();
if (cacheManager != null)
return cacheManager;
return CacheManager.newInstance();
} | class class_name[name] begin[{]
method[getCacheManager, return_type[type[Object]], modifier[protected], parameter[]] begin[{]
local_variable[type[CacheManager], cacheManager]
if[binary_operation[member[.cacheManager], !=, literal[null]]] begin[{]
return[member[.cacheManager]]
el... | Keyword[protected] identifier[Object] identifier[getCacheManager] operator[SEP] operator[SEP] {
identifier[CacheManager] identifier[cacheManager] operator[=] identifier[CacheManager] operator[SEP] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[cacheManager]... |
public static void flushPermanentCache(String baseName) {
Set<String> keys = new HashSet<String>(m_permanentCache.keySet());
for (String key : keys) {
if ((key.startsWith(baseName)
&& ((key.length() == baseName.length()) || (key.charAt(baseName.length()) == '_')))) {
... | class class_name[name] begin[{]
method[flushPermanentCache, return_type[void], modifier[public static], parameter[baseName]] begin[{]
local_variable[type[Set], keys]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(argument... | Keyword[public] Keyword[static] Keyword[void] identifier[flushPermanentCache] operator[SEP] identifier[String] identifier[baseName] operator[SEP] {
identifier[Set] operator[<] identifier[String] operator[>] identifier[keys] operator[=] Keyword[new] identifier[HashSet] operator[<] identifier[String] operator[>] o... |
private void obtainSwitchTextOn(@NonNull final TypedArray typedArray) {
setSwitchTextOn(typedArray.getText(R.styleable.SwitchPreference_android_switchTextOn));
} | class class_name[name] begin[{]
method[obtainSwitchTextOn, return_type[void], modifier[private], parameter[typedArray]] begin[{]
call[.setSwitchTextOn, parameter[call[typedArray.getText, parameter[member[R.styleable.SwitchPreference_android_switchTextOn]]]]]
end[}]
END[}] | Keyword[private] Keyword[void] identifier[obtainSwitchTextOn] operator[SEP] annotation[@] identifier[NonNull] Keyword[final] identifier[TypedArray] identifier[typedArray] operator[SEP] {
identifier[setSwitchTextOn] operator[SEP] identifier[typedArray] operator[SEP] identifier[getText] operator[SEP] identifier[R]... |
private void removePendingRequest(ResourceRequestInfo req) {
ResourceRequestInfo removed = idToPendingRequests.remove(req.getId());
if (removed != null) {
if (req.getHosts() != null && req.getHosts().size() > 0) {
Context c = getContext(req.getType());
for (RequestedNode node : req.getRequ... | class class_name[name] begin[{]
method[removePendingRequest, return_type[void], modifier[private], parameter[req]] begin[{]
local_variable[type[ResourceRequestInfo], removed]
if[binary_operation[member[.removed], !=, literal[null]]] begin[{]
if[binary_operation[b... | Keyword[private] Keyword[void] identifier[removePendingRequest] operator[SEP] identifier[ResourceRequestInfo] identifier[req] operator[SEP] {
identifier[ResourceRequestInfo] identifier[removed] operator[=] identifier[idToPendingRequests] operator[SEP] identifier[remove] operator[SEP] identifier[req] operator[SEP... |
public static void addSubPartition(SqlgGraph sqlgGraph, Partition partition) {
AbstractLabel abstractLabel = partition.getAbstractLabel();
addSubPartition(
sqlgGraph,
partition.getParentPartition().getParentPartition() != null,
abstractLabel instanceof Ver... | class class_name[name] begin[{]
method[addSubPartition, return_type[void], modifier[public static], parameter[sqlgGraph, partition]] begin[{]
local_variable[type[AbstractLabel], abstractLabel]
call[.addSubPartition, parameter[member[.sqlgGraph], binary_operation[call[partition.getParent... | Keyword[public] Keyword[static] Keyword[void] identifier[addSubPartition] operator[SEP] identifier[SqlgGraph] identifier[sqlgGraph] , identifier[Partition] identifier[partition] operator[SEP] {
identifier[AbstractLabel] identifier[abstractLabel] operator[=] identifier[partition] operator[SEP] identifier[getAbst... |
public boolean waitForView(View view){
View viewToWaitFor = waitForView(view, Timeout.getLargeTimeout(), true, true);
if(viewToWaitFor != null) {
return true;
}
return false;
} | class class_name[name] begin[{]
method[waitForView, return_type[type[boolean]], modifier[public], parameter[view]] begin[{]
local_variable[type[View], viewToWaitFor]
if[binary_operation[member[.viewToWaitFor], !=, literal[null]]] begin[{]
return[literal[true]]
else b... | Keyword[public] Keyword[boolean] identifier[waitForView] operator[SEP] identifier[View] identifier[view] operator[SEP] {
identifier[View] identifier[viewToWaitFor] operator[=] identifier[waitForView] operator[SEP] identifier[view] , identifier[Timeout] operator[SEP] identifier[getLargeTimeout] operator[SEP] ope... |
public List<TerminalString> getOptionLongNamesWithDash() {
List<ProcessedOption> opts = getOptions();
List<TerminalString> names = new ArrayList<>(opts.size());
for (ProcessedOption o : opts) {
if(o.getValues().size() == 0 &&
o.activator().isActivated(new ParsedCo... | class class_name[name] begin[{]
method[getOptionLongNamesWithDash, return_type[type[List]], modifier[public], parameter[]] begin[{]
local_variable[type[List], opts]
local_variable[type[List], names]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOpe... | Keyword[public] identifier[List] operator[<] identifier[TerminalString] operator[>] identifier[getOptionLongNamesWithDash] operator[SEP] operator[SEP] {
identifier[List] operator[<] identifier[ProcessedOption] operator[>] identifier[opts] operator[=] identifier[getOptions] operator[SEP] operator[SEP] operator[SE... |
public void mergeSortFromTo(int from, int to) {
if (size==0) return;
checkRangeFromTo(from, to, size);
java.util.Arrays.sort(elements, from, to+1);
} | class class_name[name] begin[{]
method[mergeSortFromTo, return_type[void], modifier[public], parameter[from, to]] begin[{]
if[binary_operation[member[.size], ==, literal[0]]] begin[{]
return[None]
else begin[{]
None
end[}]
call[.checkRangeFromTo, parameter[member... | Keyword[public] Keyword[void] identifier[mergeSortFromTo] operator[SEP] Keyword[int] identifier[from] , Keyword[int] identifier[to] operator[SEP] {
Keyword[if] operator[SEP] identifier[size] operator[==] Other[0] operator[SEP] Keyword[return] operator[SEP] identifier[checkRangeFromTo] operator[SEP] identifier[f... |
public void close(boolean immediate)
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "close", ""+immediate);
synchronized(queueMonitor)
{
if (immediate || (totalQueueDepth == 0))
{
state = CLOSED;
closeWaitersMonito... | class class_name[name] begin[{]
method[close, return_type[void], modifier[public], parameter[immediate]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, parameter[THIS[], member... | Keyword[public] Keyword[void] identifier[close] operator[SEP] Keyword[boolean] identifier[immediate] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] ... |
@Override
protected AstNode parseCreateViewStatement( DdlTokenStream tokens,
AstNode parentNode ) throws ParsingException {
assert tokens != null;
assert parentNode != null;
markStartOfStatement(tokens);
// CREATE [OR REPLACE]
... | class class_name[name] begin[{]
method[parseCreateViewStatement, return_type[type[AstNode]], modifier[protected], parameter[tokens, parentNode]] begin[{]
AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=tokens, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]... | annotation[@] identifier[Override] Keyword[protected] identifier[AstNode] identifier[parseCreateViewStatement] operator[SEP] identifier[DdlTokenStream] identifier[tokens] , identifier[AstNode] identifier[parentNode] operator[SEP] Keyword[throws] identifier[ParsingException] {
Keyword[assert] identifier[tokens] ... |
public static void setAllocationModeForContext(String allocationModeForContext) {
if (!allocationModeForContext.equals("heap") && !allocationModeForContext.equals("javacpp")
&& !allocationModeForContext.equals("direct"))
throw new IllegalArgumentException("Allocation mode mus... | class class_name[name] begin[{]
method[setAllocationModeForContext, return_type[void], modifier[public static], parameter[allocationModeForContext]] begin[{]
if[binary_operation[binary_operation[call[allocationModeForContext.equals, parameter[literal["heap"]]], &&, call[allocationModeForContext... | Keyword[public] Keyword[static] Keyword[void] identifier[setAllocationModeForContext] operator[SEP] identifier[String] identifier[allocationModeForContext] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[allocationModeForContext] operator[SEP] identifier[equals] operator[SEP] literal[String] ope... |
public ReadDocumentResponse readDocument(String documentId) {
ReadDocumentRequest request = new ReadDocumentRequest();
request.setDocumentId(documentId);
return this.readDocument(request);
} | class class_name[name] begin[{]
method[readDocument, return_type[type[ReadDocumentResponse]], modifier[public], parameter[documentId]] begin[{]
local_variable[type[ReadDocumentRequest], request]
call[request.setDocumentId, parameter[member[.documentId]]]
return[THIS[call[None.re... | Keyword[public] identifier[ReadDocumentResponse] identifier[readDocument] operator[SEP] identifier[String] identifier[documentId] operator[SEP] {
identifier[ReadDocumentRequest] identifier[request] operator[=] Keyword[new] identifier[ReadDocumentRequest] operator[SEP] operator[SEP] operator[SEP] identifier[reque... |
public EClass getIfcYearNumber() {
if (ifcYearNumberEClass == null) {
ifcYearNumberEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(763);
}
return ifcYearNumberEClass;
} | class class_name[name] begin[{]
method[getIfcYearNumber, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.ifcYearNumberEClass], ==, literal[null]]] begin[{]
assign[member[.ifcYearNumberEClass], Cast(expression=MethodInvocatio... | Keyword[public] identifier[EClass] identifier[getIfcYearNumber] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifcYearNumberEClass] operator[==] Other[null] operator[SEP] {
identifier[ifcYearNumberEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackag... |
@Override
protected <T> T instantiateClass(Class<T> clazz) throws Throwable {
// Get the current BeanManager for this module. If one doesn't exist it is because
// the module isn't CDI enabled and we fall back to the original behavior.
ManagedObject<T> mo = null;
if (releasableFact... | class class_name[name] begin[{]
method[instantiateClass, return_type[type[T]], modifier[protected], parameter[clazz]] begin[{]
local_variable[type[ManagedObject], mo]
if[binary_operation[member[.releasableFactory], !=, literal[null]]] begin[{]
assign[member[.mo],... | annotation[@] identifier[Override] Keyword[protected] operator[<] identifier[T] operator[>] identifier[T] identifier[instantiateClass] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] operator[SEP] Keyword[throws] identifier[Throwable] {
identifier[ManagedObject] operator[<... |
@Override
public void processingInstruction(String target, String data) throws SAXException {
writeText4Links();
write("<?");
write(target);
write(' ');
write(data);
write("?>");
if (elementLevel < 1) {
write('\n');
}
super.processi... | class class_name[name] begin[{]
method[processingInstruction, return_type[void], modifier[public], parameter[target, data]] begin[{]
call[.writeText4Links, parameter[]]
call[.write, parameter[literal["<?"]]]
call[.write, parameter[member[.target]]]
... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[processingInstruction] operator[SEP] identifier[String] identifier[target] , identifier[String] identifier[data] operator[SEP] Keyword[throws] identifier[SAXException] {
identifier[writeText4Links] operator[SEP] operator[SEP] operator[S... |
@GwtIncompatible("Unnecessary")
private Map<String, String> constructRootRelativePathsMap() {
Map<String, String> rootRelativePathsMap = new LinkedHashMap<>();
for (String mapString : config.manifestMaps) {
int colonIndex = mapString.indexOf(':');
checkState(colonIndex > 0);
String execPath ... | class class_name[name] begin[{]
method[constructRootRelativePathsMap, return_type[type[Map]], modifier[private], parameter[]] begin[{]
local_variable[type[Map], rootRelativePathsMap]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[V... | annotation[@] identifier[GwtIncompatible] operator[SEP] literal[String] operator[SEP] Keyword[private] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[constructRootRelativePathsMap] operator[SEP] operator[SEP] {
identifier[Map] operator[<] identifier[String] , identif... |
public static String getSetterName(String propertyName) {
final String suffix = getSuffixForGetterOrSetter(propertyName);
return PROPERTY_SET_PREFIX + suffix;
} | class class_name[name] begin[{]
method[getSetterName, return_type[type[String]], modifier[public static], parameter[propertyName]] begin[{]
local_variable[type[String], suffix]
return[binary_operation[member[.PROPERTY_SET_PREFIX], +, member[.suffix]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[String] identifier[getSetterName] operator[SEP] identifier[String] identifier[propertyName] operator[SEP] {
Keyword[final] identifier[String] identifier[suffix] operator[=] identifier[getSuffixForGetterOrSetter] operator[SEP] identifier[propertyName] operator[SEP] opera... |
public IfcDoorPanelOperationEnum createIfcDoorPanelOperationEnumFromString(EDataType eDataType,
String initialValue) {
IfcDoorPanelOperationEnum result = IfcDoorPanelOperationEnum.get(initialValue);
if (result == null)
throw new IllegalArgumentException(
"The value '" + initialValue + "' is not a va... | class class_name[name] begin[{]
method[createIfcDoorPanelOperationEnumFromString, return_type[type[IfcDoorPanelOperationEnum]], modifier[public], parameter[eDataType, initialValue]] begin[{]
local_variable[type[IfcDoorPanelOperationEnum], result]
if[binary_operation[member[.result], ==,... | Keyword[public] identifier[IfcDoorPanelOperationEnum] identifier[createIfcDoorPanelOperationEnumFromString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[String] identifier[initialValue] operator[SEP] {
identifier[IfcDoorPanelOperationEnum] identifier[result] operator[=] identifier[IfcD... |
public TaskGetOptions withIfModifiedSince(DateTime ifModifiedSince) {
if (ifModifiedSince == null) {
this.ifModifiedSince = null;
} else {
this.ifModifiedSince = new DateTimeRfc1123(ifModifiedSince);
}
return this;
} | class class_name[name] begin[{]
method[withIfModifiedSince, return_type[type[TaskGetOptions]], modifier[public], parameter[ifModifiedSince]] begin[{]
if[binary_operation[member[.ifModifiedSince], ==, literal[null]]] begin[{]
assign[THIS[member[None.ifModifiedSince]], lit... | Keyword[public] identifier[TaskGetOptions] identifier[withIfModifiedSince] operator[SEP] identifier[DateTime] identifier[ifModifiedSince] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifModifiedSince] operator[==] Other[null] operator[SEP] {
Keyword[this] operator[SEP] identifier[ifModifiedSinc... |
@Override
public boolean isServerPrimary(ServerBartender server)
{
for (int i = 0; i < Math.min(1, _owners.length); i++) {
ServerBartender serverBar = server(i);
if (serverBar == null) {
continue;
}
else if (serverBar.isSameServer(server)) {
return true;
}
... | class class_name[name] begin[{]
method[isServerPrimary, return_type[type[boolean]], modifier[public], parameter[server]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[isServerPrimary] operator[SEP] identifier[ServerBartender] identifier[server] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[Math] operator... |
@Programmatic
public ApplicationSettingJdo newLong(
final String key,
final String description,
final Long value) {
return newSetting(key, description, SettingType.LONG, value.toString());
} | class class_name[name] begin[{]
method[newLong, return_type[type[ApplicationSettingJdo]], modifier[public], parameter[key, description, value]] begin[{]
return[call[.newSetting, parameter[member[.key], member[.description], member[SettingType.LONG], call[value.toString, parameter[]]]]]
end[}]
END[}... | annotation[@] identifier[Programmatic] Keyword[public] identifier[ApplicationSettingJdo] identifier[newLong] operator[SEP] Keyword[final] identifier[String] identifier[key] , Keyword[final] identifier[String] identifier[description] , Keyword[final] identifier[Long] identifier[value] operator[SEP] {
Keyword[re... |
private <T> QueryRequest<T> query(String fql, JavaType type) {
this.checkForBatchExecution();
if (this.multiqueryRequest == null) {
this.multiqueryRequest = new MultiqueryRequest(mapper, this.createUnmappedChain());
this.graphRequests.add(this.multiqueryRequest);
}
// There is a circular ref... | class class_name[name] begin[{]
method[query, return_type[type[QueryRequest]], modifier[private], parameter[fql, type]] begin[{]
THIS[call[None.checkForBatchExecution, parameter[]]]
if[binary_operation[THIS[member[None.multiqueryRequest]], ==, literal[null]]] begin[{]
... | Keyword[private] operator[<] identifier[T] operator[>] identifier[QueryRequest] operator[<] identifier[T] operator[>] identifier[query] operator[SEP] identifier[String] identifier[fql] , identifier[JavaType] identifier[type] operator[SEP] {
Keyword[this] operator[SEP] identifier[checkForBatchExecution] operator... |
@Override
public boolean nextKeyValue() throws IOException, InterruptedException {
if (!hasMore) {
key = null;
value = null;
return false;
}
firstValue = !nextKeyIsSame;
DataInputBuffer next = input.getKey();
currentRawKey.set(next.getData(), next.getPosition(),
... | class class_name[name] begin[{]
method[nextKeyValue, return_type[type[boolean]], modifier[public], parameter[]] begin[{]
if[member[.hasMore]] begin[{]
assign[member[.key], literal[null]]
assign[member[.value], literal[null]]
return[lit... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[nextKeyValue] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] , identifier[InterruptedException] {
Keyword[if] operator[SEP] operator[!] identifier[hasMore] operator[SEP] {
identifier[key] operator[=] O... |
private void addJavaFXProperty(SourceUnit source, AnnotationNode node, ClassNode declaringClass, FieldNode field) {
String fieldName = field.getName();
for (PropertyNode propertyNode : declaringClass.getProperties()) {
if (propertyNode.getName().equals(fieldName)) {
if (field... | class class_name[name] begin[{]
method[addJavaFXProperty, return_type[void], modifier[private], parameter[source, node, declaringClass, field]] begin[{]
local_variable[type[String], fieldName]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(argume... | Keyword[private] Keyword[void] identifier[addJavaFXProperty] operator[SEP] identifier[SourceUnit] identifier[source] , identifier[AnnotationNode] identifier[node] , identifier[ClassNode] identifier[declaringClass] , identifier[FieldNode] identifier[field] operator[SEP] {
identifier[String] identifier[fieldNam... |
private void findUsesComponentAnnotations(Component component, String typeName) {
try {
Class type = getTypeRepository().loadClass(typeName);
for (Field field : type.getDeclaredFields()) {
UsesComponent annotation = field.getAnnotation(UsesComponent.class);
... | class class_name[name] begin[{]
method[findUsesComponentAnnotations, return_type[void], modifier[private], parameter[component, typeName]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[], memb... | Keyword[private] Keyword[void] identifier[findUsesComponentAnnotations] operator[SEP] identifier[Component] identifier[component] , identifier[String] identifier[typeName] operator[SEP] {
Keyword[try] {
identifier[Class] identifier[type] operator[=] identifier[getTypeRepository] operator[SEP] operato... |
public void mkdir() throws SmbException {
String path = getUncPath0();
if( path.length() == 1 ) {
throw new SmbException( "Invalid operation for workgroups, servers, or shares" );
}
/*
* Create Directory Request / Response
*/
if( log.level >= 3 )
... | class class_name[name] begin[{]
method[mkdir, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[String], path]
if[binary_operation[call[path.length, parameter[]], ==, literal[1]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal... | Keyword[public] Keyword[void] identifier[mkdir] operator[SEP] operator[SEP] Keyword[throws] identifier[SmbException] {
identifier[String] identifier[path] operator[=] identifier[getUncPath0] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[path] operator[SEP] identifier[length] oper... |
public static boolean verifySignature(EnumMap<FacebookParam, CharSequence> params, String secret) {
if (null == params || params.isEmpty() )
return false;
CharSequence sigParam = params.remove(FacebookParam.SIGNATURE);
return (null == sigParam) ? false : verifySignature(params, secret, sigParam.toStri... | class class_name[name] begin[{]
method[verifySignature, return_type[type[boolean]], modifier[public static], parameter[params, secret]] begin[{]
if[binary_operation[binary_operation[literal[null], ==, member[.params]], ||, call[params.isEmpty, parameter[]]]] begin[{]
return[literal[false]]
... | Keyword[public] Keyword[static] Keyword[boolean] identifier[verifySignature] operator[SEP] identifier[EnumMap] operator[<] identifier[FacebookParam] , identifier[CharSequence] operator[>] identifier[params] , identifier[String] identifier[secret] operator[SEP] {
Keyword[if] operator[SEP] Other[null] operator[=... |
HystrixMetricsPublisherThreadPool getPublisherForThreadPool(HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolMetrics metrics, HystrixThreadPoolProperties properties) {
// attempt to retrieve from cache first
HystrixMetricsPublisherThreadPool publisher = threadPoolPublishers.get(threadPoolKey.name())... | class class_name[name] begin[{]
method[getPublisherForThreadPool, return_type[type[HystrixMetricsPublisherThreadPool]], modifier[default], parameter[threadPoolKey, metrics, properties]] begin[{]
local_variable[type[HystrixMetricsPublisherThreadPool], publisher]
if[binary_operation[membe... | identifier[HystrixMetricsPublisherThreadPool] identifier[getPublisherForThreadPool] operator[SEP] identifier[HystrixThreadPoolKey] identifier[threadPoolKey] , identifier[HystrixThreadPoolMetrics] identifier[metrics] , identifier[HystrixThreadPoolProperties] identifier[properties] operator[SEP] {
identifier[Hys... |
public void setStartYear(int year) {
if (isFrozen()) {
throw new UnsupportedOperationException("Attempt to modify a frozen SimpleTimeZone instance.");
}
getSTZInfo().sy = year;
this.startYear = year;
transitionRulesInitialized = false;
} | class class_name[name] begin[{]
method[setStartYear, return_type[void], modifier[public], parameter[year]] begin[{]
if[call[.isFrozen, parameter[]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selector... | Keyword[public] Keyword[void] identifier[setStartYear] operator[SEP] Keyword[int] identifier[year] operator[SEP] {
Keyword[if] operator[SEP] identifier[isFrozen] operator[SEP] operator[SEP] operator[SEP] {
Keyword[throw] Keyword[new] identifier[UnsupportedOperationException] operator[SEP] literal[Stri... |
public void marshall(ReservationPurchaseRecommendationDetail reservationPurchaseRecommendationDetail, ProtocolMarshaller protocolMarshaller) {
if (reservationPurchaseRecommendationDetail == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[reservationPurchaseRecommendationDetail, protocolMarshaller]] begin[{]
if[binary_operation[member[.reservationPurchaseRecommendationDetail], ==, literal[null]]] begin[{]
ThrowStatement(ex... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ReservationPurchaseRecommendationDetail] identifier[reservationPurchaseRecommendationDetail] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[reservationPurchaseRecomme... |
public void visitEnd() {
String classname = workbench.getType().getClassName();
component.addAttribute(new Attribute("classname", classname));
// Generates the provides attribute.
component.addElement(ElementHelper.getProvidesElement(specifications));
if (workbench.getRoot() =... | class class_name[name] begin[{]
method[visitEnd, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[String], classname]
call[component.addAttribute, parameter[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors... | Keyword[public] Keyword[void] identifier[visitEnd] operator[SEP] operator[SEP] {
identifier[String] identifier[classname] operator[=] identifier[workbench] operator[SEP] identifier[getType] operator[SEP] operator[SEP] operator[SEP] identifier[getClassName] operator[SEP] operator[SEP] operator[SEP] identifier[com... |
public void addCoordinate(Coordinate coordinate) {
Coordinate[] newCoords = new Coordinate[coordinates.length + 1];
System.arraycopy(coordinates, 0, newCoords, 0, coordinates.length);
newCoords[coordinates.length] = coordinate;
setCoordinates(newCoords);
} | class class_name[name] begin[{]
method[addCoordinate, return_type[void], modifier[public], parameter[coordinate]] begin[{]
local_variable[type[Coordinate], newCoords]
call[System.arraycopy, parameter[member[.coordinates], literal[0], member[.newCoords], literal[0], member[coordinates.le... | Keyword[public] Keyword[void] identifier[addCoordinate] operator[SEP] identifier[Coordinate] identifier[coordinate] operator[SEP] {
identifier[Coordinate] operator[SEP] operator[SEP] identifier[newCoords] operator[=] Keyword[new] identifier[Coordinate] operator[SEP] identifier[coordinates] operator[SEP] identifi... |
private void skipObject() {
int bracketCount = 1;
boolean insideString = false;
while (ndx < total) {
final char c = input[ndx];
if (insideString) {
if (c == '\"' && notPrecededByEvenNumberOfBackslashes()) {
insideString = false;
}
} else if (c == '\"') {
insideString = true;
} else... | class class_name[name] begin[{]
method[skipObject, return_type[void], modifier[private], parameter[]] begin[{]
local_variable[type[int], bracketCount]
local_variable[type[boolean], insideString]
while[binary_operation[member[.ndx], <, member[.total]]] begin[{]
local_... | Keyword[private] Keyword[void] identifier[skipObject] operator[SEP] operator[SEP] {
Keyword[int] identifier[bracketCount] operator[=] Other[1] operator[SEP] Keyword[boolean] identifier[insideString] operator[=] literal[boolean] operator[SEP] Keyword[while] operator[SEP] identifier[ndx] operator[<] identifier[tot... |
private void boundaryAreaExteriorArea_(int half_edge, int id_a, int id_b,
int predicate) {
if (m_matrix[predicate] == 1)
return;
int faceParentage = m_topo_graph.getHalfEdgeFaceParentage(half_edge);
int twinFaceParentage = m_topo_graph
.getHalfEdgeFaceParentage(m_topo_graph
.getHalfEdgeTwin(half_... | class class_name[name] begin[{]
method[boundaryAreaExteriorArea_, return_type[void], modifier[private], parameter[half_edge, id_a, id_b, predicate]] begin[{]
if[binary_operation[member[.m_matrix], ==, literal[1]]] begin[{]
return[None]
else begin[{]
None
end[}]
local_var... | Keyword[private] Keyword[void] identifier[boundaryAreaExteriorArea_] operator[SEP] Keyword[int] identifier[half_edge] , Keyword[int] identifier[id_a] , Keyword[int] identifier[id_b] , Keyword[int] identifier[predicate] operator[SEP] {
Keyword[if] operator[SEP] identifier[m_matrix] operator[SEP] identifier[pre... |
private void addHours(MpxjTreeNode parentNode, ProjectCalendarDateRanges hours)
{
for (DateRange range : hours)
{
final DateRange r = range;
MpxjTreeNode rangeNode = new MpxjTreeNode(range)
{
@Override public String toString()
{
return m_t... | class class_name[name] begin[{]
method[addHours, return_type[void], modifier[private], parameter[parentNode, hours]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MemberReference(memb... | Keyword[private] Keyword[void] identifier[addHours] operator[SEP] identifier[MpxjTreeNode] identifier[parentNode] , identifier[ProjectCalendarDateRanges] identifier[hours] operator[SEP] {
Keyword[for] operator[SEP] identifier[DateRange] identifier[range] operator[:] identifier[hours] operator[SEP] {
... |
public Object visit(ASTNotBond node, Object data) {
return node.jjtGetChild(0).jjtAccept(this, data);
} | class class_name[name] begin[{]
method[visit, return_type[type[Object]], modifier[public], parameter[node, data]] begin[{]
return[call[node.jjtGetChild, parameter[literal[0]]]]
end[}]
END[}] | Keyword[public] identifier[Object] identifier[visit] operator[SEP] identifier[ASTNotBond] identifier[node] , identifier[Object] identifier[data] operator[SEP] {
Keyword[return] identifier[node] operator[SEP] identifier[jjtGetChild] operator[SEP] Other[0] operator[SEP] operator[SEP] identifier[jjtAccept] operato... |
public void setEditTextShouldWrapContent(boolean enabled) {
mEditTextShouldWrapContent = enabled;
if (mMentionsEditText == null) {
return;
}
mPrevEditTextParams = mMentionsEditText.getLayoutParams();
int wrap = (enabled) ? LayoutParams.WRAP_CONTENT : LayoutParams.MATC... | class class_name[name] begin[{]
method[setEditTextShouldWrapContent, return_type[void], modifier[public], parameter[enabled]] begin[{]
assign[member[.mEditTextShouldWrapContent], member[.enabled]]
if[binary_operation[member[.mMentionsEditText], ==, literal[null]]] begin[{]
... | Keyword[public] Keyword[void] identifier[setEditTextShouldWrapContent] operator[SEP] Keyword[boolean] identifier[enabled] operator[SEP] {
identifier[mEditTextShouldWrapContent] operator[=] identifier[enabled] operator[SEP] Keyword[if] operator[SEP] identifier[mMentionsEditText] operator[==] Other[null] operator[... |
@SuppressWarnings("unchecked")
private void registerValueMethod(Class type, Method method) {
executor.register(type, wrapValueMethod(method));
} | class class_name[name] begin[{]
method[registerValueMethod, return_type[void], modifier[private], parameter[type, method]] begin[{]
call[executor.register, parameter[member[.type], call[.wrapValueMethod, parameter[member[.method]]]]]
end[}]
END[}] | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[void] identifier[registerValueMethod] operator[SEP] identifier[Class] identifier[type] , identifier[Method] identifier[method] operator[SEP] {
identifier[executor] operator[SEP] identifier[register] o... |
private void changeNodeACL(NodeImpl node, HierarchicalProperty requestBody) throws AccessControlException,
RepositoryException
{
Map<String, String[]> permissionsToGrant = new HashMap<String, String[]>();
Map<String, String[]> permissionsToDeny = new HashMap<String, String[]>();
for (Hierarc... | class class_name[name] begin[{]
method[changeNodeACL, return_type[void], modifier[private], parameter[node, requestBody]] begin[{]
local_variable[type[Map], permissionsToGrant]
local_variable[type[Map], permissionsToDeny]
ForStatement(body=BlockStatement(label=None, statements=[LocalVar... | Keyword[private] Keyword[void] identifier[changeNodeACL] operator[SEP] identifier[NodeImpl] identifier[node] , identifier[HierarchicalProperty] identifier[requestBody] operator[SEP] Keyword[throws] identifier[AccessControlException] , identifier[RepositoryException] {
identifier[Map] operator[<] identifier[Str... |
protected void
recordSeq(Variable cdm, DapSequence dap)
{
cdm = CDMUtil.unwrap(cdm);
assert this.vlenmap.get(cdm) == null && this.vlenmap.get(dap) == null;
vlenmap.put(cdm, dap);
} | class class_name[name] begin[{]
method[recordSeq, return_type[void], modifier[protected], parameter[cdm, dap]] begin[{]
assign[member[.cdm], call[CDMUtil.unwrap, parameter[member[.cdm]]]]
AssertStatement(condition=BinaryOperation(operandl=BinaryOperation(operandl=This(postfix_operators=... | Keyword[protected] Keyword[void] identifier[recordSeq] operator[SEP] identifier[Variable] identifier[cdm] , identifier[DapSequence] identifier[dap] operator[SEP] {
identifier[cdm] operator[=] identifier[CDMUtil] operator[SEP] identifier[unwrap] operator[SEP] identifier[cdm] operator[SEP] operator[SEP] Keyword[a... |
public static final Date getTime(byte[] data, int offset)
{
int time = getShort(data, offset) / 10;
Calendar cal = DateHelper.popCalendar(EPOCH_DATE);
cal.set(Calendar.HOUR_OF_DAY, (time / 60));
cal.set(Calendar.MINUTE, (time % 60));
cal.set(Calendar.SECOND, 0);
cal.set(Calendar.M... | class class_name[name] begin[{]
method[getTime, return_type[type[Date]], modifier[final public static], parameter[data, offset]] begin[{]
local_variable[type[int], time]
local_variable[type[Calendar], cal]
call[cal.set, parameter[member[Calendar.HOUR_OF_DAY], binary_operation[me... | Keyword[public] Keyword[static] Keyword[final] identifier[Date] identifier[getTime] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[data] , Keyword[int] identifier[offset] operator[SEP] {
Keyword[int] identifier[time] operator[=] identifier[getShort] operator[SEP] identifier[data] , identifi... |
public static KerasLayer getKerasLayerFromConfig(Map<String, Object> layerConfig,
KerasLayerConfiguration conf,
Map<String, Class<? extends KerasLayer>> customLayers,
... | class class_name[name] begin[{]
method[getKerasLayerFromConfig, return_type[type[KerasLayer]], modifier[public static], parameter[layerConfig, conf, customLayers, lambdaLayers, previousLayers]] begin[{]
return[call[.getKerasLayerFromConfig, parameter[member[.layerConfig], literal[false], member[.conf],... | Keyword[public] Keyword[static] identifier[KerasLayer] identifier[getKerasLayerFromConfig] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[layerConfig] , identifier[KerasLayerConfiguration] identifier[conf] , identifier[Map] operator[<] identifier[String] , i... |
public static <T extends Geometry> GeometryExpression<T> asGeometry(Expression<T> expr) {
Expression<T> underlyingMixin = ExpressionUtils.extract(expr);
if (underlyingMixin instanceof PathImpl) {
return new GeometryPath<T>((PathImpl<T>) underlyingMixin);
} else if (underlyingMixin in... | class class_name[name] begin[{]
method[asGeometry, return_type[type[GeometryExpression]], modifier[public static], parameter[expr]] begin[{]
local_variable[type[Expression], underlyingMixin]
if[binary_operation[member[.underlyingMixin], instanceof, type[PathImpl]]] begin[{]
... | Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[Geometry] operator[>] identifier[GeometryExpression] operator[<] identifier[T] operator[>] identifier[asGeometry] operator[SEP] identifier[Expression] operator[<] identifier[T] operator[>] identifier[expr] operator[SEP] {
ident... |
public ServiceFuture<ImageTagCreateSummary> createImageTagsAsync(UUID projectId, CreateImageTagsOptionalParameter createImageTagsOptionalParameter, final ServiceCallback<ImageTagCreateSummary> serviceCallback) {
return ServiceFuture.fromResponse(createImageTagsWithServiceResponseAsync(projectId, createImageTags... | class class_name[name] begin[{]
method[createImageTagsAsync, return_type[type[ServiceFuture]], modifier[public], parameter[projectId, createImageTagsOptionalParameter, serviceCallback]] begin[{]
return[call[ServiceFuture.fromResponse, parameter[call[.createImageTagsWithServiceResponseAsync, parameter[m... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[ImageTagCreateSummary] operator[>] identifier[createImageTagsAsync] operator[SEP] identifier[UUID] identifier[projectId] , identifier[CreateImageTagsOptionalParameter] identifier[createImageTagsOptionalParameter] , Keyword[final] identifier[ServiceCallb... |
public String format(final LoggingEvent event) {
final StringBuffer buf = new StringBuffer();
for (PatternConverter c = head; c != null; c = c.next) {
c.format(buf, event);
}
return buf.toString();
} | class class_name[name] begin[{]
method[format, return_type[type[String]], modifier[public], parameter[event]] begin[{]
local_variable[type[StringBuffer], buf]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(memb... | Keyword[public] identifier[String] identifier[format] operator[SEP] Keyword[final] identifier[LoggingEvent] identifier[event] operator[SEP] {
Keyword[final] identifier[StringBuffer] identifier[buf] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[S... |
private void registerProblem(GitHubRepositoryName repo, String message) {
if (repo == null) {
return;
}
if (!ignored.contains(repo)) {
problems.put(repo, defaultIfBlank(message, Messages.unknown_error()));
} else {
LOGGER.debug("Repo {} is ignored by m... | class class_name[name] begin[{]
method[registerProblem, return_type[void], modifier[private], parameter[repo, message]] begin[{]
if[binary_operation[member[.repo], ==, literal[null]]] begin[{]
return[None]
else begin[{]
None
end[}]
if[call[ignored.con... | Keyword[private] Keyword[void] identifier[registerProblem] operator[SEP] identifier[GitHubRepositoryName] identifier[repo] , identifier[String] identifier[message] operator[SEP] {
Keyword[if] operator[SEP] identifier[repo] operator[==] Other[null] operator[SEP] {
Keyword[return] operator[SEP]
... |
public void marshall(CreateGeoMatchSetRequest createGeoMatchSetRequest, ProtocolMarshaller protocolMarshaller) {
if (createGeoMatchSetRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(createG... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[createGeoMatchSetRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.createGeoMatchSetRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(argument... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[CreateGeoMatchSetRequest] identifier[createGeoMatchSetRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[createGeoMatchSetRequest] operator[==] Other[null] opera... |
public static void valueToFieldOffest(byte[] buffer, int offset, int length,
long l) {
long divisor;
for (int i = 0; i < length; i++) {
divisor = (long) Math.pow(256.0, (double) (length - 1 - i));
buffer[offset + i] = (byte) (l / divisor);
l = l % divisor;
}
} | class class_name[name] begin[{]
method[valueToFieldOffest, return_type[void], modifier[public static], parameter[buffer, offset, length, l]] begin[{]
local_variable[type[long], divisor]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expression... | Keyword[public] Keyword[static] Keyword[void] identifier[valueToFieldOffest] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[buffer] , Keyword[int] identifier[offset] , Keyword[int] identifier[length] , Keyword[long] identifier[l] operator[SEP] {
Keyword[long] identifier[divisor] operator[S... |
public void setOption(String optName, String optValue) {
if (optValue == null) {
m_optionMap.remove(optName);
} else {
m_optionMap.put(optName, optValue.trim());
}
} | class class_name[name] begin[{]
method[setOption, return_type[void], modifier[public], parameter[optName, optValue]] begin[{]
if[binary_operation[member[.optValue], ==, literal[null]]] begin[{]
call[m_optionMap.remove, parameter[member[.optName]]]
else begin[{]
... | Keyword[public] Keyword[void] identifier[setOption] operator[SEP] identifier[String] identifier[optName] , identifier[String] identifier[optValue] operator[SEP] {
Keyword[if] operator[SEP] identifier[optValue] operator[==] Other[null] operator[SEP] {
identifier[m_optionMap] operator[SEP] identifier[r... |
private static Map<Locale, String> getAllPageDocs(IAnnotationBinding[] annotations) {
// all @PageDoc or @Page annotations including annotations contained in @PageDocs or @Page
List<IAnnotationBinding> allPageAnnotations = new ArrayList<>(2);
List<Class<?>> singlePageAnnotationClasses = new Arr... | class class_name[name] begin[{]
method[getAllPageDocs, return_type[type[Map]], modifier[private static], parameter[annotations]] begin[{]
local_variable[type[List], allPageAnnotations]
local_variable[type[List], singlePageAnnotationClasses]
call[singlePageAnnotationClasses.add, ... | Keyword[private] Keyword[static] identifier[Map] operator[<] identifier[Locale] , identifier[String] operator[>] identifier[getAllPageDocs] operator[SEP] identifier[IAnnotationBinding] operator[SEP] operator[SEP] identifier[annotations] operator[SEP] {
identifier[List] operator[<] identifier[IAnnotationBinding]... |
private void checkProducerPromise(String jmsMethod, String ffdcProbeID) throws JMSException {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "checkProducerPromise", new Object[] { jmsMethod, ffdcProbeID });
// Only proceed if the producer hasn't promi... | class class_name[name] begin[{]
method[checkProducerPromise, return_type[void], modifier[private], parameter[jmsMethod, ffdcProbeID]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.en... | Keyword[private] Keyword[void] identifier[checkProducerPromise] operator[SEP] identifier[String] identifier[jmsMethod] , identifier[String] identifier[ffdcProbeID] operator[SEP] Keyword[throws] identifier[JMSException] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingE... |
public static Navigate from(@NonNull Fragment fragment) {
return new Navigate(null, null, fragment, null);
} | class class_name[name] begin[{]
method[from, return_type[type[Navigate]], modifier[public static], parameter[fragment]] begin[{]
return[ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=null), Literal(postfix_operators=[], prefix_operators=[]... | Keyword[public] Keyword[static] identifier[Navigate] identifier[from] operator[SEP] annotation[@] identifier[NonNull] identifier[Fragment] identifier[fragment] operator[SEP] {
Keyword[return] Keyword[new] identifier[Navigate] operator[SEP] Other[null] , Other[null] , identifier[fragment] , Other[null] operato... |
public static <E> Iterator<Optional<E>> roundrobinLongest(Iterator<E>... iterators) {
final Iterator<Iterator<E>> iterator = ArrayIterator.of(iterators);
return new RoundrobinLongestIterator<E>(iterator);
} | class class_name[name] begin[{]
method[roundrobinLongest, return_type[type[Iterator]], modifier[public static], parameter[iterators]] begin[{]
local_variable[type[Iterator], iterator]
return[ClassCreator(arguments=[MemberReference(member=iterator, postfix_operators=[], prefix_operators=[], qual... | Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[Iterator] operator[<] identifier[Optional] operator[<] identifier[E] operator[>] operator[>] identifier[roundrobinLongest] operator[SEP] identifier[Iterator] operator[<] identifier[E] operator[>] operator[...] identifier[iterators] operato... |
private void visit_OP_SET_QUOTA() throws IOException {
visitTxId();
v.visitStringUTF8( EditsElement.PATH);
v.visitLong( EditsElement.NS_QUOTA);
v.visitLong( EditsElement.DS_QUOTA);
} | class class_name[name] begin[{]
method[visit_OP_SET_QUOTA, return_type[void], modifier[private], parameter[]] begin[{]
call[.visitTxId, parameter[]]
call[v.visitStringUTF8, parameter[member[EditsElement.PATH]]]
call[v.visitLong, parameter[member[EditsElement.NS_Q... | Keyword[private] Keyword[void] identifier[visit_OP_SET_QUOTA] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[visitTxId] operator[SEP] operator[SEP] operator[SEP] identifier[v] operator[SEP] identifier[visitStringUTF8] operator[SEP] identifier[EditsElement] operator[SEP] identifi... |
public void rotate(double angle)
{
final double x2 = x + width;
final double y2 = y;
final double x3 = x2;
final double y3 = y + height;
final double x4 = x;
final double y4 = y3;
final double cx = x + width / 2.0;
final double cy = y + ... | class class_name[name] begin[{]
method[rotate, return_type[void], modifier[public], parameter[angle]] begin[{]
local_variable[type[double], x2]
local_variable[type[double], y2]
local_variable[type[double], x3]
local_variable[type[double], y3]
local_variable[type[double],... | Keyword[public] Keyword[void] identifier[rotate] operator[SEP] Keyword[double] identifier[angle] operator[SEP] {
Keyword[final] Keyword[double] identifier[x2] operator[=] identifier[x] operator[+] identifier[width] operator[SEP] Keyword[final] Keyword[double] identifier[y2] operator[=] identifier[y] operator[SEP... |
public void characters(
StylesheetHandler handler, char ch[], int start, int length)
throws org.xml.sax.SAXException
{
m_accumulator.append(ch, start, length);
if(null == m_firstBackPointer)
m_firstBackPointer = handler.getOriginatingNode();
// Catch all events until a n... | class class_name[name] begin[{]
method[characters, return_type[void], modifier[public], parameter[handler, ch, start, length]] begin[{]
call[m_accumulator.append, parameter[member[.ch], member[.start], member[.length]]]
if[binary_operation[literal[null], ==, member[.m_firstBackP... | Keyword[public] Keyword[void] identifier[characters] operator[SEP] identifier[StylesheetHandler] identifier[handler] , Keyword[char] identifier[ch] operator[SEP] operator[SEP] , Keyword[int] identifier[start] , Keyword[int] identifier[length] operator[SEP] Keyword[throws] identifier[org] operator[SEP] identifier[xml... |
public static void putAppConfig(String appName, FaultToleranceConfig value) {
if (appName == null) {
if (LOGGER.isWarnEnabled()) {
LOGGER.warn("App name is null when put fault-tolerance config");
}
return;
}
if (value != null) {
APP... | class class_name[name] begin[{]
method[putAppConfig, return_type[void], modifier[public static], parameter[appName, value]] begin[{]
if[binary_operation[member[.appName], ==, literal[null]]] begin[{]
if[call[LOGGER.isWarnEnabled, parameter[]]] begin[{]
... | Keyword[public] Keyword[static] Keyword[void] identifier[putAppConfig] operator[SEP] identifier[String] identifier[appName] , identifier[FaultToleranceConfig] identifier[value] operator[SEP] {
Keyword[if] operator[SEP] identifier[appName] operator[==] Other[null] operator[SEP] {
Keyword[if] operator[... |
public double sign( Point3D_F64 P ) {
GeometryMath_F64.cross(E1,E0,N);
// dot product of
double d = N.x*(P.x-B.x) + N.y*(P.y-B.y) + N.z*(P.z-B.z);
return Math.signum(d);
} | class class_name[name] begin[{]
method[sign, return_type[type[double]], modifier[public], parameter[P]] begin[{]
call[GeometryMath_F64.cross, parameter[member[.E1], member[.E0], member[.N]]]
local_variable[type[double], d]
return[call[Math.signum, parameter[member[.d]]]]
end... | Keyword[public] Keyword[double] identifier[sign] operator[SEP] identifier[Point3D_F64] identifier[P] operator[SEP] {
identifier[GeometryMath_F64] operator[SEP] identifier[cross] operator[SEP] identifier[E1] , identifier[E0] , identifier[N] operator[SEP] operator[SEP] Keyword[double] identifier[d] operator[=] i... |
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.NONE)
public final <E extends SingleObserver<? super T>> E subscribeWith(E observer) {
subscribe(observer);
return observer;
} | class class_name[name] begin[{]
method[subscribeWith, return_type[type[E]], modifier[final public], parameter[observer]] begin[{]
call[.subscribe, parameter[member[.observer]]]
return[member[.observer]]
end[}]
END[}] | annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[public] Keyword[final] operator[<] identifier[E] Keyword[extends] identifier[SingleObserver] operator[<] operator[?] Keyword[super] identi... |
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case AfplibPackage.GSCC__CELLWI:
setCELLWI((Integer)newValue);
return;
case AfplibPackage.GSCC__CELLHI:
setCELLHI((Integer)newValue);
return;
case AfplibPackage.GSCC__CELLWFR:
setCELLWFR((Integer)newValue);... | class class_name[name] begin[{]
method[eSet, return_type[void], modifier[public], parameter[featureID, newValue]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=GSCC__CELLWI, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selectors=[])], statements... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[eSet] operator[SEP] Keyword[int] identifier[featureID] , identifier[Object] identifier[newValue] operator[SEP] {
Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] {
Keyword[case] identifier[AfplibPackage] oper... |
private void ensureConversion(FieldDescriptorDef fieldDef, String checkLevel) throws ConstraintException
{
if (CHECKLEVEL_NONE.equals(checkLevel))
{
return;
}
// we issue a warning if we encounter a field with a java.util.Date java type without a conversion
... | class class_name[name] begin[{]
method[ensureConversion, return_type[void], modifier[private], parameter[fieldDef, checkLevel]] begin[{]
if[call[CHECKLEVEL_NONE.equals, parameter[member[.checkLevel]]]] begin[{]
return[None]
else begin[{]
None
end[}]
i... | Keyword[private] Keyword[void] identifier[ensureConversion] operator[SEP] identifier[FieldDescriptorDef] identifier[fieldDef] , identifier[String] identifier[checkLevel] operator[SEP] Keyword[throws] identifier[ConstraintException] {
Keyword[if] operator[SEP] identifier[CHECKLEVEL_NONE] operator[SEP] identifier... |
public static Type[] getImplicitLowerBounds(final WildcardType wildcardType) {
Validate.notNull(wildcardType, "wildcardType is null");
final Type[] bounds = wildcardType.getLowerBounds();
return bounds.length == 0 ? new Type[] { null } : bounds;
} | class class_name[name] begin[{]
method[getImplicitLowerBounds, return_type[type[Type]], modifier[public static], parameter[wildcardType]] begin[{]
call[Validate.notNull, parameter[member[.wildcardType], literal["wildcardType is null"]]]
local_variable[type[Type], bounds]
return[... | Keyword[public] Keyword[static] identifier[Type] operator[SEP] operator[SEP] identifier[getImplicitLowerBounds] operator[SEP] Keyword[final] identifier[WildcardType] identifier[wildcardType] operator[SEP] {
identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[wildcardType] , literal[S... |
public static ResourceRecordSet<NAPTRData> naptr(String name, String naptrdata) {
return new NAPTRBuilder().name(name).add(naptrdata).build();
} | class class_name[name] begin[{]
method[naptr, return_type[type[ResourceRecordSet]], modifier[public static], parameter[name, naptrdata]] begin[{]
return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MethodInv... | Keyword[public] Keyword[static] identifier[ResourceRecordSet] operator[<] identifier[NAPTRData] operator[>] identifier[naptr] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[naptrdata] operator[SEP] {
Keyword[return] Keyword[new] identifier[NAPTRBuilder] operator[SEP] operator[... |
@Override
public boolean continueOnDataCollectionMessages(DataCollectionMessages messages, com.itextpdf.text.Document document) throws VectorPrintException {
if (!messages.getMessages(DataCollectionMessages.Level.ERROR).isEmpty()) {
try {
createAndAddElement(messages.getMessages(DataCollec... | class class_name[name] begin[{]
method[continueOnDataCollectionMessages, return_type[type[boolean]], modifier[public], parameter[messages, document]] begin[{]
if[call[messages.getMessages, parameter[member[DataCollectionMessages.Level.ERROR]]]] begin[{]
TryStatement(block=[Statement... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[continueOnDataCollectionMessages] operator[SEP] identifier[DataCollectionMessages] identifier[messages] , identifier[com] operator[SEP] identifier[itextpdf] operator[SEP] identifier[text] operator[SEP] identifier[Document] identifier[docume... |
public String getServicePid()
{
String servicePid = context.getProperty(BundleConstants.SERVICE_PID);
if (servicePid != null)
return servicePid;
servicePid = this.getServiceClassName();
if (servicePid == null)
servicePid = this.getClass().getName();
re... | class class_name[name] begin[{]
method[getServicePid, return_type[type[String]], modifier[public], parameter[]] begin[{]
local_variable[type[String], servicePid]
if[binary_operation[member[.servicePid], !=, literal[null]]] begin[{]
return[member[.servicePid]]
else begin[{]
None
... | Keyword[public] identifier[String] identifier[getServicePid] operator[SEP] operator[SEP] {
identifier[String] identifier[servicePid] operator[=] identifier[context] operator[SEP] identifier[getProperty] operator[SEP] identifier[BundleConstants] operator[SEP] identifier[SERVICE_PID] operator[SEP] operator[SEP] Ke... |
public LocalDate withYear(int year) {
if (this.year == year) {
return this;
}
YEAR.checkValidValue(year);
return resolvePreviousValid(year, month, day);
} | class class_name[name] begin[{]
method[withYear, return_type[type[LocalDate]], modifier[public], parameter[year]] begin[{]
if[binary_operation[THIS[member[None.year]], ==, member[.year]]] begin[{]
return[THIS[]]
else begin[{]
None
end[}]
call[YEAR.che... | Keyword[public] identifier[LocalDate] identifier[withYear] operator[SEP] Keyword[int] identifier[year] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[year] operator[==] identifier[year] operator[SEP] {
Keyword[return] Keyword[this] operator[SEP]
}
identi... |
public static <T1, T2, T3> TriConsumer<T1, T2, T3> spy2nd(TriConsumer<T1, T2, T3> consumer, Box<T2> param2) {
return spy(consumer, Box.<T1>empty(), param2, Box.<T3>empty());
} | class class_name[name] begin[{]
method[spy2nd, return_type[type[TriConsumer]], modifier[public static], parameter[consumer, param2]] begin[{]
return[call[.spy, parameter[member[.consumer], call[.Box, parameter[]], member[.param2], call[.Box, parameter[]]]]]
end[}]
END[}] | Keyword[public] Keyword[static] operator[<] identifier[T1] , identifier[T2] , identifier[T3] operator[>] identifier[TriConsumer] operator[<] identifier[T1] , identifier[T2] , identifier[T3] operator[>] identifier[spy2nd] operator[SEP] identifier[TriConsumer] operator[<] identifier[T1] , identifier[T2] , identifie... |
public static CPDefinitionLocalization fetchByCPDefinitionId_First(
long CPDefinitionId,
OrderByComparator<CPDefinitionLocalization> orderByComparator) {
return getPersistence()
.fetchByCPDefinitionId_First(CPDefinitionId,
orderByComparator);
} | class class_name[name] begin[{]
method[fetchByCPDefinitionId_First, return_type[type[CPDefinitionLocalization]], modifier[public static], parameter[CPDefinitionId, orderByComparator]] begin[{]
return[call[.getPersistence, parameter[]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[CPDefinitionLocalization] identifier[fetchByCPDefinitionId_First] operator[SEP] Keyword[long] identifier[CPDefinitionId] , identifier[OrderByComparator] operator[<] identifier[CPDefinitionLocalization] operator[>] identifier[orderByComparator] operator[SEP] {
Keyword[r... |
public static void printClassPathEntries (@Nonnull final PrintStream aPS, @Nonnull final String sItemSeparator)
{
forAllClassPathEntries (x -> {
aPS.print (x);
aPS.print (sItemSeparator);
});
} | class class_name[name] begin[{]
method[printClassPathEntries, return_type[void], modifier[public static], parameter[aPS, sItemSeparator]] begin[{]
call[.forAllClassPathEntries, parameter[LambdaExpression(body=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=x, ... | Keyword[public] Keyword[static] Keyword[void] identifier[printClassPathEntries] operator[SEP] annotation[@] identifier[Nonnull] Keyword[final] identifier[PrintStream] identifier[aPS] , annotation[@] identifier[Nonnull] Keyword[final] identifier[String] identifier[sItemSeparator] operator[SEP] {
identifier[forAl... |
private void emitCreateTable(JavaWriter javaWriter) throws IOException {
logger.d("emitCreateTable");
javaWriter.beginMethod("void", $$CREATE_TABLE_FUNCTION, EnumSet.of(PUBLIC, STATIC),
"SQLiteDatabase", "db").emitStatement("db.execSQL(\"%s\")", getSchema()).endMethod();
} | class class_name[name] begin[{]
method[emitCreateTable, return_type[void], modifier[private], parameter[javaWriter]] begin[{]
call[logger.d, parameter[literal["emitCreateTable"]]]
call[javaWriter.beginMethod, parameter[literal["void"], member[.$$CREATE_TABLE_FUNCTION], call[Enum... | Keyword[private] Keyword[void] identifier[emitCreateTable] operator[SEP] identifier[JavaWriter] identifier[javaWriter] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[logger] operator[SEP] identifier[d] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[javaWriter] operator[S... |
@Override
public boolean searchShouldStop(Search<?> search) {
return search.getMinDelta() != JamesConstants.INVALID_DELTA && search.getMinDelta() < minDelta;
} | class class_name[name] begin[{]
method[searchShouldStop, return_type[type[boolean]], modifier[public], parameter[search]] begin[{]
return[binary_operation[binary_operation[call[search.getMinDelta, parameter[]], !=, member[JamesConstants.INVALID_DELTA]], &&, binary_operation[call[search.getMinDelta, par... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[searchShouldStop] operator[SEP] identifier[Search] operator[<] operator[?] operator[>] identifier[search] operator[SEP] {
Keyword[return] identifier[search] operator[SEP] identifier[getMinDelta] operator[SEP] operator[SEP] operator[!=... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.