code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
private void dispatchLegacyEventIfNeeded(ManagerEvent event)
{
if (event instanceof DialBeginEvent)
{
DialEvent legacyEvent = new DialEvent((DialBeginEvent) event);
dispatchEvent(legacyEvent);
}
} | class class_name[name] begin[{]
method[dispatchLegacyEventIfNeeded, return_type[void], modifier[private], parameter[event]] begin[{]
if[binary_operation[member[.event], instanceof, type[DialBeginEvent]]] begin[{]
local_variable[type[DialEvent], legacyEvent]
c... | Keyword[private] Keyword[void] identifier[dispatchLegacyEventIfNeeded] operator[SEP] identifier[ManagerEvent] identifier[event] operator[SEP] {
Keyword[if] operator[SEP] identifier[event] Keyword[instanceof] identifier[DialBeginEvent] operator[SEP] {
identifier[DialEvent] identifier[legacyEvent] opera... |
public Object tryGet() {
Object o = null;
if (head != null) {
o = head.getContents();
head = head.getNext();
count--;
if (head == null) {
tail = null;
count = 0;
}
}
return o;
} | class class_name[name] begin[{]
method[tryGet, return_type[type[Object]], modifier[public], parameter[]] begin[{]
local_variable[type[Object], o]
if[binary_operation[member[.head], !=, literal[null]]] begin[{]
assign[member[.o], call[head.getContents, parameter[]... | Keyword[public] identifier[Object] identifier[tryGet] operator[SEP] operator[SEP] {
identifier[Object] identifier[o] operator[=] Other[null] operator[SEP] Keyword[if] operator[SEP] identifier[head] operator[!=] Other[null] operator[SEP] {
identifier[o] operator[=] identifier[head] operator[SEP] identi... |
protected void onKeepAliveResponse(ChannelHandlerContext ctx, CouchbaseResponse keepAliveResponse) {
if (traceEnabled) {
LOGGER.trace(logIdent(ctx, endpoint) + "keepAlive was answered, status "
+ keepAliveResponse.status());
}
} | class class_name[name] begin[{]
method[onKeepAliveResponse, return_type[void], modifier[protected], parameter[ctx, keepAliveResponse]] begin[{]
if[member[.traceEnabled]] begin[{]
call[LOGGER.trace, parameter[binary_operation[binary_operation[call[.logIdent, parameter[mem... | Keyword[protected] Keyword[void] identifier[onKeepAliveResponse] operator[SEP] identifier[ChannelHandlerContext] identifier[ctx] , identifier[CouchbaseResponse] identifier[keepAliveResponse] operator[SEP] {
Keyword[if] operator[SEP] identifier[traceEnabled] operator[SEP] {
identifier[LOGGER] operator... |
private boolean checkInStagingAreaAndFileCache(final CacheKey key) {
EncodedImage result = mStagingArea.get(key);
if (result != null) {
result.close();
FLog.v(TAG, "Found image for %s in staging area", key.getUriString());
mImageCacheStatsTracker.onStagingAreaHit(key);
return true;
}... | class class_name[name] begin[{]
method[checkInStagingAreaAndFileCache, return_type[type[boolean]], modifier[private], parameter[key]] begin[{]
local_variable[type[EncodedImage], result]
if[binary_operation[member[.result], !=, literal[null]]] begin[{]
call[result... | Keyword[private] Keyword[boolean] identifier[checkInStagingAreaAndFileCache] operator[SEP] Keyword[final] identifier[CacheKey] identifier[key] operator[SEP] {
identifier[EncodedImage] identifier[result] operator[=] identifier[mStagingArea] operator[SEP] identifier[get] operator[SEP] identifier[key] operator[SEP]... |
public final int compareTo(final Period arg0) {
// Throws documented exception if type is wrong or parameter is null
if (arg0 == null) {
throw new ClassCastException("Cannot compare this object to null");
}
final int startCompare = getStart().compareTo(arg0.getStart());
... | class class_name[name] begin[{]
method[compareTo, return_type[type[int]], modifier[final public], parameter[arg0]] begin[{]
if[binary_operation[member[.arg0], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operator... | Keyword[public] Keyword[final] Keyword[int] identifier[compareTo] operator[SEP] Keyword[final] identifier[Period] identifier[arg0] operator[SEP] {
Keyword[if] operator[SEP] identifier[arg0] operator[==] Other[null] operator[SEP] {
Keyword[throw] Keyword[new] identifier[ClassCastException] operator[SEP... |
public <T> T read(final InputStream input, Class<T> rootType) {
try {
try {
reader = factory().createXMLEventReader(input);
return read(rootType);
} finally {
if (reader != null) {
reader.close();
}
... | class class_name[name] begin[{]
method[read, return_type[type[T]], modifier[public], parameter[input, rootType]] begin[{]
TryStatement(block=[TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=reader, postfix_operators=[], prefix_operators=[], qualifier=, s... | Keyword[public] operator[<] identifier[T] operator[>] identifier[T] identifier[read] operator[SEP] Keyword[final] identifier[InputStream] identifier[input] , identifier[Class] operator[<] identifier[T] operator[>] identifier[rootType] operator[SEP] {
Keyword[try] {
Keyword[try] {
ident... |
public void processAnnotations(Class<?> cl) {
for (Field field : cl.getFields()) {
processField(field);
}
for (Method method : cl.getMethods()) {
processMethod(method);
}
} | class class_name[name] begin[{]
method[processAnnotations, return_type[void], modifier[public], parameter[cl]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=field, postfix_operators=[], prefix_operator... | Keyword[public] Keyword[void] identifier[processAnnotations] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[cl] operator[SEP] {
Keyword[for] operator[SEP] identifier[Field] identifier[field] operator[:] identifier[cl] operator[SEP] identifier[getFields] operator[SEP] operator[SEP... |
@Override
public String getFormattedMessage(final String[] formats) {
if (formats != null && formats.length > 0) {
for (int i = 0; i < formats.length; i++) {
final String format = formats[i];
if (Format.XML.name().equalsIgnoreCase(format)) {
re... | class class_name[name] begin[{]
method[getFormattedMessage, return_type[type[String]], modifier[public], parameter[formats]] begin[{]
if[binary_operation[binary_operation[member[.formats], !=, literal[null]], &&, binary_operation[member[formats.length], >, literal[0]]]] begin[{]
For... | annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getFormattedMessage] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[formats] operator[SEP] {
Keyword[if] operator[SEP] identifier[formats] operator[!=] Other[null] operator[&&] identifier[form... |
public Matrix4f reflect(Quaternionfc orientation, Vector3fc point) {
return reflect(orientation, point, thisOrNew());
} | class class_name[name] begin[{]
method[reflect, return_type[type[Matrix4f]], modifier[public], parameter[orientation, point]] begin[{]
return[call[.reflect, parameter[member[.orientation], member[.point], call[.thisOrNew, parameter[]]]]]
end[}]
END[}] | Keyword[public] identifier[Matrix4f] identifier[reflect] operator[SEP] identifier[Quaternionfc] identifier[orientation] , identifier[Vector3fc] identifier[point] operator[SEP] {
Keyword[return] identifier[reflect] operator[SEP] identifier[orientation] , identifier[point] , identifier[thisOrNew] operator[SEP] ... |
public static Row insertRow(final Sheet sheet, final int rowIndex) {
ArgUtils.notNull(sheet, "cell");
ArgUtils.notMin(rowIndex, 0, "rowIndex");
// 最終行を取得する
int lastRow = sheet.getLastRowNum();
if(lastRow < rowIndex) {
// データが定義されている範囲害の場合は、行を新たに作成して返す。
... | class class_name[name] begin[{]
method[insertRow, return_type[type[Row]], modifier[public static], parameter[sheet, rowIndex]] begin[{]
call[ArgUtils.notNull, parameter[member[.sheet], literal["cell"]]]
call[ArgUtils.notMin, parameter[member[.rowIndex], literal[0], literal["rowI... | Keyword[public] Keyword[static] identifier[Row] identifier[insertRow] operator[SEP] Keyword[final] identifier[Sheet] identifier[sheet] , Keyword[final] Keyword[int] identifier[rowIndex] operator[SEP] {
identifier[ArgUtils] operator[SEP] identifier[notNull] operator[SEP] identifier[sheet] , literal[String] oper... |
public void errorFuture(UUID taskId, Exception e) {
DistributedFuture<GROUP, Serializable> future = remove(taskId);
if(future != null) {
future.setException(e);
}
} | class class_name[name] begin[{]
method[errorFuture, return_type[void], modifier[public], parameter[taskId, e]] begin[{]
local_variable[type[DistributedFuture], future]
if[binary_operation[member[.future], !=, literal[null]]] begin[{]
call[future.setException, par... | Keyword[public] Keyword[void] identifier[errorFuture] operator[SEP] identifier[UUID] identifier[taskId] , identifier[Exception] identifier[e] operator[SEP] {
identifier[DistributedFuture] operator[<] identifier[GROUP] , identifier[Serializable] operator[>] identifier[future] operator[=] identifier[remove] oper... |
public static Crouton makeText(Activity activity, CharSequence text, Style style) {
return new Crouton(activity, text, style);
} | class class_name[name] begin[{]
method[makeText, return_type[type[Crouton]], modifier[public static], parameter[activity, text, style]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=activity, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=t... | Keyword[public] Keyword[static] identifier[Crouton] identifier[makeText] operator[SEP] identifier[Activity] identifier[activity] , identifier[CharSequence] identifier[text] , identifier[Style] identifier[style] operator[SEP] {
Keyword[return] Keyword[new] identifier[Crouton] operator[SEP] identifier[activity] ... |
public String save(long start, long end) throws PiliException {
SaveOptions args = new SaveOptions(start, end);
return save(args);
} | class class_name[name] begin[{]
method[save, return_type[type[String]], modifier[public], parameter[start, end]] begin[{]
local_variable[type[SaveOptions], args]
return[call[.save, parameter[member[.args]]]]
end[}]
END[}] | Keyword[public] identifier[String] identifier[save] operator[SEP] Keyword[long] identifier[start] , Keyword[long] identifier[end] operator[SEP] Keyword[throws] identifier[PiliException] {
identifier[SaveOptions] identifier[args] operator[=] Keyword[new] identifier[SaveOptions] operator[SEP] identifier[start] , ... |
@Override
public int putAll(KTypeVTypeAssociativeContainer<? extends KType, ? extends VType> container) {
final int count = size();
for (KTypeVTypeCursor<? extends KType, ? extends VType> c : container) {
put(c.key, c.value);
}
return size() - count;
} | class class_name[name] begin[{]
method[putAll, return_type[type[int]], modifier[public], parameter[container]] begin[{]
local_variable[type[int], count]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=key... | annotation[@] identifier[Override] Keyword[public] Keyword[int] identifier[putAll] operator[SEP] identifier[KTypeVTypeAssociativeContainer] operator[<] operator[?] Keyword[extends] identifier[KType] , operator[?] Keyword[extends] identifier[VType] operator[>] identifier[container] operator[SEP] {
Keyword[final]... |
public static double pdf(double x, double location, double shape) {
final double v = (x - location) / shape;
return 1. / (Math.PI * shape * (1 + v * v));
} | class class_name[name] begin[{]
method[pdf, return_type[type[double]], modifier[public static], parameter[x, location, shape]] begin[{]
local_variable[type[double], v]
return[binary_operation[literal[1.], /, binary_operation[binary_operation[member[Math.PI], *, member[.shape]], *, binary_operat... | Keyword[public] Keyword[static] Keyword[double] identifier[pdf] operator[SEP] Keyword[double] identifier[x] , Keyword[double] identifier[location] , Keyword[double] identifier[shape] operator[SEP] {
Keyword[final] Keyword[double] identifier[v] operator[=] operator[SEP] identifier[x] operator[-] identifier[loca... |
public static long combineInts(String high, String low) throws NumberFormatException
{
int highInt = Integer.parseInt(high);
int lowInt = Integer.parseInt(low);
/*
* Shift the high integer into the upper 32 bits and add the low
* integer. However, since this is really a si... | class class_name[name] begin[{]
method[combineInts, return_type[type[long]], modifier[public static], parameter[high, low]] begin[{]
local_variable[type[int], highInt]
local_variable[type[int], lowInt]
return[binary_operation[binary_operation[Cast(expression=MemberReference(member=highI... | Keyword[public] Keyword[static] Keyword[long] identifier[combineInts] operator[SEP] identifier[String] identifier[high] , identifier[String] identifier[low] operator[SEP] Keyword[throws] identifier[NumberFormatException] {
Keyword[int] identifier[highInt] operator[=] identifier[Integer] operator[SEP] identifier... |
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
{
switch (featureID)
{
case XbasePackage.XPOSTFIX_OPERATION__OPERAND:
return basicSetOperand(null, msgs);
}
return super.eInverseRemove(otherEnd, featureID, msgs);
} | class class_name[name] begin[{]
method[eInverseRemove, return_type[type[NotificationChain]], modifier[public], parameter[otherEnd, featureID, msgs]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=XPOSTFIX_OPERATION__OPERAND, postfix_operators=[], prefix_operators=[], q... | annotation[@] identifier[Override] Keyword[public] identifier[NotificationChain] identifier[eInverseRemove] operator[SEP] identifier[InternalEObject] identifier[otherEnd] , Keyword[int] identifier[featureID] , identifier[NotificationChain] identifier[msgs] operator[SEP] {
Keyword[switch] operator[SEP] identifi... |
private static ClassNode getSerializeClass(ClassNode alias) {
List<AnnotationNode> annotations = alias.getAnnotations(ClassHelper.make(AnnotationCollector.class));
if (!annotations.isEmpty()) {
AnnotationNode annotationNode = annotations.get(0);
Expression member = annotationNode... | class class_name[name] begin[{]
method[getSerializeClass, return_type[type[ClassNode]], modifier[private static], parameter[alias]] begin[{]
local_variable[type[List], annotations]
if[call[annotations.isEmpty, parameter[]]] begin[{]
local_variable[type[AnnotationNode], annot... | Keyword[private] Keyword[static] identifier[ClassNode] identifier[getSerializeClass] operator[SEP] identifier[ClassNode] identifier[alias] operator[SEP] {
identifier[List] operator[<] identifier[AnnotationNode] operator[>] identifier[annotations] operator[=] identifier[alias] operator[SEP] identifier[getAnnotati... |
public InclusMultiPos<E, L, R> inclus(Boolean left, Boolean right) {
this.inclusive[0] = checkNotNull(left);
this.inclusive[1] = checkNotNull(right);
return this;
} | class class_name[name] begin[{]
method[inclus, return_type[type[InclusMultiPos]], modifier[public], parameter[left, right]] begin[{]
assign[THIS[member[None.inclusive]ArraySelector(index=Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value=0))], call[.checkNotN... | Keyword[public] identifier[InclusMultiPos] operator[<] identifier[E] , identifier[L] , identifier[R] operator[>] identifier[inclus] operator[SEP] identifier[Boolean] identifier[left] , identifier[Boolean] identifier[right] operator[SEP] {
Keyword[this] operator[SEP] identifier[inclusive] operator[SEP] Other[0... |
public static SortedMap<String, String> getVersionMap(final URL anURL) {
// Check sanity
Validate.notNull(anURL, "anURL");
final SortedMap<String, String> toReturn = new TreeMap<String, String>();
try {
final BufferedReader in = new BufferedReader(new InputStreamReader(anU... | class class_name[name] begin[{]
method[getVersionMap, return_type[type[SortedMap]], modifier[public static], parameter[anURL]] begin[{]
call[Validate.notNull, parameter[member[.anURL], literal["anURL"]]]
local_variable[type[SortedMap], toReturn]
TryStatement(block=[LocalVariable... | Keyword[public] Keyword[static] identifier[SortedMap] operator[<] identifier[String] , identifier[String] operator[>] identifier[getVersionMap] operator[SEP] Keyword[final] identifier[URL] identifier[anURL] operator[SEP] {
identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[anURL] , ... |
private String recvStatus()
{
if (!agent.sign()) {
return EXITED;
}
// receive the status response
final ZMsg msg = agent.recv();
if (msg == null) {
return EXITED;
}
String status = msg.popString();
msg.destroy();
retu... | class class_name[name] begin[{]
method[recvStatus, return_type[type[String]], modifier[private], parameter[]] begin[{]
if[call[agent.sign, parameter[]]] begin[{]
return[member[.EXITED]]
else begin[{]
None
end[}]
local_variable[type[ZMsg], msg]
... | Keyword[private] identifier[String] identifier[recvStatus] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[agent] operator[SEP] identifier[sign] operator[SEP] operator[SEP] operator[SEP] {
Keyword[return] identifier[EXITED] operator[SEP]
}
Keyword[final] id... |
protected Object[] getKey(NodeId id) {
if (getStorageModel() == SM_BINARY_KEYS) {
return new Object[] { id.getRawBytes() };
} else {
return new Object[] {
id.getMostSignificantBits(), id.getLeastSignificantBits() };
}
} | class class_name[name] begin[{]
method[getKey, return_type[type[Object]], modifier[protected], parameter[id]] begin[{]
if[binary_operation[call[.getStorageModel, parameter[]], ==, member[.SM_BINARY_KEYS]]] begin[{]
return[ArrayCreator(dimensions=[None], initializer=ArrayInitializer(... | Keyword[protected] identifier[Object] operator[SEP] operator[SEP] identifier[getKey] operator[SEP] identifier[NodeId] identifier[id] operator[SEP] {
Keyword[if] operator[SEP] identifier[getStorageModel] operator[SEP] operator[SEP] operator[==] identifier[SM_BINARY_KEYS] operator[SEP] {
Keyword[return]... |
protected FilterOperator translate(String operator) {
operator = operator.trim();
if (operator.equals("=") || operator.equals("=="))
return FilterOperator.EQUAL;
else if (operator.equals(">"))
return FilterOperator.GREATER_THAN;
else if (operator.equals(">="))
return FilterOperator.GREATER_THA... | class class_name[name] begin[{]
method[translate, return_type[type[FilterOperator]], modifier[protected], parameter[operator]] begin[{]
assign[member[.operator], call[operator.trim, parameter[]]]
if[binary_operation[call[operator.equals, parameter[literal["="]]], ||, call[operat... | Keyword[protected] identifier[FilterOperator] identifier[translate] operator[SEP] identifier[String] identifier[operator] operator[SEP] {
identifier[operator] operator[=] identifier[operator] operator[SEP] identifier[trim] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[operator] o... |
public static byte[] decodeChecked(String input) {
byte tmp[] = decode(input);
if (tmp == null || tmp.length < 4) {
return null;
}
byte[] bytes = copyOfRange(tmp, 0, tmp.length - 4);
byte[] checksum = copyOfRange(tmp, tmp.length - 4, tmp.length);
tmp = HashUtils.doubleSha25... | class class_name[name] begin[{]
method[decodeChecked, return_type[type[byte]], modifier[public static], parameter[input]] begin[{]
local_variable[type[byte], tmp]
if[binary_operation[binary_operation[member[.tmp], ==, literal[null]], ||, binary_operation[member[tmp.length], <, literal[4... | Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[decodeChecked] operator[SEP] identifier[String] identifier[input] operator[SEP] {
Keyword[byte] identifier[tmp] operator[SEP] operator[SEP] operator[=] identifier[decode] operator[SEP] identifier[input] operator[SEP] operator[SE... |
public OnPremisesTagSet withOnPremisesTagSetList(java.util.Collection<java.util.List<TagFilter>> onPremisesTagSetList) {
setOnPremisesTagSetList(onPremisesTagSetList);
return this;
} | class class_name[name] begin[{]
method[withOnPremisesTagSetList, return_type[type[OnPremisesTagSet]], modifier[public], parameter[onPremisesTagSetList]] begin[{]
call[.setOnPremisesTagSetList, parameter[member[.onPremisesTagSetList]]]
return[THIS[]]
end[}]
END[}] | Keyword[public] identifier[OnPremisesTagSet] identifier[withOnPremisesTagSetList] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[TagFilter] operator[>] op... |
public static <A extends Annotation> Optional<A> findPropertyAnnotation(
BeanPropertyDefinition beanPropertyDefinition,
Class<A> annotationClass) {
return tryGetFieldAnnotation(beanPropertyDefinition, annotationClass)
.map(Optional::of).orElse(tryGetGetterAnnotation(beanPropertyDefinition, anno... | class class_name[name] begin[{]
method[findPropertyAnnotation, return_type[type[Optional]], modifier[public static], parameter[beanPropertyDefinition, annotationClass]] begin[{]
return[call[.tryGetFieldAnnotation, parameter[member[.beanPropertyDefinition], member[.annotationClass]]]]
end[}]
END[}] | Keyword[public] Keyword[static] operator[<] identifier[A] Keyword[extends] identifier[Annotation] operator[>] identifier[Optional] operator[<] identifier[A] operator[>] identifier[findPropertyAnnotation] operator[SEP] identifier[BeanPropertyDefinition] identifier[beanPropertyDefinition] , identifier[Class] operator[<]... |
@Override
public void destroy() {
System.out.printf("TdsInit.destroy() is called%n");
// prefs
try {
store.save();
} catch (IOException ioe) {
ioe.printStackTrace();
startupLog.error("TdsInit: Prefs save failed", ioe);
}
// background threads
if (cdmDiskCacheTimer != nu... | class class_name[name] begin[{]
method[destroy, return_type[void], modifier[public], parameter[]] begin[{]
call[System.out.printf, parameter[literal["TdsInit.destroy() is called%n"]]]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=save, postfix_... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[destroy] operator[SEP] operator[SEP] {
identifier[System] operator[SEP] identifier[out] operator[SEP] identifier[printf] operator[SEP] literal[String] operator[SEP] operator[SEP] Keyword[try] {
identifier[store] operator[SEP] ... |
public double[] getRow(int row) {
double[] values = m.getRow(row);
for (int i = 0; i < values.length; ++i)
values[i] *= scales.get(i);
return values;
} | class class_name[name] begin[{]
method[getRow, return_type[type[double]], modifier[public], parameter[row]] begin[{]
local_variable[type[double], values]
ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=values, postfix_operators=[], prefix_operators... | Keyword[public] Keyword[double] operator[SEP] operator[SEP] identifier[getRow] operator[SEP] Keyword[int] identifier[row] operator[SEP] {
Keyword[double] operator[SEP] operator[SEP] identifier[values] operator[=] identifier[m] operator[SEP] identifier[getRow] operator[SEP] identifier[row] operator[SEP] operator[... |
public boolean forceLoadTile(final OnlineTileSourceBase tileSource, final long pMapTileIndex) {
try {
final Drawable drawable = mTileDownloader.downloadTile(pMapTileIndex, mTileWriter, tileSource);
return drawable != null;
} catch (CantContinueException e) {
return fa... | class class_name[name] begin[{]
method[forceLoadTile, return_type[type[boolean]], modifier[public], parameter[tileSource, pMapTileIndex]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arguments=[MemberRe... | Keyword[public] Keyword[boolean] identifier[forceLoadTile] operator[SEP] Keyword[final] identifier[OnlineTileSourceBase] identifier[tileSource] , Keyword[final] Keyword[long] identifier[pMapTileIndex] operator[SEP] {
Keyword[try] {
Keyword[final] identifier[Drawable] identifier[drawable] operator[=] ... |
public Set<String> getDetailPageTypes() {
if (m_detailPageTypes != null) {
return m_detailPageTypes;
}
Set<String> result = new HashSet<String>();
for (CmsADEConfigDataInternal configData : m_siteConfigurationsByPath.values()) {
List<CmsDetailPageInfo> detailPage... | class class_name[name] begin[{]
method[getDetailPageTypes, return_type[type[Set]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.m_detailPageTypes], !=, literal[null]]] begin[{]
return[member[.m_detailPageTypes]]
else begin[{]
None
end[}]
... | Keyword[public] identifier[Set] operator[<] identifier[String] operator[>] identifier[getDetailPageTypes] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[m_detailPageTypes] operator[!=] Other[null] operator[SEP] {
Keyword[return] identifier[m_detailPageTypes] operator[SEP]
} ... |
private BottomSheet.Builder createBottomSheetBuilder() {
BottomSheet.Builder builder = new BottomSheet.Builder(getActivity());
builder.setStyle(getStyle());
if (shouldTitleBeShown()) {
builder.setTitle(getBottomSheetTitle());
}
if (shouldIconBeShown()) {
... | class class_name[name] begin[{]
method[createBottomSheetBuilder, return_type[type[BottomSheet]], modifier[private], parameter[]] begin[{]
local_variable[type[BottomSheet], builder]
call[builder.setStyle, parameter[call[.getStyle, parameter[]]]]
if[call[.shouldTitleBeShow... | Keyword[private] identifier[BottomSheet] operator[SEP] identifier[Builder] identifier[createBottomSheetBuilder] operator[SEP] operator[SEP] {
identifier[BottomSheet] operator[SEP] identifier[Builder] identifier[builder] operator[=] Keyword[new] identifier[BottomSheet] operator[SEP] identifier[Builder] operator[S... |
private void update(int seqNo, long guessedIndex) {
long delta = guessedIndex - (((long) this.roc) << 16 | this.seqNum);
/* update the replay bit mask */
if (delta > 0) {
replayWindow = replayWindow << delta;
replayWindow |= 1;
} else {
replayWindow |= (1 << delta);
}
if (seqNo > seqNum) {
seq... | class class_name[name] begin[{]
method[update, return_type[void], modifier[private], parameter[seqNo, guessedIndex]] begin[{]
local_variable[type[long], delta]
if[binary_operation[member[.delta], >, literal[0]]] begin[{]
assign[member[.replayWindow], binary_opera... | Keyword[private] Keyword[void] identifier[update] operator[SEP] Keyword[int] identifier[seqNo] , Keyword[long] identifier[guessedIndex] operator[SEP] {
Keyword[long] identifier[delta] operator[=] identifier[guessedIndex] operator[-] operator[SEP] operator[SEP] operator[SEP] Keyword[long] operator[SEP] Keyword[t... |
public EClass getIfcSurfaceOfRevolution() {
if (ifcSurfaceOfRevolutionEClass == null) {
ifcSurfaceOfRevolutionEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(577);
}
return ifcSurfaceOfRevolutionEClass;
} | class class_name[name] begin[{]
method[getIfcSurfaceOfRevolution, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.ifcSurfaceOfRevolutionEClass], ==, literal[null]]] begin[{]
assign[member[.ifcSurfaceOfRevolutionEClass], Cast... | Keyword[public] identifier[EClass] identifier[getIfcSurfaceOfRevolution] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifcSurfaceOfRevolutionEClass] operator[==] Other[null] operator[SEP] {
identifier[ifcSurfaceOfRevolutionEClass] operator[=] operator[SEP] identifier[EClass] opera... |
@NotNull
public Mode without(@NotNull Key<?> key) {
return new Mode(Map(this.defs, key, null));
} | class class_name[name] begin[{]
method[without, return_type[type[Mode]], modifier[public], parameter[key]] begin[{]
return[ClassCreator(arguments=[MethodInvocation(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=defs, postfix_operators=None, ... | annotation[@] identifier[NotNull] Keyword[public] identifier[Mode] identifier[without] operator[SEP] annotation[@] identifier[NotNull] identifier[Key] operator[<] operator[?] operator[>] identifier[key] operator[SEP] {
Keyword[return] Keyword[new] identifier[Mode] operator[SEP] identifier[Map] operator[SEP] Keyw... |
public String lookup( byte[] code, int offset, int length )
{
String result = null;
Integer key = null;
if( length == 1 )
{
key = Integer.valueOf( code[offset] & 0xff );
result = (String)singleByteMappings.get( key );
}
el... | class class_name[name] begin[{]
method[lookup, return_type[type[String]], modifier[public], parameter[code, offset, length]] begin[{]
local_variable[type[String], result]
local_variable[type[Integer], key]
if[binary_operation[member[.length], ==, literal[1]]] begin[{]
... | Keyword[public] identifier[String] identifier[lookup] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[code] , Keyword[int] identifier[offset] , Keyword[int] identifier[length] operator[SEP] {
identifier[String] identifier[result] operator[=] Other[null] operator[SEP] identifier[Integer] iden... |
public static void assertXMLEqual(String err, Reader control, Reader test)
throws SAXException, IOException {
Diff diff = new Diff(control, test);
assertXMLEqual(err, diff, true);
} | class class_name[name] begin[{]
method[assertXMLEqual, return_type[void], modifier[public static], parameter[err, control, test]] begin[{]
local_variable[type[Diff], diff]
call[.assertXMLEqual, parameter[member[.err], member[.diff], literal[true]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[void] identifier[assertXMLEqual] operator[SEP] identifier[String] identifier[err] , identifier[Reader] identifier[control] , identifier[Reader] identifier[test] operator[SEP] Keyword[throws] identifier[SAXException] , identifier[IOException] {
identifier[Diff] identifie... |
public List<ShowInfo> searchShow(String showName) throws TVRageException {
if (!isValidString(showName)) {
return new ArrayList<>();
}
String tvrageURL = buildURL(API_SEARCH, showName).toString();
return TVRageParser.getSearchShow(tvrageURL);
} | class class_name[name] begin[{]
method[searchShow, return_type[type[List]], modifier[public], parameter[showName]] begin[{]
if[call[.isValidString, parameter[member[.showName]]]] begin[{]
return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators... | Keyword[public] identifier[List] operator[<] identifier[ShowInfo] operator[>] identifier[searchShow] operator[SEP] identifier[String] identifier[showName] operator[SEP] Keyword[throws] identifier[TVRageException] {
Keyword[if] operator[SEP] operator[!] identifier[isValidString] operator[SEP] identifier[showName]... |
public static FDBigInteger valueOfMulPow52(long value, int p5, int p2) {
assert p5 >= 0 : p5;
assert p2 >= 0 : p2;
int v0 = (int) value;
int v1 = (int) (value >>> 32);
int wordcount = p2 >> 5;
int bitcount = p2 & 0x1f;
if (p5 != 0) {
if (p5 < SMALL_5_P... | class class_name[name] begin[{]
method[valueOfMulPow52, return_type[type[FDBigInteger]], modifier[public static], parameter[value, p5, p2]] begin[{]
AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=p5, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operan... | Keyword[public] Keyword[static] identifier[FDBigInteger] identifier[valueOfMulPow52] operator[SEP] Keyword[long] identifier[value] , Keyword[int] identifier[p5] , Keyword[int] identifier[p2] operator[SEP] {
Keyword[assert] identifier[p5] operator[>=] Other[0] operator[:] identifier[p5] operator[SEP] Keyword[a... |
public static byte[] normalizeKey(byte[] keyData) {
if (keyData == null) {
return RSG.generate(16).getBytes(StandardCharsets.UTF_8);
} else {
return normalizeKey(new String(keyData, StandardCharsets.UTF_8))
.getBytes(StandardCharsets.UTF_8);
}
} | class class_name[name] begin[{]
method[normalizeKey, return_type[type[byte]], modifier[public static], parameter[keyData]] begin[{]
if[binary_operation[member[.keyData], ==, literal[null]]] begin[{]
return[call[RSG.generate, parameter[literal[16]]]]
else begin[{]
... | Keyword[public] Keyword[static] Keyword[byte] operator[SEP] operator[SEP] identifier[normalizeKey] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[keyData] operator[SEP] {
Keyword[if] operator[SEP] identifier[keyData] operator[==] Other[null] operator[SEP] {
Keyword[return] identifi... |
public URLConnection get( Object key )
{
synchronized( this ) // ensure no ConcurrentModificationException can occur.
{
Entry entry = m_hardStore.get( key );
if( entry == null )
{
return null;
}
return entry.m_connection;
... | class class_name[name] begin[{]
method[get, return_type[type[URLConnection]], modifier[public], parameter[key]] begin[{]
SYNCHRONIZED[THIS[]] BEGIN[{]
local_variable[type[Entry], entry]
if[binary_operation[member[.entry], ==, literal[null]]] begin[{]
... | Keyword[public] identifier[URLConnection] identifier[get] operator[SEP] identifier[Object] identifier[key] operator[SEP] {
Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] {
identifier[Entry] identifier[entry] operator[=] identifier[m_hardStore] operator[SEP] identifier[get] operator[SE... |
private <E> List<E> onIndexSearch(OracleNoSQLQueryInterpreter interpreter, EntityMetadata entityMetadata,
MetamodelImpl metamodel, List<E> results, List<String> columnsToSelect)
{
Map<String, List> indexes = new HashMap<String, List>();
StringBuilder indexNamebuilder = new StringBuilder(... | class class_name[name] begin[{]
method[onIndexSearch, return_type[type[List]], modifier[private], parameter[interpreter, entityMetadata, metamodel, results, columnsToSelect]] begin[{]
local_variable[type[Map], indexes]
local_variable[type[StringBuilder], indexNamebuilder]
ForStatement(b... | Keyword[private] operator[<] identifier[E] operator[>] identifier[List] operator[<] identifier[E] operator[>] identifier[onIndexSearch] operator[SEP] identifier[OracleNoSQLQueryInterpreter] identifier[interpreter] , identifier[EntityMetadata] identifier[entityMetadata] , identifier[MetamodelImpl] identifier[metamodel... |
public void load(CFMetaData cfm)
{
Pair<String, String> key = Pair.create(cfm.ksName, cfm.cfName);
if (cfIdMap.containsKey(key))
throw new RuntimeException(String.format("Attempting to load already loaded column family %s.%s", cfm.ksName, cfm.cfName));
logger.debug("Adding {} t... | class class_name[name] begin[{]
method[load, return_type[void], modifier[public], parameter[cfm]] begin[{]
local_variable[type[Pair], key]
if[call[cfIdMap.containsKey, parameter[member[.key]]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Litera... | Keyword[public] Keyword[void] identifier[load] operator[SEP] identifier[CFMetaData] identifier[cfm] operator[SEP] {
identifier[Pair] operator[<] identifier[String] , identifier[String] operator[>] identifier[key] operator[=] identifier[Pair] operator[SEP] identifier[create] operator[SEP] identifier[cfm] operato... |
private void writeToDiskCache(
final CacheKey key,
final EncodedImage encodedImage) {
FLog.v(TAG, "About to write to disk-cache for key %s", key.getUriString());
try {
mFileCache.insert(
key, new WriterCallback() {
@Override
public void write(OutputStream os) ... | class class_name[name] begin[{]
method[writeToDiskCache, return_type[void], modifier[private], parameter[key, encodedImage]] begin[{]
call[FLog.v, parameter[member[.TAG], literal["About to write to disk-cache for key %s"], call[key.getUriString, parameter[]]]]
TryStatement(block=[Statem... | Keyword[private] Keyword[void] identifier[writeToDiskCache] operator[SEP] Keyword[final] identifier[CacheKey] identifier[key] , Keyword[final] identifier[EncodedImage] identifier[encodedImage] operator[SEP] {
identifier[FLog] operator[SEP] identifier[v] operator[SEP] identifier[TAG] , literal[String] , identi... |
private static boolean isConstant(@Nullable ExprRootNode exprRoot) {
return exprRoot != null && SimplifyExprVisitor.isConstant(exprRoot.getRoot());
} | class class_name[name] begin[{]
method[isConstant, return_type[type[boolean]], modifier[private static], parameter[exprRoot]] begin[{]
return[binary_operation[binary_operation[member[.exprRoot], !=, literal[null]], &&, call[SimplifyExprVisitor.isConstant, parameter[call[exprRoot.getRoot, parameter[]]]]... | Keyword[private] Keyword[static] Keyword[boolean] identifier[isConstant] operator[SEP] annotation[@] identifier[Nullable] identifier[ExprRootNode] identifier[exprRoot] operator[SEP] {
Keyword[return] identifier[exprRoot] operator[!=] Other[null] operator[&&] identifier[SimplifyExprVisitor] operator[SEP] identifi... |
public String addAlias(String indice,String alias){
String aliasJson = new StringBuilder().append("{\"actions\": [{\"add\": {\"index\":\"").append(indice).append("\",\"alias\": \"").append(alias).append("\"}}]}").toString();
return this.client.executeHttp("_aliases",aliasJson,ClientUtil.HTTP_POST);
} | class class_name[name] begin[{]
method[addAlias, return_type[type[String]], modifier[public], parameter[indice, alias]] begin[{]
local_variable[type[String], aliasJson]
return[THIS[member[None.client]call[None.executeHttp, parameter[literal["_aliases"], member[.aliasJson], member[ClientUtil.HTT... | Keyword[public] identifier[String] identifier[addAlias] operator[SEP] identifier[String] identifier[indice] , identifier[String] identifier[alias] operator[SEP] {
identifier[String] identifier[aliasJson] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[appe... |
public Object doFilter(Object object, Method method, Object[] params, AjaxFilterChain chain) throws Exception
{
// We allow anyone to authenticate
if (authenticateName.equals(method.getName()))
{
return chain.doFilter(object, method, params);
}
Object user = getU... | class class_name[name] begin[{]
method[doFilter, return_type[type[Object]], modifier[public], parameter[object, method, params, chain]] begin[{]
if[call[authenticateName.equals, parameter[call[method.getName, parameter[]]]]] begin[{]
return[call[chain.doFilter, parameter[member[.obj... | Keyword[public] identifier[Object] identifier[doFilter] operator[SEP] identifier[Object] identifier[object] , identifier[Method] identifier[method] , identifier[Object] operator[SEP] operator[SEP] identifier[params] , identifier[AjaxFilterChain] identifier[chain] operator[SEP] Keyword[throws] identifier[Exception] ... |
public static void trace(final String message, final Supplier<?>... arguments) {
if (MINIMUM_LEVEL_COVERS_TRACE) {
provider.log(STACKTRACE_DEPTH, null, Level.TRACE, null, message, (Object[]) arguments);
}
} | class class_name[name] begin[{]
method[trace, return_type[void], modifier[public static], parameter[message, arguments]] begin[{]
if[member[.MINIMUM_LEVEL_COVERS_TRACE]] begin[{]
call[provider.log, parameter[member[.STACKTRACE_DEPTH], literal[null], member[Level.TRACE], ... | Keyword[public] Keyword[static] Keyword[void] identifier[trace] operator[SEP] Keyword[final] identifier[String] identifier[message] , Keyword[final] identifier[Supplier] operator[<] operator[?] operator[>] operator[...] identifier[arguments] operator[SEP] {
Keyword[if] operator[SEP] identifier[MINIMUM_LEVEL_COV... |
public static <T extends ChronoEntity<T> & CalendarDate> StdCalendarElement<Integer, T> boundedWeekOfYear(
Chronology<T> chronology,
Weekmodel model
) {
ChronoElement<Integer> e = findDayElement(chronology, "DAY_OF_YEAR");
if (e == null) {
throw new IllegalArgumentExcep... | class class_name[name] begin[{]
method[boundedWeekOfYear, return_type[type[StdCalendarElement]], modifier[public static], parameter[chronology, model]] begin[{]
local_variable[type[ChronoElement], e]
if[binary_operation[member[.e], ==, literal[null]]] begin[{]
ThrowStatement... | Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[ChronoEntity] operator[<] identifier[T] operator[>] operator[&] identifier[CalendarDate] operator[>] identifier[StdCalendarElement] operator[<] identifier[Integer] , identifier[T] operator[>] identifier[boundedWeekOfYear] operator[SE... |
private static UInteger getCached(long value) {
if (VALUES != null && value < VALUES.length)
return VALUES[(int) value];
return null;
} | class class_name[name] begin[{]
method[getCached, return_type[type[UInteger]], modifier[private static], parameter[value]] begin[{]
if[binary_operation[binary_operation[member[.VALUES], !=, literal[null]], &&, binary_operation[member[.value], <, member[VALUES.length]]]] begin[{]
return[member[.... | Keyword[private] Keyword[static] identifier[UInteger] identifier[getCached] operator[SEP] Keyword[long] identifier[value] operator[SEP] {
Keyword[if] operator[SEP] identifier[VALUES] operator[!=] Other[null] operator[&&] identifier[value] operator[<] identifier[VALUES] operator[SEP] identifier[length] operator[S... |
@Nonnull
public static LLongIntPredicate longIntPredicateFrom(Consumer<LLongIntPredicateBuilder> buildingFunction) {
LLongIntPredicateBuilder builder = new LLongIntPredicateBuilder();
buildingFunction.accept(builder);
return builder.build();
} | class class_name[name] begin[{]
method[longIntPredicateFrom, return_type[type[LLongIntPredicate]], modifier[public static], parameter[buildingFunction]] begin[{]
local_variable[type[LLongIntPredicateBuilder], builder]
call[buildingFunction.accept, parameter[member[.builder]]]
re... | annotation[@] identifier[Nonnull] Keyword[public] Keyword[static] identifier[LLongIntPredicate] identifier[longIntPredicateFrom] operator[SEP] identifier[Consumer] operator[<] identifier[LLongIntPredicateBuilder] operator[>] identifier[buildingFunction] operator[SEP] {
identifier[LLongIntPredicateBuilder] identi... |
private Content processParamTags(Element e, boolean isParams,
List<? extends DocTree> paramTags, Map<String, String> rankMap, TagletWriter writer,
Set<String> alreadyDocumented) {
Messages messages = writer.configuration().getMessages();
Content result = writer.getOutputInstance(... | class class_name[name] begin[{]
method[processParamTags, return_type[type[Content]], modifier[private], parameter[e, isParams, paramTags, rankMap, writer, alreadyDocumented]] begin[{]
local_variable[type[Messages], messages]
local_variable[type[Content], result]
if[call[paramTag... | Keyword[private] identifier[Content] identifier[processParamTags] operator[SEP] identifier[Element] identifier[e] , Keyword[boolean] identifier[isParams] , identifier[List] operator[<] operator[?] Keyword[extends] identifier[DocTree] operator[>] identifier[paramTags] , identifier[Map] operator[<] identifier[String] ... |
public static PagableQueryParams of(final Optional<String> optOffset, final Optional<Integer> optLimit)
{
return PagableQueryParams.of(optOffset, optLimit, Optional.<SortDirection> absent(),
Optional.<Boolean> absent());
} | class class_name[name] begin[{]
method[of, return_type[type[PagableQueryParams]], modifier[public static], parameter[optOffset, optLimit]] begin[{]
return[call[PagableQueryParams.of, parameter[member[.optOffset], member[.optLimit], call[.Optional, parameter[]], call[.Optional, parameter[]]]]]
end[}... | Keyword[public] Keyword[static] identifier[PagableQueryParams] identifier[of] operator[SEP] Keyword[final] identifier[Optional] operator[<] identifier[String] operator[>] identifier[optOffset] , Keyword[final] identifier[Optional] operator[<] identifier[Integer] operator[>] identifier[optLimit] operator[SEP] {
... |
private void removeAllRelatedFromCache(String groupId)
{
cache.remove(CacheHandler.GROUP_PREFIX + groupId, CacheType.MEMBERSHIP);
} | class class_name[name] begin[{]
method[removeAllRelatedFromCache, return_type[void], modifier[private], parameter[groupId]] begin[{]
call[cache.remove, parameter[binary_operation[member[CacheHandler.GROUP_PREFIX], +, member[.groupId]], member[CacheType.MEMBERSHIP]]]
end[}]
END[}] | Keyword[private] Keyword[void] identifier[removeAllRelatedFromCache] operator[SEP] identifier[String] identifier[groupId] operator[SEP] {
identifier[cache] operator[SEP] identifier[remove] operator[SEP] identifier[CacheHandler] operator[SEP] identifier[GROUP_PREFIX] operator[+] identifier[groupId] , identifier[... |
@Override
public long until(Temporal endExclusive, TemporalUnit unit) {
@SuppressWarnings("unchecked")
ChronoLocalDateTime<D> end = (ChronoLocalDateTime<D>) toLocalDate().getChronology().localDateTime(endExclusive);
if (unit instanceof ChronoUnit) {
ChronoUnit f = (ChronoUnit) un... | class class_name[name] begin[{]
method[until, return_type[type[long]], modifier[public], parameter[endExclusive, unit]] begin[{]
local_variable[type[ChronoLocalDateTime], end]
if[binary_operation[member[.unit], instanceof, type[ChronoUnit]]] begin[{]
local_variable[type[Chro... | annotation[@] identifier[Override] Keyword[public] Keyword[long] identifier[until] operator[SEP] identifier[Temporal] identifier[endExclusive] , identifier[TemporalUnit] identifier[unit] operator[SEP] {
annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] identifier[ChronoLocal... |
public static <KEYTYPE, DATATYPE, ITEMTYPE extends ITreeItemWithID <KEYTYPE, DATATYPE, ITEMTYPE>> void sortByValue (@Nonnull final IBasicTree <DATATYPE, ITEMTYPE> aTree,
@Nonnull final Comparator <? sup... | class class_name[name] begin[{]
method[sortByValue, return_type[void], modifier[public static], parameter[aTree, aValueComparator]] begin[{]
call[._sort, parameter[member[.aTree], call[Comparator.comparing, parameter[MethodReference(expression=MemberReference(member=IBasicTreeItem, postfix_oper... | Keyword[public] Keyword[static] operator[<] identifier[KEYTYPE] , identifier[DATATYPE] , identifier[ITEMTYPE] Keyword[extends] identifier[ITreeItemWithID] operator[<] identifier[KEYTYPE] , identifier[DATATYPE] , identifier[ITEMTYPE] operator[>] operator[>] Keyword[void] identifier[sortByValue] operator[SEP] annotat... |
private void initFilters() {
ditaWriterFilter = new DitaWriterFilter();
ditaWriterFilter.setLogger(logger);
ditaWriterFilter.setJob(job);
ditaWriterFilter.setEntityResolver(reader.getEntityResolver());
topicFragmentFilter = new TopicFragmentFilter(ATTRIBUTE_NAME_CONREF, ATTRIBUT... | class class_name[name] begin[{]
method[initFilters, return_type[void], modifier[private], parameter[]] begin[{]
assign[member[.ditaWriterFilter], ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=... | Keyword[private] Keyword[void] identifier[initFilters] operator[SEP] operator[SEP] {
identifier[ditaWriterFilter] operator[=] Keyword[new] identifier[DitaWriterFilter] operator[SEP] operator[SEP] operator[SEP] identifier[ditaWriterFilter] operator[SEP] identifier[setLogger] operator[SEP] identifier[logger] opera... |
public DateTimeFormatterBuilder appendInstant(int fractionalDigits) {
if (fractionalDigits < -1 || fractionalDigits > 9) {
throw new IllegalArgumentException("Invalid fractional digits: " + fractionalDigits);
}
appendInternal(new InstantPrinterParser(fractionalDigits));
retur... | class class_name[name] begin[{]
method[appendInstant, return_type[type[DateTimeFormatterBuilder]], modifier[public], parameter[fractionalDigits]] begin[{]
if[binary_operation[binary_operation[member[.fractionalDigits], <, literal[1]], ||, binary_operation[member[.fractionalDigits], >, literal[9... | Keyword[public] identifier[DateTimeFormatterBuilder] identifier[appendInstant] operator[SEP] Keyword[int] identifier[fractionalDigits] operator[SEP] {
Keyword[if] operator[SEP] identifier[fractionalDigits] operator[<] operator[-] Other[1] operator[||] identifier[fractionalDigits] operator[>] Other[9] operator[SE... |
void formatFractionalSeconds(StringBuilder b, ZonedDateTime d, int width) {
// format up to 9 digits at nanosecond resolution.
int nano = d.getNano();
int f = 100000000;
while (width > 0 && f > 0) {
int digit = nano / f;
nano -= (digit * f);
f /= 10;
b.append(digit);
width-... | class class_name[name] begin[{]
method[formatFractionalSeconds, return_type[void], modifier[default], parameter[b, d, width]] begin[{]
local_variable[type[int], nano]
local_variable[type[int], f]
while[binary_operation[binary_operation[member[.width], >, literal[0]], &&, binary_... | Keyword[void] identifier[formatFractionalSeconds] operator[SEP] identifier[StringBuilder] identifier[b] , identifier[ZonedDateTime] identifier[d] , Keyword[int] identifier[width] operator[SEP] {
Keyword[int] identifier[nano] operator[=] identifier[d] operator[SEP] identifier[getNano] operator[SEP] operator[SEP... |
public WorkProcessor<Page> merge(List<Type> keyTypes, List<Type> allTypes, List<WorkProcessor<Page>> channels, DriverYieldSignal driverYieldSignal)
{
InterpretedHashGenerator hashGenerator = createHashGenerator(keyTypes);
return mergeSortedPages(
channels,
createHashP... | class class_name[name] begin[{]
method[merge, return_type[type[WorkProcessor]], modifier[public], parameter[keyTypes, allTypes, channels, driverYieldSignal]] begin[{]
local_variable[type[InterpretedHashGenerator], hashGenerator]
return[call[.mergeSortedPages, parameter[member[.channels], call[.... | Keyword[public] identifier[WorkProcessor] operator[<] identifier[Page] operator[>] identifier[merge] operator[SEP] identifier[List] operator[<] identifier[Type] operator[>] identifier[keyTypes] , identifier[List] operator[<] identifier[Type] operator[>] identifier[allTypes] , identifier[List] operator[<] identifier[W... |
public void setBackgroundMode(boolean backgroundMode) {
if (!isBleAvailableOrSimulated()) {
LogManager.w(TAG, "Method invocation will be ignored.");
return;
}
mBackgroundModeUninitialized = false;
if (backgroundMode != mBackgroundMode) {
mBackgroundMod... | class class_name[name] begin[{]
method[setBackgroundMode, return_type[void], modifier[public], parameter[backgroundMode]] begin[{]
if[call[.isBleAvailableOrSimulated, parameter[]]] begin[{]
call[LogManager.w, parameter[member[.TAG], literal["Method invocation will be ign... | Keyword[public] Keyword[void] identifier[setBackgroundMode] operator[SEP] Keyword[boolean] identifier[backgroundMode] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[isBleAvailableOrSimulated] operator[SEP] operator[SEP] operator[SEP] {
identifier[LogManager] operator[SEP] identifier[... |
public void importData(CmsImportParameters parameters) throws CmsImportExportException, CmsXmlException {
boolean run = false;
try {
// now find the correct import implementation
Iterator<I_CmsImport> i = m_importImplementations.iterator();
while (i.hasNext()) {
... | class class_name[name] begin[{]
method[importData, return_type[void], modifier[public], parameter[parameters]] begin[{]
local_variable[type[boolean], run]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(arg... | Keyword[public] Keyword[void] identifier[importData] operator[SEP] identifier[CmsImportParameters] identifier[parameters] operator[SEP] Keyword[throws] identifier[CmsImportExportException] , identifier[CmsXmlException] {
Keyword[boolean] identifier[run] operator[=] literal[boolean] operator[SEP] Keyword[try] {... |
public Charge confirmCapture(final ConfirmCaptureParams params) throws OpenpayServiceException,
ServiceUnavailableException {
String path = String.format(CAPTURE_FOR_MERCHANT_PATH, this.getMerchantId(), params.getChargeId());
return this.getJsonClient().post(path, params.asMap(), Charge.clas... | class class_name[name] begin[{]
method[confirmCapture, return_type[type[Charge]], modifier[public], parameter[params]] begin[{]
local_variable[type[String], path]
return[THIS[call[None.getJsonClient, parameter[]]call[None.post, parameter[member[.path], call[params.asMap, parameter[]], ClassRefe... | Keyword[public] identifier[Charge] identifier[confirmCapture] operator[SEP] Keyword[final] identifier[ConfirmCaptureParams] identifier[params] operator[SEP] Keyword[throws] identifier[OpenpayServiceException] , identifier[ServiceUnavailableException] {
identifier[String] identifier[path] operator[=] identifier[... |
JMFSchema findSchema(long schemaId) throws MessageStoreException {
Long storeId = schemaIndex.get(Long.valueOf(schemaId));
if (storeId != null) {
AbstractItem item = findById(storeId.longValue());
return ((SchemaStoreItem)item).getSchema();
} else
throw new MessageStoreException("Schema no... | class class_name[name] begin[{]
method[findSchema, return_type[type[JMFSchema]], modifier[default], parameter[schemaId]] begin[{]
local_variable[type[Long], storeId]
if[binary_operation[member[.storeId], !=, literal[null]]] begin[{]
local_variable[type[AbstractItem], item]
... | identifier[JMFSchema] identifier[findSchema] operator[SEP] Keyword[long] identifier[schemaId] operator[SEP] Keyword[throws] identifier[MessageStoreException] {
identifier[Long] identifier[storeId] operator[=] identifier[schemaIndex] operator[SEP] identifier[get] operator[SEP] identifier[Long] operator[SEP] ident... |
@Api
public void setVisible(boolean visible) {
this.visible = visible;
if (googleMap != null) {
String mapsId = map.getRasterContext().getId(this);
Element gmap = DOM.getElementById(mapsId);
UIObject.setVisible(gmap, visible);
if (tosGroup != null) {
UIObject.setVisible(tosGroup, visible);
}
... | class class_name[name] begin[{]
method[setVisible, return_type[void], modifier[public], parameter[visible]] begin[{]
assign[THIS[member[None.visible]], member[.visible]]
if[binary_operation[member[.googleMap], !=, literal[null]]] begin[{]
local_variable[type[String],... | annotation[@] identifier[Api] Keyword[public] Keyword[void] identifier[setVisible] operator[SEP] Keyword[boolean] identifier[visible] operator[SEP] {
Keyword[this] operator[SEP] identifier[visible] operator[=] identifier[visible] operator[SEP] Keyword[if] operator[SEP] identifier[googleMap] operator[!=] Other[nu... |
public boolean add(T res) {
if (_dupesChecker != null) {
RepositoryResourceMatchingData matchingData = ((RepositoryResourceImpl) res).createMatchingData();
if (!_dupesChecker.contains(matchingData)) {
_dupesChecker.add(matchingData);
_backingCollection.add... | class class_name[name] begin[{]
method[add, return_type[type[boolean]], modifier[public], parameter[res]] begin[{]
if[binary_operation[member[._dupesChecker], !=, literal[null]]] begin[{]
local_variable[type[RepositoryResourceMatchingData], matchingData]
if[c... | Keyword[public] Keyword[boolean] identifier[add] operator[SEP] identifier[T] identifier[res] operator[SEP] {
Keyword[if] operator[SEP] identifier[_dupesChecker] operator[!=] Other[null] operator[SEP] {
identifier[RepositoryResourceMatchingData] identifier[matchingData] operator[=] operator[SEP] operat... |
private Type parseBracketedType(EnclosingScope scope) {
int start = index;
match(LeftBrace);
Type type = parseType(scope);
match(RightBrace);
return type;
} | class class_name[name] begin[{]
method[parseBracketedType, return_type[type[Type]], modifier[private], parameter[scope]] begin[{]
local_variable[type[int], start]
call[.match, parameter[member[.LeftBrace]]]
local_variable[type[Type], type]
call[.match, parameter[... | Keyword[private] identifier[Type] identifier[parseBracketedType] operator[SEP] identifier[EnclosingScope] identifier[scope] operator[SEP] {
Keyword[int] identifier[start] operator[=] identifier[index] operator[SEP] identifier[match] operator[SEP] identifier[LeftBrace] operator[SEP] operator[SEP] identifier[Type]... |
public void init(TacoTangoDevice tacoDevice, String devname, String nethost) throws DevFailed {
Except.throw_exception("Api_TacoFailed",
"Taco protocol not supported.\n" +
"Patch JTango.jar if Taco is needed.",
"TacoTangoDeviceDAODefaultImpl.TacoTangoDevic... | class class_name[name] begin[{]
method[init, return_type[void], modifier[public], parameter[tacoDevice, devname, nethost]] begin[{]
call[Except.throw_exception, parameter[literal["Api_TacoFailed"], binary_operation[literal["Taco protocol not supported.\n"], +, literal["Patch JTango.jar if Taco ... | Keyword[public] Keyword[void] identifier[init] operator[SEP] identifier[TacoTangoDevice] identifier[tacoDevice] , identifier[String] identifier[devname] , identifier[String] identifier[nethost] operator[SEP] Keyword[throws] identifier[DevFailed] {
identifier[Except] operator[SEP] identifier[throw_exception] op... |
@Override
protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) {
switch (state) {
case BACKGROUND_DISABLED:
case BACKGROUND_ENABLED:
case BACKGROUND_ENABLED_WINDOWNOTFOCUSED:
paintBackgroundEnabled(g, c, width, height);
... | class class_name[name] begin[{]
method[doPaint, return_type[void], modifier[protected], parameter[g, c, width, height, extendedCacheKeys]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=['BACKGROUND_DISABLED', 'BACKGROUND_ENABLED', 'BACKGROUND_ENABLED_WINDOWNOTFOCUSED'], statements=[Statement... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[doPaint] operator[SEP] identifier[Graphics2D] identifier[g] , identifier[JComponent] identifier[c] , Keyword[int] identifier[width] , Keyword[int] identifier[height] , identifier[Object] operator[SEP] operator[SEP] identifier[extendedCac... |
public void run() {
// need <bean id="..." class="org.esupportail.commons.context.ApplicationContextHolder" />
ApplicationContext applicationContext = ApplicationContextHolder.getContext();
SessionFactory sessionFactory = HibernateUtils.getSessionFactory(applicationContext);
boolean participate = Hibernat... | class class_name[name] begin[{]
method[run, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[ApplicationContext], applicationContext]
local_variable[type[SessionFactory], sessionFactory]
local_variable[type[boolean], participate]
TryStatement(block=... | Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] {
identifier[ApplicationContext] identifier[applicationContext] operator[=] identifier[ApplicationContextHolder] operator[SEP] identifier[getContext] operator[SEP] operator[SEP] operator[SEP] identifier[SessionFactory] identifier[sessionFa... |
public ImmutableSet<String> getFileAsStringSet(String param) throws IOException {
return FileUtils.loadStringSet(Files.asCharSource(getExistingFile(param), Charsets.UTF_8));
} | class class_name[name] begin[{]
method[getFileAsStringSet, return_type[type[ImmutableSet]], modifier[public], parameter[param]] begin[{]
return[call[FileUtils.loadStringSet, parameter[call[Files.asCharSource, parameter[call[.getExistingFile, parameter[member[.param]]], member[Charsets.UTF_8]]]]]]
e... | Keyword[public] identifier[ImmutableSet] operator[<] identifier[String] operator[>] identifier[getFileAsStringSet] operator[SEP] identifier[String] identifier[param] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] identifier[FileUtils] operator[SEP] identifier[loadStringSet] operator[SEP]... |
private byte[] recvFromNodeCheckBigMsg(final NodeStruct node,
final ReefNetworkGroupCommProtos.GroupCommMessage.Type msgType) {
LOG.entering("OperatorTopologyStructImpl", "recvFromNodeCheckBigMsg", new Object[]{node, msgType});
byte[] retVal = receiveFromNode(node, fals... | class class_name[name] begin[{]
method[recvFromNodeCheckBigMsg, return_type[type[byte]], modifier[private], parameter[node, msgType]] begin[{]
call[LOG.entering, parameter[literal["OperatorTopologyStructImpl"], literal["recvFromNodeCheckBigMsg"], ArrayCreator(dimensions=[None], initializer=Arra... | Keyword[private] Keyword[byte] operator[SEP] operator[SEP] identifier[recvFromNodeCheckBigMsg] operator[SEP] Keyword[final] identifier[NodeStruct] identifier[node] , Keyword[final] identifier[ReefNetworkGroupCommProtos] operator[SEP] identifier[GroupCommMessage] operator[SEP] identifier[Type] identifier[msgType] opera... |
public void restoreState(FacesContext context, Object state) {
if (context == null) {
throw new NullPointerException();
}
if (state == null) {
return;
}
methodExpressionOneArg = (MethodExpression) ((Object[]) state)[0];
methodExpressionZeroArg = (... | class class_name[name] begin[{]
method[restoreState, return_type[void], modifier[public], parameter[context, state]] begin[{]
if[binary_operation[member[.context], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_type_arguments... | Keyword[public] Keyword[void] identifier[restoreState] operator[SEP] identifier[FacesContext] identifier[context] , identifier[Object] identifier[state] operator[SEP] {
Keyword[if] operator[SEP] identifier[context] operator[==] Other[null] operator[SEP] {
Keyword[throw] Keyword[new] identifier[NullPo... |
private ImmutableSubstitution<NonFunctionalTerm> selectDownSubstitution(
ImmutableSubstitution<NonFunctionalTerm> simplificationSubstitution, ImmutableSet<Variable> rightVariables) {
ImmutableMap<Variable, NonFunctionalTerm> newMap = simplificationSubstitution.getImmutableMap().entrySet().stream()
... | class class_name[name] begin[{]
method[selectDownSubstitution, return_type[type[ImmutableSubstitution]], modifier[private], parameter[simplificationSubstitution, rightVariables]] begin[{]
local_variable[type[ImmutableMap], newMap]
return[call[substitutionFactory.getSubstitution, parameter[membe... | Keyword[private] identifier[ImmutableSubstitution] operator[<] identifier[NonFunctionalTerm] operator[>] identifier[selectDownSubstitution] operator[SEP] identifier[ImmutableSubstitution] operator[<] identifier[NonFunctionalTerm] operator[>] identifier[simplificationSubstitution] , identifier[ImmutableSet] operator[<]... |
@Override
public void visit(final Trailer trailer) {
final GedWriterLine line = new GedWriterLine(getLevel(), trailer,
getLevel() + " TRLR");
getLines().add(line);
handleChildren(trailer);
} | class class_name[name] begin[{]
method[visit, return_type[void], modifier[public], parameter[trailer]] begin[{]
local_variable[type[GedWriterLine], line]
call[.getLines, parameter[]]
call[.handleChildren, parameter[member[.trailer]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[visit] operator[SEP] Keyword[final] identifier[Trailer] identifier[trailer] operator[SEP] {
Keyword[final] identifier[GedWriterLine] identifier[line] operator[=] Keyword[new] identifier[GedWriterLine] operator[SEP] identifier[getLevel] o... |
@SuppressWarnings("unchecked")
@Override
public EList<IfcDefinitionSelect> getRelatedObjects() {
return (EList<IfcDefinitionSelect>) eGet(Ifc4Package.Literals.IFC_REL_ASSOCIATES__RELATED_OBJECTS, true);
} | class class_name[name] begin[{]
method[getRelatedObjects, return_type[type[EList]], modifier[public], parameter[]] begin[{]
return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_REL_ASSOCIATES__RELATED_OBJECTS, postfix_operators=[], prefix_operators=[], qualifier=Ifc4Package.Lit... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] annotation[@] identifier[Override] Keyword[public] identifier[EList] operator[<] identifier[IfcDefinitionSelect] operator[>] identifier[getRelatedObjects] operator[SEP] operator[SEP] {
Keyword[return] operator[SEP] identifier[... |
public static void init(final String _appKey,
final Set<UUID> _loginRoles)
{
if (AppAccessHandler.HANDLER == null) {
AppAccessHandler.HANDLER = new AppAccessHandler(_appKey, _loginRoles);
}
} | class class_name[name] begin[{]
method[init, return_type[void], modifier[public static], parameter[_appKey, _loginRoles]] begin[{]
if[binary_operation[member[AppAccessHandler.HANDLER], ==, literal[null]]] begin[{]
assign[member[AppAccessHandler.HANDLER], ClassCreator(arg... | Keyword[public] Keyword[static] Keyword[void] identifier[init] operator[SEP] Keyword[final] identifier[String] identifier[_appKey] , Keyword[final] identifier[Set] operator[<] identifier[UUID] operator[>] identifier[_loginRoles] operator[SEP] {
Keyword[if] operator[SEP] identifier[AppAccessHandler] operator[SEP... |
public boolean setPageSize(Rectangle pageSize) {
this.pageSize = pageSize;
DocListener listener;
for (Iterator iterator = listeners.iterator(); iterator.hasNext();) {
listener = (DocListener) iterator.next();
listener.setPageSize(pageSize);
}
return true;
} | class class_name[name] begin[{]
method[setPageSize, return_type[type[boolean]], modifier[public], parameter[pageSize]] begin[{]
assign[THIS[member[None.pageSize]], member[.pageSize]]
local_variable[type[DocListener], listener]
ForStatement(body=BlockStatement(label=None, stateme... | Keyword[public] Keyword[boolean] identifier[setPageSize] operator[SEP] identifier[Rectangle] identifier[pageSize] operator[SEP] {
Keyword[this] operator[SEP] identifier[pageSize] operator[=] identifier[pageSize] operator[SEP] identifier[DocListener] identifier[listener] operator[SEP] Keyword[for] operator[SEP] i... |
public void addFeaturePath( String featurePath, String filter ) {
if (!featurePaths.contains(featurePath)) {
featurePaths.add(featurePath);
if (filter == null) {
filter = "";
}
featureFilter.add(filter);
}
} | class class_name[name] begin[{]
method[addFeaturePath, return_type[void], modifier[public], parameter[featurePath, filter]] begin[{]
if[call[featurePaths.contains, parameter[member[.featurePath]]]] begin[{]
call[featurePaths.add, parameter[member[.featurePath]]]
... | Keyword[public] Keyword[void] identifier[addFeaturePath] operator[SEP] identifier[String] identifier[featurePath] , identifier[String] identifier[filter] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[featurePaths] operator[SEP] identifier[contains] operator[SEP] identifier[featurePath] operat... |
@Override
public void destroy() {
// Clean up any open resources.
if (null != redisClient) {
redisClient.disconnect();
redisClient.close();
redisClient = null;
}
super.destroy();
} | class class_name[name] begin[{]
method[destroy, return_type[void], modifier[public], parameter[]] begin[{]
if[binary_operation[literal[null], !=, member[.redisClient]]] begin[{]
call[redisClient.disconnect, parameter[]]
call[redisClient.close, par... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[destroy] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] Other[null] operator[!=] identifier[redisClient] operator[SEP] {
identifier[redisClient] operator[SEP] identifier[disconnect] operator[SEP] operator[SEP] operato... |
private String getUrl() {
MockWebServer mockWebServer = getSource();
if (!this.started) {
intializeMockWebServer(mockWebServer);
}
String url = mockWebServer.url("").url().toExternalForm();
return url.substring(0, url.length() - 1);
} | class class_name[name] begin[{]
method[getUrl, return_type[type[String]], modifier[private], parameter[]] begin[{]
local_variable[type[MockWebServer], mockWebServer]
if[THIS[member[None.started]]] begin[{]
call[.intializeMockWebServer, parameter[member[.mockWebSe... | Keyword[private] identifier[String] identifier[getUrl] operator[SEP] operator[SEP] {
identifier[MockWebServer] identifier[mockWebServer] operator[=] identifier[getSource] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[!] Keyword[this] operator[SEP] identifier[started] operator[SEP] ... |
public static GoogleMapShape addShapeToMap(GoogleMap map,
GoogleMapShape shape) {
GoogleMapShape addedShape = null;
switch (shape.getShapeType()) {
case LAT_LNG:
addedShape = new GoogleMapShape(shape.getGeometryType(),
... | class class_name[name] begin[{]
method[addShapeToMap, return_type[type[GoogleMapShape]], modifier[public static], parameter[map, shape]] begin[{]
local_variable[type[GoogleMapShape], addedShape]
SwitchStatement(cases=[SwitchStatementCase(case=['LAT_LNG'], statements=[StatementExpression(express... | Keyword[public] Keyword[static] identifier[GoogleMapShape] identifier[addShapeToMap] operator[SEP] identifier[GoogleMap] identifier[map] , identifier[GoogleMapShape] identifier[shape] operator[SEP] {
identifier[GoogleMapShape] identifier[addedShape] operator[=] Other[null] operator[SEP] Keyword[switch] operator... |
@Override
public EClass getIfcEnergyMeasure() {
if (ifcEnergyMeasureEClass == null) {
ifcEnergyMeasureEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI)
.getEClassifiers().get(805);
}
return ifcEnergyMeasureEClass;
} | class class_name[name] begin[{]
method[getIfcEnergyMeasure, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.ifcEnergyMeasureEClass], ==, literal[null]]] begin[{]
assign[member[.ifcEnergyMeasureEClass], Cast(expression=Method... | annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcEnergyMeasure] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifcEnergyMeasureEClass] operator[==] Other[null] operator[SEP] {
identifier[ifcEnergyMeasureEClass] operator[=] operator[SEP] identif... |
public static RealMatrix getColumRange (RealMatrix matrix, int start, int end) {
return matrix.getSubMatrix(0, matrix.getRowDimension() - 1, start, end);
} | class class_name[name] begin[{]
method[getColumRange, return_type[type[RealMatrix]], modifier[public static], parameter[matrix, start, end]] begin[{]
return[call[matrix.getSubMatrix, parameter[literal[0], binary_operation[call[matrix.getRowDimension, parameter[]], -, literal[1]], member[.start], member... | Keyword[public] Keyword[static] identifier[RealMatrix] identifier[getColumRange] operator[SEP] identifier[RealMatrix] identifier[matrix] , Keyword[int] identifier[start] , Keyword[int] identifier[end] operator[SEP] {
Keyword[return] identifier[matrix] operator[SEP] identifier[getSubMatrix] operator[SEP] Other[... |
private boolean isInterruptTransitively(Throwable e) {
do {
if (e instanceof InterruptedException) {
return true;
}
e = e.getCause();
} while (e != null);
return false;
} | class class_name[name] begin[{]
method[isInterruptTransitively, return_type[type[boolean]], modifier[private], parameter[e]] begin[{]
do[binary_operation[member[.e], !=, literal[null]]] begin[{]
if[binary_operation[member[.e], instanceof, type[InterruptedException]]] beg... | Keyword[private] Keyword[boolean] identifier[isInterruptTransitively] operator[SEP] identifier[Throwable] identifier[e] operator[SEP] {
Keyword[do] {
Keyword[if] operator[SEP] identifier[e] Keyword[instanceof] identifier[InterruptedException] operator[SEP] {
Keyword[return] literal[bool... |
private void startWorkerIfNeeded() {
// Perform a compare-and-swap retry loop for synchronization to make sure we don't start more
// workers than desired.
int currentCount = mPendingWorkers.get();
while (currentCount < mMaxConcurrency) {
int updatedCount = currentCount + 1;
if (mPendingWork... | class class_name[name] begin[{]
method[startWorkerIfNeeded, return_type[void], modifier[private], parameter[]] begin[{]
local_variable[type[int], currentCount]
while[binary_operation[member[.currentCount], <, member[.mMaxConcurrency]]] begin[{]
local_variable[type[int], upda... | Keyword[private] Keyword[void] identifier[startWorkerIfNeeded] operator[SEP] operator[SEP] {
Keyword[int] identifier[currentCount] operator[=] identifier[mPendingWorkers] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[while] operator[SEP] identifier[currentCount] operator[<] iden... |
public Observable<Contacts> getCertificateContactsAsync(String vaultBaseUrl) {
return getCertificateContactsWithServiceResponseAsync(vaultBaseUrl).map(new Func1<ServiceResponse<Contacts>, Contacts>() {
@Override
public Contacts call(ServiceResponse<Contacts> response) {
r... | class class_name[name] begin[{]
method[getCertificateContactsAsync, return_type[type[Observable]], modifier[public], parameter[vaultBaseUrl]] begin[{]
return[call[.getCertificateContactsWithServiceResponseAsync, parameter[member[.vaultBaseUrl]]]]
end[}]
END[}] | Keyword[public] identifier[Observable] operator[<] identifier[Contacts] operator[>] identifier[getCertificateContactsAsync] operator[SEP] identifier[String] identifier[vaultBaseUrl] operator[SEP] {
Keyword[return] identifier[getCertificateContactsWithServiceResponseAsync] operator[SEP] identifier[vaultBaseUrl] o... |
public ApiResponse<AllianceIconsResponse> getAlliancesAllianceIdIconsWithHttpInfo(Integer allianceId,
String datasource, String ifNoneMatch) throws ApiException {
com.squareup.okhttp.Call call = getAlliancesAllianceIdIconsValidateBeforeCall(allianceId, datasource,
ifNoneMatch, null);... | class class_name[name] begin[{]
method[getAlliancesAllianceIdIconsWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[allianceId, datasource, ifNoneMatch]] begin[{]
local_variable[type[com], call]
local_variable[type[Type], localVarReturnType]
return[call[apiClient... | Keyword[public] identifier[ApiResponse] operator[<] identifier[AllianceIconsResponse] operator[>] identifier[getAlliancesAllianceIdIconsWithHttpInfo] operator[SEP] identifier[Integer] identifier[allianceId] , identifier[String] identifier[datasource] , identifier[String] identifier[ifNoneMatch] operator[SEP] Keyword[... |
public HollowHistoricalStateDataAccess createConsistentOrdinalHistoricalStateFromDoubleSnapshot(long version, HollowReadStateEngine previous) {
return new HollowHistoricalStateDataAccess(totalHistory, version, previous, IdentityOrdinalRemapper.INSTANCE, Collections.<String, HollowHistoricalSchemaChange>emptyMap... | class class_name[name] begin[{]
method[createConsistentOrdinalHistoricalStateFromDoubleSnapshot, return_type[type[HollowHistoricalStateDataAccess]], modifier[public], parameter[version, previous]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=totalHistory, postfix_operators=[], prefix_... | Keyword[public] identifier[HollowHistoricalStateDataAccess] identifier[createConsistentOrdinalHistoricalStateFromDoubleSnapshot] operator[SEP] Keyword[long] identifier[version] , identifier[HollowReadStateEngine] identifier[previous] operator[SEP] {
Keyword[return] Keyword[new] identifier[HollowHistoricalStateD... |
@Nullable
public static EmailAddress getAsEmailAddress (@Nullable final InternetAddress aInternetAddress)
{
return aInternetAddress == null ? null : new EmailAddress (aInternetAddress.getAddress (),
aInternetAddress.getPersonal ());
} | class class_name[name] begin[{]
method[getAsEmailAddress, return_type[type[EmailAddress]], modifier[public static], parameter[aInternetAddress]] begin[{]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=aInternetAddress, postfix_operators=[], prefix_operators=[], quali... | annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[EmailAddress] identifier[getAsEmailAddress] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[InternetAddress] identifier[aInternetAddress] operator[SEP] {
Keyword[return] identifier[aInternetAddress] operator[... |
public static Properties stringToProperties(String str, Properties props) {
String[] propsStr = str.trim().split(",\\s*");
for (String term : propsStr) {
int divLoc = term.indexOf('=');
String key;
String value;
if (divLoc >= 0) {
key = term.substring(0, divLoc).trim();
... | class class_name[name] begin[{]
method[stringToProperties, return_type[type[Properties]], modifier[public static], parameter[str, props]] begin[{]
local_variable[type[String], propsStr]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators... | Keyword[public] Keyword[static] identifier[Properties] identifier[stringToProperties] operator[SEP] identifier[String] identifier[str] , identifier[Properties] identifier[props] operator[SEP] {
identifier[String] operator[SEP] operator[SEP] identifier[propsStr] operator[=] identifier[str] operator[SEP] identifi... |
public Method getMethod(String name, Class... parameterTypes) throws NoSuchMethodException, SecurityException {
_throw();
return null;
} | class class_name[name] begin[{]
method[getMethod, return_type[type[Method]], modifier[public], parameter[name, parameterTypes]] begin[{]
call[._throw, parameter[]]
return[literal[null]]
end[}]
END[}] | Keyword[public] identifier[Method] identifier[getMethod] operator[SEP] identifier[String] identifier[name] , identifier[Class] operator[...] identifier[parameterTypes] operator[SEP] Keyword[throws] identifier[NoSuchMethodException] , identifier[SecurityException] {
identifier[_throw] operator[SEP] operator[SEP... |
private List<ClassName> enclosingClasses() {
List<ClassName> result = new ArrayList<>();
for (ClassName c = this; c != null; c = c.enclosingClassName) {
result.add(c);
}
Collections.reverse(result);
return result;
} | class class_name[name] begin[{]
method[enclosingClasses, return_type[type[List]], modifier[private], parameter[]] begin[{]
local_variable[type[List], result]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(membe... | Keyword[private] identifier[List] operator[<] identifier[ClassName] operator[>] identifier[enclosingClasses] operator[SEP] operator[SEP] {
identifier[List] operator[<] identifier[ClassName] operator[>] identifier[result] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operato... |
protected boolean hasAttribute(List<Element> elements, String attributeName, boolean checkValue)
{
boolean hasAttribute = true;
if (!checkValue) {
for (Element e : elements) {
hasAttribute = e.hasAttribute(attributeName) ? hasAttribute : false;
}
} els... | class class_name[name] begin[{]
method[hasAttribute, return_type[type[boolean]], modifier[protected], parameter[elements, attributeName, checkValue]] begin[{]
local_variable[type[boolean], hasAttribute]
if[member[.checkValue]] begin[{]
ForStatement(body=BlockStatement(label=... | Keyword[protected] Keyword[boolean] identifier[hasAttribute] operator[SEP] identifier[List] operator[<] identifier[Element] operator[>] identifier[elements] , identifier[String] identifier[attributeName] , Keyword[boolean] identifier[checkValue] operator[SEP] {
Keyword[boolean] identifier[hasAttribute] operato... |
public void doLogin(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
if (!common.checkPost(request, response)) return;
String username = request.getParameter("username");
if (username == null) {
response.sendError(400, "Missing field \... | class class_name[name] begin[{]
method[doLogin, return_type[void], modifier[public], parameter[request, response]] begin[{]
if[call[common.checkPost, parameter[member[.request], member[.response]]]] begin[{]
return[None]
else begin[{]
None
end[}]
local_variable[type[Stri... | Keyword[public] Keyword[void] identifier[doLogin] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[HttpServletResponse] identifier[response] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ServletException] {
Keyword[if] operator[SEP] operator[!] identifier[commo... |
public String convertIfcConstructionMaterialResourceTypeEnumToString(EDataType eDataType, Object instanceValue) {
return instanceValue == null ? null : instanceValue.toString();
} | class class_name[name] begin[{]
method[convertIfcConstructionMaterialResourceTypeEnumToString, return_type[type[String]], modifier[public], parameter[eDataType, instanceValue]] begin[{]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=instanceValue, postfix_operators=[... | Keyword[public] identifier[String] identifier[convertIfcConstructionMaterialResourceTypeEnumToString] operator[SEP] identifier[EDataType] identifier[eDataType] , identifier[Object] identifier[instanceValue] operator[SEP] {
Keyword[return] identifier[instanceValue] operator[==] Other[null] operator[?] Other[null... |
public StringClauses append(String key, StringClauses subclauses) {
Validate.notNull(StringUtil.trimToNull(key), "key must be a non-null, non-empty value");
key = StringUtil.trimToEmpty(key).toLowerCase();
if (clauses.containsKey(key)) {
throw new IllegalArgumentException("Cannot a... | class class_name[name] begin[{]
method[append, return_type[type[StringClauses]], modifier[public], parameter[key, subclauses]] begin[{]
call[Validate.notNull, parameter[call[StringUtil.trimToNull, parameter[member[.key]]], literal["key must be a non-null, non-empty value"]]]
ass... | Keyword[public] identifier[StringClauses] identifier[append] operator[SEP] identifier[String] identifier[key] , identifier[StringClauses] identifier[subclauses] operator[SEP] {
identifier[Validate] operator[SEP] identifier[notNull] operator[SEP] identifier[StringUtil] operator[SEP] identifier[trimToNull] operat... |
public static final float toJulian(Date date) {
Calendar c = Calendar.getInstance();
c.setTime(date);
return toJulian(c);
} | class class_name[name] begin[{]
method[toJulian, return_type[type[float]], modifier[final public static], parameter[date]] begin[{]
local_variable[type[Calendar], c]
call[c.setTime, parameter[member[.date]]]
return[call[.toJulian, parameter[member[.c]]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[final] Keyword[float] identifier[toJulian] operator[SEP] identifier[Date] identifier[date] operator[SEP] {
identifier[Calendar] identifier[c] operator[=] identifier[Calendar] operator[SEP] identifier[getInstance] operator[SEP] operator[SEP] operator[SEP] identifier[c] oper... |
public void unproject(double x, double y, double z, double[] out) {
glu.gluUnProject(x, y, z, modelview, 0, projection, 0, viewp, 0, out, 0);
} | class class_name[name] begin[{]
method[unproject, return_type[void], modifier[public], parameter[x, y, z, out]] begin[{]
call[glu.gluUnProject, parameter[member[.x], member[.y], member[.z], member[.modelview], literal[0], member[.projection], literal[0], member[.viewp], literal[0], member[.out]... | Keyword[public] Keyword[void] identifier[unproject] operator[SEP] Keyword[double] identifier[x] , Keyword[double] identifier[y] , Keyword[double] identifier[z] , Keyword[double] operator[SEP] operator[SEP] identifier[out] operator[SEP] {
identifier[glu] operator[SEP] identifier[gluUnProject] operator[SEP] ide... |
public void updateNewModuleSelector() {
ComboBox newModuleSelector = createModuleSelector();
((AbstractLayout)(m_moduleSelector.getParent())).replaceComponent(m_moduleSelector, newModuleSelector);
m_moduleSelector = newModuleSelector;
m_moduleSelector.addValueChangeListener(new ValueCha... | class class_name[name] begin[{]
method[updateNewModuleSelector, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[ComboBox], newModuleSelector]
Cast(expression=MethodInvocation(arguments=[], member=getParent, postfix_operators=[], prefix_operators=[], qualif... | Keyword[public] Keyword[void] identifier[updateNewModuleSelector] operator[SEP] operator[SEP] {
identifier[ComboBox] identifier[newModuleSelector] operator[=] identifier[createModuleSelector] operator[SEP] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[AbstractLayout] operator[SEP] operator[S... |
public void forward( ServletRequest request, ServletResponse response )
throws ServletException, IOException
{
ScopedRequestImpl scopedRequest = ( ScopedRequestImpl ) ScopedServletUtils.unwrapRequest( request );
assert scopedRequest != null : request.getClass().getName();
scopedR... | class class_name[name] begin[{]
method[forward, return_type[void], modifier[public], parameter[request, response]] begin[{]
local_variable[type[ScopedRequestImpl], scopedRequest]
AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=scopedRequest, postfix_operators=[], prefi... | Keyword[public] Keyword[void] identifier[forward] operator[SEP] identifier[ServletRequest] identifier[request] , identifier[ServletResponse] identifier[response] operator[SEP] Keyword[throws] identifier[ServletException] , identifier[IOException] {
identifier[ScopedRequestImpl] identifier[scopedRequest] operat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.