code stringlengths 63 466k | code_sememe stringlengths 141 3.79M | token_type stringlengths 274 1.23M |
|---|---|---|
public PhotoList<Photo> search(SearchParameters params, int perPage, int page) throws FlickrException {
PhotoList<Photo> photos = new PhotoList<Photo>();
Map<String, Object> parameters = new HashMap<String, Object>();
parameters.put("method", METHOD_SEARCH);
parameters.putAll(par... | class class_name[name] begin[{]
method[search, return_type[type[PhotoList]], modifier[public], parameter[params, perPage, page]] begin[{]
local_variable[type[PhotoList], photos]
local_variable[type[Map], parameters]
call[parameters.put, parameter[literal["method"], member[.METHO... | Keyword[public] identifier[PhotoList] operator[<] identifier[Photo] operator[>] identifier[search] operator[SEP] identifier[SearchParameters] identifier[params] , Keyword[int] identifier[perPage] , Keyword[int] identifier[page] operator[SEP] Keyword[throws] identifier[FlickrException] {
identifier[PhotoList] o... |
public static JSONArray monitorForHA() {
Map<String, Cache> CACHE = Redis.unmodifiableCache();
JSONArray monitors = new JSONArray();
if (CACHE == null || CACHE.isEmpty())
return monitors;
JSONObject monitor = new JSONObject();
monitor.put("application", EnvUtil.get... | class class_name[name] begin[{]
method[monitorForHA, return_type[type[JSONArray]], modifier[public static], parameter[]] begin[{]
local_variable[type[Map], CACHE]
local_variable[type[JSONArray], monitors]
if[binary_operation[binary_operation[member[.CACHE], ==, literal[null]], |... | Keyword[public] Keyword[static] identifier[JSONArray] identifier[monitorForHA] operator[SEP] operator[SEP] {
identifier[Map] operator[<] identifier[String] , identifier[Cache] operator[>] identifier[CACHE] operator[=] identifier[Redis] operator[SEP] identifier[unmodifiableCache] operator[SEP] operator[SEP] oper... |
DatabaseSession readPrimitives(String id, String appName, Connection con) throws SQLException {
PreparedStatement ps = null;
ResultSet rs = null;
DatabaseSession sess = null;
try {
if (usingDB2 || usingDerby) {
ps = con.prepareStatement(readPrimitiveDataDb2);
... | class class_name[name] begin[{]
method[readPrimitives, return_type[type[DatabaseSession]], modifier[default], parameter[id, appName, con]] begin[{]
local_variable[type[PreparedStatement], ps]
local_variable[type[ResultSet], rs]
local_variable[type[DatabaseSession], sess]
TryStat... | identifier[DatabaseSession] identifier[readPrimitives] operator[SEP] identifier[String] identifier[id] , identifier[String] identifier[appName] , identifier[Connection] identifier[con] operator[SEP] Keyword[throws] identifier[SQLException] {
identifier[PreparedStatement] identifier[ps] operator[=] Other[null] ... |
private void setExcludeFromProxyUrls() {
List<String> fullList = new ArrayList<>();
fullList.addAll(this.excludeFromProxyRegexs);
fullList.addAll(getGlobalExcludeURLRegexs());
Control.getSingleton().setExcludeFromProxyUrls(fullList);
} | class class_name[name] begin[{]
method[setExcludeFromProxyUrls, return_type[void], modifier[private], parameter[]] begin[{]
local_variable[type[List], fullList]
call[fullList.addAll, parameter[THIS[member[None.excludeFromProxyRegexs]]]]
call[fullList.addAll, parameter[ca... | Keyword[private] Keyword[void] identifier[setExcludeFromProxyUrls] operator[SEP] operator[SEP] {
identifier[List] operator[<] identifier[String] operator[>] identifier[fullList] operator[=] Keyword[new] identifier[ArrayList] operator[<] operator[>] operator[SEP] operator[SEP] operator[SEP] identifier[fullList] o... |
public com.google.api.ads.admanager.axis.v201902.BaseAdRuleSlot getMidroll() {
return midroll;
} | class class_name[name] begin[{]
method[getMidroll, return_type[type[com]], modifier[public], parameter[]] begin[{]
return[member[.midroll]]
end[}]
END[}] | Keyword[public] 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[BaseAdRuleSlot] identifier[getMidroll] operator[SEP] operator[SEP] {... |
@POST
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@Override
public String getMessageToClient(@FormParam(Constants.Message.MFC) String json) {
HttpSession httpSession = getHttpSession();
setContext(httpSession);
MessageFromClient message = MessageFromClient.createFrom... | class class_name[name] begin[{]
method[getMessageToClient, return_type[type[String]], modifier[public], parameter[json]] begin[{]
local_variable[type[HttpSession], httpSession]
call[.setContext, parameter[member[.httpSession]]]
local_variable[type[MessageFromClient], message]
... | annotation[@] identifier[POST] annotation[@] identifier[Produces] operator[SEP] identifier[MediaType] operator[SEP] identifier[APPLICATION_JSON] operator[SEP] annotation[@] identifier[Consumes] operator[SEP] identifier[MediaType] operator[SEP] identifier[APPLICATION_FORM_URLENCODED] operator[SEP] annotation[@] identifi... |
private FlowScope traverseDestructuringPatternHelper(
Node pattern, FlowScope scope, JSType patternType, TypeDeclaringCallback declarer) {
checkArgument(pattern.isDestructuringPattern(), pattern);
checkNotNull(patternType);
for (DestructuredTarget target :
DestructuredTarget.createAllNonEmptyT... | class class_name[name] begin[{]
method[traverseDestructuringPatternHelper, return_type[type[FlowScope]], modifier[private], parameter[pattern, scope, patternType, declarer]] begin[{]
call[.checkArgument, parameter[call[pattern.isDestructuringPattern, parameter[]], member[.pattern]]]
... | Keyword[private] identifier[FlowScope] identifier[traverseDestructuringPatternHelper] operator[SEP] identifier[Node] identifier[pattern] , identifier[FlowScope] identifier[scope] , identifier[JSType] identifier[patternType] , identifier[TypeDeclaringCallback] identifier[declarer] operator[SEP] {
identifier[ch... |
AnnotationInfo getImmutableAnnotation(Tree tree, VisitorState state) {
Symbol sym = ASTHelpers.getSymbol(tree);
return sym == null ? null : threadSafety.getMarkerOrAcceptedAnnotation(sym, state);
} | class class_name[name] begin[{]
method[getImmutableAnnotation, return_type[type[AnnotationInfo]], modifier[default], parameter[tree, state]] begin[{]
local_variable[type[Symbol], sym]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=sym, postfix_operators=[], p... | identifier[AnnotationInfo] identifier[getImmutableAnnotation] operator[SEP] identifier[Tree] identifier[tree] , identifier[VisitorState] identifier[state] operator[SEP] {
identifier[Symbol] identifier[sym] operator[=] identifier[ASTHelpers] operator[SEP] identifier[getSymbol] operator[SEP] identifier[tree] oper... |
public static void main(String[] args) throws Exception {
StringUtils.printErrInvocationString("CMMClassifier", args);
Properties props = StringUtils.argsToProperties(args);
CMMClassifier cmm = new CMMClassifier<CoreLabel>(props);
String testFile = cmm.flags.testFile;
String textFile = cmm.fl... | class class_name[name] begin[{]
method[main, return_type[void], modifier[public static], parameter[args]] begin[{]
call[StringUtils.printErrInvocationString, parameter[literal["CMMClassifier"], member[.args]]]
local_variable[type[Properties], props]
local_variable[type[CMMClassi... | Keyword[public] Keyword[static] Keyword[void] identifier[main] operator[SEP] identifier[String] operator[SEP] operator[SEP] identifier[args] operator[SEP] Keyword[throws] identifier[Exception] {
identifier[StringUtils] operator[SEP] identifier[printErrInvocationString] operator[SEP] literal[String] , identifier... |
@SuppressWarnings("cast")
public static int calcHash(char[] buffer, int start, int len) {
int hash = (int) buffer[start];
for (int i = 1; i < len; ++i) {
hash = (hash * 31) + (int) buffer[start+i];
}
return hash;
} | class class_name[name] begin[{]
method[calcHash, return_type[type[int]], modifier[public static], parameter[buffer, start, len]] begin[{]
local_variable[type[int], hash]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReferenc... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] Keyword[int] identifier[calcHash] operator[SEP] Keyword[char] operator[SEP] operator[SEP] identifier[buffer] , Keyword[int] identifier[start] , Keyword[int] identifier[len] operator[SEP] {
Key... |
@Override
public ModifyInstanceCreditSpecificationResult modifyInstanceCreditSpecification(ModifyInstanceCreditSpecificationRequest request) {
request = beforeClientExecution(request);
return executeModifyInstanceCreditSpecification(request);
} | class class_name[name] begin[{]
method[modifyInstanceCreditSpecification, return_type[type[ModifyInstanceCreditSpecificationResult]], modifier[public], parameter[request]] begin[{]
assign[member[.request], call[.beforeClientExecution, parameter[member[.request]]]]
return[call[.executeMo... | annotation[@] identifier[Override] Keyword[public] identifier[ModifyInstanceCreditSpecificationResult] identifier[modifyInstanceCreditSpecification] operator[SEP] identifier[ModifyInstanceCreditSpecificationRequest] identifier[request] operator[SEP] {
identifier[request] operator[=] identifier[beforeClientExecut... |
public final String[][] getAllPosTags(final String[] tokens) {
final String[][] allPosTags = this.posTagger.tag(13, tokens);
return allPosTags;
} | class class_name[name] begin[{]
method[getAllPosTags, return_type[type[String]], modifier[final public], parameter[tokens]] begin[{]
local_variable[type[String], allPosTags]
return[member[.allPosTags]]
end[}]
END[}] | Keyword[public] Keyword[final] identifier[String] operator[SEP] operator[SEP] operator[SEP] operator[SEP] identifier[getAllPosTags] operator[SEP] Keyword[final] identifier[String] operator[SEP] operator[SEP] identifier[tokens] operator[SEP] {
Keyword[final] identifier[String] operator[SEP] operator[SEP] operator... |
@Override
public void removeRange(int fromIndex, int toIndex) {
int fromIdx = getRealIndex(fromIndex);
int toIdx = getRealIndex(toIndex);
super.removeRange(fromIdx, toIdx);
} | class class_name[name] begin[{]
method[removeRange, return_type[void], modifier[public], parameter[fromIndex, toIndex]] begin[{]
local_variable[type[int], fromIdx]
local_variable[type[int], toIdx]
SuperMethodInvocation(arguments=[MemberReference(member=fromIdx, postfix_operators... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[removeRange] operator[SEP] Keyword[int] identifier[fromIndex] , Keyword[int] identifier[toIndex] operator[SEP] {
Keyword[int] identifier[fromIdx] operator[=] identifier[getRealIndex] operator[SEP] identifier[fromIndex] operator[SEP] ope... |
@Deprecated
public Object[] getValues() {
T v = getValue();
return v != null ? new Object[] { v } : new Object[0];
} | class class_name[name] begin[{]
method[getValues, return_type[type[Object]], modifier[public], parameter[]] begin[{]
local_variable[type[T], v]
return[TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=v, postfix_operators=[], prefix_operators=[], qualifier=, selectors=... | annotation[@] identifier[Deprecated] Keyword[public] identifier[Object] operator[SEP] operator[SEP] identifier[getValues] operator[SEP] operator[SEP] {
identifier[T] identifier[v] operator[=] identifier[getValue] operator[SEP] operator[SEP] operator[SEP] Keyword[return] identifier[v] operator[!=] Other[null] ope... |
private List<PaymentTransactionInfoPlugin> getPaymentTransactionInfoPluginsIfNeeded(@Nullable final PaymentPluginApi pluginApi, final PaymentModelDao paymentModelDao, final TenantContext context) {
if (pluginApi == null) {
return null;
}
try {
return getPaymentTransactio... | class class_name[name] begin[{]
method[getPaymentTransactionInfoPluginsIfNeeded, return_type[type[List]], modifier[private], parameter[pluginApi, paymentModelDao, context]] begin[{]
if[binary_operation[member[.pluginApi], ==, literal[null]]] begin[{]
return[literal[null]]
el... | Keyword[private] identifier[List] operator[<] identifier[PaymentTransactionInfoPlugin] operator[>] identifier[getPaymentTransactionInfoPluginsIfNeeded] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[PaymentPluginApi] identifier[pluginApi] , Keyword[final] identifier[PaymentModelDao] identif... |
public void log(Level mesgLevel, String mesg, Throwable t) {
if (mesgLevel.ordinal() >= level.ordinal()) {
StringBuilder builder = new StringBuilder();
builder.append(mesgLevel.name());
builder.append(": [");
builder.append(simpleClassName != null ? simpleClassNam... | class class_name[name] begin[{]
method[log, return_type[void], modifier[public], parameter[mesgLevel, mesg, t]] begin[{]
if[binary_operation[call[mesgLevel.ordinal, parameter[]], >=, call[level.ordinal, parameter[]]]] begin[{]
local_variable[type[StringBuilder], builder]
... | Keyword[public] Keyword[void] identifier[log] operator[SEP] identifier[Level] identifier[mesgLevel] , identifier[String] identifier[mesg] , identifier[Throwable] identifier[t] operator[SEP] {
Keyword[if] operator[SEP] identifier[mesgLevel] operator[SEP] identifier[ordinal] operator[SEP] operator[SEP] operator[... |
protected IWord getNextDatetimeWord(IWord word, int entityIdx) throws IOException
{
IWord dWord = super.next();
if ( dWord == null ) {
return null;
}
String[] entity = dWord.getEntity();
if ( entity == null ) {
eWordPool.add(dWord);
return... | class class_name[name] begin[{]
method[getNextDatetimeWord, return_type[type[IWord]], modifier[protected], parameter[word, entityIdx]] begin[{]
local_variable[type[IWord], dWord]
if[binary_operation[member[.dWord], ==, literal[null]]] begin[{]
return[literal[null]]
e... | Keyword[protected] identifier[IWord] identifier[getNextDatetimeWord] operator[SEP] identifier[IWord] identifier[word] , Keyword[int] identifier[entityIdx] operator[SEP] Keyword[throws] identifier[IOException] {
identifier[IWord] identifier[dWord] operator[=] Keyword[super] operator[SEP] identifier[next] operato... |
public static boolean setFeatureStyle(MarkerOptions markerOptions, FeatureStyleExtension featureStyleExtension, FeatureRow featureRow, float density, IconCache iconCache) {
FeatureStyle featureStyle = featureStyleExtension.getFeatureStyle(featureRow);
return setFeatureStyle(markerOptions, featureStyle... | class class_name[name] begin[{]
method[setFeatureStyle, return_type[type[boolean]], modifier[public static], parameter[markerOptions, featureStyleExtension, featureRow, density, iconCache]] begin[{]
local_variable[type[FeatureStyle], featureStyle]
return[call[.setFeatureStyle, parameter[member[... | Keyword[public] Keyword[static] Keyword[boolean] identifier[setFeatureStyle] operator[SEP] identifier[MarkerOptions] identifier[markerOptions] , identifier[FeatureStyleExtension] identifier[featureStyleExtension] , identifier[FeatureRow] identifier[featureRow] , Keyword[float] identifier[density] , identifier[IconC... |
private static void assertXpathEquality(String controlXpath,
Document controlDocument,
String testXpath,
Document testDocument,
boolean equal)
... | class class_name[name] begin[{]
method[assertXpathEquality, return_type[void], modifier[private static], parameter[controlXpath, controlDocument, testXpath, testDocument, equal]] begin[{]
local_variable[type[XpathEngine], xpath]
local_variable[type[Diff], diff]
call[.assertXMLEq... | Keyword[private] Keyword[static] Keyword[void] identifier[assertXpathEquality] operator[SEP] identifier[String] identifier[controlXpath] , identifier[Document] identifier[controlDocument] , identifier[String] identifier[testXpath] , identifier[Document] identifier[testDocument] , Keyword[boolean] identifier[equal] ... |
public TokenRequest setScopes(Collection<String> scopes) {
this.scopes = scopes == null ? null : Joiner.on(' ').join(scopes);
return this;
} | class class_name[name] begin[{]
method[setScopes, return_type[type[TokenRequest]], modifier[public], parameter[scopes]] begin[{]
assign[THIS[member[None.scopes]], TernaryExpression(condition=BinaryOperation(operandl=MemberReference(member=scopes, postfix_operators=[], prefix_operators=[], quali... | Keyword[public] identifier[TokenRequest] identifier[setScopes] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[scopes] operator[SEP] {
Keyword[this] operator[SEP] identifier[scopes] operator[=] identifier[scopes] operator[==] Other[null] operator[?] Other[null] operator... |
public static void symmRankTranA_sub(DMatrixRMaj a , DMatrixRMaj c ,
int startIndexC )
{
// TODO update so that it doesn't modify/read parts that it shouldn't
final double dataA[] = a.data;
final double dataC[] = c.data;
// for( int i = 0; i <... | class class_name[name] begin[{]
method[symmRankTranA_sub, return_type[void], modifier[public static], parameter[a, c, startIndexC]] begin[{]
local_variable[type[double], dataA]
local_variable[type[double], dataC]
local_variable[type[int], strideC]
ForStatement(body=BlockStatemen... | Keyword[public] Keyword[static] Keyword[void] identifier[symmRankTranA_sub] operator[SEP] identifier[DMatrixRMaj] identifier[a] , identifier[DMatrixRMaj] identifier[c] , Keyword[int] identifier[startIndexC] operator[SEP] {
Keyword[final] Keyword[double] identifier[dataA] operator[SEP] operator[SEP] operator[=]... |
private Table joinInternal(Table table1, Table table2, boolean outer, boolean allowDuplicates, String... col2Names) {
if (allowDuplicates) {
renameColumnsWithDuplicateNames(table1, table2, col2Names);
}
Table result = emptyTableFromColumns(table1, table2, col2Names);
Map<Col... | class class_name[name] begin[{]
method[joinInternal, return_type[type[Table]], modifier[private], parameter[table1, table2, outer, allowDuplicates, col2Names]] begin[{]
if[member[.allowDuplicates]] begin[{]
call[.renameColumnsWithDuplicateNames, parameter[member[.table1]... | Keyword[private] identifier[Table] identifier[joinInternal] operator[SEP] identifier[Table] identifier[table1] , identifier[Table] identifier[table2] , Keyword[boolean] identifier[outer] , Keyword[boolean] identifier[allowDuplicates] , identifier[String] operator[...] identifier[col2Names] operator[SEP] {
Ke... |
public final boolean showAnimated(@Nullable final DialogAnimation animation,
@Nullable final AnimatorListener listener) {
hidden = false;
if (animation != null) {
Window window = getWindow();
View view = getRootView();
if (view ... | class class_name[name] begin[{]
method[showAnimated, return_type[type[boolean]], modifier[final public], parameter[animation, listener]] begin[{]
assign[member[.hidden], literal[false]]
if[binary_operation[member[.animation], !=, literal[null]]] begin[{]
local_variab... | Keyword[public] Keyword[final] Keyword[boolean] identifier[showAnimated] operator[SEP] annotation[@] identifier[Nullable] Keyword[final] identifier[DialogAnimation] identifier[animation] , annotation[@] identifier[Nullable] Keyword[final] identifier[AnimatorListener] identifier[listener] operator[SEP] {
identif... |
private boolean addManifestClassPath(List<String> scannedJars,
List<String> newJars,
JarURLConnection jconn){
Manifest manifest;
try {
manifest = jconn.getManifest();
} catch (IOException ex) {
... | class class_name[name] begin[{]
method[addManifestClassPath, return_type[type[boolean]], modifier[private], parameter[scannedJars, newJars, jconn]] begin[{]
local_variable[type[Manifest], manifest]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=... | Keyword[private] Keyword[boolean] identifier[addManifestClassPath] operator[SEP] identifier[List] operator[<] identifier[String] operator[>] identifier[scannedJars] , identifier[List] operator[<] identifier[String] operator[>] identifier[newJars] , identifier[JarURLConnection] identifier[jconn] operator[SEP] {
... |
public Map<String, Float> getTermAndRank(List<Term> termList)
{
List<String> wordList = new ArrayList<String>(termList.size());
for (Term t : termList)
{
if (shouldInclude(t))
{
wordList.add(t.word);
}
}
// System.out.println... | class class_name[name] begin[{]
method[getTermAndRank, return_type[type[Map]], modifier[public], parameter[termList]] begin[{]
local_variable[type[List], wordList]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=MethodInvocation(arguments=[MemberReference(member=t... | Keyword[public] identifier[Map] operator[<] identifier[String] , identifier[Float] operator[>] identifier[getTermAndRank] operator[SEP] identifier[List] operator[<] identifier[Term] operator[>] identifier[termList] operator[SEP] {
identifier[List] operator[<] identifier[String] operator[>] identifier[wordList] ... |
public static HttpURLConnection copyFrom(final URI uri, final FileRequestOptions fileOptions,
final OperationContext opContext, final AccessCondition sourceAccessCondition,
final AccessCondition destinationAccessCondition, String source)
throws StorageException, IOException, URISynta... | class class_name[name] begin[{]
method[copyFrom, return_type[type[HttpURLConnection]], modifier[public static], parameter[uri, fileOptions, opContext, sourceAccessCondition, destinationAccessCondition, source]] begin[{]
local_variable[type[HttpURLConnection], request]
call[request.setFi... | Keyword[public] Keyword[static] identifier[HttpURLConnection] identifier[copyFrom] operator[SEP] Keyword[final] identifier[URI] identifier[uri] , Keyword[final] identifier[FileRequestOptions] identifier[fileOptions] , Keyword[final] identifier[OperationContext] identifier[opContext] , Keyword[final] identifier[Acces... |
public Formula not(final Formula operand) {
if (operand.type() == LITERAL || operand.type() == FALSE || operand.type() == TRUE || operand.type() == NOT)
return operand.negate();
Not not = this.nots.get(operand);
if (not == null) {
not = new Not(operand, this);
this.nots.put(operand, not);
... | class class_name[name] begin[{]
method[not, return_type[type[Formula]], modifier[public], parameter[operand]] begin[{]
if[binary_operation[binary_operation[binary_operation[binary_operation[call[operand.type, parameter[]], ==, member[.LITERAL]], ||, binary_operation[call[operand.type, parameter... | Keyword[public] identifier[Formula] identifier[not] operator[SEP] Keyword[final] identifier[Formula] identifier[operand] operator[SEP] {
Keyword[if] operator[SEP] identifier[operand] operator[SEP] identifier[type] operator[SEP] operator[SEP] operator[==] identifier[LITERAL] operator[||] identifier[operand] opera... |
public void copyResource(
CmsDbContext dbc,
CmsResource source,
String destination,
CmsResource.CmsResourceCopyMode siblingMode)
throws CmsException, CmsIllegalArgumentException {
// check the sibling mode to see if this resource has to be copied as a sibling
boolean... | class class_name[name] begin[{]
method[copyResource, return_type[void], modifier[public], parameter[dbc, source, destination, siblingMode]] begin[{]
local_variable[type[boolean], copyAsSibling]
if[call[source.isFolder, parameter[]]] begin[{]
if[binary_operation[m... | Keyword[public] Keyword[void] identifier[copyResource] operator[SEP] identifier[CmsDbContext] identifier[dbc] , identifier[CmsResource] identifier[source] , identifier[String] identifier[destination] , identifier[CmsResource] operator[SEP] identifier[CmsResourceCopyMode] identifier[siblingMode] operator[SEP] Keyword... |
public static void encrypt(PdfReader reader, OutputStream os, byte userPassword[], byte ownerPassword[], int permissions, boolean strength128Bits) throws DocumentException, IOException {
PdfStamper stamper = new PdfStamper(reader, os);
stamper.setEncryption(userPassword, ownerPassword, permissions, stre... | class class_name[name] begin[{]
method[encrypt, return_type[void], modifier[public static], parameter[reader, os, userPassword, ownerPassword, permissions, strength128Bits]] begin[{]
local_variable[type[PdfStamper], stamper]
call[stamper.setEncryption, parameter[member[.userPassword], m... | Keyword[public] Keyword[static] Keyword[void] identifier[encrypt] operator[SEP] identifier[PdfReader] identifier[reader] , identifier[OutputStream] identifier[os] , Keyword[byte] identifier[userPassword] operator[SEP] operator[SEP] , Keyword[byte] identifier[ownerPassword] operator[SEP] operator[SEP] , Keyword[int]... |
void addManagementGraph(final JobID jobID, final ManagementGraph managementGraph) {
synchronized (this.recentManagementGraphs) {
this.recentManagementGraphs.put(jobID, managementGraph);
}
} | class class_name[name] begin[{]
method[addManagementGraph, return_type[void], modifier[default], parameter[jobID, managementGraph]] begin[{]
SYNCHRONIZED[THIS[member[None.recentManagementGraphs]]] BEGIN[{]
THIS[member[None.recentManagementGraphs]call[None.put, parameter[... | Keyword[void] identifier[addManagementGraph] operator[SEP] Keyword[final] identifier[JobID] identifier[jobID] , Keyword[final] identifier[ManagementGraph] identifier[managementGraph] operator[SEP] {
Keyword[synchronized] operator[SEP] Keyword[this] operator[SEP] identifier[recentManagementGraphs] operator[SEP] ... |
@SuppressWarnings("unchecked")
private static <T> Node<T>[] genericNodeArray(int size) {
return (Node<T>[]) new Node<?>[size];
} | class class_name[name] begin[{]
method[genericNodeArray, return_type[type[Node]], modifier[private static], parameter[size]] begin[{]
return[Cast(expression=ArrayCreator(dimensions=[MemberReference(member=size, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], initializer=None, pos... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[private] Keyword[static] operator[<] identifier[T] operator[>] identifier[Node] operator[<] identifier[T] operator[>] operator[SEP] operator[SEP] identifier[genericNodeArray] operator[SEP] Keyword[int] identifier[size] operat... |
public static String recommend(BitmapStatistics s) {
if (s.containerCount() == 0) {
return "Empty statistics, cannot recommend.";
}
StringBuilder sb = new StringBuilder();
containerCountRecommendations(s, sb);
double acFraction = s.containerFraction(s.getArrayContainersStats().getContainersCou... | class class_name[name] begin[{]
method[recommend, return_type[type[String]], modifier[public static], parameter[s]] begin[{]
if[binary_operation[call[s.containerCount, parameter[]], ==, literal[0]]] begin[{]
return[literal["Empty statistics, cannot recommend."]]
else begin[{... | Keyword[public] Keyword[static] identifier[String] identifier[recommend] operator[SEP] identifier[BitmapStatistics] identifier[s] operator[SEP] {
Keyword[if] operator[SEP] identifier[s] operator[SEP] identifier[containerCount] operator[SEP] operator[SEP] operator[==] Other[0] operator[SEP] {
Keyword[r... |
public void marshall(DeleteAgentRequest deleteAgentRequest, ProtocolMarshaller protocolMarshaller) {
if (deleteAgentRequest == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(deleteAgentRequest.getAge... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[deleteAgentRequest, protocolMarshaller]] begin[{]
if[binary_operation[member[.deleteAgentRequest], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(p... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[DeleteAgentRequest] identifier[deleteAgentRequest] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[deleteAgentRequest] operator[==] Other[null] operator[SEP] {
... |
public String getErrorMessage(IOException e) {
// Prefer to use message from GJRE.
GoogleJsonResponseException gjre = getJsonResponseExceptionOrNull(e);
if (gjre != null && gjre.getDetails() != null) {
return gjre.getDetails().getMessage();
}
return e.getMessage();
} | class class_name[name] begin[{]
method[getErrorMessage, return_type[type[String]], modifier[public], parameter[e]] begin[{]
local_variable[type[GoogleJsonResponseException], gjre]
if[binary_operation[binary_operation[member[.gjre], !=, literal[null]], &&, binary_operation[call[gjre.getD... | Keyword[public] identifier[String] identifier[getErrorMessage] operator[SEP] identifier[IOException] identifier[e] operator[SEP] {
identifier[GoogleJsonResponseException] identifier[gjre] operator[=] identifier[getJsonResponseExceptionOrNull] operator[SEP] identifier[e] operator[SEP] operator[SEP] Keyword[if] op... |
public UrlBuilder withPath(String path) {
if (path == null || path.isEmpty()) {
this.path = null;
} else {
with(path, UrlTokenizerState.PATH);
}
return this;
} | class class_name[name] begin[{]
method[withPath, return_type[type[UrlBuilder]], modifier[public], parameter[path]] begin[{]
if[binary_operation[binary_operation[member[.path], ==, literal[null]], ||, call[path.isEmpty, parameter[]]]] begin[{]
assign[THIS[member[None.path... | Keyword[public] identifier[UrlBuilder] identifier[withPath] operator[SEP] identifier[String] identifier[path] operator[SEP] {
Keyword[if] operator[SEP] identifier[path] operator[==] Other[null] operator[||] identifier[path] operator[SEP] identifier[isEmpty] operator[SEP] operator[SEP] operator[SEP] {
... |
public boolean recordImplicitCast() {
if (!currentInfo.isImplicitCast()) {
currentInfo.setImplicitCast(true);
populated = true;
return true;
} else {
return false;
}
} | class class_name[name] begin[{]
method[recordImplicitCast, return_type[type[boolean]], modifier[public], parameter[]] begin[{]
if[call[currentInfo.isImplicitCast, parameter[]]] begin[{]
call[currentInfo.setImplicitCast, parameter[literal[true]]]
a... | Keyword[public] Keyword[boolean] identifier[recordImplicitCast] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[currentInfo] operator[SEP] identifier[isImplicitCast] operator[SEP] operator[SEP] operator[SEP] {
identifier[currentInfo] operator[SEP] identifier[setImplicitC... |
@SuppressWarnings("unchecked")
public void distributedProcess(ResponseBuilder rb, ComponentFields mtasFields)
throws IOException {
// System.out.println("collection: " + System.nanoTime() + " - "
// + Thread.currentThread().getId() + " - "
// + rb.req.getParams().getBool("isShard", false) + " DISTRI... | class class_name[name] begin[{]
method[distributedProcess, return_type[void], modifier[public], parameter[rb, mtasFields]] begin[{]
local_variable[type[NamedList], mtasResponse]
TryStatement(block=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=mtasResponse, postfi... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[void] identifier[distributedProcess] operator[SEP] identifier[ResponseBuilder] identifier[rb] , identifier[ComponentFields] identifier[mtasFields] operator[SEP] Keyword[throws] identifier[IOException] {
... |
public ServiceFuture<List<AvailableCulture>> listSupportedCulturesAsync(final ServiceCallback<List<AvailableCulture>> serviceCallback) {
return ServiceFuture.fromResponse(listSupportedCulturesWithServiceResponseAsync(), serviceCallback);
} | class class_name[name] begin[{]
method[listSupportedCulturesAsync, return_type[type[ServiceFuture]], modifier[public], parameter[serviceCallback]] begin[{]
return[call[ServiceFuture.fromResponse, parameter[call[.listSupportedCulturesWithServiceResponseAsync, parameter[]], member[.serviceCallback]]]]
... | Keyword[public] identifier[ServiceFuture] operator[<] identifier[List] operator[<] identifier[AvailableCulture] operator[>] operator[>] identifier[listSupportedCulturesAsync] operator[SEP] Keyword[final] identifier[ServiceCallback] operator[<] identifier[List] operator[<] identifier[AvailableCulture] operator[>] operat... |
protected CmsWorkflowActionParams getWorkflowActionParams() {
if (m_publishSelectPanel.isShowResources()) {
List<CmsUUID> resourcesToPublish = new ArrayList<CmsUUID>(m_publishSelectPanel.getResourcesToPublish());
List<CmsUUID> resourcesToRemove = new ArrayList<CmsUUID>(m_publishSelectPa... | class class_name[name] begin[{]
method[getWorkflowActionParams, return_type[type[CmsWorkflowActionParams]], modifier[protected], parameter[]] begin[{]
if[call[m_publishSelectPanel.isShowResources, parameter[]]] begin[{]
local_variable[type[List], resourcesToPublish]
loca... | Keyword[protected] identifier[CmsWorkflowActionParams] identifier[getWorkflowActionParams] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[m_publishSelectPanel] operator[SEP] identifier[isShowResources] operator[SEP] operator[SEP] operator[SEP] {
identifier[List] operator[<] identif... |
public ZMatrixRMaj getH(ZMatrixRMaj H ) {
H = UtilDecompositons_ZDRM.checkZeros(H,N,N);
// copy the first row
System.arraycopy(QH.data, 0, H.data, 0, N*2);
for( int i = 1; i < N; i++ ) {
System.arraycopy(QH.data, (i*N+i-1)*2, H.data, (i*N+i-1)*2, (N-i+1)*2);
}
... | class class_name[name] begin[{]
method[getH, return_type[type[ZMatrixRMaj]], modifier[public], parameter[H]] begin[{]
assign[member[.H], call[UtilDecompositons_ZDRM.checkZeros, parameter[member[.H], member[.N], member[.N]]]]
call[System.arraycopy, parameter[member[QH.data], lite... | Keyword[public] identifier[ZMatrixRMaj] identifier[getH] operator[SEP] identifier[ZMatrixRMaj] identifier[H] operator[SEP] {
identifier[H] operator[=] identifier[UtilDecompositons_ZDRM] operator[SEP] identifier[checkZeros] operator[SEP] identifier[H] , identifier[N] , identifier[N] operator[SEP] operator[SEP] ... |
public void setLocale(final Locale locale) {
if (!equals(this.locale, locale)) {
this.locale = locale;
super.setValue(toString(locale));
i18nBundleProvider.reloadBundles(locale);
}
} | class class_name[name] begin[{]
method[setLocale, return_type[void], modifier[public], parameter[locale]] begin[{]
if[call[.equals, parameter[THIS[member[None.locale]], member[.locale]]]] begin[{]
assign[THIS[member[None.locale]], member[.locale]]
... | Keyword[public] Keyword[void] identifier[setLocale] operator[SEP] Keyword[final] identifier[Locale] identifier[locale] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[equals] operator[SEP] Keyword[this] operator[SEP] identifier[locale] , identifier[locale] operator[SEP] operator[SEP] {
... |
public static URI changeProtocolAndPort(String protocol, int port, URI template) throws URISyntaxException {
return new URI(protocol, template.getUserInfo(), template.getHost(), port, template.getPath(), template.getQuery(), null);
} | class class_name[name] begin[{]
method[changeProtocolAndPort, return_type[type[URI]], modifier[public static], parameter[protocol, port, template]] begin[{]
return[ClassCreator(arguments=[MemberReference(member=protocol, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), MethodInvoca... | Keyword[public] Keyword[static] identifier[URI] identifier[changeProtocolAndPort] operator[SEP] identifier[String] identifier[protocol] , Keyword[int] identifier[port] , identifier[URI] identifier[template] operator[SEP] Keyword[throws] identifier[URISyntaxException] {
Keyword[return] Keyword[new] identifier[U... |
protected JScrollPane wrapContent(final JComponent panel) {
panel.setMaximumSize(new Dimension(WIDTH_CONTENT, Integer.MAX_VALUE));
panel.setAlignmentX(Component.LEFT_ALIGNMENT);
final DCPanel wrappingPanel = new DCPanel();
final BoxLayout layout = new BoxLayout(wrappingPanel, BoxLayout.... | class class_name[name] begin[{]
method[wrapContent, return_type[type[JScrollPane]], modifier[protected], parameter[panel]] begin[{]
call[panel.setMaximumSize, parameter[ClassCreator(arguments=[MemberReference(member=WIDTH_CONTENT, postfix_operators=[], prefix_operators=[], qualifier=, selectors... | Keyword[protected] identifier[JScrollPane] identifier[wrapContent] operator[SEP] Keyword[final] identifier[JComponent] identifier[panel] operator[SEP] {
identifier[panel] operator[SEP] identifier[setMaximumSize] operator[SEP] Keyword[new] identifier[Dimension] operator[SEP] identifier[WIDTH_CONTENT] , identifie... |
private ProcessInstance getProcInstFromDB(Long procInstId) throws DataAccessException {
TransactionWrapper transaction = null;
EngineDataAccessDB edao = new EngineDataAccessDB();
try {
transaction = edao.startTransaction();
return edao.getProcessInstance(procInstId);
... | class class_name[name] begin[{]
method[getProcInstFromDB, return_type[type[ProcessInstance]], modifier[private], parameter[procInstId]] begin[{]
local_variable[type[TransactionWrapper], transaction]
local_variable[type[EngineDataAccessDB], edao]
TryStatement(block=[StatementExpression(e... | Keyword[private] identifier[ProcessInstance] identifier[getProcInstFromDB] operator[SEP] identifier[Long] identifier[procInstId] operator[SEP] Keyword[throws] identifier[DataAccessException] {
identifier[TransactionWrapper] identifier[transaction] operator[=] Other[null] operator[SEP] identifier[EngineDataAccess... |
public void setProperty(String key, boolean value) {
getResourceFactory()
.getApiResource("/user/property/" + key)
.entity(new PropertyValue(value),
MediaType.APPLICATION_JSON_TYPE).put();
} | class class_name[name] begin[{]
method[setProperty, return_type[void], modifier[public], parameter[key, value]] begin[{]
call[.getResourceFactory, parameter[]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[setProperty] operator[SEP] identifier[String] identifier[key] , Keyword[boolean] identifier[value] operator[SEP] {
identifier[getResourceFactory] operator[SEP] operator[SEP] operator[SEP] identifier[getApiResource] operator[SEP] literal[String] operator[+] identifier[key... |
public static CommerceDiscount fetchByLtD_S_Last(Date displayDate,
int status, OrderByComparator<CommerceDiscount> orderByComparator) {
return getPersistence()
.fetchByLtD_S_Last(displayDate, status, orderByComparator);
} | class class_name[name] begin[{]
method[fetchByLtD_S_Last, return_type[type[CommerceDiscount]], modifier[public static], parameter[displayDate, status, orderByComparator]] begin[{]
return[call[.getPersistence, parameter[]]]
end[}]
END[}] | Keyword[public] Keyword[static] identifier[CommerceDiscount] identifier[fetchByLtD_S_Last] operator[SEP] identifier[Date] identifier[displayDate] , Keyword[int] identifier[status] , identifier[OrderByComparator] operator[<] identifier[CommerceDiscount] operator[>] identifier[orderByComparator] operator[SEP] {
... |
public static Optional<Class> resolveInterfaceTypeArgument(Class type, Class interfaceType) {
Type[] genericInterfaces = type.getGenericInterfaces();
for (Type genericInterface : genericInterfaces) {
if (genericInterface instanceof ParameterizedType) {
ParameterizedType pt = ... | class class_name[name] begin[{]
method[resolveInterfaceTypeArgument, return_type[type[Optional]], modifier[public static], parameter[type, interfaceType]] begin[{]
local_variable[type[Type], genericInterfaces]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=Binary... | Keyword[public] Keyword[static] identifier[Optional] operator[<] identifier[Class] operator[>] identifier[resolveInterfaceTypeArgument] operator[SEP] identifier[Class] identifier[type] , identifier[Class] identifier[interfaceType] operator[SEP] {
identifier[Type] operator[SEP] operator[SEP] identifier[genericIn... |
public String htmlCell(CmsListItem item, boolean isPrintable) {
StringBuffer html = new StringBuffer(512);
Iterator<I_CmsListDirectAction> itActions = m_directActions.iterator();
while (itActions.hasNext()) {
I_CmsListDirectAction action = itActions.next();
action.setIte... | class class_name[name] begin[{]
method[htmlCell, return_type[type[String]], modifier[public], parameter[item, isPrintable]] begin[{]
local_variable[type[StringBuffer], html]
local_variable[type[Iterator], itActions]
while[call[itActions.hasNext, parameter[]]] begin[{]
... | Keyword[public] identifier[String] identifier[htmlCell] operator[SEP] identifier[CmsListItem] identifier[item] , Keyword[boolean] identifier[isPrintable] operator[SEP] {
identifier[StringBuffer] identifier[html] operator[=] Keyword[new] identifier[StringBuffer] operator[SEP] Other[512] operator[SEP] operator[SE... |
public void release() {
HMSAgentLog.d("release");
isResolving = false;
resolveActivity = null;
hasOverActivity = false;
HuaweiApiClient client = getApiClient();
if (client != null) {
client.disconnect();
}
synchronized (APICLIEN... | class class_name[name] begin[{]
method[release, return_type[void], modifier[public], parameter[]] begin[{]
call[HMSAgentLog.d, parameter[literal["release"]]]
assign[member[.isResolving], literal[false]]
assign[member[.resolveActivity], literal[null]]
... | Keyword[public] Keyword[void] identifier[release] operator[SEP] operator[SEP] {
identifier[HMSAgentLog] operator[SEP] identifier[d] operator[SEP] literal[String] operator[SEP] operator[SEP] identifier[isResolving] operator[=] literal[boolean] operator[SEP] identifier[resolveActivity] operator[=] Other[null] oper... |
private BasicDBObject identifyFieldsToRetrieve(Class<T> entityClass, String viewOfClassName) {
if (viewOfClassName == null) {
return null; // Null is equivalent to retrieving all fields
}
BasicDBObject fields = new BasicDBObject();
try {
determineFieldsToRet... | class class_name[name] begin[{]
method[identifyFieldsToRetrieve, return_type[type[BasicDBObject]], modifier[private], parameter[entityClass, viewOfClassName]] begin[{]
if[binary_operation[member[.viewOfClassName], ==, literal[null]]] begin[{]
return[literal[null]]
else begin... | Keyword[private] identifier[BasicDBObject] identifier[identifyFieldsToRetrieve] operator[SEP] identifier[Class] operator[<] identifier[T] operator[>] identifier[entityClass] , identifier[String] identifier[viewOfClassName] operator[SEP] {
Keyword[if] operator[SEP] identifier[viewOfClassName] operator[==] Other[... |
public final <U, V> Flux<T> timeout(Publisher<U> firstTimeout,
Function<? super T, ? extends Publisher<V>> nextTimeoutFactory, Publisher<? extends T>
fallback) {
return onAssembly(new FluxTimeout<>(this, firstTimeout, nextTimeoutFactory,
fallback));
} | class class_name[name] begin[{]
method[timeout, return_type[type[Flux]], modifier[final public], parameter[firstTimeout, nextTimeoutFactory, fallback]] begin[{]
return[call[.onAssembly, parameter[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), Memb... | Keyword[public] Keyword[final] operator[<] identifier[U] , identifier[V] operator[>] identifier[Flux] operator[<] identifier[T] operator[>] identifier[timeout] operator[SEP] identifier[Publisher] operator[<] identifier[U] operator[>] identifier[firstTimeout] , identifier[Function] operator[<] operator[?] Keyword[supe... |
@Override
public Enumeration<URL> getResources(String name) throws IOException {
return bundleClassLoader.getResources(name);
} | class class_name[name] begin[{]
method[getResources, return_type[type[Enumeration]], modifier[public], parameter[name]] begin[{]
return[call[bundleClassLoader.getResources, parameter[member[.name]]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] identifier[Enumeration] operator[<] identifier[URL] operator[>] identifier[getResources] operator[SEP] identifier[String] identifier[name] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[return] identifier[bundleClassLoader] operator[SEP] identif... |
public GetContextKeysForCustomPolicyRequest withPolicyInputList(String... policyInputList) {
if (this.policyInputList == null) {
setPolicyInputList(new com.amazonaws.internal.SdkInternalList<String>(policyInputList.length));
}
for (String ele : policyInputList) {
this.pol... | class class_name[name] begin[{]
method[withPolicyInputList, return_type[type[GetContextKeysForCustomPolicyRequest]], modifier[public], parameter[policyInputList]] begin[{]
if[binary_operation[THIS[member[None.policyInputList]], ==, literal[null]]] begin[{]
call[.setPolic... | Keyword[public] identifier[GetContextKeysForCustomPolicyRequest] identifier[withPolicyInputList] operator[SEP] identifier[String] operator[...] identifier[policyInputList] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[policyInputList] operator[==] Other[null] operator[SEP] {
... |
public static int assignKeyToParallelOperator(Object key, int maxParallelism, int parallelism) {
return computeOperatorIndexForKeyGroup(maxParallelism, parallelism, assignToKeyGroup(key, maxParallelism));
} | class class_name[name] begin[{]
method[assignKeyToParallelOperator, return_type[type[int]], modifier[public static], parameter[key, maxParallelism, parallelism]] begin[{]
return[call[.computeOperatorIndexForKeyGroup, parameter[member[.maxParallelism], member[.parallelism], call[.assignToKeyGroup, param... | Keyword[public] Keyword[static] Keyword[int] identifier[assignKeyToParallelOperator] operator[SEP] identifier[Object] identifier[key] , Keyword[int] identifier[maxParallelism] , Keyword[int] identifier[parallelism] operator[SEP] {
Keyword[return] identifier[computeOperatorIndexForKeyGroup] operator[SEP] identi... |
Boolean getColIsIdentity(int i) {
return table.getColumn(i).isIdentity() ? Boolean.TRUE
: Boolean.FALSE;
} | class class_name[name] begin[{]
method[getColIsIdentity, return_type[type[Boolean]], modifier[default], parameter[i]] begin[{]
return[TernaryExpression(condition=MethodInvocation(arguments=[MemberReference(member=i, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[])], member=getColumn... | identifier[Boolean] identifier[getColIsIdentity] operator[SEP] Keyword[int] identifier[i] operator[SEP] {
Keyword[return] identifier[table] operator[SEP] identifier[getColumn] operator[SEP] identifier[i] operator[SEP] operator[SEP] identifier[isIdentity] operator[SEP] operator[SEP] operator[?] identifier[Boolean... |
private Object getX500Name(String name, boolean getIssuer)
throws IOException {
if (name.equalsIgnoreCase(X509CertInfo.DN_NAME)) {
return getIssuer ? issuer : subject;
} else if (name.equalsIgnoreCase("x500principal")) {
return getIssuer ? issuer.asX500Principal()
... | class class_name[name] begin[{]
method[getX500Name, return_type[type[Object]], modifier[private], parameter[name, getIssuer]] begin[{]
if[call[name.equalsIgnoreCase, parameter[member[X509CertInfo.DN_NAME]]]] begin[{]
return[TernaryExpression(condition=MemberReference(member=getIssue... | Keyword[private] identifier[Object] identifier[getX500Name] operator[SEP] identifier[String] identifier[name] , Keyword[boolean] identifier[getIssuer] operator[SEP] Keyword[throws] identifier[IOException] {
Keyword[if] operator[SEP] identifier[name] operator[SEP] identifier[equalsIgnoreCase] operator[SEP] ident... |
public void marshall(PolicyTypeSummary policyTypeSummary, ProtocolMarshaller protocolMarshaller) {
if (policyTypeSummary == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(policyTypeSummary.getType(),... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[policyTypeSummary, protocolMarshaller]] begin[{]
if[binary_operation[member[.policyTypeSummary], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(pos... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[PolicyTypeSummary] identifier[policyTypeSummary] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[policyTypeSummary] operator[==] Other[null] operator[SEP] {
... |
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
switch (featureID) {
case AfplibPackage.BPG__PAGE_NAME:
return getPageName();
case AfplibPackage.BPG__TRIPLETS:
return getTriplets();
}
return super.eGet(featureID, resolve, coreType);
} | class class_name[name] begin[{]
method[eGet, return_type[type[Object]], modifier[public], parameter[featureID, resolve, coreType]] begin[{]
SwitchStatement(cases=[SwitchStatementCase(case=[MemberReference(member=BPG__PAGE_NAME, postfix_operators=[], prefix_operators=[], qualifier=AfplibPackage, selecto... | annotation[@] identifier[Override] Keyword[public] identifier[Object] identifier[eGet] operator[SEP] Keyword[int] identifier[featureID] , Keyword[boolean] identifier[resolve] , Keyword[boolean] identifier[coreType] operator[SEP] {
Keyword[switch] operator[SEP] identifier[featureID] operator[SEP] {
K... |
protected void sendTransferMessageToLocalUser(Mtp3TransferPrimitive msg, int seqControl) {
if (this.isStarted) {
MsgTransferDeliveryHandler hdl = new MsgTransferDeliveryHandler(msg);
seqControl = seqControl & slsFilter;
this.msgDeliveryExecutors[this.slsTable[seqControl]].ex... | class class_name[name] begin[{]
method[sendTransferMessageToLocalUser, return_type[void], modifier[protected], parameter[msg, seqControl]] begin[{]
if[THIS[member[None.isStarted]]] begin[{]
local_variable[type[MsgTransferDeliveryHandler], hdl]
assign[member[.... | Keyword[protected] Keyword[void] identifier[sendTransferMessageToLocalUser] operator[SEP] identifier[Mtp3TransferPrimitive] identifier[msg] , Keyword[int] identifier[seqControl] operator[SEP] {
Keyword[if] operator[SEP] Keyword[this] operator[SEP] identifier[isStarted] operator[SEP] {
identifier[MsgT... |
protected void nowReconnectedAsync() {
if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
Tr.debug(tc, "Reconnected async for " + this);
}
// reset the data buffers first
if (!resetWriteBuffers()) {
if (TraceComponent.isAnyTracingEnabled() && tc.i... | class class_name[name] begin[{]
method[nowReconnectedAsync, return_type[void], modifier[protected], parameter[]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isDebugEnabled, parameter[]]]] begin[{]
call[Tr.debug, paramet... | Keyword[protected] Keyword[void] identifier[nowReconnectedAsync] operator[SEP] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identifier[isDebugEnabled] operator[SEP] operator... |
@Override
public void compute() {
Spliterator<P_IN> rs = spliterator, ls;
long sizeEstimate = rs.estimateSize();
long sizeThreshold = getTargetSize(sizeEstimate);
boolean forkRight = false;
@SuppressWarnings("unchecked") K task = (K) this;
AtomicReference<R> sr = shar... | class class_name[name] begin[{]
method[compute, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[Spliterator], rs]
local_variable[type[long], sizeEstimate]
local_variable[type[long], sizeThreshold]
local_variable[type[boolean], forkRight]
lo... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[compute] operator[SEP] operator[SEP] {
identifier[Spliterator] operator[<] identifier[P_IN] operator[>] identifier[rs] operator[=] identifier[spliterator] , identifier[ls] operator[SEP] Keyword[long] identifier[sizeEstimate] operator[=]... |
@Override
public void sessionWillPassivate(HttpSessionEvent event) {
if (!instanceEnabled) {
return;
}
// pour getSessionCount
SESSION_COUNT.decrementAndGet();
// pour invalidateAllSession
removeSession(event.getSession());
} | class class_name[name] begin[{]
method[sessionWillPassivate, return_type[void], modifier[public], parameter[event]] begin[{]
if[member[.instanceEnabled]] begin[{]
return[None]
else begin[{]
None
end[}]
call[SESSION_COUNT.decrementAndGet, parameter[]]
... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[sessionWillPassivate] operator[SEP] identifier[HttpSessionEvent] identifier[event] operator[SEP] {
Keyword[if] operator[SEP] operator[!] identifier[instanceEnabled] operator[SEP] {
Keyword[return] operator[SEP]
}
... |
public static AuthConfigFactory getFactory()
{
//Validate the caller permission
SecurityManager sm = System.getSecurityManager();
if (sm != null)
sm.checkPermission(getFactorySecurityPermission);
if (_factory == null)
{
if (sm != null)
sm.checkPermissio... | class class_name[name] begin[{]
method[getFactory, return_type[type[AuthConfigFactory]], modifier[public static], parameter[]] begin[{]
local_variable[type[SecurityManager], sm]
if[binary_operation[member[.sm], !=, literal[null]]] begin[{]
call[sm.checkPermission, parameter[... | Keyword[public] Keyword[static] identifier[AuthConfigFactory] identifier[getFactory] operator[SEP] operator[SEP] {
identifier[SecurityManager] identifier[sm] operator[=] identifier[System] operator[SEP] identifier[getSecurityManager] operator[SEP] operator[SEP] operator[SEP] Keyword[if] operator[SEP] identifier[... |
protected void processContextEntry(ServiceReference<JAASLoginContextEntry> ref) {
String id = (String) ref.getProperty(KEY_ID);
String[] modulePids = (String[]) ref.getProperty(JAASLoginContextEntryImpl.CFG_KEY_LOGIN_MODULE_REF);
boolean changedEntryContext = false;
if (modulePids == nu... | class class_name[name] begin[{]
method[processContextEntry, return_type[void], modifier[protected], parameter[ref]] begin[{]
local_variable[type[String], id]
local_variable[type[String], modulePids]
local_variable[type[boolean], changedEntryContext]
if[binary_operation[b... | Keyword[protected] Keyword[void] identifier[processContextEntry] operator[SEP] identifier[ServiceReference] operator[<] identifier[JAASLoginContextEntry] operator[>] identifier[ref] operator[SEP] {
identifier[String] identifier[id] operator[=] operator[SEP] identifier[String] operator[SEP] identifier[ref] operat... |
public static PactDslJsonBody arrayMaxLike(int maxSize, int numberExamples) {
if (numberExamples > maxSize) {
throw new IllegalArgumentException(String.format("Number of example %d is more than the maximum size of %d",
numberExamples, maxSize));
}
PactDslJsonArray parent = new PactDslJsonArray... | class class_name[name] begin[{]
method[arrayMaxLike, return_type[type[PactDslJsonBody]], modifier[public static], parameter[maxSize, numberExamples]] begin[{]
if[binary_operation[member[.numberExamples], >, member[.maxSize]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments... | Keyword[public] Keyword[static] identifier[PactDslJsonBody] identifier[arrayMaxLike] operator[SEP] Keyword[int] identifier[maxSize] , Keyword[int] identifier[numberExamples] operator[SEP] {
Keyword[if] operator[SEP] identifier[numberExamples] operator[>] identifier[maxSize] operator[SEP] {
Keyword[th... |
public void setSystemMessageSourceUuid(SIBUuid8 value) {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(this, tc, "setSystemMessageSourceUuid", value);
// Clear the cached MessageHandle
cachedMessageHandle = null;
// Set the value into the messag... | class class_name[name] begin[{]
method[setSystemMessageSourceUuid, return_type[void], modifier[public], parameter[value]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, paramet... | Keyword[public] Keyword[void] identifier[setSystemMessageSourceUuid] operator[SEP] identifier[SIBUuid8] identifier[value] operator[SEP] {
Keyword[if] operator[SEP] identifier[TraceComponent] operator[SEP] identifier[isAnyTracingEnabled] operator[SEP] operator[SEP] operator[&&] identifier[tc] operator[SEP] identi... |
public void waitAndRetry() {
ContinueToSendToBatchSenderAsstManager continueToSendToBatchSenderAsstManager = new ContinueToSendToBatchSenderAsstManager(
processedWorkerCount);
logger.debug("NOW WAIT Another " + asstManagerRetryIntervalMillis
+ " MS. at " + PcDateUtils.ge... | class class_name[name] begin[{]
method[waitAndRetry, return_type[void], modifier[public], parameter[]] begin[{]
local_variable[type[ContinueToSendToBatchSenderAsstManager], continueToSendToBatchSenderAsstManager]
call[logger.debug, parameter[binary_operation[binary_operation[binary_oper... | Keyword[public] Keyword[void] identifier[waitAndRetry] operator[SEP] operator[SEP] {
identifier[ContinueToSendToBatchSenderAsstManager] identifier[continueToSendToBatchSenderAsstManager] operator[=] Keyword[new] identifier[ContinueToSendToBatchSenderAsstManager] operator[SEP] identifier[processedWorkerCount] ope... |
public static Map<TypeVariable, Type> matchVariables(final Type template, final Type real) {
final MatchVariablesVisitor visitor = new MatchVariablesVisitor();
TypesWalker.walk(template, real, visitor);
if (visitor.isHierarchyError()) {
throw new IllegalArgumentException(String.forma... | class class_name[name] begin[{]
method[matchVariables, return_type[type[Map]], modifier[public static], parameter[template, real]] begin[{]
local_variable[type[MatchVariablesVisitor], visitor]
call[TypesWalker.walk, parameter[member[.template], member[.real], member[.visitor]]]
... | Keyword[public] Keyword[static] identifier[Map] operator[<] identifier[TypeVariable] , identifier[Type] operator[>] identifier[matchVariables] operator[SEP] Keyword[final] identifier[Type] identifier[template] , Keyword[final] identifier[Type] identifier[real] operator[SEP] {
Keyword[final] identifier[MatchVar... |
public static JSONArray toJSONArray(XMLTokener x) throws JSONException {
return (JSONArray) parse(x, true, null);
} | class class_name[name] begin[{]
method[toJSONArray, return_type[type[JSONArray]], modifier[public static], parameter[x]] begin[{]
return[Cast(expression=MethodInvocation(arguments=[MemberReference(member=x, postfix_operators=[], prefix_operators=[], qualifier=, selectors=[]), Literal(postfix_operators=... | Keyword[public] Keyword[static] identifier[JSONArray] identifier[toJSONArray] operator[SEP] identifier[XMLTokener] identifier[x] operator[SEP] Keyword[throws] identifier[JSONException] {
Keyword[return] operator[SEP] identifier[JSONArray] operator[SEP] identifier[parse] operator[SEP] identifier[x] , literal[boo... |
public static String formatProcedureName(String s) {
StringBuilder res = new StringBuilder();
boolean one = true;
for(String s1 : s.split(" ")) {
if (one) {
one = false;
res.append(s1);
}
else {
res.append(firstUpperCase(s1));
}
}
return res.toString();
} | class class_name[name] begin[{]
method[formatProcedureName, return_type[type[String]], modifier[public static], parameter[s]] begin[{]
local_variable[type[StringBuilder], res]
local_variable[type[boolean], one]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(conditi... | Keyword[public] Keyword[static] identifier[String] identifier[formatProcedureName] operator[SEP] identifier[String] identifier[s] operator[SEP] {
identifier[StringBuilder] identifier[res] operator[=] Keyword[new] identifier[StringBuilder] operator[SEP] operator[SEP] operator[SEP] Keyword[boolean] identifier[one]... |
public Pager<Project> getProjects(int itemsPerPage) throws GitLabApiException {
return (new Pager<Project>(this, Project.class, itemsPerPage, null, "projects"));
} | class class_name[name] begin[{]
method[getProjects, return_type[type[Pager]], modifier[public], parameter[itemsPerPage]] begin[{]
return[ClassCreator(arguments=[This(postfix_operators=[], prefix_operators=[], qualifier=None, selectors=[]), ClassReference(postfix_operators=[], prefix_operators=[], quali... | Keyword[public] identifier[Pager] operator[<] identifier[Project] operator[>] identifier[getProjects] operator[SEP] Keyword[int] identifier[itemsPerPage] operator[SEP] Keyword[throws] identifier[GitLabApiException] {
Keyword[return] operator[SEP] Keyword[new] identifier[Pager] operator[<] identifier[Project] ope... |
public synchronized boolean registerWithFFDCService()
{
boolean result = true;
boolean abort = false;
int retCode = 0;
int packageIndex = 0;
// Don't register more than once.
if (ivRegisteredWithFFDC)
{
if (TraceComponent.isAnyTracingEnabled() && ... | class class_name[name] begin[{]
method[registerWithFFDCService, return_type[type[boolean]], modifier[synchronized public], parameter[]] begin[{]
local_variable[type[boolean], result]
local_variable[type[boolean], abort]
local_variable[type[int], retCode]
local_variable[type[int]... | Keyword[public] Keyword[synchronized] Keyword[boolean] identifier[registerWithFFDCService] operator[SEP] operator[SEP] {
Keyword[boolean] identifier[result] operator[=] literal[boolean] operator[SEP] Keyword[boolean] identifier[abort] operator[=] literal[boolean] operator[SEP] Keyword[int] identifier[retCode] op... |
protected Content getProfile(String profileName) {
Content profileLinkContent;
Content profileLabel;
profileLabel = new StringContent(profileName);
profileLinkContent = getHyperLink(DocPaths.profileFrame(profileName), profileLabel, "",
"packageListFrame");
Con... | class class_name[name] begin[{]
method[getProfile, return_type[type[Content]], modifier[protected], parameter[profileName]] begin[{]
local_variable[type[Content], profileLinkContent]
local_variable[type[Content], profileLabel]
assign[member[.profileLabel], ClassCreator(arguments... | Keyword[protected] identifier[Content] identifier[getProfile] operator[SEP] identifier[String] identifier[profileName] operator[SEP] {
identifier[Content] identifier[profileLinkContent] operator[SEP] identifier[Content] identifier[profileLabel] operator[SEP] identifier[profileLabel] operator[=] Keyword[new] iden... |
public void validateName(final String name) {
Validate.validState(
TENANT_NAME_VALIDATOR_PATTERN.matcher(name).matches(),
"Invalid tenant name '%s' -- names must match %s .",
name,
TENANT_NAME_VALIDATOR_REGEX);
} | class class_name[name] begin[{]
method[validateName, return_type[void], modifier[public], parameter[name]] begin[{]
call[Validate.validState, parameter[call[TENANT_NAME_VALIDATOR_PATTERN.matcher, parameter[member[.name]]], literal["Invalid tenant name '%s' -- names must match %s ."], member[.n... | Keyword[public] Keyword[void] identifier[validateName] operator[SEP] Keyword[final] identifier[String] identifier[name] operator[SEP] {
identifier[Validate] operator[SEP] identifier[validState] operator[SEP] identifier[TENANT_NAME_VALIDATOR_PATTERN] operator[SEP] identifier[matcher] operator[SEP] identifier[name... |
public final void reset(boolean resetChunkSize) {
markBufferChanged();
firstChunk = null;
lastChunk = null;
totalCharsInList = 0;
totalCharsInDynamicChunks = -1;
sizeAtLeast = -1;
if (resetChunkSize) {
chunkSize = firstChunkSize;
totalChunk... | class class_name[name] begin[{]
method[reset, return_type[void], modifier[final public], parameter[resetChunkSize]] begin[{]
call[.markBufferChanged, parameter[]]
assign[member[.firstChunk], literal[null]]
assign[member[.lastChunk], literal[null]]
... | Keyword[public] Keyword[final] Keyword[void] identifier[reset] operator[SEP] Keyword[boolean] identifier[resetChunkSize] operator[SEP] {
identifier[markBufferChanged] operator[SEP] operator[SEP] operator[SEP] identifier[firstChunk] operator[=] Other[null] operator[SEP] identifier[lastChunk] operator[=] Other[nul... |
public void setGenericKeywords(java.util.Collection<String> genericKeywords) {
if (genericKeywords == null) {
this.genericKeywords = null;
return;
}
this.genericKeywords = new java.util.ArrayList<String>(genericKeywords);
} | class class_name[name] begin[{]
method[setGenericKeywords, return_type[void], modifier[public], parameter[genericKeywords]] begin[{]
if[binary_operation[member[.genericKeywords], ==, literal[null]]] begin[{]
assign[THIS[member[None.genericKeywords]], literal[null]]
... | Keyword[public] Keyword[void] identifier[setGenericKeywords] operator[SEP] identifier[java] operator[SEP] identifier[util] operator[SEP] identifier[Collection] operator[<] identifier[String] operator[>] identifier[genericKeywords] operator[SEP] {
Keyword[if] operator[SEP] identifier[genericKeywords] operator[==]... |
static String resolveDuplicateName(String name){
if(name.matches("^copy\\d+\\..*$")){ // If true - means bean name already contain copy prefix
// Parsing copy number from prefix to increase it
// Copy number contains in the prefix end -
// StringBuilder is required to reve... | class class_name[name] begin[{]
method[resolveDuplicateName, return_type[type[String]], modifier[static], parameter[name]] begin[{]
if[call[name.matches, parameter[literal["^copy\\d+\\..*$"]]]] begin[{]
local_variable[type[StringBuilder], copyPrefix]
local_variable[type[... | Keyword[static] identifier[String] identifier[resolveDuplicateName] operator[SEP] identifier[String] identifier[name] operator[SEP] {
Keyword[if] operator[SEP] identifier[name] operator[SEP] identifier[matches] operator[SEP] literal[String] operator[SEP] operator[SEP] {
identifier[StringBuilder] ident... |
public void disableAutoCompaction()
{
for (String ksname : Schema.instance.getNonSystemKeyspaces())
{
for (ColumnFamilyStore cfs : Keyspace.open(ksname).getColumnFamilyStores())
cfs.disableAutoCompaction();
}
} | class class_name[name] begin[{]
method[disableAutoCompaction, return_type[void], modifier[public], parameter[]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[ForStatement(body=StatementExpression(expression=MethodInvocation(arguments=[], member=disableAutoCompaction, postfix_operato... | Keyword[public] Keyword[void] identifier[disableAutoCompaction] operator[SEP] operator[SEP] {
Keyword[for] operator[SEP] identifier[String] identifier[ksname] operator[:] identifier[Schema] operator[SEP] identifier[instance] operator[SEP] identifier[getNonSystemKeyspaces] operator[SEP] operator[SEP] operator[SE... |
public static Throwable unwrap(@Nullable Throwable t) {
if (t instanceof UncheckedException || t instanceof java.util.concurrent.ExecutionException
|| t instanceof java.lang.reflect.InvocationTargetException
|| t instanceof UndeclaredThrowableException) {
return t.getCause();
}
return t;
} | class class_name[name] begin[{]
method[unwrap, return_type[type[Throwable]], modifier[public static], parameter[t]] begin[{]
if[binary_operation[binary_operation[binary_operation[binary_operation[member[.t], instanceof, type[UncheckedException]], ||, binary_operation[member[.t], instanceof, typ... | Keyword[public] Keyword[static] identifier[Throwable] identifier[unwrap] operator[SEP] annotation[@] identifier[Nullable] identifier[Throwable] identifier[t] operator[SEP] {
Keyword[if] operator[SEP] identifier[t] Keyword[instanceof] identifier[UncheckedException] operator[||] identifier[t] Keyword[instanceof] i... |
public void marshall(KeyUsage keyUsage, ProtocolMarshaller protocolMarshaller) {
if (keyUsage == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.marshall(keyUsage.getName(), NAME_BINDING);
} catch (Exc... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[keyUsage, protocolMarshaller]] begin[{]
if[binary_operation[member[.keyUsage], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreator(arguments=[Literal(postfix_operators=[],... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[KeyUsage] identifier[keyUsage] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[keyUsage] operator[==] Other[null] operator[SEP] {
Keyword[throw] Keyword[new... |
public static <E extends Comparable<E>> void sortDescending(List<E> list) {
Quicksort.sort(list, 0, list.size() - 1, true);
} | class class_name[name] begin[{]
method[sortDescending, return_type[void], modifier[public static], parameter[list]] begin[{]
call[Quicksort.sort, parameter[member[.list], literal[0], binary_operation[call[list.size, parameter[]], -, literal[1]], literal[true]]]
end[}]
END[}] | Keyword[public] Keyword[static] operator[<] identifier[E] Keyword[extends] identifier[Comparable] operator[<] identifier[E] operator[>] operator[>] Keyword[void] identifier[sortDescending] operator[SEP] identifier[List] operator[<] identifier[E] operator[>] identifier[list] operator[SEP] {
identifier[Quicksort] ... |
private int getUniqueGeneReference(Collection<KamNode> nodes) {
//count all protienAbundance reference
Set<String> uniqueLabels = new HashSet<String>();
for (KamNode node : nodes) {
if (node.getFunctionType() == FunctionEnum.PROTEIN_ABUNDANCE
&& StringUtils.countM... | class class_name[name] begin[{]
method[getUniqueGeneReference, return_type[type[int]], modifier[private], parameter[nodes]] begin[{]
local_variable[type[Set], uniqueLabels]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=BinaryOperation(op... | Keyword[private] Keyword[int] identifier[getUniqueGeneReference] operator[SEP] identifier[Collection] operator[<] identifier[KamNode] operator[>] identifier[nodes] operator[SEP] {
identifier[Set] operator[<] identifier[String] operator[>] identifier[uniqueLabels] operator[=] Keyword[new] identifier[HashSet] oper... |
@Override
public void configureWriteCache(long initDelay, long delayCache, long cacheSize){
client.initTimer(initDelay, delayCache,cacheSize);
} | class class_name[name] begin[{]
method[configureWriteCache, return_type[void], modifier[public], parameter[initDelay, delayCache, cacheSize]] begin[{]
call[client.initTimer, parameter[member[.initDelay], member[.delayCache], member[.cacheSize]]]
end[}]
END[}] | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[configureWriteCache] operator[SEP] Keyword[long] identifier[initDelay] , Keyword[long] identifier[delayCache] , Keyword[long] identifier[cacheSize] operator[SEP] {
identifier[client] operator[SEP] identifier[initTimer] operator[SEP] id... |
protected void init(ConfigurationValueProvider[] configurationValueProviders) {
Object containerValue = null;
for (ConfigurationValueProvider container : configurationValueProviders) {
containerValue = container.getValue(namespace, name);
for (String alias : aliases) {
... | class class_name[name] begin[{]
method[init, return_type[void], modifier[protected], parameter[configurationValueProviders]] begin[{]
local_variable[type[Object], containerValue]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=Membe... | Keyword[protected] Keyword[void] identifier[init] operator[SEP] identifier[ConfigurationValueProvider] operator[SEP] operator[SEP] identifier[configurationValueProviders] operator[SEP] {
identifier[Object] identifier[containerValue] operator[=] Other[null] operator[SEP] Keyword[for] operator[SEP] identifier[Conf... |
@Deprecated
public static DateTimePatternGenerator getFrozenInstance(ULocale uLocale) {
String localeKey = uLocale.toString();
DateTimePatternGenerator result = DTPNG_CACHE.get(localeKey);
if (result != null) {
return result;
}
result = new DateTimePatternGenerat... | class class_name[name] begin[{]
method[getFrozenInstance, return_type[type[DateTimePatternGenerator]], modifier[public static], parameter[uLocale]] begin[{]
local_variable[type[String], localeKey]
local_variable[type[DateTimePatternGenerator], result]
if[binary_operation[member[... | annotation[@] identifier[Deprecated] Keyword[public] Keyword[static] identifier[DateTimePatternGenerator] identifier[getFrozenInstance] operator[SEP] identifier[ULocale] identifier[uLocale] operator[SEP] {
identifier[String] identifier[localeKey] operator[=] identifier[uLocale] operator[SEP] identifier[toString]... |
private void appendOptionalElementIDFromHint(StringBuilder sb) {
String elementID = (String) this.hints.get(SVGHints.KEY_ELEMENT_ID);
if (elementID != null) {
this.hints.put(SVGHints.KEY_ELEMENT_ID, null); // clear it
if (this.elementIDs.contains(elementID)) {
thr... | class class_name[name] begin[{]
method[appendOptionalElementIDFromHint, return_type[void], modifier[private], parameter[sb]] begin[{]
local_variable[type[String], elementID]
if[binary_operation[member[.elementID], !=, literal[null]]] begin[{]
THIS[member[None.hin... | Keyword[private] Keyword[void] identifier[appendOptionalElementIDFromHint] operator[SEP] identifier[StringBuilder] identifier[sb] operator[SEP] {
identifier[String] identifier[elementID] operator[=] operator[SEP] identifier[String] operator[SEP] Keyword[this] operator[SEP] identifier[hints] operator[SEP] identif... |
public Subscription subscribe(String jid, SubscribeForm subForm) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
PubSub request = createPubsubPacket(Type.set, new SubscribeExtension(jid, getId()));
request.addExtension(new FormNode(FormNodeType.OPTIONS, subF... | class class_name[name] begin[{]
method[subscribe, return_type[type[Subscription]], modifier[public], parameter[jid, subForm]] begin[{]
local_variable[type[PubSub], request]
call[request.addExtension, parameter[ClassCreator(arguments=[MemberReference(member=OPTIONS, postfix_operators=[],... | Keyword[public] identifier[Subscription] identifier[subscribe] operator[SEP] identifier[String] identifier[jid] , identifier[SubscribeForm] identifier[subForm] operator[SEP] Keyword[throws] identifier[NoResponseException] , identifier[XMPPErrorException] , identifier[NotConnectedException] , identifier[InterruptedE... |
private static EvictionListener<StatementMethod, StatementHolder> getListener() {
return new EvictionListener<StatementMethod, StatementHolder>() {
@Override
public void onEviction(StatementMethod statementMethod, StatementHolder statementHolder) {
if (statementHolder.sta... | class class_name[name] begin[{]
method[getListener, return_type[type[EvictionListener]], modifier[private static], parameter[]] begin[{]
return[ClassCreator(arguments=[], body=[MethodDeclaration(annotations=[Annotation(element=None, name=Override)], body=[IfStatement(condition=BinaryOperation(operandl=... | Keyword[private] Keyword[static] identifier[EvictionListener] operator[<] identifier[StatementMethod] , identifier[StatementHolder] operator[>] identifier[getListener] operator[SEP] operator[SEP] {
Keyword[return] Keyword[new] identifier[EvictionListener] operator[<] identifier[StatementMethod] , identifier[St... |
@Override
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {
currentRequest.set(req);
try {
// check to OpenCms runlevel
int runlevel = OpenCmsCore.getInstance().getRunLevel();
// write OpenCms server ident... | class class_name[name] begin[{]
method[doGet, return_type[void], modifier[public], parameter[req, res]] begin[{]
call[currentRequest.set, parameter[member[.req]]]
TryStatement(block=[LocalVariableDeclaration(annotations=[], declarators=[VariableDeclarator(dimensions=[], initializer=Meth... | annotation[@] identifier[Override] Keyword[public] Keyword[void] identifier[doGet] operator[SEP] identifier[HttpServletRequest] identifier[req] , identifier[HttpServletResponse] identifier[res] operator[SEP] Keyword[throws] identifier[IOException] , identifier[ServletException] {
identifier[currentRequest] ope... |
protected void record( final SingleVariableDeclaration variable,
final Node parentNode ) throws Exception {
final String name = variable.getName().getFullyQualifiedName();
final Node paramNode = parentNode.addNode(name, ClassFileSequencerLexicon.PARAMETER);
paramNode.s... | class class_name[name] begin[{]
method[record, return_type[void], modifier[protected], parameter[variable, parentNode]] begin[{]
local_variable[type[String], name]
local_variable[type[Node], paramNode]
call[paramNode.setProperty, parameter[member[ClassFileSequencerLexicon.NAME],... | Keyword[protected] Keyword[void] identifier[record] operator[SEP] Keyword[final] identifier[SingleVariableDeclaration] identifier[variable] , Keyword[final] identifier[Node] identifier[parentNode] operator[SEP] Keyword[throws] identifier[Exception] {
Keyword[final] identifier[String] identifier[name] operator[=... |
public static List<Object> extract(Iterable<?> collection, Editor<Object> editor, boolean ignoreNull) {
final List<Object> fieldValueList = new ArrayList<>();
Object value;
for (Object bean : collection) {
value = editor.edit(bean);
if (null == value && ignoreNull) {
continue;
}
fieldValue... | class class_name[name] begin[{]
method[extract, return_type[type[List]], modifier[public static], parameter[collection, editor, ignoreNull]] begin[{]
local_variable[type[List], fieldValueList]
local_variable[type[Object], value]
ForStatement(body=BlockStatement(label=None, statements=[S... | Keyword[public] Keyword[static] identifier[List] operator[<] identifier[Object] operator[>] identifier[extract] operator[SEP] identifier[Iterable] operator[<] operator[?] operator[>] identifier[collection] , identifier[Editor] operator[<] identifier[Object] operator[>] identifier[editor] , Keyword[boolean] identifier... |
public SIMPIterator getLocalSubscriptions() {
if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
SibTr.entry(tc, "getLocalSubscriptions");
SIMPIterator iterator = null;
try {
iterator = this.getTopicSpace().getLocalSubscriptionIterator();
} catch (SIMPException e) {
FFDCFilter.processExc... | class class_name[name] begin[{]
method[getLocalSubscriptions, return_type[type[SIMPIterator]], modifier[public], parameter[]] begin[{]
if[binary_operation[call[TraceComponent.isAnyTracingEnabled, parameter[]], &&, call[tc.isEntryEnabled, parameter[]]]] begin[{]
call[SibTr.entry, par... | Keyword[public] identifier[SIMPIterator] identifier[getLocalSubscriptions] 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... |
private static void deleteHiddenColumnsInRow(final Row row) {
deleteCellFromRow(row,
TieConstants.HIDDEN_SAVE_OBJECTS_COLUMN);
deleteCellFromRow(row,
TieConstants.HIDDEN_ORIGIN_ROW_NUMBER_COLUMN);
deleteCellFromRow(row,
TieConstants.HIDDEN_FULL_NAME_COLUMN);
} | class class_name[name] begin[{]
method[deleteHiddenColumnsInRow, return_type[void], modifier[private static], parameter[row]] begin[{]
call[.deleteCellFromRow, parameter[member[.row], member[TieConstants.HIDDEN_SAVE_OBJECTS_COLUMN]]]
call[.deleteCellFromRow, parameter[member[.ro... | Keyword[private] Keyword[static] Keyword[void] identifier[deleteHiddenColumnsInRow] operator[SEP] Keyword[final] identifier[Row] identifier[row] operator[SEP] {
identifier[deleteCellFromRow] operator[SEP] identifier[row] , identifier[TieConstants] operator[SEP] identifier[HIDDEN_SAVE_OBJECTS_COLUMN] operator[SE... |
public double[] update( double w, double c1, double rand1, double c2, double rand2, double[] globalBest ) {
for( int i = 0; i < locations.length; i++ ) {
particleVelocities[i] = w * particleVelocities[i] + //
c1 * rand1 * (particleLocalBests[i] - locations[i]) + //
... | class class_name[name] begin[{]
method[update, return_type[type[double]], modifier[public], parameter[w, c1, rand1, c2, rand2, globalBest]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[StatementExpression(expression=Assignment(expressionl=MemberReference(member=particleVelocities, ... | Keyword[public] Keyword[double] operator[SEP] operator[SEP] identifier[update] operator[SEP] Keyword[double] identifier[w] , Keyword[double] identifier[c1] , Keyword[double] identifier[rand1] , Keyword[double] identifier[c2] , Keyword[double] identifier[rand2] , Keyword[double] operator[SEP] operator[SEP] identifi... |
public void registerTaskConfig(String taskName, TedProcessorFactory tedProcessorFactory) {
registerTaskConfig(taskName, tedProcessorFactory, null, null, null);
} | class class_name[name] begin[{]
method[registerTaskConfig, return_type[void], modifier[public], parameter[taskName, tedProcessorFactory]] begin[{]
call[.registerTaskConfig, parameter[member[.taskName], member[.tedProcessorFactory], literal[null], literal[null], literal[null]]]
end[}]
END[}] | Keyword[public] Keyword[void] identifier[registerTaskConfig] operator[SEP] identifier[String] identifier[taskName] , identifier[TedProcessorFactory] identifier[tedProcessorFactory] operator[SEP] {
identifier[registerTaskConfig] operator[SEP] identifier[taskName] , identifier[tedProcessorFactory] , Other[null]... |
public void marshall(ImageBuilderStateChangeReason imageBuilderStateChangeReason, ProtocolMarshaller protocolMarshaller) {
if (imageBuilderStateChangeReason == null) {
throw new SdkClientException("Invalid argument passed to marshall(...)");
}
try {
protocolMarshaller.m... | class class_name[name] begin[{]
method[marshall, return_type[void], modifier[public], parameter[imageBuilderStateChangeReason, protocolMarshaller]] begin[{]
if[binary_operation[member[.imageBuilderStateChangeReason], ==, literal[null]]] begin[{]
ThrowStatement(expression=ClassCreato... | Keyword[public] Keyword[void] identifier[marshall] operator[SEP] identifier[ImageBuilderStateChangeReason] identifier[imageBuilderStateChangeReason] , identifier[ProtocolMarshaller] identifier[protocolMarshaller] operator[SEP] {
Keyword[if] operator[SEP] identifier[imageBuilderStateChangeReason] operator[==] Ot... |
public void setAttribute(String name, String value, String facet)
throws JspException
{
if (name != null) {
if (name.equals(TYPE)) {
String s = Bundle.getString("Tags_AttributeMayNotBeSet", new Object[]{name});
registerTagError(s, null);
}
... | class class_name[name] begin[{]
method[setAttribute, return_type[void], modifier[public], parameter[name, value, facet]] begin[{]
if[binary_operation[member[.name], !=, literal[null]]] begin[{]
if[call[name.equals, parameter[member[.TYPE]]]] begin[{]
loca... | Keyword[public] Keyword[void] identifier[setAttribute] operator[SEP] identifier[String] identifier[name] , identifier[String] identifier[value] , identifier[String] identifier[facet] operator[SEP] Keyword[throws] identifier[JspException] {
Keyword[if] operator[SEP] identifier[name] operator[!=] Other[null] ope... |
@SuppressWarnings("unchecked")
public static <T extends ExtensionPoint<?>> T getExtensionPoint(Class<T> clazz) {
synchronized (points) {
for (ExtensionPoint<?> ep : points)
if (clazz.isAssignableFrom(ep.getClass()))
return (T)ep;
}
return null;
} | class class_name[name] begin[{]
method[getExtensionPoint, return_type[type[T]], modifier[public static], parameter[clazz]] begin[{]
SYNCHRONIZED[member[.points]] BEGIN[{]
ForStatement(body=IfStatement(condition=MethodInvocation(arguments=[MethodInvocation(arguments=[], member=getCla... | annotation[@] identifier[SuppressWarnings] operator[SEP] literal[String] operator[SEP] Keyword[public] Keyword[static] operator[<] identifier[T] Keyword[extends] identifier[ExtensionPoint] operator[<] operator[?] operator[>] operator[>] identifier[T] identifier[getExtensionPoint] operator[SEP] identifier[Class] operato... |
@Override
public boolean contains(ILonePair lonePair) {
for (int i = 0; i < getLonePairCount(); i++) {
if (lonePair == lonePairs[i]) return true;
}
return false;
} | class class_name[name] begin[{]
method[contains, return_type[type[boolean]], modifier[public], parameter[lonePair]] begin[{]
ForStatement(body=BlockStatement(label=None, statements=[IfStatement(condition=BinaryOperation(operandl=MemberReference(member=lonePair, postfix_operators=[], prefix_operators=[]... | annotation[@] identifier[Override] Keyword[public] Keyword[boolean] identifier[contains] operator[SEP] identifier[ILonePair] identifier[lonePair] operator[SEP] {
Keyword[for] operator[SEP] Keyword[int] identifier[i] operator[=] Other[0] operator[SEP] identifier[i] operator[<] identifier[getLonePairCount] operato... |
public void service(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp) throws javax.servlet.ServletException, java.io.IOException{
if (req != null) {
doRequest((SipServletRequest) req);
} else {
SipServletResponse response = (SipServletResponse)resp;
if(response.isBranchResponse()) {
... | class class_name[name] begin[{]
method[service, return_type[void], modifier[public], parameter[req, resp]] begin[{]
if[binary_operation[member[.req], !=, literal[null]]] begin[{]
call[.doRequest, parameter[Cast(expression=MemberReference(member=req, postfix_operators=[],... | Keyword[public] Keyword[void] identifier[service] operator[SEP] identifier[javax] operator[SEP] identifier[servlet] operator[SEP] identifier[ServletRequest] identifier[req] , identifier[javax] operator[SEP] identifier[servlet] operator[SEP] identifier[ServletResponse] identifier[resp] operator[SEP] Keyword[throws] ide... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.