code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
protected <T extends VaadinServlet> Wrapper initializeVaadinServlet(T servlet) {
// Setup vaadin servlet
final Wrapper wrapper = Tomcat.addServlet(getContext(),
"vaadin", servlet);
if (getConfig().getWidgetSet() != null) {
wrapper.addInitParameter("widgetset", getConf... | class class_name[name] begin[{]
method[initializeVaadinServlet, return_type[type[Wrapper]], modifier[protected], parameter[servlet]] begin[{]
local_variable[type[Wrapper], wrapper]
if[binary_operation[call[.getConfig, parameter[]], !=, literal[null]]] begin[{]
ca... | Keyword[protected] operator[<] identifier[T] Keyword[extends] identifier[VaadinServlet] operator[>] identifier[Wrapper] identifier[initializeVaadinServlet] operator[SEP] identifier[T] identifier[servlet] operator[SEP] {
Keyword[final] identifier[Wrapper] identifier[wrapper] operator[=] identifier[Tomcat] operato... |
public void close(Result<Boolean> result)
{
_lifecycle.toDestroy();
SegmentStream nodeStream = _nodeStream;
_nodeStream = null;
if (nodeStream != null) {
nodeStream.closeFsync(result.then(v->closeImpl()));
}
else {
result.ok(true);
}
} | class class_name[name] begin[{]
method[close, return_type[void], modifier[public], parameter[result]] begin[{]
call[_lifecycle.toDestroy, parameter[]]
local_variable[type[SegmentStream], nodeStream]
assign[member[._nodeStream], literal[null]]
if[binary_op... | Keyword[public] Keyword[void] identifier[close] operator[SEP] identifier[Result] operator[<] identifier[Boolean] operator[>] identifier[result] operator[SEP] {
identifier[_lifecycle] operator[SEP] identifier[toDestroy] operator[SEP] operator[SEP] operator[SEP] identifier[SegmentStream] identifier[nodeStream] ope... |
private <T> Key<T> assistKey(Method method, Key<T> key, Errors errors) throws ErrorsException {
if (key.getAnnotationType() == null) {
return Key.get(key.getTypeLiteral(), DEFAULT_ANNOTATION);
} else if (key.getAnnotationType() == Assisted.class) {
return key;
} else {
errors.withSource(me... | class class_name[name] begin[{]
method[assistKey, return_type[type[Key]], modifier[private], parameter[method, key, errors]] begin[{]
if[binary_operation[call[key.getAnnotationType, parameter[]], ==, literal[null]]] begin[{]
return[call[Key.get, parameter[call[key.getTypeLiteral, pa... | Keyword[private] operator[<] identifier[T] operator[>] identifier[Key] operator[<] identifier[T] operator[>] identifier[assistKey] operator[SEP] identifier[Method] identifier[method] , identifier[Key] operator[<] identifier[T] operator[>] identifier[key] , identifier[Errors] identifier[errors] operator[SEP] Keyword[t... |
public static Webcam getDefault(long timeout) throws TimeoutException, WebcamException {
if (timeout < 0) {
throw new IllegalArgumentException(String.format("Timeout cannot be negative (%d)", timeout));
}
return getDefault(timeout, TimeUnit.MILLISECONDS);
} | class class_name[name] begin[{]
method[getDefault, return_type[type[Webcam]], modifier[public static], parameter[timeout]] begin[{]
if[binary_operation[member[.timeout], <, literal[0]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[MethodInvocation(arguments=[Literal(po... | Keyword[public] Keyword[static] identifier[Webcam] identifier[getDefault] operator[SEP] Keyword[long] identifier[timeout] operator[SEP] Keyword[throws] identifier[TimeoutException] , identifier[WebcamException] {
Keyword[if] operator[SEP] identifier[timeout] operator[<] Other[0] operator[SEP] {
Keywo... |
public static <R extends Random, T> T with(
final ThreadLocal<R> random,
final Function<? super R, ? extends T> function
) {
return CONTEXT.with(random::get, s -> function.apply(random.get()));
} | class class_name[name] begin[{]
method[with, return_type[type[T]], modifier[public static], parameter[random, function]] begin[{]
return[call[CONTEXT.with, parameter[MethodReference(expression=MemberReference(member=random, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), method=Me... | Keyword[public] Keyword[static] operator[<] identifier[R] Keyword[extends] identifier[Random] , identifier[T] operator[>] identifier[T] identifier[with] operator[SEP] Keyword[final] identifier[ThreadLocal] operator[<] identifier[R] operator[>] identifier[random] , Keyword[final] identifier[Function] operator[<] opera... |
public Credentials userSignUp(Credentials credentials) throws DAOException{
if (getUserByEmail(dao,credentials.getEmailAddress())!=null){
throw new DAOException(HttpStatus.SC_CONFLICT,"User Already Exists");
}
ServerCredentials toSave = new ServerCredentials(credentials);
to... | class class_name[name] begin[{]
method[userSignUp, return_type[type[Credentials]], modifier[public], parameter[credentials]] begin[{]
if[binary_operation[call[.getUserByEmail, parameter[member[.dao], call[credentials.getEmailAddress, parameter[]]]], !=, literal[null]]] begin[{]
Thro... | Keyword[public] identifier[Credentials] identifier[userSignUp] operator[SEP] identifier[Credentials] identifier[credentials] operator[SEP] Keyword[throws] identifier[DAOException] {
Keyword[if] operator[SEP] identifier[getUserByEmail] operator[SEP] identifier[dao] , identifier[credentials] operator[SEP] identif... |
public static void printTree(Cluster a,String file) {
int depth = getDepth(a);
width = wunit*(depth+1);
height = hunit*(depth+1);
BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
Graphics2D g = image .createGraphics();
g.setColor(new Color(0,0,0)... | class class_name[name] begin[{]
method[printTree, return_type[void], modifier[public static], parameter[a, file]] begin[{]
local_variable[type[int], depth]
assign[member[.width], binary_operation[member[.wunit], *, binary_operation[member[.depth], +, literal[1]]]]
assign... | Keyword[public] Keyword[static] Keyword[void] identifier[printTree] operator[SEP] identifier[Cluster] identifier[a] , identifier[String] identifier[file] operator[SEP] {
Keyword[int] identifier[depth] operator[=] identifier[getDepth] operator[SEP] identifier[a] operator[SEP] operator[SEP] identifier[width] oper... |
@Override
protected void prepareQueries() throws SQLException
{
FIND_ITEM_BY_ID = "select * from JCR_SITEM where ID=?";
FIND_ITEM_BY_NAME =
"select * from JCR_SITEM"
+ " where CONTAINER_NAME=? and PARENT_ID=? and NAME=? and I_INDEX=? order by I_CLASS, VERSION DESC";
FIND_... | class class_name[name] begin[{]
method[prepareQueries, return_type[void], modifier[protected], parameter[]] begin[{]
assign[member[.FIND_ITEM_BY_ID], literal["select * from JCR_SITEM where ID=?"]]
assign[member[.FIND_ITEM_BY_NAME], binary_operation[literal["select * from JCR_SIT... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[prepareQueries] operator[SEP] operator[SEP] Keyword[throws] identifier[SQLException] {
identifier[FIND_ITEM_BY_ID] operator[=] literal[String] operator[SEP] identifier[FIND_ITEM_BY_NAME] operator[=] literal[String] operator[+] literal... |
public static void renderWrappedText(StringBuilder sb, int width, int nextLineTabStop, String text) {
int pos = OptionUtils.findWrapPos(text, width, 0);
if (pos == -1) {
sb.append(OptionUtils.rtrim(text));
return;
}
sb.append(OptionUtils.rtrim(text.substring(0, po... | class class_name[name] begin[{]
method[renderWrappedText, return_type[void], modifier[public static], parameter[sb, width, nextLineTabStop, text]] begin[{]
local_variable[type[int], pos]
if[binary_operation[member[.pos], ==, literal[1]]] begin[{]
call[sb.append, ... | Keyword[public] Keyword[static] Keyword[void] identifier[renderWrappedText] operator[SEP] identifier[StringBuilder] identifier[sb] , Keyword[int] identifier[width] , Keyword[int] identifier[nextLineTabStop] , identifier[String] identifier[text] operator[SEP] {
Keyword[int] identifier[pos] operator[=] identifi... |
@Override
public void init() {
// create db schema if needed
Connection connection = null;
try {
connection = jdbcRA.getConnection();
connection.createStatement().execute(
DataSourceSchemaInfo._QUERY_DROP);
connection.createStatement().execute(
DataSourceSchemaInfo._QUERY_CREATE);
} ... | class class_name[name] begin[{]
method[init, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[Connection], connection]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=connection, postfix_operators=[], prefix_operator... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[init] operator[SEP] operator[SEP] {
identifier[Connection] identifier[connection] operator[=] Other[null] operator[SEP] Keyword[try] {
identifier[connection] operator[=] identifier[jdbcRA] operator[SEP] identifier[getConnectio... |
@Override
public RandomVariableDifferentiable mult(RandomVariable randomVariable) {
return new RandomVariableDifferentiableAADPathwise(
getValues().mult(randomVariable),
Arrays.asList(this, randomVariable),
OperatorType.MULT);
} | class class_name[name] begin[{]
method[mult, return_type[type[RandomVariableDifferentiable]], modifier[public], parameter[randomVariable]] begin[{]
return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getValues, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[MethodInv... | annotation[@] identifier[Override] Keyword[public] identifier[RandomVariableDifferentiable] identifier[mult] operator[SEP] identifier[RandomVariable] identifier[randomVariable] operator[SEP] {
Keyword[return] Keyword[new] identifier[RandomVariableDifferentiableAADPathwise] operator[SEP] identifier[getValues] ope... |
public boolean push(String newText) {
if (stackTop < stack.length - 1) {
stack[stackTop++] = newText;
return true;
} else {
return false;
}
} | class class_name[name] begin[{]
method[push, return_type[type[boolean]], modifier[public], parameter[newText]] begin[{]
if[binary_operation[member[.stackTop], <, binary_operation[member[stack.length], -, literal[1]]]] begin[{]
assign[member[.stack], member[.newText]]
... | Keyword[public] Keyword[boolean] identifier[push] operator[SEP] identifier[String] identifier[newText] operator[SEP] {
Keyword[if] operator[SEP] identifier[stackTop] operator[<] identifier[stack] operator[SEP] identifier[length] operator[-] Other[1] operator[SEP] {
identifier[stack] operator[SEP] iden... |
public URL getServiceURL() {
return new URL(this.protocol, this.adapterAddress, this.deviceAddress, this.deviceAttributes,
this.serviceUUID, null, null);
} | class class_name[name] begin[{]
method[getServiceURL, return_type[type[URL]], modifier[public], parameter[]] begin[{]
return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[MemberReference(member=protocol, postfix_operators=None, prefix_operators=None,... | Keyword[public] identifier[URL] identifier[getServiceURL] operator[SEP] operator[SEP] {
Keyword[return] Keyword[new] identifier[URL] operator[SEP] Keyword[this] operator[SEP] identifier[protocol] , Keyword[this] operator[SEP] identifier[adapterAddress] , Keyword[this] operator[SEP] identifier[deviceAddress] , ... |
public Option getOptionWithLongForm( String longForm ) throws InvalidOptionException
{
for (Option option : options)
{
if (longForm.equals( option.getLongForm() )) return option;
}
throw new InvalidOptionException( longForm );
} | class class_name[name] begin[{]
method[getOptionWithLongForm, return_type[type[Option]], modifier[public], parameter[longForm]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getLongForm, postfix_... | Keyword[public] identifier[Option] identifier[getOptionWithLongForm] operator[SEP] identifier[String] identifier[longForm] operator[SEP] Keyword[throws] identifier[InvalidOptionException] {
Keyword[for] operator[SEP] identifier[Option] identifier[option] operator[:] identifier[options] operator[SEP] {
... |
public CalendarQuarter plus(Quarters quarters) {
if (quarters.isEmpty()) {
return this;
}
long value = this.year * 4L + this.quarter.getValue() - 1 + quarters.getAmount();
int y = MathUtils.safeCast(MathUtils.floorDivide(value, 4));
Quarter q = Quarter.valueOf(MathU... | class class_name[name] begin[{]
method[plus, return_type[type[CalendarQuarter]], modifier[public], parameter[quarters]] begin[{]
if[call[quarters.isEmpty, parameter[]]] begin[{]
return[THIS[]]
else begin[{]
None
end[}]
local_variable[type[long], value]
... | Keyword[public] identifier[CalendarQuarter] identifier[plus] operator[SEP] identifier[Quarters] identifier[quarters] operator[SEP] {
Keyword[if] operator[SEP] identifier[quarters] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] {
Keyword[return] Keyword[this] operator[SEP] ... |
public String getEditorClass()
{
PropertyInfo pi = getPropertyInfo();
if (pi == null)
return null;
//
// This is trickier, because APT doesn't allow access to Class-valued annotations,
// because the type may not yet have been compiled.
//
Collect... | class class_name[name] begin[{]
method[getEditorClass, return_type[type[String]], modifier[public], parameter[]] begin[{]
local_variable[type[PropertyInfo], pi]
if[binary_operation[member[.pi], ==, literal[null]]] begin[{]
return[literal[null]]
else begin[{]
None
end[}]
... | Keyword[public] identifier[String] identifier[getEditorClass] operator[SEP] operator[SEP] {
identifier[PropertyInfo] identifier[pi] operator[=] identifier[getPropertyInfo] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[pi] operator[==] Other[null] operator[SEP] Keyword[return] Oth... |
TextOutline positionChargeLabel(int hydrogens, HydrogenPosition position, TextOutline charge, TextOutline element,
TextOutline hydrogen) {
final Rectangle2D chargeBounds = charge.getBounds();
// the charge is placed to the top right of the element symbol
// ... | class class_name[name] begin[{]
method[positionChargeLabel, return_type[type[TextOutline]], modifier[default], parameter[hydrogens, position, charge, element, hydrogen]] begin[{]
local_variable[type[Rectangle2D], chargeBounds]
local_variable[type[Rectangle2D], referenceBounds]
i... | identifier[TextOutline] identifier[positionChargeLabel] operator[SEP] Keyword[int] identifier[hydrogens] , identifier[HydrogenPosition] identifier[position] , identifier[TextOutline] identifier[charge] , identifier[TextOutline] identifier[element] , identifier[TextOutline] identifier[hydrogen] operator[SEP] {
... |
public String getDoi() {
if (Header_Type.featOkTst && ((Header_Type)jcasType).casFeat_doi == null)
jcasType.jcas.throwFeatMissing("doi", "de.julielab.jules.types.Header");
return jcasType.ll_cas.ll_getStringValue(addr, ((Header_Type)jcasType).casFeatCode_doi);} | class class_name[name] begin[{]
method[getDoi, return_type[type[String]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[Header_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], qualifier=, selec... | Keyword[public] identifier[String] identifier[getDoi] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[Header_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[Header_Type] operator[SEP] identifier[jcasType] operator[SEP] operator[SEP] identifier[casF... |
public void serializeInsert(QueryMetadata metadata, RelationalPath<?> entity,
List<SQLInsertBatch> batches, SQLSerializer context) {
context.serializeForInsert(metadata, entity, batches);
if (!metadata.getFlags().isEmpty()) {
context.serialize(Position.END, m... | class class_name[name] begin[{]
method[serializeInsert, return_type[void], modifier[public], parameter[metadata, entity, batches, context]] begin[{]
call[context.serializeForInsert, parameter[member[.metadata], member[.entity], member[.batches]]]
if[call[metadata.getFlags, param... | Keyword[public] Keyword[void] identifier[serializeInsert] operator[SEP] identifier[QueryMetadata] identifier[metadata] , identifier[RelationalPath] operator[<] operator[?] operator[>] identifier[entity] , identifier[List] operator[<] identifier[SQLInsertBatch] operator[>] identifier[batches] , identifier[SQLSerializ... |
public void setIndices(CharBuffer indices)
{
if (indices != null)
{
if (mIndices == null)
{
setIndexBuffer(new GVRIndexBuffer(getGVRContext(), 2, indices.capacity() / 2));
}
mIndices.setShortVec(indices);
}
else
... | class class_name[name] begin[{]
method[setIndices, return_type[void], modifier[public], parameter[indices]] begin[{]
if[binary_operation[member[.indices], !=, literal[null]]] begin[{]
if[binary_operation[member[.mIndices], ==, literal[null]]] begin[{]
... | Keyword[public] Keyword[void] identifier[setIndices] operator[SEP] identifier[CharBuffer] identifier[indices] operator[SEP] {
Keyword[if] operator[SEP] identifier[indices] operator[!=] Other[null] operator[SEP] {
Keyword[if] operator[SEP] identifier[mIndices] operator[==] Other[null] operator[SEP] {
... |
public static Map<String, IDLProxyObject> create(File file, boolean debug, File path, List<CodeDependent> cds,
Set<String> compiledClass) throws IOException {
return create(file, debug, path, cds, compiledClass, true);
} | class class_name[name] begin[{]
method[create, return_type[type[Map]], modifier[public static], parameter[file, debug, path, cds, compiledClass]] begin[{]
return[call[.create, parameter[member[.file], member[.debug], member[.path], member[.cds], member[.compiledClass], literal[true]]]]
end[}]
END[}... | Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[String] , identifier[IDLProxyObject] operator[>] identifier[create] operator[SEP] identifier[File] identifier[file] , Keyword[boolean] identifier[debug] , identifier[File] identifier[path] , identifier[List] operator[<] identifier[CodeDependent]... |
public NfsRemoveResponse remove() throws IOException {
NfsRemoveResponse response = getNfs().wrapped_sendRemove(makeRemoveRequest());
setFileHandle(null);
return response;
} | class class_name[name] begin[{]
method[remove, return_type[type[NfsRemoveResponse]], modifier[public], parameter[]] begin[{]
local_variable[type[NfsRemoveResponse], response]
call[.setFileHandle, parameter[literal[null]]]
return[member[.response]]
end[}]
END[}] | Keyword[public] identifier[NfsRemoveResponse] identifier[remove] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[NfsRemoveResponse] identifier[response] operator[=] identifier[getNfs] operator[SEP] operator[SEP] operator[SEP] identifier[wrapped_sendRemove] operator[SEP] identifie... |
@Beta
public static boolean shutdownAndAwaitTermination(
ExecutorService service, long timeout, TimeUnit unit) {
checkNotNull(unit);
// Disable new tasks from being submitted
service.shutdown();
try {
long halfTimeoutNanos = TimeUnit.NANOSECONDS.convert(timeout, unit) / 2;
// Wait fo... | class class_name[name] begin[{]
method[shutdownAndAwaitTermination, return_type[type[boolean]], modifier[public static], parameter[service, timeout, unit]] begin[{]
call[.checkNotNull, parameter[member[.unit]]]
call[service.shutdown, parameter[]]
TryStatement(block=[Loca... | annotation[@] identifier[Beta] Keyword[public] Keyword[static] Keyword[boolean] identifier[shutdownAndAwaitTermination] operator[SEP] identifier[ExecutorService] identifier[service] , Keyword[long] identifier[timeout] , identifier[TimeUnit] identifier[unit] operator[SEP] {
identifier[checkNotNull] operator[SEP... |
public void configure(Map<String, ?> configs, boolean isKey) {
Preconditions.checkArgument(isKey==false, "LiAvroDeserializer only works for value fields");
_datumReader = new GenericDatumReader<>();
Properties props = new Properties();
for (Map.Entry<String, ?> entry: configs.entrySet())
{
Str... | class class_name[name] begin[{]
method[configure, return_type[void], modifier[public], parameter[configs, isKey]] begin[{]
call[Preconditions.checkArgument, parameter[binary_operation[member[.isKey], ==, literal[false]], literal["LiAvroDeserializer only works for value fields"]]]
... | Keyword[public] Keyword[void] identifier[configure] operator[SEP] identifier[Map] operator[<] identifier[String] , operator[?] operator[>] identifier[configs] , Keyword[boolean] identifier[isKey] operator[SEP] {
identifier[Preconditions] operator[SEP] identifier[checkArgument] operator[SEP] identifier[isKey] o... |
public void drawImage (final PDInlineImage inlineImage, final float x, final float y) throws IOException
{
drawImage (inlineImage, x, y, inlineImage.getWidth (), inlineImage.getHeight ());
} | class class_name[name] begin[{]
method[drawImage, return_type[void], modifier[public], parameter[inlineImage, x, y]] begin[{]
call[.drawImage, parameter[member[.inlineImage], member[.x], member[.y], call[inlineImage.getWidth, parameter[]], call[inlineImage.getHeight, parameter[]]]]
end[}]
E... | Keyword[public] Keyword[void] identifier[drawImage] operator[SEP] Keyword[final] identifier[PDInlineImage] identifier[inlineImage] , Keyword[final] Keyword[float] identifier[x] , Keyword[final] Keyword[float] identifier[y] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[drawImage] operator[S... |
public static int skipCQLId(String toParse, int idx) {
if (idx >= toParse.length()) throw new IllegalArgumentException();
char c = toParse.charAt(idx);
if (isCqlIdentifierChar(c)) {
while (idx < toParse.length() && isCqlIdentifierChar(toParse.charAt(idx))) idx++;
return idx;
}
if (c !=... | class class_name[name] begin[{]
method[skipCQLId, return_type[type[int]], modifier[public static], parameter[toParse, idx]] begin[{]
if[binary_operation[member[.idx], >=, call[toParse.length, parameter[]]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[], body=None, constructor_typ... | Keyword[public] Keyword[static] Keyword[int] identifier[skipCQLId] operator[SEP] identifier[String] identifier[toParse] , Keyword[int] identifier[idx] operator[SEP] {
Keyword[if] operator[SEP] identifier[idx] operator[>=] identifier[toParse] operator[SEP] identifier[length] operator[SEP] operator[SEP] operator[... |
private PushApplication loadPushApplicationWhenAuthorized(HttpServletRequest request) {
// extract the pushApplicationID and its secret from the HTTP Basic header:
String[] credentials = HttpBasicHelper.extractUsernameAndPasswordFromBasicHeader(request);
String pushApplicationID = credentials[0]... | class class_name[name] begin[{]
method[loadPushApplicationWhenAuthorized, return_type[type[PushApplication]], modifier[private], parameter[request]] begin[{]
local_variable[type[String], credentials]
local_variable[type[String], pushApplicationID]
local_variable[type[String], secret]
... | Keyword[private] identifier[PushApplication] identifier[loadPushApplicationWhenAuthorized] operator[SEP] identifier[HttpServletRequest] identifier[request] operator[SEP] {
identifier[String] operator[SEP] operator[SEP] identifier[credentials] operator[=] identifier[HttpBasicHelper] operator[SEP] identifier[extra... |
@Override
public GetPolicyResult getPolicy(GetPolicyRequest request) {
request = beforeClientExecution(request);
return executeGetPolicy(request);
} | class class_name[name] begin[{]
method[getPolicy, return_type[type[GetPolicyResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeGetPolicy, parameter[member[.request]]]]
end[}... | annotation[@] identifier[Override] Keyword[public] identifier[GetPolicyResult] identifier[getPolicy] operator[SEP] identifier[GetPolicyRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecution] operator[SEP] identifier[request] operator[SEP] operator[SEP] Keywo... |
public void stopWriteCacheFlushTimer(int pagesFlushed) {
// lazy initialization to prevent memory consumption
if (writCacheCountersHolder == null)
writCacheCountersHolder = new WritCacheCountersHolder();
final long endTs = nanoTimer.getNano();
final long timeDiff = (endTs - timeStamps.pop());
... | class class_name[name] begin[{]
method[stopWriteCacheFlushTimer, return_type[void], modifier[public], parameter[pagesFlushed]] begin[{]
if[binary_operation[member[.writCacheCountersHolder], ==, literal[null]]] begin[{]
assign[member[.writCacheCountersHolder], ClassCreator(arguments=... | Keyword[public] Keyword[void] identifier[stopWriteCacheFlushTimer] operator[SEP] Keyword[int] identifier[pagesFlushed] operator[SEP] {
Keyword[if] operator[SEP] identifier[writCacheCountersHolder] operator[==] Other[null] operator[SEP] identifier[writCacheCountersHolder] operator[=] Keyword[new] identifier[WritC... |
public static List<String> zip(String... inputs) {
if (inputs.length == 0) {
return Collections.emptyList();
}
OptionalInt min = Arrays.stream(inputs).mapToInt(str -> str == null ? 0 : str.length()).min();
if (!min.isPresent()) {
return Collections.emptyList();
... | class class_name[name] begin[{]
method[zip, return_type[type[List]], modifier[public static], parameter[inputs]] begin[{]
if[binary_operation[member[inputs.length], ==, literal[0]]] begin[{]
return[call[Collections.emptyList, parameter[]]]
else begin[{]
None
end[}]
... | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[String] operator[>] identifier[zip] operator[SEP] identifier[String] operator[...] identifier[inputs] operator[SEP] {
Keyword[if] operator[SEP] identifier[inputs] operator[SEP] identifier[length] operator[==] Other[0] operator[SEP] {
... |
private void visitLhsNodes(
AmbiguatedFunctionSummary sideEffectInfo,
Scope scope,
Node enclosingFunction,
List<Node> lhsNodes,
Predicate<Node> hasLocalRhs) {
for (Node lhs : lhsNodes) {
if (NodeUtil.isGet(lhs)) {
if (lhs.getFirstChild().isThis()) {
... | class class_name[name] begin[{]
method[visitLhsNodes, return_type[void], modifier[private], parameter[sideEffectInfo, scope, enclosingFunction, lhsNodes, hasLocalRhs]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(mem... | Keyword[private] Keyword[void] identifier[visitLhsNodes] operator[SEP] identifier[AmbiguatedFunctionSummary] identifier[sideEffectInfo] , identifier[Scope] identifier[scope] , identifier[Node] identifier[enclosingFunction] , identifier[List] operator[<] identifier[Node] operator[>] identifier[lhsNodes] , identifier... |
public final void addExtension(final String extension) {
if (filters == null) {
filters = new HashMap<>(1);
}
filters.put(extension.toLowerCase(Locale.getDefault()), this);
fullDescription = null;
} | class class_name[name] begin[{]
method[addExtension, return_type[void], modifier[final public], parameter[extension]] begin[{]
if[binary_operation[member[.filters], ==, literal[null]]] begin[{]
assign[member[.filters], ClassCreator(arguments=[Literal(postfix_operators=[]... | Keyword[public] Keyword[final] Keyword[void] identifier[addExtension] operator[SEP] Keyword[final] identifier[String] identifier[extension] operator[SEP] {
Keyword[if] operator[SEP] identifier[filters] operator[==] Other[null] operator[SEP] {
identifier[filters] operator[=] Keyword[new] identifier[Has... |
public static void shareViaOther(Activity context, Entity entity, ShareAddListener listener) {
proxy.shareViaOther(context, entity, listener);
} | class class_name[name] begin[{]
method[shareViaOther, return_type[void], modifier[public static], parameter[context, entity, listener]] begin[{]
call[proxy.shareViaOther, parameter[member[.context], member[.entity], member[.listener]]]
end[}]
END[}] | Keyword[public] Keyword[static] Keyword[void] identifier[shareViaOther] operator[SEP] identifier[Activity] identifier[context] , identifier[Entity] identifier[entity] , identifier[ShareAddListener] identifier[listener] operator[SEP] {
identifier[proxy] operator[SEP] identifier[shareViaOther] operator[SEP] iden... |
public Option xAxis(Axis... values) {
if (values == null || values.length == 0) {
return this;
}
if (this.xAxis().size() == 2) {
throw new RuntimeException("xAxis已经存在2个,无法继续添加!");
}
if (this.xAxis().size() + values.length > 2) {
throw new Runti... | class class_name[name] begin[{]
method[xAxis, return_type[type[Option]], modifier[public], parameter[values]] begin[{]
if[binary_operation[binary_operation[member[.values], ==, literal[null]], ||, binary_operation[member[values.length], ==, literal[0]]]] begin[{]
return[THIS[]]
... | Keyword[public] identifier[Option] identifier[xAxis] operator[SEP] identifier[Axis] operator[...] identifier[values] operator[SEP] {
Keyword[if] operator[SEP] identifier[values] operator[==] Other[null] operator[||] identifier[values] operator[SEP] identifier[length] operator[==] Other[0] operator[SEP] {
... |
public Optional<Client> findClient(final String name) {
CommonHelper.assertNotBlank("name", name);
init();
final String lowerTrimmedName = name.toLowerCase().trim();
final Client client = _clients.get(lowerTrimmedName);
if (client != null) {
return Optional.of(client)... | class class_name[name] begin[{]
method[findClient, return_type[type[Optional]], modifier[public], parameter[name]] begin[{]
call[CommonHelper.assertNotBlank, parameter[literal["name"], member[.name]]]
call[.init, parameter[]]
local_variable[type[String], lowerTrimmedName... | Keyword[public] identifier[Optional] operator[<] identifier[Client] operator[>] identifier[findClient] operator[SEP] Keyword[final] identifier[String] identifier[name] operator[SEP] {
identifier[CommonHelper] operator[SEP] identifier[assertNotBlank] operator[SEP] literal[String] , identifier[name] operator[SEP]... |
private boolean newPluginImage(String name, String pluginId,
String filename) {
boolean success = true;
ImageDescriptor id =
AbstractUIPlugin.imageDescriptorFromPlugin(pluginId, filename);
if (id == null) {
id = ImageDescriptor.getMissingImageDescriptor();
// id = getSharedByName... | class class_name[name] begin[{]
method[newPluginImage, return_type[type[boolean]], modifier[private], parameter[name, pluginId, filename]] begin[{]
local_variable[type[boolean], success]
local_variable[type[ImageDescriptor], id]
if[binary_operation[member[.id], ==, literal[null]... | Keyword[private] Keyword[boolean] identifier[newPluginImage] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[pluginId] , identifier[String] identifier[filename] operator[SEP] {
Keyword[boolean] identifier[success] operator[=] literal[boolean] operator[SEP] identifier[ImageDesc... |
@Override
public void addEdge(Edge e) {
addDirectionalEdge(e);
if (e.isBidirectional())
addDirectionalEdge(new Edge(e.getToNodeId(), e.getFromNodeId(), e.getWeight()));
} | class class_name[name] begin[{]
method[addEdge, return_type[void], modifier[public], parameter[e]] begin[{]
call[.addDirectionalEdge, parameter[member[.e]]]
if[call[e.isBidirectional, parameter[]]] begin[{]
call[.addDirectionalEdge, parameter[ClassCreator(arguments=[... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addEdge] operator[SEP] identifier[Edge] identifier[e] operator[SEP] {
identifier[addDirectionalEdge] operator[SEP] identifier[e] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[e] operator[SEP] identifier[isBidirectional... |
private int rangeLimit(int size, int min, int max) {
if (size < min) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Config: " + size + " too small");
}
return min;
} else if (size > max) {
if (TraceCompon... | class class_name[name] begin[{]
method[rangeLimit, return_type[type[int]], modifier[private], parameter[size, min, max]] begin[{]
if[binary_operation[member[.size], <, member[.min]]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, ... | Keyword[private] Keyword[int] identifier[rangeLimit] operator[SEP] Keyword[int] identifier[size] , Keyword[int] identifier[min] , Keyword[int] identifier[max] operator[SEP] {
Keyword[if] operator[SEP] identifier[size] operator[<] identifier[min] operator[SEP] {
Keyword[if] operator[SEP] identifier[T... |
public static void handleError(final HttpServletHelper helper, final Throwable throwable) throws
ServletException,
IOException {
HttpServletRequest httpServletRequest = helper.getBackingRequest();
HttpServletResponse httpServletResponse = helper.getBackingResponse();
// Allow for multi part requests
Map<... | class class_name[name] begin[{]
method[handleError, return_type[void], modifier[public static], parameter[helper, throwable]] begin[{]
local_variable[type[HttpServletRequest], httpServletRequest]
local_variable[type[HttpServletResponse], httpServletResponse]
local_variable[type[Map], pa... | Keyword[public] Keyword[static] Keyword[void] identifier[handleError] operator[SEP] Keyword[final] identifier[HttpServletHelper] identifier[helper] , Keyword[final] identifier[Throwable] identifier[throwable] operator[SEP] Keyword[throws] identifier[ServletException] , identifier[IOException] {
identifier[Http... |
private void doPdsSummary(Formatter f, MCollection dcm, boolean eachFile) throws IOException {
Counters countersAll = new Counters();
countersAll.add("template");
countersAll.add("timeUnit");
countersAll.add("timeOffset");
countersAll.add("timeIntervalSize");
countersAll.add("levelType");
co... | class class_name[name] begin[{]
method[doPdsSummary, return_type[void], modifier[private], parameter[f, dcm, eachFile]] begin[{]
local_variable[type[Counters], countersAll]
call[countersAll.add, parameter[literal["template"]]]
call[countersAll.add, parameter[literal["tim... | Keyword[private] Keyword[void] identifier[doPdsSummary] operator[SEP] identifier[Formatter] identifier[f] , identifier[MCollection] identifier[dcm] , Keyword[boolean] identifier[eachFile] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[Counters] identifier[countersAll] operator[=] Keyword[ne... |
public static Class<?> doFormName(String className) throws ClassNotFoundException {
if ("boolean".equals(className))
return boolean.class;
if ("byte".equals(className))
return byte.class;
if ("char".equals(className))
return char.class;
if ("short".equ... | class class_name[name] begin[{]
method[doFormName, return_type[type[Class]], modifier[public static], parameter[className]] begin[{]
if[literal["boolean"]] begin[{]
return[ClassReference(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[], type=BasicType(dimensions=[], name=... | Keyword[public] Keyword[static] identifier[Class] operator[<] operator[?] operator[>] identifier[doFormName] operator[SEP] identifier[String] identifier[className] operator[SEP] Keyword[throws] identifier[ClassNotFoundException] {
Keyword[if] operator[SEP] literal[String] operator[SEP] identifier[equals] operato... |
HashSet getQueuePointGuessSet()
{
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getQueuePointGuessSet");
HashSet theQueuePoints = null;
synchronized (_queuePointsGuessSet)
{
theQueuePoints = (HashSet) _queuePointsGuessSet.clone();
}
if (TraceC... | class class_name[name] begin[{]
method[getQueuePointGuessSet, return_type[type[HashSet]], modifier[default], parameter[]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, paramet... | identifier[HashSet] identifier[getQueuePointGuessSet] 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] opera... |
private void sendLayoutMessage(final String msg) {
if (sqw != null) {
String packet = msg;
String hdr = getPacketHeader(new Date().getTime());
if(facilityPrinting || hdr.length() > 0) {
StringBuffer buf = new StringBuffer(hdr);
if(facilityPrinting) {
... | class class_name[name] begin[{]
method[sendLayoutMessage, return_type[void], modifier[private], parameter[msg]] begin[{]
if[binary_operation[member[.sqw], !=, literal[null]]] begin[{]
local_variable[type[String], packet]
local_variable[type[String], hdr]
... | Keyword[private] Keyword[void] identifier[sendLayoutMessage] operator[SEP] Keyword[final] identifier[String] identifier[msg] operator[SEP] {
Keyword[if] operator[SEP] identifier[sqw] operator[!=] Other[null] operator[SEP] {
identifier[String] identifier[packet] operator[=] identifier[msg] operator[SEP... |
public static Style createLocal(String location) {
String name = location.replaceFirst("bootstrap-", "");
name = name.replaceFirst(".min", "");
name = name.replaceFirst(".css", "");
return new AutoValue_Style(name, false, location);
} | class class_name[name] begin[{]
method[createLocal, return_type[type[Style]], modifier[public static], parameter[location]] begin[{]
local_variable[type[String], name]
assign[member[.name], call[name.replaceFirst, parameter[literal[".min"], literal[""]]]]
assign[member[.... | Keyword[public] Keyword[static] identifier[Style] identifier[createLocal] operator[SEP] identifier[String] identifier[location] operator[SEP] {
identifier[String] identifier[name] operator[=] identifier[location] operator[SEP] identifier[replaceFirst] operator[SEP] literal[String] , literal[String] operator[SEP... |
public static void activateLoggers(String loggerList) {
// Create an empty set. This will contain the list of all of the loggers
// to activate. (Note that NONE may be a logger; in this case, all
// logging will be deactivated.)
EnumSet<LoggingType> flags = EnumSet.noneOf(LoggingType.class);
// Split on com... | class class_name[name] begin[{]
method[activateLoggers, return_type[void], modifier[public static], parameter[loggerList]] begin[{]
local_variable[type[EnumSet], flags]
ForStatement(body=BlockStatement(label=None, statements=[TryStatement(block=[StatementExpression(expression=MethodInvocation(a... | Keyword[public] Keyword[static] Keyword[void] identifier[activateLoggers] operator[SEP] identifier[String] identifier[loggerList] operator[SEP] {
identifier[EnumSet] operator[<] identifier[LoggingType] operator[>] identifier[flags] operator[=] identifier[EnumSet] operator[SEP] identifier[noneOf] operator[SEP] id... |
public EEnum getIfcCooledBeamTypeEnum() {
if (ifcCooledBeamTypeEnumEEnum == null) {
ifcCooledBeamTypeEnumEEnum = (EEnum) EPackage.Registry.INSTANCE.getEPackage(Ifc2x3tc1Package.eNS_URI)
.getEClassifiers().get(801);
}
return ifcCooledBeamTypeEnumEEnum;
} | class class_name[name] begin[{]
method[getIfcCooledBeamTypeEnum, return_type[type[EEnum]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.ifcCooledBeamTypeEnumEEnum], ==, literal[null]]] begin[{]
assign[member[.ifcCooledBeamTypeEnumEEnum], Cast(expre... | Keyword[public] identifier[EEnum] identifier[getIfcCooledBeamTypeEnum] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[ifcCooledBeamTypeEnumEEnum] operator[==] Other[null] operator[SEP] {
identifier[ifcCooledBeamTypeEnumEEnum] operator[=] operator[SEP] identifier[EEnum] operator[SEP... |
public V put(K key, V value) {
V prev_val=get(key);
try {
MethodCall call=new MethodCall(PUT, key, value);
disp.callRemoteMethods(null, call, call_options);
}
catch(Exception e) {
throw new RuntimeException("put(" + key + ", " + value + ") failed", e);... | class class_name[name] begin[{]
method[put, return_type[type[V]], modifier[public], parameter[key, value]] begin[{]
local_variable[type[V], prev_val]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[M... | Keyword[public] identifier[V] identifier[put] operator[SEP] identifier[K] identifier[key] , identifier[V] identifier[value] operator[SEP] {
identifier[V] identifier[prev_val] operator[=] identifier[get] operator[SEP] identifier[key] operator[SEP] operator[SEP] Keyword[try] {
identifier[MethodCall] id... |
public void discharge(BitmapStorage container) {
this.brlw.literalWordOffset = this.literalWordStartPosition - this.iterator.literalWords();
discharge(this.brlw, this.iterator, container);
} | class class_name[name] begin[{]
method[discharge, return_type[void], modifier[public], parameter[container]] begin[{]
assign[THIS[member[None.brlw]member[None.literalWordOffset]], binary_operation[THIS[member[None.literalWordStartPosition]], -, THIS[member[None.iterator]call[None.literalWords, ... | Keyword[public] Keyword[void] identifier[discharge] operator[SEP] identifier[BitmapStorage] identifier[container] operator[SEP] {
Keyword[this] operator[SEP] identifier[brlw] operator[SEP] identifier[literalWordOffset] operator[=] Keyword[this] operator[SEP] identifier[literalWordStartPosition] operator[-] Keywo... |
@Override
public void addFocusables(ArrayList<View> views, int direction, int focusableMode) {
final int focusableCount = views.size();
final int descendantFocusability = getDescendantFocusability();
if (descendantFocusability != FOCUS_BLOCK_DESCENDANTS) {
for (int i = 0; i < g... | class class_name[name] begin[{]
method[addFocusables, return_type[void], modifier[public], parameter[views, direction, focusableMode]] begin[{]
local_variable[type[int], focusableCount]
local_variable[type[int], descendantFocusability]
if[binary_operation[member[.descendantFocus... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[addFocusables] operator[SEP] identifier[ArrayList] operator[<] identifier[View] operator[>] identifier[views] , Keyword[int] identifier[direction] , Keyword[int] identifier[focusableMode] operator[SEP] {
Keyword[final] Keyword[int] ide... |
public void setFunctionClass(String value, Identification id, Attributes attrs) {
functionCD = ClassDefinitionImpl.toClassDefinition(value, id, attrs);
} | class class_name[name] begin[{]
method[setFunctionClass, return_type[void], modifier[public], parameter[value, id, attrs]] begin[{]
assign[member[.functionCD], call[ClassDefinitionImpl.toClassDefinition, parameter[member[.value], member[.id], member[.attrs]]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[setFunctionClass] operator[SEP] identifier[String] identifier[value] , identifier[Identification] identifier[id] , identifier[Attributes] identifier[attrs] operator[SEP] {
identifier[functionCD] operator[=] identifier[ClassDefinitionImpl] operator[SEP] identifier[toClas... |
public void buildWith(final DescriptionBuilder builder) {
//override the annotated description of this plugin
builder.title("Example Remote Script Node Step");
builder.description("Demonstrates a remote script node step");
/**
* calling DescriptionBuilder.property() will replac... | class class_name[name] begin[{]
method[buildWith, return_type[void], modifier[public], parameter[builder]] begin[{]
call[builder.title, parameter[literal["Example Remote Script Node Step"]]]
call[builder.description, parameter[literal["Demonstrates a remote script node step"]]]
... | Keyword[public] Keyword[void] identifier[buildWith] operator[SEP] Keyword[final] identifier[DescriptionBuilder] identifier[builder] operator[SEP] {
identifier[builder] operator[SEP] identifier[title] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[builder] operator[SEP] identifier[descriptio... |
public void addConnector(Connector connector) {
connectors.put(connector.getClass().getCanonicalName(), new ConnectorEntry(connector));
} | class class_name[name] begin[{]
method[addConnector, return_type[void], modifier[public], parameter[connector]] begin[{]
call[connectors.put, parameter[call[connector.getClass, parameter[]], ClassCreator(arguments=[MemberReference(member=connector, postfix_operators=[], prefix_operators=[], qua... | Keyword[public] Keyword[void] identifier[addConnector] operator[SEP] identifier[Connector] identifier[connector] operator[SEP] {
identifier[connectors] operator[SEP] identifier[put] operator[SEP] identifier[connector] operator[SEP] identifier[getClass] operator[SEP] operator[SEP] operator[SEP] identifier[getCano... |
public int lookupIndex(short value) {
for (int i=0; i<elements.length; i++) {
if (elements[i] == value) {
return i;
}
}
return -1;
} | class class_name[name] begin[{]
method[lookupIndex, return_type[type[int]], modifier[public], parameter[value]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=elements, postfix_operators=[], prefix_operators=[], qu... | Keyword[public] Keyword[int] identifier[lookupIndex] operator[SEP] Keyword[short] identifier[value] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[elements] operator[SEP] identifier[length] operator[SEP] identifier[i] ... |
public void setBillingSchedule(com.google.api.ads.admanager.axis.v201808.BillingSchedule billingSchedule) {
this.billingSchedule = billingSchedule;
} | class class_name[name] begin[{]
method[setBillingSchedule, return_type[void], modifier[public], parameter[billingSchedule]] begin[{]
assign[THIS[member[None.billingSchedule]], member[.billingSchedule]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[setBillingSchedule] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201808] operator[SEP] identifier[BillingSch... |
private static char[] getCharsFromStringBuilder(StringBuilder sbuf) {
final int length = sbuf.length();
char[] array2 = new char[length];
sbuf.getChars(0, length, array2, 0);
return array2;
} | class class_name[name] begin[{]
method[getCharsFromStringBuilder, return_type[type[char]], modifier[private static], parameter[sbuf]] begin[{]
local_variable[type[int], length]
local_variable[type[char], array2]
call[sbuf.getChars, parameter[literal[0], member[.length], member[.... | Keyword[private] Keyword[static] Keyword[char] operator[SEP] operator[SEP] identifier[getCharsFromStringBuilder] operator[SEP] identifier[StringBuilder] identifier[sbuf] operator[SEP] {
Keyword[final] Keyword[int] identifier[length] operator[=] identifier[sbuf] operator[SEP] identifier[length] operator[SEP] oper... |
@Override
public BaseType extendGenericType()
{
BaseType []oldParams = getParameters();
BaseType []newParams = new BaseType[oldParams.length];
boolean isExtend = false;
for (int i = 0; i < newParams.length; i++) {
BaseType param = oldParams[i];
if (param instanceof ClassT... | class class_name[name] begin[{]
method[extendGenericType, return_type[type[BaseType]], modifier[public], parameter[]] begin[{]
local_variable[type[BaseType], oldParams]
local_variable[type[BaseType], newParams]
local_variable[type[boolean], isExtend]
ForStatement(body=BlockState... | annotation[@] identifier[Override] Keyword[public] identifier[BaseType] identifier[extendGenericType] operator[SEP] operator[SEP] {
identifier[BaseType] operator[SEP] operator[SEP] identifier[oldParams] operator[=] identifier[getParameters] operator[SEP] operator[SEP] operator[SEP] identifier[BaseType] operator[... |
public static VoltTable unionTables(Collection<VoltTable> operands) {
VoltTable result = null;
// Locate the first non-null table to get the schema
for (VoltTable vt : operands) {
if (vt != null) {
result = new VoltTable(vt.getTableSchema());
result.s... | class class_name[name] begin[{]
method[unionTables, return_type[type[VoltTable]], modifier[public static], parameter[operands]] begin[{]
local_variable[type[VoltTable], result]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReferenc... | Keyword[public] Keyword[static] identifier[VoltTable] identifier[unionTables] operator[SEP] identifier[Collection] operator[<] identifier[VoltTable] operator[>] identifier[operands] operator[SEP] {
identifier[VoltTable] identifier[result] operator[=] Other[null] operator[SEP] Keyword[for] operator[SEP] identifie... |
public StringArray getSecondIds() {
if (Cooccurrence_Type.featOkTst && ((Cooccurrence_Type)jcasType).casFeat_secondIds == null)
jcasType.jcas.throwFeatMissing("secondIds", "ch.epfl.bbp.uima.types.Cooccurrence");
return (StringArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((Coo... | class class_name[name] begin[{]
method[getSecondIds, return_type[type[StringArray]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[Cooccurrence_Type.featOkTst], &&, binary_operation[Cast(expression=MemberReference(member=jcasType, postfix_operators=[], prefix_operators=[], ... | Keyword[public] identifier[StringArray] identifier[getSecondIds] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[Cooccurrence_Type] operator[SEP] identifier[featOkTst] operator[&&] operator[SEP] operator[SEP] identifier[Cooccurrence_Type] operator[SEP] identifier[jcasType] operator[SEP] operat... |
public TranslationMap doImport() {
try {
for (String locale : LOCALES) {
TranslationHashMap trMap = new TranslationHashMap(getLocale(locale));
trMap.doImport(TranslationMap.class.getResourceAsStream(locale + ".txt"));
add(trMap);
}
... | class class_name[name] begin[{]
method[doImport, return_type[type[TranslationMap]], modifier[public], parameter[]] begin[{]
TryStatement(block=[ForStatement(body=BlockStatement(label=None, statements=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Cl... | Keyword[public] identifier[TranslationMap] identifier[doImport] operator[SEP] operator[SEP] {
Keyword[try] {
Keyword[for] operator[SEP] identifier[String] identifier[locale] operator[:] identifier[LOCALES] operator[SEP] {
identifier[TranslationHashMap] identifier[trMap] operator[=] Key... |
public final void setSubscriptionMessageType(SubscriptionMessageType value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "setSubscriptionMessageType to " + value);
/* Get the int value of the SubscriptionMessageType and set that into the subtype */
setSubtype(val... | class class_name[name] begin[{]
method[setSubscriptionMessageType, return_type[void], modifier[final public], parameter[value]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{]
call[SibTr.debug, p... | Keyword[public] Keyword[final] Keyword[void] identifier[setSubscriptionMessageType] operator[SEP] identifier[SubscriptionMessageType] identifier[value] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] ident... |
public static String getLocalizedMessage(CmsMessageContainer container, ServletRequest request) {
CmsObject cms = CmsFlexController.getCmsObject(request);
return getLocalizedMessage(container, cms);
} | class class_name[name] begin[{]
method[getLocalizedMessage, return_type[type[String]], modifier[public static], parameter[container, request]] begin[{]
local_variable[type[CmsObject], cms]
return[call[.getLocalizedMessage, parameter[member[.container], member[.cms]]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[String] identifier[getLocalizedMessage] operator[SEP] identifier[CmsMessageContainer] identifier[container] , identifier[ServletRequest] identifier[request] operator[SEP] {
identifier[CmsObject] identifier[cms] operator[=] identifier[CmsFlexController] operator[SEP] id... |
@Nullable static ExecutableElement findLargestPublicConstructor(TypeElement typeElement) {
List<ExecutableElement> constructors =
FluentIterable.from(ElementFilter.constructorsIn(typeElement.getEnclosedElements()))
.filter(FILTER_NON_PUBLIC)
.toList();
if (constructors.size() ==... | class class_name[name] begin[{]
method[findLargestPublicConstructor, return_type[type[ExecutableElement]], modifier[static], parameter[typeElement]] begin[{]
local_variable[type[List], constructors]
if[binary_operation[call[constructors.size, parameter[]], ==, literal[0]]] begin[{]
... | annotation[@] identifier[Nullable] Keyword[static] identifier[ExecutableElement] identifier[findLargestPublicConstructor] operator[SEP] identifier[TypeElement] identifier[typeElement] operator[SEP] {
identifier[List] operator[<] identifier[ExecutableElement] operator[>] identifier[constructors] operator[=] ident... |
public synchronized void setBigDecimal(String parameterName,
BigDecimal x) throws SQLException {
setBigDecimal(findParameterIndex(parameterName), x);
} | class class_name[name] begin[{]
method[setBigDecimal, return_type[void], modifier[synchronized public], parameter[parameterName, x]] begin[{]
call[.setBigDecimal, parameter[call[.findParameterIndex, parameter[member[.parameterName]]], member[.x]]]
end[}]
END[}] | Keyword[public] Keyword[synchronized] Keyword[void] identifier[setBigDecimal] operator[SEP] identifier[String] identifier[parameterName] , identifier[BigDecimal] identifier[x] operator[SEP] Keyword[throws] identifier[SQLException] {
identifier[setBigDecimal] operator[SEP] identifier[findParameterIndex] operator... |
public static String getQualifiedStreamSegmentName(String scope, String streamName, long segmentId) {
int segmentNumber = getSegmentNumber(segmentId);
int epoch = getEpoch(segmentId);
StringBuffer sb = getScopedStreamNameInternal(scope, streamName);
sb.append('/');
sb.append(segm... | class class_name[name] begin[{]
method[getQualifiedStreamSegmentName, return_type[type[String]], modifier[public static], parameter[scope, streamName, segmentId]] begin[{]
local_variable[type[int], segmentNumber]
local_variable[type[int], epoch]
local_variable[type[StringBuffer], sb]
... | Keyword[public] Keyword[static] identifier[String] identifier[getQualifiedStreamSegmentName] operator[SEP] identifier[String] identifier[scope] , identifier[String] identifier[streamName] , Keyword[long] identifier[segmentId] operator[SEP] {
Keyword[int] identifier[segmentNumber] operator[=] identifier[getSegm... |
@Override
protected void executeImpl(CommandLine cmd) {
try {
List<PropertyDefinition> defintions =
new PropertyDefinitionListBuilder().addMillDb()
.build();
PropertyVerifier verifier = new PropertyVerifier(defintions... | class class_name[name] begin[{]
method[executeImpl, return_type[void], modifier[protected], parameter[cmd]] begin[{]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=ClassCreator(arguments=[], body=None, constructor_type_arguments=N... | annotation[@] identifier[Override] Keyword[protected] Keyword[void] identifier[executeImpl] operator[SEP] identifier[CommandLine] identifier[cmd] operator[SEP] {
Keyword[try] {
identifier[List] operator[<] identifier[PropertyDefinition] operator[>] identifier[defintions] operator[=] Keyword[new] ident... |
@SuppressWarnings("unchecked")
protected void configure() {
Properties properties = readDefaultConfig();
Properties appProperties = new Props();
List<String> appConf = Lists.newArrayListWithExpectedSize(configFiles.length);
for (String conf : configFiles) {
//读取应用程序配置
... | class class_name[name] begin[{]
method[configure, return_type[void], modifier[protected], parameter[]] begin[{]
local_variable[type[Properties], properties]
local_variable[type[Properties], appProperties]
local_variable[type[List], appConf]
ForStatement(body=BlockStatement(label... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[protected] Keyword[void] identifier[configure] operator[SEP] operator[SEP] {
identifier[Properties] identifier[properties] operator[=] identifier[readDefaultConfig] operator[SEP] operator[SEP] operator[SEP] identifier[... |
@Override
public AppVersion getCurrentAppVersion() {
return new AppVersion(getSequenceNumber()).setReleaseName(getReleaseName()).setTimestamp(getTimestamp())
.setNumClasses(getProjectStats().getNumClasses()).setCodeSize(getProjectStats().getCodeSize());
} | class class_name[name] begin[{]
method[getCurrentAppVersion, return_type[type[AppVersion]], modifier[public], parameter[]] begin[{]
return[ClassCreator(arguments=[MethodInvocation(arguments=[], member=getSequenceNumber, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[], type_arguments... | annotation[@] identifier[Override] Keyword[public] identifier[AppVersion] identifier[getCurrentAppVersion] operator[SEP] operator[SEP] {
Keyword[return] Keyword[new] identifier[AppVersion] operator[SEP] identifier[getSequenceNumber] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[setReleaseNam... |
public void controlEventHandler(final ControlEventHandler controlEventHandler) {
env.setControlEventHandler(new ControlEventHandler() {
@Override
public void onEvent(ChannelFlowController flowController, ByteBuf event) {
if (DcpSnapshotMarkerRequest.is(event)) {
// Keep snapshot inform... | class class_name[name] begin[{]
method[controlEventHandler, return_type[void], modifier[public], parameter[controlEventHandler]] begin[{]
call[env.setControlEventHandler, parameter[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[If... | Keyword[public] Keyword[void] identifier[controlEventHandler] operator[SEP] Keyword[final] identifier[ControlEventHandler] identifier[controlEventHandler] operator[SEP] {
identifier[env] operator[SEP] identifier[setControlEventHandler] operator[SEP] Keyword[new] identifier[ControlEventHandler] operator[SEP] oper... |
@SuppressWarnings({"rawtypes"})
public static Map getMapValue(Config stormConf, String key)
{
Map configMap = (Map) stormConf.get(key);
return configMap;
} | class class_name[name] begin[{]
method[getMapValue, return_type[type[Map]], modifier[public static], parameter[stormConf, key]] begin[{]
local_variable[type[Map], configMap]
return[member[.configMap]]
end[}]
END[}] | annotation[@] identifier[SuppressWarnings] operator[SEP] {
literal[String]
} operator[SEP] Keyword[public] Keyword[static] identifier[Map] identifier[getMapValue] operator[SEP] identifier[Config] identifier[stormConf] , identifier[String] identifier[key] operator[SEP] {
identifier[Map] identifier[conf... |
@Override
public String getLabel(KamNode kamNode) {
String label = labelCache.get(kamNode.getLabel());
if (label == null) {
label = kamNode.getLabel();
try {
List<BelTerm> terms = kAMStore.getSupportingTerms(kamNode);
if (!terms.isEmpty()) {
... | class class_name[name] begin[{]
method[getLabel, return_type[type[String]], modifier[public], parameter[kamNode]] begin[{]
local_variable[type[String], label]
if[binary_operation[member[.label], ==, literal[null]]] begin[{]
assign[member[.label], call[kamNode.get... | annotation[@] identifier[Override] Keyword[public] identifier[String] identifier[getLabel] operator[SEP] identifier[KamNode] identifier[kamNode] operator[SEP] {
identifier[String] identifier[label] operator[=] identifier[labelCache] operator[SEP] identifier[get] operator[SEP] identifier[kamNode] operator[SEP] id... |
protected void onGetImageError(String cacheKey, JusError error) {
// Notify the requesters that something failed via a null result.
// Remove this request from the list of in-flight requests.
BatchedImageRequest request = inFlightRequests.remove(cacheKey);
if (request != null) {
... | class class_name[name] begin[{]
method[onGetImageError, return_type[void], modifier[protected], parameter[cacheKey, error]] begin[{]
local_variable[type[BatchedImageRequest], request]
if[binary_operation[member[.request], !=, literal[null]]] begin[{]
call[request... | Keyword[protected] Keyword[void] identifier[onGetImageError] operator[SEP] identifier[String] identifier[cacheKey] , identifier[JusError] identifier[error] operator[SEP] {
identifier[BatchedImageRequest] identifier[request] operator[=] identifier[inFlightRequests] operator[SEP] identifier[remove] operator[SEP] ... |
protected Query detachQueryNonTxInvocation(EntityManager underlyingEntityManager, Query underLyingQuery) {
if (!this.isExtendedPersistenceContext() && !this.isInTx()) {
return new QueryNonTxInvocationDetacher(underlyingEntityManager, underLyingQuery);
}
return underLyingQuery;
} | class class_name[name] begin[{]
method[detachQueryNonTxInvocation, return_type[type[Query]], modifier[protected], parameter[underlyingEntityManager, underLyingQuery]] begin[{]
if[binary_operation[THIS[call[None.isExtendedPersistenceContext, parameter[]]], &&, THIS[call[None.isInTx, parameter[]]... | Keyword[protected] identifier[Query] identifier[detachQueryNonTxInvocation] operator[SEP] identifier[EntityManager] identifier[underlyingEntityManager] , identifier[Query] identifier[underLyingQuery] operator[SEP] {
Keyword[if] operator[SEP] operator[!] Keyword[this] operator[SEP] identifier[isExtendedPersisten... |
public int getSize() {
InnerList iList = ref.get();
return iList != null ? iList.getList().size() : 0;
} | class class_name[name] begin[{]
method[getSize, return_type[type[int]], modifier[public], parameter[]] begin[{]
local_variable[type[InnerList], iList]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=iList, postfix_operators=[], prefix_operators=[], qualifier=,... | Keyword[public] Keyword[int] identifier[getSize] operator[SEP] operator[SEP] {
identifier[InnerList] identifier[iList] operator[=] identifier[ref] operator[SEP] identifier[get] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[iList] operator[!=] Other[null] operator[?] identifier[iList] opera... |
@Override
public Edge addEdge(final String label, Vertex inVertex) {
if (inVertex instanceof PartitionVertex)
// WRAPPED: GET THE BASE VERTEX
inVertex = ((PartitionVertex) inVertex).getBaseVertex();
return addEdge(label, (OrientVertex) inVertex, null, null, (Object[]) null);
} | class class_name[name] begin[{]
method[addEdge, return_type[type[Edge]], modifier[public], parameter[label, inVertex]] begin[{]
if[binary_operation[member[.inVertex], instanceof, type[PartitionVertex]]] begin[{]
assign[member[.inVertex], Cast(expression=MemberReference(member=inVert... | annotation[@] identifier[Override] Keyword[public] identifier[Edge] identifier[addEdge] operator[SEP] Keyword[final] identifier[String] identifier[label] , identifier[Vertex] identifier[inVertex] operator[SEP] {
Keyword[if] operator[SEP] identifier[inVertex] Keyword[instanceof] identifier[PartitionVertex] opera... |
@SuppressWarnings("unchecked")
public Optional<ResourceSection> maybeLoadResourceSection()
throws IOException {
return (Optional<ResourceSection>) maybeLoadSpecialSection(DataDirectoryKey.RESOURCE_TABLE);
} | class class_name[name] begin[{]
method[maybeLoadResourceSection, return_type[type[Optional]], modifier[public], parameter[]] begin[{]
return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=RESOURCE_TABLE, postfix_operators=[], prefix_operators=[], qualifier=DataDirectoryKey, selector... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] identifier[Optional] operator[<] identifier[ResourceSection] operator[>] identifier[maybeLoadResourceSection] operator[SEP] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] operator[SEP] ... |
private void closeSelectors()
{
if (readSelector != null)
{
try
{
readSelector.close();
}
catch (IOException e)
{
LOGGER.debug("Error while closing read selector", e);
}
}
if (wri... | class class_name[name] begin[{]
method[closeSelectors, return_type[void], modifier[private], parameter[]] begin[{]
if[binary_operation[member[.readSelector], !=, literal[null]]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[], member=close, ... | Keyword[private] Keyword[void] identifier[closeSelectors] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[readSelector] operator[!=] Other[null] operator[SEP] {
Keyword[try] {
identifier[readSelector] operator[SEP] identifier[close] operator[SEP] operator[SEP] operato... |
public GlobalTableDescription withReplicationGroup(ReplicaDescription... replicationGroup) {
if (this.replicationGroup == null) {
setReplicationGroup(new java.util.ArrayList<ReplicaDescription>(replicationGroup.length));
}
for (ReplicaDescription ele : replicationGroup) {
... | class class_name[name] begin[{]
method[withReplicationGroup, return_type[type[GlobalTableDescription]], modifier[public], parameter[replicationGroup]] begin[{]
if[binary_operation[THIS[member[None.replicationGroup]], ==, literal[null]]] begin[{]
call[.setReplicationGroup... | Keyword[public] identifier[GlobalTableDescription] identifier[withReplicationGroup] operator[SEP] identifier[ReplicaDescription] operator[...] identifier[replicationGroup] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[replicationGroup] operator[==] Other[null] operator[SEP] {
... |
public void store(final OutputStream out, final String comments, final String encoding) throws IOException {
lock.readLock().lock();
try {
properties.store(new OutputStreamWriter(out, Charset.forName(encoding)), comments);
} finally {
lock.readLock().unlock();
}
} | class class_name[name] begin[{]
method[store, return_type[void], modifier[public], parameter[out, comments, encoding]] begin[{]
call[lock.readLock, parameter[]]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[ClassCreator(arguments=[MemberReference(member=... | Keyword[public] Keyword[void] identifier[store] operator[SEP] Keyword[final] identifier[OutputStream] identifier[out] , Keyword[final] identifier[String] identifier[comments] , Keyword[final] identifier[String] identifier[encoding] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[lock] operat... |
public int[] getValues() {
int[] result = new int[size()];
for (int i = 0; i < result.length; i++) {
result[i] = getValue(i);
}
return result;
} | class class_name[name] begin[{]
method[getValues, return_type[type[int]], modifier[public], parameter[]] begin[{]
local_variable[type[int], result]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=result, postf... | Keyword[public] Keyword[int] operator[SEP] operator[SEP] identifier[getValues] operator[SEP] operator[SEP] {
Keyword[int] operator[SEP] operator[SEP] identifier[result] operator[=] Keyword[new] Keyword[int] operator[SEP] identifier[size] operator[SEP] operator[SEP] operator[SEP] operator[SEP] Keyword[for] operat... |
public final GeographyPointValue getGeographyPointValue(int columnIndex) {
validateColumnType(columnIndex, VoltType.GEOGRAPHY_POINT);
GeographyPointValue pt = GeographyPointValue.unflattenFromBuffer(m_buffer, getOffset(columnIndex));
m_wasNull = (pt == null);
return pt;
} | class class_name[name] begin[{]
method[getGeographyPointValue, return_type[type[GeographyPointValue]], modifier[final public], parameter[columnIndex]] begin[{]
call[.validateColumnType, parameter[member[.columnIndex], member[VoltType.GEOGRAPHY_POINT]]]
local_variable[type[GeographyPoint... | Keyword[public] Keyword[final] identifier[GeographyPointValue] identifier[getGeographyPointValue] operator[SEP] Keyword[int] identifier[columnIndex] operator[SEP] {
identifier[validateColumnType] operator[SEP] identifier[columnIndex] , identifier[VoltType] operator[SEP] identifier[GEOGRAPHY_POINT] operator[SEP]... |
public void purge() {
long time = System.currentTimeMillis();
if (time - latestWriteTime > expireMillis) {
// Everything in the map is expired, clear all at once
map.clear();
} else {
// Iterate and remove until the first non-expired token
Iterator... | class class_name[name] begin[{]
method[purge, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[long], time]
if[binary_operation[binary_operation[member[.time], -, member[.latestWriteTime]], >, member[.expireMillis]]] begin[{]
call[ma... | Keyword[public] Keyword[void] identifier[purge] operator[SEP] operator[SEP] {
Keyword[long] identifier[time] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[time] operator[-] identifier[latestWriteTime] oper... |
private void guaranteeRegistered(TrafficSource trafficSource,
TargetGroup targetGroup,
Collection<TargetDescription> targets,
Collection<BaragonAgentMetadata> baragonAgents,
Collec... | class class_name[name] begin[{]
method[guaranteeRegistered, return_type[void], modifier[private], parameter[trafficSource, targetGroup, targets, baragonAgents, loadBalancers]] begin[{]
if[binary_operation[call[configuration.isPresent, parameter[]], &&, call[configuration.get, parameter[]]]] beg... | Keyword[private] Keyword[void] identifier[guaranteeRegistered] operator[SEP] identifier[TrafficSource] identifier[trafficSource] , identifier[TargetGroup] identifier[targetGroup] , identifier[Collection] operator[<] identifier[TargetDescription] operator[>] identifier[targets] , identifier[Collection] operator[<] id... |
protected boolean isProducerTypeCheck() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "isProducerTypeCheck");
boolean checking = true;
// We can carry out checking if there is no FRP, or the FRP has 0 size.
StringArrayWrapper frp = ... | class class_name[name] begin[{]
method[isProducerTypeCheck, return_type[type[boolean]], modifier[protected], parameter[]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, paramet... | Keyword[protected] Keyword[boolean] identifier[isProducerTypeCheck] 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] opera... |
@Override
public final void stop() throws CoreException {
try {
LOGGER.log(STOP_APPLICATION, this.getClass().getSimpleName());
preStop();
super.stop();
// Hide the stage is this method wasn't call by user
if (stage().isShowing()) {
... | class class_name[name] begin[{]
method[stop, return_type[void], modifier[final public], parameter[]] begin[{]
TryStatement(block=[StatementExpression(expression=MethodInvocation(arguments=[MemberReference(member=STOP_APPLICATION, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Thi... | annotation[@] identifier[Override] Keyword[public] Keyword[final] Keyword[void] identifier[stop] operator[SEP] operator[SEP] Keyword[throws] identifier[CoreException] {
Keyword[try] {
identifier[LOGGER] operator[SEP] identifier[log] operator[SEP] identifier[STOP_APPLICATION] , Keyword[this] operator[... |
public GrpcChannel build() throws AlluxioStatusException {
ManagedChannel underlyingChannel =
GrpcManagedChannelPool.INSTANCE().acquireManagedChannel(mChannelKey,
mConfiguration.getMs(PropertyKey.NETWORK_CONNECTION_HEALTH_CHECK_TIMEOUT_MS),
mConfiguration.getMs(PropertyKey.MASTER_GRP... | class class_name[name] begin[{]
method[build, return_type[type[GrpcChannel]], modifier[public], parameter[]] begin[{]
local_variable[type[ManagedChannel], underlyingChannel]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=M... | Keyword[public] identifier[GrpcChannel] identifier[build] operator[SEP] operator[SEP] Keyword[throws] identifier[AlluxioStatusException] {
identifier[ManagedChannel] identifier[underlyingChannel] operator[=] identifier[GrpcManagedChannelPool] operator[SEP] identifier[INSTANCE] operator[SEP] operator[SEP] operato... |
private <T> RestHttpClientResponse<T> invokeApi(String path, String method,
QueryParams queryParams, HeaderParams headerParams,
Object body, Map<String, Object> formParams,
... | class class_name[name] begin[{]
method[invokeApi, return_type[type[RestHttpClientResponse]], modifier[private], parameter[path, method, queryParams, headerParams, body, formParams, returnType]] begin[{]
local_variable[type[Invocation], invocationBuilder]
local_variable[type[Entity], formEntity]... | Keyword[private] operator[<] identifier[T] operator[>] identifier[RestHttpClientResponse] operator[<] identifier[T] operator[>] identifier[invokeApi] operator[SEP] identifier[String] identifier[path] , identifier[String] identifier[method] , identifier[QueryParams] identifier[queryParams] , identifier[HeaderParams] ... |
@CheckReturnValue
@BackpressureSupport(BackpressureKind.FULL)
@SchedulerSupport(SchedulerSupport.NONE)
public final <T2> Flowable<T2> dematerialize() {
@SuppressWarnings("unchecked")
Flowable<Notification<T2>> m = (Flowable<Notification<T2>>)this;
return RxJavaPlugins.onAssembly(new ... | class class_name[name] begin[{]
method[dematerialize, return_type[type[Flowable]], modifier[final public], parameter[]] begin[{]
local_variable[type[Flowable], m]
return[call[RxJavaPlugins.onAssembly, parameter[ClassCreator(arguments=[MemberReference(member=m, postfix_operators=[], prefix_opera... | annotation[@] identifier[CheckReturnValue] annotation[@] identifier[BackpressureSupport] operator[SEP] identifier[BackpressureKind] operator[SEP] identifier[FULL] operator[SEP] annotation[@] identifier[SchedulerSupport] operator[SEP] identifier[SchedulerSupport] operator[SEP] identifier[NONE] operator[SEP] Keyword[publ... |
public List<WordInfo> discover(BufferedReader reader, int size) throws IOException
{
String doc;
Map<String, WordInfo> word_cands = new TreeMap<String, WordInfo>();
int totalLength = 0;
Pattern delimiter = Pattern.compile("[\\s\\d,.<>/?:;'\"\\[\\]{}()\\|~!@#$%^&*\\-_=+,。《》、?:;“”‘’{}【... | class class_name[name] begin[{]
method[discover, return_type[type[List]], modifier[public], parameter[reader, size]] begin[{]
local_variable[type[String], doc]
local_variable[type[Map], word_cands]
local_variable[type[int], totalLength]
local_variable[type[Pattern], delimiter]
... | Keyword[public] identifier[List] operator[<] identifier[WordInfo] operator[>] identifier[discover] operator[SEP] identifier[BufferedReader] identifier[reader] , Keyword[int] identifier[size] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[String] identifier[doc] operator[SEP] identifier[Map] ... |
public void extendedPut(String remoteFileName,
long offset,
DataSource source,
MarkerListener mListener)
throws IOException,
ServerException,
ClientException{
// servers support GridFTP?
... | class class_name[name] begin[{]
method[extendedPut, return_type[void], modifier[public], parameter[remoteFileName, offset, source, mListener]] begin[{]
call[.checkGridFTPSupport, parameter[]]
call[.checkTransferParamsPut, parameter[]]
call[localServer.retrieve, p... | Keyword[public] Keyword[void] identifier[extendedPut] operator[SEP] identifier[String] identifier[remoteFileName] , Keyword[long] identifier[offset] , identifier[DataSource] identifier[source] , identifier[MarkerListener] identifier[mListener] operator[SEP] Keyword[throws] identifier[IOException] , identifier[Serve... |
public void addDependencyMore( final CharSequence name, final CharSequence version) {
addDependency( name, version, GREATER | EQUAL);
} | class class_name[name] begin[{]
method[addDependencyMore, return_type[void], modifier[public], parameter[name, version]] begin[{]
call[.addDependency, parameter[member[.name], member[.version], binary_operation[member[.GREATER], |, member[.EQUAL]]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[addDependencyMore] operator[SEP] Keyword[final] identifier[CharSequence] identifier[name] , Keyword[final] identifier[CharSequence] identifier[version] operator[SEP] {
identifier[addDependency] operator[SEP] identifier[name] , identifier[version] , identifier[GREATER] ... |
private void readConfiguration( Map<String, String> parameters ) {
String mountPath = parameters.get(MOUNT_PATH_CONFIG);
this.mountPath = mountPath != null ? mountPath : DEFAULT_MOUNT_PATH;
this.jcrConfig = RepositoryConfig.load(parameters);
} | class class_name[name] begin[{]
method[readConfiguration, return_type[void], modifier[private], parameter[parameters]] begin[{]
local_variable[type[String], mountPath]
assign[THIS[member[None.mountPath]], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=mountP... | Keyword[private] Keyword[void] identifier[readConfiguration] operator[SEP] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[parameters] operator[SEP] {
identifier[String] identifier[mountPath] operator[=] identifier[parameters] operator[SEP] identifier[get] operator[SEP... |
public ServiceFuture<FeatureResultInner> registerAsync(String resourceProviderNamespace, String featureName, final ServiceCallback<FeatureResultInner> serviceCallback) {
return ServiceFuture.fromResponse(registerWithServiceResponseAsync(resourceProviderNamespace, featureName), serviceCallback);
} | class class_name[name] begin[{]
method[registerAsync, return_type[type[ServiceFuture]], modifier[public], parameter[resourceProviderNamespace, featureName, serviceCallback]] begin[{]
return[call[ServiceFuture.fromResponse, parameter[call[.registerWithServiceResponseAsync, parameter[member[.resourceProv... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[FeatureResultInner] operator[>] identifier[registerAsync] operator[SEP] identifier[String] identifier[resourceProviderNamespace] , identifier[String] identifier[featureName] , Keyword[final] identifier[ServiceCallback] operator[<] identifier[FeatureResu... |
public HttpMessage getHttpMessage() throws HttpMalformedHeaderException, DatabaseException {
if (httpMessage != null) {
return httpMessage;
}
// fetch complete message
RecordHistory history = staticTableHistory.read(historyId);
if (history == null) {
throw new HttpMalformedHeaderException("No h... | class class_name[name] begin[{]
method[getHttpMessage, return_type[type[HttpMessage]], modifier[public], parameter[]] begin[{]
if[binary_operation[member[.httpMessage], !=, literal[null]]] begin[{]
return[member[.httpMessage]]
else begin[{]
None
end[}]
local_... | Keyword[public] identifier[HttpMessage] identifier[getHttpMessage] operator[SEP] operator[SEP] Keyword[throws] identifier[HttpMalformedHeaderException] , identifier[DatabaseException] {
Keyword[if] operator[SEP] identifier[httpMessage] operator[!=] Other[null] operator[SEP] {
Keyword[return] identifi... |
public static CallOptions withAnnotation(CallOptions callOptions, Object annotation) {
Collection<Object> existingAnnotations = callOptions.getOption(CRONET_ANNOTATIONS_KEY);
ArrayList<Object> newAnnotations;
if (existingAnnotations == null) {
newAnnotations = new ArrayList<>();
} else {
new... | class class_name[name] begin[{]
method[withAnnotation, return_type[type[CallOptions]], modifier[public static], parameter[callOptions, annotation]] begin[{]
local_variable[type[Collection], existingAnnotations]
local_variable[type[ArrayList], newAnnotations]
if[binary_operation[... | Keyword[public] Keyword[static] identifier[CallOptions] identifier[withAnnotation] operator[SEP] identifier[CallOptions] identifier[callOptions] , identifier[Object] identifier[annotation] operator[SEP] {
identifier[Collection] operator[<] identifier[Object] operator[>] identifier[existingAnnotations] operator[... |
public synchronized long delay() {
while (true) {
long curTimeMs = System.currentTimeMillis();
long millisSinceLastSecond = curTimeMs % 1000;
long nowInMsRoundedAtSec = curTimeMs - millisSinceLastSecond;
checkNextSecond(nowInMsRoundedAtSec);
int delayM... | class class_name[name] begin[{]
method[delay, return_type[type[long]], modifier[synchronized public], parameter[]] begin[{]
while[literal[true]] begin[{]
local_variable[type[long], curTimeMs]
local_variable[type[long], millisSinceLastSecond]
local_variable[ty... | Keyword[public] Keyword[synchronized] Keyword[long] identifier[delay] operator[SEP] operator[SEP] {
Keyword[while] operator[SEP] literal[boolean] operator[SEP] {
Keyword[long] identifier[curTimeMs] operator[=] identifier[System] operator[SEP] identifier[currentTimeMillis] operator[SEP] operator[SEP] o... |
protected TypedParams<FilterParams> parseFiltersParameters(final QueryParamsParserContext context) {
String filterKey = RestrictedQueryParamsMembers.filter.name();
Map<String, Set<String>> filters = filterQueryParamsByKey(context, filterKey);
Map<String, Map<String, Set<String>>> temporaryFilte... | class class_name[name] begin[{]
method[parseFiltersParameters, return_type[type[TypedParams]], modifier[protected], parameter[context]] begin[{]
local_variable[type[String], filterKey]
local_variable[type[Map], filters]
local_variable[type[Map], temporaryFiltersMap]
ForStatement... | Keyword[protected] identifier[TypedParams] operator[<] identifier[FilterParams] operator[>] identifier[parseFiltersParameters] operator[SEP] Keyword[final] identifier[QueryParamsParserContext] identifier[context] operator[SEP] {
identifier[String] identifier[filterKey] operator[=] identifier[RestrictedQueryParam... |
protected List<Object> onCounterColumn(EntityMetadata m, boolean isRelation, List<String> relations,
List<KeySlice> ks) {
List<Object> entities;
if (m.getType().isSuperColumnFamilyMetadata()) {
if (log.isInfoEnabled()) {
log.info("On counter column for super column f... | class class_name[name] begin[{]
method[onCounterColumn, return_type[type[List]], modifier[protected], parameter[m, isRelation, relations, ks]] begin[{]
local_variable[type[List], entities]
if[call[m.getType, parameter[]]] begin[{]
if[call[log.isInfoEnabled, param... | Keyword[protected] identifier[List] operator[<] identifier[Object] operator[>] identifier[onCounterColumn] operator[SEP] identifier[EntityMetadata] identifier[m] , Keyword[boolean] identifier[isRelation] , identifier[List] operator[<] identifier[String] operator[>] identifier[relations] , identifier[List] operator[<... |
public void setValues(com.google.api.ads.admanager.axis.v201902.String_ValueMapEntry[] values) {
this.values = values;
} | class class_name[name] begin[{]
method[setValues, return_type[void], modifier[public], parameter[values]] begin[{]
assign[THIS[member[None.values]], member[.values]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[setValues] operator[SEP] identifier[com] operator[SEP] identifier[google] operator[SEP] identifier[api] operator[SEP] identifier[ads] operator[SEP] identifier[admanager] operator[SEP] identifier[axis] operator[SEP] identifier[v201902] operator[SEP] identifier[String_ValueMapEntr... |
@Override
public Taxinvoice getDetailInfo(String CorpNum, MgtKeyType KeyType,
String MgtKey) throws PopbillException {
if (KeyType == null)
throw new PopbillException(-99999999, "관리번호형태가 입력되지 않았습니다.");
if (MgtKey == null || MgtKey.isEmpty())
... | class class_name[name] begin[{]
method[getDetailInfo, return_type[type[Taxinvoice]], modifier[public], parameter[CorpNum, KeyType, MgtKey]] begin[{]
if[binary_operation[member[.KeyType], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[],... | annotation[@] identifier[Override] Keyword[public] identifier[Taxinvoice] identifier[getDetailInfo] operator[SEP] identifier[String] identifier[CorpNum] , identifier[MgtKeyType] identifier[KeyType] , identifier[String] identifier[MgtKey] operator[SEP] Keyword[throws] identifier[PopbillException] {
Keyword[if] ... |
protected Map<String, String> parseDictionary(final JSONObject jsonDictionaryObject) {
final Map<String, String> dictionaryAsMap = new HashMap<>();
if (jsonDictionaryObject != null) {
for (final String key : JSONObject.getNames(jsonDictionaryObject)) {
dictionaryAsMap.put(key, extractFieldValue(jsonDictionar... | class class_name[name] begin[{]
method[parseDictionary, return_type[type[Map]], modifier[protected], parameter[jsonDictionaryObject]] begin[{]
local_variable[type[Map], dictionaryAsMap]
if[binary_operation[member[.jsonDictionaryObject], !=, literal[null]]] begin[{]
ForStatem... | Keyword[protected] identifier[Map] operator[<] identifier[String] , identifier[String] operator[>] identifier[parseDictionary] operator[SEP] Keyword[final] identifier[JSONObject] identifier[jsonDictionaryObject] operator[SEP] {
Keyword[final] identifier[Map] operator[<] identifier[String] , identifier[String] ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.