code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
@Override
protected void initialize(final char[] input) {
super.initialize(input);
this.tag = new ParsedTag();
this.doctype = new ParsedDoctype();
this.text = new char[1024];
this.textLen = 0;
this.parsingTime = -1;
} | class class_name[name] begin[{]
method[initialize, return_type[void], modifier[protected], parameter[input]] begin[{]
SuperMethodInvocation(arguments=[MemberReference(member=input, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=initialize, postfix_operators=[], pr... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[initialize] operator[SEP] Keyword[final] Keyword[char] operator[SEP] operator[SEP] identifier[input] operator[SEP] {
Keyword[super] operator[SEP] identifier[initialize] operator[SEP] identifier[input] operator[SEP] operator[SEP] Keywo... |
public Release createRelease(Object projectIdOrPath, String tagName, String releaseNotes) throws GitLabApiException {
Form formData = new GitLabApiForm().withParam("description", releaseNotes);
Response response = post(Response.Status.CREATED, formData.asMap(),
"projects", getProjectIdOr... | class class_name[name] begin[{]
method[createRelease, return_type[type[Release]], modifier[public], parameter[projectIdOrPath, tagName, releaseNotes]] begin[{]
local_variable[type[Form], formData]
local_variable[type[Response], response]
return[call[response.readEntity, parameter[ClassR... | Keyword[public] identifier[Release] identifier[createRelease] operator[SEP] identifier[Object] identifier[projectIdOrPath] , identifier[String] identifier[tagName] , identifier[String] identifier[releaseNotes] operator[SEP] Keyword[throws] identifier[GitLabApiException] {
identifier[Form] identifier[formData] ... |
public void setRejectedPatches(java.util.Collection<String> rejectedPatches) {
if (rejectedPatches == null) {
this.rejectedPatches = null;
return;
}
this.rejectedPatches = new com.amazonaws.internal.SdkInternalList<String>(rejectedPatches);
} | class class_name[name] begin[{]
method[setRejectedPatches, return_type[void], modifier[public], parameter[rejectedPatches]] begin[{]
if[binary_operation[member[.rejectedPatches], ==, literal[null]]] begin[{]
assign[THIS[member[None.rejectedPatches]], literal[null]]
... | Keyword[public] Keyword[void] identifier[setRejectedPatches] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[rejectedPatches] operator[SEP] {
Keyword[if] operator[SEP] identifier[rejectedPatches] operator[==]... |
public Matrix4d set(float m[], int off) {
m00 = m[off+0];
m01 = m[off+1];
m02 = m[off+2];
m03 = m[off+3];
m10 = m[off+4];
m11 = m[off+5];
m12 = m[off+6];
m13 = m[off+7];
m20 = m[off+8];
m21 = m[off+9];
m22 = m[off+10];
m23 =... | class class_name[name] begin[{]
method[set, return_type[type[Matrix4d]], modifier[public], parameter[m, off]] begin[{]
assign[member[.m00], member[.m]]
assign[member[.m01], member[.m]]
assign[member[.m02], member[.m]]
assign[member[.m03], member[.... | Keyword[public] identifier[Matrix4d] identifier[set] operator[SEP] Keyword[float] identifier[m] operator[SEP] operator[SEP] , Keyword[int] identifier[off] operator[SEP] {
identifier[m00] operator[=] identifier[m] operator[SEP] identifier[off] operator[+] Other[0] operator[SEP] operator[SEP] identifier[m01] oper... |
void lock(final DeviceProxy deviceProxy, final int validity) throws DevFailed {
deviceProxy.import_admin_device("lock");
final DevVarLongStringArray lsa = new DevVarLongStringArray();
lsa.svalue = new String[1];
lsa.lvalue = new int[1];
lsa.svalue[0] = deviceProxy.get_name();
... | class class_name[name] begin[{]
method[lock, return_type[void], modifier[default], parameter[deviceProxy, validity]] begin[{]
call[deviceProxy.import_admin_device, parameter[literal["lock"]]]
local_variable[type[DevVarLongStringArray], lsa]
assign[member[lsa.svalue], Arr... | Keyword[void] identifier[lock] operator[SEP] Keyword[final] identifier[DeviceProxy] identifier[deviceProxy] , Keyword[final] Keyword[int] identifier[validity] operator[SEP] Keyword[throws] identifier[DevFailed] {
identifier[deviceProxy] operator[SEP] identifier[import_admin_device] operator[SEP] literal[String]... |
public static HtmlTree FRAME(String src, String name, String title) {
return FRAME(src, name, title, null);
} | class class_name[name] begin[{]
method[FRAME, return_type[type[HtmlTree]], modifier[public static], parameter[src, name, title]] begin[{]
return[call[.FRAME, parameter[member[.src], member[.name], member[.title], literal[null]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[HtmlTree] identifier[FRAME] operator[SEP] identifier[String] identifier[src] , identifier[String] identifier[name] , identifier[String] identifier[title] operator[SEP] {
Keyword[return] identifier[FRAME] operator[SEP] identifier[src] , identifier[name] , identifier[... |
public void readyToWrite()
{
addSignatureIfNeed();
this.name_index = ((SubClass)classFile).resolveNameIndex(getSimpleName());
this.descriptor_index = ((SubClass)classFile).resolveNameIndex(Descriptor.getDesriptor(this));
readyToWrite = true;
} | class class_name[name] begin[{]
method[readyToWrite, return_type[void], modifier[public], parameter[]] begin[{]
call[.addSignatureIfNeed, parameter[]]
assign[THIS[member[None.name_index]], Cast(expression=MemberReference(member=classFile, postfix_operators=[], prefix_operators=[... | Keyword[public] Keyword[void] identifier[readyToWrite] operator[SEP] operator[SEP] {
identifier[addSignatureIfNeed] operator[SEP] operator[SEP] operator[SEP] Keyword[this] operator[SEP] identifier[name_index] operator[=] operator[SEP] operator[SEP] identifier[SubClass] operator[SEP] identifier[classFile] operato... |
@Override
public <TYPE extends Assignable> TYPE as(final Class<TYPE> clazz) {
return archive.as(clazz);
} | class class_name[name] begin[{]
method[as, return_type[type[TYPE]], modifier[public], parameter[clazz]] begin[{]
return[call[archive.as, parameter[member[.clazz]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] operator[<] identifier[TYPE] Keyword[extends] identifier[Assignable] operator[>] identifier[TYPE] identifier[as] operator[SEP] Keyword[final] identifier[Class] operator[<] identifier[TYPE] operator[>] identifier[clazz] operator[SEP] {
Keyword[return] identifier[... |
public static <T, BT extends ObjectIntProcedure<? super T>> void forEachWithIndex(
Iterable<T> iterable,
BT procedure,
int minForkSize,
int taskCount)
{
ParallelIterate.forEachWithIndex(
iterable,
new PassThruObjectIntProcedureF... | class class_name[name] begin[{]
method[forEachWithIndex, return_type[void], modifier[public static], parameter[iterable, procedure, minForkSize, taskCount]] begin[{]
call[ParallelIterate.forEachWithIndex, parameter[member[.iterable], ClassCreator(arguments=[MemberReference(member=procedure, pos... | Keyword[public] Keyword[static] operator[<] identifier[T] , identifier[BT] Keyword[extends] identifier[ObjectIntProcedure] operator[<] operator[?] Keyword[super] identifier[T] operator[>] operator[>] Keyword[void] identifier[forEachWithIndex] operator[SEP] identifier[Iterable] operator[<] identifier[T] operator[>] ide... |
private void parseHeaderChangeLimit(Map<Object, Object> props) {
Object value = props.get(HttpConfigConstants.PROPNAME_HEADER_CHANGE_LIMIT);
if (null != value) {
try {
this.headerChangeLimit = convertInteger(value);
if (TraceComponent.isAnyTracingEnabled() && ... | class class_name[name] begin[{]
method[parseHeaderChangeLimit, return_type[void], modifier[private], parameter[props]] begin[{]
local_variable[type[Object], value]
if[binary_operation[literal[null], !=, member[.value]]] begin[{]
TryStatement(block=[StatementExpression(expres... | Keyword[private] Keyword[void] identifier[parseHeaderChangeLimit] operator[SEP] identifier[Map] operator[<] identifier[Object] , identifier[Object] operator[>] identifier[props] operator[SEP] {
identifier[Object] identifier[value] operator[=] identifier[props] operator[SEP] identifier[get] operator[SEP] identif... |
public void addAttachment(CmsDocumentDependency dep) {
// don't add attachment if this is a language version of an already existing attachment
boolean exist = false;
for (CmsDocumentDependency att : m_attachments) {
if (att.getAttachmentNumber() == dep.getAttachmentNumber()) {
... | class class_name[name] begin[{]
method[addAttachment, return_type[void], modifier[public], parameter[dep]] begin[{]
local_variable[type[boolean], exist]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=... | Keyword[public] Keyword[void] identifier[addAttachment] operator[SEP] identifier[CmsDocumentDependency] identifier[dep] operator[SEP] {
Keyword[boolean] identifier[exist] operator[=] literal[boolean] operator[SEP] Keyword[for] operator[SEP] identifier[CmsDocumentDependency] identifier[att] operator[:] identifie... |
public void setAmbientLight(int i, Color color, boolean enableColor) {
float ambient[] = {
(float)color.getRed(),
(float)color.getGreen(),
(float)color.getBlue(),
(float)color.getAlpha()
};
gl.glEnable(GL2.GL_LIGHTING);
gl.glEnable(GL2.GL_LIGHT0 + i... | class class_name[name] begin[{]
method[setAmbientLight, return_type[void], modifier[public], parameter[i, color, enableColor]] begin[{]
local_variable[type[float], ambient]
call[gl.glEnable, parameter[member[GL2.GL_LIGHTING]]]
call[gl.glEnable, parameter[binary_operation... | Keyword[public] Keyword[void] identifier[setAmbientLight] operator[SEP] Keyword[int] identifier[i] , identifier[Color] identifier[color] , Keyword[boolean] identifier[enableColor] operator[SEP] {
Keyword[float] identifier[ambient] operator[SEP] operator[SEP] operator[=] {
operator[SEP] Keyword[float... |
public boolean add(ExtendedPropositionDefinition def) {
if (def != null && this.defs.add(def)) {
this.defsAsListOutdated = true;
recalculateChildren();
return true;
} else {
return false;
}
} | class class_name[name] begin[{]
method[add, return_type[type[boolean]], modifier[public], parameter[def]] begin[{]
if[binary_operation[binary_operation[member[.def], !=, literal[null]], &&, THIS[member[None.defs]call[None.add, parameter[member[.def]]]]]] begin[{]
assign[... | Keyword[public] Keyword[boolean] identifier[add] operator[SEP] identifier[ExtendedPropositionDefinition] identifier[def] operator[SEP] {
Keyword[if] operator[SEP] identifier[def] operator[!=] Other[null] operator[&&] Keyword[this] operator[SEP] identifier[defs] operator[SEP] identifier[add] operator[SEP] identif... |
private void propagateAsError(Throwable t) {
if ( t instanceof InvocationTargetException) {
t = t.getCause();
}
if ( Error.class.isAssignableFrom(t.getClass())) {
throw (Error)t;
}
throw new PolledAssertionError(t);
} | class class_name[name] begin[{]
method[propagateAsError, return_type[void], modifier[private], parameter[t]] begin[{]
if[binary_operation[member[.t], instanceof, type[InvocationTargetException]]] begin[{]
assign[member[.t], call[t.getCause, parameter[]]]
else beg... | Keyword[private] Keyword[void] identifier[propagateAsError] operator[SEP] identifier[Throwable] identifier[t] operator[SEP] {
Keyword[if] operator[SEP] identifier[t] Keyword[instanceof] identifier[InvocationTargetException] operator[SEP] {
identifier[t] operator[=] identifier[t] operator[SEP] identifi... |
public void marshall(UpdateAccountRequest updateAccountRequest, ProtocolMarshaller protocolMarshaller) {
if (updateAccountRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(updateAccountReques... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[updateAccountRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.updateAccountRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Liter... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[UpdateAccountRequest] identifier[updateAccountRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[updateAccountRequest] operator[==] Other[null] operator[SEP] {
... |
@Override
public Statement createStatement() throws SQLException
{
checkClosed();
try
{
return new JDBC4Statement(this);
}
catch(Exception x)
{
throw SQLError.get(x);
}
} | class class_name[name] begin[{]
method[createStatement, return_type[type[Statement]], modifier[public], parameter[]] begin[{]
call[.checkClosed, parameter[]]
TryStatement(block=[ReturnStatement(expression=ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=... | annotation[@] identifier[Override] Keyword[public] identifier[Statement] identifier[createStatement] operator[SEP] operator[SEP] Keyword[throws] identifier[SQLException] {
identifier[checkClosed] operator[SEP] operator[SEP] operator[SEP] Keyword[try] {
Keyword[return] Keyword[new] identifier[JDBC4Stat... |
public T find(Predicate<T> decision, T defaultValue) {
return Iterables.find(result(), decision, defaultValue);
} | class class_name[name] begin[{]
method[find, return_type[type[T]], modifier[public], parameter[decision, defaultValue]] begin[{]
return[call[Iterables.find, parameter[call[.result, parameter[]], member[.decision], member[.defaultValue]]]]
end[}]
END[}] | Keyword[public] identifier[T] identifier[find] operator[SEP] identifier[Predicate] operator[<] identifier[T] operator[>] identifier[decision] , identifier[T] identifier[defaultValue] operator[SEP] {
Keyword[return] identifier[Iterables] operator[SEP] identifier[find] operator[SEP] identifier[result] operator[SE... |
@Deprecated
protected ZAgent agent(Socket phone, String secret)
{
return ZAgent.Creator.create(phone, secret);
} | class class_name[name] begin[{]
method[agent, return_type[type[ZAgent]], modifier[protected], parameter[phone, secret]] begin[{]
return[call[ZAgent.Creator.create, parameter[member[.phone], member[.secret]]]]
end[}]
END[}] | annotation[@] identifier[Deprecated] Keyword[protected] identifier[ZAgent] identifier[agent] operator[SEP] identifier[Socket] identifier[phone] , identifier[String] identifier[secret] operator[SEP] {
Keyword[return] identifier[ZAgent] operator[SEP] identifier[Creator] operator[SEP] identifier[create] operator[S... |
public static void generateSessionIdIfNecessary(final TraceeBackend backend, final String sessionId) {
if (backend != null && !backend.containsKey(TraceeConstants.SESSION_ID_KEY) && backend.getConfiguration().shouldGenerateSessionId()) {
backend.put(TraceeConstants.SESSION_ID_KEY, Utilities.createAlphanumericHash(... | class class_name[name] begin[{]
method[generateSessionIdIfNecessary, return_type[void], modifier[public static], parameter[backend, sessionId]] begin[{]
if[binary_operation[binary_operation[binary_operation[member[.backend], !=, literal[null]], &&, call[backend.containsKey, parameter[member[Tra... | Keyword[public] Keyword[static] Keyword[void] identifier[generateSessionIdIfNecessary] operator[SEP] Keyword[final] identifier[TraceeBackend] identifier[backend] , Keyword[final] identifier[String] identifier[sessionId] operator[SEP] {
Keyword[if] operator[SEP] identifier[backend] operator[!=] Other[null] opera... |
public boolean createRelatedTable(
UserTable<? extends UserColumn> relatedTable) {
boolean created = false;
String relatedTableName = relatedTable.getTableName();
if (!geoPackage.isTable(relatedTableName)) {
geoPackage.createUserTable(relatedTable);
try {
// Create the contents
Contents conte... | class class_name[name] begin[{]
method[createRelatedTable, return_type[type[boolean]], modifier[public], parameter[relatedTable]] begin[{]
local_variable[type[boolean], created]
local_variable[type[String], relatedTableName]
if[call[geoPackage.isTable, parameter[member[.relatedT... | Keyword[public] Keyword[boolean] identifier[createRelatedTable] operator[SEP] identifier[UserTable] operator[<] operator[?] Keyword[extends] identifier[UserColumn] operator[>] identifier[relatedTable] operator[SEP] {
Keyword[boolean] identifier[created] operator[=] literal[boolean] operator[SEP] identifier[Strin... |
@Nullable
public static Long parseLongObj (@Nullable final String sStr, @Nullable final Long aDefault)
{
return parseLongObj (sStr, DEFAULT_RADIX, aDefault);
} | class class_name[name] begin[{]
method[parseLongObj, return_type[type[Long]], modifier[public static], parameter[sStr, aDefault]] begin[{]
return[call[.parseLongObj, parameter[member[.sStr], member[.DEFAULT_RADIX], member[.aDefault]]]]
end[}]
END[}] | annotation[@] identifier[Nullable] Keyword[public] Keyword[static] identifier[Long] identifier[parseLongObj] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[String] identifier[sStr] , annotation[@] identifier[Nullable] Keyword[final] identifier[Long] identifier[aDefault] operator[SEP] {
... |
public static String removeSessionId(String uri, HttpResponse httpResponse) {
CookieSpec cookieSpec = new DefaultCookieSpec();
// Dummy origin, used only by CookieSpec for setting the domain for the
// cookie but we don't need it
CookieOrigin cookieOrigin = new CookieOrigin("dummy", Http... | class class_name[name] begin[{]
method[removeSessionId, return_type[type[String]], modifier[public static], parameter[uri, httpResponse]] begin[{]
local_variable[type[CookieSpec], cookieSpec]
local_variable[type[CookieOrigin], cookieOrigin]
local_variable[type[Header], responseHeaders]
... | Keyword[public] Keyword[static] identifier[String] identifier[removeSessionId] operator[SEP] identifier[String] identifier[uri] , identifier[HttpResponse] identifier[httpResponse] operator[SEP] {
identifier[CookieSpec] identifier[cookieSpec] operator[=] Keyword[new] identifier[DefaultCookieSpec] operator[SEP] o... |
public static void copyJoins(From<?, ?> from, From<?, ?> to) {
for (Join<?, ?> j : from.getJoins()) {
Join<?, ?> toJoin = to.join(j.getAttribute().getName(), j.getJoinType());
toJoin.alias(getOrCreateAlias(j));
copyJoins(j, toJoin);
}
for (Fetch<?, ?> f : fr... | class class_name[name] begin[{]
method[copyJoins, return_type[void], modifier[public static], parameter[from, to]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=MethodInvocation(argum... | Keyword[public] Keyword[static] Keyword[void] identifier[copyJoins] operator[SEP] identifier[From] operator[<] operator[?] , operator[?] operator[>] identifier[from] , identifier[From] operator[<] operator[?] , operator[?] operator[>] identifier[to] operator[SEP] {
Keyword[for] operator[SEP] identifier[Join] ... |
public static String prettyDateTime(String time) {
if (time.length() < 12) return time;
StringBuilder sb = new StringBuilder();
sb.append(time.substring(0, 4)).append("-").append(time.substring(4, 6)).append("-").append(time.substring(6, 8));
sb.append(" ").append(time.substring(8, 10)).... | class class_name[name] begin[{]
method[prettyDateTime, return_type[type[String]], modifier[public static], parameter[time]] begin[{]
if[binary_operation[call[time.length, parameter[]], <, literal[12]]] begin[{]
return[member[.time]]
else begin[{]
None
end[}]
local_variab... | Keyword[public] Keyword[static] identifier[String] identifier[prettyDateTime] operator[SEP] identifier[String] identifier[time] operator[SEP] {
Keyword[if] operator[SEP] identifier[time] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[<] Other[12] operator[SEP] Keyword[return] identifier[ti... |
public double distanceSquared(Vector3d v) {
double dx = x - v.x;
double dy = y - v.y;
double dz = z - v.z;
return dx * dx + dy * dy + dz * dz;
} | class class_name[name] begin[{]
method[distanceSquared, return_type[type[double]], modifier[public], parameter[v]] begin[{]
local_variable[type[double], dx]
local_variable[type[double], dy]
local_variable[type[double], dz]
return[binary_operation[binary_operation[binary_operatio... | Keyword[public] Keyword[double] identifier[distanceSquared] operator[SEP] identifier[Vector3d] identifier[v] operator[SEP] {
Keyword[double] identifier[dx] operator[=] identifier[x] operator[-] identifier[v] operator[SEP] identifier[x] operator[SEP] Keyword[double] identifier[dy] operator[=] identifier[y] operat... |
public ChannelFuture bindAsync(final SocketAddress localAddress) {
if (localAddress == null) {
throw new NullPointerException("localAddress");
}
ChannelPipeline pipeline;
try {
pipeline = getPipelineFactory().getPipeline();
} catch (Exception e) {
... | class class_name[name] begin[{]
method[bindAsync, return_type[type[ChannelFuture]], modifier[public], parameter[localAddress]] begin[{]
if[binary_operation[member[.localAddress], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators... | Keyword[public] identifier[ChannelFuture] identifier[bindAsync] operator[SEP] Keyword[final] identifier[SocketAddress] identifier[localAddress] operator[SEP] {
Keyword[if] operator[SEP] identifier[localAddress] operator[==] Other[null] operator[SEP] {
Keyword[throw] Keyword[new] identifier[NullPointer... |
@SuppressWarnings("fallthrough")
public void add(int field, int amount) {
if (amount == 0) {
return; // Do nothing!
}
// We handle most fields in the same way. The algorithm is to add
// a computed amount of millis to the current millis. The only
// wrinkle ... | class class_name[name] begin[{]
method[add, return_type[void], modifier[public], parameter[field, amount]] begin[{]
if[binary_operation[member[.amount], ==, literal[0]]] begin[{]
return[None]
else begin[{]
None
end[}]
local_variable[type[long], delta]
... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[add] operator[SEP] Keyword[int] identifier[field] , Keyword[int] identifier[amount] operator[SEP] {
Keyword[if] operator[SEP] identifier[amount] operator[==] Other[0] operator[SEP] {
... |
void addSelectionBinding(ReadOnlyObjectProperty<Change> currentChange) {
currentChange.addListener(
(observable, oldValue, newValue) -> getSelectionModel().select(newValue)
);
} | class class_name[name] begin[{]
method[addSelectionBinding, return_type[void], modifier[default], parameter[currentChange]] begin[{]
call[currentChange.addListener, parameter[LambdaExpression(body=MethodInvocation(arguments=[], member=getSelectionModel, postfix_operators=[], prefix_operators=[]... | Keyword[void] identifier[addSelectionBinding] operator[SEP] identifier[ReadOnlyObjectProperty] operator[<] identifier[Change] operator[>] identifier[currentChange] operator[SEP] {
identifier[currentChange] operator[SEP] identifier[addListener] operator[SEP] operator[SEP] identifier[observable] , identifier[oldV... |
public void cleanup() {
htDictionary.clear();
memoryEstimate.decrementTotalMemory(byteArray.getSizeInBytes());
memoryEstimate.decrementTotalMemory(getSizeOfIntArrays());
memoryEstimate.decrementDictionaryMemory(byteArray.size());
} | class class_name[name] begin[{]
method[cleanup, return_type[void], modifier[public], parameter[]] begin[{]
call[htDictionary.clear, parameter[]]
call[memoryEstimate.decrementTotalMemory, parameter[call[byteArray.getSizeInBytes, parameter[]]]]
call[memoryEstimate.... | Keyword[public] Keyword[void] identifier[cleanup] operator[SEP] operator[SEP] {
identifier[htDictionary] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[memoryEstimate] operator[SEP] identifier[decrementTotalMemory] operator[SEP] identifier[byteArray] operator[SEP] identifier... |
@SuppressWarnings("unused") // Public API
public void setAutoScaleEnabled(boolean isAutoScaleEnabled) {
this.isAutoScaleEnabled = isAutoScaleEnabled;
for (int i = 0, size = foldableItemsMap.size(); i < size; i++) {
foldableItemsMap.valueAt(i).setAutoScaleEnabled(isAutoScaleEnabled);
... | class class_name[name] begin[{]
method[setAutoScaleEnabled, return_type[void], modifier[public], parameter[isAutoScaleEnabled]] begin[{]
assign[THIS[member[None.isAutoScaleEnabled]], member[.isAutoScaleEnabled]]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpressio... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[setAutoScaleEnabled] operator[SEP] Keyword[boolean] identifier[isAutoScaleEnabled] operator[SEP] {
Keyword[this] operator[SEP] identifier[isAutoScaleEnabled] operator[=] identifier[isAu... |
public void tinc(String name, int con) throws IOException
{
TypeMirror cn = getLocalType(name);
int index = getLocalVariableIndex(name);
tinc(cn, index, con);
} | class class_name[name] begin[{]
method[tinc, return_type[void], modifier[public], parameter[name, con]] begin[{]
local_variable[type[TypeMirror], cn]
local_variable[type[int], index]
call[.tinc, parameter[member[.cn], member[.index], member[.con]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[tinc] operator[SEP] identifier[String] identifier[name] , Keyword[int] identifier[con] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[TypeMirror] identifier[cn] operator[=] identifier[getLocalType] operator[SEP] identifier[name] operator[SEP] operator... |
public static Request newMeRequest(Session session, final GraphUserCallback callback) {
Callback wrapper = new Callback() {
@Override
public void onCompleted(Response response) {
if (callback != null) {
callback.onCompleted(response.getGraphObjectAs(Gr... | class class_name[name] begin[{]
method[newMeRequest, return_type[type[Request]], modifier[public static], parameter[session, callback]] begin[{]
local_variable[type[Callback], wrapper]
return[ClassCreator(arguments=[MemberReference(member=session, postfix_operators=[], prefix_operators=[], qual... | Keyword[public] Keyword[static] identifier[Request] identifier[newMeRequest] operator[SEP] identifier[Session] identifier[session] , Keyword[final] identifier[GraphUserCallback] identifier[callback] operator[SEP] {
identifier[Callback] identifier[wrapper] operator[=] Keyword[new] identifier[Callback] operator[S... |
public CreditPayments getCreditPayments(final String accountCode, final QueryParams params) {
final String path = Accounts.ACCOUNTS_RESOURCE + "/" + accountCode + CreditPayments.CREDIT_PAYMENTS_RESOURCE;
return doGET(path, CreditPayments.class, params);
} | class class_name[name] begin[{]
method[getCreditPayments, return_type[type[CreditPayments]], modifier[public], parameter[accountCode, params]] begin[{]
local_variable[type[String], path]
return[call[.doGET, parameter[member[.path], ClassReference(postfix_operators=[], prefix_operators=[], quali... | Keyword[public] identifier[CreditPayments] identifier[getCreditPayments] operator[SEP] Keyword[final] identifier[String] identifier[accountCode] , Keyword[final] identifier[QueryParams] identifier[params] operator[SEP] {
Keyword[final] identifier[String] identifier[path] operator[=] identifier[Accounts] operato... |
public void setCaseCanonicalizationLocale(final Locale caseCanonicalizationLocale) {
if (caseCanonicalizationLocale == null) {
this.caseCanonicalizationLocale = Locale.getDefault();
} else {
this.caseCanonicalizationLocale = caseCanonicalizationLocale;
}
} | class class_name[name] begin[{]
method[setCaseCanonicalizationLocale, return_type[void], modifier[public], parameter[caseCanonicalizationLocale]] begin[{]
if[binary_operation[member[.caseCanonicalizationLocale], ==, literal[null]]] begin[{]
assign[THIS[member[None.caseCa... | Keyword[public] Keyword[void] identifier[setCaseCanonicalizationLocale] operator[SEP] Keyword[final] identifier[Locale] identifier[caseCanonicalizationLocale] operator[SEP] {
Keyword[if] operator[SEP] identifier[caseCanonicalizationLocale] operator[==] Other[null] operator[SEP] {
Keyword[this] operato... |
public void forward(HttpServletRequest request,
HttpServletResponse response, final String target)
throws ServletException, IOException {
if (target.startsWith("/WEB-INF/classes")
|| target.startsWith("/WEB-INF/lib")
|| target.matches("^/WEB-INF/.+\\.xml")) {
throw new IOException("Not allowed");
}... | class class_name[name] begin[{]
method[forward, return_type[void], modifier[public], parameter[request, response, target]] begin[{]
if[binary_operation[binary_operation[call[target.startsWith, parameter[literal["/WEB-INF/classes"]]], ||, call[target.startsWith, parameter[literal["/WEB-INF/lib"]... | Keyword[public] Keyword[void] identifier[forward] operator[SEP] identifier[HttpServletRequest] identifier[request] , identifier[HttpServletResponse] identifier[response] , Keyword[final] identifier[String] identifier[target] operator[SEP] Keyword[throws] identifier[ServletException] , identifier[IOException] {
... |
@Benchmark
@BenchmarkMode(Mode.SampleTime)
@OutputTimeUnit(TimeUnit.NANOSECONDS)
public StatsTraceContext newServerContext_empty() {
return StatsTraceContext.newServerContext(
serverStreamTracerFactories, methodName, emptyMetadata);
} | class class_name[name] begin[{]
method[newServerContext_empty, return_type[type[StatsTraceContext]], modifier[public], parameter[]] begin[{]
return[call[StatsTraceContext.newServerContext, parameter[member[.serverStreamTracerFactories], member[.methodName], member[.emptyMetadata]]]]
end[}]
END[}] | annotation[@] identifier[Benchmark] annotation[@] identifier[BenchmarkMode] operator[SEP] identifier[Mode] operator[SEP] identifier[SampleTime] operator[SEP] annotation[@] identifier[OutputTimeUnit] operator[SEP] identifier[TimeUnit] operator[SEP] identifier[NANOSECONDS] operator[SEP] Keyword[public] identifier[StatsTr... |
@Override
public SetAttribute<X, ?> getDeclaredSet(String paramName)
{
PluralAttribute<X, ?, ?> declaredAttrib = getDeclaredPluralAttribute(paramName);
if (isSetAttribute(declaredAttrib))
{
return (SetAttribute<X, ?>) declaredAttrib;
}
throw new IllegalArgum... | class class_name[name] begin[{]
method[getDeclaredSet, return_type[type[SetAttribute]], modifier[public], parameter[paramName]] begin[{]
local_variable[type[PluralAttribute], declaredAttrib]
if[call[.isSetAttribute, parameter[member[.declaredAttrib]]]] begin[{]
return[Cast(e... | annotation[@] identifier[Override] Keyword[public] identifier[SetAttribute] operator[<] identifier[X] , operator[?] operator[>] identifier[getDeclaredSet] operator[SEP] identifier[String] identifier[paramName] operator[SEP] {
identifier[PluralAttribute] operator[<] identifier[X] , operator[?] , operator[?] op... |
@Override
public EClass getIfcBoolean() {
if (ifcBooleanEClass == null) {
ifcBooleanEClass = (EClass) EPackage.Registry.INSTANCE.getEPackage(Ifc4Package.eNS_URI).getEClassifiers()
.get(785);
}
return ifcBooleanEClass;
} | class class_name[name] begin[{]
method[getIfcBoolean, return_type[type[EClass]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.ifcBooleanEClass], ==, literal[null]]] begin[{]
assign[member[.ifcBooleanEClass], Cast(expression=MethodInvocation(argumen... | annotation[@] identifier[Override] Keyword[public] identifier[EClass] identifier[getIfcBoolean] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifcBooleanEClass] operator[==] Other[null] operator[SEP] {
identifier[ifcBooleanEClass] operator[=] operator[SEP] identifier[EClass] operat... |
public BoundSet reduce(TypeSolver typeSolver) {
List<ConstraintFormula> constraints = new LinkedList<>(constraintFormulas);
BoundSet boundSet = BoundSet.empty();
while (constraints.size() > 0) {
ConstraintFormula constraintFormula = constraints.remove(0);
ConstraintFormul... | class class_name[name] begin[{]
method[reduce, return_type[type[BoundSet]], modifier[public], parameter[typeSolver]] begin[{]
local_variable[type[List], constraints]
local_variable[type[BoundSet], boundSet]
while[binary_operation[call[constraints.size, parameter[]], >, literal[0... | Keyword[public] identifier[BoundSet] identifier[reduce] operator[SEP] identifier[TypeSolver] identifier[typeSolver] operator[SEP] {
identifier[List] operator[<] identifier[ConstraintFormula] operator[>] identifier[constraints] operator[=] Keyword[new] identifier[LinkedList] operator[<] operator[>] operator[SEP] ... |
public <T> List<T> collectionFromJson(String json, Class<T> clazz) throws JsonException {
if (json == null) {
return null;
}
try {
List<T> result = new ArrayList<T>();
List tempParseResult = (List) mapper.readValue(json, new TypeReference<List<T>>() {
... | class class_name[name] begin[{]
method[collectionFromJson, return_type[type[List]], modifier[public], parameter[json, clazz]] begin[{]
if[binary_operation[member[.json], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
TryStatement... | Keyword[public] operator[<] identifier[T] operator[>] identifier[List] operator[<] identifier[T] operator[>] identifier[collectionFromJson] operator[SEP] identifier[String] identifier[json] , identifier[Class] operator[<] identifier[T] operator[>] identifier[clazz] operator[SEP] Keyword[throws] identifier[JsonExceptio... |
private String normalize(String str){
str = StringUtils.trimToEmpty(str);
str = StringUtils.normalizeSpace(str);
// remove whitespace before punctuation. not using \p{Punct},
// because it includes to many special characters.
str = str.replaceAll("\\s+(?=[.!,\\?;:])", "");
return str;
} | class class_name[name] begin[{]
method[normalize, return_type[type[String]], modifier[private], parameter[str]] begin[{]
assign[member[.str], call[StringUtils.trimToEmpty, parameter[member[.str]]]]
assign[member[.str], call[StringUtils.normalizeSpace, parameter[member[.str]]]]
... | Keyword[private] identifier[String] identifier[normalize] operator[SEP] identifier[String] identifier[str] operator[SEP] {
identifier[str] operator[=] identifier[StringUtils] operator[SEP] identifier[trimToEmpty] operator[SEP] identifier[str] operator[SEP] operator[SEP] identifier[str] operator[=] identifier[Str... |
@XmlElementDecl(namespace = "http://www.opengis.net/gml", name = "parameterValue", substitutionHeadNamespace = "http://www.opengis.net/gml", substitutionHeadName = "_generalParameterValue")
public JAXBElement<ParameterValueType> createParameterValue(ParameterValueType value) {
return new JAXBElement<Paramet... | class class_name[name] begin[{]
method[createParameterValue, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=_ParameterValue_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), ClassReference(pos... | annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[substitutionHeadNamespace] operator[=] literal[String] , identifier[substitutionHeadName] operator[=] literal[String] operator[SEP] Keyword[public] iden... |
private void initLanguageDetection() {
try {
// use a seed for initializing the language detection for making sure the
// same probabilities are detected for the same document contents
DetectorFactory.clear();
DetectorFactory.setSeed(42L);
DetectorFac... | class class_name[name] begin[{]
method[initLanguageDetection, return_type[void], modifier[private], parameter[]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=clear, postfix_operators=[], prefix_operators=[], qualifier=DetectorFactory, selectors=[], t... | Keyword[private] Keyword[void] identifier[initLanguageDetection] operator[SEP] operator[SEP] {
Keyword[try] {
identifier[DetectorFactory] operator[SEP] identifier[clear] operator[SEP] operator[SEP] operator[SEP] identifier[DetectorFactory] operator[SEP] identifier[setSeed] operator[SEP] Other[42L] ope... |
@Implementation(minSdk = P)
protected static @Nullable @AttrRes int[] nativeGetStyleAttributes(long ptr,
@StyleRes int resid) {
CppAssetManager2 assetmanager = AssetManagerFromLong(ptr);
ResolvedBag bag = assetmanager.GetBag(resid);
if (bag == null) {
return null;
}
int[] array = new ... | class class_name[name] begin[{]
method[nativeGetStyleAttributes, return_type[type[int]], modifier[static protected], parameter[ptr, resid]] begin[{]
local_variable[type[CppAssetManager2], assetmanager]
local_variable[type[ResolvedBag], bag]
if[binary_operation[member[.bag], ==, ... | annotation[@] identifier[Implementation] operator[SEP] identifier[minSdk] operator[=] identifier[P] operator[SEP] Keyword[protected] Keyword[static] annotation[@] identifier[Nullable] annotation[@] identifier[AttrRes] Keyword[int] operator[SEP] operator[SEP] identifier[nativeGetStyleAttributes] operator[SEP] Keyword[lo... |
public static List<ExportsDirective>
exportsIn(Iterable<? extends Directive> directives) {
return listFilter(directives, DirectiveKind.EXPORTS, ExportsDirective.class);
} | class class_name[name] begin[{]
method[exportsIn, return_type[type[List]], modifier[public static], parameter[directives]] begin[{]
return[call[.listFilter, parameter[member[.directives], member[DirectiveKind.EXPORTS], ClassReference(postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], ... | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[ExportsDirective] operator[>] identifier[exportsIn] operator[SEP] identifier[Iterable] operator[<] operator[?] Keyword[extends] identifier[Directive] operator[>] identifier[directives] operator[SEP] {
Keyword[return] identifier[listFilter] o... |
private Map<String, String> getOptionsFromConfigFile(String newConfigFile) throws MojoExecutionException {
this.getLog().debug("Using search path at: " + this.basedir.getAbsolutePath());
this.resourceManager.addSearchPath(FileResourceLoader.ID, this.basedir.getAbsolutePath());
try (InputStream... | class class_name[name] begin[{]
method[getOptionsFromConfigFile, return_type[type[Map]], modifier[private], parameter[newConfigFile]] begin[{]
THIS[call[None.getLog, parameter[]]call[None.debug, parameter[binary_operation[literal["Using search path at: "], +, THIS[member[None.basedir]call[None.... | Keyword[private] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[getOptionsFromConfigFile] operator[SEP] identifier[String] identifier[newConfigFile] operator[SEP] Keyword[throws] identifier[MojoExecutionException] {
Keyword[this] operator[SEP] identifier[getLog] opera... |
public Socket call() throws InterruptedException {
useDefaultsForMissingFields();
Socket socket = createSocket();
while (socket == null && !Thread.currentThread().isInterrupted()) {
Thread.sleep(delayStrategy.nextDelay());
socket = createSocket();
}
return socket;
} | class class_name[name] begin[{]
method[call, return_type[type[Socket]], modifier[public], parameter[]] begin[{]
call[.useDefaultsForMissingFields, parameter[]]
local_variable[type[Socket], socket]
while[binary_operation[binary_operation[member[.socket], ==, literal[null]... | Keyword[public] identifier[Socket] identifier[call] operator[SEP] operator[SEP] Keyword[throws] identifier[InterruptedException] {
identifier[useDefaultsForMissingFields] operator[SEP] operator[SEP] operator[SEP] identifier[Socket] identifier[socket] operator[=] identifier[createSocket] operator[SEP] operator[SE... |
public static Object loadInstance(Class clazz, Object[] args, Object defaultValue) {
if (args == null || args.length == 0) return loadInstance(clazz, defaultValue);
try {
Class[] cArgs = new Class[args.length];
for (int i = 0; i < args.length; i++) {
if (args[i] == null) cArgs[i] = Object.class;
else cA... | class class_name[name] begin[{]
method[loadInstance, return_type[type[Object]], modifier[public static], parameter[clazz, args, defaultValue]] begin[{]
if[binary_operation[binary_operation[member[.args], ==, literal[null]], ||, binary_operation[member[args.length], ==, literal[0]]]] begin[{]
re... | Keyword[public] Keyword[static] identifier[Object] identifier[loadInstance] operator[SEP] identifier[Class] identifier[clazz] , identifier[Object] operator[SEP] operator[SEP] identifier[args] , identifier[Object] identifier[defaultValue] operator[SEP] {
Keyword[if] operator[SEP] identifier[args] operator[==] O... |
private void applyWait(int fullTimes) {
int newFullTimes = fullTimes > maxFullTimes ? maxFullTimes : fullTimes;
if (fullTimes <= 3) { // 3次以内
Thread.yield();
} else { // 超过3次,最多只sleep 10ms
LockSupport.parkNanos(1000 * 1000L * newFullTimes);
}
} | class class_name[name] begin[{]
method[applyWait, return_type[void], modifier[private], parameter[fullTimes]] begin[{]
local_variable[type[int], newFullTimes]
if[binary_operation[member[.fullTimes], <=, literal[3]]] begin[{]
call[Thread.yield, parameter[]]
... | Keyword[private] Keyword[void] identifier[applyWait] operator[SEP] Keyword[int] identifier[fullTimes] operator[SEP] {
Keyword[int] identifier[newFullTimes] operator[=] identifier[fullTimes] operator[>] identifier[maxFullTimes] operator[?] identifier[maxFullTimes] operator[:] identifier[fullTimes] operator[SEP] ... |
private Node<T> rotateRight(Node<T> h) {
// assert (h != null) && isRed(h.left);
Node<T> x = h.left;
h.left = x.right;
x.right = h;
x.red = x.right.red;
x.right.red = true;
x.n = h.n;
h.n = (h.left == null ? 0 : h.left.n) + (h.right == null ? 0 : h.right.n) + 1;
return x;
} | class class_name[name] begin[{]
method[rotateRight, return_type[type[Node]], modifier[private], parameter[h]] begin[{]
local_variable[type[Node], x]
assign[member[h.left], member[x.right]]
assign[member[x.right], member[.h]]
assign[member[x.red], member[x... | Keyword[private] identifier[Node] operator[<] identifier[T] operator[>] identifier[rotateRight] operator[SEP] identifier[Node] operator[<] identifier[T] operator[>] identifier[h] operator[SEP] {
identifier[Node] operator[<] identifier[T] operator[>] identifier[x] operator[=] identifier[h] operator[SEP] identifie... |
public List<? extends Solution<?>> normalize(List<? extends Solution<?>> solutionList) {
Front normalizedFront ;
if (solutionList == null) {
throw new JMetalException("The front is null") ;
}
normalizedFront = getNormalizedFront(new ArrayFront(solutionList), maximumValues, minimumValues);
re... | class class_name[name] begin[{]
method[normalize, return_type[type[List]], modifier[public], parameter[solutionList]] begin[{]
local_variable[type[Front], normalizedFront]
if[binary_operation[member[.solutionList], ==, literal[null]]] begin[{]
ThrowStatement(expression=Class... | Keyword[public] identifier[List] operator[<] operator[?] Keyword[extends] identifier[Solution] operator[<] operator[?] operator[>] operator[>] identifier[normalize] operator[SEP] identifier[List] operator[<] operator[?] Keyword[extends] identifier[Solution] operator[<] operator[?] operator[>] operator[>] identifier[sol... |
public DbDatum getClassPipeProperty(String className, String pipeName, String propertyName) throws DevFailed {
DbPipe dbPipe = databaseDAO.getClassPipeProperties(this, className, pipeName);
DbDatum datum = dbPipe.getDatum(propertyName);
if (datum==null)
Except.throw_exception("TangoA... | class class_name[name] begin[{]
method[getClassPipeProperty, return_type[type[DbDatum]], modifier[public], parameter[className, pipeName, propertyName]] begin[{]
local_variable[type[DbPipe], dbPipe]
local_variable[type[DbDatum], datum]
if[binary_operation[member[.datum], ==, lit... | Keyword[public] identifier[DbDatum] identifier[getClassPipeProperty] operator[SEP] identifier[String] identifier[className] , identifier[String] identifier[pipeName] , identifier[String] identifier[propertyName] operator[SEP] Keyword[throws] identifier[DevFailed] {
identifier[DbPipe] identifier[dbPipe] operato... |
@XmlElementDecl(namespace = "http://docs.oasis-open.org/ns/cmis/messaging/200908/", name = "extension", scope = GetRenditions.class)
public JAXBElement<CmisExtensionType> createGetRenditionsExtension(
CmisExtensionType value) {
return new JAXBElement<CmisExtensionType>(
_GetPropertiesExtension_QNAME, Cmis... | class class_name[name] begin[{]
method[createGetRenditionsExtension, return_type[type[JAXBElement]], modifier[public], parameter[value]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=_GetPropertiesExtension_QNAME, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Cl... | annotation[@] identifier[XmlElementDecl] operator[SEP] identifier[namespace] operator[=] literal[String] , identifier[name] operator[=] literal[String] , identifier[scope] operator[=] identifier[GetRenditions] operator[SEP] Keyword[class] operator[SEP] Keyword[public] identifier[JAXBElement] operator[<] identifier[Cm... |
public static double getAngle(AFPChain afpChain, Atom[] ca1, Atom[] ca2) {
Matrix rotation = afpChain.getBlockRotationMatrix()[0];
return Math.acos(rotation.trace() - 1) * 180 / Math.PI;
} | class class_name[name] begin[{]
method[getAngle, return_type[type[double]], modifier[public static], parameter[afpChain, ca1, ca2]] begin[{]
local_variable[type[Matrix], rotation]
return[binary_operation[binary_operation[call[Math.acos, parameter[binary_operation[call[rotation.trace, parameter[... | Keyword[public] Keyword[static] Keyword[double] identifier[getAngle] 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[Matrix] identifier[rotation] oper... |
private boolean filter(Event event) {
if (null == filters) return false;
for (EventFilter filter : filters) {
if (filter.filter(event)) {
return true;
}
}
return false;
} | class class_name[name] begin[{]
method[filter, return_type[type[boolean]], modifier[private], parameter[event]] begin[{]
if[binary_operation[literal[null], ==, member[.filters]]] begin[{]
return[literal[false]]
else begin[{]
None
end[}]
ForStatement(body=BlockStatement(l... | Keyword[private] Keyword[boolean] identifier[filter] operator[SEP] identifier[Event] identifier[event] operator[SEP] {
Keyword[if] operator[SEP] Other[null] operator[==] identifier[filters] operator[SEP] Keyword[return] literal[boolean] operator[SEP] Keyword[for] operator[SEP] identifier[EventFilter] identifier[... |
public static final void setBounds(UIObject o, Rect bounds) {
setPosition(o, bounds);
setSize(o, bounds);
} | class class_name[name] begin[{]
method[setBounds, return_type[void], modifier[final public static], parameter[o, bounds]] begin[{]
call[.setPosition, parameter[member[.o], member[.bounds]]]
call[.setSize, parameter[member[.o], member[.bounds]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[final] Keyword[void] identifier[setBounds] operator[SEP] identifier[UIObject] identifier[o] , identifier[Rect] identifier[bounds] operator[SEP] {
identifier[setPosition] operator[SEP] identifier[o] , identifier[bounds] operator[SEP] operator[SEP] identifier[setSize] oper... |
protected final void closeConnection(final JsMessagingEngine messagingEngine) {
final String methodName = "closeConnection";
if (TraceComponent.isAnyTracingEnabled() && TRACE.isEntryEnabled()) {
SibTr.entry(this, TRACE, methodName, messagingEngine);
}
closeConnection(messag... | class class_name[name] begin[{]
method[closeConnection, return_type[void], modifier[final protected], parameter[messagingEngine]] begin[{]
local_variable[type[String], methodName]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[TRACE.isEntryEnabled, p... | Keyword[protected] Keyword[final] Keyword[void] identifier[closeConnection] operator[SEP] Keyword[final] identifier[JsMessagingEngine] identifier[messagingEngine] operator[SEP] {
Keyword[final] identifier[String] identifier[methodName] operator[=] literal[String] operator[SEP] Keyword[if] operator[SEP] identifie... |
protected void init() {
// 読み込み用の登録
registerForReading(conversionHandler);
registerForReading(new ParseProcessorFactory<>());
registerForReading(constraintHandler);
// 書き込み用の登録
registerForWriting(constraintHandler);
registerForWriting(new PrintProcessor... | class class_name[name] begin[{]
method[init, return_type[void], modifier[protected], parameter[]] begin[{]
call[.registerForReading, parameter[member[.conversionHandler]]]
call[.registerForReading, parameter[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, ... | Keyword[protected] Keyword[void] identifier[init] operator[SEP] operator[SEP] {
identifier[registerForReading] operator[SEP] identifier[conversionHandler] operator[SEP] operator[SEP] identifier[registerForReading] operator[SEP] Keyword[new] identifier[ParseProcessorFactory] operator[<] operator[>] operator[SEP] ... |
@SuppressWarnings("unchecked")
public static MethodSpec<ReceiveEventsAnn>[] getReceiveEventsSpecs(Class<?> cls) {
MethodSpec<ReceiveEventsAnn>[] specs = RECEIVE_EVENTS_SPECS.get(cls);
if (specs == null) {
ArrayList<MethodSpec<ReceiveEventsAnn>> list = new ArrayList<MethodSpec<ReceiveEventsAnn>>();
for (Metho... | class class_name[name] begin[{]
method[getReceiveEventsSpecs, return_type[type[MethodSpec]], modifier[public static], parameter[cls]] begin[{]
local_variable[type[MethodSpec], specs]
if[binary_operation[member[.specs], ==, literal[null]]] begin[{]
local_variable[type[ArrayLi... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] identifier[MethodSpec] operator[<] identifier[ReceiveEventsAnn] operator[>] operator[SEP] operator[SEP] identifier[getReceiveEventsSpecs] operator[SEP] identifier[Class] operator[<] operator[?] operato... |
public static float requiredFloatAttribute(final XMLStreamReader reader, final String localName)
throws XMLStreamException {
return requiredFloatAttribute(reader, null, localName);
} | class class_name[name] begin[{]
method[requiredFloatAttribute, return_type[type[float]], modifier[public static], parameter[reader, localName]] begin[{]
return[call[.requiredFloatAttribute, parameter[member[.reader], literal[null], member[.localName]]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[float] identifier[requiredFloatAttribute] operator[SEP] Keyword[final] identifier[XMLStreamReader] identifier[reader] , Keyword[final] identifier[String] identifier[localName] operator[SEP] Keyword[throws] identifier[XMLStreamException] {
Keyword[return] identifier[requir... |
public static ResourceList<MediaFile> list(final int page, final int size) throws IOException {
return list(BandwidthClient.getInstance(), page, size);
} | class class_name[name] begin[{]
method[list, return_type[type[ResourceList]], modifier[public static], parameter[page, size]] begin[{]
return[call[.list, parameter[call[BandwidthClient.getInstance, parameter[]], member[.page], member[.size]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[ResourceList] operator[<] identifier[MediaFile] operator[>] identifier[list] operator[SEP] Keyword[final] Keyword[int] identifier[page] , Keyword[final] Keyword[int] identifier[size] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] identifier[lis... |
public void marshall(ListEntitiesDetectionJobsRequest listEntitiesDetectionJobsRequest, ProtocolMarshaller protocolMarshaller) {
if (listEntitiesDetectionJobsRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMar... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[listEntitiesDetectionJobsRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.listEntitiesDetectionJobsRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=Class... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ListEntitiesDetectionJobsRequest] identifier[listEntitiesDetectionJobsRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[listEntitiesDetectionJobsRequest] operat... |
public void addOrExpression(final INodeReadTrx mTransaction) {
assert getPipeStack().size() >= 2;
final AbsAxis mOperand2 = getPipeStack().pop().getExpr();
final AbsAxis mOperand1 = getPipeStack().pop().getExpr();
if (getPipeStack().empty() || getExpression().getSize() != 0) {
... | class class_name[name] begin[{]
method[addOrExpression, return_type[void], modifier[public], parameter[mTransaction]] begin[{]
AssertStatement(condition=BinaryOperation(operandl=MethodInvocation(arguments=[], member=getPipeStack, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodI... | Keyword[public] Keyword[void] identifier[addOrExpression] operator[SEP] Keyword[final] identifier[INodeReadTrx] identifier[mTransaction] operator[SEP] {
Keyword[assert] identifier[getPipeStack] operator[SEP] operator[SEP] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[>=] Other[2] operator[S... |
protected boolean lookahead() {
assert next == null : "looking ahead when next is already loaded";
while(inner.hasNext()) {
next = transform(inner.next());
if(next!=null) {
return true;
}
}
noteExhausted();
return false;
} | class class_name[name] begin[{]
method[lookahead, return_type[type[boolean]], modifier[protected], parameter[]] begin[{]
AssertStatement(condition=BinaryOperation(operandl=MemberReference(member=next, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr=Literal(postfix_operato... | Keyword[protected] Keyword[boolean] identifier[lookahead] operator[SEP] operator[SEP] {
Keyword[assert] identifier[next] operator[==] Other[null] operator[:] literal[String] operator[SEP] Keyword[while] operator[SEP] identifier[inner] operator[SEP] identifier[hasNext] operator[SEP] operator[SEP] operator[SEP] ... |
public void set(ByteBitMask mask, boolean value) {
this.flag = LogicUtil.setBit(this.flag, mask.getMask(), value);
} | class class_name[name] begin[{]
method[set, return_type[void], modifier[public], parameter[mask, value]] begin[{]
assign[THIS[member[None.flag]], call[LogicUtil.setBit, parameter[THIS[member[None.flag]], call[mask.getMask, parameter[]], member[.value]]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[set] operator[SEP] identifier[ByteBitMask] identifier[mask] , Keyword[boolean] identifier[value] operator[SEP] {
Keyword[this] operator[SEP] identifier[flag] operator[=] identifier[LogicUtil] operator[SEP] identifier[setBit] operator[SEP] Keyword[this] operator[SEP] iden... |
@Override
public List<Dashboard> getDashboardsByCollectorItems(Set<CollectorItem> collectorItems, CollectorType collectorType) {
if (org.apache.commons.collections4.CollectionUtils.isEmpty(collectorItems)) {
return new ArrayList<>();
}
List<ObjectId> collectorItemIds = collectorI... | class class_name[name] begin[{]
method[getDashboardsByCollectorItems, return_type[type[List]], modifier[public], parameter[collectorItems, collectorType]] begin[{]
if[call[org.apache.commons.collections4.CollectionUtils.isEmpty, parameter[member[.collectorItems]]]] begin[{]
return[C... | annotation[@] identifier[Override] Keyword[public] identifier[List] operator[<] identifier[Dashboard] operator[>] identifier[getDashboardsByCollectorItems] operator[SEP] identifier[Set] operator[<] identifier[CollectorItem] operator[>] identifier[collectorItems] , identifier[CollectorType] identifier[collectorType] op... |
public void setNetworkSourceIpV4(java.util.Collection<IpFilter> networkSourceIpV4) {
if (networkSourceIpV4 == null) {
this.networkSourceIpV4 = null;
return;
}
this.networkSourceIpV4 = new java.util.ArrayList<IpFilter>(networkSourceIpV4);
} | class class_name[name] begin[{]
method[setNetworkSourceIpV4, return_type[void], modifier[public], parameter[networkSourceIpV4]] begin[{]
if[binary_operation[member[.networkSourceIpV4], ==, literal[null]]] begin[{]
assign[THIS[member[None.networkSourceIpV4]], literal[null... | Keyword[public] Keyword[void] identifier[setNetworkSourceIpV4] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[IpFilter] operator[>] identifier[networkSourceIpV4] operator[SEP] {
Keyword[if] operator[SEP] identifier[networkSourceIpV4] oper... |
@SuppressWarnings("unchecked")
public EList<IfcSectionReinforcementProperties> getReinforcementSectionDefinitions() {
return (EList<IfcSectionReinforcementProperties>) eGet(
Ifc2x3tc1Package.Literals.IFC_REINFORCEMENT_DEFINITION_PROPERTIES__REINFORCEMENT_SECTION_DEFINITIONS,
true);
} | class class_name[name] begin[{]
method[getReinforcementSectionDefinitions, return_type[type[EList]], modifier[public], parameter[]] begin[{]
return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=IFC_REINFORCEMENT_DEFINITION_PROPERTIES__REINFORCEMENT_SECTION_DEFINITIONS, postfix_oper... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[EList] operator[<] identifier[IfcSectionReinforcementProperties] operator[>] identifier[getReinforcementSectionDefinitions] operator[SEP] operator[SEP] {
Keyword[return] operator[SEP] identifier[ELis... |
public static JavaSqlInfoBuilder newInstace(BuildSource source) {
JavaSqlInfoBuilder builder = new JavaSqlInfoBuilder();
builder.init(source);
return builder;
} | class class_name[name] begin[{]
method[newInstace, return_type[type[JavaSqlInfoBuilder]], modifier[public static], parameter[source]] begin[{]
local_variable[type[JavaSqlInfoBuilder], builder]
call[builder.init, parameter[member[.source]]]
return[member[.builder]]
end[}]
END... | Keyword[public] Keyword[static] identifier[JavaSqlInfoBuilder] identifier[newInstace] operator[SEP] identifier[BuildSource] identifier[source] operator[SEP] {
identifier[JavaSqlInfoBuilder] identifier[builder] operator[=] Keyword[new] identifier[JavaSqlInfoBuilder] operator[SEP] operator[SEP] operator[SEP] ident... |
public synchronized void ensureLoading() throws ElkException {
if (!isLoadingFinished()) {
if (isIncrementalMode()) {
if (!stageManager.incrementalAdditionStage.isCompleted()) {
complete(stageManager.incrementalAdditionStage);
}
} else {
if (!stageManager.contextInitializationStage.isCompleted... | class class_name[name] begin[{]
method[ensureLoading, return_type[void], modifier[synchronized public], parameter[]] begin[{]
if[call[.isLoadingFinished, parameter[]]] begin[{]
if[call[.isIncrementalMode, parameter[]]] begin[{]
if[call[sta... | Keyword[public] Keyword[synchronized] Keyword[void] identifier[ensureLoading] operator[SEP] operator[SEP] Keyword[throws] identifier[ElkException] {
Keyword[if] operator[SEP] operator[!] identifier[isLoadingFinished] operator[SEP] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[isIn... |
public Observable<ServiceResponse<Object>> listSwaggerWithServiceResponseAsync(String resourceGroupName, String workflowName) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
}
... | class class_name[name] begin[{]
method[listSwaggerWithServiceResponseAsync, return_type[type[Observable]], modifier[public], parameter[resourceGroupName, workflowName]] begin[{]
if[binary_operation[THIS[member[None.client]call[None.subscriptionId, parameter[]]], ==, literal[null]]] begin[{]
... | Keyword[public] identifier[Observable] operator[<] identifier[ServiceResponse] operator[<] identifier[Object] operator[>] operator[>] identifier[listSwaggerWithServiceResponseAsync] operator[SEP] identifier[String] identifier[resourceGroupName] , identifier[String] identifier[workflowName] operator[SEP] {
Keywo... |
public List<User> getUserList(boolean concise, int start, int amount) {
ClientResource resource = new ClientResource(Route.ALL_USER.url());
Reference ref = resource.getReference();
Map<String, Object> param = new HashMap<>();
param.put("concise", concise);
param.put("start", sta... | class class_name[name] begin[{]
method[getUserList, return_type[type[List]], modifier[public], parameter[concise, start, amount]] begin[{]
local_variable[type[ClientResource], resource]
local_variable[type[Reference], ref]
local_variable[type[Map], param]
call[param.put,... | Keyword[public] identifier[List] operator[<] identifier[User] operator[>] identifier[getUserList] operator[SEP] Keyword[boolean] identifier[concise] , Keyword[int] identifier[start] , Keyword[int] identifier[amount] operator[SEP] {
identifier[ClientResource] identifier[resource] operator[=] Keyword[new] identi... |
public static FloatIterator generate(final FloatSupplier supplier) {
N.checkArgNotNull(supplier);
return new FloatIterator() {
@Override
public boolean hasNext() {
return true;
}
@Override
public float nextFloat() {
... | class class_name[name] begin[{]
method[generate, return_type[type[FloatIterator]], modifier[public static], parameter[supplier]] begin[{]
call[N.checkArgNotNull, parameter[member[.supplier]]]
return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None,... | Keyword[public] Keyword[static] identifier[FloatIterator] identifier[generate] operator[SEP] Keyword[final] identifier[FloatSupplier] identifier[supplier] operator[SEP] {
identifier[N] operator[SEP] identifier[checkArgNotNull] operator[SEP] identifier[supplier] operator[SEP] operator[SEP] Keyword[return] Keyword... |
@Deprecated
public ServerBuilder port(InetSocketAddress localAddress, String protocol) {
return port(localAddress, SessionProtocol.of(requireNonNull(protocol, "protocol")));
} | class class_name[name] begin[{]
method[port, return_type[type[ServerBuilder]], modifier[public], parameter[localAddress, protocol]] begin[{]
return[call[.port, parameter[member[.localAddress], call[SessionProtocol.of, parameter[call[.requireNonNull, parameter[member[.protocol], literal["protocol"]]]]]]... | annotation[@] identifier[Deprecated] Keyword[public] identifier[ServerBuilder] identifier[port] operator[SEP] identifier[InetSocketAddress] identifier[localAddress] , identifier[String] identifier[protocol] operator[SEP] {
Keyword[return] identifier[port] operator[SEP] identifier[localAddress] , identifier[Ses... |
public static boolean notifyPostEventListenerProviders(IServletContext isc,AsyncContextImpl ac) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "RegisterEventListenerProvider notifyPostEventListenerProvider(IServletContext,AsyncContext). _PostEventListenerP... | class class_name[name] begin[{]
method[notifyPostEventListenerProviders, return_type[type[boolean]], modifier[public static], parameter[isc, ac]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{]
... | Keyword[public] Keyword[static] Keyword[boolean] identifier[notifyPostEventListenerProviders] operator[SEP] identifier[IServletContext] identifier[isc] , identifier[AsyncContextImpl] identifier[ac] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled]... |
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.NONE)
public final Maybe<T> doOnEvent(BiConsumer<? super T, ? super Throwable> onEvent) {
ObjectHelper.requireNonNull(onEvent, "onEvent is null");
return RxJavaPlugins.onAssembly(new MaybeDoOnEvent<T>(this, onEvent));
} | class class_name[name] begin[{]
method[doOnEvent, return_type[type[Maybe]], modifier[final public], parameter[onEvent]] begin[{]
call[ObjectHelper.requireNonNull, parameter[member[.onEvent], literal["onEvent is null"]]]
return[call[RxJavaPlugins.onAssembly, parameter[ClassCreator(argume... | annotation[@] identifier[CheckReturnValue] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[public] Keyword[final] identifier[Maybe] operator[<] identifier[T] operator[>] identifier[doOnEvent] operator[SEP] identifier[BiConsumer] ... |
protected final void checkNotNull(final ConversionStringency stringency,
final Logger logger) {
if (stringency == null) {
throw new NullPointerException("stringency must not be null");
}
if (logger == null) {
throw new NullPointerExce... | class class_name[name] begin[{]
method[checkNotNull, return_type[void], modifier[final protected], parameter[stringency, logger]] begin[{]
if[binary_operation[member[.stringency], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operator... | Keyword[protected] Keyword[final] Keyword[void] identifier[checkNotNull] operator[SEP] Keyword[final] identifier[ConversionStringency] identifier[stringency] , Keyword[final] identifier[Logger] identifier[logger] operator[SEP] {
Keyword[if] operator[SEP] identifier[stringency] operator[==] Other[null] operator[... |
@Override
public void declareOutputFields(OutputFieldsDeclarer ofd) {
if (this.outputTypes == null) {
throw new FailedException("outputTypes cannot be null");
}
for (Map.Entry<String, List<String>> outputEventType : this.outputTypes.entrySet()) {
List<String> fields =... | class class_name[name] begin[{]
method[declareOutputFields, return_type[void], modifier[public], parameter[ofd]] begin[{]
if[binary_operation[THIS[member[None.outputTypes]], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[], ... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[declareOutputFields] operator[SEP] identifier[OutputFieldsDeclarer] identifier[ofd] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[outputTypes] operator[==] Other[null] operator[SEP] {
Keyword... |
protected void validateRequired(int index, String errorKey, String errorMessage) {
String value = controller.getPara(index);
if (value == null /* || "".equals(value) */) {
addError(errorKey, errorMessage);
}
} | class class_name[name] begin[{]
method[validateRequired, return_type[void], modifier[protected], parameter[index, errorKey, errorMessage]] begin[{]
local_variable[type[String], value]
if[binary_operation[member[.value], ==, literal[null]]] begin[{]
call[.addError... | Keyword[protected] Keyword[void] identifier[validateRequired] operator[SEP] Keyword[int] identifier[index] , identifier[String] identifier[errorKey] , identifier[String] identifier[errorMessage] operator[SEP] {
identifier[String] identifier[value] operator[=] identifier[controller] operator[SEP] identifier[get... |
public static Resource wrap(@NotNull Resource resource, @NotNull ValueMap valueMap) {
return wrap(resource, valueMap, resource.getChildren());
} | class class_name[name] begin[{]
method[wrap, return_type[type[Resource]], modifier[public static], parameter[resource, valueMap]] begin[{]
return[call[.wrap, parameter[member[.resource], member[.valueMap], call[resource.getChildren, parameter[]]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[Resource] identifier[wrap] operator[SEP] annotation[@] identifier[NotNull] identifier[Resource] identifier[resource] , annotation[@] identifier[NotNull] identifier[ValueMap] identifier[valueMap] operator[SEP] {
Keyword[return] identifier[wrap] operator[SEP] identifier[... |
public void stopTimer()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "stopTimer");
btmLockManager.lockExclusive();
try
{
//only stop if we are currently started
if (!isStopped)
{
//set stopped to true
isStopped = true;
... | class class_name[name] begin[{]
method[stopTimer, return_type[void], modifier[public], parameter[]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, parameter[member[.tc], litera... | Keyword[public] Keyword[void] identifier[stopTimer] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isEntryEnabled] operator[SEP] operator[SEP] operato... |
private final void flushBuffer() throws IOException {
if (bufOutput.position() > 0) {
bufOutput.flip();
fcOutput.write(bufOutput);
bufOutput.clear();
// log.debug("offsetOutputUncommited=" + offsetOutputUncommited + " offsetOutputCommited=" +
// offsetOutputCommited + " fcOutput.position()=" + fcOutput... | class class_name[name] begin[{]
method[flushBuffer, return_type[void], modifier[final private], parameter[]] begin[{]
if[binary_operation[call[bufOutput.position, parameter[]], >, literal[0]]] begin[{]
call[bufOutput.flip, parameter[]]
call[fcOutp... | Keyword[private] Keyword[final] Keyword[void] identifier[flushBuffer] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] identifier[bufOutput] operator[SEP] identifier[position] operator[SEP] operator[SEP] operator[>] Other[0] operator[SEP] {
identifier[buf... |
public void rotateWithPivot(float quatW, float quatX, float quatY,
float quatZ, float pivotX, float pivotY, float pivotZ) {
NativeTransform.rotateWithPivot(getNative(), quatW, quatX, quatY,
quatZ, pivotX, pivotY, pivotZ);
} | class class_name[name] begin[{]
method[rotateWithPivot, return_type[void], modifier[public], parameter[quatW, quatX, quatY, quatZ, pivotX, pivotY, pivotZ]] begin[{]
call[NativeTransform.rotateWithPivot, parameter[call[.getNative, parameter[]], member[.quatW], member[.quatX], member[.quatY], mem... | Keyword[public] Keyword[void] identifier[rotateWithPivot] operator[SEP] Keyword[float] identifier[quatW] , Keyword[float] identifier[quatX] , Keyword[float] identifier[quatY] , Keyword[float] identifier[quatZ] , Keyword[float] identifier[pivotX] , Keyword[float] identifier[pivotY] , Keyword[float] identifier[pivo... |
public static Annotation[] getAnnotations(AnnotatedElement annotatedElement) {
try {
return annotatedElement.getAnnotations();
}
catch (Exception ex) {
// Assuming nested Class values not resolvable within annotation attributes...
logIntrospectionFailure(annotatedElement, ex);
return null;
}
} | class class_name[name] begin[{]
method[getAnnotations, return_type[type[Annotation]], modifier[public static], parameter[annotatedElement]] begin[{]
TryStatement(block=[ReturnStatement(expression=MethodInvocation(arguments=[], member=getAnnotations, postfix_operators=[], prefix_operators=[], qualifier=... | Keyword[public] Keyword[static] identifier[Annotation] operator[SEP] operator[SEP] identifier[getAnnotations] operator[SEP] identifier[AnnotatedElement] identifier[annotatedElement] operator[SEP] {
Keyword[try] {
Keyword[return] identifier[annotatedElement] operator[SEP] identifier[getAnnotations] ope... |
public void error(final String message) {
messages.add(new LogMessage(message, LogMessage.Type.ERROR));
log.error(message);
} | class class_name[name] begin[{]
method[error, return_type[void], modifier[public], parameter[message]] begin[{]
call[messages.add, parameter[ClassCreator(arguments=[MemberReference(member=message, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MemberReference(member=ERROR... | Keyword[public] Keyword[void] identifier[error] operator[SEP] Keyword[final] identifier[String] identifier[message] operator[SEP] {
identifier[messages] operator[SEP] identifier[add] operator[SEP] Keyword[new] identifier[LogMessage] operator[SEP] identifier[message] , identifier[LogMessage] operator[SEP] identi... |
public alluxio.grpc.BlockInfoOrBuilder getBlockInfoOrBuilder() {
return blockInfo_ == null ? alluxio.grpc.BlockInfo.getDefaultInstance() : blockInfo_;
} | class class_name[name] begin[{]
method[getBlockInfoOrBuilder, return_type[type[alluxio]], modifier[public], parameter[]] begin[{]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=blockInfo_, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), operandr... | Keyword[public] identifier[alluxio] operator[SEP] identifier[grpc] operator[SEP] identifier[BlockInfoOrBuilder] identifier[getBlockInfoOrBuilder] operator[SEP] operator[SEP] {
Keyword[return] identifier[blockInfo_] operator[==] Other[null] operator[?] identifier[alluxio] operator[SEP] identifier[grpc] operator[S... |
public boolean add(final SelectionKey selectionKey)
{
if (null == selectionKey)
{
return false;
}
ensureCapacity(size + 1);
keys[size++] = selectionKey;
return true;
} | class class_name[name] begin[{]
method[add, return_type[type[boolean]], modifier[public], parameter[selectionKey]] begin[{]
if[binary_operation[literal[null], ==, member[.selectionKey]]] begin[{]
return[literal[false]]
else begin[{]
None
end[}]
call[.... | Keyword[public] Keyword[boolean] identifier[add] operator[SEP] Keyword[final] identifier[SelectionKey] identifier[selectionKey] operator[SEP] {
Keyword[if] operator[SEP] Other[null] operator[==] identifier[selectionKey] operator[SEP] {
Keyword[return] literal[boolean] operator[SEP]
}
ide... |
boolean accept() {
// Assert that the classpath element is included
if (!_includePredicate.test(_ctClass)) {
_log.debug("Class is not included: " + _ctClass.getName());
return false;
}
// Assert that the classpath element is not excluded
if (_excludePredi... | class class_name[name] begin[{]
method[accept, return_type[type[boolean]], modifier[default], parameter[]] begin[{]
if[call[_includePredicate.test, parameter[member[._ctClass]]]] begin[{]
call[_log.debug, parameter[binary_operation[literal["Class is not included: "], +, ... | Keyword[boolean] identifier[accept] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[_includePredicate] operator[SEP] identifier[test] operator[SEP] identifier[_ctClass] operator[SEP] operator[SEP] {
identifier[_log] operator[SEP] identifier[debug] operator[SEP] literal[S... |
@GwtCompatible(serializable = true)
public static <T> Predicate<T> isNull() {
return ObjectPredicate.IS_NULL.withNarrowedType();
} | class class_name[name] begin[{]
method[isNull, return_type[type[Predicate]], modifier[public static], parameter[]] begin[{]
return[call[ObjectPredicate.IS_NULL.withNarrowedType, parameter[]]]
end[}]
END[}] | annotation[@] identifier[GwtCompatible] operator[SEP] identifier[serializable] operator[=] literal[boolean] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] operator[>] identifier[Predicate] operator[<] identifier[T] operator[>] identifier[isNull] operator[SEP] operator[SEP] {
Keyword[retu... |
public static ValueWithPos<String> isbn13FormatWithPos(final ValueWithPos<String> pentry) {
if (pentry == null) {
return null;
}
if (StringUtils.isNotEmpty(pentry.getValue())) {
final StringBuilder ibanSb = new StringBuilder(Isbn13FormatedValidator.ISBN13_LENGTH);
int pos = 0;
int po... | class class_name[name] begin[{]
method[isbn13FormatWithPos, return_type[type[ValueWithPos]], modifier[public static], parameter[pentry]] begin[{]
if[binary_operation[member[.pentry], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
... | Keyword[public] Keyword[static] identifier[ValueWithPos] operator[<] identifier[String] operator[>] identifier[isbn13FormatWithPos] operator[SEP] Keyword[final] identifier[ValueWithPos] operator[<] identifier[String] operator[>] identifier[pentry] operator[SEP] {
Keyword[if] operator[SEP] identifier[pentry] oper... |
public double getNorth() {
Double n = get(NORTH);
if (n != null) {
return n;
}
return HMConstants.doubleNovalue;
} | class class_name[name] begin[{]
method[getNorth, return_type[type[double]], modifier[public], parameter[]] begin[{]
local_variable[type[Double], n]
if[binary_operation[member[.n], !=, literal[null]]] begin[{]
return[member[.n]]
else begin[{]
None
end[}]
... | Keyword[public] Keyword[double] identifier[getNorth] operator[SEP] operator[SEP] {
identifier[Double] identifier[n] operator[=] identifier[get] operator[SEP] identifier[NORTH] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[n] operator[!=] Other[null] operator[SEP] {
Keyword[return] i... |
public static Resource getSetupPage(I_SetupUiContext context, String name) {
String path = CmsStringUtil.joinPaths(context.getSetupBean().getContextPath(), CmsSetupBean.FOLDER_SETUP, name);
Resource resource = new ExternalResource(path);
return resource;
} | class class_name[name] begin[{]
method[getSetupPage, return_type[type[Resource]], modifier[public static], parameter[context, name]] begin[{]
local_variable[type[String], path]
local_variable[type[Resource], resource]
return[member[.resource]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[Resource] identifier[getSetupPage] operator[SEP] identifier[I_SetupUiContext] identifier[context] , identifier[String] identifier[name] operator[SEP] {
identifier[String] identifier[path] operator[=] identifier[CmsStringUtil] operator[SEP] identifier[joinPaths] operato... |
public final T build() {
getParser().parseImpl(this);
// There was a gap in the parameters if either:
// 1) the mask had a gap, e.g. ..00110111
// 2) there were more than 32 parameters and the mask wasn't full.
// Gaps above the 32nd parameter are not detected.
if ((pmask & (pmask + 1)) != 0 || ... | class class_name[name] begin[{]
method[build, return_type[type[T]], modifier[final public], parameter[]] begin[{]
call[.getParser, parameter[]]
if[binary_operation[binary_operation[binary_operation[member[.pmask], &, binary_operation[member[.pmask], +, literal[1]]], !=, literal[... | Keyword[public] Keyword[final] identifier[T] identifier[build] operator[SEP] operator[SEP] {
identifier[getParser] operator[SEP] operator[SEP] operator[SEP] identifier[parseImpl] operator[SEP] Keyword[this] operator[SEP] operator[SEP] Keyword[if] operator[SEP] operator[SEP] identifier[pmask] operator[&] operator... |
protected Map<String, Object> getJmxServerEnvironment() {
final Map<String, Object> jmxEnv = new HashMap<String, Object>();
// SSL Options
final String enableSSL = System.getProperty(JMX_SSL_PROPERTY);
if (Boolean.getBoolean(enableSSL)) {
SslRMIClientSocketFactory csf = new ... | class class_name[name] begin[{]
method[getJmxServerEnvironment, return_type[type[Map]], modifier[protected], parameter[]] begin[{]
local_variable[type[Map], jmxEnv]
local_variable[type[String], enableSSL]
if[call[Boolean.getBoolean, parameter[member[.enableSSL]]]] begin[{]
... | Keyword[protected] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[getJmxServerEnvironment] operator[SEP] operator[SEP] {
Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[Object] operator[>] identifier[jmxEnv] operator[=] Keyword[new] identif... |
public static <E> Optional<E> searchFirst(E[] array, Predicate<E> predicate) {
final FilteringIterator<E> filtered = new FilteringIterator<E>(new ArrayIterator<E>(array), predicate);
return new MaybeFirstElement<E>().apply(filtered);
} | class class_name[name] begin[{]
method[searchFirst, return_type[type[Optional]], modifier[public static], parameter[array, predicate]] begin[{]
local_variable[type[FilteringIterator], filtered]
return[ClassCreator(arguments=[], body=None, constructor_type_arguments=None, postfix_operators=[], p... | Keyword[public] Keyword[static] operator[<] identifier[E] operator[>] identifier[Optional] operator[<] identifier[E] operator[>] identifier[searchFirst] operator[SEP] identifier[E] operator[SEP] operator[SEP] identifier[array] , identifier[Predicate] operator[<] identifier[E] operator[>] identifier[predicate] operator... |
@Override
public double getValue(IntDoubleVector params) {
double sum = params.dot(params);
sum *= 1./2. * lambda;
return - sum;
} | class class_name[name] begin[{]
method[getValue, return_type[type[double]], modifier[public], parameter[params]] begin[{]
local_variable[type[double], sum]
assign[member[.sum], binary_operation[binary_operation[literal[1.], /, literal[2.]], *, member[.lambda]]]
return[member[.su... | annotation[@] identifier[Override] Keyword[public] Keyword[double] identifier[getValue] operator[SEP] identifier[IntDoubleVector] identifier[params] operator[SEP] {
Keyword[double] identifier[sum] operator[=] identifier[params] operator[SEP] identifier[dot] operator[SEP] identifier[params] operator[SEP] operator... |
private void buildUI() {
// Attribute select:
attributeSelect = new SelectItem("attributeItem");
attributeSelect.setWidth(140);
attributeSelect.setShowTitle(false);
attributeSelect.setValueMap(getSearchableAttributes(layer));
attributeSelect.setHint(I18nProvider.getSearch().gridChooseAttribute());
attrib... | class class_name[name] begin[{]
method[buildUI, return_type[void], modifier[private], parameter[]] begin[{]
assign[member[.attributeSelect], ClassCreator(arguments=[Literal(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], value="attributeItem")], body=None, constructor_t... | Keyword[private] Keyword[void] identifier[buildUI] operator[SEP] operator[SEP] {
identifier[attributeSelect] operator[=] Keyword[new] identifier[SelectItem] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[attributeSelect] operator[SEP] identifier[setWidth] operator[SEP] Other[140] operator[S... |
public <ResultT> CoreSyncFindIterable<ResultT> find(final Bson filter,
final Class<ResultT> resultClass) {
return createFindIterable(filter, resultClass);
} | class class_name[name] begin[{]
method[find, return_type[type[CoreSyncFindIterable]], modifier[public], parameter[filter, resultClass]] begin[{]
return[call[.createFindIterable, parameter[member[.filter], member[.resultClass]]]]
end[}]
END[}] | Keyword[public] operator[<] identifier[ResultT] operator[>] identifier[CoreSyncFindIterable] operator[<] identifier[ResultT] operator[>] identifier[find] operator[SEP] Keyword[final] identifier[Bson] identifier[filter] , Keyword[final] identifier[Class] operator[<] identifier[ResultT] operator[>] identifier[resultClas... |
public CrawlerTargets withS3Targets(S3Target... s3Targets) {
if (this.s3Targets == null) {
setS3Targets(new java.util.ArrayList<S3Target>(s3Targets.length));
}
for (S3Target ele : s3Targets) {
this.s3Targets.add(ele);
}
return this;
} | class class_name[name] begin[{]
method[withS3Targets, return_type[type[CrawlerTargets]], modifier[public], parameter[s3Targets]] begin[{]
if[binary_operation[THIS[member[None.s3Targets]], ==, literal[null]]] begin[{]
call[.setS3Targets, parameter[ClassCreator(arguments=[... | Keyword[public] identifier[CrawlerTargets] identifier[withS3Targets] operator[SEP] identifier[S3Target] operator[...] identifier[s3Targets] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[s3Targets] operator[==] Other[null] operator[SEP] {
identifier[setS3Targets] oper... |
private double computeLearningRate(int i) {
if (gradAccum[i] < 0) {
throw new RuntimeException("Gradient accumulator is < 0: " + gradAccum[i]);
}
if (updAccum[i] < 0) {
throw new RuntimeException("Update accumulator is < 0: " + updAccum[i]);
}
double lear... | class class_name[name] begin[{]
method[computeLearningRate, return_type[type[double]], modifier[private], parameter[i]] begin[{]
if[binary_operation[member[.gradAccum], <, literal[0]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[BinaryOperation(operandl=Literal(postfi... | Keyword[private] Keyword[double] identifier[computeLearningRate] operator[SEP] Keyword[int] identifier[i] operator[SEP] {
Keyword[if] operator[SEP] identifier[gradAccum] operator[SEP] identifier[i] operator[SEP] operator[<] Other[0] operator[SEP] {
Keyword[throw] Keyword[new] identifier[RuntimeExcepti... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.