code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
@Override
public void run() {
if (this.state != null && this.state.cancel) {
// we were already cancelled, don't run, but still post completion
this.state.documentCounter = 0;
this.state.batchCounter = 0;
runComplete(null);
return;
}
... | class class_name[name] begin[{]
method[run, return_type[void], modifier[public], parameter[]] begin[{]
if[binary_operation[binary_operation[THIS[member[None.state]], !=, literal[null]], &&, THIS[member[None.state]member[None.cancel]]]] begin[{]
assign[THIS[member[None.st... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[run] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[state] operator[!=] Other[null] operator[&&] Keyword[this] operator[SEP] identifier[state] operator[SEP] identifier[cancel] operator[SEP]... |
public void readState(DataInputStream stream) throws IOException
{
int len = mt.length;
for(int x=0;x<len;x++) mt[x] = stream.readInt();
len = mag01.length;
for(int x=0;x<len;x++) mag01[x] = stream.readInt();
mti = stream.readInt();
__nextNextGau... | class class_name[name] begin[{]
method[readState, return_type[void], modifier[public], parameter[stream]] begin[{]
local_variable[type[int], len]
ForStatement(body=StatementExpression(expression=Assignment(expressionl=MemberReference(member=mt, postfix_operators=[], prefix_operators=[], qualifi... | Keyword[public] Keyword[void] identifier[readState] operator[SEP] identifier[DataInputStream] identifier[stream] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[int] identifier[len] operator[=] identifier[mt] operator[SEP] identifier[length] operator[SEP] Keyword[for] operator[SEP] Keyword[int] i... |
public static UpdateResult update(String accessToken, UpdateGift updateGift) {
return update(accessToken, JsonUtil.toJSONString(updateGift));
} | class class_name[name] begin[{]
method[update, return_type[type[UpdateResult]], modifier[public static], parameter[accessToken, updateGift]] begin[{]
return[call[.update, parameter[member[.accessToken], call[JsonUtil.toJSONString, parameter[member[.updateGift]]]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[UpdateResult] identifier[update] operator[SEP] identifier[String] identifier[accessToken] , identifier[UpdateGift] identifier[updateGift] operator[SEP] {
Keyword[return] identifier[update] operator[SEP] identifier[accessToken] , identifier[JsonUtil] operator[SEP] iden... |
@Override
public boolean onTouchEvent(@NonNull MotionEvent event) {
final MentionSpan touchedSpan = getTouchedSpan(event);
// Android 6 occasionally throws a NullPointerException inside Editor.onTouchEvent()
// for ACTION_UP when attempting to display (uninitialised) text handles.
b... | class class_name[name] begin[{]
method[onTouchEvent, return_type[type[boolean]], modifier[public], parameter[event]] begin[{]
local_variable[type[MentionSpan], touchedSpan]
local_variable[type[boolean], superResult]
if[binary_operation[binary_operation[member[android.os.Build.VE... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[onTouchEvent] operator[SEP] annotation[@] identifier[NonNull] identifier[MotionEvent] identifier[event] operator[SEP] {
Keyword[final] identifier[MentionSpan] identifier[touchedSpan] operator[=] identifier[getTouchedSpan] operator[SEP... |
public void forEachBeanType(final Class type, final Consumer<String> beanNameConsumer) {
forEachBean(bd -> {
if (ClassUtil.isTypeOf(bd.type, type)) {
beanNameConsumer.accept(bd.name);
}
});
} | class class_name[name] begin[{]
method[forEachBeanType, return_type[void], modifier[public], parameter[type, beanNameConsumer]] begin[{]
call[.forEachBean, parameter[LambdaExpression(body=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=type, postfix_operators=[], prefi... | Keyword[public] Keyword[void] identifier[forEachBeanType] operator[SEP] Keyword[final] identifier[Class] identifier[type] , Keyword[final] identifier[Consumer] operator[<] identifier[String] operator[>] identifier[beanNameConsumer] operator[SEP] {
identifier[forEachBean] operator[SEP] identifier[bd] operator[->... |
@Override
public T copy(T from) {
if (CONCURRENT_ACCESS_CHECK) {
enterExclusiveThread();
}
try {
checkAvroInitialized();
return avroData.deepCopy(runtimeSchema, from);
}
finally {
if (CONCURRENT_ACCESS_CHECK) {
exitExclusiveThread();
}
}
} | class class_name[name] begin[{]
method[copy, return_type[type[T]], modifier[public], parameter[from]] begin[{]
if[member[.CONCURRENT_ACCESS_CHECK]] begin[{]
call[.enterExclusiveThread, parameter[]]
else begin[{]
None
end[}]
TryStatement(block=[Sta... | annotation[@] identifier[Override] Keyword[public] identifier[T] identifier[copy] operator[SEP] identifier[T] identifier[from] operator[SEP] {
Keyword[if] operator[SEP] identifier[CONCURRENT_ACCESS_CHECK] operator[SEP] {
identifier[enterExclusiveThread] operator[SEP] operator[SEP] operator[SEP]
... |
@Override
public void beginDocument(MetaData metadata)
{
for (Listener listener : this.listeners) {
listener.beginDocument(metadata);
}
} | class class_name[name] begin[{]
method[beginDocument, return_type[void], modifier[public], parameter[metadata]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=metadata, postfix_operators=[], prefix_oper... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[beginDocument] operator[SEP] identifier[MetaData] identifier[metadata] operator[SEP] {
Keyword[for] operator[SEP] identifier[Listener] identifier[listener] operator[:] Keyword[this] operator[SEP] identifier[listeners] operator[SEP] {
... |
public PackageInfo getPackageInfo(final String packageName) {
if (closed.get()) {
throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed");
}
if (!scanSpec.enableClassInfo) {
throw new IllegalArgumentException("Please call ClassGraph#enableCl... | class class_name[name] begin[{]
method[getPackageInfo, return_type[type[PackageInfo]], modifier[public], parameter[packageName]] begin[{]
if[call[closed.get, parameter[]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], q... | Keyword[public] identifier[PackageInfo] identifier[getPackageInfo] operator[SEP] Keyword[final] identifier[String] identifier[packageName] operator[SEP] {
Keyword[if] operator[SEP] identifier[closed] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] {
Keyword[throw] Keyword[new] ... |
public java.awt.Graphics2D createGraphicsShapes(float width, float height) {
return new PdfGraphics2D(this, width, height, null, true, false, 0);
} | class class_name[name] begin[{]
method[createGraphicsShapes, return_type[type[java]], modifier[public], parameter[width, height]] begin[{]
return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), MemberReference(member=width, postfix_operators=[], pr... | Keyword[public] identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[Graphics2D] identifier[createGraphicsShapes] operator[SEP] Keyword[float] identifier[width] , Keyword[float] identifier[height] operator[SEP] {
Keyword[return] Keyword[new] identifier[PdfGraphics2D] operator[SEP] Keyword[thi... |
protected final void adjust_code_for_locals_change(
MethodGen mgen, int index_first_moved_local, int size) {
InstructionList il = mgen.getInstructionList();
for (InstructionHandle ih = il.getStart(); ih != null; ih = ih.getNext()) {
Instruction inst = ih.getInstruction();
int orig_length = in... | class class_name[name] begin[{]
method[adjust_code_for_locals_change, return_type[void], modifier[final protected], parameter[mgen, index_first_moved_local, size]] begin[{]
local_variable[type[InstructionList], il]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaratio... | Keyword[protected] Keyword[final] Keyword[void] identifier[adjust_code_for_locals_change] operator[SEP] identifier[MethodGen] identifier[mgen] , Keyword[int] identifier[index_first_moved_local] , Keyword[int] identifier[size] operator[SEP] {
identifier[InstructionList] identifier[il] operator[=] identifier[mge... |
static JbcSrcJavaValue ofConstantNull(JbcSrcValueErrorReporter reporter) {
return new JbcSrcJavaValue(
SoyExpression.NULL,
/* method= */ null,
/* allowedType= */ null,
/* constantNull= */ true,
/* error= */ false,
reporter);
} | class class_name[name] begin[{]
method[ofConstantNull, return_type[type[JbcSrcJavaValue]], modifier[static], parameter[reporter]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=NULL, postfix_operators=[], prefix_operators=[], qualifier=SoyExpression, selectors=[]), Literal(postfix_opera... | Keyword[static] identifier[JbcSrcJavaValue] identifier[ofConstantNull] operator[SEP] identifier[JbcSrcValueErrorReporter] identifier[reporter] operator[SEP] {
Keyword[return] Keyword[new] identifier[JbcSrcJavaValue] operator[SEP] identifier[SoyExpression] operator[SEP] identifier[NULL] , Other[null] , Other[nu... |
public static final void sortAfps(AFPChain afpChain, Atom[] ca1, Atom[] ca2)
{
List<AFP> afpSet = afpChain.getAfpSet();
if ( debug)
System.err.println("entering sortAfps");
int pro1Len = ca1.length;
int pro2Len = ca2.length;
afpChain.setAfpIndex( new int[pro1Len][pro2Len]); //the index of (i,j)... | class class_name[name] begin[{]
method[sortAfps, return_type[void], modifier[final public static], parameter[afpChain, ca1, ca2]] begin[{]
local_variable[type[List], afpSet]
if[member[.debug]] begin[{]
call[System.err.println, parameter[literal["entering sortAfps"]]]
... | Keyword[public] Keyword[static] Keyword[final] Keyword[void] identifier[sortAfps] operator[SEP] identifier[AFPChain] identifier[afpChain] , identifier[Atom] operator[SEP] operator[SEP] identifier[ca1] , identifier[Atom] operator[SEP] operator[SEP] identifier[ca2] operator[SEP] {
identifier[List] operator[<] id... |
public ResultList<Artwork> getSeasonImages(int tvID, int seasonNumber, String language, String... includeImageLanguage) throws MovieDbException {
return tmdbSeasons.getSeasonImages(tvID, seasonNumber, language, includeImageLanguage);
} | class class_name[name] begin[{]
method[getSeasonImages, return_type[type[ResultList]], modifier[public], parameter[tvID, seasonNumber, language, includeImageLanguage]] begin[{]
return[call[tmdbSeasons.getSeasonImages, parameter[member[.tvID], member[.seasonNumber], member[.language], member[.includeIma... | Keyword[public] identifier[ResultList] operator[<] identifier[Artwork] operator[>] identifier[getSeasonImages] operator[SEP] Keyword[int] identifier[tvID] , Keyword[int] identifier[seasonNumber] , identifier[String] identifier[language] , identifier[String] operator[...] identifier[includeImageLanguage] operator[SEP... |
public Matrix4x3f reflect(Vector3fc normal, Vector3fc point, Matrix4x3f dest) {
return reflect(normal.x(), normal.y(), normal.z(), point.x(), point.y(), point.z(), dest);
} | class class_name[name] begin[{]
method[reflect, return_type[type[Matrix4x3f]], modifier[public], parameter[normal, point, dest]] begin[{]
return[call[.reflect, parameter[call[normal.x, parameter[]], call[normal.y, parameter[]], call[normal.z, parameter[]], call[point.x, parameter[]], call[point.y, para... | Keyword[public] identifier[Matrix4x3f] identifier[reflect] operator[SEP] identifier[Vector3fc] identifier[normal] , identifier[Vector3fc] identifier[point] , identifier[Matrix4x3f] identifier[dest] operator[SEP] {
Keyword[return] identifier[reflect] operator[SEP] identifier[normal] operator[SEP] identifier[x] ... |
@Override
public void setValueAt(final Object aValue, final int row, final int column) {
final Vector rowVector = (Vector) this.dataVector.elementAt(row);
rowVector.setElementAt(aValue, column);
fireTableCellUpdated(row, column);
} | class class_name[name] begin[{]
method[setValueAt, return_type[void], modifier[public], parameter[aValue, row, column]] begin[{]
local_variable[type[Vector], rowVector]
call[rowVector.setElementAt, parameter[member[.aValue], member[.column]]]
call[.fireTableCellUpdated, ... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[setValueAt] operator[SEP] Keyword[final] identifier[Object] identifier[aValue] , Keyword[final] Keyword[int] identifier[row] , Keyword[final] Keyword[int] identifier[column] operator[SEP] {
Keyword[final] identifier[Vector] identifier[... |
public <T extends Assignable> T create(final Class<T> type) throws IllegalArgumentException,
UnknownExtensionTypeException {
// Precondition checks
if (type == null) {
throw new IllegalArgumentException("Type must be specified");
}
// Get the extensionType type
... | class class_name[name] begin[{]
method[create, return_type[type[T]], modifier[public], parameter[type]] begin[{]
if[binary_operation[member[.type], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], quali... | Keyword[public] operator[<] identifier[T] Keyword[extends] identifier[Assignable] operator[>] identifier[T] identifier[create] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[T] operator[>] identifier[type] operator[SEP] Keyword[throws] identifier[IllegalArgumentException] , identifier[UnknownExt... |
private static void appendAltIDs(StringBuilder logMsg, String[] altIDs) {
logMsg.append(", altIDs: ");
if (altIDs == null) {
logMsg.append("null");
} else {
for (String altID : altIDs) {
logMsg.append("'").append(altID).append("'");
}
}... | class class_name[name] begin[{]
method[appendAltIDs, return_type[void], modifier[private static], parameter[logMsg, altIDs]] begin[{]
call[logMsg.append, parameter[literal[", altIDs: "]]]
if[binary_operation[member[.altIDs], ==, literal[null]]] begin[{]
c... | Keyword[private] Keyword[static] Keyword[void] identifier[appendAltIDs] operator[SEP] identifier[StringBuilder] identifier[logMsg] , identifier[String] operator[SEP] operator[SEP] identifier[altIDs] operator[SEP] {
identifier[logMsg] operator[SEP] identifier[append] operator[SEP] literal[String] operator[SEP] o... |
private void updateBugCollection(Project findBugsProject, Reporter bugReporter, boolean incremental) {
SortedBugCollection newBugCollection = bugReporter.getBugCollection();
try {
st.newPoint("getBugCollection");
SortedBugCollection oldBugCollection = FindbugsPlugin.getBugCollect... | class class_name[name] begin[{]
method[updateBugCollection, return_type[void], modifier[private], parameter[findBugsProject, bugReporter, incremental]] begin[{]
local_variable[type[SortedBugCollection], newBugCollection]
TryStatement(block=[StatementExpression(expression=MethodInvocation(argume... | Keyword[private] Keyword[void] identifier[updateBugCollection] operator[SEP] identifier[Project] identifier[findBugsProject] , identifier[Reporter] identifier[bugReporter] , Keyword[boolean] identifier[incremental] operator[SEP] {
identifier[SortedBugCollection] identifier[newBugCollection] operator[=] identif... |
protected WebDriver getDefaultDriver(DesiredCapabilities caps) {
String hubUrl = getHubUrl();
if (hubUrl == null) {
return new FirefoxDriver(caps);
}
try {
return new RemoteWebDriver(new URL(hubUrl), caps);
} catch (MalformedURLException e) {
throw new SebException("Unable to construct remote webdriv... | class class_name[name] begin[{]
method[getDefaultDriver, return_type[type[WebDriver]], modifier[protected], parameter[caps]] begin[{]
local_variable[type[String], hubUrl]
if[binary_operation[member[.hubUrl], ==, literal[null]]] begin[{]
return[ClassCreator(arguments=[MemberR... | Keyword[protected] identifier[WebDriver] identifier[getDefaultDriver] operator[SEP] identifier[DesiredCapabilities] identifier[caps] operator[SEP] {
identifier[String] identifier[hubUrl] operator[=] identifier[getHubUrl] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[hubUrl] opera... |
public void addListeners()
{
super.addListeners();
Record record = this.getMainRecord();
Record recClassInfo = this.getRecord(ClassInfo.CLASS_INFO_FILE);
if (recClassInfo != null)
{
record.setKeyArea(FieldData.FIELD_FILE_NAME_KEY);
SubFileFilter listen... | class class_name[name] begin[{]
method[addListeners, return_type[void], modifier[public], parameter[]] begin[{]
SuperMethodInvocation(arguments=[], member=addListeners, postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type_arguments=None)
local_variable[type[Reco... | Keyword[public] Keyword[void] identifier[addListeners] operator[SEP] operator[SEP] {
Keyword[super] operator[SEP] identifier[addListeners] operator[SEP] operator[SEP] operator[SEP] identifier[Record] identifier[record] operator[=] Keyword[this] operator[SEP] identifier[getMainRecord] operator[SEP] operator[SEP] ... |
public void dequeue(final int executionId) {
if (this.queuedFlowMap.containsKey(executionId)) {
this.queuedFlowList.remove(this.queuedFlowMap.get(executionId));
this.queuedFlowMap.remove(executionId);
}
} | class class_name[name] begin[{]
method[dequeue, return_type[void], modifier[public], parameter[executionId]] begin[{]
if[THIS[member[None.queuedFlowMap]call[None.containsKey, parameter[member[.executionId]]]]] begin[{]
THIS[member[None.queuedFlowList]call[None.remove, pa... | Keyword[public] Keyword[void] identifier[dequeue] operator[SEP] Keyword[final] Keyword[int] identifier[executionId] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[queuedFlowMap] operator[SEP] identifier[containsKey] operator[SEP] identifier[executionId] operator[SEP] operator[SE... |
public static String cleanPath(String path) throws InvalidPathException {
validatePath(path);
return FilenameUtils.separatorsToUnix(FilenameUtils.normalizeNoEndSeparator(path));
} | class class_name[name] begin[{]
method[cleanPath, return_type[type[String]], modifier[public static], parameter[path]] begin[{]
call[.validatePath, parameter[member[.path]]]
return[call[FilenameUtils.separatorsToUnix, parameter[call[FilenameUtils.normalizeNoEndSeparator, parameter[membe... | Keyword[public] Keyword[static] identifier[String] identifier[cleanPath] operator[SEP] identifier[String] identifier[path] operator[SEP] Keyword[throws] identifier[InvalidPathException] {
identifier[validatePath] operator[SEP] identifier[path] operator[SEP] operator[SEP] Keyword[return] identifier[FilenameUtils]... |
public Object convertToPropertyType(TypeMetadata entityType, String[] propertyPath, String value) {
final Class<?> propertyType = getPrimitivePropertyType(entityType, propertyPath);
if (propertyType == null) {
// not a primitive, then it is an embedded entity, need to signal an invalid query
... | class class_name[name] begin[{]
method[convertToPropertyType, return_type[type[Object]], modifier[public], parameter[entityType, propertyPath, value]] begin[{]
local_variable[type[Class], propertyType]
if[binary_operation[member[.propertyType], ==, literal[null]]] begin[{]
T... | Keyword[public] identifier[Object] identifier[convertToPropertyType] operator[SEP] identifier[TypeMetadata] identifier[entityType] , identifier[String] operator[SEP] operator[SEP] identifier[propertyPath] , identifier[String] identifier[value] operator[SEP] {
Keyword[final] identifier[Class] operator[<] operat... |
void evictAll(EntityType entityType) {
CombinedEntityCache entityCache = caches.get();
if (entityCache != null) {
LOG.trace("Removing all entities from L1 cache that belong to {}", entityType.getId());
entityCache.evictAll(entityType);
}
} | class class_name[name] begin[{]
method[evictAll, return_type[void], modifier[default], parameter[entityType]] begin[{]
local_variable[type[CombinedEntityCache], entityCache]
if[binary_operation[member[.entityCache], !=, literal[null]]] begin[{]
call[LOG.trace, pa... | Keyword[void] identifier[evictAll] operator[SEP] identifier[EntityType] identifier[entityType] operator[SEP] {
identifier[CombinedEntityCache] identifier[entityCache] operator[=] identifier[caches] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[entity... |
public String getValue() {
String value = getText().toString();
return isEmpty(value_verify_regex) ? value : (verifyValue() ? value : "");
} | class class_name[name] begin[{]
method[getValue, return_type[type[String]], modifier[public], parameter[]] begin[{]
local_variable[type[String], value]
return[TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=value_verify_regex, postfix_operators=[], prefix_operator... | Keyword[public] identifier[String] identifier[getValue] operator[SEP] operator[SEP] {
identifier[String] identifier[value] operator[=] identifier[getText] operator[SEP] operator[SEP] operator[SEP] identifier[toString] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[isEmpty] operator[SEP] ide... |
private void translateConstantDeclaration(WyilFile.Decl.StaticVariable decl) {
if (decl.hasInitialiser()) {
// The environments are needed to prevent clashes between variable
// versions across verification conditions, and also to type variables
// used in verification conditions.
GlobalEnvironment global... | class class_name[name] begin[{]
method[translateConstantDeclaration, return_type[void], modifier[private], parameter[decl]] begin[{]
if[call[decl.hasInitialiser, parameter[]]] begin[{]
local_variable[type[GlobalEnvironment], globalEnvironment]
local_variable[type[LocalEn... | Keyword[private] Keyword[void] identifier[translateConstantDeclaration] operator[SEP] identifier[WyilFile] operator[SEP] identifier[Decl] operator[SEP] identifier[StaticVariable] identifier[decl] operator[SEP] {
Keyword[if] operator[SEP] identifier[decl] operator[SEP] identifier[hasInitialiser] operator[SEP] ope... |
private void failHeartbeat() {
raft.checkThread();
// Iterate through pending timestamped heartbeat futures and fail futures that have been pending longer
// than an election timeout.
long currentTimestamp = System.currentTimeMillis();
Iterator<TimestampedFuture<Long>> iterator = heartbeatFutures.i... | class class_name[name] begin[{]
method[failHeartbeat, return_type[void], modifier[private], parameter[]] begin[{]
call[raft.checkThread, parameter[]]
local_variable[type[long], currentTimestamp]
local_variable[type[Iterator], iterator]
while[call[iterator.hasNext... | Keyword[private] Keyword[void] identifier[failHeartbeat] operator[SEP] operator[SEP] {
identifier[raft] operator[SEP] identifier[checkThread] operator[SEP] operator[SEP] operator[SEP] Keyword[long] identifier[currentTimestamp] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SE... |
public int getFieldsSendTotalByteSize(Object bean, Charset charset) {
if (!hasDynamicField()) {
return fieldsTotalSize;
} else {
return getDynamicTotalFieldSize(bean, charset);
}
} | class class_name[name] begin[{]
method[getFieldsSendTotalByteSize, return_type[type[int]], modifier[public], parameter[bean, charset]] begin[{]
if[call[.hasDynamicField, parameter[]]] begin[{]
return[member[.fieldsTotalSize]]
else begin[{]
return[call[.getDynamic... | Keyword[public] Keyword[int] identifier[getFieldsSendTotalByteSize] operator[SEP] identifier[Object] identifier[bean] , identifier[Charset] identifier[charset] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[hasDynamicField] operator[SEP] operator[SEP] operator[SEP] {
Keyword[return]... |
@Override
public void cancelFlow(final ExecutableFlow exFlow, final String userId)
throws ExecutorManagerException {
synchronized (exFlow) {
if (this.runningExecutions.get().containsKey(exFlow.getExecutionId())) {
final Pair<ExecutionReference, ExecutableFlow> pair =
this.runningEx... | class class_name[name] begin[{]
method[cancelFlow, return_type[void], modifier[public], parameter[exFlow, userId]] begin[{]
SYNCHRONIZED[member[.exFlow]] BEGIN[{]
if[THIS[member[None.runningExecutions]call[None.get, parameter[]]call[None.containsKey, parameter[call[exFlo... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[cancelFlow] operator[SEP] Keyword[final] identifier[ExecutableFlow] identifier[exFlow] , Keyword[final] identifier[String] identifier[userId] operator[SEP] Keyword[throws] identifier[ExecutorManagerException] {
Keyword[synchronized] ope... |
public Inventory queryInventory(boolean querySkuDetails, List<String> moreItemSkus,
List<String> moreSubsSkus) throws IabException {
checkSetupDone("queryInventory");
try {
Inventory inv = new Inventory();
int r = queryPurchases(inv, ITEM_TYPE_... | class class_name[name] begin[{]
method[queryInventory, return_type[type[Inventory]], modifier[public], parameter[querySkuDetails, moreItemSkus, moreSubsSkus]] begin[{]
call[.checkSetupDone, parameter[literal["queryInventory"]]]
TryStatement(block=[LocalVariableDeclaration(annotations=[]... | Keyword[public] identifier[Inventory] identifier[queryInventory] operator[SEP] Keyword[boolean] identifier[querySkuDetails] , identifier[List] operator[<] identifier[String] operator[>] identifier[moreItemSkus] , identifier[List] operator[<] identifier[String] operator[>] identifier[moreSubsSkus] operator[SEP] Keywor... |
private StringBuilder appendOrderByClause(MetamodelImpl metaModel, EntityMetadata m, EmbeddableType keyObj,
StringBuilder builder, CQLTranslator translator) {
List<SortOrdering> orders = getKunderaQuery().getOrdering();
if (orders != null) {
builder.append(CQLTranslator.SPACE_STRING... | class class_name[name] begin[{]
method[appendOrderByClause, return_type[type[StringBuilder]], modifier[private], parameter[metaModel, m, keyObj, builder, translator]] begin[{]
local_variable[type[List], orders]
if[binary_operation[member[.orders], !=, literal[null]]] begin[{]
... | Keyword[private] identifier[StringBuilder] identifier[appendOrderByClause] operator[SEP] identifier[MetamodelImpl] identifier[metaModel] , identifier[EntityMetadata] identifier[m] , identifier[EmbeddableType] identifier[keyObj] , identifier[StringBuilder] identifier[builder] , identifier[CQLTranslator] identifier[t... |
@Override
public void initializeContext(ProfileRequestContext<?, ?> context) throws ExternalAutenticationErrorCodeException {
final String logId = this.getLogString(context);
AuthnRequest authnRequest = this.getAuthnRequest(context);
if (authnRequest == null) {
log.error("No AuthnRequest available... | class class_name[name] begin[{]
method[initializeContext, return_type[void], modifier[public], parameter[context]] begin[{]
local_variable[type[String], logId]
local_variable[type[AuthnRequest], authnRequest]
if[binary_operation[member[.authnRequest], ==, literal[null]]] begin[{... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[initializeContext] operator[SEP] identifier[ProfileRequestContext] operator[<] operator[?] , operator[?] operator[>] identifier[context] operator[SEP] Keyword[throws] identifier[ExternalAutenticationErrorCodeException] {
Keyword[final] ... |
public static Analysis readAnalysis(final URL url) throws IOException {
checkNotNull(url);
try (BufferedReader reader = Resources.asCharSource(url, Charsets.UTF_8).openBufferedStream()) {
return readAnalysis(reader);
}
} | class class_name[name] begin[{]
method[readAnalysis, return_type[type[Analysis]], modifier[public static], parameter[url]] begin[{]
call[.checkNotNull, parameter[member[.url]]]
TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[MemberReference(member=reader, post... | Keyword[public] Keyword[static] identifier[Analysis] identifier[readAnalysis] operator[SEP] Keyword[final] identifier[URL] identifier[url] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[checkNotNull] operator[SEP] identifier[url] operator[SEP] operator[SEP] Keyword[try] operator[SEP] identifi... |
public static Object[] consumeVia(final Buffer buffer) throws SipParseException, IOException {
final Object[] result = new Object[4];
// start off by just finding the ';'. A Via-header MUST have a branch
// parameter and as such
// there must be a ';' present. If there isn't one, then ba... | class class_name[name] begin[{]
method[consumeVia, return_type[type[Object]], modifier[public static], parameter[buffer]] begin[{]
local_variable[type[Object], result]
local_variable[type[int], count]
local_variable[type[int], indexOfSemi]
local_variable[type[int], countOfColons... | Keyword[public] Keyword[static] identifier[Object] operator[SEP] operator[SEP] identifier[consumeVia] operator[SEP] Keyword[final] identifier[Buffer] identifier[buffer] operator[SEP] Keyword[throws] identifier[SipParseException] , identifier[IOException] {
Keyword[final] identifier[Object] operator[SEP] operato... |
public void taintPackagesDependingOnChangedClasspathPackages() throws IOException {
// 1. Collect fully qualified names of all interesting classpath dependencies
Set<String> fqDependencies = new HashSet<>();
for (Package pkg : prev.packages().values()) {
// Check if this package was... | class class_name[name] begin[{]
method[taintPackagesDependingOnChangedClasspathPackages, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[Set], fqDependencies]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments... | Keyword[public] Keyword[void] identifier[taintPackagesDependingOnChangedClasspathPackages] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[Set] operator[<] identifier[String] operator[>] identifier[fqDependencies] operator[=] Keyword[new] identifier[HashSet] operator[<] operator[... |
protected DataView<T> newDataView(final String id, final IDataProvider<T> dataProvider)
{
final DataView<T> dataView = new DataView<T>(id, dataProvider)
{
/** The Constant serialVersionUID. */
private static final long serialVersionUID = 1L;
/**
* {@inheritDoc}
*/
@Override
protected void p... | class class_name[name] begin[{]
method[newDataView, return_type[type[DataView]], modifier[protected], parameter[id, dataProvider]] begin[{]
local_variable[type[DataView], dataView]
call[dataView.setItemsPerPage, parameter[call[.newItemsPerPage, parameter[]]]]
call[dataVi... | Keyword[protected] identifier[DataView] operator[<] identifier[T] operator[>] identifier[newDataView] operator[SEP] Keyword[final] identifier[String] identifier[id] , Keyword[final] identifier[IDataProvider] operator[<] identifier[T] operator[>] identifier[dataProvider] operator[SEP] {
Keyword[final] identifier... |
private String listToString(List<String> stringList){
StringBuilder concat = new StringBuilder();
for(String str:stringList){
concat.append(str);
concat.append(System.getProperty("line.separator"));
}
return concat.toString();
} | class class_name[name] begin[{]
method[listToString, return_type[type[String]], modifier[private], parameter[stringList]] begin[{]
local_variable[type[StringBuilder], concat]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[Memb... | Keyword[private] identifier[String] identifier[listToString] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[stringList] operator[SEP] {
identifier[StringBuilder] identifier[concat] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] K... |
public static Expression power(Expression expression1, Expression expression2) {
return x("POWER(" + expression1.toString() + ", " + expression2.toString() + ")");
} | class class_name[name] begin[{]
method[power, return_type[type[Expression]], modifier[public static], parameter[expression1, expression2]] begin[{]
return[call[.x, parameter[binary_operation[binary_operation[binary_operation[binary_operation[literal["POWER("], +, call[expression1.toString, parameter[]]... | Keyword[public] Keyword[static] identifier[Expression] identifier[power] operator[SEP] identifier[Expression] identifier[expression1] , identifier[Expression] identifier[expression2] operator[SEP] {
Keyword[return] identifier[x] operator[SEP] literal[String] operator[+] identifier[expression1] operator[SEP] ide... |
public JavaWriter emitField(String type, String name) throws IOException {
return emitField(type, name, EnumSet.noneOf(Modifier.class), null);
} | class class_name[name] begin[{]
method[emitField, return_type[type[JavaWriter]], modifier[public], parameter[type, name]] begin[{]
return[call[.emitField, parameter[member[.type], member[.name], call[EnumSet.noneOf, parameter[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selecto... | Keyword[public] identifier[JavaWriter] identifier[emitField] operator[SEP] identifier[String] identifier[type] , identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] identifier[emitField] operator[SEP] identifier[type] , identifier[name] , identifier[Enum... |
public Formula getFormula() {
Reagent[] reagents = new Reagent[] {RESOURCE, SOURCE};
final Formula rslt = new SimpleFormula(ServletRedirectTask.class, reagents);
return rslt;
} | class class_name[name] begin[{]
method[getFormula, return_type[type[Formula]], modifier[public], parameter[]] begin[{]
local_variable[type[Reagent], reagents]
local_variable[type[Formula], rslt]
return[member[.rslt]]
end[}]
END[}] | Keyword[public] identifier[Formula] identifier[getFormula] operator[SEP] operator[SEP] {
identifier[Reagent] operator[SEP] operator[SEP] identifier[reagents] operator[=] Keyword[new] identifier[Reagent] operator[SEP] operator[SEP] {
identifier[RESOURCE] , identifier[SOURCE]
} operator[SEP] Key... |
private Expression compileUnary(UnaryOperation unary, int opPos)
throws TransformerException
{
int rightPos = getFirstChildPos(opPos);
unary.setRight(compile(rightPos));
return unary;
} | class class_name[name] begin[{]
method[compileUnary, return_type[type[Expression]], modifier[private], parameter[unary, opPos]] begin[{]
local_variable[type[int], rightPos]
call[unary.setRight, parameter[call[.compile, parameter[member[.rightPos]]]]]
return[member[.unary]]
e... | Keyword[private] identifier[Expression] identifier[compileUnary] operator[SEP] identifier[UnaryOperation] identifier[unary] , Keyword[int] identifier[opPos] operator[SEP] Keyword[throws] identifier[TransformerException] {
Keyword[int] identifier[rightPos] operator[=] identifier[getFirstChildPos] operator[SEP] i... |
public EClass getCPD() {
if (cpdEClass == null) {
cpdEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(AfplibPackage.eNS_URI).getEClassifiers().get(229);
}
return cpdEClass;
} | class class_name[name] begin[{]
method[getCPD, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.cpdEClass], ==, literal[null]]] begin[{]
assign[member[.cpdEClass], Cast(expression=MethodInvocation(arguments=[MemberReference(m... | Keyword[public] identifier[EClass] identifier[getCPD] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[cpdEClass] operator[==] Other[null] operator[SEP] {
identifier[cpdEClass] operator[=] operator[SEP] identifier[EClass] operator[SEP] identifier[EPackage] operator[SEP] identifier[Re... |
private void doInterceptBeforeInsert(Object t) {
List<Object> list = new ArrayList<Object>();
list.add(t);
doInterceptBeforeInsertList(list);
} | class class_name[name] begin[{]
method[doInterceptBeforeInsert, return_type[void], modifier[private], parameter[t]] begin[{]
local_variable[type[List], list]
call[list.add, parameter[member[.t]]]
call[.doInterceptBeforeInsertList, parameter[member[.list]]]
end[}]
END... | Keyword[private] Keyword[void] identifier[doInterceptBeforeInsert] operator[SEP] identifier[Object] identifier[t] operator[SEP] {
identifier[List] operator[<] identifier[Object] operator[>] identifier[list] operator[=] Keyword[new] identifier[ArrayList] operator[<] identifier[Object] operator[>] operator[SEP] op... |
@Override
@SuppressWarnings("unchecked")
public <BD extends BehaviorData, B extends Behavior<BD, ?>> B getBehavior(final Class<B> behaviorClass) {
B behavior = null;
if (this.behaviors != null && this.behaviors.get(behaviorClass) instanceof List) {
final Optional<B> oBehavior = (Op... | class class_name[name] begin[{]
method[getBehavior, return_type[type[B]], modifier[public], parameter[behaviorClass]] begin[{]
local_variable[type[B], behavior]
if[binary_operation[binary_operation[THIS[member[None.behaviors]], !=, literal[null]], &&, binary_operation[THIS[member[None.b... | annotation[@] identifier[Override] annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] operator[<] identifier[BD] Keyword[extends] identifier[BehaviorData] , identifier[B] Keyword[extends] identifier[Behavior] operator[<] identifier[BD] , operator[?] operator[>] oper... |
public Request partialUpdateObjectAsync(final @NonNull JSONObject partialObject, final @NonNull String objectID, final boolean createIfNotExists, @Nullable final RequestOptions requestOptions, @Nullable CompletionHandler completionHandler) {
return getClient().new AsyncTaskRequest(completionHandler) {
... | class class_name[name] begin[{]
method[partialUpdateObjectAsync, return_type[type[Request]], modifier[public], parameter[partialObject, objectID, createIfNotExists, requestOptions, completionHandler]] begin[{]
return[call[.getClient, parameter[]]]
end[}]
END[}] | Keyword[public] identifier[Request] identifier[partialUpdateObjectAsync] operator[SEP] Keyword[final] annotation[@] identifier[NonNull] identifier[JSONObject] identifier[partialObject] , Keyword[final] annotation[@] identifier[NonNull] identifier[String] identifier[objectID] , Keyword[final] Keyword[boolean] identifi... |
public boolean checkIndexField(BaseField field)
{
for (int iKeySeq = 0; iKeySeq < this.getRecord().getKeyAreaCount(); iKeySeq++)
{
KeyArea keyArea = this.getRecord().getKeyArea(iKeySeq);
if (keyArea.getField(0) == field)
if (field != this.getRecord().getCounte... | class class_name[name] begin[{]
method[checkIndexField, return_type[type[boolean]], modifier[public], parameter[field]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=This(postfix_oper... | Keyword[public] Keyword[boolean] identifier[checkIndexField] operator[SEP] identifier[BaseField] identifier[field] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[iKeySeq] operator[=] Other[0] operator[SEP] identifier[iKeySeq] operator[<] Keyword[this] operator[SEP] identifier[getRecord] opera... |
private String fontAvailable(String family, String[] avail)
{
for (int i = 0; i < avail.length; i++)
if (avail[i].equalsIgnoreCase(family)) return avail[i];
return null;
} | class class_name[name] begin[{]
method[fontAvailable, return_type[type[String]], modifier[private], parameter[family, avail]] begin[{]
ForStatement(body=IfStatement(condition=MemberReference(member=avail, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[ArraySelector(index=MemberRefere... | Keyword[private] identifier[String] identifier[fontAvailable] operator[SEP] identifier[String] identifier[family] , identifier[String] operator[SEP] operator[SEP] identifier[avail] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] ... |
public static <T> DBObject getBsonFromObject(T t)
throws IllegalAccessException, InstantiationException, InvocationTargetException {
Field[] fields = AnnotationUtils.filterDeepFields(t.getClass());
DBObject bson = new BasicDBObject();
for (Field field : fields) {
Method... | class class_name[name] begin[{]
method[getBsonFromObject, return_type[type[DBObject]], modifier[public static], parameter[t]] begin[{]
local_variable[type[Field], fields]
local_variable[type[DBObject], bson]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclarati... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[DBObject] identifier[getBsonFromObject] operator[SEP] identifier[T] identifier[t] operator[SEP] Keyword[throws] identifier[IllegalAccessException] , identifier[InstantiationException] , identifier[InvocationTargetException] {
iden... |
@Override
public String getZipCode() {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < 5; i++) {
sb.append(random.nextInt(10));
}
return sb.toString();
} | class class_name[name] begin[{]
method[getZipCode, return_type[type[String]], modifier[public], parameter[]] begin[{]
local_variable[type[StringBuilder], sb]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MethodInvocation(argu... | annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getZipCode] operator[SEP] operator[SEP] {
identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[i] op... |
public static List<Dashboard> findSharedDashboards(EntityManager em, PrincipalUser owner, Integer limit, String version) {
requireArgument(em != null, "Entity manager can not be null.");
TypedQuery<Dashboard> query;
if(owner == null){
if (version==null) {
query = em.createNamedQuery("Dashboard.g... | class class_name[name] begin[{]
method[findSharedDashboards, return_type[type[List]], modifier[public static], parameter[em, owner, limit, version]] begin[{]
call[.requireArgument, parameter[binary_operation[member[.em], !=, literal[null]], literal["Entity manager can not be null."]]]
l... | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Dashboard] operator[>] identifier[findSharedDashboards] operator[SEP] identifier[EntityManager] identifier[em] , identifier[PrincipalUser] identifier[owner] , identifier[Integer] identifier[limit] , identifier[String] identifier[version] operato... |
private SortedSet<String> mergeSets(SortedSet<String> primary, Set<String> secondary) {
SortedSet<String> result = primary;
if (!secondary.isEmpty()) {
result = new TreeSet<>();
result.addAll(primary);
result.addAll(secondary);
}
return result;
} | class class_name[name] begin[{]
method[mergeSets, return_type[type[SortedSet]], modifier[private], parameter[primary, secondary]] begin[{]
local_variable[type[SortedSet], result]
if[call[secondary.isEmpty, parameter[]]] begin[{]
assign[member[.result], ClassCreat... | Keyword[private] identifier[SortedSet] operator[<] identifier[String] operator[>] identifier[mergeSets] operator[SEP] identifier[SortedSet] operator[<] identifier[String] operator[>] identifier[primary] , identifier[Set] operator[<] identifier[String] operator[>] identifier[secondary] operator[SEP] {
identifier... |
public Observable<ServiceResponse<UUID>> createPrebuiltEntityRoleWithServiceResponseAsync(UUID appId, String versionId, UUID entityId, CreatePrebuiltEntityRoleOptionalParameter createPrebuiltEntityRoleOptionalParameter) {
if (this.client.endpoint() == null) {
throw new IllegalArgumentException("Para... | class class_name[name] begin[{]
method[createPrebuiltEntityRoleWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[appId, versionId, entityId, createPrebuiltEntityRoleOptionalParameter]] begin[{]
if[binary_operation[THIS[member[None.client]call[None.endpoint, pa... | Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[UUID] operator[>] operator[>] identifier[createPrebuiltEntityRoleWithServiceResponseAsync] operator[SEP] identifier[UUID] identifier[appId] , identifier[String] identifier[versionId] , identifier[UUID] identifier[ent... |
public ServiceFuture<List<UsageInner>> listWebWorkerUsagesAsync(final String resourceGroupName, final String name, final String workerPoolName, final ListOperationCallback<UsageInner> serviceCallback) {
return AzureServiceFuture.fromPageResponse(
listWebWorkerUsagesSinglePageAsync(resourceGroupName,... | class class_name[name] begin[{]
method[listWebWorkerUsagesAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceGroupName, name, workerPoolName, serviceCallback]] begin[{]
return[call[AzureServiceFuture.fromPageResponse, parameter[call[.listWebWorkerUsagesSinglePageAsync, paramet... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[UsageInner] operator[>] operator[>] identifier[listWebWorkerUsagesAsync] operator[SEP] Keyword[final] identifier[String] identifier[resourceGroupName] , Keyword[final] identifier[String] identifier[name] , Keyword[final] ide... |
public static String getProperty(Class<?> aClass, String key)
{
return getSettings().getProperty(aClass, key);
} | class class_name[name] begin[{]
method[getProperty, return_type[type[String]], modifier[public static], parameter[aClass, key]] begin[{]
return[call[.getSettings, parameter[]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[String] identifier[getProperty] operator[SEP] identifier[Class] operator[<] operator[?] operator[>] identifier[aClass] , identifier[String] identifier[key] operator[SEP] {
Keyword[return] identifier[getSettings] operator[SEP] operator[SEP] operator[SEP] identifier[getP... |
private Icon getPressedIcon(AbstractButton b, Icon defaultIcon) {
return getIcon(b, b.getPressedIcon(), defaultIcon, SynthConstants.PRESSED);
} | class class_name[name] begin[{]
method[getPressedIcon, return_type[type[Icon]], modifier[private], parameter[b, defaultIcon]] begin[{]
return[call[.getIcon, parameter[member[.b], call[b.getPressedIcon, parameter[]], member[.defaultIcon], member[SynthConstants.PRESSED]]]]
end[}]
END[}] | Keyword[private] identifier[Icon] identifier[getPressedIcon] operator[SEP] identifier[AbstractButton] identifier[b] , identifier[Icon] identifier[defaultIcon] operator[SEP] {
Keyword[return] identifier[getIcon] operator[SEP] identifier[b] , identifier[b] operator[SEP] identifier[getPressedIcon] operator[SEP] o... |
private void addExportMethod(Map<String, Node> exports, String export, Node context) {
// We can export as a property if any of the following conditions holds:
// a) ES6 class members, which the above `addExportForEs6Method` handles
// b) this is a property on a name which is also being exported
// c) t... | class class_name[name] begin[{]
method[addExportMethod, return_type[void], modifier[private], parameter[exports, export, context]] begin[{]
local_variable[type[String], methodOwnerName]
local_variable[type[boolean], isEs5StylePrototypeAssignment]
local_variable[type[String], propertyNam... | Keyword[private] Keyword[void] identifier[addExportMethod] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[Node] operator[>] identifier[exports] , identifier[String] identifier[export] , identifier[Node] identifier[context] operator[SEP] {
identifier[String] identifier[methodOwnerNam... |
protected void setHostKeyType(OpenSshConfig.Host host, Session session) {
HostKey[] hostKeys = session.getHostKeyRepository().getHostKey();
for(HostKey hostKey : hostKeys) {
if(hostKey.getHost().contains(host.getHostName())) {
session.setConfig(KEY_TYPE_CONFIG, hostKey.getTyp... | class class_name[name] begin[{]
method[setHostKeyType, return_type[void], modifier[protected], parameter[host, session]] begin[{]
local_variable[type[HostKey], hostKeys]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[], member=getHost,... | Keyword[protected] Keyword[void] identifier[setHostKeyType] operator[SEP] identifier[OpenSshConfig] operator[SEP] identifier[Host] identifier[host] , identifier[Session] identifier[session] operator[SEP] {
identifier[HostKey] operator[SEP] operator[SEP] identifier[hostKeys] operator[=] identifier[session] opera... |
public void setActiveButton(I_CmsToolbarButton button) {
m_activeButton = button;
setEditButtonsVisible((button == null) || m_editor.getSelection().equals(button));
} | class class_name[name] begin[{]
method[setActiveButton, return_type[void], modifier[public], parameter[button]] begin[{]
assign[member[.m_activeButton], member[.button]]
call[.setEditButtonsVisible, parameter[binary_operation[binary_operation[member[.button], ==, literal[null]],... | Keyword[public] Keyword[void] identifier[setActiveButton] operator[SEP] identifier[I_CmsToolbarButton] identifier[button] operator[SEP] {
identifier[m_activeButton] operator[=] identifier[button] operator[SEP] identifier[setEditButtonsVisible] operator[SEP] operator[SEP] identifier[button] operator[==] Other[nul... |
@Nonnull
public <V extends T> LObjIntLongFunctionBuilder<T, R> aCase(Class<V> argC1, LObjIntLongFunction<V, R> function) {
PartialCaseWithProduct.The pc = partialCaseFactoryMethod((a1, a2, a3) -> (argC1 == null || argC1.isInstance(a1)));
pc.evaluate(function);
return self();
} | class class_name[name] begin[{]
method[aCase, return_type[type[LObjIntLongFunctionBuilder]], modifier[public], parameter[argC1, function]] begin[{]
local_variable[type[PartialCaseWithProduct], pc]
call[pc.evaluate, parameter[member[.function]]]
return[call[.self, parameter[]]]
... | annotation[@] identifier[Nonnull] Keyword[public] operator[<] identifier[V] Keyword[extends] identifier[T] operator[>] identifier[LObjIntLongFunctionBuilder] operator[<] identifier[T] , identifier[R] operator[>] identifier[aCase] operator[SEP] identifier[Class] operator[<] identifier[V] operator[>] identifier[argC1] ,... |
public static <T> Set<T> newLinkedHashSet(Iterable<? extends T> elements) {
return Sets.newLinkedHashSet(elements);
} | class class_name[name] begin[{]
method[newLinkedHashSet, return_type[type[Set]], modifier[public static], parameter[elements]] begin[{]
return[call[Sets.newLinkedHashSet, parameter[member[.elements]]]]
end[}]
END[}] | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Set] operator[<] identifier[T] operator[>] identifier[newLinkedHashSet] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[elements] operator[SEP] {
Keyword[return] ident... |
@Override
public void infoSeeFromWest(ControllerPlayer c, double distance, double direction, double distChange,
double dirChange, double bodyFacingDirection, double headFacingDirection) {
c.infoSeePlayerOther(number, goalie, distance, direction, distChange, dirChange, bodyFac... | class class_name[name] begin[{]
method[infoSeeFromWest, return_type[void], modifier[public], parameter[c, distance, direction, distChange, dirChange, bodyFacingDirection, headFacingDirection]] begin[{]
call[c.infoSeePlayerOther, parameter[member[.number], member[.goalie], member[.distance], mem... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[infoSeeFromWest] operator[SEP] identifier[ControllerPlayer] identifier[c] , Keyword[double] identifier[distance] , Keyword[double] identifier[direction] , Keyword[double] identifier[distChange] , Keyword[double] identifier[dirChange] , Key... |
public static <K, V> CacheEvent<K, V> removal(K removedKey, V removedValue, Cache<K, V> source) {
return new RemovalEvent<>(removedKey, removedValue, source);
} | class class_name[name] begin[{]
method[removal, return_type[type[CacheEvent]], modifier[public static], parameter[removedKey, removedValue, source]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=removedKey, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberRef... | Keyword[public] Keyword[static] operator[<] identifier[K] , identifier[V] operator[>] identifier[CacheEvent] operator[<] identifier[K] , identifier[V] operator[>] identifier[removal] operator[SEP] identifier[K] identifier[removedKey] , identifier[V] identifier[removedValue] , identifier[Cache] operator[<] identifie... |
protected PListAccessor getInfoPListAccessor(XCodeContext.SourceCodeLocation location, String configuration,
String sdk)
throws MojoExecutionException, XCodeException
{
File plistFile = getPListFile(location, configuration, sdk);
if (!plistFile.isFile()) {
throw new MojoExecutionExceptio... | class class_name[name] begin[{]
method[getInfoPListAccessor, return_type[type[PListAccessor]], modifier[protected], parameter[location, configuration, sdk]] begin[{]
local_variable[type[File], plistFile]
if[call[plistFile.isFile, parameter[]]] begin[{]
ThrowStatement(express... | Keyword[protected] identifier[PListAccessor] identifier[getInfoPListAccessor] operator[SEP] identifier[XCodeContext] operator[SEP] identifier[SourceCodeLocation] identifier[location] , identifier[String] identifier[configuration] , identifier[String] identifier[sdk] operator[SEP] Keyword[throws] identifier[MojoExecut... |
@Override
public boolean decompose( ZMatrixRMaj A ) {
init(A);
for( int k = 0; k < N-1; k++ ) {
similarTransform(k);
}
return true;
} | class class_name[name] begin[{]
method[decompose, return_type[type[boolean]], modifier[public], parameter[A]] begin[{]
call[.init, parameter[member[.A]]]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(m... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[decompose] operator[SEP] identifier[ZMatrixRMaj] identifier[A] operator[SEP] {
identifier[init] operator[SEP] identifier[A] operator[SEP] operator[SEP] Keyword[for] operator[SEP] Keyword[int] identifier[k] operator[=] Other[0] operato... |
private String getResizeJavaScript() {
StringBuilder sb = new StringBuilder();
sb.append("$(window).bind(\'resizeEnd\',function(){");
sb.append(getDisplayCall());
sb.append("});");
return sb.toString();
} | class class_name[name] begin[{]
method[getResizeJavaScript, return_type[type[String]], modifier[private], parameter[]] begin[{]
local_variable[type[StringBuilder], sb]
call[sb.append, parameter[literal["$(window).bind(\'resizeEnd\',function(){"]]]
call[sb.append, paramet... | Keyword[private] identifier[String] identifier[getResizeJavaScript] operator[SEP] operator[SEP] {
identifier[StringBuilder] identifier[sb] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] identifier[sb] operator[SEP] identifier[append] operator[SEP] literal[String] ope... |
protected Component newListPanel(final String id, final IModel<ContentListModelBean> model)
{
return new ResourceBundleKeysPanel(id, model.getObject().getContentResourceKeys())
{
private static final long serialVersionUID = 1L;
@Override
protected Component newListComponent(final String id,
final Li... | class class_name[name] begin[{]
method[newListPanel, return_type[type[Component]], modifier[protected], parameter[id, model]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=id, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvocation(arguments=[], member=ge... | Keyword[protected] identifier[Component] identifier[newListPanel] operator[SEP] Keyword[final] identifier[String] identifier[id] , Keyword[final] identifier[IModel] operator[<] identifier[ContentListModelBean] operator[>] identifier[model] operator[SEP] {
Keyword[return] Keyword[new] identifier[ResourceBundleKe... |
public void pushParameterStack()
{
if (TraceComponent.isAnyTracingEnabled()&&logger.isLoggable (Level.FINE)){ //306998.15
logger.logp(Level.FINE, CLASS_NAME,"pushParameterStack", "entry");
}
if (WCCustomProperties.CHECK_REQUEST_OBJECT_IN_USE){
checkRequestObjectInUse... | class class_name[name] begin[{]
method[pushParameterStack, return_type[void], modifier[public], parameter[]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[logger.isLoggable, parameter[member[Level.FINE]]]]] begin[{]
call[log... | Keyword[public] Keyword[void] identifier[pushParameterStack] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[logger] operator[SEP] identifier[isLoggable] operator[SEP] identifier[L... |
private static Path getFileFromZip(Path path) {
byte[] buffer = new byte[1024];
try {
Path outputDir = new TempDirectory("robolectric_assets").create("fromzip");
try (InputStream zis = Fs.getInputStream(path)) {
Path fileFromZip = outputDir.resolve(path.getFileName().toString());
tr... | class class_name[name] begin[{]
method[getFileFromZip, return_type[type[Path]], modifier[private static], parameter[path]] begin[{]
local_variable[type[byte], buffer]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCre... | Keyword[private] Keyword[static] identifier[Path] identifier[getFileFromZip] operator[SEP] identifier[Path] identifier[path] operator[SEP] {
Keyword[byte] operator[SEP] operator[SEP] identifier[buffer] operator[=] Keyword[new] Keyword[byte] operator[SEP] Other[1024] operator[SEP] operator[SEP] Keyword[try] {
... |
public void performRecovery(ObjectManagerState objectManagerState)
throws ObjectManagerException
{
if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
trace.entry(this,
cclass,
"performRecovery",
... | class class_name[name] begin[{]
method[performRecovery, return_type[void], modifier[public], parameter[objectManagerState]] begin[{]
if[binary_operation[call[Tracing.isAnyTracingEnabled, parameter[]], &&, call[trace.isEntryEnabled, parameter[]]]] begin[{]
call[trace.entry, parameter... | Keyword[public] Keyword[void] identifier[performRecovery] operator[SEP] identifier[ObjectManagerState] identifier[objectManagerState] operator[SEP] Keyword[throws] identifier[ObjectManagerException] {
Keyword[if] operator[SEP] identifier[Tracing] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operat... |
public boolean handleControlWord(RtfCtrlWordData ctrlWordData) {
boolean result = true;
// just let fonttbl fall through and set last ctrl word object.
if(ctrlWordData.ctrlWord.equals("f")) { this.setFontNumber(ctrlWordData.param); result=true;}
if(ctrlWordData.ctrlWord.equals("fcharset")) { this.setCharset(... | class class_name[name] begin[{]
method[handleControlWord, return_type[type[boolean]], modifier[public], parameter[ctrlWordData]] begin[{]
local_variable[type[boolean], result]
if[call[ctrlWordData.ctrlWord.equals, parameter[literal["f"]]]] begin[{]
THIS[call[None... | Keyword[public] Keyword[boolean] identifier[handleControlWord] operator[SEP] identifier[RtfCtrlWordData] identifier[ctrlWordData] operator[SEP] {
Keyword[boolean] identifier[result] operator[=] literal[boolean] operator[SEP] Keyword[if] operator[SEP] identifier[ctrlWordData] operator[SEP] identifier[ctrlWord] op... |
public float[] t1(float[] z, int k) {
float[] result = new float[z.length];
for (int i = 0; i < z.length; i++) {
result[i] = (new Transformations()).sMulti(z[i], 30, 10, (float) 0.35);
}
return result;
} | class class_name[name] begin[{]
method[t1, return_type[type[float]], modifier[public], parameter[z, k]] begin[{]
local_variable[type[float], result]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=result, post... | Keyword[public] Keyword[float] operator[SEP] operator[SEP] identifier[t1] operator[SEP] Keyword[float] operator[SEP] operator[SEP] identifier[z] , Keyword[int] identifier[k] operator[SEP] {
Keyword[float] operator[SEP] operator[SEP] identifier[result] operator[=] Keyword[new] Keyword[float] operator[SEP] identi... |
public static <T> ConstructorExpression<T> constructor(Class<? extends T> type, Class<?>[] paramTypes, Expression<?>... exprs) {
return new ConstructorExpression<T>(type, paramTypes, exprs);
} | class class_name[name] begin[{]
method[constructor, return_type[type[ConstructorExpression]], modifier[public static], parameter[type, paramTypes, exprs]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=type, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberRef... | Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[ConstructorExpression] operator[<] identifier[T] operator[>] identifier[constructor] operator[SEP] identifier[Class] operator[<] operator[?] Keyword[extends] identifier[T] operator[>] identifier[type] , identifier[Class] operator[<] opera... |
public ISynchronizationPoint<IOException> start(byte priority, WorkProgress progress, long work) {
JoinPoint<IOException> jp = new JoinPoint<>();
jp.addToJoin(1);
processDirectory("", root, rootObject, jp, priority, progress, work);
jp.start();
return jp;
} | class class_name[name] begin[{]
method[start, return_type[type[ISynchronizationPoint]], modifier[public], parameter[priority, progress, work]] begin[{]
local_variable[type[JoinPoint], jp]
call[jp.addToJoin, parameter[literal[1]]]
call[.processDirectory, parameter[literal... | Keyword[public] identifier[ISynchronizationPoint] operator[<] identifier[IOException] operator[>] identifier[start] operator[SEP] Keyword[byte] identifier[priority] , identifier[WorkProgress] identifier[progress] , Keyword[long] identifier[work] operator[SEP] {
identifier[JoinPoint] operator[<] identifier[IOEx... |
private void gatherInfoFromURL(URL url) throws MalformedURLException {
// Weird VFS behavior... returns jar:file:...jar!/
if(url.getProtocol().equals("jar")) {
this.url = new URL(url.getFile().replaceFirst("!/", "/"));
}
else {
this.url = url;
}
this.fullPath = this.url.get... | class class_name[name] begin[{]
method[gatherInfoFromURL, return_type[void], modifier[private], parameter[url]] begin[{]
if[call[url.getProtocol, parameter[]]] begin[{]
assign[THIS[member[None.url]], ClassCreator(arguments=[MethodInvocation(arguments=[], member=getFile, ... | Keyword[private] Keyword[void] identifier[gatherInfoFromURL] operator[SEP] identifier[URL] identifier[url] operator[SEP] Keyword[throws] identifier[MalformedURLException] {
Keyword[if] operator[SEP] identifier[url] operator[SEP] identifier[getProtocol] operator[SEP] operator[SEP] operator[SEP] identifier[equals]... |
@Override
public boolean route(String msg, LogRecord logRecord) {
if (!isValidMessage(msg)) {
return true;
}
Set<String> logHandlerIdSet = getLogHandlersForMessage(msg);
if (logHandlerIdSet == null) {
// There are no routing requirements for this msgId.
... | class class_name[name] begin[{]
method[route, return_type[type[boolean]], modifier[public], parameter[msg, logRecord]] begin[{]
if[call[.isValidMessage, parameter[member[.msg]]]] begin[{]
return[literal[true]]
else begin[{]
None
end[}]
local_variable[type[Set... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[route] operator[SEP] identifier[String] identifier[msg] , identifier[LogRecord] identifier[logRecord] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[isValidMessage] operator[SEP] identifier[msg] operator[SEP] operat... |
@Override
public void afterProblemFactRemoved(Object problemFact) {
FactHandle factHandle = kieSession.getFactHandle(problemFact);
if (factHandle == null) {
throw new IllegalArgumentException("The problemFact (" + problemFact
+ ") was never added to this ScoreDirector... | class class_name[name] begin[{]
method[afterProblemFactRemoved, return_type[void], modifier[public], parameter[problemFact]] begin[{]
local_variable[type[FactHandle], factHandle]
if[binary_operation[member[.factHandle], ==, literal[null]]] begin[{]
ThrowStatement(expression=... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[afterProblemFactRemoved] operator[SEP] identifier[Object] identifier[problemFact] operator[SEP] {
identifier[FactHandle] identifier[factHandle] operator[=] identifier[kieSession] operator[SEP] identifier[getFactHandle] operator[SEP] iden... |
private static void _traceMessageId(TraceComponent callersTrace, String action, String messageText)
{
// Build the trace string
String traceText = action + ": " + messageText;
// Trace using the correct trace group
if (light_tc.isDebugEnabled()) {
SibTr.debug(light_tc, traceText);
}
... | class class_name[name] begin[{]
method[_traceMessageId, return_type[void], modifier[private static], parameter[callersTrace, action, messageText]] begin[{]
local_variable[type[String], traceText]
if[call[light_tc.isDebugEnabled, parameter[]]] begin[{]
call[SibTr.... | Keyword[private] Keyword[static] Keyword[void] identifier[_traceMessageId] operator[SEP] identifier[TraceComponent] identifier[callersTrace] , identifier[String] identifier[action] , identifier[String] identifier[messageText] operator[SEP] {
identifier[String] identifier[traceText] operator[=] identifier[actio... |
public static <T extends ImageGray<T>>
T bitmapToGray( Bitmap input , T output , Class<T> imageType , byte[] storage) {
if( imageType == GrayF32.class )
return (T)bitmapToGray(input,(GrayF32)output,storage);
else if( imageType == GrayU8.class )
return (T)bitmapToGray(input,(GrayU8)output,storage);
else
... | class class_name[name] begin[{]
method[bitmapToGray, return_type[type[T]], modifier[public static], parameter[input, output, imageType, storage]] begin[{]
if[binary_operation[member[.imageType], ==, ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type=Referen... | Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[ImageGray] operator[<] identifier[T] operator[>] operator[>] identifier[T] identifier[bitmapToGray] operator[SEP] identifier[Bitmap] identifier[input] , identifier[T] identifier[output] , identifier[Class] operator[<] identifier[T] ... |
private void doClose() {
open = false;
connections.remove(this);
for (Map.Entry<Long, ContextualFuture> entry : futures.entrySet()) {
ContextualFuture future = entry.getValue();
try {
future.context.executor().execute(() -> future.completeExceptionally(new ConnectException("connection c... | class class_name[name] begin[{]
method[doClose, return_type[void], modifier[private], parameter[]] begin[{]
assign[member[.open], literal[false]]
call[connections.remove, parameter[THIS[]]]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration... | Keyword[private] Keyword[void] identifier[doClose] operator[SEP] operator[SEP] {
identifier[open] operator[=] literal[boolean] operator[SEP] identifier[connections] operator[SEP] identifier[remove] operator[SEP] Keyword[this] operator[SEP] operator[SEP] Keyword[for] operator[SEP] identifier[Map] operator[SEP] id... |
public static List<Domain> getRunningDomains(Connect libvirt) {
try {
List<Domain> domains = new ArrayList<>();
int[] ids = libvirt.listDomains();
for (int id : ids) {
domains.add(libvirt.domainLookupByID(id));
}
return domains;
... | class class_name[name] begin[{]
method[getRunningDomains, return_type[type[List]], modifier[public static], parameter[libvirt]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, construc... | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Domain] operator[>] identifier[getRunningDomains] operator[SEP] identifier[Connect] identifier[libvirt] operator[SEP] {
Keyword[try] {
identifier[List] operator[<] identifier[Domain] operator[>] identifier[domains] operator[=] Key... |
public void getGroupsForUser(List<String> grpMbrshipAttrs, int countLimit) throws Exception {
throw new WIMApplicationException(WIMMessageKey.METHOD_NOT_IMPLEMENTED, Tr.formatMessage(tc, WIMMessageKey.METHOD_NOT_IMPLEMENTED));
} | class class_name[name] begin[{]
method[getGroupsForUser, return_type[void], modifier[public], parameter[grpMbrshipAttrs, countLimit]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[MemberReference(member=METHOD_NOT_IMPLEMENTED, postfix_operators=[], prefix_operators=[], qualifier=WIMMessage... | Keyword[public] Keyword[void] identifier[getGroupsForUser] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[grpMbrshipAttrs] , Keyword[int] identifier[countLimit] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[throw] Keyword[new] identifier[WIMApplicationExcept... |
public List find(String nativeQuery, List<String> relations, EntityMetadata m)
{
List entities = new ArrayList();
s = getStatelessSession();
SQLQuery q = s.createSQLQuery(nativeQuery);
q.setResultTransformer(AliasToEntityMapResultTransformer.INSTANCE);
List result = q.list... | class class_name[name] begin[{]
method[find, return_type[type[List]], modifier[public], parameter[nativeQuery, relations, m]] begin[{]
local_variable[type[List], entities]
assign[member[.s], call[.getStatelessSession, parameter[]]]
local_variable[type[SQLQuery], q]
... | Keyword[public] identifier[List] identifier[find] operator[SEP] identifier[String] identifier[nativeQuery] , identifier[List] operator[<] identifier[String] operator[>] identifier[relations] , identifier[EntityMetadata] identifier[m] operator[SEP] {
identifier[List] identifier[entities] operator[=] Keyword[new... |
public ChronoLocalDate dateNow(Clock clock) {
Jdk8Methods.requireNonNull(clock, "clock");
return date(LocalDate.now(clock));
} | class class_name[name] begin[{]
method[dateNow, return_type[type[ChronoLocalDate]], modifier[public], parameter[clock]] begin[{]
call[Jdk8Methods.requireNonNull, parameter[member[.clock], literal["clock"]]]
return[call[.date, parameter[call[LocalDate.now, parameter[member[.clock]]]]]]
... | Keyword[public] identifier[ChronoLocalDate] identifier[dateNow] operator[SEP] identifier[Clock] identifier[clock] operator[SEP] {
identifier[Jdk8Methods] operator[SEP] identifier[requireNonNull] operator[SEP] identifier[clock] , literal[String] operator[SEP] operator[SEP] Keyword[return] identifier[date] operat... |
public PagedList<EndpointServiceResultInner> list(final String location) {
ServiceResponse<Page<EndpointServiceResultInner>> response = listSinglePageAsync(location).toBlocking().single();
return new PagedList<EndpointServiceResultInner>(response.body()) {
@Override
public Page<E... | class class_name[name] begin[{]
method[list, return_type[type[PagedList]], modifier[public], parameter[location]] begin[{]
local_variable[type[ServiceResponse], response]
return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=body, postfix_operators=[], prefix_operators=[], qualif... | Keyword[public] identifier[PagedList] operator[<] identifier[EndpointServiceResultInner] operator[>] identifier[list] operator[SEP] Keyword[final] identifier[String] identifier[location] operator[SEP] {
identifier[ServiceResponse] operator[<] identifier[Page] operator[<] identifier[EndpointServiceResultInner] op... |
public long getSize() {
long size = isParsed ? getContentSize() : content.limit();
size += (8 + // size|type
(size >= ((1L << 32) - 8) ? 8 : 0) + // 32bit - 8 byte size and type
(UserBox.TYPE.equals(getType()) ? 16 : 0));
size += (deadBytes == null ? 0 : deadBytes... | class class_name[name] begin[{]
method[getSize, return_type[type[long]], modifier[public], parameter[]] begin[{]
local_variable[type[long], size]
assign[member[.size], binary_operation[binary_operation[literal[8], +, TernaryExpression(condition=BinaryOperation(operandl=MemberReference(m... | Keyword[public] Keyword[long] identifier[getSize] operator[SEP] operator[SEP] {
Keyword[long] identifier[size] operator[=] identifier[isParsed] operator[?] identifier[getContentSize] operator[SEP] operator[SEP] operator[:] identifier[content] operator[SEP] identifier[limit] operator[SEP] operator[SEP] operator[... |
private Map<NodeId, NodeId> resolveAliases(Iterable<Alias> aliases) {
Map<NodeId, NodeId> resolved = Maps.newHashMap();
Map<NodeId, Set<NodeId>> inverse = Maps.newHashMap();
for (Alias alias : aliases) {
NodeId from = alias.getFromId();
NodeId to = alias.getToId();
... | class class_name[name] begin[{]
method[resolveAliases, return_type[type[Map]], modifier[private], parameter[aliases]] begin[{]
local_variable[type[Map], resolved]
local_variable[type[Map], inverse]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotat... | Keyword[private] identifier[Map] operator[<] identifier[NodeId] , identifier[NodeId] operator[>] identifier[resolveAliases] operator[SEP] identifier[Iterable] operator[<] identifier[Alias] operator[>] identifier[aliases] operator[SEP] {
identifier[Map] operator[<] identifier[NodeId] , identifier[NodeId] operat... |
public static List<Monomer> getAllMonomers(MonomerNotation not, int position) throws HELM2HandledException,
MonomerException, NotationException, ChemistryException, CTKException, MonomerLoadingException {
List<Monomer> monomers = new ArrayList<Monomer>();
MonomerFactory monomerFactory = MonomerFactory.getIn... | class class_name[name] begin[{]
method[getAllMonomers, return_type[type[List]], modifier[public static], parameter[not, position]] begin[{]
local_variable[type[List], monomers]
local_variable[type[MonomerFactory], monomerFactory]
local_variable[type[MonomerStore], monomerStore]
... | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Monomer] operator[>] identifier[getAllMonomers] operator[SEP] identifier[MonomerNotation] identifier[not] , Keyword[int] identifier[position] operator[SEP] Keyword[throws] identifier[HELM2HandledException] , identifier[MonomerException] , identi... |
public Object nextElement()
{
if (_array == null)
{
return null;
}
else
{
synchronized(this){
if (_index < _array.length)
{
Object obj = _array[_index];
_index++;
... | class class_name[name] begin[{]
method[nextElement, return_type[type[Object]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[._array], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
SYNCHRONIZED[THIS[]] BEGIN[{]
... | Keyword[public] identifier[Object] identifier[nextElement] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[_array] operator[==] Other[null] operator[SEP] {
Keyword[return] Other[null] operator[SEP]
}
Keyword[else] {
Keyword[synchronized] operator[SEP] Keywor... |
public ApiResponse<Templates> putTemplatesWithHttpInfo() throws ApiException {
com.squareup.okhttp.Call call = putTemplatesValidateBeforeCall(null, null);
Type localVarReturnType = new TypeToken<Templates>(){}.getType();
return apiClient.execute(call, localVarReturnType);
} | class class_name[name] begin[{]
method[putTemplatesWithHttpInfo, return_type[type[ApiResponse]], modifier[public], parameter[]] begin[{]
local_variable[type[com], call]
local_variable[type[Type], localVarReturnType]
return[call[apiClient.execute, parameter[member[.call], member[.localVa... | Keyword[public] identifier[ApiResponse] operator[<] identifier[Templates] operator[>] identifier[putTemplatesWithHttpInfo] operator[SEP] operator[SEP] Keyword[throws] identifier[ApiException] {
identifier[com] operator[SEP] identifier[squareup] operator[SEP] identifier[okhttp] operator[SEP] identifier[Call] iden... |
public JSONArray toJSONArray(Collection<String> names) throws JSONException {
if (CollectionUtil.isEmpty(names)) {
return null;
}
final JSONArray ja = new JSONArray();
Object value;
for (String name : names) {
value = this.get(name);
if (null != value) {
ja.put(value);
}
}
retu... | class class_name[name] begin[{]
method[toJSONArray, return_type[type[JSONArray]], modifier[public], parameter[names]] begin[{]
if[call[CollectionUtil.isEmpty, parameter[member[.names]]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
local_variable[... | Keyword[public] identifier[JSONArray] identifier[toJSONArray] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[names] operator[SEP] Keyword[throws] identifier[JSONException] {
Keyword[if] operator[SEP] identifier[CollectionUtil] operator[SEP] identifier[isEmpty] operator... |
private void cmbJavaTypeActionPerformed (java.awt.event.ActionEvent evt)//GEN-FIRST:event_cmbJavaTypeActionPerformed
{//GEN-HEADEREND:event_cmbJavaTypeActionPerformed
// Add your handling code here:
aColumn.setJavaFieldType(cmbJavaType.getSelectedItem().toString());
if (cmbJavaType.getModel() instance... | class class_name[name] begin[{]
method[cmbJavaTypeActionPerformed, return_type[void], modifier[private], parameter[evt]] begin[{]
call[aColumn.setJavaFieldType, parameter[call[cmbJavaType.getSelectedItem, parameter[]]]]
if[binary_operation[call[cmbJavaType.getModel, parameter[]]... | Keyword[private] Keyword[void] identifier[cmbJavaTypeActionPerformed] operator[SEP] identifier[java] operator[SEP] identifier[awt] operator[SEP] identifier[event] operator[SEP] identifier[ActionEvent] identifier[evt] operator[SEP] {
identifier[aColumn] operator[SEP] identifier[setJavaFieldType] operator[SEP] ide... |
public Se3_F64 getWorldToCurr3D() {
// compute transform in 2D space
Se2_F64 currToWorld = getCurrToWorld2D();
// 2D to 3D coordinates
currPlaneToWorld3D.getT().set(-currToWorld.T.y, 0, currToWorld.T.x);
DMatrixRMaj R = currPlaneToWorld3D.getR();
// set rotation around Y axis.
// Transpose the 2D trans... | class class_name[name] begin[{]
method[getWorldToCurr3D, return_type[type[Se3_F64]], modifier[public], parameter[]] begin[{]
local_variable[type[Se2_F64], currToWorld]
call[currPlaneToWorld3D.getT, parameter[]]
local_variable[type[DMatrixRMaj], R]
call[R.unsafe_s... | Keyword[public] identifier[Se3_F64] identifier[getWorldToCurr3D] operator[SEP] operator[SEP] {
identifier[Se2_F64] identifier[currToWorld] operator[=] identifier[getCurrToWorld2D] operator[SEP] operator[SEP] operator[SEP] identifier[currPlaneToWorld3D] operator[SEP] identifier[getT] operator[SEP] operator[SEP] o... |
public java.util.List<GlobalCluster> getGlobalClusters() {
if (globalClusters == null) {
globalClusters = new com.amazonaws.internal.SdkInternalList<GlobalCluster>();
}
return globalClusters;
} | class class_name[name] begin[{]
method[getGlobalClusters, return_type[type[java]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.globalClusters], ==, literal[null]]] begin[{]
assign[member[.globalClusters], ClassCreator(arguments=[], body=None, cons... | Keyword[public] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[List] operator[<] identifier[GlobalCluster] operator[>] identifier[getGlobalClusters] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[globalClusters] operator[==] Other[null] operator[SEP] {
ide... |
public static Map<String, String> parseProperties(String text) {
String[] lines = text.split("\n");
Map<String, String> result = new HashMap<String, String>();
for (String line : lines) {
line = line.replaceFirst("^ +", "");
line = line.replaceAll("\r", "");
... | class class_name[name] begin[{]
method[parseProperties, return_type[type[Map]], modifier[public static], parameter[text]] begin[{]
local_variable[type[String], lines]
local_variable[type[Map], result]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expressio... | Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[parseProperties] operator[SEP] identifier[String] identifier[text] operator[SEP] {
identifier[String] operator[SEP] operator[SEP] identifier[lines] operator[=] identifier[text] operator[SEP... |
protected double calculateLofWithUpdate(LofPoint recievedPoint, LofDataSet dataSet)
{
double result = 0.0d;
if (this.hasIntermediate)
{
result = LofCalculator.calculateLofWithUpdate(this.kn, this.maxDataCount,
recievedPoint, dataSet);
}
else
... | class class_name[name] begin[{]
method[calculateLofWithUpdate, return_type[type[double]], modifier[protected], parameter[recievedPoint, dataSet]] begin[{]
local_variable[type[double], result]
if[THIS[member[None.hasIntermediate]]] begin[{]
assign[member[.result],... | Keyword[protected] Keyword[double] identifier[calculateLofWithUpdate] operator[SEP] identifier[LofPoint] identifier[recievedPoint] , identifier[LofDataSet] identifier[dataSet] operator[SEP] {
Keyword[double] identifier[result] operator[=] literal[Float] operator[SEP] Keyword[if] operator[SEP] Keyword[this] oper... |
public void register(final SelectableChannel ch, final int interestOps, final NioTask<?> task) {
if (ch == null) {
throw new NullPointerException("ch");
}
if (interestOps == 0) {
throw new IllegalArgumentException("interestOps must be non-zero.");
}
if ((i... | class class_name[name] begin[{]
method[register, return_type[void], modifier[public], parameter[ch, interestOps, task]] begin[{]
if[binary_operation[member[.ch], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], prefix_opera... | Keyword[public] Keyword[void] identifier[register] operator[SEP] Keyword[final] identifier[SelectableChannel] identifier[ch] , Keyword[final] Keyword[int] identifier[interestOps] , Keyword[final] identifier[NioTask] operator[<] operator[?] operator[>] identifier[task] operator[SEP] {
Keyword[if] operator[SEP] ... |
private double[][] solveL(double[][] X) {
final int n = L.length, m = X[0].length;
{ // First iteration, simplified.
final double[] X0 = X[0], L0 = L[0];
for(int j = 0; j < m; j++) {
X0[j] /= L0[0];
}
}
for(int k = 1; k < n; k++) {
final double[] Xk = X[k], Lk = L[k];
... | class class_name[name] begin[{]
method[solveL, return_type[type[double]], modifier[private], parameter[X]] begin[{]
local_variable[type[int], n]
local_variable[type[double], X0]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(ex... | Keyword[private] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[solveL] operator[SEP] Keyword[double] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[X] operator[SEP] {
Keyword[final] Keyword[int] identifier[n] operator[=] identifier[L] operator[SEP] identif... |
@Override
public void execute(IntuitMessage intuitMessage) throws FMSException {
LOG.debug("Enter PrepareRequestInterceptor...");
RequestElements requestElements = intuitMessage.getRequestElements();
Map<String, String> requestParameters = requestElements.getRequestParameters();
String action = (requestEleme... | class class_name[name] begin[{]
method[execute, return_type[void], modifier[public], parameter[intuitMessage]] begin[{]
call[LOG.debug, parameter[literal["Enter PrepareRequestInterceptor..."]]]
local_variable[type[RequestElements], requestElements]
local_variable[type[Map], requ... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[execute] operator[SEP] identifier[IntuitMessage] identifier[intuitMessage] operator[SEP] Keyword[throws] identifier[FMSException] {
identifier[LOG] operator[SEP] identifier[debug] operator[SEP] literal[String] operator[SEP] operator[SEP]... |
private static Map<String, Object> buildJSONBody(List<RevisionInternal> revs, final Database db) {
// Build up a JSON body describing what revisions we want:
final int maxRevTreeDepth = db.getMaxRevTreeDepth();
Collection<Map<String, Object>> keys = CollectionUtils.transform(
rev... | class class_name[name] begin[{]
method[buildJSONBody, return_type[type[Map]], modifier[private static], parameter[revs, db]] begin[{]
local_variable[type[int], maxRevTreeDepth]
local_variable[type[Collection], keys]
local_variable[type[Map], retval]
call[retval.put, para... | Keyword[private] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[buildJSONBody] operator[SEP] identifier[List] operator[<] identifier[RevisionInternal] operator[>] identifier[revs] , Keyword[final] identifier[Database] identifier[db] operator[SEP] {
Ke... |
public static Object streamIn(byte[] bytes, ClassLoader classLoader)
throws IOException, ClassNotFoundException {
return streamIn(bytes, classLoader, false);
} | class class_name[name] begin[{]
method[streamIn, return_type[type[Object]], modifier[public static], parameter[bytes, classLoader]] begin[{]
return[call[.streamIn, parameter[member[.bytes], member[.classLoader], literal[false]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[Object] identifier[streamIn] operator[SEP] Keyword[byte] operator[SEP] operator[SEP] identifier[bytes] , identifier[ClassLoader] identifier[classLoader] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ClassNotFoundException] {
Keyword[return] identi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.